diff --git a/assets/index-DV4PIamU.js b/assets/index-DV4PIamU.js deleted file mode 100644 index 19e178f..0000000 --- a/assets/index-DV4PIamU.js +++ /dev/null @@ -1,279 +0,0 @@ -function R5(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 wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function So(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 cT={exports:{}},Wm={},dT={exports:{}},We={};/** - * @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 $d=Symbol.for("react.element"),k5=Symbol.for("react.portal"),T5=Symbol.for("react.fragment"),j5=Symbol.for("react.strict_mode"),I5=Symbol.for("react.profiler"),A5=Symbol.for("react.provider"),M5=Symbol.for("react.context"),F5=Symbol.for("react.forward_ref"),N5=Symbol.for("react.suspense"),L5=Symbol.for("react.memo"),D5=Symbol.for("react.lazy"),VC=Symbol.iterator;function B5(e){return e===null||typeof e!="object"?null:(e=VC&&e[VC]||e["@@iterator"],typeof e=="function"?e:null)}var fT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pT=Object.assign,vT={};function Jl(e,t,r){this.props=e,this.context=t,this.refs=vT,this.updater=r||fT}Jl.prototype.isReactComponent={};Jl.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")};Jl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mT(){}mT.prototype=Jl.prototype;function ex(e,t,r){this.props=e,this.context=t,this.refs=vT,this.updater=r||fT}var tx=ex.prototype=new mT;tx.constructor=ex;pT(tx,Jl.prototype);tx.isPureReactComponent=!0;var UC=Array.isArray,hT=Object.prototype.hasOwnProperty,rx={current:null},gT={key:!0,ref:!0,__self:!0,__source:!0};function yT(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)hT.call(t,n)&&!gT.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,W=M[K];if(0>>1;Ko(G,q))neo(ve,G)?(M[K]=ve,M[ne]=q,K=ne):(M[K]=G,M[Y]=q,K=Y);else if(neo(ve,q))M[K]=ve,M[ne]=q,K=ne;else break e}}return N}function o(M,N){var q=M.sortIndex-N.sortIndex;return q!==0?q:M.id-N.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=[],d=1,f=null,p=3,v=!1,h=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(M){for(var N=r(l);N!==null;){if(N.callback===null)n(l);else if(N.startTime<=M)n(l),N.sortIndex=N.expirationTime,t(u,N);else break;N=r(l)}}function C(M){if(b=!1,y(M),!h)if(r(u)!==null)h=!0,L(O);else{var N=r(l);N!==null&&B(C,N.startTime-M)}}function O(M,N){h=!1,b&&(b=!1,g(E),E=-1),v=!0;var q=p;try{for(y(N),f=r(u);f!==null&&(!(f.expirationTime>N)||M&&!T());){var K=f.callback;if(typeof K=="function"){f.callback=null,p=f.priorityLevel;var W=K(f.expirationTime<=N);N=e.unstable_now(),typeof W=="function"?f.callback=W:f===r(u)&&n(u),y(N)}else n(u);f=r(u)}if(f!==null)var le=!0;else{var Y=r(l);Y!==null&&B(C,Y.startTime-N),le=!1}return le}finally{f=null,p=q,v=!1}}var S=!1,P=null,E=-1,$=5,k=-1;function T(){return!(e.unstable_now()-k<$)}function j(){if(P!==null){var M=e.unstable_now();k=M;var N=!0;try{N=P(!0,M)}finally{N?I():(S=!1,P=null)}}else S=!1}var I;if(typeof m=="function")I=function(){m(j)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,D=A.port2;A.port1.onmessage=j,I=function(){D.postMessage(null)}}else I=function(){x(j,0)};function L(M){P=M,S||(S=!0,I())}function B(M,N){E=x(function(){M(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){h||v||(h=!0,L(O))},e.unstable_forceFrameRate=function(M){0>M||125K?(M.sortIndex=q,t(l,M),r(u)===null&&M===r(l)&&(b?(g(E),E=-1):b=!0,B(C,q-K))):(M.sortIndex=W,t(u,M),h||v||(h=!0,L(O))),M},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(M){var N=p;return function(){var q=p;p=N;try{return M.apply(this,arguments)}finally{p=q}}}})(wT);xT.exports=wT;var Y5=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 ST=c,Yr=Y5;function pe(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"),Tb=Object.prototype.hasOwnProperty,J5=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,qC={},HC={};function Z5(e){return Tb.call(HC,e)?!0:Tb.call(qC,e)?!1:J5.test(e)?HC[e]=!0:(qC[e]=!0,!1)}function eB(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 tB(e,t,r,n){if(t===null||typeof t>"u"||eB(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 Pr(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 sr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){sr[e]=new Pr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];sr[t]=new Pr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){sr[e]=new Pr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){sr[e]=new Pr(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){sr[e]=new Pr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){sr[e]=new Pr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){sr[e]=new Pr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){sr[e]=new Pr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){sr[e]=new Pr(e,5,!1,e.toLowerCase(),null,!1,!1)});var ox=/[\-:]([a-z])/g;function ax(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(ox,ax);sr[t]=new Pr(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(ox,ax);sr[t]=new Pr(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(ox,ax);sr[t]=new Pr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){sr[e]=new Pr(e,1,!1,e.toLowerCase(),null,!1,!1)});sr.xlinkHref=new Pr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){sr[e]=new Pr(e,1,!1,e.toLowerCase(),null,!0,!0)});function ix(e,t,r,n){var o=sr.hasOwnProperty(t)?sr[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{Qg=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?rc(e):""}function rB(e){switch(e.tag){case 5:return rc(e.type);case 16:return rc("Lazy");case 13:return rc("Suspense");case 19:return rc("SuspenseList");case 0:case 2:case 15:return e=Xg(e.type,!1),e;case 11:return e=Xg(e.type.render,!1),e;case 1:return e=Xg(e.type,!0),e;default:return""}}function Mb(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 Ds:return"Fragment";case Ls:return"Portal";case jb:return"Profiler";case sx:return"StrictMode";case Ib:return"Suspense";case Ab:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ET:return(e.displayName||"Context")+".Consumer";case CT:return(e._context.displayName||"Context")+".Provider";case lx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ux:return t=e.displayName||null,t!==null?t:Mb(e.type)||"Memo";case pa:t=e._payload,e=e._init;try{return Mb(e(t))}catch{}}return null}function nB(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 Mb(t);case 8:return t===sx?"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 Ua(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $T(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oB(e){var t=$T(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 Sf(e){e._valueTracker||(e._valueTracker=oB(e))}function RT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=$T(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ev(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 Fb(e,t){var r=t.checked;return _t({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function KC(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ua(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 kT(e,t){t=t.checked,t!=null&&ix(e,"checked",t,!1)}function Nb(e,t){kT(e,t);var r=Ua(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")?Lb(e,t.type,r):t.hasOwnProperty("defaultValue")&&Lb(e,t.type,Ua(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function QC(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 Lb(e,t,r){(t!=="number"||ev(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var nc=Array.isArray;function il(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Of.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var dc={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},aB=["Webkit","ms","Moz","O"];Object.keys(dc).forEach(function(e){aB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dc[t]=dc[e]})});function AT(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||dc.hasOwnProperty(e)&&dc[e]?(""+t).trim():t+"px"}function MT(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=AT(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var iB=_t({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 zb(e,t){if(t){if(iB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(pe(62))}}function Vb(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 Ub=null;function cx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wb=null,sl=null,ll=null;function JC(e){if(e=Td(e)){if(typeof Wb!="function")throw Error(pe(280));var t=e.stateNode;t&&(t=Qm(t),Wb(e.stateNode,e.type,t))}}function FT(e){sl?ll?ll.push(e):ll=[e]:sl=e}function NT(){if(sl){var e=sl,t=ll;if(ll=sl=null,JC(e),t)for(e=0;e>>=0,e===0?32:31-(gB(e)/yB|0)|0}var Cf=64,Ef=4194304;function oc(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 ov(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=oc(s):(a&=i,a!==0&&(n=oc(a)))}else i=r&~o,i!==0?n=oc(i):a!==0&&(n=oc(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 Rd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Hn(t),e[t]=r}function wB(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=pc),sE=" ",lE=!1;function nj(e,t){switch(e){case"keyup":return XB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bs=!1;function JB(e,t){switch(e){case"compositionend":return oj(t);case"keypress":return t.which!==32?null:(lE=!0,sE);case"textInput":return e=t.data,e===sE&&lE?null:e;default:return null}}function ZB(e,t){if(Bs)return e==="compositionend"||!yx&&nj(e,t)?(e=tj(),fp=mx=Sa=null,Bs=!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=fE(r)}}function lj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uj(){for(var e=window,t=ev();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ev(e.document)}return t}function bx(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 lz(e){var t=uj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&lj(r.ownerDocument.documentElement,r)){if(n!==null&&bx(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=pE(r,a);var i=pE(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,zs=null,Xb=null,mc=null,Yb=!1;function vE(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Yb||zs==null||zs!==ev(n)||(n=zs,"selectionStart"in n&&bx(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}),mc&&Yc(mc,n)||(mc=n,n=sv(Xb,"onSelect"),0Ws||(e.current=n0[Ws],n0[Ws]=null,Ws--)}function ct(e,t){Ws++,n0[Ws]=e.current,e.current=t}var Wa={},hr=Qa(Wa),Fr=Qa(!1),qi=Wa;function Rl(e,t){var r=e.type.contextTypes;if(!r)return Wa;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 Nr(e){return e=e.childContextTypes,e!=null}function uv(){vt(Fr),vt(hr)}function xE(e,t,r){if(hr.current!==Wa)throw Error(pe(168));ct(hr,t),ct(Fr,r)}function yj(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(pe(108,nB(e)||"Unknown",o));return _t({},r,n)}function cv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wa,qi=hr.current,ct(hr,e),ct(Fr,Fr.current),!0}function wE(e,t,r){var n=e.stateNode;if(!n)throw Error(pe(169));r?(e=yj(e,t,qi),n.__reactInternalMemoizedMergedChildContext=e,vt(Fr),vt(hr),ct(hr,e)):vt(Fr),ct(Fr,r)}var Ao=null,Xm=!1,cy=!1;function bj(e){Ao===null?Ao=[e]:Ao.push(e)}function _z(e){Xm=!0,bj(e)}function Xa(){if(!cy&&Ao!==null){cy=!0;var e=0,t=Je;try{var r=Ao;for(Je=1;e>=i,o-=i,No=1<<32-Hn(t)+o|r<E?($=P,P=null):$=P.sibling;var k=p(g,P,y[E],C);if(k===null){P===null&&(P=$);break}e&&P&&k.alternate===null&&t(g,P),m=a(k,m,E),S===null?O=k:S.sibling=k,S=k,P=$}if(E===y.length)return r(g,P),ht&&hi(g,E),O;if(P===null){for(;EE?($=P,P=null):$=P.sibling;var T=p(g,P,k.value,C);if(T===null){P===null&&(P=$);break}e&&P&&T.alternate===null&&t(g,P),m=a(T,m,E),S===null?O=T:S.sibling=T,S=T,P=$}if(k.done)return r(g,P),ht&&hi(g,E),O;if(P===null){for(;!k.done;E++,k=y.next())k=f(g,k.value,C),k!==null&&(m=a(k,m,E),S===null?O=k:S.sibling=k,S=k);return ht&&hi(g,E),O}for(P=n(g,P);!k.done;E++,k=y.next())k=v(P,g,E,k.value,C),k!==null&&(e&&k.alternate!==null&&P.delete(k.key===null?E:k.key),m=a(k,m,E),S===null?O=k:S.sibling=k,S=k);return e&&P.forEach(function(j){return t(g,j)}),ht&&hi(g,E),O}function x(g,m,y,C){if(typeof y=="object"&&y!==null&&y.type===Ds&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case wf:e:{for(var O=y.key,S=m;S!==null;){if(S.key===O){if(O=y.type,O===Ds){if(S.tag===7){r(g,S.sibling),m=o(S,y.props.children),m.return=g,g=m;break e}}else if(S.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===pa&&RE(O)===S.type){r(g,S.sibling),m=o(S,y.props),m.ref=Bu(g,S,y),m.return=g,g=m;break e}r(g,S);break}else t(g,S);S=S.sibling}y.type===Ds?(m=Ii(y.props.children,g.mode,C,y.key),m.return=g,g=m):(C=_p(y.type,y.key,y.props,null,g.mode,C),C.ref=Bu(g,m,y),C.return=g,g=C)}return i(g);case Ls:e:{for(S=y.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(g,m.sibling),m=o(m,y.children||[]),m.return=g,g=m;break e}else{r(g,m);break}else t(g,m);m=m.sibling}m=yy(y,g.mode,C),m.return=g,g=m}return i(g);case pa:return S=y._init,x(g,m,S(y._payload),C)}if(nc(y))return h(g,m,y,C);if(Mu(y))return b(g,m,y,C);If(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(r(g,m.sibling),m=o(m,y),m.return=g,g=m):(r(g,m),m=gy(y,g.mode,C),m.return=g,g=m),i(g)):r(g,m)}return x}var Tl=Pj(!0),$j=Pj(!1),jd={},ho=Qa(jd),td=Qa(jd),rd=Qa(jd);function Ei(e){if(e===jd)throw Error(pe(174));return e}function $x(e,t){switch(ct(rd,t),ct(td,e),ct(ho,jd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bb(t,e)}vt(ho),ct(ho,t)}function jl(){vt(ho),vt(td),vt(rd)}function Rj(e){Ei(rd.current);var t=Ei(ho.current),r=Bb(t,e.type);t!==r&&(ct(td,e),ct(ho,r))}function Rx(e){td.current===e&&(vt(ho),vt(td))}var gt=Qa(0);function hv(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dy=[];function kx(){for(var e=0;er?r:4,e(!0);var n=fy.transition;fy.transition={};try{e(!1),t()}finally{Je=r,fy.transition=n}}function qj(){return wn().memoizedState}function Oz(e,t,r){var n=Fa(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Hj(e))Gj(t,r);else if(r=Sj(e,t,r,n),r!==null){var o=Or();Gn(r,e,n,o),Kj(r,t,n)}}function Cz(e,t,r){var n=Fa(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Hj(e))Gj(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,Kn(s,i)){var u=t.interleaved;u===null?(o.next=o,Ex(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=Sj(e,t,o,n),r!==null&&(o=Or(),Gn(r,e,n,o),Kj(r,t,n))}}function Hj(e){var t=e.alternate;return e===bt||t!==null&&t===bt}function Gj(e,t){hc=gv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Kj(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,fx(e,r)}}var yv={readContext:xn,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},Ez={readContext:xn,useCallback:function(e,t){return ao().memoizedState=[e,t===void 0?null:t],e},useContext:xn,useEffect:TE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,hp(4194308,4,Bj.bind(null,t,e),r)},useLayoutEffect:function(e,t){return hp(4194308,4,e,t)},useInsertionEffect:function(e,t){return hp(4,2,e,t)},useMemo:function(e,t){var r=ao();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ao();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=Oz.bind(null,bt,e),[n.memoizedState,e]},useRef:function(e){var t=ao();return e={current:e},t.memoizedState=e},useState:kE,useDebugValue:Mx,useDeferredValue:function(e){return ao().memoizedState=e},useTransition:function(){var e=kE(!1),t=e[0];return e=Sz.bind(null,e[1]),ao().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=bt,o=ao();if(ht){if(r===void 0)throw Error(pe(407));r=r()}else{if(r=t(),Xt===null)throw Error(pe(349));Gi&30||jj(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,TE(Aj.bind(null,n,a,e),[e]),n.flags|=2048,ad(9,Ij.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ao(),t=Xt.identifierPrefix;if(ht){var r=Lo,n=No;r=(n&~(1<<32-Hn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=nd++,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[fo]=t,e[ed]=n,nI(e,t,!1,!1),t.stateNode=e;e:{switch(i=Vb(r,n),r){case"dialog":dt("cancel",e),dt("close",e),o=n;break;case"iframe":case"object":case"embed":dt("load",e),o=n;break;case"video":case"audio":for(o=0;oAl&&(t.flags|=128,n=!0,zu(a,!1),t.lanes=4194304)}else{if(!n)if(e=hv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),zu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ht)return cr(t),null}else 2*Pt()-a.renderingStartTime>Al&&r!==1073741824&&(t.flags|=128,n=!0,zu(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=Pt(),t.sibling=null,r=gt.current,ct(gt,n?r&1|2:r&1),t):(cr(t),null);case 22:case 23:return zx(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ur&1073741824&&(cr(t),t.subtreeFlags&6&&(t.flags|=8192)):cr(t),null;case 24:return null;case 25:return null}throw Error(pe(156,t.tag))}function Az(e,t){switch(xx(t),t.tag){case 1:return Nr(t.type)&&uv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jl(),vt(Fr),vt(hr),kx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Rx(t),null;case 13:if(vt(gt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(pe(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vt(gt),null;case 4:return jl(),null;case 10:return Cx(t.type._context),null;case 22:case 23:return zx(),null;case 24:return null;default:return null}}var Mf=!1,fr=!1,Mz=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Ks(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ct(e,t,n)}else r.current=null}function m0(e,t,r){try{r()}catch(n){Ct(e,t,n)}}var BE=!1;function Fz(e,t){if(Jb=av,e=uj(),bx(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,d=0,f=e,p=null;t:for(;;){for(var v;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),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===o&&(s=i),p===a&&++d===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zb={focusedElem:e,selectionRange:r},av=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,x=h.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:Dn(t.type,b),x);g.__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(pe(163))}}catch(C){Ct(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return h=BE,BE=!1,h}function gc(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 Zm(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 h0(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[fo],delete t[ed],delete t[r0],delete t[yz],delete t[bz])),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 sI(e){return e.tag===5||e.tag===3||e.tag===4}function zE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sI(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 g0(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=lv));else if(n!==4&&(e=e.child,e!==null))for(g0(e,t,r),e=e.sibling;e!==null;)g0(e,t,r),e=e.sibling}function y0(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(y0(e,t,r),e=e.sibling;e!==null;)y0(e,t,r),e=e.sibling}var rr=null,zn=!1;function sa(e,t,r){for(r=r.child;r!==null;)lI(e,t,r),r=r.sibling}function lI(e,t,r){if(mo&&typeof mo.onCommitFiberUnmount=="function")try{mo.onCommitFiberUnmount(qm,r)}catch{}switch(r.tag){case 5:fr||Ks(r,t);case 6:var n=rr,o=zn;rr=null,sa(e,t,r),rr=n,zn=o,rr!==null&&(zn?(e=rr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):rr.removeChild(r.stateNode));break;case 18:rr!==null&&(zn?(e=rr,r=r.stateNode,e.nodeType===8?uy(e.parentNode,r):e.nodeType===1&&uy(e,r),Qc(e)):uy(rr,r.stateNode));break;case 4:n=rr,o=zn,rr=r.stateNode.containerInfo,zn=!0,sa(e,t,r),rr=n,zn=o;break;case 0:case 11:case 14:case 15:if(!fr&&(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)}sa(e,t,r);break;case 1:if(!fr&&(Ks(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ct(r,t,s)}sa(e,t,r);break;case 21:sa(e,t,r);break;case 22:r.mode&1?(fr=(n=fr)||r.memoizedState!==null,sa(e,t,r),fr=n):sa(e,t,r);break;default:sa(e,t,r)}}function VE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Mz),t.forEach(function(n){var o=qz.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Ln(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=Pt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Lz(n/1960))-n,10e?16:e,Oa===null)var n=!1;else{if(e=Oa,Oa=null,xv=0,Ge&6)throw Error(pe(331));var o=Ge;for(Ge|=4,$e=e.current;$e!==null;){var a=$e,i=a.child;if($e.flags&16){var s=a.deletions;if(s!==null){for(var u=0;uPt()-Dx?ji(e,0):Lx|=r),Lr(e,t)}function hI(e,t){t===0&&(e.mode&1?(t=Ef,Ef<<=1,!(Ef&130023424)&&(Ef=4194304)):t=1);var r=Or();e=Wo(e,t),e!==null&&(Rd(e,t,r),Lr(e,r))}function Wz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),hI(e,r)}function qz(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(pe(314))}n!==null&&n.delete(t),hI(e,r)}var gI;gI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fr.current)Mr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Mr=!1,jz(e,t,r);Mr=!!(e.flags&131072)}else Mr=!1,ht&&t.flags&1048576&&_j(t,fv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;gp(e,t),e=t.pendingProps;var o=Rl(t,hr.current);cl(t,r),o=jx(null,t,n,e,o,r);var a=Ix();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,Nr(n)?(a=!0,cv(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Px(t),o.updater=Ym,t.stateNode=o,o._reactInternals=t,l0(t,n,e,r),t=d0(null,t,n,!0,a,r)):(t.tag=0,ht&&a&&_x(t),_r(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(gp(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=Gz(n),e=Dn(n,e),o){case 0:t=c0(null,t,n,e,r);break e;case 1:t=NE(null,t,n,e,r);break e;case 11:t=ME(null,t,n,e,r);break e;case 14:t=FE(null,t,n,Dn(n.type,e),r);break e}throw Error(pe(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Dn(n,o),c0(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Dn(n,o),NE(e,t,n,o,r);case 3:e:{if(eI(t),e===null)throw Error(pe(387));n=t.pendingProps,a=t.memoizedState,o=a.element,Oj(e,t),mv(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=Il(Error(pe(423)),t),t=LE(e,t,n,r,o);break e}else if(n!==o){o=Il(Error(pe(424)),t),t=LE(e,t,n,r,o);break e}else for(qr=Ia(t.stateNode.containerInfo.firstChild),Kr=t,ht=!0,Vn=null,r=$j(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(kl(),n===o){t=qo(e,t,r);break e}_r(e,t,n,r)}t=t.child}return t;case 5:return Rj(t),e===null&&a0(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,e0(n,o)?i=null:a!==null&&e0(n,a)&&(t.flags|=32),Zj(e,t),_r(e,t,i,r),t.child;case 6:return e===null&&a0(t),null;case 13:return tI(e,t,r);case 4:return $x(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Tl(t,null,n,r):_r(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Dn(n,o),ME(e,t,n,o,r);case 7:return _r(e,t,t.pendingProps,r),t.child;case 8:return _r(e,t,t.pendingProps.children,r),t.child;case 12:return _r(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,ct(pv,n._currentValue),n._currentValue=i,a!==null)if(Kn(a.value,i)){if(a.children===o.children&&!Fr.current){t=qo(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=Bo(-1,r&-r),u.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var d=l.pending;d===null?u.next=u:(u.next=d.next,d.next=u),l.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),i0(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(pe(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),i0(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}_r(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,cl(t,r),o=xn(o),n=n(o),t.flags|=1,_r(e,t,n,r),t.child;case 14:return n=t.type,o=Dn(n,t.pendingProps),o=Dn(n.type,o),FE(e,t,n,o,r);case 15:return Yj(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Dn(n,o),gp(e,t),t.tag=1,Nr(n)?(e=!0,cv(t)):e=!1,cl(t,r),Ej(t,n,o),l0(t,n,o,r),d0(null,t,n,!0,e,r);case 19:return rI(e,t,r);case 22:return Jj(e,t,r)}throw Error(pe(156,t.tag))};function yI(e,t){return WT(e,t)}function Hz(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 gn(e,t,r,n){return new Hz(e,t,r,n)}function Ux(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gz(e){if(typeof e=="function")return Ux(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lx)return 11;if(e===ux)return 14}return 2}function Na(e,t){var r=e.alternate;return r===null?(r=gn(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 _p(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")Ux(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ds:return Ii(r.children,o,a,t);case sx:i=8,o|=8;break;case jb:return e=gn(12,r,t,o|2),e.elementType=jb,e.lanes=a,e;case Ib:return e=gn(13,r,t,o),e.elementType=Ib,e.lanes=a,e;case Ab:return e=gn(19,r,t,o),e.elementType=Ab,e.lanes=a,e;case PT:return th(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case CT:i=10;break e;case ET:i=9;break e;case lx:i=11;break e;case ux:i=14;break e;case pa:i=16,n=null;break e}throw Error(pe(130,e==null?e:typeof e,""))}return t=gn(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Ii(e,t,r,n){return e=gn(7,e,n,t),e.lanes=r,e}function th(e,t,r,n){return e=gn(22,e,n,t),e.elementType=PT,e.lanes=r,e.stateNode={isHidden:!1},e}function gy(e,t,r){return e=gn(6,e,null,t),e.lanes=r,e}function yy(e,t,r){return t=gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kz(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=Jg(0),this.expirationTimes=Jg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jg(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wx(e,t,r,n,o,a,i,s,u){return e=new Kz(e,t,r,s,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=gn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Px(a),e}function Qz(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wI)}catch(e){console.error(e)}}wI(),_T.exports=en;var ih=_T.exports;const ic=Rt(ih);var SI,XE=ih;SI=XE.createRoot,XE.hydrateRoot;var e6={id:""},t6={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(e6)}},OI=c.createContext(t6);OI.displayName="AuthContext";const CI=OI;var sh={loginUrl:"/login",afterLoginUrl:"/"},Qo=function(){return c.useContext(CI)};function S0(e,t){return S0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},S0(e,t)}function Xo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,S0(e,t)}var tu=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 R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function nr(){}function r6(e,t){return typeof e=="function"?e(t):e}function O0(e){return typeof e=="number"&&e>=0&&e!==1/0}function Cv(e){return Array.isArray(e)?e:[e]}function EI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xp(e,t,r){return Id(e)?typeof t=="function"?R({},r,{queryKey:e,queryFn:t}):R({},t,{queryKey:e}):e}function n6(e,t,r){return Id(e)?typeof t=="function"?R({},r,{mutationKey:e,mutationFn:t}):R({},t,{mutationKey:e}):typeof e=="function"?R({},t,{mutationFn:e}):R({},e)}function ma(e,t,r){return Id(e)?[R({},t,{queryKey:e}),r]:[e||{},t]}function o6(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 YE(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(Id(s)){if(n){if(t.queryHash!==Kx(s,t.options))return!1}else if(!Ev(t.queryKey,s))return!1}var l=o6(r,a);if(l==="none")return!1;if(l!=="all"){var d=t.isActive();if(l==="active"&&!d||l==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function JE(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(Id(a)){if(!t.options.mutationKey)return!1;if(r){if(Ca(t.options.mutationKey)!==Ca(a))return!1}else if(!Ev(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function Kx(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||Ca;return r(e)}function Ca(e){var t=Cv(e);return a6(t)}function a6(e){return JSON.stringify(e,function(t,r){return C0(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function Ev(e,t){return PI(Cv(e),Cv(t))}function PI(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!PI(e[r],t[r])}):!1}function Pv(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||C0(e)&&C0(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!(!ZE(r)||!r.hasOwnProperty("isPrototypeOf"))}function ZE(e){return Object.prototype.toString.call(e)==="[object Object]"}function Id(e){return typeof e=="string"||Array.isArray(e)}function s6(e){return new Promise(function(t){setTimeout(t,e)})}function eP(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function $I(){if(typeof AbortController=="function")return new AbortController}var l6=function(e){Xo(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Ov&&((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}(tu),_c=new l6,u6=function(e){Xo(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Ov&&((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}(tu),wp=new u6;function c6(e){return Math.min(1e3*Math.pow(2,e),3e4)}function $v(e){return typeof(e==null?void 0:e.cancel)=="function"}var RI=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Sp(e){return e instanceof RI}var kI=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,v){i=p,s=v});var u=function(v){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(v),a==null||a(),i(v))},l=function(v){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(v),a==null||a(),s(v))},d=function(){return new Promise(function(v){a=v,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 v;try{v=t.fn()}catch(h){v=Promise.reject(h)}o=function(b){if(!r.isResolved&&(l(new RI(b)),r.abort==null||r.abort(),$v(v)))try{v.cancel()}catch{}},r.isTransportCancelable=$v(v),Promise.resolve(v).then(u).catch(function(h){var b,x;if(!r.isResolved){var g=(b=t.retry)!=null?b:3,m=(x=t.retryDelay)!=null?x:c6,y=typeof m=="function"?m(r.failureCount,h):m,C=g===!0||typeof g=="number"&&r.failureCount"u"&&(s.exact=!0),this.queries.find(function(u){return YE(s,u)})},r.findAll=function(o,a){var i=ma(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(u){return YE(s,u)}):this.queries},r.notify=function(o){var a=this;ut.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;ut.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;ut.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(tu),m6=function(){function e(r){this.options=R({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||jI(),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(nr).catch(nr)):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),Rv().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 kI({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=h6(this.state,n),ut.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function jI(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function h6(e,t){switch(t.type){case"failed":return R({},e,{failureCount:e.failureCount+1});case"pause":return R({},e,{isPaused:!0});case"continue":return R({},e,{isPaused:!1});case"loading":return R({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return R({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return R({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return R({},e,t.state);default:return e}}var g6=function(e){Xo(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 m6({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;ut.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 JE(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return JE(o,a)})},r.notify=function(o){var a=this;ut.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 ut.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(nr)})},Promise.resolve())})},t}(tu);function y6(){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,d=l==null?void 0:l.pageParam,f=(l==null?void 0:l.direction)==="forward",p=(l==null?void 0:l.direction)==="backward",v=((i=t.state.data)==null?void 0:i.pages)||[],h=((s=t.state.data)==null?void 0:s.pageParams)||[],b=$I(),x=b==null?void 0:b.signal,g=h,m=!1,y=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},C=function(A,D,L,B){return g=B?[D].concat(g):[].concat(g,[D]),B?[L].concat(A):[].concat(A,[L])},O=function(A,D,L,B){if(m)return Promise.reject("Cancelled");if(typeof L>"u"&&!D&&A.length)return Promise.resolve(A);var M={queryKey:t.queryKey,signal:x,pageParam:L,meta:t.meta},N=y(M),q=Promise.resolve(N).then(function(W){return C(A,L,W,B)});if($v(N)){var K=q;K.cancel=N.cancel}return q},S;if(!v.length)S=O([]);else if(f){var P=typeof d<"u",E=P?d:tP(t.options,v);S=O(v,P,E)}else if(p){var $=typeof d<"u",k=$?d:b6(t.options,v);S=O(v,$,k,!0)}else(function(){g=[];var I=typeof t.options.getNextPageParam>"u",A=u&&v[0]?u(v[0],0,v):!0;S=A?O([],I,h[0]):Promise.resolve(C([],h[0],v[0]));for(var D=function(M){S=S.then(function(N){var q=u&&v[M]?u(v[M],M,v):!0;if(q){var K=I?h[M]:tP(t.options,N);return O(N,I,K)}return Promise.resolve(C(N,h[M],v[M]))})},L=1;L"u"&&(d.revert=!0);var f=ut.batch(function(){return i.queryCache.findAll(u).map(function(p){return p.cancel(d)})});return Promise.all(f).then(nr).catch(nr)},t.invalidateQueries=function(n,o,a){var i,s,u,l=this,d=ma(n,o,a),f=d[0],p=d[1],v=R({},f,{active:(i=(s=f.refetchActive)!=null?s:f.active)!=null?i:!0,inactive:(u=f.refetchInactive)!=null?u:!1});return ut.batch(function(){return l.queryCache.findAll(f).forEach(function(h){h.invalidate()}),l.refetchQueries(v,p)})},t.refetchQueries=function(n,o,a){var i=this,s=ma(n,o,a),u=s[0],l=s[1],d=ut.batch(function(){return i.queryCache.findAll(u).map(function(p){return p.fetch(void 0,R({},l,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),f=Promise.all(d).then(nr);return l!=null&&l.throwOnError||(f=f.catch(nr)),f},t.fetchQuery=function(n,o,a){var i=xp(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(nr).catch(nr)},t.fetchInfiniteQuery=function(n,o,a){var i=xp(n,o,a);return i.behavior=y6(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(nr).catch(nr)},t.cancelMutations=function(){var n=this,o=ut.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(nr).catch(nr)},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 Ca(n)===Ca(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 Ev(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return Ca(n)===Ca(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 Ev(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=R({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=Kx(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:R({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),x6=function(e){Xo(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),rP(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return E0(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return E0(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&&nP(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(d){i.trackedProps.includes(d)||i.trackedProps.push(d)};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(R({},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(nr)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(Ov||this.currentResult.isStale||!O0(this.options.staleTime))){var a=EI(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,!(Ov||this.options.enabled===!1||!O0(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||_c.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,d=this.currentResultOptions,f=o!==i,p=f?o.state:this.currentQueryInitialState,v=f?this.currentResult:this.previousQueryResult,h=o.state,b=h.dataUpdatedAt,x=h.error,g=h.errorUpdatedAt,m=h.isFetching,y=h.status,C=!1,O=!1,S;if(a.optimisticResults){var P=this.hasListeners(),E=!P&&rP(o,a),$=P&&nP(o,i,a,s);(E||$)&&(m=!0,b||(y="loading"))}if(a.keepPreviousData&&!h.dataUpdateCount&&(v!=null&&v.isSuccess)&&y!=="error")S=v.data,b=v.dataUpdatedAt,y=v.status,C=!0;else if(a.select&&typeof h.data<"u")if(u&&h.data===(l==null?void 0:l.data)&&a.select===this.selectFn)S=this.selectResult;else try{this.selectFn=a.select,S=a.select(h.data),a.structuralSharing!==!1&&(S=Pv(u==null?void 0:u.data,S)),this.selectResult=S,this.selectError=null}catch(j){Rv().error(j),this.selectError=j}else S=h.data;if(typeof a.placeholderData<"u"&&typeof S>"u"&&(y==="loading"||y==="idle")){var k;if(u!=null&&u.isPlaceholderData&&a.placeholderData===(d==null?void 0:d.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=Pv(u==null?void 0:u.data,k)),this.selectError=null}catch(j){Rv().error(j),this.selectError=j}typeof k<"u"&&(y="success",S=k,O=!0)}this.selectError&&(x=this.selectError,S=this.selectResult,g=Date.now(),y="error");var T={status:y,isLoading:y==="loading",isSuccess:y==="success",isError:y==="error",isIdle:y==="idle",data:S,dataUpdatedAt:b,error:x,errorUpdatedAt:g,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>p.dataUpdateCount||h.errorUpdateCount>p.errorUpdateCount,isFetching:m,isRefetching:m&&y!=="loading",isLoadingError:y==="error"&&h.dataUpdatedAt===0,isPlaceholderData:O,isPreviousData:C,isRefetchError:y==="error"&&h.dataUpdatedAt!==0,isStale:Qx(o,a),refetch:this.refetch,remove:this.remove};return T},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(d){var f=d,p=o[f]!==a[f],v=l==null?void 0:l.some(function(b){return b===d}),h=u==null?void 0:u.some(function(b){return b===d});return p&&!h&&(!l||v)})},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,!i6(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(R({},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"&&!Sp(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;ut.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}(tu);function w6(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rP(e,t){return w6(e,t)||e.state.dataUpdatedAt>0&&E0(e,t,t.refetchOnMount)}function E0(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Qx(e,t)}return!1}function nP(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Qx(e,r)}function Qx(e,t){return e.isStaleByTime(t.staleTime)}var S6=function(e){Xo(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,R({},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:jI(),a=R({},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;ut.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}(tu),O6=ic.unstable_batchedUpdates;ut.setBatchNotifyFunction(O6);var C6=console;f6(C6);var oP=te.createContext(void 0),II=te.createContext(!1);function AI(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=oP),window.ReactQueryClientContext):oP}var Rn=function(){var t=te.useContext(AI(te.useContext(II)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},E6=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;te.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=AI(o);return te.createElement(II.Provider,{value:o},te.createElement(i.Provider,{value:r},a))};function P6(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var $6=te.createContext(P6()),R6=function(){return te.useContext($6)};function MI(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function ru(e,t,r){var n=te.useRef(!1),o=te.useState(0),a=o[1],i=n6(e,t,r),s=Rn(),u=te.useRef();u.current?u.current.setOptions(i):u.current=new S6(s,i);var l=u.current.getCurrentResult();te.useEffect(function(){n.current=!0;var f=u.current.subscribe(ut.batchCalls(function(){n.current&&a(function(p){return p+1})}));return function(){n.current=!1,f()}},[]);var d=te.useCallback(function(f,p){u.current.mutate(f,p).catch(nr)},[]);if(l.error&&MI(void 0,u.current.options.useErrorBoundary,[l.error]))throw l.error;return R({},l,{mutate:d,mutateAsync:l.mutate})}function k6(e,t){var r=te.useRef(!1),n=te.useState(0),o=n[1],a=Rn(),i=R6(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=ut.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=ut.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=ut.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=te.useState(function(){return new t(a,s)}),l=u[0],d=l.getOptimisticResult(s);if(te.useEffect(function(){r.current=!0,i.clearReset();var f=l.subscribe(ut.batchCalls(function(){r.current&&o(function(p){return p+1})}));return l.updateResult(),function(){r.current=!1,f()}},[i,l]),te.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&d.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(d.isError&&!i.isReset()&&!d.isFetching&&MI(s.suspense,s.useErrorBoundary,[d.error,l.getCurrentQuery()]))throw d.error;return s.notifyOnChangeProps==="tracked"&&(d=l.trackResult(d,s)),d}function Ya(e,t,r){var n=xp(e,t,r);return k6(n,x6)}/** - * @remix-run/router v1.15.3 - * - * 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 P0(){return P0=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function FI(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aP(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 Ad(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 iP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(iP||(iP={}));function T6(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Ad(t):t,o=Xx(n.pathname||"/",r);if(o==null)return null;let a=NI(e);j6(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("/")&&($t(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=La([n,u.relativePath]),d=r.concat(u);a.children&&a.children.length>0&&($t(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),NI(a.children,t,d,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:D6(l,a.index),routesMeta:d})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let u of LI(a.path))o(a,i,u)}),t}function LI(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=LI(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 j6(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:B6(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const I6=/^:[\w-]+$/,A6=3,M6=2,F6=1,N6=10,L6=-2,sP=e=>e==="*";function D6(e,t){let r=e.split("/"),n=r.length;return r.some(sP)&&(n+=L6),t&&(n+=M6),r.filter(o=>!sP(o)).reduce((o,a)=>o+(I6.test(a)?A6:a===""?F6:N6),n)}function B6(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 z6(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{let{paramName:p,isOptional:v}=d;if(p==="*"){let b=s[f]||"";i=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const h=s[f];return v&&!h?l[p]=void 0:l[p]=(h||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function V6(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),FI(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 U6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return FI(!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 Xx(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 W6(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Ad(e):e;return{pathname:r?r.startsWith("/")?r:q6(r,t):t,search:K6(n),hash:Q6(o)}}function q6(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 by(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 H6(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Yx(e,t){let r=H6(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Jx(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Ad(e):(o=P0({},e),$t(!o.pathname||!o.pathname.includes("?"),by("?","pathname","search",o)),$t(!o.pathname||!o.pathname.includes("#"),by("#","pathname","hash",o)),$t(!o.search||!o.search.includes("#"),by("#","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=W6(o,s),l=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||d)&&(u.pathname+="/"),u}const La=e=>e.join("/").replace(/\/\/+/g,"/"),G6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function X6(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const DI=["post","put","patch","delete"];new Set(DI);const Y6=["get",...DI];new Set(Y6);/** - * React Router v6.22.3 - * - * 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 ld(){return ld=Object.assign?Object.assign.bind():function(e){for(var t=1;tsd(e,t),[t,e])}function zI(e){c.useContext(Yo).static||c.useLayoutEffect(e)}function Co(){let{isDataRoute:e}=c.useContext(Oo);return e?m9():t9()}function t9(){Ja()||$t(!1);let e=c.useContext(Zx),{basename:t,future:r,navigator:n}=c.useContext(Yo),{matches:o}=c.useContext(Oo),{pathname:a}=Ht(),i=JSON.stringify(Yx(o,r.v7_relativeSplatPath)),s=c.useRef(!1);return zI(()=>{s.current=!0}),c.useCallback(function(l,d){if(d===void 0&&(d={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=Jx(l,JSON.parse(i),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:La([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,i,a,e])}const r9=c.createContext(null);function n9(e){let t=c.useContext(Oo).outlet;return t&&c.createElement(r9.Provider,{value:e},t)}function uh(){let{matches:e}=c.useContext(Oo),t=e[e.length-1];return t?t.params:{}}function ew(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=c.useContext(Yo),{matches:o}=c.useContext(Oo),{pathname:a}=Ht(),i=JSON.stringify(Yx(o,n.v7_relativeSplatPath));return c.useMemo(()=>Jx(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function o9(e,t){return a9(e,t)}function a9(e,t,r,n){Ja()||$t(!1);let{navigator:o}=c.useContext(Yo),{matches:a}=c.useContext(Oo),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=Ht(),d;if(t){var f;let x=typeof t=="string"?Ad(t):t;u==="/"||(f=x.pathname)!=null&&f.startsWith(u)||$t(!1),d=x}else d=l;let p=d.pathname||"/",v=p;if(u!=="/"){let x=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let h=T6(e,{pathname:v}),b=c9(h&&h.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:La([u,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:La([u,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,r,n);return t&&b?c.createElement(lh.Provider,{value:{location:ld({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:kv.Pop}},b):b}function i9(){let e=v9(),t=X6(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 c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),r?c.createElement("pre",{style:o},r):null,null)}const s9=c.createElement(i9,null);class l9 extends c.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?c.createElement(Oo.Provider,{value:this.props.routeContext},c.createElement(BI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function u9(e){let{routeContext:t,match:r,children:n}=e,o=c.useContext(Zx);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),c.createElement(Oo.Provider,{value:t},n)}function c9(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 d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id]));d>=0||$t(!1),i=i.slice(0,Math.min(i.length,d+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((d,f,p)=>{let v,h=!1,b=null,x=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||s9,u&&(l<0&&p===0?(h9("route-fallback",!1),h=!0,x=null):l===p&&(h=!0,x=f.route.hydrateFallbackElement||null)));let g=t.concat(i.slice(0,p+1)),m=()=>{let y;return v?y=b:h?y=x:f.route.Component?y=c.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,c.createElement(u9,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:r!=null},children:y})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?c.createElement(l9,{location:r.location,revalidation:r.revalidation,component:b,error:v,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var VI=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(VI||{}),Tv=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}(Tv||{});function d9(e){let t=c.useContext(Zx);return t||$t(!1),t}function f9(e){let t=c.useContext(J6);return t||$t(!1),t}function p9(e){let t=c.useContext(Oo);return t||$t(!1),t}function UI(e){let t=p9(),r=t.matches[t.matches.length-1];return r.route.id||$t(!1),r.route.id}function v9(){var e;let t=c.useContext(BI),r=f9(Tv.UseRouteError),n=UI(Tv.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function m9(){let{router:e}=d9(VI.UseNavigateStable),t=UI(Tv.UseNavigateStable),r=c.useRef(!1);return zI(()=>{r.current=!0}),c.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ld({fromRouteId:t},a)))},[e,t])}const lP={};function h9(e,t,r){!t&&!lP[e]&&(lP[e]=!0)}function g9(e){let{to:t,replace:r,state:n,relative:o}=e;Ja()||$t(!1);let{future:a,static:i}=c.useContext(Yo),{matches:s}=c.useContext(Oo),{pathname:u}=Ht(),l=Co(),d=Jx(t,Yx(s,a.v7_relativeSplatPath),u,o==="path"),f=JSON.stringify(d);return c.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:o}),[l,f,o,r,n]),null}function y9(e){return n9(e.context)}function ar(e){$t(!1)}function b9(e){let{basename:t="/",children:r=null,location:n,navigationType:o=kv.Pop,navigator:a,static:i=!1,future:s}=e;Ja()&&$t(!1);let u=t.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:u,navigator:a,static:i,future:ld({v7_relativeSplatPath:!1},s)}),[u,s,a,i]);typeof n=="string"&&(n=Ad(n));let{pathname:d="/",search:f="",hash:p="",state:v=null,key:h="default"}=n,b=c.useMemo(()=>{let x=Xx(d,u);return x==null?null:{location:{pathname:x,search:f,hash:p,state:v,key:h},navigationType:o}},[u,d,f,p,v,h,o]);return b==null?null:c.createElement(Yo.Provider,{value:l},c.createElement(lh.Provider,{children:r,value:b}))}function Ai(e){let{children:t,location:r}=e;return o9($0(t),r)}new Promise(()=>{});function $0(e,t){t===void 0&&(t=[]);let r=[];return c.Children.forEach(e,(n,o)=>{if(!c.isValidElement(n))return;let a=[...t,o];if(n.type===c.Fragment){r.push.apply(r,$0(n.props.children,a));return}n.type!==ar&&$t(!1),!n.props.index||!n.props.children||$t(!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=$0(n.props.children,a)),r.push(i)}),r}/** - * React Router DOM v6.22.3 - * - * 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 R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function x9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w9(e,t){return e.button===0&&(!t||t==="_self")&&!x9(e)}const S9=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],O9="6";try{window.__reactRouterVersion=O9}catch{}const C9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",E9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qn=c.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:u,to:l,preventScrollReset:d,unstable_viewTransition:f}=t,p=_9(t,S9),{basename:v}=c.useContext(Yo),h,b=!1;if(typeof l=="string"&&E9.test(l)&&(h=l,C9))try{let y=new URL(window.location.href),C=l.startsWith("//")?new URL(y.protocol+l):new URL(l),O=Xx(C.pathname,v);C.origin===y.origin&&O!=null?l=O+C.search+C.hash:b=!0}catch{}let x=Z6(l,{relative:o}),g=P9(l,{replace:i,state:s,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:f});function m(y){n&&n(y),y.defaultPrevented||g(y)}return c.createElement("a",R0({},p,{href:h||x,onClick:b||a?n:m,ref:r,target:u}))});var uP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uP||(uP={}));var cP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cP||(cP={}));function P9(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=Co(),l=Ht(),d=ew(e,{relative:i});return c.useCallback(f=>{if(w9(f,r)){f.preventDefault();let p=n!==void 0?n:aP(l)===aP(d);u(e,{replace:p,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,u,d,n,o,r,e,a,i,s])}var $9="RaStore",R9=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}},k0=R9(),k9=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat($9).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),d=s.newValue?dP(s.newValue):void 0;Object.keys(o).forEach(function(f){o[f]&&o[f].key===l&&(d===null?o[f].callback(void 0):o[f].callback(d??void 0))})}};return{setup:function(){if(k0){var s=Ro().getItem("".concat(r,".version"));if(s&&s!==e){var u=Ro();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}Ro().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){k0&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=Ro().getItem("".concat(r,".").concat(s));return l==null?u:dP(l)},setItem:function(s,u){u===void 0?Ro().removeItem("".concat(r,".").concat(s)):Ro().setItem("".concat(r,".").concat(s),JSON.stringify(u)),a(s,u)},removeItem:function(s){Ro().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var u=Ro();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var d=l.substring(n+1);a(d,void 0)}})},reset:function(){var s=Ro();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]}}}},dP=function(e){try{return JSON.parse(e)}catch{return e}},T9=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}(),j9=new T9,Ro=function(){return k0?window.localStorage:j9},I9=typeof wa=="object"&&wa&&wa.Object===Object&&wa,WI=I9,A9=WI,M9=typeof self=="object"&&self&&self.Object===Object&&self,F9=A9||M9||Function("return this")(),Jn=F9,N9=Jn,L9=N9.Symbol,nu=L9,fP=nu,qI=Object.prototype,D9=qI.hasOwnProperty,B9=qI.toString,Uu=fP?fP.toStringTag:void 0;function z9(e){var t=D9.call(e,Uu),r=e[Uu];try{e[Uu]=void 0;var n=!0}catch{}var o=B9.call(e);return n&&(t?e[Uu]=r:delete e[Uu]),o}var V9=z9,U9=Object.prototype,W9=U9.toString;function q9(e){return W9.call(e)}var H9=q9,pP=nu,G9=V9,K9=H9,Q9="[object Null]",X9="[object Undefined]",vP=pP?pP.toStringTag:void 0;function Y9(e){return e==null?e===void 0?X9:Q9:vP&&vP in Object(e)?G9(e):K9(e)}var ou=Y9;function J9(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kn=J9,Z9=ou,e8=kn,t8="[object AsyncFunction]",r8="[object Function]",n8="[object GeneratorFunction]",o8="[object Proxy]";function a8(e){if(!e8(e))return!1;var t=Z9(e);return t==r8||t==n8||t==t8||t==o8}var tw=a8,i8=Jn,s8=i8["__core-js_shared__"],l8=s8,_y=l8,mP=function(){var e=/[^.]+$/.exec(_y&&_y.keys&&_y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function u8(e){return!!mP&&mP in e}var c8=u8,d8=Function.prototype,f8=d8.toString;function p8(e){if(e!=null){try{return f8.call(e)}catch{}try{return e+""}catch{}}return""}var HI=p8,v8=tw,m8=c8,h8=kn,g8=HI,y8=/[\\^$.*+?()[\]{}|]/g,b8=/^\[object .+?Constructor\]$/,_8=Function.prototype,x8=Object.prototype,w8=_8.toString,S8=x8.hasOwnProperty,O8=RegExp("^"+w8.call(S8).replace(y8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function C8(e){if(!h8(e)||m8(e))return!1;var t=v8(e)?O8:b8;return t.test(g8(e))}var E8=C8;function P8(e,t){return e==null?void 0:e[t]}var $8=P8,R8=E8,k8=$8;function T8(e,t){var r=k8(e,t);return R8(r)?r:void 0}var ss=T8,j8=ss,I8=function(){try{var e=j8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),GI=I8,hP=GI;function A8(e,t,r){t=="__proto__"&&hP?hP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var rw=A8;function M8(e,t){return e===t||e!==e&&t!==t}var au=M8,F8=rw,N8=au,L8=Object.prototype,D8=L8.hasOwnProperty;function B8(e,t,r){var n=e[t];(!(D8.call(e,t)&&N8(n,r))||r===void 0&&!(t in e))&&F8(e,t,r)}var nw=B8,z8=Array.isArray,Zn=z8;function V8(e){return e!=null&&typeof e=="object"}var Jo=V8,U8=ou,W8=Jo,q8="[object Symbol]";function H8(e){return typeof e=="symbol"||W8(e)&&U8(e)==q8}var ch=H8,G8=Zn,K8=ch,Q8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X8=/^\w*$/;function Y8(e,t){if(G8(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||K8(e)?!0:X8.test(e)||!Q8.test(e)||t!=null&&e in Object(t)}var ow=Y8,J8=ss,Z8=J8(Object,"create"),dh=Z8,gP=dh;function eV(){this.__data__=gP?gP(null):{},this.size=0}var tV=eV;function rV(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var nV=rV,oV=dh,aV="__lodash_hash_undefined__",iV=Object.prototype,sV=iV.hasOwnProperty;function lV(e){var t=this.__data__;if(oV){var r=t[e];return r===aV?void 0:r}return sV.call(t,e)?t[e]:void 0}var uV=lV,cV=dh,dV=Object.prototype,fV=dV.hasOwnProperty;function pV(e){var t=this.__data__;return cV?t[e]!==void 0:fV.call(t,e)}var vV=pV,mV=dh,hV="__lodash_hash_undefined__";function gV(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=mV&&t===void 0?hV:t,this}var yV=gV,bV=tV,_V=nV,xV=uV,wV=vV,SV=yV;function iu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var DV=LV,BV=fh;function zV(e,t){var r=this.__data__,n=BV(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var VV=zV,UV=EV,WV=IV,qV=FV,HV=DV,GV=VV;function su(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),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,p=!0,v=r&f7?new l7:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e<=uq}var vw=cq,dq=ou,fq=vw,pq=Jo,vq="[object Arguments]",mq="[object Array]",hq="[object Boolean]",gq="[object Date]",yq="[object Error]",bq="[object Function]",_q="[object Map]",xq="[object Number]",wq="[object Object]",Sq="[object RegExp]",Oq="[object Set]",Cq="[object String]",Eq="[object WeakMap]",Pq="[object ArrayBuffer]",$q="[object DataView]",Rq="[object Float32Array]",kq="[object Float64Array]",Tq="[object Int8Array]",jq="[object Int16Array]",Iq="[object Int32Array]",Aq="[object Uint8Array]",Mq="[object Uint8ClampedArray]",Fq="[object Uint16Array]",Nq="[object Uint32Array]",pt={};pt[Rq]=pt[kq]=pt[Tq]=pt[jq]=pt[Iq]=pt[Aq]=pt[Mq]=pt[Fq]=pt[Nq]=!0;pt[vq]=pt[mq]=pt[Pq]=pt[hq]=pt[$q]=pt[gq]=pt[yq]=pt[bq]=pt[_q]=pt[xq]=pt[wq]=pt[Sq]=pt[Oq]=pt[Cq]=pt[Eq]=!1;function Lq(e){return pq(e)&&fq(e.length)&&!!pt[dq(e)]}var Dq=Lq;function Bq(e){return function(t){return e(t)}}var wh=Bq,Av={exports:{}};Av.exports;(function(e,t){var r=WI,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})(Av,Av.exports);var mw=Av.exports,zq=Dq,Vq=wh,RP=mw,kP=RP&&RP.isTypedArray,Uq=kP?Vq(kP):zq,hw=Uq,Wq=Y7,qq=_h,Hq=Zn,Gq=xh,Kq=mh,Qq=hw,Xq=Object.prototype,Yq=Xq.hasOwnProperty;function Jq(e,t){var r=Hq(e),n=!r&&qq(e),o=!r&&!n&&Gq(e),a=!r&&!n&&!o&&Qq(e),i=r||n||o||a,s=i?Wq(e.length,String):[],u=s.length;for(var l in e)(t||Yq.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Kq(l,u)))&&s.push(l);return s}var sA=Jq,Zq=Object.prototype;function eH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Zq;return e===r}var gw=eH;function tH(e,t){return function(r){return e(t(r))}}var lA=tH,rH=lA,nH=rH(Object.keys,Object),oH=nH,aH=gw,iH=oH,sH=Object.prototype,lH=sH.hasOwnProperty;function uH(e){if(!aH(e))return iH(e);var t=[];for(var r in Object(e))lH.call(e,r)&&r!="constructor"&&t.push(r);return t}var cH=uH,dH=tw,fH=vw;function pH(e){return e!=null&&fH(e.length)&&!dH(e)}var Sh=pH,vH=sA,mH=cH,hH=Sh;function gH(e){return hH(e)?vH(e):mH(e)}var Oh=gH,yH=oA,bH=pw,_H=Oh;function xH(e){return yH(e,_H,bH)}var uA=xH,TP=uA,wH=1,SH=Object.prototype,OH=SH.hasOwnProperty;function CH(e,t,r,n,o,a){var i=r&wH,s=TP(e),u=s.length,l=TP(t),d=l.length;if(u!=d&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:OH.call(t,p)))return!1}var v=a.get(e),h=a.get(t);if(v&&h)return v==t&&h==e;var b=!0;a.set(e,t),a.set(t,e);for(var x=i;++f0){if(++t>=HK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var XK=QK,YK=qK,JK=XK,ZK=JK(YK),CA=ZK,eQ=Sw,tQ=OA,rQ=CA;function nQ(e,t){return rQ(tQ(e,t,eQ),e+"")}var Eh=nQ,oQ=au,aQ=Sh,iQ=mh,sQ=kn;function lQ(e,t,r){if(!sQ(r))return!1;var n=typeof t;return(n=="number"?aQ(r)&&iQ(t,r.length):n=="string"&&t in r)?oQ(r[t],e):!1}var EA=lQ,uQ=Eh,cQ=EA;function dQ(e){return uQ(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&&cQ(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 SQ(e){var t=e.basename,r=e.children,n=e.history,o=c.useState({action:n.action,location:n.location}),a=o[0],i=o[1];return c.useLayoutEffect(function(){return n.listen(i)},[n]),c.createElement(b9,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var PA=c.createContext(""),OQ=function(e){var t=e.children,r=e.basename;return c.createElement(PA.Provider,{value:r},t)},CQ=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=Ja(),i=a?EQ:PQ;return c.createElement(OQ,{basename:a?n:""},c.createElement(i,{basename:n,history:t},o))},EQ=function(e){var t=e.children;return c.createElement(c.Fragment,null,t)},PQ=function(e){var t=e.children,r=e.history,n=c.useMemo(function(){return r||xQ()},[r]);return c.createElement(SQ,{history:n},t)},Za=function(){return c.useContext(PA)},ei=function(){var e=Za();return c.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return so("".concat(e,"/").concat(r));case"create":return so("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?so("".concat(e,"/").concat(r)):so("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?so("".concat(e,"/").concat(r)):so("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},so=function(e){return e.replace("//","/")},xc=function(){return xc=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),kA="%[a-f0-9]{2}",a$=new RegExp("("+kA+")|([^%]+?)","gi"),i$=new RegExp("("+kA+")+","gi");function N0(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([],N0(r),N0(n))}function HQ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(a$)||[],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)]},XQ=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=>(C,O)=>{const S=C.length;return O===void 0||m.skipNull&&O===null||m.skipEmptyString&&O===""?C:O===null?[...C,[d(y,m),"[",S,"]"].join("")]:[...C,[d(y,m),"[",d(S,m),"]=",d(O,m)].join("")]};case"bracket":return y=>(C,O)=>O===void 0||m.skipNull&&O===null||m.skipEmptyString&&O===""?C:O===null?[...C,[d(y,m),"[]"].join("")]:[...C,[d(y,m),"[]=",d(O,m)].join("")];case"colon-list-separator":return y=>(C,O)=>O===void 0||m.skipNull&&O===null||m.skipEmptyString&&O===""?C:O===null?[...C,[d(y,m),":list="].join("")]:[...C,[d(y,m),":list=",d(O,m)].join("")];case"comma":case"separator":case"bracket-separator":{const y=m.arrayFormat==="bracket-separator"?"[]=":"=";return C=>(O,S)=>S===void 0||m.skipNull&&S===null||m.skipEmptyString&&S===""?O:(S=S===null?"":S,O.length===0?[[d(C,m),y,d(S,m)].join("")]:[[O,d(S,m)].join(m.arrayFormatSeparator)])}default:return y=>(C,O)=>O===void 0||m.skipNull&&O===null||m.skipEmptyString&&O===""?C:O===null?[...C,d(y,m)]:[...C,[d(y,m),"=",d(O,m)].join("")]}}function u(m){let y;switch(m.arrayFormat){case"index":return(C,O,S)=>{if(y=/\[(\d*)\]$/.exec(C),C=C.replace(/\[\d*\]$/,""),!y){S[C]=O;return}S[C]===void 0&&(S[C]={}),S[C][y[1]]=O};case"bracket":return(C,O,S)=>{if(y=/(\[\])$/.exec(C),C=C.replace(/\[\]$/,""),!y){S[C]=O;return}if(S[C]===void 0){S[C]=[O];return}S[C]=[].concat(S[C],O)};case"colon-list-separator":return(C,O,S)=>{if(y=/(:list)$/.exec(C),C=C.replace(/:list$/,""),!y){S[C]=O;return}if(S[C]===void 0){S[C]=[O];return}S[C]=[].concat(S[C],O)};case"comma":case"separator":return(C,O,S)=>{const P=typeof O=="string"&&O.includes(m.arrayFormatSeparator),E=typeof O=="string"&&!P&&f(O,m).includes(m.arrayFormatSeparator);O=E?f(O,m):O;const $=P||E?O.split(m.arrayFormatSeparator).map(k=>f(k,m)):O===null?O:f(O,m);S[C]=$};case"bracket-separator":return(C,O,S)=>{const P=/(\[\])$/.test(C);if(C=C.replace(/\[\]$/,""),!P){S[C]=O&&f(O,m);return}const E=O===null?[]:O.split(m.arrayFormatSeparator).map($=>f($,m));if(S[C]===void 0){S[C]=E;return}S[C]=[].concat(S[C],E)};default:return(C,O,S)=>{if(S[C]===void 0){S[C]=O;return}S[C]=[].concat(S[C],O)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function d(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,C)=>Number(y)-Number(C)).map(y=>m[y]):m}function v(m){const y=m.indexOf("#");return y!==-1&&(m=m.slice(0,y)),m}function h(m){let y="";const C=m.indexOf("#");return C!==-1&&(y=m.slice(C)),y}function b(m){m=v(m);const y=m.indexOf("?");return y===-1?"":m.slice(y+1)}function x(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 g(m,y){y=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},y),l(y.arrayFormatSeparator);const C=u(y),O=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return O;for(const S of m.split("&")){if(S==="")continue;let[P,E]=n(y.decode?S.replace(/\+/g," "):S,"=");E=E===void 0?null:["comma","separator","bracket-separator"].includes(y.arrayFormat)?E:f(E,y),C(f(P,y),E,O)}for(const S of Object.keys(O)){const P=O[S];if(typeof P=="object"&&P!==null)for(const E of Object.keys(P))P[E]=x(P[E],y);else O[S]=x(P,y)}return y.sort===!1?O:(y.sort===!0?Object.keys(O).sort():Object.keys(O).sort(y.sort)).reduce((S,P)=>{const E=O[P];return E&&typeof E=="object"&&!Array.isArray(E)?S[P]=p(E):S[P]=E,S},Object.create(null))}e.extract=b,e.parse=g,e.stringify=(m,y)=>{if(!m)return"";y=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},y),l(y.arrayFormatSeparator);const C=E=>y.skipNull&&a(m[E])||y.skipEmptyString&&m[E]==="",O=s(y),S={};for(const E of Object.keys(m))C(E)||(S[E]=m[E]);const P=Object.keys(S);return y.sort!==!1&&P.sort(y.sort),P.map(E=>{const $=m[E];return $===void 0?"":$===null?d(E,y):Array.isArray($)?$.length===0&&y.arrayFormat==="bracket-separator"?d(E,y)+"[]":$.reduce(O(E),[]).join("&"):d(E,y)+"="+d($,y)}).filter(E=>E.length>0).join("&")},e.parseUrl=(m,y)=>{y=Object.assign({decode:!0},y);const[C,O]=n(m,"#");return Object.assign({url:C.split("?")[0]||"",query:g(b(m),y)},y&&y.parseFragmentIdentifier&&O?{fragmentIdentifier:f(O,y)}:{})},e.stringifyUrl=(m,y)=>{y=Object.assign({encode:!0,strict:!0,[i]:!0},y);const C=v(m.url).split("?")[0]||"",O=e.extract(m.url),S=e.parse(O,{sort:!1}),P=Object.assign(S,m.query);let E=e.stringify(P,y);E&&(E=`?${E}`);let $=h(m.url);return m.fragmentIdentifier&&($=`#${y[i]?d(m.fragmentIdentifier,y):m.fragmentIdentifier}`),`${C}${E}${$}`},e.pick=(m,y,C)=>{C=Object.assign({parseFragmentIdentifier:!0,[i]:!1},C);const{url:O,query:S,fragmentIdentifier:P}=e.parseUrl(m,C);return e.stringifyUrl({url:O,query:o(S,y),fragmentIdentifier:P},C)},e.exclude=(m,y,C)=>{const O=Array.isArray(y)?S=>!y.includes(S):(S,P)=>!y(S,P);return e.pick(m,O,C)}})(Xi);var Nv=function(){return Nv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new WQ(u&&u.message||a,o,u)):Promise.resolve({status:o,headers:i,body:s,json:u})})},ZQ=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},TA=function(e,t){var r;return t===void 0&&(t=[]),ZQ(e)?Object.assign.apply(Object,YQ([{}],Object.keys(e).map(function(n){return TA(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},jA={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,d){this.fn=u,this.context=l,this.once=d||!1}function a(u,l,d,f,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new o(d,f||u,p),h=r?r+l:l;return u._events[h]?u._events[h].fn?u._events[h]=[u._events[h],v]:u._events[h].push(v):(u._events[h]=v,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=[],d,f;if(this._eventsCount===0)return l;for(f in d=this._events)t.call(d,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(d)):l},s.prototype.listeners=function(l){var d=r?r+l:l,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var p=0,v=f.length,h=new Array(v);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},aX=["getList","getMany","getManyReference"],Tn=function(){var e=c.useContext(RA)||IA,t=AA(),r=c.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=te.useRef(e.isMutating()>0),o=te.useState(r.current||n.current),a=o[0],i=o[1];return te.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(ut.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(ut.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),a},eo=function(){var e=Rn();return c.useCallback(function(){e.invalidateQueries()},[e])},MA=function(e,t,r){var n=t.id,o=t.meta,a=Tn();return Ya([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)},Ys=function(){return Ys=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?FA(s,t-1,r,n,o):pX(o,s):n||(o[o.length]=s)}return o}var Pw=FA;function mX(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var NA=PX;function $X(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=VX){var l=t?null:BX(e);if(l)return zX(l);i=!1,o=DX,u=new FX}else u=t?[]:s;e:for(;++n=t||P<0||f&&E>=a}function g(){var S=Ey();if(x(S))return m(S);s=setTimeout(g,b(S))}function m(S){return s=void 0,p&&n?v(S):(n=o=void 0,i)}function y(){s!==void 0&&clearTimeout(s),l=0,n=u=o=s=void 0}function C(){return s===void 0?i:m(Ey())}function O(){var S=Ey(),P=x(S);if(n=arguments,o=this,u=S,P){if(s===void 0)return h(u);if(f)return clearTimeout(s),s=setTimeout(g,t),v(u)}return s===void 0&&(s=setTimeout(g,t)),i}return O.cancel=y,O.flush=C,O}var CY=OY;const BA=Rt(CY);function p$(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var zA=function(e,t){if(p$(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(", ")))},V0=function(){return V0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(f=e.current)[l].apply(f,Df(Df([],p,!1),[d],!1)):a.apply(void 0,p)};return e.current.length>0?(i=e.current)[l].apply(i,Df(Df([],s,!1),[d],!1)):a.apply(void 0,s)}},[]),o=c.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return o},Dv=function(){return Dv=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&&EJ(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":iM(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}(),qJ=WJ,HJ=typeof window>"u"?wa:window;function GJ(e,t){if(e instanceof HJ[t])return!0;switch(typeof e>"u"?"undefined":iM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var $y,x$;function KJ(){return x$||(x$=1,$y=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}}),$y}var QJ=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(v){s=!0,u=v}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(x){var g=o._headers.indexOf(x);return g===-1&&(o._headers.push(x),g=o._headers.indexOf(x)),g};i=function(x){var g=[],m=function(A){return g.push(A.map(function(D){return D??""}))},y=function(){return new Array(o._headers.length).fill(null)},C={},O=y(),S=!0,P=!1,E=void 0;try{for(var $=x[Symbol.iterator](),k;!(S=(k=$.next()).done);S=!0){var T=k.value,j=s(T.item);if(O[j]!=null&&(m(O),O=y()),C[j]=C[j]||0,o._options.fillTopRow&&C[j]0&&m(O),a=a.concat(o._checkRows(g))};var u=!0,l=!1,d=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,h=o._handler.check(v,o._options.mainPathItem,v,r);i(h)}}catch(b){l=!0,d=b}finally{try{!u&&f.return&&f.return()}finally{if(l)throw d}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),w$(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 v=[f.item,p];o.push(v.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))),w$(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}(),ZJ=JJ,eZ=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},tZ=eZ,O$=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},C$=ZJ,E$=tZ,rZ=aM,nZ=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:rZ,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":O$(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":O$(u))==="object"){var l=Object.keys(e),d=Object.keys(u),f=d.every(function(h){return l.includes(h)});d.length>0&&f?r=u:t=u}else t=u}else return new E$(new C$(e));var p=Object.assign({},e,r),v=new C$(p);return t?new Promise(function(h,b){v.parse(t,function(x,g){if(n)return n(x,g);if(x)return b(x);if(b)return h(g)})}):new E$};const oZ=Rt(nZ),aZ=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 iZ=function(e,t,r,n){return oZ(e,function(o,a){return aZ(a,n)})};const sZ=iZ;var lZ=function(e){return function(t,r,n){return e.getMany(n,{ids:uZ(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},uZ=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)},[])))},bs=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 bs([],u,!0);var l=u.indexOf(s);return l>-1?bs(bs([],u.slice(0,l),!0),u.slice(l+1),!0):bs(bs([],u,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},cZ=[],dZ=bh,fZ=yw,pZ=1,vZ=2;function mZ(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&&!P&&C(k)},[v.search]);var T=c.useCallback(function(K){S.current&&(O.current?O.current=m$(O.current,K):(O.current=m$(k,K),setTimeout(function(){o?g(O.current):h({search:"?".concat(Xi.stringify(Da(Da({},O.current),{filter:JSON.stringify(O.current.filter),displayedFilters:JSON.stringify(O.current.displayedFilters)})))},{state:{_scrollToTop:K.type===B0}}),O.current=void 0},0)))},P$(P$([],E,!0),[h],!1)),j=c.useCallback(function(K){return T({type:UA,payload:K})},[T]),I=c.useCallback(function(K){return T({type:B0,payload:K})},[T]),A=c.useCallback(function(K){return T({type:WA,payload:K})},[T]),D=k.filter||k$,L=k.displayedFilters||k$,B=BA(function(K,W){T({type:z0,payload:{filter:qa(K),displayedFilters:W}})},r),M=c.useCallback(function(K,W,le){return le===void 0&&(le=!0),le?B(K,W):T({type:z0,payload:{filter:qa(K),displayedFilters:W}})},[T]),N=c.useCallback(function(K){T({type:HA,payload:K})},[T]),q=c.useCallback(function(K,W){T({type:qA,payload:{filterName:K,defaultValue:W}})},[T]);return[Da({displayedFilters:L,filterValues:D,requestSignature:E},k),{changeParams:T,setPage:I,setPerPage:A,setSort:j,setFilters:M,hideFilter:N,showFilter:q}]},See=["page","perPage","sort","order","filter","displayedFilters"],$$=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Oee=function(e){var t=e.search,r=_ee(Xi.parse(t),function(n,o){return See.indexOf(o)!==-1});return $$(r,"filter"),$$(r,"displayedFilters"),r},Cee=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Eee=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:Cee(r)?Da({},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),Da(Da({},i),{page:R$(i.page,1),perPage:R$(i.perPage,10)})},R$=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},k$={},Pee={field:"id",order:Mi},T$={},jw=c.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});jw.displayName="ListContext";var dM=c.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),$ee=function(e){return c.useMemo(function(){return $h(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};dM.displayName="ListFilterContext";var fM=c.createContext({sort:null,setSort:null,resource:null}),Ree=function(e){return c.useMemo(function(){return $h(e,["sort","setSort","resource"])},[e.sort,e.setSort])};fM.displayName="ListSortContext";var Iw=c.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});Iw.displayName="ListPaginationContext";var kee=function(e){return c.useMemo(function(){return $h(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])},Aw=function(e){var t=e.value,r=e.children;return c.createElement(jw.Provider,{value:t},c.createElement(dM.Provider,{value:$ee(t)},c.createElement(fM.Provider,{value:Ree(t)},c.createElement(Iw.Provider,{value:kee(t)},r))))},Fi=function(){return Fi=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&&c.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=he(),C=at(),O=wee({debounce:r,disableSyncWithLocation:o,filterDefaultValues:u,perPage:d,resource:x,sort:h,storeKey:b}),S=O[0],P=O[1],E=Nd(x),$=E[0],k=E[1],T=lX(x,{pagination:{page:S.page,perPage:S.perPage},sort:{field:S.sort,order:S.order},filter:Fi(Fi({},S.filter),s),meta:g},Fi({keepPreviousData:!0,retry:!1,onError:function(W){return C((W==null?void 0:W.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:W==null?void 0:W.message}})}},m)),j=T.data,I=T.pageInfo,A=T.total,D=T.error,L=T.isLoading,B=T.isFetching,M=T.refetch;c.useEffect(function(){if(S.page<=0||!B&&S.page>1&&(j==null||(j==null?void 0:j.length)===0)){P.setPage(1);return}if(A!=null){var W=Math.ceil(A/S.perPage)||1;!B&&S.page>W&&P.setPage(W)}},[B,S.page,S.perPage,j,P,A]);var N=c.useMemo(function(){return{field:S.sort,order:S.order}},[S.sort,S.order]),q=hu(),K=y("ra.page.list",{name:q(x,2)});return{sort:N,data:j,defaultTitle:K,displayedFilters:S.displayedFilters,error:D,exporter:i,filter:s,filterValues:S.filterValues,hideFilter:P.hideFilter,isFetching:B,isLoading:L,onSelect:k.select,onToggleItem:k.toggle,onUnselectItems:k.clearSelection,page:S.page,perPage:S.perPage,refetch:M,resource:x,selectedIds:$,setFilters:P.setFilters,setPage:P.setPage,setPerPage:P.setPerPage,setSort:P.setSort,showFilter:P.showFilter,total:A,hasNextPage:I?I.hasNextPage:A!=null?S.page*S.perPage1}},Iee={field:"id",order:Mi},Aee=["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"],Ji=function(e){return Object.keys(e).filter(function(t){return!Aee.includes(t)}).reduce(function(t,r){var n;return Fi(Fi({},t),(n={},n[r]=e[r],n))},{})},Mee=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?[]:Bf(Bf([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Bf(Bf([],u,!0),[t],!1)})},[a,t,r]);return[i,s]},Lee=function(e,t){var r=mr("".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=c.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]},Js=function(){return Js=Object.assign||function(e){for(var t,r=1,n=arguments.length;rDe(Oe,L.field)?L.order==="ASC"?1:-1:De(de,L.field)1,hideFilter:re,isFetching:m,isLoading:O,onSelect:K.select,onToggleItem:K.toggle,onUnselectItems:K.clearSelection,page:T,perPage:I,resource:void 0,refetch:Dee,selectedIds:q,setFilters:Z,setPage:j,setPerPage:A,setSort:M,showFilter:oe,total:E==null?void 0:E.total}},Bee={},yr=function(e){var t=c.useContext(jw);return c.useMemo(function(){return ls({},e!=null?zee(e):{},t)},[t,e])},zee=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,d=e.isLoading,f=e.onSelect,p=e.onToggleItem,v=e.onUnselectItems,h=e.page,b=e.perPage,x=e.refetch,g=e.resource,m=e.selectedIds,y=e.setFilters,C=e.setPage,O=e.setPerPage,S=e.setSort,P=e.showFilter,E=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:u,isFetching:l,isLoading:d,onSelect:f,onToggleItem:p,onUnselectItems:v,page:h,perPage:b,refetch:x,resource:g,selectedIds:m,setFilters:y,setPage:C,setPerPage:O,setSort:S,showFilter:P,total:E}},Vee=function(e){var t=c.useContext(Iw);return c.useMemo(function(){return ls({},e!=null?Uee(e):{},t)},[t,e])},Uee=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}},vM=function(e){var t=Nd(e),r=t[1].unselect;return c.useCallback(function(n){r(n)},[r])},mM=function(e){var t=Nd(e),r=t[1].clearSelection;return c.useCallback(function(){r()},[r])},Zs=function(){return Zs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1,setSort:P,showFilter:N,total:Y}},Ld=e=>e.type==="checkbox",el=e=>e instanceof Date,xr=e=>e==null;const hM=e=>typeof e=="object";var qt=e=>!xr(e)&&!Array.isArray(e)&&hM(e)&&!el(e),gM=e=>qt(e)&&e.target?Ld(e.target)?e.target.checked:e.target.value:e,Hee=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yM=(e,t)=>e.has(Hee(t)),Gee=e=>{const t=e.constructor&&e.constructor.prototype;return qt(t)&&t.hasOwnProperty("isPrototypeOf")},Mw=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vt(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(!(Mw&&(e instanceof Blob||e instanceof FileList))&&(r||qt(e)))if(t=r?[]:{},!r&&!Gee(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Vt(e[n]));else return e;return t}var vu=e=>Array.isArray(e)?e.filter(Boolean):[],lt=e=>e===void 0,ye=(e,t,r)=>{if(!t||!qt(e))return r;const n=vu(t.split(/[,[\].]+?/)).reduce((o,a)=>xr(o)?o:o[a],e);return lt(n)||n===e?lt(e[t])?r:e[t]:n},Un=e=>typeof e=="boolean";const zv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},hn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},bM=te.createContext(null),jn=()=>te.useContext(bM),_M=e=>{const{children:t,...r}=e;return te.createElement(bM.Provider,{value:r},t)};var xM=(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]!==hn.all&&(t._proxyFormState[i]=!n||hn.all),r&&(r[i]=!0),e[i]}});return o},Ir=e=>qt(e)&&!Object.keys(e).length,wM=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Ir(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||hn.all))},Hr=e=>Array.isArray(e)?e:[e],SM=(e,t,r)=>!e||!t||e===t||Hr(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function kh(e){const t=te.useRef(e);t.current=e,te.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function mu(e){const t=jn(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=te.useState(r._formState),u=te.useRef(!0),l=te.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=te.useRef(o);return d.current=o,kh({disabled:n,next:f=>u.current&&SM(d.current,f.name,a)&&wM(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),te.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),xM(i,r,l.current,!1)}var vo=e=>typeof e=="string",OM=(e,t,r,n,o)=>vo(e)?(n&&t.watch.add(e),ye(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),ye(r,a))):(n&&(t.watchAll=!0),r);function CM(e){const t=jn(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=te.useRef(n);s.current=n,kh({disabled:a,subject:r._subjects.values,next:d=>{SM(s.current,d.name,i)&&l(Vt(OM(s.current,r._names,d.values||r._formValues,!1,o)))}});const[u,l]=te.useState(r._getWatch(n,o));return te.useEffect(()=>r._removeUnmounted()),u}var Fw=e=>/^\w*$/.test(e),EM=e=>vu(e.replace(/["|']|\]/g,"").split(/\.|\[/)),rt=(e,t,r)=>{let n=-1;const o=Fw(t)?[t]:EM(t),a=o.length,i=a-1;for(;++n{const d=o._options.shouldUnregister||a,f=(p,v)=>{const h=ye(o._fields,p);h&&(h._f.mount=v)};if(f(r,!0),d){const p=Vt(ye(o._options.defaultValues,r));rt(o._defaultValues,r,p),lt(ye(o._formValues,r))&&rt(o._formValues,r,p)}return()=>{(i?d&&!o._state.action:d)?o.unregister(r):f(r,!1)}},[r,o,i,a]),te.useEffect(()=>{ye(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:ye(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:s,...Un(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:te.useCallback(d=>l.current.onChange({target:{value:gM(d),name:r},type:zv.CHANGE}),[r]),onBlur:te.useCallback(()=>l.current.onBlur({target:{value:ye(o._formValues,r),name:r},type:zv.BLUR}),[r,o]),ref:d=>{const f=ye(o._fields,r);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:p=>d.setCustomValidity(p),reportValidity:()=>d.reportValidity()})}},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ye(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!ye(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ye(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ye(u.validatingFields,r)},error:{enumerable:!0,get:()=>ye(u.errors,r)}})}}var Qee=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},la=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},Ry=(e,t,r={})=>r.shouldFocus||lt(r.shouldFocus)?r.focusName||`${e}.${lt(r.focusIndex)?t:r.focusIndex}.`:"",Oc=e=>({isOnSubmit:!e||e===hn.onSubmit,isOnBlur:e===hn.onBlur,isOnChange:e===hn.onChange,isOnAll:e===hn.all,isOnTouch:e===hn.onTouched}),W0=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const fl=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const a=ye(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;fl(s,t)}else qt(s)&&fl(s,t)}}};var PM=(e,t,r)=>{const n=vu(ye(e,r));return rt(n,"root",t[r]),rt(e,r,n),e},Nw=e=>e.type==="file",Ea=e=>typeof e=="function",Vv=e=>{if(!Mw)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Cp=e=>vo(e),Lw=e=>e.type==="radio",Uv=e=>e instanceof RegExp;const A$={value:!1,isValid:!1},M$={value:!0,isValid:!0};var $M=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&&!lt(e[0].attributes.value)?lt(e[0].value)||e[0].value===""?M$:{value:e[0].value,isValid:!0}:M$:A$}return A$};const F$={isValid:!1,value:null};var RM=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,F$):F$;function N$(e,t,r="validate"){if(Cp(e)||Array.isArray(e)&&e.every(Cp)||Un(e)&&!e)return{type:r,message:Cp(e)?e:"",ref:t}}var _s=e=>qt(e)&&!Uv(e)?e:{value:e,message:""},q0=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:u,minLength:l,min:d,max:f,pattern:p,validate:v,name:h,valueAsNumber:b,mount:x,disabled:g}=e._f,m=ye(t,h);if(!x||g)return{};const y=i?i[0]:a,C=j=>{n&&y.reportValidity&&(y.setCustomValidity(Un(j)?"":j||""),y.reportValidity())},O={},S=Lw(a),P=Ld(a),E=S||P,$=(b||Nw(a))&<(a.value)&<(m)||Vv(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,k=Qee.bind(null,h,r,O),T=(j,I,A,D=ko.maxLength,L=ko.minLength)=>{const B=j?I:A;O[h]={type:j?D:L,message:B,ref:a,...k(j?D:L,B)}};if(o?!Array.isArray(m)||!m.length:s&&(!E&&($||xr(m))||Un(m)&&!m||P&&!$M(i).isValid||S&&!RM(i).isValid)){const{value:j,message:I}=Cp(s)?{value:!!s,message:s}:_s(s);if(j&&(O[h]={type:ko.required,message:I,ref:y,...k(ko.required,I)},!r))return C(I),O}if(!$&&(!xr(d)||!xr(f))){let j,I;const A=_s(f),D=_s(d);if(!xr(m)&&!isNaN(m)){const L=a.valueAsNumber||m&&+m;xr(A.value)||(j=L>A.value),xr(D.value)||(I=Lnew Date(new Date().toDateString()+" "+q),M=a.type=="time",N=a.type=="week";vo(A.value)&&m&&(j=M?B(m)>B(A.value):N?m>A.value:L>new Date(A.value)),vo(D.value)&&m&&(I=M?B(m)+j.value,D=!xr(I.value)&&m.length<+I.value;if((A||D)&&(T(A,j.message,I.message),!r))return C(O[h].message),O}if(p&&!$&&vo(m)){const{value:j,message:I}=_s(p);if(Uv(j)&&!m.match(j)&&(O[h]={type:ko.pattern,message:I,ref:a,...k(ko.pattern,I)},!r))return C(I),O}if(v){if(Ea(v)){const j=await v(m,t),I=N$(j,y);if(I&&(O[h]={...I,...k(ko.validate,I.message)},!r))return C(I.message),O}else if(qt(v)){let j={};for(const I in v){if(!Ir(j)&&!r)break;const A=N$(await v[I](m,t),y,I);A&&(j={...A,...k(I,A.message)},C(A.message),r&&(O[h]=j))}if(!Ir(j)&&(O[h]={ref:y,...j},!r))return O}}return C(!0),O},ky=(e,t)=>[...e,...Hr(t)],Ty=e=>Array.isArray(e)?e.map(()=>{}):void 0;function jy(e,t,r){return[...e.slice(0,t),...Hr(r),...e.slice(t)]}var Iy=(e,t,r)=>Array.isArray(e)?(lt(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Ay=(e,t)=>[...Hr(t),...Hr(e)];function Xee(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return vu(n).length?n:[]}var My=(e,t)=>lt(t)?[]:Xee(e,Hr(t).sort((r,n)=>r-n)),Fy=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function Yee(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function Zee(e){const t=jn(),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:a}=e,[i,s]=te.useState(r._getFieldArray(n)),u=te.useRef(r._getFieldArray(n).map(la)),l=te.useRef(i),d=te.useRef(n),f=te.useRef(!1);d.current=n,l.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),kh({next:({values:O,name:S})=>{if(S===d.current||!S){const P=ye(O,d.current);Array.isArray(P)&&(s(P),u.current=P.map(la))}},subject:r._subjects.array});const p=te.useCallback(O=>{f.current=!0,r._updateFieldArray(n,O)},[r,n]),v=(O,S)=>{const P=Hr(Vt(O)),E=ky(r._getFieldArray(n),P);r._names.focus=Ry(n,E.length-1,S),u.current=ky(u.current,P.map(la)),p(E),s(E),r._updateFieldArray(n,E,ky,{argA:Ty(O)})},h=(O,S)=>{const P=Hr(Vt(O)),E=Ay(r._getFieldArray(n),P);r._names.focus=Ry(n,0,S),u.current=Ay(u.current,P.map(la)),p(E),s(E),r._updateFieldArray(n,E,Ay,{argA:Ty(O)})},b=O=>{const S=My(r._getFieldArray(n),O);u.current=My(u.current,O),p(S),s(S),r._updateFieldArray(n,S,My,{argA:O})},x=(O,S,P)=>{const E=Hr(Vt(S)),$=jy(r._getFieldArray(n),O,E);r._names.focus=Ry(n,O,P),u.current=jy(u.current,O,E.map(la)),p($),s($),r._updateFieldArray(n,$,jy,{argA:O,argB:Ty(S)})},g=(O,S)=>{const P=r._getFieldArray(n);Fy(P,O,S),Fy(u.current,O,S),p(P),s(P),r._updateFieldArray(n,P,Fy,{argA:O,argB:S},!1)},m=(O,S)=>{const P=r._getFieldArray(n);Iy(P,O,S),Iy(u.current,O,S),p(P),s(P),r._updateFieldArray(n,P,Iy,{argA:O,argB:S},!1)},y=(O,S)=>{const P=Vt(S),E=L$(r._getFieldArray(n),O,P);u.current=[...E].map(($,k)=>!$||k===O?la():u.current[k]),p(E),s([...E]),r._updateFieldArray(n,E,L$,{argA:O,argB:P},!0,!1)},C=O=>{const S=Hr(Vt(O));u.current=S.map(la),p([...S]),s([...S]),r._updateFieldArray(n,[...S],P=>P,{},!0,!1)};return te.useEffect(()=>{if(r._state.action=!1,W0(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!Oc(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(O=>{const S=ye(O.errors,n),P=ye(r._formState.errors,n);(P?!S&&P.type||S&&(P.type!==S.type||P.message!==S.message):S&&S.type)&&(S?rt(r._formState.errors,n,S):At(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const O=ye(r._fields,n);O&&O._f&&!(Oc(r._options.reValidateMode).isOnSubmit&&Oc(r._options.mode).isOnSubmit)&&q0(O,r._formValues,r._options.criteriaMode===hn.all,r._options.shouldUseNativeValidation,!0).then(S=>!Ir(S)&&r._subjects.state.next({errors:PM(r._formState.errors,S,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&fl(r._fields,(O,S)=>{if(r._names.focus&&S.startsWith(r._names.focus)&&O.focus)return O.focus(),1}),r._names.focus="",r._updateValid(),f.current=!1},[i,n,r]),te.useEffect(()=>(!ye(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||a)&&r.unregister(n)}),[n,r,o,a]),{swap:te.useCallback(g,[p,n,r]),move:te.useCallback(m,[p,n,r]),prepend:te.useCallback(h,[p,n,r]),append:te.useCallback(v,[p,n,r]),remove:te.useCallback(b,[p,n,r]),insert:te.useCallback(x,[p,n,r]),update:te.useCallback(y,[p,n,r]),replace:te.useCallback(C,[p,n,r]),fields:te.useMemo(()=>i.map((O,S)=>({...O,[o]:u.current[S]||la()})),[i,o])}}var Ny=()=>{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=[]}}},Wv=e=>xr(e)||!hM(e);function Pi(e,t){if(Wv(e)||Wv(t))return e===t;if(el(e)&&el(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(el(a)&&el(i)||qt(a)&&qt(i)||Array.isArray(a)&&Array.isArray(i)?!Pi(a,i):a!==i)return!1}}return!0}var kM=e=>e.type==="select-multiple",ete=e=>Lw(e)||Ld(e),Ly=e=>Vv(e)&&e.isConnected,TM=e=>{for(const t in e)if(Ea(e[t]))return!0;return!1};function qv(e,t={}){const r=Array.isArray(e);if(qt(e)||r)for(const n in e)Array.isArray(e[n])||qt(e[n])&&!TM(e[n])?(t[n]=Array.isArray(e[n])?[]:{},qv(e[n],t[n])):xr(e[n])||(t[n]=!0);return t}function jM(e,t,r){const n=Array.isArray(e);if(qt(e)||n)for(const o in e)Array.isArray(e[o])||qt(e[o])&&!TM(e[o])?lt(t)||Wv(r[o])?r[o]=Array.isArray(e[o])?qv(e[o],[]):{...qv(e[o])}:jM(e[o],xr(t)?{}:t[o],r[o]):r[o]=!Pi(e[o],t[o]);return r}var zf=(e,t)=>jM(e,t,qv(t)),IM=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>lt(e)?e:t?e===""?NaN:e&&+e:r&&vo(e)?new Date(e):n?n(e):e;function Dy(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Nw(t)?t.files:Lw(t)?RM(e.refs).value:kM(t)?[...t.selectedOptions].map(({value:r})=>r):Ld(t)?$M(e.refs).value:IM(lt(t.value)?e.ref.value:t.value,e)}var tte=(e,t,r,n)=>{const o={};for(const a of e){const i=ye(t,a);i&&rt(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Wu=e=>lt(e)?e:Uv(e)?e.source:qt(e)?Uv(e.value)?e.value.source:e.value:e,rte=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function D$(e,t,r){const n=ye(e,r);if(n||Fw(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=ye(t,a),s=ye(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 nte=(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,ote=(e,t)=>!vu(ye(e,t)).length&&At(e,t);const ate={mode:hn.onSubmit,reValidateMode:hn.onChange,shouldFocusError:!0};function ite(e={}){let t={...ate,...e},r={submitCount:0,isDirty:!1,isLoading:Ea(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=qt(t.defaultValues)||qt(t.values)?Vt(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Vt(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 d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Ny(),array:Ny(),state:Ny()},p=Oc(t.mode),v=Oc(t.reValidateMode),h=t.criteriaMode===hn.all,b=F=>z=>{clearTimeout(l),l=setTimeout(F,z)},x=async F=>{if(d.isValid||F){const z=t.resolver?Ir((await E()).errors):await k(n,!0);z!==r.isValid&&f.state.next({isValid:z})}},g=(F,z)=>{(d.isValidating||d.validatingFields)&&((F||Array.from(s.mount)).forEach(U=>{U&&(z?rt(r.validatingFields,U,z):At(r.validatingFields,U))}),f.state.next({validatingFields:r.validatingFields,isValidating:!Ir(r.validatingFields)}))},m=(F,z=[],U,X,J=!0,Q=!0)=>{if(X&&U){if(i.action=!0,Q&&Array.isArray(ye(n,F))){const ue=U(ye(n,F),X.argA,X.argB);J&&rt(n,F,ue)}if(Q&&Array.isArray(ye(r.errors,F))){const ue=U(ye(r.errors,F),X.argA,X.argB);J&&rt(r.errors,F,ue),ote(r.errors,F)}if(d.touchedFields&&Q&&Array.isArray(ye(r.touchedFields,F))){const ue=U(ye(r.touchedFields,F),X.argA,X.argB);J&&rt(r.touchedFields,F,ue)}d.dirtyFields&&(r.dirtyFields=zf(o,a)),f.state.next({name:F,isDirty:j(F,z),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else rt(a,F,z)},y=(F,z)=>{rt(r.errors,F,z),f.state.next({errors:r.errors})},C=F=>{r.errors=F,f.state.next({errors:r.errors,isValid:!1})},O=(F,z,U,X)=>{const J=ye(n,F);if(J){const Q=ye(a,F,lt(U)?ye(o,F):U);lt(Q)||X&&X.defaultChecked||z?rt(a,F,z?Q:Dy(J._f)):D(F,Q),i.mount&&x()}},S=(F,z,U,X,J)=>{let Q=!1,ue=!1;const ge={name:F},Me=!!(ye(n,F)&&ye(n,F)._f.disabled);if(!U||X){d.isDirty&&(ue=r.isDirty,r.isDirty=ge.isDirty=j(),Q=ue!==ge.isDirty);const Le=Me||Pi(ye(o,F),z);ue=!!(!Me&&ye(r.dirtyFields,F)),Le||Me?At(r.dirtyFields,F):rt(r.dirtyFields,F,!0),ge.dirtyFields=r.dirtyFields,Q=Q||d.dirtyFields&&ue!==!Le}if(U){const Le=ye(r.touchedFields,F);Le||(rt(r.touchedFields,F,U),ge.touchedFields=r.touchedFields,Q=Q||d.touchedFields&&Le!==U)}return Q&&J&&f.state.next(ge),Q?ge:{}},P=(F,z,U,X)=>{const J=ye(r.errors,F),Q=d.isValid&&Un(z)&&r.isValid!==z;if(e.delayError&&U?(u=b(()=>y(F,U)),u(e.delayError)):(clearTimeout(l),u=null,U?rt(r.errors,F,U):At(r.errors,F)),(U?!Pi(J,U):J)||!Ir(X)||Q){const ue={...X,...Q&&Un(z)?{isValid:z}:{},errors:r.errors,name:F};r={...r,...ue},f.state.next(ue)}},E=async F=>{g(F,!0);const z=await t.resolver(a,t.context,tte(F||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return g(F),z},$=async F=>{const{errors:z}=await E(F);if(F)for(const U of F){const X=ye(z,U);X?rt(r.errors,U,X):At(r.errors,U)}else r.errors=z;return z},k=async(F,z,U={valid:!0})=>{for(const X in F){const J=F[X];if(J){const{_f:Q,...ue}=J;if(Q){const ge=s.array.has(Q.name);g([X],!0);const Me=await q0(J,a,h,t.shouldUseNativeValidation&&!z,ge);if(g([X]),Me[Q.name]&&(U.valid=!1,z))break;!z&&(ye(Me,Q.name)?ge?PM(r.errors,Me,Q.name):rt(r.errors,Q.name,Me[Q.name]):At(r.errors,Q.name))}ue&&await k(ue,z,U)}}return U.valid},T=()=>{for(const F of s.unMount){const z=ye(n,F);z&&(z._f.refs?z._f.refs.every(U=>!Ly(U)):!Ly(z._f.ref))&&ne(F)}s.unMount=new Set},j=(F,z)=>(F&&z&&rt(a,F,z),!Pi(K(),o)),I=(F,z,U)=>OM(F,s,{...i.mount?a:lt(z)?o:vo(F)?{[F]:z}:z},U,z),A=F=>vu(ye(i.mount?a:o,F,e.shouldUnregister?ye(o,F,[]):[])),D=(F,z,U={})=>{const X=ye(n,F);let J=z;if(X){const Q=X._f;Q&&(!Q.disabled&&rt(a,F,IM(z,Q)),J=Vv(Q.ref)&&xr(z)?"":z,kM(Q.ref)?[...Q.ref.options].forEach(ue=>ue.selected=J.includes(ue.value)):Q.refs?Ld(Q.ref)?Q.refs.length>1?Q.refs.forEach(ue=>(!ue.defaultChecked||!ue.disabled)&&(ue.checked=Array.isArray(J)?!!J.find(ge=>ge===ue.value):J===ue.value)):Q.refs[0]&&(Q.refs[0].checked=!!J):Q.refs.forEach(ue=>ue.checked=ue.value===J):Nw(Q.ref)?Q.ref.value="":(Q.ref.value=J,Q.ref.type||f.values.next({name:F,values:{...a}})))}(U.shouldDirty||U.shouldTouch)&&S(F,J,U.shouldTouch,U.shouldDirty,!0),U.shouldValidate&&q(F)},L=(F,z,U)=>{for(const X in z){const J=z[X],Q=`${F}.${X}`,ue=ye(n,Q);(s.array.has(F)||!Wv(J)||ue&&!ue._f)&&!el(J)?L(Q,J,U):D(Q,J,U)}},B=(F,z,U={})=>{const X=ye(n,F),J=s.array.has(F),Q=Vt(z);rt(a,F,Q),J?(f.array.next({name:F,values:{...a}}),(d.isDirty||d.dirtyFields)&&U.shouldDirty&&f.state.next({name:F,dirtyFields:zf(o,a),isDirty:j(F,Q)})):X&&!X._f&&!xr(Q)?L(F,Q,U):D(F,Q,U),W0(F,s)&&f.state.next({...r}),f.values.next({name:i.mount?F:void 0,values:{...a}})},M=async F=>{i.mount=!0;const z=F.target;let U=z.name,X=!0;const J=ye(n,U),Q=()=>z.type?Dy(J._f):gM(F),ue=ge=>{X=Number.isNaN(ge)||ge===ye(a,U,ge)};if(J){let ge,Me;const Le=Q(),Pe=F.type===zv.BLUR||F.type===zv.FOCUS_OUT,xe=!rte(J._f)&&!t.resolver&&!ye(r.errors,U)&&!J._f.deps||nte(Pe,ye(r.touchedFields,U),r.isSubmitted,v,p),qe=W0(U,s,Pe);rt(a,U,Le),Pe?(J._f.onBlur&&J._f.onBlur(F),u&&u(0)):J._f.onChange&&J._f.onChange(F);const ot=S(U,Le,Pe,!1),tt=!Ir(ot)||qe;if(!Pe&&f.values.next({name:U,type:F.type,values:{...a}}),xe)return d.isValid&&x(),tt&&f.state.next({name:U,...qe?{}:ot});if(!Pe&&qe&&f.state.next({...r}),t.resolver){const{errors:Te}=await E([U]);if(ue(Le),X){const Fe=D$(r.errors,n,U),me=D$(Te,n,Fe.name||U);ge=me.error,U=me.name,Me=Ir(Te)}}else g([U],!0),ge=(await q0(J,a,h,t.shouldUseNativeValidation))[U],g([U]),ue(Le),X&&(ge?Me=!1:d.isValid&&(Me=await k(n,!0)));X&&(J._f.deps&&q(J._f.deps),P(U,Me,ge,ot))}},N=(F,z)=>{if(ye(r.errors,z)&&F.focus)return F.focus(),1},q=async(F,z={})=>{let U,X;const J=Hr(F);if(t.resolver){const Q=await $(lt(F)?F:J);U=Ir(Q),X=F?!J.some(ue=>ye(Q,ue)):U}else F?(X=(await Promise.all(J.map(async Q=>{const ue=ye(n,Q);return await k(ue&&ue._f?{[Q]:ue}:ue)}))).every(Boolean),!(!X&&!r.isValid)&&x()):X=U=await k(n);return f.state.next({...!vo(F)||d.isValid&&U!==r.isValid?{}:{name:F},...t.resolver||!F?{isValid:U}:{},errors:r.errors}),z.shouldFocus&&!X&&fl(n,N,F?J:s.mount),X},K=F=>{const z={...o,...i.mount?a:{}};return lt(F)?z:vo(F)?ye(z,F):F.map(U=>ye(z,U))},W=(F,z)=>({invalid:!!ye((z||r).errors,F),isDirty:!!ye((z||r).dirtyFields,F),isTouched:!!ye((z||r).touchedFields,F),isValidating:!!ye((z||r).validatingFields,F),error:ye((z||r).errors,F)}),le=F=>{F&&Hr(F).forEach(z=>At(r.errors,z)),f.state.next({errors:F?r.errors:{}})},Y=(F,z,U)=>{const X=(ye(n,F,{_f:{}})._f||{}).ref;rt(r.errors,F,{...z,ref:X}),f.state.next({name:F,errors:r.errors,isValid:!1}),U&&U.shouldFocus&&X&&X.focus&&X.focus()},G=(F,z)=>Ea(F)?f.values.subscribe({next:U=>F(I(void 0,z),U)}):I(F,z,!0),ne=(F,z={})=>{for(const U of F?Hr(F):s.mount)s.mount.delete(U),s.array.delete(U),z.keepValue||(At(n,U),At(a,U)),!z.keepError&&At(r.errors,U),!z.keepDirty&&At(r.dirtyFields,U),!z.keepTouched&&At(r.touchedFields,U),!z.keepIsValidating&&At(r.validatingFields,U),!t.shouldUnregister&&!z.keepDefaultValue&&At(o,U);f.values.next({values:{...a}}),f.state.next({...r,...z.keepDirty?{isDirty:j()}:{}}),!z.keepIsValid&&x()},ve=({disabled:F,name:z,field:U,fields:X,value:J})=>{if(Un(F)){const Q=F?void 0:lt(J)?Dy(U?U._f:ye(X,z)._f):J;rt(a,z,Q),S(z,Q,!1,!1,!0)}},ie=(F,z={})=>{let U=ye(n,F);const X=Un(z.disabled);return rt(n,F,{...U||{},_f:{...U&&U._f?U._f:{ref:{name:F}},name:F,mount:!0,...z}}),s.mount.add(F),U?ve({field:U,disabled:z.disabled,name:F,value:z.value}):O(F,!0,z.value),{...X?{disabled:z.disabled}:{},...t.progressive?{required:!!z.required,min:Wu(z.min),max:Wu(z.max),minLength:Wu(z.minLength),maxLength:Wu(z.maxLength),pattern:Wu(z.pattern)}:{},name:F,onChange:M,onBlur:M,ref:J=>{if(J){ie(F,z),U=ye(n,F);const Q=lt(J.value)&&J.querySelectorAll&&J.querySelectorAll("input,select,textarea")[0]||J,ue=ete(Q),ge=U._f.refs||[];if(ue?ge.find(Me=>Me===Q):Q===U._f.ref)return;rt(n,F,{_f:{...U._f,...ue?{refs:[...ge.filter(Ly),Q,...Array.isArray(ye(o,F))?[{}]:[]],ref:{type:Q.type,name:F}}:{ref:Q}}}),O(F,!1,void 0,Q)}else U=ye(n,F,{}),U._f&&(U._f.mount=!1),(t.shouldUnregister||z.shouldUnregister)&&!(yM(s.array,F)&&i.action)&&s.unMount.add(F)}}},re=()=>t.shouldFocusError&&fl(n,N,s.mount),oe=F=>{Un(F)&&(f.state.next({disabled:F}),fl(n,(z,U)=>{let X=F;const J=ye(n,U);J&&Un(J._f.disabled)&&(X||(X=J._f.disabled)),z.disabled=X},0,!1))},Z=(F,z)=>async U=>{let X;U&&(U.preventDefault&&U.preventDefault(),U.persist&&U.persist());let J=Vt(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Q,values:ue}=await E();r.errors=Q,J=ue}else await k(n);if(At(r.errors,"root"),Ir(r.errors)){f.state.next({errors:{}});try{await F(J,U)}catch(Q){X=Q}}else z&&await z({...r.errors},U),re(),setTimeout(re);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ir(r.errors)&&!X,submitCount:r.submitCount+1,errors:r.errors}),X)throw X},ee=(F,z={})=>{ye(n,F)&&(lt(z.defaultValue)?B(F,Vt(ye(o,F))):(B(F,z.defaultValue),rt(o,F,Vt(z.defaultValue))),z.keepTouched||At(r.touchedFields,F),z.keepDirty||(At(r.dirtyFields,F),r.isDirty=z.defaultValue?j(F,Vt(ye(o,F))):j()),z.keepError||(At(r.errors,F),d.isValid&&x()),f.state.next({...r}))},H=(F,z={})=>{const U=F?Vt(F):o,X=Vt(U),J=Ir(F),Q=J?o:X;if(z.keepDefaultValues||(o=U),!z.keepValues){if(z.keepDirtyValues)for(const ue of s.mount)ye(r.dirtyFields,ue)?rt(Q,ue,ye(a,ue)):B(ue,ye(Q,ue));else{if(Mw&<(F))for(const ue of s.mount){const ge=ye(n,ue);if(ge&&ge._f){const Me=Array.isArray(ge._f.refs)?ge._f.refs[0]:ge._f.ref;if(Vv(Me)){const Le=Me.closest("form");if(Le){Le.reset();break}}}}n={}}a=e.shouldUnregister?z.keepDefaultValues?Vt(o):{}:Vt(Q),f.array.next({values:{...Q}}),f.values.next({values:{...Q}})}s={mount:z.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!d.isValid||!!z.keepIsValid||!!z.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:z.keepSubmitCount?r.submitCount:0,isDirty:J?!1:z.keepDirty?r.isDirty:!!(z.keepDefaultValues&&!Pi(F,o)),isSubmitted:z.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:J?[]:z.keepDirtyValues?z.keepDefaultValues&&a?zf(o,a):r.dirtyFields:z.keepDefaultValues&&F?zf(o,F):{},touchedFields:z.keepTouched?r.touchedFields:{},errors:z.keepErrors?r.errors:{},isSubmitSuccessful:z.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},fe=(F,z)=>H(Ea(F)?F(a):F,z);return{control:{register:ie,unregister:ne,getFieldState:W,handleSubmit:Z,setError:Y,_executeSchema:E,_getWatch:I,_getDirty:j,_updateValid:x,_removeUnmounted:T,_updateFieldArray:m,_updateDisabledField:ve,_getFieldArray:A,_reset:H,_resetDefaultValues:()=>Ea(t.defaultValues)&&t.defaultValues().then(F=>{fe(F,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:F=>{r={...r,...F}},_disableForm:oe,_subjects:f,_proxyFormState:d,_setErrors:C,get _fields(){return n},get _formValues(){return a},get _state(){return i},set _state(F){i=F},get _defaultValues(){return o},get _names(){return s},set _names(F){s=F},get _formState(){return r},set _formState(F){r=F},get _options(){return t},set _options(F){t={...t,...F}}},trigger:q,register:ie,handleSubmit:Z,watch:G,setValue:B,getValues:K,reset:fe,resetField:ee,clearErrors:le,unregister:ne,setError:Y,setFocus:(F,z={})=>{const U=ye(n,F),X=U&&U._f;if(X){const J=X.refs?X.refs[0]:X.ref;J.focus&&(J.focus(),z.shouldSelect&&J.select())}},getFieldState:W}}function AM(e={}){const t=te.useRef(),r=te.useRef(),[n,o]=te.useState({isDirty:!1,isValidating:!1,isLoading:Ea(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ea(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ite(e),formState:n});const a=t.current.control;return a._options=e,kh({subject:a._subjects.state,next:i=>{wM(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),te.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),te.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),te.useEffect(()=>{e.values&&!Pi(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[e.values,a]),te.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),te.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()}),te.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=xM(n,a),t.current}var ste=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);o0&&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?P(E):E},{updatedAt:S}),o.setQueriesData([m,"getManyReference"],function(E){return E&&E.data?{data:P(E.data),total:E.total}:E},{updatedAt:S})},b=ru(function(g){var m=g===void 0?{}:g,y=m.resource,C=y===void 0?e:y,O=m.id,S=O===void 0?p.current.id:O,P=m.data,E=P===void 0?p.current.data:P,$=m.meta,k=$===void 0?p.current.meta:$,T=m.previousData,j=T===void 0?p.current.previousData:T;return n.update(C,{id:S,data:E,previousData:j,meta:k}).then(function(I){var A=I.data;return A})},ft(ft({},d),{onMutate:function(g){return B$(void 0,void 0,void 0,function(){var m;return z$(this,function(y){switch(y.label){case 0:return d.onMutate?[4,d.onMutate(g)]:[3,2];case 1:return m=y.sent()||{},[2,ft({snapshot:v.current},m)];case 2:return[2,{snapshot:v.current}]}})})},onError:function(g,m,y){if(m===void 0&&(m={}),(f.current==="optimistic"||f.current==="undoable")&&y.snapshot.forEach(function(C){var O=C[0],S=C[1];o.setQueryData(O,S)}),d.onError)return d.onError(g,m,y)},onSuccess:function(g,m,y){if(m===void 0&&(m={}),f.current==="pessimistic"){var C=m.resource,O=C===void 0?e:C,S=m.id,P=S===void 0?a:S;h({resource:O,id:P,data:g}),d.onSuccess&&d.onSuccess(g,m,y)}},onSettled:function(g,m,y,C){if(y===void 0&&(y={}),(f.current==="optimistic"||f.current==="undoable")&&C.snapshot.forEach(function(O){var S=O[0];o.invalidateQueries(S)}),d.onSettled)return d.onSettled(g,m,y,C)}})),x=function(g,m,y){return g===void 0&&(g=e),m===void 0&&(m={}),y===void 0&&(y={}),B$(void 0,void 0,void 0,function(){var C,O,S,P,E,$,k,T,j,I,A,D,L,B;return z$(this,function(M){switch(M.label){case 0:return C=y.mutationMode,O=y.returnPromise,S=O===void 0?d.returnPromise:O,P=y.onSuccess,E=y.onSettled,$=y.onError,p.current=t,C&&(f.current=C),S&&f.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),f.current==="pessimistic"?S?[2,b.mutateAsync(ft({resource:g},m),{onSuccess:P,onSettled:E,onError:$})]:[2,b.mutate(ft({resource:g},m),{onSuccess:P,onSettled:E,onError:$})]:(k=m.id,T=k===void 0?a:k,j=m.data,I=j===void 0?i:j,A=m.meta,D=A===void 0?s:A,L=o.getQueryData([g,"getOne",{id:String(T),meta:D}]),B=[[g,"getOne",{id:String(T),meta:D}],[g,"getList"],[g,"getInfiniteList"],[g,"getMany"],[g,"getManyReference"]],v.current=B.reduce(function(N,q){return N.concat(o.getQueriesData(q))},[]),[4,Promise.all(v.current.map(function(N){var q=N[0];return o.cancelQueries(q)}))]);case 1:return M.sent(),h({resource:g,id:T,data:I}),P&&setTimeout(function(){return P(ft(ft({},L),I),ft({resource:g},m),{snapshot:v.current})},0),d.onSuccess&&setTimeout(function(){return d.onSuccess(ft(ft({},L),I),ft({resource:g},m),{snapshot:v.current})},0),f.current==="optimistic"?[2,b.mutate(ft({resource:g},m),{onSettled:E,onError:$})]:(ud.once("end",function(N){var q=N.isUndo;q?v.current.forEach(function(K){var W=K[0],le=K[1];o.setQueryData(W,le)}):b.mutate(ft({resource:g},m),{onSettled:E,onError:$})}),[2])}})})};return[Zi(x),b]},Tr=function(){return Tr=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(S):S},{updatedAt:C}),o.setQueriesData([g,"getManyReference"],function(S){if(!S||!S.data)return S;var P=O(S.data),E=P.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?C(O):O},{updatedAt:y}),o.setQueriesData([x,"getManyReference"],function(O){if(!O||!O.data)return O;var S=C(O.data),P=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||h.customRoutesWithLayout.length>0||h.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,d]),[a,l]},$te=function(e){var t=c.useState(e),r=t[0],n=t[1],o=c.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]},Rte=function(e,t){var r=LM(),n=r.register,o=r.unregister;c.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])},kte=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return DM(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},DM=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]},sc=function(e){var t=[],r=[],n=[];return c.Children.forEach(e,function(o){if(c.isValidElement(o)){if(o.type===c.Fragment){var a=sc(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}},Tte=function(e){$Q();var t=ei(),r=Ete(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,d=e.loading,f=e.menu,p=e.requireAuth,v=e.ready,h=e.title,b=c.useState(!p),x=b[0],g=b[1],m=oF();return c.useEffect(function(){p&&m().then(function(){g(!0)}).catch(function(){})},[m,p]),a==="empty"?c.createElement(v,null):a==="loading"||!x?c.createElement(Ai,null,o,c.createElement(ar,{path:"*",element:c.createElement("div",{style:{height:"100vh"}},c.createElement(d,null))})):c.createElement(Ai,null,o,c.createElement(ar,{path:"/*",element:c.createElement("div",null,c.createElement(s,{dashboard:l,menu:f,title:h},c.createElement(Ai,null,n,c.Children.map(i,function(y){return c.createElement(ar,{key:y.props.name,path:"".concat(y.props.name,"/*"),element:y})}),c.createElement(ar,{path:"/",element:l?c.createElement(dre,{authParams:jte,component:l}):i.length>0?c.createElement(g9,{to:t({resource:i[0].props.name,type:"list"})}):null}),c.createElement(ar,{path:"*",element:c.createElement(u,{title:h})}))))}))},jte={params:{route:"dashboard"}},Ite=function(e){var t=e.children;return c.createElement(c.Fragment,null,t)},Ate=function(e){var t=e.catchAll,r=t===void 0?X$:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,u=s===void 0?Ite:s,l=e.loading,d=l===void 0?X$:l,f=e.loginPage,p=f===void 0?!1:f,v=e.authCallbackPage,h=v===void 0?!1:v,b=e.menu,x=e.ready,g=x===void 0?Yte:x,m=e.title,y=m===void 0?"React Admin":m,C=e.requireAuth,O=C===void 0?!1:C;return c.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var S=new Image;S.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),c.createElement(Ai,null,p!==!1&&p!==!0?c.createElement(ar,{path:"/login",element:Q$(p)}):null,h!==!1&&h!==!0?c.createElement(ar,{path:"/auth-callback",element:Q$(h)}):null,c.createElement(ar,{path:"/*",element:c.createElement(Tte,{catchAll:r,dashboard:o,layout:u,loading:d,menu:b,requireAuth:O,ready:g,title:y},n)}))},Q$=function(e){return c.isValidElement(e)?e:c.createElement(e)},X$=function(){return null},BM=function(e){return null};BM.raName="CustomRoutes";var zM={exports:{}},it={};/** @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 Th=60103,jh=60106,Bd=60107,zd=60108,Vd=60114,Ud=60109,Wd=60110,qd=60112,Hd=60113,Bw=60120,Gd=60115,Kd=60116,VM=60121,UM=60122,WM=60117,qM=60129,HM=60131;if(typeof Symbol=="function"&&Symbol.for){var er=Symbol.for;Th=er("react.element"),jh=er("react.portal"),Bd=er("react.fragment"),zd=er("react.strict_mode"),Vd=er("react.profiler"),Ud=er("react.provider"),Wd=er("react.context"),qd=er("react.forward_ref"),Hd=er("react.suspense"),Bw=er("react.suspense_list"),Gd=er("react.memo"),Kd=er("react.lazy"),VM=er("react.block"),UM=er("react.server.block"),WM=er("react.fundamental"),qM=er("react.debug_trace_mode"),HM=er("react.legacy_hidden")}function to(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Th:switch(e=e.type,e){case Bd:case Vd:case zd:case Hd:case Bw:return e;default:switch(e=e&&e.$$typeof,e){case Wd:case qd:case Kd:case Gd:case Ud:return e;default:return t}}case jh:return t}}}var Mte=Ud,Fte=Th,Nte=qd,Lte=Bd,Dte=Kd,Bte=Gd,zte=jh,Vte=Vd,Ute=zd,Wte=Hd;it.ContextConsumer=Wd;it.ContextProvider=Mte;it.Element=Fte;it.ForwardRef=Nte;it.Fragment=Lte;it.Lazy=Dte;it.Memo=Bte;it.Portal=zte;it.Profiler=Vte;it.StrictMode=Ute;it.Suspense=Wte;it.isAsyncMode=function(){return!1};it.isConcurrentMode=function(){return!1};it.isContextConsumer=function(e){return to(e)===Wd};it.isContextProvider=function(e){return to(e)===Ud};it.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Th};it.isForwardRef=function(e){return to(e)===qd};it.isFragment=function(e){return to(e)===Bd};it.isLazy=function(e){return to(e)===Kd};it.isMemo=function(e){return to(e)===Gd};it.isPortal=function(e){return to(e)===jh};it.isProfiler=function(e){return to(e)===Vd};it.isStrictMode=function(e){return to(e)===zd};it.isSuspense=function(e){return to(e)===Hd};it.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bd||e===Vd||e===qM||e===zd||e===Hd||e===Bw||e===HM||typeof e=="object"&&e!==null&&(e.$$typeof===Kd||e.$$typeof===Gd||e.$$typeof===Ud||e.$$typeof===Wd||e.$$typeof===qd||e.$$typeof===WM||e.$$typeof===VM||e[0]===UM)};it.typeOf=to;zM.exports=it;var GM=zM.exports,KM=c.createContext(void 0),cs=function(e){var t=e.children,r=e.value;return r?c.createElement(KM.Provider,{value:r},t):t},zt=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return c.createElement(cs,{value:o},c.createElement(Ai,null,t&&c.createElement(ar,{path:"create/*",element:Vf(t)}),a&&c.createElement(ar,{path:":id/show/*",element:Vf(a)}),r&&c.createElement(ar,{path:":id/*",element:Vf(r)}),n&&c.createElement(ar,{path:"/*",element:Vf(n)}),e.children))},Vf=function(e){return c.isValidElement(e)?e:GM.isValidElementType(e)?c.createElement(e,null):null};zt.raName="Resource";zt.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,d=e.hasEdit,f=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!l,hasEdit:!!r||!!d,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var QM={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()})(wa,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"),d=new RegExp("([A-Z])","g"),f=new RegExp("^_"),p={_apply_rules:function(v,h,b,x){if(x)v=x;else{var g=p.indexOf(b,v.toLowerCase())>-1;if(!g){for(var m=0,y=h.length;m1?p._apply_rules(v,o,r,x):p._apply_rules(v,a,r,b)},camelize:function(v,h){for(var b=v.split("/"),x=0,g=b.length,m,y,C,O;x1?Ba.pluralize(r):Ba.singularize(r))});return a}},Ke=function(e){var t=c.useContext(KM);return e&&e.resource||t},Zo=function(e){var t=Ke(e),r=Ih(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=c.useMemo(function(){return ls({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:u},r[t])},[t,r,o,a,i,s,u]);return l},Ah=function(e){var t=Zo({resource:e}).recordRepresentation;return c.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?De(r,t):c.isValidElement(t)?t:"#".concat(r.id):""},[t])},he=function(){var e=Ow(),t=c.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:Hte},Hte=function(e){return e},XM=function(){var e=he(),t=ZM(),r=Ke();return c.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,Kte({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},Gte="en",YM=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=XM();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:c.createElement("span",null,a({label:r,resource:n,source:t}),o&&c.createElement("span",{"aria-hidden":"true"}," *"))};YM.displayName="FieldTitle";const Sn=c.memo(YM),Kte=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=Qte(a),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=Ba.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 Qte=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){Xte(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},Xte=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 Mh=function(e,t,r){if(e[t]&&!GM.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},Yte=function(){return c.createElement("span",null)},zw=function(e,t){};var Jte=typeof window<"u"?c.useLayoutEffect:c.useEffect,Zi=function(e){var t=c.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return Jte(function(){t.current=e}),c.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,a,t,n,s]);var l=Zi(function(d,f){var p=typeof d=="function"?d(s):d;o(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},Zte=function(e){var t=yh().removeItem;return c.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])},ere=function(e){var t=yh().removeItems;return c.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])},tre=function(){var e=yh().reset;return e},Qd=function(){var e=Qo(),t=Rn(),r=tre(),n=Co(),o=c.useRef(n),a=Ht(),i=c.useRef(a),s=Za(),u=so("".concat(s,"/").concat(sh.loginUrl));c.useEffect(function(){i.current=a,o.current=n},[a,n]);var l=c.useCallback(function(f,p,v){return f===void 0&&(f={}),p===void 0&&(p=u),v===void 0&&(v=!0),e.logout(f).then(function(h){if(h===!1||p===!1){r(),t.clear();return}var b=h||p;if(b!=null&&b.startsWith("http"))return r(),t.clear(),window.location.href=b,b;var x=b.split("?"),g={pathname:x[0]},m={};return v&&i.current&&i.current.pathname&&(m={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),x[1]&&(g.search=x[1]),o.current(g,m),r(),t.clear(),h})},[e,r,u,t]),d=c.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:d},K0=function(){return K0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},Q0=function(){return Q0=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]"),gu(t);var i=rF(t).permissions;if(o)return c.createElement(o,Cc({permissions:i},a));if(n)return n(Cc({permissions:i},a));if(r)return r(Cc({permissions:i},a))};const dre=cre;var nF=function(){var e=Qo(),t=Ht(),r=t.state,n=Co(),o=Za(),a=mA().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=so("".concat(o,"/").concat(sh.afterLoginUrl)),l=c.useCallback(function(f,p){return f===void 0&&(f={}),e.login(f).then(function(v){if(a(),v&&v.hasOwnProperty("redirectTo"))v&&n(v.redirectTo);else{var h=p||i+s||u;n(h)}return v})},[e,n,i,s,a,u]),d=c.useCallback(function(f,p){return a(),n(u),Promise.resolve()},[n,a,u]);return e?l:d},fre="AUTH_LOGIN",pre="AUTH_CHECK",vre="AUTH_ERROR",mre="AUTH_LOGOUT",hre="AUTH_GET_PERMISSIONS";const gre=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},X0=function(){return X0=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 mr(r&&e?"".concat(r,".").concat(e):r??e,t)},Vw=function(){return c.useContext(FM)},$re=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])},Hre=function(e,t,r){var n=c.useContext(Yo).navigator,o=Ht(),a=he(),i=mu(r?{control:r}:void 0),s=i.isSubmitSuccessful,u=i.isSubmitting,l=i.dirtyFields,d=Object.keys(l).length>0,f=c.useRef(t||o.pathname);c.useEffect(function(){if(!(!e||!d)&&n.block){var p=n.block(function(v){var h=v.location.pathname.startsWith(f.current),b=v.location.pathname.startsWith("".concat(f.current,"/show")),x=h&&!b;!u&&(x||s||window.confirm(a("ra.message.unsaved_changes")))?(p(),v.retry()):u&&setTimeout(function(){v.retry()},100)});return p}},[e,o,n,d,u,s,a])},Gre=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},t1=function(){return t1=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,}))$/,ti=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Zre(e){return e?e.hasOwnProperty("message"):!1}var ri=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},ni=function(e){return XI(e,function(){for(var t=[],r=0;re?ri(t,{max:e},r,n):void 0}});ni(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!ti(r)&&re?ri(t,{max:e},r,n):void 0}}),pF=ni(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!ti(t)&&isNaN(Number(t))?ri(e,void 0,t,r):void 0}}),Uw=XI(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!ti(r)&&typeof r=="string"&&!e.test(r)?ri(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});ni(function(e){return e===void 0&&(e="ra.validation.email"),Uw(Jre,e)});var one=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};ni(function(e,t){return t===void 0&&(t=one),function(r,n){return!ti(r)&&e.indexOf(r)===-1?ri(t,{list:e},r,n):void 0}});var ane=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},vF=c.createContext(void 0),Nh=function(){var e=c.useContext(lF);return e},ine=function(e){var t=e.children,r=e.name,n=Nh();return c.useEffect(function(){if(!n||!n.registerGroup||!n.unregisterGroup){console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components");return}return n.registerGroup(r),function(){n.unregisterGroup(r)}},[n,r]),c.createElement(vF.Provider,{value:r},t)},mF=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=Be(t),s=jn(),u=s.getValues,l=s.resetField,d=s.getFieldState,f=s.formState,p=s.reset,v=De(i,a),h=De(u(),a),b=d(a,f).isDirty;c.useEffect(function(){if(!(o==null||h!=null||v!=null||b)){var x=a.split(".").some(function(y){return sne.test(y)});if(x){var g=a.split(".").slice(0,-1).join("."),m=De(u(),g);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})}})},sne=/^\d+$/,hF=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,o=n===void 0?"id":n,a=e.disableValue,i=a===void 0?"disabled":a,s=e.translateChoice,u=s===void 0?!0:s,l=he(),d=c.useCallback(function(v){if(c.isValidElement(r))return c.createElement(Ha,{value:v},r);var h=typeof r=="function"?r(v):De(v,r);return c.isValidElement(h)?h:u?l(String(h),{_:h}):String(h)},[r,l,u]),f=c.useCallback(function(v){return De(v,o)},[o]),p=c.useCallback(function(v){return De(v,i)},[i]);return{getChoiceText:d,getChoiceValue:f,getDisableValue:p}},lne=function(e){var t=mu(),r=t.dirtyFields,n=t.touchedFields,o=t.errors,a=Nh(),i=c.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0}),s=i[0],u=i[1],l=c.useCallback(function(){var d=a.getGroupFields(e),f=d.map(function(v){return{name:v,error:De(o,v,void 0),isDirty:De(r,v,!1)!==!1,isValid:De(o,v,void 0)==null,isTouched:De(n,v,!1)!==!1}}).filter(function(v){return v!=null}),p=une(f);u(function(v){return bn(v,p)?v:p})},[r,o,n,a,e]);return c.useEffect(function(){l()},[JSON.stringify({dirtyFields:r,errors:o,touchedFields:n}),l]),c.useEffect(function(){return a.subscribe(e,function(){l()})},[a,e,l]),s},une=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var o={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid};return o},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1})},gF=function(){var e=c.useContext(vF);return e},n1=function(){return n1=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)&&(r[o]=e[o]);return r}function yF(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var $ne=/^((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)-.*))$/,Rne=yF(function(e){return $ne.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function kne(e){if(e.sheet)return e.sheet;for(var t=0;t0?or(yu,--zr):0,Fl--,Ft===10&&(Fl=1,Dh--),Ft}function Xr(){return Ft=zr2||pd(Ft)>3?"":" "}function Une(e,t){for(;--t&&Xr()&&!(Ft<48||Ft>102||Ft>57&&Ft<65||Ft>70&&Ft<97););return Yd(e,Ep()+(t<6&&go()==32&&Xr()==32))}function a1(e){for(;Xr();)switch(Ft){case e:return zr;case 34:case 39:e!==34&&e!==39&&a1(Ft);break;case 40:e===41&&a1(e);break;case 92:Xr();break}return zr}function Wne(e,t){for(;Xr()&&e+Ft!==57;)if(e+Ft===84&&go()===47)break;return"/*"+Yd(t,zr-1)+"*"+Lh(e===47?e:Xr())}function qne(e){for(;!pd(go());)Xr();return Yd(e,zr)}function Hne(e){return OF($p("",null,null,null,[""],e=SF(e),0,[0],e))}function $p(e,t,r,n,o,a,i,s,u){for(var l=0,d=0,f=i,p=0,v=0,h=0,b=1,x=1,g=1,m=0,y="",C=o,O=a,S=n,P=y;x;)switch(h=m,m=Xr()){case 40:if(h!=108&&or(P,f-1)==58){o1(P+=Xe(Pp(m),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:P+=Pp(m);break;case 9:case 10:case 13:case 32:P+=Vne(h);break;case 92:P+=Une(Ep()-1,7);continue;case 47:switch(go()){case 42:case 47:Uf(Gne(Wne(Xr(),Ep()),t,r),u);break;default:P+="/"}break;case 123*b:s[l++]=lo(P)*g;case 125*b:case 59:case 0:switch(m){case 0:case 125:x=0;case 59+d:g==-1&&(P=Xe(P,/\f/g,"")),v>0&&lo(P)-f&&Uf(v>32?t2(P+";",n,r,f-1):t2(Xe(P," ","")+";",n,r,f-2),u);break;case 59:P+=";";default:if(Uf(S=e2(P,t,r,l,d,o,s,y,C=[],O=[],f),a),m===123)if(d===0)$p(P,t,S,S,C,a,f,s,O);else switch(p===99&&or(P,3)===110?100:p){case 100:case 108:case 109:case 115:$p(e,S,S,n&&Uf(e2(e,S,S,0,0,o,s,y,o,C=[],f),O),o,O,f,s,n?C:O);break;default:$p(P,S,S,S,[""],O,0,s,O)}}l=d=v=0,b=g=1,y=P="",f=i;break;case 58:f=1+lo(P),v=h;default:if(b<1){if(m==123)--b;else if(m==125&&b++==0&&zne()==125)continue}switch(P+=Lh(m),m*b){case 38:g=d>0?1:(P+="\f",-1);break;case 44:s[l++]=(lo(P)-1)*g,g=1;break;case 64:go()===45&&(P+=Pp(Xr())),p=go(),d=f=lo(y=P+=qne(Ep())),m++;break;case 45:h===45&&lo(P)==2&&(b=0)}}return a}function e2(e,t,r,n,o,a,i,s,u,l,d){for(var f=o-1,p=o===0?a:[""],v=Hw(p),h=0,b=0,x=0;h0?p[g]+" "+m:Xe(m,/&\f/g,p[g])))&&(u[x++]=y);return Bh(e,t,r,o===0?Ww:s,u,l,d)}function Gne(e,t,r){return Bh(e,t,r,bF,Lh(Bne()),fd(e,2,-2),0)}function t2(e,t,r,n){return Bh(e,t,r,qw,fd(e,0,n),fd(e,n+1,-1),n)}function pl(e,t){for(var r="",n=Hw(e),o=0;o6)switch(or(e,t+1)){case 109:if(or(e,t+4)!==45)break;case 102:return Xe(e,/(.+:)(.+)-([^]+)/,"$1"+Qe+"$2-$3$1"+Xv+(or(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~o1(e,"stretch")?CF(Xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(or(e,t+1)!==115)break;case 6444:switch(or(e,lo(e)-3-(~o1(e,"!important")&&10))){case 107:return Xe(e,":",":"+Qe)+e;case 101:return Xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qe+(or(e,14)===45?"inline-":"")+"box$3$1"+Qe+"$2$3$1"+dr+"$2box$3")+e}break;case 5936:switch(or(e,t+11)){case 114:return Qe+e+dr+Xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qe+e+dr+Xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qe+e+dr+Xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qe+e+dr+e+e}return e}var roe=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case qw:t.return=CF(t.value,t.length);break;case _F:return pl([Hu(t,{value:Xe(t.value,"@","@"+Qe)})],o);case Ww:if(t.length)return Dne(t.props,function(a){switch(Lne(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pl([Hu(t,{props:[Xe(a,/:(read-\w+)/,":"+Xv+"$1")]})],o);case"::placeholder":return pl([Hu(t,{props:[Xe(a,/:(plac\w+)/,":"+Qe+"input-$1")]}),Hu(t,{props:[Xe(a,/:(plac\w+)/,":"+Xv+"$1")]}),Hu(t,{props:[Xe(a,/:(plac\w+)/,dr+"input-$1")]})],o)}return""})}},noe=[roe],EF=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 x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||noe,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),g=1;g=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 moe={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},hoe=/[A-Z]|^ms/g,goe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,IF=function(t){return t.charCodeAt(1)===45},n2=function(t){return t!=null&&typeof t!="boolean"},Vy=yF(function(e){return IF(e)?e:e.replace(hoe,"-$&").toLowerCase()}),o2=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(goe,function(n,o,a){return uo={name:o,styles:a,next:uo},o})}return moe[t]!==1&&!IF(t)&&typeof r=="number"&&r!==0?r+"px":r};function vd(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 uo={name:r.name,styles:r.styles,next:uo},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)uo={name:n.name,styles:n.styles,next:uo},n=n.next;var o=r.styles+";";return o}return yoe(e,t,r)}case"function":{if(e!==void 0){var a=uo,i=r(e);return uo=a,vd(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function yoe(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Soe:Ooe},l2=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},Coe=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return TF(r,n,o),_oe(function(){return jF(r,n,o)}),null},Eoe=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=l2(t,r,n),u=s||s2(o),l=!u("as");return function(){var d=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,v=1;vt(Aoe(o)?r:o):t;return _.jsx(woe,{styles:n})}function Yw(e,t){return i1(e,t)}const zF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Moe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:BF,StyledEngineProvider:Ioe,ThemeContext:Jd,css:ds,default:Yw,internal_processStyles:zF,keyframes:ea},Symbol.toStringTag,{value:"Module"}));function Fo(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 VF(e){if(!Fo(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=VF(e[r])}),t}function Cr(e,t,r={clone:!0}){const n=r.clone?R({},e):e;return Fo(e)&&Fo(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Fo(t[o])&&o in e&&Fo(e[o])?n[o]=Cr(e[o],t[o],r):r.clone?n[o]=Fo(t[o])?VF(t[o]):t[o]:n[o]=t[o])}),n}const Foe=Object.freeze(Object.defineProperty({__proto__:null,default:Cr,isPlainObject:Fo},Symbol.toStringTag,{value:"Module"})),Noe=["values","unit","step"],Loe=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({},r,{[n.key]:n.val}),{})};function UF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=se(e,Noe),a=Loe(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,v){const h=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(h!==-1&&typeof t[i[h]]=="number"?t[i[h]]:v)-n/100}${r})`}function d(p){return i.indexOf(p)+1`@media (min-width:${Jw[e]}px)`};function Xn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||u2;return t.reduce((i,s,u)=>(i[a.up(a.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const a=n.breakpoints||u2;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||Jw).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 WF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function qF(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function zoe(e,...t){const r=WF(e),n=[r,...t].reduce((o,a)=>Cr(o,a),{});return qF(Object.keys(r),n)}function Voe(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 Uy({values:e,breakpoints:t,base:r}){const n=r||Voe(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(Ho(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Uoe=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));function Nl(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 Yv(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Nl(e,r)||n,t&&(o=t(o,n,e)),o}function kt(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=Nl(u,n)||{};return Xn(i,s,f=>{let p=Yv(l,o,f);return f===p&&typeof f=="string"&&(p=Yv(l,o,`${t}${f==="default"?"":ae(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes={},a.filterProps=[t],a}function Woe(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const qoe={m:"margin",p:"padding"},Hoe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Goe=Woe(e=>{if(e.length>2)if(c2[e])e=c2[e];else return[e];const[t,r]=e.split(""),n=qoe[t],o=Hoe[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Zw=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],eS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Zw,...eS];function Zd(e,t,r,n){var o;const a=(o=Nl(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 tS(e){return Zd(e,"spacing",8)}function ts(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 Koe(e,t){return r=>e.reduce((n,o)=>(n[o]=ts(t,r),n),{})}function Qoe(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Goe(r),a=Koe(o,n),i=e[r];return Xn(e,i,a)}function HF(e,t){const r=tS(e.theme);return Object.keys(e).map(n=>Qoe(e,t,n,r)).reduce(Ec,{})}function St(e){return HF(e,Zw)}St.propTypes={};St.filterProps=Zw;function Ot(e){return HF(e,eS)}Ot.propTypes={};Ot.filterProps=eS;function Xoe(e=8){if(e.mui)return e;const t=tS({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 Yh(...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]?Ec(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function vn(e){return typeof e!="number"?e:`${e}px solid`}function In(e,t){return kt({prop:e,themeKey:"borders",transform:t})}const Yoe=In("border",vn),Joe=In("borderTop",vn),Zoe=In("borderRight",vn),eae=In("borderBottom",vn),tae=In("borderLeft",vn),rae=In("borderColor"),nae=In("borderTopColor"),oae=In("borderRightColor"),aae=In("borderBottomColor"),iae=In("borderLeftColor"),sae=In("outline",vn),lae=In("outlineColor"),Jh=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zd(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:ts(t,n)});return Xn(e,e.borderRadius,r)}return null};Jh.propTypes={};Jh.filterProps=["borderRadius"];Yh(Yoe,Joe,Zoe,eae,tae,rae,nae,oae,aae,iae,Jh,sae,lae);const Zh=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zd(e.theme,"spacing",8),r=n=>({gap:ts(t,n)});return Xn(e,e.gap,r)}return null};Zh.propTypes={};Zh.filterProps=["gap"];const eg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zd(e.theme,"spacing",8),r=n=>({columnGap:ts(t,n)});return Xn(e,e.columnGap,r)}return null};eg.propTypes={};eg.filterProps=["columnGap"];const tg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zd(e.theme,"spacing",8),r=n=>({rowGap:ts(t,n)});return Xn(e,e.rowGap,r)}return null};tg.propTypes={};tg.filterProps=["rowGap"];const uae=kt({prop:"gridColumn"}),cae=kt({prop:"gridRow"}),dae=kt({prop:"gridAutoFlow"}),fae=kt({prop:"gridAutoColumns"}),pae=kt({prop:"gridAutoRows"}),vae=kt({prop:"gridTemplateColumns"}),mae=kt({prop:"gridTemplateRows"}),hae=kt({prop:"gridTemplateAreas"}),gae=kt({prop:"gridArea"});Yh(Zh,eg,tg,uae,cae,dae,fae,pae,vae,mae,hae,gae);function vl(e,t){return t==="grey"?t:e}const yae=kt({prop:"color",themeKey:"palette",transform:vl}),bae=kt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vl}),_ae=kt({prop:"backgroundColor",themeKey:"palette",transform:vl});Yh(yae,bae,_ae);function Wr(e){return e<=1&&e!==0?`${e*100}%`:e}const xae=kt({prop:"width",transform:Wr}),rS=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])||Jw[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:Wr(r)}};return Xn(e,e.maxWidth,t)}return null};rS.filterProps=["maxWidth"];const wae=kt({prop:"minWidth",transform:Wr}),Sae=kt({prop:"height",transform:Wr}),Oae=kt({prop:"maxHeight",transform:Wr}),Cae=kt({prop:"minHeight",transform:Wr});kt({prop:"size",cssProperty:"width",transform:Wr});kt({prop:"size",cssProperty:"height",transform:Wr});const Eae=kt({prop:"boxSizing"});Yh(xae,rS,wae,Sae,Oae,Cae,Eae);const Pae={border:{themeKey:"borders",transform:vn},borderTop:{themeKey:"borders",transform:vn},borderRight:{themeKey:"borders",transform:vn},borderBottom:{themeKey:"borders",transform:vn},borderLeft:{themeKey:"borders",transform:vn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Jh},color:{themeKey:"palette",transform:vl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vl},backgroundColor:{themeKey:"palette",transform:vl},p:{style:Ot},pt:{style:Ot},pr:{style:Ot},pb:{style:Ot},pl:{style:Ot},px:{style:Ot},py:{style:Ot},padding:{style:Ot},paddingTop:{style:Ot},paddingRight:{style:Ot},paddingBottom:{style:Ot},paddingLeft:{style:Ot},paddingX:{style:Ot},paddingY:{style:Ot},paddingInline:{style:Ot},paddingInlineStart:{style:Ot},paddingInlineEnd:{style:Ot},paddingBlock:{style:Ot},paddingBlockStart:{style:Ot},paddingBlockEnd:{style:Ot},m:{style:St},mt:{style:St},mr:{style:St},mb:{style:St},ml:{style:St},mx:{style:St},my:{style:St},margin:{style:St},marginTop:{style:St},marginRight:{style:St},marginBottom:{style:St},marginLeft:{style:St},marginX:{style:St},marginY:{style:St},marginInline:{style:St},marginInlineStart:{style:St},marginInlineEnd:{style:St},marginBlock:{style:St},marginBlockStart:{style:St},marginBlockEnd:{style:St},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:Zh},rowGap:{style:tg},columnGap:{style:eg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wr},maxWidth:{style:rS},minWidth:{transform:Wr},height:{transform:Wr},maxHeight:{transform:Wr},minHeight:{transform:Wr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ef=Pae;function $ae(...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 Rae(e,t){return typeof e=="function"?e(t):e}function GF(){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:d,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Nl(o,l)||{};return f?f(i):Xn(i,n,h=>{let b=Yv(p,d,h);return h===b&&typeof h=="string"&&(b=Yv(p,d,`${r}${h==="default"?"":ae(h)}`,h)),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:ef;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 d=WF(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(l).forEach(v=>{const h=Rae(l[v],a);if(h!=null)if(typeof h=="object")if(i[v])p=Ec(p,e(v,h,a,i));else{const b=Xn({theme:a},h,x=>({[v]:x}));$ae(b,h)?p[v]=t({sx:h,theme:a}):p=Ec(p,b)}else p=Ec(p,e(v,h,a,i))}),qF(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const KF=GF();KF.filterProps=["sx"];const tf=KF;function QF(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 kae=["breakpoints","palette","spacing","shape"];function bu(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=se(e,kae),s=UF(r),u=Xoe(o);let l=Cr({breakpoints:s,direction:"ltr",components:{},palette:R({mode:"light"},n),spacing:u,shape:R({},Boe,a)},i);return l.applyStyles=QF,l=t.reduce((d,f)=>Cr(d,f),l),l.unstable_sxConfig=R({},ef,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return tf({sx:f,theme:this})},l}const Tae=Object.freeze(Object.defineProperty({__proto__:null,default:bu,private_createBreakpoints:UF,unstable_applyStyles:QF},Symbol.toStringTag,{value:"Module"}));function jae(e){return Object.keys(e).length===0}function nS(e=null){const t=c.useContext(Jd);return!t||jae(t)?e:t}const Iae=bu();function rg(e=Iae){return nS(e)}function Aae({styles:e,themeId:t,defaultTheme:r={}}){const n=rg(r),o=typeof e=="function"?e(t&&n[t]||n):e;return _.jsx(BF,{styles:o})}const Mae=["sx"],Fae=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ef;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function ng(e){const{sx:t}=e,r=se(e,Mae),{systemProps:n,otherProps:o}=Fae(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return Fo(s)?R({},n,s):n}:a=R({},n,t),R({},o,{sx:a})}const Nae=Object.freeze(Object.defineProperty({__proto__:null,default:tf,extendSxProp:ng,unstable_createStyleFunctionSx:GF,unstable_defaultSxConfig:ef},Symbol.toStringTag,{value:"Module"})),d2=e=>e,Lae=()=>{let e=d2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=d2}}},Dae=Lae(),oS=Dae;function XF(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"})(tf);return c.forwardRef(function(u,l){const d=rg(r),f=ng(u),{className:p,component:v="div"}=f,h=se(f,Bae);return _.jsx(a,R({as:v,ref:l,className:ce(p,o?o(n):n),theme:t&&d[t]||d},h))})}const YF={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 we(e,t,r="Mui"){const n=YF[t];return n?`${r}-${n}`:`${oS.generate(e)}-${t}`}function Ce(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=we(e,o,r)}),n}var JF={exports:{}},et={};/** - * @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 aS=Symbol.for("react.element"),iS=Symbol.for("react.portal"),og=Symbol.for("react.fragment"),ag=Symbol.for("react.strict_mode"),ig=Symbol.for("react.profiler"),sg=Symbol.for("react.provider"),lg=Symbol.for("react.context"),Vae=Symbol.for("react.server_context"),ug=Symbol.for("react.forward_ref"),cg=Symbol.for("react.suspense"),dg=Symbol.for("react.suspense_list"),fg=Symbol.for("react.memo"),pg=Symbol.for("react.lazy"),Uae=Symbol.for("react.offscreen"),ZF;ZF=Symbol.for("react.module.reference");function An(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case aS:switch(e=e.type,e){case og:case ig:case ag:case cg:case dg:return e;default:switch(e=e&&e.$$typeof,e){case Vae:case lg:case ug:case pg:case fg:case sg:return e;default:return t}}case iS:return t}}}et.ContextConsumer=lg;et.ContextProvider=sg;et.Element=aS;et.ForwardRef=ug;et.Fragment=og;et.Lazy=pg;et.Memo=fg;et.Portal=iS;et.Profiler=ig;et.StrictMode=ag;et.Suspense=cg;et.SuspenseList=dg;et.isAsyncMode=function(){return!1};et.isConcurrentMode=function(){return!1};et.isContextConsumer=function(e){return An(e)===lg};et.isContextProvider=function(e){return An(e)===sg};et.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===aS};et.isForwardRef=function(e){return An(e)===ug};et.isFragment=function(e){return An(e)===og};et.isLazy=function(e){return An(e)===pg};et.isMemo=function(e){return An(e)===fg};et.isPortal=function(e){return An(e)===iS};et.isProfiler=function(e){return An(e)===ig};et.isStrictMode=function(e){return An(e)===ag};et.isSuspense=function(e){return An(e)===cg};et.isSuspenseList=function(e){return An(e)===dg};et.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===og||e===ig||e===ag||e===cg||e===dg||e===Uae||typeof e=="object"&&e!==null&&(e.$$typeof===pg||e.$$typeof===fg||e.$$typeof===sg||e.$$typeof===lg||e.$$typeof===ug||e.$$typeof===ZF||e.getModuleId!==void 0)};et.typeOf=An;JF.exports=et;var md=JF.exports;const Wae=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function eN(e){const t=`${e}`.match(Wae);return t&&t[1]||""}function tN(e,t=""){return e.displayName||e.name||eN(e)||t}function f2(e,t,r){const n=tN(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function qae(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tN(e,"Component");if(typeof e=="object")switch(e.$$typeof){case md.ForwardRef:return f2(e,e.render,"ForwardRef");case md.Memo:return f2(e,e.type,"memo");default:return}}}const Hae=Object.freeze(Object.defineProperty({__proto__:null,default:qae,getFunctionName:eN},Symbol.toStringTag,{value:"Module"})),Gae=["ownerState"],Kae=["variants"],Qae=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xae(e){return Object.keys(e).length===0}function Yae(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Wy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Jae=bu(),Zae=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Wf({defaultTheme:e,theme:t,themeId:r}){return Xae(t)?e:t[r]||t}function eie(e){return e?(t,r)=>r[e]:null}function Rp(e,t){let{ownerState:r}=t,n=se(t,Gae);const o=typeof e=="function"?e(R({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Rp(a,R({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=se(o,Kae);return a.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(R({ownerState:r},n,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(R({ownerState:r},n,r)):u.style))}),s}return o}function tie(e={}){const{themeId:t,defaultTheme:r=Jae,rootShouldForwardProp:n=Wy,slotShouldForwardProp:o=Wy}=e,a=i=>tf(R({},i,{theme:Wf(R({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{zF(i,O=>O.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:d,skipSx:f,overridesResolver:p=eie(Zae(l))}=s,v=se(s,Qae),h=d!==void 0?d:l&&l!=="Root"&&l!=="root"||!1,b=f||!1;let x,g=Wy;l==="Root"||l==="root"?g=n:l?g=o:Yae(i)&&(g=void 0);const m=Yw(i,R({shouldForwardProp:g,label:x},v)),y=O=>typeof O=="function"&&O.__emotion_real!==O||Fo(O)?S=>Rp(O,R({},S,{theme:Wf({theme:S.theme,defaultTheme:r,themeId:t})})):O,C=(O,...S)=>{let P=y(O);const E=S?S.map(y):[];u&&p&&E.push(T=>{const j=Wf(R({},T,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const I=j.components[u].styleOverrides,A={};return Object.entries(I).forEach(([D,L])=>{A[D]=Rp(L,R({},T,{theme:j}))}),p(T,A)}),u&&!h&&E.push(T=>{var j;const I=Wf(R({},T,{defaultTheme:r,themeId:t})),A=I==null||(j=I.components)==null||(j=j[u])==null?void 0:j.variants;return Rp({variants:A},R({},T,{theme:I}))}),b||E.push(a);const $=E.length-S.length;if(Array.isArray(O)&&$>0){const T=new Array($).fill("");P=[...O,...T],P.raw=[...O.raw,...T]}const k=m(P,...E);return i.muiName&&(k.muiName=i.muiName),k};return m.withConfig&&(C.withConfig=m.withConfig),C}}const rN=tie();function sS(e,t){const r=R({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=R({},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]=R({},a),Object.keys(o).forEach(i=>{r[n][i]=sS(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function nN(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:sS(t.components[r].defaultProps,n)}function lS({props:e,name:t,defaultTheme:r,themeId:n}){let o=rg(r);return n&&(o=o[n]||o),nN({theme:o,name:t,props:e})}const Jr=typeof window<"u"?c.useLayoutEffect:c.useEffect;function rie(e,t,r,n,o){const[a,i]=c.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Jr(()=>{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 oN=c.useSyncExternalStore;function nie(e,t,r,n,o){const a=c.useCallback(()=>t,[t]),i=c.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return a},[a,e,n,o,r]),[s,u]=c.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const d=r(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,r,e]);return oN(u,s,i)}function $r(e,t={}){const r=nS(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=nN({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(oN!==void 0?nie:rie)(u,o,a,i,s)}function aN(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const oie=Object.freeze(Object.defineProperty({__proto__:null,default:aN},Symbol.toStringTag,{value:"Module"}));function iN(e,t=0,r=1){return aN(e,t,r)}function aie(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 uS(e){if(e.type)return e;if(e.charAt(0)==="#")return uS(aie(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ho(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(Ho(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function sN(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 Ll(e,t){return e=uS(e),t=iN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,sN(e)}function iie(e,t){if(e=uS(e),t=iN(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 sN(e)}function l1(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function _u(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 sie(e,t){return()=>null}function kp(e,t){var r,n;return c.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 Dt(e){return e&&e.ownerDocument||document}function On(e){return Dt(e).defaultView||window}function lie(e,t){return()=>null}function Jv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let p2=0;function uie(e){const[t,r]=c.useState(e),n=e||t;return c.useEffect(()=>{t==null&&(p2+=1,r(`mui-${p2}`))},[t]),n}const v2=kb.useId;function rs(e){if(v2!==void 0){const t=v2();return e??t}return uie(e)}function cie(e,t,r,n,o){return null}function Dl({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=c.useRef(e!==void 0),[a,i]=c.useState(t),s=o?e:a,u=c.useCallback(l=>{o||i(l)},[]);return[s,u]}function Sr(e){const t=c.useRef(e);return Jr(()=>{t.current=e}),c.useRef((...r)=>(0,t.current)(...r)).current}function xt(...e){return c.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Jv(r,t)})},e)}const m2={};function die(e,t){const r=c.useRef(m2);return r.current===m2&&(r.current=e(t)),r}const fie=[];function pie(e){c.useEffect(e,fie)}class rf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new rf}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function $i(){const e=die(rf.create).current;return pie(e.disposeEffect),e}let vg=!0,u1=!1;const vie=new rf,mie={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 hie(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&mie[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gie(e){e.metaKey||e.altKey||e.ctrlKey||(vg=!0)}function qy(){vg=!1}function yie(){this.visibilityState==="hidden"&&u1&&(vg=!0)}function bie(e){e.addEventListener("keydown",gie,!0),e.addEventListener("mousedown",qy,!0),e.addEventListener("pointerdown",qy,!0),e.addEventListener("touchstart",qy,!0),e.addEventListener("visibilitychange",yie,!0)}function _ie(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return vg||hie(t)}function mg(){const e=c.useCallback(o=>{o!=null&&bie(o.ownerDocument)},[]),t=c.useRef(!1);function r(){return t.current?(u1=!0,vie.start(100,()=>{u1=!1}),t.current=!1,!0):!1}function n(o){return _ie(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function lN(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Es;function uN(){if(Es)return Es;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Es="reverse",e.scrollLeft>0?Es="default":(e.scrollLeft=1,e.scrollLeft===0&&(Es="negative")),document.body.removeChild(e),Es}function xie(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(uN()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function _e(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 wie=c.createContext(null),cN=wie;function dN(){return c.useContext(cN)}const Sie=typeof Symbol=="function"&&Symbol.for,Oie=Sie?Symbol.for("mui.nested"):"__THEME_NESTED__";function Cie(e,t){return typeof t=="function"?t(e):R({},e,t)}function Eie(e){const{children:t,theme:r}=e,n=dN(),o=c.useMemo(()=>{const a=n===null?r:Cie(n,r);return a!=null&&(a[Oie]=n!==null),a},[r,n]);return _.jsx(cN.Provider,{value:o,children:t})}const Pie=["value"],fN=c.createContext();function $ie(e){let{value:t}=e,r=se(e,Pie);return _.jsx(fN.Provider,R({value:t??!0},r))}const oi=()=>{const e=c.useContext(fN);return e??!1},h2={};function g2(e,t,r,n=!1){return c.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?R({},t,{[e]:a}):a;return n?()=>i:i}return e?R({},t,{[e]:r}):R({},t,r)},[e,t,r,n])}function Rie(e){const{children:t,theme:r,themeId:n}=e,o=nS(h2),a=dN()||h2,i=g2(n,o,r),s=g2(n,a,r,!0),u=i.direction==="rtl";return _.jsx(Eie,{theme:s,children:_.jsx(Jd.Provider,{value:i,children:_.jsx($ie,{value:u,children:t})})})}const kie=["className","component","disableGutters","fixed","maxWidth","classes"],Tie=bu(),jie=rN("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ae(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Iie=e=>lS({props:e,name:"MuiContainer",defaultTheme:Tie}),Aie=(e,t)=>{const r=u=>we(t,u),{classes:n,fixed:o,disableGutters:a,maxWidth:i}=e,s={root:["root",i&&`maxWidth${ae(String(i))}`,o&&"fixed",a&&"disableGutters"]};return _e(s,r,n)};function Mie(e={}){const{createStyledComponent:t=jie,useThemeProps:r=Iie,componentName:n="MuiContainer"}=e,o=t(({theme:i,ownerState:s})=>R({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:s})=>s.fixed&&Object.keys(i.breakpoints.values).reduce((u,l)=>{const d=l,f=i.breakpoints.values[d];return f!==0&&(u[i.breakpoints.up(d)]={maxWidth:`${f}${i.breakpoints.unit}`}),u},{}),({theme:i,ownerState:s})=>R({},s.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[i.breakpoints.up(s.maxWidth)]:{maxWidth:`${i.breakpoints.values[s.maxWidth]}${i.breakpoints.unit}`}}));return c.forwardRef(function(s,u){const l=r(s),{className:d,component:f="div",disableGutters:p=!1,fixed:v=!1,maxWidth:h="lg"}=l,b=se(l,kie),x=R({},l,{component:f,disableGutters:p,fixed:v,maxWidth:h}),g=Aie(x,n);return _.jsx(o,R({as:f,ownerState:x,className:ce(g.root,d),ref:u},b))})}const Fie=["component","direction","spacing","divider","children","className","useFlexGap"],Nie=bu(),Lie=rN("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Die(e){return lS({props:e,name:"MuiStack",defaultTheme:Nie})}function Bie(e,t){const r=c.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],Vie=({ownerState:e,theme:t})=>{let r=R({display:"flex",flexDirection:"column"},Xn({theme:t},Uy({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=tS(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=Uy({values:e.direction,base:o}),i=Uy({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,l,d)=>{if(!a[u]){const p=l>0?a[d[l-1]]:"column";a[u]=p}}),r=Cr(r,Xn({theme:t},i,(u,l)=>e.useFlexGap?{gap:ts(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${zie(l?a[l]:e.direction)}`]:ts(n,u)}}))}return r=zoe(t.breakpoints,r),r};function Uie(e={}){const{createStyledComponent:t=Lie,useThemeProps:r=Die,componentName:n="MuiStack"}=e,o=()=>_e({root:["root"]},u=>we(n,u),{}),a=t(Vie);return c.forwardRef(function(u,l){const d=r(u),f=ng(d),{component:p="div",direction:v="column",spacing:h=0,divider:b,children:x,className:g,useFlexGap:m=!1}=f,y=se(f,Fie),C={direction:v,spacing:h,useFlexGap:m},O=o();return _.jsx(a,R({as:p,ownerState:C,ref:l,className:ce(O.root,g)},y,{children:b?Bie(x,b):x}))})}function Wie(e,t){return R({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Tt={},pN={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})(pN);var Se=pN.exports;const qie=So(Pne),Hie=So(oie);var vN=Se;Object.defineProperty(Tt,"__esModule",{value:!0});var Ye=Tt.alpha=yN;Tt.blend=ose;Tt.colorChannel=void 0;var hg=Tt.darken=dS;Tt.decomposeColor=Cn;var Gie=Tt.emphasize=bN,Kie=Tt.getContrastRatio=Zie;Tt.getLuminance=Zv;Tt.hexToRgb=mN;Tt.hslToRgb=gN;var gg=Tt.lighten=fS;Tt.private_safeAlpha=ese;Tt.private_safeColorChannel=void 0;Tt.private_safeDarken=tse;Tt.private_safeEmphasize=nse;Tt.private_safeLighten=rse;Tt.recomposeColor=xu;Tt.rgbToHex=Jie;var y2=vN(qie),Qie=vN(Hie);function cS(e,t=0,r=1){return(0,Qie.default)(e,t,r)}function mN(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 Xie(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Cn(e){if(e.type)return e;if(e.charAt(0)==="#")return Cn(mN(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,y2.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,y2.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const hN=e=>{const t=Cn(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Tt.colorChannel=hN;const Yie=(e,t)=>{try{return hN(e)}catch{return e}};Tt.private_safeColorChannel=Yie;function xu(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 Jie(e){if(e.indexOf("#")===0)return e;const{values:t}=Cn(e);return`#${t.map((r,n)=>Xie(n===3?Math.round(255*r):r)).join("")}`}function gN(e){e=Cn(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,d=(l+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,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])),xu({type:s,values:u})}function Zv(e){e=Cn(e);let t=e.type==="hsl"||e.type==="hsla"?Cn(gN(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 Zie(e,t){const r=Zv(e),n=Zv(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function yN(e,t){return e=Cn(e),t=cS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,xu(e)}function ese(e,t,r){try{return yN(e,t)}catch{return e}}function dS(e,t){if(e=Cn(e),t=cS(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 xu(e)}function tse(e,t,r){try{return dS(e,t)}catch{return e}}function fS(e,t){if(e=Cn(e),t=cS(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 xu(e)}function rse(e,t,r){try{return fS(e,t)}catch{return e}}function bN(e,t=.15){return Zv(e)>.5?dS(e,t):fS(e,t)}function nse(e,t,r){try{return bN(e,t)}catch{return e}}function ose(e,t,r,n=1){const o=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),a=Cn(e),i=Cn(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return xu({type:"rgb",values:s})}const ase=["mode","contrastThreshold","tonalOffset"],b2={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:dd.white,default:dd.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}},Hy={text:{primary:dd.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:dd.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 _2(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=gg(e.main,o):t==="dark"&&(e.dark=hg(e.main,a)))}function ise(e="light"){return e==="dark"?{main:Ss[200],light:Ss[50],dark:Ss[400]}:{main:Ss[700],light:Ss[400],dark:Ss[800]}}function sse(e="light"){return e==="dark"?{main:ws[200],light:ws[50],dark:ws[400]}:{main:ws[500],light:ws[300],dark:ws[700]}}function lse(e="light"){return e==="dark"?{main:xs[500],light:xs[300],dark:xs[700]}:{main:xs[700],light:xs[400],dark:xs[800]}}function use(e="light"){return e==="dark"?{main:Os[400],light:Os[300],dark:Os[700]}:{main:Os[700],light:Os[500],dark:Os[900]}}function cse(e="light"){return e==="dark"?{main:Cs[400],light:Cs[300],dark:Cs[700]}:{main:Cs[800],light:Cs[500],dark:Cs[900]}}function dse(e="light"){return e==="dark"?{main:qu[400],light:qu[300],dark:qu[700]}:{main:"#ed6c02",light:qu[500],dark:qu[900]}}function fse(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=se(e,ase),a=e.primary||ise(t),i=e.secondary||sse(t),s=e.error||lse(t),u=e.info||use(t),l=e.success||cse(t),d=e.warning||dse(t);function f(b){return Kie(b,Hy.text.primary)>=r?Hy.text.primary:b2.text.primary}const p=({color:b,name:x,mainShade:g=500,lightShade:m=300,darkShade:y=700})=>{if(b=R({},b),!b.main&&b[g]&&(b.main=b[g]),!b.hasOwnProperty("main"))throw new Error(Ho(11,x?` (${x})`:"",g));if(typeof b.main!="string")throw new Error(Ho(12,x?` (${x})`:"",JSON.stringify(b.main)));return _2(b,"light",m,n),_2(b,"dark",y,n),b.contrastText||(b.contrastText=f(b.main)),b},v={dark:Hy,light:b2};return Cr(R({common:R({},dd),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:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:Ene,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),o)}const pse=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function vse(e){return Math.round(e*1e5)/1e5}const x2={textTransform:"uppercase"},w2='"Roboto", "Helvetica", "Arial", sans-serif';function mse(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=w2,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:d,pxToRem:f}=r,p=se(r,pse),v=o/14,h=f||(g=>`${g/l*v}rem`),b=(g,m,y,C,O)=>R({fontFamily:n,fontWeight:g,fontSize:h(m),lineHeight:y},n===w2?{letterSpacing:`${vse(C/m)}em`}:{},O,d),x={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,x2),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,x2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cr(R({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},x),p,{clone:!1})}const hse=.2,gse=.14,yse=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${hse})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gse})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${yse})`].join(",")}const bse=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],_se=["duration","easing","delay"],xse={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)"},wse={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function S2(e){return`${Math.round(e)}ms`}function Sse(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ose(e){const t=R({},xse,e.easing),r=R({},wse,e.duration);return R({getAutoHeightDuration:Sse,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=a;return se(a,_se),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:S2(i)} ${s} ${typeof u=="string"?u:S2(u)}`).join(",")}},e,{easing:t,duration:r})}const Cse={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ese=Cse,Pse=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function em(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=se(e,Pse);if(e.vars)throw new Error(Ho(18));const s=fse(n),u=bu(e);let l=Cr(u,{mixins:Wie(u.breakpoints,r),palette:s,shadows:bse.slice(),typography:mse(s,a),transitions:Ose(o),zIndex:R({},Ese)});return l=Cr(l,i),l=t.reduce((d,f)=>Cr(d,f),l),l.unstable_sxConfig=R({},ef,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return tf({sx:f,theme:this})},l}const $se=em(),yg=$se;function Mn(){const e=rg(yg);return e[es]||e}function Ee({props:e,name:t}){return lS({props:e,name:t,defaultTheme:yg,themeId:es})}var nf={},Gy={exports:{}},O2;function Rse(){return O2||(O2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(o[i]=r[i]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ky)),Ky.exports}const _N=So(Moe),Tse=So(Foe),jse=So(Uoe),Ise=So(Hae),Ase=So(Tae),Mse=So(Nae);var wu=Se;Object.defineProperty(nf,"__esModule",{value:!0});var Fse=nf.default=Qse;nf.shouldForwardProp=Tp;nf.systemDefaultTheme=void 0;var un=wu(Rse()),c1=wu(kse()),E2=Use(_N),Nse=Tse;wu(jse);wu(Ise);var Lse=wu(Ase),Dse=wu(Mse);const Bse=["ownerState"],zse=["variants"],Vse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xN(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(xN=function(n){return n?r:t})(e)}function Use(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=xN(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 Wse(e){return Object.keys(e).length===0}function qse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hse=nf.systemDefaultTheme=(0,Lse.default)(),Gse=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function qf({defaultTheme:e,theme:t,themeId:r}){return Wse(t)?e:t[r]||t}function Kse(e){return e?(t,r)=>r[e]:null}function jp(e,t){let{ownerState:r}=t,n=(0,c1.default)(t,Bse);const o=typeof e=="function"?e((0,un.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>jp(a,(0,un.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,c1.default)(o,zse);return a.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,un.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(d=>{(r==null?void 0:r[d])!==u.props[d]&&n[d]!==u.props[d]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,un.default)({ownerState:r},n,r)):u.style))}),s}return o}function Qse(e={}){const{themeId:t,defaultTheme:r=Hse,rootShouldForwardProp:n=Tp,slotShouldForwardProp:o=Tp}=e,a=i=>(0,Dse.default)((0,un.default)({},i,{theme:qf((0,un.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,E2.internal_processStyles)(i,O=>O.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Kse(Gse(l))}=s,v=(0,c1.default)(s,Vse),h=d!==void 0?d:l&&l!=="Root"&&l!=="root"||!1,b=f||!1;let x,g=Tp;l==="Root"||l==="root"?g=n:l?g=o:qse(i)&&(g=void 0);const m=(0,E2.default)(i,(0,un.default)({shouldForwardProp:g,label:x},v)),y=O=>typeof O=="function"&&O.__emotion_real!==O||(0,Nse.isPlainObject)(O)?S=>jp(O,(0,un.default)({},S,{theme:qf({theme:S.theme,defaultTheme:r,themeId:t})})):O,C=(O,...S)=>{let P=y(O);const E=S?S.map(y):[];u&&p&&E.push(T=>{const j=qf((0,un.default)({},T,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const I=j.components[u].styleOverrides,A={};return Object.entries(I).forEach(([D,L])=>{A[D]=jp(L,(0,un.default)({},T,{theme:j}))}),p(T,A)}),u&&!h&&E.push(T=>{var j;const I=qf((0,un.default)({},T,{defaultTheme:r,themeId:t})),A=I==null||(j=I.components)==null||(j=j[u])==null?void 0:j.variants;return jp({variants:A},(0,un.default)({},T,{theme:I}))}),b||E.push(a);const $=E.length-S.length;if(Array.isArray(O)&&$>0){const T=new Array($).fill("");P=[...O,...T],P.raw=[...O.raw,...T]}const k=m(P,...E);return i.muiName&&(k.muiName=i.muiName),k};return m.withConfig&&(C.withConfig=m.withConfig),C}}function wN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xse=e=>wN(e)&&e!=="classes",lr=Xse,V=Fse({themeId:es,defaultTheme:yg,rootShouldForwardProp:lr}),Yse=["theme"];function Jse(e){let{theme:t}=e,r=se(e,Yse);const n=t[es];return _.jsx(Rie,R({},r,{themeId:n?es:void 0,theme:n||t}))}const P2=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Zse(e){return we("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ele=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],tle=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(r)}`]};return _e(o,Zse,n)},rle=V("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,d,f,p,v,h;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||(d=l.pxToRem)==null?void 0:d.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:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),d1=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=se(n,ele),h=c.isValidElement(o)&&o.type==="svg",b=R({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:h}),x={};d||(x.viewBox=p);const g=tle(b);return _.jsxs(rle,R({as:s,className:ce(g.root,a),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},x,v,h&&o.props,{ownerState:b,children:[h?o.props.children:o,f?_.jsx("title",{children:f}):null]}))});d1.muiName="SvgIcon";function nn(e,t){function r(n,o){return _.jsx(d1,R({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=d1.muiName,c.memo(c.forwardRef(r))}const nle={configure:e=>{oS.configure(e)}},ole=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ae,createChainedFunction:l1,createSvgIcon:nn,debounce:_u,deprecatedPropType:sie,isMuiElement:kp,ownerDocument:Dt,ownerWindow:On,requirePropFactory:lie,setRef:Jv,unstable_ClassNameGenerator:nle,unstable_useEnhancedEffect:Jr,unstable_useId:rs,unsupportedProp:cie,useControlled:Dl,useEventCallback:Sr,useForkRef:xt,useIsFocusVisible:mg},Symbol.toStringTag,{value:"Module"}));function SN(e){return Ee}const $2={disabled:!1},tm=te.createContext(null);var ale=function(t){return t.scrollTop},lc="unmounted",bi="exited",_i="entering",Is="entered",f1="exiting",ta=function(e){Xo(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=_i):u=Is:n.unmountOnExit||n.mountOnEnter?u=lc:u=bi,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===lc?{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!==_i&&i!==Is&&(a=_i):(i===_i||i===Is)&&(a=f1)}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===_i){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ic.findDOMNode(this);i&&ale(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bi&&this.setState({status:lc})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,u=this.props.nodeRef?[s]:[ic.findDOMNode(this),s],l=u[0],d=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!i||$2.disabled){this.safeSetState({status:Is},function(){a.props.onEntered(l)});return}this.props.onEnter(l,d),this.safeSetState({status:_i},function(){a.props.onEntering(l,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Is},function(){a.props.onEntered(l,d)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ic.findDOMNode(this);if(!a||$2.disabled){this.safeSetState({status:bi},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:f1},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:ic.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],d=u[1];this.props.addEndListener(l,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===lc)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=se(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return te.createElement(tm.Provider,{value:null},typeof i=="function"?i(o,s):te.cloneElement(te.Children.only(i),s))},t}(te.Component);ta.contextType=tm;ta.propTypes={};function Ps(){}ta.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ps,onEntering:Ps,onEntered:Ps,onExit:Ps,onExiting:Ps,onExited:Ps};ta.UNMOUNTED=lc;ta.EXITED=bi;ta.ENTERING=_i;ta.ENTERED=Is;ta.EXITING=f1;const pS=ta;function vS(e,t){var r=function(a){return t&&c.isValidElement(a)?t(a):a},n=Object.create(null);return e&&c.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function ile(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}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 Bl(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 fle(e){return we("MuiPaper",e)}Ce("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 ple=["className","component","elevation","square","variant"],vle=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return _e(a,fle,o)},mle=V("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 R({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"&&R({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ye("#fff",P2(t.elevation))}, ${Ye("#fff",P2(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),hle=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=se(n,ple),d=R({},n,{component:a,elevation:i,square:s,variant:u}),f=vle(d);return _.jsx(mle,R({as:a,ownerState:d,className:ce(f.root,o),ref:r},l))}),ai=hle;function hd(e){return typeof e=="string"}function nl(e,t,r){return e===void 0||hd(e)?t:R({},t,{ownerState:R({},t.ownerState,r)})}const gle={disableDefaultClasses:!1},yle=c.createContext(gle);function ble(e){const{disableDefaultClasses:t}=c.useContext(yle);return r=>t?"":e(r)}function rm(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 ON(e,t,r){return typeof e=="function"?e(t,r):e}function R2(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 CN(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const v=ce(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),h=R({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),b=R({},r,o,n);return v.length>0&&(b.className=v),Object.keys(h).length>0&&(b.style=h),{props:b,internalRef:void 0}}const i=rm(R({},o,n)),s=R2(n),u=R2(o),l=t(i),d=ce(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=R({},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=R({},l,r,u,s);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}const _le=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function En(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=se(e,_le),s=a?{}:ON(n,o),{props:u,internalRef:l}=CN(R({},i,{externalSlotProps:s})),d=xt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return nl(r,R({},u,{ref:d}),o)}const xle=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],wle=["component","slots","slotProps"],Sle=["component"];function Ole(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,u=se(t,xle),{component:l,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a,p=se(a,wle),v=d[e]||n,h=ON(f[e],o),b=CN(R({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:h})),{props:{component:x},internalRef:g}=b,m=se(b.props,Sle),y=xt(g,h==null?void 0:h.ref,t.ref),C=i?i(m):{},O=R({},o,C),S=e==="root"?x||l:x,P=nl(v,R({},e==="root"&&!l&&!d[e]&&s,e!=="root"&&!d[e]&&s,m,S&&{as:S},{ref:y}),O);return Object.keys(C).forEach(E=>{delete P[E]}),[v,P]}function Cle(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:u,timeout:l}=e,[d,f]=c.useState(!1),p=ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},h=ce(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&f(!0),c.useEffect(()=>{if(!s&&u!=null){const b=setTimeout(u,l);return()=>{clearTimeout(b)}}},[u,s,l]),_.jsx("span",{className:p,style:v,children:_.jsx("span",{className:h})})}const cn=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ele=["center","classes","className"];let bg=e=>e,k2,T2,j2,I2;const p1=550,Ple=80,$le=ea(k2||(k2=bg` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Rle=ea(T2||(T2=bg` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),kle=ea(j2||(j2=bg` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),Tle=V("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),jle=V(Cle,{name:"MuiTouchRipple",slot:"Ripple"})(I2||(I2=bg` - 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; - } -`),cn.rippleVisible,$le,p1,({theme:e})=>e.transitions.easing.easeInOut,cn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,cn.child,cn.childLeaving,Rle,p1,({theme:e})=>e.transitions.easing.easeInOut,cn.childPulsate,kle,({theme:e})=>e.transitions.easing.easeInOut),Ile=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=se(n,Ele),[u,l]=c.useState([]),d=c.useRef(0),f=c.useRef(null);c.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=c.useRef(!1),v=$i(),h=c.useRef(null),b=c.useRef(null),x=c.useCallback(C=>{const{pulsate:O,rippleX:S,rippleY:P,rippleSize:E,cb:$}=C;l(k=>[...k,_.jsx(jle,{classes:{ripple:ce(a.ripple,cn.ripple),rippleVisible:ce(a.rippleVisible,cn.rippleVisible),ripplePulsate:ce(a.ripplePulsate,cn.ripplePulsate),child:ce(a.child,cn.child),childLeaving:ce(a.childLeaving,cn.childLeaving),childPulsate:ce(a.childPulsate,cn.childPulsate)},timeout:p1,pulsate:O,rippleX:S,rippleY:P,rippleSize:E},d.current)]),d.current+=1,f.current=$},[a]),g=c.useCallback((C={},O={},S=()=>{})=>{const{pulsate:P=!1,center:E=o||O.pulsate,fakeElement:$=!1}=O;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const k=$?null:b.current,T=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,I,A;if(E||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)j=Math.round(T.width/2),I=Math.round(T.height/2);else{const{clientX:D,clientY:L}=C.touches&&C.touches.length>0?C.touches[0]:C;j=Math.round(D-T.left),I=Math.round(L-T.top)}if(E)A=Math.sqrt((2*T.width**2+T.height**2)/3),A%2===0&&(A+=1);else{const D=Math.max(Math.abs((k?k.clientWidth:0)-j),j)*2+2,L=Math.max(Math.abs((k?k.clientHeight:0)-I),I)*2+2;A=Math.sqrt(D**2+L**2)}C!=null&&C.touches?h.current===null&&(h.current=()=>{x({pulsate:P,rippleX:j,rippleY:I,rippleSize:A,cb:S})},v.start(Ple,()=>{h.current&&(h.current(),h.current=null)})):x({pulsate:P,rippleX:j,rippleY:I,rippleSize:A,cb:S})},[o,x,v]),m=c.useCallback(()=>{g({},{pulsate:!0})},[g]),y=c.useCallback((C,O)=>{if(v.clear(),(C==null?void 0:C.type)==="touchend"&&h.current){h.current(),h.current=null,v.start(0,()=>{y(C,O)});return}h.current=null,l(S=>S.length>0?S.slice(1):S),f.current=O},[v]);return c.useImperativeHandle(r,()=>({pulsate:m,start:g,stop:y}),[m,g,y]),_.jsx(Tle,R({className:ce(cn.root,a.root,i),ref:b},s,{children:_.jsx(dle,{component:null,exit:!0,children:u})}))}),Ale=Ile;function Mle(e){return we("MuiButtonBase",e)}const Fle=Ce("MuiButtonBase",["root","disabled","focusVisible"]),Nle=["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"],Lle=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=_e({root:["root",t&&"disabled",r&&"focusVisible"]},Mle,o);return r&&n&&(i.root+=` ${n}`),i},Dle=V("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"},[`&.${Fle.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ble=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:h,onClick:b,onContextMenu:x,onDragLeave:g,onFocus:m,onFocusVisible:y,onKeyDown:C,onKeyUp:O,onMouseDown:S,onMouseLeave:P,onMouseUp:E,onTouchEnd:$,onTouchMove:k,onTouchStart:T,tabIndex:j=0,TouchRippleProps:I,touchRippleRef:A,type:D}=n,L=se(n,Nle),B=c.useRef(null),M=c.useRef(null),N=xt(M,A),{isFocusVisibleRef:q,onFocus:K,onBlur:W,ref:le}=mg(),[Y,G]=c.useState(!1);l&&Y&&G(!1),c.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),B.current.focus()}}),[]);const[ne,ve]=c.useState(!1);c.useEffect(()=>{ve(!0)},[]);const ie=ne&&!d&&!l;c.useEffect(()=>{Y&&p&&!d&&ne&&M.current.pulsate()},[d,p,Y,ne]);function re(xe,qe,ot=f){return Sr(tt=>(qe&&qe(tt),!ot&&M.current&&M.current[xe](tt),!0))}const oe=re("start",S),Z=re("stop",x),ee=re("stop",g),H=re("stop",E),fe=re("stop",xe=>{Y&&xe.preventDefault(),P&&P(xe)}),de=re("start",T),Oe=re("stop",$),Ae=re("stop",k),F=re("stop",xe=>{W(xe),q.current===!1&&G(!1),h&&h(xe)},!1),z=Sr(xe=>{B.current||(B.current=xe.currentTarget),K(xe),q.current===!0&&(G(!0),y&&y(xe)),m&&m(xe)}),U=()=>{const xe=B.current;return u&&u!=="button"&&!(xe.tagName==="A"&&xe.href)},X=c.useRef(!1),J=Sr(xe=>{p&&!X.current&&Y&&M.current&&xe.key===" "&&(X.current=!0,M.current.stop(xe,()=>{M.current.start(xe)})),xe.target===xe.currentTarget&&U()&&xe.key===" "&&xe.preventDefault(),C&&C(xe),xe.target===xe.currentTarget&&U()&&xe.key==="Enter"&&!l&&(xe.preventDefault(),b&&b(xe))}),Q=Sr(xe=>{p&&xe.key===" "&&M.current&&Y&&!xe.defaultPrevented&&(X.current=!1,M.current.stop(xe,()=>{M.current.pulsate(xe)})),O&&O(xe),b&&xe.target===xe.currentTarget&&U()&&xe.key===" "&&!xe.defaultPrevented&&b(xe)});let ue=u;ue==="button"&&(L.href||L.to)&&(ue=v);const ge={};ue==="button"?(ge.type=D===void 0?"button":D,ge.disabled=l):(!L.href&&!L.to&&(ge.role="button"),l&&(ge["aria-disabled"]=l));const Me=xt(r,le,B),Le=R({},n,{centerRipple:a,component:u,disabled:l,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:Y}),Pe=Lle(Le);return _.jsxs(Dle,R({as:ue,className:ce(Pe.root,s),ownerState:Le,onBlur:F,onClick:b,onContextMenu:Z,onFocus:z,onKeyDown:J,onKeyUp:Q,onMouseDown:oe,onMouseLeave:fe,onMouseUp:H,onDragLeave:ee,onTouchEnd:Oe,onTouchMove:Ae,onTouchStart:de,ref:Me,tabIndex:l?-1:j,type:D},ge,L,{children:[i,ie?_.jsx(Ale,R({ref:N,center:a},I)):null]}))}),ra=Ble;function zle(e){return we("MuiIconButton",e)}const Vle=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ule=["edge","children","className","color","disabled","disableFocusRipple","size"],Wle=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 _e(i,zle,t)},qle=V(ra,{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})=>R({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})`:Ye(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 R({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&R({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":R({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(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)},{[`&.${Vle.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Hle=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:d="medium"}=n,f=se(n,Ule),p=R({},n,{edge:o,color:s,disabled:u,disableFocusRipple:l,size:d}),v=Wle(p);return _.jsx(qle,R({className:ce(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:a}))}),yt=Hle;function Gle(e){return we("MuiTypography",e)}Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Kle=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Qle=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 _e(s,Gle,i)},Xle=V("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})=>R({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})),A2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Yle={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Jle=e=>Yle[e]||e,Zle=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTypography"}),o=Jle(n.color),a=ng(R({},n,{color:o})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=A2}=a,h=se(a,Kle),b=R({},a,{align:i,color:o,className:s,component:u,gutterBottom:l,noWrap:d,paragraph:f,variant:p,variantMapping:v}),x=u||(f?"p":v[p]||A2[p])||"span",g=Qle(b);return _.jsx(Xle,R({as:x,ref:r,ownerState:b,className:ce(g.root,s)},h))}),Ne=Zle;function eue(e){return we("MuiAppBar",e)}Ce("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const tue=["className","color","enableColorOnDark","position"],rue=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${ae(t)}`,`position${ae(r)}`]};return _e(o,eue,n)},Hf=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,nue=V(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 R({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&&R({},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"&&R({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&R({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Hf(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Hf(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:Hf(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Hf(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"}))}),oue=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=se(n,tue),l=R({},n,{color:a,position:s,enableColorOnDark:i}),d=rue(l);return _.jsx(nue,R({square:!0,component:"header",ownerState:l,elevation:4,className:ce(d.root,o,s==="fixed"&&"mui-fixed"),ref:r},u))}),aue=oue,EN="base";function iue(e){return`${EN}--${e}`}function sue(e,t){return`${EN}-${e}-${t}`}function PN(e,t){const r=YF[t];return r?iue(r):sue(e,t)}function lue(e,t){const r={};return t.forEach(n=>{r[n]=PN(e,n)}),r}function M2(e){return e.substring(2).toLowerCase()}function uue(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const d=xt(t.ref,s),f=Sr(h=>{const b=l.current;l.current=!1;const x=Dt(s.current);if(!u.current||!s.current||"clientX"in h&&uue(h,x))return;if(i.current){i.current=!1;return}let g;h.composedPath?g=h.composedPath().indexOf(s.current)>-1:g=!x.documentElement.contains(h.target)||s.current.contains(h.target),!g&&(r||!b)&&o(h)}),p=h=>b=>{l.current=!0;const x=t.props[h];x&&x(b)},v={ref:d};return a!==!1&&(v[a]=p(a)),c.useEffect(()=>{if(a!==!1){const h=M2(a),b=Dt(s.current),x=()=>{i.current=!0};return b.addEventListener(h,f),b.addEventListener("touchmove",x),()=>{b.removeEventListener(h,f),b.removeEventListener("touchmove",x)}}},[f,a]),n!==!1&&(v[n]=p(n)),c.useEffect(()=>{if(n!==!1){const h=M2(n),b=Dt(s.current);return b.addEventListener(h,f),()=>{b.removeEventListener(h,f)}}},[f,n]),_.jsx(c.Fragment,{children:c.cloneElement(t,v)})}const due=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fue(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 pue(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 vue(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||pue(e))}function mue(e){const t=[],r=[];return Array.from(e.querySelectorAll(due)).forEach((n,o)=>{const a=fue(n);a===-1||!vue(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 hue(){return!0}function gue(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=mue,isEnabled:i=hue,open:s}=e,u=c.useRef(!1),l=c.useRef(null),d=c.useRef(null),f=c.useRef(null),p=c.useRef(null),v=c.useRef(!1),h=c.useRef(null),b=xt(t.ref,h),x=c.useRef(null);c.useEffect(()=>{!s||!h.current||(v.current=!r)},[r,s]),c.useEffect(()=>{if(!s||!h.current)return;const y=Dt(h.current);return h.current.contains(y.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),v.current&&h.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),c.useEffect(()=>{if(!s||!h.current)return;const y=Dt(h.current),C=P=>{x.current=P,!(n||!i()||P.key!=="Tab")&&y.activeElement===h.current&&P.shiftKey&&(u.current=!0,d.current&&d.current.focus())},O=()=>{const P=h.current;if(P===null)return;if(!y.hasFocus()||!i()||u.current){u.current=!1;return}if(P.contains(y.activeElement)||n&&y.activeElement!==l.current&&y.activeElement!==d.current)return;if(y.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let E=[];if((y.activeElement===l.current||y.activeElement===d.current)&&(E=a(h.current)),E.length>0){var $,k;const T=!!(($=x.current)!=null&&$.shiftKey&&((k=x.current)==null?void 0:k.key)==="Tab"),j=E[0],I=E[E.length-1];typeof j!="string"&&typeof I!="string"&&(T?I.focus():j.focus())}else P.focus()};y.addEventListener("focusin",O),y.addEventListener("keydown",C,!0);const S=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(S),y.removeEventListener("focusin",O),y.removeEventListener("keydown",C,!0)}},[r,n,o,i,s,a]);const g=y=>{f.current===null&&(f.current=y.relatedTarget),v.current=!0,p.current=y.target;const C=t.props.onFocus;C&&C(y)},m=y=>{f.current===null&&(f.current=y.relatedTarget),v.current=!0};return _.jsxs(c.Fragment,{children:[_.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:b,onFocus:g}),_.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:d,"data-testid":"sentinelEnd"})]})}function yue(e){return typeof e=="function"?e():e}const $N=c.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=c.useState(null),u=xt(c.isValidElement(n)?n.ref:null,r);if(Jr(()=>{a||s(yue(o)||document.body)},[o,a]),Jr(()=>{if(i&&!a)return Jv(r,i),()=>{Jv(r,null)}},[r,i,a]),a){if(c.isValidElement(n)){const l={ref:u};return c.cloneElement(n,l)}return _.jsx(c.Fragment,{children:n})}return _.jsx(c.Fragment,{children:i&&ih.createPortal(n,i)})});function bue(e){const t=Dt(e);return t.body===e?On(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Pc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F2(e){return parseInt(On(e).getComputedStyle(e).paddingRight,10)||0}function _ue(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 N2(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,u=!_ue(i);s&&u&&Pc(i,o)})}function Qy(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function xue(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(bue(n)){const i=lN(Dt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${F2(n)+i}px`;const s=Dt(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${F2(u)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Dt(n).body;else{const i=n.parentElement,s=On(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 wue(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Sue{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&&Pc(t.modalRef,!1);const o=wue(r);N2(r,t.mount,t.modalRef,o,!0);const a=Qy(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=Qy(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=xue(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Qy(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&&Pc(t.modalRef,r),N2(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&&Pc(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Oue(e){return typeof e=="function"?e():e}function Cue(e){return e?e.props.hasOwnProperty("in"):!1}const Eue=new Sue;function Pue(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Eue,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:d,rootRef:f}=e,p=c.useRef({}),v=c.useRef(null),h=c.useRef(null),b=xt(h,f),[x,g]=c.useState(!d),m=Cue(u);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const C=()=>Dt(v.current),O=()=>(p.current.modalRef=h.current,p.current.mount=v.current,p.current),S=()=>{o.mount(O(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},P=Sr(()=>{const L=Oue(t)||C().body;o.add(O(),L),h.current&&S()}),E=c.useCallback(()=>o.isTopModal(O()),[o]),$=Sr(L=>{v.current=L,L&&(d&&E()?S():h.current&&Pc(h.current,y))}),k=c.useCallback(()=>{o.remove(O(),y)},[y,o]);c.useEffect(()=>()=>{k()},[k]),c.useEffect(()=>{d?P():(!m||!a)&&k()},[d,k,m,a,P]);const T=L=>B=>{var M;(M=L.onKeyDown)==null||M.call(L,B),!(B.key!=="Escape"||B.which===229||!E())&&(r||(B.stopPropagation(),l&&l(B,"escapeKeyDown")))},j=L=>B=>{var M;(M=L.onClick)==null||M.call(L,B),B.target===B.currentTarget&&l&&l(B,"backdropClick")};return{getRootProps:(L={})=>{const B=rm(e);delete B.onTransitionEnter,delete B.onTransitionExited;const M=R({},B,L);return R({role:"presentation"},M,{onKeyDown:T(M),ref:b})},getBackdropProps:(L={})=>{const B=L;return R({"aria-hidden":!0},B,{onClick:j(B),open:d})},getTransitionProps:()=>{const L=()=>{g(!1),i&&i()},B=()=>{g(!0),s&&s(),a&&k()};return{onEnter:l1(L,u==null?void 0:u.props.onEnter),onExited:l1(B,u==null?void 0:u.props.onExited)}},rootRef:b,portalRef:$,isTopModal:E,exited:x,hasTransition:m}}var Dr="top",Pn="bottom",$n="right",Br="left",gS="auto",of=[Dr,Pn,$n,Br],zl="start",gd="end",$ue="clippingParents",RN="viewport",Gu="popper",Rue="reference",L2=of.reduce(function(e,t){return e.concat([t+"-"+zl,t+"-"+gd])},[]),kN=[].concat(of,[gS]).reduce(function(e,t){return e.concat([t,t+"-"+zl,t+"-"+gd])},[]),kue="beforeRead",Tue="read",jue="afterRead",Iue="beforeMain",Aue="main",Mue="afterMain",Fue="beforeWrite",Nue="write",Lue="afterWrite",Due=[kue,Tue,jue,Iue,Aue,Mue,Fue,Nue,Lue];function xo(e){return e?(e.nodeName||"").toLowerCase():null}function Zr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ns(e){var t=Zr(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=Zr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yS(e){if(typeof ShadowRoot>"u")return!1;var t=Zr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Bue(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];!_n(a)||!xo(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 zue(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},{});!_n(o)||!xo(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const Vue={name:"applyStyles",enabled:!0,phase:"write",fn:Bue,effect:zue,requires:["computeStyles"]};function yo(e){return e.split("-")[0]}var Ni=Math.max,nm=Math.min,Vl=Math.round;function v1(){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 TN(){return!/^((?!chrome|android).)*safari/i.test(v1())}function Ul(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&_n(e)&&(o=e.offsetWidth>0&&Vl(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Vl(n.height)/e.offsetHeight||1);var i=ns(e)?Zr(e):window,s=i.visualViewport,u=!TN()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/o,d=(n.top+(u&&s?s.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:d,right:l+f,bottom:d+p,left:l,x:l,y:d}}function bS(e){var t=Ul(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 jN(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&yS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Go(e){return Zr(e).getComputedStyle(e)}function Uue(e){return["table","td","th"].indexOf(xo(e))>=0}function ii(e){return((ns(e)?e.ownerDocument:e.document)||window.document).documentElement}function _g(e){return xo(e)==="html"?e:e.assignedSlot||e.parentNode||(yS(e)?e.host:null)||ii(e)}function D2(e){return!_n(e)||Go(e).position==="fixed"?null:e.offsetParent}function Wue(e){var t=/firefox/i.test(v1()),r=/Trident/i.test(v1());if(r&&_n(e)){var n=Go(e);if(n.position==="fixed")return null}var o=_g(e);for(yS(o)&&(o=o.host);_n(o)&&["html","body"].indexOf(xo(o))<0;){var a=Go(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 af(e){for(var t=Zr(e),r=D2(e);r&&Uue(r)&&Go(r).position==="static";)r=D2(r);return r&&(xo(r)==="html"||xo(r)==="body"&&Go(r).position==="static")?t:r||Wue(e)||t}function _S(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $c(e,t,r){return Ni(e,nm(t,r))}function que(e,t,r){var n=$c(e,t,r);return n>r?r:n}function IN(){return{top:0,right:0,bottom:0,left:0}}function AN(e){return Object.assign({},IN(),e)}function MN(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Hue=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,AN(typeof t!="number"?t:MN(t,of))};function Gue(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=yo(r.placement),u=_S(s),l=[Br,$n].indexOf(s)>=0,d=l?"height":"width";if(!(!a||!i)){var f=Hue(o.padding,r),p=bS(a),v=u==="y"?Dr:Br,h=u==="y"?Pn:$n,b=r.rects.reference[d]+r.rects.reference[u]-i[u]-r.rects.popper[d],x=i[u]-r.rects.reference[u],g=af(a),m=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,y=b/2-x/2,C=f[v],O=m-p[d]-f[h],S=m/2-p[d]/2+y,P=$c(C,S,O),E=u;r.modifiersData[n]=(t={},t[E]=P,t.centerOffset=P-S,t)}}function Kue(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)||jN(t.elements.popper,o)&&(t.elements.arrow=o))}const Que={name:"arrow",enabled:!0,phase:"main",fn:Gue,effect:Kue,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wl(e){return e.split("-")[1]}var Xue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yue(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Vl(r*o)/o||0,y:Vl(n*o)/o||0}}function B2(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,d=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,h=i.y,b=h===void 0?0:h,x=typeof d=="function"?d({x:v,y:b}):{x:v,y:b};v=x.x,b=x.y;var g=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),y=Br,C=Dr,O=window;if(l){var S=af(r),P="clientHeight",E="clientWidth";if(S===Zr(r)&&(S=ii(r),Go(S).position!=="static"&&s==="absolute"&&(P="scrollHeight",E="scrollWidth")),S=S,o===Dr||(o===Br||o===$n)&&a===gd){C=Pn;var $=f&&S===O&&O.visualViewport?O.visualViewport.height:S[P];b-=$-n.height,b*=u?1:-1}if(o===Br||(o===Dr||o===Pn)&&a===gd){y=$n;var k=f&&S===O&&O.visualViewport?O.visualViewport.width:S[E];v-=k-n.width,v*=u?1:-1}}var T=Object.assign({position:s},l&&Xue),j=d===!0?Yue({x:v,y:b},Zr(r)):{x:v,y:b};if(v=j.x,b=j.y,u){var I;return Object.assign({},T,(I={},I[C]=m?"0":"",I[y]=g?"0":"",I.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+b+"px)":"translate3d("+v+"px, "+b+"px, 0)",I))}return Object.assign({},T,(t={},t[C]=m?b+"px":"",t[y]=g?v+"px":"",t.transform="",t))}function Jue(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:yo(t.placement),variation:Wl(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,B2(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,B2(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 Zue={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jue,data:{}};var Gf={passive:!0};function ece(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=Zr(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(d){d.addEventListener("scroll",r.update,Gf)}),s&&u.addEventListener("resize",r.update,Gf),function(){a&&l.forEach(function(d){d.removeEventListener("scroll",r.update,Gf)}),s&&u.removeEventListener("resize",r.update,Gf)}}const tce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ece,data:{}};var rce={left:"right",right:"left",bottom:"top",top:"bottom"};function Ip(e){return e.replace(/left|right|bottom|top/g,function(t){return rce[t]})}var nce={start:"end",end:"start"};function z2(e){return e.replace(/start|end/g,function(t){return nce[t]})}function xS(e){var t=Zr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function wS(e){return Ul(ii(e)).left+xS(e).scrollLeft}function oce(e,t){var r=Zr(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=TN();(l||!l&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s+wS(e),y:u}}function ace(e){var t,r=ii(e),n=xS(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ni(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ni(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+wS(e),u=-n.scrollTop;return Go(o||r).direction==="rtl"&&(s+=Ni(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:u}}function SS(e){var t=Go(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function FN(e){return["html","body","#document"].indexOf(xo(e))>=0?e.ownerDocument.body:_n(e)&&SS(e)?e:FN(_g(e))}function Rc(e,t){var r;t===void 0&&(t=[]);var n=FN(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=Zr(n),i=o?[a].concat(a.visualViewport||[],SS(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(Rc(_g(i)))}function m1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ice(e,t){var r=Ul(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 V2(e,t,r){return t===RN?m1(oce(e,r)):ns(t)?ice(t,r):m1(ace(ii(e)))}function sce(e){var t=Rc(_g(e)),r=["absolute","fixed"].indexOf(Go(e).position)>=0,n=r&&_n(e)?af(e):e;return ns(n)?t.filter(function(o){return ns(o)&&jN(o,n)&&xo(o)!=="body"}):[]}function lce(e,t,r,n){var o=t==="clippingParents"?sce(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(u,l){var d=V2(e,l,n);return u.top=Ni(d.top,u.top),u.right=nm(d.right,u.right),u.bottom=nm(d.bottom,u.bottom),u.left=Ni(d.left,u.left),u},V2(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 NN(e){var t=e.reference,r=e.element,n=e.placement,o=n?yo(n):null,a=n?Wl(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Dr:u={x:i,y:t.y-r.height};break;case Pn:u={x:i,y:t.y+t.height};break;case $n:u={x:t.x+t.width,y:s};break;case Br:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=o?_S(o):null;if(l!=null){var d=l==="y"?"height":"width";switch(a){case zl:u[l]=u[l]-(t[d]/2-r[d]/2);break;case gd:u[l]=u[l]+(t[d]/2-r[d]/2);break}}return u}function yd(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?$ue:s,l=r.rootBoundary,d=l===void 0?RN:l,f=r.elementContext,p=f===void 0?Gu:f,v=r.altBoundary,h=v===void 0?!1:v,b=r.padding,x=b===void 0?0:b,g=AN(typeof x!="number"?x:MN(x,of)),m=p===Gu?Rue:Gu,y=e.rects.popper,C=e.elements[h?m:p],O=lce(ns(C)?C:C.contextElement||ii(e.elements.popper),u,d,i),S=Ul(e.elements.reference),P=NN({reference:S,element:y,strategy:"absolute",placement:o}),E=m1(Object.assign({},y,P)),$=p===Gu?E:S,k={top:O.top-$.top+g.top,bottom:$.bottom-O.bottom+g.bottom,left:O.left-$.left+g.left,right:$.right-O.right+g.right},T=e.modifiersData.offset;if(p===Gu&&T){var j=T[o];Object.keys(k).forEach(function(I){var A=[$n,Pn].indexOf(I)>=0?1:-1,D=[Dr,Pn].indexOf(I)>=0?"y":"x";k[I]+=j[D]*A})}return k}function uce(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?kN:u,d=Wl(n),f=d?s?L2:L2.filter(function(h){return Wl(h)===d}):of,p=f.filter(function(h){return l.indexOf(h)>=0});p.length===0&&(p=f);var v=p.reduce(function(h,b){return h[b]=yd(e,{placement:b,boundary:o,rootBoundary:a,padding:i})[yo(b)],h},{});return Object.keys(v).sort(function(h,b){return v[h]-v[b]})}function cce(e){if(yo(e)===gS)return[];var t=Ip(e);return[z2(e),t,z2(t)]}function dce(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,d=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,h=v===void 0?!0:v,b=r.allowedAutoPlacements,x=t.options.placement,g=yo(x),m=g===x,y=u||(m||!h?[Ip(x)]:cce(x)),C=[x].concat(y).reduce(function(Y,G){return Y.concat(yo(G)===gS?uce(t,{placement:G,boundary:d,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:b}):G)},[]),O=t.rects.reference,S=t.rects.popper,P=new Map,E=!0,$=C[0],k=0;k=0,D=A?"width":"height",L=yd(t,{placement:T,boundary:d,rootBoundary:f,altBoundary:p,padding:l}),B=A?I?$n:Br:I?Pn:Dr;O[D]>S[D]&&(B=Ip(B));var M=Ip(B),N=[];if(a&&N.push(L[j]<=0),s&&N.push(L[B]<=0,L[M]<=0),N.every(function(Y){return Y})){$=T,E=!1;break}P.set(T,N)}if(E)for(var q=h?3:1,K=function(G){var ne=C.find(function(ve){var ie=P.get(ve);if(ie)return ie.slice(0,G).every(function(re){return re})});if(ne)return $=ne,"break"},W=q;W>0;W--){var le=K(W);if(le==="break")break}t.placement!==$&&(t.modifiersData[n]._skip=!0,t.placement=$,t.reset=!0)}}const fce={name:"flip",enabled:!0,phase:"main",fn:dce,requiresIfExists:["offset"],data:{_skip:!1}};function U2(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 W2(e){return[Dr,$n,Pn,Br].some(function(t){return e[t]>=0})}function pce(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=yd(t,{elementContext:"reference"}),s=yd(t,{altBoundary:!0}),u=U2(i,n),l=U2(s,o,a),d=W2(u),f=W2(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const vce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pce};function mce(e,t,r){var n=yo(e),o=[Br,Dr].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,[Br,$n].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function hce(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=kN.reduce(function(d,f){return d[f]=mce(f,t.rects,a),d},{}),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 gce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hce};function yce(e){var t=e.state,r=e.name;t.modifiersData[r]=NN({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bce={name:"popperOffsets",enabled:!0,phase:"read",fn:yce,data:{}};function _ce(e){return e==="x"?"y":"x"}function xce(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,d=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,h=r.tetherOffset,b=h===void 0?0:h,x=yd(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:d}),g=yo(t.placement),m=Wl(t.placement),y=!m,C=_S(g),O=_ce(C),S=t.modifiersData.popperOffsets,P=t.rects.reference,E=t.rects.popper,$=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,k=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(S){if(a){var I,A=C==="y"?Dr:Br,D=C==="y"?Pn:$n,L=C==="y"?"height":"width",B=S[C],M=B+x[A],N=B-x[D],q=v?-E[L]/2:0,K=m===zl?P[L]:E[L],W=m===zl?-E[L]:-P[L],le=t.elements.arrow,Y=v&&le?bS(le):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:IN(),ne=G[A],ve=G[D],ie=$c(0,P[L],Y[L]),re=y?P[L]/2-q-ie-ne-k.mainAxis:K-ie-ne-k.mainAxis,oe=y?-P[L]/2+q+ie+ve+k.mainAxis:W+ie+ve+k.mainAxis,Z=t.elements.arrow&&af(t.elements.arrow),ee=Z?C==="y"?Z.clientTop||0:Z.clientLeft||0:0,H=(I=T==null?void 0:T[C])!=null?I:0,fe=B+re-H-ee,de=B+oe-H,Oe=$c(v?nm(M,fe):M,B,v?Ni(N,de):N);S[C]=Oe,j[C]=Oe-B}if(s){var Ae,F=C==="x"?Dr:Br,z=C==="x"?Pn:$n,U=S[O],X=O==="y"?"height":"width",J=U+x[F],Q=U-x[z],ue=[Dr,Br].indexOf(g)!==-1,ge=(Ae=T==null?void 0:T[O])!=null?Ae:0,Me=ue?J:U-P[X]-E[X]-ge+k.altAxis,Le=ue?U+P[X]+E[X]-ge-k.altAxis:Q,Pe=v&&ue?que(Me,U,Le):$c(v?Me:J,U,v?Le:Q);S[O]=Pe,j[O]=Pe-U}t.modifiersData[n]=j}}const wce={name:"preventOverflow",enabled:!0,phase:"main",fn:xce,requiresIfExists:["offset"]};function Sce(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Oce(e){return e===Zr(e)||!_n(e)?xS(e):Sce(e)}function Cce(e){var t=e.getBoundingClientRect(),r=Vl(t.width)/e.offsetWidth||1,n=Vl(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Ece(e,t,r){r===void 0&&(r=!1);var n=_n(t),o=_n(t)&&Cce(t),a=ii(t),i=Ul(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((xo(t)!=="body"||SS(a))&&(s=Oce(t)),_n(t)?(u=Ul(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=wS(a))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Pce(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 $ce(e){var t=Pce(e);return Due.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Rce(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function kce(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 q2={placement:"bottom",modifiers:[],strategy:"absolute"};function H2(){for(var e=arguments.length,t=new Array(e),r=0;r_e({root:["root"]},ble(Ace)),Bce={},zce=c.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:u,open:l,placement:d,popperOptions:f,popperRef:p,slotProps:v={},slots:h={},TransitionProps:b}=t,x=se(t,Mce),g=c.useRef(null),m=xt(g,r),y=c.useRef(null),C=xt(y,p),O=c.useRef(C);Jr(()=>{O.current=C},[C]),c.useImperativeHandle(p,()=>y.current,[]);const S=Nce(d,i),[P,E]=c.useState(S),[$,k]=c.useState(h1(o));c.useEffect(()=>{y.current&&y.current.forceUpdate()}),c.useEffect(()=>{o&&k(h1(o))},[o]),Jr(()=>{if(!$||!l)return;const D=M=>{E(M.placement)};let L=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{D(M)}}];u!=null&&(L=L.concat(u)),f&&f.modifiers!=null&&(L=L.concat(f.modifiers));const B=Ice($,g.current,R({placement:S},f,{modifiers:L}));return O.current(B),()=>{B.destroy(),O.current(null)}},[$,s,u,l,f,S]);const T={placement:P};b!==null&&(T.TransitionProps=b);const j=Dce(),I=(n=h.root)!=null?n:"div",A=En({elementType:I,externalSlotProps:v.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:j.root});return _.jsx(I,R({},A,{children:typeof a=="function"?a(T):a}))}),Vce=c.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:d,placement:f="bottom",popperOptions:p=Bce,popperRef:v,style:h,transition:b=!1,slotProps:x={},slots:g={}}=t,m=se(t,Fce),[y,C]=c.useState(!0),O=()=>{C(!1)},S=()=>{C(!0)};if(!u&&!d&&(!b||y))return null;let P;if(a)P=a;else if(n){const k=h1(n);P=k&&Lce(k)?Dt(k).body:Dt(null).body}const E=!d&&u&&(!b||y)?"none":void 0,$=b?{in:d,onEnter:O,onExited:S}:void 0;return _.jsx($N,{disablePortal:s,container:P,children:_.jsx(zce,R({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:b?!y:d,placement:f,popperOptions:p,popperRef:v,slotProps:x,slots:g},m,{style:R({position:"fixed",top:0,left:0,display:E},h),TransitionProps:$,children:o}))})});function Uce(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=$i();c.useEffect(()=>{if(!o)return;function g(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[o,n]);const s=Sr((g,m)=>{n==null||n(g,m)}),u=Sr(g=>{!n||g==null||i.start(g,()=>{s(null,"timeout")})});c.useEffect(()=>(o&&u(t),i.clear),[o,t,u,i]);const l=g=>{n==null||n(g,"clickaway")},d=i.clear,f=c.useCallback(()=>{t!=null&&u(a??t*.5)},[t,a,u]),p=g=>m=>{const y=g.onBlur;y==null||y(m),f()},v=g=>m=>{const y=g.onFocus;y==null||y(m),d()},h=g=>m=>{const y=g.onMouseEnter;y==null||y(m),d()},b=g=>m=>{const y=g.onMouseLeave;y==null||y(m),f()};return c.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",f),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",d)}},[r,o,f,d]),{getRootProps:(g={})=>{const m=R({},rm(e),rm(g));return R({role:"presentation"},g,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:h(m),onMouseLeave:b(m)})},onClickAway:l}}const Wce=["onChange","maxRows","minRows","style","value"];function Kf(e){return parseInt(e,10)||0}const qce={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Hce(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Gce=c.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,u=se(t,Wce),{current:l}=c.useRef(s!=null),d=c.useRef(null),f=xt(r,d),p=c.useRef(null),v=c.useCallback(()=>{const x=d.current,m=On(x).getComputedStyle(x);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const y=p.current;y.style.width=m.width,y.value=x.value||t.placeholder||"x",y.value.slice(-1)===` -`&&(y.value+=" ");const C=m.boxSizing,O=Kf(m.paddingBottom)+Kf(m.paddingTop),S=Kf(m.borderBottomWidth)+Kf(m.borderTopWidth),P=y.scrollHeight;y.value="x";const E=y.scrollHeight;let $=P;a&&($=Math.max(Number(a)*E,$)),o&&($=Math.min(Number(o)*E,$)),$=Math.max($,E);const k=$+(C==="border-box"?O+S:0),T=Math.abs($-P)<=1;return{outerHeightStyle:k,overflowing:T}},[o,a,t.placeholder]),h=c.useCallback(()=>{const x=v();if(Hce(x))return;const g=d.current;g.style.height=`${x.outerHeightStyle}px`,g.style.overflow=x.overflowing?"hidden":""},[v]);Jr(()=>{const x=()=>{h()};let g;const m=_u(x),y=d.current,C=On(y);C.addEventListener("resize",m);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(x),O.observe(y)),()=>{m.clear(),cancelAnimationFrame(g),C.removeEventListener("resize",m),O&&O.disconnect()}},[v,h]),Jr(()=>{h()});const b=x=>{l||h(),n&&n(x)};return _.jsxs(c.Fragment,{children:[_.jsx("textarea",R({value:s,onChange:b,ref:f,rows:a,style:i},u)),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:R({},qce.shadow,i,{paddingTop:0,paddingBottom:0})})]})});var OS={};Object.defineProperty(OS,"__esModule",{value:!0});var DN=OS.default=void 0,Kce=Xce(c),Qce=_N;function BN(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(BN=function(n){return n?r:t})(e)}function Xce(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=BN(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 Yce(e){return Object.keys(e).length===0}function Jce(e=null){const t=Kce.useContext(Qce.ThemeContext);return!t||Yce(t)?e:t}DN=OS.default=Jce;const Zce=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ede=V(Vce,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tde=c.forwardRef(function(t,r){var n;const o=DN(),a=Ee({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:d,disablePortal:f,keepMounted:p,modifiers:v,open:h,placement:b,popperOptions:x,popperRef:g,transition:m,slots:y,slotProps:C}=a,O=se(a,Zce),S=(n=y==null?void 0:y.root)!=null?n:u==null?void 0:u.Root,P=R({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:v,open:h,placement:b,popperOptions:x,popperRef:g,transition:m},O);return _.jsx(ede,R({as:s,direction:o==null?void 0:o.direction,slots:{root:S},slotProps:C??l},P,{ref:r}))}),zN=tde;function na({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 rde=c.createContext(void 0),xg=rde;function ro(){return c.useContext(xg)}function nde(e){return _.jsx(Aae,R({},e,{defaultTheme:yg,themeId:es}))}function G2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function om(e,t=!1){return e&&(G2(e.value)&&e.value!==""||t&&G2(e.defaultValue)&&e.defaultValue!=="")}function ode(e){return e.startAdornment}function ade(e){return we("MuiInputBase",e)}const ide=Ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ql=ide,sde=["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"],wg=(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]},Sg=(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]},lde=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:d,readOnly:f,size:p,startAdornment:v,type:h}=e,b={root:["root",`color${ae(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ae(p)}`,d&&"multiline",v&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",h==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return _e(b,ade,t)},Og=V("div",{name:"MuiInputBase",slot:"Root",overridesResolver:wg})(({theme:e,ownerState:t})=>R({},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",[`&.${ql.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&R({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Cg=V("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Sg})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=R({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 R({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] + .${ql.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},[`&.${ql.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"})}),ude=_.jsx(nde,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),cde=c.forwardRef(function(t,r){var n;const o=Ee({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:h,fullWidth:b=!1,id:x,inputComponent:g="input",inputProps:m={},inputRef:y,maxRows:C,minRows:O,multiline:S=!1,name:P,onBlur:E,onChange:$,onClick:k,onFocus:T,onKeyDown:j,onKeyUp:I,placeholder:A,readOnly:D,renderSuffix:L,rows:B,slotProps:M={},slots:N={},startAdornment:q,type:K="text",value:W}=o,le=se(o,sde),Y=m.value!=null?m.value:W,{current:G}=c.useRef(Y!=null),ne=c.useRef(),ve=c.useCallback(Pe=>{},[]),ie=xt(ne,y,m.ref,ve),[re,oe]=c.useState(!1),Z=ro(),ee=na({props:o,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=Z?Z.focused:re,c.useEffect(()=>{!Z&&p&&re&&(oe(!1),E&&E())},[Z,p,re,E]);const H=Z&&Z.onFilled,fe=Z&&Z.onEmpty,de=c.useCallback(Pe=>{om(Pe)?H&&H():fe&&fe()},[H,fe]);Jr(()=>{G&&de({value:Y})},[Y,de,G]);const Oe=Pe=>{if(ee.disabled){Pe.stopPropagation();return}T&&T(Pe),m.onFocus&&m.onFocus(Pe),Z&&Z.onFocus?Z.onFocus(Pe):oe(!0)},Ae=Pe=>{E&&E(Pe),m.onBlur&&m.onBlur(Pe),Z&&Z.onBlur?Z.onBlur(Pe):oe(!1)},F=(Pe,...xe)=>{if(!G){const qe=Pe.target||ne.current;if(qe==null)throw new Error(Ho(1));de({value:qe.value})}m.onChange&&m.onChange(Pe,...xe),$&&$(Pe,...xe)};c.useEffect(()=>{de(ne.current)},[]);const z=Pe=>{ne.current&&Pe.currentTarget===Pe.target&&ne.current.focus(),k&&k(Pe)};let U=g,X=m;S&&U==="input"&&(B?X=R({type:void 0,minRows:B,maxRows:B},X):X=R({type:void 0,maxRows:C,minRows:O},X),U=Gce);const J=Pe=>{de(Pe.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};c.useEffect(()=>{Z&&Z.setAdornedStart(!!q)},[Z,q]);const Q=R({},o,{color:ee.color||"primary",disabled:ee.disabled,endAdornment:h,error:ee.error,focused:ee.focused,formControl:Z,fullWidth:b,hiddenLabel:ee.hiddenLabel,multiline:S,size:ee.size,startAdornment:q,type:K}),ue=lde(Q),ge=N.root||l.Root||Og,Me=M.root||d.root||{},Le=N.input||l.Input||Cg;return X=R({},X,(n=M.input)!=null?n:d.input),_.jsxs(c.Fragment,{children:[!v&&ude,_.jsxs(ge,R({},Me,!hd(ge)&&{ownerState:R({},Q,Me.ownerState)},{ref:r,onClick:z},le,{className:ce(ue.root,Me.className,u,D&&"MuiInputBase-readOnly"),children:[q,_.jsx(xg.Provider,{value:null,children:_.jsx(Le,R({ownerState:Q,"aria-invalid":ee.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:f,disabled:ee.disabled,id:x,onAnimationStart:J,name:P,placeholder:A,readOnly:D,required:ee.required,rows:B,value:Y,onKeyDown:j,onKeyUp:I,type:K},X,!hd(Le)&&{as:U,ownerState:R({},Q,X.ownerState)},{ref:ie,className:ce(ue.input,X.className,D&&"MuiInputBase-readOnly"),onBlur:Ae,onChange:F,onFocus:Oe}))}),h,L?L(R({},ee,{startAdornment:q})):null]}))]})}),Eg=cde;function dde(e){return we("MuiInput",e)}const fde=R({},ql,Ce("MuiInput",["root","underline","input"])),Ku=fde;function pde(e){return we("MuiOutlinedInput",e)}const vde=R({},ql,Ce("MuiOutlinedInput",["root","notchedOutline","input"])),ua=vde;function mde(e){return we("MuiFilledInput",e)}const hde=R({},ql,Ce("MuiFilledInput",["root","underline","input"])),fi=hde,VN=nn(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),gde=nn(_.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 yde(e){return we("MuiAvatar",e)}Ce("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const bde=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],_de=SN(),xde=e=>{const{classes:t,variant:r,colorDefault:n}=e;return _e({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},yde,t)},wde=V("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:R({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:R({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Sde=V("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Ode=V(gde,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Cde({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=c.useState(!1);return c.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 Ede=c.forwardRef(function(t,r){const n=_de({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:d,sizes:f,src:p,srcSet:v,variant:h="circular"}=n,b=se(n,bde);let x=null;const g=Cde(R({},d,{src:p,srcSet:v})),m=p||v,y=m&&g!=="error",C=R({},n,{colorDefault:!y,component:s,variant:h}),O=xde(C),[S,P]=Ole("img",{className:O.img,elementType:Sde,externalForwardedProps:{slots:u,slotProps:{img:R({},d,l.img)}},additionalProps:{alt:o,src:p,srcSet:v,sizes:f},ownerState:C});return y?x=_.jsx(S,R({},P)):a||a===0?x=a:m&&o?x=o[0]:x=_.jsx(Ode,{ownerState:C,className:O.fallback}),_.jsx(wde,R({as:s,ownerState:C,className:ce(O.root,i),ref:r},b,{children:x}))}),bd=Ede,Pde=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$de={entering:{opacity:1},entered:{opacity:1}},Rde=c.forwardRef(function(t,r){const n=Mn(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:u,in:l,onEnter:d,onEntered:f,onEntering:p,onExit:v,onExited:h,onExiting:b,style:x,timeout:g=o,TransitionComponent:m=pS}=t,y=se(t,Pde),C=c.useRef(null),O=xt(C,s.ref,r),S=A=>D=>{if(A){const L=C.current;D===void 0?A(L):A(L,D)}},P=S(p),E=S((A,D)=>{hS(A);const L=Bl({style:x,timeout:g,easing:u},{mode:"enter"});A.style.webkitTransition=n.transitions.create("opacity",L),A.style.transition=n.transitions.create("opacity",L),d&&d(A,D)}),$=S(f),k=S(b),T=S(A=>{const D=Bl({style:x,timeout:g,easing:u},{mode:"exit"});A.style.webkitTransition=n.transitions.create("opacity",D),A.style.transition=n.transitions.create("opacity",D),v&&v(A)}),j=S(h),I=A=>{a&&a(C.current,A)};return _.jsx(m,R({appear:i,in:l,nodeRef:C,onEnter:E,onEntered:$,onEntering:P,onExit:T,onExited:j,onExiting:k,addEndListener:I,timeout:g},y,{children:(A,D)=>c.cloneElement(s,R({style:R({opacity:0,visibility:A==="exited"&&!l?"hidden":void 0},$de[A],x,s.props.style),ref:O},D))}))}),UN=Rde;function kde(e){return we("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const Tde=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jde=e=>{const{classes:t,invisible:r}=e;return _e({root:["root",r&&"invisible"]},kde,t)},Ide=V("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>R({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"})),Ade=c.forwardRef(function(t,r){var n,o,a;const i=Ee({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:d={},componentsProps:f={},invisible:p=!1,open:v,slotProps:h={},slots:b={},TransitionComponent:x=UN,transitionDuration:g}=i,m=se(i,Tde),y=R({},i,{component:l,invisible:p}),C=jde(y),O=(n=h.root)!=null?n:f.root;return _.jsx(x,R({in:v,timeout:g},m,{children:_.jsx(Ide,R({"aria-hidden":!0},O,{as:(o=(a=b.root)!=null?a:d.Root)!=null?o:l,className:ce(C.root,u,O==null?void 0:O.className),ownerState:R({},y,O==null?void 0:O.ownerState),classes:C,ref:r,children:s}))}))}),WN=Ade,Mde=Ce("MuiBox",["root"]),Fde=Mde,Nde=em(),Lde=zae({themeId:es,defaultTheme:Nde,defaultClassName:Fde.root,generateClassName:oS.generate}),wr=Lde;function Dde(e){return we("MuiButton",e)}const Bde=Ce("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"]),Qf=Bde,zde=c.createContext({}),Vde=zde,Ude=c.createContext(void 0),Wde=Ude,qde=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Hde=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=_e(s,Dde,i);return R({},i,u)},qN=e=>R({},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}}),Gde=V(ra,{shouldForwardProp:e=>lr(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 R({},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":R({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(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})`:Ye(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})`:Ye(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":R({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Qf.focusVisible}`]:R({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Qf.disabled}`]:R({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 ${Ye(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"},[`&.${Qf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qf.disabled}`]:{boxShadow:"none"}}),Kde=V("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ae(r.size)}`]]}})(({ownerState:e})=>R({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},qN(e))),Qde=V("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ae(r.size)}`]]}})(({ownerState:e})=>R({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},qN(e))),Xde=c.forwardRef(function(t,r){const n=c.useContext(Vde),o=c.useContext(Wde),a=sS(n,t),i=Ee({props:a,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:h,focusVisibleClassName:b,fullWidth:x=!1,size:g="medium",startIcon:m,type:y,variant:C="text"}=i,O=se(i,qde),S=R({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:x,size:g,type:y,variant:C}),P=Hde(S),E=m&&_.jsx(Kde,{className:P.startIcon,ownerState:S,children:m}),$=h&&_.jsx(Qde,{className:P.endIcon,ownerState:S,children:h}),k=o||"";return _.jsxs(Gde,R({ownerState:S,className:ce(n.className,P.root,d,k),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ce(P.focusVisible,b),ref:r,type:y},O,{classes:P,children:[E,s,$]}))}),Bt=Xde;function Yde(e){return we("MuiCard",e)}Ce("MuiCard",["root"]);const Jde=["className","raised"],Zde=e=>{const{classes:t}=e;return _e({root:["root"]},Yde,t)},efe=V(ai,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),tfe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=se(n,Jde),s=R({},n,{raised:a}),u=Zde(s);return _.jsx(efe,R({className:ce(u.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),fs=tfe;function rfe(e){return we("MuiCardActions",e)}Ce("MuiCardActions",["root","spacing"]);const nfe=["disableSpacing","className"],ofe=e=>{const{classes:t,disableSpacing:r}=e;return _e({root:["root",!r&&"spacing"]},rfe,t)},afe=V("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>R({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ife=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a}=n,i=se(n,nfe),s=R({},n,{disableSpacing:o}),u=ofe(s);return _.jsx(afe,R({className:ce(u.root,a),ownerState:s,ref:r},i))}),HN=ife;function sfe(e){return we("MuiCardContent",e)}Ce("MuiCardContent",["root"]);const lfe=["className","component"],ufe=e=>{const{classes:t}=e;return _e({root:["root"]},sfe,t)},cfe=V("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),dfe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=se(n,lfe),s=R({},n,{component:a}),u=ufe(s);return _.jsx(cfe,R({as:a,className:ce(u.root,o),ownerState:s,ref:r},i))}),dn=dfe;function ffe(e){return we("MuiCardHeader",e)}const pfe=Ce("MuiCardHeader",["root","avatar","action","content","title","subheader"]),K2=pfe,vfe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],mfe=e=>{const{classes:t}=e;return _e({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},ffe,t)},hfe=V("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>R({[`& .${K2.title}`]:t.title,[`& .${K2.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),gfe=V("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),yfe=V("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),bfe=V("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),_fe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:d,title:f,titleTypographyProps:p}=n,v=se(n,vfe),h=R({},n,{component:s,disableTypography:u}),b=mfe(h);let x=f;x!=null&&x.type!==Ne&&!u&&(x=_.jsx(Ne,R({variant:a?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:x})));let g=l;return g!=null&&g.type!==Ne&&!u&&(g=_.jsx(Ne,R({variant:a?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},d,{children:g}))),_.jsxs(hfe,R({className:ce(b.root,i),as:s,ref:r,ownerState:h},v,{children:[a&&_.jsx(gfe,{className:b.avatar,ownerState:h,children:a}),_.jsxs(bfe,{className:b.content,ownerState:h,children:[x,g]}),o&&_.jsx(yfe,{className:b.action,ownerState:h,children:o})]}))}),pi=_fe;function xfe(e){return we("PrivateSwitchBase",e)}Ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const wfe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Sfe=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 _e(a,xfe,t)},Ofe=V(ra)(({ownerState:e})=>R({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Cfe=V("input",{shouldForwardProp:lr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Efe=c.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:d=!1,icon:f,id:p,inputProps:v,inputRef:h,name:b,onBlur:x,onChange:g,onFocus:m,readOnly:y,required:C=!1,tabIndex:O,type:S,value:P}=t,E=se(t,wfe),[$,k]=Dl({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),T=ro(),j=N=>{m&&m(N),T&&T.onFocus&&T.onFocus(N)},I=N=>{x&&x(N),T&&T.onBlur&&T.onBlur(N)},A=N=>{if(N.nativeEvent.defaultPrevented)return;const q=N.target.checked;k(q),g&&g(N,q)};let D=u;T&&typeof D>"u"&&(D=T.disabled);const L=S==="checkbox"||S==="radio",B=R({},t,{checked:$,disabled:D,disableFocusRipple:l,edge:d}),M=Sfe(B);return _.jsxs(Ofe,R({component:"span",className:ce(M.root,i),centerRipple:!0,focusRipple:!l,disabled:D,tabIndex:null,role:void 0,onFocus:j,onBlur:I,ownerState:B,ref:r},E,{children:[_.jsx(Cfe,R({autoFocus:n,checked:o,defaultChecked:s,className:M.input,disabled:D,id:L?p:void 0,name:b,onChange:A,readOnly:y,ref:h,required:C,ownerState:B,tabIndex:O,type:S},S==="checkbox"&&P===void 0?{}:{value:P},v)),$?a:f]}))}),GN=Efe,Pfe=nn(_.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"),$fe=nn(_.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"),Rfe=nn(_.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 kfe(e){return we("MuiCheckbox",e)}const Tfe=Ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Xy=Tfe,jfe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ife=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${ae(n)}`,`size${ae(o)}`]},i=_e(a,kfe,t);return R({},t,i)},Afe=V(GN,{shouldForwardProp:e=>lr(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})=>R({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})`:Ye(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Xy.checked}, &.${Xy.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Xy.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Mfe=_.jsx($fe,{}),Ffe=_.jsx(Pfe,{}),Nfe=_.jsx(Rfe,{}),Lfe=c.forwardRef(function(t,r){var n,o;const a=Ee({props:t,name:"MuiCheckbox"}),{checkedIcon:i=Mfe,color:s="primary",icon:u=Ffe,indeterminate:l=!1,indeterminateIcon:d=Nfe,inputProps:f,size:p="medium",className:v}=a,h=se(a,jfe),b=l?d:u,x=l?d:i,g=R({},a,{color:s,indeterminate:l,size:p}),m=Ife(g);return _.jsx(Afe,R({type:"checkbox",inputProps:R({"data-indeterminate":l},f),icon:c.cloneElement(b,{fontSize:(n=b.props.fontSize)!=null?n:p}),checkedIcon:c.cloneElement(x,{fontSize:(o=x.props.fontSize)!=null?o:p}),ownerState:g,ref:r,className:ce(m.root,v)},h,{classes:m}))}),Hl=Lfe;function Dfe(e){return we("MuiCircularProgress",e)}Ce("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Bfe=["className","color","disableShrink","size","style","thickness","value","variant"];let Pg=e=>e,Q2,X2,Y2,J2;const ca=44,zfe=ea(Q2||(Q2=Pg` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),Vfe=ea(X2||(X2=Pg` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),Ufe=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 _e(a,Dfe,t)},Wfe=V("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})=>R({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"&&ds(Y2||(Y2=Pg` - animation: ${0} 1.4s linear infinite; - `),zfe)),qfe=V("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Hfe=V("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})=>R({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&&ds(J2||(J2=Pg` - animation: ${0} 1.4s ease-in-out infinite; - `),Vfe)),Gfe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:d=0,variant:f="indeterminate"}=n,p=se(n,Bfe),v=R({},n,{color:a,disableShrink:i,size:s,thickness:l,value:d,variant:f}),h=Ufe(v),b={},x={},g={};if(f==="determinate"){const m=2*Math.PI*((ca-l)/2);b.strokeDasharray=m.toFixed(3),g["aria-valuenow"]=Math.round(d),b.strokeDashoffset=`${((100-d)/100*m).toFixed(3)}px`,x.transform="rotate(-90deg)"}return _.jsx(Wfe,R({className:ce(h.root,o),style:R({width:s,height:s},x,u),ownerState:v,ref:r,role:"progressbar"},g,p,{children:_.jsx(qfe,{className:h.svg,ownerState:v,viewBox:`${ca/2} ${ca/2} ${ca} ${ca}`,children:_.jsx(Hfe,{className:h.circle,style:b,ownerState:v,cx:ca,cy:ca,r:(ca-l)/2,fill:"none",strokeWidth:l})})}))}),Su=Gfe,Kfe=Mie({createStyledComponent:V("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ae(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ee({props:e,name:"MuiContainer"})}),$s=Kfe,Qfe=(e,t)=>R({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Xfe=e=>R({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 Yfe(e){return we("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const Jfe=["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"],Zfe=e=>{const{open:t,exited:r,classes:n}=e;return _e({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Yfe,n)},epe=V("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})=>R({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),tpe=V(WN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),rpe=c.forwardRef(function(t,r){var n,o,a,i,s,u;const l=Ee({name:"MuiModal",props:t}),{BackdropComponent:d=tpe,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:h,container:b,component:x,components:g={},componentsProps:m={},disableAutoFocus:y=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:O=!1,disablePortal:S=!1,disableRestoreFocus:P=!1,disableScrollLock:E=!1,hideBackdrop:$=!1,keepMounted:k=!1,onBackdropClick:T,open:j,slotProps:I,slots:A}=l,D=se(l,Jfe),L=R({},l,{closeAfterTransition:v,disableAutoFocus:y,disableEnforceFocus:C,disableEscapeKeyDown:O,disablePortal:S,disableRestoreFocus:P,disableScrollLock:E,hideBackdrop:$,keepMounted:k}),{getRootProps:B,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:K,exited:W,hasTransition:le}=Pue(R({},L,{rootRef:r})),Y=R({},L,{exited:W}),G=Zfe(Y),ne={};if(h.props.tabIndex===void 0&&(ne.tabIndex="-1"),le){const{onEnter:H,onExited:fe}=N();ne.onEnter=H,ne.onExited=fe}const ve=(n=(o=A==null?void 0:A.root)!=null?o:g.Root)!=null?n:epe,ie=(a=(i=A==null?void 0:A.backdrop)!=null?i:g.Backdrop)!=null?a:d,re=(s=I==null?void 0:I.root)!=null?s:m.root,oe=(u=I==null?void 0:I.backdrop)!=null?u:m.backdrop,Z=En({elementType:ve,externalSlotProps:re,externalForwardedProps:D,getSlotProps:B,additionalProps:{ref:r,as:x},ownerState:Y,className:ce(p,re==null?void 0:re.className,G==null?void 0:G.root,!Y.open&&Y.exited&&(G==null?void 0:G.hidden))}),ee=En({elementType:ie,externalSlotProps:oe,additionalProps:f,getSlotProps:H=>M(R({},H,{onClick:fe=>{T&&T(fe),H!=null&&H.onClick&&H.onClick(fe)}})),className:ce(oe==null?void 0:oe.className,f==null?void 0:f.className,G==null?void 0:G.backdrop),ownerState:Y});return!k&&!j&&(!le||W)?null:_.jsx($N,{ref:q,container:b,disablePortal:S,children:_.jsxs(ve,R({},Z,{children:[!$&&d?_.jsx(ie,R({},ee)):null,_.jsx(gue,{disableEnforceFocus:C,disableAutoFocus:y,disableRestoreFocus:P,isEnabled:K,open:j,children:c.cloneElement(h,ne)})]}))})}),CS=rpe;function npe(e){return we("MuiDialog",e)}const ope=Ce("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Yy=ope,ape=c.createContext({}),KN=ape,ipe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],spe=V(WN,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),lpe=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 _e(i,npe,t)},upe=V(CS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),cpe=V("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ae(r.scroll)}`]]}})(({ownerState:e})=>R({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"}})),dpe=V(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})=>R({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)`,[`&.${Yy.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}`,[`&.${Yy.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,[`&.${Yy.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),fpe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDialog"}),o=Mn(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:d,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:h=!1,maxWidth:b="sm",onBackdropClick:x,onClose:g,open:m,PaperComponent:y=ai,PaperProps:C={},scroll:O="paper",TransitionComponent:S=UN,transitionDuration:P=a,TransitionProps:E}=n,$=se(n,ipe),k=R({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:h,maxWidth:b,scroll:O}),T=lpe(k),j=c.useRef(),I=B=>{j.current=B.target===B.currentTarget},A=B=>{j.current&&(j.current=null,x&&x(B),g&&g(B,"backdropClick"))},D=rs(s),L=c.useMemo(()=>({titleId:D}),[D]);return _.jsx(upe,R({className:ce(T.root,f),closeAfterTransition:!0,components:{Backdrop:spe},componentsProps:{backdrop:R({transitionDuration:P,as:u},l)},disableEscapeKeyDown:p,onClose:g,open:m,ref:r,onClick:A,ownerState:k},$,{children:_.jsx(S,R({appear:!0,in:m,timeout:P,role:"presentation"},E,{children:_.jsx(cpe,{className:ce(T.container),onMouseDown:I,ownerState:k,children:_.jsx(dpe,R({as:y,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":D},C,{className:ce(T.paper,C.className),ownerState:k,children:_.jsx(KN.Provider,{value:L,children:d})}))})}))}))}),sf=fpe;function ppe(e){return we("MuiDialogActions",e)}Ce("MuiDialogActions",["root","spacing"]);const vpe=["className","disableSpacing"],mpe=e=>{const{classes:t,disableSpacing:r}=e;return _e({root:["root",!r&&"spacing"]},ppe,t)},hpe=V("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>R({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),gpe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=se(n,vpe),s=R({},n,{disableSpacing:a}),u=mpe(s);return _.jsx(hpe,R({className:ce(u.root,o),ownerState:s,ref:r},i))}),ES=gpe;function ype(e){return we("MuiDialogContent",e)}Ce("MuiDialogContent",["root","dividers"]);function bpe(e){return we("MuiDialogTitle",e)}const _pe=Ce("MuiDialogTitle",["root"]),xpe=_pe,wpe=["className","dividers"],Spe=e=>{const{classes:t,dividers:r}=e;return _e({root:["root",r&&"dividers"]},ype,t)},Ope=V("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>R({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}`}:{[`.${xpe.root} + &`]:{paddingTop:0}})),Cpe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=se(n,wpe),s=R({},n,{dividers:a}),u=Spe(s);return _.jsx(Ope,R({className:ce(u.root,o),ownerState:s,ref:r},i))}),lf=Cpe;function Epe(e){return we("MuiDialogContentText",e)}Ce("MuiDialogContentText",["root"]);const Ppe=["children","className"],$pe=e=>{const{classes:t}=e,n=_e({root:["root"]},Epe,t);return R({},t,n)},Rpe=V(Ne,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kpe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=se(n,Ppe),i=$pe(a);return _.jsx(Rpe,R({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:ce(i.root,o)},n,{classes:i}))}),$g=kpe,Tpe=["className","id"],jpe=e=>{const{classes:t}=e;return _e({root:["root"]},bpe,t)},Ipe=V(Ne,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ape=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=se(n,Tpe),s=n,u=jpe(s),{titleId:l=a}=c.useContext(KN);return _.jsx(Ipe,R({component:"h2",className:ce(u.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),uf=Ape;function Mpe(e){return we("MuiDivider",e)}const Fpe=Ce("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Z2=Fpe,Npe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Lpe=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:u}=e;return _e({root:["root",t&&"absolute",u,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Mpe,n)},Dpe=V("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>R({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ye(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>R({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>R({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>R({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>R({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Bpe=V("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>R({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),QN=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:u=!1,light:l=!1,orientation:d="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,h=se(n,Npe),b=R({},n,{absolute:o,component:s,flexItem:u,light:l,orientation:d,role:f,textAlign:p,variant:v}),x=Lpe(b);return _.jsx(Dpe,R({as:s,className:ce(x.root,i),role:f,ref:r,ownerState:b},h,{children:a?_.jsx(Bpe,{className:x.wrapper,ownerState:b,children:a}):null}))});QN.muiSkipListHighlight=!0;const g1=QN,zpe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vpe(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=On(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 Upe(e){return typeof e=="function"?e():e}function Xf(e,t,r){const n=Upe(r),o=Vpe(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Wpe=c.forwardRef(function(t,r){const n=Mn(),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:d="down",easing:f=o,in:p,onEnter:v,onEntered:h,onEntering:b,onExit:x,onExited:g,onExiting:m,style:y,timeout:C=a,TransitionComponent:O=pS}=t,S=se(t,zpe),P=c.useRef(null),E=xt(u.ref,P,r),$=M=>N=>{M&&(N===void 0?M(P.current):M(P.current,N))},k=$((M,N)=>{Xf(d,M,l),hS(M),v&&v(M,N)}),T=$((M,N)=>{const q=Bl({timeout:C,style:y,easing:f},{mode:"enter"});M.style.webkitTransition=n.transitions.create("-webkit-transform",R({},q)),M.style.transition=n.transitions.create("transform",R({},q)),M.style.webkitTransform="none",M.style.transform="none",b&&b(M,N)}),j=$(h),I=$(m),A=$(M=>{const N=Bl({timeout:C,style:y,easing:f},{mode:"exit"});M.style.webkitTransition=n.transitions.create("-webkit-transform",N),M.style.transition=n.transitions.create("transform",N),Xf(d,M,l),x&&x(M)}),D=$(M=>{M.style.webkitTransition="",M.style.transition="",g&&g(M)}),L=M=>{i&&i(P.current,M)},B=c.useCallback(()=>{P.current&&Xf(d,P.current,l)},[d,l]);return c.useEffect(()=>{if(p||d==="down"||d==="right")return;const M=_u(()=>{P.current&&Xf(d,P.current,l)}),N=On(P.current);return N.addEventListener("resize",M),()=>{M.clear(),N.removeEventListener("resize",M)}},[d,p,l]),c.useEffect(()=>{p||B()},[p,B]),_.jsx(O,R({nodeRef:P,onEnter:k,onEntered:j,onEntering:T,onExit:A,onExited:D,onExiting:I,addEndListener:L,appear:s,in:p,timeout:C},S,{children:(M,N)=>c.cloneElement(u,R({ref:E,style:R({visibility:M==="exited"&&!p?"hidden":void 0},y,u.props.style)},N))}))}),XN=Wpe;function qpe(e){return we("MuiDrawer",e)}Ce("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Hpe=["BackdropProps"],Gpe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],YN=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Kpe=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 _e(o,qpe,t)},Qpe=V(CS,{name:"MuiDrawer",slot:"Root",overridesResolver:YN})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),eR=V("div",{shouldForwardProp:lr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:YN})({flex:"0 0 auto"}),Xpe=V(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})=>R({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}`})),JN={left:"right",right:"left",top:"down",bottom:"up"};function Ype(e){return["left","right"].indexOf(e)!==-1}function Jpe({direction:e},t){return e==="rtl"&&Ype(t)?JN[t]:t}const Zpe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiDrawer"}),o=Mn(),a=oi(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:d,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:h,open:b=!1,PaperProps:x={},SlideProps:g,TransitionComponent:m=XN,transitionDuration:y=i,variant:C="temporary"}=n,O=se(n.ModalProps,Hpe),S=se(n,Gpe),P=c.useRef(!1);c.useEffect(()=>{P.current=!0},[]);const E=Jpe({direction:a?"rtl":"ltr"},s),k=R({},n,{anchor:s,elevation:f,open:b,variant:C},S),T=Kpe(k),j=_.jsx(Xpe,R({elevation:C==="temporary"?f:0,square:!0},x,{className:ce(T.paper,x.className),ownerState:k,children:l}));if(C==="permanent")return _.jsx(eR,R({className:ce(T.root,T.docked,d),ownerState:k,ref:r},S,{children:j}));const I=_.jsx(m,R({in:b,direction:JN[E],timeout:y,appear:P.current},g,{children:j}));return C==="persistent"?_.jsx(eR,R({className:ce(T.root,T.docked,d),ownerState:k,ref:r},S,{children:I})):_.jsx(Qpe,R({BackdropProps:R({},u,v,{transitionDuration:y}),className:ce(T.root,T.modal,d),open:b,ownerState:k,onClose:h,hideBackdrop:p,ref:r},S,O,{children:I}))}),eve=Zpe;function tve(e){return we("MuiFab",e)}const rve=Ce("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),tR=rve,nve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],ove=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${ae(o)}`,t==="inherit"?"colorInherit":t]},i=_e(a,tve,n);return R({},n,i)},ave=V(ra,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>lr(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 R({},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"},[`&.${tR.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})=>R({},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})=>({[`&.${tR.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),ive=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:d,size:f="large",variant:p="circular"}=n,v=se(n,nve),h=R({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),b=ove(h);return _.jsx(ave,R({className:ce(b.root,a),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ce(b.focusVisible,d),ownerState:h,ref:r},v,{classes:b,children:o}))}),sve=ive,lve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],uve=e=>{const{classes:t,disableUnderline:r}=e,o=_e({root:["root",!r&&"underline"],input:["input"]},mde,t);return R({},t,o)},cve=V(Og,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...wg(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 R({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}},[`&.${fi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${fi.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"},[`&.${fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fi.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(.${fi.disabled}, .${fi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fi.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&R({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}))}),dve=V(Cg,{name:"MuiFilledInput",slot:"Input",overridesResolver:Sg})(({theme:e,ownerState:t})=>R({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})),ZN=c.forwardRef(function(t,r){var n,o,a,i;const s=Ee({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:h={},type:b="text"}=s,x=se(s,lve),g=R({},s,{fullWidth:d,inputComponent:f,multiline:p,type:b}),m=uve(s),y={root:{ownerState:g},input:{ownerState:g}},C=v??l?Cr(y,v??l):y,O=(n=(o=h.root)!=null?o:u.Root)!=null?n:cve,S=(a=(i=h.input)!=null?i:u.Input)!=null?a:dve;return _.jsx(Eg,R({slots:{root:O,input:S},componentsProps:C,fullWidth:d,inputComponent:f,multiline:p,ref:r,type:b},x,{classes:m}))});ZN.muiName="Input";const eL=ZN;function fve(e){return we("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const pve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],vve=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${ae(r)}`,n&&"fullWidth"]};return _e(o,fve,t)},mve=V("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>R({},t.root,t[`margin${ae(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>R({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%"})),hve=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:h=!1,size:b="medium",variant:x="outlined"}=n,g=se(n,pve),m=R({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:h,size:b,variant:x}),y=vve(m),[C,O]=c.useState(()=>{let I=!1;return o&&c.Children.forEach(o,A=>{if(!kp(A,["Input","Select"]))return;const D=kp(A,["Select"])?A.props.input:A;D&&ode(D.props)&&(I=!0)}),I}),[S,P]=c.useState(()=>{let I=!1;return o&&c.Children.forEach(o,A=>{kp(A,["Input","Select"])&&(om(A.props,!0)||om(A.props.inputProps,!0))&&(I=!0)}),I}),[E,$]=c.useState(!1);u&&E&&$(!1);const k=d!==void 0&&!u?d:E;let T;const j=c.useMemo(()=>({adornedStart:C,setAdornedStart:O,color:i,disabled:u,error:l,filled:S,focused:k,fullWidth:f,hiddenLabel:p,size:b,onBlur:()=>{$(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{$(!0)},registerEffect:T,required:h,variant:x}),[C,i,u,l,S,k,f,p,T,h,b,x]);return _.jsx(xg.Provider,{value:j,children:_.jsx(mve,R({as:s,ownerState:m,className:ce(y.root,a),ref:r},g,{children:o}))})}),tL=hve,gve=Uie({createStyledComponent:V("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ee({props:e,name:"MuiStack"})}),cf=gve;function yve(e){return we("MuiFormControlLabel",e)}const bve=Ce("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uc=bve,_ve=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],xve=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${ae(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return _e(i,yve,t)},wve=V("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${uc.label}`]:t.label},t.root,t[`labelPlacement${ae(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>R({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${uc.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${uc.label}`]:{[`&.${uc.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Sve=V("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${uc.error}`]:{color:(e.vars||e).palette.error.main}})),Ove=c.forwardRef(function(t,r){var n,o;const a=Ee({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:d,label:f,labelPlacement:p="end",required:v,slotProps:h={}}=a,b=se(a,_ve),x=ro(),g=(n=l??u.props.disabled)!=null?n:x==null?void 0:x.disabled,m=v??u.props.required,y={disabled:g,required:m};["checked","name","onChange","value","inputRef"].forEach($=>{typeof u.props[$]>"u"&&typeof a[$]<"u"&&(y[$]=a[$])});const C=na({props:a,muiFormControl:x,states:["error"]}),O=R({},a,{disabled:g,labelPlacement:p,required:m,error:C.error}),S=xve(O),P=(o=h.typography)!=null?o:s.typography;let E=f;return E!=null&&E.type!==Ne&&!d&&(E=_.jsx(Ne,R({component:"span"},P,{className:ce(S.label,P==null?void 0:P.className),children:E}))),_.jsxs(wve,R({className:ce(S.root,i),ownerState:O,ref:r},b,{children:[c.cloneElement(u,y),m?_.jsxs(cf,{display:"block",children:[E,_.jsxs(Sve,{ownerState:O,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))}),y1=Ove;function Cve(e){return we("MuiFormGroup",e)}Ce("MuiFormGroup",["root","row","error"]);const Eve=["className","row"],Pve=e=>{const{classes:t,row:r,error:n}=e;return _e({root:["root",r&&"row",n&&"error"]},Cve,t)},$ve=V("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>R({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Rve=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=n,i=se(n,Eve),s=ro(),u=na({props:n,muiFormControl:s,states:["error"]}),l=R({},n,{row:a,error:u.error}),d=Pve(l);return _.jsx($ve,R({className:ce(d.root,o),ownerState:l,ref:r},i))}),kve=Rve;function Tve(e){return we("MuiFormHelperText",e)}const jve=Ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),rR=jve;var nR;const Ive=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Ave=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 _e(l,Tve,t)},Mve=V("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})=>R({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Fve=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=se(n,Ive),u=ro(),l=na({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),d=R({},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=Ave(d);return _.jsx(Mve,R({as:i,ownerState:d,className:ce(f.root,a),ref:r},s,{children:o===" "?nR||(nR=_.jsx("span",{className:"notranslate",children:"​"})):o}))}),PS=Fve;function Nve(e){return we("MuiFormLabel",e)}const Lve=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),kc=Lve,Dve=["children","className","color","component","disabled","error","filled","focused","required"],Bve=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 _e(u,Nve,t)},zve=V("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>R({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>R({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${kc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${kc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kc.error}`]:{color:(e.vars||e).palette.error.main}})),Vve=V("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${kc.error}`]:{color:(e.vars||e).palette.error.main}})),Uve=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=se(n,Dve),u=ro(),l=na({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),d=R({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Bve(d);return _.jsxs(zve,R({as:i,ownerState:d,className:ce(f.root,a),ref:r},s,{children:[o,l.required&&_.jsxs(Vve,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Wve=Uve,qve=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function b1(e){return`scale(${e}, ${e**2})`}const Hve={entering:{opacity:1,transform:b1(1)},entered:{opacity:1,transform:"none"}},Jy=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rL=c.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:u,onEntered:l,onEntering:d,onExit:f,onExited:p,onExiting:v,style:h,timeout:b="auto",TransitionComponent:x=pS}=t,g=se(t,qve),m=$i(),y=c.useRef(),C=Mn(),O=c.useRef(null),S=xt(O,a.ref,r),P=D=>L=>{if(D){const B=O.current;L===void 0?D(B):D(B,L)}},E=P(d),$=P((D,L)=>{hS(D);const{duration:B,delay:M,easing:N}=Bl({style:h,timeout:b,easing:i},{mode:"enter"});let q;b==="auto"?(q=C.transitions.getAutoHeightDuration(D.clientHeight),y.current=q):q=B,D.style.transition=[C.transitions.create("opacity",{duration:q,delay:M}),C.transitions.create("transform",{duration:Jy?q:q*.666,delay:M,easing:N})].join(","),u&&u(D,L)}),k=P(l),T=P(v),j=P(D=>{const{duration:L,delay:B,easing:M}=Bl({style:h,timeout:b,easing:i},{mode:"exit"});let N;b==="auto"?(N=C.transitions.getAutoHeightDuration(D.clientHeight),y.current=N):N=L,D.style.transition=[C.transitions.create("opacity",{duration:N,delay:B}),C.transitions.create("transform",{duration:Jy?N:N*.666,delay:Jy?B:B||N*.333,easing:M})].join(","),D.style.opacity=0,D.style.transform=b1(.75),f&&f(D)}),I=P(p),A=D=>{b==="auto"&&m.start(y.current||0,D),n&&n(O.current,D)};return _.jsx(x,R({appear:o,in:s,nodeRef:O,onEnter:$,onEntered:k,onEntering:E,onExit:j,onExited:I,onExiting:T,addEndListener:A,timeout:b==="auto"?null:b},g,{children:(D,L)=>c.cloneElement(a,R({style:R({opacity:0,transform:b1(.75),visibility:D==="exited"&&!s?"hidden":void 0},Hve[D],h,a.props.style),ref:S},L))}))});rL.muiSupportAuto=!0;const am=rL,Gve=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Kve=e=>{const{classes:t,disableUnderline:r}=e,o=_e({root:["root",!r&&"underline"],input:["input"]},dde,t);return R({},t,o)},Qve=V(Og,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...wg(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})`),R({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"},[`&.${Ku.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ku.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(.${Ku.disabled}, .${Ku.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ku.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Xve=V(Cg,{name:"MuiInput",slot:"Input",overridesResolver:Sg})({}),nL=c.forwardRef(function(t,r){var n,o,a,i;const s=Ee({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:h,slots:b={},type:x="text"}=s,g=se(s,Gve),m=Kve(s),C={root:{ownerState:{disableUnderline:u}}},O=h??d?Cr(h??d,C):C,S=(n=(o=b.root)!=null?o:l.Root)!=null?n:Qve,P=(a=(i=b.input)!=null?i:l.Input)!=null?a:Xve;return _.jsx(Eg,R({slots:{root:S,input:P},slotProps:O,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:x},g,{classes:m}))});nL.muiName="Input";const $S=nL;function Yve(e){return we("MuiInputAdornment",e)}const Jve=Ce("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),oR=Jve;var aR;const Zve=["children","className","component","disablePointerEvents","disableTypography","position","variant"],eme=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ae(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},tme=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 _e(s,Yve,t)},rme=V("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:eme})(({theme:e,ownerState:t})=>R({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${oR.positionStart}&:not(.${oR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),nme=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:d}=n,f=se(n,Zve),p=ro()||{};let v=d;d&&p.variant,p&&!v&&(v=p.variant);const h=R({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),b=tme(h);return _.jsx(xg.Provider,{value:null,children:_.jsx(rme,R({as:i,ownerState:h,className:ce(b.root,a),ref:r},f,{children:typeof o=="string"&&!u?_.jsx(Ne,{color:"text.secondary",children:o}):_.jsxs(c.Fragment,{children:[l==="start"?aR||(aR=_.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),ml=nme;function ome(e){return we("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ame=["disableAnimation","margin","shrink","variant","className"],ime=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=_e(u,ome,t);return R({},t,l)},sme=V(Wve,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${kc.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})=>R({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"&&R({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&&R({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"&&R({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)"}))),lme=c.forwardRef(function(t,r){const n=Ee({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=se(n,ame),u=ro();let l=a;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const d=na({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=R({},n,{disableAnimation:o,formControl:u,shrink:l,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=ime(f);return _.jsx(sme,R({"data-shrink":l,ownerState:f,ref:r,className:ce(p.root,i)},s,{classes:p}))}),oL=lme;function ume(e){return we("MuiLinearProgress",e)}Ce("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const cme=["className","color","value","valueBuffer","variant"];let Ou=e=>e,iR,sR,lR,uR,cR,dR;const _1=4,dme=ea(iR||(iR=Ou` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),fme=ea(sR||(sR=Ou` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),pme=ea(lR||(lR=Ou` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),vme=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 _e(o,ume,t)},RS=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?gg(e.palette[t].main,.62):hg(e.palette[t].main,.5),mme=V("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})=>R({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:RS(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)"})),hme=V("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=RS(t,e.color);return R({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"})},ds(uR||(uR=Ou` - animation: ${0} 3s infinite linear; - `),pme)),gme=V("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})=>R({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 .${_1}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${_1}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ds(cR||(cR=Ou` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),dme)),yme=V("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})=>R({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:RS(t,e.color),transition:`transform .${_1}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ds(dR||(dR=Ou` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),fme)),bme=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:u="indeterminate"}=n,l=se(n,cme),d=R({},n,{color:a,variant:u}),f=vme(d),p=oi(),v={},h={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){v["aria-valuenow"]=Math.round(i),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let b=i-100;p&&(b=-b),h.bar1.transform=`translateX(${b}%)`}if(u==="buffer"&&s!==void 0){let b=(s||0)-100;p&&(b=-b),h.bar2.transform=`translateX(${b}%)`}return _.jsxs(mme,R({className:ce(f.root,o),ownerState:d,role:"progressbar"},v,{ref:r},l,{children:[u==="buffer"?_.jsx(hme,{className:f.dashed,ownerState:d}):null,_.jsx(gme,{className:f.bar1,ownerState:d,style:h.bar1}),u==="determinate"?null:_.jsx(yme,{className:f.bar2,ownerState:d,style:h.bar2})]}))}),_me=bme;function xme(e){return we("MuiLink",e)}const wme=Ce("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Sme=wme,aL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ome=e=>aL[e]||e,Cme=({theme:e,ownerState:t})=>{const r=Ome(t.color),n=Nl(e,`palette.${r}`,!1)||t.color,o=Nl(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ye(n,.4)},Eme=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Pme=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${ae(o)}`,r==="button"&&"button",n&&"focusVisible"]};return _e(a,xme,t)},$me=V(Ne,{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})=>R({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&R({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Cme({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"},[`&.${Sme.focusVisible}`]:{outline:"auto"}})),Rme=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:d="always",variant:f="inherit",sx:p}=n,v=se(n,Eme),{isFocusVisibleRef:h,onBlur:b,onFocus:x,ref:g}=mg(),[m,y]=c.useState(!1),C=xt(r,g),O=$=>{b($),h.current===!1&&y(!1),s&&s($)},S=$=>{x($),h.current===!0&&y(!0),u&&u($)},P=R({},n,{color:a,component:i,focusVisible:m,underline:d,variant:f}),E=Pme(P);return _.jsx($me,R({color:a,className:ce(E.root,o),classes:l,component:i,onBlur:O,onFocus:S,ref:C,ownerState:P,variant:f,sx:[...Object.keys(aL).includes(a)?[]:[{color:a}],...Array.isArray(p)?p:[p]]},v))}),kme=Rme,Tme=c.createContext({}),_d=Tme;function jme(e){return we("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const Ime=["children","className","component","dense","disablePadding","subheader"],Ame=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return _e({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jme,t)},Mme=V("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})=>R({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fme=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,d=se(n,Ime),f=c.useMemo(()=>({dense:s}),[s]),p=R({},n,{component:i,dense:s,disablePadding:u}),v=Ame(p);return _.jsx(_d.Provider,{value:f,children:_.jsxs(Mme,R({as:i,className:ce(v.root,a),ref:r,ownerState:p},d,{children:[l,o]}))})}),Nme=Fme;function Lme(e){return we("MuiListItemIcon",e)}const Dme=Ce("MuiListItemIcon",["root","alignItemsFlexStart"]),fR=Dme,Bme=["className"],zme=e=>{const{alignItems:t,classes:r}=e;return _e({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Lme,r)},Vme=V("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})=>R({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Ume=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=se(n,Bme),i=c.useContext(_d),s=R({},n,{alignItems:i.alignItems}),u=zme(s);return _.jsx(Vme,R({className:ce(u.root,o),ownerState:s,ref:r},a))}),iL=Ume;function Wme(e){return we("MuiListItemText",e)}const qme=Ce("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),im=qme,Hme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Gme=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return _e({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Wme,t)},Kme=V("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${im.primary}`]:t.primary},{[`& .${im.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>R({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Qme=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:d,secondaryTypographyProps:f}=n,p=se(n,Hme),{dense:v}=c.useContext(_d);let h=u??o,b=d;const x=R({},n,{disableTypography:i,inset:s,primary:!!h,secondary:!!b,dense:v}),g=Gme(x);return h!=null&&h.type!==Ne&&!i&&(h=_.jsx(Ne,R({variant:v?"body2":"body1",className:g.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:h}))),b!=null&&b.type!==Ne&&!i&&(b=_.jsx(Ne,R({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},f,{children:b}))),_.jsxs(Kme,R({className:ce(g.root,a),ownerState:x,ref:r},p,{children:[h,b]}))}),Xme=Qme,Yme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Zy(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function pR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function sL(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 Qu(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")||!sL(s,a)||u)s=o(e,s,r);else return s.focus(),!0}return!1}const Jme=c.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=se(t,Yme),v=c.useRef(null),h=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jr(()=>{o&&v.current.focus()},[o]),c.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(y,{direction:C})=>{const O=!v.current.style.width;if(y.clientHeight{const C=v.current,O=y.key,S=Dt(C).activeElement;if(O==="ArrowDown")y.preventDefault(),Qu(C,S,l,u,Zy);else if(O==="ArrowUp")y.preventDefault(),Qu(C,S,l,u,pR);else if(O==="Home")y.preventDefault(),Qu(C,null,l,u,Zy);else if(O==="End")y.preventDefault(),Qu(C,null,l,u,pR);else if(O.length===1){const P=h.current,E=O.toLowerCase(),$=performance.now();P.keys.length>0&&($-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&E!==P.keys[0]&&(P.repeating=!1)),P.lastTime=$,P.keys.push(E);const k=S&&!P.repeating&&sL(S,P);P.previousKeyMatched&&(k||Qu(C,S,!1,u,Zy,P))?y.preventDefault():P.previousKeyMatched=!1}d&&d(y)},x=xt(v,r);let g=-1;c.Children.forEach(i,(y,C)=>{if(!c.isValidElement(y)){g===C&&(g+=1,g>=i.length&&(g=-1));return}y.props.disabled||(f==="selectedMenu"&&y.props.selected||g===-1)&&(g=C),g===C&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const m=c.Children.map(i,(y,C)=>{if(C===g){const O={};return a&&(O.autoFocus=!0),y.props.tabIndex===void 0&&f==="selectedMenu"&&(O.tabIndex=0),c.cloneElement(y,O)}return y});return _.jsx(Nme,R({role:"menu",ref:x,className:s,onKeyDown:b,tabIndex:o?0:-1},p,{children:m}))}),lL=Jme;function Zme(e){return we("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);const ehe=["onEntering"],the=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],rhe=["slotProps"];function vR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function mR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function hR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function eb(e){return typeof e=="function"?e():e}const nhe=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},Zme,t)},ohe=V(CS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uL=V(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}),ahe=c.forwardRef(function(t,r){var n,o,a;const i=Ee({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:v,container:h,elevation:b=8,marginThreshold:x=16,open:g,PaperProps:m={},slots:y,slotProps:C,transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:S=am,transitionDuration:P="auto",TransitionProps:{onEntering:E}={},disableScrollLock:$=!1}=i,k=se(i.TransitionProps,ehe),T=se(i,the),j=(n=C==null?void 0:C.paper)!=null?n:m,I=c.useRef(),A=xt(I,j.ref),D=R({},i,{anchorOrigin:l,anchorReference:f,elevation:b,marginThreshold:x,externalPaperSlotProps:j,transformOrigin:O,TransitionComponent:S,transitionDuration:P,TransitionProps:k}),L=nhe(D),B=c.useCallback(()=>{if(f==="anchorPosition")return d;const H=eb(u),de=(H&&H.nodeType===1?H:Dt(I.current).body).getBoundingClientRect();return{top:de.top+vR(de,l.vertical),left:de.left+mR(de,l.horizontal)}},[u,l.horizontal,l.vertical,d,f]),M=c.useCallback(H=>({vertical:vR(H,O.vertical),horizontal:mR(H,O.horizontal)}),[O.horizontal,O.vertical]),N=c.useCallback(H=>{const fe={width:H.offsetWidth,height:H.offsetHeight},de=M(fe);if(f==="none")return{top:null,left:null,transformOrigin:hR(de)};const Oe=B();let Ae=Oe.top-de.vertical,F=Oe.left-de.horizontal;const z=Ae+fe.height,U=F+fe.width,X=On(eb(u)),J=X.innerHeight-x,Q=X.innerWidth-x;if(x!==null&&AeJ){const ue=z-J;Ae-=ue,de.vertical+=ue}if(x!==null&&FQ){const ue=U-Q;F-=ue,de.horizontal+=ue}return{top:`${Math.round(Ae)}px`,left:`${Math.round(F)}px`,transformOrigin:hR(de)}},[u,f,B,M,x]),[q,K]=c.useState(g),W=c.useCallback(()=>{const H=I.current;if(!H)return;const fe=N(H);fe.top!==null&&(H.style.top=fe.top),fe.left!==null&&(H.style.left=fe.left),H.style.transformOrigin=fe.transformOrigin,K(!0)},[N]);c.useEffect(()=>($&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[u,$,W]);const le=(H,fe)=>{E&&E(H,fe),W()},Y=()=>{K(!1)};c.useEffect(()=>{g&&W()}),c.useImperativeHandle(s,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),c.useEffect(()=>{if(!g)return;const H=_u(()=>{W()}),fe=On(u);return fe.addEventListener("resize",H),()=>{H.clear(),fe.removeEventListener("resize",H)}},[u,g,W]);let G=P;P==="auto"&&!S.muiSupportAuto&&(G=void 0);const ne=h||(u?Dt(eb(u)).body:void 0),ve=(o=y==null?void 0:y.root)!=null?o:ohe,ie=(a=y==null?void 0:y.paper)!=null?a:uL,re=En({elementType:ie,externalSlotProps:R({},j,{style:q?j.style:R({},j.style,{opacity:0})}),additionalProps:{elevation:b,ref:A},ownerState:D,className:ce(L.paper,j==null?void 0:j.className)}),oe=En({elementType:ve,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:T,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ne,open:g},ownerState:D,className:ce(L.root,v)}),{slotProps:Z}=oe,ee=se(oe,rhe);return _.jsx(ve,R({},ee,!hd(ve)&&{slotProps:Z,disableScrollLock:$},{children:_.jsx(S,R({appear:!0,in:g,onEntering:le,onExited:Y,timeout:G},k,{children:_.jsx(ie,R({},re,{children:p}))}))}))}),kS=ahe;function ihe(e){return we("MuiMenu",e)}Ce("MuiMenu",["root","paper","list"]);const she=["onEntering"],lhe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],uhe={vertical:"top",horizontal:"right"},che={vertical:"top",horizontal:"left"},dhe=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"],list:["list"]},ihe,t)},fhe=V(kS,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),phe=V(uL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vhe=V(lL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),mhe=c.forwardRef(function(t,r){var n,o;const a=Ee({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:v={},PopoverClasses:h,transitionDuration:b="auto",TransitionProps:{onEntering:x}={},variant:g="selectedMenu",slots:m={},slotProps:y={}}=a,C=se(a.TransitionProps,she),O=se(a,lhe),S=oi(),P=R({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:d,onEntering:x,PaperProps:v,transitionDuration:b,TransitionProps:C,variant:g}),E=dhe(P),$=i&&!l&&p,k=c.useRef(null),T=(M,N)=>{k.current&&k.current.adjustStyleForScrollbar(M,{direction:S?"rtl":"ltr"}),x&&x(M,N)},j=M=>{M.key==="Tab"&&(M.preventDefault(),f&&f(M,"tabKeyDown"))};let I=-1;c.Children.map(s,(M,N)=>{c.isValidElement(M)&&(M.props.disabled||(g==="selectedMenu"&&M.props.selected||I===-1)&&(I=N))});const A=(n=m.paper)!=null?n:phe,D=(o=y.paper)!=null?o:v,L=En({elementType:m.root,externalSlotProps:y.root,ownerState:P,className:[E.root,u]}),B=En({elementType:A,externalSlotProps:D,ownerState:P,className:E.paper});return _.jsx(fhe,R({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?uhe:che,slots:{paper:A,root:m.root},slotProps:{root:L,paper:B},open:p,ref:r,transitionDuration:b,TransitionProps:R({onEntering:T},C),ownerState:P},O,{classes:h,children:_.jsx(vhe,R({onKeyDown:j,actions:k,autoFocus:i&&(I===-1||l),autoFocusItem:$,variant:g},d,{className:ce(E.list,d.className),children:s}))}))}),Rg=mhe;function hhe(e){return we("MuiMenuItem",e)}const ghe=Ce("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xu=ghe,yhe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bhe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},_he=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,u=_e({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},hhe,i);return R({},i,u)},xhe=V(ra,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:bhe})(({theme:e,ownerState:t})=>R({},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"}},[`&.${Xu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ye(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})`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Z2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Z2.inset}`]:{marginLeft:52},[`& .${im.root}`]:{marginTop:0,marginBottom:0},[`& .${im.inset}`]:{paddingLeft:36},[`& .${fR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&R({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fR.root} svg`]:{fontSize:"1.25rem"}}))),whe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:d="menuitem",tabIndex:f,className:p}=n,v=se(n,yhe),h=c.useContext(_d),b=c.useMemo(()=>({dense:i||h.dense||!1,disableGutters:u}),[h.dense,i,u]),x=c.useRef(null);Jr(()=>{o&&x.current&&x.current.focus()},[o]);const g=R({},n,{dense:b.dense,divider:s,disableGutters:u}),m=_he(n),y=xt(x,r);let C;return n.disabled||(C=f!==void 0?f:-1),_.jsx(_d.Provider,{value:b,children:_.jsx(xhe,R({ref:y,role:d,tabIndex:C,component:a,focusVisibleClassName:ce(m.focusVisible,l),className:ce(m.root,p)},v,{ownerState:g,classes:m}))})}),Gr=whe;function cL(e){return we("MuiNativeSelect",e)}const She=Ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),TS=She,Ohe=["className","disabled","error","IconComponent","inputRef","variant"],Che=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 _e(s,cL,t)},dL=({ownerState:e,theme:t})=>R({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":R({},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"},[`&.${TS.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}}),Ehe=V("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:lr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${TS.multiple}`]:t.multiple}]}})(dL),fL=({ownerState:e,theme:t})=>R({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${TS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Phe=V("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]}})(fL),$he=c.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=se(t,Ohe),d=R({},t,{disabled:o,variant:u,error:a}),f=Che(d);return _.jsxs(c.Fragment,{children:[_.jsx(Ehe,R({ownerState:d,className:ce(f.select,n),disabled:o,ref:s||r},l)),t.multiple?null:_.jsx(Phe,{as:i,ownerState:d,className:f.icon})]})}),pL=$he,Rhe=["className","children","classes","IconComponent","input","inputProps","variant"],khe=["root"],The=e=>{const{classes:t}=e;return _e({root:["root"]},cL,t)},jhe=_.jsx($S,{}),vL=c.forwardRef(function(t,r){const n=Ee({name:"MuiNativeSelect",props:t}),{className:o,children:a,classes:i={},IconComponent:s=VN,input:u=jhe,inputProps:l}=n,d=se(n,Rhe),f=ro(),p=na({props:n,muiFormControl:f,states:["variant"]}),v=R({},n,{classes:i}),h=The(v),b=se(i,khe);return _.jsx(c.Fragment,{children:c.cloneElement(u,R({inputComponent:pL,inputProps:R({children:a,classes:b,IconComponent:s,variant:p.variant,type:void 0},l,u?u.props.inputProps:{}),ref:r},d,{className:ce(h.root,u.props.className,o)}))})});vL.muiName="Select";const gR=vL;var yR;const Ihe=["children","classes","className","label","notched"],Ahe=V("fieldset",{shouldForwardProp:lr})({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%"}),Mhe=V("legend",{shouldForwardProp:lr})(({ownerState:e,theme:t})=>R({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&&R({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 Fhe(e){const{className:t,label:r,notched:n}=e,o=se(e,Ihe),a=r!=null&&r!=="",i=R({},e,{notched:n,withLabel:a});return _.jsx(Ahe,R({"aria-hidden":!0,className:t,ownerState:i},o,{children:_.jsx(Mhe,{ownerState:i,children:a?_.jsx("span",{children:r}):yR||(yR=_.jsx("span",{className:"notranslate",children:"​"}))})}))}const Nhe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Lhe=e=>{const{classes:t}=e,n=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},pde,t);return R({},t,n)},Dhe=V(Og,{shouldForwardProp:e=>lr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:wg})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return R({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ua.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ua.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ua.focused} .${ua.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ua.error} .${ua.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ua.disabled} .${ua.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&R({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Bhe=V(Fhe,{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}}),zhe=V(Cg,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Sg})(({theme:e,ownerState:t})=>R({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})),mL=c.forwardRef(function(t,r){var n,o,a,i,s;const u=Ee({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:h,slots:b={},type:x="text"}=u,g=se(u,Nhe),m=Lhe(u),y=ro(),C=na({props:u,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),O=R({},u,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:y,fullWidth:d,hiddenLabel:C.hiddenLabel,multiline:v,size:C.size,type:x}),S=(n=(o=b.root)!=null?o:l.Root)!=null?n:Dhe,P=(a=(i=b.input)!=null?i:l.Input)!=null?a:zhe;return _.jsx(Eg,R({slots:{root:S,input:P},renderSuffix:E=>_.jsx(Bhe,{ownerState:O,className:m.notchedOutline,label:p!=null&&p!==""&&C.required?s||(s=_.jsxs(c.Fragment,{children:[p," ","*"]})):p,notched:typeof h<"u"?h:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:d,inputComponent:f,multiline:v,ref:r,type:x},g,{classes:R({},m,{notchedOutline:null})}))});mL.muiName="Input";const hL=mL;function Vhe(e){return we("MuiPagination",e)}Ce("MuiPagination",["root","ul","outlined","text"]);const Uhe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Whe(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:d=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=se(e,Uhe),[h,b]=Dl({controlled:l,default:o,name:r,state:"page"}),x=($,k)=>{l||b(k),u&&u($,k)},g=($,k)=>{const T=k-$+1;return Array.from({length:T},(j,I)=>$+I)},m=g(1,Math.min(t,n)),y=g(Math.max(n-t+1,t+1),n),C=Math.max(Math.min(h-p,n-t-p*2-1),t+2),O=Math.min(Math.max(h+p,t+p*2+2),y.length>0?y[0]-2:n-1),S=[...d?["first"]:[],...s?[]:["previous"],...m,...C>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...y,...i?[]:["next"],...f?["last"]:[]],P=$=>{switch($){case"first":return 1;case"previous":return h-1;case"next":return h+1;case"last":return n;default:return null}},E=S.map($=>typeof $=="number"?{onClick:k=>{x(k,$)},type:"page",page:$,selected:$===h,disabled:a,"aria-current":$===h?"true":void 0}:{onClick:k=>{x(k,P($))},type:$,page:P($),selected:!1,disabled:a||$.indexOf("ellipsis")===-1&&($==="next"||$==="last"?h>=n:h<=1)});return R({items:E},v)}function qhe(e){return we("MuiPaginationItem",e)}const Hhe=Ce("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),ln=Hhe,x1=nn(_.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),w1=nn(_.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),bR=nn(_.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),_R=nn(_.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Ghe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],gL=(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]},Khe=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 _e(l,qhe,t)},Qhe=V("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:gL})(({theme:e,ownerState:t})=>R({},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",[`&.${ln.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)})),Xhe=V(ra,{name:"MuiPaginationItem",slot:"Root",overridesResolver:gL})(({theme:e,ownerState:t})=>R({},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,[`&.${ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ln.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"}},[`&.${ln.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}))`:Ye(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ln.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${ln.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})=>R({},t.variant==="text"&&{[`&.${ln.selected}`]:R({},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}},[`&.${ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${ln.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)"}`,[`&.${ln.selected}`]:R({},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)`:Ye(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Ye(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}))`:Ye(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ln.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ye(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${ln.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Yhe=V("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>R({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Jhe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:u=!1,page:l,selected:d=!1,shape:f="circular",size:p="medium",slots:v={},type:h="page",variant:b="text"}=n,x=se(n,Ghe),g=R({},n,{color:a,disabled:u,selected:d,shape:f,size:p,type:h,variant:b}),m=oi(),y=Khe(g),O=(m?{previous:v.next||s.next||_R,next:v.previous||s.previous||bR,last:v.first||s.first||x1,first:v.last||s.last||w1}:{previous:v.previous||s.previous||bR,next:v.next||s.next||_R,first:v.first||s.first||x1,last:v.last||s.last||w1})[h];return h==="start-ellipsis"||h==="end-ellipsis"?_.jsx(Qhe,{ref:r,ownerState:g,className:ce(y.root,o),children:"…"}):_.jsxs(Xhe,R({ref:r,ownerState:g,component:i,disabled:u,className:ce(y.root,o)},x,{children:[h==="page"&&l,O?_.jsx(Yhe,{as:O,ownerState:g,className:y.icon}):null]}))}),Zhe=Jhe,ege=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],tge=e=>{const{classes:t,variant:r}=e;return _e({root:["root",r],ul:["ul"]},Vhe,t)},rge=V("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),nge=V("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function oge(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const age=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:d=oge,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=E=>_.jsx(Zhe,R({},E)),shape:h="circular",showFirstButton:b=!1,showLastButton:x=!1,siblingCount:g=1,size:m="medium",variant:y="text"}=n,C=se(n,ege),{items:O}=Whe(R({},n,{componentName:"Pagination"})),S=R({},n,{boundaryCount:o,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:d,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:h,showFirstButton:b,showLastButton:x,siblingCount:g,size:m,variant:y}),P=tge(S);return _.jsx(rge,R({"aria-label":"pagination navigation",className:ce(P.root,a),ownerState:S,ref:r},C,{children:_.jsx(nge,{className:P.ul,ownerState:S,children:O.map((E,$)=>_.jsx("li",{children:v(R({},E,{color:i,"aria-label":d(E.type,E.page,E.selected),shape:h,size:m,variant:y}))},$))})}))}),ige=age;function sge(e){return we("MuiScopedCssBaseline",e)}Ce("MuiScopedCssBaseline",["root"]);const lge=["className","component","enableColorScheme"],uge=e=>{const{classes:t}=e;return _e({root:["root"]},sge,t)},cge=V("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}}),R({},Qfe(e,t.enableColorScheme),Xfe(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),dge=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=se(n,lge),s=R({},n,{component:a}),u=uge(s);return _.jsx(cge,R({as:a,className:ce(u.root,o),ref:r,ownerState:s},i))}),fge=dge;function pge(e){return we("MuiSelect",e)}const Yu=Ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var xR;const vge=["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"],mge=V("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Yu.select}`]:t.select},{[`&.${Yu.select}`]:t[r.variant]},{[`&.${Yu.error}`]:t.error},{[`&.${Yu.multiple}`]:t.multiple}]}})(dL,{[`&.${Yu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hge=V("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]}})(fL),gge=V("input",{shouldForwardProp:e=>wN(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 wR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function yge(e){return e==null||typeof e=="string"&&!e.trim()}const bge=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 _e(s,pge,t)},_ge=c.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:v,error:h=!1,IconComponent:b,inputRef:x,labelId:g,MenuProps:m={},multiple:y,name:C,onBlur:O,onChange:S,onClose:P,onFocus:E,onOpen:$,open:k,readOnly:T,renderValue:j,SelectDisplayProps:I={},tabIndex:A,value:D,variant:L="standard"}=t,B=se(t,vge),[M,N]=Dl({controlled:D,default:f,name:"Select"}),[q,K]=Dl({controlled:k,default:d,name:"Select"}),W=c.useRef(null),le=c.useRef(null),[Y,G]=c.useState(null),{current:ne}=c.useRef(k!=null),[ve,ie]=c.useState(),re=xt(r,x),oe=c.useCallback(Te=>{le.current=Te,Te&&G(Te)},[]),Z=Y==null?void 0:Y.parentNode;c.useImperativeHandle(re,()=>({focus:()=>{le.current.focus()},node:W.current,value:M}),[M]),c.useEffect(()=>{d&&q&&Y&&!ne&&(ie(s?null:Z.clientWidth),le.current.focus())},[Y,s]),c.useEffect(()=>{i&&le.current.focus()},[i]),c.useEffect(()=>{if(!g)return;const Te=Dt(le.current).getElementById(g);if(Te){const Fe=()=>{getSelection().isCollapsed&&le.current.focus()};return Te.addEventListener("click",Fe),()=>{Te.removeEventListener("click",Fe)}}},[g]);const ee=(Te,Fe)=>{Te?$&&$(Fe):P&&P(Fe),ne||(ie(s?null:Z.clientWidth),K(Te))},H=Te=>{Te.button===0&&(Te.preventDefault(),le.current.focus(),ee(!0,Te))},fe=Te=>{ee(!1,Te)},de=c.Children.toArray(u),Oe=Te=>{const Fe=de.find(me=>me.props.value===Te.target.value);Fe!==void 0&&(N(Fe.props.value),S&&S(Te,Fe))},Ae=Te=>Fe=>{let me;if(Fe.currentTarget.hasAttribute("tabindex")){if(y){me=Array.isArray(M)?M.slice():[];const ke=M.indexOf(Te.props.value);ke===-1?me.push(Te.props.value):me.splice(ke,1)}else me=Te.props.value;if(Te.props.onClick&&Te.props.onClick(Fe),M!==me&&(N(me),S)){const ke=Fe.nativeEvent||Fe,ze=new ke.constructor(ke.type,ke);Object.defineProperty(ze,"target",{writable:!0,value:{value:me,name:C}}),S(ze,Te)}y||ee(!1,Fe)}},F=Te=>{T||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),ee(!0,Te))},z=Y!==null&&q,U=Te=>{!z&&O&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:M,name:C}}),O(Te))};delete B["aria-invalid"];let X,J;const Q=[];let ue=!1;(om({value:M})||v)&&(j?X=j(M):ue=!0);const ge=de.map(Te=>{if(!c.isValidElement(Te))return null;let Fe;if(y){if(!Array.isArray(M))throw new Error(Ho(2));Fe=M.some(me=>wR(me,Te.props.value)),Fe&&ue&&Q.push(Te.props.children)}else Fe=wR(M,Te.props.value),Fe&&ue&&(J=Te.props.children);return c.cloneElement(Te,{"aria-selected":Fe?"true":"false",onClick:Ae(Te),onKeyUp:me=>{me.key===" "&&me.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(me)},role:"option",selected:Fe,value:void 0,"data-value":Te.props.value})});ue&&(y?Q.length===0?X=null:X=Q.reduce((Te,Fe,me)=>(Te.push(Fe),me{const{classes:t}=e;return t},jS={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>lr(e)&&e!=="variant",slot:"Root"},Cge=V($S,jS)(""),Ege=V(hL,jS)(""),Pge=V(eL,jS)(""),yL=c.forwardRef(function(t,r){const n=Ee({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:d=VN,id:f,input:p,inputProps:v,label:h,labelId:b,MenuProps:x,multiple:g=!1,native:m=!1,onClose:y,onOpen:C,open:O,renderValue:S,SelectDisplayProps:P,variant:E="outlined"}=n,$=se(n,wge),k=m?pL:xge,T=ro(),j=na({props:n,muiFormControl:T,states:["variant","error"]}),I=j.variant||E,A=R({},n,{variant:I,classes:i}),D=Oge(A),L=se(D,Sge),B=p||{standard:_.jsx(Cge,{ownerState:A}),outlined:_.jsx(Ege,{label:h,ownerState:A}),filled:_.jsx(Pge,{ownerState:A})}[I],M=xt(r,B.ref);return _.jsx(c.Fragment,{children:c.cloneElement(B,R({inputComponent:k,inputProps:R({children:a,error:j.error,IconComponent:d,variant:I,type:void 0,multiple:g},m?{id:f}:{autoWidth:o,defaultOpen:u,displayEmpty:l,labelId:b,MenuProps:x,onClose:y,onOpen:C,open:O,renderValue:S,SelectDisplayProps:R({id:f},P)},v,{classes:v?Cr(L,v.classes):L},p?p.props.inputProps:{})},(g&&m||l)&&I==="outlined"?{notched:!0}:{},{ref:M,className:ce(B.props.className,s,D.root)},!p&&{variant:I},$))})});yL.muiName="Select";const IS=yL;function $ge(e){return we("MuiSnackbarContent",e)}Ce("MuiSnackbarContent",["root","message","action"]);const Rge=["action","className","message","role"],kge=e=>{const{classes:t}=e;return _e({root:["root"],action:["action"],message:["message"]},$ge,t)},Tge=V(ai,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Gie(e.palette.background.default,t);return R({},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}})}),jge=V("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Ige=V("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Age=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,u=se(n,Rge),l=n,d=kge(l);return _.jsxs(Tge,R({role:s,square:!0,elevation:6,className:ce(d.root,a),ownerState:l,ref:r},u,{children:[_.jsx(jge,{className:d.message,ownerState:l,children:i}),o?_.jsx(Ige,{className:d.action,ownerState:l,children:o}):null]}))}),Mge=Age;function Fge(e){return we("MuiSnackbar",e)}Ce("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Nge=["onEnter","onExited"],Lge=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Dge=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ae(r.vertical)}${ae(r.horizontal)}`]};return _e(n,Fge,t)},SR=V("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 R({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")]:R({},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"})})}),Bge=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiSnackbar"}),o=Mn(),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:d,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:h=!1,message:b,open:x,TransitionComponent:g=am,transitionDuration:m=a,TransitionProps:{onEnter:y,onExited:C}={}}=n,O=se(n.TransitionProps,Nge),S=se(n,Lge),P=R({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:h,TransitionComponent:g,transitionDuration:m}),E=Dge(P),{getRootProps:$,onClickAway:k}=Uce(R({},P)),[T,j]=c.useState(!0),I=En({elementType:SR,getSlotProps:$,externalForwardedProps:S,ownerState:P,additionalProps:{ref:r},className:[E.root,f]}),A=L=>{j(!0),C&&C(L)},D=(L,B)=>{j(!1),y&&y(L,B)};return!x&&T?null:_.jsx(cue,R({onClickAway:k},p,{children:_.jsx(SR,R({},I,{children:_.jsx(g,R({appear:!0,in:x,timeout:m,direction:s==="top"?"down":"up",onEnter:D,onExited:A},O,{children:d||_.jsx(Mge,R({message:b,action:i},v))}))}))}))}),zge=Bge;function Vge(e){return we("MuiTooltip",e)}const Uge=Ce("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Pa=Uge,Wge=["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 qge(e){return Math.round(e*1e5)/1e5}const Hge=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 _e(i,Vge,t)},Gge=V(zN,{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})=>R({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Pa.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Pa.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Pa.arrow}`]:R({},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"] .${Pa.arrow}`]:R({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Kge=V("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})=>R({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ye(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:`${qge(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Pa.popper}[data-popper-placement*="left"] &`]:R({transformOrigin:"right center"},t.isRtl?R({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):R({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Pa.popper}[data-popper-placement*="right"] &`]:R({transformOrigin:"left center"},t.isRtl?R({marginRight:"14px"},t.touch&&{marginRight:"24px"}):R({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Pa.popper}[data-popper-placement*="top"] &`]:R({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Pa.popper}[data-popper-placement*="bottom"] &`]:R({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Qge=V("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:Ye(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Yf=!1;const OR=new rf;let Ju={x:0,y:0};function Jf(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Xge=c.forwardRef(function(t,r){var n,o,a,i,s,u,l,d,f,p,v,h,b,x,g,m,y,C,O;const S=Ee({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:E,components:$={},componentsProps:k={},describeChild:T=!1,disableFocusListener:j=!1,disableHoverListener:I=!1,disableInteractive:A=!1,disableTouchListener:D=!1,enterDelay:L=100,enterNextDelay:B=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:K=0,leaveTouchDelay:W=1500,onClose:le,onOpen:Y,open:G,placement:ne="bottom",PopperComponent:ve,PopperProps:ie={},slotProps:re={},slots:oe={},title:Z,TransitionComponent:ee=am,TransitionProps:H}=S,fe=se(S,Wge),de=c.isValidElement(E)?E:_.jsx("span",{children:E}),Oe=Mn(),Ae=oi(),[F,z]=c.useState(),[U,X]=c.useState(null),J=c.useRef(!1),Q=A||N,ue=$i(),ge=$i(),Me=$i(),Le=$i(),[Pe,xe]=Dl({controlled:G,default:!1,name:"Tooltip",state:"open"});let qe=Pe;const ot=rs(q),tt=c.useRef(),Te=Sr(()=>{tt.current!==void 0&&(document.body.style.WebkitUserSelect=tt.current,tt.current=void 0),Le.clear()});c.useEffect(()=>Te,[Te]);const Fe=Ve=>{OR.clear(),Yf=!0,xe(!0),Y&&!qe&&Y(Ve)},me=Sr(Ve=>{OR.start(800+K,()=>{Yf=!1}),xe(!1),le&&qe&&le(Ve),ue.start(Oe.transitions.duration.shortest,()=>{J.current=!1})}),ke=Ve=>{J.current&&Ve.type!=="touchstart"||(F&&F.removeAttribute("title"),ge.clear(),Me.clear(),L||Yf&&B?ge.start(Yf?B:L,()=>{Fe(Ve)}):Fe(Ve))},ze=Ve=>{ge.clear(),Me.start(K,()=>{me(Ve)})},{isFocusVisibleRef:He,onBlur:wt,onFocus:Zt,ref:an}=mg(),[,ia]=c.useState(!1),Fn=Ve=>{wt(Ve),He.current===!1&&(ia(!1),ze(Ve))},gs=Ve=>{F||z(Ve.currentTarget),Zt(Ve),He.current===!0&&(ia(!0),ke(Ve))},NC=Ve=>{J.current=!0;const Vr=de.props;Vr.onTouchStart&&Vr.onTouchStart(Ve)},_5=Ve=>{NC(Ve),Me.clear(),ue.clear(),Te(),tt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Le.start(M,()=>{document.body.style.WebkitUserSelect=tt.current,ke(Ve)})},x5=Ve=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ve),Te(),Me.start(W,()=>{me(Ve)})};c.useEffect(()=>{if(!qe)return;function Ve(Vr){(Vr.key==="Escape"||Vr.key==="Esc")&&me(Vr)}return document.addEventListener("keydown",Ve),()=>{document.removeEventListener("keydown",Ve)}},[me,qe]);const w5=xt(de.ref,an,z,r);!Z&&Z!==0&&(qe=!1);const Wg=c.useRef(),S5=Ve=>{const Vr=de.props;Vr.onMouseMove&&Vr.onMouseMove(Ve),Ju={x:Ve.clientX,y:Ve.clientY},Wg.current&&Wg.current.update()},ju={},qg=typeof Z=="string";T?(ju.title=!qe&&qg&&!I?Z:null,ju["aria-describedby"]=qe?ot:null):(ju["aria-label"]=qg?Z:null,ju["aria-labelledby"]=qe&&!qg?ot:null);const Nn=R({},ju,fe,de.props,{className:ce(fe.className,de.props.className),onTouchStart:NC,ref:w5},N?{onMouseMove:S5}:{}),Iu={};D||(Nn.onTouchStart=_5,Nn.onTouchEnd=x5),I||(Nn.onMouseOver=Jf(ke,Nn.onMouseOver),Nn.onMouseLeave=Jf(ze,Nn.onMouseLeave),Q||(Iu.onMouseOver=ke,Iu.onMouseLeave=ze)),j||(Nn.onFocus=Jf(gs,Nn.onFocus),Nn.onBlur=Jf(Fn,Nn.onBlur),Q||(Iu.onFocus=gs,Iu.onBlur=Fn));const O5=c.useMemo(()=>{var Ve;let Vr=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return(Ve=ie.popperOptions)!=null&&Ve.modifiers&&(Vr=Vr.concat(ie.popperOptions.modifiers)),R({},ie.popperOptions,{modifiers:Vr})},[U,ie]),Au=R({},S,{isRtl:Ae,arrow:P,disableInteractive:Q,placement:ne,PopperComponentProp:ve,touch:J.current}),Hg=Hge(Au),LC=(n=(o=oe.popper)!=null?o:$.Popper)!=null?n:Gge,DC=(a=(i=(s=oe.transition)!=null?s:$.Transition)!=null?i:ee)!=null?a:am,BC=(u=(l=oe.tooltip)!=null?l:$.Tooltip)!=null?u:Kge,zC=(d=(f=oe.arrow)!=null?f:$.Arrow)!=null?d:Qge,C5=nl(LC,R({},ie,(p=re.popper)!=null?p:k.popper,{className:ce(Hg.popper,ie==null?void 0:ie.className,(v=(h=re.popper)!=null?h:k.popper)==null?void 0:v.className)}),Au),E5=nl(DC,R({},H,(b=re.transition)!=null?b:k.transition),Au),P5=nl(BC,R({},(x=re.tooltip)!=null?x:k.tooltip,{className:ce(Hg.tooltip,(g=(m=re.tooltip)!=null?m:k.tooltip)==null?void 0:g.className)}),Au),$5=nl(zC,R({},(y=re.arrow)!=null?y:k.arrow,{className:ce(Hg.arrow,(C=(O=re.arrow)!=null?O:k.arrow)==null?void 0:C.className)}),Au);return _.jsxs(c.Fragment,{children:[c.cloneElement(de,Nn),_.jsx(LC,R({as:ve??zN,placement:ne,anchorEl:N?{getBoundingClientRect:()=>({top:Ju.y,left:Ju.x,right:Ju.x,bottom:Ju.y,width:0,height:0})}:F,popperRef:Wg,open:F?qe:!1,id:ot,transition:!0},Iu,C5,{popperOptions:O5,children:({TransitionProps:Ve})=>_.jsx(DC,R({timeout:Oe.transitions.duration.shorter},Ve,E5,{children:_.jsxs(BC,R({},P5,{children:[Z,P?_.jsx(zC,R({},$5,{ref:X})):null]}))}))}))]})}),Yt=Xge;function Yge(e){return we("MuiSwitch",e)}const br=Ce("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Jge=["className","color","edge","size","sx"],Zge=SN(),eye=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&`edge${ae(r)}`,`size${ae(n)}`],switchBase:["switchBase",`color${ae(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=_e(s,Yge,t);return R({},t,u)},tye=V("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ae(r.edge)}`],t[`size${ae(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${br.thumb}`]:{width:16,height:16},[`& .${br.switchBase}`]:{padding:4,[`&.${br.checked}`]:{transform:"translateX(16px)"}}}}]}),rye=V(GN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${br.input}`]:t.input},r.color!=="default"&&t[`color${ae(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${br.checked}`]:{transform:"translateX(20px)"},[`&.${br.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${br.checked} + .${br.track}`]:{opacity:.5},[`&.${br.disabled} + .${br.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${br.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${br.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ye(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${br.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?gg(e.palette[t].main,.62):hg(e.palette[t].main,.55)}`}},[`&.${br.checked} + .${br.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),nye=V("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),oye=V("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),aye=c.forwardRef(function(t,r){const n=Zge({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:u}=n,l=se(n,Jge),d=R({},n,{color:a,edge:i,size:s}),f=eye(d),p=_.jsx(oye,{className:f.thumb,ownerState:d});return _.jsxs(tye,{className:ce(f.root,o),sx:u,ownerState:d,children:[_.jsx(rye,R({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:d},l,{classes:R({},f,{root:f.switchBase})})),_.jsx(nye,{className:f.track,ownerState:d})]})}),AS=aye;function iye(e){return we("MuiTab",e)}const sye=Ce("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),vi=sye,lye=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],uye=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:u}=e,l={root:["root",a&&i&&"labelIcon",`textColor${ae(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return _e(l,iye,t)},cye=V(ra,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ae(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>R({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${vi.iconWrapper}`]:R({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${vi.selected}`]:{opacity:1},[`&.${vi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${vi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${vi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${vi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${vi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),dye=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:d,label:f,onChange:p,onClick:v,onFocus:h,selected:b,selectionFollowsFocus:x,textColor:g="inherit",value:m,wrapped:y=!1}=n,C=se(n,lye),O=R({},n,{disabled:a,disableFocusRipple:i,selected:b,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:g,wrapped:y}),S=uye(O),P=u&&f&&c.isValidElement(u)?c.cloneElement(u,{className:ce(S.iconWrapper,u.props.className)}):u,E=k=>{!b&&p&&p(k,m),v&&v(k)},$=k=>{x&&!b&&p&&p(k,m),h&&h(k)};return _.jsxs(cye,R({focusRipple:!i,className:ce(S.root,o),ref:r,role:"tab","aria-selected":b,disabled:a,onClick:E,onFocus:$,ownerState:O,tabIndex:b?0:-1},C,{children:[l==="top"||l==="start"?_.jsxs(c.Fragment,{children:[P,f]}):_.jsxs(c.Fragment,{children:[f,P]}),d]}))}),bL=dye,fye=c.createContext(),_L=fye;function pye(e){return we("MuiTable",e)}Ce("MuiTable",["root","stickyHeader"]);const vye=["className","component","padding","size","stickyHeader"],mye=e=>{const{classes:t,stickyHeader:r}=e;return _e({root:["root",r&&"stickyHeader"]},pye,t)},hye=V("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>R({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":R({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),CR="table",gye=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTable"}),{className:o,component:a=CR,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=se(n,vye),d=R({},n,{component:a,padding:i,size:s,stickyHeader:u}),f=mye(d),p=c.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return _.jsx(_L.Provider,{value:p,children:_.jsx(hye,R({as:a,role:a===CR?null:"table",ref:r,className:ce(f.root,o),ownerState:d},l))})}),xL=gye,yye=c.createContext(),kg=yye;function bye(e){return we("MuiTableBody",e)}Ce("MuiTableBody",["root"]);const _ye=["className","component"],xye=e=>{const{classes:t}=e;return _e({root:["root"]},bye,t)},wye=V("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Sye={variant:"body"},ER="tbody",Oye=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTableBody"}),{className:o,component:a=ER}=n,i=se(n,_ye),s=R({},n,{component:a}),u=xye(s);return _.jsx(kg.Provider,{value:Sye,children:_.jsx(wye,R({className:ce(u.root,o),as:a,ref:r,role:a===ER?null:"rowgroup",ownerState:s},i))})}),wL=Oye;function Cye(e){return we("MuiTableCell",e)}const Eye=Ce("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Pye=Eye,$ye=["align","className","component","padding","scope","size","sortDirection","variant"],Rye=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 _e(s,Cye,t)},kye=V("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})=>R({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?gg(Ye(e.palette.divider,1),.88):hg(Ye(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",[`&.${Pye.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})),Tye=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:u,size:l,sortDirection:d,variant:f}=n,p=se(n,$ye),v=c.useContext(_L),h=c.useContext(kg),b=h&&h.variant==="head";let x;i?x=i:x=b?"th":"td";let g=u;x==="td"?g=void 0:!g&&b&&(g="col");const m=f||h&&h.variant,y=R({},n,{align:o,component:x,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),C=Rye(y);let O=null;return d&&(O=d==="asc"?"ascending":"descending"),_.jsx(kye,R({as:x,ref:r,className:ce(C.root,a),"aria-sort":O,scope:g,ownerState:y},p))}),pr=Tye;function jye(e){return we("MuiTableHead",e)}Ce("MuiTableHead",["root"]);const Iye=["className","component"],Aye=e=>{const{classes:t}=e;return _e({root:["root"]},jye,t)},Mye=V("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Fye={variant:"head"},PR="thead",Nye=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTableHead"}),{className:o,component:a=PR}=n,i=se(n,Iye),s=R({},n,{component:a}),u=Aye(s);return _.jsx(kg.Provider,{value:Fye,children:_.jsx(Mye,R({as:a,className:ce(u.root,o),ref:r,role:a===PR?null:"rowgroup",ownerState:s},i))})}),SL=Nye;function Lye(e){return we("MuiToolbar",e)}Ce("MuiToolbar",["root","gutters","regular","dense"]);const Dye=["className","component","disableGutters","variant"],Bye=e=>{const{classes:t,disableGutters:r,variant:n}=e;return _e({root:["root",!r&&"gutters",n]},Lye,t)},zye=V("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})=>R({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),Vye=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,u=se(n,Dye),l=R({},n,{component:a,disableGutters:i,variant:s}),d=Bye(l);return _.jsx(zye,R({as:a,className:ce(d.root,o),ref:r,ownerState:l},u))}),Cu=Vye,OL=nn(_.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),CL=nn(_.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Uye=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Wye=c.forwardRef(function(t,r){var n,o,a,i,s,u,l,d;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:h,nextIconButtonProps:b,onPageChange:x,page:g,rowsPerPage:m,showFirstButton:y,showLastButton:C,slots:O={},slotProps:S={}}=t,P=se(t,Uye),E=oi(),$=re=>{x(re,0)},k=re=>{x(re,g-1)},T=re=>{x(re,g+1)},j=re=>{x(re,Math.max(0,Math.ceil(p/m)-1))},I=(n=O.firstButton)!=null?n:yt,A=(o=O.lastButton)!=null?o:yt,D=(a=O.nextButton)!=null?a:yt,L=(i=O.previousButton)!=null?i:yt,B=(s=O.firstButtonIcon)!=null?s:x1,M=(u=O.lastButtonIcon)!=null?u:w1,N=(l=O.nextButtonIcon)!=null?l:CL,q=(d=O.previousButtonIcon)!=null?d:OL,K=E?A:I,W=E?D:L,le=E?L:D,Y=E?I:A,G=E?S.lastButton:S.firstButton,ne=E?S.nextButton:S.previousButton,ve=E?S.previousButton:S.nextButton,ie=E?S.firstButton:S.lastButton;return _.jsxs("div",R({ref:r},P,{children:[y&&_.jsx(K,R({onClick:$,disabled:v||g===0,"aria-label":h("first",g),title:h("first",g)},G,{children:E?_.jsx(M,R({},S.lastButtonIcon)):_.jsx(B,R({},S.firstButtonIcon))})),_.jsx(W,R({onClick:k,disabled:v||g===0,color:"inherit","aria-label":h("previous",g),title:h("previous",g)},ne??f,{children:E?_.jsx(N,R({},S.nextButtonIcon)):_.jsx(q,R({},S.previousButtonIcon))})),_.jsx(le,R({onClick:T,disabled:v||(p!==-1?g>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":h("next",g),title:h("next",g)},ve??b,{children:E?_.jsx(q,R({},S.previousButtonIcon)):_.jsx(N,R({},S.nextButtonIcon))})),C&&_.jsx(Y,R({onClick:j,disabled:v||g>=Math.ceil(p/m)-1,"aria-label":h("last",g),title:h("last",g)},ie,{children:E?_.jsx(B,R({},S.firstButtonIcon)):_.jsx(M,R({},S.lastButtonIcon))}))]}))}),qye=Wye;function Hye(e){return we("MuiTablePagination",e)}const Gye=Ce("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Tc=Gye;var $R;const Kye=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Qye=V(pr,{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}})),Xye=V(Cu,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>R({[`& .${Tc.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},[`& .${Tc.actions}`]:{flexShrink:0,marginLeft:20}})),Yye=V("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Jye=V("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>R({},e.typography.body2,{flexShrink:0})),Zye=V(IS,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>R({[`& .${Tc.selectIcon}`]:t.selectIcon,[`& .${Tc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Tc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),ebe=V(Gr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),tbe=V("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>R({},e.typography.body2,{flexShrink:0}));function rbe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function nbe(e){return`Go to ${e} page`}const obe=e=>{const{classes:t}=e;return _e({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Hye,t)},abe=c.forwardRef(function(t,r){var n;const o=Ee({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=qye,backIconButtonProps:i,className:s,colSpan:u,component:l=pr,count:d,disabled:f=!1,getItemAriaLabel:p=nbe,labelDisplayedRows:v=rbe,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:b,onPageChange:x,onRowsPerPageChange:g,page:m,rowsPerPage:y,rowsPerPageOptions:C=[10,25,50,100],SelectProps:O={},showFirstButton:S=!1,showLastButton:P=!1,slotProps:E={},slots:$={}}=o,k=se(o,Kye),T=o,j=obe(T),I=(n=E==null?void 0:E.select)!=null?n:O,A=I.native?"option":ebe;let D;(l===pr||l==="td")&&(D=u||1e3);const L=rs(I.id),B=rs(I.labelId),M=()=>d===-1?(m+1)*y:y===-1?d:Math.min(d,(m+1)*y);return _.jsx(Qye,R({colSpan:D,ref:r,as:l,ownerState:T,className:ce(j.root,s)},k,{children:_.jsxs(Xye,{className:j.toolbar,children:[_.jsx(Yye,{className:j.spacer}),C.length>1&&_.jsx(Jye,{className:j.selectLabel,id:B,children:h}),C.length>1&&_.jsx(Zye,R({variant:"standard"},!I.variant&&{input:$R||($R=_.jsx(Eg,{}))},{value:y,onChange:g,id:L,labelId:B},I,{classes:R({},I.classes,{root:ce(j.input,j.selectRoot,(I.classes||{}).root),select:ce(j.select,(I.classes||{}).select),icon:ce(j.selectIcon,(I.classes||{}).icon)}),disabled:f,children:C.map(N=>c.createElement(A,R({},!hd(A)&&{ownerState:T},{className:j.menuItem,key:N.label?N.label:N,value:N.value?N.value:N}),N.label?N.label:N))})),_.jsx(tbe,{className:j.displayedRows,children:v({from:d===0?0:m*y+1,to:M(),count:d===-1?-1:d,page:m})}),_.jsx(a,{className:j.actions,backIconButtonProps:i,count:d,nextIconButtonProps:b,onPageChange:x,page:m,rowsPerPage:y,showFirstButton:S,showLastButton:P,slotProps:E.actions,slots:$.actions,getItemAriaLabel:p,disabled:f})]})}))}),RR=abe;function ibe(e){return we("MuiTableRow",e)}const sbe=Ce("MuiTableRow",["root","selected","hover","head","footer"]),kR=sbe,lbe=["className","component","hover","selected"],ube=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return _e({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},ibe,t)},cbe=V("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,[`&.${kR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${kR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ye(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}))`:Ye(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),TR="tr",dbe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTableRow"}),{className:o,component:a=TR,hover:i=!1,selected:s=!1}=n,u=se(n,lbe),l=c.useContext(kg),d=R({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=ube(d);return _.jsx(cbe,R({as:a,ref:r,className:ce(f.root,o),role:a===TR?null:"row",ownerState:d},u))}),xd=dbe,fbe=nn(_.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function pbe(e){return we("MuiTableSortLabel",e)}const vbe=Ce("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),tb=vbe,mbe=["active","children","className","direction","hideSortIcon","IconComponent"],hbe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${ae(r)}`]};return _e(o,pbe,t)},gbe=V(ra,{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,[`& .${tb.icon}`]:{opacity:.5}},[`&.${tb.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${tb.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),ybe=V("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ae(r.direction)}`]]}})(({theme:e,ownerState:t})=>R({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)"})),bbe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=fbe}=n,d=se(n,mbe),f=R({},n,{active:o,direction:s,hideSortIcon:u,IconComponent:l}),p=hbe(f);return _.jsxs(gbe,R({className:ce(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},d,{children:[a,u&&!o?null:_.jsx(ybe,{as:l,className:ce(p.icon),ownerState:f})]}))}),_be=bbe;function xbe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function wbe(e,t,r,n={},o=()=>{}){const{ease:a=xbe,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const d=()=>{l=!0},f=p=>{if(l){o(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=a(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return u===r?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const Sbe=["onChange"],Obe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Cbe(e){const{onChange:t}=e,r=se(e,Sbe),n=c.useRef(),o=c.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Jr(()=>{const i=_u(()=>{const u=n.current;a(),u!==n.current&&t(n.current)}),s=On(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),c.useEffect(()=>{a(),t(n.current)},[t]),_.jsx("div",R({style:Obe,ref:o},r))}function Ebe(e){return we("MuiTabScrollButton",e)}const Pbe=Ce("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),$be=Pbe,Rbe=["className","slots","slotProps","direction","orientation","disabled"],kbe=e=>{const{classes:t,orientation:r,disabled:n}=e;return _e({root:["root",r,n&&"disabled"]},Ebe,t)},Tbe=V(ra,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>R({width:40,flexShrink:0,opacity:.8,[`&.${$be.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),jbe=c.forwardRef(function(t,r){var n,o;const a=Ee({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=a,d=se(a,Rbe),f=oi(),p=R({isRtl:f},a),v=kbe(p),h=(n=s.StartScrollButtonIcon)!=null?n:OL,b=(o=s.EndScrollButtonIcon)!=null?o:CL,x=En({elementType:h,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),g=En({elementType:b,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return _.jsx(Tbe,R({component:"div",className:ce(v.root,i),ref:r,role:null,ownerState:p,tabIndex:null},d,{children:l==="left"?_.jsx(h,R({},x)):_.jsx(b,R({},g))}))}),Ibe=jbe;function Abe(e){return we("MuiTabs",e)}const Mbe=Ce("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),rb=Mbe,Fbe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],jR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,IR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Zf=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},Nbe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return _e({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Abe,u)},Lbe=V("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${rb.scrollButtons}`]:t.scrollButtons},{[`& .${rb.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>R({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${rb.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Dbe=V("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>R({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Bbe=V("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>R({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),zbe=V("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>R({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Vbe=V(Cbe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),AR={},Ube=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTabs"}),o=Mn(),a=oi(),{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:d,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:h="primary",onChange:b,orientation:x="horizontal",ScrollButtonComponent:g=Ibe,scrollButtons:m="auto",selectionFollowsFocus:y,slots:C={},slotProps:O={},TabIndicatorProps:S={},TabScrollButtonProps:P={},textColor:E="primary",value:$,variant:k="standard",visibleScrollbar:T=!1}=n,j=se(n,Fbe),I=k==="scrollable",A=x==="vertical",D=A?"scrollTop":"scrollLeft",L=A?"top":"left",B=A?"bottom":"right",M=A?"clientHeight":"clientWidth",N=A?"height":"width",q=R({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:h,orientation:x,vertical:A,scrollButtons:m,textColor:E,variant:k,visibleScrollbar:T,fixed:!I,hideScrollbar:I&&!T,scrollableX:I&&!A,scrollableY:I&&A,centered:l&&!I,scrollButtonsHideMobile:!v}),K=Nbe(q),W=En({elementType:C.StartScrollButtonIcon,externalSlotProps:O.startScrollButtonIcon,ownerState:q}),le=En({elementType:C.EndScrollButtonIcon,externalSlotProps:O.endScrollButtonIcon,ownerState:q}),[Y,G]=c.useState(!1),[ne,ve]=c.useState(AR),[ie,re]=c.useState(!1),[oe,Z]=c.useState(!1),[ee,H]=c.useState(!1),[fe,de]=c.useState({overflow:"hidden",scrollbarWidth:0}),Oe=new Map,Ae=c.useRef(null),F=c.useRef(null),z=()=>{const me=Ae.current;let ke;if(me){const He=me.getBoundingClientRect();ke={clientWidth:me.clientWidth,scrollLeft:me.scrollLeft,scrollTop:me.scrollTop,scrollLeftNormalized:xie(me,a?"rtl":"ltr"),scrollWidth:me.scrollWidth,top:He.top,bottom:He.bottom,left:He.left,right:He.right}}let ze;if(me&&$!==!1){const He=F.current.children;if(He.length>0){const wt=He[Oe.get($)];ze=wt?wt.getBoundingClientRect():null}}return{tabsMeta:ke,tabMeta:ze}},U=Sr(()=>{const{tabsMeta:me,tabMeta:ke}=z();let ze=0,He;if(A)He="top",ke&&me&&(ze=ke.top-me.top+me.scrollTop);else if(He=a?"right":"left",ke&&me){const Zt=a?me.scrollLeftNormalized+me.clientWidth-me.scrollWidth:me.scrollLeft;ze=(a?-1:1)*(ke[He]-me[He]+Zt)}const wt={[He]:ze,[N]:ke?ke[N]:0};if(isNaN(ne[He])||isNaN(ne[N]))ve(wt);else{const Zt=Math.abs(ne[He]-wt[He]),an=Math.abs(ne[N]-wt[N]);(Zt>=1||an>=1)&&ve(wt)}}),X=(me,{animation:ke=!0}={})=>{ke?wbe(D,Ae.current,me,{duration:o.transitions.duration.standard}):Ae.current[D]=me},J=me=>{let ke=Ae.current[D];A?ke+=me:(ke+=me*(a?-1:1),ke*=a&&uN()==="reverse"?-1:1),X(ke)},Q=()=>{const me=Ae.current[M];let ke=0;const ze=Array.from(F.current.children);for(let He=0;Heme){He===0&&(ke=me);break}ke+=wt[M]}return ke},ue=()=>{J(-1*Q())},ge=()=>{J(Q())},Me=c.useCallback(me=>{de({overflow:null,scrollbarWidth:me})},[]),Le=()=>{const me={};me.scrollbarSizeListener=I?_.jsx(Vbe,{onChange:Me,className:ce(K.scrollableX,K.hideScrollbar)}):null;const ze=I&&(m==="auto"&&(ie||oe)||m===!0);return me.scrollButtonStart=ze?_.jsx(g,R({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:x,direction:a?"right":"left",onClick:ue,disabled:!ie},P,{className:ce(K.scrollButtons,P.className)})):null,me.scrollButtonEnd=ze?_.jsx(g,R({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:le},orientation:x,direction:a?"left":"right",onClick:ge,disabled:!oe},P,{className:ce(K.scrollButtons,P.className)})):null,me},Pe=Sr(me=>{const{tabsMeta:ke,tabMeta:ze}=z();if(!(!ze||!ke)){if(ze[L]ke[B]){const He=ke[D]+(ze[B]-ke[B]);X(He,{animation:me})}}}),xe=Sr(()=>{I&&m!==!1&&H(!ee)});c.useEffect(()=>{const me=_u(()=>{Ae.current&&U()});let ke;const ze=Zt=>{Zt.forEach(an=>{an.removedNodes.forEach(ia=>{var Fn;(Fn=ke)==null||Fn.unobserve(ia)}),an.addedNodes.forEach(ia=>{var Fn;(Fn=ke)==null||Fn.observe(ia)})}),me(),xe()},He=On(Ae.current);He.addEventListener("resize",me);let wt;return typeof ResizeObserver<"u"&&(ke=new ResizeObserver(me),Array.from(F.current.children).forEach(Zt=>{ke.observe(Zt)})),typeof MutationObserver<"u"&&(wt=new MutationObserver(ze),wt.observe(F.current,{childList:!0})),()=>{var Zt,an;me.clear(),He.removeEventListener("resize",me),(Zt=wt)==null||Zt.disconnect(),(an=ke)==null||an.disconnect()}},[U,xe]),c.useEffect(()=>{const me=Array.from(F.current.children),ke=me.length;if(typeof IntersectionObserver<"u"&&ke>0&&I&&m!==!1){const ze=me[0],He=me[ke-1],wt={root:Ae.current,threshold:.99},Zt=gs=>{re(!gs[0].isIntersecting)},an=new IntersectionObserver(Zt,wt);an.observe(ze);const ia=gs=>{Z(!gs[0].isIntersecting)},Fn=new IntersectionObserver(ia,wt);return Fn.observe(He),()=>{an.disconnect(),Fn.disconnect()}}},[I,m,ee,d==null?void 0:d.length]),c.useEffect(()=>{G(!0)},[]),c.useEffect(()=>{U()}),c.useEffect(()=>{Pe(AR!==ne)},[Pe,ne]),c.useImperativeHandle(u,()=>({updateIndicator:U,updateScrollButtons:xe}),[U,xe]);const qe=_.jsx(zbe,R({},S,{className:ce(K.indicator,S.className),ownerState:q,style:R({},ne,S.style)}));let ot=0;const tt=c.Children.map(d,me=>{if(!c.isValidElement(me))return null;const ke=me.props.value===void 0?ot:me.props.value;Oe.set(ke,ot);const ze=ke===$;return ot+=1,c.cloneElement(me,R({fullWidth:k==="fullWidth",indicator:ze&&!Y&&qe,selected:ze,selectionFollowsFocus:y,onChange:b,textColor:E,value:ke},ot===1&&$===!1&&!me.props.tabIndex?{tabIndex:0}:{}))}),Te=me=>{const ke=F.current,ze=Dt(ke).activeElement;if(ze.getAttribute("role")!=="tab")return;let wt=x==="horizontal"?"ArrowLeft":"ArrowUp",Zt=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(wt="ArrowRight",Zt="ArrowLeft"),me.key){case wt:me.preventDefault(),Zf(ke,ze,IR);break;case Zt:me.preventDefault(),Zf(ke,ze,jR);break;case"Home":me.preventDefault(),Zf(ke,null,jR);break;case"End":me.preventDefault(),Zf(ke,null,IR);break}},Fe=Le();return _.jsxs(Lbe,R({className:ce(K.root,f),ownerState:q,ref:r,as:p},j,{children:[Fe.scrollButtonStart,Fe.scrollbarSizeListener,_.jsxs(Dbe,{className:K.scroller,ownerState:q,style:{overflow:fe.overflow,[A?`margin${a?"Left":"Right"}`:"marginBottom"]:T?void 0:-fe.scrollbarWidth},ref:Ae,children:[_.jsx(Bbe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":x==="vertical"?"vertical":null,className:K.flexContainer,ownerState:q,onKeyDown:Te,ref:F,role:"tablist",children:tt}),Y&&qe]}),Fe.scrollButtonEnd]}))}),EL=Ube;function Wbe(e){return we("MuiTextField",e)}Ce("MuiTextField",["root"]);const qbe=["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"],Hbe={standard:$S,filled:eL,outlined:hL},Gbe=e=>{const{classes:t}=e;return _e({root:["root"]},Wbe,t)},Kbe=V(tL,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qbe=c.forwardRef(function(t,r){const n=Ee({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:h,id:b,InputLabelProps:x,inputProps:g,InputProps:m,inputRef:y,label:C,maxRows:O,minRows:S,multiline:P=!1,name:E,onBlur:$,onChange:k,onFocus:T,placeholder:j,required:I=!1,rows:A,select:D=!1,SelectProps:L,type:B,value:M,variant:N="outlined"}=n,q=se(n,qbe),K=R({},n,{autoFocus:a,color:u,disabled:d,error:f,fullWidth:v,multiline:P,required:I,select:D,variant:N}),W=Gbe(K),le={};N==="outlined"&&(x&&typeof x.shrink<"u"&&(le.notched=x.shrink),le.label=C),D&&((!L||!L.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const Y=rs(b),G=h&&Y?`${Y}-helper-text`:void 0,ne=C&&Y?`${Y}-label`:void 0,ve=Hbe[N],ie=_.jsx(ve,R({"aria-describedby":G,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:v,multiline:P,name:E,rows:A,maxRows:O,minRows:S,type:B,value:M,id:Y,inputRef:y,onBlur:$,onChange:k,onFocus:T,placeholder:j,inputProps:g},le,m));return _.jsxs(Kbe,R({className:ce(W.root,s),disabled:d,error:f,fullWidth:v,ref:r,required:I,color:u,variant:N,ownerState:K},q,{children:[C!=null&&C!==""&&_.jsx(oL,R({htmlFor:Y,id:ne},x,{children:C})),D?_.jsx(IS,R({"aria-describedby":G,id:Y,labelId:ne,value:M,input:ie},L,{children:i})):ie,h&&_.jsx(PS,R({id:G},p,{children:h}))]}))}),df=Qbe,Xbe=["getTrigger","target"];function Ybe(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 Jbe=typeof window<"u"?window:null;function PL(e={}){const{getTrigger:t=Ybe,target:r=Jbe}=e,n=se(e,Xbe),o=c.useRef(),[a,i]=c.useState(()=>t(o,n));return c.useEffect(()=>{const s=()=>{i(t(o,R({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var MS={},nb={};const Zbe=So(ole);var MR;function Re(){return MR||(MR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Zbe}(nb)),nb}var e0e=Se;Object.defineProperty(MS,"__esModule",{value:!0});var ff=MS.default=void 0,t0e=e0e(Re()),r0e=_;ff=MS.default=(0,t0e.default)((0,r0e.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 jc=function(){return jc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?c.createElement(dxe,null):null,t&&c.createElement(n1e,null),c.createElement(FL,null))},i1e=c.createElement(a1e,null);WL.propTypes={alwaysOn:w.bool,children:w.node,className:w.string,color:w.oneOf(["default","inherit","primary","secondary","transparent"]),container:Mh,open:w.bool,toolbar:w.element,userMenu:w.oneOfType([w.element,w.bool])};var s1e=c.createElement(US,null),xi="RaAppBar",Ti={appBar:"".concat(xi,"-appBar"),toolbar:"".concat(xi,"-toolbar"),menuButton:"".concat(xi,"-menuButton"),menuButtonIconClosed:"".concat(xi,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(xi,"-menuButtonIconOpen"),title:"".concat(xi,"-title")},l1e=V(aue,{name:xi,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Ti.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Ti.menuButton)]={marginRight:"0.2em"},t["& .".concat(Ti.title)]={},t}),QS={},u1e=Se;Object.defineProperty(QS,"__esModule",{value:!0});var qL=QS.default=void 0,c1e=u1e(Re()),d1e=_;qL=QS.default=(0,c1e.default)((0,d1e.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 XS={},f1e=Se;Object.defineProperty(XS,"__esModule",{value:!0});var HL=XS.default=void 0,p1e=f1e(Re()),v1e=_;HL=XS.default=(0,p1e.default)((0,v1e.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 Ac=function(){return Ac=Object.assign||function(e){for(var t,r=1,n=arguments.length;rg.closest("ul").getBoundingClientRect().bottom?y=m.lastChild:y=m.firstChild),y&&m===y.closest("ul")?o(g.dataset.index,u.current):(x.preventDefault(),x.stopPropagation()),g.classList.remove("drag-active"),document.removeEventListener("dragover",f)},b=function(x){x.preventDefault(),x.dataTransfer.dropEffect="move"};return c.createElement(B1e,{key:a,draggable:o?"true":void 0,onDrag:o?v:void 0,onDragStart:o?p:void 0,onDragEnd:o?h:void 0,onDragOver:o?b:void 0,"data-index":i},c.createElement("label",{htmlFor:"switch_".concat(i)},c.createElement(AS,{checked:t,onChange:n,name:i,id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),c.createElement(Ne,{variant:"body2",component:"span"},c.createElement(Sn,{label:r,source:a,resource:s}))),o&&c.createElement(YL,{className:"dragIcon",color:"disabled",fontSize:"small"}))},B1e=V("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}}),da=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;nC?O=da(da(da(da([],s.slice(0,C),!0),[s[y]],!1),s.slice(C,y),!0),s.slice(y+1),!0):O=da(da(da(da([],s.slice(0,y),!0),s.slice(y+1,C+1),!0),[s[y]],!1),s.slice(C+1),!0),u(O),p(function(S){return O.filter(function(P){return S.includes(P.index)}).map(function(P){return P.index})})}},b=function(){p([])},x=function(){p(s.map(function(g){return g.index}))};return c.createElement(wr,{pt:.5},c.createElement(wr,{component:"ul",sx:{paddingInlineStart:0,m:0}},s.map(function(g){return c.createElement(JL,{key:g.index,source:g.source,label:g.label,index:g.index,selected:f.includes(g.index),onToggle:v,onMove:h})})),c.createElement(wr,{onDrop:function(g){return g.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},c.createElement(Bt,{size:"small",onClick:b},a("ra.inspector.hideAll",{_:"Hide All"})),c.createElement(Bt,{size:"small",onClick:x},a("ra.inspector.showAll",{_:"Show All"}))))},aO={},V1e=Se;Object.defineProperty(aO,"__esModule",{value:!0});var ZL=aO.default=void 0,U1e=V1e(Re()),W1e=_;ZL=aO.default=(0,U1e.default)((0,W1e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var iO={},q1e=Se;Object.defineProperty(iO,"__esModule",{value:!0});var eD=iO.default=void 0,H1e=q1e(Re()),G1e=_;eD=iO.default=(0,H1e.default)((0,G1e.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var K1e=function(){var e=he();return sF("ra.configurable.inspector.title",{_:"Inspector"}),c.createElement(Ne,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},tD=function(){var e=Vw(),t=e.isEnabled,r=e.disable,n=e.title,o=e.titleOptions,a=e.editor,i=e.preferenceKey,s=c.useRef(!1),u=ere(i),l=Mn(),d=he(),f=c.useState(0),p=f[0],v=f[1],h=mr("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8,y:8}),b=h[0],x=h[1],g=c.useState(),m=g[0],y=g[1],C=function(P){var E=document==null?void 0:document.elementFromPoint(P.clientX,P.clientY);E.id==="inspector-dialog-title"&&(s.current=!0,P.dataTransfer.effectAllowed="move",P.dataTransfer.setData("inspector",""),setTimeout(function(){P.target.classList.add("hide")},0),y({x:P.clientX-b.x,y:P.clientY-b.y}))},O=function(P){s.current&&(x({x:P.clientX-m.x,y:P.clientY-m.y}),P.target.classList.remove("hide"),s.current=!1)};c.useEffect(function(){if(t){var P=function(E){E.dataTransfer.types.includes("inspector")&&E.preventDefault()};return document==null||document.addEventListener("dragover",P),function(){document==null||document.removeEventListener("dragover",P)}}},[t]),c.useEffect(function(){if(t){var P=function(){window==null||window.requestAnimationFrame(function(){x(function(E){return{x:Math.min(E.x,(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8),y:Math.min(E.y,(window==null?void 0:window.innerHeight)-50)}})})};return P(),window==null||window.addEventListener("resize",P),function(){window==null||window.removeEventListener("resize",P)}}},[t,x,l.breakpoints.values.sm]);var S=function(){u(),v(function(P){return P+1})};return t?c.createElement(Q1e,{className:Mc.modal,elevation:3,draggable:!0,onDragStart:C,onDragEnd:O,sx:{left:b.x,top:b.y}},c.createElement("div",{className:Mc.title},c.createElement(Ne,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&d(n,o)),c.createElement("span",{id:"inspector-toolbar"}),i&&c.createElement(yt,{"aria-label":d("ra.action.remove"),onClick:S,size:"small"},c.createElement(eD,{fontSize:"inherit"})),c.createElement(yt,{"aria-label":d("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},c.createElement(ZL,{fontSize:"inherit"}))),c.createElement("div",{className:Mc.content,key:p},c.createElement(iF,{value:i},a||c.createElement(K1e,null)))):null},Fp="RaInspector",Mc={modal:"".concat(Fp,"-modal"),title:"".concat(Fp,"-title"),content:"".concat(Fp,"-content")},Q1e=V(ai,{name:Fp,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}},t["& .".concat(Mc.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(Mc.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});tD.displayName="Inspector";var Si=function(){return Si=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),ih.createPortal(c.createElement(e_e,M1({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},Ag=w.oneOfType([w.string,w.element]);si.propTypes={defaultTitle:w.string,className:w.string,record:w.any,title:Ag};var r_e=function(e){var t=Ht().pathname,r=c.useRef(t);c.useEffect(function(){t!==r.current&&e()},[t,e])},F1=function(){return F1=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=Txe(x===!1||x===void 0?void 0:!x,l||!$||P||E);zw(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 T=c.useCallback(function(A){return zR(void 0,void 0,void 0,function(){var D;return VR(this,function(L){switch(L.label){case 0:return C!=null&&C.save?[4,C.save(A,Nc(Nc({},u),{transform:p}))]:[3,2];case 1:D=L.sent(),L.label=2;case 2:return D!=null&&dF(D,y.setError),[2]}})})},[y.setError,C,u,p]),j=c.useCallback(function(A){return zR(void 0,void 0,void 0,function(){return VR(this,function(D){switch(D.label){case 0:return s&&s(A),A.defaultPrevented?[2]:f!=="button"?[3,2]:(A.stopPropagation(),[4,y.handleSubmit(T)(A)]);case 1:D.sent(),D.label=2;case 2:return[2]}})})},[s,f,y,T]),I=i&&m(i,{_:i});return c.createElement(kxe,Nc({variant:h,type:f,color:r,"aria-label":I,disabled:k,onClick:j},g),E?c.createElement(Su,{sx:Pxe,size:14,thickness:3,color:"inherit"}):o,I)},Pxe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},$xe=c.createElement(wD,null);$u.propTypes={className:w.string,invalid:w.bool,label:w.string,variant:w.oneOf(["text","outlined","contained"]),icon:w.element,alwaysEnable:w.bool};var Rxe="RaSaveButton",kxe=V(Bt,{name:Rxe,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}),Txe=function(e,t){return typeof e>"u"?t:e},jxe=function(){return te.createElement(Axe,{onClick:Mxe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Ixe="RaSkipNavigationButton",Axe=V(nt,{name:Ixe,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})}}}),Mxe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Z1=function(){return Z1=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]=o-1,color:"primary"},c.createElement(jD,{fontSize:"small"})))},OO={},dwe=Se;Object.defineProperty(OO,"__esModule",{value:!0});var ID=OO.default=void 0,fwe=dwe(Re()),pwe=_;ID=OO.default=(0,fwe.default)((0,pwe.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff");var s_=function(){return s_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var W=I[0];W.id;var le=mwe(W,["id"]);q.current=le;for(var Y in q.current)q.current[Y]=null}var G=c.useCallback(function(Z){Z===void 0&&(Z=void 0);var ee=Z;Z==null&&(ee=q.current,c.Children.count(s)===1&&c.isValidElement(c.Children.only(s))&&!c.Children.only(s).props.source&&c.Children.map(s,function(H){return c.isValidElement(H)&&H.type!==J0}).some(Boolean)?ee="":(ee=ee||{},c.Children.forEach(s,function(H){var fe;c.isValidElement(H)&&H.type!==J0&&H.props.source&&(ee[H.props.source]=(fe=H.props.defaultValue)!==null&&fe!==void 0?fe:null)}))),j(ee),B("".concat(d,".").concat(I.length),{defaultValue:ee})},[j,s,B,d,I.length]),ne=function(Z){return function(ee){G(),Z&&Z(ee)}},ve=c.useCallback(function(Z,ee){A(Z,ee)},[A]),ie=c.useCallback(function(){L([]),k(!1)},[L]),re=De(N,d),oe=c.useMemo(function(){return{total:I.length,add:G,remove:K,reOrder:ve,source:d}},[G,I.length,ve,K,d]);return I?c.createElement(ED.Provider,{value:oe},c.createElement(hwe,{className:je(u,S&&"fullwidth",(p||f)&&"disabled"),sx:P},c.createElement("ul",{className:Mt.list},I.map(function(Z,ee){return c.createElement(Qxe,{key:Z.id,disabled:p||f,disableRemove:g,disableReordering:m,fields:I,getItemLabel:O,index:ee,member:"".concat(d,".").concat(ee),onRemoveField:K,onReorder:ve,record:re&&re[ee]||{},removeButton:o,reOrderButtons:i,resource:l,source:d,inline:y},s)})),!(p||f)&&!(h&&(b||g))&&c.createElement("div",{className:Mt.buttons},!h&&c.createElement("div",{className:Mt.add},c.cloneElement(r,{className:je("button-add","button-add-".concat(d)),onClick:ne(r.props.onClick)})),I.length>0&&!b&&!g&&c.createElement("div",{className:Mt.clear},c.createElement(jg,{isOpen:$,title:M("ra.action.clear_array_input"),content:M("ra.message.clear_array_input"),onConfirm:ie,onClose:function(){return k(!1)}}),c.createElement(vwe,{onClick:function(){return k(!0)}}))))):null};Od.propTypes={addButton:w.element,removeButton:w.element,children:w.node,className:w.string,field:w.object,fields:w.array,fieldState:w.object,formState:w.object,fullWidth:w.bool,inline:w.bool,record:w.object,source:w.string,resource:w.string,translate:w.func,readOnly:w.bool,disabled:w.bool,disableAdd:w.bool,disableRemove:w.oneOfType([w.func,w.bool]),TransitionProps:w.shape({})};var hwe=V("div",{name:oo,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,o=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(Mt.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)},r[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(Mt.index)]=(n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)},n[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(Mt.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(Mt.form)]={flex:2},t["& .".concat(Mt.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(Mt.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(Mt.buttons)]={display:"flex"},t["& .".concat(Mt.add)]={borderBottom:"none"},t["& .".concat(Mt.clear)]={borderBottom:"none"},t["& .".concat(Mt.line,":hover > .").concat(Mt.action)]={visibility:"visible"},t}),gwe=function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(d){try{l(n.next(d))}catch(f){i(f)}}function u(d){try{l(n.throw(d))}catch(f){i(f)}}function l(d){d.done?a(d.value):o(d.value).then(s,u)}l((n=n.apply(e,t||[])).next())})},ywe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(d){return u([l,d])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&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&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=Jwe&&(a=Ywe,i=!1,t=new Hwe(t));e:for(;++o0&&C.length>0&&C.every(function(O){return h.includes(O)}),onChange:y,onClick:function(O){return O.stopPropagation()}})),c.Children.map(t,function(O,S){return c.isValidElement(O)?c.createElement(Bwe,{className:je(Ie.headerCell,"column-".concat(O.props.source)),sort:f,field:O,isSorting:f.field===(O.props.sortBy||O.props.source),key:O.props.source||S,resource:u,updateSort:m}):null})))};PO.propTypes={children:w.node,className:w.string,sort:w.exact({field:w.string,order:w.oneOf(["ASC","DESC"])}),data:w.arrayOf(w.any),hasExpand:w.bool,hasBulkActions:w.bool,isRowSelectable:w.func,isRowExpandable:w.func,onSelect:w.func,onToggleItem:w.func,resource:w.string,selectedIds:w.arrayOf(w.any),setSort:w.func};PO.displayName="DatagridHeader";var uSe=function(e){var t=e.children,r=e.value;return te.createElement(MD.Provider,{value:r},t)};const cSe=uSe;var $O={},dSe=Se;Object.defineProperty($O,"__esModule",{value:!0});var VD=$O.default=void 0,fSe=dSe(Re()),pSe=_;VD=$O.default=(0,fSe.default)((0,pSe.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 p_=function(){return p_=Object.assign||function(e){for(var t,r=1,n=arguments.length;rE?$=fa(fa(fa(fa([],u.slice(0,E),!0),[u[P]],!1),u.slice(E,P),!0),u.slice(P+1),!0):$=fa(fa(fa(fa([],u.slice(0,P),!0),u.slice(P+1,E+1),!0),[u[P]],!1),u.slice(E+1),!0),l($),v(function(k){return $.filter(function(T){return k.includes(T.index)}).map(function(T){return T.index})})}};return c.createElement(c.Fragment,null,b?c.createElement(Yt,{title:x},c.createElement(yt,Em({"aria-label":x,color:"primary",onClick:g,size:"large"},KR(e)),c.createElement(v_,null))):c.createElement(PSe,Em({size:"small",onClick:g,startIcon:c.createElement(v_,null)},KR(e)),x),c.createElement(kS,{open:!!a,anchorEl:a,onClose:m,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},c.createElement(wr,{component:"ul",p:1,my:0},u.map(function(O){return c.createElement(JL,{key:O.index,source:O.source,label:O.label,index:O.index,selected:p.includes(O.index),onToggle:y,onMove:C})}))))},PSe=V(Bt,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),KR=function(e){e.resource,e.preferenceKey;var t=ESe(e,["resource","preferenceKey"]);return t};function $Se(e,t){for(var r=-1,n=e==null?0:e.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 d=function(){var p=a.getValues();return r.filter(function(v){var h=De(p,v.props.source);return v.props.alwaysOn||u[v.props.source]||h!==""&&typeof h<"u"})},f=c.useCallback(function(p){return l(p.currentTarget.dataset.key)},[l]);return c.createElement(eF,{prefix:"resources.".concat(o,".fields"),concatenate:!1},c.createElement(nEe,Va({className:t},eEe(n),{onSubmit:ZCe}),d().map(function(p){return c.createElement(XD,{key:p.key||p.props.source,filterElement:p,handleHide:f,resource:o,className:$m.filterFormInput})}),c.createElement("div",{className:$m.clearFix})))},ZCe=function(e){return e.preventDefault(),!1};YD.propTypes={resource:w.string,filters:w.arrayOf(w.node).isRequired,displayedFilters:w.object,hideFilter:w.func,initialValues:w.object,className:w.string};var eEe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=TO(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},tEe=function(e,t){return Va(Va({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return hh(Va({},r),n.props.source,n.props.defaultValue)},{})),e)},rEe=function(e){return e.preventDefault(),e.stopPropagation(),!1},h_="RaFilterForm",$m={clearFix:"".concat(h_,"-clearFix"),filterFormInput:"".concat(h_,"-filterFormInput")},nEe=V("form",{name:h_,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($m.clearFix)]={clear:"right"},t["& .".concat($m.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),oEe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=JD(e,o,t),n},(r=QD(t))!==null&&r!==void 0?r:{})},JD=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return De(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=JD(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return De(r,t,"")},jO={},aEe=Se;Object.defineProperty(jO,"__esModule",{value:!0});var ZD=jO.default=void 0,iEe=aEe(Re()),sEe=_;ZD=jO.default=(0,iEe.default)((0,sEe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var e3=c.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=Ke(e),i=c.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return c.createElement(Gr,{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},c.createElement(Sn,{label:r.props.label,source:r.props.source,resource:a}))});e3.propTypes={filter:w.element.isRequired,onShow:w.func.isRequired,resource:w.string,autoFocus:w.bool};var IO=function(e){return mr("".concat(e,".savedQueries"),[])},AO=function(e){return Array.isArray(e)?e.filter(function(t){return lEe(t)}):[]},lEe=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")},uEe=function(e){var t=e.open,r=e.onClose,n=he(),o=yr(),a=o.resource,i=o.filterValues,s=o.displayedFilters,u=o.sort,l=o.perPage,d=IO(a),f=d[0],p=d[1],v=c.useState(""),h=v[0],b=v[1],x=function(y){b(y.target.value)},g=function(y){y.preventDefault(),m()},m=function(){var y={label:h,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},C=AO(f);p(C.concat(y)),b(""),r()};return c.createElement(sf,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},c.createElement(uf,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),c.createElement(lf,null,c.createElement("form",{onSubmit:g},c.createElement(df,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:h,onChange:x}))),c.createElement(ES,null,c.createElement(Bt,{onClick:r},n("ra.action.cancel")),c.createElement(Bt,{onClick:m,color:"primary"},n("ra.action.save"))))},rk=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 T=s.filter(function(G){return!G.props.alwaysOn&&!h[G.props.source]&&typeof De(b,G.props.source)>"u"}),j=c.useCallback(function(G){G.preventDefault(),$(!0),k.current=G.currentTarget},[k,$]),I=c.useCallback(function(){$(!1)},[$]),A=c.useCallback(function(G){var ne=G.source,ve=G.defaultValue;m(ne,ve===""?void 0:ve),setTimeout(function(){var ie=document.querySelector("input[name='".concat(ne,"']"));ie&&ie.focus()},50),$(!1)},[m,$]),D=c.useState(!1),L=D[0],B=D[1],M=function(){B(!1)},N=function(){$(!1),B(!0)},q=c.useState(!1),K=q[0],W=q[1],le=function(){W(!1)},Y=function(){$(!1),W(!0)};return T.length===0&&O.length===0&&!C?null:c.createElement(pEe,g_({className:r},dEe(i)),c.createElement(nt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:j,variant:a,size:o},c.createElement(ZD,null)),c.createElement(Rg,{open:E,anchorEl:k.current,onClose:I},T.map(function(G,ne){return c.createElement(e3,{key:G.props.source,filter:G,resource:u,onShow:A,autoFocus:ne===0})}),O.map(function(G,ne){return bn(G.value,{filter:b,sort:y,perPage:x,displayedFilters:h})?c.createElement(Gr,{onClick:Y,key:ne},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:G.label})):c.createElement(Gr,{onClick:function(){f({search:Xi.stringify({filter:JSON.stringify(G.value.filter),sort:G.value.sort.field,order:G.value.sort.order,page:1,perPage:G.value.perPage,displayedFilters:JSON.stringify(G.value.displayedFilters)})}),$(!1)},key:ne},G.label)}),C&&!S&&!n&&c.createElement(Gr,{onClick:N},l("ra.saved_queries.new_label",{_:"Save current query..."})),C&&c.createElement(Gr,{onClick:function(){g({},{},!1),$(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&c.createElement(c.Fragment,null,c.createElement(uEe,{open:L,onClose:M}),c.createElement(cEe,{open:K,onClose:le})))},dEe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=t3(e,["displayedFilters","filterValues","showFilter"]);return t};r3.propTypes={resource:w.string,filters:w.arrayOf(w.node),displayedFilters:w.object,filterValues:w.object,showFilter:w.func,className:w.string};var fEe="RaFilterButton",pEe=V("div",{name:fEe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),MO={},vEe=Se;Object.defineProperty(MO,"__esModule",{value:!0});var n3=MO.default=void 0,mEe=vEe(Re()),hEe=_;n3=MO.default=(0,mEe.default)((0,hEe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var y_=function(){return y_=Object.assign||function(e){for(var t,r=1,n=arguments.length;rg-1)throw new Error(b("ra.navigation.page_out_of_boundaries",{page:E+1}));v(E+1)},[g,v,b]),y=c.useCallback(function(P){h(P.target.value)},[h]),C=c.useCallback(function(P){var E=P.from,$=P.to,k=P.count;return k===-1&&l?b("ra.navigation.partial_page_range_info",{offsetBegin:E,offsetEnd:$,_:"%{from}-%{to} of more than %{to}"}):b("ra.navigation.page_range_info",{offsetBegin:E,offsetEnd:$,total:k===-1?$:k,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[b,l]),O=c.useCallback(function(P){return b("ra.navigation.".concat(P),{_:"Go to ".concat(P," page")})},[b]);if(u)return c.createElement(Cu,{variant:"dense"});if(p===0||d<1||p!=null&&d>g)return a!=null,null;if(x)return c.createElement(RR,Rm({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:m,rowsPerPageOptions:xEe,component:"span",labelDisplayedRows:C},Ji(i)));var S=n||(!u&&p!=null?a3:void 0);return c.createElement(RR,Rm({count:p??-1,rowsPerPage:f,page:d-1,onPageChange:m,onRowsPerPageChange:y,ActionsComponent:S,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:b("ra.navigation.page_rows_per_page"),labelDisplayedRows:C,getItemAriaLabel:O,rowsPerPageOptions:r},Ji(i)))});ui.propTypes={actions:Mh,limit:w.element,rowsPerPageOptions:w.arrayOf(w.oneOfType([w.number,w.exact({label:w.string.isRequired,value:w.number.isRequired})]))};var _Ee=[5,10,25,50],xEe=[],km=function(){return km=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof oe.target.value>"u")){var Z=oe.target;W(Z.value);var ee=Z.valueAsNumber!==void 0&&Z.valueAsNumber!==null&&!isNaN(Z.valueAsNumber)?p?p(Z.valueAsNumber):Z.valueAsNumber:p?p(Z.value):FEe(Z.value);k.onChange(ee)}},G=function(oe){f&&f(oe),le.current=!0},ne=function(){M&&M(),le.current=!1;var oe=a(k.value);W(function(Z){return Z!==oe?oe:Z})},ve=i!==!1||(A||D)&&I,ie=k.ref,re=ik(k,["ref"]);return c.createElement(df,ga({id:L},re,{inputRef:ie,value:K,onChange:Y,onFocus:G,onBlur:ne,className:je("ra-input","ra-input-".concat(h),t),type:"number",size:"small",variant:C,error:(A||D)&&I,disabled:S||P,readOnly:P,helperText:ve?c.createElement(os,{touched:A||D,error:j==null?void 0:j.message,helperText:i}):null,label:c.createElement(Sn,{label:s,source:h,resource:v,isRequired:B}),margin:u,inputProps:ga(ga({},N),{readOnly:P})},Ru(E)))};Li.propTypes={label:w.oneOfType([w.string,w.bool,w.element]),resource:w.string,source:w.string,step:w.oneOfType([w.string,w.number])};var FEe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},NEe=function(e){return e==null||isNaN(e)?"":e.toString()},NO={},LEe=Se;Object.defineProperty(NO,"__esModule",{value:!0});var LO=NO.default=void 0,DEe=LEe(Re()),BEe=_;LO=NO.default=(0,DEe.default)((0,BEe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var DO={},zEe=Se;Object.defineProperty(DO,"__esModule",{value:!0});var l3=DO.default=void 0,VEe=zEe(Re()),UEe=_;l3=DO.default=(0,VEe.default)((0,UEe.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var jm=function(){return jm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r isn't designed to be used with a label prop. Use if you need a label.");return c.createElement(KEe,__({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:c.createElement(ml,{position:"end"},c.createElement(n3,{color:"disabled"}))},size:"small"},r))},GEe="RaSearchInput",KEe=V(Lt,{name:GEe,overridesResolver:function(e,t){return t.root}})({marginTop:0}),Ql=function(){return Ql=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]"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 c.createElement(ePe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},c.createElement(dn,{className:bl.content},c.createElement(Lt,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Qr(),fullWidth:!0}),c.createElement(Lt,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Qr(),fullWidth:!0}),c.createElement(Bt,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:bl.button},o?c.createElement(Su,{className:bl.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},zp="RaLoginForm",bl={content:"".concat(zp,"-content"),button:"".concat(zp,"-button"),icon:"".concat(zp,"-icon")},ePe=V(Fh,{name:zp,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(bl.content)]={width:300},t["& .".concat(bl.button)]={marginTop:r.spacing(2)},t["& .".concat(bl.icon)]={margin:r.spacing(.3)},t});c3.propTypes={redirectTo:w.string};var x_=function(){return x_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&d?c.createElement(m3,null):r;return o?c.createElement(uPe,C_({className:je("edit-page",a)},lPe(l)),c.createElement(si,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),b,c.createElement("div",{className:je(wl.main,(t={},t[wl.noActions]=!b,t))},c.createElement(s,{className:wl.card},h?o:c.createElement(dn,null," ")),n)):null};g3.propTypes={actions:w.oneOfType([w.element,w.bool]),aside:w.element,className:w.string,component:Mh,defaultTitle:w.any,hasList:w.bool,hasShow:w.bool,mutationMode:w.oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:w.object,record:w.object,redirect:w.oneOfType([w.string,w.bool,w.func]),resource:w.string,save:w.func,title:w.node};var lPe=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=h3(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},Wp="RaEdit",wl={main:"".concat(Wp,"-main"),noActions:"".concat(Wp,"-noActions"),card:"".concat(Wp,"-card")},uPe=V("div",{name:Wp,overridesResolver:function(e,t){return t.root}})((Zu={},Zu["& .".concat(wl.main)]={display:"flex",alignItems:"flex-start"},Zu["& .".concat(wl.noActions)]={marginTop:"1em"},Zu["& .".concat(wl.card)]={flex:"1 1 auto"},Zu)),E_=function(){return E_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},R_=function(){return R_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&x?RPe:r;return!o||!b&&l?null:c.createElement(TPe,k_({className:je("show-page",a)},kPe(f)),c.createElement(si,{title:d,defaultTitle:h,preferenceKey:"".concat(v,".show.title")}),g!==!1&&g,c.createElement("div",{className:je(Ol.main,(t={},t[Ol.noActions]=!g,t))},c.createElement(s,{className:Ol.card},o),n))};R3.propTypes={actions:w.oneOfType([w.element,w.bool]),children:w.node,className:w.string,emptyWhileLoading:w.bool,title:w.any};var kPe=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=$3(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},Hp="RaShow",Ol={main:"".concat(Hp,"-main"),noActions:"".concat(Hp,"-noActions"),card:"".concat(Hp,"-card")},TPe=V("div",{name:Hp,overridesResolver:function(e,t){return t.root}})((ec={},ec["& .".concat(Ol.main)]={display:"flex"},ec["& .".concat(Ol.noActions)]={marginTop:"1em"},ec["& .".concat(Ol.card)]={flex:"1 1 auto"},ec)),T_=function(){return T_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var h=Be(e);if(!h)return null;var b=De(h,l);if(b==null||b==="")return r?c.createElement(Ne,Bi({component:"span",variant:"body2",className:t},wo(p)),r&&v(r,{_:r})):null;var x=f(b),g="";if(i&&u)g=sb?x.toLocaleString(n,o):x.toLocaleString();else if(u){var m=o??(typeof b=="string"&&b.length<=10?{timeZone:"UTC"}:void 0);g=sb?x.toLocaleDateString(n,m):x.toLocaleDateString()}else i&&(g=sb?x.toLocaleTimeString(n,o):x.toLocaleTimeString());return c.createElement(Ne,Bi({component:"span",variant:"body2",className:t},wo(p)),g)};GO.propTypes=Bi(Bi(Bi({},Ne.propTypes),Yn),{locales:w.oneOfType([w.string,w.arrayOf(w.string)]),options:w.object,showTime:w.bool,showDate:w.bool});GO.displayName="DateFieldImpl";var vr=ms(GO),zPe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},sb=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Cl=function(){return Cl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),Do=function(e){var t=e.children,r=e.debounce,n=e.filter,o=n===void 0?ZPe:n,a=e.page,i=a===void 0?1:a,s=e.pagination,u=s===void 0?null:s,l=e.perPage,d=l===void 0?25:l,f=e.reference,p=e.resource,v=e.sort,h=v===void 0?e$e:v,b=e.source,x=b===void 0?"id":b,g=e.target,m=Be(e),y=qee({debounce:r,filter:o,page:i,perPage:d,record:m,reference:f,resource:p,sort:h,source:x,target:g});return te.createElement(cs,{value:f},te.createElement(Aw,{value:y},t,u))};Do.propTypes={children:w.node.isRequired,className:w.string,filter:w.object,label:Yn.label,perPage:w.number,record:w.any,reference:w.string.isRequired,resource:w.string,sortBy:w.string,sortByOrder:Yn.sortByOrder,source:w.string,sort:w.exact({field:w.string,order:w.oneOf(["ASC","DESC"])}),target:w.string.isRequired};w.element,w.string,w.exact({field:w.string,order:w.oneOf(["ASC","DESC"])}),w.any,w.bool,w.element,w.string,w.func;var ZPe={},e$e={field:"id",order:"DESC"},Vi=function(){return Vi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};N3.propTypes={children:w.node};var Bc=function(){return Bc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&dk.call(t.callee)==="[object Function]"),n},ub,fk;function k$e(){if(fk)return ub;fk=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Q3,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 v=p.constructor;return v&&v.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},d=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"||!d)return u(p);try{return u(p)}catch{return!1}};e=function(v){var h=v!==null&&typeof v=="object",b=r.call(v)==="[object Function]",x=n(v),g=h&&r.call(v)==="[object String]",m=[];if(!h&&!b&&!x)throw new TypeError("Object.keys called on a non-object");var y=i&&b;if(g&&v.length>0&&!t.call(v,0))for(var C=0;C0)for(var O=0;O"u"||!Gt?Ue:Gt(Uint8Array),Wi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ue:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ue:ArrayBuffer,"%ArrayIteratorPrototype%":Rs&&Gt?Gt([][Symbol.iterator]()):Ue,"%AsyncFromSyncIteratorPrototype%":Ue,"%AsyncFunction%":Fs,"%AsyncGenerator%":Fs,"%AsyncGeneratorFunction%":Fs,"%AsyncIteratorPrototype%":Fs,"%Atomics%":typeof Atomics>"u"?Ue:Atomics,"%BigInt%":typeof BigInt>"u"?Ue:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ue:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ue:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ue:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":e2e,"%eval%":eval,"%EvalError%":t2e,"%Float32Array%":typeof Float32Array>"u"?Ue:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ue:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ue:FinalizationRegistry,"%Function%":Z3,"%GeneratorFunction%":Fs,"%Int8Array%":typeof Int8Array>"u"?Ue:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ue:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ue:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Rs&&Gt?Gt(Gt([][Symbol.iterator]())):Ue,"%JSON%":typeof JSON=="object"?JSON:Ue,"%Map%":typeof Map>"u"?Ue:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Rs||!Gt?Ue:Gt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ue:Promise,"%Proxy%":typeof Proxy>"u"?Ue:Proxy,"%RangeError%":r2e,"%ReferenceError%":n2e,"%Reflect%":typeof Reflect>"u"?Ue:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ue:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Rs||!Gt?Ue:Gt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ue:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Rs&&Gt?Gt(""[Symbol.iterator]()):Ue,"%Symbol%":Rs?Symbol:Ue,"%SyntaxError%":Xl,"%ThrowTypeError%":a2e,"%TypedArray%":s2e,"%TypeError%":Pl,"%Uint8Array%":typeof Uint8Array>"u"?Ue:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ue:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ue:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ue:Uint32Array,"%URIError%":o2e,"%WeakMap%":typeof WeakMap>"u"?Ue:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ue:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ue:WeakSet};if(Gt)try{null.error}catch(e){var l2e=Gt(Gt(e));Wi["%Error.prototype%"]=l2e}var u2e=function e(t){var r;if(t==="%AsyncFunction%")r=db("async function () {}");else if(t==="%GeneratorFunction%")r=db("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=db("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Gt&&(r=Gt(o.prototype))}return Wi[t]=r,r},gk={__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"]},bf=YO,Lm=Z$e,c2e=bf.call(Function.call,Array.prototype.concat),d2e=bf.call(Function.apply,Array.prototype.splice),yk=bf.call(Function.call,String.prototype.replace),Dm=bf.call(Function.call,String.prototype.slice),f2e=bf.call(Function.call,RegExp.prototype.exec),p2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,v2e=/\\(\\)?/g,m2e=function(t){var r=Dm(t,0,1),n=Dm(t,-1);if(r==="%"&&n!=="%")throw new Xl("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Xl("invalid intrinsic syntax, expected opening `%`");var o=[];return yk(t,p2e,function(a,i,s,u){o[o.length]=s?yk(u,v2e,"$1"):i||a}),o},h2e=function(t,r){var n=t,o;if(Lm(gk,n)&&(o=gk[n],n="%"+o[0]+"%"),Lm(Wi,n)){var a=Wi[n];if(a===Fs&&(a=u2e(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 Xl("intrinsic "+t+" does not exist!")},$o=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(f2e(/^%?[^%]*%?$/,t)===null)throw new Xl("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=m2e(t),o=n.length>0?n[0]:"",a=h2e("%"+o+"%",r),i=a.name,s=a.value,u=!1,l=a.alias;l&&(o=l[0],d2e(n,c2e([0,1],l)));for(var d=1,f=!0;d=n.length){var b=Ui(s,p);f=!!b,f&&"get"in b&&!("originalValue"in b.get)?s=b.get:s=s[p]}else f=Lm(s,p),s=s[p];f&&!u&&(Wi[i]=s)}}return s},g2e=$o,Qp=g2e("%Object.defineProperty%",!0)||!1;if(Qp)try{Qp({},"a",{value:1})}catch{Qp=!1}var JO=Qp,y2e=$o,Xp=y2e("%Object.getOwnPropertyDescriptor%",!0);if(Xp)try{Xp([],"length")}catch{Xp=null}var e4=Xp,bk=JO,b2e=X3,ks=Rr,_k=e4,t4=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new ks("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new ks("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ks("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ks("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ks("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ks("`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=!!_k&&_k(t,r);if(bk)bk(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 b2e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},V_=JO,r4=function(){return!!V_};r4.hasArrayLengthDefineBug=function(){if(!V_)return null;try{return V_([],"length",{value:1}).length!==1}catch{return!0}};var n4=r4,_2e=I$e,x2e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",w2e=Object.prototype.toString,S2e=Array.prototype.concat,xk=t4,O2e=function(e){return typeof e=="function"&&w2e.call(e)==="[object Function]"},o4=n4(),C2e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!O2e(n)||!n())return}o4?xk(e,t,r,!0):xk(e,t,r)},a4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=_2e(t);x2e&&(n=S2e.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||$2e(r)!==r)throw new Ok("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&Sk){var i=Sk(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(P2e?wk(t,"length",r,!0,!0):wk(t,"length",r)),t};(function(e){var t=YO,r=$o,n=R2e,o=Rr,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),u=JO,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new o("a function is required");var v=s(t,i,arguments);return n(v,1+l(0,p.length-(arguments.length-1)),!0)};var d=function(){return s(t,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d})(i4);var Ug=i4.exports,s4=$o,l4=Ug,k2e=l4(s4("String.prototype.indexOf")),oa=function(t,r){var n=s4(t,!!r);return typeof n=="function"&&k2e(t,".prototype.")>-1?l4(n):n},T2e=Rr,_f=function(t){if(t==null)throw new T2e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},j2e=$o,u4=j2e("%Array%"),I2e=!u4.isArray&&oa("Object.prototype.toString"),A2e=u4.isArray||function(t){return I2e(t)==="[object Array]"},M2e=A2e,F2e=$o,N2e=oa,L2e=Rr,D2e=M2e,B2e=F2e("%Reflect.apply%",!0)||N2e("Function.prototype.apply"),z2e=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!D2e(n))throw new L2e("Assertion failed: optional `argumentsList`, if provided, must be a List");return B2e(t,r,n)};const V2e={},U2e=Object.freeze(Object.defineProperty({__proto__:null,default:V2e},Symbol.toStringTag,{value:"Module"})),W2e=So(U2e);var ZO=typeof Map=="function"&&Map.prototype,pb=Object.getOwnPropertyDescriptor&&ZO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bm=ZO&&pb&&typeof pb.get=="function"?pb.get:null,Ck=ZO&&Map.prototype.forEach,eC=typeof Set=="function"&&Set.prototype,vb=Object.getOwnPropertyDescriptor&&eC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zm=eC&&vb&&typeof vb.get=="function"?vb.get:null,Ek=eC&&Set.prototype.forEach,q2e=typeof WeakMap=="function"&&WeakMap.prototype,Vc=q2e?WeakMap.prototype.has:null,H2e=typeof WeakSet=="function"&&WeakSet.prototype,Uc=H2e?WeakSet.prototype.has:null,G2e=typeof WeakRef=="function"&&WeakRef.prototype,Pk=G2e?WeakRef.prototype.deref:null,K2e=Boolean.prototype.valueOf,Q2e=Object.prototype.toString,X2e=Function.prototype.toString,Y2e=String.prototype.match,tC=String.prototype.slice,Ra=String.prototype.replace,J2e=String.prototype.toUpperCase,$k=String.prototype.toLowerCase,c4=RegExp.prototype.test,Rk=Array.prototype.concat,co=Array.prototype.join,Z2e=Array.prototype.slice,kk=Math.floor,U_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,mb=Object.getOwnPropertySymbols,W_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="object",gr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Yl||!0)?Symbol.toStringTag:null,d4=Object.prototype.propertyIsEnumerable,Tk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function jk(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||c4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-kk(-e):kk(e);if(n!==e){var o=String(n),a=tC.call(t,o.length+1);return Ra.call(o,r,"$&_")+"."+Ra.call(Ra.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ra.call(t,r,"$&_")}var q_=W2e,Ik=q_.custom,Ak=p4(Ik)?Ik:null,eRe=function e(t,r,n,o){var a=r||{};if(ya(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ya(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=ya(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(ya(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(ya(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 m4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return s?jk(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return s?jk(t,l):l}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return H_(t)?"[Array]":"[Object]";var f=yRe(a,n);if(typeof o>"u")o=[];else if(v4(o,t)>=0)return"[Circular]";function p(I,A,D){if(A&&(o=Z2e.call(o),o.push(A)),D){var L={depth:a.depth};return ya(a,"quoteStyle")&&(L.quoteStyle=a.quoteStyle),e(I,L,n+1,o)}return e(I,a,n+1,o)}if(typeof t=="function"&&!Mk(t)){var v=uRe(t),h=ap(t,p);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(h.length>0?" { "+co.call(h,", ")+" }":"")}if(p4(t)){var b=Yl?Ra.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):W_.call(t);return typeof t=="object"&&!Yl?tc(b):b}if(mRe(t)){for(var x="<"+$k.call(String(t.nodeName)),g=t.attributes||[],m=0;m",x}if(H_(t)){if(t.length===0)return"[]";var y=ap(t,p);return f&&!gRe(y)?"["+G_(y,f)+"]":"[ "+co.call(y,", ")+" ]"}if(nRe(t)){var C=ap(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!d4.call(t,"cause")?"{ ["+String(t)+"] "+co.call(Rk.call("[cause]: "+p(t.cause),C),", ")+" }":C.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+co.call(C,", ")+" }"}if(typeof t=="object"&&i){if(Ak&&typeof t[Ak]=="function"&&q_)return q_(t,{depth:d-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(cRe(t)){var O=[];return Ck&&Ck.call(t,function(I,A){O.push(p(A,t,!0)+" => "+p(I,t))}),Fk("Map",Bm.call(t),O,f)}if(pRe(t)){var S=[];return Ek&&Ek.call(t,function(I){S.push(p(I,t))}),Fk("Set",zm.call(t),S,f)}if(dRe(t))return hb("WeakMap");if(vRe(t))return hb("WeakSet");if(fRe(t))return hb("WeakRef");if(aRe(t))return tc(p(Number(t)));if(sRe(t))return tc(p(U_.call(t)));if(iRe(t))return tc(K2e.call(t));if(oRe(t))return tc(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===wa)return"{ [object globalThis] }";if(!rRe(t)&&!Mk(t)){var P=ap(t,p),E=Tk?Tk(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",k=!E&&gr&&Object(t)===t&&gr in t?tC.call(di(t),8,-1):$?"Object":"",T=E||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=T+(k||$?"["+co.call(Rk.call([],k||[],$||[]),": ")+"] ":"");return P.length===0?j+"{}":f?j+"{"+G_(P,f)+"}":j+"{ "+co.call(P,", ")+" }"}return String(t)};function f4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function tRe(e){return Ra.call(String(e),/"/g,""")}function H_(e){return di(e)==="[object Array]"&&(!gr||!(typeof e=="object"&&gr in e))}function rRe(e){return di(e)==="[object Date]"&&(!gr||!(typeof e=="object"&&gr in e))}function Mk(e){return di(e)==="[object RegExp]"&&(!gr||!(typeof e=="object"&&gr in e))}function nRe(e){return di(e)==="[object Error]"&&(!gr||!(typeof e=="object"&&gr in e))}function oRe(e){return di(e)==="[object String]"&&(!gr||!(typeof e=="object"&&gr in e))}function aRe(e){return di(e)==="[object Number]"&&(!gr||!(typeof e=="object"&&gr in e))}function iRe(e){return di(e)==="[object Boolean]"&&(!gr||!(typeof e=="object"&&gr in e))}function p4(e){if(Yl)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!W_)return!1;try{return W_.call(e),!0}catch{}return!1}function sRe(e){if(!e||typeof e!="object"||!U_)return!1;try{return U_.call(e),!0}catch{}return!1}var lRe=Object.prototype.hasOwnProperty||function(e){return e in this};function ya(e,t){return lRe.call(e,t)}function di(e){return Q2e.call(e)}function uRe(e){if(e.name)return e.name;var t=Y2e.call(X2e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function v4(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 m4(tC.call(e,0,t.maxStringLength),t)+n}var o=Ra.call(Ra.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,hRe);return f4(o,"single",t)}function hRe(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":"")+J2e.call(t.toString(16))}function tc(e){return"Object("+e+")"}function hb(e){return e+" { ? }"}function Fk(e,t,r,n){var o=n?G_(r,n):co.call(r,", ");return e+" ("+t+") {"+o+"}"}function gRe(e){for(var t=0;t=0)return!1;return!0}function yRe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=co.call(Array(e.indent+1)," ");else return null;return{base:r,prev:co.call(Array(t+1),r)}}function G_(e,t){if(e.length===0)return"";var r=` -`+t.prev+t.base;return r+co.call(e,","+r)+` -`+t.prev}function ap(e,t){var r=H_(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"},_Re=bRe,rC=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":_Re(t)},Nk=Rr,xRe=eRe,wRe=h4,SRe=rC,g4=function(t,r){if(SRe(t)!=="Object")throw new Nk("Assertion failed: Type(O) is not Object");if(!wRe(r))throw new Nk("Assertion failed: IsPropertyKey(P) is not true, got "+xRe(r));return t[r]},Lk=Rr,ORe=h4,CRe=rC,ERe=function(t,r){if(CRe(t)!=="Object")throw new Lk("Assertion failed: `O` must be an Object");if(!ORe(r))throw new Lk("Assertion failed: `P` must be a Property Key");return r in t},y4=Function.prototype.toString,ol=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,K_,Yp;if(typeof ol=="function"&&typeof Object.defineProperty=="function")try{K_=Object.defineProperty({},"length",{get:function(){throw Yp}}),Yp={},ol(function(){throw 42},null,K_)}catch(e){e!==Yp&&(ol=null)}else ol=null;var PRe=/^\s*class\b/,Q_=function(t){try{var r=y4.call(t);return PRe.test(r)}catch{return!1}},gb=function(t){try{return Q_(t)?!1:(y4.call(t),!0)}catch{return!1}},Jp=Object.prototype.toString,$Re="[object Object]",RRe="[object Function]",kRe="[object GeneratorFunction]",TRe="[object HTMLAllCollection]",jRe="[object HTML document.all class]",IRe="[object HTMLCollection]",ARe=typeof Symbol=="function"&&!!Symbol.toStringTag,MRe=!(0 in[,]),X_=function(){return!1};if(typeof document=="object"){var FRe=document.all;Jp.call(FRe)===Jp.call(document.all)&&(X_=function(t){if((MRe||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Jp.call(t);return(r===TRe||r===jRe||r===IRe||r===$Re)&&t("")==null}catch{}return!1})}var b4=ol?function(t){if(X_(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ol(t,null,K_)}catch(r){if(r!==Yp)return!1}return!Q_(t)&&gb(t)}:function(t){if(X_(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(ARe)return gb(t);if(Q_(t))return!1;var r=Jp.call(t);return r!==RRe&&r!==kRe&&!/^\[object HTML/.test(r)?!1:gb(t)},NRe=b4,LRe=Number.MAX_SAFE_INTEGER||9007199254740991,yb,Dk;function DRe(){return Dk||(Dk=1,yb=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),yb}var bb,Bk;function BRe(){return Bk||(Bk=1,bb=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),bb}var zRe=Y3,nC=function(){return zRe()&&!!Symbol.toStringTag},_b,zk;function VRe(){if(zk)return _b;zk=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=nC();return _b=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},_b}var ip={exports:{}},Vk;function URe(){if(Vk)return ip.exports;Vk=1;var e=Object.prototype.toString,t=J3();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};ip.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 ip.exports=function(i){return!1};return ip.exports}var xb,Uk;function WRe(){if(Uk)return xb;Uk=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=BRe(),r=b4,n=VRe(),o=URe(),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 d=l==="string"?["toString","valueOf"]:["valueOf","toString"],f,p,v;for(v=0;v1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var d;if(e&&(Symbol.toPrimitive?d=i(u,Symbol.toPrimitive):o(u)&&(d=Symbol.prototype.valueOf)),typeof d<"u"){var f=d.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)},xb}var wb,Wk;function qRe(){if(Wk)return wb;Wk=1;var e=WRe();return wb=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},wb}var Sb,qk;function HRe(){if(qk)return Sb;qk=1;var e=oa,t=nC(),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 Sb=t?function(f){if(!f||typeof f!="object")return!1;var p=u(f,"lastIndex"),v=p&&r(p,"value");if(!v)return!1;try{n(f,a)}catch(h){return h===o}}:function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:s(f)===l},Sb}var Ob,Hk;function GRe(){if(Hk)return Ob;Hk=1;var e=oa,t=HRe(),r=e("RegExp.prototype.exec"),n=Rr;return Ob=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},Ob}var KRe=$o,QRe=KRe("%String%"),XRe=Rr,_4=function(t){if(typeof t=="symbol")throw new XRe("Cannot convert a Symbol value to a string");return QRe(t)},YRe=_f,JRe=_4,ZRe=oa,Gk=ZRe("String.prototype.replace"),x4=/^\s$/.test("᠎"),eke=x4?/^[\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]+/,tke=x4?/[\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]+$/,w4=function(){var t=JRe(YRe(this));return Gk(Gk(t,eke,""),tke,"")},rke=w4,Kk="​",Ts="᠎",S4=function(){return String.prototype.trim&&Kk.trim()===Kk&&Ts.trim()===Ts&&("_"+Ts).trim()==="_"+Ts&&(Ts+"_").trim()===Ts+"_"?String.prototype.trim:rke},nke=Tu,oke=S4,ake=function(){var t=oke();return nke(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},ike=Ug,ske=Tu,lke=_f,uke=w4,O4=S4,cke=ake,dke=ike(O4()),C4=function(t){return lke(t),dke(t)};ske(C4,{getPolyfill:O4,implementation:uke,shim:cke});var E4=C4,Cb,Qk;function fke(){if(Qk)return Cb;Qk=1;var e=$o,t=e("%Number%"),r=e("%RegExp%"),n=Rr,o=e("%parseInt%"),a=oa,i=GRe(),s=a("String.prototype.slice"),u=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),d=i(/^[-+]0x[0-9a-f]+$/i),f=["…","​","￾"].join(""),p=new r("["+f+"]","g"),v=i(p),h=E4;return Cb=function b(x){if(typeof x!="string")throw new n("Assertion failed: `argument` is not a String");if(u(x))return t(o(s(x,2),2));if(l(x))return t(o(s(x,2),8));if(v(x)||d(x))return NaN;var g=h(x);return g!==x?b(g):t(x)},Cb}var pke=$o,Xk=Rr,Yk=pke("%Number%"),vke=DRe(),mke=qRe(),hke=fke(),gke=function(t){var r=vke(t)?t:mke(t,Yk);if(typeof r=="symbol")throw new Xk("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new Xk("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?hke(r):Yk(r)},yke=Math.floor,bke=function(t){return typeof t=="bigint"?t:yke(t)},Jk=bke,_ke=Rr,xke=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new _ke("argument must be a Number or a BigInt");var r=t<0?-Jk(-t):Jk(t);return r===0?0:r},P4=Number.isNaN||function(t){return t!==t},wke=P4,Ske=function(e){return(typeof e=="number"||typeof e=="bigint")&&!wke(e)&&e!==1/0&&e!==-1/0},Oke=gke,Cke=xke,Eke=P4,Pke=Ske,$ke=function(t){var r=Oke(t);return Eke(r)||r===0?0:Pke(r)?Cke(r):r},Zk=LRe,Rke=$ke,kke=function(t){var r=Rke(t);return r<=0?0:r>Zk?Zk:r},Tke=Rr,jke=g4,Ike=kke,Ake=rC,Mke=function(t){if(Ake(t)!=="Object")throw new Tke("Assertion failed: `obj` must be an Object");return Ike(jke(t,"length"))},Fke=Object,Nke=Fke,Lke=_f,Dke=function(t){return Lke(t),Nke(t)},Bke=String.prototype.valueOf,zke=function(t){try{return Bke.call(t),!0}catch{return!1}},Vke=Object.prototype.toString,Uke="[object String]",Wke=nC(),qke=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:Wke?zke(t):Vke.call(t)===Uke},Hke=oa,Gke=Rr,Kke=z2e,Qke=g4,Xke=ERe,Yke=NRe,Jke=Mke,Zke=Dke,eTe=_4,tTe=qke,rTe=Hke("String.prototype.split"),eT=Object("a"),nTe=eT[0]!=="a"||!(0 in eT),$4=function(t){var r=Zke(this),n=nTe&&tTe(this)?rTe(this,""):r,o=Jke(n);if(!Yke(t))throw new Gke("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},B4={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:$b,chinese:function(){return 0},croatian:$b,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:$b,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 ITe(e){var t={};return Vm(oC(e),function(r){var n=r[0],o=r[1];Vm(o,function(a){t[a]=n})}),t}function ATe(e,t){var r=ITe(e.pluralTypeToLanguages);return r[t]||r[D4.call(t,/-/,1)[0]]||r.en}function MTe(e,t,r){return e.pluralTypes[t](r)}function FTe(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=ATe(t,r),n&&(e[r]=n)),n}}function nT(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function NTe(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Zp||r===Zp)throw new RangeError('"'+Zp+'" token is reserved for pluralization');return new RegExp(nT(t)+"(.*?)"+nT(r),"g")}var LTe=FTe(),DTe=/%\{(.*?)\}/g;function aC(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||DTe,u=a||L4,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var d=o||B4,f=D4.call(e,Zp),p=r||"en",v=LTe(d,p),h=MTe(d,v,l.smart_count);i=TTe(f[h]||f[0])}return i=u.call(i,s,function(b,x){return!N4(l,x)||l[x]==null?b:l[x]}),i}function aa(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?aC:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||jTe,this.replaceImplementation=t.replace||L4,this.tokenRegex=NTe(t.interpolation),this.pluralRules=t.pluralRules||B4}aa.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};aa.prototype.extend=function(e,t){Vm(oC(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)};aa.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:Vm(oC(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)};aa.prototype.clear=function(){this.phrases={}};aa.prototype.replace=function(e){this.clear(),this.extend(e)};aa.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=aC(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};aa.prototype.has=function(e){return N4(this.phrases,e)};aa.transformPhrase=function(t,r,n){return aC(t,r,n)};var BTe=aa;const oT=Rt(BTe);var al=function(){return al=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{console.log("login ");const o={method:"POST",body:JSON.stringify(Object.assign({device_id:localStorage.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r}))};e=e.replace(/\/+$/g,""),localStorage.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:s}=await Yi(i,o);localStorage.setItem("home_server",s.home_server),localStorage.setItem("user_id",s.user_id),localStorage.setItem("access_token",s.access_token),localStorage.setItem("device_id",s.device_id)},logout:async()=>{console.log("logout");const e=localStorage.getItem("base_url")+"/_matrix/client/r0/logout",t=localStorage.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await Yi(e,r),localStorage.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=localStorage.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},sn=(e,t={})=>{const r=localStorage.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),Yi(e,t)},aT=e=>{const t=localStorage.getItem("base_url");var n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const o=n[1],a=n[2];return`${t}/_matrix/media/r0/thumbnail/${o}/${a}?width=24&height=24&method=scale`},jt={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:aT(e.avatar_url),is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:e.creation_ts*1e3}),data:"users",total:e=>e.total,create:e=>({endpoint:`/_synapse/admin/v2/users/@${encodeURIComponent(e.id)}:${localStorage.getItem("home_server")}`,body:e,method:"PUT"}),delete:e=>({endpoint:`/_synapse/admin/v1/deactivate/${encodeURIComponent(e.id)}`,body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:`/_synapse/admin/v2/rooms/${e.id}`,body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e,id:e.id}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e)}/devices`}),delete:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e.previousData.user_id)}/devices/${e.id}`})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/members`}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/state`}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/pushers`}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/joined_rooms`}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/media`}),data:"media",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/media/${localStorage.getItem("home_server")}/${e.id}`})},delete_media:{delete:e=>({endpoint:`/_synapse/admin/v1/media/${localStorage.getItem("home_server")}/delete?before_ts=${e.meta.before_ts}&size_gt=${e.meta.size_gt}&keep_profiles=${e.meta.keep_profiles}`,method:"POST"})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${localStorage.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${localStorage.getItem("home_server")}/${e.id}`,method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/forward_extremities`}),data:"results",total:e=>e.count,delete:e=>({endpoint:`/_synapse/admin/v1/rooms/${e.id}/forward_extremities`})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:aT(e.avatar_url)}),data:"chunk",total:e=>e.total_room_count_estimate,create:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"public"},method:"PUT"}),delete:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"private"},method:"PUT"})},destinations:{path:"/_synapse/admin/v1/federation/destinations",map:e=>({...e,id:e.destination}),data:"destinations",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e.id}/reset_connection`,method:"POST"})},destination_rooms:{map:e=>({...e,id:e.room_id}),reference:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e}/rooms`}),data:"rooms",total:e=>e.total},registration_tokens:{path:"/_synapse/admin/v1/registration_tokens",map:e=>({...e,id:e.token}),data:"registration_tokens",total:e=>e.registration_tokens.length,create:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/new",body:e,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/registration_tokens/${e.id}`})}};function js(e,t){if(!(t===null&&e!=="user_type"))return t}function iT(e){return e==="DESC"?"b":"f"}const qTe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,search_term:i,destination:s,valid:u}=t.filter,{page:l,perPage:d}=t.pagination,{field:f,order:p}=t.sort,v=(l-1)*d,h={from:v,limit:d,user_id:r,search_term:i,name:n,destination:s,guests:o,deactivated:a,valid:u,order_by:f,dir:iT(p)},b=localStorage.getItem("base_url");if(!b||!(e in jt))return Promise.reject();const x=jt[e],m=`${b+x.path}?${Xi.stringify(h)}`,{json:y}=await sn(m);return{data:y[x.data].map(x.map),total:x.total(y,v,d)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=localStorage.getItem("base_url");if(!r||!(e in jt))return Promise.reject();const n=jt[e],o=r+n.path,{json:a}=await sn(`${o}/${encodeURIComponent(t.id)}`);return{data:n.map(a)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in jt))return Promise.reject();const n=jt[e],o=r+n.path,a=await Promise.all(t.ids.map(i=>sn(`${o}/${encodeURIComponent(i)}`)));return{data:a.map(({json:i})=>n.map(i)),total:a.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i=(r-1)*n,s={from:i,limit:n,order_by:o,dir:iT(a)},u=localStorage.getItem("base_url");if(!u||!(e in jt))return Promise.reject();const l=jt[e],d=l.reference(t.id),f=`${u}${d.endpoint}?${Xi.stringify(s)}`,{json:p}=await sn(f);return{data:p[l.data].map(l.map),total:l.total(p,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=localStorage.getItem("base_url");if(!r||!(e in jt))return Promise.reject();const n=jt[e],o=r+n.path,{json:a}=await sn(`${o}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,js)});return{data:n.map(a)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in jt))return Promise.reject();const n=jt[e],o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>sn(`${o}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,js)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=localStorage.getItem("base_url");if(!r||!(e in jt))return Promise.reject();const n=jt[e];if(!("create"in n))return Promise.reject();const o=n.create(t.data),a=r+o.endpoint,{json:i}=await sn(a,{method:o.method,body:JSON.stringify(o.body,js)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in jt))return Promise.reject();const n=jt[e];return"create"in n?{data:(await Promise.all(t.ids.map(a=>{t.data.id=a;const i=n.create(t.data),s=r+i.endpoint;return sn(s,{method:i.method,body:JSON.stringify(i.body,js)})}))).map(({json:a})=>a)}:Promise.reject()},delete:async(e,t)=>{console.log("delete "+e);const r=localStorage.getItem("base_url");if(!r||!(e in jt))return Promise.reject();const n=jt[e];if("delete"in n){const o=n.delete(t),a=r+o.endpoint,{json:i}=await sn(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null});return{data:i}}else{const o=r+n.path,{json:a}=await sn(`${o}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,js)});return{data:a}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in jt))return Promise.reject();const n=jt[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(a=>{const i=n.delete({...t,id:a}),s=r+i.endpoint;return sn(s,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:a})=>a)};{const o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>sn(`${o}/${i}`,{method:"DELETE",body:JSON.stringify(t.data,js)})))).map(({json:i})=>i)}}}};var iC={},HTe=Se;Object.defineProperty(iC,"__esModule",{value:!0});var V4=iC.default=void 0,GTe=HTe(Re()),KTe=_;V4=iC.default=(0,GTe.default)((0,KTe.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"}),"AssignmentInd");var sC={},QTe=Se;Object.defineProperty(sC,"__esModule",{value:!0});var U4=sC.default=void 0,XTe=QTe(Re()),YTe=_;U4=sC.default=(0,XTe.default)((0,YTe.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var lC={},JTe=Se;Object.defineProperty(lC,"__esModule",{value:!0});var W4=lC.default=void 0,ZTe=JTe(Re()),eje=_;W4=lC.default=(0,ZTe.default)((0,eje.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices");var uC={},tje=Se;Object.defineProperty(uC,"__esModule",{value:!0});var q4=uC.default=void 0,rje=tje(Re()),nje=_;q4=uC.default=(0,rje.default)((0,nje.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var cC={},oje=Se;Object.defineProperty(cC,"__esModule",{value:!0});var H4=cC.default=void 0,aje=oje(Re()),ije=_;H4=cC.default=(0,aje.default)((0,ije.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"}),"PermMedia");var dC={},sje=Se;Object.defineProperty(dC,"__esModule",{value:!0});var G4=dC.default=void 0,lje=sje(Re()),uje=_;G4=dC.default=(0,lje.default)((0,uje.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"}),"PersonPin");var fC={},cje=Se;Object.defineProperty(fC,"__esModule",{value:!0});var K4=fC.default=void 0,dje=cje(Re()),fje=_;K4=fC.default=(0,dje.default)((0,fje.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent");var pC={},pje=Se;Object.defineProperty(pC,"__esModule",{value:!0});var vC=pC.default=void 0,vje=pje(Re()),mje=_;vC=pC.default=(0,vje.default)((0,mje.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");const mC=({source:e,...t})=>{var l;const r=Be(t),n=(l=De(r,e))==null?void 0:l.toString(),{alt:o,classes:a,sizes:i,sx:s,variant:u}=t;return _.jsx(bd,{alt:o,classes:a,sizes:i,src:n,sx:s,variant:u})};var hC={},hje=Se;Object.defineProperty(hC,"__esModule",{value:!0});var gC=hC.default=void 0,gje=hje(Re()),yje=_;gC=hC.default=(0,gje.default)((0,yje.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"Message");var yC={},bje=Se;Object.defineProperty(yC,"__esModule",{value:!0});var bC=yC.default=void 0,_je=bje(Re()),xje=_;bC=yC.default=(0,_je.default)((0,xje.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"}),"Cancel");const Q4=({open:e,loading:t,onClose:r,onSubmit:n})=>{const o=he(),a=i=>_.jsxs(vs,{...i,children:[_.jsx($u,{label:"resources.servernotices.action.send",disabled:i.pristine}),_.jsx(nt,{label:"ra.action.cancel",onClick:r,children:_.jsx(bC,{})})]});return _.jsxs(sf,{open:e,onClose:r,loading:t,children:[_.jsx(uf,{children:o("resources.servernotices.action.send")}),_.jsxs(lf,{children:[_.jsx($g,{children:o("resources.servernotices.helper.send")}),_.jsx(ku,{toolbar:_.jsx(a,{}),onSubmit:n,children:_.jsx(Lt,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:Qr()})})]})]})},wje=()=>{const e=Be(),[t,r]=c.useState(!1),n=at(),[o,{isloading:a}]=Dd(),i=()=>r(!0),s=()=>r(!1),u=l=>{o("servernotices",{data:{id:e.id,...l}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),s()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return _.jsxs(_.Fragment,{children:[_.jsx(nt,{label:"resources.servernotices.send",onClick:i,disabled:a,children:_.jsx(gC,{})}),_.jsx(Q4,{open:t,onClose:s,onSubmit:u})]})},Sje=()=>{const{selectedIds:e}=yr(),[t,r]=c.useState(!1),n=()=>r(!0),o=()=>r(!1),a=at(),i=mM("users"),s=Tn(),{mutate:u,isLoading:l}=ru(d=>s.createMany("servernotices",{ids:e,data:d}),{onSuccess:()=>{a("resources.servernotices.action.send_success"),i(),o()},onError:()=>a("resources.servernotices.action.send_failure",{type:"error"})});return _.jsxs(_.Fragment,{children:[_.jsx(nt,{label:"resources.servernotices.send",onClick:n,disabled:l,children:_.jsx(gC,{})}),_.jsx(Q4,{open:t,onClose:o,onSubmit:u})]})},Oje=e=>{const t=Be(),r=eo(),n=at(),[o]=us();if(!t)return null;const a=()=>{o("devices",{id:t.id,previousData:t},{onSuccess:()=>{n("resources.devices.action.erase.success"),r()},onError:()=>{n("resources.devices.action.erase.failure",{type:"error"})}})};return _.jsx(li,{...e,label:"ra.action.remove",confirmTitle:"resources.devices.action.erase.title",confirmContent:"resources.devices.action.erase.content",onConfirm:a,mutationMode:"pessimistic",redirect:!1,translateOptions:{id:t.id,name:t.display_name?t.display_name:t.id}})};var _C={},Cje=Se;Object.defineProperty(_C,"__esModule",{value:!0});var Y_=_C.default=void 0,Eje=Cje(Re()),Pje=_;Y_=_C.default=(0,Eje.default)((0,Pje.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var xC={},$je=Se;Object.defineProperty(xC,"__esModule",{value:!0});var wC=xC.default=void 0,Rje=$je(Re()),kje=_;wC=xC.default=(0,Rje.default)((0,kje.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep");var SC={},Tje=Se;Object.defineProperty(SC,"__esModule",{value:!0});var X4=SC.default=void 0,jje=Tje(Re()),Ije=_;X4=SC.default=(0,jje.default)((0,Ije.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");var OC={},Aje=Se;Object.defineProperty(OC,"__esModule",{value:!0});var Y4=OC.default=void 0,Mje=Aje(Re()),Fje=_;Y4=OC.default=(0,Mje.default)((0,Fje.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen");const Nje=e=>{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},Lje=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),Dje=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await Yi(t,{method:"GET"}))["m.homeserver"].base_url}catch{return`https://${e}`}},Bje=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await Yi(t,{method:"GET"})).json.server_version},zje=async e=>{const t=`${e}/_matrix/client/versions`;return(await Yi(t,{method:"GET"})).json},Vje=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await Yi(t,{method:"GET"})).json.flows},Uje=e=>`${localStorage.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`,Wje=({open:e,loading:t,onClose:r,onSubmit:n})=>{const o=he(),a=s=>{const u=new Date(s);return isNaN(u)?0:u.getTime()},i=s=>_.jsxs(vs,{...s,children:[_.jsx($u,{label:"resources.delete_media.action.send",icon:_.jsx(wC,{})}),_.jsx(nt,{label:"ra.action.cancel",onClick:r,children:_.jsx(bC,{})})]});return _.jsxs(sf,{open:e,onClose:r,loading:t,children:[_.jsx(uf,{children:o("resources.delete_media.action.send")}),_.jsxs(lf,{children:[_.jsx($g,{children:o("resources.delete_media.helper.send")}),_.jsxs(ku,{toolbar:_.jsx(i,{}),onSubmit:n,children:[_.jsx(Dg,{fullWidth:!0,source:"before_ts",label:"resources.delete_media.fields.before_ts",defaultValue:0,parse:a}),_.jsx(Li,{fullWidth:!0,source:"size_gt",label:"resources.delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),_.jsx(Ga,{fullWidth:!0,source:"keep_profiles",label:"resources.delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},qje=e=>{const t=Mn(),[r,n]=c.useState(!1),o=at(),[a,{isLoading:i}]=us(),s=()=>n(!0),u=()=>n(!1),l=d=>{a("delete_media",{meta:d},{onSuccess:()=>{o("resources.delete_media.action.send_success"),u()},onError:()=>o("resources.delete_media.action.send_failure",{type:"error"})})};return _.jsxs(_.Fragment,{children:[_.jsx(nt,{...e,label:"resources.delete_media.action.send",onClick:s,disabled:i,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:Ll(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:_.jsx(wC,{})}),_.jsx(Wje,{open:r,onClose:u,onSubmit:l})]})},Hje=()=>{const e=Be(),t=he(),r=eo(),n=at(),[o,{isLoading:a}]=Dd(),[i]=us();if(!e)return null;const s=()=>{o("protect_media",{data:e},{onSuccess:()=>{n("resources.protect_media.action.send_success"),r()},onError:()=>n("resources.protect_media.action.send_failure",{type:"error"})})},u=()=>{i("protect_media",{id:e.id},{onSuccess:()=>{n("resources.protect_media.action.send_success"),r()},onError:()=>n("resources.protect_media.action.send_failure",{type:"error"})})};return _.jsxs(_.Fragment,{children:[e.quarantined_by&&_.jsx(Yt,{title:t("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:_.jsx("div",{children:_.jsx(nt,{disabled:!0,children:_.jsx(Kl,{})})})}),e.safe_from_quarantine&&_.jsx(Yt,{title:t("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:_.jsx("div",{children:_.jsx(nt,{onClick:u,disabled:a,children:_.jsx(ff,{})})})}),!e.safe_from_quarantine&&!e.quarantined_by&&_.jsx(Yt,{title:t("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:_.jsx("div",{children:_.jsx(nt,{onClick:s,disabled:a,children:_.jsx(X4,{})})})})]})},Gje=e=>{const t=Be(),r=he(),n=eo(),o=at(),[a,{isLoading:i}]=Dd(),[s]=us();if(!t)return null;const u=()=>{a("quarantine_media",{data:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},l=()=>{s("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})};return _.jsxs(_.Fragment,{children:[t.safe_from_quarantine&&_.jsx(Yt,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:_.jsx("div",{children:_.jsx(nt,{...e,disabled:!0,children:_.jsx(Kl,{})})})}),t.quarantined_by&&_.jsx(Yt,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:_.jsx("div",{children:_.jsx(nt,{...e,onClick:l,disabled:i,children:_.jsx(Y_,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&_.jsx(Yt,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:_.jsx("div",{children:_.jsx(nt,{onClick:u,disabled:i,children:_.jsx(Y_,{})})})})]})},J4=({media_id:e,label:t})=>{const r=he(),n=Uje(e);return _.jsxs(wr,{style:{whiteSpace:"pre"},children:[_.jsx(Yt,{title:r("resources.users_media.action.open"),children:_.jsx("span",{children:_.jsx(nt,{component:Qn,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:_.jsx(Y4,{})})})}),t]})},Kje=({source:e})=>{var o;const t=localStorage.getItem("home_server"),r=Be();if(!r)return null;const n=(o=De(r,e))==null?void 0:o.toString();return n?_.jsx(J4,{media_id:`${t}/${n}`,label:n}):null},Qje=({source:e})=>{var o;const t=Be();if(!t)return null;const r=(o=De(t,e))==null?void 0:o.toString();if(!r)return null;const n=r.replace("mxc://","");return _.jsx(J4,{media_id:n,label:r})},Z4=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],e5=[{id:"bot",name:"bot"},{id:"support",name:"support"}],Ns={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},t5=({sort:e,className:t,resource:r,filters:n,displayedFilters:o,exporter:a,filterValues:i,permanentFilter:s,hasCreate:u,selectedIds:l,onUnselectItems:d,showFilter:f,maxResults:p,total:v,...h})=>_.jsxs(on,{className:t,...Ji(h),children:[n&&c.cloneElement(n,{resource:r,showFilter:f,displayedFilters:o,filterValues:i,context:"button"}),_.jsx(NS,{}),_.jsx(Pu,{disabled:v===0,resource:r,sort:e,filter:{...i,...s},exporter:a,maxResults:p}),_.jsx(nt,{component:Qn,to:"/import_users",label:"CSV Import",children:_.jsx(fO,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]});t5.defaultProps={selectedIds:[],onUnselectItems:()=>null};const r5=()=>_.jsx(ui,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Xje=[_.jsx(Bg,{source:"name",alwaysOn:!0}),_.jsx(Ga,{source:"guests",alwaysOn:!0}),_.jsx(Ga,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],Yje=()=>_.jsxs(_.Fragment,{children:[_.jsx(Sje,{}),_.jsx(hf,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),Jje=e=>_.jsx(ci,{...e,filters:Xje,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:_.jsx(t5,{maxResults:1e4}),pagination:_.jsx(r5,{}),children:_.jsxs(Qt,{rowClick:"edit",bulkActionButtons:_.jsx(Yje,{}),children:[_.jsx(mC,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),_.jsx(be,{source:"id",sortBy:"name"}),_.jsx(be,{source:"displayname"}),_.jsx(bo,{source:"is_guest"}),_.jsx(bo,{source:"admin"}),_.jsx(bo,{source:"deactivated"}),_.jsx(vr,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:Ns})]})}),Zje=[Qr(),Qv(253),Uw(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],eIe=[Qr(),Qv(255)];function sT(){const e=localStorage.getItem("home_server"),t="@"+Array(8).fill("0123456789abcdefghijklmnopqrstuvwxyz").map(n=>n[Math.floor(crypto.getRandomValues(new Uint32Array(1))[0]/4294967296*n.length)]).join("")+":"+e,r=Array(20).fill("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$").map(n=>n[Math.floor(crypto.getRandomValues(new Uint32Array(1))[0]/4294967296*n.length)]).join("");return{id:t,password:r}}const tIe=e=>_.jsx(vs,{...e,children:_.jsx($u,{disabled:e.pristine})}),rIe=({data:e})=>{const t=he();var r="";return e&&(r=e.deactivated),_.jsxs(on,{children:[!r&&_.jsx(wje,{record:e}),_.jsx(li,{record:e,label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},nIe=e=>_.jsx(zO,{...e,children:_.jsxs(ku,{children:[_.jsx(Lt,{source:"id",autoComplete:"off",validate:Zje}),_.jsx(Lt,{source:"displayname",validate:Qv(256)}),_.jsx(BO,{source:"password",autoComplete:"new-password",validate:Qv(512)}),_.jsx(Ed,{source:"user_type",choices:e5,translateChoice:!1,resettable:!0}),_.jsx(Ga,{source:"admin"}),_.jsx(wm,{source:"threepids",children:_.jsxs(Od,{disableReordering:!0,children:[_.jsx(Ed,{source:"medium",choices:Z4,validate:Qr()}),_.jsx(Lt,{source:"address",validate:eIe})]})}),_.jsx(wm,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:_.jsxs(Od,{disableReordering:!0,children:[_.jsx(Lt,{source:"auth_provider",validate:Qr()}),_.jsx(Lt,{source:"external_id",label:"resources.users.fields.id",validate:Qr()})]})})]})}),oIe=()=>{const e=Be(),t=he();return _.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},aIe=e=>{const t=he();return _.jsx(VO,{...e,title:_.jsx(oIe,{}),actions:_.jsx(rIe,{}),children:_.jsxs(UO,{toolbar:_.jsx(tIe,{}),children:[_.jsxs(Bn,{label:t("resources.users.name",{smart_count:1}),icon:_.jsx(G4,{}),children:[_.jsx(mC,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),_.jsx(Lt,{source:"id",disabled:!0}),_.jsx(Lt,{source:"displayname"}),_.jsx(BO,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),_.jsx(Ed,{source:"user_type",choices:e5,translateChoice:!1,resettable:!0}),_.jsx(Ga,{source:"admin"}),_.jsx(Ga,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),_.jsx(vr,{source:"creation_ts_ms",showTime:!0,options:Ns}),_.jsx(be,{source:"consent_version"})]}),_.jsx(Bn,{label:"resources.users.threepid",icon:_.jsx(U4,{}),path:"threepid",children:_.jsx(wm,{source:"threepids",children:_.jsxs(Od,{disableReordering:!0,children:[_.jsx(Ed,{source:"medium",choices:Z4}),_.jsx(Lt,{source:"address"})]})})}),_.jsx(Bn,{label:"synapseadmin.users.tabs.sso",icon:_.jsx(V4,{}),path:"sso",children:_.jsx(wm,{source:"external_ids",label:!1,children:_.jsxs(Od,{disableReordering:!0,children:[_.jsx(Lt,{source:"auth_provider",validate:Qr()}),_.jsx(Lt,{source:"external_id",label:"resources.users.fields.id",validate:Qr()})]})})}),_.jsx(Bn,{label:t("resources.devices.name",{smart_count:2}),icon:_.jsx(W4,{}),path:"devices",children:_.jsx(Do,{reference:"devices",target:"user_id",addLabel:!1,children:_.jsxs(Qt,{style:{width:"100%"},children:[_.jsx(be,{source:"device_id",sortable:!1}),_.jsx(be,{source:"display_name",sortable:!1}),_.jsx(be,{source:"last_seen_ip",sortable:!1}),_.jsx(vr,{source:"last_seen_ts",showTime:!0,options:Ns,sortable:!1}),_.jsx(Oje,{})]})})}),_.jsx(Bn,{label:"resources.connections.name",icon:_.jsx(K4,{}),path:"connections",children:_.jsx(_o,{reference:"connections",source:"id",addLabel:!1,link:!1,children:_.jsx(IPe,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:_.jsxs(Qt,{style:{width:"100%"},bulkActionButtons:!1,children:[_.jsx(be,{source:"ip",sortable:!1}),_.jsx(vr,{source:"last_seen",showTime:!0,options:Ns,sortable:!1}),_.jsx(be,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),_.jsx(Bn,{label:t("resources.users_media.name",{smart_count:2}),icon:_.jsx(H4,{}),path:"media",children:_.jsx(Do,{reference:"users_media",target:"user_id",addLabel:!1,pagination:_.jsx(r5,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:_.jsxs(Qt,{style:{width:"100%"},children:[_.jsx(Kje,{source:"media_id"}),_.jsx(vr,{source:"created_ts",showTime:!0,options:Ns}),_.jsx(vr,{source:"last_access_ts",showTime:!0,options:Ns}),_.jsx(zo,{source:"media_length"}),_.jsx(be,{source:"media_type"}),_.jsx(be,{source:"upload_name"}),_.jsx(be,{source:"quarantined_by"}),_.jsx(Gje,{label:"resources.quarantine_media.action.name"}),_.jsx(Hje,{label:"resources.users_media.fields.safe_from_quarantine"}),_.jsx(li,{mutationMode:"pessimistic",redirect:!1})]})})}),_.jsx(Bn,{label:t("resources.rooms.name",{smart_count:2}),icon:_.jsx(ps,{}),path:"rooms",children:_.jsx(Do,{reference:"joined_rooms",target:"user_id",addLabel:!1,children:_.jsxs(Qt,{style:{width:"100%"},rowClick:(r,n,o)=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[_.jsx(be,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),_.jsx(_o,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:_.jsx(be,{source:"name",sortable:!1})})]})})}),_.jsx(Bn,{label:t("resources.pushers.name",{smart_count:2}),icon:_.jsx(q4,{}),path:"pushers",children:_.jsx(Do,{reference:"pushers",target:"user_id",addLabel:!1,children:_.jsxs(Qt,{style:{width:"100%"},bulkActionButtons:!1,children:[_.jsx(be,{source:"kind",sortable:!1}),_.jsx(be,{source:"app_display_name",sortable:!1}),_.jsx(be,{source:"app_id",sortable:!1}),_.jsx(be,{source:"data.url",sortable:!1}),_.jsx(be,{source:"device_display_name",sortable:!1}),_.jsx(be,{source:"lang",sortable:!1}),_.jsx(be,{source:"profile_tag",sortable:!1}),_.jsx(be,{source:"pushkey",sortable:!1})]})})})]})})},iIe={name:"users",icon:vC,list:Jje,edit:aIe,create:nIe};var CC={},sIe=Se;Object.defineProperty(CC,"__esModule",{value:!0});var n5=CC.default=void 0,lIe=sIe(Re()),uIe=_;n5=CC.default=(0,lIe.default)((0,uIe.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var EC={},cIe=Se;Object.defineProperty(EC,"__esModule",{value:!0});var J_=EC.default=void 0,dIe=cIe(Re()),fIe=_;J_=EC.default=(0,dIe.default)((0,fIe.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"}),"Https");var PC={},pIe=Se;Object.defineProperty(PC,"__esModule",{value:!0});var o5=PC.default=void 0,vIe=pIe(Re()),mIe=_;o5=PC.default=(0,vIe.default)((0,mIe.jsx)("path",{d:"M21 21.78 4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H9.66L20 18.34V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.56 0-4.64 1.93-4.94 4.4L8.9 7.24z"}),"NoEncryption");var $C={},hIe=Se;Object.defineProperty($C,"__esModule",{value:!0});var RC=$C.default=void 0,gIe=hIe(Re()),yIe=_;RC=$C.default=(0,gIe.default)((0,yIe.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview");var kC={},bIe=Se;Object.defineProperty(kC,"__esModule",{value:!0});var a5=kC.default=void 0,_Ie=bIe(Re()),xIe=_;a5=kC.default=(0,_Ie.default)((0,xIe.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event");var TC={},wIe=Se;Object.defineProperty(TC,"__esModule",{value:!0});var hs=TC.default=void 0,SIe=wIe(Re()),OIe=_;hs=TC.default=(0,SIe.default)((0,OIe.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"}),"FolderShared");const CIe=()=>_.jsx(ui,{rowsPerPageOptions:[100,500,1e3,2e3]}),EIe=e=>{const t=he();return _.jsx(li,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:_.jsx(hs,{})})},i5=e=>_.jsx(hf,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:_.jsx(hs,{})}),PIe=e=>{const{selectedIds:t}=yr(),r=at(),n=eo(),o=mM("rooms"),a=Tn(),{mutate:i,isLoading:s}=ru(()=>a.createMany("room_directory",{ids:t,data:{}}),{onSuccess:()=>{r("resources.room_directory.action.send_success"),o(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return _.jsx(nt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:s,children:_.jsx(hs,{})})},$Ie=e=>{const t=Be(),r=at(),n=eo(),[o,{isLoading:a}]=Dd(),i=()=>{o("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return _.jsx(nt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:a,children:_.jsx(hs,{})})},RIe=()=>_.jsxs(on,{children:[_.jsx(qD,{}),_.jsx(Pu,{})]}),kIe=()=>_.jsx(ci,{pagination:_.jsx(CIe,{}),perPage:100,actions:_.jsx(RIe,{}),children:_.jsxs(RO,{rowClick:(e,t,r)=>"/rooms/"+e+"/show",bulkActionButtons:_.jsx(i5,{}),omit:["room_id","canonical_alias","topic"],children:[_.jsx(mC,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),_.jsx(be,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),_.jsx(be,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),_.jsx(be,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),_.jsx(be,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),_.jsx(zo,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),_.jsx(bo,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),_.jsx(bo,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),TIe={name:"room_directory",icon:hs,list:kIe},lT={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},jIe=()=>_.jsx(ui,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),IIe=()=>{const e=Be(),t=he();var r="";return e&&(r=e.name!==""?e.name:e.id),_.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},AIe=()=>{const e=Be();var t="";return e&&(t=e.public),_.jsxs(on,{children:[t===!1&&_.jsx($Ie,{}),t===!0&&_.jsx(EIe,{}),_.jsx(li,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},MIe=e=>{const t=he();return _.jsx(zg,{...e,actions:_.jsx(AIe,{}),title:_.jsx(IIe,{}),children:_.jsxs(yf,{children:[_.jsxs(mn,{label:"synapseadmin.rooms.tabs.basic",icon:_.jsx(ps,{}),children:[_.jsx(be,{source:"room_id"}),_.jsx(be,{source:"name"}),_.jsx(be,{source:"topic"}),_.jsx(be,{source:"canonical_alias"}),_.jsx(_o,{source:"creator",reference:"users",children:_.jsx(be,{source:"id"})})]}),_.jsxs(mn,{label:"synapseadmin.rooms.tabs.detail",icon:_.jsx(RC,{}),path:"detail",children:[_.jsx(be,{source:"joined_members"}),_.jsx(be,{source:"joined_local_members"}),_.jsx(be,{source:"joined_local_devices"}),_.jsx(be,{source:"state_events"}),_.jsx(be,{source:"version"}),_.jsx(be,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),_.jsx(mn,{label:"synapseadmin.rooms.tabs.members",icon:_.jsx(vC,{}),path:"members",children:_.jsx(Do,{reference:"room_members",target:"room_id",addLabel:!1,children:_.jsxs(Qt,{style:{width:"100%"},rowClick:(r,n,o)=>"/users/"+r,bulkActionButtons:!1,children:[_.jsx(be,{source:"id",sortable:!1,label:"resources.users.fields.id"}),_.jsx(_o,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:_.jsx(be,{source:"displayname",sortable:!1})})]})})}),_.jsxs(mn,{label:"synapseadmin.rooms.tabs.permission",icon:_.jsx(LO,{}),path:"permission",children:[_.jsx(bo,{source:"federatable"}),_.jsx(bo,{source:"public"}),_.jsx(lb,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),_.jsx(lb,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),_.jsx(lb,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),_.jsx(mn,{label:t("resources.room_state.name",{smart_count:2}),icon:_.jsx(a5,{}),path:"state",children:_.jsx(Do,{reference:"room_state",target:"room_id",addLabel:!1,children:_.jsxs(Qt,{style:{width:"100%"},bulkActionButtons:!1,children:[_.jsx(be,{source:"type",sortable:!1}),_.jsx(vr,{source:"origin_server_ts",showTime:!0,options:lT,sortable:!1}),_.jsx(be,{source:"content",sortable:!1}),_.jsx(_o,{source:"sender",reference:"users",sortable:!1,children:_.jsx(be,{source:"id"})})]})})}),_.jsxs(mn,{label:"resources.forward_extremities.name",icon:_.jsx(n5,{}),path:"forward_extremities",children:[_.jsx(wr,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),_.jsx(Do,{reference:"forward_extremities",target:"room_id",addLabel:!1,children:_.jsxs(Qt,{style:{width:"100%"},bulkActionButtons:!1,children:[_.jsx(be,{source:"id",sortable:!1}),_.jsx(vr,{source:"received_ts",showTime:!0,options:lT,sortable:!1}),_.jsx(zo,{source:"depth",sortable:!1}),_.jsx(be,{source:"state_group",sortable:!1})]})})]})]})})},FIe=()=>_.jsxs(_.Fragment,{children:[_.jsx(PIe,{}),_.jsx(i5,{}),_.jsx(hf,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),NIe=[_.jsx(Bg,{source:"search_term",alwaysOn:!0})],LIe=()=>_.jsxs(on,{children:[_.jsx(qD,{}),_.jsx(Pu,{})]}),DIe=e=>{const t=Mn();return _.jsx(ci,{...e,pagination:_.jsx(jIe,{}),sort:{field:"name",order:"ASC"},filters:NIe,actions:_.jsx(LIe,{}),children:_.jsxs(RO,{rowClick:"show",bulkActionButtons:_.jsx(FIe,{}),omit:["joined_local_members","state_events","version","federatable"],children:[_.jsx(bo,{source:"is_encrypted",sortBy:"encryption",TrueIcon:J_,FalseIcon:o5,label:_.jsx(J_,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),_.jsx(T3,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),_.jsx(be,{source:"joined_members"}),_.jsx(be,{source:"joined_local_members"}),_.jsx(be,{source:"state_events"}),_.jsx(be,{source:"version"}),_.jsx(bo,{source:"federatable"}),_.jsx(bo,{source:"public"})]})})},BIe={name:"rooms",icon:ps,list:DIe,show:MIe};var jC={},zIe=Se;Object.defineProperty(jC,"__esModule",{value:!0});var s5=jC.default=void 0,VIe=zIe(Re()),UIe=_;s5=jC.default=(0,VIe.default)((0,UIe.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const WIe=e=>{const{className:t,exporter:r,filters:n,maxResults:o,...a}=e,{sort:i,resource:s,displayedFilters:u,filterValues:l,showFilter:d,total:f}=yr();return _.jsxs(on,{className:t,...Ji(a),children:[n&&c.cloneElement(n,{resource:s,showFilter:d,displayedFilters:u,filterValues:l,context:"button"}),_.jsx(qje,{}),_.jsx(Pu,{disabled:f===0,resource:s,sort:i,filterValues:l,maxResults:o})]})},qIe=()=>_.jsx(ui,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),HIe=[_.jsx(Bg,{source:"search_term",alwaysOn:!0})],GIe=e=>_.jsx(ci,{...e,actions:_.jsx(WIe,{}),filters:HIe,pagination:_.jsx(qIe,{}),sort:{field:"media_length",order:"DESC"},children:_.jsxs(Qt,{rowClick:(t,r,n)=>"/users/"+t+"/media",bulkActionButtons:!1,children:[_.jsx(be,{source:"user_id",label:"resources.users.fields.id"}),_.jsx(be,{source:"displayname",label:"resources.users.fields.displayname"}),_.jsx(zo,{source:"media_count"}),_.jsx(zo,{source:"media_length"})]})}),KIe={name:"user_media_statistics",icon:s5,list:GIe};var IC={},QIe=Se;Object.defineProperty(IC,"__esModule",{value:!0});var l5=IC.default=void 0,XIe=QIe(Re()),YIe=_;l5=IC.default=(0,XIe.default)((0,YIe.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");const Z_={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},JIe=()=>_.jsx(ui,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),ZIe=e=>{const t=he();return _.jsx(zg,{...e,actions:_.jsx(eAe,{}),children:_.jsxs(yf,{children:[_.jsxs(mn,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:_.jsx(ps,{}),children:[_.jsx(vr,{source:"received_ts",showTime:!0,options:Z_,sortable:!0}),_.jsx(_o,{source:"user_id",reference:"users",children:_.jsx(be,{source:"id"})}),_.jsx(zo,{source:"score"}),_.jsx(be,{source:"reason"}),_.jsx(be,{source:"name"}),_.jsx(be,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),_.jsx(_o,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:_.jsx(be,{source:"id"})})]}),_.jsxs(mn,{label:"synapseadmin.reports.tabs.detail",icon:_.jsx(RC,{}),path:"detail",children:[_.jsx(vr,{source:"event_json.origin_server_ts",showTime:!0,options:Z_,sortable:!0}),_.jsx(_o,{source:"sender",reference:"users",children:_.jsx(be,{source:"id"})}),_.jsx(be,{source:"sender",label:"Sender (raw user ID)"}),_.jsx(be,{source:"event_id"}),_.jsx(be,{source:"event_json.origin"}),_.jsx(be,{source:"event_json.type"}),_.jsx(be,{source:"event_json.content.msgtype"}),_.jsx(be,{source:"event_json.content.body"}),_.jsx(be,{source:"event_json.content.info.mimetype"}),_.jsx(Qje,{source:"event_json.content.url"}),_.jsx(be,{source:"event_json.content.format"}),_.jsx(be,{source:"event_json.content.formatted_body"}),_.jsx(be,{source:"event_json.content.algorithm"}),_.jsx(be,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},eAe=()=>{const e=Be();return _.jsx(on,{children:_.jsx(li,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},tAe=e=>_.jsx(ci,{...e,pagination:_.jsx(JIe,{}),sort:{field:"received_ts",order:"DESC"},children:_.jsxs(Qt,{rowClick:"show",bulkActionButtons:!1,children:[_.jsx(be,{source:"id",sortable:!1}),_.jsx(vr,{source:"received_ts",showTime:!0,options:Z_,sortable:!0}),_.jsx(be,{sortable:!1,source:"user_id"}),_.jsx(be,{sortable:!1,source:"name"}),_.jsx(be,{sortable:!1,source:"score"})]})}),rAe={name:"reports",icon:l5,list:tAe,show:ZIe};var AC={},nAe=Se;Object.defineProperty(AC,"__esModule",{value:!0});var u5=AC.default=void 0,oAe=nAe(Re()),aAe=_;u5=AC.default=(0,oAe.default)((0,aAe.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var MC={},iAe=Se;Object.defineProperty(MC,"__esModule",{value:!0});var c5=MC.default=void 0,sAe=iAe(Re()),lAe=_;c5=MC.default=(0,sAe.default)((0,lAe.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue");const d5=()=>_.jsx(ui,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Um={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},uAe=(e,t)=>({backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}),cAe=[_.jsx(Bg,{source:"destination",alwaysOn:!0})],f5=()=>{const e=Be(),t=eo(),r=at(),[n,{isLoading:o}]=us();if(!e||!e.failure_ts)return null;const a=i=>{i.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return _.jsx(nt,{label:"resources.destinations.action.reconnect",onClick:a,disabled:o,children:_.jsx(u5,{})})},dAe=()=>_.jsx(on,{children:_.jsx(f5,{})}),fAe=()=>{const e=Be(),t=he();return _.jsxs("span",{children:[t("resources.destinations.name",1)," ",e.destination]})},pAe=e=>_.jsx(ci,{...e,filters:cAe,pagination:_.jsx(d5,{}),sort:{field:"destination",order:"ASC"},children:_.jsxs(Qt,{rowSx:uAe,rowClick:(t,r,n)=>`${t}/show/rooms`,bulkActionButtons:!1,children:[_.jsx(be,{source:"destination"}),_.jsx(vr,{source:"failure_ts",showTime:!0,options:Um}),_.jsx(vr,{source:"retry_last_ts",showTime:!0,options:Um}),_.jsx(be,{source:"retry_interval"}),_.jsx(be,{source:"last_successful_stream_ordering"}),_.jsx(f5,{})]})}),vAe=e=>{const t=he();return _.jsx(zg,{actions:_.jsx(dAe,{}),title:_.jsx(fAe,{}),...e,children:_.jsxs(yf,{children:[_.jsxs(mn,{label:"status",icon:_.jsx(ps,{}),children:[_.jsx(be,{source:"destination"}),_.jsx(vr,{source:"failure_ts",showTime:!0,options:Um}),_.jsx(vr,{source:"retry_last_ts",showTime:!0,options:Um}),_.jsx(be,{source:"retry_interval"}),_.jsx(be,{source:"last_successful_stream_ordering"})]}),_.jsx(mn,{label:t("resources.rooms.name",{smart_count:2}),icon:_.jsx(hs,{}),path:"rooms",children:_.jsx(Do,{reference:"destination_rooms",target:"destination",addLabel:!1,pagination:_.jsx(d5,{}),perPage:50,children:_.jsxs(Qt,{style:{width:"100%"},rowClick:(r,n,o)=>`/rooms/${r}/show`,children:[_.jsx(be,{source:"room_id",label:"resources.rooms.fields.room_id"}),_.jsx(be,{source:"stream_ordering",sortable:!1}),_.jsx(_o,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:_.jsx(be,{source:"name",sortable:!1})})]})})})]})})},mAe={name:"destinations",icon:c5,list:pAe,show:vAe};var FC={},hAe=Se;Object.defineProperty(FC,"__esModule",{value:!0});var p5=FC.default=void 0,gAe=hAe(Re()),yAe=_;p5=FC.default=(0,gAe.default)((0,yAe.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber");const bAe={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},_Ae=[Uw(/^[A-Za-z0-9._~-]{0,64}$/)],v5=[pF()],xAe=[pF(),nne(64)],m5=e=>{const t=new Date(e);return isNaN(t)?0:t.getTime()},wAe=e=>{if(e==null)return;const t=new Date(e),r="00",n=t.getFullYear().toString(),o=(r+(t.getMonth()+1).toString()).slice(-2),a=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),s=(r+t.getMinutes().toString()).slice(-2);return`${n}-${o}-${a}T${i}:${s}`},SAe=[_.jsx(Ga,{source:"valid",alwaysOn:!0})],OAe=e=>_.jsx(ci,{...e,filters:SAe,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:_.jsxs(Qt,{rowClick:"edit",children:[_.jsx(be,{source:"token",sortable:!1}),_.jsx(zo,{source:"uses_allowed",sortable:!1}),_.jsx(zo,{source:"pending",sortable:!1}),_.jsx(zo,{source:"completed",sortable:!1}),_.jsx(vr,{source:"expiry_time",showTime:!0,options:bAe,sortable:!1})]})}),CAe=e=>_.jsx(zO,{...e,redirect:"list",children:_.jsxs(ku,{toolbar:_.jsx(vs,{children:_.jsx($u,{alwaysEnable:!0})}),children:[_.jsx(Lt,{source:"token",autoComplete:"off",validate:_Ae,resettable:!0}),_.jsx(Li,{source:"length",validate:xAe,helperText:"resources.registration_tokens.helper.length",step:1}),_.jsx(Li,{source:"uses_allowed",validate:v5,step:1}),_.jsx(Dg,{source:"expiry_time",parse:m5})]})}),EAe=e=>_.jsx(VO,{...e,children:_.jsxs(ku,{children:[_.jsx(Lt,{source:"token",disabled:!0}),_.jsx(Li,{source:"pending",disabled:!0}),_.jsx(Li,{source:"completed",disabled:!0}),_.jsx(Li,{source:"uses_allowed",validate:v5,step:1}),_.jsx(Dg,{source:"expiry_time",parse:m5,format:wAe})]})}),PAe={name:"registration_tokens",icon:p5,list:OAe,edit:EAe,create:CAe},h5=c.createContext({}),$Ae=()=>c.useContext(h5),RAe=V(wr)(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1rem)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{width:"30rem",marginTop:"6rem",marginBottom:"6rem"},"& .avatar":{margin:"1rem",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:e.palette.grey[500]},"& .hint":{marginTop:"1em",marginBottom:"1em",display:"flex",justifyContent:"center",color:e.palette.grey[600]},"& .form":{padding:"0 1rem 1rem 1rem"},"& .select":{marginBottom:"2rem"},"& .actions":{padding:"0 1rem 1rem 1rem"},"& .serverVersion":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginLeft:"0.5rem"},"& .matrixVersions":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.8rem",marginBottom:"1rem",marginLeft:"0.5rem"}})),kAe=()=>{const e=nF(),t=at(),{restrictBaseUrl:r}=$Ae(),n=typeof r=="string",o=Array.isArray(r),a=!(n||o),[i,s]=c.useState(!1),[u,l]=c.useState(!0),[d,f]=Cw(),p=Ew(),v=he(),h=n?r:localStorage.getItem("base_url"),[b,x]=c.useState(""),g=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(g){const S=g[1];console.log("SSO token is",S),window.history.replaceState({},"",window.location.href.replace(g[0],"#").split("#")[0]);const P=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),P){const E={base_url:P,username:null,password:null,loginToken:S};console.log("Base URL is:",P),console.log("SSO Token is:",S),console.log("Let's try token login..."),e(E).catch($=>{alert(typeof $=="string"?$:typeof $>"u"||!$.message?"ra.auth.sign_in_error":$.message),console.error($)})}}const m=S=>S.match(/^(http|https):\/\//)?S.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:v("synapseadmin.auth.url_error"):v("synapseadmin.auth.protocol_error"),y=S=>{s(!0),e(S).catch(P=>{s(!1),t(typeof P=="string"?P:typeof P>"u"||!P.message?"ra.auth.sign_in_error":P.message,{type:"warning"})})},C=()=>{localStorage.setItem("sso_base_url",b);const S=`${b}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=S},O=({formData:S})=>{const P=jn(),[E,$]=c.useState(""),[k,T]=c.useState(""),j=I=>{var D;if(S.base_url||n)return;const A=(D=Nje(S.username))==null?void 0:D.domain;A&&Dje(A).then(L=>{(a||o&&r.includes(L))&&P.setValue("base_url",L)})};return c.useEffect(()=>{S.base_url===""&&o&&P.setValue("base_url",r[0]),Lje(S.base_url)&&(Bje(S.base_url).then(I=>$(`${v("synapseadmin.auth.server_version")} ${I}`)).catch(()=>$("")),zje(S.base_url).then(I=>T(`${v("synapseadmin.auth.supports_specs")} ${I.versions.join(", ")}`)).catch(()=>T("")),Vje(S.base_url).then(I=>{const A=I.find(L=>L.type==="m.login.password")!==void 0,D=I.find(L=>L.type==="m.login.sso")!==void 0;l(A),x(D?S.base_url:"")}).catch(()=>x("")))},[S.base_url,P]),_.jsxs(_.Fragment,{children:[_.jsx(wr,{children:_.jsx(Lt,{autoFocus:!0,name:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!u,onBlur:j,resettable:!0,fullWidth:!0,validate:Qr()})}),_.jsx(wr,{children:_.jsx(BO,{name:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!u,resettable:!0,fullWidth:!0,validate:Qr()})}),_.jsx(wr,{children:_.jsx(Lt,{name:"base_url",label:"synapseadmin.auth.base_url",select:o,autoComplete:"url",disabled:i,readOnly:n,resettable:a,fullWidth:!0,validate:[Qr(),m],children:o&&r.map(I=>_.jsx(Gr,{value:I,children:I},I))})}),_.jsx(Ne,{className:"serverVersion",children:E}),_.jsx(Ne,{className:"matrixVersions",children:k})]})};return _.jsxs(Fh,{defaultValues:{base_url:h},onSubmit:y,mode:"onTouched",children:[_.jsx(RAe,{children:_.jsxs(fs,{className:"card",children:[_.jsx(wr,{className:"avatar",children:i?_.jsx(Su,{size:25,thickness:2}):_.jsx(bd,{className:"icon",children:_.jsx(ff,{})})}),_.jsx(wr,{className:"hint",children:v("synapseadmin.auth.welcome")}),_.jsxs(wr,{className:"form",children:[_.jsx(IS,{value:d,onChange:S=>f(S.target.value),fullWidth:!0,disabled:i,className:"select",children:p.map(S=>_.jsx(Gr,{value:S.locale,children:S.name},S.locale))}),_.jsx(J0,{children:S=>_.jsx(O,{...S})}),_.jsxs(HN,{className:"actions",children:[_.jsx(Bt,{variant:"contained",type:"submit",color:"primary",disabled:i||!u,fullWidth:!0,children:v("ra.auth.sign_in")}),_.jsx(Bt,{variant:"contained",color:"secondary",onClick:C,disabled:i||b==="",fullWidth:!0,children:v("synapseadmin.auth.sso_sign_in")})]})]})]})}),_.jsx(cO,{})]})};var g5={exports:{}};/* @license -Papa Parse -v5.4.1 -https://github.com/mholt/PapaParse -License: MIT -*/(function(e,t){(function(r,n){e.exports=n()})(wa,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},o=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,i={},s=0,u={parse:function(E,$){var k=($=$||{}).dynamicTyping||!1;if(P(k)&&($.dynamicTypingFunction=k,k={}),$.dynamicTyping=k,$.transform=!!P($.transform)&&$.transform,$.worker&&u.WORKERS_SUPPORTED){var T=function(){if(!u.WORKERS_SUPPORTED)return!1;var I=(D=n.URL||n.webkitURL||null,L=r.toString(),u.BLOB_URL||(u.BLOB_URL=D.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",L,")();"],{type:"text/javascript"})))),A=new n.Worker(I),D,L;return A.onmessage=m,A.id=s++,i[A.id]=A}();return T.userStep=$.step,T.userChunk=$.chunk,T.userComplete=$.complete,T.userError=$.error,$.step=P($.step),$.chunk=P($.chunk),$.complete=P($.complete),$.error=P($.error),delete $.worker,void T.postMessage({input:E,config:$,workerId:T.id})}var j=null;return u.NODE_STREAM_INPUT,typeof E=="string"?(E=function(I){return I.charCodeAt(0)===65279?I.slice(1):I}(E),j=$.download?new f($):new v($)):E.readable===!0&&P(E.read)&&P(E.on)?j=new h($):(n.File&&E instanceof File||E instanceof Object)&&(j=new p($)),j.stream(E)},unparse:function(E,$){var k=!1,T=!0,j=",",I=`\r -`,A='"',D=A+A,L=!1,B=null,M=!1;(function(){if(typeof $=="object"){if(typeof $.delimiter!="string"||u.BAD_DELIMITERS.filter(function(W){return $.delimiter.indexOf(W)!==-1}).length||(j=$.delimiter),(typeof $.quotes=="boolean"||typeof $.quotes=="function"||Array.isArray($.quotes))&&(k=$.quotes),typeof $.skipEmptyLines!="boolean"&&typeof $.skipEmptyLines!="string"||(L=$.skipEmptyLines),typeof $.newline=="string"&&(I=$.newline),typeof $.quoteChar=="string"&&(A=$.quoteChar),typeof $.header=="boolean"&&(T=$.header),Array.isArray($.columns)){if($.columns.length===0)throw new Error("Option columns is empty");B=$.columns}$.escapeChar!==void 0&&(D=$.escapeChar+A),(typeof $.escapeFormulae=="boolean"||$.escapeFormulae instanceof RegExp)&&(M=$.escapeFormulae instanceof RegExp?$.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var N=new RegExp(x(A),"g");if(typeof E=="string"&&(E=JSON.parse(E)),Array.isArray(E)){if(!E.length||Array.isArray(E[0]))return q(null,E,L);if(typeof E[0]=="object")return q(B||Object.keys(E[0]),E,L)}else if(typeof E=="object")return typeof E.data=="string"&&(E.data=JSON.parse(E.data)),Array.isArray(E.data)&&(E.fields||(E.fields=E.meta&&E.meta.fields||B),E.fields||(E.fields=Array.isArray(E.data[0])?E.fields:typeof E.data[0]=="object"?Object.keys(E.data[0]):[]),Array.isArray(E.data[0])||typeof E.data[0]=="object"||(E.data=[E.data])),q(E.fields||[],E.data||[],L);throw new Error("Unable to serialize unrecognized input");function q(W,le,Y){var G="";typeof W=="string"&&(W=JSON.parse(W)),typeof le=="string"&&(le=JSON.parse(le));var ne=Array.isArray(W)&&0=this._config.preview;if(a)n.postMessage({results:I,workerId:u.WORKER_ID,finished:D});else if(P(this._config.chunk)&&!k){if(this._config.chunk(I,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);I=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(I.data),this._completeResults.errors=this._completeResults.errors.concat(I.errors),this._completeResults.meta=I.meta),this._completed||!D||!P(this._config.complete)||I&&I.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),D||I&&I.meta.paused||this._nextChunk(),I}this._halted=!0},this._sendError=function($){P(this._config.error)?this._config.error($):a&&this._config.error&&n.postMessage({workerId:u.WORKER_ID,error:$,finished:!1})}}function f(E){var $;(E=E||{}).chunkSize||(E.chunkSize=u.RemoteChunkSize),d.call(this,E),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(k){this._input=k,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if($=new XMLHttpRequest,this._config.withCredentials&&($.withCredentials=this._config.withCredentials),o||($.onload=S(this._chunkLoaded,this),$.onerror=S(this._chunkError,this)),$.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var k=this._config.downloadRequestHeaders;for(var T in k)$.setRequestHeader(T,k[T])}if(this._config.chunkSize){var j=this._start+this._config.chunkSize-1;$.setRequestHeader("Range","bytes="+this._start+"-"+j)}try{$.send(this._config.downloadRequestBody)}catch(I){this._chunkError(I.message)}o&&$.status===0&&this._chunkError()}},this._chunkLoaded=function(){$.readyState===4&&($.status<200||400<=$.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:$.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(k){var T=k.getResponseHeader("Content-Range");return T===null?-1:parseInt(T.substring(T.lastIndexOf("/")+1))}($),this.parseChunk($.responseText)))},this._chunkError=function(k){var T=$.statusText||k;this._sendError(new Error(T))}}function p(E){var $,k;(E=E||{}).chunkSize||(E.chunkSize=u.LocalChunkSize),d.call(this,E);var T=typeof FileReader<"u";this.stream=function(j){this._input=j,k=j.slice||j.webkitSlice||j.mozSlice,T?(($=new FileReader).onload=S(this._chunkLoaded,this),$.onerror=S(this._chunkError,this)):$=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(j.target.result)},this._chunkError=function(){this._sendError($.error)}}function v(E){var $;d.call(this,E=E||{}),this.stream=function(k){return $=k,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var k,T=this._config.chunkSize;return T?(k=$.substring(0,T),$=$.substring(T)):(k=$,$=""),this._finished=!$,this.parseChunk(k)}}}function h(E){d.call(this,E=E||{});var $=[],k=!0,T=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(j){this._input=j,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){T&&$.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),$.length?this.parseChunk($.shift()):k=!0},this._streamData=S(function(j){try{$.push(typeof j=="string"?j:j.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk($.shift()))}catch(I){this._streamError(I)}},this),this._streamError=S(function(j){this._streamCleanUp(),this._sendError(j)},this),this._streamEnd=S(function(){this._streamCleanUp(),T=!0,this._streamData("")},this),this._streamCleanUp=S(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function b(E){var $,k,T,j=Math.pow(2,53),I=-j,A=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,D=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,L=this,B=0,M=0,N=!1,q=!1,K=[],W={data:[],errors:[],meta:{}};if(P(E.step)){var le=E.step;E.step=function(re){if(W=re,ne())G();else{if(G(),W.data.length===0)return;B+=re.data.length,E.preview&&B>E.preview?k.abort():(W.data=W.data[0],le(W,L))}}}function Y(re){return E.skipEmptyLines==="greedy"?re.join("").trim()==="":re.length===1&&re[0].length===0}function G(){return W&&T&&(ie("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),T=!1),E.skipEmptyLines&&(W.data=W.data.filter(function(re){return!Y(re)})),ne()&&function(){if(!W)return;function re(Z,ee){P(E.transformHeader)&&(Z=E.transformHeader(Z,ee)),K.push(Z)}if(Array.isArray(W.data[0])){for(var oe=0;ne()&&oe=K.length?"__parsed_extra":K[H]),E.transform&&(Oe=E.transform(Oe,de)),Oe=ve(de,Oe),de==="__parsed_extra"?(fe[de]=fe[de]||[],fe[de].push(Oe)):fe[de]=Oe}return E.header&&(H>K.length?ie("FieldMismatch","TooManyFields","Too many fields: expected "+K.length+" fields but parsed "+H,M+ee):H=F.length/2?`\r -`:"\r"}(re,ee)),T=!1,E.delimiter)P(E.delimiter)&&(E.delimiter=E.delimiter(re),W.meta.delimiter=E.delimiter);else{var H=function(de,Oe,Ae,F,z){var U,X,J,Q;z=z||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var ue=0;ue=A)return tt(!0)}else for(ge=B,B++;;){if((ge=N.indexOf($,ge+1))===-1)return K||ie.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ve.length,index:B}),qe();if(ge===W-1)return qe(N.substring(B,ge).replace(ue,$));if($!==L||N[ge+1]!==L){if($===L||ge===0||N[ge-1]!==L){J!==-1&&J=A)return tt(!0);break}ie.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ve.length,index:B}),ge++}}else ge++}return qe();function Pe(Fe){ve.push(Fe),oe=B}function xe(Fe){var me=0;if(Fe!==-1){var ke=N.substring(ge+1,Fe);ke&&ke.trim()===""&&(me=ke.length)}return me}function qe(Fe){return K||(Fe===void 0&&(Fe=N.substring(B)),re.push(Fe),B=W,Pe(re),ne&&Te()),tt()}function ot(Fe){B=Fe,Pe(re),re=[],Q=N.indexOf(T,B)}function tt(Fe){return{data:ve,errors:ie,meta:{delimiter:k,linebreak:T,aborted:M,truncated:!!Fe,cursor:oe+(q||0)}}}function Te(){I(tt()),ve=[],ie=[]}},this.abort=function(){M=!0},this.getCharIndex=function(){return B}}function m(E){var $=E.data,k=i[$.workerId],T=!1;if($.error)k.userError($.error,$.file);else if($.results&&$.results.data){var j={abort:function(){T=!0,y($.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(P(k.userStep)){for(var I=0;I<$.results.data.length&&(k.userStep({data:$.results.data[I],errors:$.results.errors,meta:$.results.meta},j),!T);I++);delete $.results}else P(k.userChunk)&&(k.userChunk($.results,j,$.file),delete $.results)}$.finished&&!T&&y($.workerId,$.results)}function y(E,$){var k=i[E];P(k.userComplete)&&k.userComplete($),k.terminate(),delete i[E]}function C(){throw new Error("Not implemented.")}function O(E){if(typeof E!="object"||E===null)return E;var $=Array.isArray(E)?[]:{};for(var k in E)$[k]=O(E[k]);return $}function S(E,$){return function(){E.apply($,arguments)}}function P(E){return typeof E=="function"}return a&&(n.onmessage=function(E){var $=E.data;if(u.WORKER_ID===void 0&&$&&(u.WORKER_ID=$.workerId),typeof $.input=="string")n.postMessage({workerId:u.WORKER_ID,results:u.parse($.input,$.config),finished:!0});else if(n.File&&$.input instanceof File||$.input instanceof Object){var k=u.parse($.input,$.config);k&&n.postMessage({workerId:u.WORKER_ID,results:k,finished:!0})}}),(f.prototype=Object.create(d.prototype)).constructor=f,(p.prototype=Object.create(d.prototype)).constructor=p,(v.prototype=Object.create(v.prototype)).constructor=v,(h.prototype=Object.create(d.prototype)).constructor=h,u})})(g5);var uT=g5.exports;const Rb=!0,TAe=["id","displayname"].sort(),jAe=["user_type","guest","admin","deactivated","avatar_url","password"].sort();function sp({value:e,text:t}){const r=he();return _.jsx("option",{value:e,children:r(t)})}const IAe=()=>{const[e,t]=c.useState(null),[r,n]=c.useState(null),[o,a]=c.useState(null),[i,s]=c.useState(!0),[u,l]=c.useState(null),[d,f]=c.useState(null),[p,v]=c.useState(null),[h,b]=c.useState("stop"),[x,g]=c.useState(!0),[m,y]=c.useState("ignore"),C=he(),O=at(),S=Tn(),P=async Y=>{if(u!==null)return;t(null),n(null),a(null),f(null);const G=Y.target.files?Y.target.files[0]:null;if(G.size>1e8){const ne=C("import_users.errors.unreasonably_big",{size:(G.size/1048576).toFixed(2)});O(ne),n(ne);return}try{uT.parse(G,{header:!0,skipEmptyLines:!0,complete:ne=>{ne.error&&n(ne.error),E(ne,{setValues:t,setStats:a,setError:n})}})}catch{return n(!0),null}},E=({data:Y,meta:G,errors:ne},{setValues:ve,setStats:ie,setError:re})=>{let oe=Array.from(TAe),Z=Array.from(jAe);if(G.fields.forEach(H=>{oe.includes(H)&&(oe=oe.filter(fe=>fe!==H)),Z.includes(H)&&(Z=Z.filter(fe=>fe!==H))}),oe.length!==0)return re(C("import_users.error.required_field",{field:oe[0]})),!1;let ee={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:Y.length};return Y.forEach((H,fe)=>{H.user_type===void 0||H.user_type===""?ee.user_types.default++:ee.user_types[H.user_type]+=1,G.fields.includes("name")&&delete H.name,G.fields.includes("user_type")&&delete H.user_type,G.fields.includes("is_admin")&&(H.admin=H.is_admin,delete H.is_admin),["is_guest","admin","deactivated"].forEach(de=>{H[de]==="true"?(ee[de]++,H[de]=!0):(H[de]!=="false"&&H[de]!==""&&ne.push(C("import_users.error.invalid_value",{field:de,row:fe})),H[de]=!1)}),H.password!==void 0&&H.password!==""&&ee.password++,H.avatar_url!==void 0&&H.avatar_url!==""&&ee.avatar_url++,H.id!==void 0&&H.id!==""&&ee.id++}),ne.length>0&&re(ne),ie(ee),ve(Y),!0},$=async Y=>{if(u!==null){O("import_users.errors.already_in_progress");return}const G=await k(S,e,h,x,m,i,l,n);f(G),v(uT.unparse(G.skippedRecords)),console.log("Skipped records:"),console.log(p)},k=async(Y,G,ne,ve,ie,re,oe,Z)=>{let ee=[],H=[],fe=[],de={toAdmin:0,toGuest:0,toRegular:0,replacedPassword:0},Oe=0,Ae=G.length;try{oe({done:Oe,limit:Ae});for(const F of G){let z={},U={};(ie==="ignore"||F.id===void 0||F.password===void 0||ve===!1)&&(U=sT(),ie==="ignore"||F.id===void 0||delete U.id,ve===!1||F.password===void 0||F.password===""||delete U.password),Object.assign(z,F),Object.assign(z,U),Rb&&console.log("will check for existence of record "+JSON.stringify(z));let X=0;const J=Q=>Y.getOne("users",{id:Q.id}).then(async ue=>{if(Rb&&console.log("already existed"),ie==="update"||ne==="skip")ee.push(Q);else{if(ne==="stop")throw new Error(C("import_users.error.id_exits",{id:Q.id}));{const ge=sT(),Me=Object.assign({},Q,{id:ge.id});X++,X>512?(console.warn("retry loop got stuck? pathological situation?"),ee.push(Q)):await J(Me)}}},async ue=>{Rb&&console.log("OK to create record "+Q.id+" ("+Q.displayname+")."),re||await Y.create("users",{data:Q}),fe.push(Q)});await J(z),Oe++,oe({done:Oe,limit:G.length})}oe(null)}catch(F){Z(C("import_users.error.at_entry",{entry:Oe+1,message:F.message})),oe(null)}return{skippedRecords:ee,erroredRecords:H,succeededRecords:fe,totalRecordCount:Ae,changeStats:de,wasDryRun:re}},T=()=>{const Y=document.createElement("a");console.log(p);const G=new Blob([p],{type:"text/comma-separated-values"});Y.href=URL.createObjectURL(G),Y.download="skippedRecords.csv",document.body.appendChild(Y),Y.click()},j=async Y=>{if(u!==null)return;const G=Y.target.value;b(G)},I=Y=>{u===null&&g(Y.target.checked)},A=async Y=>{if(u!==null)return;const G=Y.target.value;y(G)},D=Y=>{u===null&&s(Y.target.checked)},L=o&&!d&&[_.jsxs($s,{children:[_.jsx(pi,{title:C("import_users.cards.importstats.header")}),_.jsxs(dn,{children:[_.jsx("div",{children:C("import_users.cards.importstats.users_total",o.total)}),_.jsx("div",{children:C("import_users.cards.importstats.guest_count",o.is_guest)}),_.jsx("div",{children:C("import_users.cards.importstats.admin_count",o.admin)})]})]}),_.jsxs($s,{children:[_.jsx(pi,{title:C("import_users.cards.ids.header")}),_.jsxs(dn,{children:[_.jsx("div",{children:o.id===o.total?C("import_users.cards.ids.all_ids_present"):C("import_users.cards.ids.count_ids_present",o.id)}),o.id>0?_.jsx("div",{children:_.jsxs(gR,{onChange:A,value:m,enabled:(u!==null).toString(),children:[_.jsx(sp,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),_.jsx(sp,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),_.jsxs($s,{children:[_.jsx(pi,{title:C("import_users.cards.passwords.header")}),_.jsxs(dn,{children:[_.jsx("div",{children:o.password===o.total?C("import_users.cards.passwords.all_passwords_present"):C("import_users.cards.passwords.count_passwords_present",o.password)}),o.password>0?_.jsx("div",{children:_.jsx(y1,{control:_.jsx(Hl,{checked:x,enabled:(u!==null).toString(),onChange:I}),label:C("import_users.cards.passwords.use_passwords")})}):""]})]})];let B=o&&!d&&_.jsxs($s,{children:[_.jsx(pi,{title:C("import_users.cards.conflicts.header")}),_.jsx(dn,{children:_.jsx("div",{children:_.jsxs(gR,{onChange:j,value:h,enabled:(u!==null).toString(),children:[_.jsx(sp,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),_.jsx(sp,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),M=r&&_.jsxs($s,{children:[_.jsx(pi,{title:C("import_users.error.error")}),_.jsx(dn,{children:(Array.isArray(r)?r:[r]).map(Y=>_.jsx("div",{children:Y}))})]}),N=!d&&_.jsxs($s,{children:[_.jsx(pi,{title:C("import_users.cards.upload.header")}),_.jsxs(dn,{children:[C("import_users.cards.upload.explanation"),_.jsx("a",{href:"./data/example.csv",children:"example.csv"}),_.jsx("br",{}),_.jsx("br",{}),_.jsx("input",{type:"file",onChange:P,enabled:(u!==null).toString()})]})]}),q=d&&_.jsxs(dn,{children:[_.jsx(pi,{title:C("import_users.cards.results.header")}),_.jsxs("div",{children:[C("import_users.cards.results.total",d.totalRecordCount),_.jsx("br",{}),C("import_users.cards.results.successful",d.succeededRecords.length),_.jsx("br",{}),d.skippedRecords.length?[C("import_users.cards.results.skipped",d.skippedRecords.length),_.jsx("div",{children:_.jsx("button",{onClick:T,children:C("import_users.cards.results.download_skipped")})}),_.jsx("br",{})]:"",d.erroredRecords.length?[C("import_users.cards.results.skipped",d.erroredRecords.length),_.jsx("br",{})]:"",_.jsx("br",{}),d.wasDryRun&&[C("import_users.cards.results.simulated_only"),_.jsx("br",{})]]})]}),K=!e||e.length===0||d?void 0:_.jsxs(HN,{children:[_.jsx(y1,{control:_.jsx(Hl,{checked:i,onChange:D,enabled:(u!==null).toString()}),label:C("import_users.cards.startImport.simulate_only")}),_.jsx(Bt,{size:"large",onClick:$,enabled:(u!==null).toString(),children:C("import_users.cards.startImport.run_import")}),u!==null?_.jsxs("div",{children:[u.done," of ",u.limit," done"]}):null]}),W=[];N&&W.push(N),M&&W.push(M),B&&W.push(B),L&&W.push(...L),K&&W.push(K),q&&W.push(q);let le=_.jsx(fs,{children:W});return[_.jsx(si,{defaultTitle:C("import_users.title")}),le]},AAe=IAe,y5={ra:{action:{add_filter:"Filter hinzufügen",add:"Neu",back:"Zurück",bulk_actions:"Ein Element ausgewählt |||| %{smart_count} Elemente ausgewählt",cancel:"Abbrechen",clear_array_input:"Liste löschen",clear_input_value:"Eingabe löschen",clone:"Klonen",confirm:"Bestätigen",create:"Erstellen",create_item:"%{item} erstellen",delete:"Löschen",edit:"Bearbeiten",export:"Exportieren",list:"Liste",refresh:"Neu laden",remove_filter:"Filter entfernen",remove_all_filters:"Alle Filter entfernen",remove:"Entfernen",save:"Speichern",search:"Suchen",select_all:"Alles auswählen",select_row:"Reihe auswählen",show:"Anzeigen",sort:"Sortieren",undo:"Rückgängig machen",unselect:"Abwählen",expand:"Erweitern",close:"Schließen",open_menu:"Menü öffnen",close_menu:"Menü schließen",update:"Aktualisieren",move_up:"Nach oben",move_down:"Nach unten",open:"Öffnen",toggle_theme:"Theme wechseln",select_columns:"Spalten"},boolean:{true:"Ja",false:"Nein",null:" "},page:{create:"%{name} erstellen",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Etwas ist schiefgelaufen",list:"%{name}",loading:"Laden",not_found:"Nicht gefunden",show:"%{name} %{recordRepresentation}",empty:"Noch kein %{name}.",invite:"Neu erstellen?"},input:{file:{upload_several:"Dateien hier ablegen, oder zum Auswählen klicken.",upload_single:"Dateien hier ablegen, oder zum Auswählen klicken."},image:{upload_several:"Bilder hier ablegen, oder zum Auswählen klicken.",upload_single:"Bild hier ablegen, oder zum Auswählen klicken."},references:{all_missing:"Die Daten der Referenz können nicht gefunden werden.",many_missing:"Mindestens eine Referenz scheint nicht mehr verfügbar zu sein.",single_missing:"Die Referenz scheint nicht mehr verfügbar zu sein."},password:{toggle_visible:"Passwort verbergen",toggle_hidden:"Passwort einblenden"}},message:{about:"Über",are_you_sure:"Sind Sie sicher?",auth_error:"Bei der Validierung des Authentifizierungstokens ist ein Fehler aufgetreten.",bulk_delete_content:"Sicher, dass Sie %{name} löschen wollen? |||| Sicher, dass Sie diese %{smart_count} Elemente löschen wollen?",bulk_delete_title:"%{name} löschen |||| %{smart_count} %{name} löschen",bulk_update_content:"Sicher, dass Sie %{name} aktualisieren wollen? |||| Sicher, dass Sie %{smart_count} Elemente aktualisieren wollen?",bulk_update_title:"%{name} aktualisieren |||| %{smart_count} %{name} aktualisieren",clear_array_input:"Sicher, dass Sie die ganze Liste löschen wollen?",delete_content:"Sicher, dass Sie dieses Element löschen wollen?",delete_title:"%{name} #%{id} löschen",details:"Details",error:"Ein Fehler trat auf, Ihre Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfen Sie Ihre Eingaben.",loading:"Die Seite wird geladen, noch einen Moment.",no:"Nein",not_found:"Sie eine falsche URL aufgerufen oder eingegeben.",yes:"Ja",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass Sie diese nicht übernehmen wollen?"},navigation:{no_results:"Keine Ergebnisse gefunden.",no_more_results:"Es gibt keine Seite %{page}. Versuche eine vorherige.",page_out_of_boundaries:"Es gibt keine Seite %{page}.",page_out_from_end:"Es gibt keine Seite mehr nach dieser.",page_out_from_begin:"Es gibt keine Seite vor Seite 1.",page_range_info:"%{offsetBegin}-%{offsetEnd} von %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} von mehr als %{offsetEnd}",current_page:"Seite %{page}",page:"Gehe zu Seite %{page}",first:"Gehe zur ersten Seite",last:"Gehe zur letzten Seite",next:"Gehe zur nächsten Seite",previous:"Gehe zur vorherigen Seite",page_rows_per_page:"Reihen pro Seite:",skip_nav:"Zum Inhalt springen"},sort:{sort_by:"Nach %{field} %{order} sortieren",ASC:"Aufsteigend",DESC:"Absteigend"},auth:{auth_check_error:"Bitte anmelden um fortzufahren",user_menu:"Profil",username:"Nutzername",password:"Passwort",sign_in:"Anmelden",sign_in_error:"Anmeldung fehlgeschlagen, bitte erneut versuchen.",logout:"Abmelden"},notification:{updated:"Element aktualisiert |||| %{smart_count} Elemente aktualisiert",created:"Element erstellt",deleted:"Element gelöscht |||| %{smart_count} Elemente gelöscht",bad_item:"Fehlerhaftes Element",item_doesnt_exist:"Element existiert nicht",http_error:"Kommunikation mit Server fehlgeschlagen",data_provider_error:"DataProvider-Fehler. Mehr Details in der Konsole.",i18n_error:"Die Übersetzungen für die ausgewählte Sprache können nicht geladen werden",canceled:"Aktion abgebrochen",logged_out:"Ihre Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Sie sind nicht berechtigt, auf diese Ressource zuzugreifen."},validation:{required:"Erforderlich",minLength:"Muss mindestens %{min} Zeichen betragen",maxLength:"Darf %{max} Zeichen oder weniger betragen",minValue:"Muss mindestens %{min} betragen",maxValue:"Darf %{max} oder weniger betragen",number:"Muss eine Nummer sein",email:"Muss eine gültige E-Mail sein",oneOf:"Muss eine der folgenden Optionen sein: %{options}",regex:"Muss einem gewissen Format entsprechen (regexp): %{pattern}"},saved_queries:{label:"Gespeicherte Anfragen",query_name:"Name der Anfrage",new_label:"Speichere aktuelle Anfrage...",new_dialog_title:"Speichere aktuelle Anfrage als",remove_label:"Gespeicherte Anfrage löschen",remove_label_with_name:'Anfrage "%{name}" löschen',remove_dialog_title:"Gespeicherte Anfrage löschen?",remove_message:"Sicher, dass Sie diese Anfrage aus der Liste der gespeicherten löschen wollen?",help:"Liste filtern und diese Anfrage für später speichern"},configurable:{customize:"Anpassen",configureMode:"Diese Seite anpassen",inspector:{title:"Inspektor",content:"Bewegen Sie den Mauszeigen über die UI-Elemente, um sie zu konfigurieren",reset:"Einstellungen zurücksetzen",hideAll:"Alles verbergen",showAll:"Alles anzeigen"},Datagrid:{title:"Datagrid",unlabeled:"Unbekannte Spalte #%{column}"},SimpleForm:{title:"Formular",unlabeled:"Unbenannter Input #%{input}"},SimpleList:{title:"Liste",primaryText:"Primärtext",secondaryText:"Sekundärtext",tertiaryText:"Tertiärtext"}}}},MAe={ra:{message:{are_you_sure:"Bist du sicher?",bulk_delete_content:"Sicher, dass du %{name} löschen willst? |||| Sicher, dass du diese %{smart_count} Elemente löschen willst?",bulk_update_content:"Sicher, dass du %{name} aktualisieren willst? |||| Sicher, dass du %{smart_count} Elemente aktualisieren willst?",clear_array_input:"Sicher, dass du die ganze Liste löschen willst?",delete_content:"Sicher, dass du dieses Element löschen willst?",error:"Ein Fehler trat auf, Deine Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfe Deine Eingaben.",not_found:"Du hast eine falsche URL aufgerufen oder eingegeben.",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass du diese nicht übernehmen willst?"},notification:{logged_out:"Deine Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Du bist nicht berechtigt, auf diese Ressource zuzugreifen."},saved_queries:{remove_message:"Sicher, dass du diese Anfrage aus der Liste der gespeicherten löschen willst?"},configurable:{inspector:{content:"Bewege den Mauszeigen über die UI-Elemente, um sie zu konfigurieren"}}}};Ph(y5,MAe);const FAe={...y5,synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",deactivated:"Deaktiviert",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"}}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}},NAe={...K3,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors ||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",deactivated:"Deactivated",guests:"Show guests",show_deactivated:"Show deactivated users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var LAe={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const DAe={...LAe,synapseadmin:{auth:{base_url:"URL du serveur d’accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l’authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d’accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var b5={};Object.defineProperty(b5,"__esModule",{value:!0});var BAe={ra:{action:{add:"增加",add_filter:"添加搜索条件",back:"回退",bulk_actions:"选中1项 |||| 选中%{smart_count}项",cancel:"取消",clear_array_input:"清空列表",clear_input_value:"清空输入",clone:"克隆",close:"关闭",close_menu:"关闭菜单",confirm:"确认",create:"新建",create_item:"新建 %{item}",delete:"删除",edit:"编辑",expand:"展开",export:"导出",list:"列表",move_down:"下移",move_up:"上移",open:"打开",open_menu:"打开菜单",refresh:"刷新",remove:"删除",remove_all_filters:"移除所有检索",remove_filter:"移除检索",save:"保存",search:"检索",select_all:"选择所有",select_columns:"列",select_row:"选择此行",show:"查看",sort:"排序",toggle_theme:"切换主题",undo:"撤销",unselect:"反选",update:"更新",update_application:"重载应用"},auth:{auth_check_error:"请登录以继续",user_menu:"设置",username:"用户名",password:"密码",sign_in:"登录",sign_in_error:"验证失败, 请重试",logout:"登出"},boolean:{true:"是",false:"否",null:" "},configurable:{customize:"自定义",configureMode:"配置此页面",inspector:{title:"Inspector",content:"悬停应用程序UI元素来配置它们",reset:"重置设置",hideAll:"隐藏所有",showAll:"显示所有"},Datagrid:{title:"数据网格",unlabeled:"未设置标签的列 #%{column}"},SimpleForm:{title:"表单",unlabeled:"未设置标签的输入框 #%{input}"},SimpleList:{title:"列表",primaryText:"主要的文本",secondaryText:"二级文本",tertiaryText:"三级文本"}},input:{file:{upload_several:"将文件集合拖拽到这里, 或点击这里选择文件集合.",upload_single:"将文件拖拽到这里, 或点击这里选择文件."},image:{upload_several:"将图片文件集合拖拽到这里, 或点击这里选择图片文件集合.",upload_single:"将图片文件拖拽到这里, 或点击这里选择图片文件."},password:{toggle_visible:"隐藏密码",toggle_hidden:"显示密码"},references:{all_missing:"未找到参考数据.",many_missing:"至少有一条参考数据不再可用.",single_missing:"关联的参考数据不再可用."}},message:{about:"关于",are_you_sure:"您确定操作?",bulk_delete_content:"您确定要删除 %{name}? |||| 您确定要删除 %{smart_count} 项?",bulk_delete_title:"删除 %{name} |||| 删除 %{smart_count}项 %{name} ",delete_content:"您确定要删除该条目?",delete_title:"删除 %{name} #%{id}",error:"客户端错误导致请求未完成.",invalid_form:"表单输入无效. 请检查错误提示",loading:"正在加载页面, 请稍候",no:"否",not_found:"您输入了错误的URL或者错误的链接.",unsaved_changes:"修改未保存. 放弃修改吗?",yes:"是",auth_error:"身份认证出错",bulk_update_content:"是否确实要更新此 %{name}? |||| 是否确实要更新这些 %{smart_count} ?",bulk_update_title:"更新 %{name} |||| 更新 %{smart_count} %{name}",clear_array_input:"您确定要清除整个列表吗?",details:"详情"},navigation:{no_results:"结果为空",no_more_results:"页码 %{page} 超出边界. 试试上一页.",page_out_of_boundaries:"页码 %{page} 超出边界",page_out_from_end:"已到最末页",page_out_from_begin:"已到最前页",page_range_info:"%{offsetBegin}-%{offsetEnd} / %{total}",page_rows_per_page:"每页行数:",next:"向后",prev:"向前",skip_nav:"跳到内容",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"页码 %{page}",page:"跳到页码 %{page}",first:"第一页",last:"最后一页",previous:"向前"},notification:{updated:"条目已更新 |||| %{smart_count} 项条目已更新",created:"条目已新建",deleted:"条目已删除 |||| %{smart_count} 项条目已删除",bad_item:"不正确的条目",item_doesnt_exist:"条目不存在",http_error:"与服务通信出错",canceled:"取消动作",data_provider_error:"dataProvider错误. 请检查console的详细信息.",i18n_error:"无法加载指定语言包",logged_out:"会话失效, 请重连.",not_authorized:"你没有权限访问此资源.",application_update_available:"新版本可用."},page:{create:"新建 %{name}",dashboard:"概览",edit:"%{name} #%{id}",empty:"无 %{name} ",error:"出现错误",invite:"要增加吗?",list:"%{name} 列表",loading:"加载中",not_found:"未发现",show:"%{name} #%{id}"},saved_queries:{label:"保存查询",query_name:"查询名称",new_label:"保存当前查询...",new_dialog_title:"保存当前查询为",remove_label:"删除保存的查询",remove_label_with_name:'删除查询 "%{name}"',remove_dialog_title:"删除保存的查询?",remove_message:"确定要从保存的查询列表中删除该项吗?",help:"过滤列表,并保存此查询"},sort:{sort_by:"按 %{field} %{order}",ASC:"升序",DESC:"降序"},validation:{required:"必填",minLength:"必须不少于 %{min} 个字符",maxLength:"必须不多于 %{max} 个字符",minValue:"必须不小于 %{min}",maxValue:"必须不大于 %{max}",number:"必须为数字",email:"必须是有效的邮箱",oneOf:"必须为: %{options}其中一项",regex:"必须符合指定的格式 (regexp): %{pattern}"}}},zAe=b5.default=BAe;const VAe={...zAe,synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"},delete:{title:"删除房间",message:"您确定要删除这个房间吗?该操作无法被撤销。这个房间里所有的消息和分享的媒体都将被从服务器上删除!"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}};var UAe={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:" "},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra più disponibile.",single_missing:"Il riferimento associato non sembra più disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale è occorso e la tua richiesta non è stata completata.",invalid_form:"Il modulo non è valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} è fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} è fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"È necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione è stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}};const WAe=Rt(UAe),qAe={...WAe,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}},lp={de:FAe,en:NAe,fr:DAe,it:qAe,zh:VAe},HAe=z4(e=>lp[e]?Ph({},lp.en,lp[e]):lp.en,gQ(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"zh",name:"简体中文"}]),GAe=()=>_.jsxs(UTe,{disableTelemetry:!0,requireAuth:!0,loginPage:kAe,authProvider:WTe,dataProvider:qTe,i18nProvider:HAe,children:[_.jsx(BM,{children:_.jsx(ar,{path:"/import_users",element:_.jsx(AAe,{})})}),_.jsx(zt,{...iIe}),_.jsx(zt,{...BIe}),_.jsx(zt,{...KIe}),_.jsx(zt,{...rAe}),_.jsx(zt,{...TIe}),_.jsx(zt,{...mAe}),_.jsx(zt,{...PAe}),_.jsx(zt,{name:"connections"}),_.jsx(zt,{name:"devices"}),_.jsx(zt,{name:"room_members"}),_.jsx(zt,{name:"users_media"}),_.jsx(zt,{name:"joined_rooms"}),_.jsx(zt,{name:"pushers"}),_.jsx(zt,{name:"servernotices"}),_.jsx(zt,{name:"forward_extremities"}),_.jsx(zt,{name:"room_state"}),_.jsx(zt,{name:"destination_rooms"})]});fetch("config.json").then(e=>e.json()).then(e=>SI(document.getElementById("root")).render(_.jsx(te.StrictMode,{children:_.jsx(h5.Provider,{value:e,children:_.jsx(GAe,{})})}))); diff --git a/assets/index-DqG8Jxb9.js b/assets/index-DqG8Jxb9.js new file mode 100644 index 0000000..7a54583 --- /dev/null +++ b/assets/index-DqG8Jxb9.js @@ -0,0 +1,305 @@ +function TQ(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 ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ga(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 pN={exports:{}},fb={},vN={exports:{}},xt={};/** + * @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 tv=Symbol.for("react.element"),kQ=Symbol.for("react.portal"),IQ=Symbol.for("react.fragment"),jQ=Symbol.for("react.strict_mode"),AQ=Symbol.for("react.profiler"),MQ=Symbol.for("react.provider"),FQ=Symbol.for("react.context"),LQ=Symbol.for("react.forward_ref"),NQ=Symbol.for("react.suspense"),DQ=Symbol.for("react.memo"),BQ=Symbol.for("react.lazy"),Hk=Symbol.iterator;function zQ(e){return e===null||typeof e!="object"?null:(e=Hk&&e[Hk]||e["@@iterator"],typeof e=="function"?e:null)}var mN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hN=Object.assign,gN={};function id(e,t,r){this.props=e,this.context=t,this.refs=gN,this.updater=r||mN}id.prototype.isReactComponent={};id.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")};id.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yN(){}yN.prototype=id.prototype;function MC(e,t,r){this.props=e,this.context=t,this.refs=gN,this.updater=r||mN}var FC=MC.prototype=new yN;FC.constructor=MC;hN(FC,id.prototype);FC.isPureReactComponent=!0;var Gk=Array.isArray,bN=Object.prototype.hasOwnProperty,LC={current:null},_N={key:!0,ref:!0,__self:!0,__source:!0};function xN(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)bN.call(t,n)&&!_N.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,ee=U[ne];if(0>>1;neo(oe,te))meo(Re,oe)?(U[ne]=Re,U[me]=te,ne=me):(U[ne]=oe,U[de]=te,ne=de);else if(meo(Re,te))U[ne]=Re,U[me]=te,ne=me;else break e}}return W}function o(U,W){var te=U.sortIndex-W.sortIndex;return te!==0?te:U.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 c=[],l=[],f=1,v=null,m=3,h=!1,x=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(U){for(var W=r(l);W!==null;){if(W.callback===null)n(l);else if(W.startTime<=U)n(l),W.sortIndex=W.expirationTime,t(c,W);else break;W=r(l)}}function $(U){if(w=!1,_(U),!x)if(r(c)!==null)x=!0,G(P);else{var W=r(l);W!==null&&q($,W.startTime-U)}}function P(U,W){x=!1,w&&(w=!1,b(R),R=-1),h=!0;var te=m;try{for(_(W),v=r(c);v!==null&&(!(v.expirationTime>W)||U&&!F());){var ne=v.callback;if(typeof ne=="function"){v.callback=null,m=v.priorityLevel;var ee=ne(v.expirationTime<=W);W=e.unstable_now(),typeof ee=="function"?v.callback=ee:v===r(c)&&n(c),_(W)}else n(c);v=r(c)}if(v!==null)var Oe=!0;else{var de=r(l);de!==null&&q($,de.startTime-W),Oe=!1}return Oe}finally{v=null,m=te,h=!1}}var E=!1,T=null,R=-1,I=5,A=-1;function F(){return!(e.unstable_now()-AU||125ne?(U.sortIndex=te,t(l,U),r(c)===null&&U===r(l)&&(w?(b(R),R=-1):w=!0,q($,te-ne))):(U.sortIndex=ee,t(c,U),x||h||(x=!0,G(P))),U},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(U){var W=m;return function(){var te=m;m=W;try{return U.apply(this,arguments)}finally{m=te}}}})(CN);ON.exports=CN;var JQ=ON.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 EN=d,co=JQ;function Te(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"),pw=Object.prototype.hasOwnProperty,ZQ=/^[: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]*$/,Qk={},Xk={};function eX(e){return pw.call(Xk,e)?!0:pw.call(Qk,e)?!1:ZQ.test(e)?Xk[e]=!0:(Qk[e]=!0,!1)}function tX(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 rX(e,t,r,n){if(t===null||typeof t>"u"||tX(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 Rn(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 Zr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zr[e]=new Rn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zr[t]=new Rn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zr[e]=new Rn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zr[e]=new Rn(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){Zr[e]=new Rn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zr[e]=new Rn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zr[e]=new Rn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zr[e]=new Rn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zr[e]=new Rn(e,5,!1,e.toLowerCase(),null,!1,!1)});var DC=/[\-:]([a-z])/g;function BC(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(DC,BC);Zr[t]=new Rn(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(DC,BC);Zr[t]=new Rn(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(DC,BC);Zr[t]=new Rn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zr[e]=new Rn(e,1,!1,e.toLowerCase(),null,!1,!1)});Zr.xlinkHref=new Rn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zr[e]=new Rn(e,1,!1,e.toLowerCase(),null,!0,!0)});function zC(e,t,r,n){var o=Zr.hasOwnProperty(t)?Zr[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var c=` +`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{k_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?$f(e):""}function nX(e){switch(e.tag){case 5:return $f(e.type);case 16:return $f("Lazy");case 13:return $f("Suspense");case 19:return $f("SuspenseList");case 0:case 2:case 15:return e=I_(e.type,!1),e;case 11:return e=I_(e.type.render,!1),e;case 1:return e=I_(e.type,!0),e;default:return""}}function gw(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 Gu:return"Fragment";case Hu:return"Portal";case vw:return"Profiler";case UC:return"StrictMode";case mw:return"Suspense";case hw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RN:return(e.displayName||"Context")+".Consumer";case $N:return(e._context.displayName||"Context")+".Provider";case VC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case WC:return t=e.displayName||null,t!==null?t:gw(e.type)||"Memo";case ns:t=e._payload,e=e._init;try{return gw(e(t))}catch{}}return null}function oX(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 gw(t);case 8:return t===UC?"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 Is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aX(e){var t=kN(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 qm(e){e._valueTracker||(e._valueTracker=aX(e))}function IN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=kN(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function wg(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 yw(e,t){var r=t.checked;return ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Jk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Is(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 jN(e,t){t=t.checked,t!=null&&zC(e,"checked",t,!1)}function bw(e,t){jN(e,t);var r=Is(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")?_w(e,t.type,r):t.hasOwnProperty("defaultValue")&&_w(e,t.type,Is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zk(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 _w(e,t,r){(t!=="number"||wg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Rf=Array.isArray;function vc(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Hm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Lf={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},iX=["Webkit","ms","Moz","O"];Object.keys(Lf).forEach(function(e){iX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lf[t]=Lf[e]})});function LN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Lf.hasOwnProperty(e)&&Lf[e]?(""+t).trim():t+"px"}function NN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=LN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var sX=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 Sw(e,t){if(t){if(sX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Ow(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 Cw=null;function qC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ew=null,mc=null,hc=null;function rI(e){if(e=ov(e)){if(typeof Ew!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=gb(t),Ew(e.stateNode,e.type,t))}}function DN(e){mc?hc?hc.push(e):hc=[e]:mc=e}function BN(){if(mc){var e=mc,t=hc;if(hc=mc=null,rI(e),t)for(e=0;e>>=0,e===0?32:31-(yX(e)/bX|0)|0}var Gm=64,Km=4194304;function Tf(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 Eg(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=Tf(s):(a&=i,a!==0&&(n=Tf(a)))}else i=r&~o,i!==0?n=Tf(i):a!==0&&(n=Tf(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 rv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ma(t),e[t]=r}function SX(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=Df),dI=" ",fI=!1;function iD(e,t){switch(e){case"keyup":return YX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ku=!1;function ZX(e,t){switch(e){case"compositionend":return sD(t);case"keypress":return t.which!==32?null:(fI=!0,dI);case"textInput":return e=t.data,e===dI&&fI?null:e;default:return null}}function eY(e,t){if(Ku)return e==="compositionend"||!ZC&&iD(e,t)?(e=oD(),Ah=XC=fs=null,Ku=!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=hI(r)}}function dD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fD(){for(var e=window,t=wg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=wg(e.document)}return t}function eE(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 uY(e){var t=fD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dD(r.ownerDocument.documentElement,r)){if(n!==null&&eE(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=gI(r,a);var i=gI(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,Qu=null,Iw=null,zf=null,jw=!1;function yI(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;jw||Qu==null||Qu!==wg(n)||(n=Qu,"selectionStart"in n&&eE(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}),zf&&Sp(zf,n)||(zf=n,n=Rg(Iw,"onSelect"),0Ju||(e.current=Dw[Ju],Dw[Ju]=null,Ju--)}function Wt(e,t){Ju++,Dw[Ju]=e.current,e.current=t}var js={},pn=Ns(js),Un=Ns(!1),Wl=js;function Lc(e,t){var r=e.type.contextTypes;if(!r)return js;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 Vn(e){return e=e.childContextTypes,e!=null}function kg(){Xt(Un),Xt(pn)}function CI(e,t,r){if(pn.current!==js)throw Error(Te(168));Wt(pn,t),Wt(Un,r)}function xD(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(Te(108,oX(e)||"Unknown",o));return ar({},r,n)}function Ig(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||js,Wl=pn.current,Wt(pn,e),Wt(Un,Un.current),!0}function EI(e,t,r){var n=e.stateNode;if(!n)throw Error(Te(169));r?(e=xD(e,t,Wl),n.__reactInternalMemoizedMergedChildContext=e,Xt(Un),Xt(pn),Wt(pn,e)):Xt(Un),Wt(Un,r)}var mi=null,yb=!1,H_=!1;function wD(e){mi===null?mi=[e]:mi.push(e)}function xY(e){yb=!0,wD(e)}function Ds(){if(!H_&&mi!==null){H_=!0;var e=0,t=jt;try{var r=mi;for(jt=1;e>=i,o-=i,yi=1<<32-ma(t)+o|r<R?(I=T,T=null):I=T.sibling;var A=m(b,T,_[R],$);if(A===null){T===null&&(T=I);break}e&&T&&A.alternate===null&&t(b,T),g=a(A,g,R),E===null?P=A:E.sibling=A,E=A,T=I}if(R===_.length)return r(b,T),er&&ml(b,R),P;if(T===null){for(;R<_.length;R++)T=v(b,_[R],$),T!==null&&(g=a(T,g,R),E===null?P=T:E.sibling=T,E=T);return er&&ml(b,R),P}for(T=n(b,T);R<_.length;R++)I=h(T,b,R,_[R],$),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),g=a(I,g,R),E===null?P=I:E.sibling=I,E=I);return e&&T.forEach(function(F){return t(b,F)}),er&&ml(b,R),P}function w(b,g,_,$){var P=af(_);if(typeof P!="function")throw Error(Te(150));if(_=P.call(_),_==null)throw Error(Te(151));for(var E=P=null,T=g,R=g=0,I=null,A=_.next();T!==null&&!A.done;R++,A=_.next()){T.index>R?(I=T,T=null):I=T.sibling;var F=m(b,T,A.value,$);if(F===null){T===null&&(T=I);break}e&&T&&F.alternate===null&&t(b,T),g=a(F,g,R),E===null?P=F:E.sibling=F,E=F,T=I}if(A.done)return r(b,T),er&&ml(b,R),P;if(T===null){for(;!A.done;R++,A=_.next())A=v(b,A.value,$),A!==null&&(g=a(A,g,R),E===null?P=A:E.sibling=A,E=A);return er&&ml(b,R),P}for(T=n(b,T);!A.done;R++,A=_.next())A=h(T,b,R,A.value,$),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),g=a(A,g,R),E===null?P=A:E.sibling=A,E=A);return e&&T.forEach(function(L){return t(b,L)}),er&&ml(b,R),P}function O(b,g,_,$){if(typeof _=="object"&&_!==null&&_.type===Gu&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Wm:e:{for(var P=_.key,E=g;E!==null;){if(E.key===P){if(P=_.type,P===Gu){if(E.tag===7){r(b,E.sibling),g=o(E,_.props.children),g.return=b,b=g;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===ns&&jI(P)===E.type){r(b,E.sibling),g=o(E,_.props),g.ref=df(b,E,_),g.return=b,b=g;break e}r(b,E);break}else t(b,E);E=E.sibling}_.type===Gu?(g=Il(_.props.children,b.mode,$,_.key),g.return=b,b=g):($=Uh(_.type,_.key,_.props,null,b.mode,$),$.ref=df(b,g,_),$.return=b,b=$)}return i(b);case Hu:e:{for(E=_.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){r(b,g.sibling),g=o(g,_.children||[]),g.return=b,b=g;break e}else{r(b,g);break}else t(b,g);g=g.sibling}g=ex(_,b.mode,$),g.return=b,b=g}return i(b);case ns:return E=_._init,O(b,g,E(_._payload),$)}if(Rf(_))return x(b,g,_,$);if(af(_))return w(b,g,_,$);th(b,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,g!==null&&g.tag===6?(r(b,g.sibling),g=o(g,_),g.return=b,b=g):(r(b,g),g=Z_(_,b.mode,$),g.return=b,b=g),i(b)):r(b,g)}return O}var Dc=TD(!0),kD=TD(!1),av={},Ba=Ns(av),Pp=Ns(av),$p=Ns(av);function Cl(e){if(e===av)throw Error(Te(174));return e}function uE(e,t){switch(Wt($p,t),Wt(Pp,e),Wt(Ba,av),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ww(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ww(t,e)}Xt(Ba),Wt(Ba,t)}function Bc(){Xt(Ba),Xt(Pp),Xt($p)}function ID(e){Cl($p.current);var t=Cl(Ba.current),r=ww(t,e.type);t!==r&&(Wt(Pp,e),Wt(Ba,r))}function cE(e){Pp.current===e&&(Xt(Ba),Xt(Pp))}var rr=Ns(0);function Ng(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var G_=[];function dE(){for(var e=0;er?r:4,e(!0);var n=K_.transition;K_.transition={};try{e(!1),t()}finally{jt=r,K_.transition=n}}function KD(){return Uo().memoizedState}function CY(e,t,r){var n=Cs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},QD(e))XD(t,r);else if(r=ED(e,t,r,n),r!==null){var o=En();ha(r,e,n,o),YD(r,t,n)}}function EY(e,t,r){var n=Cs(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(QD(e))XD(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,ga(s,i)){var c=t.interleaved;c===null?(o.next=o,sE(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}r=ED(e,t,o,n),r!==null&&(o=En(),ha(r,e,n,o),YD(r,t,n))}}function QD(e){var t=e.alternate;return e===or||t!==null&&t===or}function XD(e,t){Uf=Dg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function YD(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,GC(e,r)}}var Bg={readContext:zo,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},PY={readContext:zo,useCallback:function(e,t){return Ta().memoizedState=[e,t===void 0?null:t],e},useContext:zo,useEffect:MI,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Nh(4194308,4,VD.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nh(4,2,e,t)},useMemo:function(e,t){var r=Ta();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ta();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=CY.bind(null,or,e),[n.memoizedState,e]},useRef:function(e){var t=Ta();return e={current:e},t.memoizedState=e},useState:AI,useDebugValue:hE,useDeferredValue:function(e){return Ta().memoizedState=e},useTransition:function(){var e=AI(!1),t=e[0];return e=OY.bind(null,e[1]),Ta().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=or,o=Ta();if(er){if(r===void 0)throw Error(Te(407));r=r()}else{if(r=t(),zr===null)throw Error(Te(349));Hl&30||MD(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,MI(LD.bind(null,n,a,e),[e]),n.flags|=2048,kp(9,FD.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Ta(),t=zr.identifierPrefix;if(er){var r=bi,n=yi;r=(n&~(1<<32-ma(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Rp++,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[Fa]=t,e[Ep]=n,i3(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ow(r,n),r){case"dialog":Gt("cancel",e),Gt("close",e),o=n;break;case"iframe":case"object":case"embed":Gt("load",e),o=n;break;case"video":case"audio":for(o=0;oUc&&(t.flags|=128,n=!0,ff(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ng(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ff(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!er)return an(t),null}else 2*vr()-a.renderingStartTime>Uc&&r!==1073741824&&(t.flags|=128,n=!0,ff(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=vr(),t.sibling=null,r=rr.current,Wt(rr,n?r&1|2:r&1),t):(an(t),null);case 22:case 23:return wE(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?to&1073741824&&(an(t),t.subtreeFlags&6&&(t.flags|=8192)):an(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function MY(e,t){switch(rE(t),t.tag){case 1:return Vn(t.type)&&kg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bc(),Xt(Un),Xt(pn),dE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cE(t),null;case 13:if(Xt(rr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xt(rr),null;case 4:return Bc(),null;case 10:return iE(t.type._context),null;case 22:case 23:return wE(),null;case 24:return null;default:return null}}var nh=!1,ln=!1,FY=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function rc(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 Yw(e,t,r){try{r()}catch(n){cr(e,t,n)}}var WI=!1;function LY(e,t){if(Aw=Pg,e=fD(),eE(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,c=-1,l=0,f=0,v=e,m=null;t:for(;;){for(var h;v!==r||o!==0&&v.nodeType!==3||(s=i+o),v!==a||n!==0&&v.nodeType!==3||(c=i+n),v.nodeType===3&&(i+=v.nodeValue.length),(h=v.firstChild)!==null;)m=v,v=h;for(;;){if(v===e)break t;if(m===r&&++l===o&&(s=i),m===a&&++f===n&&(c=i),(h=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=h}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Mw={focusedElem:e,selectionRange:r},Pg=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,O=x.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?w:la(t.type,w),O);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch($){cr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return x=WI,WI=!1,x}function Vf(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&&Yw(t,r,a)}o=o.next}while(o!==n)}}function xb(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 Jw(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 u3(e){var t=e.alternate;t!==null&&(e.alternate=null,u3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fa],delete t[Ep],delete t[Nw],delete t[bY],delete t[_Y])),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 c3(e){return e.tag===5||e.tag===3||e.tag===4}function qI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||c3(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 Zw(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=Tg));else if(n!==4&&(e=e.child,e!==null))for(Zw(e,t,r),e=e.sibling;e!==null;)Zw(e,t,r),e=e.sibling}function eS(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(eS(e,t,r),e=e.sibling;e!==null;)eS(e,t,r),e=e.sibling}var Kr=null,ca=!1;function Yi(e,t,r){for(r=r.child;r!==null;)d3(e,t,r),r=r.sibling}function d3(e,t,r){if(Da&&typeof Da.onCommitFiberUnmount=="function")try{Da.onCommitFiberUnmount(pb,r)}catch{}switch(r.tag){case 5:ln||rc(r,t);case 6:var n=Kr,o=ca;Kr=null,Yi(e,t,r),Kr=n,ca=o,Kr!==null&&(ca?(e=Kr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Kr.removeChild(r.stateNode));break;case 18:Kr!==null&&(ca?(e=Kr,r=r.stateNode,e.nodeType===8?q_(e.parentNode,r):e.nodeType===1&&q_(e,r),xp(e)):q_(Kr,r.stateNode));break;case 4:n=Kr,o=ca,Kr=r.stateNode.containerInfo,ca=!0,Yi(e,t,r),Kr=n,ca=o;break;case 0:case 11:case 14:case 15:if(!ln&&(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)&&Yw(r,t,i),o=o.next}while(o!==n)}Yi(e,t,r);break;case 1:if(!ln&&(rc(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)}Yi(e,t,r);break;case 21:Yi(e,t,r);break;case 22:r.mode&1?(ln=(n=ln)||r.memoizedState!==null,Yi(e,t,r),ln=n):Yi(e,t,r);break;default:Yi(e,t,r)}}function HI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FY),t.forEach(function(n){var o=HY.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=vr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*DY(n/1960))-n,10e?16:e,ps===null)var n=!1;else{if(e=ps,ps=null,Vg=0,St&6)throw Error(Te(331));var o=St;for(St|=4,Ke=e.current;Ke!==null;){var a=Ke,i=a.child;if(Ke.flags&16){var s=a.deletions;if(s!==null){for(var c=0;cvr()-_E?kl(e,0):bE|=r),Wn(e,t)}function b3(e,t){t===0&&(e.mode&1?(t=Km,Km<<=1,!(Km&130023424)&&(Km=4194304)):t=1);var r=En();e=Ci(e,t),e!==null&&(rv(e,t,r),Wn(e,r))}function qY(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),b3(e,r)}function HY(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(Te(314))}n!==null&&n.delete(t),b3(e,r)}var _3;_3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Un.current)zn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return zn=!1,jY(e,t,r);zn=!!(e.flags&131072)}else zn=!1,er&&t.flags&1048576&&SD(t,Ag,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Dh(e,t),e=t.pendingProps;var o=Lc(t,pn.current);yc(t,r),o=pE(null,t,n,e,o,r);var a=vE();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,Vn(n)?(a=!0,Ig(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,lE(t),o.updater=bb,t.stateNode=o,o._reactInternals=t,Ww(t,n,e,r),t=Gw(null,t,n,!0,a,r)):(t.tag=0,er&&a&&tE(t),wn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Dh(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=KY(n),e=la(n,e),o){case 0:t=Hw(null,t,n,e,r);break e;case 1:t=zI(null,t,n,e,r);break e;case 11:t=DI(null,t,n,e,r);break e;case 14:t=BI(null,t,n,la(n.type,e),r);break e}throw Error(Te(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),Hw(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),zI(e,t,n,o,r);case 3:e:{if(n3(t),e===null)throw Error(Te(387));n=t.pendingProps,a=t.memoizedState,o=a.element,PD(e,t),Lg(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=zc(Error(Te(423)),t),t=UI(e,t,n,r,o);break e}else if(n!==o){o=zc(Error(Te(424)),t),t=UI(e,t,n,r,o);break e}else for(oo=ws(t.stateNode.containerInfo.firstChild),so=t,er=!0,da=null,r=kD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Nc(),n===o){t=Ei(e,t,r);break e}wn(e,t,n,r)}t=t.child}return t;case 5:return ID(t),e===null&&zw(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Fw(n,o)?i=null:a!==null&&Fw(n,a)&&(t.flags|=32),r3(e,t),wn(e,t,i,r),t.child;case 6:return e===null&&zw(t),null;case 13:return o3(e,t,r);case 4:return uE(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Dc(t,null,n,r):wn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),DI(e,t,n,o,r);case 7:return wn(e,t,t.pendingProps,r),t.child;case 8:return wn(e,t,t.pendingProps.children,r),t.child;case 12:return wn(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,Wt(Mg,n._currentValue),n._currentValue=i,a!==null)if(ga(a.value,i)){if(a.children===o.children&&!Un.current){t=Ei(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 c=s.firstContext;c!==null;){if(c.context===n){if(a.tag===1){c=xi(-1,r&-r),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),Uw(a.return,r,t),s.lanes|=r;break}c=c.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(Te(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Uw(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}wn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,yc(t,r),o=zo(o),n=n(o),t.flags|=1,wn(e,t,n,r),t.child;case 14:return n=t.type,o=la(n,t.pendingProps),o=la(n.type,o),BI(e,t,n,o,r);case 15:return e3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),Dh(e,t),t.tag=1,Vn(n)?(e=!0,Ig(t)):e=!1,yc(t,r),RD(t,n,o),Ww(t,n,o,r),Gw(null,t,n,!0,e,r);case 19:return a3(e,t,r);case 22:return t3(e,t,r)}throw Error(Te(156,t.tag))};function x3(e,t){return GN(e,t)}function GY(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 Lo(e,t,r,n){return new GY(e,t,r,n)}function OE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KY(e){if(typeof e=="function")return OE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===VC)return 11;if(e===WC)return 14}return 2}function Es(e,t){var r=e.alternate;return r===null?(r=Lo(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 Uh(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")OE(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Gu:return Il(r.children,o,a,t);case UC:i=8,o|=8;break;case vw:return e=Lo(12,r,t,o|2),e.elementType=vw,e.lanes=a,e;case mw:return e=Lo(13,r,t,o),e.elementType=mw,e.lanes=a,e;case hw:return e=Lo(19,r,t,o),e.elementType=hw,e.lanes=a,e;case TN:return Sb(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $N:i=10;break e;case RN:i=9;break e;case VC:i=11;break e;case WC:i=14;break e;case ns:i=16,n=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Lo(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Il(e,t,r,n){return e=Lo(7,e,n,t),e.lanes=r,e}function Sb(e,t,r,n){return e=Lo(22,e,n,t),e.elementType=TN,e.lanes=r,e.stateNode={isHidden:!1},e}function Z_(e,t,r){return e=Lo(6,e,null,t),e.lanes=r,e}function ex(e,t,r){return t=Lo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QY(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=A_(0),this.expirationTimes=A_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function CE(e,t,r,n,o,a,i,s,c){return e=new QY(e,t,r,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Lo(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},lE(a),e}function XY(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C3)}catch(e){console.error(e)}}C3(),SN.exports=vo;var $b=SN.exports;const If=hr($b);var E3,ej=$b;E3=ej.createRoot,ej.hydrateRoot;var tJ={id:""},rJ={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(tJ)}},P3=d.createContext(rJ);P3.displayName="AuthContext";const $3=P3;var Rb={loginUrl:"/login",afterLoginUrl:"/"},Ti=function(){return d.useContext($3)};function aS(e,t){return aS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},aS(e,t)}function ki(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,aS(e,t)}var ud=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 j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function Qr(){}function nJ(e,t){return typeof e=="function"?e(t):e}function iS(e){return typeof e=="number"&&e>=0&&e!==1/0}function Gg(e){return Array.isArray(e)?e:[e]}function R3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vh(e,t,r){return iv(e)?typeof t=="function"?j({},r,{queryKey:e,queryFn:t}):j({},t,{queryKey:e}):e}function oJ(e,t,r){return iv(e)?typeof t=="function"?j({},r,{mutationKey:e,mutationFn:t}):j({},t,{mutationKey:e}):typeof e=="function"?j({},t,{mutationFn:e}):j({},e)}function as(e,t,r){return iv(e)?[j({},t,{queryKey:e}),r]:[e||{},t]}function aJ(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 tj(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,c=e.stale;if(iv(s)){if(n){if(t.queryHash!==RE(s,t.options))return!1}else if(!Kg(t.queryKey,s))return!1}var l=aJ(r,a);if(l==="none")return!1;if(l!=="all"){var f=t.isActive();if(l==="active"&&!f||l==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function rj(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(iv(a)){if(!t.options.mutationKey)return!1;if(r){if(vs(t.options.mutationKey)!==vs(a))return!1}else if(!Kg(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function RE(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||vs;return r(e)}function vs(e){var t=Gg(e);return iJ(t)}function iJ(e){return JSON.stringify(e,function(t,r){return sS(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function Kg(e,t){return T3(Gg(e),Gg(t))}function T3(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!T3(e[r],t[r])}):!1}function Qg(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||sS(e)&&sS(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,c=0;c"u")return!0;var r=t.prototype;return!(!nj(r)||!r.hasOwnProperty("isPrototypeOf"))}function nj(e){return Object.prototype.toString.call(e)==="[object Object]"}function iv(e){return typeof e=="string"||Array.isArray(e)}function lJ(e){return new Promise(function(t){setTimeout(t,e)})}function oj(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function k3(){if(typeof AbortController=="function")return new AbortController}var uJ=function(e){ki(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Hg&&((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}(ud),Hf=new uJ,cJ=function(e){ki(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Hg&&((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}(ud),Wh=new cJ;function dJ(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Xg(e){return typeof(e==null?void 0:e.cancel)=="function"}var I3=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function qh(e){return e instanceof I3}var j3=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(m){return o==null?void 0:o(m)},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(m,h){i=m,s=h});var c=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))},f=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()})},v=function m(){if(!r.isResolved){var h;try{h=t.fn()}catch(x){h=Promise.reject(x)}o=function(w){if(!r.isResolved&&(l(new I3(w)),r.abort==null||r.abort(),Xg(h)))try{h.cancel()}catch{}},r.isTransportCancelable=Xg(h),Promise.resolve(h).then(c).catch(function(x){var w,O;if(!r.isResolved){var b=(w=t.retry)!=null?w:3,g=(O=t.retryDelay)!=null?O:dJ,_=typeof g=="function"?g(r.failureCount,x):g,$=b===!0||typeof b=="number"&&r.failureCount"u"&&(s.exact=!0),this.queries.find(function(c){return tj(s,c)})},r.findAll=function(o,a){var i=as(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(c){return tj(s,c)}):this.queries},r.notify=function(o){var a=this;Vt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;Vt.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;Vt.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(ud),hJ=function(){function e(r){this.options=j({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||M3(),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(Qr).catch(Qr)):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),Yg().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 j3({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=gJ(this.state,n),Vt.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function M3(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function gJ(e,t){switch(t.type){case"failed":return j({},e,{failureCount:e.failureCount+1});case"pause":return j({},e,{isPaused:!0});case"continue":return j({},e,{isPaused:!1});case"loading":return j({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return j({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return j({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return j({},e,t.state);default:return e}}var yJ=function(e){ki(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 hJ({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;Vt.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 rj(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return rj(o,a)})},r.notify=function(o){var a=this;Vt.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 Vt.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(Qr)})},Promise.resolve())})},t}(ud);function bJ(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,c=(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,f=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",m=(l==null?void 0:l.direction)==="backward",h=((i=t.state.data)==null?void 0:i.pages)||[],x=((s=t.state.data)==null?void 0:s.pageParams)||[],w=k3(),O=w==null?void 0:w.signal,b=x,g=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},$=function(z,H,G,q){return b=q?[H].concat(b):[].concat(b,[H]),q?[G].concat(z):[].concat(z,[G])},P=function(z,H,G,q){if(g)return Promise.reject("Cancelled");if(typeof G>"u"&&!H&&z.length)return Promise.resolve(z);var U={queryKey:t.queryKey,signal:O,pageParam:G,meta:t.meta},W=_(U),te=Promise.resolve(W).then(function(ee){return $(z,G,ee,q)});if(Xg(W)){var ne=te;ne.cancel=W.cancel}return te},E;if(!h.length)E=P([]);else if(v){var T=typeof f<"u",R=T?f:aj(t.options,h);E=P(h,T,R)}else if(m){var I=typeof f<"u",A=I?f:_J(t.options,h);E=P(h,I,A,!0)}else(function(){b=[];var D=typeof t.options.getNextPageParam>"u",z=c&&h[0]?c(h[0],0,h):!0;E=z?P([],D,x[0]):Promise.resolve($([],x[0],h[0]));for(var H=function(U){E=E.then(function(W){var te=c&&h[U]?c(h[U],U,h):!0;if(te){var ne=D?x[U]:aj(t.options,W);return P(W,D,ne)}return Promise.resolve($(W,x[U],h[U]))})},G=1;G"u"&&(f.revert=!0);var v=Vt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.cancel(f)})});return Promise.all(v).then(Qr).catch(Qr)},t.invalidateQueries=function(n,o,a){var i,s,c,l=this,f=as(n,o,a),v=f[0],m=f[1],h=j({},v,{active:(i=(s=v.refetchActive)!=null?s:v.active)!=null?i:!0,inactive:(c=v.refetchInactive)!=null?c:!1});return Vt.batch(function(){return l.queryCache.findAll(v).forEach(function(x){x.invalidate()}),l.refetchQueries(h,m)})},t.refetchQueries=function(n,o,a){var i=this,s=as(n,o,a),c=s[0],l=s[1],f=Vt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.fetch(void 0,j({},l,{meta:{refetchPage:c==null?void 0:c.refetchPage}}))})}),v=Promise.all(f).then(Qr);return l!=null&&l.throwOnError||(v=v.catch(Qr)),v},t.fetchQuery=function(n,o,a){var i=Vh(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);var c=this.queryCache.build(this,s);return c.isStaleByTime(s.staleTime)?c.fetch(s):Promise.resolve(c.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then(Qr).catch(Qr)},t.fetchInfiniteQuery=function(n,o,a){var i=Vh(n,o,a);return i.behavior=bJ(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(Qr).catch(Qr)},t.cancelMutations=function(){var n=this,o=Vt.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(Qr).catch(Qr)},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 vs(n)===vs(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 Kg(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return vs(n)===vs(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 Kg(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=j({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=RE(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:j({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),wJ=function(e){ki(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),ij(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return lS(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return lS(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 c=this.hasListeners();c&&sj(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),c&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();c&&(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={},c=function(f){i.trackedProps.includes(f)||i.trackedProps.push(f)};return Object.keys(o).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return c(l),o[l]}})}),(a.useErrorBoundary||a.suspense)&&c("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var c=a.subscribe(function(l){l.isFetching||(c(),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(j({},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(Qr)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(Hg||this.currentResult.isStale||!iS(this.options.staleTime))){var a=R3(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,!(Hg||this.options.enabled===!1||!iS(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Hf.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,c=this.currentResult,l=this.currentResultState,f=this.currentResultOptions,v=o!==i,m=v?o.state:this.currentQueryInitialState,h=v?this.currentResult:this.previousQueryResult,x=o.state,w=x.dataUpdatedAt,O=x.error,b=x.errorUpdatedAt,g=x.isFetching,_=x.status,$=!1,P=!1,E;if(a.optimisticResults){var T=this.hasListeners(),R=!T&&ij(o,a),I=T&&sj(o,i,a,s);(R||I)&&(g=!0,w||(_="loading"))}if(a.keepPreviousData&&!x.dataUpdateCount&&(h!=null&&h.isSuccess)&&_!=="error")E=h.data,w=h.dataUpdatedAt,_=h.status,$=!0;else if(a.select&&typeof x.data<"u")if(c&&x.data===(l==null?void 0:l.data)&&a.select===this.selectFn)E=this.selectResult;else try{this.selectFn=a.select,E=a.select(x.data),a.structuralSharing!==!1&&(E=Qg(c==null?void 0:c.data,E)),this.selectResult=E,this.selectError=null}catch(L){Yg().error(L),this.selectError=L}else E=x.data;if(typeof a.placeholderData<"u"&&typeof E>"u"&&(_==="loading"||_==="idle")){var A;if(c!=null&&c.isPlaceholderData&&a.placeholderData===(f==null?void 0:f.placeholderData))A=c.data;else if(A=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof A<"u")try{A=a.select(A),a.structuralSharing!==!1&&(A=Qg(c==null?void 0:c.data,A)),this.selectError=null}catch(L){Yg().error(L),this.selectError=L}typeof A<"u"&&(_="success",E=A,P=!0)}this.selectError&&(O=this.selectError,E=this.selectResult,b=Date.now(),_="error");var F={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:E,dataUpdatedAt:w,error:O,errorUpdatedAt:b,failureCount:x.fetchFailureCount,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>m.dataUpdateCount||x.errorUpdateCount>m.errorUpdateCount,isFetching:g,isRefetching:g&&_!=="loading",isLoadingError:_==="error"&&x.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:$,isRefetchError:_==="error"&&x.dataUpdatedAt!==0,isStale:TE(o,a),refetch:this.refetch,remove:this.remove};return F},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,c=i.notifyOnChangePropsExclusions;if(!s&&!c||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(f){var v=f,m=o[v]!==a[v],h=l==null?void 0:l.some(function(w){return w===f}),x=c==null?void 0:c.some(function(w){return w===f});return m&&!x&&(!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,!sJ(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(j({},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"&&!qh(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;Vt.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}(ud);function SJ(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ij(e,t){return SJ(e,t)||e.state.dataUpdatedAt>0&&lS(e,t,t.refetchOnMount)}function lS(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&TE(e,t)}return!1}function sj(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&TE(e,r)}function TE(e,t){return e.isStaleByTime(t.staleTime)}var OJ=function(e){ki(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,j({},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:M3(),a=j({},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;Vt.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}(ud),CJ=If.unstable_batchedUpdates;Vt.setBatchNotifyFunction(CJ);var EJ=console;pJ(EJ);var lj=ve.createContext(void 0),F3=ve.createContext(!1);function L3(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=lj),window.ReactQueryClientContext):lj}var Qo=function(){var t=ve.useContext(L3(ve.useContext(F3)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PJ=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;ve.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=L3(o);return ve.createElement(F3.Provider,{value:o},ve.createElement(i.Provider,{value:r},a))};function $J(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var RJ=ve.createContext($J()),TJ=function(){return ve.useContext(RJ)};function N3(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function cd(e,t,r){var n=ve.useRef(!1),o=ve.useState(0),a=o[1],i=oJ(e,t,r),s=Qo(),c=ve.useRef();c.current?c.current.setOptions(i):c.current=new OJ(s,i);var l=c.current.getCurrentResult();ve.useEffect(function(){n.current=!0;var v=c.current.subscribe(Vt.batchCalls(function(){n.current&&a(function(m){return m+1})}));return function(){n.current=!1,v()}},[]);var f=ve.useCallback(function(v,m){c.current.mutate(v,m).catch(Qr)},[]);if(l.error&&N3(void 0,c.current.options.useErrorBoundary,[l.error]))throw l.error;return j({},l,{mutate:f,mutateAsync:l.mutate})}function kJ(e,t){var r=ve.useRef(!1),n=ve.useState(0),o=n[1],a=Qo(),i=TJ(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Vt.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Vt.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Vt.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 c=ve.useState(function(){return new t(a,s)}),l=c[0],f=l.getOptimisticResult(s);if(ve.useEffect(function(){r.current=!0,i.clearReset();var v=l.subscribe(Vt.batchCalls(function(){r.current&&o(function(m){return m+1})}));return l.updateResult(),function(){r.current=!1,v()}},[i,l]),ve.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&f.isLoading)throw l.fetchOptimistic(s).then(function(v){var m=v.data;s.onSuccess==null||s.onSuccess(m),s.onSettled==null||s.onSettled(m,null)}).catch(function(v){i.clearReset(),s.onError==null||s.onError(v),s.onSettled==null||s.onSettled(void 0,v)});if(f.isError&&!i.isReset()&&!f.isFetching&&N3(s.suspense,s.useErrorBoundary,[f.error,l.getCurrentQuery()]))throw f.error;return s.notifyOnChangeProps==="tracked"&&(f=l.trackResult(f,s)),f}function Bs(e,t,r){var n=Vh(e,t,r);return kJ(n,wJ)}/** + * @remix-run/router v1.15.3 + * + * 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 uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function D3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uj(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 sv(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 cj;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cj||(cj={}));function IJ(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?sv(t):t,o=kE(n.pathname||"/",r);if(o==null)return null;let a=B3(e);jJ(a);let i=null;for(let s=0;i==null&&s{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(mr(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let l=Ps([n,c.relativePath]),f=r.concat(c);a.children&&a.children.length>0&&(mr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),B3(a.children,t,f,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:BJ(l,a.index),routesMeta:f})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of z3(a.path))o(a,i,c)}),t}function z3(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=z3(n.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function jJ(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:zJ(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const AJ=/^:[\w-]+$/,MJ=3,FJ=2,LJ=1,NJ=10,DJ=-2,dj=e=>e==="*";function BJ(e,t){let r=e.split("/"),n=r.length;return r.some(dj)&&(n+=DJ),t&&(n+=FJ),r.filter(o=>!dj(o)).reduce((o,a)=>o+(AJ.test(a)?MJ:a===""?LJ:NJ),n)}function zJ(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 UJ(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{let{paramName:m,isOptional:h}=f;if(m==="*"){let w=s[v]||"";i=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const x=s[v];return h&&!x?l[m]=void 0:l[m]=(x||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function VJ(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),D3(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,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function WJ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return D3(!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 kE(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 qJ(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?sv(e):e;return{pathname:r?r.startsWith("/")?r:HJ(r,t):t,search:QJ(n),hash:XJ(o)}}function HJ(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 tx(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 GJ(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function IE(e,t){let r=GJ(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function jE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=sv(e):(o=uS({},e),mr(!o.pathname||!o.pathname.includes("?"),tx("?","pathname","search",o)),mr(!o.pathname||!o.pathname.includes("#"),tx("#","pathname","hash",o)),mr(!o.search||!o.search.includes("#"),tx("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let v=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),v-=1;o.pathname=m.join("/")}s=v>=0?t[v]:"/"}let c=qJ(o,s),l=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||f)&&(c.pathname+="/"),c}const Ps=e=>e.join("/").replace(/\/\/+/g,"/"),KJ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QJ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XJ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function YJ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const U3=["post","put","patch","delete"];new Set(U3);const JJ=["get",...U3];new Set(JJ);/** + * React Router v6.22.3 + * + * 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 Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;tjp(e,t),[t,e])}function W3(e){d.useContext(Ii).static||d.useLayoutEffect(e)}function Qa(){let{isDataRoute:e}=d.useContext(Ka);return e?hZ():rZ()}function rZ(){zs()||mr(!1);let e=d.useContext(AE),{basename:t,future:r,navigator:n}=d.useContext(Ii),{matches:o}=d.useContext(Ka),{pathname:a}=Fr(),i=JSON.stringify(IE(o,r.v7_relativeSplatPath)),s=d.useRef(!1);return W3(()=>{s.current=!0}),d.useCallback(function(l,f){if(f===void 0&&(f={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let v=jE(l,JSON.parse(i),a,f.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Ps([t,v.pathname])),(f.replace?n.replace:n.push)(v,f.state,f)},[t,n,i,a,e])}const nZ=d.createContext(null);function oZ(e){let t=d.useContext(Ka).outlet;return t&&d.createElement(nZ.Provider,{value:e},t)}function kb(){let{matches:e}=d.useContext(Ka),t=e[e.length-1];return t?t.params:{}}function ME(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Ii),{matches:o}=d.useContext(Ka),{pathname:a}=Fr(),i=JSON.stringify(IE(o,n.v7_relativeSplatPath));return d.useMemo(()=>jE(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function aZ(e,t){return iZ(e,t)}function iZ(e,t,r,n){zs()||mr(!1);let{navigator:o}=d.useContext(Ii),{matches:a}=d.useContext(Ka),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let l=Fr(),f;if(t){var v;let O=typeof t=="string"?sv(t):t;c==="/"||(v=O.pathname)!=null&&v.startsWith(c)||mr(!1),f=O}else f=l;let m=f.pathname||"/",h=m;if(c!=="/"){let O=c.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(O.length).join("/")}let x=IJ(e,{pathname:h}),w=dZ(x&&x.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:Ps([c,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?c:Ps([c,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),a,r,n);return t&&w?d.createElement(Tb.Provider,{value:{location:Ap({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Jg.Pop}},w):w}function sZ(){let e=mZ(),t=YJ(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 lZ=d.createElement(sZ,null);class uZ 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(Ka.Provider,{value:this.props.routeContext},d.createElement(V3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cZ(e){let{routeContext:t,match:r,children:n}=e,o=d.useContext(AE);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Ka.Provider,{value:t},n)}function dZ(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 f=i.findIndex(v=>v.route.id&&(s==null?void 0:s[v.route.id]));f>=0||mr(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,v,m)=>{let h,x=!1,w=null,O=null;r&&(h=s&&v.route.id?s[v.route.id]:void 0,w=v.route.errorElement||lZ,c&&(l<0&&m===0?(gZ("route-fallback",!1),x=!0,O=null):l===m&&(x=!0,O=v.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,m+1)),g=()=>{let _;return h?_=w:x?_=O:v.route.Component?_=d.createElement(v.route.Component,null):v.route.element?_=v.route.element:_=f,d.createElement(cZ,{match:v,routeContext:{outlet:f,matches:b,isDataRoute:r!=null},children:_})};return r&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?d.createElement(uZ,{location:r.location,revalidation:r.revalidation,component:w,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var q3=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(q3||{}),Zg=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}(Zg||{});function fZ(e){let t=d.useContext(AE);return t||mr(!1),t}function pZ(e){let t=d.useContext(ZJ);return t||mr(!1),t}function vZ(e){let t=d.useContext(Ka);return t||mr(!1),t}function H3(e){let t=vZ(),r=t.matches[t.matches.length-1];return r.route.id||mr(!1),r.route.id}function mZ(){var e;let t=d.useContext(V3),r=pZ(Zg.UseRouteError),n=H3(Zg.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function hZ(){let{router:e}=fZ(q3.UseNavigateStable),t=H3(Zg.UseNavigateStable),r=d.useRef(!1);return W3(()=>{r.current=!0}),d.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ap({fromRouteId:t},a)))},[e,t])}const fj={};function gZ(e,t,r){!t&&!fj[e]&&(fj[e]=!0)}function yZ(e){let{to:t,replace:r,state:n,relative:o}=e;zs()||mr(!1);let{future:a,static:i}=d.useContext(Ii),{matches:s}=d.useContext(Ka),{pathname:c}=Fr(),l=Qa(),f=jE(t,IE(s,a.v7_relativeSplatPath),c,o==="path"),v=JSON.stringify(f);return d.useEffect(()=>l(JSON.parse(v),{replace:r,state:n,relative:o}),[l,v,o,r,n]),null}function bZ(e){return oZ(e.context)}function Yr(e){mr(!1)}function _Z(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Jg.Pop,navigator:a,static:i=!1,future:s}=e;zs()&&mr(!1);let c=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:c,navigator:a,static:i,future:Ap({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof n=="string"&&(n=sv(n));let{pathname:f="/",search:v="",hash:m="",state:h=null,key:x="default"}=n,w=d.useMemo(()=>{let O=kE(f,c);return O==null?null:{location:{pathname:O,search:v,hash:m,state:h,key:x},navigationType:o}},[c,f,v,m,h,x,o]);return w==null?null:d.createElement(Ii.Provider,{value:l},d.createElement(Tb.Provider,{children:r,value:w}))}function jl(e){let{children:t,location:r}=e;return aZ(cS(t),r)}new Promise(()=>{});function cS(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,cS(n.props.children,a));return}n.type!==Yr&&mr(!1),!n.props.index||!n.props.children||mr(!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=cS(n.props.children,a)),r.push(i)}),r}/** + * React Router DOM v6.22.3 + * + * 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 dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function wZ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SZ(e,t){return e.button===0&&(!t||t==="_self")&&!wZ(e)}const OZ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],CZ="6";try{window.__reactRouterVersion=CZ}catch{}const EZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PZ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ya=d.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:l,preventScrollReset:f,unstable_viewTransition:v}=t,m=xZ(t,OZ),{basename:h}=d.useContext(Ii),x,w=!1;if(typeof l=="string"&&PZ.test(l)&&(x=l,EZ))try{let _=new URL(window.location.href),$=l.startsWith("//")?new URL(_.protocol+l):new URL(l),P=kE($.pathname,h);$.origin===_.origin&&P!=null?l=P+$.search+$.hash:w=!0}catch{}let O=eZ(l,{relative:o}),b=$Z(l,{replace:i,state:s,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:v});function g(_){n&&n(_),_.defaultPrevented||b(_)}return d.createElement("a",dS({},m,{href:x||O,onClick:w||a?n:g,ref:r,target:c}))});var pj;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pj||(pj={}));var vj;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vj||(vj={}));function $Z(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=Qa(),l=Fr(),f=ME(e,{relative:i});return d.useCallback(v=>{if(SZ(v,r)){v.preventDefault();let m=n!==void 0?n:uj(l)===uj(f);c(e,{replace:m,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,c,f,n,o,r,e,a,i,s])}var RZ="RaStore",TZ=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}},fS=TZ(),kZ=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(RZ).concat(t),n=r.length,o={},a=function(s,c){Object.keys(o).forEach(function(l){o[l]&&o[l].key===s&&o[l].callback(c)})},i=function(s){var c;if(((c=s.key)===null||c===void 0?void 0:c.substring(0,n))===r){var l=s.key.substring(n+1),f=s.newValue?mj(s.newValue):void 0;Object.keys(o).forEach(function(v){o[v]&&o[v].key===l&&(f===null?o[v].callback(void 0):o[v].callback(f??void 0))})}};return{setup:function(){if(fS){var s=ci().getItem("".concat(r,".version"));if(s&&s!==e){var c=ci();Object.keys(c).forEach(function(l){l.startsWith(r)&&c.removeItem(l)})}ci().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){fS&&window.removeEventListener("storage",i)},getItem:function(s,c){var l=ci().getItem("".concat(r,".").concat(s));return l==null?c:mj(l)},setItem:function(s,c){c===void 0?ci().removeItem("".concat(r,".").concat(s)):ci().setItem("".concat(r,".").concat(s),JSON.stringify(c)),a(s,c)},removeItem:function(s){ci().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var c=ci();Object.keys(c).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){c.removeItem(l);var f=l.substring(n+1);a(f,void 0)}})},reset:function(){var s=ci();Object.keys(s).forEach(function(c){if(c.startsWith(r)){s.removeItem(c);var l=c.substring(n+1);a(l,void 0)}})},subscribe:function(s,c){var l=Math.random().toString();return o[l]={key:s,callback:c},function(){delete o[l]}}}},mj=function(e){try{return JSON.parse(e)}catch{return e}},IZ=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}(),jZ=new IZ,ci=function(){return fS?window.localStorage:jZ},AZ=typeof ro=="object"&&ro&&ro.Object===Object&&ro,G3=AZ,MZ=G3,FZ=typeof self=="object"&&self&&self.Object===Object&&self,LZ=MZ||FZ||Function("return this")(),xa=LZ,NZ=xa,DZ=NZ.Symbol,dd=DZ,hj=dd,K3=Object.prototype,BZ=K3.hasOwnProperty,zZ=K3.toString,vf=hj?hj.toStringTag:void 0;function UZ(e){var t=BZ.call(e,vf),r=e[vf];try{e[vf]=void 0;var n=!0}catch{}var o=zZ.call(e);return n&&(t?e[vf]=r:delete e[vf]),o}var VZ=UZ,WZ=Object.prototype,qZ=WZ.toString;function HZ(e){return qZ.call(e)}var GZ=HZ,gj=dd,KZ=VZ,QZ=GZ,XZ="[object Null]",YZ="[object Undefined]",yj=gj?gj.toStringTag:void 0;function JZ(e){return e==null?e===void 0?YZ:XZ:yj&&yj in Object(e)?KZ(e):QZ(e)}var fd=JZ;function ZZ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Xo=ZZ,eee=fd,tee=Xo,ree="[object AsyncFunction]",nee="[object Function]",oee="[object GeneratorFunction]",aee="[object Proxy]";function iee(e){if(!tee(e))return!1;var t=eee(e);return t==nee||t==oee||t==ree||t==aee}var FE=iee,see=xa,lee=see["__core-js_shared__"],uee=lee,rx=uee,bj=function(){var e=/[^.]+$/.exec(rx&&rx.keys&&rx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function cee(e){return!!bj&&bj in e}var dee=cee,fee=Function.prototype,pee=fee.toString;function vee(e){if(e!=null){try{return pee.call(e)}catch{}try{return e+""}catch{}}return""}var Q3=vee,mee=FE,hee=dee,gee=Xo,yee=Q3,bee=/[\\^$.*+?()[\]{}|]/g,_ee=/^\[object .+?Constructor\]$/,xee=Function.prototype,wee=Object.prototype,See=xee.toString,Oee=wee.hasOwnProperty,Cee=RegExp("^"+See.call(Oee).replace(bee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Eee(e){if(!gee(e)||hee(e))return!1;var t=mee(e)?Cee:_ee;return t.test(yee(e))}var Pee=Eee;function $ee(e,t){return e==null?void 0:e[t]}var Ree=$ee,Tee=Pee,kee=Ree;function Iee(e,t){var r=kee(e,t);return Tee(r)?r:void 0}var au=Iee,jee=au,Aee=function(){try{var e=jee(Object,"defineProperty");return e({},"",{}),e}catch{}}(),X3=Aee,_j=X3;function Mee(e,t,r){t=="__proto__"&&_j?_j(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var LE=Mee;function Fee(e,t){return e===t||e!==e&&t!==t}var pd=Fee,Lee=LE,Nee=pd,Dee=Object.prototype,Bee=Dee.hasOwnProperty;function zee(e,t,r){var n=e[t];(!(Bee.call(e,t)&&Nee(n,r))||r===void 0&&!(t in e))&&Lee(e,t,r)}var NE=zee,Uee=Array.isArray,wa=Uee;function Vee(e){return e!=null&&typeof e=="object"}var ji=Vee,Wee=fd,qee=ji,Hee="[object Symbol]";function Gee(e){return typeof e=="symbol"||qee(e)&&Wee(e)==Hee}var Ib=Gee,Kee=wa,Qee=Ib,Xee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yee=/^\w*$/;function Jee(e,t){if(Kee(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Qee(e)?!0:Yee.test(e)||!Xee.test(e)||t!=null&&e in Object(t)}var DE=Jee,Zee=au,ete=Zee(Object,"create"),jb=ete,xj=jb;function tte(){this.__data__=xj?xj(null):{},this.size=0}var rte=tte;function nte(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ote=nte,ate=jb,ite="__lodash_hash_undefined__",ste=Object.prototype,lte=ste.hasOwnProperty;function ute(e){var t=this.__data__;if(ate){var r=t[e];return r===ite?void 0:r}return lte.call(t,e)?t[e]:void 0}var cte=ute,dte=jb,fte=Object.prototype,pte=fte.hasOwnProperty;function vte(e){var t=this.__data__;return dte?t[e]!==void 0:pte.call(t,e)}var mte=vte,hte=jb,gte="__lodash_hash_undefined__";function yte(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hte&&t===void 0?gte:t,this}var bte=yte,_te=rte,xte=ote,wte=cte,Ste=mte,Ote=bte;function vd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var Bte=Dte,zte=Ab;function Ute(e,t){var r=this.__data__,n=zte(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Vte=Ute,Wte=Pte,qte=Ate,Hte=Lte,Gte=Bte,Kte=Vte;function md(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),f=a.get(t);if(l&&f)return l==t&&f==e;var v=-1,m=!0,h=r&poe?new uoe:void 0;for(a.set(e,t),a.set(t,e);++v-1&&e%1==0&&e<=cae}var QE=dae,fae=fd,pae=QE,vae=ji,mae="[object Arguments]",hae="[object Array]",gae="[object Boolean]",yae="[object Date]",bae="[object Error]",_ae="[object Function]",xae="[object Map]",wae="[object Number]",Sae="[object Object]",Oae="[object RegExp]",Cae="[object Set]",Eae="[object String]",Pae="[object WeakMap]",$ae="[object ArrayBuffer]",Rae="[object DataView]",Tae="[object Float32Array]",kae="[object Float64Array]",Iae="[object Int8Array]",jae="[object Int16Array]",Aae="[object Int32Array]",Mae="[object Uint8Array]",Fae="[object Uint8ClampedArray]",Lae="[object Uint16Array]",Nae="[object Uint32Array]",Qt={};Qt[Tae]=Qt[kae]=Qt[Iae]=Qt[jae]=Qt[Aae]=Qt[Mae]=Qt[Fae]=Qt[Lae]=Qt[Nae]=!0;Qt[mae]=Qt[hae]=Qt[$ae]=Qt[gae]=Qt[Rae]=Qt[yae]=Qt[bae]=Qt[_ae]=Qt[xae]=Qt[wae]=Qt[Sae]=Qt[Oae]=Qt[Cae]=Qt[Eae]=Qt[Pae]=!1;function Dae(e){return vae(e)&&pae(e.length)&&!!Qt[fae(e)]}var Bae=Dae;function zae(e){return function(t){return e(t)}}var Wb=zae,ry={exports:{}};ry.exports;(function(e,t){var r=G3,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 c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(ry,ry.exports);var XE=ry.exports,Uae=Bae,Vae=Wb,jj=XE,Aj=jj&&jj.isTypedArray,Wae=Aj?Vae(Aj):Uae,YE=Wae,qae=Joe,Hae=Ub,Gae=wa,Kae=Vb,Qae=Lb,Xae=YE,Yae=Object.prototype,Jae=Yae.hasOwnProperty;function Zae(e,t){var r=Gae(e),n=!r&&Hae(e),o=!r&&!n&&Kae(e),a=!r&&!n&&!o&&Xae(e),i=r||n||o||a,s=i?qae(e.length,String):[],c=s.length;for(var l in e)(t||Jae.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Qae(l,c)))&&s.push(l);return s}var c4=Zae,eie=Object.prototype;function tie(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||eie;return e===r}var JE=tie;function rie(e,t){return function(r){return e(t(r))}}var d4=rie,nie=d4,oie=nie(Object.keys,Object),aie=oie,iie=JE,sie=aie,lie=Object.prototype,uie=lie.hasOwnProperty;function cie(e){if(!iie(e))return sie(e);var t=[];for(var r in Object(e))uie.call(e,r)&&r!="constructor"&&t.push(r);return t}var die=cie,fie=FE,pie=QE;function vie(e){return e!=null&&pie(e.length)&&!fie(e)}var qb=vie,mie=c4,hie=die,gie=qb;function yie(e){return gie(e)?mie(e):hie(e)}var Hb=yie,bie=s4,_ie=KE,xie=Hb;function wie(e){return bie(e,xie,_ie)}var f4=wie,Mj=f4,Sie=1,Oie=Object.prototype,Cie=Oie.hasOwnProperty;function Eie(e,t,r,n,o,a){var i=r&Sie,s=Mj(e),c=s.length,l=Mj(t),f=l.length;if(c!=f&&!i)return!1;for(var v=c;v--;){var m=s[v];if(!(i?m in t:Cie.call(t,m)))return!1}var h=a.get(e),x=a.get(t);if(h&&x)return h==t&&x==e;var w=!0;a.set(e,t),a.set(t,e);for(var O=i;++v0){if(++t>=Gle)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Yle=Xle,Jle=Hle,Zle=Yle,eue=Zle(Jle),$4=eue,tue=oP,rue=P4,nue=$4;function oue(e,t){return nue(rue(e,t,tue),e+"")}var Kb=oue,aue=pd,iue=qb,sue=Lb,lue=Xo;function uue(e,t,r){if(!lue(r))return!1;var n=typeof t;return(n=="number"?iue(r)&&sue(t,r.length):n=="string"&&t in r)?aue(r[t],e):!1}var R4=uue,cue=Kb,due=R4;function fue(e){return cue(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&&due(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 Oue(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(_Z,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var T4=d.createContext(""),Cue=function(e){var t=e.children,r=e.basename;return d.createElement(T4.Provider,{value:r},t)},Eue=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=zs(),i=a?Pue:$ue;return d.createElement(Cue,{basename:a?n:""},d.createElement(i,{basename:n,history:t},o))},Pue=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},$ue=function(e){var t=e.children,r=e.history,n=d.useMemo(function(){return r||wue()},[r]);return d.createElement(Oue,{history:n},t)},Us=function(){return d.useContext(T4)},Vs=function(){var e=Us();return d.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return Ia("".concat(e,"/").concat(r));case"create":return Ia("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Ia("".concat(e,"/").concat(r)):Ia("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Ia("".concat(e,"/").concat(r)):Ia("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},Ia=function(e){return e.replace("//","/")},Gf=function(){return Gf=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),j4="%[a-f0-9]{2}",uA=new RegExp("("+j4+")|([^%]+?)","gi"),cA=new RegExp("("+j4+")+","gi");function bS(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([],bS(r),bS(n))}function Gue(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(uA)||[],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)]},Yue=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;ag==null,i=Symbol("encodeFragmentIdentifier");function s(g){switch(g.arrayFormat){case"index":return _=>($,P)=>{const E=$.length;return P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),"[",E,"]"].join("")]:[...$,[f(_,g),"[",f(E,g),"]=",f(P,g)].join("")]};case"bracket":return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),"[]"].join("")]:[...$,[f(_,g),"[]=",f(P,g)].join("")];case"colon-list-separator":return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),":list="].join("")]:[...$,[f(_,g),":list=",f(P,g)].join("")];case"comma":case"separator":case"bracket-separator":{const _=g.arrayFormat==="bracket-separator"?"[]=":"=";return $=>(P,E)=>E===void 0||g.skipNull&&E===null||g.skipEmptyString&&E===""?P:(E=E===null?"":E,P.length===0?[[f($,g),_,f(E,g)].join("")]:[[P,f(E,g)].join(g.arrayFormatSeparator)])}default:return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,f(_,g)]:[...$,[f(_,g),"=",f(P,g)].join("")]}}function c(g){let _;switch(g.arrayFormat){case"index":return($,P,E)=>{if(_=/\[(\d*)\]$/.exec($),$=$.replace(/\[\d*\]$/,""),!_){E[$]=P;return}E[$]===void 0&&(E[$]={}),E[$][_[1]]=P};case"bracket":return($,P,E)=>{if(_=/(\[\])$/.exec($),$=$.replace(/\[\]$/,""),!_){E[$]=P;return}if(E[$]===void 0){E[$]=[P];return}E[$]=[].concat(E[$],P)};case"colon-list-separator":return($,P,E)=>{if(_=/(:list)$/.exec($),$=$.replace(/:list$/,""),!_){E[$]=P;return}if(E[$]===void 0){E[$]=[P];return}E[$]=[].concat(E[$],P)};case"comma":case"separator":return($,P,E)=>{const T=typeof P=="string"&&P.includes(g.arrayFormatSeparator),R=typeof P=="string"&&!T&&v(P,g).includes(g.arrayFormatSeparator);P=R?v(P,g):P;const I=T||R?P.split(g.arrayFormatSeparator).map(A=>v(A,g)):P===null?P:v(P,g);E[$]=I};case"bracket-separator":return($,P,E)=>{const T=/(\[\])$/.test($);if($=$.replace(/\[\]$/,""),!T){E[$]=P&&v(P,g);return}const R=P===null?[]:P.split(g.arrayFormatSeparator).map(I=>v(I,g));if(E[$]===void 0){E[$]=R;return}E[$]=[].concat(E[$],R)};default:return($,P,E)=>{if(E[$]===void 0){E[$]=P;return}E[$]=[].concat(E[$],P)}}}function l(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(g,_){return _.encode?_.strict?t(g):encodeURIComponent(g):g}function v(g,_){return _.decode?r(g):g}function m(g){return Array.isArray(g)?g.sort():typeof g=="object"?m(Object.keys(g)).sort((_,$)=>Number(_)-Number($)).map(_=>g[_]):g}function h(g){const _=g.indexOf("#");return _!==-1&&(g=g.slice(0,_)),g}function x(g){let _="";const $=g.indexOf("#");return $!==-1&&(_=g.slice($)),_}function w(g){g=h(g);const _=g.indexOf("?");return _===-1?"":g.slice(_+1)}function O(g,_){return _.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):_.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function b(g,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),l(_.arrayFormatSeparator);const $=c(_),P=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return P;for(const E of g.split("&")){if(E==="")continue;let[T,R]=n(_.decode?E.replace(/\+/g," "):E,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?R:v(R,_),$(v(T,_),R,P)}for(const E of Object.keys(P)){const T=P[E];if(typeof T=="object"&&T!==null)for(const R of Object.keys(T))T[R]=O(T[R],_);else P[E]=O(T,_)}return _.sort===!1?P:(_.sort===!0?Object.keys(P).sort():Object.keys(P).sort(_.sort)).reduce((E,T)=>{const R=P[T];return R&&typeof R=="object"&&!Array.isArray(R)?E[T]=m(R):E[T]=R,E},Object.create(null))}e.extract=w,e.parse=b,e.stringify=(g,_)=>{if(!g)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),l(_.arrayFormatSeparator);const $=R=>_.skipNull&&a(g[R])||_.skipEmptyString&&g[R]==="",P=s(_),E={};for(const R of Object.keys(g))$(R)||(E[R]=g[R]);const T=Object.keys(E);return _.sort!==!1&&T.sort(_.sort),T.map(R=>{const I=g[R];return I===void 0?"":I===null?f(R,_):Array.isArray(I)?I.length===0&&_.arrayFormat==="bracket-separator"?f(R,_)+"[]":I.reduce(P(R),[]).join("&"):f(R,_)+"="+f(I,_)}).filter(R=>R.length>0).join("&")},e.parseUrl=(g,_)=>{_=Object.assign({decode:!0},_);const[$,P]=n(g,"#");return Object.assign({url:$.split("?")[0]||"",query:b(w(g),_)},_&&_.parseFragmentIdentifier&&P?{fragmentIdentifier:v(P,_)}:{})},e.stringifyUrl=(g,_)=>{_=Object.assign({encode:!0,strict:!0,[i]:!0},_);const $=h(g.url).split("?")[0]||"",P=e.extract(g.url),E=e.parse(P,{sort:!1}),T=Object.assign(E,g.query);let R=e.stringify(T,_);R&&(R=`?${R}`);let I=x(g.url);return g.fragmentIdentifier&&(I=`#${_[i]?f(g.fragmentIdentifier,_):g.fragmentIdentifier}`),`${$}${R}${I}`},e.pick=(g,_,$)=>{$=Object.assign({parseFragmentIdentifier:!0,[i]:!1},$);const{url:P,query:E,fragmentIdentifier:T}=e.parseUrl(g,$);return e.stringifyUrl({url:P,query:o(E,_),fragmentIdentifier:T},$)},e.exclude=(g,_,$)=>{const P=Array.isArray(_)?E=>!_.includes(E):(E,T)=>!_(E,T);return e.pick(g,P,$)}})(Ql);var ay=function(){return ay=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new que(c&&c.message||a,o,c)):Promise.resolve({status:o,headers:i,body:s,json:c})})},ece=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},A4=function(e,t){var r;return t===void 0&&(t=[]),ece(e)?Object.assign.apply(Object,Jue([{}],Object.keys(e).map(function(n){return A4(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},M4={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(c,l,f){this.fn=c,this.context=l,this.once=f||!1}function a(c,l,f,v,m){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new o(f,v||c,m),x=r?r+l:l;return c._events[x]?c._events[x].fn?c._events[x]=[c._events[x],h]:c._events[x].push(h):(c._events[x]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],f,v;if(this._eventsCount===0)return l;for(v in f=this._events)t.call(f,v)&&l.push(r?v.slice(1):v);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},s.prototype.listeners=function(l){var f=r?r+l:l,v=this._events[f];if(!v)return[];if(v.fn)return[v.fn];for(var m=0,h=v.length,x=new Array(h);m0&&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},ice=["getList","getMany","getManyReference"],Yo=function(){var e=d.useContext(I4)||F4,t=L4(),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=ve.useRef(e.isMutating()>0),o=ve.useState(r.current||n.current),a=o[0],i=o[1];return ve.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Vt.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),c=e.getMutationCache().subscribe(Vt.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),c()}},[e]),a},Ya=function(){var e=Qo();return d.useCallback(function(){e.invalidateQueries()},[e])},N4=function(e,t,r){var n=t.id,o=t.meta,a=Yo();return Bs([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)},ac=function(){return ac=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?D4(s,t-1,r,n,o):vce(o,s):n||(o[o.length]=s)}return o}var uP=D4;function hce(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var B4=$ce;function Rce(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=Vce){var l=t?null:zce(e);if(l)return Uce(l);i=!1,o=Bce,c=new Lce}else c=t?[]:s;e:for(;++n=t||T<0||v&&R>=a}function b(){var E=lx();if(O(E))return g(E);s=setTimeout(b,w(E))}function g(E){return s=void 0,m&&n?h(E):(n=o=void 0,i)}function _(){s!==void 0&&clearTimeout(s),l=0,n=c=o=s=void 0}function $(){return s===void 0?i:g(lx())}function P(){var E=lx(),T=O(E);if(n=arguments,o=this,c=E,T){if(s===void 0)return x(c);if(v)return clearTimeout(s),s=setTimeout(b,t),h(c)}return s===void 0&&(s=setTimeout(b,t)),i}return P.cancel=_,P.flush=$,P}var Ede=Cde;const V4=hr(Ede);function gA(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var W4=function(e,t){if(gA(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(", ")))},OS=function(){return OS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(v=e.current)[l].apply(v,sh(sh([],m,!1),[f],!1)):a.apply(void 0,m)};return e.current.length>0?(i=e.current)[l].apply(i,sh(sh([],s,!1),[f],!1)):a.apply(void 0,s)}},[]),o=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return o},sy=function(){return sy=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&&Pfe(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":u5(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(c)}}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}(),Hfe=qfe,Gfe=typeof window>"u"?ro:window;function Kfe(e,t){if(e instanceof Gfe[t])return!0;switch(typeof e>"u"?"undefined":u5(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var cx,CA;function Qfe(){return CA||(CA=1,cx=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(c){return c.indexOf(r)>=0||c.indexOf(o)>=0||c.indexOf('"')>=0}:function(c){return c.indexOf(r)>=0||c.indexOf(o)>=0};return function(c){return n&&(c=""+c),c.replace&&(c=c.replace(a,i),(n||s(c))&&(c=t+c+t)),c}}),cx}var Xfe=function(){function e(t,r){for(var n=0;n0&&(v=v.concat(Array(m).join(".").split("."))),n&&this._options.fillGaps&&(v=v.map(a)),o.push(v.join(this._options.rowDelimiter)),n=v}}catch(h){s=!0,c=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw c}}return o}},{key:"_parseArray",value:function(r,n){var o=this;this._headers=this._headers||[];var a=[],i=void 0,s=function(O){var b=o._headers.indexOf(O);return b===-1&&(o._headers.push(O),b=o._headers.indexOf(O)),b};i=function(O){var b=[],g=function(z){return b.push(z.map(function(H){return H??""}))},_=function(){return new Array(o._headers.length).fill(null)},$={},P=_(),E=!0,T=!1,R=void 0;try{for(var I=O[Symbol.iterator](),A;!(E=(A=I.next()).done);E=!0){var F=A.value,L=s(F.item);if(P[L]!=null&&(g(P),P=_()),$[L]=$[L]||0,o._options.fillTopRow&&$[L]0&&g(P),a=a.concat(o._checkRows(b))};var c=!0,l=!1,f=void 0;try{for(var v=r[Symbol.iterator](),m;!(c=(m=v.next()).done);c=!0){var h=m.value,x=o._handler.check(h,o._options.mainPathItem,h,r);i(x)}}catch(w){l=!0,f=w}finally{try{!c&&v.return&&v.return()}finally{if(l)throw f}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),EA(a,o._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,o=[],a=[],i=void 0,s=[[],[]];i=function(v){var m=v.value||v.value===0?v.value.toString():n._options.undefinedString;if(m=n._escape(m),n._options.verticalOutput){var h=[v.item,m];o.push(h.join(n._options.rowDelimiter))}else s[0].push(v.item),s[1].push(m)};for(var c in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[c],l+c,c,r),a.forEach(i)}return this._options.verticalOutput||(o.push(s[0].join(this._options.rowDelimiter)),o.push(s[1].join(this._options.rowDelimiter))),EA(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}(),epe=Zfe,tpe=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},rpe=tpe,$A=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},RA=epe,TA=rpe,npe=l5,ope=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:npe,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":$A(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),c=s[0];if((typeof c>"u"?"undefined":$A(c))==="object"){var l=Object.keys(e),f=Object.keys(c),v=f.every(function(x){return l.includes(x)});f.length>0&&v?r=c:t=c}else t=c}else return new TA(new RA(e));var m=Object.assign({},e,r),h=new RA(m);return t?new Promise(function(x,w){h.parse(t,function(O,b){if(n)return n(O,b);if(O)return w(O);if(w)return x(b)})}):new TA};const ape=hr(ope),ipe=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 spe=function(e,t,r,n){return ape(e,function(o,a){return ipe(a,n)})};const lpe=spe;var upe=function(e){return function(t,r,n){return e.getMany(n,{ids:cpe(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},cpe=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)},[])))},Ru=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n"u"||o(function(c){if(!Array.isArray(c))return Ru([],c,!0);var l=c.indexOf(s);return l>-1?Ru(Ru([],c.slice(0,l),!0),c.slice(l+1),!0):Ru(Ru([],c,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},dpe=[],fpe=zb,ppe=ZE,vpe=1,mpe=2;function hpe(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&&!T&&$(A)},[h.search]);var F=d.useCallback(function(ne){E.current&&(P.current?P.current=bA(P.current,ne):(P.current=bA(A,ne),setTimeout(function(){o?b(P.current):x({search:"?".concat(Ql.stringify($s($s({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===wS}}),P.current=void 0},0)))},kA(kA([],R,!0),[x],!1)),L=d.useCallback(function(ne){return F({type:H4,payload:ne})},[F]),D=d.useCallback(function(ne){return F({type:wS,payload:ne})},[F]),z=d.useCallback(function(ne){return F({type:G4,payload:ne})},[F]),H=A.filter||AA,G=A.displayedFilters||AA,q=V4(function(ne,ee){F({type:SS,payload:{filter:As(ne),displayedFilters:ee}})},r),U=d.useCallback(function(ne,ee,Oe){return Oe===void 0&&(Oe=!0),Oe?q(ne,ee):F({type:SS,payload:{filter:As(ne),displayedFilters:ee}})},[F]),W=d.useCallback(function(ne){F({type:Q4,payload:ne})},[F]),te=d.useCallback(function(ne,ee){F({type:K4,payload:{filterName:ne,defaultValue:ee}})},[F]);return[$s({displayedFilters:G,filterValues:H,requestSignature:R},A),{changeParams:F,setPage:D,setPerPage:z,setSort:L,setFilters:U,hideFilter:W,showFilter:te}]},Ove=["page","perPage","sort","order","filter","displayedFilters"],IA=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Cve=function(e){var t=e.search,r=xve(Ql.parse(t),function(n,o){return Ove.indexOf(o)!==-1});return IA(r,"filter"),IA(r,"displayedFilters"),r},Eve=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Pve=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:Eve(r)?$s({},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),$s($s({},i),{page:jA(i.page,1),perPage:jA(i.perPage,10)})},jA=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},AA={},$ve={field:"id",order:Al},MA={},vP=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});vP.displayName="ListContext";var v5=d.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),Rve=function(e){return d.useMemo(function(){return Qb(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};v5.displayName="ListFilterContext";var m5=d.createContext({sort:null,setSort:null,resource:null}),Tve=function(e){return d.useMemo(function(){return Qb(e,["sort","setSort","resource"])},[e.sort,e.setSort])};m5.displayName="ListSortContext";var mP=d.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});mP.displayName="ListPaginationContext";var kve=function(e){return d.useMemo(function(){return Qb(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])},hP=function(e){var t=e.value,r=e.children;return d.createElement(vP.Provider,{value:t},d.createElement(v5.Provider,{value:Rve(t)},d.createElement(m5.Provider,{value:Tve(t)},d.createElement(mP.Provider,{value:kve(t)},r))))},Ml=function(){return Ml=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 _=je(),$=qt(),P=Sve({debounce:r,disableSyncWithLocation:o,filterDefaultValues:c,perPage:f,resource:O,sort:x,storeKey:w}),E=P[0],T=P[1],R=cv(O),I=R[0],A=R[1],F=uce(O,{pagination:{page:E.page,perPage:E.perPage},sort:{field:E.sort,order:E.order},filter:Ml(Ml({},E.filter),s),meta:b},Ml({keepPreviousData:!0,retry:!1,onError:function(ee){return $((ee==null?void 0:ee.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:ee==null?void 0:ee.message}})}},g)),L=F.data,D=F.pageInfo,z=F.total,H=F.error,G=F.isLoading,q=F.isFetching,U=F.refetch;d.useEffect(function(){if(E.page<=0||!q&&E.page>1&&(L==null||(L==null?void 0:L.length)===0)){T.setPage(1);return}if(z!=null){var ee=Math.ceil(z/E.perPage)||1;!q&&E.page>ee&&T.setPage(ee)}},[q,E.page,E.perPage,L,T,z]);var W=d.useMemo(function(){return{field:E.sort,order:E.order}},[E.sort,E.order]),te=Cd(),ne=_("ra.page.list",{name:te(O,2)});return{sort:W,data:L,defaultTitle:ne,displayedFilters:E.displayedFilters,error:H,exporter:i,filter:s,filterValues:E.filterValues,hideFilter:T.hideFilter,isFetching:q,isLoading:G,onSelect:A.select,onToggleItem:A.toggle,onUnselectItems:A.clearSelection,page:E.page,perPage:E.perPage,refetch:U,resource:O,selectedIds:I,setFilters:T.setFilters,setPage:T.setPage,setPerPage:T.setPerPage,setSort:T.setSort,showFilter:T.showFilter,total:z,hasNextPage:D?D.hasNextPage:z!=null?E.page*E.perPage1}},Ave={field:"id",order:Al},Mve=["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"],Fp=function(e){return Object.keys(e).filter(function(t){return!Mve.includes(t)}).reduce(function(t,r){var n;return Ml(Ml({},t),(n={},n[r]=e[r],n))},{})},Fve=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?[]:lh(lh([],c.slice(0,l),!0),c.slice(l+1),!0):r?[t]:lh(lh([],c,!0),[t],!1)})},[a,t,r]);return[i,s]},Dve=function(e,t){var r=fn("".concat(e,".datagrid.expanded"),[]),n=r[0],o=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(c){return c==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(c){return!t.some(function(l){return l==c})});o(a?s:s.concat(t))},[n,o,a,t]);return[a,i]},ic=function(){return ic=Object.assign||function(e){for(var t,r=1,n=arguments.length;rvt(Ne,G.field)?G.order==="ASC"?1:-1:vt(Ce,G.field)1,hideFilter:fe,isFetching:g,isLoading:P,onSelect:ne.select,onToggleItem:ne.toggle,onUnselectItems:ne.clearSelection,page:F,perPage:D,resource:void 0,refetch:Bve,selectedIds:te,setFilters:ce,setPage:L,setPerPage:z,setSort:U,showFilter:ge,total:R==null?void 0:R.total}},zve={},en=function(e){var t=d.useContext(vP);return d.useMemo(function(){return iu({},e!=null?Uve(e):{},t)},[t,e])},Uve=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,o=e.displayedFilters,a=e.exporter,i=e.filterValues,s=e.hasCreate,c=e.hideFilter,l=e.isFetching,f=e.isLoading,v=e.onSelect,m=e.onToggleItem,h=e.onUnselectItems,x=e.page,w=e.perPage,O=e.refetch,b=e.resource,g=e.selectedIds,_=e.setFilters,$=e.setPage,P=e.setPerPage,E=e.setSort,T=e.showFilter,R=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:c,isFetching:l,isLoading:f,onSelect:v,onToggleItem:m,onUnselectItems:h,page:x,perPage:w,refetch:O,resource:b,selectedIds:g,setFilters:_,setPage:$,setPerPage:P,setSort:E,showFilter:T,total:R}},Vve=function(e){var t=d.useContext(mP);return d.useMemo(function(){return iu({},e!=null?Wve(e):{},t)},[t,e])},Wve=function(e){var t=e.isLoading,r=e.page,n=e.perPage,o=e.setPage,a=e.setPerPage,i=e.hasPreviousPage,s=e.hasNextPage,c=e.total,l=e.resource;return{isLoading:t,page:r,perPage:n,setPage:o,setPerPage:a,hasPreviousPage:i,hasNextPage:s,total:c,resource:l}},g5=function(e){var t=cv(e),r=t[1].unselect;return d.useCallback(function(n){r(n)},[r])},y5=function(e){var t=cv(e),r=t[1].clearSelection;return d.useCallback(function(){r()},[r])},sc=function(){return sc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1,setSort:T,showFilter:W,total:de}},dv=e=>e.type==="checkbox",lc=e=>e instanceof Date,Sn=e=>e==null;const b5=e=>typeof e=="object";var Mr=e=>!Sn(e)&&!Array.isArray(e)&&b5(e)&&!lc(e),_5=e=>Mr(e)&&e.target?dv(e.target)?e.target.checked:e.target.value:e,Gve=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,x5=(e,t)=>e.has(Gve(t)),Kve=e=>{const t=e.constructor&&e.constructor.prototype;return Mr(t)&&t.hasOwnProperty("isPrototypeOf")},gP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ir(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(!(gP&&(e instanceof Blob||e instanceof FileList))&&(r||Mr(e)))if(t=r?[]:{},!r&&!Kve(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Ir(e[n]));else return e;return t}var wd=e=>Array.isArray(e)?e.filter(Boolean):[],Ut=e=>e===void 0,Ae=(e,t,r)=>{if(!t||!Mr(e))return r;const n=wd(t.split(/[,[\].]+?/)).reduce((o,a)=>Sn(o)?o:o[a],e);return Ut(n)||n===e?Ut(e[t])?r:e[t]:n},fa=e=>typeof e=="boolean";const uy={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Fo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},di={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},w5=ve.createContext(null),Jo=()=>ve.useContext(w5),S5=e=>{const{children:t,...r}=e;return ve.createElement(w5.Provider,{value:r},t)};var O5=(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]!==Fo.all&&(t._proxyFormState[i]=!n||Fo.all),r&&(r[i]=!0),e[i]}});return o},Dn=e=>Mr(e)&&!Object.keys(e).length,C5=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Dn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||Fo.all))},ao=e=>Array.isArray(e)?e:[e],E5=(e,t,r)=>!e||!t||e===t||ao(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Yb(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Sd(e){const t=Jo(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=ve.useState(r._formState),c=ve.useRef(!0),l=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=ve.useRef(o);return f.current=o,Yb({disabled:n,next:v=>c.current&&E5(f.current,v.name,a)&&C5(v,l.current,r._updateFormState)&&s({...r._formState,...v}),subject:r._subjects.state}),ve.useEffect(()=>(c.current=!0,l.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),O5(i,r,l.current,!1)}var Na=e=>typeof e=="string",P5=(e,t,r,n,o)=>Na(e)?(n&&t.watch.add(e),Ae(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Ae(r,a))):(n&&(t.watchAll=!0),r);function $5(e){const t=Jo(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=ve.useRef(n);s.current=n,Yb({disabled:a,subject:r._subjects.values,next:f=>{E5(s.current,f.name,i)&&l(Ir(P5(s.current,r._names,f.values||r._formValues,!1,o)))}});const[c,l]=ve.useState(r._getWatch(n,o));return ve.useEffect(()=>r._removeUnmounted()),c}var yP=e=>/^\w*$/.test(e),R5=e=>wd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ft=(e,t,r)=>{let n=-1;const o=yP(t)?[t]:R5(t),a=o.length,i=a-1;for(;++n{const f=o._options.shouldUnregister||a,v=(m,h)=>{const x=Ae(o._fields,m);x&&(x._f.mount=h)};if(v(r,!0),f){const m=Ir(Ae(o._options.defaultValues,r));Ft(o._defaultValues,r,m),Ut(Ae(o._formValues,r))&&Ft(o._formValues,r,m)}return()=>{(i?f&&!o._state.action:f)?o.unregister(r):v(r,!1)}},[r,o,i,a]),ve.useEffect(()=>{Ae(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:Ae(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:s,...fa(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:ve.useCallback(f=>l.current.onChange({target:{value:_5(f),name:r},type:uy.CHANGE}),[r]),onBlur:ve.useCallback(()=>l.current.onBlur({target:{value:Ae(o._formValues,r),name:r},type:uy.BLUR}),[r,o]),ref:f=>{const v=Ae(o._fields,r);v&&f&&(v._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:m=>f.setCustomValidity(m),reportValidity:()=>f.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,r)},error:{enumerable:!0,get:()=>Ae(c.errors,r)}})}}var Xve=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Ji=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},dx=(e,t,r={})=>r.shouldFocus||Ut(r.shouldFocus)?r.focusName||`${e}.${Ut(r.focusIndex)?t:r.focusIndex}.`:"",Xf=e=>({isOnSubmit:!e||e===Fo.onSubmit,isOnBlur:e===Fo.onBlur,isOnChange:e===Fo.onChange,isOnAll:e===Fo.all,isOnTouch:e===Fo.onTouched}),ES=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const _c=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const a=Ae(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;_c(s,t)}else Mr(s)&&_c(s,t)}}};var T5=(e,t,r)=>{const n=wd(Ae(e,r));return Ft(n,"root",t[r]),Ft(e,r,n),e},bP=e=>e.type==="file",ms=e=>typeof e=="function",cy=e=>{if(!gP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Gh=e=>Na(e),_P=e=>e.type==="radio",dy=e=>e instanceof RegExp;const NA={value:!1,isValid:!1},DA={value:!0,isValid:!0};var k5=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&&!Ut(e[0].attributes.value)?Ut(e[0].value)||e[0].value===""?DA:{value:e[0].value,isValid:!0}:DA:NA}return NA};const BA={isValid:!1,value:null};var I5=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,BA):BA;function zA(e,t,r="validate"){if(Gh(e)||Array.isArray(e)&&e.every(Gh)||fa(e)&&!e)return{type:r,message:Gh(e)?e:"",ref:t}}var Tu=e=>Mr(e)&&!dy(e)?e:{value:e,message:""},PS=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:c,minLength:l,min:f,max:v,pattern:m,validate:h,name:x,valueAsNumber:w,mount:O,disabled:b}=e._f,g=Ae(t,x);if(!O||b)return{};const _=i?i[0]:a,$=L=>{n&&_.reportValidity&&(_.setCustomValidity(fa(L)?"":L||""),_.reportValidity())},P={},E=_P(a),T=dv(a),R=E||T,I=(w||bP(a))&&Ut(a.value)&&Ut(g)||cy(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,A=Xve.bind(null,x,r,P),F=(L,D,z,H=di.maxLength,G=di.minLength)=>{const q=L?D:z;P[x]={type:L?H:G,message:q,ref:a,...A(L?H:G,q)}};if(o?!Array.isArray(g)||!g.length:s&&(!R&&(I||Sn(g))||fa(g)&&!g||T&&!k5(i).isValid||E&&!I5(i).isValid)){const{value:L,message:D}=Gh(s)?{value:!!s,message:s}:Tu(s);if(L&&(P[x]={type:di.required,message:D,ref:_,...A(di.required,D)},!r))return $(D),P}if(!I&&(!Sn(f)||!Sn(v))){let L,D;const z=Tu(v),H=Tu(f);if(!Sn(g)&&!isNaN(g)){const G=a.valueAsNumber||g&&+g;Sn(z.value)||(L=G>z.value),Sn(H.value)||(D=Gnew Date(new Date().toDateString()+" "+te),U=a.type=="time",W=a.type=="week";Na(z.value)&&g&&(L=U?q(g)>q(z.value):W?g>z.value:G>new Date(z.value)),Na(H.value)&&g&&(D=U?q(g)+L.value,H=!Sn(D.value)&&g.length<+D.value;if((z||H)&&(F(z,L.message,D.message),!r))return $(P[x].message),P}if(m&&!I&&Na(g)){const{value:L,message:D}=Tu(m);if(dy(L)&&!g.match(L)&&(P[x]={type:di.pattern,message:D,ref:a,...A(di.pattern,D)},!r))return $(D),P}if(h){if(ms(h)){const L=await h(g,t),D=zA(L,_);if(D&&(P[x]={...D,...A(di.validate,D.message)},!r))return $(D.message),P}else if(Mr(h)){let L={};for(const D in h){if(!Dn(L)&&!r)break;const z=zA(await h[D](g,t),_,D);z&&(L={...z,...A(D,z.message)},$(z.message),r&&(P[x]=L))}if(!Dn(L)&&(P[x]={ref:_,...L},!r))return P}}return $(!0),P},fx=(e,t)=>[...e,...ao(t)],px=e=>Array.isArray(e)?e.map(()=>{}):void 0;function vx(e,t,r){return[...e.slice(0,t),...ao(r),...e.slice(t)]}var mx=(e,t,r)=>Array.isArray(e)?(Ut(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],hx=(e,t)=>[...ao(t),...ao(e)];function Yve(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return wd(n).length?n:[]}var gx=(e,t)=>Ut(t)?[]:Yve(e,ao(t).sort((r,n)=>r-n)),yx=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function Jve(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function eme(e){const t=Jo(),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:a}=e,[i,s]=ve.useState(r._getFieldArray(n)),c=ve.useRef(r._getFieldArray(n).map(Ji)),l=ve.useRef(i),f=ve.useRef(n),v=ve.useRef(!1);f.current=n,l.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),Yb({next:({values:P,name:E})=>{if(E===f.current||!E){const T=Ae(P,f.current);Array.isArray(T)&&(s(T),c.current=T.map(Ji))}},subject:r._subjects.array});const m=ve.useCallback(P=>{v.current=!0,r._updateFieldArray(n,P)},[r,n]),h=(P,E)=>{const T=ao(Ir(P)),R=fx(r._getFieldArray(n),T);r._names.focus=dx(n,R.length-1,E),c.current=fx(c.current,T.map(Ji)),m(R),s(R),r._updateFieldArray(n,R,fx,{argA:px(P)})},x=(P,E)=>{const T=ao(Ir(P)),R=hx(r._getFieldArray(n),T);r._names.focus=dx(n,0,E),c.current=hx(c.current,T.map(Ji)),m(R),s(R),r._updateFieldArray(n,R,hx,{argA:px(P)})},w=P=>{const E=gx(r._getFieldArray(n),P);c.current=gx(c.current,P),m(E),s(E),r._updateFieldArray(n,E,gx,{argA:P})},O=(P,E,T)=>{const R=ao(Ir(E)),I=vx(r._getFieldArray(n),P,R);r._names.focus=dx(n,P,T),c.current=vx(c.current,P,R.map(Ji)),m(I),s(I),r._updateFieldArray(n,I,vx,{argA:P,argB:px(E)})},b=(P,E)=>{const T=r._getFieldArray(n);yx(T,P,E),yx(c.current,P,E),m(T),s(T),r._updateFieldArray(n,T,yx,{argA:P,argB:E},!1)},g=(P,E)=>{const T=r._getFieldArray(n);mx(T,P,E),mx(c.current,P,E),m(T),s(T),r._updateFieldArray(n,T,mx,{argA:P,argB:E},!1)},_=(P,E)=>{const T=Ir(E),R=UA(r._getFieldArray(n),P,T);c.current=[...R].map((I,A)=>!I||A===P?Ji():c.current[A]),m(R),s([...R]),r._updateFieldArray(n,R,UA,{argA:P,argB:T},!0,!1)},$=P=>{const E=ao(Ir(P));c.current=E.map(Ji),m([...E]),s([...E]),r._updateFieldArray(n,[...E],T=>T,{},!0,!1)};return ve.useEffect(()=>{if(r._state.action=!1,ES(n,r._names)&&r._subjects.state.next({...r._formState}),v.current&&(!Xf(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const E=Ae(P.errors,n),T=Ae(r._formState.errors,n);(T?!E&&T.type||E&&(T.type!==E.type||T.message!==E.message):E&&E.type)&&(E?Ft(r._formState.errors,n,E):xr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=Ae(r._fields,n);P&&P._f&&!(Xf(r._options.reValidateMode).isOnSubmit&&Xf(r._options.mode).isOnSubmit)&&PS(P,r._formValues,r._options.criteriaMode===Fo.all,r._options.shouldUseNativeValidation,!0).then(E=>!Dn(E)&&r._subjects.state.next({errors:T5(r._formState.errors,E,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&_c(r._fields,(P,E)=>{if(r._names.focus&&E.startsWith(r._names.focus)&&P.focus)return P.focus(),1}),r._names.focus="",r._updateValid(),v.current=!1},[i,n,r]),ve.useEffect(()=>(!Ae(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||a)&&r.unregister(n)}),[n,r,o,a]),{swap:ve.useCallback(b,[m,n,r]),move:ve.useCallback(g,[m,n,r]),prepend:ve.useCallback(x,[m,n,r]),append:ve.useCallback(h,[m,n,r]),remove:ve.useCallback(w,[m,n,r]),insert:ve.useCallback(O,[m,n,r]),update:ve.useCallback(_,[m,n,r]),replace:ve.useCallback($,[m,n,r]),fields:ve.useMemo(()=>i.map((P,E)=>({...P,[o]:c.current[E]||Ji()})),[i,o])}}var bx=()=>{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=[]}}},fy=e=>Sn(e)||!b5(e);function El(e,t){if(fy(e)||fy(t))return e===t;if(lc(e)&&lc(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(lc(a)&&lc(i)||Mr(a)&&Mr(i)||Array.isArray(a)&&Array.isArray(i)?!El(a,i):a!==i)return!1}}return!0}var j5=e=>e.type==="select-multiple",tme=e=>_P(e)||dv(e),_x=e=>cy(e)&&e.isConnected,A5=e=>{for(const t in e)if(ms(e[t]))return!0;return!1};function py(e,t={}){const r=Array.isArray(e);if(Mr(e)||r)for(const n in e)Array.isArray(e[n])||Mr(e[n])&&!A5(e[n])?(t[n]=Array.isArray(e[n])?[]:{},py(e[n],t[n])):Sn(e[n])||(t[n]=!0);return t}function M5(e,t,r){const n=Array.isArray(e);if(Mr(e)||n)for(const o in e)Array.isArray(e[o])||Mr(e[o])&&!A5(e[o])?Ut(t)||fy(r[o])?r[o]=Array.isArray(e[o])?py(e[o],[]):{...py(e[o])}:M5(e[o],Sn(t)?{}:t[o],r[o]):r[o]=!El(e[o],t[o]);return r}var uh=(e,t)=>M5(e,t,py(t)),F5=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ut(e)?e:t?e===""?NaN:e&&+e:r&&Na(e)?new Date(e):n?n(e):e;function xx(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return bP(t)?t.files:_P(t)?I5(e.refs).value:j5(t)?[...t.selectedOptions].map(({value:r})=>r):dv(t)?k5(e.refs).value:F5(Ut(t.value)?e.ref.value:t.value,e)}var rme=(e,t,r,n)=>{const o={};for(const a of e){const i=Ae(t,a);i&&Ft(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},mf=e=>Ut(e)?e:dy(e)?e.source:Mr(e)?dy(e.value)?e.value.source:e.value:e,nme=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function VA(e,t,r){const n=Ae(e,r);if(n||yP(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=Ae(t,a),s=Ae(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 ome=(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,ame=(e,t)=>!wd(Ae(e,t)).length&&xr(e,t);const ime={mode:Fo.onSubmit,reValidateMode:Fo.onChange,shouldFocusError:!0};function sme(e={}){let t={...ime,...e},r={submitCount:0,isDirty:!1,isLoading:ms(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Mr(t.defaultValues)||Mr(t.values)?Ir(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Ir(o),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={values:bx(),array:bx(),state:bx()},m=Xf(t.mode),h=Xf(t.reValidateMode),x=t.criteriaMode===Fo.all,w=V=>X=>{clearTimeout(l),l=setTimeout(V,X)},O=async V=>{if(f.isValid||V){const X=t.resolver?Dn((await R()).errors):await A(n,!0);X!==r.isValid&&v.state.next({isValid:X})}},b=(V,X)=>{(f.isValidating||f.validatingFields)&&((V||Array.from(s.mount)).forEach(Y=>{Y&&(X?Ft(r.validatingFields,Y,X):xr(r.validatingFields,Y))}),v.state.next({validatingFields:r.validatingFields,isValidating:!Dn(r.validatingFields)}))},g=(V,X=[],Y,ie,se=!0,ue=!0)=>{if(ie&&Y){if(i.action=!0,ue&&Array.isArray(Ae(n,V))){const Ee=Y(Ae(n,V),ie.argA,ie.argB);se&&Ft(n,V,Ee)}if(ue&&Array.isArray(Ae(r.errors,V))){const Ee=Y(Ae(r.errors,V),ie.argA,ie.argB);se&&Ft(r.errors,V,Ee),ame(r.errors,V)}if(f.touchedFields&&ue&&Array.isArray(Ae(r.touchedFields,V))){const Ee=Y(Ae(r.touchedFields,V),ie.argA,ie.argB);se&&Ft(r.touchedFields,V,Ee)}f.dirtyFields&&(r.dirtyFields=uh(o,a)),v.state.next({name:V,isDirty:L(V,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ft(a,V,X)},_=(V,X)=>{Ft(r.errors,V,X),v.state.next({errors:r.errors})},$=V=>{r.errors=V,v.state.next({errors:r.errors,isValid:!1})},P=(V,X,Y,ie)=>{const se=Ae(n,V);if(se){const ue=Ae(a,V,Ut(Y)?Ae(o,V):Y);Ut(ue)||ie&&ie.defaultChecked||X?Ft(a,V,X?ue:xx(se._f)):H(V,ue),i.mount&&O()}},E=(V,X,Y,ie,se)=>{let ue=!1,Ee=!1;const Ie={name:V},at=!!(Ae(n,V)&&Ae(n,V)._f.disabled);if(!Y||ie){f.isDirty&&(Ee=r.isDirty,r.isDirty=Ie.isDirty=L(),ue=Ee!==Ie.isDirty);const ot=at||El(Ae(o,V),X);Ee=!!(!at&&Ae(r.dirtyFields,V)),ot||at?xr(r.dirtyFields,V):Ft(r.dirtyFields,V,!0),Ie.dirtyFields=r.dirtyFields,ue=ue||f.dirtyFields&&Ee!==!ot}if(Y){const ot=Ae(r.touchedFields,V);ot||(Ft(r.touchedFields,V,Y),Ie.touchedFields=r.touchedFields,ue=ue||f.touchedFields&&ot!==Y)}return ue&&se&&v.state.next(Ie),ue?Ie:{}},T=(V,X,Y,ie)=>{const se=Ae(r.errors,V),ue=f.isValid&&fa(X)&&r.isValid!==X;if(e.delayError&&Y?(c=w(()=>_(V,Y)),c(e.delayError)):(clearTimeout(l),c=null,Y?Ft(r.errors,V,Y):xr(r.errors,V)),(Y?!El(se,Y):se)||!Dn(ie)||ue){const Ee={...ie,...ue&&fa(X)?{isValid:X}:{},errors:r.errors,name:V};r={...r,...Ee},v.state.next(Ee)}},R=async V=>{b(V,!0);const X=await t.resolver(a,t.context,rme(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return b(V),X},I=async V=>{const{errors:X}=await R(V);if(V)for(const Y of V){const ie=Ae(X,Y);ie?Ft(r.errors,Y,ie):xr(r.errors,Y)}else r.errors=X;return X},A=async(V,X,Y={valid:!0})=>{for(const ie in V){const se=V[ie];if(se){const{_f:ue,...Ee}=se;if(ue){const Ie=s.array.has(ue.name);b([ie],!0);const at=await PS(se,a,x,t.shouldUseNativeValidation&&!X,Ie);if(b([ie]),at[ue.name]&&(Y.valid=!1,X))break;!X&&(Ae(at,ue.name)?Ie?T5(r.errors,at,ue.name):Ft(r.errors,ue.name,at[ue.name]):xr(r.errors,ue.name))}Ee&&await A(Ee,X,Y)}}return Y.valid},F=()=>{for(const V of s.unMount){const X=Ae(n,V);X&&(X._f.refs?X._f.refs.every(Y=>!_x(Y)):!_x(X._f.ref))&&me(V)}s.unMount=new Set},L=(V,X)=>(V&&X&&Ft(a,V,X),!El(ne(),o)),D=(V,X,Y)=>P5(V,s,{...i.mount?a:Ut(X)?o:Na(V)?{[V]:X}:X},Y,X),z=V=>wd(Ae(i.mount?a:o,V,e.shouldUnregister?Ae(o,V,[]):[])),H=(V,X,Y={})=>{const ie=Ae(n,V);let se=X;if(ie){const ue=ie._f;ue&&(!ue.disabled&&Ft(a,V,F5(X,ue)),se=cy(ue.ref)&&Sn(X)?"":X,j5(ue.ref)?[...ue.ref.options].forEach(Ee=>Ee.selected=se.includes(Ee.value)):ue.refs?dv(ue.ref)?ue.refs.length>1?ue.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(se)?!!se.find(Ie=>Ie===Ee.value):se===Ee.value)):ue.refs[0]&&(ue.refs[0].checked=!!se):ue.refs.forEach(Ee=>Ee.checked=Ee.value===se):bP(ue.ref)?ue.ref.value="":(ue.ref.value=se,ue.ref.type||v.values.next({name:V,values:{...a}})))}(Y.shouldDirty||Y.shouldTouch)&&E(V,se,Y.shouldTouch,Y.shouldDirty,!0),Y.shouldValidate&&te(V)},G=(V,X,Y)=>{for(const ie in X){const se=X[ie],ue=`${V}.${ie}`,Ee=Ae(n,ue);(s.array.has(V)||!fy(se)||Ee&&!Ee._f)&&!lc(se)?G(ue,se,Y):H(ue,se,Y)}},q=(V,X,Y={})=>{const ie=Ae(n,V),se=s.array.has(V),ue=Ir(X);Ft(a,V,ue),se?(v.array.next({name:V,values:{...a}}),(f.isDirty||f.dirtyFields)&&Y.shouldDirty&&v.state.next({name:V,dirtyFields:uh(o,a),isDirty:L(V,ue)})):ie&&!ie._f&&!Sn(ue)?G(V,ue,Y):H(V,ue,Y),ES(V,s)&&v.state.next({...r}),v.values.next({name:i.mount?V:void 0,values:{...a}})},U=async V=>{i.mount=!0;const X=V.target;let Y=X.name,ie=!0;const se=Ae(n,Y),ue=()=>X.type?xx(se._f):_5(V),Ee=Ie=>{ie=Number.isNaN(Ie)||Ie===Ae(a,Y,Ie)};if(se){let Ie,at;const ot=ue(),Le=V.type===uy.BLUR||V.type===uy.FOCUS_OUT,De=!nme(se._f)&&!t.resolver&&!Ae(r.errors,Y)&&!se._f.deps||ome(Le,Ae(r.touchedFields,Y),r.isSubmitted,h,m),ft=ES(Y,s,Le);Ft(a,Y,ot),Le?(se._f.onBlur&&se._f.onBlur(V),c&&c(0)):se._f.onChange&&se._f.onChange(V);const Et=E(Y,ot,Le,!1),Ct=!Dn(Et)||ft;if(!Le&&v.values.next({name:Y,type:V.type,values:{...a}}),De)return f.isValid&&O(),Ct&&v.state.next({name:Y,...ft?{}:Et});if(!Le&&ft&&v.state.next({...r}),t.resolver){const{errors:Ue}=await R([Y]);if(Ee(ot),ie){const et=VA(r.errors,n,Y),ke=VA(Ue,n,et.name||Y);Ie=ke.error,Y=ke.name,at=Dn(Ue)}}else b([Y],!0),Ie=(await PS(se,a,x,t.shouldUseNativeValidation))[Y],b([Y]),Ee(ot),ie&&(Ie?at=!1:f.isValid&&(at=await A(n,!0)));ie&&(se._f.deps&&te(se._f.deps),T(Y,at,Ie,Et))}},W=(V,X)=>{if(Ae(r.errors,X)&&V.focus)return V.focus(),1},te=async(V,X={})=>{let Y,ie;const se=ao(V);if(t.resolver){const ue=await I(Ut(V)?V:se);Y=Dn(ue),ie=V?!se.some(Ee=>Ae(ue,Ee)):Y}else V?(ie=(await Promise.all(se.map(async ue=>{const Ee=Ae(n,ue);return await A(Ee&&Ee._f?{[ue]:Ee}:Ee)}))).every(Boolean),!(!ie&&!r.isValid)&&O()):ie=Y=await A(n);return v.state.next({...!Na(V)||f.isValid&&Y!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:Y}:{},errors:r.errors}),X.shouldFocus&&!ie&&_c(n,W,V?se:s.mount),ie},ne=V=>{const X={...o,...i.mount?a:{}};return Ut(V)?X:Na(V)?Ae(X,V):V.map(Y=>Ae(X,Y))},ee=(V,X)=>({invalid:!!Ae((X||r).errors,V),isDirty:!!Ae((X||r).dirtyFields,V),isTouched:!!Ae((X||r).touchedFields,V),isValidating:!!Ae((X||r).validatingFields,V),error:Ae((X||r).errors,V)}),Oe=V=>{V&&ao(V).forEach(X=>xr(r.errors,X)),v.state.next({errors:V?r.errors:{}})},de=(V,X,Y)=>{const ie=(Ae(n,V,{_f:{}})._f||{}).ref;Ft(r.errors,V,{...X,ref:ie}),v.state.next({name:V,errors:r.errors,isValid:!1}),Y&&Y.shouldFocus&&ie&&ie.focus&&ie.focus()},oe=(V,X)=>ms(V)?v.values.subscribe({next:Y=>V(D(void 0,X),Y)}):D(V,X,!0),me=(V,X={})=>{for(const Y of V?ao(V):s.mount)s.mount.delete(Y),s.array.delete(Y),X.keepValue||(xr(n,Y),xr(a,Y)),!X.keepError&&xr(r.errors,Y),!X.keepDirty&&xr(r.dirtyFields,Y),!X.keepTouched&&xr(r.touchedFields,Y),!X.keepIsValidating&&xr(r.validatingFields,Y),!t.shouldUnregister&&!X.keepDefaultValue&&xr(o,Y);v.values.next({values:{...a}}),v.state.next({...r,...X.keepDirty?{isDirty:L()}:{}}),!X.keepIsValid&&O()},Re=({disabled:V,name:X,field:Y,fields:ie,value:se})=>{if(fa(V)){const ue=V?void 0:Ut(se)?xx(Y?Y._f:Ae(ie,X)._f):se;Ft(a,X,ue),E(X,ue,!1,!1,!0)}},ye=(V,X={})=>{let Y=Ae(n,V);const ie=fa(X.disabled);return Ft(n,V,{...Y||{},_f:{...Y&&Y._f?Y._f:{ref:{name:V}},name:V,mount:!0,...X}}),s.mount.add(V),Y?Re({field:Y,disabled:X.disabled,name:V,value:X.value}):P(V,!0,X.value),{...ie?{disabled:X.disabled}:{},...t.progressive?{required:!!X.required,min:mf(X.min),max:mf(X.max),minLength:mf(X.minLength),maxLength:mf(X.maxLength),pattern:mf(X.pattern)}:{},name:V,onChange:U,onBlur:U,ref:se=>{if(se){ye(V,X),Y=Ae(n,V);const ue=Ut(se.value)&&se.querySelectorAll&&se.querySelectorAll("input,select,textarea")[0]||se,Ee=tme(ue),Ie=Y._f.refs||[];if(Ee?Ie.find(at=>at===ue):ue===Y._f.ref)return;Ft(n,V,{_f:{...Y._f,...Ee?{refs:[...Ie.filter(_x),ue,...Array.isArray(Ae(o,V))?[{}]:[]],ref:{type:ue.type,name:V}}:{ref:ue}}}),P(V,!1,void 0,ue)}else Y=Ae(n,V,{}),Y._f&&(Y._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(x5(s.array,V)&&i.action)&&s.unMount.add(V)}}},fe=()=>t.shouldFocusError&&_c(n,W,s.mount),ge=V=>{fa(V)&&(v.state.next({disabled:V}),_c(n,(X,Y)=>{let ie=V;const se=Ae(n,Y);se&&fa(se._f.disabled)&&(ie||(ie=se._f.disabled)),X.disabled=ie},0,!1))},ce=(V,X)=>async Y=>{let ie;Y&&(Y.preventDefault&&Y.preventDefault(),Y.persist&&Y.persist());let se=Ir(a);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:ue,values:Ee}=await R();r.errors=ue,se=Ee}else await A(n);if(xr(r.errors,"root"),Dn(r.errors)){v.state.next({errors:{}});try{await V(se,Y)}catch(ue){ie=ue}}else X&&await X({...r.errors},Y),fe(),setTimeout(fe);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Dn(r.errors)&&!ie,submitCount:r.submitCount+1,errors:r.errors}),ie)throw ie},pe=(V,X={})=>{Ae(n,V)&&(Ut(X.defaultValue)?q(V,Ir(Ae(o,V))):(q(V,X.defaultValue),Ft(o,V,Ir(X.defaultValue))),X.keepTouched||xr(r.touchedFields,V),X.keepDirty||(xr(r.dirtyFields,V),r.isDirty=X.defaultValue?L(V,Ir(Ae(o,V))):L()),X.keepError||(xr(r.errors,V),f.isValid&&O()),v.state.next({...r}))},ae=(V,X={})=>{const Y=V?Ir(V):o,ie=Ir(Y),se=Dn(V),ue=se?o:ie;if(X.keepDefaultValues||(o=Y),!X.keepValues){if(X.keepDirtyValues)for(const Ee of s.mount)Ae(r.dirtyFields,Ee)?Ft(ue,Ee,Ae(a,Ee)):q(Ee,Ae(ue,Ee));else{if(gP&&Ut(V))for(const Ee of s.mount){const Ie=Ae(n,Ee);if(Ie&&Ie._f){const at=Array.isArray(Ie._f.refs)?Ie._f.refs[0]:Ie._f.ref;if(cy(at)){const ot=at.closest("form");if(ot){ot.reset();break}}}}n={}}a=e.shouldUnregister?X.keepDefaultValues?Ir(o):{}:Ir(ue),v.array.next({values:{...ue}}),v.values.next({values:{...ue}})}s={mount:X.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!X.keepIsValid||!!X.keepDirtyValues,i.watch=!!e.shouldUnregister,v.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:se?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!El(V,o)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:se?[]:X.keepDirtyValues?X.keepDefaultValues&&a?uh(o,a):r.dirtyFields:X.keepDefaultValues&&V?uh(o,V):{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(V,X)=>ae(ms(V)?V(a):V,X);return{control:{register:ye,unregister:me,getFieldState:ee,handleSubmit:ce,setError:de,_executeSchema:R,_getWatch:D,_getDirty:L,_updateValid:O,_removeUnmounted:F,_updateFieldArray:g,_updateDisabledField:Re,_getFieldArray:z,_reset:ae,_resetDefaultValues:()=>ms(t.defaultValues)&&t.defaultValues().then(V=>{Se(V,t.resetOptions),v.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:ge,_subjects:v,_proxyFormState:f,_setErrors:$,get _fields(){return n},get _formValues(){return a},get _state(){return i},set _state(V){i=V},get _defaultValues(){return o},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:te,register:ye,handleSubmit:ce,watch:oe,setValue:q,getValues:ne,reset:Se,resetField:pe,clearErrors:Oe,unregister:me,setError:de,setFocus:(V,X={})=>{const Y=Ae(n,V),ie=Y&&Y._f;if(ie){const se=ie.refs?ie.refs[0]:ie.ref;se.focus&&(se.focus(),X.shouldSelect&&se.select())}},getFieldState:ee}}function L5(e={}){const t=ve.useRef(),r=ve.useRef(),[n,o]=ve.useState({isDirty:!1,isValidating:!1,isLoading:ms(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ms(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...sme(e),formState:n});const a=t.current.control;return a._options=e,Yb({subject:a._subjects.state,next:i=>{C5(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),ve.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),ve.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),ve.useEffect(()=>{e.values&&!El(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[e.values,a]),ve.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),ve.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()}),ve.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=O5(n,a),t.current}var lme=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);o0&&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?T(R):R},{updatedAt:E}),o.setQueriesData([g,"getManyReference"],function(R){return R&&R.data?{data:T(R.data),total:R.total}:R},{updatedAt:E})},w=cd(function(b){var g=b===void 0?{}:b,_=g.resource,$=_===void 0?e:_,P=g.id,E=P===void 0?m.current.id:P,T=g.data,R=T===void 0?m.current.data:T,I=g.meta,A=I===void 0?m.current.meta:I,F=g.previousData,L=F===void 0?m.current.previousData:F;return n.update($,{id:E,data:R,previousData:L,meta:A}).then(function(D){var z=D.data;return z})},Kt(Kt({},f),{onMutate:function(b){return WA(void 0,void 0,void 0,function(){var g;return qA(this,function(_){switch(_.label){case 0:return f.onMutate?[4,f.onMutate(b)]:[3,2];case 1:return g=_.sent()||{},[2,Kt({snapshot:h.current},g)];case 2:return[2,{snapshot:h.current}]}})})},onError:function(b,g,_){if(g===void 0&&(g={}),(v.current==="optimistic"||v.current==="undoable")&&_.snapshot.forEach(function($){var P=$[0],E=$[1];o.setQueryData(P,E)}),f.onError)return f.onError(b,g,_)},onSuccess:function(b,g,_){if(g===void 0&&(g={}),v.current==="pessimistic"){var $=g.resource,P=$===void 0?e:$,E=g.id,T=E===void 0?a:E;x({resource:P,id:T,data:b}),f.onSuccess&&f.onSuccess(b,g,_)}},onSettled:function(b,g,_,$){if(_===void 0&&(_={}),(v.current==="optimistic"||v.current==="undoable")&&$.snapshot.forEach(function(P){var E=P[0];o.invalidateQueries(E)}),f.onSettled)return f.onSettled(b,g,_,$)}})),O=function(b,g,_){return b===void 0&&(b=e),g===void 0&&(g={}),_===void 0&&(_={}),WA(void 0,void 0,void 0,function(){var $,P,E,T,R,I,A,F,L,D,z,H,G,q;return qA(this,function(U){switch(U.label){case 0:return $=_.mutationMode,P=_.returnPromise,E=P===void 0?f.returnPromise:P,T=_.onSuccess,R=_.onSettled,I=_.onError,m.current=t,$&&(v.current=$),E&&v.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),v.current==="pessimistic"?E?[2,w.mutateAsync(Kt({resource:b},g),{onSuccess:T,onSettled:R,onError:I})]:[2,w.mutate(Kt({resource:b},g),{onSuccess:T,onSettled:R,onError:I})]:(A=g.id,F=A===void 0?a:A,L=g.data,D=L===void 0?i:L,z=g.meta,H=z===void 0?s:z,G=o.getQueryData([b,"getOne",{id:String(F),meta:H}]),q=[[b,"getOne",{id:String(F),meta:H}],[b,"getList"],[b,"getInfiniteList"],[b,"getMany"],[b,"getManyReference"]],h.current=q.reduce(function(W,te){return W.concat(o.getQueriesData(te))},[]),[4,Promise.all(h.current.map(function(W){var te=W[0];return o.cancelQueries(te)}))]);case 1:return U.sent(),x({resource:b,id:F,data:D}),T&&setTimeout(function(){return T(Kt(Kt({},G),D),Kt({resource:b},g),{snapshot:h.current})},0),f.onSuccess&&setTimeout(function(){return f.onSuccess(Kt(Kt({},G),D),Kt({resource:b},g),{snapshot:h.current})},0),v.current==="optimistic"?[2,w.mutate(Kt({resource:b},g),{onSettled:R,onError:I})]:(Mp.once("end",function(W){var te=W.isUndo;te?h.current.forEach(function(ne){var ee=ne[0],Oe=ne[1];o.setQueryData(ee,Oe)}):w.mutate(Kt({resource:b},g),{onSettled:R,onError:I})}),[2])}})})};return[Yl(O),w]},Ln=function(){return Ln=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?P(E):E},{updatedAt:$}),o.setQueriesData([b,"getManyReference"],function(E){if(!E||!E.data)return E;var T=P(E.data),R=T.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?$(P):P},{updatedAt:_}),o.setQueriesData([O,"getManyReference"],function(P){if(!P||!P.data)return P;var E=$(P.data),T=E.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||x.customRoutesWithLayout.length>0||x.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&v(h),[2]})})};r||m()},[e,n,r,s,t,i,f]),[a,l]},Rme=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]},Tme=function(e,t){var r=z5(),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])},kme=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return U5(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},U5=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]},jf=function(e){var t=[],r=[],n=[];return d.Children.forEach(e,function(o){if(d.isValidElement(o)){if(o.type===d.Fragment){var a=jf(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}},Ime=function(e){Rue();var t=Vs(),r=Pme(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,c=e.catchAll,l=e.dashboard,f=e.loading,v=e.menu,m=e.requireAuth,h=e.ready,x=e.title,w=d.useState(!m),O=w[0],b=w[1],g=sB();return d.useEffect(function(){m&&g().then(function(){b(!0)}).catch(function(){})},[g,m]),a==="empty"?d.createElement(h,null):a==="loading"||!O?d.createElement(jl,null,o,d.createElement(Yr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(f,null))})):d.createElement(jl,null,o,d.createElement(Yr,{path:"/*",element:d.createElement("div",null,d.createElement(s,{dashboard:l,menu:v,title:x},d.createElement(jl,null,n,d.Children.map(i,function(_){return d.createElement(Yr,{key:_.props.name,path:"".concat(_.props.name,"/*"),element:_})}),d.createElement(Yr,{path:"/",element:l?d.createElement(fhe,{authParams:jme,component:l}):i.length>0?d.createElement(yZ,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(Yr,{path:"*",element:d.createElement(c,{title:x})}))))}))},jme={params:{route:"dashboard"}},Ame=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Mme=function(e){var t=e.catchAll,r=t===void 0?eM:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,c=s===void 0?Ame:s,l=e.loading,f=l===void 0?eM:l,v=e.loginPage,m=v===void 0?!1:v,h=e.authCallbackPage,x=h===void 0?!1:h,w=e.menu,O=e.ready,b=O===void 0?Jme:O,g=e.title,_=g===void 0?"React Admin":g,$=e.requireAuth,P=$===void 0?!1:$;return d.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var E=new Image;E.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),d.createElement(jl,null,m!==!1&&m!==!0?d.createElement(Yr,{path:"/login",element:ZA(m)}):null,x!==!1&&x!==!0?d.createElement(Yr,{path:"/auth-callback",element:ZA(x)}):null,d.createElement(Yr,{path:"/*",element:d.createElement(Ime,{catchAll:r,dashboard:o,layout:c,loading:f,menu:w,requireAuth:P,ready:b,title:_},n)}))},ZA=function(e){return d.isValidElement(e)?e:d.createElement(e)},eM=function(){return null},V5=function(e){return null};V5.raName="CustomRoutes";var W5={exports:{}},Dt={};/** @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 Jb=60103,Zb=60106,pv=60107,vv=60108,mv=60114,hv=60109,gv=60110,yv=60112,bv=60113,wP=60120,_v=60115,xv=60116,q5=60121,H5=60122,G5=60117,K5=60129,Q5=60131;if(typeof Symbol=="function"&&Symbol.for){var Hr=Symbol.for;Jb=Hr("react.element"),Zb=Hr("react.portal"),pv=Hr("react.fragment"),vv=Hr("react.strict_mode"),mv=Hr("react.profiler"),hv=Hr("react.provider"),gv=Hr("react.context"),yv=Hr("react.forward_ref"),bv=Hr("react.suspense"),wP=Hr("react.suspense_list"),_v=Hr("react.memo"),xv=Hr("react.lazy"),q5=Hr("react.block"),H5=Hr("react.server.block"),G5=Hr("react.fundamental"),K5=Hr("react.debug_trace_mode"),Q5=Hr("react.legacy_hidden")}function Sa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Jb:switch(e=e.type,e){case pv:case mv:case vv:case bv:case wP:return e;default:switch(e=e&&e.$$typeof,e){case gv:case yv:case xv:case _v:case hv:return e;default:return t}}case Zb:return t}}}var Fme=hv,Lme=Jb,Nme=yv,Dme=pv,Bme=xv,zme=_v,Ume=Zb,Vme=mv,Wme=vv,qme=bv;Dt.ContextConsumer=gv;Dt.ContextProvider=Fme;Dt.Element=Lme;Dt.ForwardRef=Nme;Dt.Fragment=Dme;Dt.Lazy=Bme;Dt.Memo=zme;Dt.Portal=Ume;Dt.Profiler=Vme;Dt.StrictMode=Wme;Dt.Suspense=qme;Dt.isAsyncMode=function(){return!1};Dt.isConcurrentMode=function(){return!1};Dt.isContextConsumer=function(e){return Sa(e)===gv};Dt.isContextProvider=function(e){return Sa(e)===hv};Dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jb};Dt.isForwardRef=function(e){return Sa(e)===yv};Dt.isFragment=function(e){return Sa(e)===pv};Dt.isLazy=function(e){return Sa(e)===xv};Dt.isMemo=function(e){return Sa(e)===_v};Dt.isPortal=function(e){return Sa(e)===Zb};Dt.isProfiler=function(e){return Sa(e)===mv};Dt.isStrictMode=function(e){return Sa(e)===vv};Dt.isSuspense=function(e){return Sa(e)===bv};Dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pv||e===mv||e===K5||e===vv||e===bv||e===wP||e===Q5||typeof e=="object"&&e!==null&&(e.$$typeof===xv||e.$$typeof===_v||e.$$typeof===hv||e.$$typeof===gv||e.$$typeof===yv||e.$$typeof===G5||e.$$typeof===q5||e[0]===H5)};Dt.typeOf=Sa;W5.exports=Dt;var X5=W5.exports,Y5=d.createContext(void 0),su=function(e){var t=e.children,r=e.value;return r?d.createElement(Y5.Provider,{value:r},t):t},kr=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return d.createElement(su,{value:o},d.createElement(jl,null,t&&d.createElement(Yr,{path:"create/*",element:ch(t)}),a&&d.createElement(Yr,{path:":id/show/*",element:ch(a)}),r&&d.createElement(Yr,{path:":id/*",element:ch(r)}),n&&d.createElement(Yr,{path:"/*",element:ch(n)}),e.children))},ch=function(e){return d.isValidElement(e)?e:X5.isValidElementType(e)?d.createElement(e,null):null};kr.raName="Resource";kr.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,c=e.recordRepresentation,l=e.hasCreate,f=e.hasEdit,v=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!l,hasEdit:!!r||!!f,hasShow:!!s||!!v,icon:n,recordRepresentation:c}};var J5={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()})(ro,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"),c=new RegExp("_","g"),l=new RegExp("[ _]","g"),f=new RegExp("([A-Z])","g"),v=new RegExp("^_"),m={_apply_rules:function(h,x,w,O){if(O)h=O;else{var b=m.indexOf(w,h.toLowerCase())>-1;if(!b){for(var g=0,_=x.length;g<_;g++)if(h.match(x[g][0])){x[g][1]!==void 0&&(h=h.replace(x[g][0],x[g][1]));break}}}return h},indexOf:function(h,x,w,O){w||(w=-1);for(var b=-1,g=w,_=h.length;g<_;g++)if(h[g]===x||O&&O(h[g],x)){b=g;break}return b},pluralize:function(h,x){return m._apply_rules(h,o,r,x)},singularize:function(h,x){return m._apply_rules(h,a,r,x)},inflect:function(h,x,w,O){return x=parseInt(x,10),isNaN(x)?h:x===0||x>1?m._apply_rules(h,o,r,O):m._apply_rules(h,a,r,w)},camelize:function(h,x){for(var w=h.split("/"),O=0,b=w.length,g,_,$,P;O1?Rs.pluralize(r):Rs.singularize(r))});return a}},Ot=function(e){var t=d.useContext(Y5);return e&&e.resource||t},Ai=function(e){var t=Ot(e),r=e0(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,c=n.recordRepresentation,l=d.useMemo(function(){return iu({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:c},r[t])},[t,r,o,a,i,s,c]);return l},t0=function(e){var t=Ai({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?vt(r,t):d.isValidElement(t)?t:"#".concat(r.id):""},[t])},je=function(){var e=iP(),t=d.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:Gme},Gme=function(e){return e},Z5=function(){var e=je(),t=rB(),r=Ot();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,Qme({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},Kme="en",eB=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=Z5();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"}," *"))};eB.displayName="FieldTitle";const Vo=d.memo(eB),Qme=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=Xme(a),s=i.sourceWithoutDigits,c=i.sourceSuffix,l=Rs.transform(c.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 Xme=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){Yme(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},Yme=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 r0=function(e,t,r){if(e[t]&&!X5.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},Jme=function(){return d.createElement("span",null)},SP=function(e,t){};var Zme=typeof window<"u"?d.useLayoutEffect:d.useEffect,Yl=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return Zme(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:m)});return function(){return v()}},[e,a,t,n,s]);var l=Yl(function(f,v){var m=typeof f=="function"?f(s):f;o(e,typeof m>"u"?typeof v>"u"?t:v:m)});return[s,l]},ehe=function(e){var t=Bb().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])},the=function(e){var t=Bb().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])},rhe=function(){var e=Bb().reset;return e},wv=function(){var e=Ti(),t=Qo(),r=rhe(),n=Qa(),o=d.useRef(n),a=Fr(),i=d.useRef(a),s=Us(),c=Ia("".concat(s,"/").concat(Rb.loginUrl));d.useEffect(function(){i.current=a,o.current=n},[a,n]);var l=d.useCallback(function(v,m,h){return v===void 0&&(v={}),m===void 0&&(m=c),h===void 0&&(h=!0),e.logout(v).then(function(x){if(x===!1||m===!1){r(),t.clear();return}var w=x||m;if(w!=null&&w.startsWith("http"))return r(),t.clear(),window.location.href=w,w;var O=w.split("?"),b={pathname:O[0]},g={};return h&&i.current&&i.current.pathname&&(g={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),O[1]&&(b.search=O[1]),o.current(b,g),r(),t.clear(),x})},[e,r,c,t]),f=d.useCallback(function(v){return n({pathname:c},{state:{nextPathname:a&&a.pathname}}),r(),t.clear(),Promise.resolve()},[r,a,n,c,t]);return e?l:f},TS=function(){return TS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},kS=function(){return kS=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]"),Ed(t);var i=aB(t).permissions;if(o)return d.createElement(o,Yf({permissions:i},a));if(n)return n(Yf({permissions:i},a));if(r)return r(Yf({permissions:i},a))};const fhe=dhe;var iB=function(){var e=Ti(),t=Fr(),r=t.state,n=Qa(),o=Us(),a=y4().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,c=Ia("".concat(o,"/").concat(Rb.afterLoginUrl)),l=d.useCallback(function(v,m){return v===void 0&&(v={}),e.login(v).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var x=m||i+s||c;n(x)}return h})},[e,n,i,s,a,c]),f=d.useCallback(function(v,m){return a(),n(c),Promise.resolve()},[n,a,c]);return e?l:f},phe="AUTH_LOGIN",vhe="AUTH_CHECK",mhe="AUTH_ERROR",hhe="AUTH_LOGOUT",ghe="AUTH_GET_PERMISSIONS";const yhe=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},IS=function(){return IS=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 fn(r&&e?"".concat(r,".").concat(e):r??e,t)},OP=function(){return d.useContext(D5)},Rhe=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])},Ghe=function(e,t,r){var n=d.useContext(Ii).navigator,o=Fr(),a=je(),i=Sd(r?{control:r}:void 0),s=i.isSubmitSuccessful,c=i.isSubmitting,l=i.dirtyFields,f=Object.keys(l).length>0,v=d.useRef(t||o.pathname);d.useEffect(function(){if(!(!e||!f)&&n.block){var m=n.block(function(h){var x=h.location.pathname.startsWith(v.current),w=h.location.pathname.startsWith("".concat(v.current,"/show")),O=x&&!w;!c&&(O||s||window.confirm(a("ra.message.unsaved_changes")))?(m(),h.retry()):c&&setTimeout(function(){h.retry()},100)});return m}},[e,o,n,f,c,s,a])},Khe=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},LS=function(){return LS=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,}))$/,Ws=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function ege(e){return e?e.hasOwnProperty("message"):!1}var qs=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Hs=function(e){return Z3(e,function(){for(var t=[],r=0;re?qs(t,{max:e},r,n):void 0}});Hs(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Ws(r)&&re?qs(t,{max:e},r,n):void 0}}),hB=Hs(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Ws(t)&&isNaN(Number(t))?qs(e,void 0,t,r):void 0}}),CP=Z3(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Ws(r)&&typeof r=="string"&&!e.test(r)?qs(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Hs(function(e){return e===void 0&&(e="ra.validation.email"),CP(Zhe,e)});var age=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Hs(function(e,t){return t===void 0&&(t=age),function(r,n){return!Ws(r)&&e.indexOf(r)===-1?qs(t,{list:e},r,n):void 0}});var ige=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},gB=d.createContext(void 0),o0=function(){var e=d.useContext(dB);return e},sge=function(e){var t=e.children,r=e.name,n=o0();return d.useEffect(function(){if(!n||!n.registerGroup||!n.unregisterGroup){console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components");return}return n.registerGroup(r),function(){n.unregisterGroup(r)}},[n,r]),d.createElement(gB.Provider,{value:r},t)},yB=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=ht(t),s=Jo(),c=s.getValues,l=s.resetField,f=s.getFieldState,v=s.formState,m=s.reset,h=vt(i,a),x=vt(c(),a),w=f(a,v).isDirty;d.useEffect(function(){if(!(o==null||x!=null||h!=null||w)){var O=a.split(".").some(function(_){return lge.test(_)});if(O){var b=a.split(".").slice(0,-1).join("."),g=vt(c(),b);if(g==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(o),m({},{keepValues:!0});return}l(a,{defaultValue:o})}})},lge=/^\d+$/,bB=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,o=n===void 0?"id":n,a=e.disableValue,i=a===void 0?"disabled":a,s=e.translateChoice,c=s===void 0?!0:s,l=je(),f=d.useCallback(function(h){if(d.isValidElement(r))return d.createElement(Ms,{value:h},r);var x=typeof r=="function"?r(h):vt(h,r);return d.isValidElement(x)?x:c?l(String(x),{_:x}):String(x)},[r,l,c]),v=d.useCallback(function(h){return vt(h,o)},[o]),m=d.useCallback(function(h){return vt(h,i)},[i]);return{getChoiceText:f,getChoiceValue:v,getDisableValue:m}},uge=function(e){var t=Sd(),r=t.dirtyFields,n=t.touchedFields,o=t.errors,a=o0(),i=d.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0}),s=i[0],c=i[1],l=d.useCallback(function(){var f=a.getGroupFields(e),v=f.map(function(h){return{name:h,error:vt(o,h,void 0),isDirty:vt(r,h,!1)!==!1,isValid:vt(o,h,void 0)==null,isTouched:vt(n,h,!1)!==!1}}).filter(function(h){return h!=null}),m=cge(v);c(function(h){return Do(h,m)?h:m})},[r,o,n,a,e]);return d.useEffect(function(){l()},[JSON.stringify({dirtyFields:r,errors:o,touchedFields:n}),l]),d.useEffect(function(){return a.subscribe(e,function(){l()})},[a,e,l]),s},cge=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var o={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid};return o},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1})},_B=function(){var e=d.useContext(gB);return e},DS=function(){return DS=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)&&(r[o]=e[o]);return r}function xB(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Rge=/^((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)-.*))$/,Tge=xB(function(e){return Rge.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function kge(e){if(e.sheet)return e.sheet;for(var t=0;t0?Xr(Pd,--Gn):0,Wc--,Sr===10&&(Wc=1,i0--),Sr}function uo(){return Sr=Gn2||Bp(Sr)>3?"":" "}function Wge(e,t){for(;--t&&uo()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return Ov(e,Kh()+(t<6&&za()==32&&uo()==32))}function zS(e){for(;uo();)switch(Sr){case e:return Gn;case 34:case 39:e!==34&&e!==39&&zS(Sr);break;case 40:e===41&&zS(e);break;case 92:uo();break}return Gn}function qge(e,t){for(;uo()&&e+Sr!==57;)if(e+Sr===84&&za()===47)break;return"/*"+Ov(t,Gn-1)+"*"+a0(e===47?e:uo())}function Hge(e){for(;!Bp(za());)uo();return Ov(e,Gn)}function Gge(e){return PB(Xh("",null,null,null,[""],e=EB(e),0,[0],e))}function Xh(e,t,r,n,o,a,i,s,c){for(var l=0,f=0,v=i,m=0,h=0,x=0,w=1,O=1,b=1,g=0,_="",$=o,P=a,E=n,T=_;O;)switch(x=g,g=uo()){case 40:if(x!=108&&Xr(T,v-1)==58){BS(T+=Rt(Qh(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=Qh(g);break;case 9:case 10:case 13:case 32:T+=Vge(x);break;case 92:T+=Wge(Kh()-1,7);continue;case 47:switch(za()){case 42:case 47:dh(Kge(qge(uo(),Kh()),t,r),c);break;default:T+="/"}break;case 123*w:s[l++]=ja(T)*b;case 125*w:case 59:case 0:switch(g){case 0:case 125:O=0;case 59+f:b==-1&&(T=Rt(T,/\f/g,"")),h>0&&ja(T)-v&&dh(h>32?aM(T+";",n,r,v-1):aM(Rt(T," ","")+";",n,r,v-2),c);break;case 59:T+=";";default:if(dh(E=oM(T,t,r,l,f,o,s,_,$=[],P=[],v),a),g===123)if(f===0)Xh(T,t,E,E,$,a,v,s,P);else switch(m===99&&Xr(T,3)===110?100:m){case 100:case 108:case 109:case 115:Xh(e,E,E,n&&dh(oM(e,E,E,0,0,o,s,_,o,$=[],v),P),o,P,v,s,n?$:P);break;default:Xh(T,E,E,E,[""],P,0,s,P)}}l=f=h=0,w=b=1,_=T="",v=i;break;case 58:v=1+ja(T),h=x;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&Uge()==125)continue}switch(T+=a0(g),g*w){case 38:b=f>0?1:(T+="\f",-1);break;case 44:s[l++]=(ja(T)-1)*b,b=1;break;case 64:za()===45&&(T+=Qh(uo())),m=za(),f=v=ja(_=T+=Hge(Kh())),g++;break;case 45:x===45&&ja(T)==2&&(w=0)}}return a}function oM(e,t,r,n,o,a,i,s,c,l,f){for(var v=o-1,m=o===0?a:[""],h=$P(m),x=0,w=0,O=0;x0?m[b]+" "+g:Rt(g,/&\f/g,m[b])))&&(c[O++]=_);return s0(e,t,r,o===0?EP:s,c,l,f)}function Kge(e,t,r){return s0(e,t,r,wB,a0(zge()),Dp(e,2,-2),0)}function aM(e,t,r,n){return s0(e,t,r,PP,Dp(e,0,n),Dp(e,n+1,-1),n)}function xc(e,t){for(var r="",n=$P(e),o=0;o6)switch(Xr(e,t+1)){case 109:if(Xr(e,t+4)!==45)break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+yy+(Xr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~BS(e,"stretch")?$B(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xr(e,t+1)!==115)break;case 6444:switch(Xr(e,ja(e)-3-(~BS(e,"!important")&&10))){case 107:return Rt(e,":",":"+$t)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(Xr(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+sn+"$2box$3")+e}break;case 5936:switch(Xr(e,t+11)){case 114:return $t+e+sn+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+sn+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+sn+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+sn+e+e}return e}var nye=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case PP:t.return=$B(t.value,t.length);break;case SB:return xc([gf(t,{value:Rt(t.value,"@","@"+$t)})],o);case EP:if(t.length)return Bge(t.props,function(a){switch(Dge(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xc([gf(t,{props:[Rt(a,/:(read-\w+)/,":"+yy+"$1")]})],o);case"::placeholder":return xc([gf(t,{props:[Rt(a,/:(plac\w+)/,":"+$t+"input-$1")]}),gf(t,{props:[Rt(a,/:(plac\w+)/,":"+yy+"$1")]}),gf(t,{props:[Rt(a,/:(plac\w+)/,sn+"input-$1")]})],o)}return""})}},oye=[nye],RB=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(w){var O=w.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||oye,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var O=w.getAttribute("data-emotion").split(" "),b=1;b=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 hye={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},gye=/[A-Z]|^ms/g,yye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FB=function(t){return t.charCodeAt(1)===45},sM=function(t){return t!=null&&typeof t!="boolean"},Ox=xB(function(e){return FB(e)?e:e.replace(gye,"-$&").toLowerCase()}),lM=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(yye,function(n,o,a){return Aa={name:o,styles:a,next:Aa},o})}return hye[t]!==1&&!FB(t)&&typeof r=="number"&&r!==0?r+"px":r};function zp(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 Aa={name:r.name,styles:r.styles,next:Aa},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Aa={name:n.name,styles:n.styles,next:Aa},n=n.next;var o=r.styles+";";return o}return bye(e,t,r)}case"function":{if(e!==void 0){var a=Aa,i=r(e);return Aa=a,zp(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function bye(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Oye:Cye},fM=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},Eye=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return AB(r,n,o),xye(function(){return MB(r,n,o)}),null},Pye=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=fM(t,r,n),c=s||dM(o),l=!c("as");return function(){var f=arguments,v=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&v.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)v.push.apply(v,f);else{v.push(f[0][0]);for(var m=f.length,h=1;ht(Mye(o)?r:o):t;return S.jsx(Sye,{styles:n})}function jP(e,t){return US(e,t)}const WB=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Fye=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:VB,StyledEngineProvider:Aye,ThemeContext:Cv,css:lu,default:jP,internal_processStyles:WB,keyframes:Mi},Symbol.toStringTag,{value:"Module"}));function gi(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 qB(e){if(!gi(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=qB(e[r])}),t}function Pn(e,t,r={clone:!0}){const n=r.clone?j({},e):e;return gi(e)&&gi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(gi(t[o])&&o in e&&gi(e[o])?n[o]=Pn(e[o],t[o],r):r.clone?n[o]=gi(t[o])?qB(t[o]):t[o]:n[o]=t[o])}),n}const Lye=Object.freeze(Object.defineProperty({__proto__:null,default:Pn,isPlainObject:gi},Symbol.toStringTag,{value:"Module"})),Nye=["values","unit","step"],Dye=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)=>j({},r,{[n.key]:n.val}),{})};function HB(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=we(e,Nye),a=Dye(t),i=Object.keys(a);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function l(m,h){const x=i.indexOf(h);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:h)-n/100}${r})`}function f(m){return i.indexOf(m)+1`@media (min-width:${AP[e]}px)`};function ba(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||pM;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||pM;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||AP).indexOf(s)!==-1){const c=a.up(s);i[c]=r(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return r(t)}function GB(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function KB(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Uye(e,...t){const r=GB(e),n=[r,...t].reduce((o,a)=>Pn(o,a),{});return KB(Object.keys(r),n)}function Vye(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 Cx({values:e,breakpoints:t,base:r}){const n=r||Vye(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,c)=>(Array.isArray(e)?(i[s]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function xe(e){if(typeof e!="string")throw new Error(Pi(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Wye=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"}));function qc(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 by(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=qc(e,r)||n,t&&(o=t(o,n,e)),o}function gr(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],c=i.theme,l=qc(c,n)||{};return ba(i,s,v=>{let m=by(l,o,v);return v===m&&typeof v=="string"&&(m=by(l,o,`${t}${v==="default"?"":xe(v)}`,v)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[t],a}function qye(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Hye={m:"margin",p:"padding"},Gye={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kye=qye(e=>{if(e.length>2)if(vM[e])e=vM[e];else return[e];const[t,r]=e.split(""),n=Hye[t],o=Gye[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),MP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],FP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...MP,...FP];function Ev(e,t,r,n){var o;const a=(o=qc(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 LP(e){return Ev(e,"spacing",8)}function Zl(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 Qye(e,t){return r=>e.reduce((n,o)=>(n[o]=Zl(t,r),n),{})}function Xye(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Kye(r),a=Qye(o,n),i=e[r];return ba(e,i,a)}function QB(e,t){const r=LP(e.theme);return Object.keys(e).map(n=>Xye(e,t,n,r)).reduce(Jf,{})}function lr(e){return QB(e,MP)}lr.propTypes={};lr.filterProps=MP;function ur(e){return QB(e,FP)}ur.propTypes={};ur.filterProps=FP;function Yye(e=8){if(e.mui)return e;const t=LP({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 y0(...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]?Jf(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ao(e){return typeof e!="number"?e:`${e}px solid`}function Zo(e,t){return gr({prop:e,themeKey:"borders",transform:t})}const Jye=Zo("border",Ao),Zye=Zo("borderTop",Ao),ebe=Zo("borderRight",Ao),tbe=Zo("borderBottom",Ao),rbe=Zo("borderLeft",Ao),nbe=Zo("borderColor"),obe=Zo("borderTopColor"),abe=Zo("borderRightColor"),ibe=Zo("borderBottomColor"),sbe=Zo("borderLeftColor"),lbe=Zo("outline",Ao),ube=Zo("outlineColor"),b0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ev(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zl(t,n)});return ba(e,e.borderRadius,r)}return null};b0.propTypes={};b0.filterProps=["borderRadius"];y0(Jye,Zye,ebe,tbe,rbe,nbe,obe,abe,ibe,sbe,b0,lbe,ube);const _0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ev(e.theme,"spacing",8),r=n=>({gap:Zl(t,n)});return ba(e,e.gap,r)}return null};_0.propTypes={};_0.filterProps=["gap"];const x0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ev(e.theme,"spacing",8),r=n=>({columnGap:Zl(t,n)});return ba(e,e.columnGap,r)}return null};x0.propTypes={};x0.filterProps=["columnGap"];const w0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ev(e.theme,"spacing",8),r=n=>({rowGap:Zl(t,n)});return ba(e,e.rowGap,r)}return null};w0.propTypes={};w0.filterProps=["rowGap"];const cbe=gr({prop:"gridColumn"}),dbe=gr({prop:"gridRow"}),fbe=gr({prop:"gridAutoFlow"}),pbe=gr({prop:"gridAutoColumns"}),vbe=gr({prop:"gridAutoRows"}),mbe=gr({prop:"gridTemplateColumns"}),hbe=gr({prop:"gridTemplateRows"}),gbe=gr({prop:"gridTemplateAreas"}),ybe=gr({prop:"gridArea"});y0(_0,x0,w0,cbe,dbe,fbe,pbe,vbe,mbe,hbe,gbe,ybe);function wc(e,t){return t==="grey"?t:e}const bbe=gr({prop:"color",themeKey:"palette",transform:wc}),_be=gr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wc}),xbe=gr({prop:"backgroundColor",themeKey:"palette",transform:wc});y0(bbe,_be,xbe);function no(e){return e<=1&&e!==0?`${e*100}%`:e}const wbe=gr({prop:"width",transform:no}),NP=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])||AP[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:no(r)}};return ba(e,e.maxWidth,t)}return null};NP.filterProps=["maxWidth"];const Sbe=gr({prop:"minWidth",transform:no}),Obe=gr({prop:"height",transform:no}),Cbe=gr({prop:"maxHeight",transform:no}),Ebe=gr({prop:"minHeight",transform:no});gr({prop:"size",cssProperty:"width",transform:no});gr({prop:"size",cssProperty:"height",transform:no});const Pbe=gr({prop:"boxSizing"});y0(wbe,NP,Sbe,Obe,Cbe,Ebe,Pbe);const $be={border:{themeKey:"borders",transform:Ao},borderTop:{themeKey:"borders",transform:Ao},borderRight:{themeKey:"borders",transform:Ao},borderBottom:{themeKey:"borders",transform:Ao},borderLeft:{themeKey:"borders",transform:Ao},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ao},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b0},color:{themeKey:"palette",transform:wc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wc},backgroundColor:{themeKey:"palette",transform:wc},p:{style:ur},pt:{style:ur},pr:{style:ur},pb:{style:ur},pl:{style:ur},px:{style:ur},py:{style:ur},padding:{style:ur},paddingTop:{style:ur},paddingRight:{style:ur},paddingBottom:{style:ur},paddingLeft:{style:ur},paddingX:{style:ur},paddingY:{style:ur},paddingInline:{style:ur},paddingInlineStart:{style:ur},paddingInlineEnd:{style:ur},paddingBlock:{style:ur},paddingBlockStart:{style:ur},paddingBlockEnd:{style:ur},m:{style:lr},mt:{style:lr},mr:{style:lr},mb:{style:lr},ml:{style:lr},mx:{style:lr},my:{style:lr},margin:{style:lr},marginTop:{style:lr},marginRight:{style:lr},marginBottom:{style:lr},marginLeft:{style:lr},marginX:{style:lr},marginY:{style:lr},marginInline:{style:lr},marginInlineStart:{style:lr},marginInlineEnd:{style:lr},marginBlock:{style:lr},marginBlockStart:{style:lr},marginBlockEnd:{style:lr},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:_0},rowGap:{style:w0},columnGap:{style:x0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:no},maxWidth:{style:NP},minWidth:{transform:no},height:{transform:no},maxHeight:{transform:no},minHeight:{transform:no},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Pv=$be;function Rbe(...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 Tbe(e,t){return typeof e=="function"?e(t):e}function XB(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:f,style:v}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const m=qc(o,l)||{};return v?v(i):ba(i,n,x=>{let w=by(m,f,x);return x===w&&typeof x=="string"&&(w=by(m,f,`${r}${x==="default"?"":xe(x)}`,x)),c===!1?w:{[c]:w}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Pv;function s(c){let l=c;if(typeof c=="function")l=c(a);else if(typeof c!="object")return c;if(!l)return null;const f=GB(a.breakpoints),v=Object.keys(f);let m=f;return Object.keys(l).forEach(h=>{const x=Tbe(l[h],a);if(x!=null)if(typeof x=="object")if(i[h])m=Jf(m,e(h,x,a,i));else{const w=ba({theme:a},x,O=>({[h]:O}));Rbe(w,x)?m[h]=t({sx:x,theme:a}):m=Jf(m,w)}else m=Jf(m,e(h,x,a,i))}),KB(v,m)}return Array.isArray(o)?o.map(s):s(o)}return t}const YB=XB();YB.filterProps=["sx"];const $v=YB;function JB(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 kbe=["breakpoints","palette","spacing","shape"];function $d(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=we(e,kbe),s=HB(r),c=Yye(o);let l=Pn({breakpoints:s,direction:"ltr",components:{},palette:j({mode:"light"},n),spacing:c,shape:j({},zye,a)},i);return l.applyStyles=JB,l=t.reduce((f,v)=>Pn(f,v),l),l.unstable_sxConfig=j({},Pv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return $v({sx:v,theme:this})},l}const Ibe=Object.freeze(Object.defineProperty({__proto__:null,default:$d,private_createBreakpoints:HB,unstable_applyStyles:JB},Symbol.toStringTag,{value:"Module"}));function jbe(e){return Object.keys(e).length===0}function DP(e=null){const t=d.useContext(Cv);return!t||jbe(t)?e:t}const Abe=$d();function S0(e=Abe){return DP(e)}function Mbe({styles:e,themeId:t,defaultTheme:r={}}){const n=S0(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(VB,{styles:o})}const Fbe=["sx"],Lbe=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Pv;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function O0(e){const{sx:t}=e,r=we(e,Fbe),{systemProps:n,otherProps:o}=Lbe(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return gi(s)?j({},n,s):n}:a=j({},n,t),j({},o,{sx:a})}const Nbe=Object.freeze(Object.defineProperty({__proto__:null,default:$v,extendSxProp:O0,unstable_createStyleFunctionSx:XB,unstable_defaultSxConfig:Pv},Symbol.toStringTag,{value:"Module"})),mM=e=>e,Dbe=()=>{let e=mM;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mM}}},Bbe=Dbe(),BP=Bbe;function ZB(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"})($v);return d.forwardRef(function(c,l){const f=S0(r),v=O0(c),{className:m,component:h="div"}=v,x=we(v,zbe);return S.jsx(a,j({as:h,ref:l,className:$e(m,o?o(n):n),theme:t&&f[t]||f},x))})}const ez={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ve(e,t,r="Mui"){const n=ez[t];return n?`${r}-${n}`:`${BP.generate(e)}-${t}`}function He(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ve(e,o,r)}),n}var tz={exports:{}},Mt={};/** + * @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 zP=Symbol.for("react.element"),UP=Symbol.for("react.portal"),C0=Symbol.for("react.fragment"),E0=Symbol.for("react.strict_mode"),P0=Symbol.for("react.profiler"),$0=Symbol.for("react.provider"),R0=Symbol.for("react.context"),Vbe=Symbol.for("react.server_context"),T0=Symbol.for("react.forward_ref"),k0=Symbol.for("react.suspense"),I0=Symbol.for("react.suspense_list"),j0=Symbol.for("react.memo"),A0=Symbol.for("react.lazy"),Wbe=Symbol.for("react.offscreen"),rz;rz=Symbol.for("react.module.reference");function ea(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zP:switch(e=e.type,e){case C0:case P0:case E0:case k0:case I0:return e;default:switch(e=e&&e.$$typeof,e){case Vbe:case R0:case T0:case A0:case j0:case $0:return e;default:return t}}case UP:return t}}}Mt.ContextConsumer=R0;Mt.ContextProvider=$0;Mt.Element=zP;Mt.ForwardRef=T0;Mt.Fragment=C0;Mt.Lazy=A0;Mt.Memo=j0;Mt.Portal=UP;Mt.Profiler=P0;Mt.StrictMode=E0;Mt.Suspense=k0;Mt.SuspenseList=I0;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return ea(e)===R0};Mt.isContextProvider=function(e){return ea(e)===$0};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zP};Mt.isForwardRef=function(e){return ea(e)===T0};Mt.isFragment=function(e){return ea(e)===C0};Mt.isLazy=function(e){return ea(e)===A0};Mt.isMemo=function(e){return ea(e)===j0};Mt.isPortal=function(e){return ea(e)===UP};Mt.isProfiler=function(e){return ea(e)===P0};Mt.isStrictMode=function(e){return ea(e)===E0};Mt.isSuspense=function(e){return ea(e)===k0};Mt.isSuspenseList=function(e){return ea(e)===I0};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===C0||e===P0||e===E0||e===k0||e===I0||e===Wbe||typeof e=="object"&&e!==null&&(e.$$typeof===A0||e.$$typeof===j0||e.$$typeof===$0||e.$$typeof===R0||e.$$typeof===T0||e.$$typeof===rz||e.getModuleId!==void 0)};Mt.typeOf=ea;tz.exports=Mt;var Up=tz.exports;const qbe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function nz(e){const t=`${e}`.match(qbe);return t&&t[1]||""}function oz(e,t=""){return e.displayName||e.name||nz(e)||t}function hM(e,t,r){const n=oz(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Hbe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return oz(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Up.ForwardRef:return hM(e,e.render,"ForwardRef");case Up.Memo:return hM(e,e.type,"memo");default:return}}}const Gbe=Object.freeze(Object.defineProperty({__proto__:null,default:Hbe,getFunctionName:nz},Symbol.toStringTag,{value:"Module"})),Kbe=["ownerState"],Qbe=["variants"],Xbe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ybe(e){return Object.keys(e).length===0}function Jbe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ex(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zbe=$d(),e0e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fh({defaultTheme:e,theme:t,themeId:r}){return Ybe(t)?e:t[r]||t}function t0e(e){return e?(t,r)=>r[e]:null}function Yh(e,t){let{ownerState:r}=t,n=we(t,Kbe);const o=typeof e=="function"?e(j({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Yh(a,j({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=we(o,Qbe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props(j({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof c.style=="function"?c.style(j({ownerState:r},n,r)):c.style))}),s}return o}function r0e(e={}){const{themeId:t,defaultTheme:r=Zbe,rootShouldForwardProp:n=Ex,slotShouldForwardProp:o=Ex}=e,a=i=>$v(j({},i,{theme:fh(j({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{WB(i,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=t0e(e0e(l))}=s,h=we(s,Xbe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let O,b=Ex;l==="Root"||l==="root"?b=n:l?b=o:Jbe(i)&&(b=void 0);const g=jP(i,j({shouldForwardProp:b,label:O},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||gi(P)?E=>Yh(P,j({},E,{theme:fh({theme:E.theme,defaultTheme:r,themeId:t})})):P,$=(P,...E)=>{let T=_(P);const R=E?E.map(_):[];c&&m&&R.push(F=>{const L=fh(j({},F,{defaultTheme:r,themeId:t}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const D=L.components[c].styleOverrides,z={};return Object.entries(D).forEach(([H,G])=>{z[H]=Yh(G,j({},F,{theme:L}))}),m(F,z)}),c&&!x&&R.push(F=>{var L;const D=fh(j({},F,{defaultTheme:r,themeId:t})),z=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return Yh({variants:z},j({},F,{theme:D}))}),w||R.push(a);const I=R.length-E.length;if(Array.isArray(P)&&I>0){const F=new Array(I).fill("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}const az=r0e();function VP(e,t){const r=j({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=j({},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]=j({},a),Object.keys(o).forEach(i=>{r[n][i]=VP(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function iz(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:VP(t.components[r].defaultProps,n)}function WP({props:e,name:t,defaultTheme:r,themeId:n}){let o=S0(r);return n&&(o=o[n]||o),iz({theme:o,name:t,props:e})}const fo=typeof window<"u"?d.useLayoutEffect:d.useEffect;function n0e(e,t,r,n,o){const[a,i]=d.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return fo(()=>{let s=!0;if(!r)return;const c=r(e),l=()=>{s&&i(c.matches)};return l(),c.addListener(l),()=>{s=!1,c.removeListener(l)}},[e,r]),a}const sz=d.useSyncExternalStore;function o0e(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:f}=n(e);return()=>f}return a},[a,e,n,o,r]),[s,c]=d.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const f=r(e);return[()=>f.matches,v=>(f.addListener(v),()=>{f.removeListener(v)})]},[a,r,e]);return sz(c,s,i)}function Tn(e,t={}){const r=DP(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=iz({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(sz!==void 0?o0e:n0e)(c,o,a,i,s)}function lz(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const a0e=Object.freeze(Object.defineProperty({__proto__:null,default:lz},Symbol.toStringTag,{value:"Module"}));function uz(e,t=0,r=1){return lz(e,t,r)}function i0e(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 qP(e){if(e.type)return e;if(e.charAt(0)==="#")return qP(i0e(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Pi(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(Pi(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function cz(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 Hc(e,t){return e=qP(e),t=uz(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,cz(e)}function s0e(e,t){if(e=qP(e),t=uz(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 cz(e)}function WS(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Rd(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 l0e(e,t){return()=>null}function Jh(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 Er(e){return e&&e.ownerDocument||document}function Wo(e){return Er(e).defaultView||window}function u0e(e,t){return()=>null}function _y(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let gM=0;function c0e(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(gM+=1,r(`mui-${gM}`))},[t]),n}const yM=fw.useId;function eu(e){if(yM!==void 0){const t=yM();return e??t}return c0e(e)}function d0e(e,t,r,n,o){return null}function Gc({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,c=d.useCallback(l=>{o||i(l)},[]);return[s,c]}function Cn(e){const t=d.useRef(e);return fo(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function ir(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{_y(r,t)})},e)}const bM={};function f0e(e,t){const r=d.useRef(bM);return r.current===bM&&(r.current=e(t)),r}const p0e=[];function v0e(e){d.useEffect(e,p0e)}class Rv{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Rv}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Pl(){const e=f0e(Rv.create).current;return v0e(e.disposeEffect),e}let M0=!0,qS=!1;const m0e=new Rv,h0e={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 g0e(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&h0e[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function y0e(e){e.metaKey||e.altKey||e.ctrlKey||(M0=!0)}function Px(){M0=!1}function b0e(){this.visibilityState==="hidden"&&qS&&(M0=!0)}function _0e(e){e.addEventListener("keydown",y0e,!0),e.addEventListener("mousedown",Px,!0),e.addEventListener("pointerdown",Px,!0),e.addEventListener("touchstart",Px,!0),e.addEventListener("visibilitychange",b0e,!0)}function x0e(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return M0||g0e(t)}function F0(){const e=d.useCallback(o=>{o!=null&&_0e(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(qS=!0,m0e.start(100,()=>{qS=!1}),t.current=!1,!0):!1}function n(o){return x0e(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function dz(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Fu;function fz(){if(Fu)return Fu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Fu="reverse",e.scrollLeft>0?Fu="default":(e.scrollLeft=1,e.scrollLeft===0&&(Fu="negative")),document.body.removeChild(e),Fu}function w0e(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(fz()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function ze(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 S0e=d.createContext(null),pz=S0e;function vz(){return d.useContext(pz)}const O0e=typeof Symbol=="function"&&Symbol.for,C0e=O0e?Symbol.for("mui.nested"):"__THEME_NESTED__";function E0e(e,t){return typeof t=="function"?t(e):j({},e,t)}function P0e(e){const{children:t,theme:r}=e,n=vz(),o=d.useMemo(()=>{const a=n===null?r:E0e(n,r);return a!=null&&(a[C0e]=n!==null),a},[r,n]);return S.jsx(pz.Provider,{value:o,children:t})}const $0e=["value"],mz=d.createContext();function R0e(e){let{value:t}=e,r=we(e,$0e);return S.jsx(mz.Provider,j({value:t??!0},r))}const Gs=()=>{const e=d.useContext(mz);return e??!1},_M={};function xM(e,t,r,n=!1){return d.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?j({},t,{[e]:a}):a;return n?()=>i:i}return e?j({},t,{[e]:r}):j({},t,r)},[e,t,r,n])}function T0e(e){const{children:t,theme:r,themeId:n}=e,o=DP(_M),a=vz()||_M,i=xM(n,o,r),s=xM(n,a,r,!0),c=i.direction==="rtl";return S.jsx(P0e,{theme:s,children:S.jsx(Cv.Provider,{value:i,children:S.jsx(R0e,{value:c,children:t})})})}const k0e=["className","component","disableGutters","fixed","maxWidth","classes"],I0e=$d(),j0e=az("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),A0e=e=>WP({props:e,name:"MuiContainer",defaultTheme:I0e}),M0e=(e,t)=>{const r=c=>Ve(t,c),{classes:n,fixed:o,disableGutters:a,maxWidth:i}=e,s={root:["root",i&&`maxWidth${xe(String(i))}`,o&&"fixed",a&&"disableGutters"]};return ze(s,r,n)};function F0e(e={}){const{createStyledComponent:t=j0e,useThemeProps:r=A0e,componentName:n="MuiContainer"}=e,o=t(({theme:i,ownerState:s})=>j({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:s})=>s.fixed&&Object.keys(i.breakpoints.values).reduce((c,l)=>{const f=l,v=i.breakpoints.values[f];return v!==0&&(c[i.breakpoints.up(f)]={maxWidth:`${v}${i.breakpoints.unit}`}),c},{}),({theme:i,ownerState:s})=>j({},s.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[i.breakpoints.up(s.maxWidth)]:{maxWidth:`${i.breakpoints.values[s.maxWidth]}${i.breakpoints.unit}`}}));return d.forwardRef(function(s,c){const l=r(s),{className:f,component:v="div",disableGutters:m=!1,fixed:h=!1,maxWidth:x="lg"}=l,w=we(l,k0e),O=j({},l,{component:v,disableGutters:m,fixed:h,maxWidth:x}),b=M0e(O,n);return S.jsx(o,j({as:v,ownerState:O,className:$e(b.root,f),ref:c},w))})}const L0e=["component","direction","spacing","divider","children","className","useFlexGap"],N0e=$d(),D0e=az("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function B0e(e){return WP({props:e,name:"MuiStack",defaultTheme:N0e})}function z0e(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],V0e=({ownerState:e,theme:t})=>{let r=j({display:"flex",flexDirection:"column"},ba({theme:t},Cx({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=LP(t),o=Object.keys(t.breakpoints.values).reduce((c,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(c[l]=!0),c),{}),a=Cx({values:e.direction,base:o}),i=Cx({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,l,f)=>{if(!a[c]){const m=l>0?a[f[l-1]]:"column";a[c]=m}}),r=Pn(r,ba({theme:t},i,(c,l)=>e.useFlexGap?{gap:Zl(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${U0e(l?a[l]:e.direction)}`]:Zl(n,c)}}))}return r=Uye(t.breakpoints,r),r};function W0e(e={}){const{createStyledComponent:t=D0e,useThemeProps:r=B0e,componentName:n="MuiStack"}=e,o=()=>ze({root:["root"]},c=>Ve(n,c),{}),a=t(V0e);return d.forwardRef(function(c,l){const f=r(c),v=O0(f),{component:m="div",direction:h="column",spacing:x=0,divider:w,children:O,className:b,useFlexGap:g=!1}=v,_=we(v,L0e),$={direction:h,spacing:x,useFlexGap:g},P=o();return S.jsx(a,j({as:m,ownerState:$,ref:l,className:$e(P.root,b)},_,{children:w?z0e(O,w):O}))})}function q0e(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var yr={},hz={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})(hz);var We=hz.exports;const H0e=Ga($ge),G0e=Ga(a0e);var gz=We;Object.defineProperty(yr,"__esModule",{value:!0});var It=yr.alpha=xz;yr.blend=a1e;yr.colorChannel=void 0;var L0=yr.darken=GP;yr.decomposeColor=qo;var K0e=yr.emphasize=wz,Q0e=yr.getContrastRatio=e1e;yr.getLuminance=xy;yr.hexToRgb=yz;yr.hslToRgb=_z;var N0=yr.lighten=KP;yr.private_safeAlpha=t1e;yr.private_safeColorChannel=void 0;yr.private_safeDarken=r1e;yr.private_safeEmphasize=o1e;yr.private_safeLighten=n1e;yr.recomposeColor=Td;yr.rgbToHex=Z0e;var wM=gz(H0e),X0e=gz(G0e);function HP(e,t=0,r=1){return(0,X0e.default)(e,t,r)}function yz(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 Y0e(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function qo(e){if(e.type)return e;if(e.charAt(0)==="#")return qo(yz(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,wM.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,wM.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const bz=e=>{const t=qo(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};yr.colorChannel=bz;const J0e=(e,t)=>{try{return bz(e)}catch{return e}};yr.private_safeColorChannel=J0e;function Td(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 Z0e(e){if(e.indexOf("#")===0)return e;const{values:t}=qo(e);return`#${t.map((r,n)=>Y0e(n===3?Math.round(255*r):r)).join("")}`}function _z(e){e=qo(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,f=(l+r/30)%12)=>o-a*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),Td({type:s,values:c})}function xy(e){e=qo(e);let t=e.type==="hsl"||e.type==="hsla"?qo(_z(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 e1e(e,t){const r=xy(e),n=xy(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function xz(e,t){return e=qo(e),t=HP(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Td(e)}function t1e(e,t,r){try{return xz(e,t)}catch{return e}}function GP(e,t){if(e=qo(e),t=HP(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 Td(e)}function r1e(e,t,r){try{return GP(e,t)}catch{return e}}function KP(e,t){if(e=qo(e),t=HP(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 Td(e)}function n1e(e,t,r){try{return KP(e,t)}catch{return e}}function wz(e,t=.15){return xy(e)>.5?GP(e,t):KP(e,t)}function o1e(e,t,r){try{return wz(e,t)}catch{return e}}function a1e(e,t,r,n=1){const o=(c,l)=>Math.round((c**(1/n)*(1-r)+l**(1/n)*r)**n),a=qo(e),i=qo(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Td({type:"rgb",values:s})}const i1e=["mode","contrastThreshold","tonalOffset"],SM={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:Np.white,default:Np.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}},$x={text:{primary:Np.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:Np.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 OM(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=N0(e.main,o):t==="dark"&&(e.dark=L0(e.main,a)))}function s1e(e="light"){return e==="dark"?{main:ju[200],light:ju[50],dark:ju[400]}:{main:ju[700],light:ju[400],dark:ju[800]}}function l1e(e="light"){return e==="dark"?{main:Iu[200],light:Iu[50],dark:Iu[400]}:{main:Iu[500],light:Iu[300],dark:Iu[700]}}function u1e(e="light"){return e==="dark"?{main:ku[500],light:ku[300],dark:ku[700]}:{main:ku[700],light:ku[400],dark:ku[800]}}function c1e(e="light"){return e==="dark"?{main:Au[400],light:Au[300],dark:Au[700]}:{main:Au[700],light:Au[500],dark:Au[900]}}function d1e(e="light"){return e==="dark"?{main:Mu[400],light:Mu[300],dark:Mu[700]}:{main:Mu[800],light:Mu[500],dark:Mu[900]}}function f1e(e="light"){return e==="dark"?{main:hf[400],light:hf[300],dark:hf[700]}:{main:"#ed6c02",light:hf[500],dark:hf[900]}}function p1e(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=we(e,i1e),a=e.primary||s1e(t),i=e.secondary||l1e(t),s=e.error||u1e(t),c=e.info||c1e(t),l=e.success||d1e(t),f=e.warning||f1e(t);function v(w){return Q0e(w,$x.text.primary)>=r?$x.text.primary:SM.text.primary}const m=({color:w,name:O,mainShade:b=500,lightShade:g=300,darkShade:_=700})=>{if(w=j({},w),!w.main&&w[b]&&(w.main=w[b]),!w.hasOwnProperty("main"))throw new Error(Pi(11,O?` (${O})`:"",b));if(typeof w.main!="string")throw new Error(Pi(12,O?` (${O})`:"",JSON.stringify(w.main)));return OM(w,"light",g,n),OM(w,"dark",_,n),w.contrastText||(w.contrastText=v(w.main)),w},h={dark:$x,light:SM};return Pn(j({common:j({},Np),mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:l,name:"success"}),grey:Pge,contrastThreshold:r,getContrastText:v,augmentColor:m,tonalOffset:n},h[t]),o)}const v1e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function m1e(e){return Math.round(e*1e5)/1e5}const CM={textTransform:"uppercase"},EM='"Roboto", "Helvetica", "Arial", sans-serif';function h1e(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=EM,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:f,pxToRem:v}=r,m=we(r,v1e),h=o/14,x=v||(b=>`${b/l*h}rem`),w=(b,g,_,$,P)=>j({fontFamily:n,fontWeight:b,fontSize:x(g),lineHeight:_},n===EM?{letterSpacing:`${m1e($/g)}em`}:{},P,f),O={h1:w(a,96,1.167,-1.5),h2:w(a,60,1.2,-.5),h3:w(i,48,1.167,0),h4:w(i,34,1.235,.25),h5:w(i,24,1.334,0),h6:w(s,20,1.6,.15),subtitle1:w(i,16,1.75,.15),subtitle2:w(s,14,1.57,.1),body1:w(i,16,1.5,.15),body2:w(i,14,1.43,.15),button:w(s,14,1.75,.4,CM),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,CM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pn(j({htmlFontSize:l,pxToRem:x,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:c},O),m,{clone:!1})}const g1e=.2,y1e=.14,b1e=.12;function Zt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${g1e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${y1e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${b1e})`].join(",")}const _1e=["none",Zt(0,2,1,-1,0,1,1,0,0,1,3,0),Zt(0,3,1,-2,0,2,2,0,0,1,5,0),Zt(0,3,3,-2,0,3,4,0,0,1,8,0),Zt(0,2,4,-1,0,4,5,0,0,1,10,0),Zt(0,3,5,-1,0,5,8,0,0,1,14,0),Zt(0,3,5,-1,0,6,10,0,0,1,18,0),Zt(0,4,5,-2,0,7,10,1,0,2,16,1),Zt(0,5,5,-3,0,8,10,1,0,3,14,2),Zt(0,5,6,-3,0,9,12,1,0,3,16,2),Zt(0,6,6,-3,0,10,14,1,0,4,18,3),Zt(0,6,7,-4,0,11,15,1,0,4,20,3),Zt(0,7,8,-4,0,12,17,2,0,5,22,4),Zt(0,7,8,-4,0,13,19,2,0,5,24,4),Zt(0,7,9,-4,0,14,21,2,0,5,26,4),Zt(0,8,9,-5,0,15,22,2,0,6,28,5),Zt(0,8,10,-5,0,16,24,2,0,6,30,5),Zt(0,8,11,-5,0,17,26,2,0,6,32,5),Zt(0,9,11,-5,0,18,28,2,0,7,34,6),Zt(0,9,12,-6,0,19,29,2,0,7,36,6),Zt(0,10,13,-6,0,20,31,3,0,8,38,7),Zt(0,10,13,-6,0,21,33,3,0,8,40,7),Zt(0,10,14,-6,0,22,35,3,0,8,42,7),Zt(0,11,14,-7,0,23,36,3,0,9,44,8),Zt(0,11,15,-7,0,24,38,3,0,9,46,8)],x1e=["duration","easing","delay"],w1e={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)"},S1e={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function PM(e){return`${Math.round(e)}ms`}function O1e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function C1e(e){const t=j({},w1e,e.easing),r=j({},S1e,e.duration);return j({getAutoHeightDuration:O1e,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:c=0}=a;return we(a,x1e),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:PM(i)} ${s} ${typeof c=="string"?c:PM(c)}`).join(",")}},e,{easing:t,duration:r})}const E1e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},P1e=E1e,$1e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function wy(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=we(e,$1e);if(e.vars)throw new Error(Pi(18));const s=p1e(n),c=$d(e);let l=Pn(c,{mixins:q0e(c.breakpoints,r),palette:s,shadows:_1e.slice(),typography:h1e(s,a),transitions:C1e(o),zIndex:j({},P1e)});return l=Pn(l,i),l=t.reduce((f,v)=>Pn(f,v),l),l.unstable_sxConfig=j({},Pv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return $v({sx:v,theme:this})},l}const R1e=wy(),D0=R1e;function ta(){const e=S0(D0);return e[Jl]||e}function Ge({props:e,name:t}){return WP({props:e,name:t,defaultTheme:D0,themeId:Jl})}var Tv={},Rx={exports:{}},$M;function T1e(){return $M||($M=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(o[i]=r[i]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Tx)),Tx.exports}const Sz=Ga(Fye),I1e=Ga(Lye),j1e=Ga(Wye),A1e=Ga(Gbe),M1e=Ga(Ibe),F1e=Ga(Nbe);var kd=We;Object.defineProperty(Tv,"__esModule",{value:!0});var L1e=Tv.default=X1e;Tv.shouldForwardProp=Zh;Tv.systemDefaultTheme=void 0;var Ro=kd(T1e()),HS=kd(k1e()),TM=W1e(Sz),N1e=I1e;kd(j1e);kd(A1e);var D1e=kd(M1e),B1e=kd(F1e);const z1e=["ownerState"],U1e=["variants"],V1e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Oz(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Oz=function(n){return n?r:t})(e)}function W1e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Oz(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 q1e(e){return Object.keys(e).length===0}function H1e(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const G1e=Tv.systemDefaultTheme=(0,D1e.default)(),K1e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ph({defaultTheme:e,theme:t,themeId:r}){return q1e(t)?e:t[r]||t}function Q1e(e){return e?(t,r)=>r[e]:null}function eg(e,t){let{ownerState:r}=t,n=(0,HS.default)(t,z1e);const o=typeof e=="function"?e((0,Ro.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>eg(a,(0,Ro.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,HS.default)(o,U1e);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props((0,Ro.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof c.style=="function"?c.style((0,Ro.default)({ownerState:r},n,r)):c.style))}),s}return o}function X1e(e={}){const{themeId:t,defaultTheme:r=G1e,rootShouldForwardProp:n=Zh,slotShouldForwardProp:o=Zh}=e,a=i=>(0,B1e.default)((0,Ro.default)({},i,{theme:ph((0,Ro.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,TM.internal_processStyles)(i,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=Q1e(K1e(l))}=s,h=(0,HS.default)(s,V1e),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let O,b=Zh;l==="Root"||l==="root"?b=n:l?b=o:H1e(i)&&(b=void 0);const g=(0,TM.default)(i,(0,Ro.default)({shouldForwardProp:b,label:O},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||(0,N1e.isPlainObject)(P)?E=>eg(P,(0,Ro.default)({},E,{theme:ph({theme:E.theme,defaultTheme:r,themeId:t})})):P,$=(P,...E)=>{let T=_(P);const R=E?E.map(_):[];c&&m&&R.push(F=>{const L=ph((0,Ro.default)({},F,{defaultTheme:r,themeId:t}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const D=L.components[c].styleOverrides,z={};return Object.entries(D).forEach(([H,G])=>{z[H]=eg(G,(0,Ro.default)({},F,{theme:L}))}),m(F,z)}),c&&!x&&R.push(F=>{var L;const D=ph((0,Ro.default)({},F,{defaultTheme:r,themeId:t})),z=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return eg({variants:z},(0,Ro.default)({},F,{theme:D}))}),w||R.push(a);const I=R.length-E.length;if(Array.isArray(P)&&I>0){const F=new Array(I).fill("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}function Cz(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Y1e=e=>Cz(e)&&e!=="classes",tn=Y1e,J=L1e({themeId:Jl,defaultTheme:D0,rootShouldForwardProp:tn}),J1e=["theme"];function Z1e(e){let{theme:t}=e,r=we(e,J1e);const n=t[Jl];return S.jsx(T0e,j({},r,{themeId:n?Jl:void 0,theme:n||t}))}const kM=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function e_e(e){return Ve("MuiSvgIcon",e)}He("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const t_e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],r_e=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return ze(o,e_e,n)},n_e=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,c,l,f,v,m,h,x;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||(c=s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem",large:((l=e.typography)==null||(f=l.pxToRem)==null?void 0:f.call(l,35))||"2.1875rem"}[t.fontSize],color:(v=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?v:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),GS=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:f=!1,titleAccess:v,viewBox:m="0 0 24 24"}=n,h=we(n,t_e),x=d.isValidElement(o)&&o.type==="svg",w=j({},n,{color:i,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:x}),O={};f||(O.viewBox=m);const b=r_e(w);return S.jsxs(n_e,j({as:s,className:$e(b.root,a),focusable:"false",color:l,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r},O,h,x&&o.props,{ownerState:w,children:[x?o.props.children:o,v?S.jsx("title",{children:v}):null]}))});GS.muiName="SvgIcon";function go(e,t){function r(n,o){return S.jsx(GS,j({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=GS.muiName,d.memo(d.forwardRef(r))}const o_e={configure:e=>{BP.configure(e)}},a_e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:xe,createChainedFunction:WS,createSvgIcon:go,debounce:Rd,deprecatedPropType:l0e,isMuiElement:Jh,ownerDocument:Er,ownerWindow:Wo,requirePropFactory:u0e,setRef:_y,unstable_ClassNameGenerator:o_e,unstable_useEnhancedEffect:fo,unstable_useId:eu,unsupportedProp:d0e,useControlled:Gc,useEventCallback:Cn,useForkRef:ir,useIsFocusVisible:F0},Symbol.toStringTag,{value:"Module"}));function Ez(e){return Ge}const IM={disabled:!1},Sy=ve.createContext(null);var i_e=function(t){return t.scrollTop},Af="unmounted",yl="exited",bl="entering",Uu="entered",KS="exiting",Fi=function(e){ki(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,c;return a.appearStatus=null,n.in?s?(c=yl,a.appearStatus=bl):c=Uu:n.unmountOnExit||n.mountOnEnter?c=Af:c=yl,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Af?{status:yl}: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!==bl&&i!==Uu&&(a=bl):(i===bl||i===Uu)&&(a=KS)}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===bl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:If.findDOMNode(this);i&&i_e(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yl&&this.setState({status:Af})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[If.findDOMNode(this),s],l=c[0],f=c[1],v=this.getTimeouts(),m=s?v.appear:v.enter;if(!o&&!i||IM.disabled){this.safeSetState({status:Uu},function(){a.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:bl},function(){a.props.onEntering(l,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Uu},function(){a.props.onEntered(l,f)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:If.findDOMNode(this);if(!a||IM.disabled){this.safeSetState({status:yl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:KS},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:yl},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:If.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=c[0],f=c[1];this.props.addEndListener(l,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Af)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=we(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Sy.Provider,{value:null},typeof i=="function"?i(o,s):ve.cloneElement(ve.Children.only(i),s))},t}(ve.Component);Fi.contextType=Sy;Fi.propTypes={};function Lu(){}Fi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lu,onEntering:Lu,onEntered:Lu,onExit:Lu,onExiting:Lu,onExited:Lu};Fi.UNMOUNTED=Af;Fi.EXITED=yl;Fi.ENTERING=bl;Fi.ENTERED=Uu;Fi.EXITING=KS;const QP=Fi;function XP(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 s_e(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}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 c in t){if(n[c])for(i=0;ie.scrollTop;function Kc(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 p_e(e){return Ve("MuiPaper",e)}He("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 v_e=["className","component","elevation","square","variant"],m_e=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ze(a,p_e,o)},h_e=J("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 j({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"&&j({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${It("#fff",kM(t.elevation))}, ${It("#fff",kM(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),g_e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:c="elevation"}=n,l=we(n,v_e),f=j({},n,{component:a,elevation:i,square:s,variant:c}),v=m_e(f);return S.jsx(h_e,j({as:a,ownerState:f,className:$e(v.root,o),ref:r},l))}),Ks=g_e;function Vp(e){return typeof e=="string"}function dc(e,t,r){return e===void 0||Vp(e)?t:j({},t,{ownerState:j({},t.ownerState,r)})}const y_e={disableDefaultClasses:!1},b_e=d.createContext(y_e);function __e(e){const{disableDefaultClasses:t}=d.useContext(b_e);return r=>t?"":e(r)}function Oy(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 Pz(e,t,r){return typeof e=="function"?e(t,r):e}function jM(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 $z(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const h=$e(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),x=j({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),w=j({},r,o,n);return h.length>0&&(w.className=h),Object.keys(x).length>0&&(w.style=x),{props:w,internalRef:void 0}}const i=Oy(j({},o,n)),s=jM(n),c=jM(o),l=t(i),f=$e(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),v=j({},l==null?void 0:l.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=j({},l,r,c,s);return f.length>0&&(m.className=f),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:l.ref}}const x_e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ho(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=we(e,x_e),s=a?{}:Pz(n,o),{props:c,internalRef:l}=$z(j({},i,{externalSlotProps:s})),f=ir(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return dc(r,j({},c,{ref:f}),o)}const w_e=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],S_e=["component","slots","slotProps"],O_e=["component"];function C_e(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,c=we(t,w_e),{component:l,slots:f={[e]:void 0},slotProps:v={[e]:void 0}}=a,m=we(a,S_e),h=f[e]||n,x=Pz(v[e],o),w=$z(j({className:r},c,{externalForwardedProps:e==="root"?m:void 0,externalSlotProps:x})),{props:{component:O},internalRef:b}=w,g=we(w.props,O_e),_=ir(b,x==null?void 0:x.ref,t.ref),$=i?i(g):{},P=j({},o,$),E=e==="root"?O||l:O,T=dc(h,j({},e==="root"&&!l&&!f[e]&&s,e!=="root"&&!f[e]&&s,g,E&&{as:E},{ref:_}),P);return Object.keys($).forEach(R=>{delete T[R]}),[h,T]}function E_e(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:c,timeout:l}=e,[f,v]=d.useState(!1),m=$e(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},x=$e(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&v(!0),d.useEffect(()=>{if(!s&&c!=null){const w=setTimeout(c,l);return()=>{clearTimeout(w)}}},[c,s,l]),S.jsx("span",{className:m,style:h,children:S.jsx("span",{className:x})})}const To=He("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),P_e=["center","classes","className"];let B0=e=>e,AM,MM,FM,LM;const QS=550,$_e=80,R_e=Mi(AM||(AM=B0` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),T_e=Mi(MM||(MM=B0` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),k_e=Mi(FM||(FM=B0` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),I_e=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),j_e=J(E_e,{name:"MuiTouchRipple",slot:"Ripple"})(LM||(LM=B0` + 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; + } +`),To.rippleVisible,R_e,QS,({theme:e})=>e.transitions.easing.easeInOut,To.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,To.child,To.childLeaving,T_e,QS,({theme:e})=>e.transitions.easing.easeInOut,To.childPulsate,k_e,({theme:e})=>e.transitions.easing.easeInOut),A_e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=we(n,P_e),[c,l]=d.useState([]),f=d.useRef(0),v=d.useRef(null);d.useEffect(()=>{v.current&&(v.current(),v.current=null)},[c]);const m=d.useRef(!1),h=Pl(),x=d.useRef(null),w=d.useRef(null),O=d.useCallback($=>{const{pulsate:P,rippleX:E,rippleY:T,rippleSize:R,cb:I}=$;l(A=>[...A,S.jsx(j_e,{classes:{ripple:$e(a.ripple,To.ripple),rippleVisible:$e(a.rippleVisible,To.rippleVisible),ripplePulsate:$e(a.ripplePulsate,To.ripplePulsate),child:$e(a.child,To.child),childLeaving:$e(a.childLeaving,To.childLeaving),childPulsate:$e(a.childPulsate,To.childPulsate)},timeout:QS,pulsate:P,rippleX:E,rippleY:T,rippleSize:R},f.current)]),f.current+=1,v.current=I},[a]),b=d.useCallback(($={},P={},E=()=>{})=>{const{pulsate:T=!1,center:R=o||P.pulsate,fakeElement:I=!1}=P;if(($==null?void 0:$.type)==="mousedown"&&m.current){m.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(m.current=!0);const A=I?null:w.current,F=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,D,z;if(R||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)L=Math.round(F.width/2),D=Math.round(F.height/2);else{const{clientX:H,clientY:G}=$.touches&&$.touches.length>0?$.touches[0]:$;L=Math.round(H-F.left),D=Math.round(G-F.top)}if(R)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-L),L)*2+2,G=Math.max(Math.abs((A?A.clientHeight:0)-D),D)*2+2;z=Math.sqrt(H**2+G**2)}$!=null&&$.touches?x.current===null&&(x.current=()=>{O({pulsate:T,rippleX:L,rippleY:D,rippleSize:z,cb:E})},h.start($_e,()=>{x.current&&(x.current(),x.current=null)})):O({pulsate:T,rippleX:L,rippleY:D,rippleSize:z,cb:E})},[o,O,h]),g=d.useCallback(()=>{b({},{pulsate:!0})},[b]),_=d.useCallback(($,P)=>{if(h.clear(),($==null?void 0:$.type)==="touchend"&&x.current){x.current(),x.current=null,h.start(0,()=>{_($,P)});return}x.current=null,l(E=>E.length>0?E.slice(1):E),v.current=P},[h]);return d.useImperativeHandle(r,()=>({pulsate:g,start:b,stop:_}),[g,b,_]),S.jsx(I_e,j({className:$e(To.root,a.root,i),ref:w},s,{children:S.jsx(f_e,{component:null,exit:!0,children:c})}))}),M_e=A_e;function F_e(e){return Ve("MuiButtonBase",e)}const L_e=He("MuiButtonBase",["root","disabled","focusVisible"]),N_e=["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"],D_e=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ze({root:["root",t&&"disabled",r&&"focusVisible"]},F_e,o);return r&&n&&(i.root+=` ${n}`),i},B_e=J("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"},[`&.${L_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),z_e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:c="button",disabled:l=!1,disableRipple:f=!1,disableTouchRipple:v=!1,focusRipple:m=!1,LinkComponent:h="a",onBlur:x,onClick:w,onContextMenu:O,onDragLeave:b,onFocus:g,onFocusVisible:_,onKeyDown:$,onKeyUp:P,onMouseDown:E,onMouseLeave:T,onMouseUp:R,onTouchEnd:I,onTouchMove:A,onTouchStart:F,tabIndex:L=0,TouchRippleProps:D,touchRippleRef:z,type:H}=n,G=we(n,N_e),q=d.useRef(null),U=d.useRef(null),W=ir(U,z),{isFocusVisibleRef:te,onFocus:ne,onBlur:ee,ref:Oe}=F0(),[de,oe]=d.useState(!1);l&&de&&oe(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{oe(!0),q.current.focus()}}),[]);const[me,Re]=d.useState(!1);d.useEffect(()=>{Re(!0)},[]);const ye=me&&!f&&!l;d.useEffect(()=>{de&&m&&!f&&me&&U.current.pulsate()},[f,m,de,me]);function fe(De,ft,Et=v){return Cn(Ct=>(ft&&ft(Ct),!Et&&U.current&&U.current[De](Ct),!0))}const ge=fe("start",E),ce=fe("stop",O),pe=fe("stop",b),ae=fe("stop",R),Se=fe("stop",De=>{de&&De.preventDefault(),T&&T(De)}),Ce=fe("start",F),Ne=fe("stop",I),Xe=fe("stop",A),V=fe("stop",De=>{ee(De),te.current===!1&&oe(!1),x&&x(De)},!1),X=Cn(De=>{q.current||(q.current=De.currentTarget),ne(De),te.current===!0&&(oe(!0),_&&_(De)),g&&g(De)}),Y=()=>{const De=q.current;return c&&c!=="button"&&!(De.tagName==="A"&&De.href)},ie=d.useRef(!1),se=Cn(De=>{m&&!ie.current&&de&&U.current&&De.key===" "&&(ie.current=!0,U.current.stop(De,()=>{U.current.start(De)})),De.target===De.currentTarget&&Y()&&De.key===" "&&De.preventDefault(),$&&$(De),De.target===De.currentTarget&&Y()&&De.key==="Enter"&&!l&&(De.preventDefault(),w&&w(De))}),ue=Cn(De=>{m&&De.key===" "&&U.current&&de&&!De.defaultPrevented&&(ie.current=!1,U.current.stop(De,()=>{U.current.pulsate(De)})),P&&P(De),w&&De.target===De.currentTarget&&Y()&&De.key===" "&&!De.defaultPrevented&&w(De)});let Ee=c;Ee==="button"&&(G.href||G.to)&&(Ee=h);const Ie={};Ee==="button"?(Ie.type=H===void 0?"button":H,Ie.disabled=l):(!G.href&&!G.to&&(Ie.role="button"),l&&(Ie["aria-disabled"]=l));const at=ir(r,Oe,q),ot=j({},n,{centerRipple:a,component:c,disabled:l,disableRipple:f,disableTouchRipple:v,focusRipple:m,tabIndex:L,focusVisible:de}),Le=D_e(ot);return S.jsxs(B_e,j({as:Ee,className:$e(Le.root,s),ownerState:ot,onBlur:V,onClick:w,onContextMenu:ce,onFocus:X,onKeyDown:se,onKeyUp:ue,onMouseDown:ge,onMouseLeave:Se,onMouseUp:ae,onDragLeave:pe,onTouchEnd:Ne,onTouchMove:Xe,onTouchStart:Ce,ref:at,tabIndex:l?-1:L,type:H},Ie,G,{children:[i,ye?S.jsx(M_e,j({ref:W,center:a},D)):null]}))}),Li=z_e;function U_e(e){return Ve("MuiIconButton",e)}const V_e=He("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),W_e=["edge","children","className","color","disabled","disableFocusRipple","size"],q_e=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,o&&`edge${xe(o)}`,`size${xe(a)}`]};return ze(i,U_e,t)},H_e=J(Li,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>j({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})`:It(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 j({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&j({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":j({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(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)},{[`&.${V_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),G_e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:c=!1,disableFocusRipple:l=!1,size:f="medium"}=n,v=we(n,W_e),m=j({},n,{edge:o,color:s,disabled:c,disableFocusRipple:l,size:f}),h=q_e(m);return S.jsx(H_e,j({className:$e(h.root,i),centerRipple:!0,focusRipple:!l,disabled:c,ref:r},v,{ownerState:m,children:a}))}),nr=G_e;function K_e(e){return Ve("MuiTypography",e)}He("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Q_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],X_e=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return ze(s,K_e,i)},Y_e=J("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${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>j({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})),NM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},J_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Z_e=e=>J_e[e]||e,exe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTypography"}),o=Z_e(n.color),a=O0(j({},n,{color:o})),{align:i="inherit",className:s,component:c,gutterBottom:l=!1,noWrap:f=!1,paragraph:v=!1,variant:m="body1",variantMapping:h=NM}=a,x=we(a,Q_e),w=j({},a,{align:i,color:o,className:s,component:c,gutterBottom:l,noWrap:f,paragraph:v,variant:m,variantMapping:h}),O=c||(v?"p":h[m]||NM[m])||"span",b=X_e(w);return S.jsx(Y_e,j({as:O,ref:r,ownerState:w,className:$e(b.root,s)},x))}),it=exe;function txe(e){return Ve("MuiAppBar",e)}He("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const rxe=["className","color","enableColorOnDark","position"],nxe=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return ze(o,txe,n)},vh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,oxe=J(Ks,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return j({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&&j({},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"&&j({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&j({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:vh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:vh(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:vh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:vh(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"}))}),axe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,c=we(n,rxe),l=j({},n,{color:a,position:s,enableColorOnDark:i}),f=nxe(l);return S.jsx(oxe,j({square:!0,component:"header",ownerState:l,elevation:4,className:$e(f.root,o,s==="fixed"&&"mui-fixed"),ref:r},c))}),ixe=axe,Rz="base";function sxe(e){return`${Rz}--${e}`}function lxe(e,t){return`${Rz}-${e}-${t}`}function Tz(e,t){const r=ez[t];return r?sxe(r):lxe(e,t)}function uxe(e,t){const r={};return t.forEach(n=>{r[n]=Tz(e,n)}),r}function DM(e){return e.substring(2).toLowerCase()}function cxe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=ir(t.ref,s),v=Cn(x=>{const w=l.current;l.current=!1;const O=Er(s.current);if(!c.current||!s.current||"clientX"in x&&cxe(x,O))return;if(i.current){i.current=!1;return}let b;x.composedPath?b=x.composedPath().indexOf(s.current)>-1:b=!O.documentElement.contains(x.target)||s.current.contains(x.target),!b&&(r||!w)&&o(x)}),m=x=>w=>{l.current=!0;const O=t.props[x];O&&O(w)},h={ref:f};return a!==!1&&(h[a]=m(a)),d.useEffect(()=>{if(a!==!1){const x=DM(a),w=Er(s.current),O=()=>{i.current=!0};return w.addEventListener(x,v),w.addEventListener("touchmove",O),()=>{w.removeEventListener(x,v),w.removeEventListener("touchmove",O)}}},[v,a]),n!==!1&&(h[n]=m(n)),d.useEffect(()=>{if(n!==!1){const x=DM(n),w=Er(s.current);return w.addEventListener(x,v),()=>{w.removeEventListener(x,v)}}},[v,n]),S.jsx(d.Fragment,{children:d.cloneElement(t,h)})}const fxe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pxe(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 vxe(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 mxe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||vxe(e))}function hxe(e){const t=[],r=[];return Array.from(e.querySelectorAll(fxe)).forEach((n,o)=>{const a=pxe(n);a===-1||!mxe(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 gxe(){return!0}function yxe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=hxe,isEnabled:i=gxe,open:s}=e,c=d.useRef(!1),l=d.useRef(null),f=d.useRef(null),v=d.useRef(null),m=d.useRef(null),h=d.useRef(!1),x=d.useRef(null),w=ir(t.ref,x),O=d.useRef(null);d.useEffect(()=>{!s||!x.current||(h.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!x.current)return;const _=Er(x.current);return x.current.contains(_.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),h.current&&x.current.focus()),()=>{o||(v.current&&v.current.focus&&(c.current=!0,v.current.focus()),v.current=null)}},[s]),d.useEffect(()=>{if(!s||!x.current)return;const _=Er(x.current),$=T=>{O.current=T,!(n||!i()||T.key!=="Tab")&&_.activeElement===x.current&&T.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const T=x.current;if(T===null)return;if(!_.hasFocus()||!i()||c.current){c.current=!1;return}if(T.contains(_.activeElement)||n&&_.activeElement!==l.current&&_.activeElement!==f.current)return;if(_.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!h.current)return;let R=[];if((_.activeElement===l.current||_.activeElement===f.current)&&(R=a(x.current)),R.length>0){var I,A;const F=!!((I=O.current)!=null&&I.shiftKey&&((A=O.current)==null?void 0:A.key)==="Tab"),L=R[0],D=R[R.length-1];typeof L!="string"&&typeof D!="string"&&(F?D.focus():L.focus())}else T.focus()};_.addEventListener("focusin",P),_.addEventListener("keydown",$,!0);const E=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(E),_.removeEventListener("focusin",P),_.removeEventListener("keydown",$,!0)}},[r,n,o,i,s,a]);const b=_=>{v.current===null&&(v.current=_.relatedTarget),h.current=!0,m.current=_.target;const $=t.props.onFocus;$&&$(_)},g=_=>{v.current===null&&(v.current=_.relatedTarget),h.current=!0};return S.jsxs(d.Fragment,{children:[S.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:w,onFocus:b}),S.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:f,"data-testid":"sentinelEnd"})]})}function bxe(e){return typeof e=="function"?e():e}const kz=d.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=d.useState(null),c=ir(d.isValidElement(n)?n.ref:null,r);if(fo(()=>{a||s(bxe(o)||document.body)},[o,a]),fo(()=>{if(i&&!a)return _y(r,i),()=>{_y(r,null)}},[r,i,a]),a){if(d.isValidElement(n)){const l={ref:c};return d.cloneElement(n,l)}return S.jsx(d.Fragment,{children:n})}return S.jsx(d.Fragment,{children:i&&$b.createPortal(n,i)})});function _xe(e){const t=Er(e);return t.body===e?Wo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Zf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function BM(e){return parseInt(Wo(e).getComputedStyle(e).paddingRight,10)||0}function xxe(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 zM(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,c=!xxe(i);s&&c&&Zf(i,o)})}function kx(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function wxe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(_xe(n)){const i=dz(Er(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${BM(n)+i}px`;const s=Er(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${BM(c)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Er(n).body;else{const i=n.parentElement,s=Wo(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 Sxe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Oxe{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&&Zf(t.modalRef,!1);const o=Sxe(r);zM(r,t.mount,t.modalRef,o,!0);const a=kx(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=kx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=wxe(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=kx(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&&Zf(t.modalRef,r),zM(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&&Zf(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Cxe(e){return typeof e=="function"?e():e}function Exe(e){return e?e.props.hasOwnProperty("in"):!1}const Pxe=new Oxe;function $xe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Pxe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:c,onClose:l,open:f,rootRef:v}=e,m=d.useRef({}),h=d.useRef(null),x=d.useRef(null),w=ir(x,v),[O,b]=d.useState(!f),g=Exe(c);let _=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(_=!1);const $=()=>Er(h.current),P=()=>(m.current.modalRef=x.current,m.current.mount=h.current,m.current),E=()=>{o.mount(P(),{disableScrollLock:n}),x.current&&(x.current.scrollTop=0)},T=Cn(()=>{const G=Cxe(t)||$().body;o.add(P(),G),x.current&&E()}),R=d.useCallback(()=>o.isTopModal(P()),[o]),I=Cn(G=>{h.current=G,G&&(f&&R()?E():x.current&&Zf(x.current,_))}),A=d.useCallback(()=>{o.remove(P(),_)},[_,o]);d.useEffect(()=>()=>{A()},[A]),d.useEffect(()=>{f?T():(!g||!a)&&A()},[f,A,g,a,T]);const F=G=>q=>{var U;(U=G.onKeyDown)==null||U.call(G,q),!(q.key!=="Escape"||q.which===229||!R())&&(r||(q.stopPropagation(),l&&l(q,"escapeKeyDown")))},L=G=>q=>{var U;(U=G.onClick)==null||U.call(G,q),q.target===q.currentTarget&&l&&l(q,"backdropClick")};return{getRootProps:(G={})=>{const q=Oy(e);delete q.onTransitionEnter,delete q.onTransitionExited;const U=j({},q,G);return j({role:"presentation"},U,{onKeyDown:F(U),ref:w})},getBackdropProps:(G={})=>{const q=G;return j({"aria-hidden":!0},q,{onClick:L(q),open:f})},getTransitionProps:()=>{const G=()=>{b(!1),i&&i()},q=()=>{b(!0),s&&s(),a&&A()};return{onEnter:WS(G,c==null?void 0:c.props.onEnter),onExited:WS(q,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:I,isTopModal:R,exited:O,hasTransition:g}}var qn="top",Go="bottom",Ko="right",Hn="left",ZP="auto",kv=[qn,Go,Ko,Hn],Qc="start",Wp="end",Rxe="clippingParents",Iz="viewport",yf="popper",Txe="reference",UM=kv.reduce(function(e,t){return e.concat([t+"-"+Qc,t+"-"+Wp])},[]),jz=[].concat(kv,[ZP]).reduce(function(e,t){return e.concat([t,t+"-"+Qc,t+"-"+Wp])},[]),kxe="beforeRead",Ixe="read",jxe="afterRead",Axe="beforeMain",Mxe="main",Fxe="afterMain",Lxe="beforeWrite",Nxe="write",Dxe="afterWrite",Bxe=[kxe,Ixe,jxe,Axe,Mxe,Fxe,Lxe,Nxe,Dxe];function qa(e){return e?(e.nodeName||"").toLowerCase():null}function po(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tu(e){var t=po(e).Element;return e instanceof t||e instanceof Element}function Bo(e){var t=po(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function e$(e){if(typeof ShadowRoot>"u")return!1;var t=po(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zxe(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];!Bo(a)||!qa(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 Uxe(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(c,l){return c[l]="",c},{});!Bo(o)||!qa(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const Vxe={name:"applyStyles",enabled:!0,phase:"write",fn:zxe,effect:Uxe,requires:["computeStyles"]};function Ua(e){return e.split("-")[0]}var Fl=Math.max,Cy=Math.min,Xc=Math.round;function XS(){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 Az(){return!/^((?!chrome|android).)*safari/i.test(XS())}function Yc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Bo(e)&&(o=e.offsetWidth>0&&Xc(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Xc(n.height)/e.offsetHeight||1);var i=tu(e)?po(e):window,s=i.visualViewport,c=!Az()&&r,l=(n.left+(c&&s?s.offsetLeft:0))/o,f=(n.top+(c&&s?s.offsetTop:0))/a,v=n.width/o,m=n.height/a;return{width:v,height:m,top:f,right:l+v,bottom:f+m,left:l,x:l,y:f}}function t$(e){var t=Yc(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 Mz(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&e$(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function $i(e){return po(e).getComputedStyle(e)}function Wxe(e){return["table","td","th"].indexOf(qa(e))>=0}function Qs(e){return((tu(e)?e.ownerDocument:e.document)||window.document).documentElement}function z0(e){return qa(e)==="html"?e:e.assignedSlot||e.parentNode||(e$(e)?e.host:null)||Qs(e)}function VM(e){return!Bo(e)||$i(e).position==="fixed"?null:e.offsetParent}function qxe(e){var t=/firefox/i.test(XS()),r=/Trident/i.test(XS());if(r&&Bo(e)){var n=$i(e);if(n.position==="fixed")return null}var o=z0(e);for(e$(o)&&(o=o.host);Bo(o)&&["html","body"].indexOf(qa(o))<0;){var a=$i(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 Iv(e){for(var t=po(e),r=VM(e);r&&Wxe(r)&&$i(r).position==="static";)r=VM(r);return r&&(qa(r)==="html"||qa(r)==="body"&&$i(r).position==="static")?t:r||qxe(e)||t}function r$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ep(e,t,r){return Fl(e,Cy(t,r))}function Hxe(e,t,r){var n=ep(e,t,r);return n>r?r:n}function Fz(){return{top:0,right:0,bottom:0,left:0}}function Lz(e){return Object.assign({},Fz(),e)}function Nz(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Gxe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Lz(typeof t!="number"?t:Nz(t,kv))};function Kxe(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Ua(r.placement),c=r$(s),l=[Hn,Ko].indexOf(s)>=0,f=l?"height":"width";if(!(!a||!i)){var v=Gxe(o.padding,r),m=t$(a),h=c==="y"?qn:Hn,x=c==="y"?Go:Ko,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],O=i[c]-r.rects.reference[c],b=Iv(a),g=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,_=w/2-O/2,$=v[h],P=g-m[f]-v[x],E=g/2-m[f]/2+_,T=ep($,E,P),R=c;r.modifiersData[n]=(t={},t[R]=T,t.centerOffset=T-E,t)}}function Qxe(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)||Mz(t.elements.popper,o)&&(t.elements.arrow=o))}const Xxe={name:"arrow",enabled:!0,phase:"main",fn:Kxe,effect:Qxe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jc(e){return e.split("-")[1]}var Yxe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jxe(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Xc(r*o)/o||0,y:Xc(n*o)/o||0}}function WM(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,v=e.isFixed,m=i.x,h=m===void 0?0:m,x=i.y,w=x===void 0?0:x,O=typeof f=="function"?f({x:h,y:w}):{x:h,y:w};h=O.x,w=O.y;var b=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),_=Hn,$=qn,P=window;if(l){var E=Iv(r),T="clientHeight",R="clientWidth";if(E===po(r)&&(E=Qs(r),$i(E).position!=="static"&&s==="absolute"&&(T="scrollHeight",R="scrollWidth")),E=E,o===qn||(o===Hn||o===Ko)&&a===Wp){$=Go;var I=v&&E===P&&P.visualViewport?P.visualViewport.height:E[T];w-=I-n.height,w*=c?1:-1}if(o===Hn||(o===qn||o===Go)&&a===Wp){_=Ko;var A=v&&E===P&&P.visualViewport?P.visualViewport.width:E[R];h-=A-n.width,h*=c?1:-1}}var F=Object.assign({position:s},l&&Yxe),L=f===!0?Jxe({x:h,y:w},po(r)):{x:h,y:w};if(h=L.x,w=L.y,c){var D;return Object.assign({},F,(D={},D[$]=g?"0":"",D[_]=b?"0":"",D.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",D))}return Object.assign({},F,(t={},t[$]=g?w+"px":"",t[_]=b?h+"px":"",t.transform="",t))}function Zxe(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,c=s===void 0?!0:s,l={placement:Ua(t.placement),variation:Jc(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,WM(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,WM(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ewe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zxe,data:{}};var mh={passive:!0};function twe(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,c=po(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(f){f.addEventListener("scroll",r.update,mh)}),s&&c.addEventListener("resize",r.update,mh),function(){a&&l.forEach(function(f){f.removeEventListener("scroll",r.update,mh)}),s&&c.removeEventListener("resize",r.update,mh)}}const rwe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:twe,data:{}};var nwe={left:"right",right:"left",bottom:"top",top:"bottom"};function tg(e){return e.replace(/left|right|bottom|top/g,function(t){return nwe[t]})}var owe={start:"end",end:"start"};function qM(e){return e.replace(/start|end/g,function(t){return owe[t]})}function n$(e){var t=po(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function o$(e){return Yc(Qs(e)).left+n$(e).scrollLeft}function awe(e,t){var r=po(e),n=Qs(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;var l=Az();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+o$(e),y:c}}function iwe(e){var t,r=Qs(e),n=n$(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Fl(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Fl(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+o$(e),c=-n.scrollTop;return $i(o||r).direction==="rtl"&&(s+=Fl(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function a$(e){var t=$i(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Dz(e){return["html","body","#document"].indexOf(qa(e))>=0?e.ownerDocument.body:Bo(e)&&a$(e)?e:Dz(z0(e))}function tp(e,t){var r;t===void 0&&(t=[]);var n=Dz(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=po(n),i=o?[a].concat(a.visualViewport||[],a$(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(tp(z0(i)))}function YS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function swe(e,t){var r=Yc(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 HM(e,t,r){return t===Iz?YS(awe(e,r)):tu(t)?swe(t,r):YS(iwe(Qs(e)))}function lwe(e){var t=tp(z0(e)),r=["absolute","fixed"].indexOf($i(e).position)>=0,n=r&&Bo(e)?Iv(e):e;return tu(n)?t.filter(function(o){return tu(o)&&Mz(o,n)&&qa(o)!=="body"}):[]}function uwe(e,t,r,n){var o=t==="clippingParents"?lwe(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(c,l){var f=HM(e,l,n);return c.top=Fl(f.top,c.top),c.right=Cy(f.right,c.right),c.bottom=Cy(f.bottom,c.bottom),c.left=Fl(f.left,c.left),c},HM(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 Bz(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ua(n):null,a=n?Jc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case qn:c={x:i,y:t.y-r.height};break;case Go:c={x:i,y:t.y+t.height};break;case Ko:c={x:t.x+t.width,y:s};break;case Hn:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?r$(o):null;if(l!=null){var f=l==="y"?"height":"width";switch(a){case Qc:c[l]=c[l]-(t[f]/2-r[f]/2);break;case Wp:c[l]=c[l]+(t[f]/2-r[f]/2);break}}return c}function qp(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,c=s===void 0?Rxe:s,l=r.rootBoundary,f=l===void 0?Iz:l,v=r.elementContext,m=v===void 0?yf:v,h=r.altBoundary,x=h===void 0?!1:h,w=r.padding,O=w===void 0?0:w,b=Lz(typeof O!="number"?O:Nz(O,kv)),g=m===yf?Txe:yf,_=e.rects.popper,$=e.elements[x?g:m],P=uwe(tu($)?$:$.contextElement||Qs(e.elements.popper),c,f,i),E=Yc(e.elements.reference),T=Bz({reference:E,element:_,strategy:"absolute",placement:o}),R=YS(Object.assign({},_,T)),I=m===yf?R:E,A={top:P.top-I.top+b.top,bottom:I.bottom-P.bottom+b.bottom,left:P.left-I.left+b.left,right:I.right-P.right+b.right},F=e.modifiersData.offset;if(m===yf&&F){var L=F[o];Object.keys(A).forEach(function(D){var z=[Ko,Go].indexOf(D)>=0?1:-1,H=[qn,Go].indexOf(D)>=0?"y":"x";A[D]+=L[H]*z})}return A}function cwe(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?jz:c,f=Jc(n),v=f?s?UM:UM.filter(function(x){return Jc(x)===f}):kv,m=v.filter(function(x){return l.indexOf(x)>=0});m.length===0&&(m=v);var h=m.reduce(function(x,w){return x[w]=qp(e,{placement:w,boundary:o,rootBoundary:a,padding:i})[Ua(w)],x},{});return Object.keys(h).sort(function(x,w){return h[x]-h[w]})}function dwe(e){if(Ua(e)===ZP)return[];var t=tg(e);return[qM(e),t,qM(t)]}function fwe(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,c=r.fallbackPlacements,l=r.padding,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,h=r.flipVariations,x=h===void 0?!0:h,w=r.allowedAutoPlacements,O=t.options.placement,b=Ua(O),g=b===O,_=c||(g||!x?[tg(O)]:dwe(O)),$=[O].concat(_).reduce(function(de,oe){return de.concat(Ua(oe)===ZP?cwe(t,{placement:oe,boundary:f,rootBoundary:v,padding:l,flipVariations:x,allowedAutoPlacements:w}):oe)},[]),P=t.rects.reference,E=t.rects.popper,T=new Map,R=!0,I=$[0],A=0;A<$.length;A++){var F=$[A],L=Ua(F),D=Jc(F)===Qc,z=[qn,Go].indexOf(L)>=0,H=z?"width":"height",G=qp(t,{placement:F,boundary:f,rootBoundary:v,altBoundary:m,padding:l}),q=z?D?Ko:Hn:D?Go:qn;P[H]>E[H]&&(q=tg(q));var U=tg(q),W=[];if(a&&W.push(G[L]<=0),s&&W.push(G[q]<=0,G[U]<=0),W.every(function(de){return de})){I=F,R=!1;break}T.set(F,W)}if(R)for(var te=x?3:1,ne=function(oe){var me=$.find(function(Re){var ye=T.get(Re);if(ye)return ye.slice(0,oe).every(function(fe){return fe})});if(me)return I=me,"break"},ee=te;ee>0;ee--){var Oe=ne(ee);if(Oe==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const pwe={name:"flip",enabled:!0,phase:"main",fn:fwe,requiresIfExists:["offset"],data:{_skip:!1}};function GM(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 KM(e){return[qn,Ko,Go,Hn].some(function(t){return e[t]>=0})}function vwe(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=qp(t,{elementContext:"reference"}),s=qp(t,{altBoundary:!0}),c=GM(i,n),l=GM(s,o,a),f=KM(c),v=KM(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const mwe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vwe};function hwe(e,t,r){var n=Ua(e),o=[Hn,qn].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,[Hn,Ko].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function gwe(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=jz.reduce(function(f,v){return f[v]=hwe(v,t.rects,a),f},{}),s=i[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const ywe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gwe};function bwe(e){var t=e.state,r=e.name;t.modifiersData[r]=Bz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const _we={name:"popperOffsets",enabled:!0,phase:"read",fn:bwe,data:{}};function xwe(e){return e==="x"?"y":"x"}function wwe(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,c=r.boundary,l=r.rootBoundary,f=r.altBoundary,v=r.padding,m=r.tether,h=m===void 0?!0:m,x=r.tetherOffset,w=x===void 0?0:x,O=qp(t,{boundary:c,rootBoundary:l,padding:v,altBoundary:f}),b=Ua(t.placement),g=Jc(t.placement),_=!g,$=r$(b),P=xwe($),E=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,I=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(a){var D,z=$==="y"?qn:Hn,H=$==="y"?Go:Ko,G=$==="y"?"height":"width",q=E[$],U=q+O[z],W=q-O[H],te=h?-R[G]/2:0,ne=g===Qc?T[G]:R[G],ee=g===Qc?-R[G]:-T[G],Oe=t.elements.arrow,de=h&&Oe?t$(Oe):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fz(),me=oe[z],Re=oe[H],ye=ep(0,T[G],de[G]),fe=_?T[G]/2-te-ye-me-A.mainAxis:ne-ye-me-A.mainAxis,ge=_?-T[G]/2+te+ye+Re+A.mainAxis:ee+ye+Re+A.mainAxis,ce=t.elements.arrow&&Iv(t.elements.arrow),pe=ce?$==="y"?ce.clientTop||0:ce.clientLeft||0:0,ae=(D=F==null?void 0:F[$])!=null?D:0,Se=q+fe-ae-pe,Ce=q+ge-ae,Ne=ep(h?Cy(U,Se):U,q,h?Fl(W,Ce):W);E[$]=Ne,L[$]=Ne-q}if(s){var Xe,V=$==="x"?qn:Hn,X=$==="x"?Go:Ko,Y=E[P],ie=P==="y"?"height":"width",se=Y+O[V],ue=Y-O[X],Ee=[qn,Hn].indexOf(b)!==-1,Ie=(Xe=F==null?void 0:F[P])!=null?Xe:0,at=Ee?se:Y-T[ie]-R[ie]-Ie+A.altAxis,ot=Ee?Y+T[ie]+R[ie]-Ie-A.altAxis:ue,Le=h&&Ee?Hxe(at,Y,ot):ep(h?at:se,Y,h?ot:ue);E[P]=Le,L[P]=Le-Y}t.modifiersData[n]=L}}const Swe={name:"preventOverflow",enabled:!0,phase:"main",fn:wwe,requiresIfExists:["offset"]};function Owe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cwe(e){return e===po(e)||!Bo(e)?n$(e):Owe(e)}function Ewe(e){var t=e.getBoundingClientRect(),r=Xc(t.width)/e.offsetWidth||1,n=Xc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Pwe(e,t,r){r===void 0&&(r=!1);var n=Bo(t),o=Bo(t)&&Ewe(t),a=Qs(t),i=Yc(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((qa(t)!=="body"||a$(a))&&(s=Cwe(t)),Bo(t)?(c=Yc(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=o$(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function $we(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 c=t.get(s);c&&o(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function Rwe(e){var t=$we(e);return Bxe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Twe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function kwe(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 QM={placement:"bottom",modifiers:[],strategy:"absolute"};function XM(){for(var e=arguments.length,t=new Array(e),r=0;rze({root:["root"]},__e(Mwe)),zwe={},Uwe=d.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:c,open:l,placement:f,popperOptions:v,popperRef:m,slotProps:h={},slots:x={},TransitionProps:w}=t,O=we(t,Fwe),b=d.useRef(null),g=ir(b,r),_=d.useRef(null),$=ir(_,m),P=d.useRef($);fo(()=>{P.current=$},[$]),d.useImperativeHandle(m,()=>_.current,[]);const E=Nwe(f,i),[T,R]=d.useState(E),[I,A]=d.useState(JS(o));d.useEffect(()=>{_.current&&_.current.forceUpdate()}),d.useEffect(()=>{o&&A(JS(o))},[o]),fo(()=>{if(!I||!l)return;const H=U=>{R(U.placement)};let G=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:U})=>{H(U)}}];c!=null&&(G=G.concat(c)),v&&v.modifiers!=null&&(G=G.concat(v.modifiers));const q=Awe(I,b.current,j({placement:E},v,{modifiers:G}));return P.current(q),()=>{q.destroy(),P.current(null)}},[I,s,c,l,v,E]);const F={placement:T};w!==null&&(F.TransitionProps=w);const L=Bwe(),D=(n=x.root)!=null?n:"div",z=Ho({elementType:D,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:L.root});return S.jsx(D,j({},z,{children:typeof a=="function"?a(F):a}))}),Vwe=d.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:l,open:f,placement:v="bottom",popperOptions:m=zwe,popperRef:h,style:x,transition:w=!1,slotProps:O={},slots:b={}}=t,g=we(t,Lwe),[_,$]=d.useState(!0),P=()=>{$(!1)},E=()=>{$(!0)};if(!c&&!f&&(!w||_))return null;let T;if(a)T=a;else if(n){const A=JS(n);T=A&&Dwe(A)?Er(A).body:Er(null).body}const R=!f&&c&&(!w||_)?"none":void 0,I=w?{in:f,onEnter:P,onExited:E}:void 0;return S.jsx(kz,{disablePortal:s,container:T,children:S.jsx(Uwe,j({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:w?!_:f,placement:v,popperOptions:m,popperRef:h,slotProps:O,slots:b},g,{style:j({position:"fixed",top:0,left:0,display:R},x),TransitionProps:I,children:o}))})});function Wwe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=Pl();d.useEffect(()=>{if(!o)return;function b(g){g.defaultPrevented||(g.key==="Escape"||g.key==="Esc")&&(n==null||n(g,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,n]);const s=Cn((b,g)=>{n==null||n(b,g)}),c=Cn(b=>{!n||b==null||i.start(b,()=>{s(null,"timeout")})});d.useEffect(()=>(o&&c(t),i.clear),[o,t,c,i]);const l=b=>{n==null||n(b,"clickaway")},f=i.clear,v=d.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),m=b=>g=>{const _=b.onBlur;_==null||_(g),v()},h=b=>g=>{const _=b.onFocus;_==null||_(g),f()},x=b=>g=>{const _=b.onMouseEnter;_==null||_(g),f()},w=b=>g=>{const _=b.onMouseLeave;_==null||_(g),v()};return d.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",v),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",f)}},[r,o,v,f]),{getRootProps:(b={})=>{const g=j({},Oy(e),Oy(b));return j({role:"presentation"},b,g,{onBlur:m(g),onFocus:h(g),onMouseEnter:x(g),onMouseLeave:w(g)})},onClickAway:l}}const qwe=["onChange","maxRows","minRows","style","value"];function hh(e){return parseInt(e,10)||0}const Hwe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Gwe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Kwe=d.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,c=we(t,qwe),{current:l}=d.useRef(s!=null),f=d.useRef(null),v=ir(r,f),m=d.useRef(null),h=d.useCallback(()=>{const O=f.current,g=Wo(O).getComputedStyle(O);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const _=m.current;_.style.width=g.width,_.value=O.value||t.placeholder||"x",_.value.slice(-1)===` +`&&(_.value+=" ");const $=g.boxSizing,P=hh(g.paddingBottom)+hh(g.paddingTop),E=hh(g.borderBottomWidth)+hh(g.borderTopWidth),T=_.scrollHeight;_.value="x";const R=_.scrollHeight;let I=T;a&&(I=Math.max(Number(a)*R,I)),o&&(I=Math.min(Number(o)*R,I)),I=Math.max(I,R);const A=I+($==="border-box"?P+E:0),F=Math.abs(I-T)<=1;return{outerHeightStyle:A,overflowing:F}},[o,a,t.placeholder]),x=d.useCallback(()=>{const O=h();if(Gwe(O))return;const b=f.current;b.style.height=`${O.outerHeightStyle}px`,b.style.overflow=O.overflowing?"hidden":""},[h]);fo(()=>{const O=()=>{x()};let b;const g=Rd(O),_=f.current,$=Wo(_);$.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(O),P.observe(_)),()=>{g.clear(),cancelAnimationFrame(b),$.removeEventListener("resize",g),P&&P.disconnect()}},[h,x]),fo(()=>{x()});const w=O=>{l||x(),n&&n(O)};return S.jsxs(d.Fragment,{children:[S.jsx("textarea",j({value:s,onChange:w,ref:v,rows:a,style:i},c)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:j({},Hwe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});var i$={};Object.defineProperty(i$,"__esModule",{value:!0});var Uz=i$.default=void 0,Qwe=Ywe(d),Xwe=Sz;function Vz(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Vz=function(n){return n?r:t})(e)}function Ywe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Vz(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 Jwe(e){return Object.keys(e).length===0}function Zwe(e=null){const t=Qwe.useContext(Xwe.ThemeContext);return!t||Jwe(t)?e:t}Uz=i$.default=Zwe;const eSe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],tSe=J(Vwe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rSe=d.forwardRef(function(t,r){var n;const o=Uz(),a=Ge({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:c,componentsProps:l,container:f,disablePortal:v,keepMounted:m,modifiers:h,open:x,placement:w,popperOptions:O,popperRef:b,transition:g,slots:_,slotProps:$}=a,P=we(a,eSe),E=(n=_==null?void 0:_.root)!=null?n:c==null?void 0:c.Root,T=j({anchorEl:i,container:f,disablePortal:v,keepMounted:m,modifiers:h,open:x,placement:w,popperOptions:O,popperRef:b,transition:g},P);return S.jsx(tSe,j({as:s,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:$??l},T,{ref:r}))}),Wz=rSe;function Ni({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 nSe=d.createContext(void 0),U0=nSe;function Oa(){return d.useContext(U0)}function oSe(e){return S.jsx(Mbe,j({},e,{defaultTheme:D0,themeId:Jl}))}function YM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ey(e,t=!1){return e&&(YM(e.value)&&e.value!==""||t&&YM(e.defaultValue)&&e.defaultValue!=="")}function aSe(e){return e.startAdornment}function iSe(e){return Ve("MuiInputBase",e)}const sSe=He("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Zc=sSe,lSe=["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"],V0=(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${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},W0=(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]},uSe=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:c,hiddenLabel:l,multiline:f,readOnly:v,size:m,startAdornment:h,type:x}=e,w={root:["root",`color${xe(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",i&&"focused",s&&"formControl",m&&m!=="medium"&&`size${xe(m)}`,f&&"multiline",h&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",x==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",v&&"readOnly"]};return ze(w,iSe,t)},q0=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:V0})(({theme:e,ownerState:t})=>j({},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",[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&j({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),H0=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:W0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=j({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 j({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] + .${Zc.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},[`&.${Zc.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"})}),cSe=S.jsx(oSe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),dSe=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:c,components:l={},componentsProps:f={},defaultValue:v,disabled:m,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:w=!1,id:O,inputComponent:b="input",inputProps:g={},inputRef:_,maxRows:$,minRows:P,multiline:E=!1,name:T,onBlur:R,onChange:I,onClick:A,onFocus:F,onKeyDown:L,onKeyUp:D,placeholder:z,readOnly:H,renderSuffix:G,rows:q,slotProps:U={},slots:W={},startAdornment:te,type:ne="text",value:ee}=o,Oe=we(o,lSe),de=g.value!=null?g.value:ee,{current:oe}=d.useRef(de!=null),me=d.useRef(),Re=d.useCallback(Le=>{},[]),ye=ir(me,_,g.ref,Re),[fe,ge]=d.useState(!1),ce=Oa(),pe=Ni({props:o,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=ce?ce.focused:fe,d.useEffect(()=>{!ce&&m&&fe&&(ge(!1),R&&R())},[ce,m,fe,R]);const ae=ce&&ce.onFilled,Se=ce&&ce.onEmpty,Ce=d.useCallback(Le=>{Ey(Le)?ae&&ae():Se&&Se()},[ae,Se]);fo(()=>{oe&&Ce({value:de})},[de,Ce,oe]);const Ne=Le=>{if(pe.disabled){Le.stopPropagation();return}F&&F(Le),g.onFocus&&g.onFocus(Le),ce&&ce.onFocus?ce.onFocus(Le):ge(!0)},Xe=Le=>{R&&R(Le),g.onBlur&&g.onBlur(Le),ce&&ce.onBlur?ce.onBlur(Le):ge(!1)},V=(Le,...De)=>{if(!oe){const ft=Le.target||me.current;if(ft==null)throw new Error(Pi(1));Ce({value:ft.value})}g.onChange&&g.onChange(Le,...De),I&&I(Le,...De)};d.useEffect(()=>{Ce(me.current)},[]);const X=Le=>{me.current&&Le.currentTarget===Le.target&&me.current.focus(),A&&A(Le)};let Y=b,ie=g;E&&Y==="input"&&(q?ie=j({type:void 0,minRows:q,maxRows:q},ie):ie=j({type:void 0,maxRows:$,minRows:P},ie),Y=Kwe);const se=Le=>{Ce(Le.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};d.useEffect(()=>{ce&&ce.setAdornedStart(!!te)},[ce,te]);const ue=j({},o,{color:pe.color||"primary",disabled:pe.disabled,endAdornment:x,error:pe.error,focused:pe.focused,formControl:ce,fullWidth:w,hiddenLabel:pe.hiddenLabel,multiline:E,size:pe.size,startAdornment:te,type:ne}),Ee=uSe(ue),Ie=W.root||l.Root||q0,at=U.root||f.root||{},ot=W.input||l.Input||H0;return ie=j({},ie,(n=U.input)!=null?n:f.input),S.jsxs(d.Fragment,{children:[!h&&cSe,S.jsxs(Ie,j({},at,!Vp(Ie)&&{ownerState:j({},ue,at.ownerState)},{ref:r,onClick:X},Oe,{className:$e(Ee.root,at.className,c,H&&"MuiInputBase-readOnly"),children:[te,S.jsx(U0.Provider,{value:null,children:S.jsx(ot,j({ownerState:ue,"aria-invalid":pe.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:v,disabled:pe.disabled,id:O,onAnimationStart:se,name:T,placeholder:z,readOnly:H,required:pe.required,rows:q,value:de,onKeyDown:L,onKeyUp:D,type:ne},ie,!Vp(ot)&&{as:Y,ownerState:j({},ue,ie.ownerState)},{ref:ye,className:$e(Ee.input,ie.className,H&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:V,onFocus:Ne}))}),x,G?G(j({},pe,{startAdornment:te})):null]}))]})}),G0=dSe;function fSe(e){return Ve("MuiInput",e)}const pSe=j({},Zc,He("MuiInput",["root","underline","input"])),bf=pSe;function vSe(e){return Ve("MuiOutlinedInput",e)}const mSe=j({},Zc,He("MuiOutlinedInput",["root","notchedOutline","input"])),Zi=mSe;function hSe(e){return Ve("MuiFilledInput",e)}const gSe=j({},Zc,He("MuiFilledInput",["root","underline","input"])),dl=gSe,qz=go(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ySe=go(S.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 bSe(e){return Ve("MuiAvatar",e)}He("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const _Se=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],xSe=Ez(),wSe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return ze({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},bSe,t)},SSe=J("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:j({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:j({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),OSe=J("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),CSe=J(ySe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function ESe({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 PSe=d.forwardRef(function(t,r){const n=xSe({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:c={},slotProps:l={},imgProps:f,sizes:v,src:m,srcSet:h,variant:x="circular"}=n,w=we(n,_Se);let O=null;const b=ESe(j({},f,{src:m,srcSet:h})),g=m||h,_=g&&b!=="error",$=j({},n,{colorDefault:!_,component:s,variant:x}),P=wSe($),[E,T]=C_e("img",{className:P.img,elementType:OSe,externalForwardedProps:{slots:c,slotProps:{img:j({},f,l.img)}},additionalProps:{alt:o,src:m,srcSet:h,sizes:v},ownerState:$});return _?O=S.jsx(E,j({},T)):a||a===0?O=a:g&&o?O=o[0]:O=S.jsx(CSe,{ownerState:$,className:P.fallback}),S.jsx(SSe,j({as:s,ownerState:$,className:$e(P.root,i),ref:r},w,{children:O}))}),Hp=PSe,$Se=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],RSe={entering:{opacity:1},entered:{opacity:1}},TSe=d.forwardRef(function(t,r){const n=ta(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:c,in:l,onEnter:f,onEntered:v,onEntering:m,onExit:h,onExited:x,onExiting:w,style:O,timeout:b=o,TransitionComponent:g=QP}=t,_=we(t,$Se),$=d.useRef(null),P=ir($,s.ref,r),E=z=>H=>{if(z){const G=$.current;H===void 0?z(G):z(G,H)}},T=E(m),R=E((z,H)=>{JP(z);const G=Kc({style:O,timeout:b,easing:c},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",G),z.style.transition=n.transitions.create("opacity",G),f&&f(z,H)}),I=E(v),A=E(w),F=E(z=>{const H=Kc({style:O,timeout:b,easing:c},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",H),z.style.transition=n.transitions.create("opacity",H),h&&h(z)}),L=E(x),D=z=>{a&&a($.current,z)};return S.jsx(g,j({appear:i,in:l,nodeRef:$,onEnter:R,onEntered:I,onEntering:T,onExit:F,onExited:L,onExiting:A,addEndListener:D,timeout:b},_,{children:(z,H)=>d.cloneElement(s,j({style:j({opacity:0,visibility:z==="exited"&&!l?"hidden":void 0},RSe[z],O,s.props.style),ref:P},H))}))}),Hz=TSe;function kSe(e){return Ve("MuiBackdrop",e)}He("MuiBackdrop",["root","invisible"]);const ISe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jSe=e=>{const{classes:t,invisible:r}=e;return ze({root:["root",r&&"invisible"]},kSe,t)},ASe=J("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>j({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"})),MSe=d.forwardRef(function(t,r){var n,o,a;const i=Ge({props:t,name:"MuiBackdrop"}),{children:s,className:c,component:l="div",components:f={},componentsProps:v={},invisible:m=!1,open:h,slotProps:x={},slots:w={},TransitionComponent:O=Hz,transitionDuration:b}=i,g=we(i,ISe),_=j({},i,{component:l,invisible:m}),$=jSe(_),P=(n=x.root)!=null?n:v.root;return S.jsx(O,j({in:h,timeout:b},g,{children:S.jsx(ASe,j({"aria-hidden":!0},P,{as:(o=(a=w.root)!=null?a:f.Root)!=null?o:l,className:$e($.root,c,P==null?void 0:P.className),ownerState:j({},_,P==null?void 0:P.ownerState),classes:$,ref:r,children:s}))}))}),Gz=MSe,FSe=He("MuiBox",["root"]),LSe=FSe,NSe=wy(),DSe=Ube({themeId:Jl,defaultTheme:NSe,defaultClassName:LSe.root,generateClassName:BP.generate}),On=DSe;function BSe(e){return Ve("MuiButton",e)}const zSe=He("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"]),gh=zSe,USe=d.createContext({}),VSe=USe,WSe=d.createContext(void 0),qSe=WSe,HSe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],GSe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(o)}`,`${a}Size${xe(o)}`,`color${xe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${xe(o)}`],endIcon:["icon","endIcon",`iconSize${xe(o)}`]},c=ze(s,BSe,i);return j({},i,c)},Kz=e=>j({},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}}),KSe=J(Li,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(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 j({},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":j({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:It(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})`:It(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})`:It(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":j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gh.focusVisible}`]:j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gh.disabled}`]:j({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 ${It(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"},[`&.${gh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gh.disabled}`]:{boxShadow:"none"}}),QSe=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Kz(e))),XSe=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Kz(e))),YSe=d.forwardRef(function(t,r){const n=d.useContext(VSe),o=d.useContext(qSe),a=VP(n,t),i=Ge({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:l="button",className:f,disabled:v=!1,disableElevation:m=!1,disableFocusRipple:h=!1,endIcon:x,focusVisibleClassName:w,fullWidth:O=!1,size:b="medium",startIcon:g,type:_,variant:$="text"}=i,P=we(i,HSe),E=j({},i,{color:c,component:l,disabled:v,disableElevation:m,disableFocusRipple:h,fullWidth:O,size:b,type:_,variant:$}),T=GSe(E),R=g&&S.jsx(QSe,{className:T.startIcon,ownerState:E,children:g}),I=x&&S.jsx(XSe,{className:T.endIcon,ownerState:E,children:x}),A=o||"";return S.jsxs(KSe,j({ownerState:E,className:$e(n.className,T.root,f,A),component:l,disabled:v,focusRipple:!h,focusVisibleClassName:$e(T.focusVisible,w),ref:r,type:_},P,{classes:T,children:[R,s,I]}))}),Pr=YSe;function JSe(e){return Ve("MuiCard",e)}He("MuiCard",["root"]);const ZSe=["className","raised"],eOe=e=>{const{classes:t}=e;return ze({root:["root"]},JSe,t)},tOe=J(Ks,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),rOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=we(n,ZSe),s=j({},n,{raised:a}),c=eOe(s);return S.jsx(tOe,j({className:$e(c.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),uu=rOe;function nOe(e){return Ve("MuiCardActions",e)}He("MuiCardActions",["root","spacing"]);const oOe=["disableSpacing","className"],aOe=e=>{const{classes:t,disableSpacing:r}=e;return ze({root:["root",!r&&"spacing"]},nOe,t)},iOe=J("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>j({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),sOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a}=n,i=we(n,oOe),s=j({},n,{disableSpacing:o}),c=aOe(s);return S.jsx(iOe,j({className:$e(c.root,a),ownerState:s,ref:r},i))}),Qz=sOe;function lOe(e){return Ve("MuiCardContent",e)}He("MuiCardContent",["root"]);const uOe=["className","component"],cOe=e=>{const{classes:t}=e;return ze({root:["root"]},lOe,t)},dOe=J("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),fOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=we(n,uOe),s=j({},n,{component:a}),c=cOe(s);return S.jsx(dOe,j({as:a,className:$e(c.root,o),ownerState:s,ref:r},i))}),ko=fOe;function pOe(e){return Ve("MuiCardHeader",e)}const vOe=He("MuiCardHeader",["root","avatar","action","content","title","subheader"]),JM=vOe,mOe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],hOe=e=>{const{classes:t}=e;return ze({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},pOe,t)},gOe=J("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>j({[`& .${JM.title}`]:t.title,[`& .${JM.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),yOe=J("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),bOe=J("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),_Oe=J("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),xOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:c=!1,subheader:l,subheaderTypographyProps:f,title:v,titleTypographyProps:m}=n,h=we(n,mOe),x=j({},n,{component:s,disableTypography:c}),w=hOe(x);let O=v;O!=null&&O.type!==it&&!c&&(O=S.jsx(it,j({variant:a?"body2":"h5",className:w.title,component:"span",display:"block"},m,{children:O})));let b=l;return b!=null&&b.type!==it&&!c&&(b=S.jsx(it,j({variant:a?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:b}))),S.jsxs(gOe,j({className:$e(w.root,i),as:s,ref:r,ownerState:x},h,{children:[a&&S.jsx(yOe,{className:w.avatar,ownerState:x,children:a}),S.jsxs(_Oe,{className:w.content,ownerState:x,children:[O,b]}),o&&S.jsx(bOe,{className:w.action,ownerState:x,children:o})]}))}),fl=xOe;function wOe(e){return Ve("PrivateSwitchBase",e)}He("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const SOe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],OOe=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${xe(o)}`],input:["input"]};return ze(a,wOe,t)},COe=J(Li)(({ownerState:e})=>j({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),EOe=J("input",{shouldForwardProp:tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),POe=d.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:c,disableFocusRipple:l=!1,edge:f=!1,icon:v,id:m,inputProps:h,inputRef:x,name:w,onBlur:O,onChange:b,onFocus:g,readOnly:_,required:$=!1,tabIndex:P,type:E,value:T}=t,R=we(t,SOe),[I,A]=Gc({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Oa(),L=W=>{g&&g(W),F&&F.onFocus&&F.onFocus(W)},D=W=>{O&&O(W),F&&F.onBlur&&F.onBlur(W)},z=W=>{if(W.nativeEvent.defaultPrevented)return;const te=W.target.checked;A(te),b&&b(W,te)};let H=c;F&&typeof H>"u"&&(H=F.disabled);const G=E==="checkbox"||E==="radio",q=j({},t,{checked:I,disabled:H,disableFocusRipple:l,edge:f}),U=OOe(q);return S.jsxs(COe,j({component:"span",className:$e(U.root,i),centerRipple:!0,focusRipple:!l,disabled:H,tabIndex:null,role:void 0,onFocus:L,onBlur:D,ownerState:q,ref:r},R,{children:[S.jsx(EOe,j({autoFocus:n,checked:o,defaultChecked:s,className:U.input,disabled:H,id:G?m:void 0,name:w,onChange:z,readOnly:_,ref:x,required:$,ownerState:q,tabIndex:P,type:E},E==="checkbox"&&T===void 0?{}:{value:T},h)),I?a:v]}))}),Xz=POe,$Oe=go(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ROe=go(S.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"),TOe=go(S.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 kOe(e){return Ve("MuiCheckbox",e)}const IOe=He("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ix=IOe,jOe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],AOe=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(o)}`]},i=ze(a,kOe,t);return j({},t,i)},MOe=J(Xz,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${xe(r.size)}`],r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>j({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})`:It(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Ix.checked}, &.${Ix.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ix.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),FOe=S.jsx(ROe,{}),LOe=S.jsx($Oe,{}),NOe=S.jsx(TOe,{}),DOe=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:i=FOe,color:s="primary",icon:c=LOe,indeterminate:l=!1,indeterminateIcon:f=NOe,inputProps:v,size:m="medium",className:h}=a,x=we(a,jOe),w=l?f:c,O=l?f:i,b=j({},a,{color:s,indeterminate:l,size:m}),g=AOe(b);return S.jsx(MOe,j({type:"checkbox",inputProps:j({"data-indeterminate":l},v),icon:d.cloneElement(w,{fontSize:(n=w.props.fontSize)!=null?n:m}),checkedIcon:d.cloneElement(O,{fontSize:(o=O.props.fontSize)!=null?o:m}),ownerState:b,ref:r,className:$e(g.root,h)},x,{classes:g}))}),ed=DOe;function BOe(e){return Ve("MuiCircularProgress",e)}He("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const zOe=["className","color","disableShrink","size","style","thickness","value","variant"];let K0=e=>e,ZM,eF,tF,rF;const es=44,UOe=Mi(ZM||(ZM=K0` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),VOe=Mi(eF||(eF=K0` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),WOe=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${xe(n)}`],svg:["svg"],circle:["circle",`circle${xe(r)}`,o&&"circleDisableShrink"]};return ze(a,BOe,t)},qOe=J("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${xe(r.color)}`]]}})(({ownerState:e,theme:t})=>j({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"&&lu(tF||(tF=K0` + animation: ${0} 1.4s linear infinite; + `),UOe)),HOe=J("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),GOe=J("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${xe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>j({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&&lu(rF||(rF=K0` + animation: ${0} 1.4s ease-in-out infinite; + `),VOe)),KOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:c,thickness:l=3.6,value:f=0,variant:v="indeterminate"}=n,m=we(n,zOe),h=j({},n,{color:a,disableShrink:i,size:s,thickness:l,value:f,variant:v}),x=WOe(h),w={},O={},b={};if(v==="determinate"){const g=2*Math.PI*((es-l)/2);w.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*g).toFixed(3)}px`,O.transform="rotate(-90deg)"}return S.jsx(qOe,j({className:$e(x.root,o),style:j({width:s,height:s},O,c),ownerState:h,ref:r,role:"progressbar"},b,m,{children:S.jsx(HOe,{className:x.svg,ownerState:h,viewBox:`${es/2} ${es/2} ${es} ${es}`,children:S.jsx(GOe,{className:x.circle,style:w,ownerState:h,cx:es,cy:es,r:(es-l)/2,fill:"none",strokeWidth:l})})}))}),Id=KOe,QOe=F0e({createStyledComponent:J("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ge({props:e,name:"MuiContainer"})}),Nu=QOe,XOe=(e,t)=>j({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),YOe=e=>j({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 JOe(e){return Ve("MuiModal",e)}He("MuiModal",["root","hidden","backdrop"]);const ZOe=["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"],eCe=e=>{const{open:t,exited:r,classes:n}=e;return ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},JOe,n)},tCe=J("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})=>j({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),rCe=J(Gz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),nCe=d.forwardRef(function(t,r){var n,o,a,i,s,c;const l=Ge({name:"MuiModal",props:t}),{BackdropComponent:f=rCe,BackdropProps:v,className:m,closeAfterTransition:h=!1,children:x,container:w,component:O,components:b={},componentsProps:g={},disableAutoFocus:_=!1,disableEnforceFocus:$=!1,disableEscapeKeyDown:P=!1,disablePortal:E=!1,disableRestoreFocus:T=!1,disableScrollLock:R=!1,hideBackdrop:I=!1,keepMounted:A=!1,onBackdropClick:F,open:L,slotProps:D,slots:z}=l,H=we(l,ZOe),G=j({},l,{closeAfterTransition:h,disableAutoFocus:_,disableEnforceFocus:$,disableEscapeKeyDown:P,disablePortal:E,disableRestoreFocus:T,disableScrollLock:R,hideBackdrop:I,keepMounted:A}),{getRootProps:q,getBackdropProps:U,getTransitionProps:W,portalRef:te,isTopModal:ne,exited:ee,hasTransition:Oe}=$xe(j({},G,{rootRef:r})),de=j({},G,{exited:ee}),oe=eCe(de),me={};if(x.props.tabIndex===void 0&&(me.tabIndex="-1"),Oe){const{onEnter:ae,onExited:Se}=W();me.onEnter=ae,me.onExited=Se}const Re=(n=(o=z==null?void 0:z.root)!=null?o:b.Root)!=null?n:tCe,ye=(a=(i=z==null?void 0:z.backdrop)!=null?i:b.Backdrop)!=null?a:f,fe=(s=D==null?void 0:D.root)!=null?s:g.root,ge=(c=D==null?void 0:D.backdrop)!=null?c:g.backdrop,ce=Ho({elementType:Re,externalSlotProps:fe,externalForwardedProps:H,getSlotProps:q,additionalProps:{ref:r,as:O},ownerState:de,className:$e(m,fe==null?void 0:fe.className,oe==null?void 0:oe.root,!de.open&&de.exited&&(oe==null?void 0:oe.hidden))}),pe=Ho({elementType:ye,externalSlotProps:ge,additionalProps:v,getSlotProps:ae=>U(j({},ae,{onClick:Se=>{F&&F(Se),ae!=null&&ae.onClick&&ae.onClick(Se)}})),className:$e(ge==null?void 0:ge.className,v==null?void 0:v.className,oe==null?void 0:oe.backdrop),ownerState:de});return!A&&!L&&(!Oe||ee)?null:S.jsx(kz,{ref:te,container:w,disablePortal:E,children:S.jsxs(Re,j({},ce,{children:[!I&&f?S.jsx(ye,j({},pe)):null,S.jsx(yxe,{disableEnforceFocus:$,disableAutoFocus:_,disableRestoreFocus:T,isEnabled:ne,open:L,children:d.cloneElement(x,me)})]}))})}),s$=nCe;function oCe(e){return Ve("MuiDialog",e)}const aCe=He("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),jx=aCe,iCe=d.createContext({}),Yz=iCe,sCe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],lCe=J(Gz,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),uCe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${xe(r)}`],paper:["paper",`paperScroll${xe(r)}`,`paperWidth${xe(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return ze(i,oCe,t)},cCe=J(s$,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),dCe=J("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${xe(r.scroll)}`]]}})(({ownerState:e})=>j({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"}})),fCe=J(Ks,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${xe(r.scroll)}`],t[`paperWidth${xe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>j({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)`,[`&.${jx.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}`,[`&.${jx.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,[`&.${jx.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),pCe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialog"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:c,BackdropProps:l,children:f,className:v,disableEscapeKeyDown:m=!1,fullScreen:h=!1,fullWidth:x=!1,maxWidth:w="sm",onBackdropClick:O,onClose:b,open:g,PaperComponent:_=Ks,PaperProps:$={},scroll:P="paper",TransitionComponent:E=Hz,transitionDuration:T=a,TransitionProps:R}=n,I=we(n,sCe),A=j({},n,{disableEscapeKeyDown:m,fullScreen:h,fullWidth:x,maxWidth:w,scroll:P}),F=uCe(A),L=d.useRef(),D=q=>{L.current=q.target===q.currentTarget},z=q=>{L.current&&(L.current=null,O&&O(q),b&&b(q,"backdropClick"))},H=eu(s),G=d.useMemo(()=>({titleId:H}),[H]);return S.jsx(cCe,j({className:$e(F.root,v),closeAfterTransition:!0,components:{Backdrop:lCe},componentsProps:{backdrop:j({transitionDuration:T,as:c},l)},disableEscapeKeyDown:m,onClose:b,open:g,ref:r,onClick:z,ownerState:A},I,{children:S.jsx(E,j({appear:!0,in:g,timeout:T,role:"presentation"},R,{children:S.jsx(dCe,{className:$e(F.container),onMouseDown:D,ownerState:A,children:S.jsx(fCe,j({as:_,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":H},$,{className:$e(F.paper,$.className),ownerState:A,children:S.jsx(Yz.Provider,{value:G,children:f})}))})}))}))}),jv=pCe;function vCe(e){return Ve("MuiDialogActions",e)}He("MuiDialogActions",["root","spacing"]);const mCe=["className","disableSpacing"],hCe=e=>{const{classes:t,disableSpacing:r}=e;return ze({root:["root",!r&&"spacing"]},vCe,t)},gCe=J("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>j({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),yCe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=we(n,mCe),s=j({},n,{disableSpacing:a}),c=hCe(s);return S.jsx(gCe,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),l$=yCe;function bCe(e){return Ve("MuiDialogContent",e)}He("MuiDialogContent",["root","dividers"]);function _Ce(e){return Ve("MuiDialogTitle",e)}const xCe=He("MuiDialogTitle",["root"]),wCe=xCe,SCe=["className","dividers"],OCe=e=>{const{classes:t,dividers:r}=e;return ze({root:["root",r&&"dividers"]},bCe,t)},CCe=J("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>j({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}`}:{[`.${wCe.root} + &`]:{paddingTop:0}})),ECe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=we(n,SCe),s=j({},n,{dividers:a}),c=OCe(s);return S.jsx(CCe,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),Av=ECe;function PCe(e){return Ve("MuiDialogContentText",e)}He("MuiDialogContentText",["root"]);const $Ce=["children","className"],RCe=e=>{const{classes:t}=e,n=ze({root:["root"]},PCe,t);return j({},t,n)},TCe=J(it,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kCe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=we(n,$Ce),i=RCe(a);return S.jsx(TCe,j({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:$e(i.root,o)},n,{classes:i}))}),Q0=kCe,ICe=["className","id"],jCe=e=>{const{classes:t}=e;return ze({root:["root"]},_Ce,t)},ACe=J(it,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),MCe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=we(n,ICe),s=n,c=jCe(s),{titleId:l=a}=d.useContext(Yz);return S.jsx(ACe,j({component:"h2",className:$e(c.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),Mv=MCe;function FCe(e){return Ve("MuiDivider",e)}const LCe=He("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),nF=LCe,NCe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],DCe=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:c}=e;return ze({root:["root",t&&"absolute",c,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},FCe,n)},BCe=J("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>j({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:It(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>j({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>j({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),zCe=J("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>j({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Jz=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:c=!1,light:l=!1,orientation:f="horizontal",role:v=s!=="hr"?"separator":void 0,textAlign:m="center",variant:h="fullWidth"}=n,x=we(n,NCe),w=j({},n,{absolute:o,component:s,flexItem:c,light:l,orientation:f,role:v,textAlign:m,variant:h}),O=DCe(w);return S.jsx(BCe,j({as:s,className:$e(O.root,i),role:v,ref:r,ownerState:w},x,{children:a?S.jsx(zCe,{className:O.wrapper,ownerState:w,children:a}):null}))});Jz.muiSkipListHighlight=!0;const ZS=Jz,UCe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function VCe(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=Wo(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,c=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),c=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+c-n.top}px)`:`translateY(${a.innerHeight+c-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function WCe(e){return typeof e=="function"?e():e}function yh(e,t,r){const n=WCe(r),o=VCe(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const qCe=d.forwardRef(function(t,r){const n=ta(),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:c,container:l,direction:f="down",easing:v=o,in:m,onEnter:h,onEntered:x,onEntering:w,onExit:O,onExited:b,onExiting:g,style:_,timeout:$=a,TransitionComponent:P=QP}=t,E=we(t,UCe),T=d.useRef(null),R=ir(c.ref,T,r),I=U=>W=>{U&&(W===void 0?U(T.current):U(T.current,W))},A=I((U,W)=>{yh(f,U,l),JP(U),h&&h(U,W)}),F=I((U,W)=>{const te=Kc({timeout:$,style:_,easing:v},{mode:"enter"});U.style.webkitTransition=n.transitions.create("-webkit-transform",j({},te)),U.style.transition=n.transitions.create("transform",j({},te)),U.style.webkitTransform="none",U.style.transform="none",w&&w(U,W)}),L=I(x),D=I(g),z=I(U=>{const W=Kc({timeout:$,style:_,easing:v},{mode:"exit"});U.style.webkitTransition=n.transitions.create("-webkit-transform",W),U.style.transition=n.transitions.create("transform",W),yh(f,U,l),O&&O(U)}),H=I(U=>{U.style.webkitTransition="",U.style.transition="",b&&b(U)}),G=U=>{i&&i(T.current,U)},q=d.useCallback(()=>{T.current&&yh(f,T.current,l)},[f,l]);return d.useEffect(()=>{if(m||f==="down"||f==="right")return;const U=Rd(()=>{T.current&&yh(f,T.current,l)}),W=Wo(T.current);return W.addEventListener("resize",U),()=>{U.clear(),W.removeEventListener("resize",U)}},[f,m,l]),d.useEffect(()=>{m||q()},[m,q]),S.jsx(P,j({nodeRef:T,onEnter:A,onEntered:L,onEntering:F,onExit:z,onExited:H,onExiting:D,addEndListener:G,appear:s,in:m,timeout:$},E,{children:(U,W)=>d.cloneElement(c,j({ref:R,style:j({visibility:U==="exited"&&!m?"hidden":void 0},_,c.props.style)},W))}))}),Zz=qCe;function HCe(e){return Ve("MuiDrawer",e)}He("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const GCe=["BackdropProps"],KCe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],e6=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},QCe=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${xe(r)}`,n!=="temporary"&&`paperAnchorDocked${xe(r)}`]};return ze(o,HCe,t)},XCe=J(s$,{name:"MuiDrawer",slot:"Root",overridesResolver:e6})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),oF=J("div",{shouldForwardProp:tn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:e6})({flex:"0 0 auto"}),YCe=J(Ks,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${xe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${xe(r.anchor)}`]]}})(({theme:e,ownerState:t})=>j({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}`})),t6={left:"right",right:"left",top:"down",bottom:"up"};function JCe(e){return["left","right"].indexOf(e)!==-1}function ZCe({direction:e},t){return e==="rtl"&&JCe(t)?t6[t]:t}const eEe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDrawer"}),o=ta(),a=Gs(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:c,children:l,className:f,elevation:v=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:h}={},onClose:x,open:w=!1,PaperProps:O={},SlideProps:b,TransitionComponent:g=Zz,transitionDuration:_=i,variant:$="temporary"}=n,P=we(n.ModalProps,GCe),E=we(n,KCe),T=d.useRef(!1);d.useEffect(()=>{T.current=!0},[]);const R=ZCe({direction:a?"rtl":"ltr"},s),A=j({},n,{anchor:s,elevation:v,open:w,variant:$},E),F=QCe(A),L=S.jsx(YCe,j({elevation:$==="temporary"?v:0,square:!0},O,{className:$e(F.paper,O.className),ownerState:A,children:l}));if($==="permanent")return S.jsx(oF,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},E,{children:L}));const D=S.jsx(g,j({in:w,direction:t6[R],timeout:_,appear:T.current},b,{children:L}));return $==="persistent"?S.jsx(oF,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},E,{children:D})):S.jsx(XCe,j({BackdropProps:j({},c,h,{transitionDuration:_}),className:$e(F.root,F.modal,f),open:w,ownerState:A,onClose:x,hideBackdrop:m,ref:r},E,P,{children:D}))}),tEe=eEe;function rEe(e){return Ve("MuiFab",e)}const nEe=He("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),aF=nEe,oEe=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],aEe=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${xe(o)}`,t==="inherit"?"colorInherit":t]},i=ze(a,rEe,n);return j({},n,i)},iEe=J(Li,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>tn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,t[xe(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return j({},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"},[`&.${aF.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})=>j({},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})=>({[`&.${aF.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),sEe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:c=!1,disableFocusRipple:l=!1,focusVisibleClassName:f,size:v="large",variant:m="circular"}=n,h=we(n,oEe),x=j({},n,{color:i,component:s,disabled:c,disableFocusRipple:l,size:v,variant:m}),w=aEe(x);return S.jsx(iEe,j({className:$e(w.root,a),component:s,disabled:c,focusRipple:!l,focusVisibleClassName:$e(w.focusVisible,f),ownerState:x,ref:r},h,{classes:w,children:o}))}),lEe=sEe,uEe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],cEe=e=>{const{classes:t,disableUnderline:r}=e,o=ze({root:["root",!r&&"underline"],input:["input"]},hSe,t);return j({},t,o)},dEe=J(q0,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...V0(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 j({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}},[`&.${dl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${dl.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"},[`&.${dl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dl.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(.${dl.disabled}, .${dl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${dl.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&j({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}))}),fEe=J(H0,{name:"MuiFilledInput",slot:"Input",overridesResolver:W0})(({theme:e,ownerState:t})=>j({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})),r6=d.forwardRef(function(t,r){var n,o,a,i;const s=Ge({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:l,fullWidth:f=!1,inputComponent:v="input",multiline:m=!1,slotProps:h,slots:x={},type:w="text"}=s,O=we(s,uEe),b=j({},s,{fullWidth:f,inputComponent:v,multiline:m,type:w}),g=cEe(s),_={root:{ownerState:b},input:{ownerState:b}},$=h??l?Pn(_,h??l):_,P=(n=(o=x.root)!=null?o:c.Root)!=null?n:dEe,E=(a=(i=x.input)!=null?i:c.Input)!=null?a:fEe;return S.jsx(G0,j({slots:{root:P,input:E},componentsProps:$,fullWidth:f,inputComponent:v,multiline:m,ref:r,type:w},O,{classes:g}))});r6.muiName="Input";const n6=r6;function pEe(e){return Ve("MuiFormControl",e)}He("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const vEe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],mEe=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return ze(o,pEe,t)},hEe=J("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>j({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%"})),gEe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:c=!1,error:l=!1,focused:f,fullWidth:v=!1,hiddenLabel:m=!1,margin:h="none",required:x=!1,size:w="medium",variant:O="outlined"}=n,b=we(n,vEe),g=j({},n,{color:i,component:s,disabled:c,error:l,fullWidth:v,hiddenLabel:m,margin:h,required:x,size:w,variant:O}),_=mEe(g),[$,P]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,z=>{if(!Jh(z,["Input","Select"]))return;const H=Jh(z,["Select"])?z.props.input:z;H&&aSe(H.props)&&(D=!0)}),D}),[E,T]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,z=>{Jh(z,["Input","Select"])&&(Ey(z.props,!0)||Ey(z.props.inputProps,!0))&&(D=!0)}),D}),[R,I]=d.useState(!1);c&&R&&I(!1);const A=f!==void 0&&!c?f:R;let F;const L=d.useMemo(()=>({adornedStart:$,setAdornedStart:P,color:i,disabled:c,error:l,filled:E,focused:A,fullWidth:v,hiddenLabel:m,size:w,onBlur:()=>{I(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:x,variant:O}),[$,i,c,l,E,A,v,m,F,x,w,O]);return S.jsx(U0.Provider,{value:L,children:S.jsx(hEe,j({as:s,ownerState:g,className:$e(_.root,a),ref:r},b,{children:o}))})}),o6=gEe,yEe=W0e({createStyledComponent:J("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ge({props:e,name:"MuiStack"})}),Fv=yEe;function bEe(e){return Ve("MuiFormControlLabel",e)}const _Ee=He("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Mf=_Ee,xEe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],wEe=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return ze(i,bEe,t)},SEe=J("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Mf.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>j({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Mf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Mf.label}`]:{[`&.${Mf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),OEe=J("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Mf.error}`]:{color:(e.vars||e).palette.error.main}})),CEe=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:c,disabled:l,disableTypography:f,label:v,labelPlacement:m="end",required:h,slotProps:x={}}=a,w=we(a,xEe),O=Oa(),b=(n=l??c.props.disabled)!=null?n:O==null?void 0:O.disabled,g=h??c.props.required,_={disabled:b,required:g};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof c.props[I]>"u"&&typeof a[I]<"u"&&(_[I]=a[I])});const $=Ni({props:a,muiFormControl:O,states:["error"]}),P=j({},a,{disabled:b,labelPlacement:m,required:g,error:$.error}),E=wEe(P),T=(o=x.typography)!=null?o:s.typography;let R=v;return R!=null&&R.type!==it&&!f&&(R=S.jsx(it,j({component:"span"},T,{className:$e(E.label,T==null?void 0:T.className),children:R}))),S.jsxs(SEe,j({className:$e(E.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,_),g?S.jsxs(Fv,{display:"block",children:[R,S.jsxs(OEe,{ownerState:P,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):R]}))}),eO=CEe;function EEe(e){return Ve("MuiFormGroup",e)}He("MuiFormGroup",["root","row","error"]);const PEe=["className","row"],$Ee=e=>{const{classes:t,row:r,error:n}=e;return ze({root:["root",r&&"row",n&&"error"]},EEe,t)},REe=J("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>j({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),TEe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=n,i=we(n,PEe),s=Oa(),c=Ni({props:n,muiFormControl:s,states:["error"]}),l=j({},n,{row:a,error:c.error}),f=$Ee(l);return S.jsx(REe,j({className:$e(f.root,o),ownerState:l,ref:r},i))}),kEe=TEe;function IEe(e){return Ve("MuiFormHelperText",e)}const jEe=He("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),iF=jEe;var sF;const AEe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],MEe=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:c}=e,l={root:["root",o&&"disabled",a&&"error",n&&`size${xe(n)}`,r&&"contained",s&&"focused",i&&"filled",c&&"required"]};return ze(l,IEe,t)},FEe=J("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${iF.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${iF.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),LEe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=we(n,AEe),c=Oa(),l=Ni({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=j({},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}),v=MEe(f);return S.jsx(FEe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:o===" "?sF||(sF=S.jsx("span",{className:"notranslate",children:"​"})):o}))}),u$=LEe;function NEe(e){return Ve("MuiFormLabel",e)}const DEe=He("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rp=DEe,BEe=["children","className","color","component","disabled","error","filled","focused","required"],zEe=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,c={root:["root",`color${xe(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return ze(c,NEe,t)},UEe=J("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${rp.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${rp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rp.error}`]:{color:(e.vars||e).palette.error.main}})),VEe=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${rp.error}`]:{color:(e.vars||e).palette.error.main}})),WEe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=we(n,BEe),c=Oa(),l=Ni({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=j({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),v=zEe(f);return S.jsxs(UEe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:[o,l.required&&S.jsxs(VEe,{ownerState:f,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),qEe=WEe,HEe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tO(e){return`scale(${e}, ${e**2})`}const GEe={entering:{opacity:1,transform:tO(1)},entered:{opacity:1,transform:"none"}},Ax=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),a6=d.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:c,onEntered:l,onEntering:f,onExit:v,onExited:m,onExiting:h,style:x,timeout:w="auto",TransitionComponent:O=QP}=t,b=we(t,HEe),g=Pl(),_=d.useRef(),$=ta(),P=d.useRef(null),E=ir(P,a.ref,r),T=H=>G=>{if(H){const q=P.current;G===void 0?H(q):H(q,G)}},R=T(f),I=T((H,G)=>{JP(H);const{duration:q,delay:U,easing:W}=Kc({style:x,timeout:w,easing:i},{mode:"enter"});let te;w==="auto"?(te=$.transitions.getAutoHeightDuration(H.clientHeight),_.current=te):te=q,H.style.transition=[$.transitions.create("opacity",{duration:te,delay:U}),$.transitions.create("transform",{duration:Ax?te:te*.666,delay:U,easing:W})].join(","),c&&c(H,G)}),A=T(l),F=T(h),L=T(H=>{const{duration:G,delay:q,easing:U}=Kc({style:x,timeout:w,easing:i},{mode:"exit"});let W;w==="auto"?(W=$.transitions.getAutoHeightDuration(H.clientHeight),_.current=W):W=G,H.style.transition=[$.transitions.create("opacity",{duration:W,delay:q}),$.transitions.create("transform",{duration:Ax?W:W*.666,delay:Ax?q:q||W*.333,easing:U})].join(","),H.style.opacity=0,H.style.transform=tO(.75),v&&v(H)}),D=T(m),z=H=>{w==="auto"&&g.start(_.current||0,H),n&&n(P.current,H)};return S.jsx(O,j({appear:o,in:s,nodeRef:P,onEnter:I,onEntered:A,onEntering:R,onExit:L,onExited:D,onExiting:F,addEndListener:z,timeout:w==="auto"?null:w},b,{children:(H,G)=>d.cloneElement(a,j({style:j({opacity:0,transform:tO(.75),visibility:H==="exited"&&!s?"hidden":void 0},GEe[H],x,a.props.style),ref:E},G))}))});a6.muiSupportAuto=!0;const Py=a6,KEe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],QEe=e=>{const{classes:t,disableUnderline:r}=e,o=ze({root:["root",!r&&"underline"],input:["input"]},fSe,t);return j({},t,o)},XEe=J(q0,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...V0(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})`),j({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"},[`&.${bf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bf.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(.${bf.disabled}, .${bf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),YEe=J(H0,{name:"MuiInput",slot:"Input",overridesResolver:W0})({}),i6=d.forwardRef(function(t,r){var n,o,a,i;const s=Ge({props:t,name:"MuiInput"}),{disableUnderline:c,components:l={},componentsProps:f,fullWidth:v=!1,inputComponent:m="input",multiline:h=!1,slotProps:x,slots:w={},type:O="text"}=s,b=we(s,KEe),g=QEe(s),$={root:{ownerState:{disableUnderline:c}}},P=x??f?Pn(x??f,$):$,E=(n=(o=w.root)!=null?o:l.Root)!=null?n:XEe,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:YEe;return S.jsx(G0,j({slots:{root:E,input:T},slotProps:P,fullWidth:v,inputComponent:m,multiline:h,ref:r,type:O},b,{classes:g}))});i6.muiName="Input";const c$=i6;function JEe(e){return Ve("MuiInputAdornment",e)}const ZEe=He("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),lF=ZEe;var uF;const ePe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],tPe=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},rPe=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${xe(o)}`,i,n&&"hiddenLabel",a&&`size${xe(a)}`]};return ze(s,JEe,t)},nPe=J("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:tPe})(({theme:e,ownerState:t})=>j({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${lF.positionStart}&:not(.${lF.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),oPe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:c=!1,position:l,variant:f}=n,v=we(n,ePe),m=Oa()||{};let h=f;f&&m.variant,m&&!h&&(h=m.variant);const x=j({},n,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:s,position:l,variant:h}),w=rPe(x);return S.jsx(U0.Provider,{value:null,children:S.jsx(nPe,j({as:i,ownerState:x,className:$e(w.root,a),ref:r},v,{children:typeof o=="string"&&!c?S.jsx(it,{color:"text.secondary",children:o}):S.jsxs(d.Fragment,{children:[l==="start"?uF||(uF=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Sc=oPe;function aPe(e){return Ve("MuiInputLabel",e)}He("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const iPe=["disableAnimation","margin","shrink","variant","className"],sPe=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,c={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${xe(n)}`,i],asterisk:[s&&"asterisk"]},l=ze(c,aPe,t);return j({},t,l)},lPe=J(qEe,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${rp.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})=>j({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"&&j({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&&j({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"&&j({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)"}))),uPe=d.forwardRef(function(t,r){const n=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=we(n,iPe),c=Oa();let l=a;typeof l>"u"&&c&&(l=c.filled||c.focused||c.adornedStart);const f=Ni({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),v=j({},n,{disableAnimation:o,formControl:c,shrink:l,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),m=sPe(v);return S.jsx(lPe,j({"data-shrink":l,ownerState:v,ref:r,className:$e(m.root,i)},s,{classes:m}))}),s6=uPe;function cPe(e){return Ve("MuiLinearProgress",e)}He("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const dPe=["className","color","value","valueBuffer","variant"];let jd=e=>e,cF,dF,fF,pF,vF,mF;const rO=4,fPe=Mi(cF||(cF=jd` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),pPe=Mi(dF||(dF=jd` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),vPe=Mi(fF||(fF=jd` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),mPe=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${xe(n)}`,r],dashed:["dashed",`dashedColor${xe(n)}`],bar1:["bar",`barColor${xe(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${xe(n)}`,r==="buffer"&&`color${xe(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return ze(o,cPe,t)},d$=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?N0(e.palette[t].main,.62):L0(e.palette[t].main,.5),hPe=J("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${xe(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>j({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:d$(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)"})),gPe=J("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${xe(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=d$(t,e.color);return j({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"})},lu(pF||(pF=jd` + animation: ${0} 3s infinite linear; + `),vPe)),yPe=J("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${xe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>j({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 .${rO}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${rO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&lu(vF||(vF=jd` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),fPe)),bPe=J("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${xe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>j({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:d$(t,e.color),transition:`transform .${rO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&lu(mF||(mF=jd` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),pPe)),_Pe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:c="indeterminate"}=n,l=we(n,dPe),f=j({},n,{color:a,variant:c}),v=mPe(f),m=Gs(),h={},x={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let w=i-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(c==="buffer"&&s!==void 0){let w=(s||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return S.jsxs(hPe,j({className:$e(v.root,o),ownerState:f,role:"progressbar"},h,{ref:r},l,{children:[c==="buffer"?S.jsx(gPe,{className:v.dashed,ownerState:f}):null,S.jsx(yPe,{className:v.bar1,ownerState:f,style:x.bar1}),c==="determinate"?null:S.jsx(bPe,{className:v.bar2,ownerState:f,style:x.bar2})]}))}),xPe=_Pe;function wPe(e){return Ve("MuiLink",e)}const SPe=He("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),OPe=SPe,l6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},CPe=e=>l6[e]||e,EPe=({theme:e,ownerState:t})=>{const r=CPe(t.color),n=qc(e,`palette.${r}`,!1)||t.color,o=qc(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:It(n,.4)},PPe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$Pe=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${xe(o)}`,r==="button"&&"button",n&&"focusVisible"]};return ze(a,wPe,t)},RPe=J(it,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>j({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&j({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:EPe({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"},[`&.${OPe.focusVisible}`]:{outline:"auto"}})),TPe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:c,TypographyClasses:l,underline:f="always",variant:v="inherit",sx:m}=n,h=we(n,PPe),{isFocusVisibleRef:x,onBlur:w,onFocus:O,ref:b}=F0(),[g,_]=d.useState(!1),$=ir(r,b),P=I=>{w(I),x.current===!1&&_(!1),s&&s(I)},E=I=>{O(I),x.current===!0&&_(!0),c&&c(I)},T=j({},n,{color:a,component:i,focusVisible:g,underline:f,variant:v}),R=$Pe(T);return S.jsx(RPe,j({color:a,className:$e(R.root,o),classes:l,component:i,onBlur:P,onFocus:E,ref:$,ownerState:T,variant:v,sx:[...Object.keys(l6).includes(a)?[]:[{color:a}],...Array.isArray(m)?m:[m]]},h))}),kPe=TPe,IPe=d.createContext({}),Gp=IPe;function jPe(e){return Ve("MuiList",e)}He("MuiList",["root","padding","dense","subheader"]);const APe=["children","className","component","dense","disablePadding","subheader"],MPe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ze({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jPe,t)},FPe=J("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})=>j({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),LPe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:c=!1,subheader:l}=n,f=we(n,APe),v=d.useMemo(()=>({dense:s}),[s]),m=j({},n,{component:i,dense:s,disablePadding:c}),h=MPe(m);return S.jsx(Gp.Provider,{value:v,children:S.jsxs(FPe,j({as:i,className:$e(h.root,a),ref:r,ownerState:m},f,{children:[l,o]}))})}),NPe=LPe;function DPe(e){return Ve("MuiListItemIcon",e)}const BPe=He("MuiListItemIcon",["root","alignItemsFlexStart"]),hF=BPe,zPe=["className"],UPe=e=>{const{alignItems:t,classes:r}=e;return ze({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},DPe,r)},VPe=J("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})=>j({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),WPe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=we(n,zPe),i=d.useContext(Gp),s=j({},n,{alignItems:i.alignItems}),c=UPe(s);return S.jsx(VPe,j({className:$e(c.root,o),ownerState:s,ref:r},a))}),u6=WPe;function qPe(e){return Ve("MuiListItemText",e)}const HPe=He("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$y=HPe,GPe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],KPe=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return ze({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},qPe,t)},QPe=J("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$y.primary}`]:t.primary},{[`& .${$y.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>j({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),XPe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:c,primaryTypographyProps:l,secondary:f,secondaryTypographyProps:v}=n,m=we(n,GPe),{dense:h}=d.useContext(Gp);let x=c??o,w=f;const O=j({},n,{disableTypography:i,inset:s,primary:!!x,secondary:!!w,dense:h}),b=KPe(O);return x!=null&&x.type!==it&&!i&&(x=S.jsx(it,j({variant:h?"body2":"body1",className:b.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:x}))),w!=null&&w.type!==it&&!i&&(w=S.jsx(it,j({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},v,{children:w}))),S.jsxs(QPe,j({className:$e(b.root,a),ownerState:O,ref:r},m,{children:[x,w]}))}),YPe=XPe,JPe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mx(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function gF(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function c6(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 _f(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 c=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!c6(s,a)||c)s=o(e,s,r);else return s.focus(),!0}return!1}const ZPe=d.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:c=!1,disableListWrap:l=!1,onKeyDown:f,variant:v="selectedMenu"}=t,m=we(t,JPe),h=d.useRef(null),x=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fo(()=>{o&&h.current.focus()},[o]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:$})=>{const P=!h.current.style.width;if(_.clientHeight{const $=h.current,P=_.key,E=Er($).activeElement;if(P==="ArrowDown")_.preventDefault(),_f($,E,l,c,Mx);else if(P==="ArrowUp")_.preventDefault(),_f($,E,l,c,gF);else if(P==="Home")_.preventDefault(),_f($,null,l,c,Mx);else if(P==="End")_.preventDefault(),_f($,null,l,c,gF);else if(P.length===1){const T=x.current,R=P.toLowerCase(),I=performance.now();T.keys.length>0&&(I-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&R!==T.keys[0]&&(T.repeating=!1)),T.lastTime=I,T.keys.push(R);const A=E&&!T.repeating&&c6(E,T);T.previousKeyMatched&&(A||_f($,E,!1,c,Mx,T))?_.preventDefault():T.previousKeyMatched=!1}f&&f(_)},O=ir(h,r);let b=-1;d.Children.forEach(i,(_,$)=>{if(!d.isValidElement(_)){b===$&&(b+=1,b>=i.length&&(b=-1));return}_.props.disabled||(v==="selectedMenu"&&_.props.selected||b===-1)&&(b=$),b===$&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const g=d.Children.map(i,(_,$)=>{if($===b){const P={};return a&&(P.autoFocus=!0),_.props.tabIndex===void 0&&v==="selectedMenu"&&(P.tabIndex=0),d.cloneElement(_,P)}return _});return S.jsx(NPe,j({role:"menu",ref:O,className:s,onKeyDown:w,tabIndex:o?0:-1},m,{children:g}))}),d6=ZPe;function e$e(e){return Ve("MuiPopover",e)}He("MuiPopover",["root","paper"]);const t$e=["onEntering"],r$e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],n$e=["slotProps"];function yF(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function bF(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function _F(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Fx(e){return typeof e=="function"?e():e}const o$e=e=>{const{classes:t}=e;return ze({root:["root"],paper:["paper"]},e$e,t)},a$e=J(s$,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),f6=J(Ks,{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}),i$e=d.forwardRef(function(t,r){var n,o,a;const i=Ge({props:t,name:"MuiPopover"}),{action:s,anchorEl:c,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:v="anchorEl",children:m,className:h,container:x,elevation:w=8,marginThreshold:O=16,open:b,PaperProps:g={},slots:_,slotProps:$,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:E=Py,transitionDuration:T="auto",TransitionProps:{onEntering:R}={},disableScrollLock:I=!1}=i,A=we(i.TransitionProps,t$e),F=we(i,r$e),L=(n=$==null?void 0:$.paper)!=null?n:g,D=d.useRef(),z=ir(D,L.ref),H=j({},i,{anchorOrigin:l,anchorReference:v,elevation:w,marginThreshold:O,externalPaperSlotProps:L,transformOrigin:P,TransitionComponent:E,transitionDuration:T,TransitionProps:A}),G=o$e(H),q=d.useCallback(()=>{if(v==="anchorPosition")return f;const ae=Fx(c),Ce=(ae&&ae.nodeType===1?ae:Er(D.current).body).getBoundingClientRect();return{top:Ce.top+yF(Ce,l.vertical),left:Ce.left+bF(Ce,l.horizontal)}},[c,l.horizontal,l.vertical,f,v]),U=d.useCallback(ae=>({vertical:yF(ae,P.vertical),horizontal:bF(ae,P.horizontal)}),[P.horizontal,P.vertical]),W=d.useCallback(ae=>{const Se={width:ae.offsetWidth,height:ae.offsetHeight},Ce=U(Se);if(v==="none")return{top:null,left:null,transformOrigin:_F(Ce)};const Ne=q();let Xe=Ne.top-Ce.vertical,V=Ne.left-Ce.horizontal;const X=Xe+Se.height,Y=V+Se.width,ie=Wo(Fx(c)),se=ie.innerHeight-O,ue=ie.innerWidth-O;if(O!==null&&Xese){const Ee=X-se;Xe-=Ee,Ce.vertical+=Ee}if(O!==null&&Vue){const Ee=Y-ue;V-=Ee,Ce.horizontal+=Ee}return{top:`${Math.round(Xe)}px`,left:`${Math.round(V)}px`,transformOrigin:_F(Ce)}},[c,v,q,U,O]),[te,ne]=d.useState(b),ee=d.useCallback(()=>{const ae=D.current;if(!ae)return;const Se=W(ae);Se.top!==null&&(ae.style.top=Se.top),Se.left!==null&&(ae.style.left=Se.left),ae.style.transformOrigin=Se.transformOrigin,ne(!0)},[W]);d.useEffect(()=>(I&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[c,I,ee]);const Oe=(ae,Se)=>{R&&R(ae,Se),ee()},de=()=>{ne(!1)};d.useEffect(()=>{b&&ee()}),d.useImperativeHandle(s,()=>b?{updatePosition:()=>{ee()}}:null,[b,ee]),d.useEffect(()=>{if(!b)return;const ae=Rd(()=>{ee()}),Se=Wo(c);return Se.addEventListener("resize",ae),()=>{ae.clear(),Se.removeEventListener("resize",ae)}},[c,b,ee]);let oe=T;T==="auto"&&!E.muiSupportAuto&&(oe=void 0);const me=x||(c?Er(Fx(c)).body:void 0),Re=(o=_==null?void 0:_.root)!=null?o:a$e,ye=(a=_==null?void 0:_.paper)!=null?a:f6,fe=Ho({elementType:ye,externalSlotProps:j({},L,{style:te?L.style:j({},L.style,{opacity:0})}),additionalProps:{elevation:w,ref:z},ownerState:H,className:$e(G.paper,L==null?void 0:L.className)}),ge=Ho({elementType:Re,externalSlotProps:($==null?void 0:$.root)||{},externalForwardedProps:F,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:me,open:b},ownerState:H,className:$e(G.root,h)}),{slotProps:ce}=ge,pe=we(ge,n$e);return S.jsx(Re,j({},pe,!Vp(Re)&&{slotProps:ce,disableScrollLock:I},{children:S.jsx(E,j({appear:!0,in:b,onEntering:Oe,onExited:de,timeout:oe},A,{children:S.jsx(ye,j({},fe,{children:m}))}))}))}),f$=i$e;function s$e(e){return Ve("MuiMenu",e)}He("MuiMenu",["root","paper","list"]);const l$e=["onEntering"],u$e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],c$e={vertical:"top",horizontal:"right"},d$e={vertical:"top",horizontal:"left"},f$e=e=>{const{classes:t}=e;return ze({root:["root"],paper:["paper"],list:["list"]},s$e,t)},p$e=J(f$,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v$e=J(f6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),m$e=J(d6,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),h$e=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:c,disableAutoFocusItem:l=!1,MenuListProps:f={},onClose:v,open:m,PaperProps:h={},PopoverClasses:x,transitionDuration:w="auto",TransitionProps:{onEntering:O}={},variant:b="selectedMenu",slots:g={},slotProps:_={}}=a,$=we(a.TransitionProps,l$e),P=we(a,u$e),E=Gs(),T=j({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:f,onEntering:O,PaperProps:h,transitionDuration:w,TransitionProps:$,variant:b}),R=f$e(T),I=i&&!l&&m,A=d.useRef(null),F=(U,W)=>{A.current&&A.current.adjustStyleForScrollbar(U,{direction:E?"rtl":"ltr"}),O&&O(U,W)},L=U=>{U.key==="Tab"&&(U.preventDefault(),v&&v(U,"tabKeyDown"))};let D=-1;d.Children.map(s,(U,W)=>{d.isValidElement(U)&&(U.props.disabled||(b==="selectedMenu"&&U.props.selected||D===-1)&&(D=W))});const z=(n=g.paper)!=null?n:v$e,H=(o=_.paper)!=null?o:h,G=Ho({elementType:g.root,externalSlotProps:_.root,ownerState:T,className:[R.root,c]}),q=Ho({elementType:z,externalSlotProps:H,ownerState:T,className:R.paper});return S.jsx(p$e,j({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?c$e:d$e,slots:{paper:z,root:g.root},slotProps:{root:G,paper:q},open:m,ref:r,transitionDuration:w,TransitionProps:j({onEntering:F},$),ownerState:T},P,{classes:x,children:S.jsx(m$e,j({onKeyDown:L,actions:A,autoFocus:i&&(D===-1||l),autoFocusItem:I,variant:b},f,{className:$e(R.list,f.className),children:s}))}))}),X0=h$e;function g$e(e){return Ve("MuiMenuItem",e)}const y$e=He("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xf=y$e,b$e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_$e=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},x$e=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,c=ze({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},g$e,i);return j({},i,c)},w$e=J(Li,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:_$e})(({theme:e,ownerState:t})=>j({},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"}},[`&.${xf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(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})`:It(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nF.inset}`]:{marginLeft:52},[`& .${$y.root}`]:{marginTop:0,marginBottom:0},[`& .${$y.inset}`]:{paddingLeft:36},[`& .${hF.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${hF.root} svg`]:{fontSize:"1.25rem"}}))),S$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:l,role:f="menuitem",tabIndex:v,className:m}=n,h=we(n,b$e),x=d.useContext(Gp),w=d.useMemo(()=>({dense:i||x.dense||!1,disableGutters:c}),[x.dense,i,c]),O=d.useRef(null);fo(()=>{o&&O.current&&O.current.focus()},[o]);const b=j({},n,{dense:w.dense,divider:s,disableGutters:c}),g=x$e(n),_=ir(O,r);let $;return n.disabled||($=v!==void 0?v:-1),S.jsx(Gp.Provider,{value:w,children:S.jsx(w$e,j({ref:_,role:f,tabIndex:$,component:a,focusVisibleClassName:$e(g.focusVisible,l),className:$e(g.root,m)},h,{ownerState:b,classes:g}))})}),io=S$e;function p6(e){return Ve("MuiNativeSelect",e)}const O$e=He("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),p$=O$e,C$e=["className","disabled","error","IconComponent","inputRef","variant"],E$e=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${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return ze(s,p6,t)},v6=({ownerState:e,theme:t})=>j({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":j({},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"},[`&.${p$.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}}),P$e=J("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:tn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${p$.multiple}`]:t.multiple}]}})(v6),m6=({ownerState:e,theme:t})=>j({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${p$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),$$e=J("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(m6),R$e=d.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:c="standard"}=t,l=we(t,C$e),f=j({},t,{disabled:o,variant:c,error:a}),v=E$e(f);return S.jsxs(d.Fragment,{children:[S.jsx(P$e,j({ownerState:f,className:$e(v.select,n),disabled:o,ref:s||r},l)),t.multiple?null:S.jsx($$e,{as:i,ownerState:f,className:v.icon})]})}),h6=R$e,T$e=["className","children","classes","IconComponent","input","inputProps","variant"],k$e=["root"],I$e=e=>{const{classes:t}=e;return ze({root:["root"]},p6,t)},j$e=S.jsx(c$,{}),g6=d.forwardRef(function(t,r){const n=Ge({name:"MuiNativeSelect",props:t}),{className:o,children:a,classes:i={},IconComponent:s=qz,input:c=j$e,inputProps:l}=n,f=we(n,T$e),v=Oa(),m=Ni({props:n,muiFormControl:v,states:["variant"]}),h=j({},n,{classes:i}),x=I$e(h),w=we(i,k$e);return S.jsx(d.Fragment,{children:d.cloneElement(c,j({inputComponent:h6,inputProps:j({children:a,classes:w,IconComponent:s,variant:m.variant,type:void 0},l,c?c.props.inputProps:{}),ref:r},f,{className:$e(x.root,c.props.className,o)}))})});g6.muiName="Select";const xF=g6;var wF;const A$e=["children","classes","className","label","notched"],M$e=J("fieldset",{shouldForwardProp:tn})({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%"}),F$e=J("legend",{shouldForwardProp:tn})(({ownerState:e,theme:t})=>j({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&&j({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 L$e(e){const{className:t,label:r,notched:n}=e,o=we(e,A$e),a=r!=null&&r!=="",i=j({},e,{notched:n,withLabel:a});return S.jsx(M$e,j({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(F$e,{ownerState:i,children:a?S.jsx("span",{children:r}):wF||(wF=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const N$e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],D$e=e=>{const{classes:t}=e,n=ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vSe,t);return j({},t,n)},B$e=J(q0,{shouldForwardProp:e=>tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:V0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return j({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Zi.focused} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Zi.error} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zi.disabled} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&j({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),z$e=J(L$e,{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}}),U$e=J(H0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:W0})(({theme:e,ownerState:t})=>j({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})),y6=d.forwardRef(function(t,r){var n,o,a,i,s;const c=Ge({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:f=!1,inputComponent:v="input",label:m,multiline:h=!1,notched:x,slots:w={},type:O="text"}=c,b=we(c,N$e),g=D$e(c),_=Oa(),$=Ni({props:c,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=j({},c,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:_,fullWidth:f,hiddenLabel:$.hiddenLabel,multiline:h,size:$.size,type:O}),E=(n=(o=w.root)!=null?o:l.Root)!=null?n:B$e,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:U$e;return S.jsx(G0,j({slots:{root:E,input:T},renderSuffix:R=>S.jsx(z$e,{ownerState:P,className:g.notchedOutline,label:m!=null&&m!==""&&$.required?s||(s=S.jsxs(d.Fragment,{children:[m," ","*"]})):m,notched:typeof x<"u"?x:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:v,multiline:h,ref:r,type:O},b,{classes:j({},g,{notchedOutline:null})}))});y6.muiName="Input";const b6=y6;function V$e(e){return Ve("MuiPagination",e)}He("MuiPagination",["root","ul","outlined","text"]);const W$e=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function q$e(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:c,page:l,showFirstButton:f=!1,showLastButton:v=!1,siblingCount:m=1}=e,h=we(e,W$e),[x,w]=Gc({controlled:l,default:o,name:r,state:"page"}),O=(I,A)=>{l||w(A),c&&c(I,A)},b=(I,A)=>{const F=A-I+1;return Array.from({length:F},(L,D)=>I+D)},g=b(1,Math.min(t,n)),_=b(Math.max(n-t+1,t+1),n),$=Math.max(Math.min(x-m,n-t-m*2-1),t+2),P=Math.min(Math.max(x+m,t+m*2+2),_.length>0?_[0]-2:n-1),E=[...f?["first"]:[],...s?[]:["previous"],...g,...$>t+2?["start-ellipsis"]:t+1t?[n-t]:[],..._,...i?[]:["next"],...v?["last"]:[]],T=I=>{switch(I){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return n;default:return null}},R=E.map(I=>typeof I=="number"?{onClick:A=>{O(A,I)},type:"page",page:I,selected:I===x,disabled:a,"aria-current":I===x?"true":void 0}:{onClick:A=>{O(A,T(I))},type:I,page:T(I),selected:!1,disabled:a||I.indexOf("ellipsis")===-1&&(I==="next"||I==="last"?x>=n:x<=1)});return j({items:R},h)}function H$e(e){return Ve("MuiPaginationItem",e)}const G$e=He("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),$o=G$e,nO=go(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),oO=go(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),SF=go(S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),OF=go(S.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),K$e=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],_6=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.variant==="text"&&t[`text${xe(r.color)}`],r.variant==="outlined"&&t[`outlined${xe(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]},Q$e=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:c}=e,l={root:["root",`size${xe(a)}`,c,i,r!=="standard"&&`color${xe(r)}`,r!=="standard"&&`${c}${xe(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 ze(l,H$e,t)},X$e=J("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:_6})(({theme:e,ownerState:t})=>j({},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",[`&.${$o.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)})),Y$e=J(Li,{name:"MuiPaginationItem",slot:"Root",overridesResolver:_6})(({theme:e,ownerState:t})=>j({},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,[`&.${$o.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$o.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"}},[`&.${$o.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}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${$o.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${$o.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})=>j({},t.variant==="text"&&{[`&.${$o.selected}`]:j({},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}},[`&.${$o.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${$o.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)"}`,[`&.${$o.selected}`]:j({},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)`:It(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:It(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}))`:It(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$o.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${$o.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),J$e=J("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>j({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Z$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:c=!1,page:l,selected:f=!1,shape:v="circular",size:m="medium",slots:h={},type:x="page",variant:w="text"}=n,O=we(n,K$e),b=j({},n,{color:a,disabled:c,selected:f,shape:v,size:m,type:x,variant:w}),g=Gs(),_=Q$e(b),P=(g?{previous:h.next||s.next||OF,next:h.previous||s.previous||SF,last:h.first||s.first||nO,first:h.last||s.last||oO}:{previous:h.previous||s.previous||SF,next:h.next||s.next||OF,first:h.first||s.first||nO,last:h.last||s.last||oO})[x];return x==="start-ellipsis"||x==="end-ellipsis"?S.jsx(X$e,{ref:r,ownerState:b,className:$e(_.root,o),children:"…"}):S.jsxs(Y$e,j({ref:r,ownerState:b,component:i,disabled:c,className:$e(_.root,o)},O,{children:[x==="page"&&l,P?S.jsx(J$e,{as:P,ownerState:b,className:_.icon}):null]}))}),e2e=Z$e,t2e=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],r2e=e=>{const{classes:t,variant:r}=e;return ze({root:["root",r],ul:["ul"]},V$e,t)},n2e=J("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),o2e=J("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function a2e(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const i2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:c=1,disabled:l=!1,getItemAriaLabel:f=a2e,hideNextButton:v=!1,hidePrevButton:m=!1,renderItem:h=R=>S.jsx(e2e,j({},R)),shape:x="circular",showFirstButton:w=!1,showLastButton:O=!1,siblingCount:b=1,size:g="medium",variant:_="text"}=n,$=we(n,t2e),{items:P}=q$e(j({},n,{componentName:"Pagination"})),E=j({},n,{boundaryCount:o,color:i,count:s,defaultPage:c,disabled:l,getItemAriaLabel:f,hideNextButton:v,hidePrevButton:m,renderItem:h,shape:x,showFirstButton:w,showLastButton:O,siblingCount:b,size:g,variant:_}),T=r2e(E);return S.jsx(n2e,j({"aria-label":"pagination navigation",className:$e(T.root,a),ownerState:E,ref:r},$,{children:S.jsx(o2e,{className:T.ul,ownerState:E,children:P.map((R,I)=>S.jsx("li",{children:h(j({},R,{color:i,"aria-label":f(R.type,R.page,R.selected),shape:x,size:g,variant:_}))},I))})}))}),s2e=i2e;function l2e(e){return Ve("MuiScopedCssBaseline",e)}He("MuiScopedCssBaseline",["root"]);const u2e=["className","component","enableColorScheme"],c2e=e=>{const{classes:t}=e;return ze({root:["root"]},l2e,t)},d2e=J("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}}),j({},XOe(e,t.enableColorScheme),YOe(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),f2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=we(n,u2e),s=j({},n,{component:a}),c=c2e(s);return S.jsx(d2e,j({as:a,className:$e(c.root,o),ref:r,ownerState:s},i))}),p2e=f2e;function v2e(e){return Ve("MuiSelect",e)}const wf=He("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var CF;const m2e=["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"],h2e=J("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${wf.select}`]:t.select},{[`&.${wf.select}`]:t[r.variant]},{[`&.${wf.error}`]:t.error},{[`&.${wf.multiple}`]:t.multiple}]}})(v6,{[`&.${wf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),g2e=J("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(m6),y2e=J("input",{shouldForwardProp:e=>Cz(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 EF(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function b2e(e){return e==null||typeof e=="string"&&!e.trim()}const _2e=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${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return ze(s,v2e,t)},x2e=d.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:c,className:l,defaultOpen:f,defaultValue:v,disabled:m,displayEmpty:h,error:x=!1,IconComponent:w,inputRef:O,labelId:b,MenuProps:g={},multiple:_,name:$,onBlur:P,onChange:E,onClose:T,onFocus:R,onOpen:I,open:A,readOnly:F,renderValue:L,SelectDisplayProps:D={},tabIndex:z,value:H,variant:G="standard"}=t,q=we(t,m2e),[U,W]=Gc({controlled:H,default:v,name:"Select"}),[te,ne]=Gc({controlled:A,default:f,name:"Select"}),ee=d.useRef(null),Oe=d.useRef(null),[de,oe]=d.useState(null),{current:me}=d.useRef(A!=null),[Re,ye]=d.useState(),fe=ir(r,O),ge=d.useCallback(Ue=>{Oe.current=Ue,Ue&&oe(Ue)},[]),ce=de==null?void 0:de.parentNode;d.useImperativeHandle(fe,()=>({focus:()=>{Oe.current.focus()},node:ee.current,value:U}),[U]),d.useEffect(()=>{f&&te&&de&&!me&&(ye(s?null:ce.clientWidth),Oe.current.focus())},[de,s]),d.useEffect(()=>{i&&Oe.current.focus()},[i]),d.useEffect(()=>{if(!b)return;const Ue=Er(Oe.current).getElementById(b);if(Ue){const et=()=>{getSelection().isCollapsed&&Oe.current.focus()};return Ue.addEventListener("click",et),()=>{Ue.removeEventListener("click",et)}}},[b]);const pe=(Ue,et)=>{Ue?I&&I(et):T&&T(et),me||(ye(s?null:ce.clientWidth),ne(Ue))},ae=Ue=>{Ue.button===0&&(Ue.preventDefault(),Oe.current.focus(),pe(!0,Ue))},Se=Ue=>{pe(!1,Ue)},Ce=d.Children.toArray(c),Ne=Ue=>{const et=Ce.find(ke=>ke.props.value===Ue.target.value);et!==void 0&&(W(et.props.value),E&&E(Ue,et))},Xe=Ue=>et=>{let ke;if(et.currentTarget.hasAttribute("tabindex")){if(_){ke=Array.isArray(U)?U.slice():[];const Be=U.indexOf(Ue.props.value);Be===-1?ke.push(Ue.props.value):ke.splice(Be,1)}else ke=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(et),U!==ke&&(W(ke),E)){const Be=et.nativeEvent||et,ct=new Be.constructor(Be.type,Be);Object.defineProperty(ct,"target",{writable:!0,value:{value:ke,name:$}}),E(ct,Ue)}_||pe(!1,et)}},V=Ue=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ue.key)!==-1&&(Ue.preventDefault(),pe(!0,Ue))},X=de!==null&&te,Y=Ue=>{!X&&P&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:U,name:$}}),P(Ue))};delete q["aria-invalid"];let ie,se;const ue=[];let Ee=!1;(Ey({value:U})||h)&&(L?ie=L(U):Ee=!0);const Ie=Ce.map(Ue=>{if(!d.isValidElement(Ue))return null;let et;if(_){if(!Array.isArray(U))throw new Error(Pi(2));et=U.some(ke=>EF(ke,Ue.props.value)),et&&Ee&&ue.push(Ue.props.children)}else et=EF(U,Ue.props.value),et&&Ee&&(se=Ue.props.children);return d.cloneElement(Ue,{"aria-selected":et?"true":"false",onClick:Xe(Ue),onKeyUp:ke=>{ke.key===" "&&ke.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(ke)},role:"option",selected:et,value:void 0,"data-value":Ue.props.value})});Ee&&(_?ue.length===0?ie=null:ie=ue.reduce((Ue,et,ke)=>(Ue.push(et),ke{const{classes:t}=e;return t},v$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>tn(e)&&e!=="variant",slot:"Root"},E2e=J(c$,v$)(""),P2e=J(b6,v$)(""),$2e=J(n6,v$)(""),x6=d.forwardRef(function(t,r){const n=Ge({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:c=!1,displayEmpty:l=!1,IconComponent:f=qz,id:v,input:m,inputProps:h,label:x,labelId:w,MenuProps:O,multiple:b=!1,native:g=!1,onClose:_,onOpen:$,open:P,renderValue:E,SelectDisplayProps:T,variant:R="outlined"}=n,I=we(n,S2e),A=g?h6:w2e,F=Oa(),L=Ni({props:n,muiFormControl:F,states:["variant","error"]}),D=L.variant||R,z=j({},n,{variant:D,classes:i}),H=C2e(z),G=we(H,O2e),q=m||{standard:S.jsx(E2e,{ownerState:z}),outlined:S.jsx(P2e,{label:x,ownerState:z}),filled:S.jsx($2e,{ownerState:z})}[D],U=ir(r,q.ref);return S.jsx(d.Fragment,{children:d.cloneElement(q,j({inputComponent:A,inputProps:j({children:a,error:L.error,IconComponent:f,variant:D,type:void 0,multiple:b},g?{id:v}:{autoWidth:o,defaultOpen:c,displayEmpty:l,labelId:w,MenuProps:O,onClose:_,onOpen:$,open:P,renderValue:E,SelectDisplayProps:j({id:v},T)},h,{classes:h?Pn(G,h.classes):G},m?m.props.inputProps:{})},(b&&g||l)&&D==="outlined"?{notched:!0}:{},{ref:U,className:$e(q.props.className,s,H.root)},!m&&{variant:D},I))})});x6.muiName="Select";const m$=x6;function R2e(e){return Ve("MuiSnackbarContent",e)}He("MuiSnackbarContent",["root","message","action"]);const T2e=["action","className","message","role"],k2e=e=>{const{classes:t}=e;return ze({root:["root"],action:["action"],message:["message"]},R2e,t)},I2e=J(Ks,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=K0e(e.palette.background.default,t);return j({},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}})}),j2e=J("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),A2e=J("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),M2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,c=we(n,T2e),l=n,f=k2e(l);return S.jsxs(I2e,j({role:s,square:!0,elevation:6,className:$e(f.root,a),ownerState:l,ref:r},c,{children:[S.jsx(j2e,{className:f.message,ownerState:l,children:i}),o?S.jsx(A2e,{className:f.action,ownerState:l,children:o}):null]}))}),F2e=M2e;function L2e(e){return Ve("MuiSnackbar",e)}He("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const N2e=["onEnter","onExited"],D2e=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],B2e=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${xe(r.vertical)}${xe(r.horizontal)}`]};return ze(n,L2e,t)},PF=J("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${xe(r.anchorOrigin.vertical)}${xe(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return j({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")]:j({},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"})})}),z2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbar"}),o=ta(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:f,className:v,ClickAwayListenerProps:m,ContentProps:h,disableWindowBlurListener:x=!1,message:w,open:O,TransitionComponent:b=Py,transitionDuration:g=a,TransitionProps:{onEnter:_,onExited:$}={}}=n,P=we(n.TransitionProps,N2e),E=we(n,D2e),T=j({},n,{anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:l,disableWindowBlurListener:x,TransitionComponent:b,transitionDuration:g}),R=B2e(T),{getRootProps:I,onClickAway:A}=Wwe(j({},T)),[F,L]=d.useState(!0),D=Ho({elementType:PF,getSlotProps:I,externalForwardedProps:E,ownerState:T,additionalProps:{ref:r},className:[R.root,v]}),z=G=>{L(!0),$&&$(G)},H=(G,q)=>{L(!1),_&&_(G,q)};return!O&&F?null:S.jsx(dxe,j({onClickAway:A},m,{children:S.jsx(PF,j({},D,{children:S.jsx(b,j({appear:!0,in:O,timeout:g,direction:s==="top"?"down":"up",onEnter:H,onExited:z},P,{children:f||S.jsx(F2e,j({message:w,action:i},h))}))}))}))}),U2e=z2e;function V2e(e){return Ve("MuiTooltip",e)}const W2e=He("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),hs=W2e,q2e=["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 H2e(e){return Math.round(e*1e5)/1e5}const G2e=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${xe(a.split("-")[0])}`],arrow:["arrow"]};return ze(i,V2e,t)},K2e=J(Wz,{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})=>j({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${hs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${hs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${hs.arrow}`]:j({},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"] .${hs.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Q2e=J("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${xe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:It(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:`${H2e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${hs.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${hs.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${hs.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${hs.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),X2e=J("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:It(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let bh=!1;const $F=new Rv;let Sf={x:0,y:0};function _h(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Y2e=d.forwardRef(function(t,r){var n,o,a,i,s,c,l,f,v,m,h,x,w,O,b,g,_,$,P;const E=Ge({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:R,components:I={},componentsProps:A={},describeChild:F=!1,disableFocusListener:L=!1,disableHoverListener:D=!1,disableInteractive:z=!1,disableTouchListener:H=!1,enterDelay:G=100,enterNextDelay:q=0,enterTouchDelay:U=700,followCursor:W=!1,id:te,leaveDelay:ne=0,leaveTouchDelay:ee=1500,onClose:Oe,onOpen:de,open:oe,placement:me="bottom",PopperComponent:Re,PopperProps:ye={},slotProps:fe={},slots:ge={},title:ce,TransitionComponent:pe=Py,TransitionProps:ae}=E,Se=we(E,q2e),Ce=d.isValidElement(R)?R:S.jsx("span",{children:R}),Ne=ta(),Xe=Gs(),[V,X]=d.useState(),[Y,ie]=d.useState(null),se=d.useRef(!1),ue=z||W,Ee=Pl(),Ie=Pl(),at=Pl(),ot=Pl(),[Le,De]=Gc({controlled:oe,default:!1,name:"Tooltip",state:"open"});let ft=Le;const Et=eu(te),Ct=d.useRef(),Ue=Cn(()=>{Ct.current!==void 0&&(document.body.style.WebkitUserSelect=Ct.current,Ct.current=void 0),ot.clear()});d.useEffect(()=>Ue,[Ue]);const et=mt=>{$F.clear(),bh=!0,De(!0),de&&!ft&&de(mt)},ke=Cn(mt=>{$F.start(800+ne,()=>{bh=!1}),De(!1),Oe&&ft&&Oe(mt),Ee.start(Ne.transitions.duration.shortest,()=>{se.current=!1})}),Be=mt=>{se.current&&mt.type!=="touchstart"||(V&&V.removeAttribute("title"),Ie.clear(),at.clear(),G||bh&&q?Ie.start(bh?q:G,()=>{et(mt)}):et(mt))},ct=mt=>{Ie.clear(),at.start(ne,()=>{ke(mt)})},{isFocusVisibleRef:yt,onBlur:Yt,onFocus:$r,ref:mn}=F0(),[,ra]=d.useState(!1),Kn=mt=>{Yt(mt),yt.current===!1&&(ra(!1),ct(mt))},zi=mt=>{V||X(mt.currentTarget),$r(mt),yt.current===!0&&(ra(!0),Be(mt))},Kv=mt=>{se.current=!0;const gn=Ce.props;gn.onTouchStart&&gn.onTouchStart(mt)},f1=mt=>{Kv(mt),at.clear(),Ee.clear(),Ue(),Ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ot.start(U,()=>{document.body.style.WebkitUserSelect=Ct.current,Be(mt)})},Qv=mt=>{Ce.props.onTouchEnd&&Ce.props.onTouchEnd(mt),Ue(),at.start(ee,()=>{ke(mt)})};d.useEffect(()=>{if(!ft)return;function mt(gn){(gn.key==="Escape"||gn.key==="Esc")&&ke(gn)}return document.addEventListener("keydown",mt),()=>{document.removeEventListener("keydown",mt)}},[ke,ft]);const p1=ir(Ce.ref,mn,X,r);!ce&&ce!==0&&(ft=!1);const zd=d.useRef(),v1=mt=>{const gn=Ce.props;gn.onMouseMove&&gn.onMouseMove(mt),Sf={x:mt.clientX,y:mt.clientY},zd.current&&zd.current.update()},ei={},Ud=typeof ce=="string";F?(ei.title=!ft&&Ud&&!D?ce:null,ei["aria-describedby"]=ft?Et:null):(ei["aria-label"]=Ud?ce:null,ei["aria-labelledby"]=ft&&!Ud?Et:null);const hn=j({},ei,Se,Ce.props,{className:$e(Se.className,Ce.props.className),onTouchStart:Kv,ref:p1},W?{onMouseMove:v1}:{}),el={};H||(hn.onTouchStart=f1,hn.onTouchEnd=Qv),D||(hn.onMouseOver=_h(Be,hn.onMouseOver),hn.onMouseLeave=_h(ct,hn.onMouseLeave),ue||(el.onMouseOver=Be,el.onMouseLeave=ct)),L||(hn.onFocus=_h(zi,hn.onFocus),hn.onBlur=_h(Kn,hn.onBlur),ue||(el.onFocus=zi,el.onBlur=Kn));const m1=d.useMemo(()=>{var mt;let gn=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(mt=ye.popperOptions)!=null&&mt.modifiers&&(gn=gn.concat(ye.popperOptions.modifiers)),j({},ye.popperOptions,{modifiers:gn})},[Y,ye]),tl=j({},E,{isRtl:Xe,arrow:T,disableInteractive:ue,placement:me,PopperComponentProp:Re,touch:se.current}),Vd=G2e(tl),Xv=(n=(o=ge.popper)!=null?o:I.Popper)!=null?n:K2e,Yv=(a=(i=(s=ge.transition)!=null?s:I.Transition)!=null?i:pe)!=null?a:Py,Jv=(c=(l=ge.tooltip)!=null?l:I.Tooltip)!=null?c:Q2e,Zv=(f=(v=ge.arrow)!=null?v:I.Arrow)!=null?f:X2e,em=dc(Xv,j({},ye,(m=fe.popper)!=null?m:A.popper,{className:$e(Vd.popper,ye==null?void 0:ye.className,(h=(x=fe.popper)!=null?x:A.popper)==null?void 0:h.className)}),tl),h1=dc(Yv,j({},ae,(w=fe.transition)!=null?w:A.transition),tl),g1=dc(Jv,j({},(O=fe.tooltip)!=null?O:A.tooltip,{className:$e(Vd.tooltip,(b=(g=fe.tooltip)!=null?g:A.tooltip)==null?void 0:b.className)}),tl),y1=dc(Zv,j({},(_=fe.arrow)!=null?_:A.arrow,{className:$e(Vd.arrow,($=(P=fe.arrow)!=null?P:A.arrow)==null?void 0:$.className)}),tl);return S.jsxs(d.Fragment,{children:[d.cloneElement(Ce,hn),S.jsx(Xv,j({as:Re??Wz,placement:me,anchorEl:W?{getBoundingClientRect:()=>({top:Sf.y,left:Sf.x,right:Sf.x,bottom:Sf.y,width:0,height:0})}:V,popperRef:zd,open:V?ft:!1,id:Et,transition:!0},el,em,{popperOptions:m1,children:({TransitionProps:mt})=>S.jsx(Yv,j({timeout:Ne.transitions.duration.shorter},mt,h1,{children:S.jsxs(Jv,j({},g1,{children:[ce,T?S.jsx(Zv,j({},y1,{ref:ie})):null]}))}))}))]})}),Ur=Y2e;function J2e(e){return Ve("MuiSwitch",e)}const xn=He("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Z2e=["className","color","edge","size","sx"],eRe=Ez(),tRe=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=ze(s,J2e,t);return j({},t,c)},rRe=J("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${xn.thumb}`]:{width:16,height:16},[`& .${xn.switchBase}`]:{padding:4,[`&.${xn.checked}`]:{transform:"translateX(16px)"}}}}]}),nRe=J(Xz,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${xn.input}`]:t.input},r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xn.checked}`]:{transform:"translateX(20px)"},[`&.${xn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xn.checked} + .${xn.track}`]:{opacity:.5},[`&.${xn.disabled} + .${xn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${xn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${xn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?N0(e.palette[t].main,.62):L0(e.palette[t].main,.55)}`}},[`&.${xn.checked} + .${xn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),oRe=J("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),aRe=J("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),iRe=d.forwardRef(function(t,r){const n=eRe({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:c}=n,l=we(n,Z2e),f=j({},n,{color:a,edge:i,size:s}),v=tRe(f),m=S.jsx(aRe,{className:v.thumb,ownerState:f});return S.jsxs(rRe,{className:$e(v.root,o),sx:c,ownerState:f,children:[S.jsx(nRe,j({type:"checkbox",icon:m,checkedIcon:m,ref:r,ownerState:f},l,{classes:j({},v,{root:v.switchBase})})),S.jsx(oRe,{className:v.track,ownerState:f})]})}),h$=iRe;function sRe(e){return Ve("MuiTab",e)}const lRe=He("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),pl=lRe,uRe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],cRe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:c}=e,l={root:["root",a&&i&&"labelIcon",`textColor${xe(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return ze(l,sRe,t)},dRe=J(Li,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>j({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${pl.iconWrapper}`]:j({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${pl.selected}`]:{opacity:1},[`&.${pl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${pl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${pl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${pl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${pl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),fRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:c,iconPosition:l="top",indicator:f,label:v,onChange:m,onClick:h,onFocus:x,selected:w,selectionFollowsFocus:O,textColor:b="inherit",value:g,wrapped:_=!1}=n,$=we(n,uRe),P=j({},n,{disabled:a,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:l,label:!!v,fullWidth:s,textColor:b,wrapped:_}),E=cRe(P),T=c&&v&&d.isValidElement(c)?d.cloneElement(c,{className:$e(E.iconWrapper,c.props.className)}):c,R=A=>{!w&&m&&m(A,g),h&&h(A)},I=A=>{O&&!w&&m&&m(A,g),x&&x(A)};return S.jsxs(dRe,j({focusRipple:!i,className:$e(E.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:R,onFocus:I,ownerState:P,tabIndex:w?0:-1},$,{children:[l==="top"||l==="start"?S.jsxs(d.Fragment,{children:[T,v]}):S.jsxs(d.Fragment,{children:[v,T]}),f]}))}),w6=fRe,pRe=d.createContext(),S6=pRe;function vRe(e){return Ve("MuiTable",e)}He("MuiTable",["root","stickyHeader"]);const mRe=["className","component","padding","size","stickyHeader"],hRe=e=>{const{classes:t,stickyHeader:r}=e;return ze({root:["root",r&&"stickyHeader"]},vRe,t)},gRe=J("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),RF="table",yRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTable"}),{className:o,component:a=RF,padding:i="normal",size:s="medium",stickyHeader:c=!1}=n,l=we(n,mRe),f=j({},n,{component:a,padding:i,size:s,stickyHeader:c}),v=hRe(f),m=d.useMemo(()=>({padding:i,size:s,stickyHeader:c}),[i,s,c]);return S.jsx(S6.Provider,{value:m,children:S.jsx(gRe,j({as:a,role:a===RF?null:"table",ref:r,className:$e(v.root,o),ownerState:f},l))})}),O6=yRe,bRe=d.createContext(),Y0=bRe;function _Re(e){return Ve("MuiTableBody",e)}He("MuiTableBody",["root"]);const xRe=["className","component"],wRe=e=>{const{classes:t}=e;return ze({root:["root"]},_Re,t)},SRe=J("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),ORe={variant:"body"},TF="tbody",CRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableBody"}),{className:o,component:a=TF}=n,i=we(n,xRe),s=j({},n,{component:a}),c=wRe(s);return S.jsx(Y0.Provider,{value:ORe,children:S.jsx(SRe,j({className:$e(c.root,o),as:a,ref:r,role:a===TF?null:"rowgroup",ownerState:s},i))})}),C6=CRe;function ERe(e){return Ve("MuiTableCell",e)}const PRe=He("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),$Re=PRe,RRe=["align","className","component","padding","scope","size","sortDirection","variant"],TRe=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,o!=="normal"&&`padding${xe(o)}`,`size${xe(a)}`]};return ze(s,ERe,t)},kRe=J("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?N0(It(e.palette.divider,1),.88):L0(It(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",[`&.${$Re.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})),IRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:c,size:l,sortDirection:f,variant:v}=n,m=we(n,RRe),h=d.useContext(S6),x=d.useContext(Y0),w=x&&x.variant==="head";let O;i?O=i:O=w?"th":"td";let b=c;O==="td"?b=void 0:!b&&w&&(b="col");const g=v||x&&x.variant,_=j({},n,{align:o,component:O,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:f,stickyHeader:g==="head"&&h&&h.stickyHeader,variant:g}),$=TRe(_);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),S.jsx(kRe,j({as:O,ref:r,className:$e($.root,a),"aria-sort":P,scope:b,ownerState:_},m))}),un=IRe;function jRe(e){return Ve("MuiTableHead",e)}He("MuiTableHead",["root"]);const ARe=["className","component"],MRe=e=>{const{classes:t}=e;return ze({root:["root"]},jRe,t)},FRe=J("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),LRe={variant:"head"},kF="thead",NRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableHead"}),{className:o,component:a=kF}=n,i=we(n,ARe),s=j({},n,{component:a}),c=MRe(s);return S.jsx(Y0.Provider,{value:LRe,children:S.jsx(FRe,j({as:a,className:$e(c.root,o),ref:r,role:a===kF?null:"rowgroup",ownerState:s},i))})}),E6=NRe;function DRe(e){return Ve("MuiToolbar",e)}He("MuiToolbar",["root","gutters","regular","dense"]);const BRe=["className","component","disableGutters","variant"],zRe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return ze({root:["root",!r&&"gutters",n]},DRe,t)},URe=J("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})=>j({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),VRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,c=we(n,BRe),l=j({},n,{component:a,disableGutters:i,variant:s}),f=zRe(l);return S.jsx(URe,j({as:a,className:$e(f.root,o),ref:r,ownerState:l},c))}),Ad=VRe,P6=go(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),$6=go(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),WRe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],qRe=d.forwardRef(function(t,r){var n,o,a,i,s,c,l,f;const{backIconButtonProps:v,count:m,disabled:h=!1,getItemAriaLabel:x,nextIconButtonProps:w,onPageChange:O,page:b,rowsPerPage:g,showFirstButton:_,showLastButton:$,slots:P={},slotProps:E={}}=t,T=we(t,WRe),R=Gs(),I=fe=>{O(fe,0)},A=fe=>{O(fe,b-1)},F=fe=>{O(fe,b+1)},L=fe=>{O(fe,Math.max(0,Math.ceil(m/g)-1))},D=(n=P.firstButton)!=null?n:nr,z=(o=P.lastButton)!=null?o:nr,H=(a=P.nextButton)!=null?a:nr,G=(i=P.previousButton)!=null?i:nr,q=(s=P.firstButtonIcon)!=null?s:nO,U=(c=P.lastButtonIcon)!=null?c:oO,W=(l=P.nextButtonIcon)!=null?l:$6,te=(f=P.previousButtonIcon)!=null?f:P6,ne=R?z:D,ee=R?H:G,Oe=R?G:H,de=R?D:z,oe=R?E.lastButton:E.firstButton,me=R?E.nextButton:E.previousButton,Re=R?E.previousButton:E.nextButton,ye=R?E.firstButton:E.lastButton;return S.jsxs("div",j({ref:r},T,{children:[_&&S.jsx(ne,j({onClick:I,disabled:h||b===0,"aria-label":x("first",b),title:x("first",b)},oe,{children:R?S.jsx(U,j({},E.lastButtonIcon)):S.jsx(q,j({},E.firstButtonIcon))})),S.jsx(ee,j({onClick:A,disabled:h||b===0,color:"inherit","aria-label":x("previous",b),title:x("previous",b)},me??v,{children:R?S.jsx(W,j({},E.nextButtonIcon)):S.jsx(te,j({},E.previousButtonIcon))})),S.jsx(Oe,j({onClick:F,disabled:h||(m!==-1?b>=Math.ceil(m/g)-1:!1),color:"inherit","aria-label":x("next",b),title:x("next",b)},Re??w,{children:R?S.jsx(te,j({},E.previousButtonIcon)):S.jsx(W,j({},E.nextButtonIcon))})),$&&S.jsx(de,j({onClick:L,disabled:h||b>=Math.ceil(m/g)-1,"aria-label":x("last",b),title:x("last",b)},ye,{children:R?S.jsx(q,j({},E.firstButtonIcon)):S.jsx(U,j({},E.lastButtonIcon))}))]}))}),HRe=qRe;function GRe(e){return Ve("MuiTablePagination",e)}const KRe=He("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),np=KRe;var IF;const QRe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],XRe=J(un,{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}})),YRe=J(Ad,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>j({[`& .${np.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},[`& .${np.actions}`]:{flexShrink:0,marginLeft:20}})),JRe=J("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),ZRe=J("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>j({},e.typography.body2,{flexShrink:0})),eTe=J(m$,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>j({[`& .${np.selectIcon}`]:t.selectIcon,[`& .${np.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${np.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),tTe=J(io,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),rTe=J("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>j({},e.typography.body2,{flexShrink:0}));function nTe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function oTe(e){return`Go to ${e} page`}const aTe=e=>{const{classes:t}=e;return ze({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},GRe,t)},iTe=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=HRe,backIconButtonProps:i,className:s,colSpan:c,component:l=un,count:f,disabled:v=!1,getItemAriaLabel:m=oTe,labelDisplayedRows:h=nTe,labelRowsPerPage:x="Rows per page:",nextIconButtonProps:w,onPageChange:O,onRowsPerPageChange:b,page:g,rowsPerPage:_,rowsPerPageOptions:$=[10,25,50,100],SelectProps:P={},showFirstButton:E=!1,showLastButton:T=!1,slotProps:R={},slots:I={}}=o,A=we(o,QRe),F=o,L=aTe(F),D=(n=R==null?void 0:R.select)!=null?n:P,z=D.native?"option":tTe;let H;(l===un||l==="td")&&(H=c||1e3);const G=eu(D.id),q=eu(D.labelId),U=()=>f===-1?(g+1)*_:_===-1?f:Math.min(f,(g+1)*_);return S.jsx(XRe,j({colSpan:H,ref:r,as:l,ownerState:F,className:$e(L.root,s)},A,{children:S.jsxs(YRe,{className:L.toolbar,children:[S.jsx(JRe,{className:L.spacer}),$.length>1&&S.jsx(ZRe,{className:L.selectLabel,id:q,children:x}),$.length>1&&S.jsx(eTe,j({variant:"standard"},!D.variant&&{input:IF||(IF=S.jsx(G0,{}))},{value:_,onChange:b,id:G,labelId:q},D,{classes:j({},D.classes,{root:$e(L.input,L.selectRoot,(D.classes||{}).root),select:$e(L.select,(D.classes||{}).select),icon:$e(L.selectIcon,(D.classes||{}).icon)}),disabled:v,children:$.map(W=>d.createElement(z,j({},!Vp(z)&&{ownerState:F},{className:L.menuItem,key:W.label?W.label:W,value:W.value?W.value:W}),W.label?W.label:W))})),S.jsx(rTe,{className:L.displayedRows,children:h({from:f===0?0:g*_+1,to:U(),count:f===-1?-1:f,page:g})}),S.jsx(a,{className:L.actions,backIconButtonProps:i,count:f,nextIconButtonProps:w,onPageChange:O,page:g,rowsPerPage:_,showFirstButton:E,showLastButton:T,slotProps:R.actions,slots:I.actions,getItemAriaLabel:m,disabled:v})]})}))}),jF=iTe;function sTe(e){return Ve("MuiTableRow",e)}const lTe=He("MuiTableRow",["root","selected","hover","head","footer"]),AF=lTe,uTe=["className","component","hover","selected"],cTe=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return ze({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},sTe,t)},dTe=J("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,[`&.${AF.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${AF.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(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}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),MF="tr",fTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableRow"}),{className:o,component:a=MF,hover:i=!1,selected:s=!1}=n,c=we(n,uTe),l=d.useContext(Y0),f=j({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),v=cTe(f);return S.jsx(dTe,j({as:a,ref:r,className:$e(v.root,o),role:a===MF?null:"row",ownerState:f},c))}),Kp=fTe,pTe=go(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function vTe(e){return Ve("MuiTableSortLabel",e)}const mTe=He("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Lx=mTe,hTe=["active","children","className","direction","hideSortIcon","IconComponent"],gTe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${xe(r)}`]};return ze(o,vTe,t)},yTe=J(Li,{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,[`& .${Lx.icon}`]:{opacity:.5}},[`&.${Lx.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Lx.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),bTe=J("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${xe(r.direction)}`]]}})(({theme:e,ownerState:t})=>j({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)"})),_Te=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:c=!1,IconComponent:l=pTe}=n,f=we(n,hTe),v=j({},n,{active:o,direction:s,hideSortIcon:c,IconComponent:l}),m=gTe(v);return S.jsxs(yTe,j({className:$e(m.root,i),component:"span",disableRipple:!0,ownerState:v,ref:r},f,{children:[a,c&&!o?null:S.jsx(bTe,{as:l,className:$e(m.icon),ownerState:v})]}))}),xTe=_Te;function wTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function STe(e,t,r,n={},o=()=>{}){const{ease:a=wTe,duration:i=300}=n;let s=null;const c=t[e];let l=!1;const f=()=>{l=!0},v=m=>{if(l){o(new Error("Animation cancelled"));return}s===null&&(s=m);const h=Math.min(1,(m-s)/i);if(t[e]=a(h)*(r-c)+c,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(v)};return c===r?(o(new Error("Element already at target position")),f):(requestAnimationFrame(v),f)}const OTe=["onChange"],CTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ETe(e){const{onChange:t}=e,r=we(e,OTe),n=d.useRef(),o=d.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return fo(()=>{const i=Rd(()=>{const c=n.current;a(),c!==n.current&&t(n.current)}),s=Wo(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{a(),t(n.current)},[t]),S.jsx("div",j({style:CTe,ref:o},r))}function PTe(e){return Ve("MuiTabScrollButton",e)}const $Te=He("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),RTe=$Te,TTe=["className","slots","slotProps","direction","orientation","disabled"],kTe=e=>{const{classes:t,orientation:r,disabled:n}=e;return ze({root:["root",r,n&&"disabled"]},PTe,t)},ITe=J(Li,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>j({width:40,flexShrink:0,opacity:.8,[`&.${RTe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),jTe=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:c={},direction:l}=a,f=we(a,TTe),v=Gs(),m=j({isRtl:v},a),h=kTe(m),x=(n=s.StartScrollButtonIcon)!=null?n:P6,w=(o=s.EndScrollButtonIcon)!=null?o:$6,O=Ho({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),b=Ho({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return S.jsx(ITe,j({component:"div",className:$e(h.root,i),ref:r,role:null,ownerState:m,tabIndex:null},f,{children:l==="left"?S.jsx(x,j({},O)):S.jsx(w,j({},b))}))}),ATe=jTe;function MTe(e){return Ve("MuiTabs",e)}const FTe=He("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Nx=FTe,LTe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],FF=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,LF=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xh=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},NTe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:c}=e;return ze({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},MTe,c)},DTe=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Nx.scrollButtons}`]:t.scrollButtons},{[`& .${Nx.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>j({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Nx.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),BTe=J("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>j({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),zTe=J("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>j({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),UTe=J("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>j({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),VTe=J(ETe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),NF={},WTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTabs"}),o=ta(),a=Gs(),{"aria-label":i,"aria-labelledby":s,action:c,centered:l=!1,children:f,className:v,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:x="primary",onChange:w,orientation:O="horizontal",ScrollButtonComponent:b=ATe,scrollButtons:g="auto",selectionFollowsFocus:_,slots:$={},slotProps:P={},TabIndicatorProps:E={},TabScrollButtonProps:T={},textColor:R="primary",value:I,variant:A="standard",visibleScrollbar:F=!1}=n,L=we(n,LTe),D=A==="scrollable",z=O==="vertical",H=z?"scrollTop":"scrollLeft",G=z?"top":"left",q=z?"bottom":"right",U=z?"clientHeight":"clientWidth",W=z?"height":"width",te=j({},n,{component:m,allowScrollButtonsMobile:h,indicatorColor:x,orientation:O,vertical:z,scrollButtons:g,textColor:R,variant:A,visibleScrollbar:F,fixed:!D,hideScrollbar:D&&!F,scrollableX:D&&!z,scrollableY:D&&z,centered:l&&!D,scrollButtonsHideMobile:!h}),ne=NTe(te),ee=Ho({elementType:$.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:te}),Oe=Ho({elementType:$.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:te}),[de,oe]=d.useState(!1),[me,Re]=d.useState(NF),[ye,fe]=d.useState(!1),[ge,ce]=d.useState(!1),[pe,ae]=d.useState(!1),[Se,Ce]=d.useState({overflow:"hidden",scrollbarWidth:0}),Ne=new Map,Xe=d.useRef(null),V=d.useRef(null),X=()=>{const ke=Xe.current;let Be;if(ke){const yt=ke.getBoundingClientRect();Be={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollLeftNormalized:w0e(ke,a?"rtl":"ltr"),scrollWidth:ke.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let ct;if(ke&&I!==!1){const yt=V.current.children;if(yt.length>0){const Yt=yt[Ne.get(I)];ct=Yt?Yt.getBoundingClientRect():null}}return{tabsMeta:Be,tabMeta:ct}},Y=Cn(()=>{const{tabsMeta:ke,tabMeta:Be}=X();let ct=0,yt;if(z)yt="top",Be&&ke&&(ct=Be.top-ke.top+ke.scrollTop);else if(yt=a?"right":"left",Be&&ke){const $r=a?ke.scrollLeftNormalized+ke.clientWidth-ke.scrollWidth:ke.scrollLeft;ct=(a?-1:1)*(Be[yt]-ke[yt]+$r)}const Yt={[yt]:ct,[W]:Be?Be[W]:0};if(isNaN(me[yt])||isNaN(me[W]))Re(Yt);else{const $r=Math.abs(me[yt]-Yt[yt]),mn=Math.abs(me[W]-Yt[W]);($r>=1||mn>=1)&&Re(Yt)}}),ie=(ke,{animation:Be=!0}={})=>{Be?STe(H,Xe.current,ke,{duration:o.transitions.duration.standard}):Xe.current[H]=ke},se=ke=>{let Be=Xe.current[H];z?Be+=ke:(Be+=ke*(a?-1:1),Be*=a&&fz()==="reverse"?-1:1),ie(Be)},ue=()=>{const ke=Xe.current[U];let Be=0;const ct=Array.from(V.current.children);for(let yt=0;ytke){yt===0&&(Be=ke);break}Be+=Yt[U]}return Be},Ee=()=>{se(-1*ue())},Ie=()=>{se(ue())},at=d.useCallback(ke=>{Ce({overflow:null,scrollbarWidth:ke})},[]),ot=()=>{const ke={};ke.scrollbarSizeListener=D?S.jsx(VTe,{onChange:at,className:$e(ne.scrollableX,ne.hideScrollbar)}):null;const ct=D&&(g==="auto"&&(ye||ge)||g===!0);return ke.scrollButtonStart=ct?S.jsx(b,j({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:O,direction:a?"right":"left",onClick:Ee,disabled:!ye},T,{className:$e(ne.scrollButtons,T.className)})):null,ke.scrollButtonEnd=ct?S.jsx(b,j({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Oe},orientation:O,direction:a?"left":"right",onClick:Ie,disabled:!ge},T,{className:$e(ne.scrollButtons,T.className)})):null,ke},Le=Cn(ke=>{const{tabsMeta:Be,tabMeta:ct}=X();if(!(!ct||!Be)){if(ct[G]Be[q]){const yt=Be[H]+(ct[q]-Be[q]);ie(yt,{animation:ke})}}}),De=Cn(()=>{D&&g!==!1&&ae(!pe)});d.useEffect(()=>{const ke=Rd(()=>{Xe.current&&Y()});let Be;const ct=$r=>{$r.forEach(mn=>{mn.removedNodes.forEach(ra=>{var Kn;(Kn=Be)==null||Kn.unobserve(ra)}),mn.addedNodes.forEach(ra=>{var Kn;(Kn=Be)==null||Kn.observe(ra)})}),ke(),De()},yt=Wo(Xe.current);yt.addEventListener("resize",ke);let Yt;return typeof ResizeObserver<"u"&&(Be=new ResizeObserver(ke),Array.from(V.current.children).forEach($r=>{Be.observe($r)})),typeof MutationObserver<"u"&&(Yt=new MutationObserver(ct),Yt.observe(V.current,{childList:!0})),()=>{var $r,mn;ke.clear(),yt.removeEventListener("resize",ke),($r=Yt)==null||$r.disconnect(),(mn=Be)==null||mn.disconnect()}},[Y,De]),d.useEffect(()=>{const ke=Array.from(V.current.children),Be=ke.length;if(typeof IntersectionObserver<"u"&&Be>0&&D&&g!==!1){const ct=ke[0],yt=ke[Be-1],Yt={root:Xe.current,threshold:.99},$r=zi=>{fe(!zi[0].isIntersecting)},mn=new IntersectionObserver($r,Yt);mn.observe(ct);const ra=zi=>{ce(!zi[0].isIntersecting)},Kn=new IntersectionObserver(ra,Yt);return Kn.observe(yt),()=>{mn.disconnect(),Kn.disconnect()}}},[D,g,pe,f==null?void 0:f.length]),d.useEffect(()=>{oe(!0)},[]),d.useEffect(()=>{Y()}),d.useEffect(()=>{Le(NF!==me)},[Le,me]),d.useImperativeHandle(c,()=>({updateIndicator:Y,updateScrollButtons:De}),[Y,De]);const ft=S.jsx(UTe,j({},E,{className:$e(ne.indicator,E.className),ownerState:te,style:j({},me,E.style)}));let Et=0;const Ct=d.Children.map(f,ke=>{if(!d.isValidElement(ke))return null;const Be=ke.props.value===void 0?Et:ke.props.value;Ne.set(Be,Et);const ct=Be===I;return Et+=1,d.cloneElement(ke,j({fullWidth:A==="fullWidth",indicator:ct&&!de&&ft,selected:ct,selectionFollowsFocus:_,onChange:w,textColor:R,value:Be},Et===1&&I===!1&&!ke.props.tabIndex?{tabIndex:0}:{}))}),Ue=ke=>{const Be=V.current,ct=Er(Be).activeElement;if(ct.getAttribute("role")!=="tab")return;let Yt=O==="horizontal"?"ArrowLeft":"ArrowUp",$r=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&a&&(Yt="ArrowRight",$r="ArrowLeft"),ke.key){case Yt:ke.preventDefault(),xh(Be,ct,LF);break;case $r:ke.preventDefault(),xh(Be,ct,FF);break;case"Home":ke.preventDefault(),xh(Be,null,FF);break;case"End":ke.preventDefault(),xh(Be,null,LF);break}},et=ot();return S.jsxs(DTe,j({className:$e(ne.root,v),ownerState:te,ref:r,as:m},L,{children:[et.scrollButtonStart,et.scrollbarSizeListener,S.jsxs(BTe,{className:ne.scroller,ownerState:te,style:{overflow:Se.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Se.scrollbarWidth},ref:Xe,children:[S.jsx(zTe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:ne.flexContainer,ownerState:te,onKeyDown:Ue,ref:V,role:"tablist",children:Ct}),de&&ft]}),et.scrollButtonEnd]}))}),R6=WTe;function qTe(e){return Ve("MuiTextField",e)}He("MuiTextField",["root"]);const HTe=["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"],GTe={standard:c$,filled:n6,outlined:b6},KTe=e=>{const{classes:t}=e;return ze({root:["root"]},qTe,t)},QTe=J(o6,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),XTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:c="primary",defaultValue:l,disabled:f=!1,error:v=!1,FormHelperTextProps:m,fullWidth:h=!1,helperText:x,id:w,InputLabelProps:O,inputProps:b,InputProps:g,inputRef:_,label:$,maxRows:P,minRows:E,multiline:T=!1,name:R,onBlur:I,onChange:A,onFocus:F,placeholder:L,required:D=!1,rows:z,select:H=!1,SelectProps:G,type:q,value:U,variant:W="outlined"}=n,te=we(n,HTe),ne=j({},n,{autoFocus:a,color:c,disabled:f,error:v,fullWidth:h,multiline:T,required:D,select:H,variant:W}),ee=KTe(ne),Oe={};W==="outlined"&&(O&&typeof O.shrink<"u"&&(Oe.notched=O.shrink),Oe.label=$),H&&((!G||!G.native)&&(Oe.id=void 0),Oe["aria-describedby"]=void 0);const de=eu(w),oe=x&&de?`${de}-helper-text`:void 0,me=$&&de?`${de}-label`:void 0,Re=GTe[W],ye=S.jsx(Re,j({"aria-describedby":oe,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:h,multiline:T,name:R,rows:z,maxRows:P,minRows:E,type:q,value:U,id:de,inputRef:_,onBlur:I,onChange:A,onFocus:F,placeholder:L,inputProps:b},Oe,g));return S.jsxs(QTe,j({className:$e(ee.root,s),disabled:f,error:v,fullWidth:h,ref:r,required:D,color:c,variant:W,ownerState:ne},te,{children:[$!=null&&$!==""&&S.jsx(s6,j({htmlFor:de,id:me},O,{children:$})),H?S.jsx(m$,j({"aria-describedby":oe,id:de,labelId:me,value:U,input:ye},G,{children:i})):ye,x&&S.jsx(u$,j({id:oe},m,{children:x}))]}))}),Lv=XTe,YTe=["getTrigger","target"];function JTe(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 ZTe=typeof window<"u"?window:null;function T6(e={}){const{getTrigger:t=JTe,target:r=ZTe}=e,n=we(e,YTe),o=d.useRef(),[a,i]=d.useState(()=>t(o,n));return d.useEffect(()=>{const s=()=>{i(t(o,j({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$={},Dx={};const eke=Ga(a_e);var DF;function Qe(){return DF||(DF=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=eke}(Dx)),Dx}var tke=We;Object.defineProperty(g$,"__esModule",{value:!0});var Nv=g$.default=void 0,rke=tke(Qe()),nke=S;Nv=g$.default=(0,rke.default)((0,nke.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 op=function(){return op=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(fAe,null):null,t&&d.createElement(oIe,null),d.createElement(D6,null))},sIe=d.createElement(iIe,null);G6.propTypes={alwaysOn:C.bool,children:C.node,className:C.string,color:C.oneOf(["default","inherit","primary","secondary","transparent"]),container:r0,open:C.bool,toolbar:C.element,userMenu:C.oneOfType([C.element,C.bool])};var lIe=d.createElement(C$,null),_l="RaAppBar",Tl={appBar:"".concat(_l,"-appBar"),toolbar:"".concat(_l,"-toolbar"),menuButton:"".concat(_l,"-menuButton"),menuButtonIconClosed:"".concat(_l,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(_l,"-menuButtonIconOpen"),title:"".concat(_l,"-title")},uIe=J(ixe,{name:_l,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Tl.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Tl.menuButton)]={marginRight:"0.2em"},t["& .".concat(Tl.title)]={},t}),k$={},cIe=We;Object.defineProperty(k$,"__esModule",{value:!0});var K6=k$.default=void 0,dIe=cIe(Qe()),fIe=S;K6=k$.default=(0,dIe.default)((0,fIe.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 I$={},pIe=We;Object.defineProperty(I$,"__esModule",{value:!0});var Q6=I$.default=void 0,vIe=pIe(Qe()),mIe=S;Q6=I$.default=(0,vIe.default)((0,mIe.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 ip=function(){return ip=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb.closest("ul").getBoundingClientRect().bottom?_=g.lastChild:_=g.firstChild),_&&g===_.closest("ul")?o(b.dataset.index,c.current):(O.preventDefault(),O.stopPropagation()),b.classList.remove("drag-active"),document.removeEventListener("dragover",v)},w=function(O){O.preventDefault(),O.dataTransfer.dropEffect="move"};return d.createElement(zIe,{key:a,draggable:o?"true":void 0,onDrag:o?h:void 0,onDragStart:o?m:void 0,onDragEnd:o?x:void 0,onDragOver:o?w:void 0,"data-index":i},d.createElement("label",{htmlFor:"switch_".concat(i)},d.createElement(h$,{checked:t,onChange:n,name:i,id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),d.createElement(it,{variant:"body2",component:"span"},d.createElement(Vo,{label:r,source:a,resource:s}))),o&&d.createElement(e9,{className:"dragIcon",color:"disabled",fontSize:"small"}))},zIe=J("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}}),ts=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n$?P=ts(ts(ts(ts([],s.slice(0,$),!0),[s[_]],!1),s.slice($,_),!0),s.slice(_+1),!0):P=ts(ts(ts(ts([],s.slice(0,_),!0),s.slice(_+1,$+1),!0),[s[_]],!1),s.slice($+1),!0),c(P),m(function(E){return P.filter(function(T){return E.includes(T.index)}).map(function(T){return T.index})})}},w=function(){m([])},O=function(){m(s.map(function(b){return b.index}))};return d.createElement(On,{pt:.5},d.createElement(On,{component:"ul",sx:{paddingInlineStart:0,m:0}},s.map(function(b){return d.createElement(t9,{key:b.index,source:b.source,label:b.label,index:b.index,selected:v.includes(b.index),onToggle:h,onMove:x})})),d.createElement(On,{onDrop:function(b){return b.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},d.createElement(Pr,{size:"small",onClick:w},a("ra.inspector.hideAll",{_:"Hide All"})),d.createElement(Pr,{size:"small",onClick:O},a("ra.inspector.showAll",{_:"Show All"}))))},z$={},VIe=We;Object.defineProperty(z$,"__esModule",{value:!0});var r9=z$.default=void 0,WIe=VIe(Qe()),qIe=S;r9=z$.default=(0,WIe.default)((0,qIe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var U$={},HIe=We;Object.defineProperty(U$,"__esModule",{value:!0});var n9=U$.default=void 0,GIe=HIe(Qe()),KIe=S;n9=U$.default=(0,GIe.default)((0,KIe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var QIe=function(){var e=je();return cB("ra.configurable.inspector.title",{_:"Inspector"}),d.createElement(it,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},o9=function(){var e=OP(),t=e.isEnabled,r=e.disable,n=e.title,o=e.titleOptions,a=e.editor,i=e.preferenceKey,s=d.useRef(!1),c=the(i),l=ta(),f=je(),v=d.useState(0),m=v[0],h=v[1],x=fn("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8,y:8}),w=x[0],O=x[1],b=d.useState(),g=b[0],_=b[1],$=function(T){var R=document==null?void 0:document.elementFromPoint(T.clientX,T.clientY);R.id==="inspector-dialog-title"&&(s.current=!0,T.dataTransfer.effectAllowed="move",T.dataTransfer.setData("inspector",""),setTimeout(function(){T.target.classList.add("hide")},0),_({x:T.clientX-w.x,y:T.clientY-w.y}))},P=function(T){s.current&&(O({x:T.clientX-g.x,y:T.clientY-g.y}),T.target.classList.remove("hide"),s.current=!1)};d.useEffect(function(){if(t){var T=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",T),function(){document==null||document.removeEventListener("dragover",T)}}},[t]),d.useEffect(function(){if(t){var T=function(){window==null||window.requestAnimationFrame(function(){O(function(R){return{x:Math.min(R.x,(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8),y:Math.min(R.y,(window==null?void 0:window.innerHeight)-50)}})})};return T(),window==null||window.addEventListener("resize",T),function(){window==null||window.removeEventListener("resize",T)}}},[t,O,l.breakpoints.values.sm]);var E=function(){c(),h(function(T){return T+1})};return t?d.createElement(XIe,{className:sp.modal,elevation:3,draggable:!0,onDragStart:$,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:sp.title},d.createElement(it,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&f(n,o)),d.createElement("span",{id:"inspector-toolbar"}),i&&d.createElement(nr,{"aria-label":f("ra.action.remove"),onClick:E,size:"small"},d.createElement(n9,{fontSize:"inherit"})),d.createElement(nr,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(r9,{fontSize:"inherit"}))),d.createElement("div",{className:sp.content,key:m},d.createElement(uB,{value:i},a||d.createElement(QIe,null)))):null},og="RaInspector",sp={modal:"".concat(og,"-modal"),title:"".concat(og,"-title"),content:"".concat(og,"-content")},XIe=J(Ks,{name:og,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}},t["& .".concat(sp.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(sp.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});o9.displayName="Inspector";var wl=function(){return wl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),$b.createPortal(d.createElement(tje,gO({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},t1=C.oneOfType([C.string,C.element]);Xs.propTypes={defaultTitle:C.string,className:C.string,record:C.any,title:t1};var nje=function(e){var t=Fr().pathname,r=d.useRef(t);d.useEffect(function(){t!==r.current&&e()},[t,e])},yO=function(){return yO=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,A=IAe(O===!1||O===void 0?void 0:!O,l||!I||T||R);SP(v==="submit"&&(c&&(c.onSuccess||c.onError)||m),'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=d.useCallback(function(z){return qF(void 0,void 0,void 0,function(){var H;return HF(this,function(G){switch(G.label){case 0:return $!=null&&$.save?[4,$.save(z,up(up({},c),{transform:m}))]:[3,2];case 1:H=G.sent(),G.label=2;case 2:return H!=null&&vB(H,_.setError),[2]}})})},[_.setError,$,c,m]),L=d.useCallback(function(z){return qF(void 0,void 0,void 0,function(){return HF(this,function(H){switch(H.label){case 0:return s&&s(z),z.defaultPrevented?[2]:v!=="button"?[3,2]:(z.stopPropagation(),[4,_.handleSubmit(F)(z)]);case 1:H.sent(),H.label=2;case 2:return[2]}})})},[s,v,_,F]),D=i&&g(i,{_:i});return d.createElement(kAe,up({variant:x,type:v,color:r,"aria-label":D,disabled:A,onClick:L},b),R?d.createElement(Id,{sx:$Ae,size:14,thickness:3,color:"inherit"}):o,D)},$Ae={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},RAe=d.createElement(O9,null);Vv.propTypes={className:C.string,invalid:C.bool,label:C.string,variant:C.oneOf(["text","outlined","contained"]),icon:C.element,alwaysEnable:C.bool};var TAe="RaSaveButton",kAe=J(Pr,{name:TAe,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}),IAe=function(e,t){return typeof e>"u"?t:e},jAe=function(){return ve.createElement(MAe,{onClick:FAe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},AAe="RaSkipNavigationButton",MAe=J(Lt,{name:AAe,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})}}}),FAe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},MO=function(){return MO=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]=o-1,color:"primary"},d.createElement(A9,{fontSize:"small"})))},s2={},fMe=We;Object.defineProperty(s2,"__esModule",{value:!0});var M9=s2.default=void 0,pMe=fMe(Qe()),vMe=S;M9=s2.default=(0,pMe.default)((0,vMe.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff");var VO=function(){return VO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var ee=D[0];ee.id;var Oe=hMe(ee,["id"]);te.current=Oe;for(var de in te.current)te.current[de]=null}var oe=d.useCallback(function(ce){ce===void 0&&(ce=void 0);var pe=ce;ce==null&&(pe=te.current,d.Children.count(s)===1&&d.isValidElement(d.Children.only(s))&&!d.Children.only(s).props.source&&d.Children.map(s,function(ae){return d.isValidElement(ae)&&ae.type!==AS}).some(Boolean)?pe="":(pe=pe||{},d.Children.forEach(s,function(ae){var Se;d.isValidElement(ae)&&ae.type!==AS&&ae.props.source&&(pe[ae.props.source]=(Se=ae.props.defaultValue)!==null&&Se!==void 0?Se:null)}))),L(pe),q("".concat(f,".").concat(D.length),{defaultValue:pe})},[L,s,q,f,D.length]),me=function(ce){return function(pe){oe(),ce&&ce(pe)}},Re=d.useCallback(function(ce,pe){z(ce,pe)},[z]),ye=d.useCallback(function(){G([]),A(!1)},[G]),fe=vt(W,f),ge=d.useMemo(function(){return{total:D.length,add:oe,remove:ne,reOrder:Re,source:f}},[oe,D.length,Re,ne,f]);return D?d.createElement($9.Provider,{value:ge},d.createElement(gMe,{className:Je(c,E&&"fullwidth",(m||v)&&"disabled"),sx:T},d.createElement("ul",{className:wr.list},D.map(function(ce,pe){return d.createElement(XAe,{key:ce.id,disabled:m||v,disableRemove:b,disableReordering:g,fields:D,getItemLabel:P,index:pe,member:"".concat(f,".").concat(pe),onRemoveField:ne,onReorder:Re,record:fe&&fe[pe]||{},removeButton:o,reOrderButtons:i,resource:l,source:f,inline:_},s)})),!(m||v)&&!(x&&(w||b))&&d.createElement("div",{className:wr.buttons},!x&&d.createElement("div",{className:wr.add},d.cloneElement(r,{className:Je("button-add","button-add-".concat(f)),onClick:me(r.props.onClick)})),D.length>0&&!w&&!b&&d.createElement("div",{className:wr.clear},d.createElement(Z0,{isOpen:I,title:U("ra.action.clear_array_input"),content:U("ra.message.clear_array_input"),onConfirm:ye,onClose:function(){return A(!1)}}),d.createElement(mMe,{onClick:function(){return A(!0)}}))))):null};Yp.propTypes={addButton:C.element,removeButton:C.element,children:C.node,className:C.string,field:C.object,fields:C.array,fieldState:C.object,formState:C.object,fullWidth:C.bool,inline:C.bool,record:C.object,source:C.string,resource:C.string,translate:C.func,readOnly:C.bool,disabled:C.bool,disableAdd:C.bool,disableRemove:C.oneOfType([C.func,C.bool]),TransitionProps:C.shape({})};var gMe=J("div",{name:Ra,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,o=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(wr.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)},r[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(wr.index)]=(n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)},n[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(wr.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(wr.form)]={flex:2},t["& .".concat(wr.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(wr.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(wr.buttons)]={display:"flex"},t["& .".concat(wr.add)]={borderBottom:"none"},t["& .".concat(wr.clear)]={borderBottom:"none"},t["& .".concat(wr.line,":hover > .").concat(wr.action)]={visibility:"visible"},t}),yMe=function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(f){try{l(n.next(f))}catch(v){i(v)}}function c(f){try{l(n.throw(f))}catch(v){i(v)}}function l(f){f.done?a(f.value):o(f.value).then(s,c)}l((n=n.apply(e,t||[])).next())})},bMe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&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&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=ZMe&&(a=JMe,i=!1,t=new GMe(t));e:for(;++o0&&$.length>0&&$.every(function(P){return x.includes(P)}),onChange:_,onClick:function(P){return P.stopPropagation()}})),d.Children.map(t,function(P,E){return d.isValidElement(P)?d.createElement(zMe,{className:Je(Ze.headerCell,"column-".concat(P.props.source)),sort:v,field:P,isSorting:v.field===(P.props.sortBy||P.props.source),key:P.props.source||E,resource:c,updateSort:g}):null})))};c2.propTypes={children:C.node,className:C.string,sort:C.exact({field:C.string,order:C.oneOf(["ASC","DESC"])}),data:C.arrayOf(C.any),hasExpand:C.bool,hasBulkActions:C.bool,isRowSelectable:C.func,isRowExpandable:C.func,onSelect:C.func,onToggleItem:C.func,resource:C.string,selectedIds:C.arrayOf(C.any),setSort:C.func};c2.displayName="DatagridHeader";var cFe=function(e){var t=e.children,r=e.value;return ve.createElement(L9.Provider,{value:r},t)};const dFe=cFe;var d2={},fFe=We;Object.defineProperty(d2,"__esModule",{value:!0});var W9=d2.default=void 0,pFe=fFe(Qe()),vFe=S;W9=d2.default=(0,pFe.default)((0,vFe.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 QO=function(){return QO=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?I=rs(rs(rs(rs([],c.slice(0,R),!0),[c[T]],!1),c.slice(R,T),!0),c.slice(T+1),!0):I=rs(rs(rs(rs([],c.slice(0,T),!0),c.slice(T+1,R+1),!0),[c[T]],!1),c.slice(R+1),!0),l(I),h(function(A){return I.filter(function(F){return A.includes(F.index)}).map(function(F){return F.index})})}};return d.createElement(d.Fragment,null,w?d.createElement(Ur,{title:O},d.createElement(nr,Ky({"aria-label":O,color:"primary",onClick:b,size:"large"},JF(e)),d.createElement(XO,null))):d.createElement($Fe,Ky({size:"small",onClick:b,startIcon:d.createElement(XO,null)},JF(e)),O),d.createElement(f$,{open:!!a,anchorEl:a,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d.createElement(On,{component:"ul",p:1,my:0},c.map(function(P){return d.createElement(t9,{key:P.index,source:P.source,label:P.label,index:P.index,selected:m.includes(P.index),onToggle:_,onMove:$})}))))},$Fe=J(Pr,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),JF=function(e){e.resource,e.preferenceKey;var t=PFe(e,["resource","preferenceKey"]);return t};function RFe(e,t){for(var r=-1,n=e==null?0:e.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 f=function(){var m=a.getValues();return r.filter(function(h){var x=vt(m,h.props.source);return h.props.alwaysOn||c[h.props.source]||x!==""&&typeof x<"u"})},v=d.useCallback(function(m){return l(m.currentTarget.dataset.key)},[l]);return d.createElement(nB,{prefix:"resources.".concat(o,".fields"),concatenate:!1},d.createElement(oDe,ks({className:t},tDe(n),{onSubmit:eDe}),f().map(function(m){return d.createElement(J9,{key:m.key||m.props.source,filterElement:m,handleHide:v,resource:o,className:Xy.filterFormInput})}),d.createElement("div",{className:Xy.clearFix})))},eDe=function(e){return e.preventDefault(),!1};Z9.propTypes={resource:C.string,filters:C.arrayOf(C.node).isRequired,displayedFilters:C.object,hideFilter:C.func,initialValues:C.object,className:C.string};var tDe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=v2(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},rDe=function(e,t){return ks(ks({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return Nb(ks({},r),n.props.source,n.props.defaultValue)},{})),e)},nDe=function(e){return e.preventDefault(),e.stopPropagation(),!1},JO="RaFilterForm",Xy={clearFix:"".concat(JO,"-clearFix"),filterFormInput:"".concat(JO,"-filterFormInput")},oDe=J("form",{name:JO,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(Xy.clearFix)]={clear:"right"},t["& .".concat(Xy.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),aDe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=e8(e,o,t),n},(r=Y9(t))!==null&&r!==void 0?r:{})},e8=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return vt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=e8(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return vt(r,t,"")},m2={},iDe=We;Object.defineProperty(m2,"__esModule",{value:!0});var t8=m2.default=void 0,sDe=iDe(Qe()),lDe=S;t8=m2.default=(0,sDe.default)((0,lDe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var r8=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=Ot(e),i=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return d.createElement(io,{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(Vo,{label:r.props.label,source:r.props.source,resource:a}))});r8.propTypes={filter:C.element.isRequired,onShow:C.func.isRequired,resource:C.string,autoFocus:C.bool};var h2=function(e){return fn("".concat(e,".savedQueries"),[])},g2=function(e){return Array.isArray(e)?e.filter(function(t){return uDe(t)}):[]},uDe=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")},cDe=function(e){var t=e.open,r=e.onClose,n=je(),o=en(),a=o.resource,i=o.filterValues,s=o.displayedFilters,c=o.sort,l=o.perPage,f=h2(a),v=f[0],m=f[1],h=d.useState(""),x=h[0],w=h[1],O=function(_){w(_.target.value)},b=function(_){_.preventDefault(),g()},g=function(){var _={label:x,value:{filter:i,sort:c,perPage:l,displayedFilters:s}},$=g2(v);m($.concat(_)),w(""),r()};return d.createElement(jv,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(Mv,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(Av,null,d.createElement("form",{onSubmit:b},d.createElement(Lv,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:x,onChange:O}))),d.createElement(l$,null,d.createElement(Pr,{onClick:r},n("ra.action.cancel")),d.createElement(Pr,{onClick:g,color:"primary"},n("ra.action.save"))))},iL=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 F=s.filter(function(oe){return!oe.props.alwaysOn&&!x[oe.props.source]&&typeof vt(w,oe.props.source)>"u"}),L=d.useCallback(function(oe){oe.preventDefault(),I(!0),A.current=oe.currentTarget},[A,I]),D=d.useCallback(function(){I(!1)},[I]),z=d.useCallback(function(oe){var me=oe.source,Re=oe.defaultValue;g(me,Re===""?void 0:Re),setTimeout(function(){var ye=document.querySelector("input[name='".concat(me,"']"));ye&&ye.focus()},50),I(!1)},[g,I]),H=d.useState(!1),G=H[0],q=H[1],U=function(){q(!1)},W=function(){I(!1),q(!0)},te=d.useState(!1),ne=te[0],ee=te[1],Oe=function(){ee(!1)},de=function(){I(!1),ee(!0)};return F.length===0&&P.length===0&&!$?null:d.createElement(vDe,ZO({className:r},fDe(i)),d.createElement(Lt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:a,size:o},d.createElement(t8,null)),d.createElement(X0,{open:R,anchorEl:A.current,onClose:D},F.map(function(oe,me){return d.createElement(r8,{key:oe.props.source,filter:oe,resource:c,onShow:z,autoFocus:me===0})}),P.map(function(oe,me){return Do(oe.value,{filter:w,sort:_,perPage:O,displayedFilters:x})?d.createElement(io,{onClick:de,key:me},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:oe.label})):d.createElement(io,{onClick:function(){v({search:Ql.stringify({filter:JSON.stringify(oe.value.filter),sort:oe.value.sort.field,order:oe.value.sort.order,page:1,perPage:oe.value.perPage,displayedFilters:JSON.stringify(oe.value.displayedFilters)})}),I(!1)},key:me},oe.label)}),$&&!E&&!n&&d.createElement(io,{onClick:W},l("ra.saved_queries.new_label",{_:"Save current query..."})),$&&d.createElement(io,{onClick:function(){b({},{},!1),I(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&d.createElement(d.Fragment,null,d.createElement(cDe,{open:G,onClose:U}),d.createElement(dDe,{open:ne,onClose:Oe})))},fDe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=n8(e,["displayedFilters","filterValues","showFilter"]);return t};o8.propTypes={resource:C.string,filters:C.arrayOf(C.node),displayedFilters:C.object,filterValues:C.object,showFilter:C.func,className:C.string};var pDe="RaFilterButton",vDe=J("div",{name:pDe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),y2={},mDe=We;Object.defineProperty(y2,"__esModule",{value:!0});var a8=y2.default=void 0,hDe=mDe(Qe()),gDe=S;a8=y2.default=(0,hDe.default)((0,gDe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var eC=function(){return eC=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb-1)throw new Error(w("ra.navigation.page_out_of_boundaries",{page:R+1}));h(R+1)},[b,h,w]),_=d.useCallback(function(T){x(T.target.value)},[x]),$=d.useCallback(function(T){var R=T.from,I=T.to,A=T.count;return A===-1&&l?w("ra.navigation.partial_page_range_info",{offsetBegin:R,offsetEnd:I,_:"%{from}-%{to} of more than %{to}"}):w("ra.navigation.page_range_info",{offsetBegin:R,offsetEnd:I,total:A===-1?I:A,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[w,l]),P=d.useCallback(function(T){return w("ra.navigation.".concat(T),{_:"Go to ".concat(T," page")})},[w]);if(c)return d.createElement(Ad,{variant:"dense"});if(m===0||f<1||m!=null&&f>b)return a!=null,null;if(O)return d.createElement(jF,Yy({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,rowsPerPageOptions:wDe,component:"span",labelDisplayedRows:$},Fp(i)));var E=n||(!c&&m!=null?s8:void 0);return d.createElement(jF,Yy({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,onRowsPerPageChange:_,ActionsComponent:E,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:w("ra.navigation.page_rows_per_page"),labelDisplayedRows:$,getItemAriaLabel:P,rowsPerPageOptions:r},Fp(i)))});Ys.propTypes={actions:r0,limit:C.element,rowsPerPageOptions:C.arrayOf(C.oneOfType([C.number,C.exact({label:C.string.isRequired,value:C.number.isRequired})]))};var xDe=[5,10,25,50],wDe=[],Jy=function(){return Jy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ge.target.value>"u")){var ce=ge.target;ee(ce.value);var pe=ce.valueAsNumber!==void 0&&ce.valueAsNumber!==null&&!isNaN(ce.valueAsNumber)?m?m(ce.valueAsNumber):ce.valueAsNumber:m?m(ce.value):LDe(ce.value);A.onChange(pe)}},oe=function(ge){v&&v(ge),Oe.current=!0},me=function(){U&&U(),Oe.current=!1;var ge=a(A.value);ee(function(ce){return ce!==ge?ge:ce})},Re=i!==!1||(z||H)&&D,ye=A.ref,fe=cL(A,["ref"]);return d.createElement(Lv,ss({id:G},fe,{inputRef:ye,value:ne,onChange:de,onFocus:oe,onBlur:me,className:Je("ra-input","ra-input-".concat(x),t),type:"number",size:"small",variant:$,error:(z||H)&&D,disabled:E||T,readOnly:T,helperText:Re?d.createElement(ru,{touched:z||H,error:L==null?void 0:L.message,helperText:i}):null,label:d.createElement(Vo,{label:s,source:x,resource:h,isRequired:q}),margin:c,inputProps:ss(ss({},W),{readOnly:T})},Ld(R)))};Ll.propTypes={label:C.oneOfType([C.string,C.bool,C.element]),resource:C.string,source:C.string,step:C.oneOfType([C.string,C.number])};var LDe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},NDe=function(e){return e==null||isNaN(e)?"":e.toString()},_2={},DDe=We;Object.defineProperty(_2,"__esModule",{value:!0});var x2=_2.default=void 0,BDe=DDe(Qe()),zDe=S;x2=_2.default=(0,BDe.default)((0,zDe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var w2={},UDe=We;Object.defineProperty(w2,"__esModule",{value:!0});var c8=w2.default=void 0,VDe=UDe(Qe()),WDe=S;c8=w2.default=(0,VDe.default)((0,WDe.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var eb=function(){return eb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r isn't designed to be used with a label prop. Use if you need a label.");return d.createElement(QDe,rC({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Sc,{position:"end"},d.createElement(a8,{color:"disabled"}))},size:"small"},r))},KDe="RaSearchInput",QDe=J(Cr,{name:KDe,overridesResolver:function(e,t){return t.root}})({marginTop:0}),nd=function(){return nd=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]"u"||!v.message?"ra.auth.sign_in_error":v.message,{type:"error",messageArgs:{_:typeof v=="string"?v:v&&v.message?v.message:void 0}})})};return d.createElement(t3e,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(ko,{className:Pc.content},d.createElement(Cr,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:lo(),fullWidth:!0}),d.createElement(Cr,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:lo(),fullWidth:!0}),d.createElement(Pr,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:Pc.button},o?d.createElement(Id,{className:Pc.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},ug="RaLoginForm",Pc={content:"".concat(ug,"-content"),button:"".concat(ug,"-button"),icon:"".concat(ug,"-icon")},t3e=J(n0,{name:ug,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Pc.content)]={width:300},t["& .".concat(Pc.button)]={marginTop:r.spacing(2)},t["& .".concat(Pc.icon)]={margin:r.spacing(.3)},t});f8.propTypes={redirectTo:C.string};var nC=function(){return nC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?d.createElement(g8,null):r;return o?d.createElement(c3e,sC({className:Je("edit-page",a)},u3e(l)),d.createElement(Xs,{title:c,defaultTitle:h,preferenceKey:"".concat(m,".edit.title")}),w,d.createElement("div",{className:Je(Tc.main,(t={},t[Tc.noActions]=!w,t))},d.createElement(s,{className:Tc.card},x?o:d.createElement(ko,null," ")),n)):null};b8.propTypes={actions:C.oneOfType([C.element,C.bool]),aside:C.element,className:C.string,component:r0,defaultTitle:C.any,hasList:C.bool,hasShow:C.bool,mutationMode:C.oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:C.object,record:C.object,redirect:C.oneOfType([C.string,C.bool,C.func]),resource:C.string,save:C.func,title:C.node};var u3e=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=y8(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},fg="RaEdit",Tc={main:"".concat(fg,"-main"),noActions:"".concat(fg,"-noActions"),card:"".concat(fg,"-card")},c3e=J("div",{name:fg,overridesResolver:function(e,t){return t.root}})((Of={},Of["& .".concat(Tc.main)]={display:"flex",alignItems:"flex-start"},Of["& .".concat(Tc.noActions)]={marginTop:"1em"},Of["& .".concat(Tc.card)]={flex:"1 1 auto"},Of)),lC=function(){return lC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},dC=function(){return dC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&O?T3e:r;return!o||!w&&l?null:d.createElement(I3e,fC({className:Je("show-page",a)},k3e(v)),d.createElement(Xs,{title:f,defaultTitle:x,preferenceKey:"".concat(h,".show.title")}),b!==!1&&b,d.createElement("div",{className:Je(Ic.main,(t={},t[Ic.noActions]=!b,t))},d.createElement(s,{className:Ic.card},o),n))};k8.propTypes={actions:C.oneOfType([C.element,C.bool]),children:C.node,className:C.string,emptyWhileLoading:C.bool,title:C.any};var k3e=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=T8(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},vg="RaShow",Ic={main:"".concat(vg,"-main"),noActions:"".concat(vg,"-noActions"),card:"".concat(vg,"-card")},I3e=J("div",{name:vg,overridesResolver:function(e,t){return t.root}})((Cf={},Cf["& .".concat(Ic.main)]={display:"flex"},Cf["& .".concat(Ic.noActions)]={marginTop:"1em"},Cf["& .".concat(Ic.card)]={flex:"1 1 auto"},Cf)),pC=function(){return pC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var x=ht(e);if(!x)return null;var w=vt(x,l);if(w==null||w==="")return r?d.createElement(it,Dl({component:"span",variant:"body2",className:t},Ha(m)),r&&h(r,{_:r})):null;var O=v(w),b="";if(i&&c)b=Vx?O.toLocaleString(n,o):O.toLocaleString();else if(c){var g=o??(typeof w=="string"&&w.length<=10?{timeZone:"UTC"}:void 0);b=Vx?O.toLocaleDateString(n,g):O.toLocaleDateString()}else i&&(b=Vx?O.toLocaleTimeString(n,o):O.toLocaleTimeString());return d.createElement(it,Dl({component:"span",variant:"body2",className:t},Ha(m)),b)};T2.propTypes=Dl(Dl(Dl({},it.propTypes),_a),{locales:C.oneOfType([C.string,C.arrayOf(C.string)]),options:C.object,showTime:C.bool,showDate:C.bool});T2.displayName="DateFieldImpl";var cn=fu(T2),U3e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},Vx=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),jc=function(){return jc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),_i=function(e){var t=e.children,r=e.debounce,n=e.filter,o=n===void 0?e4e:n,a=e.page,i=a===void 0?1:a,s=e.pagination,c=s===void 0?null:s,l=e.perPage,f=l===void 0?25:l,v=e.reference,m=e.resource,h=e.sort,x=h===void 0?t4e:h,w=e.source,O=w===void 0?"id":w,b=e.target,g=ht(e),_=Hve({debounce:r,filter:o,page:i,perPage:f,record:g,reference:v,resource:m,sort:x,source:O,target:b});return ve.createElement(su,{value:v},ve.createElement(hP,{value:_},t,c))};_i.propTypes={children:C.node.isRequired,className:C.string,filter:C.object,label:_a.label,perPage:C.number,record:C.any,reference:C.string.isRequired,resource:C.string,sortBy:C.string,sortByOrder:_a.sortByOrder,source:C.string,sort:C.exact({field:C.string,order:C.oneOf(["ASC","DESC"])}),target:C.string.isRequired};C.element,C.string,C.exact({field:C.string,order:C.oneOf(["ASC","DESC"])}),C.any,C.bool,C.element,C.string,C.func;var e4e={},t4e={field:"id",order:"DESC"},zl=function(){return zl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};D8.propTypes={children:C.node};var fp=function(){return fp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&mL.call(t.callee)==="[object Function]"),n},qx,hL;function k4e(){if(hL)return qx;hL=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Y8,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(m){var h=m.constructor;return h&&h.prototype===m},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},f=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!l["$"+m]&&t.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{c(window[m])}catch{return!0}}catch{return!0}return!1}(),v=function(m){if(typeof window>"u"||!f)return c(m);try{return c(m)}catch{return!1}};e=function(h){var x=h!==null&&typeof h=="object",w=r.call(h)==="[object Function]",O=n(h),b=x&&r.call(h)==="[object String]",g=[];if(!x&&!w&&!O)throw new TypeError("Object.keys called on a non-object");var _=i&&w;if(b&&h.length>0&&!t.call(h,0))for(var $=0;$0)for(var P=0;P"u"||!Nr?_t:Nr(Uint8Array),Vl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?_t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?_t:ArrayBuffer,"%ArrayIteratorPrototype%":Du&&Nr?Nr([][Symbol.iterator]()):_t,"%AsyncFromSyncIteratorPrototype%":_t,"%AsyncFunction%":qu,"%AsyncGenerator%":qu,"%AsyncGeneratorFunction%":qu,"%AsyncIteratorPrototype%":qu,"%Atomics%":typeof Atomics>"u"?_t:Atomics,"%BigInt%":typeof BigInt>"u"?_t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?_t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?_t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?_t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t5e,"%eval%":eval,"%EvalError%":r5e,"%Float32Array%":typeof Float32Array>"u"?_t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?_t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?_t:FinalizationRegistry,"%Function%":tU,"%GeneratorFunction%":qu,"%Int8Array%":typeof Int8Array>"u"?_t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?_t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?_t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Du&&Nr?Nr(Nr([][Symbol.iterator]())):_t,"%JSON%":typeof JSON=="object"?JSON:_t,"%Map%":typeof Map>"u"?_t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Du||!Nr?_t:Nr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?_t:Promise,"%Proxy%":typeof Proxy>"u"?_t:Proxy,"%RangeError%":n5e,"%ReferenceError%":o5e,"%Reflect%":typeof Reflect>"u"?_t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?_t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Du||!Nr?_t:Nr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?_t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Du&&Nr?Nr(""[Symbol.iterator]()):_t,"%Symbol%":Du?Symbol:_t,"%SyntaxError%":od,"%ThrowTypeError%":i5e,"%TypedArray%":l5e,"%TypeError%":Mc,"%Uint8Array%":typeof Uint8Array>"u"?_t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?_t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?_t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?_t:Uint32Array,"%URIError%":a5e,"%WeakMap%":typeof WeakMap>"u"?_t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?_t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?_t:WeakSet};if(Nr)try{null.error}catch(e){var u5e=Nr(Nr(e));Vl["%Error.prototype%"]=u5e}var c5e=function e(t){var r;if(t==="%AsyncFunction%")r=Gx("async function () {}");else if(t==="%GeneratorFunction%")r=Gx("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Gx("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Nr&&(r=Nr(o.prototype))}return Vl[t]=r,r},xL={__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"]},Hv=A2,ib=e5e,d5e=Hv.call(Function.call,Array.prototype.concat),f5e=Hv.call(Function.apply,Array.prototype.splice),wL=Hv.call(Function.call,String.prototype.replace),sb=Hv.call(Function.call,String.prototype.slice),p5e=Hv.call(Function.call,RegExp.prototype.exec),v5e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,m5e=/\\(\\)?/g,h5e=function(t){var r=sb(t,0,1),n=sb(t,-1);if(r==="%"&&n!=="%")throw new od("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new od("invalid intrinsic syntax, expected opening `%`");var o=[];return wL(t,v5e,function(a,i,s,c){o[o.length]=s?wL(c,m5e,"$1"):i||a}),o},g5e=function(t,r){var n=t,o;if(ib(xL,n)&&(o=xL[n],n="%"+o[0]+"%"),ib(Vl,n)){var a=Vl[n];if(a===qu&&(a=c5e(n)),typeof a>"u"&&!r)throw new Mc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new od("intrinsic "+t+" does not exist!")},Za=function(t,r){if(typeof t!="string"||t.length===0)throw new Mc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Mc('"allowMissing" argument must be a boolean');if(p5e(/^%?[^%]*%?$/,t)===null)throw new od("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=h5e(t),o=n.length>0?n[0]:"",a=g5e("%"+o+"%",r),i=a.name,s=a.value,c=!1,l=a.alias;l&&(o=l[0],f5e(n,d5e([0,1],l)));for(var f=1,v=!0;f=n.length){var w=Ul(s,m);v=!!w,v&&"get"in w&&!("originalValue"in w.get)?s=w.get:s=s[m]}else v=ib(s,m),s=s[m];v&&!c&&(Vl[i]=s)}}return s},y5e=Za,gg=y5e("%Object.defineProperty%",!0)||!1;if(gg)try{gg({},"a",{value:1})}catch{gg=!1}var M2=gg,b5e=Za,yg=b5e("%Object.getOwnPropertyDescriptor%",!0);if(yg)try{yg([],"length")}catch{yg=null}var rU=yg,SL=M2,_5e=J8,Bu=kn,OL=rU,nU=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Bu("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Bu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Bu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Bu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Bu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Bu("`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,c=!!OL&&OL(t,r);if(SL)SL(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:a===null&&c?c.writable:!a});else if(s||!o&&!a&&!i)t[r]=n;else throw new _5e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},OC=M2,oU=function(){return!!OC};oU.hasArrayLengthDefineBug=function(){if(!OC)return null;try{return OC([],"length",{value:1}).length!==1}catch{return!0}};var aU=oU,x5e=A4e,w5e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",S5e=Object.prototype.toString,O5e=Array.prototype.concat,CL=nU,C5e=function(e){return typeof e=="function"&&S5e.call(e)==="[object Function]"},iU=aU(),E5e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!C5e(n)||!n())return}iU?CL(e,t,r,!0):CL(e,t,r)},sU=function(e,t){var r=arguments.length>2?arguments[2]:{},n=x5e(t);w5e&&(n=O5e.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||R5e(r)!==r)throw new $L("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&PL){var i=PL(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&($5e?EL(t,"length",r,!0,!0):EL(t,"length",r)),t};(function(e){var t=A2,r=Za,n=T5e,o=kn,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),c=M2,l=r("%Math.max%");e.exports=function(m){if(typeof m!="function")throw new o("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,m.length-(arguments.length-1)),!0)};var f=function(){return s(t,a,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f})(lU);var c1=lU.exports,uU=Za,cU=c1,k5e=cU(uU("String.prototype.indexOf")),Di=function(t,r){var n=uU(t,!!r);return typeof n=="function"&&k5e(t,".prototype.")>-1?cU(n):n},I5e=kn,Gv=function(t){if(t==null)throw new I5e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},j5e=Za,dU=j5e("%Array%"),A5e=!dU.isArray&&Di("Object.prototype.toString"),M5e=dU.isArray||function(t){return A5e(t)==="[object Array]"},F5e=M5e,L5e=Za,N5e=Di,D5e=kn,B5e=F5e,z5e=L5e("%Reflect.apply%",!0)||N5e("Function.prototype.apply"),U5e=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!B5e(n))throw new D5e("Assertion failed: optional `argumentsList`, if provided, must be a List");return z5e(t,r,n)};const V5e={},W5e=Object.freeze(Object.defineProperty({__proto__:null,default:V5e},Symbol.toStringTag,{value:"Module"})),q5e=Ga(W5e);var F2=typeof Map=="function"&&Map.prototype,Qx=Object.getOwnPropertyDescriptor&&F2?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,lb=F2&&Qx&&typeof Qx.get=="function"?Qx.get:null,RL=F2&&Map.prototype.forEach,L2=typeof Set=="function"&&Set.prototype,Xx=Object.getOwnPropertyDescriptor&&L2?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ub=L2&&Xx&&typeof Xx.get=="function"?Xx.get:null,TL=L2&&Set.prototype.forEach,H5e=typeof WeakMap=="function"&&WeakMap.prototype,vp=H5e?WeakMap.prototype.has:null,G5e=typeof WeakSet=="function"&&WeakSet.prototype,mp=G5e?WeakSet.prototype.has:null,K5e=typeof WeakRef=="function"&&WeakRef.prototype,kL=K5e?WeakRef.prototype.deref:null,Q5e=Boolean.prototype.valueOf,X5e=Object.prototype.toString,Y5e=Function.prototype.toString,J5e=String.prototype.match,N2=String.prototype.slice,ys=String.prototype.replace,Z5e=String.prototype.toUpperCase,IL=String.prototype.toLowerCase,fU=RegExp.prototype.test,jL=Array.prototype.concat,Ma=Array.prototype.join,eBe=Array.prototype.slice,AL=Math.floor,CC=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Yx=Object.getOwnPropertySymbols,EC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ad=typeof Symbol=="function"&&typeof Symbol.iterator=="object",vn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ad||!0)?Symbol.toStringTag:null,pU=Object.prototype.propertyIsEnumerable,ML=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function FL(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||fU.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-AL(-e):AL(e);if(n!==e){var o=String(n),a=N2.call(t,o.length+1);return ys.call(o,r,"$&_")+"."+ys.call(ys.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ys.call(t,r,"$&_")}var PC=q5e,LL=PC.custom,NL=mU(LL)?LL:null,tBe=function e(t,r,n,o){var a=r||{};if(ls(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ls(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=ls(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(ls(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(ls(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 gU(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?FL(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?FL(t,l):l}var f=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof t=="object")return $C(t)?"[Array]":"[Object]";var v=bBe(a,n);if(typeof o>"u")o=[];else if(hU(o,t)>=0)return"[Circular]";function m(D,z,H){if(z&&(o=eBe.call(o),o.push(z)),H){var G={depth:a.depth};return ls(a,"quoteStyle")&&(G.quoteStyle=a.quoteStyle),e(D,G,n+1,o)}return e(D,a,n+1,o)}if(typeof t=="function"&&!DL(t)){var h=cBe(t),x=Ph(t,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(x.length>0?" { "+Ma.call(x,", ")+" }":"")}if(mU(t)){var w=ad?ys.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):EC.call(t);return typeof t=="object"&&!ad?Ef(w):w}if(hBe(t)){for(var O="<"+IL.call(String(t.nodeName)),b=t.attributes||[],g=0;g",O}if($C(t)){if(t.length===0)return"[]";var _=Ph(t,m);return v&&!yBe(_)?"["+RC(_,v)+"]":"[ "+Ma.call(_,", ")+" ]"}if(oBe(t)){var $=Ph(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!pU.call(t,"cause")?"{ ["+String(t)+"] "+Ma.call(jL.call("[cause]: "+m(t.cause),$),", ")+" }":$.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ma.call($,", ")+" }"}if(typeof t=="object"&&i){if(NL&&typeof t[NL]=="function"&&PC)return PC(t,{depth:f-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(dBe(t)){var P=[];return RL&&RL.call(t,function(D,z){P.push(m(z,t,!0)+" => "+m(D,t))}),BL("Map",lb.call(t),P,v)}if(vBe(t)){var E=[];return TL&&TL.call(t,function(D){E.push(m(D,t))}),BL("Set",ub.call(t),E,v)}if(fBe(t))return Jx("WeakMap");if(mBe(t))return Jx("WeakSet");if(pBe(t))return Jx("WeakRef");if(iBe(t))return Ef(m(Number(t)));if(lBe(t))return Ef(m(CC.call(t)));if(sBe(t))return Ef(Q5e.call(t));if(aBe(t))return Ef(m(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===ro)return"{ [object globalThis] }";if(!nBe(t)&&!DL(t)){var T=Ph(t,m),R=ML?ML(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",A=!R&&vn&&Object(t)===t&&vn in t?N2.call(Zs(t),8,-1):I?"Object":"",F=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",L=F+(A||I?"["+Ma.call(jL.call([],A||[],I||[]),": ")+"] ":"");return T.length===0?L+"{}":v?L+"{"+RC(T,v)+"}":L+"{ "+Ma.call(T,", ")+" }"}return String(t)};function vU(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function rBe(e){return ys.call(String(e),/"/g,""")}function $C(e){return Zs(e)==="[object Array]"&&(!vn||!(typeof e=="object"&&vn in e))}function nBe(e){return Zs(e)==="[object Date]"&&(!vn||!(typeof e=="object"&&vn in e))}function DL(e){return Zs(e)==="[object RegExp]"&&(!vn||!(typeof e=="object"&&vn in e))}function oBe(e){return Zs(e)==="[object Error]"&&(!vn||!(typeof e=="object"&&vn in e))}function aBe(e){return Zs(e)==="[object String]"&&(!vn||!(typeof e=="object"&&vn in e))}function iBe(e){return Zs(e)==="[object Number]"&&(!vn||!(typeof e=="object"&&vn in e))}function sBe(e){return Zs(e)==="[object Boolean]"&&(!vn||!(typeof e=="object"&&vn in e))}function mU(e){if(ad)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!EC)return!1;try{return EC.call(e),!0}catch{}return!1}function lBe(e){if(!e||typeof e!="object"||!CC)return!1;try{return CC.call(e),!0}catch{}return!1}var uBe=Object.prototype.hasOwnProperty||function(e){return e in this};function ls(e,t){return uBe.call(e,t)}function Zs(e){return X5e.call(e)}function cBe(e){if(e.name)return e.name;var t=J5e.call(Y5e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function hU(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 gU(N2.call(e,0,t.maxStringLength),t)+n}var o=ys.call(ys.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,gBe);return vU(o,"single",t)}function gBe(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":"")+Z5e.call(t.toString(16))}function Ef(e){return"Object("+e+")"}function Jx(e){return e+" { ? }"}function BL(e,t,r,n){var o=n?RC(r,n):Ma.call(r,", ");return e+" ("+t+") {"+o+"}"}function yBe(e){for(var t=0;t=0)return!1;return!0}function bBe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ma.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ma.call(Array(t+1),r)}}function RC(e,t){if(e.length===0)return"";var r=` +`+t.prev+t.base;return r+Ma.call(e,","+r)+` +`+t.prev}function Ph(e,t){var r=$C(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"},xBe=_Be,D2=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":xBe(t)},zL=kn,wBe=tBe,SBe=yU,OBe=D2,bU=function(t,r){if(OBe(t)!=="Object")throw new zL("Assertion failed: Type(O) is not Object");if(!SBe(r))throw new zL("Assertion failed: IsPropertyKey(P) is not true, got "+wBe(r));return t[r]},UL=kn,CBe=yU,EBe=D2,PBe=function(t,r){if(EBe(t)!=="Object")throw new UL("Assertion failed: `O` must be an Object");if(!CBe(r))throw new UL("Assertion failed: `P` must be a Property Key");return r in t},_U=Function.prototype.toString,fc=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,TC,bg;if(typeof fc=="function"&&typeof Object.defineProperty=="function")try{TC=Object.defineProperty({},"length",{get:function(){throw bg}}),bg={},fc(function(){throw 42},null,TC)}catch(e){e!==bg&&(fc=null)}else fc=null;var $Be=/^\s*class\b/,kC=function(t){try{var r=_U.call(t);return $Be.test(r)}catch{return!1}},Zx=function(t){try{return kC(t)?!1:(_U.call(t),!0)}catch{return!1}},_g=Object.prototype.toString,RBe="[object Object]",TBe="[object Function]",kBe="[object GeneratorFunction]",IBe="[object HTMLAllCollection]",jBe="[object HTML document.all class]",ABe="[object HTMLCollection]",MBe=typeof Symbol=="function"&&!!Symbol.toStringTag,FBe=!(0 in[,]),IC=function(){return!1};if(typeof document=="object"){var LBe=document.all;_g.call(LBe)===_g.call(document.all)&&(IC=function(t){if((FBe||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=_g.call(t);return(r===IBe||r===jBe||r===ABe||r===RBe)&&t("")==null}catch{}return!1})}var xU=fc?function(t){if(IC(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{fc(t,null,TC)}catch(r){if(r!==bg)return!1}return!kC(t)&&Zx(t)}:function(t){if(IC(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(MBe)return Zx(t);if(kC(t))return!1;var r=_g.call(t);return r!==TBe&&r!==kBe&&!/^\[object HTML/.test(r)?!1:Zx(t)},NBe=xU,DBe=Number.MAX_SAFE_INTEGER||9007199254740991,ew,VL;function BBe(){return VL||(VL=1,ew=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),ew}var tw,WL;function zBe(){return WL||(WL=1,tw=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),tw}var UBe=Z8,B2=function(){return UBe()&&!!Symbol.toStringTag},rw,qL;function VBe(){if(qL)return rw;qL=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=B2();return rw=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},rw}var $h={exports:{}},HL;function WBe(){if(HL)return $h.exports;HL=1;var e=Object.prototype.toString,t=eU();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};$h.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 $h.exports=function(i){return!1};return $h.exports}var nw,GL;function qBe(){if(GL)return nw;GL=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=zBe(),r=xU,n=VBe(),o=WBe(),a=function(c,l){if(typeof c>"u"||c===null)throw new TypeError("Cannot call method on "+c);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var f=l==="string"?["toString","valueOf"]:["valueOf","toString"],v,m,h;for(h=0;h1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var f;if(e&&(Symbol.toPrimitive?f=i(c,Symbol.toPrimitive):o(c)&&(f=Symbol.prototype.valueOf)),typeof f<"u"){var v=f.call(c,l);if(t(v))return v;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(c)||o(c))&&(l="string"),a(c,l==="default"?"number":l)},nw}var ow,KL;function HBe(){if(KL)return ow;KL=1;var e=qBe();return ow=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},ow}var aw,QL;function GBe(){if(QL)return aw;QL=1;var e=Di,t=B2(),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"),c=Object.getOwnPropertyDescriptor,l="[object RegExp]";return aw=t?function(v){if(!v||typeof v!="object")return!1;var m=c(v,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{n(v,a)}catch(x){return x===o}}:function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:s(v)===l},aw}var iw,XL;function KBe(){if(XL)return iw;XL=1;var e=Di,t=GBe(),r=e("RegExp.prototype.exec"),n=kn;return iw=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},iw}var QBe=Za,XBe=QBe("%String%"),YBe=kn,wU=function(t){if(typeof t=="symbol")throw new YBe("Cannot convert a Symbol value to a string");return XBe(t)},JBe=Gv,ZBe=wU,eze=Di,YL=eze("String.prototype.replace"),SU=/^\s$/.test("᠎"),tze=SU?/^[\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]+/,rze=SU?/[\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]+$/,OU=function(){var t=ZBe(JBe(this));return YL(YL(t,tze,""),rze,"")},nze=OU,JL="​",zu="᠎",CU=function(){return String.prototype.trim&&JL.trim()===JL&&zu.trim()===zu&&("_"+zu).trim()==="_"+zu&&(zu+"_").trim()===zu+"_"?String.prototype.trim:nze},oze=Bd,aze=CU,ize=function(){var t=aze();return oze(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},sze=c1,lze=Bd,uze=Gv,cze=OU,EU=CU,dze=ize,fze=sze(EU()),PU=function(t){return uze(t),fze(t)};lze(PU,{getPolyfill:EU,implementation:cze,shim:dze});var $U=PU,sw,ZL;function pze(){if(ZL)return sw;ZL=1;var e=Za,t=e("%Number%"),r=e("%RegExp%"),n=kn,o=e("%parseInt%"),a=Di,i=KBe(),s=a("String.prototype.slice"),c=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),f=i(/^[-+]0x[0-9a-f]+$/i),v=["…","​","￾"].join(""),m=new r("["+v+"]","g"),h=i(m),x=$U;return sw=function w(O){if(typeof O!="string")throw new n("Assertion failed: `argument` is not a String");if(c(O))return t(o(s(O,2),2));if(l(O))return t(o(s(O,2),8));if(h(O)||f(O))return NaN;var b=x(O);return b!==O?w(b):t(O)},sw}var vze=Za,eN=kn,tN=vze("%Number%"),mze=BBe(),hze=HBe(),gze=pze(),yze=function(t){var r=mze(t)?t:hze(t,tN);if(typeof r=="symbol")throw new eN("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new eN("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?gze(r):tN(r)},bze=Math.floor,_ze=function(t){return typeof t=="bigint"?t:bze(t)},rN=_ze,xze=kn,wze=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new xze("argument must be a Number or a BigInt");var r=t<0?-rN(-t):rN(t);return r===0?0:r},RU=Number.isNaN||function(t){return t!==t},Sze=RU,Oze=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Sze(e)&&e!==1/0&&e!==-1/0},Cze=yze,Eze=wze,Pze=RU,$ze=Oze,Rze=function(t){var r=Cze(t);return Pze(r)||r===0?0:$ze(r)?Eze(r):r},nN=DBe,Tze=Rze,kze=function(t){var r=Tze(t);return r<=0?0:r>nN?nN:r},Ize=kn,jze=bU,Aze=kze,Mze=D2,Fze=function(t){if(Mze(t)!=="Object")throw new Ize("Assertion failed: `obj` must be an Object");return Aze(jze(t,"length"))},Lze=Object,Nze=Lze,Dze=Gv,Bze=function(t){return Dze(t),Nze(t)},zze=String.prototype.valueOf,Uze=function(t){try{return zze.call(t),!0}catch{return!1}},Vze=Object.prototype.toString,Wze="[object String]",qze=B2(),Hze=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:qze?Uze(t):Vze.call(t)===Wze},Gze=Di,Kze=kn,Qze=U5e,Xze=bU,Yze=PBe,Jze=NBe,Zze=Fze,e6e=Bze,t6e=wU,r6e=Hze,n6e=Gze("String.prototype.split"),oN=Object("a"),o6e=oN[0]!=="a"||!(0 in oN),TU=function(t){var r=e6e(this),n=o6e&&r6e(this)?n6e(this,""):r,o=Zze(n);if(!Jze(t))throw new Kze("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},UU={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:cw,chinese:function(){return 0},croatian:cw,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:cw,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 A6e(e){var t={};return cb(z2(e),function(r){var n=r[0],o=r[1];cb(o,function(a){t[a]=n})}),t}function M6e(e,t){var r=A6e(e.pluralTypeToLanguages);return r[t]||r[zU.call(t,/-/,1)[0]]||r.en}function F6e(e,t,r){return e.pluralTypes[t](r)}function L6e(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=M6e(t,r),n&&(e[r]=n)),n}}function sN(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function N6e(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===xg||r===xg)throw new RangeError('"'+xg+'" token is reserved for pluralization');return new RegExp(sN(t)+"(.*?)"+sN(r),"g")}var D6e=L6e(),B6e=/%\{(.*?)\}/g;function U2(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||B6e,c=a||BU,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var f=o||UU,v=zU.call(e,xg),m=r||"en",h=D6e(f,m),x=F6e(f,h,l.smart_count);i=I6e(v[x]||v[0])}return i=c.call(i,s,function(w,O){return!DU(l,O)||l[O]==null?w:l[O]}),i}function Bi(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?U2:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||j6e,this.replaceImplementation=t.replace||BU,this.tokenRegex=N6e(t.interpolation),this.pluralRules=t.pluralRules||UU}Bi.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};Bi.prototype.extend=function(e,t){cb(z2(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)};Bi.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:cb(z2(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)};Bi.prototype.clear=function(){this.phrases={}};Bi.prototype.replace=function(e){this.clear(),this.extend(e)};Bi.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=U2(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};Bi.prototype.has=function(e){return DU(this.phrases,e)};Bi.transformPhrase=function(t,r,n){return U2(t,r,n)};var z6e=Bi;const lN=hr(z6e);var pc=function(){return pc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */db.exports;(function(e,t){(function(){var r,n="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",v=1,m=2,h=4,x=1,w=2,O=1,b=2,g=4,_=8,$=16,P=32,E=64,T=128,R=256,I=512,A=30,F="...",L=800,D=16,z=1,H=2,G=3,q=1/0,U=9007199254740991,W=17976931348623157e292,te=NaN,ne=4294967295,ee=ne-1,Oe=ne>>>1,de=[["ary",T],["bind",O],["bindKey",b],["curry",_],["curryRight",$],["flip",I],["partial",P],["partialRight",E],["rearg",R]],oe="[object Arguments]",me="[object Array]",Re="[object AsyncFunction]",ye="[object Boolean]",fe="[object Date]",ge="[object DOMException]",ce="[object Error]",pe="[object Function]",ae="[object GeneratorFunction]",Se="[object Map]",Ce="[object Number]",Ne="[object Null]",Xe="[object Object]",V="[object Promise]",X="[object Proxy]",Y="[object RegExp]",ie="[object Set]",se="[object String]",ue="[object Symbol]",Ee="[object Undefined]",Ie="[object WeakMap]",at="[object WeakSet]",ot="[object ArrayBuffer]",Le="[object DataView]",De="[object Float32Array]",ft="[object Float64Array]",Et="[object Int8Array]",Ct="[object Int16Array]",Ue="[object Int32Array]",et="[object Uint8Array]",ke="[object Uint8ClampedArray]",Be="[object Uint16Array]",ct="[object Uint32Array]",yt=/\b__p \+= '';/g,Yt=/\b(__p \+=) '' \+/g,$r=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mn=/&(?:amp|lt|gt|quot|#39);/g,ra=/[&<>"']/g,Kn=RegExp(mn.source),zi=RegExp(ra.source),Kv=/<%-([\s\S]+?)%>/g,f1=/<%([\s\S]+?)%>/g,Qv=/<%=([\s\S]+?)%>/g,p1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zd=/^\w*$/,v1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ei=/[\\^$.*+?()[\]{}|]/g,Ud=RegExp(ei.source),hn=/^\s+/,el=/\s/,m1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tl=/\{\n\/\* \[wrapped with (.+)\] \*/,Vd=/,? & /,Xv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yv=/[()=,{}\[\]\/\s]/,Jv=/\\(\\)?/g,Zv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,em=/\w*$/,h1=/^[-+]0x[0-9a-f]+$/i,g1=/^0b[01]+$/i,y1=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,gn=/^(?:0|[1-9]\d*)$/,xV=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tm=/($^)/,wV=/['\n\r\u2028\u2029\\]/g,rm="\\ud800-\\udfff",SV="\\u0300-\\u036f",OV="\\ufe20-\\ufe2f",CV="\\u20d0-\\u20ff",xR=SV+OV+CV,wR="\\u2700-\\u27bf",SR="a-z\\xdf-\\xf6\\xf8-\\xff",EV="\\xac\\xb1\\xd7\\xf7",PV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$V="\\u2000-\\u206f",RV=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",OR="A-Z\\xc0-\\xd6\\xd8-\\xde",CR="\\ufe0e\\ufe0f",ER=EV+PV+$V+RV,b1="['’]",TV="["+rm+"]",PR="["+ER+"]",nm="["+xR+"]",$R="\\d+",kV="["+wR+"]",RR="["+SR+"]",TR="[^"+rm+ER+$R+wR+SR+OR+"]",_1="\\ud83c[\\udffb-\\udfff]",IV="(?:"+nm+"|"+_1+")",kR="[^"+rm+"]",x1="(?:\\ud83c[\\udde6-\\uddff]){2}",w1="[\\ud800-\\udbff][\\udc00-\\udfff]",vu="["+OR+"]",IR="\\u200d",jR="(?:"+RR+"|"+TR+")",jV="(?:"+vu+"|"+TR+")",AR="(?:"+b1+"(?:d|ll|m|re|s|t|ve))?",MR="(?:"+b1+"(?:D|LL|M|RE|S|T|VE))?",FR=IV+"?",LR="["+CR+"]?",AV="(?:"+IR+"(?:"+[kR,x1,w1].join("|")+")"+LR+FR+")*",MV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",NR=LR+FR+AV,LV="(?:"+[kV,x1,w1].join("|")+")"+NR,NV="(?:"+[kR+nm+"?",nm,x1,w1,TV].join("|")+")",DV=RegExp(b1,"g"),BV=RegExp(nm,"g"),S1=RegExp(_1+"(?="+_1+")|"+NV+NR,"g"),zV=RegExp([vu+"?"+RR+"+"+AR+"(?="+[PR,vu,"$"].join("|")+")",jV+"+"+MR+"(?="+[PR,vu+jR,"$"].join("|")+")",vu+"?"+jR+"+"+AR,vu+"+"+MR,FV,MV,$R,LV].join("|"),"g"),UV=RegExp("["+IR+rm+xR+CR+"]"),VV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WV=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qV=-1,Ht={};Ht[De]=Ht[ft]=Ht[Et]=Ht[Ct]=Ht[Ue]=Ht[et]=Ht[ke]=Ht[Be]=Ht[ct]=!0,Ht[oe]=Ht[me]=Ht[ot]=Ht[ye]=Ht[Le]=Ht[fe]=Ht[ce]=Ht[pe]=Ht[Se]=Ht[Ce]=Ht[Xe]=Ht[Y]=Ht[ie]=Ht[se]=Ht[Ie]=!1;var Bt={};Bt[oe]=Bt[me]=Bt[ot]=Bt[Le]=Bt[ye]=Bt[fe]=Bt[De]=Bt[ft]=Bt[Et]=Bt[Ct]=Bt[Ue]=Bt[Se]=Bt[Ce]=Bt[Xe]=Bt[Y]=Bt[ie]=Bt[se]=Bt[ue]=Bt[et]=Bt[ke]=Bt[Be]=Bt[ct]=!0,Bt[ce]=Bt[pe]=Bt[Ie]=!1;var HV={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},GV={"&":"&","<":"<",">":">",'"':""","'":"'"},KV={"&":"&","<":"<",">":">",""":'"',"'":"'"},QV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},XV=parseFloat,YV=parseInt,DR=typeof ro=="object"&&ro&&ro.Object===Object&&ro,JV=typeof self=="object"&&self&&self.Object===Object&&self,Wr=DR||JV||Function("return this")(),O1=t&&!t.nodeType&&t,rl=O1&&!0&&e&&!e.nodeType&&e,BR=rl&&rl.exports===O1,C1=BR&&DR.process,bo=function(){try{var Z=rl&&rl.require&&rl.require("util").types;return Z||C1&&C1.binding&&C1.binding("util")}catch{}}(),zR=bo&&bo.isArrayBuffer,UR=bo&&bo.isDate,VR=bo&&bo.isMap,WR=bo&&bo.isRegExp,qR=bo&&bo.isSet,HR=bo&&bo.isTypedArray;function Qn(Z,he,le){switch(le.length){case 0:return Z.call(he);case 1:return Z.call(he,le[0]);case 2:return Z.call(he,le[0],le[1]);case 3:return Z.call(he,le[0],le[1],le[2])}return Z.apply(he,le)}function ZV(Z,he,le,qe){for(var st=-1,Pt=Z==null?0:Z.length;++st-1}function E1(Z,he,le){for(var qe=-1,st=Z==null?0:Z.length;++qe-1;);return le}function eT(Z,he){for(var le=Z.length;le--&&mu(he,Z[le],0)>-1;);return le}function lW(Z,he){for(var le=Z.length,qe=0;le--;)Z[le]===he&&++qe;return qe}var uW=T1(HV),cW=T1(GV);function dW(Z){return"\\"+QV[Z]}function fW(Z,he){return Z==null?r:Z[he]}function hu(Z){return UV.test(Z)}function pW(Z){return VV.test(Z)}function vW(Z){for(var he,le=[];!(he=Z.next()).done;)le.push(he.value);return le}function A1(Z){var he=-1,le=Array(Z.size);return Z.forEach(function(qe,st){le[++he]=[st,qe]}),le}function tT(Z,he){return function(le){return Z(he(le))}}function Wi(Z,he){for(var le=-1,qe=Z.length,st=0,Pt=[];++le-1}function t7(u,p){var y=this.__data__,k=xm(y,u);return k<0?(++this.size,y.push([u,p])):y[k][1]=p,this}ti.prototype.clear=YW,ti.prototype.delete=JW,ti.prototype.get=ZW,ti.prototype.has=e7,ti.prototype.set=t7;function ri(u){var p=-1,y=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function So(u,p,y,k,M,B){var K,Q=p&v,re=p&m,be=p&h;if(y&&(K=M?y(u,k,M,B):y(u)),K!==r)return K;if(!tr(u))return u;var _e=lt(u);if(_e){if(K=aq(u),!Q)return In(u,K)}else{var Pe=nn(u),Fe=Pe==pe||Pe==ae;if(Xi(u))return LT(u,Q);if(Pe==Xe||Pe==oe||Fe&&!M){if(K=re||Fe?{}:rk(u),!Q)return re?K7(u,g7(K,u)):G7(u,pT(K,u))}else{if(!Bt[Pe])return M?u:{};K=iq(u,Pe,Q)}}B||(B=new oa);var Ye=B.get(u);if(Ye)return Ye;B.set(u,K),kk(u)?u.forEach(function(nt){K.add(So(nt,p,y,nt,u,B))}):Rk(u)&&u.forEach(function(nt,gt){K.set(gt,So(nt,p,y,gt,u,B))});var rt=be?re?i_:a_:re?An:Lr,dt=_e?r:rt(u);return _o(dt||u,function(nt,gt){dt&&(gt=nt,nt=u[gt]),Xd(K,gt,So(nt,p,y,gt,u,B))}),K}function y7(u){var p=Lr(u);return function(y){return vT(y,u,p)}}function vT(u,p,y){var k=y.length;if(u==null)return!k;for(u=Nt(u);k--;){var M=y[k],B=p[M],K=u[M];if(K===r&&!(M in u)||!B(K))return!1}return!0}function mT(u,p,y){if(typeof u!="function")throw new xo(i);return nf(function(){u.apply(r,y)},p)}function Yd(u,p,y,k){var M=-1,B=om,K=!0,Q=u.length,re=[],be=p.length;if(!Q)return re;y&&(p=Jt(p,Xn(y))),k?(B=E1,K=!1):p.length>=o&&(B=Wd,K=!1,p=new al(p));e:for(;++MM?0:M+y),k=k===r||k>M?M:ut(k),k<0&&(k+=M),k=y>k?0:jk(k);y0&&y(Q)?p>1?qr(Q,p-1,y,k,M):Vi(M,Q):k||(M[M.length]=Q)}return M}var z1=VT(),yT=VT(!0);function Ca(u,p){return u&&z1(u,p,Lr)}function U1(u,p){return u&&yT(u,p,Lr)}function Sm(u,p){return Ui(p,function(y){return si(u[y])})}function sl(u,p){p=Ki(p,u);for(var y=0,k=p.length;u!=null&&yp}function x7(u,p){return u!=null&&kt.call(u,p)}function w7(u,p){return u!=null&&p in Nt(u)}function S7(u,p,y){return u>=rn(p,y)&&u=120&&_e.length>=120)?new al(K&&_e):r}_e=u[0];var Pe=-1,Fe=Q[0];e:for(;++Pe-1;)Q!==u&&vm.call(Q,re,1),vm.call(u,re,1);return u}function RT(u,p){for(var y=u?p.length:0,k=y-1;y--;){var M=p[y];if(y==k||M!==B){var B=M;ii(M)?vm.call(u,M,1):J1(u,M)}}return u}function Q1(u,p){return u+gm(uT()*(p-u+1))}function F7(u,p,y,k){for(var M=-1,B=Tr(hm((p-u)/(y||1)),0),K=le(B);B--;)K[k?B:++M]=u,u+=y;return K}function X1(u,p){var y="";if(!u||p<1||p>U)return y;do p%2&&(y+=u),p=gm(p/2),p&&(u+=u);while(p);return y}function pt(u,p){return p_(ak(u,p,Mn),u+"")}function L7(u){return fT(Pu(u))}function N7(u,p){var y=Pu(u);return Am(y,il(p,0,y.length))}function ef(u,p,y,k){if(!tr(u))return u;p=Ki(p,u);for(var M=-1,B=p.length,K=B-1,Q=u;Q!=null&&++MM?0:M+p),y=y>M?M:y,y<0&&(y+=M),M=p>y?0:y-p>>>0,p>>>=0;for(var B=le(M);++k>>1,K=u[B];K!==null&&!Jn(K)&&(y?K<=p:K=o){var be=p?null:J7(u);if(be)return im(be);K=!1,M=Wd,re=new al}else re=p?[]:Q;e:for(;++k=k?u:Oo(u,p,y)}var FT=RW||function(u){return Wr.clearTimeout(u)};function LT(u,p){if(p)return u.slice();var y=u.length,k=oT?oT(y):new u.constructor(y);return u.copy(k),k}function r_(u){var p=new u.constructor(u.byteLength);return new fm(p).set(new fm(u)),p}function V7(u,p){var y=p?r_(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function W7(u){var p=new u.constructor(u.source,em.exec(u));return p.lastIndex=u.lastIndex,p}function q7(u){return Qd?Nt(Qd.call(u)):{}}function NT(u,p){var y=p?r_(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function DT(u,p){if(u!==p){var y=u!==r,k=u===null,M=u===u,B=Jn(u),K=p!==r,Q=p===null,re=p===p,be=Jn(p);if(!Q&&!be&&!B&&u>p||B&&K&&re&&!Q&&!be||k&&K&&re||!y&&re||!M)return 1;if(!k&&!B&&!be&&u=Q)return re;var be=y[k];return re*(be=="desc"?-1:1)}}return u.index-p.index}function BT(u,p,y,k){for(var M=-1,B=u.length,K=y.length,Q=-1,re=p.length,be=Tr(B-K,0),_e=le(re+be),Pe=!k;++Q1?y[M-1]:r,K=M>2?y[2]:r;for(B=u.length>3&&typeof B=="function"?(M--,B):r,K&&bn(y[0],y[1],K)&&(B=M<3?r:B,M=1),p=Nt(p);++k-1?M[B?p[K]:K]:r}}function HT(u){return ai(function(p){var y=p.length,k=y,M=wo.prototype.thru;for(u&&p.reverse();k--;){var B=p[k];if(typeof B!="function")throw new xo(i);if(M&&!K&&Im(B)=="wrapper")var K=new wo([],!0)}for(k=K?k:y;++k1&&wt.reverse(),_e&&reQ))return!1;var be=B.get(u),_e=B.get(p);if(be&&_e)return be==p&&_e==u;var Pe=-1,Fe=!0,Ye=y&w?new al:r;for(B.set(u,p),B.set(p,u);++Pe1?"& ":"")+p[k],p=p.join(y>2?", ":" "),u.replace(m1,`{ +/* [wrapped with `+p+`] */ +`)}function lq(u){return lt(u)||cl(u)||!!(sT&&u&&u[sT])}function ii(u,p){var y=typeof u;return p=p??U,!!p&&(y=="number"||y!="symbol"&&gn.test(u))&&u>-1&&u%1==0&&u0){if(++p>=L)return arguments[0]}else p=0;return u.apply(r,arguments)}}function Am(u,p){var y=-1,k=u.length,M=k-1;for(p=p===r?k:p;++y1?u[p-1]:r;return y=typeof y=="function"?(u.pop(),y):r,gk(u,y)});function yk(u){var p=N(u);return p.__chain__=!0,p}function bH(u,p){return p(u),u}function Mm(u,p){return p(u)}var _H=ai(function(u){var p=u.length,y=p?u[0]:0,k=this.__wrapped__,M=function(B){return B1(B,u)};return p>1||this.__actions__.length||!(k instanceof bt)||!ii(y)?this.thru(M):(k=k.slice(y,+y+(p?1:0)),k.__actions__.push({func:Mm,args:[M],thisArg:r}),new wo(k,this.__chain__).thru(function(B){return p&&!B.length&&B.push(r),B}))});function xH(){return yk(this)}function wH(){return new wo(this.value(),this.__chain__)}function SH(){this.__values__===r&&(this.__values__=Ik(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function OH(){return this}function CH(u){for(var p,y=this;y instanceof _m;){var k=dk(y);k.__index__=0,k.__values__=r,p?M.__wrapped__=k:p=k;var M=k;y=y.__wrapped__}return M.__wrapped__=u,p}function EH(){var u=this.__wrapped__;if(u instanceof bt){var p=u;return this.__actions__.length&&(p=new bt(this)),p=p.reverse(),p.__actions__.push({func:Mm,args:[v_],thisArg:r}),new wo(p,this.__chain__)}return this.thru(v_)}function PH(){return AT(this.__wrapped__,this.__actions__)}var $H=Pm(function(u,p,y){kt.call(u,y)?++u[y]:ni(u,y,1)});function RH(u,p,y){var k=lt(u)?GR:b7;return y&&bn(u,p,y)&&(p=r),k(u,tt(p,3))}function TH(u,p){var y=lt(u)?Ui:gT;return y(u,tt(p,3))}var kH=qT(fk),IH=qT(pk);function jH(u,p){return qr(Fm(u,p),1)}function AH(u,p){return qr(Fm(u,p),q)}function MH(u,p,y){return y=y===r?1:ut(y),qr(Fm(u,p),y)}function bk(u,p){var y=lt(u)?_o:Hi;return y(u,tt(p,3))}function _k(u,p){var y=lt(u)?eW:hT;return y(u,tt(p,3))}var FH=Pm(function(u,p,y){kt.call(u,y)?u[y].push(p):ni(u,y,[p])});function LH(u,p,y,k){u=jn(u)?u:Pu(u),y=y&&!k?ut(y):0;var M=u.length;return y<0&&(y=Tr(M+y,0)),zm(u)?y<=M&&u.indexOf(p,y)>-1:!!M&&mu(u,p,y)>-1}var NH=pt(function(u,p,y){var k=-1,M=typeof p=="function",B=jn(u)?le(u.length):[];return Hi(u,function(K){B[++k]=M?Qn(p,K,y):Jd(K,p,y)}),B}),DH=Pm(function(u,p,y){ni(u,y,p)});function Fm(u,p){var y=lt(u)?Jt:ST;return y(u,tt(p,3))}function BH(u,p,y,k){return u==null?[]:(lt(p)||(p=p==null?[]:[p]),y=k?r:y,lt(y)||(y=y==null?[]:[y]),PT(u,p,y))}var zH=Pm(function(u,p,y){u[y?0:1].push(p)},function(){return[[],[]]});function UH(u,p,y){var k=lt(u)?P1:YR,M=arguments.length<3;return k(u,tt(p,4),y,M,Hi)}function VH(u,p,y){var k=lt(u)?tW:YR,M=arguments.length<3;return k(u,tt(p,4),y,M,hT)}function WH(u,p){var y=lt(u)?Ui:gT;return y(u,Dm(tt(p,3)))}function qH(u){var p=lt(u)?fT:L7;return p(u)}function HH(u,p,y){(y?bn(u,p,y):p===r)?p=1:p=ut(p);var k=lt(u)?v7:N7;return k(u,p)}function GH(u){var p=lt(u)?m7:B7;return p(u)}function KH(u){if(u==null)return 0;if(jn(u))return zm(u)?gu(u):u.length;var p=nn(u);return p==Se||p==ie?u.size:H1(u).length}function QH(u,p,y){var k=lt(u)?$1:z7;return y&&bn(u,p,y)&&(p=r),k(u,tt(p,3))}var XH=pt(function(u,p){if(u==null)return[];var y=p.length;return y>1&&bn(u,p[0],p[1])?p=[]:y>2&&bn(p[0],p[1],p[2])&&(p=[p[0]]),PT(u,qr(p,1),[])}),Lm=TW||function(){return Wr.Date.now()};function YH(u,p){if(typeof p!="function")throw new xo(i);return u=ut(u),function(){if(--u<1)return p.apply(this,arguments)}}function xk(u,p,y){return p=y?r:p,p=u&&p==null?u.length:p,oi(u,T,r,r,r,r,p)}function wk(u,p){var y;if(typeof p!="function")throw new xo(i);return u=ut(u),function(){return--u>0&&(y=p.apply(this,arguments)),u<=1&&(p=r),y}}var h_=pt(function(u,p,y){var k=O;if(y.length){var M=Wi(y,Cu(h_));k|=P}return oi(u,k,p,y,M)}),Sk=pt(function(u,p,y){var k=O|b;if(y.length){var M=Wi(y,Cu(Sk));k|=P}return oi(p,k,u,y,M)});function Ok(u,p,y){p=y?r:p;var k=oi(u,_,r,r,r,r,r,p);return k.placeholder=Ok.placeholder,k}function Ck(u,p,y){p=y?r:p;var k=oi(u,$,r,r,r,r,r,p);return k.placeholder=Ck.placeholder,k}function Ek(u,p,y){var k,M,B,K,Q,re,be=0,_e=!1,Pe=!1,Fe=!0;if(typeof u!="function")throw new xo(i);p=Eo(p)||0,tr(y)&&(_e=!!y.leading,Pe="maxWait"in y,B=Pe?Tr(Eo(y.maxWait)||0,p):B,Fe="trailing"in y?!!y.trailing:Fe);function Ye(fr){var ia=k,ui=M;return k=M=r,be=fr,K=u.apply(ui,ia),K}function rt(fr){return be=fr,Q=nf(gt,p),_e?Ye(fr):K}function dt(fr){var ia=fr-re,ui=fr-be,qk=p-ia;return Pe?rn(qk,B-ui):qk}function nt(fr){var ia=fr-re,ui=fr-be;return re===r||ia>=p||ia<0||Pe&&ui>=B}function gt(){var fr=Lm();if(nt(fr))return wt(fr);Q=nf(gt,dt(fr))}function wt(fr){return Q=r,Fe&&k?Ye(fr):(k=M=r,K)}function Zn(){Q!==r&&FT(Q),be=0,k=re=M=Q=r}function _n(){return Q===r?K:wt(Lm())}function eo(){var fr=Lm(),ia=nt(fr);if(k=arguments,M=this,re=fr,ia){if(Q===r)return rt(re);if(Pe)return FT(Q),Q=nf(gt,p),Ye(re)}return Q===r&&(Q=nf(gt,p)),K}return eo.cancel=Zn,eo.flush=_n,eo}var JH=pt(function(u,p){return mT(u,1,p)}),ZH=pt(function(u,p,y){return mT(u,Eo(p)||0,y)});function eG(u){return oi(u,I)}function Nm(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new xo(i);var y=function(){var k=arguments,M=p?p.apply(this,k):k[0],B=y.cache;if(B.has(M))return B.get(M);var K=u.apply(this,k);return y.cache=B.set(M,K)||B,K};return y.cache=new(Nm.Cache||ri),y}Nm.Cache=ri;function Dm(u){if(typeof u!="function")throw new xo(i);return function(){var p=arguments;switch(p.length){case 0:return!u.call(this);case 1:return!u.call(this,p[0]);case 2:return!u.call(this,p[0],p[1]);case 3:return!u.call(this,p[0],p[1],p[2])}return!u.apply(this,p)}}function tG(u){return wk(2,u)}var rG=U7(function(u,p){p=p.length==1&<(p[0])?Jt(p[0],Xn(tt())):Jt(qr(p,1),Xn(tt()));var y=p.length;return pt(function(k){for(var M=-1,B=rn(k.length,y);++M=p}),cl=_T(function(){return arguments}())?_T:function(u){return sr(u)&&kt.call(u,"callee")&&!iT.call(u,"callee")},lt=le.isArray,gG=zR?Xn(zR):C7;function jn(u){return u!=null&&Bm(u.length)&&!si(u)}function dr(u){return sr(u)&&jn(u)}function yG(u){return u===!0||u===!1||sr(u)&&yn(u)==ye}var Xi=IW||$_,bG=UR?Xn(UR):E7;function _G(u){return sr(u)&&u.nodeType===1&&!of(u)}function xG(u){if(u==null)return!0;if(jn(u)&&(lt(u)||typeof u=="string"||typeof u.splice=="function"||Xi(u)||Eu(u)||cl(u)))return!u.length;var p=nn(u);if(p==Se||p==ie)return!u.size;if(rf(u))return!H1(u).length;for(var y in u)if(kt.call(u,y))return!1;return!0}function wG(u,p){return Zd(u,p)}function SG(u,p,y){y=typeof y=="function"?y:r;var k=y?y(u,p):r;return k===r?Zd(u,p,r,y):!!k}function y_(u){if(!sr(u))return!1;var p=yn(u);return p==ce||p==ge||typeof u.message=="string"&&typeof u.name=="string"&&!of(u)}function OG(u){return typeof u=="number"&&lT(u)}function si(u){if(!tr(u))return!1;var p=yn(u);return p==pe||p==ae||p==Re||p==X}function $k(u){return typeof u=="number"&&u==ut(u)}function Bm(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=U}function tr(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function sr(u){return u!=null&&typeof u=="object"}var Rk=VR?Xn(VR):$7;function CG(u,p){return u===p||q1(u,p,l_(p))}function EG(u,p,y){return y=typeof y=="function"?y:r,q1(u,p,l_(p),y)}function PG(u){return Tk(u)&&u!=+u}function $G(u){if(dq(u))throw new st(a);return xT(u)}function RG(u){return u===null}function TG(u){return u==null}function Tk(u){return typeof u=="number"||sr(u)&&yn(u)==Ce}function of(u){if(!sr(u)||yn(u)!=Xe)return!1;var p=pm(u);if(p===null)return!0;var y=kt.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&um.call(y)==EW}var b_=WR?Xn(WR):R7;function kG(u){return $k(u)&&u>=-U&&u<=U}var kk=qR?Xn(qR):T7;function zm(u){return typeof u=="string"||!lt(u)&&sr(u)&&yn(u)==se}function Jn(u){return typeof u=="symbol"||sr(u)&&yn(u)==ue}var Eu=HR?Xn(HR):k7;function IG(u){return u===r}function jG(u){return sr(u)&&nn(u)==Ie}function AG(u){return sr(u)&&yn(u)==at}var MG=km(G1),FG=km(function(u,p){return u<=p});function Ik(u){if(!u)return[];if(jn(u))return zm(u)?na(u):In(u);if(qd&&u[qd])return vW(u[qd]());var p=nn(u),y=p==Se?A1:p==ie?im:Pu;return y(u)}function li(u){if(!u)return u===0?u:0;if(u=Eo(u),u===q||u===-q){var p=u<0?-1:1;return p*W}return u===u?u:0}function ut(u){var p=li(u),y=p%1;return p===p?y?p-y:p:0}function jk(u){return u?il(ut(u),0,ne):0}function Eo(u){if(typeof u=="number")return u;if(Jn(u))return te;if(tr(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=tr(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=JR(u);var y=g1.test(u);return y||mt.test(u)?YV(u.slice(2),y?2:8):h1.test(u)?te:+u}function Ak(u){return Ea(u,An(u))}function LG(u){return u?il(ut(u),-U,U):u===0?u:0}function Tt(u){return u==null?"":Yn(u)}var NG=Su(function(u,p){if(rf(p)||jn(p)){Ea(p,Lr(p),u);return}for(var y in p)kt.call(p,y)&&Xd(u,y,p[y])}),Mk=Su(function(u,p){Ea(p,An(p),u)}),Um=Su(function(u,p,y,k){Ea(p,An(p),u,k)}),DG=Su(function(u,p,y,k){Ea(p,Lr(p),u,k)}),BG=ai(B1);function zG(u,p){var y=wu(u);return p==null?y:pT(y,p)}var UG=pt(function(u,p){u=Nt(u);var y=-1,k=p.length,M=k>2?p[2]:r;for(M&&bn(p[0],p[1],M)&&(k=1);++y1),B}),Ea(u,i_(u),y),k&&(y=So(y,v|m|h,Z7));for(var M=p.length;M--;)J1(y,p[M]);return y});function iK(u,p){return Lk(u,Dm(tt(p)))}var sK=ai(function(u,p){return u==null?{}:A7(u,p)});function Lk(u,p){if(u==null)return{};var y=Jt(i_(u),function(k){return[k]});return p=tt(p),$T(u,y,function(k,M){return p(k,M[0])})}function lK(u,p,y){p=Ki(p,u);var k=-1,M=p.length;for(M||(M=1,u=r);++kp){var k=u;u=p,p=k}if(y||u%1||p%1){var M=uT();return rn(u+M*(p-u+XV("1e-"+((M+"").length-1))),p)}return Q1(u,p)}var bK=Ou(function(u,p,y){return p=p.toLowerCase(),u+(y?Bk(p):p)});function Bk(u){return w_(Tt(u).toLowerCase())}function zk(u){return u=Tt(u),u&&u.replace(xV,uW).replace(BV,"")}function _K(u,p,y){u=Tt(u),p=Yn(p);var k=u.length;y=y===r?k:il(ut(y),0,k);var M=y;return y-=p.length,y>=0&&u.slice(y,M)==p}function xK(u){return u=Tt(u),u&&zi.test(u)?u.replace(ra,cW):u}function wK(u){return u=Tt(u),u&&Ud.test(u)?u.replace(ei,"\\$&"):u}var SK=Ou(function(u,p,y){return u+(y?"-":"")+p.toLowerCase()}),OK=Ou(function(u,p,y){return u+(y?" ":"")+p.toLowerCase()}),CK=WT("toLowerCase");function EK(u,p,y){u=Tt(u),p=ut(p);var k=p?gu(u):0;if(!p||k>=p)return u;var M=(p-k)/2;return Tm(gm(M),y)+u+Tm(hm(M),y)}function PK(u,p,y){u=Tt(u),p=ut(p);var k=p?gu(u):0;return p&&k>>0,y?(u=Tt(u),u&&(typeof p=="string"||p!=null&&!b_(p))&&(p=Yn(p),!p&&hu(u))?Qi(na(u),0,y):u.split(p,y)):[]}var AK=Ou(function(u,p,y){return u+(y?" ":"")+w_(p)});function MK(u,p,y){return u=Tt(u),y=y==null?0:il(ut(y),0,u.length),p=Yn(p),u.slice(y,y+p.length)==p}function FK(u,p,y){var k=N.templateSettings;y&&bn(u,p,y)&&(p=r),u=Tt(u),p=Um({},p,k,YT);var M=Um({},p.imports,k.imports,YT),B=Lr(M),K=j1(M,B),Q,re,be=0,_e=p.interpolate||tm,Pe="__p += '",Fe=M1((p.escape||tm).source+"|"+_e.source+"|"+(_e===Qv?Zv:tm).source+"|"+(p.evaluate||tm).source+"|$","g"),Ye="//# sourceURL="+(kt.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qV+"]")+` +`;u.replace(Fe,function(nt,gt,wt,Zn,_n,eo){return wt||(wt=Zn),Pe+=u.slice(be,eo).replace(wV,dW),gt&&(Q=!0,Pe+=`' + +__e(`+gt+`) + +'`),_n&&(re=!0,Pe+=`'; +`+_n+`; +__p += '`),wt&&(Pe+=`' + +((__t = (`+wt+`)) == null ? '' : __t) + +'`),be=eo+nt.length,nt}),Pe+=`'; +`;var rt=kt.call(p,"variable")&&p.variable;if(!rt)Pe=`with (obj) { +`+Pe+` +} +`;else if(Yv.test(rt))throw new st(s);Pe=(re?Pe.replace(yt,""):Pe).replace(Yt,"$1").replace($r,"$1;"),Pe="function("+(rt||"obj")+`) { +`+(rt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(re?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Pe+`return __p +}`;var dt=Vk(function(){return Pt(B,Ye+"return "+Pe).apply(r,K)});if(dt.source=Pe,y_(dt))throw dt;return dt}function LK(u){return Tt(u).toLowerCase()}function NK(u){return Tt(u).toUpperCase()}function DK(u,p,y){if(u=Tt(u),u&&(y||p===r))return JR(u);if(!u||!(p=Yn(p)))return u;var k=na(u),M=na(p),B=ZR(k,M),K=eT(k,M)+1;return Qi(k,B,K).join("")}function BK(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.slice(0,rT(u)+1);if(!u||!(p=Yn(p)))return u;var k=na(u),M=eT(k,na(p))+1;return Qi(k,0,M).join("")}function zK(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.replace(hn,"");if(!u||!(p=Yn(p)))return u;var k=na(u),M=ZR(k,na(p));return Qi(k,M).join("")}function UK(u,p){var y=A,k=F;if(tr(p)){var M="separator"in p?p.separator:M;y="length"in p?ut(p.length):y,k="omission"in p?Yn(p.omission):k}u=Tt(u);var B=u.length;if(hu(u)){var K=na(u);B=K.length}if(y>=B)return u;var Q=y-gu(k);if(Q<1)return k;var re=K?Qi(K,0,Q).join(""):u.slice(0,Q);if(M===r)return re+k;if(K&&(Q+=re.length-Q),b_(M)){if(u.slice(Q).search(M)){var be,_e=re;for(M.global||(M=M1(M.source,Tt(em.exec(M))+"g")),M.lastIndex=0;be=M.exec(_e);)var Pe=be.index;re=re.slice(0,Pe===r?Q:Pe)}}else if(u.indexOf(Yn(M),Q)!=Q){var Fe=re.lastIndexOf(M);Fe>-1&&(re=re.slice(0,Fe))}return re+k}function VK(u){return u=Tt(u),u&&Kn.test(u)?u.replace(mn,yW):u}var WK=Ou(function(u,p,y){return u+(y?" ":"")+p.toUpperCase()}),w_=WT("toUpperCase");function Uk(u,p,y){return u=Tt(u),p=y?r:p,p===r?pW(u)?xW(u):oW(u):u.match(p)||[]}var Vk=pt(function(u,p){try{return Qn(u,r,p)}catch(y){return y_(y)?y:new st(y)}}),qK=ai(function(u,p){return _o(p,function(y){y=Pa(y),ni(u,y,h_(u[y],u))}),u});function HK(u){var p=u==null?0:u.length,y=tt();return u=p?Jt(u,function(k){if(typeof k[1]!="function")throw new xo(i);return[y(k[0]),k[1]]}):[],pt(function(k){for(var M=-1;++MU)return[];var y=ne,k=rn(u,ne);p=tt(p),u-=ne;for(var M=I1(k,p);++y0||p<0)?new bt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),p!==r&&(p=ut(p),y=p<0?y.dropRight(-p):y.take(p-u)),y)},bt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},bt.prototype.toArray=function(){return this.take(ne)},Ca(bt.prototype,function(u,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),k=/^(?:head|last)$/.test(p),M=N[k?"take"+(p=="last"?"Right":""):p],B=k||/^find/.test(p);M&&(N.prototype[p]=function(){var K=this.__wrapped__,Q=k?[1]:arguments,re=K instanceof bt,be=Q[0],_e=re||lt(K),Pe=function(gt){var wt=M.apply(N,Vi([gt],Q));return k&&Fe?wt[0]:wt};_e&&y&&typeof be=="function"&&be.length!=1&&(re=_e=!1);var Fe=this.__chain__,Ye=!!this.__actions__.length,rt=B&&!Fe,dt=re&&!Ye;if(!B&&_e){K=dt?K:new bt(this);var nt=u.apply(K,Q);return nt.__actions__.push({func:Mm,args:[Pe],thisArg:r}),new wo(nt,Fe)}return rt&&dt?u.apply(this,Q):(nt=this.thru(Pe),rt?k?nt.value()[0]:nt.value():nt)})}),_o(["pop","push","shift","sort","splice","unshift"],function(u){var p=sm[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",k=/^(?:pop|shift)$/.test(u);N.prototype[u]=function(){var M=arguments;if(k&&!this.__chain__){var B=this.value();return p.apply(lt(B)?B:[],M)}return this[y](function(K){return p.apply(lt(K)?K:[],M)})}}),Ca(bt.prototype,function(u,p){var y=N[p];if(y){var k=y.name+"";kt.call(xu,k)||(xu[k]=[]),xu[k].push({name:p,func:y})}}),xu[$m(r,b).name]=[{name:"wrapper",func:r}],bt.prototype.clone=VW,bt.prototype.reverse=WW,bt.prototype.value=qW,N.prototype.at=_H,N.prototype.chain=xH,N.prototype.commit=wH,N.prototype.next=SH,N.prototype.plant=CH,N.prototype.reverse=EH,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=PH,N.prototype.first=N.prototype.head,qd&&(N.prototype[qd]=OH),N},yu=wW();rl?((rl.exports=yu)._=yu,O1._=yu):Wr._=yu}).call(ro)})(db,db.exports);var d1=db.exports;const q6e={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const o={method:"POST",body:JSON.stringify(Object.assign({device_id:localStorage.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r}))};e=e.replace(/\/+$/g,""),localStorage.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:s}=await Xl(i,o);localStorage.setItem("home_server",s.home_server),localStorage.setItem("user_id",s.user_id),localStorage.setItem("access_token",s.access_token),localStorage.setItem("device_id",s.device_id)},logout:async()=>{console.log("logout");const e=localStorage.getItem("base_url")+"/_matrix/client/r0/logout",t=localStorage.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await Xl(e,r),localStorage.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=localStorage.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},Po=(e,t={})=>{const r=localStorage.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),Xl(e,t)},uN=e=>{const t=localStorage.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const o=n[1],a=n[2];return`${t}/_matrix/media/r0/thumbnail/${o}/${a}?width=24&height=24&method=scale`},br={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?uN(e.avatar_url):void 0,is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:e.creation_ts*1e3}),data:"users",total:e=>e.total,create:e=>({endpoint:`/_synapse/admin/v2/users/@${encodeURIComponent(e.id)}:${localStorage.getItem("home_server")}`,body:e,method:"PUT"}),delete:e=>({endpoint:`/_synapse/admin/v1/deactivate/${encodeURIComponent(e.id)}`,body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:`/_synapse/admin/v2/rooms/${e.id}`,body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e)}/devices`}),delete:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e.previousData.user_id)}/devices/${e.id}`})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/members`}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/state`}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/pushers`}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/joined_rooms`}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/media`}),data:"media",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/media/${localStorage.getItem("home_server")}/${e.id}`})},delete_media:{delete:e=>({endpoint:`/_synapse/admin/v1/media/${localStorage.getItem("home_server")}/delete?before_ts=${e.meta.before_ts}&size_gt=${e.meta.size_gt}&keep_profiles=${e.meta.keep_profiles}`,method:"POST"})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${localStorage.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${localStorage.getItem("home_server")}/${e.id}`,method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/forward_extremities`}),data:"results",total:e=>e.count,delete:e=>({endpoint:`/_synapse/admin/v1/rooms/${e.id}/forward_extremities`})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:e.avatar_url?uN(e.avatar_url):void 0}),data:"chunk",total:e=>e.total_room_count_estimate,create:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"public"},method:"PUT"}),delete:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"private"},method:"PUT"})},destinations:{path:"/_synapse/admin/v1/federation/destinations",map:e=>({...e,id:e.destination}),data:"destinations",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e.id}/reset_connection`,method:"POST"})},destination_rooms:{map:e=>({...e,id:e.room_id}),reference:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e}/rooms`}),data:"rooms",total:e=>e.total},registration_tokens:{path:"/_synapse/admin/v1/registration_tokens",map:e=>({...e,id:e.token}),data:"registration_tokens",total:e=>e.registration_tokens.length,create:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/new",body:e,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/registration_tokens/${e.id}`})}};function Pf(e,t){if(!(t===null&&e!=="user_type"))return t}function cN(e){return e==="DESC"?"b":"f"}const H6e={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,search_term:i,destination:s,valid:c}=t.filter,{page:l,perPage:f}=t.pagination,{field:v,order:m}=t.sort,h=(l-1)*f,x={from:h,limit:f,user_id:r,search_term:i,name:n,destination:s,guests:o,deactivated:a,valid:c,order_by:v,dir:cN(m)},w=localStorage.getItem("base_url");if(!w||!(e in br))throw Error("Homeserver not set");const O=br[e],g=`${w+O.path}?${Ql.stringify(x)}`,{json:_}=await Po(g);return{data:_[O.data].map(O.map),total:O.total(_,h,f)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e],o=r+n.path,{json:a}=await Po(`${o}/${encodeURIComponent(t.id)}`);return{data:n.map(a)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homerserver not set");const n=br[e],o=r+n.path,a=await Promise.all(t.ids.map(i=>Po(`${o}/${encodeURIComponent(i)}`)));return{data:a.map(({json:i})=>n.map(i)),total:a.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i=(r-1)*n,s={from:i,limit:n,order_by:o,dir:cN(a)},c=localStorage.getItem("base_url");if(!c||!(e in br))throw Error("Homeserver not set");const l=br[e],f=l.reference(t.id),v=`${c}${f.endpoint}?${Ql.stringify(s)}`,{json:m}=await Po(v);return{data:m[l.data].map(l.map),total:l.total(m,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e],o=r+n.path,{json:a}=await Po(`${o}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,Pf)});return{data:n.map(a)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e],o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>Po(`${o}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,Pf)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e];if(!("create"in n))return Promise.reject();const o=n.create(t.data),a=r+o.endpoint,{json:i}=await Po(a,{method:o.method,body:JSON.stringify(o.body,Pf)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(a=>{t.data.id=a;const i=n.create(t.data),s=r+i.endpoint;return Po(s,{method:i.method,body:JSON.stringify(i.body,Pf)})}))).map(({json:a})=>a)}},delete:async(e,t)=>{console.log("delete "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e];if("delete"in n){const o=n.delete(t),a=r+o.endpoint,{json:i}=await Po(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null});return{data:i}}else{const o=r+n.path,{json:a}=await Po(`${o}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,Pf)});return{data:a}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in br))throw Error("Homeserver not set");const n=br[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(a=>{const i=n.delete({...t,id:a}),s=r+i.endpoint;return Po(s,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:a})=>a)};{const o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>Po(`${o}/${i}`,{method:"DELETE"})))).map(({json:i})=>i)}}}};var V2={},G6e=We;Object.defineProperty(V2,"__esModule",{value:!0});var WU=V2.default=void 0,K6e=G6e(Qe()),Q6e=S;WU=V2.default=(0,K6e.default)((0,Q6e.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"}),"AssignmentInd");var W2={},X6e=We;Object.defineProperty(W2,"__esModule",{value:!0});var qU=W2.default=void 0,Y6e=X6e(Qe()),J6e=S;qU=W2.default=(0,Y6e.default)((0,J6e.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var q2={},Z6e=We;Object.defineProperty(q2,"__esModule",{value:!0});var HU=q2.default=void 0,e9e=Z6e(Qe()),t9e=S;HU=q2.default=(0,e9e.default)((0,t9e.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices");var H2={},r9e=We;Object.defineProperty(H2,"__esModule",{value:!0});var GU=H2.default=void 0,n9e=r9e(Qe()),o9e=S;GU=H2.default=(0,n9e.default)((0,o9e.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var G2={},a9e=We;Object.defineProperty(G2,"__esModule",{value:!0});var KU=G2.default=void 0,i9e=a9e(Qe()),s9e=S;KU=G2.default=(0,i9e.default)((0,s9e.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"}),"PermMedia");var K2={},l9e=We;Object.defineProperty(K2,"__esModule",{value:!0});var QU=K2.default=void 0,u9e=l9e(Qe()),c9e=S;QU=K2.default=(0,u9e.default)((0,c9e.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"}),"PersonPin");var Q2={},d9e=We;Object.defineProperty(Q2,"__esModule",{value:!0});var XU=Q2.default=void 0,f9e=d9e(Qe()),p9e=S;XU=Q2.default=(0,f9e.default)((0,p9e.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent");var X2={},v9e=We;Object.defineProperty(X2,"__esModule",{value:!0});var Y2=X2.default=void 0,m9e=v9e(Qe()),h9e=S;Y2=X2.default=(0,m9e.default)((0,h9e.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");const J2=({source:e,...t})=>{var l;const r=ht(t),n=(l=d1.get(r,e))==null?void 0:l.toString(),{alt:o,classes:a,sizes:i,sx:s,variant:c}=t;return S.jsx(Hp,{alt:o,classes:a,sizes:i,src:n,sx:s,variant:c})};var Z2={},g9e=We;Object.defineProperty(Z2,"__esModule",{value:!0});var eR=Z2.default=void 0,y9e=g9e(Qe()),b9e=S;eR=Z2.default=(0,y9e.default)((0,b9e.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"Message");var tR={},_9e=We;Object.defineProperty(tR,"__esModule",{value:!0});var rR=tR.default=void 0,x9e=_9e(Qe()),w9e=S;rR=tR.default=(0,x9e.default)((0,w9e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"}),"Cancel");const YU=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(Nd,{...a,children:[S.jsx(Vv,{label:"resources.servernotices.action.send",disabled:a.pristine}),S.jsx(Lt,{label:"ra.action.cancel",onClick:t,children:S.jsx(rR,{})})]});return S.jsxs(jv,{open:e,onClose:t,children:[S.jsx(Mv,{children:n("resources.servernotices.action.send")}),S.jsxs(Av,{children:[S.jsx(Q0,{children:n("resources.servernotices.helper.send")}),S.jsx(Dd,{toolbar:S.jsx(o,{}),onSubmit:r,children:S.jsx(Cr,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:lo()})})]})]})},S9e=()=>{const e=ht(),[t,r]=d.useState(!1),n=qt(),[o,{isLoading:a}]=fv(),i=()=>r(!0),s=()=>r(!1),c=l=>{o("servernotices",{data:{id:e.id,...l}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),s()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[S.jsx(Lt,{label:"resources.servernotices.send",onClick:i,disabled:a,children:S.jsx(eR,{})}),S.jsx(YU,{open:t,onClose:s,onSubmit:c})]})},O9e=()=>{const{selectedIds:e}=en(),[t,r]=d.useState(!1),n=()=>r(!0),o=()=>r(!1),a=qt(),i=y5("users"),s=Yo(),{mutate:c,isLoading:l}=cd(f=>s.createMany("servernotices",{ids:e,data:f}),{onSuccess:()=>{a("resources.servernotices.action.send_success"),i(),o()},onError:()=>a("resources.servernotices.action.send_failure",{type:"error"})});return S.jsxs(S.Fragment,{children:[S.jsx(Lt,{label:"resources.servernotices.send",onClick:n,disabled:l,children:S.jsx(eR,{})}),S.jsx(YU,{open:t,onClose:o,onSubmit:c})]})},C9e=e=>{const t=ht();return t?S.jsx(Q$,{...e,label:"ra.action.remove",confirmTitle:"resources.devices.action.erase.title",confirmContent:"resources.devices.action.erase.content",mutationMode:"pessimistic",redirect:!1,translateOptions:{id:t.id,name:t.display_name?t.display_name:t.id}}):null};var nR={},E9e=We;Object.defineProperty(nR,"__esModule",{value:!0});var jC=nR.default=void 0,P9e=E9e(Qe()),$9e=S;jC=nR.default=(0,P9e.default)((0,$9e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var oR={},R9e=We;Object.defineProperty(oR,"__esModule",{value:!0});var aR=oR.default=void 0,T9e=R9e(Qe()),k9e=S;aR=oR.default=(0,T9e.default)((0,k9e.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep");var iR={},I9e=We;Object.defineProperty(iR,"__esModule",{value:!0});var JU=iR.default=void 0,j9e=I9e(Qe()),A9e=S;JU=iR.default=(0,j9e.default)((0,A9e.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen");var sR={},M9e=We;Object.defineProperty(sR,"__esModule",{value:!0});var ZU=sR.default=void 0,F9e=M9e(Qe()),L9e=S;ZU=sR.default=(0,F9e.default)((0,L9e.jsx)("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"}),"FileOpen");const dn={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},lR=e=>new Date(e).getTime(),N9e=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),o=(r+(t.getMonth()+1).toString()).slice(-2),a=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),s=(r+t.getMinutes().toString()).slice(-2);return`${n}-${o}-${a}T${i}:${s}`},D9e=e=>{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},B9e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),z9e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await Xl(t,{method:"GET"}))["m.homeserver"].base_url}catch{return`https://${e}`}},U9e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await Xl(t,{method:"GET"})).json.server_version},V9e=async e=>{const t=`${e}/_matrix/client/versions`;return(await Xl(t,{method:"GET"})).json},W9e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await Xl(t,{method:"GET"})).json.flows},q9e=e=>`${localStorage.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function dN(){const e=localStorage.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function H9e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const G9e=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(Nd,{...a,children:[S.jsx(Vv,{label:"resources.delete_media.action.send",icon:S.jsx(aR,{})}),S.jsx(Lt,{label:"ra.action.cancel",onClick:t,children:S.jsx(rR,{})})]});return S.jsxs(jv,{open:e,onClose:t,children:[S.jsx(Mv,{children:n("resources.delete_media.action.send")}),S.jsxs(Av,{children:[S.jsx(Q0,{children:n("resources.delete_media.helper.send")}),S.jsxs(Dd,{toolbar:S.jsx(o,{}),onSubmit:r,children:[S.jsx(i1,{fullWidth:!0,source:"before_ts",label:"resources.delete_media.fields.before_ts",defaultValue:0,parse:lR}),S.jsx(Ll,{fullWidth:!0,source:"size_gt",label:"resources.delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),S.jsx(Fs,{fullWidth:!0,source:"keep_profiles",label:"resources.delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},K9e=e=>{const t=ta(),[r,n]=d.useState(!1),o=qt(),[a,{isLoading:i}]=Od(),s=()=>n(!0),c=()=>n(!1),l=f=>{a("delete_media",{meta:f},{onSuccess:()=>{o("resources.delete_media.action.send_success"),c()},onError:()=>o("resources.delete_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[S.jsx(Lt,{...e,label:"resources.delete_media.action.send",onClick:s,disabled:i,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:Hc(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:S.jsx(aR,{})}),S.jsx(G9e,{open:r,onClose:c,onSubmit:l})]})},Q9e=e=>{const t=ht(),r=je(),n=Ya(),o=qt(),[a,{isLoading:i}]=fv(),[s]=Od();if(!t)return null;const c=()=>{a("protect_media",{data:t},{onSuccess:()=>{o("resources.protect_media.action.send_success"),n()},onError:()=>o("resources.protect_media.action.send_failure",{type:"error"})})},l=()=>{s("protect_media",{id:t.id},{onSuccess:()=>{o("resources.protect_media.action.send_success"),n()},onError:()=>o("resources.protect_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[t.quarantined_by&&S.jsx(Ur,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,disabled:!0,children:S.jsx(rd,{})})})}),t.safe_from_quarantine&&S.jsx(Ur,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:S.jsx("div",{children:S.jsx(Lt,{...e,onClick:l,disabled:i,children:S.jsx(Nv,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Ur,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,onClick:c,disabled:i,children:S.jsx(JU,{})})})})]})},X9e=e=>{const t=ht(),r=je(),n=Ya(),o=qt(),[a,{isLoading:i}]=fv(),[s]=Od();if(!t)return null;const c=()=>{a("quarantine_media",{data:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},l=()=>{s("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[t.safe_from_quarantine&&S.jsx(Ur,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,disabled:!0,children:S.jsx(rd,{})})})}),t.quarantined_by&&S.jsx(Ur,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,onClick:l,disabled:i,children:S.jsx(jC,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Ur,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:S.jsx("div",{children:S.jsx(Lt,{...e,onClick:c,disabled:i,children:S.jsx(jC,{})})})})]})},eV=({media_id:e,label:t})=>{const r=je(),n=q9e(e);return S.jsxs(On,{style:{whiteSpace:"pre"},children:[S.jsx(Ur,{title:r("resources.users_media.action.open"),children:S.jsx("span",{children:S.jsx(Lt,{component:ya,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:S.jsx(ZU,{})})})}),t]})},Y9e=({source:e})=>{var o;const t=localStorage.getItem("home_server"),r=ht();if(!r)return null;const n=(o=d1.get(r,e))==null?void 0:o.toString();return n?S.jsx(eV,{media_id:`${t}/${n}`,label:n}):null},J9e=({source:e})=>{var o;const t=ht();if(!t)return null;const r=(o=d1.get(t,e))==null?void 0:o.toString();if(!r)return null;const n=r.replace("mxc://","");return S.jsx(eV,{media_id:n,label:r})},tV=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],rV=[{id:"bot",name:"bot"},{id:"support",name:"support"}],nV=()=>{const{isLoading:e,total:t}=en();return S.jsxs(yo,{children:[S.jsx(b$,{}),S.jsx(Fd,{disabled:e||t===0,maxResults:1e4}),S.jsx(Lt,{component:ya,to:"/import_users",label:"CSV Import",children:S.jsx(K$,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};nV.defaultProps={selectedIds:[],onUnselectItems:()=>null};const oV=()=>S.jsx(Ys,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Z9e=[S.jsx(s1,{source:"name",alwaysOn:!0}),S.jsx(Fs,{source:"guests",alwaysOn:!0}),S.jsx(Fs,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],e8e=()=>S.jsxs(S.Fragment,{children:[S.jsx(O9e,{}),S.jsx(Uv,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),t8e=e=>S.jsx(Js,{...e,filters:Z9e,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:S.jsx(nV,{}),pagination:S.jsx(oV,{}),children:S.jsxs(Br,{rowClick:"edit",bulkActionButtons:S.jsx(e8e,{}),children:[S.jsx(J2,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),S.jsx(Me,{source:"id",sortBy:"name"}),S.jsx(Me,{source:"displayname"}),S.jsx(Va,{source:"is_guest"}),S.jsx(Va,{source:"admin"}),S.jsx(Va,{source:"deactivated"}),S.jsx(cn,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:dn})]})}),r8e=[lo(),gy(253),CP(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],n8e=[lo(),gy(255)],o8e=()=>{const e=ht(),t=je();return S.jsxs(yo,{children:[!e.deactivated&&S.jsx(S9e,{}),S.jsx(du,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},a8e=e=>S.jsx(O2,{...e,children:S.jsxs(Dd,{children:[S.jsx(Cr,{source:"id",autoComplete:"off",validate:r8e}),S.jsx(Cr,{source:"displayname",validate:gy(256)}),S.jsx(S2,{source:"password",autoComplete:"new-password",validate:gy(512)}),S.jsx(Zp,{source:"user_type",choices:rV,translateChoice:!1,resettable:!0}),S.jsx(Fs,{source:"admin"}),S.jsx(Wy,{source:"threepids",children:S.jsxs(Yp,{disableReordering:!0,children:[S.jsx(Zp,{source:"medium",choices:tV,validate:lo()}),S.jsx(Cr,{source:"address",validate:n8e})]})}),S.jsx(Wy,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:S.jsxs(Yp,{disableReordering:!0,children:[S.jsx(Cr,{source:"auth_provider",validate:lo()}),S.jsx(Cr,{source:"external_id",label:"resources.users.fields.id",validate:lo()})]})})]})}),i8e=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},s8e=e=>{const t=je();return S.jsx(C2,{...e,title:S.jsx(i8e,{}),actions:S.jsx(o8e,{}),children:S.jsxs(E2,{children:[S.jsxs(ua,{label:t("resources.users.name",{smart_count:1}),icon:S.jsx(QU,{}),children:[S.jsx(J2,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),S.jsx(Cr,{source:"id",disabled:!0}),S.jsx(Cr,{source:"displayname"}),S.jsx(S2,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),S.jsx(Zp,{source:"user_type",choices:rV,translateChoice:!1,resettable:!0}),S.jsx(Fs,{source:"admin"}),S.jsx(Fs,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),S.jsx(cn,{source:"creation_ts_ms",showTime:!0,options:dn}),S.jsx(Me,{source:"consent_version"})]}),S.jsx(ua,{label:"resources.users.threepid",icon:S.jsx(qU,{}),path:"threepid",children:S.jsx(Wy,{source:"threepids",children:S.jsxs(Yp,{disableReordering:!0,children:[S.jsx(Zp,{source:"medium",choices:tV}),S.jsx(Cr,{source:"address"})]})})}),S.jsx(ua,{label:"synapseadmin.users.tabs.sso",icon:S.jsx(WU,{}),path:"sso",children:S.jsx(Wy,{source:"external_ids",label:!1,children:S.jsxs(Yp,{disableReordering:!0,children:[S.jsx(Cr,{source:"auth_provider",validate:lo()}),S.jsx(Cr,{source:"external_id",label:"resources.users.fields.id",validate:lo()})]})})}),S.jsx(ua,{label:t("resources.devices.name",{smart_count:2}),icon:S.jsx(HU,{}),path:"devices",children:S.jsx(_i,{reference:"devices",target:"user_id",label:!1,children:S.jsxs(Br,{style:{width:"100%"},children:[S.jsx(Me,{source:"device_id",sortable:!1}),S.jsx(Me,{source:"display_name",sortable:!1}),S.jsx(Me,{source:"last_seen_ip",sortable:!1}),S.jsx(cn,{source:"last_seen_ts",showTime:!0,options:dn,sortable:!1}),S.jsx(C9e,{})]})})}),S.jsx(ua,{label:"resources.connections.name",icon:S.jsx(XU,{}),path:"connections",children:S.jsx(Wa,{reference:"connections",source:"id",label:!1,link:!1,children:S.jsx(A3e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:S.jsxs(Br,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"ip",sortable:!1}),S.jsx(cn,{source:"last_seen",showTime:!0,options:dn,sortable:!1}),S.jsx(Me,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),S.jsx(ua,{label:t("resources.users_media.name",{smart_count:2}),icon:S.jsx(KU,{}),path:"media",children:S.jsx(_i,{reference:"users_media",target:"user_id",label:!1,pagination:S.jsx(oV,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:S.jsxs(Br,{style:{width:"100%"},children:[S.jsx(Y9e,{source:"media_id"}),S.jsx(cn,{source:"created_ts",showTime:!0,options:dn}),S.jsx(cn,{source:"last_access_ts",showTime:!0,options:dn}),S.jsx(wi,{source:"media_length"}),S.jsx(Me,{source:"media_type"}),S.jsx(Me,{source:"upload_name"}),S.jsx(Me,{source:"quarantined_by"}),S.jsx(X9e,{label:"resources.quarantine_media.action.name"}),S.jsx(Q9e,{label:"resources.users_media.fields.safe_from_quarantine"}),S.jsx(du,{mutationMode:"pessimistic",redirect:!1})]})})}),S.jsx(ua,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(cu,{}),path:"rooms",children:S.jsx(_i,{reference:"joined_rooms",target:"user_id",label:!1,children:S.jsxs(Br,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),S.jsx(Wa,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Me,{source:"name",sortable:!1})})]})})}),S.jsx(ua,{label:t("resources.pushers.name",{smart_count:2}),icon:S.jsx(GU,{}),path:"pushers",children:S.jsx(_i,{reference:"pushers",target:"user_id",label:!1,children:S.jsxs(Br,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"kind",sortable:!1}),S.jsx(Me,{source:"app_display_name",sortable:!1}),S.jsx(Me,{source:"app_id",sortable:!1}),S.jsx(Me,{source:"data.url",sortable:!1}),S.jsx(Me,{source:"device_display_name",sortable:!1}),S.jsx(Me,{source:"lang",sortable:!1}),S.jsx(Me,{source:"profile_tag",sortable:!1}),S.jsx(Me,{source:"pushkey",sortable:!1})]})})})]})})},l8e={name:"users",icon:Y2,list:t8e,edit:s8e,create:a8e};var uR={},u8e=We;Object.defineProperty(uR,"__esModule",{value:!0});var aV=uR.default=void 0,c8e=u8e(Qe()),d8e=S;aV=uR.default=(0,c8e.default)((0,d8e.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var cR={},f8e=We;Object.defineProperty(cR,"__esModule",{value:!0});var AC=cR.default=void 0,p8e=f8e(Qe()),v8e=S;AC=cR.default=(0,p8e.default)((0,v8e.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"}),"Https");var dR={},m8e=We;Object.defineProperty(dR,"__esModule",{value:!0});var iV=dR.default=void 0,h8e=m8e(Qe()),g8e=S;iV=dR.default=(0,h8e.default)((0,g8e.jsx)("path",{d:"M21 21.78 4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H9.66L20 18.34V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.56 0-4.64 1.93-4.94 4.4L8.9 7.24z"}),"NoEncryption");var fR={},y8e=We;Object.defineProperty(fR,"__esModule",{value:!0});var pR=fR.default=void 0,b8e=y8e(Qe()),_8e=S;pR=fR.default=(0,b8e.default)((0,_8e.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview");var vR={},x8e=We;Object.defineProperty(vR,"__esModule",{value:!0});var sV=vR.default=void 0,w8e=x8e(Qe()),S8e=S;sV=vR.default=(0,w8e.default)((0,S8e.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event");var mR={},O8e=We;Object.defineProperty(mR,"__esModule",{value:!0});var pu=mR.default=void 0,C8e=O8e(Qe()),E8e=S;pu=mR.default=(0,C8e.default)((0,E8e.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"}),"FolderShared");const P8e=()=>S.jsx(Ys,{rowsPerPageOptions:[100,500,1e3,2e3]}),$8e=e=>{const t=je();return S.jsx(du,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:S.jsx(pu,{})})},lV=e=>S.jsx(Uv,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:S.jsx(pu,{})}),R8e=e=>{const{selectedIds:t}=en(),r=qt(),n=Ya(),o=y5("rooms"),a=Yo(),{mutate:i,isLoading:s}=cd(()=>a.createMany("room_directory",{ids:t,data:{}}),{onSuccess:()=>{r("resources.room_directory.action.send_success"),o(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return S.jsx(Lt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:s,children:S.jsx(pu,{})})},T8e=e=>{const t=ht(),r=qt(),n=Ya(),[o,{isLoading:a}]=fv(),i=()=>{o("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return S.jsx(Lt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:a,children:S.jsx(pu,{})})},k8e=()=>S.jsxs(yo,{children:[S.jsx(G9,{}),S.jsx(Fd,{})]}),I8e=()=>S.jsx(Js,{pagination:S.jsx(P8e,{}),perPage:100,actions:S.jsx(k8e,{}),children:S.jsxs(f2,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:S.jsx(lV,{}),omit:["room_id","canonical_alias","topic"],children:[S.jsx(J2,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),S.jsx(Me,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),S.jsx(Me,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),S.jsx(Me,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),S.jsx(Me,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),S.jsx(wi,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),S.jsx(Va,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),S.jsx(Va,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),j8e={name:"room_directory",icon:pu,list:I8e},A8e=()=>S.jsx(Ys,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),M8e=()=>{const e=ht(),t=je();let r="";return e&&(r=e.name!==""?e.name:e.id),S.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},F8e=()=>{const t=ht().public?S.jsx($8e,{}):S.jsx(T8e,{});return S.jsxs(yo,{children:[t,S.jsx(du,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},L8e=e=>{const t=je();return S.jsx(l1,{...e,actions:S.jsx(F8e,{}),title:S.jsx(M8e,{}),children:S.jsxs(qv,{children:[S.jsxs(Mo,{label:"synapseadmin.rooms.tabs.basic",icon:S.jsx(cu,{}),children:[S.jsx(Me,{source:"room_id"}),S.jsx(Me,{source:"name"}),S.jsx(Me,{source:"topic"}),S.jsx(Me,{source:"canonical_alias"}),S.jsx(Wa,{source:"creator",reference:"users",children:S.jsx(Me,{source:"id"})})]}),S.jsxs(Mo,{label:"synapseadmin.rooms.tabs.detail",icon:S.jsx(pR,{}),path:"detail",children:[S.jsx(Me,{source:"joined_members"}),S.jsx(Me,{source:"joined_local_members"}),S.jsx(Me,{source:"joined_local_devices"}),S.jsx(Me,{source:"state_events"}),S.jsx(Me,{source:"version"}),S.jsx(Me,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),S.jsx(Mo,{label:"synapseadmin.rooms.tabs.members",icon:S.jsx(Y2,{}),path:"members",children:S.jsx(_i,{reference:"room_members",target:"room_id",label:!1,children:S.jsxs(Br,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1,label:"resources.users.fields.id"}),S.jsx(Wa,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:S.jsx(Me,{source:"displayname",sortable:!1})})]})})}),S.jsxs(Mo,{label:"synapseadmin.rooms.tabs.permission",icon:S.jsx(x2,{}),path:"permission",children:[S.jsx(Va,{source:"federatable"}),S.jsx(Va,{source:"public"}),S.jsx(Wx,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),S.jsx(Wx,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),S.jsx(Wx,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),S.jsx(Mo,{label:t("resources.room_state.name",{smart_count:2}),icon:S.jsx(sV,{}),path:"state",children:S.jsx(_i,{reference:"room_state",target:"room_id",label:!1,children:S.jsxs(Br,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"type",sortable:!1}),S.jsx(cn,{source:"origin_server_ts",showTime:!0,options:dn,sortable:!1}),S.jsx(Me,{source:"content",sortable:!1}),S.jsx(Wa,{source:"sender",reference:"users",sortable:!1,children:S.jsx(Me,{source:"id"})})]})})}),S.jsxs(Mo,{label:"resources.forward_extremities.name",icon:S.jsx(aV,{}),path:"forward_extremities",children:[S.jsx(On,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),S.jsx(_i,{reference:"forward_extremities",target:"room_id",label:!1,children:S.jsxs(Br,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1}),S.jsx(cn,{source:"received_ts",showTime:!0,options:dn,sortable:!1}),S.jsx(wi,{source:"depth",sortable:!1}),S.jsx(Me,{source:"state_group",sortable:!1})]})})]})]})})},N8e=()=>S.jsxs(S.Fragment,{children:[S.jsx(R8e,{}),S.jsx(lV,{}),S.jsx(Uv,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),D8e=[S.jsx(s1,{source:"search_term",alwaysOn:!0})],B8e=()=>S.jsxs(yo,{children:[S.jsx(G9,{}),S.jsx(Fd,{})]}),z8e=e=>{const t=ta();return S.jsx(Js,{...e,pagination:S.jsx(A8e,{}),sort:{field:"name",order:"ASC"},filters:D8e,actions:S.jsx(B8e,{}),children:S.jsxs(f2,{rowClick:"show",bulkActionButtons:S.jsx(N8e,{}),omit:["joined_local_members","state_events","version","federatable"],children:[S.jsx(Va,{source:"is_encrypted",sortBy:"encryption",TrueIcon:AC,FalseIcon:iV,label:S.jsx(AC,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),S.jsx(j8,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),S.jsx(Me,{source:"joined_members"}),S.jsx(Me,{source:"joined_local_members"}),S.jsx(Me,{source:"state_events"}),S.jsx(Me,{source:"version"}),S.jsx(Va,{source:"federatable"}),S.jsx(Va,{source:"public"})]})})},U8e={name:"rooms",icon:cu,list:z8e,show:L8e};var hR={},V8e=We;Object.defineProperty(hR,"__esModule",{value:!0});var uV=hR.default=void 0,W8e=V8e(Qe()),q8e=S;uV=hR.default=(0,W8e.default)((0,q8e.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const H8e=()=>{const{isLoading:e,total:t}=en();return S.jsxs(yo,{children:[S.jsx(K9e,{}),S.jsx(Fd,{disabled:e||t===0})]})},G8e=()=>S.jsx(Ys,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),K8e=[S.jsx(s1,{source:"search_term",alwaysOn:!0})],Q8e=e=>S.jsx(Js,{...e,actions:S.jsx(H8e,{}),filters:K8e,pagination:S.jsx(G8e,{}),sort:{field:"media_length",order:"DESC"},children:S.jsxs(Br,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[S.jsx(Me,{source:"user_id",label:"resources.users.fields.id"}),S.jsx(Me,{source:"displayname",label:"resources.users.fields.displayname"}),S.jsx(wi,{source:"media_count"}),S.jsx(wi,{source:"media_length"})]})}),X8e={name:"user_media_statistics",icon:uV,list:Q8e};var gR={},Y8e=We;Object.defineProperty(gR,"__esModule",{value:!0});var cV=gR.default=void 0,J8e=Y8e(Qe()),Z8e=S;cV=gR.default=(0,J8e.default)((0,Z8e.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");const eUe=()=>S.jsx(Ys,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),tUe=e=>{const t=je();return S.jsx(l1,{...e,actions:S.jsx(rUe,{}),children:S.jsxs(qv,{children:[S.jsxs(Mo,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:S.jsx(cu,{}),children:[S.jsx(cn,{source:"received_ts",showTime:!0,options:dn,sortable:!0}),S.jsx(Wa,{source:"user_id",reference:"users",children:S.jsx(Me,{source:"id"})}),S.jsx(wi,{source:"score"}),S.jsx(Me,{source:"reason"}),S.jsx(Me,{source:"name"}),S.jsx(Me,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),S.jsx(Wa,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:S.jsx(Me,{source:"id"})})]}),S.jsxs(Mo,{label:"synapseadmin.reports.tabs.detail",icon:S.jsx(pR,{}),path:"detail",children:[S.jsx(cn,{source:"event_json.origin_server_ts",showTime:!0,options:dn,sortable:!0}),S.jsx(Wa,{source:"sender",reference:"users",children:S.jsx(Me,{source:"id"})}),S.jsx(Me,{source:"sender",label:"Sender (raw user ID)"}),S.jsx(Me,{source:"event_id"}),S.jsx(Me,{source:"event_json.origin"}),S.jsx(Me,{source:"event_json.type"}),S.jsx(Me,{source:"event_json.content.msgtype"}),S.jsx(Me,{source:"event_json.content.body"}),S.jsx(Me,{source:"event_json.content.info.mimetype"}),S.jsx(J9e,{source:"event_json.content.url"}),S.jsx(Me,{source:"event_json.content.format"}),S.jsx(Me,{source:"event_json.content.formatted_body"}),S.jsx(Me,{source:"event_json.content.algorithm"}),S.jsx(Me,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},rUe=()=>{const e=ht();return S.jsx(yo,{children:S.jsx(du,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},nUe=e=>S.jsx(Js,{...e,pagination:S.jsx(eUe,{}),sort:{field:"received_ts",order:"DESC"},children:S.jsxs(Br,{rowClick:"show",bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1}),S.jsx(cn,{source:"received_ts",showTime:!0,options:dn,sortable:!0}),S.jsx(Me,{sortable:!1,source:"user_id"}),S.jsx(Me,{sortable:!1,source:"name"}),S.jsx(Me,{sortable:!1,source:"score"})]})}),oUe={name:"reports",icon:cV,list:nUe,show:tUe};var yR={},aUe=We;Object.defineProperty(yR,"__esModule",{value:!0});var dV=yR.default=void 0,iUe=aUe(Qe()),sUe=S;dV=yR.default=(0,iUe.default)((0,sUe.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var bR={},lUe=We;Object.defineProperty(bR,"__esModule",{value:!0});var fV=bR.default=void 0,uUe=lUe(Qe()),cUe=S;fV=bR.default=(0,uUe.default)((0,cUe.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue");const pV=()=>S.jsx(Ys,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),dUe=e=>({backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}),fUe=[S.jsx(s1,{source:"destination",alwaysOn:!0})],vV=()=>{const e=ht(),t=Ya(),r=qt(),[n,{isLoading:o}]=Od();if(!e||!e.failure_ts)return null;const a=i=>{i.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return S.jsx(Lt,{label:"resources.destinations.action.reconnect",onClick:a,disabled:o,children:S.jsx(dV,{})})},pUe=()=>S.jsx(yo,{children:S.jsx(vV,{})}),vUe=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.destinations.name",1)," ",e.destination]})},mUe=e=>S.jsx(Js,{...e,filters:fUe,pagination:S.jsx(pV,{}),sort:{field:"destination",order:"ASC"},children:S.jsxs(Br,{rowSx:dUe,rowClick:t=>`${t}/show/rooms`,bulkActionButtons:!1,children:[S.jsx(Me,{source:"destination"}),S.jsx(cn,{source:"failure_ts",showTime:!0,options:dn}),S.jsx(cn,{source:"retry_last_ts",showTime:!0,options:dn}),S.jsx(Me,{source:"retry_interval"}),S.jsx(Me,{source:"last_successful_stream_ordering"}),S.jsx(vV,{})]})}),hUe=e=>{const t=je();return S.jsx(l1,{actions:S.jsx(pUe,{}),title:S.jsx(vUe,{}),...e,children:S.jsxs(qv,{children:[S.jsxs(Mo,{label:"status",icon:S.jsx(cu,{}),children:[S.jsx(Me,{source:"destination"}),S.jsx(cn,{source:"failure_ts",showTime:!0,options:dn}),S.jsx(cn,{source:"retry_last_ts",showTime:!0,options:dn}),S.jsx(Me,{source:"retry_interval"}),S.jsx(Me,{source:"last_successful_stream_ordering"})]}),S.jsx(Mo,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(pu,{}),path:"rooms",children:S.jsx(_i,{reference:"destination_rooms",target:"destination",label:!1,pagination:S.jsx(pV,{}),perPage:50,children:S.jsxs(Br,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[S.jsx(Me,{source:"room_id",label:"resources.rooms.fields.room_id"}),S.jsx(Me,{source:"stream_ordering",sortable:!1}),S.jsx(Wa,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Me,{source:"name",sortable:!1})})]})})})]})})},gUe={name:"destinations",icon:fV,list:mUe,show:hUe};var _R={},yUe=We;Object.defineProperty(_R,"__esModule",{value:!0});var mV=_R.default=void 0,bUe=yUe(Qe()),_Ue=S;mV=_R.default=(0,bUe.default)((0,_Ue.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber");const xUe=[CP(/^[A-Za-z0-9._~-]{0,64}$/)],hV=[hB()],wUe=[hB(),oge(64)],SUe=[S.jsx(Fs,{source:"valid",alwaysOn:!0})],OUe=e=>S.jsx(Js,{...e,filters:SUe,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:S.jsxs(Br,{rowClick:"edit",children:[S.jsx(Me,{source:"token",sortable:!1}),S.jsx(wi,{source:"uses_allowed",sortable:!1}),S.jsx(wi,{source:"pending",sortable:!1}),S.jsx(wi,{source:"completed",sortable:!1}),S.jsx(cn,{source:"expiry_time",showTime:!0,options:dn,sortable:!1})]})}),CUe=e=>S.jsx(O2,{...e,redirect:"list",children:S.jsxs(Dd,{toolbar:S.jsx(Nd,{children:S.jsx(Vv,{alwaysEnable:!0})}),children:[S.jsx(Cr,{source:"token",autoComplete:"off",validate:xUe,resettable:!0}),S.jsx(Ll,{source:"length",validate:wUe,helperText:"resources.registration_tokens.helper.length",step:1}),S.jsx(Ll,{source:"uses_allowed",validate:hV,step:1}),S.jsx(i1,{source:"expiry_time",parse:lR})]})}),EUe=e=>S.jsx(C2,{...e,children:S.jsxs(Dd,{children:[S.jsx(Cr,{source:"token",disabled:!0}),S.jsx(Ll,{source:"pending",disabled:!0}),S.jsx(Ll,{source:"completed",disabled:!0}),S.jsx(Ll,{source:"uses_allowed",validate:hV,step:1}),S.jsx(i1,{source:"expiry_time",parse:lR,format:N9e})]})}),PUe={name:"registration_tokens",icon:mV,list:OUe,edit:EUe,create:CUe},gV=d.createContext({}),$Ue=()=>d.useContext(gV),RUe=J(On)(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1rem)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{width:"30rem",marginTop:"6rem",marginBottom:"6rem"},"& .avatar":{margin:"1rem",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:e.palette.grey[500]},"& .hint":{marginTop:"1em",marginBottom:"1em",display:"flex",justifyContent:"center",color:e.palette.grey[600]},"& .form":{padding:"0 1rem 1rem 1rem"},"& .select":{marginBottom:"2rem"},"& .actions":{padding:"0 1rem 1rem 1rem"},"& .serverVersion":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginLeft:"0.5rem"},"& .matrixVersions":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.8rem",marginBottom:"1rem",marginLeft:"0.5rem"}})),TUe=()=>{const e=iB(),t=qt(),{restrictBaseUrl:r}=$Ue(),n=typeof r=="string",o=Array.isArray(r),a=!(n||o),[i,s]=d.useState(!1),[c,l]=d.useState(!0),[f,v]=sP(),m=lP(),h=je(),x=n?r:localStorage.getItem("base_url"),[w,O]=d.useState(""),b=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(b){const E=b[1];console.log("SSO token is",E),window.history.replaceState({},"",window.location.href.replace(b[0],"#").split("#")[0]);const T=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),T){const R={base_url:T,username:null,password:null,loginToken:E};console.log("Base URL is:",T),console.log("SSO Token is:",E),console.log("Let's try token login..."),e(R).catch(I=>{alert(typeof I=="string"?I:typeof I>"u"||!I.message?"ra.auth.sign_in_error":I.message),console.error(I)})}}const g=E=>E.match(/^(http|https):\/\//)?E.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:h("synapseadmin.auth.url_error"):h("synapseadmin.auth.protocol_error"),_=E=>{s(!0),e(E).catch(T=>{s(!1),t(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.message,{type:"warning"})})},$=()=>{localStorage.setItem("sso_base_url",w);const E=`${w}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=E},P=({formData:E})=>{const T=Jo(),[R,I]=d.useState(""),[A,F]=d.useState(""),L=()=>{var z;if(E.base_url||n)return;const D=(z=D9e(E.username))==null?void 0:z.domain;D&&z9e(D).then(H=>{(a||o&&r.includes(H))&&T.setValue("base_url",H)})};return d.useEffect(()=>{E.base_url===""&&o&&T.setValue("base_url",r[0]),B9e(E.base_url)&&(U9e(E.base_url).then(D=>I(`${h("synapseadmin.auth.server_version")} ${D}`)).catch(()=>I("")),V9e(E.base_url).then(D=>F(`${h("synapseadmin.auth.supports_specs")} ${D.versions.join(", ")}`)).catch(()=>F("")),W9e(E.base_url).then(D=>{const z=D.find(G=>G.type==="m.login.password")!==void 0,H=D.find(G=>G.type==="m.login.sso")!==void 0;l(z),O(H?E.base_url:"")}).catch(()=>O("")))},[E.base_url,T]),S.jsxs(S.Fragment,{children:[S.jsx(On,{children:S.jsx(Cr,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!c,onBlur:L,resettable:!0,fullWidth:!0,validate:lo()})}),S.jsx(On,{children:S.jsx(S2,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!c,resettable:!0,fullWidth:!0,validate:lo()})}),S.jsx(On,{children:S.jsx(Cr,{source:"base_url",label:"synapseadmin.auth.base_url",select:o,autoComplete:"url",disabled:i,readOnly:n,resettable:a,fullWidth:!0,validate:[lo(),g],children:o&&r.map(D=>S.jsx(io,{value:D,children:D},D))})}),S.jsx(it,{className:"serverVersion",children:R}),S.jsx(it,{className:"matrixVersions",children:A})]})};return S.jsxs(n0,{defaultValues:{base_url:x},onSubmit:_,mode:"onTouched",children:[S.jsx(RUe,{children:S.jsxs(uu,{className:"card",children:[S.jsx(On,{className:"avatar",children:i?S.jsx(Id,{size:25,thickness:2}):S.jsx(Hp,{className:"icon",children:S.jsx(Nv,{})})}),S.jsx(On,{className:"hint",children:h("synapseadmin.auth.welcome")}),S.jsxs(On,{className:"form",children:[S.jsx(m$,{value:f,onChange:E=>v(E.target.value),fullWidth:!0,disabled:i,className:"select",children:m.map(E=>S.jsx(io,{value:E.locale,children:E.name},E.locale))}),S.jsx(AS,{children:E=>S.jsx(P,{...E})}),S.jsxs(Qz,{className:"actions",children:[S.jsx(Pr,{variant:"contained",type:"submit",color:"primary",disabled:i||!c,fullWidth:!0,children:h("ra.auth.sign_in")}),S.jsx(Pr,{variant:"contained",color:"secondary",onClick:$,disabled:i||w==="",fullWidth:!0,children:h("synapseadmin.auth.sso_sign_in")})]})]})]})}),S.jsx(H$,{})]})};var yV={exports:{}};/* @license +Papa Parse +v5.4.1 +https://github.com/mholt/PapaParse +License: MIT +*/(function(e,t){(function(r,n){e.exports=n()})(ro,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},o=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,i={},s=0,c={parse:function(R,I){var A=(I=I||{}).dynamicTyping||!1;if(T(A)&&(I.dynamicTypingFunction=A,A={}),I.dynamicTyping=A,I.transform=!!T(I.transform)&&I.transform,I.worker&&c.WORKERS_SUPPORTED){var F=function(){if(!c.WORKERS_SUPPORTED)return!1;var D=(H=n.URL||n.webkitURL||null,G=r.toString(),c.BLOB_URL||(c.BLOB_URL=H.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",G,")();"],{type:"text/javascript"})))),z=new n.Worker(D),H,G;return z.onmessage=g,z.id=s++,i[z.id]=z}();return F.userStep=I.step,F.userChunk=I.chunk,F.userComplete=I.complete,F.userError=I.error,I.step=T(I.step),I.chunk=T(I.chunk),I.complete=T(I.complete),I.error=T(I.error),delete I.worker,void F.postMessage({input:R,config:I,workerId:F.id})}var L=null;return c.NODE_STREAM_INPUT,typeof R=="string"?(R=function(D){return D.charCodeAt(0)===65279?D.slice(1):D}(R),L=I.download?new v(I):new h(I)):R.readable===!0&&T(R.read)&&T(R.on)?L=new x(I):(n.File&&R instanceof File||R instanceof Object)&&(L=new m(I)),L.stream(R)},unparse:function(R,I){var A=!1,F=!0,L=",",D=`\r +`,z='"',H=z+z,G=!1,q=null,U=!1;(function(){if(typeof I=="object"){if(typeof I.delimiter!="string"||c.BAD_DELIMITERS.filter(function(ee){return I.delimiter.indexOf(ee)!==-1}).length||(L=I.delimiter),(typeof I.quotes=="boolean"||typeof I.quotes=="function"||Array.isArray(I.quotes))&&(A=I.quotes),typeof I.skipEmptyLines!="boolean"&&typeof I.skipEmptyLines!="string"||(G=I.skipEmptyLines),typeof I.newline=="string"&&(D=I.newline),typeof I.quoteChar=="string"&&(z=I.quoteChar),typeof I.header=="boolean"&&(F=I.header),Array.isArray(I.columns)){if(I.columns.length===0)throw new Error("Option columns is empty");q=I.columns}I.escapeChar!==void 0&&(H=I.escapeChar+z),(typeof I.escapeFormulae=="boolean"||I.escapeFormulae instanceof RegExp)&&(U=I.escapeFormulae instanceof RegExp?I.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var W=new RegExp(O(z),"g");if(typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(R)){if(!R.length||Array.isArray(R[0]))return te(null,R,G);if(typeof R[0]=="object")return te(q||Object.keys(R[0]),R,G)}else if(typeof R=="object")return typeof R.data=="string"&&(R.data=JSON.parse(R.data)),Array.isArray(R.data)&&(R.fields||(R.fields=R.meta&&R.meta.fields||q),R.fields||(R.fields=Array.isArray(R.data[0])?R.fields:typeof R.data[0]=="object"?Object.keys(R.data[0]):[]),Array.isArray(R.data[0])||typeof R.data[0]=="object"||(R.data=[R.data])),te(R.fields||[],R.data||[],G);throw new Error("Unable to serialize unrecognized input");function te(ee,Oe,de){var oe="";typeof ee=="string"&&(ee=JSON.parse(ee)),typeof Oe=="string"&&(Oe=JSON.parse(Oe));var me=Array.isArray(ee)&&0=this._config.preview;if(a)n.postMessage({results:D,workerId:c.WORKER_ID,finished:H});else if(T(this._config.chunk)&&!A){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);D=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!H||!T(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),H||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(I){T(this._config.error)?this._config.error(I):a&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:I,finished:!1})}}function v(R){var I;(R=R||{}).chunkSize||(R.chunkSize=c.RemoteChunkSize),f.call(this,R),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(A){this._input=A,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(I=new XMLHttpRequest,this._config.withCredentials&&(I.withCredentials=this._config.withCredentials),o||(I.onload=E(this._chunkLoaded,this),I.onerror=E(this._chunkError,this)),I.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var A=this._config.downloadRequestHeaders;for(var F in A)I.setRequestHeader(F,A[F])}if(this._config.chunkSize){var L=this._start+this._config.chunkSize-1;I.setRequestHeader("Range","bytes="+this._start+"-"+L)}try{I.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}o&&I.status===0&&this._chunkError()}},this._chunkLoaded=function(){I.readyState===4&&(I.status<200||400<=I.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:I.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(A){var F=A.getResponseHeader("Content-Range");return F===null?-1:parseInt(F.substring(F.lastIndexOf("/")+1))}(I),this.parseChunk(I.responseText)))},this._chunkError=function(A){var F=I.statusText||A;this._sendError(new Error(F))}}function m(R){var I,A;(R=R||{}).chunkSize||(R.chunkSize=c.LocalChunkSize),f.call(this,R);var F=typeof FileReader<"u";this.stream=function(L){this._input=L,A=L.slice||L.webkitSlice||L.mozSlice,F?((I=new FileReader).onload=E(this._chunkLoaded,this),I.onerror=E(this._chunkError,this)):I=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(L.target.result)},this._chunkError=function(){this._sendError(I.error)}}function h(R){var I;f.call(this,R=R||{}),this.stream=function(A){return I=A,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var A,F=this._config.chunkSize;return F?(A=I.substring(0,F),I=I.substring(F)):(A=I,I=""),this._finished=!I,this.parseChunk(A)}}}function x(R){f.call(this,R=R||{});var I=[],A=!0,F=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(L){this._input=L,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){F&&I.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),I.length?this.parseChunk(I.shift()):A=!0},this._streamData=E(function(L){try{I.push(typeof L=="string"?L:L.toString(this._config.encoding)),A&&(A=!1,this._checkIsFinished(),this.parseChunk(I.shift()))}catch(D){this._streamError(D)}},this),this._streamError=E(function(L){this._streamCleanUp(),this._sendError(L)},this),this._streamEnd=E(function(){this._streamCleanUp(),F=!0,this._streamData("")},this),this._streamCleanUp=E(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function w(R){var I,A,F,L=Math.pow(2,53),D=-L,z=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,H=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,G=this,q=0,U=0,W=!1,te=!1,ne=[],ee={data:[],errors:[],meta:{}};if(T(R.step)){var Oe=R.step;R.step=function(fe){if(ee=fe,me())oe();else{if(oe(),ee.data.length===0)return;q+=fe.data.length,R.preview&&q>R.preview?A.abort():(ee.data=ee.data[0],Oe(ee,G))}}}function de(fe){return R.skipEmptyLines==="greedy"?fe.join("").trim()==="":fe.length===1&&fe[0].length===0}function oe(){return ee&&F&&(ye("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),F=!1),R.skipEmptyLines&&(ee.data=ee.data.filter(function(fe){return!de(fe)})),me()&&function(){if(!ee)return;function fe(ce,pe){T(R.transformHeader)&&(ce=R.transformHeader(ce,pe)),ne.push(ce)}if(Array.isArray(ee.data[0])){for(var ge=0;me()&&ge=ne.length?"__parsed_extra":ne[ae]),R.transform&&(Ne=R.transform(Ne,Ce)),Ne=Re(Ce,Ne),Ce==="__parsed_extra"?(Se[Ce]=Se[Ce]||[],Se[Ce].push(Ne)):Se[Ce]=Ne}return R.header&&(ae>ne.length?ye("FieldMismatch","TooManyFields","Too many fields: expected "+ne.length+" fields but parsed "+ae,U+pe):ae=V.length/2?`\r +`:"\r"}(fe,pe)),F=!1,R.delimiter)T(R.delimiter)&&(R.delimiter=R.delimiter(fe),ee.meta.delimiter=R.delimiter);else{var ae=function(Ce,Ne,Xe,V,X){var Y,ie,se,ue;X=X||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Ee=0;Ee=z)return Ct(!0)}else for(Ie=q,q++;;){if((Ie=W.indexOf(I,Ie+1))===-1)return ne||ye.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Re.length,index:q}),ft();if(Ie===ee-1)return ft(W.substring(q,Ie).replace(Ee,I));if(I!==G||W[Ie+1]!==G){if(I===G||Ie===0||W[Ie-1]!==G){se!==-1&&se=z)return Ct(!0);break}ye.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Re.length,index:q}),Ie++}}else Ie++}return ft();function Le(et){Re.push(et),ge=q}function De(et){var ke=0;if(et!==-1){var Be=W.substring(Ie+1,et);Be&&Be.trim()===""&&(ke=Be.length)}return ke}function ft(et){return ne||(et===void 0&&(et=W.substring(q)),fe.push(et),q=ee,Le(fe),me&&Ue()),Ct()}function Et(et){q=et,Le(fe),fe=[],ue=W.indexOf(F,q)}function Ct(et){return{data:Re,errors:ye,meta:{delimiter:A,linebreak:F,aborted:U,truncated:!!et,cursor:ge+(te||0)}}}function Ue(){D(Ct()),Re=[],ye=[]}},this.abort=function(){U=!0},this.getCharIndex=function(){return q}}function g(R){var I=R.data,A=i[I.workerId],F=!1;if(I.error)A.userError(I.error,I.file);else if(I.results&&I.results.data){var L={abort:function(){F=!0,_(I.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(T(A.userStep)){for(var D=0;D{const[e,t]=d.useState([]),[r,n]=d.useState(null),[o,a]=d.useState(null),[i,s]=d.useState(!0),[c,l]=d.useState(null),[f,v]=d.useState(null),[m,h]=d.useState(""),[x,w]=d.useState("stop"),[O,b]=d.useState(!0),[g,_]=d.useState("ignore"),$=je(),P=qt(),E=Yo(),T=async de=>{if(c!==null)return;t([]),n(null),a(null),v(null);const oe=de.target.files?de.target.files[0]:null;if(oe){if(oe.size>1e8){const me=$("import_users.errors.unreasonably_big",{size:(oe.size/1048576).toFixed(2)});P(me),n(me);return}try{fN.parse(oe,{header:!0,skipEmptyLines:!0,complete:me=>{me.errors&&n(me.errors.map(Re=>Re.toString())),R(me,{setValues:t,setStats:a,setError:n})}})}catch{return n("Unknown error"),null}}},R=({data:de,meta:oe,errors:me},{setValues:Re,setStats:ye,setError:fe})=>{const ge=kUe.filter(ae=>{var Se;return(Se=oe.fields)==null?void 0:Se.find(Ce=>ae===Ce)});if(ge.length>0)return fe($("import_users.error.required_field",{field:ge[0]})),!1;const ce={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:de.length};var pe=me.map(ae=>ae.message);return de.forEach((ae,Se)=>{var Ce,Ne,Xe;ae.user_type===void 0||ae.user_type===""?ce.user_types.default++:ce.user_types[ae.user_type]+=1,(Ce=oe.fields)!=null&&Ce.includes("name")&&delete ae.name,(Ne=oe.fields)!=null&&Ne.includes("user_type")&&delete ae.user_type,(Xe=oe.fields)!=null&&Xe.includes("is_admin")&&delete ae.is_admin,["is_guest","admin","deactivated"].forEach(V=>{ae[V]==="true"?(ce[V]++,ae[V]=!0):(ae[V]!=="false"&&ae[V]!==""&&pe.push($("import_users.error.invalid_value",{field:V,row:Se})),ae[V]=!1)}),ae.password!==void 0&&ae.password!==""&&ce.password++,ae.avatar_url!==void 0&&ae.avatar_url!==""&&ce.avatar_url++,ae.id!==void 0&&ae.id!==""&&ce.id++}),pe.length>0&&fe(pe),ye(ce),Re(de),!0},I=async()=>{if(c!==null){P("import_users.errors.already_in_progress");return}const de=await A(E,e,x,O,g,i,l,n);v(de),h(fN.unparse(de.skippedRecords)),console.log("Skipped records:"),console.log(m)},A=async(de,oe,me,Re,ye,fe,ge,ce)=>{const pe=[],ae=[],Se=[],Ce={total:0,id:0,is_guest:0,admin:0,password:0};let Ne=0;const Xe=oe.length;try{ge({done:Ne,limit:Xe});for(const V of oe){const X={...V};(ye==="ignore"||X.id===void 0)&&(X.id=dN()),(Re===!1||V.password===void 0)&&(X.password=H9e()),dw&&console.log("will check for existence of record "+JSON.stringify(X));let Y=0;const ie=se=>de.getOne("users",{id:se.id}).then(async()=>{if(dw&&console.log("already existed"),ye==="update"||me==="skip")pe.push(se);else{if(me==="stop")throw new Error($("import_users.error.id_exits",{id:se.id}));{const ue=Object.assign({},se,{id:dN()});Y++,Y>512?(console.warn("retry loop got stuck? pathological situation?"),pe.push(se)):await ie(ue)}}},async()=>{dw&&console.log("OK to create record "+se.id+" ("+se.displayname+")."),fe||await de.create("users",{data:se}),Se.push(se)});await ie(X),Ne++,ge({done:Ne,limit:oe.length})}ge(null)}catch(V){ce($("import_users.error.at_entry",{entry:Ne+1,message:V instanceof Error?V.message:String(V)})),ge(null)}return{skippedRecords:pe,erroredRecords:ae,succeededRecords:Se,totalRecordCount:Xe,changeStats:Ce,wasDryRun:fe}},F=()=>{const de=document.createElement("a");console.log(m);const oe=new Blob([m],{type:"text/comma-separated-values"});de.href=URL.createObjectURL(oe),de.download="skippedRecords.csv",document.body.appendChild(de),de.click()},L=async de=>{if(c!==null)return;const oe=de.target.value;w(oe)},D=de=>{c===null&&b(de.target.checked)},z=async de=>{if(c!==null)return;const oe=de.target.value;_(oe)},H=de=>{c===null&&s(de.target.checked)},G=o&&!f&&[S.jsxs(Nu,{children:[S.jsx(fl,{title:$("import_users.cards.importstats.header")}),S.jsxs(ko,{children:[S.jsx("div",{children:$("import_users.cards.importstats.users_total",o.total)}),S.jsx("div",{children:$("import_users.cards.importstats.guest_count",o.is_guest)}),S.jsx("div",{children:$("import_users.cards.importstats.admin_count",o.admin)})]})]}),S.jsxs(Nu,{children:[S.jsx(fl,{title:$("import_users.cards.ids.header")}),S.jsxs(ko,{children:[S.jsx("div",{children:o.id===o.total?$("import_users.cards.ids.all_ids_present"):$("import_users.cards.ids.count_ids_present",o.id)}),o.id>0?S.jsx("div",{children:S.jsxs(xF,{onChange:z,value:g,disabled:c!==null,children:[S.jsx(Rh,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),S.jsx(Rh,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),S.jsxs(Nu,{children:[S.jsx(fl,{title:$("import_users.cards.passwords.header")}),S.jsxs(ko,{children:[S.jsx("div",{children:o.password===o.total?$("import_users.cards.passwords.all_passwords_present"):$("import_users.cards.passwords.count_passwords_present",o.password)}),o.password>0?S.jsx("div",{children:S.jsx(eO,{control:S.jsx(ed,{checked:O,disabled:c!==null,onChange:D}),label:$("import_users.cards.passwords.use_passwords")})}):""]})]})],q=o&&!f&&S.jsxs(Nu,{children:[S.jsx(fl,{title:$("import_users.cards.conflicts.header")}),S.jsx(ko,{children:S.jsx("div",{children:S.jsxs(xF,{onChange:L,value:x,disabled:c!==null,children:[S.jsx(Rh,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),S.jsx(Rh,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),U=r&&S.jsxs(Nu,{children:[S.jsx(fl,{title:$("import_users.error.error")}),S.jsx(ko,{children:(Array.isArray(r)?r:[r]).map(de=>S.jsx("div",{children:de}))})]}),W=!f&&S.jsxs(Nu,{children:[S.jsx(fl,{title:$("import_users.cards.upload.header")}),S.jsxs(ko,{children:[$("import_users.cards.upload.explanation"),S.jsx("a",{href:"./data/example.csv",children:"example.csv"}),S.jsx("br",{}),S.jsx("br",{}),S.jsx("input",{type:"file",onChange:T,disabled:c!==null})]})]}),te=f&&S.jsxs(ko,{children:[S.jsx(fl,{title:$("import_users.cards.results.header")}),S.jsxs("div",{children:[$("import_users.cards.results.total",f.totalRecordCount),S.jsx("br",{}),$("import_users.cards.results.successful",f.succeededRecords.length),S.jsx("br",{}),f.skippedRecords.length?[$("import_users.cards.results.skipped",f.skippedRecords.length),S.jsx("div",{children:S.jsx("button",{onClick:F,children:$("import_users.cards.results.download_skipped")})}),S.jsx("br",{})]:"",f.erroredRecords.length?[$("import_users.cards.results.skipped",f.erroredRecords.length),S.jsx("br",{})]:"",S.jsx("br",{}),f.wasDryRun&&[$("import_users.cards.results.simulated_only"),S.jsx("br",{})]]})]}),ne=!e||e.length===0||f?void 0:S.jsxs(Qz,{children:[S.jsx(eO,{control:S.jsx(ed,{checked:i,onChange:H,disabled:c!==null}),label:$("import_users.cards.startImport.simulate_only")}),S.jsx(Pr,{size:"large",onClick:I,disabled:c!==null,children:$("import_users.cards.startImport.run_import")}),c!==null?S.jsxs("div",{children:[c.done," of ",c.limit," done"]}):null]}),ee=[];W&&ee.push(W),U&&ee.push(U),q&&ee.push(q),G&&ee.push(...G),ne&&ee.push(ne),te&&ee.push(te);const Oe=S.jsx(uu,{children:ee});return[S.jsx(Xs,{defaultTitle:$("import_users.title")}),Oe]},jUe=IUe,bV={ra:{action:{add_filter:"Filter hinzufügen",add:"Neu",back:"Zurück",bulk_actions:"Ein Element ausgewählt |||| %{smart_count} Elemente ausgewählt",cancel:"Abbrechen",clear_array_input:"Liste löschen",clear_input_value:"Eingabe löschen",clone:"Klonen",confirm:"Bestätigen",create:"Erstellen",create_item:"%{item} erstellen",delete:"Löschen",edit:"Bearbeiten",export:"Exportieren",list:"Liste",refresh:"Neu laden",remove_filter:"Filter entfernen",remove_all_filters:"Alle Filter entfernen",remove:"Entfernen",save:"Speichern",search:"Suchen",select_all:"Alles auswählen",select_row:"Reihe auswählen",show:"Anzeigen",sort:"Sortieren",undo:"Rückgängig machen",unselect:"Abwählen",expand:"Erweitern",close:"Schließen",open_menu:"Menü öffnen",close_menu:"Menü schließen",update:"Aktualisieren",move_up:"Nach oben",move_down:"Nach unten",open:"Öffnen",toggle_theme:"Theme wechseln",select_columns:"Spalten"},boolean:{true:"Ja",false:"Nein",null:" "},page:{create:"%{name} erstellen",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Etwas ist schiefgelaufen",list:"%{name}",loading:"Laden",not_found:"Nicht gefunden",show:"%{name} %{recordRepresentation}",empty:"Noch kein %{name}.",invite:"Neu erstellen?"},input:{file:{upload_several:"Dateien hier ablegen, oder zum Auswählen klicken.",upload_single:"Dateien hier ablegen, oder zum Auswählen klicken."},image:{upload_several:"Bilder hier ablegen, oder zum Auswählen klicken.",upload_single:"Bild hier ablegen, oder zum Auswählen klicken."},references:{all_missing:"Die Daten der Referenz können nicht gefunden werden.",many_missing:"Mindestens eine Referenz scheint nicht mehr verfügbar zu sein.",single_missing:"Die Referenz scheint nicht mehr verfügbar zu sein."},password:{toggle_visible:"Passwort verbergen",toggle_hidden:"Passwort einblenden"}},message:{about:"Über",are_you_sure:"Sind Sie sicher?",auth_error:"Bei der Validierung des Authentifizierungstokens ist ein Fehler aufgetreten.",bulk_delete_content:"Sicher, dass Sie %{name} löschen wollen? |||| Sicher, dass Sie diese %{smart_count} Elemente löschen wollen?",bulk_delete_title:"%{name} löschen |||| %{smart_count} %{name} löschen",bulk_update_content:"Sicher, dass Sie %{name} aktualisieren wollen? |||| Sicher, dass Sie %{smart_count} Elemente aktualisieren wollen?",bulk_update_title:"%{name} aktualisieren |||| %{smart_count} %{name} aktualisieren",clear_array_input:"Sicher, dass Sie die ganze Liste löschen wollen?",delete_content:"Sicher, dass Sie dieses Element löschen wollen?",delete_title:"%{name} #%{id} löschen",details:"Details",error:"Ein Fehler trat auf, Ihre Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfen Sie Ihre Eingaben.",loading:"Die Seite wird geladen, noch einen Moment.",no:"Nein",not_found:"Sie eine falsche URL aufgerufen oder eingegeben.",yes:"Ja",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass Sie diese nicht übernehmen wollen?"},navigation:{no_results:"Keine Ergebnisse gefunden.",no_more_results:"Es gibt keine Seite %{page}. Versuche eine vorherige.",page_out_of_boundaries:"Es gibt keine Seite %{page}.",page_out_from_end:"Es gibt keine Seite mehr nach dieser.",page_out_from_begin:"Es gibt keine Seite vor Seite 1.",page_range_info:"%{offsetBegin}-%{offsetEnd} von %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} von mehr als %{offsetEnd}",current_page:"Seite %{page}",page:"Gehe zu Seite %{page}",first:"Gehe zur ersten Seite",last:"Gehe zur letzten Seite",next:"Gehe zur nächsten Seite",previous:"Gehe zur vorherigen Seite",page_rows_per_page:"Reihen pro Seite:",skip_nav:"Zum Inhalt springen"},sort:{sort_by:"Nach %{field} %{order} sortieren",ASC:"Aufsteigend",DESC:"Absteigend"},auth:{auth_check_error:"Bitte anmelden um fortzufahren",user_menu:"Profil",username:"Nutzername",password:"Passwort",sign_in:"Anmelden",sign_in_error:"Anmeldung fehlgeschlagen, bitte erneut versuchen.",logout:"Abmelden"},notification:{updated:"Element aktualisiert |||| %{smart_count} Elemente aktualisiert",created:"Element erstellt",deleted:"Element gelöscht |||| %{smart_count} Elemente gelöscht",bad_item:"Fehlerhaftes Element",item_doesnt_exist:"Element existiert nicht",http_error:"Kommunikation mit Server fehlgeschlagen",data_provider_error:"DataProvider-Fehler. Mehr Details in der Konsole.",i18n_error:"Die Übersetzungen für die ausgewählte Sprache können nicht geladen werden",canceled:"Aktion abgebrochen",logged_out:"Ihre Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Sie sind nicht berechtigt, auf diese Ressource zuzugreifen."},validation:{required:"Erforderlich",minLength:"Muss mindestens %{min} Zeichen betragen",maxLength:"Darf %{max} Zeichen oder weniger betragen",minValue:"Muss mindestens %{min} betragen",maxValue:"Darf %{max} oder weniger betragen",number:"Muss eine Nummer sein",email:"Muss eine gültige E-Mail sein",oneOf:"Muss eine der folgenden Optionen sein: %{options}",regex:"Muss einem gewissen Format entsprechen (regexp): %{pattern}"},saved_queries:{label:"Gespeicherte Anfragen",query_name:"Name der Anfrage",new_label:"Speichere aktuelle Anfrage...",new_dialog_title:"Speichere aktuelle Anfrage als",remove_label:"Gespeicherte Anfrage löschen",remove_label_with_name:'Anfrage "%{name}" löschen',remove_dialog_title:"Gespeicherte Anfrage löschen?",remove_message:"Sicher, dass Sie diese Anfrage aus der Liste der gespeicherten löschen wollen?",help:"Liste filtern und diese Anfrage für später speichern"},configurable:{customize:"Anpassen",configureMode:"Diese Seite anpassen",inspector:{title:"Inspektor",content:"Bewegen Sie den Mauszeigen über die UI-Elemente, um sie zu konfigurieren",reset:"Einstellungen zurücksetzen",hideAll:"Alles verbergen",showAll:"Alles anzeigen"},Datagrid:{title:"Datagrid",unlabeled:"Unbekannte Spalte #%{column}"},SimpleForm:{title:"Formular",unlabeled:"Unbenannter Input #%{input}"},SimpleList:{title:"Liste",primaryText:"Primärtext",secondaryText:"Sekundärtext",tertiaryText:"Tertiärtext"}}}},AUe={ra:{message:{are_you_sure:"Bist du sicher?",bulk_delete_content:"Sicher, dass du %{name} löschen willst? |||| Sicher, dass du diese %{smart_count} Elemente löschen willst?",bulk_update_content:"Sicher, dass du %{name} aktualisieren willst? |||| Sicher, dass du %{smart_count} Elemente aktualisieren willst?",clear_array_input:"Sicher, dass du die ganze Liste löschen willst?",delete_content:"Sicher, dass du dieses Element löschen willst?",error:"Ein Fehler trat auf, Deine Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfe Deine Eingaben.",not_found:"Du hast eine falsche URL aufgerufen oder eingegeben.",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass du diese nicht übernehmen willst?"},notification:{logged_out:"Deine Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Du bist nicht berechtigt, auf diese Ressource zuzugreifen."},saved_queries:{remove_message:"Sicher, dass du diese Anfrage aus der Liste der gespeicherten löschen willst?"},configurable:{inspector:{content:"Bewege den Mauszeigen über die UI-Elemente, um sie zu konfigurieren"}}}};aP(bV,AUe);const MUe={...bV,synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",deactivated:"Deaktiviert",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"}}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}},FUe={...X8,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors ||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",deactivated:"Deactivated",guests:"Show guests",show_deactivated:"Show deactivated users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var LUe={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const NUe={...LUe,synapseadmin:{auth:{base_url:"URL du serveur d’accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l’authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d’accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var _V={};Object.defineProperty(_V,"__esModule",{value:!0});var DUe={ra:{action:{add:"增加",add_filter:"添加搜索条件",back:"回退",bulk_actions:"选中1项 |||| 选中%{smart_count}项",cancel:"取消",clear_array_input:"清空列表",clear_input_value:"清空输入",clone:"克隆",close:"关闭",close_menu:"关闭菜单",confirm:"确认",create:"新建",create_item:"新建 %{item}",delete:"删除",edit:"编辑",expand:"展开",export:"导出",list:"列表",move_down:"下移",move_up:"上移",open:"打开",open_menu:"打开菜单",refresh:"刷新",remove:"删除",remove_all_filters:"移除所有检索",remove_filter:"移除检索",save:"保存",search:"检索",select_all:"选择所有",select_columns:"列",select_row:"选择此行",show:"查看",sort:"排序",toggle_theme:"切换主题",undo:"撤销",unselect:"反选",update:"更新",update_application:"重载应用"},auth:{auth_check_error:"请登录以继续",user_menu:"设置",username:"用户名",password:"密码",sign_in:"登录",sign_in_error:"验证失败, 请重试",logout:"登出"},boolean:{true:"是",false:"否",null:" "},configurable:{customize:"自定义",configureMode:"配置此页面",inspector:{title:"Inspector",content:"悬停应用程序UI元素来配置它们",reset:"重置设置",hideAll:"隐藏所有",showAll:"显示所有"},Datagrid:{title:"数据网格",unlabeled:"未设置标签的列 #%{column}"},SimpleForm:{title:"表单",unlabeled:"未设置标签的输入框 #%{input}"},SimpleList:{title:"列表",primaryText:"主要的文本",secondaryText:"二级文本",tertiaryText:"三级文本"}},input:{file:{upload_several:"将文件集合拖拽到这里, 或点击这里选择文件集合.",upload_single:"将文件拖拽到这里, 或点击这里选择文件."},image:{upload_several:"将图片文件集合拖拽到这里, 或点击这里选择图片文件集合.",upload_single:"将图片文件拖拽到这里, 或点击这里选择图片文件."},password:{toggle_visible:"隐藏密码",toggle_hidden:"显示密码"},references:{all_missing:"未找到参考数据.",many_missing:"至少有一条参考数据不再可用.",single_missing:"关联的参考数据不再可用."}},message:{about:"关于",are_you_sure:"您确定操作?",bulk_delete_content:"您确定要删除 %{name}? |||| 您确定要删除 %{smart_count} 项?",bulk_delete_title:"删除 %{name} |||| 删除 %{smart_count}项 %{name} ",delete_content:"您确定要删除该条目?",delete_title:"删除 %{name} #%{id}",error:"客户端错误导致请求未完成.",invalid_form:"表单输入无效. 请检查错误提示",loading:"正在加载页面, 请稍候",no:"否",not_found:"您输入了错误的URL或者错误的链接.",unsaved_changes:"修改未保存. 放弃修改吗?",yes:"是",auth_error:"身份认证出错",bulk_update_content:"是否确实要更新此 %{name}? |||| 是否确实要更新这些 %{smart_count} ?",bulk_update_title:"更新 %{name} |||| 更新 %{smart_count} %{name}",clear_array_input:"您确定要清除整个列表吗?",details:"详情"},navigation:{no_results:"结果为空",no_more_results:"页码 %{page} 超出边界. 试试上一页.",page_out_of_boundaries:"页码 %{page} 超出边界",page_out_from_end:"已到最末页",page_out_from_begin:"已到最前页",page_range_info:"%{offsetBegin}-%{offsetEnd} / %{total}",page_rows_per_page:"每页行数:",next:"向后",prev:"向前",skip_nav:"跳到内容",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"页码 %{page}",page:"跳到页码 %{page}",first:"第一页",last:"最后一页",previous:"向前"},notification:{updated:"条目已更新 |||| %{smart_count} 项条目已更新",created:"条目已新建",deleted:"条目已删除 |||| %{smart_count} 项条目已删除",bad_item:"不正确的条目",item_doesnt_exist:"条目不存在",http_error:"与服务通信出错",canceled:"取消动作",data_provider_error:"dataProvider错误. 请检查console的详细信息.",i18n_error:"无法加载指定语言包",logged_out:"会话失效, 请重连.",not_authorized:"你没有权限访问此资源.",application_update_available:"新版本可用."},page:{create:"新建 %{name}",dashboard:"概览",edit:"%{name} #%{id}",empty:"无 %{name} ",error:"出现错误",invite:"要增加吗?",list:"%{name} 列表",loading:"加载中",not_found:"未发现",show:"%{name} #%{id}"},saved_queries:{label:"保存查询",query_name:"查询名称",new_label:"保存当前查询...",new_dialog_title:"保存当前查询为",remove_label:"删除保存的查询",remove_label_with_name:'删除查询 "%{name}"',remove_dialog_title:"删除保存的查询?",remove_message:"确定要从保存的查询列表中删除该项吗?",help:"过滤列表,并保存此查询"},sort:{sort_by:"按 %{field} %{order}",ASC:"升序",DESC:"降序"},validation:{required:"必填",minLength:"必须不少于 %{min} 个字符",maxLength:"必须不多于 %{max} 个字符",minValue:"必须不小于 %{min}",maxValue:"必须不大于 %{max}",number:"必须为数字",email:"必须是有效的邮箱",oneOf:"必须为: %{options}其中一项",regex:"必须符合指定的格式 (regexp): %{pattern}"}}},BUe=_V.default=DUe;const zUe={...BUe,synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}};var UUe={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:" "},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra più disponibile.",single_missing:"Il riferimento associato non sembra più disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale è occorso e la tua richiesta non è stata completata.",invalid_form:"Il modulo non è valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} è fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} è fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"È necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione è stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}};const VUe=hr(UUe),WUe={...VUe,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}},Th={de:MUe,en:FUe,fr:NUe,it:WUe,zh:zUe},qUe=VU(e=>Th[e]?d1.merge({},Th.en,Th[e]):Th.en,yue(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"zh",name:"简体中文"}]),HUe=()=>S.jsxs(W6e,{disableTelemetry:!0,requireAuth:!0,loginPage:TUe,authProvider:q6e,dataProvider:H6e,i18nProvider:qUe,children:[S.jsx(V5,{children:S.jsx(Yr,{path:"/import_users",element:S.jsx(jUe,{})})}),S.jsx(kr,{...l8e}),S.jsx(kr,{...U8e}),S.jsx(kr,{...X8e}),S.jsx(kr,{...oUe}),S.jsx(kr,{...j8e}),S.jsx(kr,{...gUe}),S.jsx(kr,{...PUe}),S.jsx(kr,{name:"connections"}),S.jsx(kr,{name:"devices"}),S.jsx(kr,{name:"room_members"}),S.jsx(kr,{name:"users_media"}),S.jsx(kr,{name:"joined_rooms"}),S.jsx(kr,{name:"pushers"}),S.jsx(kr,{name:"servernotices"}),S.jsx(kr,{name:"forward_extremities"}),S.jsx(kr,{name:"room_state"}),S.jsx(kr,{name:"destination_rooms"})]});fetch("config.json").then(e=>e.json()).then(e=>E3(document.getElementById("root")).render(S.jsx(ve.StrictMode,{children:S.jsx(gV.Provider,{value:e,children:S.jsx(HUe,{})})}))); diff --git a/index.html b/index.html index 90b6400..aaacaea 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - + @@ -113,7 +113,7 @@ } } - + @@ -129,8 +129,8 @@ Synapse-Admin by Awesome Technologies Innovationslabor GmbH - - + +