diff --git a/assets/index-DjdvzcAx.js b/assets/index-DjdvzcAx.js deleted file mode 100644 index a938975..0000000 --- a/assets/index-DjdvzcAx.js +++ /dev/null @@ -1,324 +0,0 @@ -var vA=e=>{throw TypeError(e)};var nE=(e,t,r)=>t.has(e)||vA("Cannot "+r);var ue=(e,t,r)=>(nE(e,t,"read from private field"),r?r.call(e):t.get(e)),Bt=(e,t,r)=>t.has(e)?vA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xt=(e,t,r,n)=>(nE(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),or=(e,t,r)=>(nE(e,t,"access private method"),r);var T_=(e,t,r,n)=>({set _(a){xt(e,t,a,r)},get _(){return ue(e,t,n)}});function h5(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iu(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var aE={exports:{}},Zm={},oE={exports:{}},lr={};/** - * @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 mA;function d7(){if(mA)return lr;mA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function y(K){return K===null||typeof K!="object"?null:(K=g&&K[g]||K["@@iterator"],typeof K=="function"?K:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function x(K,ee,Ce){this.props=K,this.context=ee,this.refs=E,this.updater=Ce||_}x.prototype.isReactComponent={},x.prototype.setState=function(K,ee){if(typeof K!="object"&&typeof K!="function"&&K!=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,K,ee,"setState")},x.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};function T(){}T.prototype=x.prototype;function I(K,ee,Ce){this.props=K,this.context=ee,this.refs=E,this.updater=Ce||_}var R=I.prototype=new T;R.constructor=I,w(R,x.prototype),R.isPureReactComponent=!0;var O=Array.isArray,C=Object.prototype.hasOwnProperty,P={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function k(K,ee,Ce){var se,Se={},me=null,we=null;if(ee!=null)for(se in ee.ref!==void 0&&(we=ee.ref),ee.key!==void 0&&(me=""+ee.key),ee)C.call(ee,se)&&!j.hasOwnProperty(se)&&(Se[se]=ee[se]);var Oe=arguments.length-2;if(Oe===1)Se.children=Ce;else if(1>>1,ee=H[K];if(0>>1;Ka(Se,ne))mea(we,Se)?(H[K]=we,H[me]=ne,K=me):(H[K]=Se,H[se]=ne,K=se);else if(mea(we,ne))H[K]=we,H[me]=ne,K=me;else break e}}return te}function a(H,te){var ne=H.sortIndex-te.sortIndex;return ne!==0?ne:H.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,d=s.now();e.unstable_now=function(){return s.now()-d}}var f=[],l=[],h=1,g=null,y=3,_=!1,w=!1,E=!1,x=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(H){for(var te=r(l);te!==null;){if(te.callback===null)n(l);else if(te.startTime<=H)n(l),te.sortIndex=te.expirationTime,t(f,te);else break;te=r(l)}}function O(H){if(E=!1,R(H),!w)if(r(f)!==null)w=!0,Y(C);else{var te=r(l);te!==null&&X(O,te.startTime-H)}}function C(H,te){w=!1,E&&(E=!1,T(k),k=-1),_=!0;var ne=y;try{for(R(te),g=r(f);g!==null&&(!(g.expirationTime>te)||H&&!N());){var K=g.callback;if(typeof K=="function"){g.callback=null,y=g.priorityLevel;var ee=K(g.expirationTime<=te);te=e.unstable_now(),typeof ee=="function"?g.callback=ee:g===r(f)&&n(f),R(te)}else n(f);g=r(f)}if(g!==null)var Ce=!0;else{var se=r(l);se!==null&&X(O,se.startTime-te),Ce=!1}return Ce}finally{g=null,y=ne,_=!1}}var P=!1,j=null,k=-1,M=5,$=-1;function N(){return!(e.unstable_now()-$H||125K?(H.sortIndex=ne,t(l,H),r(f)===null&&H===r(l)&&(E?(T(k),k=-1):E=!0,X(O,ne-K))):(H.sortIndex=ee,t(f,H),w||_||(w=!0,Y(C))),H},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(H){var te=y;return function(){var ne=y;y=te;try{return H.apply(this,arguments)}finally{y=ne}}}}(lE)),lE}var xA;function h7(){return xA||(xA=1,sE.exports=p7()),sE.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 wA;function v7(){if(wA)return xo;wA=1;var e=zx(),t=h7();function r(i){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+i,m=1;m"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,l=/^[: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]*$/,h={},g={};function y(i){return f.call(g,i)?!0:f.call(h,i)?!1:l.test(i)?g[i]=!0:(h[i]=!0,!1)}function _(i,u,m,b){if(m!==null&&m.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return b?!1:m!==null?!m.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function w(i,u,m,b){if(u===null||typeof u>"u"||_(i,u,m,b))return!0;if(b)return!1;if(m!==null)switch(m.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function E(i,u,m,b,F,L,W){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=b,this.attributeNamespace=F,this.mustUseProperty=m,this.propertyName=i,this.type=u,this.sanitizeURL=L,this.removeEmptyString=W}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){x[i]=new E(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var u=i[0];x[u]=new E(u,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){x[i]=new E(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){x[i]=new E(i,2,!1,i,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(i){x[i]=new E(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){x[i]=new E(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){x[i]=new E(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){x[i]=new E(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){x[i]=new E(i,5,!1,i.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function I(i){return i[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(i){var u=i.replace(T,I);x[u]=new E(u,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var u=i.replace(T,I);x[u]=new E(u,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var u=i.replace(T,I);x[u]=new E(u,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){x[i]=new E(i,1,!1,i.toLowerCase(),null,!1,!1)}),x.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){x[i]=new E(i,1,!1,i.toLowerCase(),null,!0,!0)});function R(i,u,m,b){var F=x.hasOwnProperty(u)?x[u]:null;(F!==null?F.type!==0:b||!(2re||F[W]!==L[re]){var ce=` -`+F[W].replace(" at new "," at ");return i.displayName&&ce.includes("")&&(ce=ce.replace("",i.displayName)),ce}while(1<=W&&0<=re);break}}}finally{Ce=!1,Error.prepareStackTrace=m}return(i=i?i.displayName||i.name:"")?ee(i):""}function Se(i){switch(i.tag){case 5:return ee(i.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return i=se(i.type,!1),i;case 11:return i=se(i.type.render,!1),i;case 1:return i=se(i.type,!0),i;default:return""}}function me(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case j:return"Fragment";case P:return"Portal";case M:return"Profiler";case k:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case N:return(i.displayName||"Context")+".Consumer";case $:return(i._context.displayName||"Context")+".Provider";case B:var u=i.render;return i=i.displayName,i||(i=u.displayName||u.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return u=i.displayName||null,u!==null?u:me(i.type)||"Memo";case Y:u=i._payload,i=i._init;try{return me(i(u))}catch{}}return null}function we(i){var u=i.type;switch(i.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=u.render,i=i.displayName||i.name||"",u.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(u);case 8:return u===k?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function Oe(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ie(i){var u=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Fe(i){var u=ie(i)?"checked":"value",m=Object.getOwnPropertyDescriptor(i.constructor.prototype,u),b=""+i[u];if(!i.hasOwnProperty(u)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var F=m.get,L=m.set;return Object.defineProperty(i,u,{configurable:!0,get:function(){return F.call(this)},set:function(W){b=""+W,L.call(this,W)}}),Object.defineProperty(i,u,{enumerable:m.enumerable}),{getValue:function(){return b},setValue:function(W){b=""+W},stopTracking:function(){i._valueTracker=null,delete i[u]}}}}function ke(i){i._valueTracker||(i._valueTracker=Fe(i))}function $e(i){if(!i)return!1;var u=i._valueTracker;if(!u)return!0;var m=u.getValue(),b="";return i&&(b=ie(i)?i.checked?"true":"false":i.value),i=b,i!==m?(u.setValue(i),!0):!1}function Te(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Be(i,u){var m=u.checked;return ne({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??i._wrapperState.initialChecked})}function Le(i,u){var m=u.defaultValue==null?"":u.defaultValue,b=u.checked!=null?u.checked:u.defaultChecked;m=Oe(u.value!=null?u.value:m),i._wrapperState={initialChecked:b,initialValue:m,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function dt(i,u){u=u.checked,u!=null&&R(i,"checked",u,!1)}function He(i,u){dt(i,u);var m=Oe(u.value),b=u.type;if(m!=null)b==="number"?(m===0&&i.value===""||i.value!=m)&&(i.value=""+m):i.value!==""+m&&(i.value=""+m);else if(b==="submit"||b==="reset"){i.removeAttribute("value");return}u.hasOwnProperty("value")?ae(i,u.type,m):u.hasOwnProperty("defaultValue")&&ae(i,u.type,Oe(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(i.defaultChecked=!!u.defaultChecked)}function Z(i,u,m){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var b=u.type;if(!(b!=="submit"&&b!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+i._wrapperState.initialValue,m||u===i.value||(i.value=u),i.defaultValue=u}m=i.name,m!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,m!==""&&(i.name=m)}function ae(i,u,m){(u!=="number"||Te(i.ownerDocument)!==i)&&(m==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+m&&(i.defaultValue=""+m))}var fe=Array.isArray;function ve(i,u,m,b){if(i=i.options,u){u={};for(var F=0;F"+u.valueOf().toString()+"",u=ot.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;u.firstChild;)i.appendChild(u.firstChild)}});function Dt(i,u){if(u){var m=i.firstChild;if(m&&m===i.lastChild&&m.nodeType===3){m.nodeValue=u;return}}i.textContent=u}var Zt={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},Kt=["Webkit","ms","Moz","O"];Object.keys(Zt).forEach(function(i){Kt.forEach(function(u){u=u+i.charAt(0).toUpperCase()+i.substring(1),Zt[u]=Zt[i]})});function rt(i,u,m){return u==null||typeof u=="boolean"||u===""?"":m||typeof u!="number"||u===0||Zt.hasOwnProperty(i)&&Zt[i]?(""+u).trim():u+"px"}function Pt(i,u){i=i.style;for(var m in u)if(u.hasOwnProperty(m)){var b=m.indexOf("--")===0,F=rt(m,u[m],b);m==="float"&&(m="cssFloat"),b?i.setProperty(m,F):i[m]=F}}var Je=ne({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 ut(i,u){if(u){if(Je[i]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(r(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(r(61))}if(u.style!=null&&typeof u.style!="object")throw Error(r(62))}}function Ht(i,u){if(i.indexOf("-")===-1)return typeof u.is=="string";switch(i){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 Qt=null;function Or(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ur=null,Gr=null,kn=null;function zn(i){if(i=ta(i)){if(typeof Ur!="function")throw Error(r(280));var u=i.stateNode;u&&(u=sp(u),Ur(i.stateNode,i.type,u))}}function Io(i){Gr?kn?kn.push(i):kn=[i]:Gr=i}function vs(){if(Gr){var i=Gr,u=kn;if(kn=Gr=null,zn(i),u)for(i=0;i>>=0,i===0?32:31-(Vc(i)/Mf|0)|0}var pu=64,Ff=4194304;function hu(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function vl(i,u){var m=i.pendingLanes;if(m===0)return 0;var b=0,F=i.suspendedLanes,L=i.pingedLanes,W=m&268435455;if(W!==0){var re=W&~F;re!==0?b=hu(re):(L&=W,L!==0&&(b=hu(L)))}else W=m&~F,W!==0?b=hu(W):L!==0&&(b=hu(L));if(b===0)return 0;if(u!==0&&u!==b&&(u&F)===0&&(F=b&-b,L=u&-u,F>=L||F===16&&(L&4194240)!==0))return u;if((b&4)!==0&&(b|=m&16),u=i.entangledLanes,u!==0)for(i=i.entanglements,u&=b;0m;m++)u.push(i);return u}function Hc(i,u,m){i.pendingLanes|=u,u!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,u=31-In(u),i[u]=m}function v0(i,u){var m=i.pendingLanes&~u;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=u,i.mutableReadLanes&=u,i.entangledLanes&=u,u=i.entanglements;var b=i.eventTimes;for(i=i.expirationTimes;0=zi),k0=" ",I0=!1;function j0(i,u){switch(i){case"keyup":return Da.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var _u=!1;function xu(i,u){switch(i){case"compositionend":return T0(u);case"keypress":return u.which!==32?null:(I0=!0,k0);case"textInput":return i=u.data,i===k0&&I0?null:i;default:return null}}function gS(i,u){if(_u)return i==="compositionend"||!Yc&&j0(i,u)?(i=Bv(),ai=Xc=Kr=null,_u=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:m,offset:u-i};i=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Gt(m)}}function pn(i,u){return i&&u?i===u?!0:i&&i.nodeType===3?!1:u&&u.nodeType===3?pn(i,u.parentNode):"contains"in i?i.contains(u):i.compareDocumentPosition?!!(i.compareDocumentPosition(u)&16):!1:!1}function jr(){for(var i=window,u=Te();u instanceof i.HTMLIFrameElement;){try{var m=typeof u.contentWindow.location.href=="string"}catch{m=!1}if(m)i=u.contentWindow;else break;u=Te(i.document)}return u}function Jc(i){var u=i&&i.nodeName&&i.nodeName.toLowerCase();return u&&(u==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||u==="textarea"||i.contentEditable==="true")}function SS(i){var u=jr(),m=i.focusedElem,b=i.selectionRange;if(u!==m&&m&&m.ownerDocument&&pn(m.ownerDocument.documentElement,m)){if(b!==null&&Jc(m)){if(u=b.start,i=b.end,i===void 0&&(i=u),"selectionStart"in m)m.selectionStart=u,m.selectionEnd=Math.min(i,m.value.length);else if(i=(u=m.ownerDocument||document)&&u.defaultView||window,i.getSelection){i=i.getSelection();var F=m.textContent.length,L=Math.min(b.start,F);b=b.end===void 0?L:Math.min(b.end,F),!i.extend&&L>b&&(F=b,b=L,L=F),F=mr(m,L);var W=mr(m,b);F&&W&&(i.rangeCount!==1||i.anchorNode!==F.node||i.anchorOffset!==F.offset||i.focusNode!==W.node||i.focusOffset!==W.offset)&&(u=u.createRange(),u.setStart(F.node,F.offset),i.removeAllRanges(),L>b?(i.addRange(u),i.extend(W.node,W.offset)):(u.setEnd(W.node,W.offset),i.addRange(u)))}}for(u=[],i=m;i=i.parentNode;)i.nodeType===1&&u.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m=document.documentMode,qi=null,Zv=null,oi=null,Su=!1;function Zc(i,u,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Su||qi==null||qi!==Te(b)||(b=qi,"selectionStart"in b&&Jc(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),oi&&pt(oi,b)||(oi=b,b=np(Zv,"onSelect"),0ju||(i.current=am[ju],am[ju]=null,ju--)}function Dr(i,u){ju++,am[ju]=i.current,i.current=u}var ks={},ra=Ca(ks),Oa=Ca(!1),ca=ks;function Tu(i,u){var m=i.type.contextTypes;if(!m)return ks;var b=i.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===u)return b.__reactInternalMemoizedMaskedChildContext;var F={},L;for(L in m)F[L]=u[L];return b&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=u,i.__reactInternalMemoizedMaskedChildContext=F),F}function Pa(i){return i=i.childContextTypes,i!=null}function lp(){Wr(Oa),Wr(ra)}function q0(i,u,m){if(ra.current!==ks)throw Error(r(168));Dr(ra,u),Dr(Oa,m)}function U0(i,u,m){var b=i.stateNode;if(u=u.childContextTypes,typeof b.getChildContext!="function")return m;b=b.getChildContext();for(var F in b)if(!(F in u))throw Error(r(108,we(i)||"Unknown",F));return ne({},m,b)}function so(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ks,ca=ra.current,Dr(ra,i),Dr(Oa,Oa.current),!0}function V0(i,u,m){var b=i.stateNode;if(!b)throw Error(r(169));m?(i=U0(i,u,ca),b.__reactInternalMemoizedMergedChildContext=i,Wr(Oa),Wr(ra),Dr(ra,i)):Wr(Oa),Dr(Oa,m)}var Wi=null,up=!1,om=!1;function W0(i){Wi===null?Wi=[i]:Wi.push(i)}function Sl(i){up=!0,W0(i)}function Is(){if(!om&&Wi!==null){om=!0;var i=0,u=br;try{var m=Wi;for(br=1;i>=W,F-=W,li=1<<32-In(u)+F|m<qt?(An=$t,$t=null):An=$t.sibling;var yr=We(Ee,$t,Pe[qt],Ze);if(yr===null){$t===null&&($t=An);break}i&&$t&&yr.alternate===null&&u(Ee,$t),pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr,$t=An}if(qt===Pe.length)return m(Ee,$t),Hr&&Cl(Ee,qt),Tt;if($t===null){for(;qtqt?(An=$t,$t=null):An=$t.sibling;var qs=We(Ee,$t,yr.value,Ze);if(qs===null){$t===null&&($t=An);break}i&&$t&&qs.alternate===null&&u(Ee,$t),pe=L(qs,pe,qt),Lt===null?Tt=qs:Lt.sibling=qs,Lt=qs,$t=An}if(yr.done)return m(Ee,$t),Hr&&Cl(Ee,qt),Tt;if($t===null){for(;!yr.done;qt++,yr=Pe.next())yr=Ye(Ee,yr.value,Ze),yr!==null&&(pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr);return Hr&&Cl(Ee,qt),Tt}for($t=b(Ee,$t);!yr.done;qt++,yr=Pe.next())yr=ht($t,Ee,qt,yr.value,Ze),yr!==null&&(i&&yr.alternate!==null&&$t.delete(yr.key===null?qt:yr.key),pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr);return i&&$t.forEach(function(WS){return u(Ee,WS)}),Hr&&Cl(Ee,qt),Tt}function un(Ee,pe,Pe,Ze){if(typeof Pe=="object"&&Pe!==null&&Pe.type===j&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case C:e:{for(var Tt=Pe.key,Lt=pe;Lt!==null;){if(Lt.key===Tt){if(Tt=Pe.type,Tt===j){if(Lt.tag===7){m(Ee,Lt.sibling),pe=F(Lt,Pe.props.children),pe.return=Ee,Ee=pe;break e}}else if(Lt.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===Y&&Q0(Tt)===Lt.type){m(Ee,Lt.sibling),pe=F(Lt,Pe.props),pe.ref=cd(Ee,Lt,Pe),pe.return=Ee,Ee=pe;break e}m(Ee,Lt);break}else u(Ee,Lt);Lt=Lt.sibling}Pe.type===j?(pe=Dl(Pe.props.children,Ee.mode,Ze,Pe.key),pe.return=Ee,Ee=pe):(Ze=Gp(Pe.type,Pe.key,Pe.props,null,Ee.mode,Ze),Ze.ref=cd(Ee,pe,Pe),Ze.return=Ee,Ee=Ze)}return W(Ee);case P:e:{for(Lt=Pe.key;pe!==null;){if(pe.key===Lt)if(pe.tag===4&&pe.stateNode.containerInfo===Pe.containerInfo&&pe.stateNode.implementation===Pe.implementation){m(Ee,pe.sibling),pe=F(pe,Pe.children||[]),pe.return=Ee,Ee=pe;break e}else{m(Ee,pe);break}else u(Ee,pe);pe=pe.sibling}pe=Km(Pe,Ee.mode,Ze),pe.return=Ee,Ee=pe}return W(Ee);case Y:return Lt=Pe._init,un(Ee,pe,Lt(Pe._payload),Ze)}if(fe(Pe))return Ct(Ee,pe,Pe,Ze);if(te(Pe))return Rt(Ee,pe,Pe,Ze);Pl(Ee,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,pe!==null&&pe.tag===6?(m(Ee,pe.sibling),pe=F(pe,Pe),pe.return=Ee,Ee=pe):(m(Ee,pe),pe=Gm(Pe,Ee.mode,Ze),pe.return=Ee,Ee=pe),W(Ee)):m(Ee,pe)}return un}var an=sm(!0),pp=sm(!1),dd=Ca(null),qa=null,js=null,Mu=null;function Gi(){Mu=js=qa=null}function hp(i){var u=dd.current;Wr(dd),i._currentValue=u}function qn(i,u,m){for(;i!==null;){var b=i.alternate;if((i.childLanes&u)!==u?(i.childLanes|=u,b!==null&&(b.childLanes|=u)):b!==null&&(b.childLanes&u)!==u&&(b.childLanes|=u),i===m)break;i=i.return}}function Ts(i,u){qa=i,Mu=js=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&u)!==0&&(fa=!0),i.firstContext=null)}function co(i){var u=i._currentValue;if(Mu!==i)if(i={context:i,memoizedValue:u,next:null},js===null){if(qa===null)throw Error(r(308));js=i,qa.dependencies={lanes:0,firstContext:i}}else js=js.next=i;return u}var Rl=null;function lm(i){Rl===null?Rl=[i]:Rl.push(i)}function vp(i,u,m,b){var F=u.interleaved;return F===null?(m.next=m,lm(u)):(m.next=F.next,F.next=m),u.interleaved=m,Ki(i,b)}function Ki(i,u){i.lanes|=u;var m=i.alternate;for(m!==null&&(m.lanes|=u),m=i,i=i.return;i!==null;)i.childLanes|=u,m=i.alternate,m!==null&&(m.childLanes|=u),m=i,i=i.return;return m.tag===3?m.stateNode:null}var fo=!1;function mp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X0(i,u){i=i.updateQueue,u.updateQueue===i&&(u.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Qi(i,u){return{eventTime:i,lane:u,tag:0,payload:null,callback:null,next:null}}function po(i,u,m){var b=i.updateQueue;if(b===null)return null;if(b=b.shared,(dr&2)!==0){var F=b.pending;return F===null?u.next=u:(u.next=F.next,F.next=u),b.pending=u,Ki(i,m)}return F=b.interleaved,F===null?(u.next=u,lm(b)):(u.next=F.next,F.next=u),b.interleaved=u,Ki(i,m)}function gp(i,u,m){if(u=u.updateQueue,u!==null&&(u=u.shared,(m&4194240)!==0)){var b=u.lanes;b&=i.pendingLanes,m|=b,u.lanes=m,Gc(i,m)}}function Y0(i,u){var m=i.updateQueue,b=i.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var F=null,L=null;if(m=m.firstBaseUpdate,m!==null){do{var W={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};L===null?F=L=W:L=L.next=W,m=m.next}while(m!==null);L===null?F=L=u:L=L.next=u}else F=L=u;m={baseState:b.baseState,firstBaseUpdate:F,lastBaseUpdate:L,shared:b.shared,effects:b.effects},i.updateQueue=m;return}i=m.lastBaseUpdate,i===null?m.firstBaseUpdate=u:i.next=u,m.lastBaseUpdate=u}function Fu(i,u,m,b){var F=i.updateQueue;fo=!1;var L=F.firstBaseUpdate,W=F.lastBaseUpdate,re=F.shared.pending;if(re!==null){F.shared.pending=null;var ce=re,Ae=ce.next;ce.next=null,W===null?L=Ae:W.next=Ae,W=ce;var Qe=i.alternate;Qe!==null&&(Qe=Qe.updateQueue,re=Qe.lastBaseUpdate,re!==W&&(re===null?Qe.firstBaseUpdate=Ae:re.next=Ae,Qe.lastBaseUpdate=ce))}if(L!==null){var Ye=F.baseState;W=0,Qe=Ae=ce=null,re=L;do{var We=re.lane,ht=re.eventTime;if((b&We)===We){Qe!==null&&(Qe=Qe.next={eventTime:ht,lane:0,tag:re.tag,payload:re.payload,callback:re.callback,next:null});e:{var Ct=i,Rt=re;switch(We=u,ht=m,Rt.tag){case 1:if(Ct=Rt.payload,typeof Ct=="function"){Ye=Ct.call(ht,Ye,We);break e}Ye=Ct;break e;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=Rt.payload,We=typeof Ct=="function"?Ct.call(ht,Ye,We):Ct,We==null)break e;Ye=ne({},Ye,We);break e;case 2:fo=!0}}re.callback!==null&&re.lane!==0&&(i.flags|=64,We=F.effects,We===null?F.effects=[re]:We.push(re))}else ht={eventTime:ht,lane:We,tag:re.tag,payload:re.payload,callback:re.callback,next:null},Qe===null?(Ae=Qe=ht,ce=Ye):Qe=Qe.next=ht,W|=We;if(re=re.next,re===null){if(re=F.shared.pending,re===null)break;We=re,re=We.next,We.next=null,F.lastBaseUpdate=We,F.shared.pending=null}}while(!0);if(Qe===null&&(ce=Ye),F.baseState=ce,F.firstBaseUpdate=Ae,F.lastBaseUpdate=Qe,u=F.shared.interleaved,u!==null){F=u;do W|=F.lane,F=F.next;while(F!==u)}else L===null&&(F.shared.lanes=0);Ls|=W,i.lanes=W,i.memoizedState=Ye}}function um(i,u,m){if(i=u.effects,u.effects=null,i!==null)for(u=0;um?m:4,i(!0);var b=pm.transition;pm.transition={};try{i(!1),u()}finally{br=m,pm.transition=b}}function xm(){return ho().memoizedState}function CS(i,u,m){var b=Bs(i);if(m={lane:b,action:m,hasEagerState:!1,eagerState:null,next:null},wm(i))da(u,m);else if(m=vp(i,u,m,b),m!==null){var F=va();Bo(m,i,b,F),Fo(m,u,b)}}function n_(i,u,m){var b=Bs(i),F={lane:b,action:m,hasEagerState:!1,eagerState:null,next:null};if(wm(i))da(u,F);else{var L=i.alternate;if(i.lanes===0&&(L===null||L.lanes===0)&&(L=u.lastRenderedReducer,L!==null))try{var W=u.lastRenderedState,re=L(W,m);if(F.hasEagerState=!0,F.eagerState=re,Ie(re,W)){var ce=u.interleaved;ce===null?(F.next=F,lm(u)):(F.next=ce.next,ce.next=F),u.interleaved=F;return}}catch{}finally{}m=vp(i,u,F,b),m!==null&&(F=va(),Bo(m,i,b,F),Fo(m,u,b))}}function wm(i){var u=i.alternate;return i===en||u!==null&&u===en}function da(i,u){vd=Lu=!0;var m=i.pending;m===null?u.next=u:(u.next=m.next,m.next=u),i.pending=u}function Fo(i,u,m){if((m&4194240)!==0){var b=u.lanes;b&=i.pendingLanes,m|=b,u.lanes=m,Gc(i,m)}}var Cp={readContext:co,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useInsertionEffect:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useSyncExternalStore:oa,useId:oa,unstable_isNewReconciler:!1},OS={readContext:co,useCallback:function(i,u){return hi().memoizedState=[i,u===void 0?null:u],i},useContext:co,useEffect:Ep,useImperativeHandle:function(i,u,m){return m=m!=null?m.concat([i]):null,gd(4194308,4,bm.bind(null,u,i),m)},useLayoutEffect:function(i,u){return gd(4194308,4,i,u)},useInsertionEffect:function(i,u){return gd(4,2,i,u)},useMemo:function(i,u){var m=hi();return u=u===void 0?null:u,i=i(),m.memoizedState=[i,u],i},useReducer:function(i,u,m){var b=hi();return u=m!==void 0?m(u):u,b.memoizedState=b.baseState=u,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:u},b.queue=i,i=i.dispatch=CS.bind(null,en,i),[b.memoizedState,i]},useRef:function(i){var u=hi();return i={current:i},u.memoizedState=i},useState:md,useDebugValue:yd,useDeferredValue:function(i){return hi().memoizedState=i},useTransition:function(){var i=md(!1),u=i[0];return i=r_.bind(null,i[1]),hi().memoizedState=i,[u,i]},useMutableSource:function(){},useSyncExternalStore:function(i,u,m){var b=en,F=hi();if(Hr){if(m===void 0)throw Error(r(407));m=m()}else{if(m=u(),Tn===null)throw Error(r(349));(Ms&30)!==0||gm(b,u,m)}F.memoizedState=m;var L={value:m,getSnapshot:u};return F.queue=L,Ep(Yi.bind(null,b,L,i),[i]),b.flags|=2048,Nu(9,ka.bind(null,b,L,m,u),void 0,null),m},useId:function(){var i=hi(),u=Tn.identifierPrefix;if(Hr){var m=ui,b=li;m=(b&~(1<<32-In(b)-1)).toString(32)+m,u=":"+u+"R"+m,m=Il++,0<\/script>",i=i.removeChild(i.firstChild)):typeof b.is=="string"?i=W.createElement(m,{is:b.is}):(i=W.createElement(m),m==="select"&&(W=i,b.multiple?W.multiple=!0:b.size&&(W.size=b.size))):i=W.createElementNS(i,m),i[ii]=u,i[Rs]=b,Vn(i,u,!1,!1),u.stateNode=i;e:{switch(W=Ht(m,b),m){case"dialog":Vr("cancel",i),Vr("close",i),F=b;break;case"iframe":case"object":case"embed":Vr("load",i),F=b;break;case"video":case"audio":for(F=0;FMl&&(u.flags|=128,b=!0,Cd(L,!1),u.lanes=4194304)}else{if(!b)if(i=kl(W),i!==null){if(u.flags|=128,b=!0,m=i.updateQueue,m!==null&&(u.updateQueue=m,u.flags|=4),Cd(L,!0),L.tail===null&&L.tailMode==="hidden"&&!W.alternate&&!Hr)return Wn(u),null}else 2*Ir()-L.renderingStartTime>Ml&&m!==1073741824&&(u.flags|=128,b=!0,Cd(L,!1),u.lanes=4194304);L.isBackwards?(W.sibling=u.child,u.child=W):(m=L.last,m!==null?m.sibling=W:u.child=W,L.last=W)}return L.tail!==null?(u=L.tail,L.rendering=u,L.tail=u.sibling,L.renderingStartTime=Ir(),u.sibling=null,m=Qr.current,Dr(Qr,b?m&1|2:m&1),u):(Wn(u),null);case 22:case 23:return Wm(),b=u.memoizedState!==null,i!==null&&i.memoizedState!==null!==b&&(u.flags|=8192),b&&(u.mode&1)!==0?(Va&1073741824)!==0&&(Wn(u),u.subtreeFlags&6&&(u.flags|=8192)):Wn(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function RS(i,u){switch(Ol(u),u.tag){case 1:return Pa(u.type)&&lp(),i=u.flags,i&65536?(u.flags=i&-65537|128,u):null;case 3:return As(),Wr(Oa),Wr(ra),bp(),i=u.flags,(i&65536)!==0&&(i&128)===0?(u.flags=i&-65537|128,u):null;case 5:return yp(u),null;case 13:if(Wr(Qr),i=u.memoizedState,i!==null&&i.dehydrated!==null){if(u.alternate===null)throw Error(r(340));di()}return i=u.flags,i&65536?(u.flags=i&-65537|128,u):null;case 19:return Wr(Qr),null;case 4:return As(),null;case 10:return hp(u.type._context),null;case 22:case 23:return Wm(),null;case 24:return null;default:return null}}var Mp=!1,Xr=!1,pa=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Wu(i,u){var m=i.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(b){tn(i,u,b)}else m.current=null}function Od(i,u,m){try{m()}catch(b){tn(i,u,b)}}var c_=!1;function kS(i,u){if(od=Bf,i=jr(),Jc(i)){if("selectionStart"in i)var m={start:i.selectionStart,end:i.selectionEnd};else e:{m=(m=i.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var F=b.anchorOffset,L=b.focusNode;b=b.focusOffset;try{m.nodeType,L.nodeType}catch{m=null;break e}var W=0,re=-1,ce=-1,Ae=0,Qe=0,Ye=i,We=null;t:for(;;){for(var ht;Ye!==m||F!==0&&Ye.nodeType!==3||(re=W+F),Ye!==L||b!==0&&Ye.nodeType!==3||(ce=W+b),Ye.nodeType===3&&(W+=Ye.nodeValue.length),(ht=Ye.firstChild)!==null;)We=Ye,Ye=ht;for(;;){if(Ye===i)break t;if(We===m&&++Ae===F&&(re=W),We===L&&++Qe===b&&(ce=W),(ht=Ye.nextSibling)!==null)break;Ye=We,We=Ye.parentNode}Ye=ht}m=re===-1||ce===-1?null:{start:re,end:ce}}else m=null}m=m||{start:0,end:0}}else m=null;for(wl={focusedElem:i,selectionRange:m},Bf=!1,bt=u;bt!==null;)if(u=bt,i=u.child,(u.subtreeFlags&1028)!==0&&i!==null)i.return=u,bt=i;else for(;bt!==null;){u=bt;try{var Ct=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Ct!==null){var Rt=Ct.memoizedProps,un=Ct.memoizedState,Ee=u.stateNode,pe=Ee.getSnapshotBeforeUpdate(u.elementType===u.type?Rt:vo(u.type,Rt),un);Ee.__reactInternalSnapshotBeforeUpdate=pe}break;case 3:var Pe=u.stateNode.containerInfo;Pe.nodeType===1?Pe.textContent="":Pe.nodeType===9&&Pe.documentElement&&Pe.removeChild(Pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ze){tn(u,u.return,Ze)}if(i=u.sibling,i!==null){i.return=u.return,bt=i;break}bt=u.return}return Ct=c_,c_=!1,Ct}function es(i,u,m){var b=u.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var F=b=b.next;do{if((F.tag&i)===i){var L=F.destroy;F.destroy=void 0,L!==void 0&&Od(u,m,L)}F=F.next}while(F!==b)}}function Pd(i,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var m=u=u.next;do{if((m.tag&i)===i){var b=m.create;m.destroy=b()}m=m.next}while(m!==u)}}function Fp(i){var u=i.ref;if(u!==null){var m=i.stateNode;switch(i.tag){case 5:i=m;break;default:i=m}typeof u=="function"?u(i):u.current=i}}function d_(i){var u=i.alternate;u!==null&&(i.alternate=null,d_(u)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(u=i.stateNode,u!==null&&(delete u[ii],delete u[Rs],delete u[ip],delete u[Q],delete u[Iu])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function f_(i){return i.tag===5||i.tag===3||i.tag===4}function p_(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||f_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Mm(i,u,m){var b=i.tag;if(b===5||b===6)i=i.stateNode,u?m.nodeType===8?m.parentNode.insertBefore(i,u):m.insertBefore(i,u):(m.nodeType===8?(u=m.parentNode,u.insertBefore(i,m)):(u=m,u.appendChild(i)),m=m._reactRootContainer,m!=null||u.onclick!==null||(u.onclick=ap));else if(b!==4&&(i=i.child,i!==null))for(Mm(i,u,m),i=i.sibling;i!==null;)Mm(i,u,m),i=i.sibling}function $p(i,u,m){var b=i.tag;if(b===5||b===6)i=i.stateNode,u?m.insertBefore(i,u):m.appendChild(i);else if(b!==4&&(i=i.child,i!==null))for($p(i,u,m),i=i.sibling;i!==null;)$p(i,u,m),i=i.sibling}var jn=null,Lo=!1;function yi(i,u,m){for(m=m.child;m!==null;)Fm(i,u,m),m=m.sibling}function Fm(i,u,m){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(To,m)}catch{}switch(m.tag){case 5:Xr||Wu(m,u);case 6:var b=jn,F=Lo;jn=null,yi(i,u,m),jn=b,Lo=F,jn!==null&&(Lo?(i=jn,m=m.stateNode,i.nodeType===8?i.parentNode.removeChild(m):i.removeChild(m)):jn.removeChild(m.stateNode));break;case 18:jn!==null&&(Lo?(i=jn,m=m.stateNode,i.nodeType===8?nm(i.parentNode,m):i.nodeType===1&&nm(i,m),Cr(i)):nm(jn,m.stateNode));break;case 4:b=jn,F=Lo,jn=m.stateNode.containerInfo,Lo=!0,yi(i,u,m),jn=b,Lo=F;break;case 0:case 11:case 14:case 15:if(!Xr&&(b=m.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){F=b=b.next;do{var L=F,W=L.destroy;L=L.tag,W!==void 0&&((L&2)!==0||(L&4)!==0)&&Od(m,u,W),F=F.next}while(F!==b)}yi(i,u,m);break;case 1:if(!Xr&&(Wu(m,u),b=m.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=m.memoizedProps,b.state=m.memoizedState,b.componentWillUnmount()}catch(re){tn(m,u,re)}yi(i,u,m);break;case 21:yi(i,u,m);break;case 22:m.mode&1?(Xr=(b=Xr)||m.memoizedState!==null,yi(i,u,m),Xr=b):yi(i,u,m);break;default:yi(i,u,m)}}function Hu(i){var u=i.updateQueue;if(u!==null){i.updateQueue=null;var m=i.stateNode;m===null&&(m=i.stateNode=new pa),u.forEach(function(b){var F=$S.bind(null,i,b);m.has(b)||(m.add(b),b.then(F,F))})}}function Ua(i,u){var m=u.deletions;if(m!==null)for(var b=0;bF&&(F=W),b&=~L}if(b=F,b=Ir()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*v_(b/1960))-b,10i?16:i,Ns===null)var b=!1;else{if(i=Ns,Ns=null,ha=0,(dr&6)!==0)throw Error(r(331));var F=dr;for(dr|=4,bt=i.current;bt!==null;){var L=bt,W=L.child;if((bt.flags&16)!==0){var re=L.deletions;if(re!==null){for(var ce=0;ceIr()-Nm?$l(i,0):Np|=m),ja(i,u)}function x_(i,u){u===0&&((i.mode&1)===0?u=1:(u=Ff,Ff<<=1,(Ff&130023424)===0&&(Ff=4194304)));var m=va();i=Ki(i,u),i!==null&&(Hc(i,u,m),ja(i,m))}function FS(i){var u=i.memoizedState,m=0;u!==null&&(m=u.retryLane),x_(i,m)}function $S(i,u){var m=0;switch(i.tag){case 13:var b=i.stateNode,F=i.memoizedState;F!==null&&(m=F.retryLane);break;case 19:b=i.stateNode;break;default:throw Error(r(314))}b!==null&&b.delete(u),x_(i,m)}var w_;w_=function(i,u,m){if(i!==null)if(i.memoizedProps!==u.pendingProps||Oa.current)fa=!0;else{if((i.lanes&m)===0&&(u.flags&128)===0)return fa=!1,l_(i,u,m);fa=(i.flags&131072)!==0}else fa=!1,Hr&&(u.flags&1048576)!==0&&H0(u,dp,u.index);switch(u.lanes=0,u.tag){case 2:var b=u.type;Ap(i,u),i=u.pendingProps;var F=Tu(u,ra.current);Ts(u,m),F=jl(null,u,b,i,F,m);var L=_p();return u.flags|=1,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Pa(b)?(L=!0,so(u)):L=!1,u.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,mp(u),F.updater=Rp,u.stateNode=F,F._reactInternals=u,Em(u,b,i,m),u=jm(null,u,b,!0,L,m)):(u.tag=0,Hr&&L&&ld(u),Un(null,u,F,m),u=u.child),u;case 16:b=u.elementType;e:{switch(Ap(i,u),i=u.pendingProps,F=b._init,b=F(b._payload),u.type=b,F=u.tag=DS(b),i=vo(b,i),F){case 0:u=km(null,u,b,i,m);break e;case 1:u=Im(null,u,b,i,m);break e;case 11:u=i_(null,u,b,i,m);break e;case 14:u=Om(null,u,b,vo(b.type,i),m);break e}throw Error(r(306,b,""))}return u;case 0:return b=u.type,F=u.pendingProps,F=u.elementType===b?F:vo(b,F),km(i,u,b,F,m);case 1:return b=u.type,F=u.pendingProps,F=u.elementType===b?F:vo(b,F),Im(i,u,b,F,m);case 3:e:{if(s_(u),i===null)throw Error(r(387));b=u.pendingProps,L=u.memoizedState,F=L.element,X0(i,u),Fu(u,b,null,m);var W=u.memoizedState;if(b=W.element,L.isDehydrated)if(L={element:b,isDehydrated:!1,cache:W.cache,pendingSuspenseBoundaries:W.pendingSuspenseBoundaries,transitions:W.transitions},u.updateQueue.baseState=L,u.memoizedState=L,u.flags&256){F=Al(Error(r(423)),u),u=gi(i,u,b,m,F);break e}else if(b!==F){F=Al(Error(r(424)),u),u=gi(i,u,b,m,F);break e}else for(za=Ps(u.stateNode.containerInfo.firstChild),aa=u,Hr=!0,Mo=null,m=pp(u,null,b,m),u.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(di(),b===F){u=$o(i,u,m);break e}Un(i,u,b,m)}u=u.child}return u;case 5:return dm(u),i===null&&Ra(u),b=u.type,F=u.pendingProps,L=i!==null?i.memoizedProps:null,W=F.children,id(b,F)?W=null:L!==null&&id(b,L)&&(u.flags|=32),Rm(i,u),Un(i,u,W,m),u.child;case 6:return i===null&&Ra(u),null;case 13:return Tp(i,u,m);case 4:return cm(u,u.stateNode.containerInfo),b=u.pendingProps,i===null?u.child=an(u,null,b,m):Un(i,u,b,m),u.child;case 11:return b=u.type,F=u.pendingProps,F=u.elementType===b?F:vo(b,F),i_(i,u,b,F,m);case 7:return Un(i,u,u.pendingProps,m),u.child;case 8:return Un(i,u,u.pendingProps.children,m),u.child;case 12:return Un(i,u,u.pendingProps.children,m),u.child;case 10:e:{if(b=u.type._context,F=u.pendingProps,L=u.memoizedProps,W=F.value,Dr(dd,b._currentValue),b._currentValue=W,L!==null)if(Ie(L.value,W)){if(L.children===F.children&&!Oa.current){u=$o(i,u,m);break e}}else for(L=u.child,L!==null&&(L.return=u);L!==null;){var re=L.dependencies;if(re!==null){W=L.child;for(var ce=re.firstContext;ce!==null;){if(ce.context===b){if(L.tag===1){ce=Qi(-1,m&-m),ce.tag=2;var Ae=L.updateQueue;if(Ae!==null){Ae=Ae.shared;var Qe=Ae.pending;Qe===null?ce.next=ce:(ce.next=Qe.next,Qe.next=ce),Ae.pending=ce}}L.lanes|=m,ce=L.alternate,ce!==null&&(ce.lanes|=m),qn(L.return,m,u),re.lanes|=m;break}ce=ce.next}}else if(L.tag===10)W=L.type===u.type?null:L.child;else if(L.tag===18){if(W=L.return,W===null)throw Error(r(341));W.lanes|=m,re=W.alternate,re!==null&&(re.lanes|=m),qn(W,m,u),W=L.sibling}else W=L.child;if(W!==null)W.return=L;else for(W=L;W!==null;){if(W===u){W=null;break}if(L=W.sibling,L!==null){L.return=W.return,W=L;break}W=W.return}L=W}Un(i,u,F.children,m),u=u.child}return u;case 9:return F=u.type,b=u.pendingProps.children,Ts(u,m),F=co(F),b=b(F),u.flags|=1,Un(i,u,b,m),u.child;case 14:return b=u.type,F=vo(b,u.pendingProps),F=vo(b.type,F),Om(i,u,b,F,m);case 15:return mi(i,u,u.type,u.pendingProps,m);case 17:return b=u.type,F=u.pendingProps,F=u.elementType===b?F:vo(b,F),Ap(i,u),u.tag=1,Pa(b)?(i=!0,so(u)):i=!1,Ts(u,m),Tl(u,b,F),Em(u,b,F,m),jm(null,u,b,!0,i,m);case 19:return Fs(i,u,m);case 22:return Pm(i,u,m)}throw Error(r(156,u.tag))};function S_(i,u){return Zr(i,u)}function LS(i,u,m,b){this.tag=i,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function go(i,u,m,b){return new LS(i,u,m,b)}function Hp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function DS(i){if(typeof i=="function")return Hp(i)?1:0;if(i!=null){if(i=i.$$typeof,i===B)return 11;if(i===G)return 14}return 2}function zo(i,u){var m=i.alternate;return m===null?(m=go(i.tag,u,i.key,i.mode),m.elementType=i.elementType,m.type=i.type,m.stateNode=i.stateNode,m.alternate=i,i.alternate=m):(m.pendingProps=u,m.type=i.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=i.flags&14680064,m.childLanes=i.childLanes,m.lanes=i.lanes,m.child=i.child,m.memoizedProps=i.memoizedProps,m.memoizedState=i.memoizedState,m.updateQueue=i.updateQueue,u=i.dependencies,m.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},m.sibling=i.sibling,m.index=i.index,m.ref=i.ref,m}function Gp(i,u,m,b,F,L){var W=2;if(b=i,typeof i=="function")Hp(i)&&(W=1);else if(typeof i=="string")W=5;else e:switch(i){case j:return Dl(m.children,F,L,u);case k:W=8,F|=8;break;case M:return i=go(12,m,u,F|2),i.elementType=M,i.lanes=L,i;case q:return i=go(13,m,u,F),i.elementType=q,i.lanes=L,i;case V:return i=go(19,m,u,F),i.elementType=V,i.lanes=L,i;case X:return Kp(m,F,L,u);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $:W=10;break e;case N:W=9;break e;case B:W=11;break e;case G:W=14;break e;case Y:W=16,b=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return u=go(W,m,u,F),u.elementType=i,u.type=b,u.lanes=L,u}function Dl(i,u,m,b){return i=go(7,i,b,u),i.lanes=m,i}function Kp(i,u,m,b){return i=go(22,i,b,u),i.elementType=X,i.lanes=m,i.stateNode={isHidden:!1},i}function Gm(i,u,m){return i=go(6,i,null,u),i.lanes=m,i}function Km(i,u,m){return u=go(4,i.children!==null?i.children:[],i.key,u),u.lanes=m,u.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},u}function NS(i,u,m,b,F){this.tag=u,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wc(0),this.expirationTimes=Wc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.identifierPrefix=b,this.onRecoverableError=F,this.mutableSourceEagerHydrationData=null}function Qm(i,u,m,b,F,L,W,re,ce){return i=new NS(i,u,m,re,ce),u===1?(u=1,L===!0&&(u|=8)):u=0,L=go(3,null,null,u),i.current=L,L.stateNode=i,L.memoizedState={element:b,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},mp(L),i}function BS(i,u,m){var b=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),iE.exports=v7(),iE.exports}var EA;function m7(){if(EA)return A_;EA=1;var e=v5();return A_.createRoot=e.createRoot,A_.hydrateRoot=e.hydrateRoot,A_}var g7=m7(),Ay={exports:{}};/** - * @license - * Lodash - * 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 - */var y7=Ay.exports,CA;function b7(){return CA||(CA=1,function(e,t){(function(){var r,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",d="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",l=500,h="__lodash_placeholder__",g=1,y=2,_=4,w=1,E=2,x=1,T=2,I=4,R=8,O=16,C=32,P=64,j=128,k=256,M=512,$=30,N="...",B=800,q=16,V=1,G=2,Y=3,X=1/0,H=9007199254740991,te=17976931348623157e292,ne=NaN,K=4294967295,ee=K-1,Ce=K>>>1,se=[["ary",j],["bind",x],["bindKey",T],["curry",R],["curryRight",O],["flip",M],["partial",C],["partialRight",P],["rearg",k]],Se="[object Arguments]",me="[object Array]",we="[object AsyncFunction]",Oe="[object Boolean]",ie="[object Date]",Fe="[object DOMException]",ke="[object Error]",$e="[object Function]",Te="[object GeneratorFunction]",Be="[object Map]",Le="[object Number]",dt="[object Null]",He="[object Object]",Z="[object Promise]",ae="[object Proxy]",fe="[object RegExp]",ve="[object Set]",be="[object String]",_e="[object Symbol]",De="[object Undefined]",Ge="[object WeakMap]",Mt="[object WeakSet]",et="[object ArrayBuffer]",ot="[object DataView]",it="[object Float32Array]",Dt="[object Float64Array]",Zt="[object Int8Array]",Kt="[object Int16Array]",rt="[object Int32Array]",Pt="[object Uint8Array]",Je="[object Uint8ClampedArray]",ut="[object Uint16Array]",Ht="[object Uint32Array]",Qt=/\b__p \+= '';/g,Or=/\b(__p \+=) '' \+/g,Ur=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gr=/&(?:amp|lt|gt|quot|#39);/g,kn=/[&<>"']/g,zn=RegExp(Gr.source),Io=RegExp(kn.source),vs=/<%-([\s\S]+?)%>/g,Bi=/<%([\s\S]+?)%>/g,ri=/<%=([\s\S]+?)%>/g,fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ms=/^\w*$/,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ye=/[\\^$.*+?()[\]{}|]/g,je=RegExp(ye.source),Ne=/^\s+/,lt=/\s/,kt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ft=/\{\n\/\* \[wrapped with (.+)\] \*/,ft=/,? & /,_t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mt=/[()=,{}\[\]\/\s]/,jt=/\\(\\)?/g,Wt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,er=/\w*$/,rn=/^[-+]0x[0-9a-f]+$/i,Er=/^0b[01]+$/i,sr=/^\[object .+?Constructor\]$/,It=/^0o[0-7]+$/i,Zr=/^(?:0|[1-9]\d*)$/,gs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sa=/($^)/,ao=/['\n\r\u2028\u2029\\]/g,Ir="\\ud800-\\udfff",pl="\\u0300-\\u036f",jo="\\ufe20-\\ufe2f",hl="\\u20d0-\\u20ff",ni=pl+jo+hl,ur="\\u2700-\\u27bf",$r="a-z\\xdf-\\xf6\\xf8-\\xff",To="\\xac\\xb1\\xd7\\xf7",Jn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nn="\\u2000-\\u206f",In=" \\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",Vc="A-Z\\xc0-\\xd6\\xd8-\\xde",Mf="\\ufe0e\\ufe0f",p0=To+Jn+nn+In,pu="['’]",Ff="["+Ir+"]",hu="["+p0+"]",vl="["+ni+"]",h0="\\d+",iS="["+ur+"]",$f="["+$r+"]",Fv="[^"+Ir+p0+h0+ur+$r+Vc+"]",Wc="\\ud83c[\\udffb-\\udfff]",Hc="(?:"+vl+"|"+Wc+")",v0="[^"+Ir+"]",Gc="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",ml="["+Vc+"]",$v="\\u200d",Lf="(?:"+$f+"|"+Fv+")",m0="(?:"+ml+"|"+Fv+")",Lv="(?:"+pu+"(?:d|ll|m|re|s|t|ve))?",Dv="(?:"+pu+"(?:D|LL|M|RE|S|T|VE))?",Df=Hc+"?",Kc="["+Mf+"]?",ys="(?:"+$v+"(?:"+[v0,Gc,br].join("|")+")"+Kc+Df+")*",bs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_s="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vu=Kc+Df+ys,Qc="(?:"+[iS,Gc,br].join("|")+")"+vu,xs="(?:"+[v0+vl+"?",vl,Gc,br,Ff].join("|")+")",sS=RegExp(pu,"g"),g0=RegExp(vl,"g"),gl=RegExp(Wc+"(?="+Wc+")|"+xs+vu,"g"),lS=RegExp([ml+"?"+$f+"+"+Lv+"(?="+[hu,ml,"$"].join("|")+")",m0+"+"+Dv+"(?="+[hu,ml+Lf,"$"].join("|")+")",ml+"?"+Lf+"+"+Lv,ml+"+"+Dv,_s,bs,h0,Qc].join("|"),"g"),y0=RegExp("["+$v+Ir+ni+Mf+"]"),Nf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,b0=["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"],uS=-1,Pr={};Pr[it]=Pr[Dt]=Pr[Zt]=Pr[Kt]=Pr[rt]=Pr[Pt]=Pr[Je]=Pr[ut]=Pr[Ht]=!0,Pr[Se]=Pr[me]=Pr[et]=Pr[Oe]=Pr[ot]=Pr[ie]=Pr[ke]=Pr[$e]=Pr[Be]=Pr[Le]=Pr[He]=Pr[fe]=Pr[ve]=Pr[be]=Pr[Ge]=!1;var Cr={};Cr[Se]=Cr[me]=Cr[et]=Cr[ot]=Cr[Oe]=Cr[ie]=Cr[it]=Cr[Dt]=Cr[Zt]=Cr[Kt]=Cr[rt]=Cr[Be]=Cr[Le]=Cr[He]=Cr[fe]=Cr[ve]=Cr[be]=Cr[_e]=Cr[Pt]=Cr[Je]=Cr[ut]=Cr[Ht]=!0,Cr[ke]=Cr[$e]=Cr[Ge]=!1;var mu={À:"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"},Bf={"&":"&","<":"<",">":">",'"':""","'":"'"},cS={"&":"&","<":"<",">":">",""":'"',"'":"'"},dS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nv=parseFloat,zf=parseInt,qf=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl,_0=typeof self=="object"&&self&&self.Object===Object&&self,Kr=qf||_0||Function("return this")(),Xc=t&&!t.nodeType&&t,ai=Xc&&!0&&e&&!e.nodeType&&e,Bv=ai&&ai.exports===Xc,gu=Bv&&qf.process,la=function(){try{var ge=ai&&ai.require&&ai.require("util").types;return ge||gu&&gu.binding&&gu.binding("util")}catch{}}(),zv=la&&la.isArrayBuffer,Ea=la&&la.isDate,yl=la&&la.isMap,Uf=la&&la.isRegExp,yu=la&&la.isSet,x0=la&&la.isTypedArray;function ua(ge,Me,Ie){switch(Ie.length){case 0:return ge.call(Me);case 1:return ge.call(Me,Ie[0]);case 2:return ge.call(Me,Ie[0],Ie[1]);case 3:return ge.call(Me,Ie[0],Ie[1],Ie[2])}return ge.apply(Me,Ie)}function qv(ge,Me,Ie,pt){for(var Gt=-1,mr=ge==null?0:ge.length;++Gt-1}function Vv(ge,Me,Ie){for(var pt=-1,Gt=ge==null?0:ge.length;++pt-1;);return Ie}function Yv(ge,Me){for(var Ie=ge.length;Ie--&&bu(Me,ge[Ie],0)>-1;);return Ie}function k0(ge,Me){for(var Ie=ge.length,pt=0;Ie--;)ge[Ie]===Me&&++pt;return pt}var I0=Gf(mu),j0=Gf(Bf);function T0(ge){return"\\"+dS[ge]}function _u(ge,Me){return ge==null?r:ge[Me]}function xu(ge){return y0.test(ge)}function gS(ge){return Nf.test(ge)}function yS(ge){for(var Me,Ie=[];!(Me=ge.next()).done;)Ie.push(Me.value);return Ie}function Kf(ge){var Me=-1,Ie=Array(ge.size);return ge.forEach(function(pt,Gt){Ie[++Me]=[Gt,pt]}),Ie}function Jv(ge,Me){return function(Ie){return ge(Me(Ie))}}function oo(ge,Me){for(var Ie=-1,pt=ge.length,Gt=0,mr=[];++Ie-1}function U0(c,v){var S=this.__data__,D=aa(S,c);return D<0?(++this.size,S.push([c,v])):S[D][1]=v,this}ca.prototype.clear=Tu,ca.prototype.delete=Pa,ca.prototype.get=lp,ca.prototype.has=q0,ca.prototype.set=U0;function so(c){var v=-1,S=c==null?0:c.length;for(this.clear();++v=v?c:v)),c}function Ra(c,v,S,D,U,J){var oe,de=v&g,xe=v&y,ze=v&_;if(S&&(oe=U?S(c,D,U,J):S(c)),oe!==r)return oe;if(!cn(c))return c;var qe=Yt(c);if(qe){if(oe=Cd(c),!de)return da(c,oe)}else{var Xe=Vn(c),ct=Xe==$e||Xe==Te;if(Qu(c))return _m(c,de);if(Xe==He||Xe==Se||ct&&!U){if(oe=xe||ct?{}:Wn(c),!de)return xe?OS(c,Mo(oe,c)):Cp(c,Hr(oe,c))}else{if(!Cr[Xe])return U?c:{};oe=PS(c,Xe,de)}}J||(J=new na);var At=J.get(c);if(At)return At;J.set(c,oe),eA(c)?c.forEach(function(Vt){oe.add(Ra(Vt,v,S,Vt,c,J))}):JT(c)&&c.forEach(function(Vt,cr){oe.set(cr,Ra(Vt,v,S,cr,c,J))});var Ut=ze?xe?wd:xd:xe?bo:sa,ar=qe?r:Ut(c);return Zn(ar||c,function(Vt,cr){ar&&(cr=Vt,Vt=c[cr]),Ol(oe,cr,Ra(Vt,v,S,cr,c,J))}),oe}function G0(c){var v=sa(c);return function(S){return ud(S,c,v)}}function ud(c,v,S){var D=S.length;if(c==null)return!D;for(c=jr(c);D--;){var U=S[D],J=v[U],oe=c[U];if(oe===r&&!(U in c)||!J(oe))return!1}return!0}function im(c,v,S){if(typeof c!="function")throw new io(s);return Hu(function(){c.apply(r,S)},v)}function di(c,v,S,D){var U=-1,J=Wf,oe=!0,de=c.length,xe=[],ze=v.length;if(!de)return xe;S&&(v=Lr(v,Da(S))),D?(J=Vv,oe=!1):v.length>=a&&(J=zi,oe=!1,v=new Sl(v));e:for(;++UU?0:U+S),D=D===r||D>U?U:rr(D),D<0&&(D+=U),D=S>D?0:rA(D);S0&&S(de)?v>1?an(de,v-1,S,D,U):Ss(U,de):D||(U[U.length]=de)}return U}var pp=Pp(),dd=Pp(!0);function qa(c,v){return c&&pp(c,v,sa)}function js(c,v){return c&&dd(c,v,sa)}function Mu(c,v){return ws(v,function(S){return Bl(c[S])})}function Gi(c,v){v=vi(v,c);for(var S=0,D=v.length;c!=null&&Sv}function co(c,v){return c!=null&&gr.call(c,v)}function Rl(c,v){return c!=null&&v in jr(c)}function lm(c,v,S){return c>=ea(v,S)&&c=120&&qe.length>=120)?new Sl(oe&&qe):r}qe=c[0];var Xe=-1,ct=de[0];e:for(;++Xe-1;)de!==c&&tp.call(de,xe,1),tp.call(c,xe,1);return c}function xn(c,v){for(var S=c?v.length:0,D=S-1;S--;){var U=v[S];if(S==D||U!==J){var J=U;Xr(U)?tp.call(c,U,1):wp(c,U)}}return c}function Lu(c,v){return c+Cs(ad()*(v-c+1))}function vd(c,v,S,D){for(var U=-1,J=hn(xl((v-c)/(S||1)),0),oe=Ie(J);J--;)oe[D?J:++U]=c,c+=S;return oe}function Il(c,v){var S="";if(!c||v<1||v>H)return S;do v%2&&(S+=c),v=Cs(v/2),v&&(c+=c);while(v);return S}function tr(c,v){return Ua($p(c,v,_o),c+"")}function oa(c){return ui(th(c))}function hm(c,v){var S=th(c);return Lp(S,Hi(v,0,S.length))}function jl(c,v,S,D){if(!cn(c))return c;v=vi(v,c);for(var U=-1,J=v.length,oe=J-1,de=c;de!=null&&++UU?0:U+v),S=S>U?U:S,S<0&&(S+=U),U=v>S?0:S-v>>>0,v>>>=0;for(var J=Ie(U);++D>>1,oe=c[J];oe!==null&&!qo(oe)&&(S?oe<=v:oe=a){var ze=v?null:i_(c);if(ze)return Es(ze);oe=!1,U=zi,xe=new Sl}else xe=v?[]:de;e:for(;++D=D?c:ia(c,v,S)}var bm=N0||function(c){return Kr.clearTimeout(c)};function _m(c,v){if(v)return c.slice();var S=c.length,D=em?em(S):new c.constructor(S);return c.copy(D),D}function yd(c){var v=new c.constructor(c.byteLength);return new rd(v).set(new rd(c)),v}function Z0(c,v){var S=v?yd(c.buffer):c.buffer;return new c.constructor(S,c.byteOffset,c.byteLength)}function e_(c){var v=new c.constructor(c.source,er.exec(c));return v.lastIndex=c.lastIndex,v}function t_(c){return Ba?jr(Ba.call(c)):{}}function r_(c,v){var S=v?yd(c.buffer):c.buffer;return new c.constructor(S,c.byteOffset,c.length)}function xm(c,v){if(c!==v){var S=c!==r,D=c===null,U=c===c,J=qo(c),oe=v!==r,de=v===null,xe=v===v,ze=qo(v);if(!de&&!ze&&!J&&c>v||J&&oe&&xe&&!de&&!ze||D&&oe&&xe||!S&&xe||!U)return 1;if(!D&&!J&&!ze&&c=de)return xe;var ze=S[D];return xe*(ze=="desc"?-1:1)}}return c.index-v.index}function n_(c,v,S,D){for(var U=-1,J=c.length,oe=S.length,de=-1,xe=v.length,ze=hn(J-oe,0),qe=Ie(xe+ze),Xe=!D;++de1?S[U-1]:r,oe=U>2?S[2]:r;for(J=c.length>3&&typeof J=="function"?(U--,J):r,oe&&pa(S[0],S[1],oe)&&(J=U<3?r:J,U=1),v=jr(v);++D-1?U[J?v[oe]:oe]:r}}function kp(c){return gi(function(v){var S=v.length,D=S,U=ta.prototype.thru;for(c&&v.reverse();D--;){var J=v[D];if(typeof J!="function")throw new io(s);if(U&&!oe&&Vu(J)=="wrapper")var oe=new ta([],!0)}for(D=oe?D:S;++D1&&fr.reverse(),qe&&xede))return!1;var ze=J.get(c),qe=J.get(v);if(ze&&qe)return ze==v&&qe==c;var Xe=-1,ct=!0,At=S&E?new Sl:r;for(J.set(c,v),J.set(v,c);++Xe1?"& ":"")+v[D],v=v.join(S>2?", ":" "),c.replace(kt,`{ -/* [wrapped with `+v+`] */ -`)}function Mp(c){return Yt(c)||Fd(c)||!!(D0&&c&&c[D0])}function Xr(c,v){var S=typeof c;return v=v??H,!!v&&(S=="number"||S!="symbol"&&Zr.test(c))&&c>-1&&c%1==0&&c0){if(++v>=B)return arguments[0]}else v=0;return c.apply(r,arguments)}}function Lp(c,v){var S=-1,D=c.length,U=D-1;for(v=v===r?D:v;++S1?c[v-1]:r;return S=typeof S=="function"?(c.pop(),S):r,tn(c,S)});function Hp(c){var v=Q(c);return v.__chain__=!0,v}function DS(c,v){return v(c),c}function zo(c,v){return v(c)}var Gp=gi(function(c){var v=c.length,S=v?c[0]:0,D=this.__wrapped__,U=function(J){return fp(J,c)};return v>1||this.__actions__.length||!(D instanceof Xt)||!Xr(S)?this.thru(U):(D=D.slice(S,+S+(v?1:0)),D.__actions__.push({func:zo,args:[U],thisArg:r}),new ta(D,this.__chain__).thru(function(J){return v&&!J.length&&J.push(r),J}))});function Dl(){return Hp(this)}function Kp(){return new ta(this.value(),this.__chain__)}function Gm(){this.__values__===r&&(this.__values__=tA(this.value()));var c=this.__index__>=this.__values__.length,v=c?r:this.__values__[this.__index__++];return{done:c,value:v}}function Km(){return this}function NS(c){for(var v,S=this;S instanceof si;){var D=v_(S);D.__index__=0,D.__values__=r,v?U.__wrapped__=D:v=D;var U=D;S=S.__wrapped__}return U.__wrapped__=c,v}function Qm(){var c=this.__wrapped__;if(c instanceof Xt){var v=c;return this.__actions__.length&&(v=new Xt(this)),v=v.reverse(),v.__actions__.push({func:zo,args:[Up],thisArg:r}),new ta(v,this.__chain__)}return this.thru(Up)}function BS(){return Nu(this.__wrapped__,this.__actions__)}var E_=Op(function(c,v,S){gr.call(c,S)?++c[S]:ci(c,S,1)});function C_(c,v,S){var D=Yt(c)?Uv:cd;return S&&pa(c,v,S)&&(v=r),D(c,Nt(v,3))}function Qp(c,v){var S=Yt(c)?ws:sm;return S(c,Nt(v,3))}var Xp=Al(Ls),O_=Al(kd);function Xm(c,v){return an(Nl(c,v),1)}function zS(c,v){return an(Nl(c,v),X)}function P_(c,v,S){return S=S===r?1:rr(S),an(Nl(c,v),S)}function Yp(c,v){var S=Yt(c)?Zn:fi;return S(c,Nt(v,3))}function Ad(c,v){var S=Yt(c)?Vf:K0;return S(c,Nt(v,3))}var Ym=Op(function(c,v,S){gr.call(c,S)?c[S].push(v):ci(c,S,[v])});function Jp(c,v,S,D){c=yo(c)?c:th(c),S=S&&!D?rr(S):0;var U=c.length;return S<0&&(S=hn(U+S,0)),I_(c)?S<=U&&c.indexOf(v,S)>-1:!!U&&bu(c,v,S)>-1}var R_=tr(function(c,v,S){var D=-1,U=typeof v=="function",J=yo(c)?Ie(c.length):[];return fi(c,function(oe){J[++D]=U?ua(v,oe,S):fo(oe,v,S)}),J}),qS=Op(function(c,v,S){ci(c,S,v)});function Nl(c,v){var S=Yt(c)?Lr:dm;return S(c,Nt(v,3))}function US(c,v,S,D){return c==null?[]:(Yt(v)||(v=v==null?[]:[v]),S=D?r:S,Yt(S)||(S=S==null?[]:[S]),hd(c,v,S))}var Md=Op(function(c,v,S){c[S?0:1].push(v)},function(){return[[],[]]});function VS(c,v,S){var D=Yt(c)?Wv:O0,U=arguments.length<3;return D(c,Nt(v,4),S,U,fi)}function Zp(c,v,S){var D=Yt(c)?fS:O0,U=arguments.length<3;return D(c,Nt(v,4),S,U,K0)}function i(c,v){var S=Yt(c)?ws:sm;return S(c,Ze(Nt(v,3)))}function u(c){var v=Yt(c)?ui:oa;return v(c)}function m(c,v,S){(S?pa(c,v,S):v===r)?v=1:v=rr(v);var D=Yt(c)?Cl:hm;return D(c,v)}function b(c){var v=Yt(c)?H0:ho;return v(c)}function F(c){if(c==null)return 0;if(yo(c))return I_(c)?bl(c):c.length;var v=Vn(c);return v==Be||v==ve?c.size:Xi(c).length}function L(c,v,S){var D=Yt(c)?Hv:vm;return S&&pa(c,v,S)&&(v=r),D(c,Nt(v,3))}var W=tr(function(c,v){if(c==null)return[];var S=v.length;return S>1&&pa(c,v[0],v[1])?v=[]:S>2&&pa(v[0],v[1],v[2])&&(v=[v[0]]),hd(c,an(v,1),[])}),re=Vr||function(){return Kr.Date.now()};function ce(c,v){if(typeof v!="function")throw new io(s);return c=rr(c),function(){if(--c<1)return v.apply(this,arguments)}}function Ae(c,v,S){return v=S?r:v,v=c&&v==null?c.length:v,mi(c,j,r,r,r,r,v)}function Qe(c,v){var S;if(typeof v!="function")throw new io(s);return c=rr(c),function(){return--c>0&&(S=v.apply(this,arguments)),c<=1&&(v=r),S}}var Ye=tr(function(c,v,S){var D=x;if(S.length){var U=oo(S,Zi(Ye));D|=C}return mi(c,D,v,S,U)}),We=tr(function(c,v,S){var D=x|T;if(S.length){var U=oo(S,Zi(We));D|=C}return mi(v,D,c,S,U)});function ht(c,v,S){v=S?r:v;var D=mi(c,R,r,r,r,r,r,v);return D.placeholder=ht.placeholder,D}function Ct(c,v,S){v=S?r:v;var D=mi(c,O,r,r,r,r,r,v);return D.placeholder=Ct.placeholder,D}function Rt(c,v,S){var D,U,J,oe,de,xe,ze=0,qe=!1,Xe=!1,ct=!0;if(typeof c!="function")throw new io(s);v=bi(v)||0,cn(S)&&(qe=!!S.leading,Xe="maxWait"in S,J=Xe?hn(bi(S.maxWait)||0,v):J,ct="trailing"in S?!!S.trailing:ct);function At(En){var ns=D,ql=U;return D=U=r,ze=En,oe=c.apply(ql,ns),oe}function Ut(En){return ze=En,de=Hu(cr,v),qe?At(En):oe}function ar(En){var ns=En-xe,ql=En-ze,hA=v-ns;return Xe?ea(hA,J-ql):hA}function Vt(En){var ns=En-xe,ql=En-ze;return xe===r||ns>=v||ns<0||Xe&&ql>=J}function cr(){var En=re();if(Vt(En))return fr(En);de=Hu(cr,ar(En))}function fr(En){return de=r,ct&&D?At(En):(D=U=r,oe)}function Uo(){de!==r&&bm(de),ze=0,D=xe=U=de=r}function Wa(){return de===r?oe:fr(re())}function Vo(){var En=re(),ns=Vt(En);if(D=arguments,U=this,xe=En,ns){if(de===r)return Ut(xe);if(Xe)return bm(de),de=Hu(cr,v),At(xe)}return de===r&&(de=Hu(cr,v)),oe}return Vo.cancel=Uo,Vo.flush=Wa,Vo}var un=tr(function(c,v){return im(c,1,v)}),Ee=tr(function(c,v,S){return im(c,bi(v)||0,S)});function pe(c){return mi(c,M)}function Pe(c,v){if(typeof c!="function"||v!=null&&typeof v!="function")throw new io(s);var S=function(){var D=arguments,U=v?v.apply(this,D):D[0],J=S.cache;if(J.has(U))return J.get(U);var oe=c.apply(this,D);return S.cache=J.set(U,oe)||J,oe};return S.cache=new(Pe.Cache||so),S}Pe.Cache=so;function Ze(c){if(typeof c!="function")throw new io(s);return function(){var v=arguments;switch(v.length){case 0:return!c.call(this);case 1:return!c.call(this,v[0]);case 2:return!c.call(this,v[0],v[1]);case 3:return!c.call(this,v[0],v[1],v[2])}return!c.apply(this,v)}}function Tt(c){return Qe(2,c)}var Lt=J0(function(c,v){v=v.length==1&&Yt(v[0])?Lr(v[0],Da(Nt())):Lr(an(v,1),Da(Nt()));var S=v.length;return tr(function(D){for(var U=-1,J=ea(D.length,S);++U=v}),Fd=mp(function(){return arguments}())?mp:function(c){return mn(c)&&gr.call(c,"callee")&&!ep.call(c,"callee")},Yt=Ie.isArray,J8=zv?Da(zv):X0;function yo(c){return c!=null&&k_(c.length)&&!Bl(c)}function Sn(c){return mn(c)&&yo(c)}function Z8(c){return c===!0||c===!1||mn(c)&&qn(c)==Oe}var Qu=rm||rE,eV=Ea?Da(Ea):Qi;function tV(c){return mn(c)&&c.nodeType===1&&!Jm(c)}function rV(c){if(c==null)return!0;if(yo(c)&&(Yt(c)||typeof c=="string"||typeof c.splice=="function"||Qu(c)||eh(c)||Fd(c)))return!c.length;var v=Vn(c);if(v==Be||v==ve)return!c.size;if(es(c))return!Xi(c).length;for(var S in c)if(gr.call(c,S))return!1;return!0}function nV(c,v){return po(c,v)}function aV(c,v,S){S=typeof S=="function"?S:r;var D=S?S(c,v):r;return D===r?po(c,v,r,S):!!D}function HS(c){if(!mn(c))return!1;var v=qn(c);return v==ke||v==Fe||typeof c.message=="string"&&typeof c.name=="string"&&!Jm(c)}function oV(c){return typeof c=="number"&&Cu(c)}function Bl(c){if(!cn(c))return!1;var v=qn(c);return v==$e||v==Te||v==we||v==ae}function YT(c){return typeof c=="number"&&c==rr(c)}function k_(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=H}function cn(c){var v=typeof c;return c!=null&&(v=="object"||v=="function")}function mn(c){return c!=null&&typeof c=="object"}var JT=yl?Da(yl):Y0;function iV(c,v){return c===v||Fu(c,v,Ed(v))}function sV(c,v,S){return S=typeof S=="function"?S:r,Fu(c,v,Ed(v),S)}function lV(c){return ZT(c)&&c!=+c}function uV(c){if(kS(c))throw new Gt(o);return um(c)}function cV(c){return c===null}function dV(c){return c==null}function ZT(c){return typeof c=="number"||mn(c)&&qn(c)==Le}function Jm(c){if(!mn(c)||qn(c)!=He)return!1;var v=Ao(c);if(v===null)return!0;var S=gr.call(v,"constructor")&&v.constructor;return typeof S=="function"&&S instanceof S&&Zc.call(S)==Jf}var GS=Uf?Da(Uf):fd;function fV(c){return YT(c)&&c>=-9007199254740991&&c<=H}var eA=yu?Da(yu):pi;function I_(c){return typeof c=="string"||!Yt(c)&&mn(c)&&qn(c)==be}function qo(c){return typeof c=="symbol"||mn(c)&&qn(c)==_e}var eh=x0?Da(x0):pd;function pV(c){return c===r}function hV(c){return mn(c)&&Vn(c)==Ge}function vV(c){return mn(c)&&qn(c)==Mt}var mV=jp(As),gV=jp(function(c,v){return c<=v});function tA(c){if(!c)return[];if(yo(c))return I_(c)?Na(c):da(c);if(Vi&&c[Vi])return yS(c[Vi]());var v=Vn(c),S=v==Be?Kf:v==ve?Es:th;return S(c)}function zl(c){if(!c)return c===0?c:0;if(c=bi(c),c===X||c===-1/0){var v=c<0?-1:1;return v*te}return c===c?c:0}function rr(c){var v=zl(c),S=v%1;return v===v?S?v-S:v:0}function rA(c){return c?Hi(rr(c),0,K):0}function bi(c){if(typeof c=="number")return c;if(qo(c))return ne;if(cn(c)){var v=typeof c.valueOf=="function"?c.valueOf():c;c=cn(v)?v+"":v}if(typeof c!="string")return c===0?c:+c;c=P0(c);var S=Er.test(c);return S||It.test(c)?zf(c.slice(2),S?2:8):rn.test(c)?ne:+c}function nA(c){return Fo(c,bo(c))}function yV(c){return c?Hi(rr(c),-9007199254740991,H):c===0?c:0}function Tr(c){return c==null?"":ka(c)}var bV=zu(function(c,v){if(es(v)||yo(v)){Fo(v,sa(v),c);return}for(var S in v)gr.call(v,S)&&Ol(c,S,v[S])}),aA=zu(function(c,v){Fo(v,bo(v),c)}),j_=zu(function(c,v,S,D){Fo(v,bo(v),c,D)}),_V=zu(function(c,v,S,D){Fo(v,sa(v),c,D)}),xV=gi(fp);function wV(c,v){var S=Iu(c);return v==null?S:Hr(S,v)}var SV=tr(function(c,v){c=jr(c);var S=-1,D=v.length,U=D>2?v[2]:r;for(U&&pa(v[0],v[1],U)&&(D=1);++S1),J}),Fo(c,wd(c),S),D&&(S=Ra(S,g|y|_,km));for(var U=v.length;U--;)wp(S,v[U]);return S});function zV(c,v){return iA(c,Ze(Nt(v)))}var qV=gi(function(c,v){return c==null?{}:pm(c,v)});function iA(c,v){if(c==null)return{};var S=Lr(wd(c),function(D){return[D]});return v=Nt(v),Ms(c,S,function(D,U){return v(D,U[0])})}function UV(c,v,S){v=vi(v,c);var D=-1,U=v.length;for(U||(U=1,c=r);++Dv){var D=c;c=v,v=D}if(S||c%1||v%1){var U=ad();return ea(c+U*(v-c+Nv("1e-"+((U+"").length-1))),v)}return Lu(c,v)}var eW=Tl(function(c,v,S){return v=v.toLowerCase(),c+(S?uA(v):v)});function uA(c){return XS(Tr(c).toLowerCase())}function cA(c){return c=Tr(c),c&&c.replace(gs,I0).replace(g0,"")}function tW(c,v,S){c=Tr(c),v=ka(v);var D=c.length;S=S===r?D:Hi(rr(S),0,D);var U=S;return S-=v.length,S>=0&&c.slice(S,U)==v}function rW(c){return c=Tr(c),c&&Io.test(c)?c.replace(kn,j0):c}function nW(c){return c=Tr(c),c&&je.test(c)?c.replace(ye,"\\$&"):c}var aW=Tl(function(c,v,S){return c+(S?"-":"")+v.toLowerCase()}),oW=Tl(function(c,v,S){return c+(S?" ":"")+v.toLowerCase()}),iW=Sm("toLowerCase");function sW(c,v,S){c=Tr(c),v=rr(v);var D=v?bl(c):0;if(!v||D>=v)return c;var U=(v-D)/2;return _d(Cs(U),S)+c+_d(xl(U),S)}function lW(c,v,S){c=Tr(c),v=rr(v);var D=v?bl(c):0;return v&&D>>0,S?(c=Tr(c),c&&(typeof v=="string"||v!=null&&!GS(v))&&(v=ka(v),!v&&xu(c))?Ji(Na(c),0,S):c.split(v,S)):[]}var vW=Tl(function(c,v,S){return c+(S?" ":"")+XS(v)});function mW(c,v,S){return c=Tr(c),S=S==null?0:Hi(rr(S),0,c.length),v=ka(v),c.slice(S,S+v.length)==v}function gW(c,v,S){var D=Q.templateSettings;S&&pa(c,v,S)&&(v=r),c=Tr(c),v=j_({},v,D,Pm);var U=j_({},v.imports,D.imports,Pm),J=sa(U),oe=Yc(U,J),de,xe,ze=0,qe=v.interpolate||Sa,Xe="__p += '",ct=Jc((v.escape||Sa).source+"|"+qe.source+"|"+(qe===ri?Wt:Sa).source+"|"+(v.evaluate||Sa).source+"|$","g"),At="//# sourceURL="+(gr.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++uS+"]")+` -`;c.replace(ct,function(Vt,cr,fr,Uo,Wa,Vo){return fr||(fr=Uo),Xe+=c.slice(ze,Vo).replace(ao,T0),cr&&(de=!0,Xe+=`' + -__e(`+cr+`) + -'`),Wa&&(xe=!0,Xe+=`'; -`+Wa+`; -__p += '`),fr&&(Xe+=`' + -((__t = (`+fr+`)) == null ? '' : __t) + -'`),ze=Vo+Vt.length,Vt}),Xe+=`'; -`;var Ut=gr.call(v,"variable")&&v.variable;if(!Ut)Xe=`with (obj) { -`+Xe+` -} -`;else if(mt.test(Ut))throw new Gt(d);Xe=(xe?Xe.replace(Qt,""):Xe).replace(Or,"$1").replace(Ur,"$1;"),Xe="function("+(Ut||"obj")+`) { -`+(Ut?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(de?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Xe+`return __p -}`;var ar=fA(function(){return mr(J,At+"return "+Xe).apply(r,oe)});if(ar.source=Xe,HS(ar))throw ar;return ar}function yW(c){return Tr(c).toLowerCase()}function bW(c){return Tr(c).toUpperCase()}function _W(c,v,S){if(c=Tr(c),c&&(S||v===r))return P0(c);if(!c||!(v=ka(v)))return c;var D=Na(c),U=Na(v),J=R0(D,U),oe=Yv(D,U)+1;return Ji(D,J,oe).join("")}function xW(c,v,S){if(c=Tr(c),c&&(S||v===r))return c.slice(0,Xf(c)+1);if(!c||!(v=ka(v)))return c;var D=Na(c),U=Yv(D,Na(v))+1;return Ji(D,0,U).join("")}function wW(c,v,S){if(c=Tr(c),c&&(S||v===r))return c.replace(Ne,"");if(!c||!(v=ka(v)))return c;var D=Na(c),U=R0(D,Na(v));return Ji(D,U).join("")}function SW(c,v){var S=$,D=N;if(cn(v)){var U="separator"in v?v.separator:U;S="length"in v?rr(v.length):S,D="omission"in v?ka(v.omission):D}c=Tr(c);var J=c.length;if(xu(c)){var oe=Na(c);J=oe.length}if(S>=J)return c;var de=S-bl(D);if(de<1)return D;var xe=oe?Ji(oe,0,de).join(""):c.slice(0,de);if(U===r)return xe+D;if(oe&&(de+=xe.length-de),GS(U)){if(c.slice(de).search(U)){var ze,qe=xe;for(U.global||(U=Jc(U.source,Tr(er.exec(U))+"g")),U.lastIndex=0;ze=U.exec(qe);)var Xe=ze.index;xe=xe.slice(0,Xe===r?de:Xe)}}else if(c.indexOf(ka(U),de)!=de){var ct=xe.lastIndexOf(U);ct>-1&&(xe=xe.slice(0,ct))}return xe+D}function EW(c){return c=Tr(c),c&&zn.test(c)?c.replace(Gr,A0):c}var CW=Tl(function(c,v,S){return c+(S?" ":"")+v.toUpperCase()}),XS=Sm("toUpperCase");function dA(c,v,S){return c=Tr(c),v=S?r:v,v===r?gS(c)?xS(c):hS(c):c.match(v)||[]}var fA=tr(function(c,v){try{return ua(c,r,v)}catch(S){return HS(S)?S:new Gt(S)}}),OW=gi(function(c,v){return Zn(v,function(S){S=No(S),ci(c,S,Ye(c[S],c))}),c});function PW(c){var v=c==null?0:c.length,S=Nt();return c=v?Lr(c,function(D){if(typeof D[1]!="function")throw new io(s);return[S(D[0]),D[1]]}):[],tr(function(D){for(var U=-1;++UH)return[];var S=K,D=ea(c,K);v=Nt(v),c-=K;for(var U=Xv(D,v);++S0||v<0)?new Xt(S):(c<0?S=S.takeRight(-c):c&&(S=S.drop(c)),v!==r&&(v=rr(v),S=v<0?S.dropRight(-v):S.take(v-c)),S)},Xt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Xt.prototype.toArray=function(){return this.take(K)},qa(Xt.prototype,function(c,v){var S=/^(?:filter|find|map|reject)|While$/.test(v),D=/^(?:head|last)$/.test(v),U=Q[D?"take"+(v=="last"?"Right":""):v],J=D||/^find/.test(v);U&&(Q.prototype[v]=function(){var oe=this.__wrapped__,de=D?[1]:arguments,xe=oe instanceof Xt,ze=de[0],qe=xe||Yt(oe),Xe=function(cr){var fr=U.apply(Q,Ss([cr],de));return D&&ct?fr[0]:fr};qe&&S&&typeof ze=="function"&&ze.length!=1&&(xe=qe=!1);var ct=this.__chain__,At=!!this.__actions__.length,Ut=J&&!ct,ar=xe&&!At;if(!J&&qe){oe=ar?oe:new Xt(this);var Vt=c.apply(oe,de);return Vt.__actions__.push({func:zo,args:[Xe],thisArg:r}),new ta(Vt,ct)}return Ut&&ar?c.apply(this,de):(Vt=this.thru(Xe),Ut?D?Vt.value()[0]:Vt.value():Vt)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(c){var v=qi[c],S=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",D=/^(?:pop|shift)$/.test(c);Q.prototype[c]=function(){var U=arguments;if(D&&!this.__chain__){var J=this.value();return v.apply(Yt(J)?J:[],U)}return this[S](function(oe){return v.apply(Yt(oe)?oe:[],U)})}}),qa(Xt.prototype,function(c,v){var S=Q[v];if(S){var D=S.name+"";gr.call(Ru,D)||(Ru[D]=[]),Ru[D].push({name:v,func:S})}}),Ru[Uu(r,T).name]=[{name:"wrapper",func:r}],Xt.prototype.clone=sp,Xt.prototype.reverse=am,Xt.prototype.value=ju,Q.prototype.at=Gp,Q.prototype.chain=Dl,Q.prototype.commit=Kp,Q.prototype.next=Gm,Q.prototype.plant=NS,Q.prototype.reverse=Qm,Q.prototype.toJSON=Q.prototype.valueOf=Q.prototype.value=BS,Q.prototype.first=Q.prototype.head,Vi&&(Q.prototype[Vi]=Km),Q},wu=wS();ai?((ai.exports=wu)._=wu,Xc._=wu):Kr._=wu}).call(y7)}(Ay,Ay.exports)),Ay.exports}var Lb=b7(),uE,OA;function m5(){if(OA)return uE;OA=1;var e=Object.prototype.toString;return uE=function(r){var n=e.call(r),a=n==="[object Arguments]";return a||(a=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),a},uE}var cE,PA;function _7(){if(PA)return cE;PA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=m5(),a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),s=a.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(y){var _=y.constructor;return _&&_.prototype===y},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},h=function(){if(typeof window>"u")return!1;for(var y in window)try{if(!l["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{f(window[y])}catch{return!0}}catch{return!0}return!1}(),g=function(y){if(typeof window>"u"||!h)return f(y);try{return f(y)}catch{return!1}};e=function(_){var w=_!==null&&typeof _=="object",E=r.call(_)==="[object Function]",x=n(_),T=w&&r.call(_)==="[object String]",I=[];if(!w&&!E&&!x)throw new TypeError("Object.keys called on a non-object");var R=s&&E;if(T&&_.length>0&&!t.call(_,0))for(var O=0;O<_.length;++O)I.push(String(O));if(x&&_.length>0)for(var C=0;C<_.length;++C)I.push(String(C));else for(var P in _)!(R&&P==="prototype")&&t.call(_,P)&&I.push(String(P));if(o)for(var j=g(_),k=0;k"u"||!E?e:E(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":_&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&E?E(""[Symbol.iterator]()):e,"%Symbol%":_?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":y,"%TypedArray%":T,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(E)try{null.error}catch(X){var R=E(E(X));I["%Error.prototype%"]=R}var O=function X(H){var te;if(H==="%AsyncFunction%")te=l("async function () {}");else if(H==="%GeneratorFunction%")te=l("function* () {}");else if(H==="%AsyncGeneratorFunction%")te=l("async function* () {}");else if(H==="%AsyncGenerator%"){var ne=X("%AsyncGeneratorFunction%");ne&&(te=ne.prototype)}else if(H==="%AsyncIteratorPrototype%"){var K=X("%AsyncGenerator%");K&&E&&(te=E(K.prototype))}return I[H]=te,te},C={__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"]},P=QI(),j=y5(),k=P.call(Function.call,Array.prototype.concat),M=P.call(Function.apply,Array.prototype.splice),$=P.call(Function.call,String.prototype.replace),N=P.call(Function.call,String.prototype.slice),B=P.call(Function.call,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,G=function(H){var te=N(H,0,1),ne=N(H,-1);if(te==="%"&&ne!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(ne==="%"&&te!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var K=[];return $(H,q,function(ee,Ce,se,Se){K[K.length]=se?$(Se,V,"$1"):Ce||ee}),K},Y=function(H,te){var ne=H,K;if(j(C,ne)&&(K=C[ne],ne="%"+K[0]+"%"),j(I,ne)){var ee=I[ne];if(ee===x&&(ee=O(ne)),typeof ee>"u"&&!te)throw new s("intrinsic "+H+" exists, but is not available. Please file an issue!");return{alias:K,name:ne,value:ee}}throw new o("intrinsic "+H+" does not exist!")};return CE=function(H,te){if(typeof H!="string"||H.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new s('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,H)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ne=G(H),K=ne.length>0?ne[0]:"",ee=Y("%"+K+"%",te),Ce=ee.name,se=ee.value,Se=!1,me=ee.alias;me&&(K=me[0],M(ne,k([0,1],me)));for(var we=1,Oe=!0;we=ne.length){var $e=h(se,ie);Oe=!!$e,Oe&&"get"in $e&&!("originalValue"in $e.get)?se=$e.get:se=se[ie]}else Oe=j(se,ie),se=se[ie];Oe&&!Se&&(I[Ce]=se)}}return se},CE}var OE,UA;function XI(){if(UA)return OE;UA=1;var e=Nb(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return OE=t,OE}var PE,VA;function b5(){if(VA)return PE;VA=1;var e=Nb(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return PE=t,PE}var RE,WA;function _5(){if(WA)return RE;WA=1;var e=XI(),t=g5(),r=Db(),n=b5();return RE=function(o,s,d){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,y=!!n&&n(o,s);if(e)e(o,s,{configurable:h===null&&y?y.configurable:!h,enumerable:f===null&&y?y.enumerable:!f,value:d,writable:l===null&&y?y.writable:!l});else if(g||!f&&!l&&!h)o[s]=d;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},RE}var kE,HA;function x5(){if(HA)return kE;HA=1;var e=XI(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},kE=t,kE}var IE,GA;function w5(){if(GA)return IE;GA=1;var e=x7(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,a=_5(),o=function(l){return typeof l=="function"&&r.call(l)==="[object Function]"},s=x5()(),d=function(l,h,g,y){if(h in l){if(y===!0){if(l[h]===g)return}else if(!o(y)||!y())return}s?a(l,h,g,!0):a(l,h,g)},f=function(l,h){var g=arguments.length>2?arguments[2]:{},y=e(h);t&&(y=n.call(y,Object.getOwnPropertySymbols(h)));for(var _=0;_4294967295||o(f)!==f)throw new a("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],h=!0,g=!0;if("length"in d&&n){var y=n(d,"length");y&&!y.configurable&&(h=!1),y&&!y.writable&&(g=!1)}return(h||g||!l)&&(r?t(d,"length",f,!0,!0):t(d,"length",f)),d},TE}var QA;function S5(){return QA||(QA=1,function(e){var t=QI(),r=Nb(),n=j7(),a=Db(),o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),d=r("%Reflect.apply%",!0)||t.call(s,o),f=XI(),l=r("%Math.max%");e.exports=function(y){if(typeof y!="function")throw new a("a function is required");var _=d(t,s,arguments);return n(_,1+l(0,y.length-(arguments.length-1)),!0)};var h=function(){return d(t,o,arguments)};f?f(e.exports,"apply",{value:h}):e.exports.apply=h}(jE)),jE.exports}var AE,XA;function T7(){if(XA)return AE;XA=1;var e=Db();return AE=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},AE}var ME,YA;function A7(){if(YA)return ME;YA=1;var e=Nb(),t=S5(),r=t(e("String.prototype.indexOf"));return ME=function(a,o){var s=e(a,!!o);return typeof s=="function"&&r(a,".prototype.")>-1?t(s):s},ME}var FE,JA;function E5(){if(JA)return FE;JA=1;var e=T7(),t=A7(),r=t("Object.prototype.propertyIsEnumerable"),n=t("Array.prototype.push");return FE=function(o){var s=e(o),d=[];for(var f in s)r(s,f)&&n(d,[f,s[f]]);return d},FE}var $E,ZA;function C5(){if(ZA)return $E;ZA=1;var e=E5();return $E=function(){return typeof Object.entries=="function"?Object.entries:e},$E}var LE,eM;function M7(){if(eM)return LE;eM=1;var e=C5(),t=w5();return LE=function(){var n=e();return t(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},LE}var DE,tM;function F7(){if(tM)return DE;tM=1;var e=w5(),t=S5(),r=E5(),n=C5(),a=M7(),o=t(n(),Object);return e(o,{getPolyfill:n,implementation:r,shim:a}),DE=o,DE}var NE,rM;function $7(){if(rM)return NE;rM=1;var e=function(){};return NE=e,NE}var BE,nM;function L7(){if(nM)return BE;nM=1;var e=F7(),t=$7(),r=y5(),n=function(O){t(!1,O)},a=String.prototype.replace,o=String.prototype.split,s="||||",d=function(R){var O=R%100,C=O%10;return O!==11&&C===1?0:2<=C&&C<=4&&!(O>=12&&O<=14)?1:2},f={pluralTypes:{arabic:function(R){if(R<3)return R;var O=R%100;return O>=3&&O<=10?3:O>=11?4:5},bosnian_serbian:d,chinese:function(){return 0},croatian:d,french:function(R){return R>=2?1:0},german:function(R){return R!==1?1:0},russian:d,lithuanian:function(R){return R%10===1&&R%100!==11?0:R%10>=2&&R%10<=9&&(R%100<11||R%100>19)?1:2},czech:function(R){return R===1?0:R>=2&&R<=4?1:2},polish:function(R){if(R===1)return 0;var O=R%10;return 2<=O&&O<=4&&(R%100<10||R%100>=20)?1:2},icelandic:function(R){return R%10!==1||R%100===11?1:0},slovenian:function(R){var O=R%100;return O===1?0:O===2?1:O===3||O===4?2:3},romanian:function(R){if(R===1)return 0;var O=R%100;return R===0||O>=2&&O<=19?1:2},ukrainian:d},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"],ukrainian:["uk","ua"]}};function l(R){for(var O={},C=e(R),P=0;P{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vf=typeof window>"u"||"Deno"in globalThis;function Ja(){}function N7(e,t){return typeof e=="function"?e(t):e}function C2(e){return typeof e=="number"&&e>=0&&e!==1/0}function P5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sh(e,t){return typeof e=="function"?e(t):e}function ss(e,t){return typeof e=="function"?e(t):e}function oM(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:s,stale:d}=e;if(s){if(n){if(t.queryHash!==JI(s,t.options))return!1}else if(!fb(t.queryKey,s))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||o&&!o(t))}function iM(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Rc(t.options.mutationKey)!==Rc(o))return!1}else if(!fb(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function JI(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rc)(e)}function Rc(e){return JSON.stringify(e,(t,r)=>O2(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function fb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>fb(e[r],t[r])):!1}function R5(e,t){if(e===t)return e;const r=sM(e)&&sM(t);if(r||O2(e)&&O2(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),s=o.length,d=r?[]:{};let f=0;for(let l=0;l{setTimeout(t,e)})}function P2(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?R5(e,t):t}function z7(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function q7(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var ZI=Symbol();function k5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ZI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function I5(e,t){return typeof e=="function"?e(...t):!!e}var nf,uc,Nh,a5,U7=(a5=class extends hv{constructor(){super();Bt(this,nf);Bt(this,uc);Bt(this,Nh);xt(this,Nh,t=>{if(!vf&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ue(this,uc)||this.setEventListener(ue(this,Nh))}onUnsubscribe(){var t;this.hasListeners()||((t=ue(this,uc))==null||t.call(this),xt(this,uc,void 0))}setEventListener(t){var r;xt(this,Nh,t),(r=ue(this,uc))==null||r.call(this),xt(this,uc,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){ue(this,nf)!==t&&(xt(this,nf,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof ue(this,nf)=="boolean"?ue(this,nf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},nf=new WeakMap,uc=new WeakMap,Nh=new WeakMap,a5),ej=new U7,Bh,cc,zh,o5,V7=(o5=class extends hv{constructor(){super();Bt(this,Bh,!0);Bt(this,cc);Bt(this,zh);xt(this,zh,t=>{if(!vf&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){ue(this,cc)||this.setEventListener(ue(this,zh))}onUnsubscribe(){var t;this.hasListeners()||((t=ue(this,cc))==null||t.call(this),xt(this,cc,void 0))}setEventListener(t){var r;xt(this,zh,t),(r=ue(this,cc))==null||r.call(this),xt(this,cc,t(this.setOnline.bind(this)))}setOnline(t){ue(this,Bh)!==t&&(xt(this,Bh,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return ue(this,Bh)}},Bh=new WeakMap,cc=new WeakMap,zh=new WeakMap,o5),I1=new V7;function R2(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function W7(e){return Math.min(1e3*2**e,3e4)}function j5(e){return(e??"online")==="online"?I1.isOnline():!0}var T5=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zE(e){return e instanceof T5}function A5(e){let t=!1,r=0,n=!1,a;const o=R2(),s=E=>{var x;n||(y(new T5(E)),(x=e.abort)==null||x.call(e))},d=()=>{t=!0},f=()=>{t=!1},l=()=>ej.isFocused()&&(e.networkMode==="always"||I1.isOnline())&&e.canRun(),h=()=>j5(e.networkMode)&&e.canRun(),g=E=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,E),a==null||a(),o.resolve(E))},y=E=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,E),a==null||a(),o.reject(E))},_=()=>new Promise(E=>{var x;a=T=>{(n||l())&&E(T)},(x=e.onPause)==null||x.call(e)}).then(()=>{var E;a=void 0,n||(E=e.onContinue)==null||E.call(e)}),w=()=>{if(n)return;let E;const x=r===0?e.initialPromise:void 0;try{E=x??e.fn()}catch(T){E=Promise.reject(T)}Promise.resolve(E).then(g).catch(T=>{var P;if(n)return;const I=e.retry??(vf?0:3),R=e.retryDelay??W7,O=typeof R=="function"?R(r,T):R,C=I===!0||typeof I=="number"&&rl()?void 0:_()).then(()=>{t?y(T):w()})})};return{promise:o,cancel:s,continue:()=>(a==null||a(),o),cancelRetry:d,continueRetry:f,canStart:h,start:()=>(h()?w():_().then(w),o)}}var H7=e=>setTimeout(e,0);function G7(){let e=[],t=0,r=d=>{d()},n=d=>{d()},a=H7;const o=d=>{t?e.push(d):a(()=>{r(d)})},s=()=>{const d=e;e=[],d.length&&a(()=>{n(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||s()}return f},batchCalls:d=>(...f)=>{o(()=>{d(...f)})},schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d},setScheduler:d=>{a=d}}}var Pn=G7(),af,i5,M5=(i5=class{constructor(){Bt(this,af)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),C2(this.gcTime)&&xt(this,af,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vf?1/0:5*60*1e3))}clearGcTimeout(){ue(this,af)&&(clearTimeout(ue(this,af)),xt(this,af,void 0))}},af=new WeakMap,i5),qh,Uh,xi,of,Aa,Ab,sf,as,Hl,s5,K7=(s5=class extends M5{constructor(t){super();Bt(this,as);Bt(this,qh);Bt(this,Uh);Bt(this,xi);Bt(this,of);Bt(this,Aa);Bt(this,Ab);Bt(this,sf);xt(this,sf,!1),xt(this,Ab,t.defaultOptions),this.setOptions(t.options),this.observers=[],xt(this,of,t.client),xt(this,xi,ue(this,of).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xt(this,qh,Q7(this.options)),this.state=t.state??ue(this,qh),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ue(this,Aa))==null?void 0:t.promise}setOptions(t){this.options={...ue(this,Ab),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ue(this,xi).remove(this)}setData(t,r){const n=P2(this.state.data,t,this.options);return or(this,as,Hl).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){or(this,as,Hl).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=ue(this,Aa))==null?void 0:n.promise;return(a=ue(this,Aa))==null||a.cancel(t),r?r.then(Ja).catch(Ja):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ue(this,qh))}isActive(){return this.observers.some(t=>ss(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ZI||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!P5(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=ue(this,Aa))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=ue(this,Aa))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ue(this,xi).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(ue(this,Aa)&&(ue(this,sf)?ue(this,Aa).cancel({revert:!0}):ue(this,Aa).cancelRetry()),this.scheduleGc()),ue(this,xi).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||or(this,as,Hl).call(this,{type:"invalidate"})}fetch(t,r){var f,l,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(ue(this,Aa))return ue(this,Aa).continueRetry(),ue(this,Aa).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(y=>y.options.queryFn);g&&this.setOptions(g.options)}const n=new AbortController,a=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(xt(this,sf,!0),n.signal)})},o=()=>{const g=k5(this.options,r),y={client:ue(this,of),queryKey:this.queryKey,meta:this.meta};return a(y),xt(this,sf,!1),this.options.persister?this.options.persister(g,y,this):g(y)},s={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ue(this,of),state:this.state,fetchFn:o};a(s),(f=this.options.behavior)==null||f.onFetch(s,this),xt(this,Uh,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&or(this,as,Hl).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const d=g=>{var y,_,w,E;zE(g)&&g.silent||or(this,as,Hl).call(this,{type:"error",error:g}),zE(g)||((_=(y=ue(this,xi).config).onError)==null||_.call(y,g,this),(E=(w=ue(this,xi).config).onSettled)==null||E.call(w,this.state.data,g,this)),this.scheduleGc()};return xt(this,Aa,A5({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:g=>{var y,_,w,E;if(g===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(x){d(x);return}(_=(y=ue(this,xi).config).onSuccess)==null||_.call(y,g,this),(E=(w=ue(this,xi).config).onSettled)==null||E.call(w,g,this.state.error,this),this.scheduleGc()},onError:d,onFail:(g,y)=>{or(this,as,Hl).call(this,{type:"failed",failureCount:g,error:y})},onPause:()=>{or(this,as,Hl).call(this,{type:"pause"})},onContinue:()=>{or(this,as,Hl).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),ue(this,Aa).start()}},qh=new WeakMap,Uh=new WeakMap,xi=new WeakMap,of=new WeakMap,Aa=new WeakMap,Ab=new WeakMap,sf=new WeakMap,as=new WeakSet,Hl=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...F5(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return zE(a)&&a.revert&&ue(this,Uh)?{...ue(this,Uh),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Pn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),ue(this,xi).notify({query:this,type:"updated",action:t})})},s5);function F5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:j5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Q7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Hs,l5,X7=(l5=class extends hv{constructor(t={}){super();Bt(this,Hs);this.config=t,xt(this,Hs,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??JI(a,r);let s=this.get(o);return s||(s=new K7({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){ue(this,Hs).has(t.queryHash)||(ue(this,Hs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=ue(this,Hs).get(t.queryHash);r&&(t.destroy(),r===t&&ue(this,Hs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Pn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ue(this,Hs).get(t)}getAll(){return[...ue(this,Hs).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>oM(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>oM(t,n)):r}notify(t){Pn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Pn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Pn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Hs=new WeakMap,l5),Gs,Qa,lf,Ks,rc,u5,Y7=(u5=class extends M5{constructor(t){super();Bt(this,Ks);Bt(this,Gs);Bt(this,Qa);Bt(this,lf);this.mutationId=t.mutationId,xt(this,Qa,t.mutationCache),xt(this,Gs,[]),this.state=t.state||$5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ue(this,Gs).includes(t)||(ue(this,Gs).push(t),this.clearGcTimeout(),ue(this,Qa).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xt(this,Gs,ue(this,Gs).filter(r=>r!==t)),this.scheduleGc(),ue(this,Qa).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ue(this,Gs).length||(this.state.status==="pending"?this.scheduleGc():ue(this,Qa).remove(this))}continue(){var t;return((t=ue(this,lf))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,d,f,l,h,g,y,_,w,E,x,T,I,R,O,C,P,j,k;const r=()=>{or(this,Ks,rc).call(this,{type:"continue"})};xt(this,lf,A5({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,$)=>{or(this,Ks,rc).call(this,{type:"failed",failureCount:M,error:$})},onPause:()=>{or(this,Ks,rc).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ue(this,Qa).canRun(this)}));const n=this.state.status==="pending",a=!ue(this,lf).canStart();try{if(n)r();else{or(this,Ks,rc).call(this,{type:"pending",variables:t,isPaused:a}),await((s=(o=ue(this,Qa).config).onMutate)==null?void 0:s.call(o,t,this));const $=await((f=(d=this.options).onMutate)==null?void 0:f.call(d,t));$!==this.state.context&&or(this,Ks,rc).call(this,{type:"pending",context:$,variables:t,isPaused:a})}const M=await ue(this,lf).start();return await((h=(l=ue(this,Qa).config).onSuccess)==null?void 0:h.call(l,M,t,this.state.context,this)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,M,t,this.state.context)),await((w=(_=ue(this,Qa).config).onSettled)==null?void 0:w.call(_,M,null,this.state.variables,this.state.context,this)),await((x=(E=this.options).onSettled)==null?void 0:x.call(E,M,null,t,this.state.context)),or(this,Ks,rc).call(this,{type:"success",data:M}),M}catch(M){try{throw await((I=(T=ue(this,Qa).config).onError)==null?void 0:I.call(T,M,t,this.state.context,this)),await((O=(R=this.options).onError)==null?void 0:O.call(R,M,t,this.state.context)),await((P=(C=ue(this,Qa).config).onSettled)==null?void 0:P.call(C,void 0,M,this.state.variables,this.state.context,this)),await((k=(j=this.options).onSettled)==null?void 0:k.call(j,void 0,M,t,this.state.context)),M}finally{or(this,Ks,rc).call(this,{type:"error",error:M})}}finally{ue(this,Qa).runNext(this)}}},Gs=new WeakMap,Qa=new WeakMap,lf=new WeakMap,Ks=new WeakSet,rc=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Pn.batch(()=>{ue(this,Gs).forEach(n=>{n.onMutationUpdate(t)}),ue(this,Qa).notify({mutation:this,type:"updated",action:t})})},u5);function $5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kl,os,Mb,c5,J7=(c5=class extends hv{constructor(t={}){super();Bt(this,Kl);Bt(this,os);Bt(this,Mb);this.config=t,xt(this,Kl,new Set),xt(this,os,new Map),xt(this,Mb,0)}build(t,r,n){const a=new Y7({mutationCache:this,mutationId:++T_(this,Mb)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){ue(this,Kl).add(t);const r=M_(t);if(typeof r=="string"){const n=ue(this,os).get(r);n?n.push(t):ue(this,os).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ue(this,Kl).delete(t)){const r=M_(t);if(typeof r=="string"){const n=ue(this,os).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&ue(this,os).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=M_(t);if(typeof r=="string"){const n=ue(this,os).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=M_(t);if(typeof r=="string"){const a=(n=ue(this,os).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pn.batch(()=>{ue(this,Kl).forEach(t=>{this.notify({type:"removed",mutation:t})}),ue(this,Kl).clear(),ue(this,os).clear()})}getAll(){return Array.from(ue(this,Kl))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>iM(r,n))}findAll(t={}){return this.getAll().filter(r=>iM(t,r))}notify(t){Pn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Pn.batch(()=>Promise.all(t.map(r=>r.continue().catch(Ja))))}},Kl=new WeakMap,os=new WeakMap,Mb=new WeakMap,c5);function M_(e){var t;return(t=e.options.scope)==null?void 0:t.id}function uM(e){return{onFetch:(t,r)=>{var h,g,y,_,w;const n=t.options,a=(y=(g=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:g.fetchMore)==null?void 0:y.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],s=((w=t.state.data)==null?void 0:w.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const l=async()=>{let E=!1;const x=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},T=k5(t.options,t.fetchOptions),I=async(R,O,C)=>{if(E)return Promise.reject();if(O==null&&R.pages.length)return Promise.resolve(R);const P={client:t.client,queryKey:t.queryKey,pageParam:O,direction:C?"backward":"forward",meta:t.options.meta};x(P);const j=await T(P),{maxPages:k}=t.options,M=C?q7:z7;return{pages:M(R.pages,j,k),pageParams:M(R.pageParams,O,k)}};if(a&&o.length){const R=a==="backward",O=R?Z7:cM,C={pages:o,pageParams:s},P=O(n,C);d=await I(C,P,R)}else{const R=e??o.length;do{const O=f===0?s[0]??n.initialPageParam:cM(n,d);if(f>0&&O==null)break;d=await I(d,O),f++}while(f{var E,x;return(x=(E=t.options).persister)==null?void 0:x.call(E,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function cM(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Z7(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var bn,dc,fc,Vh,Wh,pc,Hh,Gh,d5,eH=(d5=class{constructor(e={}){Bt(this,bn);Bt(this,dc);Bt(this,fc);Bt(this,Vh);Bt(this,Wh);Bt(this,pc);Bt(this,Hh);Bt(this,Gh);xt(this,bn,e.queryCache||new X7),xt(this,dc,e.mutationCache||new J7),xt(this,fc,e.defaultOptions||{}),xt(this,Vh,new Map),xt(this,Wh,new Map),xt(this,pc,0)}mount(){T_(this,pc)._++,ue(this,pc)===1&&(xt(this,Hh,ej.subscribe(async e=>{e&&(await this.resumePausedMutations(),ue(this,bn).onFocus())})),xt(this,Gh,I1.subscribe(async e=>{e&&(await this.resumePausedMutations(),ue(this,bn).onOnline())})))}unmount(){var e,t;T_(this,pc)._--,ue(this,pc)===0&&((e=ue(this,Hh))==null||e.call(this),xt(this,Hh,void 0),(t=ue(this,Gh))==null||t.call(this),xt(this,Gh,void 0))}isFetching(e){return ue(this,bn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ue(this,dc).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ue(this,bn).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=ue(this,bn).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Sh(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return ue(this,bn).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=ue(this,bn).get(n.queryHash),o=a==null?void 0:a.state.data,s=N7(t,o);if(s!==void 0)return ue(this,bn).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Pn.batch(()=>ue(this,bn).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ue(this,bn).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=ue(this,bn);Pn.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=ue(this,bn);return Pn.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Pn.batch(()=>ue(this,bn).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Ja).catch(Ja)}invalidateQueries(e,t={}){return Pn.batch(()=>(ue(this,bn).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Pn.batch(()=>ue(this,bn).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Ja)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Ja)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=ue(this,bn).build(this,t);return r.isStaleByTime(Sh(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ja).catch(Ja)}fetchInfiniteQuery(e){return e.behavior=uM(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ja).catch(Ja)}ensureInfiniteQueryData(e){return e.behavior=uM(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return I1.isOnline()?ue(this,dc).resumePausedMutations():Promise.resolve()}getQueryCache(){return ue(this,bn)}getMutationCache(){return ue(this,dc)}getDefaultOptions(){return ue(this,fc)}setDefaultOptions(e){xt(this,fc,e)}setQueryDefaults(e,t){ue(this,Vh).set(Rc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ue(this,Vh).values()],r={};return t.forEach(n=>{fb(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){ue(this,Wh).set(Rc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ue(this,Wh).values()],r={};return t.forEach(n=>{fb(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ue(this,fc).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=JI(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ZI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ue(this,fc).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ue(this,bn).clear(),ue(this,dc).clear()}},bn=new WeakMap,dc=new WeakMap,fc=new WeakMap,Vh=new WeakMap,Wh=new WeakMap,pc=new WeakMap,Hh=new WeakMap,Gh=new WeakMap,d5),So,pr,Fb,Xa,uf,Kh,hc,vc,$b,Qh,Xh,cf,df,mc,Yh,Fr,My,k2,I2,j2,T2,A2,M2,F2,L5,f5,tH=(f5=class extends hv{constructor(t,r){super();Bt(this,Fr);Bt(this,So);Bt(this,pr);Bt(this,Fb);Bt(this,Xa);Bt(this,uf);Bt(this,Kh);Bt(this,hc);Bt(this,vc);Bt(this,$b);Bt(this,Qh);Bt(this,Xh);Bt(this,cf);Bt(this,df);Bt(this,mc);Bt(this,Yh,new Set);this.options=r,xt(this,So,t),xt(this,vc,null),xt(this,hc,R2()),this.options.experimental_prefetchInRender||ue(this,hc).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ue(this,pr).addObserver(this),dM(ue(this,pr),this.options)?or(this,Fr,My).call(this):this.updateResult(),or(this,Fr,T2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $2(ue(this,pr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $2(ue(this,pr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,or(this,Fr,A2).call(this),or(this,Fr,M2).call(this),ue(this,pr).removeObserver(this)}setOptions(t){const r=this.options,n=ue(this,pr);if(this.options=ue(this,So).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ss(this.options.enabled,ue(this,pr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");or(this,Fr,F2).call(this),ue(this,pr).setOptions(this.options),r._defaulted&&!k1(this.options,r)&&ue(this,So).getQueryCache().notify({type:"observerOptionsUpdated",query:ue(this,pr),observer:this});const a=this.hasListeners();a&&fM(ue(this,pr),n,this.options,r)&&or(this,Fr,My).call(this),this.updateResult(),a&&(ue(this,pr)!==n||ss(this.options.enabled,ue(this,pr))!==ss(r.enabled,ue(this,pr))||Sh(this.options.staleTime,ue(this,pr))!==Sh(r.staleTime,ue(this,pr)))&&or(this,Fr,k2).call(this);const o=or(this,Fr,I2).call(this);a&&(ue(this,pr)!==n||ss(this.options.enabled,ue(this,pr))!==ss(r.enabled,ue(this,pr))||o!==ue(this,mc))&&or(this,Fr,j2).call(this,o)}getOptimisticResult(t){const r=ue(this,So).getQueryCache().build(ue(this,So),t),n=this.createResult(r,t);return nH(this,n)&&(xt(this,Xa,n),xt(this,Kh,this.options),xt(this,uf,ue(this,pr).state)),n}getCurrentResult(){return ue(this,Xa)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){ue(this,Yh).add(t)}getCurrentQuery(){return ue(this,pr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=ue(this,So).defaultQueryOptions(t),n=ue(this,So).getQueryCache().build(ue(this,So),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return or(this,Fr,My).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ue(this,Xa)))}createResult(t,r){var M;const n=ue(this,pr),a=this.options,o=ue(this,Xa),s=ue(this,uf),d=ue(this,Kh),l=t!==n?t.state:ue(this,Fb),{state:h}=t;let g={...h},y=!1,_;if(r._optimisticResults){const $=this.hasListeners(),N=!$&&dM(t,r),B=$&&fM(t,n,r,a);(N||B)&&(g={...g,...F5(h.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:w,errorUpdatedAt:E,status:x}=g;_=g.data;let T=!1;if(r.placeholderData!==void 0&&_===void 0&&x==="pending"){let $;o!=null&&o.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?($=o.data,T=!0):$=typeof r.placeholderData=="function"?r.placeholderData((M=ue(this,Xh))==null?void 0:M.state.data,ue(this,Xh)):r.placeholderData,$!==void 0&&(x="success",_=P2(o==null?void 0:o.data,$,r),y=!0)}if(r.select&&_!==void 0&&!T)if(o&&_===(s==null?void 0:s.data)&&r.select===ue(this,$b))_=ue(this,Qh);else try{xt(this,$b,r.select),_=r.select(_),_=P2(o==null?void 0:o.data,_,r),xt(this,Qh,_),xt(this,vc,null)}catch($){xt(this,vc,$)}ue(this,vc)&&(w=ue(this,vc),_=ue(this,Qh),E=Date.now(),x="error");const I=g.fetchStatus==="fetching",R=x==="pending",O=x==="error",C=R&&I,P=_!==void 0,k={status:x,fetchStatus:g.fetchStatus,isPending:R,isSuccess:x==="success",isError:O,isInitialLoading:C,isLoading:C,data:_,dataUpdatedAt:g.dataUpdatedAt,error:w,errorUpdatedAt:E,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>l.dataUpdateCount||g.errorUpdateCount>l.errorUpdateCount,isFetching:I,isRefetching:I&&!R,isLoadingError:O&&!P,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:O&&P,isStale:tj(t,r),refetch:this.refetch,promise:ue(this,hc)};if(this.options.experimental_prefetchInRender){const $=q=>{k.status==="error"?q.reject(k.error):k.data!==void 0&&q.resolve(k.data)},N=()=>{const q=xt(this,hc,k.promise=R2());$(q)},B=ue(this,hc);switch(B.status){case"pending":t.queryHash===n.queryHash&&$(B);break;case"fulfilled":(k.status==="error"||k.data!==B.value)&&N();break;case"rejected":(k.status!=="error"||k.error!==B.reason)&&N();break}}return k}updateResult(){const t=ue(this,Xa),r=this.createResult(ue(this,pr),this.options);if(xt(this,uf,ue(this,pr).state),xt(this,Kh,this.options),ue(this,uf).data!==void 0&&xt(this,Xh,ue(this,pr)),k1(r,t))return;xt(this,Xa,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!ue(this,Yh).size)return!0;const s=new Set(o??ue(this,Yh));return this.options.throwOnError&&s.add("error"),Object.keys(ue(this,Xa)).some(d=>{const f=d;return ue(this,Xa)[f]!==t[f]&&s.has(f)})};or(this,Fr,L5).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&or(this,Fr,T2).call(this)}},So=new WeakMap,pr=new WeakMap,Fb=new WeakMap,Xa=new WeakMap,uf=new WeakMap,Kh=new WeakMap,hc=new WeakMap,vc=new WeakMap,$b=new WeakMap,Qh=new WeakMap,Xh=new WeakMap,cf=new WeakMap,df=new WeakMap,mc=new WeakMap,Yh=new WeakMap,Fr=new WeakSet,My=function(t){or(this,Fr,F2).call(this);let r=ue(this,pr).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ja)),r},k2=function(){or(this,Fr,A2).call(this);const t=Sh(this.options.staleTime,ue(this,pr));if(vf||ue(this,Xa).isStale||!C2(t))return;const n=P5(ue(this,Xa).dataUpdatedAt,t)+1;xt(this,cf,setTimeout(()=>{ue(this,Xa).isStale||this.updateResult()},n))},I2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ue(this,pr)):this.options.refetchInterval)??!1},j2=function(t){or(this,Fr,M2).call(this),xt(this,mc,t),!(vf||ss(this.options.enabled,ue(this,pr))===!1||!C2(ue(this,mc))||ue(this,mc)===0)&&xt(this,df,setInterval(()=>{(this.options.refetchIntervalInBackground||ej.isFocused())&&or(this,Fr,My).call(this)},ue(this,mc)))},T2=function(){or(this,Fr,k2).call(this),or(this,Fr,j2).call(this,or(this,Fr,I2).call(this))},A2=function(){ue(this,cf)&&(clearTimeout(ue(this,cf)),xt(this,cf,void 0))},M2=function(){ue(this,df)&&(clearInterval(ue(this,df)),xt(this,df,void 0))},F2=function(){const t=ue(this,So).getQueryCache().build(ue(this,So),this.options);if(t===ue(this,pr))return;const r=ue(this,pr);xt(this,pr,t),xt(this,Fb,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},L5=function(t){Pn.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(ue(this,Xa))}),ue(this,So).getQueryCache().notify({query:ue(this,pr),type:"observerResultsUpdated"})})},f5);function rH(e,t){return ss(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dM(e,t){return rH(e,t)||e.state.data!==void 0&&$2(e,t,t.refetchOnMount)}function $2(e,t,r){if(ss(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&tj(e,t)}return!1}function fM(e,t,r,n){return(e!==t||ss(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&tj(e,r)}function tj(e,t){return ss(t.enabled,e)!==!1&&e.isStaleByTime(Sh(t.staleTime,e))}function nH(e,t){return!k1(e.getCurrentResult(),t)}var gc,yc,Eo,Ql,ru,a1,L2,p5,aH=(p5=class extends hv{constructor(r,n){super();Bt(this,ru);Bt(this,gc);Bt(this,yc);Bt(this,Eo);Bt(this,Ql);xt(this,gc,r),this.setOptions(n),this.bindMethods(),or(this,ru,a1).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=ue(this,gc).defaultMutationOptions(r),k1(this.options,n)||ue(this,gc).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ue(this,Eo),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Rc(n.mutationKey)!==Rc(this.options.mutationKey)?this.reset():((a=ue(this,Eo))==null?void 0:a.state.status)==="pending"&&ue(this,Eo).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=ue(this,Eo))==null||r.removeObserver(this)}onMutationUpdate(r){or(this,ru,a1).call(this),or(this,ru,L2).call(this,r)}getCurrentResult(){return ue(this,yc)}reset(){var r;(r=ue(this,Eo))==null||r.removeObserver(this),xt(this,Eo,void 0),or(this,ru,a1).call(this),or(this,ru,L2).call(this)}mutate(r,n){var a;return xt(this,Ql,n),(a=ue(this,Eo))==null||a.removeObserver(this),xt(this,Eo,ue(this,gc).getMutationCache().build(ue(this,gc),this.options)),ue(this,Eo).addObserver(this),ue(this,Eo).execute(r)}},gc=new WeakMap,yc=new WeakMap,Eo=new WeakMap,Ql=new WeakMap,ru=new WeakSet,a1=function(){var n;const r=((n=ue(this,Eo))==null?void 0:n.state)??$5();xt(this,yc,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},L2=function(r){Pn.batch(()=>{var n,a,o,s,d,f,l,h;if(ue(this,Ql)&&this.hasListeners()){const g=ue(this,yc).variables,y=ue(this,yc).context;(r==null?void 0:r.type)==="success"?((a=(n=ue(this,Ql)).onSuccess)==null||a.call(n,r.data,g,y),(s=(o=ue(this,Ql)).onSettled)==null||s.call(o,r.data,null,g,y)):(r==null?void 0:r.type)==="error"&&((f=(d=ue(this,Ql)).onError)==null||f.call(d,r.error,g,y),(h=(l=ue(this,Ql)).onSettled)==null||h.call(l,void 0,r.error,g,y))}this.listeners.forEach(g=>{g(ue(this,yc))})})},p5),D5=p.createContext(void 0),$i=e=>{const t=p.useContext(D5);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},oH=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),A.jsx(D5.Provider,{value:e,children:t})),N5=p.createContext(!1),iH=()=>p.useContext(N5);N5.Provider;function sH(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var lH=p.createContext(sH()),uH=()=>p.useContext(lH),cH=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},dH=e=>{p.useEffect(()=>{e.clearReset()},[e])},fH=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||I5(r,[e.error,n])),pH=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},hH=(e,t)=>e.isLoading&&e.isFetching&&!t,vH=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,pM=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function mH(e,t,r){var g,y,_,w,E;const n=$i(),a=iH(),o=uH(),s=n.defaultQueryOptions(e);(y=(g=n.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||y.call(g,s),s._optimisticResults=a?"isRestoring":"optimistic",pH(s),cH(s,o),dH(o);const d=!n.getQueryCache().get(s.queryHash),[f]=p.useState(()=>new t(n,s)),l=f.getOptimisticResult(s),h=!a&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(x=>{const T=h?f.subscribe(Pn.batchCalls(x)):Ja;return f.updateResult(),T},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),p.useEffect(()=>{f.setOptions(s)},[s,f]),vH(s,l))throw pM(s,f,o);if(fH({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:n.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw l.error;if((w=(_=n.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||w.call(_,s,l),s.experimental_prefetchInRender&&!vf&&hH(l,a)){const x=d?pM(s,f,o):(E=n.getQueryCache().get(s.queryHash))==null?void 0:E.promise;x==null||x.catch(Ja).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?l:f.trackResult(l)}function jc(e,t){return mH(e,tH)}function Cf(e,t){const r=$i(),[n]=p.useState(()=>new aH(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);const a=p.useSyncExternalStore(p.useCallback(s=>n.subscribe(Pn.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=p.useCallback((s,d)=>{n.mutate(s,d).catch(Ja)},[n]);if(a.error&&I5(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var Ux=v5();const Fy=tt(Ux),gH=h5({__proto__:null,default:Fy},[Ux]);/** - * @remix-run/router v1.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function bH(){return Math.random().toString(36).substr(2,8)}function vM(e,t){return{usr:e.state,key:e.key,idx:t}}function pb(e,t,r,n){return r===void 0&&(r=null),sn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sl(t):t,{state:r,key:t&&t.key||n||bH()})}function gf(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 sl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function _H(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,s=a.history,d=On.Pop,f=null,l=h();l==null&&(l=0,s.replaceState(sn({},s.state,{idx:l}),""));function h(){return(s.state||{idx:null}).idx}function g(){d=On.Pop;let x=h(),T=x==null?null:x-l;l=x,f&&f({action:d,location:E.location,delta:T})}function y(x,T){d=On.Push;let I=pb(E.location,x,T);r&&r(I,x),l=h()+1;let R=vM(I,l),O=E.createHref(I);try{s.pushState(R,"",O)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(O)}o&&f&&f({action:d,location:E.location,delta:1})}function _(x,T){d=On.Replace;let I=pb(E.location,x,T);r&&r(I,x),l=h();let R=vM(I,l),O=E.createHref(I);s.replaceState(R,"",O),o&&f&&f({action:d,location:E.location,delta:0})}function w(x){let T=a.location.origin!=="null"?a.location.origin:a.location.href,I=typeof x=="string"?x:gf(x);return I=I.replace(/ $/,"%20"),Jt(T,"No window.location.(origin|href) available to create URL for href: "+I),new URL(I,T)}let E={get action(){return d},get location(){return e(a,s)},listen(x){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(hM,g),f=x,()=>{a.removeEventListener(hM,g),f=null}},createHref(x){return t(a,x)},createURL:w,encodeLocation(x){let T=w(x);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:y,replace:_,go(x){return s.go(x)}};return E}var zr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zr||(zr={}));const xH=new Set(["lazy","caseSensitive","path","id","index","children"]);function wH(e){return e.index===!0}function j1(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let s=[...r,String(o)],d=typeof a.id=="string"?a.id:s.join("-");if(Jt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Jt(!n[d],'Found a route id collision on id "'+d+`". Route id's must be globally unique within Data Router usages`),wH(a)){let f=sn({},a,t(a),{id:d});return n[d]=f,f}else{let f=sn({},a,t(a),{id:d,children:void 0});return n[d]=f,a.children&&(f.children=j1(a.children,t,s,n)),f}})}function Vd(e,t,r){return r===void 0&&(r="/"),o1(e,t,r,!1)}function o1(e,t,r,n){let a=typeof t=="string"?sl(t):t,o=kc(a.pathname||"/",r);if(o==null)return null;let s=B5(e);EH(s);let d=null;for(let f=0;d==null&&f{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};f.relativePath.startsWith("/")&&(Jt(f.relativePath.startsWith(n),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(n.length));let l=eu([n,f.relativePath]),h=r.concat(f);o.children&&o.children.length>0&&(Jt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),B5(o.children,t,h,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:jH(l,o.index),routesMeta:h})};return e.forEach((o,s)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))a(o,s);else for(let f of z5(o.path))a(o,s,f)}),t}function z5(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let s=z5(n.join("/")),d=[];return d.push(...s.map(f=>f===""?o:[o,f].join("/"))),a&&d.push(...s),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function EH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:TH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const CH=/^:[\w-]+$/,OH=3,PH=2,RH=1,kH=10,IH=-2,mM=e=>e==="*";function jH(e,t){let r=e.split("/"),n=r.length;return r.some(mM)&&(n+=IH),t&&(n+=PH),r.filter(a=>!mM(a)).reduce((a,o)=>a+(CH.test(o)?OH:o===""?RH:kH),n)}function TH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function AH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",s=[];for(let d=0;d{let{paramName:y,isOptional:_}=h;if(y==="*"){let E=d[g]||"";s=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const w=d[g];return _&&!w?l[y]=void 0:l[y]=(w||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:s,pattern:e}}function MH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),mf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,d,f)=>(n.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function q5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mf(!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 kc(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 FH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?sl(e):e;return{pathname:r?r.startsWith("/")?r:$H(r,t):t,search:DH(n),hash:NH(a)}}function $H(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function qE(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 U5(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Vx(e,t){let r=U5(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Wx(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=sl(e):(a=sn({},e),Jt(!a.pathname||!a.pathname.includes("?"),qE("?","pathname","search",a)),Jt(!a.pathname||!a.pathname.includes("#"),qE("#","pathname","hash",a)),Jt(!a.search||!a.search.includes("#"),qE("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,d;if(s==null)d=r;else{let g=t.length-1;if(!n&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}d=g>=0?t[g]:"/"}let f=FH(a,d),l=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(l||h)&&(f.pathname+="/"),f}const eu=e=>e.join("/").replace(/\/\/+/g,"/"),LH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),DH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class T1{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Hx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const V5=["post","put","patch","delete"],BH=new Set(V5),zH=["get",...V5],qH=new Set(zH),UH=new Set([301,302,303,307,308]),VH=new Set([307,308]),UE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},WH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},rj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),W5="remix-router-transitions";function GH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Jt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;a=ye=>({hasErrorBoundary:le(ye)})}else a=HH;let o={},s=j1(e.routes,a,void 0,o),d,f=e.basename||"/",l=e.dataStrategy||YH,h=e.patchRoutesOnNavigation,g=sn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),y=null,_=new Set,w=null,E=null,x=null,T=e.hydrationData!=null,I=Vd(s,e.history.location,f),R=null;if(I==null&&!h){let le=Co(404,{pathname:e.history.location.pathname}),{matches:ye,route:je}=PM(s);I=ye,R={[je.id]:le}}I&&!e.hydrationData&&Bi(I,s,e.history.location.pathname).active&&(I=null);let O;if(I)if(I.some(le=>le.route.lazy))O=!1;else if(!I.some(le=>le.route.loader))O=!0;else if(g.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,ye=e.hydrationData?e.hydrationData.errors:null;if(ye){let je=I.findIndex(Ne=>ye[Ne.route.id]!==void 0);O=I.slice(0,je+1).every(Ne=>!N2(Ne.route,le,ye))}else O=I.every(je=>!N2(je.route,le,ye))}else O=e.hydrationData!=null;else if(O=!1,I=[],g.v7_partialHydration){let le=Bi(null,s,e.history.location.pathname);le.active&&le.matches&&(I=le.matches)}let C,P={historyAction:e.history.action,location:e.history.location,matches:I,initialized:O,navigation:UE,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},j=On.Pop,k=!1,M,$=!1,N=new Map,B=null,q=!1,V=!1,G=[],Y=new Set,X=new Map,H=0,te=-1,ne=new Map,K=new Set,ee=new Map,Ce=new Map,se=new Set,Se=new Map,me=new Map,we;function Oe(){if(y=e.history.listen(le=>{let{action:ye,location:je,delta:Ne}=le;if(we){we(),we=void 0;return}mf(me.size===0||Ne!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let lt=Or({currentLocation:P.location,nextLocation:je,historyAction:ye});if(lt&&Ne!=null){let kt=new Promise(Ft=>{we=Ft});e.history.go(Ne*-1),Qt(lt,{state:"blocked",location:je,proceed(){Qt(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),kt.then(()=>e.history.go(Ne))},reset(){let Ft=new Map(P.blockers);Ft.set(lt,fh),ke({blockers:Ft})}});return}return Le(ye,je)}),r){dG(t,N);let le=()=>fG(t,N);t.addEventListener("pagehide",le),B=()=>t.removeEventListener("pagehide",le)}return P.initialized||Le(On.Pop,P.location,{initialHydration:!0}),C}function ie(){y&&y(),B&&B(),_.clear(),M&&M.abort(),P.fetchers.forEach((le,ye)=>Dt(ye)),P.blockers.forEach((le,ye)=>Ht(ye))}function Fe(le){return _.add(le),()=>_.delete(le)}function ke(le,ye){ye===void 0&&(ye={}),P=sn({},P,le);let je=[],Ne=[];g.v7_fetcherPersist&&P.fetchers.forEach((lt,kt)=>{lt.state==="idle"&&(se.has(kt)?Ne.push(kt):je.push(kt))}),[..._].forEach(lt=>lt(P,{deletedFetchers:Ne,viewTransitionOpts:ye.viewTransitionOpts,flushSync:ye.flushSync===!0})),g.v7_fetcherPersist&&(je.forEach(lt=>P.fetchers.delete(lt)),Ne.forEach(lt=>Dt(lt)))}function $e(le,ye,je){var Ne,lt;let{flushSync:kt}=je===void 0?{}:je,Ft=P.actionData!=null&&P.navigation.formMethod!=null&&is(P.navigation.formMethod)&&P.navigation.state==="loading"&&((Ne=le.state)==null?void 0:Ne._isRedirect)!==!0,ft;ye.actionData?Object.keys(ye.actionData).length>0?ft=ye.actionData:ft=null:Ft?ft=P.actionData:ft=null;let _t=ye.loaderData?CM(P.loaderData,ye.loaderData,ye.matches||[],ye.errors):P.loaderData,mt=P.blockers;mt.size>0&&(mt=new Map(mt),mt.forEach((er,rn)=>mt.set(rn,fh)));let jt=k===!0||P.navigation.formMethod!=null&&is(P.navigation.formMethod)&&((lt=le.state)==null?void 0:lt._isRedirect)!==!0;d&&(s=d,d=void 0),q||j===On.Pop||(j===On.Push?e.history.push(le,le.state):j===On.Replace&&e.history.replace(le,le.state));let Wt;if(j===On.Pop){let er=N.get(P.location.pathname);er&&er.has(le.pathname)?Wt={currentLocation:P.location,nextLocation:le}:N.has(le.pathname)&&(Wt={currentLocation:le,nextLocation:P.location})}else if($){let er=N.get(P.location.pathname);er?er.add(le.pathname):(er=new Set([le.pathname]),N.set(P.location.pathname,er)),Wt={currentLocation:P.location,nextLocation:le}}ke(sn({},ye,{actionData:ft,loaderData:_t,historyAction:j,location:le,initialized:!0,navigation:UE,revalidation:"idle",restoreScrollPosition:vs(le,ye.matches||P.matches),preventScrollReset:jt,blockers:mt}),{viewTransitionOpts:Wt,flushSync:kt===!0}),j=On.Pop,k=!1,$=!1,q=!1,V=!1,G=[]}async function Te(le,ye){if(typeof le=="number"){e.history.go(le);return}let je=D2(P.location,P.matches,f,g.v7_prependBasename,le,g.v7_relativeSplatPath,ye==null?void 0:ye.fromRouteId,ye==null?void 0:ye.relative),{path:Ne,submission:lt,error:kt}=gM(g.v7_normalizeFormMethod,!1,je,ye),Ft=P.location,ft=pb(P.location,Ne,ye&&ye.state);ft=sn({},ft,e.history.encodeLocation(ft));let _t=ye&&ye.replace!=null?ye.replace:void 0,mt=On.Push;_t===!0?mt=On.Replace:_t===!1||lt!=null&&is(lt.formMethod)&<.formAction===P.location.pathname+P.location.search&&(mt=On.Replace);let jt=ye&&"preventScrollReset"in ye?ye.preventScrollReset===!0:void 0,Wt=(ye&&ye.flushSync)===!0,er=Or({currentLocation:Ft,nextLocation:ft,historyAction:mt});if(er){Qt(er,{state:"blocked",location:ft,proceed(){Qt(er,{state:"proceeding",proceed:void 0,reset:void 0,location:ft}),Te(le,ye)},reset(){let rn=new Map(P.blockers);rn.set(er,fh),ke({blockers:rn})}});return}return await Le(mt,ft,{submission:lt,pendingError:kt,preventScrollReset:jt,replace:ye&&ye.replace,enableViewTransition:ye&&ye.viewTransition,flushSync:Wt})}function Be(){if(Mt(),ke({revalidation:"loading"}),P.navigation.state!=="submitting"){if(P.navigation.state==="idle"){Le(P.historyAction,P.location,{startUninterruptedRevalidation:!0});return}Le(j||P.historyAction,P.navigation.location,{overrideNavigation:P.navigation,enableViewTransition:$===!0})}}async function Le(le,ye,je){M&&M.abort(),M=null,j=le,q=(je&&je.startUninterruptedRevalidation)===!0,Io(P.location,P.matches),k=(je&&je.preventScrollReset)===!0,$=(je&&je.enableViewTransition)===!0;let Ne=d||s,lt=je&&je.overrideNavigation,kt=Vd(Ne,ye,f),Ft=(je&&je.flushSync)===!0,ft=Bi(kt,Ne,ye.pathname);if(ft.active&&ft.matches&&(kt=ft.matches),!kt){let{error:Er,notFoundMatches:sr,route:It}=Ur(ye.pathname);$e(ye,{matches:sr,loaderData:{},errors:{[It.id]:Er}},{flushSync:Ft});return}if(P.initialized&&!V&&nG(P.location,ye)&&!(je&&je.submission&&is(je.submission.formMethod))){$e(ye,{matches:kt},{flushSync:Ft});return}M=new AbortController;let _t=rh(e.history,ye,M.signal,je&&je.submission),mt;if(je&&je.pendingError)mt=[Wd(kt).route.id,{type:zr.error,error:je.pendingError}];else if(je&&je.submission&&is(je.submission.formMethod)){let Er=await dt(_t,ye,je.submission,kt,ft.active,{replace:je.replace,flushSync:Ft});if(Er.shortCircuited)return;if(Er.pendingActionResult){let[sr,It]=Er.pendingActionResult;if(Ho(It)&&Hx(It.error)&&It.error.status===404){M=null,$e(ye,{matches:Er.matches,loaderData:{},errors:{[sr]:It.error}});return}}kt=Er.matches||kt,mt=Er.pendingActionResult,lt=VE(ye,je.submission),Ft=!1,ft.active=!1,_t=rh(e.history,_t.url,_t.signal)}let{shortCircuited:jt,matches:Wt,loaderData:er,errors:rn}=await He(_t,ye,kt,ft.active,lt,je&&je.submission,je&&je.fetcherSubmission,je&&je.replace,je&&je.initialHydration===!0,Ft,mt);jt||(M=null,$e(ye,sn({matches:Wt||kt},OM(mt),{loaderData:er,errors:rn})))}async function dt(le,ye,je,Ne,lt,kt){kt===void 0&&(kt={}),Mt();let Ft=uG(ye,je);if(ke({navigation:Ft},{flushSync:kt.flushSync===!0}),lt){let mt=await ri(Ne,ye.pathname,le.signal);if(mt.type==="aborted")return{shortCircuited:!0};if(mt.type==="error"){let jt=Wd(mt.partialMatches).route.id;return{matches:mt.partialMatches,pendingActionResult:[jt,{type:zr.error,error:mt.error}]}}else if(mt.matches)Ne=mt.matches;else{let{notFoundMatches:jt,error:Wt,route:er}=Ur(ye.pathname);return{matches:jt,pendingActionResult:[er.id,{type:zr.error,error:Wt}]}}}let ft,_t=$y(Ne,ye);if(!_t.route.action&&!_t.route.lazy)ft={type:zr.error,error:Co(405,{method:le.method,pathname:ye.pathname,routeId:_t.route.id})};else if(ft=(await De("action",P,le,[_t],Ne,null))[_t.route.id],le.signal.aborted)return{shortCircuited:!0};if(Jd(ft)){let mt;return kt&&kt.replace!=null?mt=kt.replace:mt=wM(ft.response.headers.get("Location"),new URL(le.url),f)===P.location.pathname+P.location.search,await _e(le,ft,!0,{submission:je,replace:mt}),{shortCircuited:!0}}if(bc(ft))throw Co(400,{type:"defer-action"});if(Ho(ft)){let mt=Wd(Ne,_t.route.id);return(kt&&kt.replace)!==!0&&(j=On.Push),{matches:Ne,pendingActionResult:[mt.route.id,ft]}}return{matches:Ne,pendingActionResult:[_t.route.id,ft]}}async function He(le,ye,je,Ne,lt,kt,Ft,ft,_t,mt,jt){let Wt=lt||VE(ye,kt),er=kt||Ft||kM(Wt),rn=!q&&(!g.v7_partialHydration||!_t);if(Ne){if(rn){let $r=Z(jt);ke(sn({navigation:Wt},$r!==void 0?{actionData:$r}:{}),{flushSync:mt})}let ur=await ri(je,ye.pathname,le.signal);if(ur.type==="aborted")return{shortCircuited:!0};if(ur.type==="error"){let $r=Wd(ur.partialMatches).route.id;return{matches:ur.partialMatches,loaderData:{},errors:{[$r]:ur.error}}}else if(ur.matches)je=ur.matches;else{let{error:$r,notFoundMatches:To,route:Jn}=Ur(ye.pathname);return{matches:To,loaderData:{},errors:{[Jn.id]:$r}}}}let Er=d||s,[sr,It]=bM(e.history,P,je,er,ye,g.v7_partialHydration&&_t===!0,g.v7_skipActionErrorRevalidation,V,G,Y,se,ee,K,Er,f,jt);if(Gr(ur=>!(je&&je.some($r=>$r.route.id===ur))||sr&&sr.some($r=>$r.route.id===ur)),te=++H,sr.length===0&&It.length===0){let ur=Pt();return $e(ye,sn({matches:je,loaderData:{},errors:jt&&Ho(jt[1])?{[jt[0]]:jt[1].error}:null},OM(jt),ur?{fetchers:new Map(P.fetchers)}:{}),{flushSync:mt}),{shortCircuited:!0}}if(rn){let ur={};if(!Ne){ur.navigation=Wt;let $r=Z(jt);$r!==void 0&&(ur.actionData=$r)}It.length>0&&(ur.fetchers=ae(It)),ke(ur,{flushSync:mt})}It.forEach(ur=>{Kt(ur.key),ur.controller&&X.set(ur.key,ur.controller)});let Zr=()=>It.forEach(ur=>Kt(ur.key));M&&M.signal.addEventListener("abort",Zr);let{loaderResults:gs,fetcherResults:Sa}=await Ge(P,je,sr,It,le);if(le.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Zr),It.forEach(ur=>X.delete(ur.key));let ao=F_(gs);if(ao)return await _e(le,ao.result,!0,{replace:ft}),{shortCircuited:!0};if(ao=F_(Sa),ao)return K.add(ao.key),await _e(le,ao.result,!0,{replace:ft}),{shortCircuited:!0};let{loaderData:Ir,errors:pl}=EM(P,je,gs,jt,It,Sa,Se);Se.forEach((ur,$r)=>{ur.subscribe(To=>{(To||ur.done)&&Se.delete($r)})}),g.v7_partialHydration&&_t&&P.errors&&(pl=sn({},P.errors,pl));let jo=Pt(),hl=Je(te),ni=jo||hl||It.length>0;return sn({matches:je,loaderData:Ir,errors:pl},ni?{fetchers:new Map(P.fetchers)}:{})}function Z(le){if(le&&!Ho(le[1]))return{[le[0]]:le[1].data};if(P.actionData)return Object.keys(P.actionData).length===0?null:P.actionData}function ae(le){return le.forEach(ye=>{let je=P.fetchers.get(ye.key),Ne=eg(void 0,je?je.data:void 0);P.fetchers.set(ye.key,Ne)}),new Map(P.fetchers)}function fe(le,ye,je,Ne){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Kt(le);let lt=(Ne&&Ne.flushSync)===!0,kt=d||s,Ft=D2(P.location,P.matches,f,g.v7_prependBasename,je,g.v7_relativeSplatPath,ye,Ne==null?void 0:Ne.relative),ft=Vd(kt,Ft,f),_t=Bi(ft,kt,Ft);if(_t.active&&_t.matches&&(ft=_t.matches),!ft){ot(le,ye,Co(404,{pathname:Ft}),{flushSync:lt});return}let{path:mt,submission:jt,error:Wt}=gM(g.v7_normalizeFormMethod,!0,Ft,Ne);if(Wt){ot(le,ye,Wt,{flushSync:lt});return}let er=$y(ft,mt),rn=(Ne&&Ne.preventScrollReset)===!0;if(jt&&is(jt.formMethod)){ve(le,ye,mt,er,ft,_t.active,lt,rn,jt);return}ee.set(le,{routeId:ye,path:mt}),be(le,ye,mt,er,ft,_t.active,lt,rn,jt)}async function ve(le,ye,je,Ne,lt,kt,Ft,ft,_t){Mt(),ee.delete(le);function mt(nn){if(!nn.route.action&&!nn.route.lazy){let In=Co(405,{method:_t.formMethod,pathname:je,routeId:ye});return ot(le,ye,In,{flushSync:Ft}),!0}return!1}if(!kt&&mt(Ne))return;let jt=P.fetchers.get(le);et(le,cG(_t,jt),{flushSync:Ft});let Wt=new AbortController,er=rh(e.history,je,Wt.signal,_t);if(kt){let nn=await ri(lt,je,er.signal);if(nn.type==="aborted")return;if(nn.type==="error"){ot(le,ye,nn.error,{flushSync:Ft});return}else if(nn.matches){if(lt=nn.matches,Ne=$y(lt,je),mt(Ne))return}else{ot(le,ye,Co(404,{pathname:je}),{flushSync:Ft});return}}X.set(le,Wt);let rn=H,sr=(await De("action",P,er,[Ne],lt,le))[Ne.route.id];if(er.signal.aborted){X.get(le)===Wt&&X.delete(le);return}if(g.v7_fetcherPersist&&se.has(le)){if(Jd(sr)||Ho(sr)){et(le,nc(void 0));return}}else{if(Jd(sr))if(X.delete(le),te>rn){et(le,nc(void 0));return}else return K.add(le),et(le,eg(_t)),_e(er,sr,!1,{fetcherSubmission:_t,preventScrollReset:ft});if(Ho(sr)){ot(le,ye,sr.error);return}}if(bc(sr))throw Co(400,{type:"defer-action"});let It=P.navigation.location||P.location,Zr=rh(e.history,It,Wt.signal),gs=d||s,Sa=P.navigation.state!=="idle"?Vd(gs,P.navigation.location,f):P.matches;Jt(Sa,"Didn't find any matches after fetcher action");let ao=++H;ne.set(le,ao);let Ir=eg(_t,sr.data);P.fetchers.set(le,Ir);let[pl,jo]=bM(e.history,P,Sa,_t,It,!1,g.v7_skipActionErrorRevalidation,V,G,Y,se,ee,K,gs,f,[Ne.route.id,sr]);jo.filter(nn=>nn.key!==le).forEach(nn=>{let In=nn.key,Vc=P.fetchers.get(In),Mf=eg(void 0,Vc?Vc.data:void 0);P.fetchers.set(In,Mf),Kt(In),nn.controller&&X.set(In,nn.controller)}),ke({fetchers:new Map(P.fetchers)});let hl=()=>jo.forEach(nn=>Kt(nn.key));Wt.signal.addEventListener("abort",hl);let{loaderResults:ni,fetcherResults:ur}=await Ge(P,Sa,pl,jo,Zr);if(Wt.signal.aborted)return;Wt.signal.removeEventListener("abort",hl),ne.delete(le),X.delete(le),jo.forEach(nn=>X.delete(nn.key));let $r=F_(ni);if($r)return _e(Zr,$r.result,!1,{preventScrollReset:ft});if($r=F_(ur),$r)return K.add($r.key),_e(Zr,$r.result,!1,{preventScrollReset:ft});let{loaderData:To,errors:Jn}=EM(P,Sa,ni,void 0,jo,ur,Se);if(P.fetchers.has(le)){let nn=nc(sr.data);P.fetchers.set(le,nn)}Je(ao),P.navigation.state==="loading"&&ao>te?(Jt(j,"Expected pending action"),M&&M.abort(),$e(P.navigation.location,{matches:Sa,loaderData:To,errors:Jn,fetchers:new Map(P.fetchers)})):(ke({errors:Jn,loaderData:CM(P.loaderData,To,Sa,Jn),fetchers:new Map(P.fetchers)}),V=!1)}async function be(le,ye,je,Ne,lt,kt,Ft,ft,_t){let mt=P.fetchers.get(le);et(le,eg(_t,mt?mt.data:void 0),{flushSync:Ft});let jt=new AbortController,Wt=rh(e.history,je,jt.signal);if(kt){let sr=await ri(lt,je,Wt.signal);if(sr.type==="aborted")return;if(sr.type==="error"){ot(le,ye,sr.error,{flushSync:Ft});return}else if(sr.matches)lt=sr.matches,Ne=$y(lt,je);else{ot(le,ye,Co(404,{pathname:je}),{flushSync:Ft});return}}X.set(le,jt);let er=H,Er=(await De("loader",P,Wt,[Ne],lt,le))[Ne.route.id];if(bc(Er)&&(Er=await nj(Er,Wt.signal,!0)||Er),X.get(le)===jt&&X.delete(le),!Wt.signal.aborted){if(se.has(le)){et(le,nc(void 0));return}if(Jd(Er))if(te>er){et(le,nc(void 0));return}else{K.add(le),await _e(Wt,Er,!1,{preventScrollReset:ft});return}if(Ho(Er)){ot(le,ye,Er.error);return}Jt(!bc(Er),"Unhandled fetcher deferred data"),et(le,nc(Er.data))}}async function _e(le,ye,je,Ne){let{submission:lt,fetcherSubmission:kt,preventScrollReset:Ft,replace:ft}=Ne===void 0?{}:Ne;ye.response.headers.has("X-Remix-Revalidate")&&(V=!0);let _t=ye.response.headers.get("Location");Jt(_t,"Expected a Location header on the redirect Response"),_t=wM(_t,new URL(le.url),f);let mt=pb(P.location,_t,{_isRedirect:!0});if(r){let sr=!1;if(ye.response.headers.has("X-Remix-Reload-Document"))sr=!0;else if(rj.test(_t)){const It=e.history.createURL(_t);sr=It.origin!==t.location.origin||kc(It.pathname,f)==null}if(sr){ft?t.location.replace(_t):t.location.assign(_t);return}}M=null;let jt=ft===!0||ye.response.headers.has("X-Remix-Replace")?On.Replace:On.Push,{formMethod:Wt,formAction:er,formEncType:rn}=P.navigation;!lt&&!kt&&Wt&&er&&rn&&(lt=kM(P.navigation));let Er=lt||kt;if(VH.has(ye.response.status)&&Er&&is(Er.formMethod))await Le(jt,mt,{submission:sn({},Er,{formAction:_t}),preventScrollReset:Ft||k,enableViewTransition:je?$:void 0});else{let sr=VE(mt,lt);await Le(jt,mt,{overrideNavigation:sr,fetcherSubmission:kt,preventScrollReset:Ft||k,enableViewTransition:je?$:void 0})}}async function De(le,ye,je,Ne,lt,kt){let Ft,ft={};try{Ft=await JH(l,le,ye,je,Ne,lt,kt,o,a)}catch(_t){return Ne.forEach(mt=>{ft[mt.route.id]={type:zr.error,error:_t}}),ft}for(let[_t,mt]of Object.entries(Ft))if(aG(mt)){let jt=mt.result;ft[_t]={type:zr.redirect,response:tG(jt,je,_t,lt,f,g.v7_relativeSplatPath)}}else ft[_t]=await eG(mt);return ft}async function Ge(le,ye,je,Ne,lt){let kt=le.matches,Ft=De("loader",le,lt,je,ye,null),ft=Promise.all(Ne.map(async jt=>{if(jt.matches&&jt.match&&jt.controller){let er=(await De("loader",le,rh(e.history,jt.path,jt.controller.signal),[jt.match],jt.matches,jt.key))[jt.match.route.id];return{[jt.key]:er}}else return Promise.resolve({[jt.key]:{type:zr.error,error:Co(404,{pathname:jt.path})}})})),_t=await Ft,mt=(await ft).reduce((jt,Wt)=>Object.assign(jt,Wt),{});return await Promise.all([sG(ye,_t,lt.signal,kt,le.loaderData),lG(ye,mt,Ne)]),{loaderResults:_t,fetcherResults:mt}}function Mt(){V=!0,G.push(...Gr()),ee.forEach((le,ye)=>{X.has(ye)&&Y.add(ye),Kt(ye)})}function et(le,ye,je){je===void 0&&(je={}),P.fetchers.set(le,ye),ke({fetchers:new Map(P.fetchers)},{flushSync:(je&&je.flushSync)===!0})}function ot(le,ye,je,Ne){Ne===void 0&&(Ne={});let lt=Wd(P.matches,ye);Dt(le),ke({errors:{[lt.route.id]:je},fetchers:new Map(P.fetchers)},{flushSync:(Ne&&Ne.flushSync)===!0})}function it(le){return g.v7_fetcherPersist&&(Ce.set(le,(Ce.get(le)||0)+1),se.has(le)&&se.delete(le)),P.fetchers.get(le)||WH}function Dt(le){let ye=P.fetchers.get(le);X.has(le)&&!(ye&&ye.state==="loading"&&ne.has(le))&&Kt(le),ee.delete(le),ne.delete(le),K.delete(le),se.delete(le),Y.delete(le),P.fetchers.delete(le)}function Zt(le){if(g.v7_fetcherPersist){let ye=(Ce.get(le)||0)-1;ye<=0?(Ce.delete(le),se.add(le)):Ce.set(le,ye)}else Dt(le);ke({fetchers:new Map(P.fetchers)})}function Kt(le){let ye=X.get(le);ye&&(ye.abort(),X.delete(le))}function rt(le){for(let ye of le){let je=it(ye),Ne=nc(je.data);P.fetchers.set(ye,Ne)}}function Pt(){let le=[],ye=!1;for(let je of K){let Ne=P.fetchers.get(je);Jt(Ne,"Expected fetcher: "+je),Ne.state==="loading"&&(K.delete(je),le.push(je),ye=!0)}return rt(le),ye}function Je(le){let ye=[];for(let[je,Ne]of ne)if(Ne0}function ut(le,ye){let je=P.blockers.get(le)||fh;return me.get(le)!==ye&&me.set(le,ye),je}function Ht(le){P.blockers.delete(le),me.delete(le)}function Qt(le,ye){let je=P.blockers.get(le)||fh;Jt(je.state==="unblocked"&&ye.state==="blocked"||je.state==="blocked"&&ye.state==="blocked"||je.state==="blocked"&&ye.state==="proceeding"||je.state==="blocked"&&ye.state==="unblocked"||je.state==="proceeding"&&ye.state==="unblocked","Invalid blocker state transition: "+je.state+" -> "+ye.state);let Ne=new Map(P.blockers);Ne.set(le,ye),ke({blockers:Ne})}function Or(le){let{currentLocation:ye,nextLocation:je,historyAction:Ne}=le;if(me.size===0)return;me.size>1&&mf(!1,"A router only supports one blocker at a time");let lt=Array.from(me.entries()),[kt,Ft]=lt[lt.length-1],ft=P.blockers.get(kt);if(!(ft&&ft.state==="proceeding")&&Ft({currentLocation:ye,nextLocation:je,historyAction:Ne}))return kt}function Ur(le){let ye=Co(404,{pathname:le}),je=d||s,{matches:Ne,route:lt}=PM(je);return Gr(),{notFoundMatches:Ne,route:lt,error:ye}}function Gr(le){let ye=[];return Se.forEach((je,Ne)=>{(!le||le(Ne))&&(je.cancel(),ye.push(Ne),Se.delete(Ne))}),ye}function kn(le,ye,je){if(w=le,x=ye,E=je||null,!T&&P.navigation===UE){T=!0;let Ne=vs(P.location,P.matches);Ne!=null&&ke({restoreScrollPosition:Ne})}return()=>{w=null,x=null,E=null}}function zn(le,ye){return E&&E(le,ye.map(Ne=>SH(Ne,P.loaderData)))||le.key}function Io(le,ye){if(w&&x){let je=zn(le,ye);w[je]=x()}}function vs(le,ye){if(w){let je=zn(le,ye),Ne=w[je];if(typeof Ne=="number")return Ne}return null}function Bi(le,ye,je){if(h)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:o1(ye,je,f,!0)}}else return{active:!0,matches:o1(ye,je,f,!0)||[]};return{active:!1,matches:null}}async function ri(le,ye,je){if(!h)return{type:"success",matches:le};let Ne=le;for(;;){let lt=d==null,kt=d||s,Ft=o;try{await h({path:ye,matches:Ne,patch:(mt,jt)=>{je.aborted||xM(mt,jt,kt,Ft,a)}})}catch(mt){return{type:"error",error:mt,partialMatches:Ne}}finally{lt&&!je.aborted&&(s=[...s])}if(je.aborted)return{type:"aborted"};let ft=Vd(kt,ye,f);if(ft)return{type:"success",matches:ft};let _t=o1(kt,ye,f,!0);if(!_t||Ne.length===_t.length&&Ne.every((mt,jt)=>mt.route.id===_t[jt].route.id))return{type:"success",matches:null};Ne=_t}}function fl(le){o={},d=j1(le,a,void 0,o)}function ms(le,ye){let je=d==null;xM(le,ye,d||s,o,a),je&&(s=[...s],ke({}))}return C={get basename(){return f},get future(){return g},get state(){return P},get routes(){return s},get window(){return t},initialize:Oe,subscribe:Fe,enableScrollRestoration:kn,navigate:Te,fetch:fe,revalidate:Be,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:it,deleteFetcher:Zt,dispose:ie,getBlocker:ut,deleteBlocker:Ht,patchRoutes:ms,_internalFetchControllers:X,_internalActiveDeferreds:Se,_internalSetRoutes:fl},C}function KH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function D2(e,t,r,n,a,o,s,d){let f,l;if(s){f=[];for(let g of t)if(f.push(g),g.route.id===s){l=g;break}}else f=t,l=t[t.length-1];let h=Wx(a||".",Vx(f,o),kc(e.pathname,r)||e.pathname,d==="path");if(a==null&&(h.search=e.search,h.hash=e.hash),(a==null||a===""||a===".")&&l){let g=aj(h.search);if(l.route.index&&!g)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&g){let y=new URLSearchParams(h.search),_=y.getAll("index");y.delete("index"),_.filter(E=>E).forEach(E=>y.append("index",E));let w=y.toString();h.search=w?"?"+w:""}}return n&&r!=="/"&&(h.pathname=h.pathname==="/"?r:eu([r,h.pathname])),gf(h)}function gM(e,t,r,n){if(!n||!KH(n))return{path:r};if(n.formMethod&&!iG(n.formMethod))return{path:r,error:Co(405,{method:n.formMethod})};let a=()=>({path:r,error:Co(400,{type:"invalid-body"})}),o=n.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),d=K5(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!is(s))return a();let y=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((_,w)=>{let[E,x]=w;return""+_+E+"="+x+` -`},""):String(n.body);return{path:r,submission:{formMethod:s,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:y}}}else if(n.formEncType==="application/json"){if(!is(s))return a();try{let y=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:s,formAction:d,formEncType:n.formEncType,formData:void 0,json:y,text:void 0}}}catch{return a()}}}Jt(typeof FormData=="function","FormData is not available in this environment");let f,l;if(n.formData)f=B2(n.formData),l=n.formData;else if(n.body instanceof FormData)f=B2(n.body),l=n.body;else if(n.body instanceof URLSearchParams)f=n.body,l=SM(f);else if(n.body==null)f=new URLSearchParams,l=new FormData;else try{f=new URLSearchParams(n.body),l=SM(f)}catch{return a()}let h={formMethod:s,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(is(h.formMethod))return{path:r,submission:h};let g=sl(r);return t&&g.search&&aj(g.search)&&f.append("index",""),g.search="?"+f,{path:gf(g),submission:h}}function yM(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function bM(e,t,r,n,a,o,s,d,f,l,h,g,y,_,w,E){let x=E?Ho(E[1])?E[1].error:E[1].data:void 0,T=e.createURL(t.location),I=e.createURL(a),R=r;o&&t.errors?R=yM(r,Object.keys(t.errors)[0],!0):E&&Ho(E[1])&&(R=yM(r,E[0]));let O=E?E[1].statusCode:void 0,C=s&&O&&O>=400,P=R.filter((k,M)=>{let{route:$}=k;if($.lazy)return!0;if($.loader==null)return!1;if(o)return N2($,t.loaderData,t.errors);if(QH(t.loaderData,t.matches[M],k)||f.some(q=>q===k.route.id))return!0;let N=t.matches[M],B=k;return _M(k,sn({currentUrl:T,currentParams:N.params,nextUrl:I,nextParams:B.params},n,{actionResult:x,actionStatus:O,defaultShouldRevalidate:C?!1:d||T.pathname+T.search===I.pathname+I.search||T.search!==I.search||H5(N,B)}))}),j=[];return g.forEach((k,M)=>{if(o||!r.some(V=>V.route.id===k.routeId)||h.has(M))return;let $=Vd(_,k.path,w);if(!$){j.push({key:M,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(M),B=$y($,k.path),q=!1;y.has(M)?q=!1:l.has(M)?(l.delete(M),q=!0):N&&N.state!=="idle"&&N.data===void 0?q=d:q=_M(B,sn({currentUrl:T,currentParams:t.matches[t.matches.length-1].params,nextUrl:I,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:O,defaultShouldRevalidate:C?!1:d})),q&&j.push({key:M,routeId:k.routeId,path:k.path,matches:$,match:B,controller:new AbortController})}),[P,j]}function N2(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function QH(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function H5(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function _M(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function xM(e,t,r,n,a){var o;let s;if(e){let l=n[e];Jt(l,"No route found to patch children into: routeId = "+e),l.children||(l.children=[]),s=l.children}else s=r;let d=t.filter(l=>!s.some(h=>G5(l,h))),f=j1(d,a,[e||"_","patch",String(((o=s)==null?void 0:o.length)||"0")],n);s.push(...f)}function G5(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>G5(r,o))}):!1}async function XH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];Jt(a,"No route found in manifest");let o={};for(let s in n){let f=a[s]!==void 0&&s!=="hasErrorBoundary";mf(!f,'Route "'+a.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!f&&!xH.has(s)&&(o[s]=n[s])}Object.assign(a,o),Object.assign(a,sn({},t(a),{lazy:void 0}))}async function YH(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,s)=>Object.assign(a,{[r[s].route.id]:o}),{})}async function JH(e,t,r,n,a,o,s,d,f,l){let h=o.map(_=>_.route.lazy?XH(_.route,f,d):void 0),g=o.map((_,w)=>{let E=h[w],x=a.some(I=>I.route.id===_.route.id);return sn({},_,{shouldLoad:x,resolve:async I=>(I&&n.method==="GET"&&(_.route.lazy||_.route.loader)&&(x=!0),x?ZH(t,n,_,E,I,l):Promise.resolve({type:zr.data,result:void 0}))})}),y=await e({matches:g,request:n,params:o[0].params,fetcherKey:s,context:l});try{await Promise.all(h)}catch{}return y}async function ZH(e,t,r,n,a,o){let s,d,f=l=>{let h,g=new Promise((w,E)=>h=E);d=()=>h(),t.signal.addEventListener("abort",d);let y=w=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):l({request:t,params:r.params,context:o},...w!==void 0?[w]:[]),_=(async()=>{try{return{type:"data",result:await(a?a(E=>y(E)):y())}}catch(w){return{type:"error",result:w}}})();return Promise.race([_,g])};try{let l=r.route[e];if(n)if(l){let h,[g]=await Promise.all([f(l).catch(y=>{h=y}),n]);if(h!==void 0)throw h;s=g}else if(await n,l=r.route[e],l)s=await f(l);else if(e==="action"){let h=new URL(t.url),g=h.pathname+h.search;throw Co(405,{method:t.method,pathname:g,routeId:r.route.id})}else return{type:zr.data,result:void 0};else if(l)s=await f(l);else{let h=new URL(t.url),g=h.pathname+h.search;throw Co(404,{pathname:g})}Jt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(l){return{type:zr.error,result:l}}finally{d&&t.signal.removeEventListener("abort",d)}return s}async function eG(e){let{result:t,type:r}=e;if(Q5(t)){let l;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(h){return{type:zr.error,error:h}}return r===zr.error?{type:zr.error,error:new T1(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:zr.data,data:l,statusCode:t.status,headers:t.headers}}if(r===zr.error){if(RM(t)){var n;if(t.data instanceof Error){var a;return{type:zr.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new T1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zr.error,error:t,statusCode:Hx(t)?t.status:void 0}}if(oG(t)){var o,s;return{type:zr.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(RM(t)){var d,f;return{type:zr.data,data:t.data,statusCode:(d=t.init)==null?void 0:d.status,headers:(f=t.init)!=null&&f.headers?new Headers(t.init.headers):void 0}}return{type:zr.data,data:t}}function tG(e,t,r,n,a,o){let s=e.headers.get("Location");if(Jt(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!rj.test(s)){let d=n.slice(0,n.findIndex(f=>f.route.id===r)+1);s=D2(new URL(t.url),d,a,!0,s,o),e.headers.set("Location",s)}return e}function wM(e,t,r){if(rj.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=kc(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function rh(e,t,r,n){let a=e.createURL(K5(t)).toString(),o={signal:r};if(n&&is(n.formMethod)){let{formMethod:s,formEncType:d}=n;o.method=s.toUpperCase(),d==="application/json"?(o.headers=new Headers({"Content-Type":d}),o.body=JSON.stringify(n.json)):d==="text/plain"?o.body=n.text:d==="application/x-www-form-urlencoded"&&n.formData?o.body=B2(n.formData):o.body=n.formData}return new Request(a,o)}function B2(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function SM(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function rG(e,t,r,n,a){let o={},s=null,d,f=!1,l={},h=r&&Ho(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let y=g.route.id,_=t[y];if(Jt(!Jd(_),"Cannot handle redirect results in processLoaderData"),Ho(_)){let w=_.error;h!==void 0&&(w=h,h=void 0),s=s||{};{let E=Wd(e,y);s[E.route.id]==null&&(s[E.route.id]=w)}o[y]=void 0,f||(f=!0,d=Hx(_.error)?_.error.status:500),_.headers&&(l[y]=_.headers)}else bc(_)?(n.set(y,_.deferredData),o[y]=_.deferredData.data,_.statusCode!=null&&_.statusCode!==200&&!f&&(d=_.statusCode),_.headers&&(l[y]=_.headers)):(o[y]=_.data,_.statusCode&&_.statusCode!==200&&!f&&(d=_.statusCode),_.headers&&(l[y]=_.headers))}),h!==void 0&&r&&(s={[r[0]]:h},o[r[0]]=void 0),{loaderData:o,errors:s,statusCode:d||200,loaderHeaders:l}}function EM(e,t,r,n,a,o,s){let{loaderData:d,errors:f}=rG(t,r,n,s);return a.forEach(l=>{let{key:h,match:g,controller:y}=l,_=o[h];if(Jt(_,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(Ho(_)){let w=Wd(e.matches,g==null?void 0:g.route.id);f&&f[w.route.id]||(f=sn({},f,{[w.route.id]:_.error})),e.fetchers.delete(h)}else if(Jd(_))Jt(!1,"Unhandled fetcher revalidation redirect");else if(bc(_))Jt(!1,"Unhandled fetcher deferred data");else{let w=nc(_.data);e.fetchers.set(h,w)}}),{loaderData:d,errors:f}}function CM(e,t,r,n){let a=sn({},t);for(let o of r){let s=o.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(a[s]=t[s]):e[s]!==void 0&&o.route.loader&&(a[s]=e[s]),n&&n.hasOwnProperty(s))break}return a}function OM(e){return e?Ho(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Wd(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function PM(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Co(e,t){let{pathname:r,routeId:n,method:a,type:o,message:s}=t===void 0?{}:t,d="Unknown Server Error",f="Unknown @remix-run/router error";return e===400?(d="Bad Request",a&&r&&n?f="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?f="defer() is not supported in actions":o==="invalid-body"&&(f="Unable to encode submission body")):e===403?(d="Forbidden",f='Route "'+n+'" does not match URL "'+r+'"'):e===404?(d="Not Found",f='No route matches URL "'+r+'"'):e===405&&(d="Method Not Allowed",a&&r&&n?f="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(f='Invalid request method "'+a.toUpperCase()+'"')),new T1(e||500,d,new Error(f),!0)}function F_(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Jd(a))return{key:n,result:a}}}function K5(e){let t=typeof e=="string"?sl(e):e;return gf(sn({},t,{hash:""}))}function nG(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function aG(e){return Q5(e.result)&&UH.has(e.result.status)}function bc(e){return e.type===zr.deferred}function Ho(e){return e.type===zr.error}function Jd(e){return(e&&e.type)===zr.redirect}function RM(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function oG(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Q5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function iG(e){return qH.has(e.toLowerCase())}function is(e){return BH.has(e.toLowerCase())}async function sG(e,t,r,n,a){let o=Object.entries(t);for(let s=0;s(y==null?void 0:y.route.id)===d);if(!l)continue;let h=n.find(y=>y.route.id===l.route.id),g=h!=null&&!H5(h,l)&&(a&&a[l.route.id])!==void 0;bc(f)&&g&&await nj(f,r,!1).then(y=>{y&&(t[d]=y)})}}async function lG(e,t,r){for(let n=0;n(l==null?void 0:l.route.id)===o)&&bc(d)&&(Jt(s,"Expected an AbortController for revalidating fetcher deferred result"),await nj(d,s.signal,!0).then(l=>{l&&(t[a]=l)}))}}async function nj(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zr.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zr.error,error:a}}return{type:zr.data,data:e.deferredData.data}}}function aj(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function $y(e,t){let r=typeof t=="string"?sl(t).search:t.search;if(e[e.length-1].route.index&&aj(r||""))return e[e.length-1];let n=U5(e);return n[n.length-1]}function kM(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:s}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:s,text:void 0}}}function VE(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function uG(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function eg(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function cG(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function nc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function dG(e,t){try{let r=e.sessionStorage.getItem(W5);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function fG(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(W5,JSON.stringify(r))}catch(n){mf(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;tJh(e,q5(t)),[t,e])}function Y5(e){p.useContext(Tc).static||p.useLayoutEffect(e)}function ul(){let{isDataRoute:e}=p.useContext(ll);return e?RG():vG()}function vG(){Ac()||Jt(!1);let e=p.useContext(Bb),{basename:t,future:r,navigator:n}=p.useContext(Tc),{matches:a}=p.useContext(ll),{pathname:o}=Yn(),s=JSON.stringify(Vx(a,r.v7_relativeSplatPath)),d=p.useRef(!1);return Y5(()=>{d.current=!0}),p.useCallback(function(l,h){if(h===void 0&&(h={}),!d.current)return;if(typeof l=="number"){n.go(l);return}let g=Wx(l,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:eu([t,g.pathname])),(h.replace?n.replace:n.push)(g,h.state,h)},[t,n,s,o,e])}const mG=p.createContext(null);function gG(e){let t=p.useContext(ll).outlet;return t&&p.createElement(mG.Provider,{value:e},t)}function Kx(){let{matches:e}=p.useContext(ll),t=e[e.length-1];return t?t.params:{}}function ij(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=p.useContext(Tc),{matches:a}=p.useContext(ll),{pathname:o}=Yn(),s=JSON.stringify(Vx(a,n.v7_relativeSplatPath));return p.useMemo(()=>Wx(e,JSON.parse(s),o,r==="path"),[e,s,o,r])}function yG(e,t){return J5(e,t)}function J5(e,t,r,n){Ac()||Jt(!1);let{navigator:a}=p.useContext(Tc),{matches:o}=p.useContext(ll),s=o[o.length-1],d=s?s.params:{};s&&s.pathname;let f=s?s.pathnameBase:"/";s&&s.route;let l=Yn(),h;if(t){var g;let x=typeof t=="string"?sl(t):t;f==="/"||(g=x.pathname)!=null&&g.startsWith(f)||Jt(!1),h=x}else h=l;let y=h.pathname||"/",_=y;if(f!=="/"){let x=f.replace(/^\//,"").split("/");_="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=Vd(e,{pathname:_}),E=SG(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},d,x.params),pathname:eu([f,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:eu([f,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,r,n);return t&&E?p.createElement(Gx.Provider,{value:{location:yf({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:On.Pop}},E):E}function bG(){let e=CG(),t=Hx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:a},r):null,null)}const _G=p.createElement(bG,null);class xG extends p.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?p.createElement(ll.Provider,{value:this.props.routeContext},p.createElement(X5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wG(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(Bb);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(ll.Provider,{value:t},n)}function SG(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,d=(a=r)==null?void 0:a.errors;if(d!=null){let h=s.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);h>=0||Jt(!1),s=s.slice(0,Math.min(s.length,h+1))}let f=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h=0?s=s.slice(0,l+1):s=[s[0]];break}}}return s.reduceRight((h,g,y)=>{let _,w=!1,E=null,x=null;r&&(_=d&&g.route.id?d[g.route.id]:void 0,E=g.route.errorElement||_G,f&&(l<0&&y===0?(kG("route-fallback"),w=!0,x=null):l===y&&(w=!0,x=g.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,y+1)),I=()=>{let R;return _?R=E:w?R=x:g.route.Component?R=p.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=h,p.createElement(wG,{match:g,routeContext:{outlet:h,matches:T,isDataRoute:r!=null},children:R})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?p.createElement(xG,{location:r.location,revalidation:r.revalidation,component:E,error:_,children:I(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):I()},null)}var Z5=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Z5||{}),ez=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}(ez||{});function tz(e){let t=p.useContext(Bb);return t||Jt(!1),t}function rz(e){let t=p.useContext(oj);return t||Jt(!1),t}function EG(e){let t=p.useContext(ll);return t||Jt(!1),t}function nz(e){let t=EG(),r=t.matches[t.matches.length-1];return r.route.id||Jt(!1),r.route.id}function CG(){var e;let t=p.useContext(X5),r=rz(),n=nz();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let OG=0;function PG(e){let{router:t,basename:r}=tz(),n=rz(),[a,o]=p.useState(""),s=p.useCallback(d=>{if(typeof e!="function")return!!e;if(r==="/")return e(d);let{currentLocation:f,nextLocation:l,historyAction:h}=d;return e({currentLocation:yf({},f,{pathname:kc(f.pathname,r)||f.pathname}),nextLocation:yf({},l,{pathname:kc(l.pathname,r)||l.pathname}),historyAction:h})},[r,e]);return p.useEffect(()=>{let d=String(++OG);return o(d),()=>t.deleteBlocker(d)},[t]),p.useEffect(()=>{a!==""&&t.getBlocker(a,s)},[t,a,s]),a&&n.blockers.has(a)?n.blockers.get(a):fh}function RG(){let{router:e}=tz(Z5.UseNavigateStable),t=nz(ez.UseNavigateStable),r=p.useRef(!1);return Y5(()=>{r.current=!0}),p.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,yf({fromRouteId:t},o)))},[e,t])}const IM={};function kG(e,t,r){IM[e]||(IM[e]=!0)}function IG(e){let{to:t,replace:r,state:n,relative:a}=e;Ac()||Jt(!1);let{future:o,static:s}=p.useContext(Tc),{matches:d}=p.useContext(ll),{pathname:f}=Yn(),l=ul(),h=Wx(t,Vx(d,o.v7_relativeSplatPath),f,a==="path"),g=JSON.stringify(h);return p.useEffect(()=>l(JSON.parse(g),{replace:r,state:n,relative:a}),[l,g,a,r,n]),null}function jG(e){return gG(e.context)}function ya(e){Jt(!1)}function TG(e){let{basename:t="/",children:r=null,location:n,navigationType:a=On.Pop,navigator:o,static:s=!1,future:d}=e;Ac()&&Jt(!1);let f=t.replace(/^\/*/,"/"),l=p.useMemo(()=>({basename:f,navigator:o,static:s,future:yf({v7_relativeSplatPath:!1},d)}),[f,d,o,s]);typeof n=="string"&&(n=sl(n));let{pathname:h="/",search:g="",hash:y="",state:_=null,key:w="default"}=n,E=p.useMemo(()=>{let x=kc(h,f);return x==null?null:{location:{pathname:x,search:g,hash:y,state:_,key:w},navigationType:a}},[f,h,g,y,_,w,a]);return E==null?null:p.createElement(Tc.Provider,{value:l},p.createElement(Gx.Provider,{children:r,value:E}))}function _c(e){let{children:t,location:r}=e;return yG(z2(t),r)}new Promise(()=>{});function z2(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(n,a)=>{if(!p.isValidElement(n))return;let o=[...t,a];if(n.type===p.Fragment){r.push.apply(r,z2(n.props.children,o));return}n.type!==ya&&Jt(!1),!n.props.index||!n.props.children||Jt(!1);let s={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=z2(n.props.children,o)),r.push(s)}),r}function AG(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function FG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $G(e,t){return e.button===0&&(!t||t==="_self")&&!FG(e)}const LG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],DG="6";try{window.__reactRouterVersion=DG}catch{}function NG(e,t){return GH({basename:t==null?void 0:t.basename,future:hb({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:yH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||BG(),routes:e,mapRouteProperties:AG,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function BG(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=hb({},t,{errors:zG(t.errors)})),t}function zG(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new T1(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let s=new o(a.message);s.stack="",r[n]=s}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const qG=p.createContext({isTransitioning:!1}),UG=p.createContext(new Map),VG="startTransition",jM=R1[VG],WG="flushSync",TM=gH[WG];function HG(e){jM?jM(e):e()}function tg(e){TM?TM(e):e()}class GG{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function KG(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[s,d]=p.useState(),[f,l]=p.useState({isTransitioning:!1}),[h,g]=p.useState(),[y,_]=p.useState(),[w,E]=p.useState(),x=p.useRef(new Map),{v7_startTransition:T}=n||{},I=p.useCallback(k=>{T?HG(k):k()},[T]),R=p.useCallback((k,M)=>{let{deletedFetchers:$,flushSync:N,viewTransitionOpts:B}=M;$.forEach(V=>x.current.delete(V)),k.fetchers.forEach((V,G)=>{V.data!==void 0&&x.current.set(G,V.data)});let q=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!B||q){N?tg(()=>o(k)):I(()=>o(k));return}if(N){tg(()=>{y&&(h&&h.resolve(),y.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=r.window.document.startViewTransition(()=>{tg(()=>o(k))});V.finished.finally(()=>{tg(()=>{g(void 0),_(void 0),d(void 0),l({isTransitioning:!1})})}),tg(()=>_(V));return}y?(h&&h.resolve(),y.skipTransition(),E({state:k,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(d(k),l({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,y,h,x,I]);p.useLayoutEffect(()=>r.subscribe(R),[r,R]),p.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new GG)},[f]),p.useEffect(()=>{if(h&&s&&r.window){let k=s,M=h.promise,$=r.window.document.startViewTransition(async()=>{I(()=>o(k)),await M});$.finished.finally(()=>{g(void 0),_(void 0),d(void 0),l({isTransitioning:!1})}),_($)}},[I,s,h,r.window]),p.useEffect(()=>{h&&s&&a.location.key===s.location.key&&h.resolve()},[h,y,a.location,s]),p.useEffect(()=>{!f.isTransitioning&&w&&(d(w.state),l({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),E(void 0))},[f.isTransitioning,w]),p.useEffect(()=>{},[]);let O=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,M,$)=>r.navigate(k,{state:M,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(k,M,$)=>r.navigate(k,{replace:!0,state:M,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[r]),C=r.basename||"/",P=p.useMemo(()=>({router:r,navigator:O,static:!1,basename:C}),[r,O,C]),j=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.createElement(p.Fragment,null,p.createElement(Bb.Provider,{value:P},p.createElement(oj.Provider,{value:a},p.createElement(UG.Provider,{value:x.current},p.createElement(qG.Provider,{value:f},p.createElement(TG,{basename:C,location:a.location,navigationType:a.historyAction,navigator:O,future:j},a.initialized||r.future.v7_partialHydration?p.createElement(QG,{routes:r.routes,future:r.future,state:a}):t))))),null)}const QG=p.memo(XG);function XG(e){let{routes:t,future:r,state:n}=e;return J5(t,void 0,n,r)}const YG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",JG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nu=p.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:s,state:d,target:f,to:l,preventScrollReset:h,viewTransition:g}=t,y=MG(t,LG),{basename:_}=p.useContext(Tc),w,E=!1;if(typeof l=="string"&&JG.test(l)&&(w=l,YG))try{let R=new URL(window.location.href),O=l.startsWith("//")?new URL(R.protocol+l):new URL(l),C=kc(O.pathname,_);O.origin===R.origin&&C!=null?l=C+O.search+O.hash:E=!0}catch{}let x=pG(l,{relative:a}),T=ZG(l,{replace:s,state:d,target:f,preventScrollReset:h,relative:a,viewTransition:g});function I(R){n&&n(R),R.defaultPrevented||T(R)}return p.createElement("a",hb({},y,{href:w||x,onClick:E||o?n:I,ref:r,target:f}))});var AM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(AM||(AM={}));var MM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(MM||(MM={}));function ZG(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:s,viewTransition:d}=t===void 0?{}:t,f=ul(),l=Yn(),h=ij(e,{relative:s});return p.useCallback(g=>{if($G(g,r)){g.preventDefault();let y=n!==void 0?n:gf(l)===gf(h);f(e,{replace:y,state:a,preventScrollReset:o,relative:s,viewTransition:d})}},[l,f,h,n,a,r,e,o,s,d])}var eK="RaStore",tK=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}},q2=tK(),rK=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(eK).concat(t),n=r.length,a={},o=function(d,f){Object.keys(a).forEach(function(l){a[l]&&a[l].key===d&&a[l].callback(f)})},s=function(d){var f;if(((f=d.key)===null||f===void 0?void 0:f.substring(0,n))===r){var l=d.key.substring(n+1),h=d.newValue?FM(d.newValue):void 0;Object.keys(a).forEach(function(g){a[g]&&a[g].key===l&&(h===null?a[g].callback(void 0):a[g].callback(h??void 0))})}};return{setup:function(){if(q2){var d=Ul().getItem("".concat(r,".version"));if(d&&d!==e){var f=Ul();Object.keys(f).forEach(function(l){l.startsWith(r)&&f.removeItem(l)})}Ul().setItem("".concat(r,".version"),e),window.addEventListener("storage",s)}},teardown:function(){q2&&window.removeEventListener("storage",s)},getItem:function(d,f){var l=Ul().getItem("".concat(r,".").concat(d));return l==null?f:FM(l)},setItem:function(d,f){f===void 0?Ul().removeItem("".concat(r,".").concat(d)):Ul().setItem("".concat(r,".").concat(d),JSON.stringify(f)),o(d,f)},removeItem:function(d){Ul().removeItem("".concat(r,".").concat(d)),o(d,void 0)},removeItems:function(d){var f=Ul();Object.keys(f).forEach(function(l){if(l.startsWith("".concat(r,".").concat(d))){f.removeItem(l);var h=l.substring(n+1);o(h,void 0)}})},reset:function(){var d=Ul();Object.keys(d).forEach(function(f){if(f.startsWith(r)){d.removeItem(f);var l=f.substring(n+1);o(l,void 0)}})},subscribe:function(d,f){var l=Math.random().toString();return a[l]={key:d,callback:f},function(){delete a[l]}}}},FM=function(e){try{return JSON.parse(e)}catch{return e}},nK=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),aK=new nK,Ul=function(){return q2?window.localStorage:aK},WE,$M;function az(){if($M)return WE;$M=1;var e=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl;return WE=e,WE}var HE,LM;function ds(){if(LM)return HE;LM=1;var e=az(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return HE=r,HE}var GE,DM;function vv(){if(DM)return GE;DM=1;var e=ds(),t=e.Symbol;return GE=t,GE}var KE,NM;function oK(){if(NM)return KE;NM=1;var e=vv(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function o(s){var d=r.call(s,a),f=s[a];try{s[a]=void 0;var l=!0}catch{}var h=n.call(s);return l&&(d?s[a]=f:delete s[a]),h}return KE=o,KE}var QE,BM;function iK(){if(BM)return QE;BM=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return QE=r,QE}var XE,zM;function mv(){if(zM)return XE;zM=1;var e=vv(),t=oK(),r=iK(),n="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function s(d){return d==null?d===void 0?a:n:o&&o in Object(d)?t(d):r(d)}return XE=s,XE}var YE,qM;function fs(){if(qM)return YE;qM=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return YE=e,YE}var JE,UM;function sj(){if(UM)return JE;UM=1;var e=mv(),t=fs(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function s(d){if(!t(d))return!1;var f=e(d);return f==n||f==a||f==r||f==o}return JE=s,JE}var ZE,VM;function sK(){if(VM)return ZE;VM=1;var e=ds(),t=e["__core-js_shared__"];return ZE=t,ZE}var eC,WM;function lK(){if(WM)return eC;WM=1;var e=sK(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return eC=r,eC}var tC,HM;function oz(){if(HM)return tC;HM=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return tC=r,tC}var rC,GM;function uK(){if(GM)return rC;GM=1;var e=sj(),t=lK(),r=fs(),n=oz(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,d=Object.prototype,f=s.toString,l=d.hasOwnProperty,h=RegExp("^"+f.call(l).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(y){if(!r(y)||t(y))return!1;var _=e(y)?h:o;return _.test(n(y))}return rC=g,rC}var nC,KM;function cK(){if(KM)return nC;KM=1;function e(t,r){return t==null?void 0:t[r]}return nC=e,nC}var aC,QM;function Of(){if(QM)return aC;QM=1;var e=uK(),t=cK();function r(n,a){var o=t(n,a);return e(o)?o:void 0}return aC=r,aC}var oC,XM;function iz(){if(XM)return oC;XM=1;var e=Of(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return oC=t,oC}var iC,YM;function lj(){if(YM)return iC;YM=1;var e=iz();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return iC=t,iC}var sC,JM;function gv(){if(JM)return sC;JM=1;function e(t,r){return t===r||t!==t&&r!==r}return sC=e,sC}var lC,ZM;function uj(){if(ZM)return lC;ZM=1;var e=lj(),t=gv(),r=Object.prototype,n=r.hasOwnProperty;function a(o,s,d){var f=o[s];(!(n.call(o,s)&&t(f,d))||d===void 0&&!(s in o))&&e(o,s,d)}return lC=a,lC}var uC,eF;function cl(){if(eF)return uC;eF=1;var e=Array.isArray;return uC=e,uC}var cC,tF;function lu(){if(tF)return cC;tF=1;function e(t){return t!=null&&typeof t=="object"}return cC=e,cC}var dC,rF;function Qx(){if(rF)return dC;rF=1;var e=mv(),t=lu(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return dC=n,dC}var fC,nF;function dK(){if(nF)return fC;nF=1;var e=cl(),t=Qx(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(o,s){if(e(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||t(o)?!0:n.test(o)||!r.test(o)||s!=null&&o in Object(s)}return fC=a,fC}var pC,aF;function Xx(){if(aF)return pC;aF=1;var e=Of(),t=e(Object,"create");return pC=t,pC}var hC,oF;function fK(){if(oF)return hC;oF=1;var e=Xx();function t(){this.__data__=e?e(null):{},this.size=0}return hC=t,hC}var vC,iF;function pK(){if(iF)return vC;iF=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return vC=e,vC}var mC,sF;function hK(){if(sF)return mC;sF=1;var e=Xx(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(o){var s=this.__data__;if(e){var d=s[o];return d===t?void 0:d}return n.call(s,o)?s[o]:void 0}return mC=a,mC}var gC,lF;function vK(){if(lF)return gC;lF=1;var e=Xx(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var o=this.__data__;return e?o[a]!==void 0:r.call(o,a)}return gC=n,gC}var yC,uF;function mK(){if(uF)return yC;uF=1;var e=Xx(),t="__lodash_hash_undefined__";function r(n,a){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&a===void 0?t:a,this}return yC=r,yC}var bC,cF;function gK(){if(cF)return bC;cF=1;var e=fK(),t=pK(),r=hK(),n=vK(),a=mK();function o(s){var d=-1,f=s==null?0:s.length;for(this.clear();++d-1}return EC=t,EC}var CC,mF;function wK(){if(mF)return CC;mF=1;var e=Yx();function t(r,n){var a=this.__data__,o=e(a,r);return o<0?(++this.size,a.push([r,n])):a[o][1]=n,this}return CC=t,CC}var OC,gF;function Jx(){if(gF)return OC;gF=1;var e=yK(),t=bK(),r=_K(),n=xK(),a=wK();function o(s){var d=-1,f=s==null?0:s.length;for(this.clear();++d-1&&n%1==0&&no?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(o);++a_))return!1;var E=g.get(s),x=g.get(d);if(E&&x)return E==d&&x==s;var T=-1,I=!0,R=f&a?new e:void 0;for(g.set(s,d),g.set(d,s);++T<_;){var O=s[T],C=d[T];if(l)var P=y?l(C,O,T,d,s,g):l(O,C,T,s,d,g);if(P!==void 0){if(P)continue;I=!1;break}if(R){if(!t(d,function(j,k){if(!r(R,k)&&(O===j||h(O,j,f,l,g)))return R.push(k)})){I=!1;break}}else if(!(O===C||h(O,C,f,l,g))){I=!1;break}}return g.delete(s),g.delete(d),I}return dO=o,dO}var fO,a$;function pz(){if(a$)return fO;a$=1;var e=ds(),t=e.Uint8Array;return fO=t,fO}var pO,o$;function ZK(){if(o$)return pO;o$=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,o){n[++r]=[o,a]}),n}return pO=e,pO}var hO,i$;function mj(){if(i$)return hO;i$=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return hO=e,hO}var vO,s$;function eQ(){if(s$)return vO;s$=1;var e=vv(),t=pz(),r=gv(),n=fz(),a=ZK(),o=mj(),s=1,d=2,f="[object Boolean]",l="[object Date]",h="[object Error]",g="[object Map]",y="[object Number]",_="[object RegExp]",w="[object Set]",E="[object String]",x="[object Symbol]",T="[object ArrayBuffer]",I="[object DataView]",R=e?e.prototype:void 0,O=R?R.valueOf:void 0;function C(P,j,k,M,$,N,B){switch(k){case I:if(P.byteLength!=j.byteLength||P.byteOffset!=j.byteOffset)return!1;P=P.buffer,j=j.buffer;case T:return!(P.byteLength!=j.byteLength||!N(new t(P),new t(j)));case f:case l:case y:return r(+P,+j);case h:return P.name==j.name&&P.message==j.message;case _:case E:return P==j+"";case g:var q=a;case w:var V=M&s;if(q||(q=o),P.size!=j.size&&!V)return!1;var G=B.get(P);if(G)return G==j;M|=d,B.set(P,j);var Y=n(q(P),q(j),M,$,N,B);return B.delete(P),Y;case x:if(O)return O.call(P)==O.call(j)}return!1}return vO=C,vO}var mO,l$;function gj(){if(l$)return mO;l$=1;function e(t,r){for(var n=-1,a=r.length,o=t.length;++n-1&&r%1==0&&r<=e}return CO=t,CO}var OO,b$;function oQ(){if(b$)return OO;b$=1;var e=mv(),t=bj(),r=lu(),n="[object Arguments]",a="[object Array]",o="[object Boolean]",s="[object Date]",d="[object Error]",f="[object Function]",l="[object Map]",h="[object Number]",g="[object Object]",y="[object RegExp]",_="[object Set]",w="[object String]",E="[object WeakMap]",x="[object ArrayBuffer]",T="[object DataView]",I="[object Float32Array]",R="[object Float64Array]",O="[object Int8Array]",C="[object Int16Array]",P="[object Int32Array]",j="[object Uint8Array]",k="[object Uint8ClampedArray]",M="[object Uint16Array]",$="[object Uint32Array]",N={};N[I]=N[R]=N[O]=N[C]=N[P]=N[j]=N[k]=N[M]=N[$]=!0,N[n]=N[a]=N[x]=N[o]=N[T]=N[s]=N[d]=N[f]=N[l]=N[h]=N[g]=N[y]=N[_]=N[w]=N[E]=!1;function B(q){return r(q)&&t(q.length)&&!!N[e(q)]}return OO=B,OO}var PO,_$;function iw(){if(_$)return PO;_$=1;function e(t){return function(r){return t(r)}}return PO=e,PO}var Dy={exports:{}};Dy.exports;var x$;function _j(){return x$||(x$=1,function(e,t){var r=az(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,s=o&&r.process,d=function(){try{var f=a&&a.require&&a.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}}();e.exports=d}(Dy,Dy.exports)),Dy.exports}var RO,w$;function xj(){if(w$)return RO;w$=1;var e=oQ(),t=iw(),r=_j(),n=r&&r.isTypedArray,a=n?t(n):e;return RO=a,RO}var kO,S$;function mz(){if(S$)return kO;S$=1;var e=rQ(),t=aw(),r=cl(),n=ow(),a=ew(),o=xj(),s=Object.prototype,d=s.hasOwnProperty;function f(l,h){var g=r(l),y=!g&&t(l),_=!g&&!y&&n(l),w=!g&&!y&&!_&&o(l),E=g||y||_||w,x=E?e(l.length,String):[],T=x.length;for(var I in l)(h||d.call(l,I))&&!(E&&(I=="length"||_&&(I=="offset"||I=="parent")||w&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||a(I,T)))&&x.push(I);return x}return kO=f,kO}var IO,E$;function wj(){if(E$)return IO;E$=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return IO=t,IO}var jO,C$;function gz(){if(C$)return jO;C$=1;function e(t,r){return function(n){return t(r(n))}}return jO=e,jO}var TO,O$;function iQ(){if(O$)return TO;O$=1;var e=gz(),t=e(Object.keys,Object);return TO=t,TO}var AO,P$;function sQ(){if(P$)return AO;P$=1;var e=wj(),t=iQ(),r=Object.prototype,n=r.hasOwnProperty;function a(o){if(!e(o))return t(o);var s=[];for(var d in Object(o))n.call(o,d)&&d!="constructor"&&s.push(d);return s}return AO=a,AO}var MO,R$;function sw(){if(R$)return MO;R$=1;var e=sj(),t=bj();function r(n){return n!=null&&t(n.length)&&!e(n)}return MO=r,MO}var FO,k$;function Sj(){if(k$)return FO;k$=1;var e=mz(),t=sQ(),r=sw();function n(a){return r(a)?e(a):t(a)}return FO=n,FO}var $O,I$;function yz(){if(I$)return $O;I$=1;var e=hz(),t=yj(),r=Sj();function n(a){return e(a,r,t)}return $O=n,$O}var LO,j$;function lQ(){if(j$)return LO;j$=1;var e=yz(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(o,s,d,f,l,h){var g=d&t,y=e(o),_=y.length,w=e(s),E=w.length;if(_!=E&&!g)return!1;for(var x=_;x--;){var T=y[x];if(!(g?T in s:n.call(s,T)))return!1}var I=h.get(o),R=h.get(s);if(I&&R)return I==s&&R==o;var O=!0;h.set(o,s),h.set(s,o);for(var C=g;++x<_;){T=y[x];var P=o[T],j=s[T];if(f)var k=g?f(j,P,T,s,o,h):f(P,j,T,o,s,h);if(!(k===void 0?P===j||l(P,j,d,f,h):k)){O=!1;break}C||(C=T=="constructor")}if(O&&!C){var M=o.constructor,$=s.constructor;M!=$&&"constructor"in o&&"constructor"in s&&!(typeof M=="function"&&M instanceof M&&typeof $=="function"&&$ instanceof $)&&(O=!1)}return h.delete(o),h.delete(s),O}return LO=a,LO}var DO,T$;function uQ(){if(T$)return DO;T$=1;var e=Of(),t=ds(),r=e(t,"DataView");return DO=r,DO}var NO,A$;function cQ(){if(A$)return NO;A$=1;var e=Of(),t=ds(),r=e(t,"Promise");return NO=r,NO}var BO,M$;function bz(){if(M$)return BO;M$=1;var e=Of(),t=ds(),r=e(t,"Set");return BO=r,BO}var zO,F$;function dQ(){if(F$)return zO;F$=1;var e=Of(),t=ds(),r=e(t,"WeakMap");return zO=r,zO}var qO,$$;function lw(){if($$)return qO;$$=1;var e=uQ(),t=cj(),r=cQ(),n=bz(),a=dQ(),o=mv(),s=oz(),d="[object Map]",f="[object Object]",l="[object Promise]",h="[object Set]",g="[object WeakMap]",y="[object DataView]",_=s(e),w=s(t),E=s(r),x=s(n),T=s(a),I=o;return(e&&I(new e(new ArrayBuffer(1)))!=y||t&&I(new t)!=d||r&&I(r.resolve())!=l||n&&I(new n)!=h||a&&I(new a)!=g)&&(I=function(R){var O=o(R),C=O==f?R.constructor:void 0,P=C?s(C):"";if(P)switch(P){case _:return y;case w:return d;case E:return l;case x:return h;case T:return g}return O}),qO=I,qO}var UO,L$;function fQ(){if(L$)return UO;L$=1;var e=pj(),t=fz(),r=eQ(),n=lQ(),a=lw(),o=cl(),s=ow(),d=xj(),f=1,l="[object Arguments]",h="[object Array]",g="[object Object]",y=Object.prototype,_=y.hasOwnProperty;function w(E,x,T,I,R,O){var C=o(E),P=o(x),j=C?h:a(E),k=P?h:a(x);j=j==l?g:j,k=k==l?g:k;var M=j==g,$=k==g,N=j==k;if(N&&s(E)){if(!s(x))return!1;C=!0,M=!1}if(N&&!M)return O||(O=new e),C||d(E)?t(E,x,T,I,R,O):r(E,x,j,T,I,R,O);if(!(T&f)){var B=M&&_.call(E,"__wrapped__"),q=$&&_.call(x,"__wrapped__");if(B||q){var V=B?E.value():E,G=q?x.value():x;return O||(O=new e),R(V,G,T,I,O)}}return N?(O||(O=new e),n(E,x,T,I,R,O)):!1}return UO=w,UO}var VO,D$;function pQ(){if(D$)return VO;D$=1;var e=fQ(),t=lu();function r(n,a,o,s,d){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,o,s,r,d)}return VO=r,VO}var WO,N$;function hQ(){if(N$)return WO;N$=1;var e=pQ();function t(r,n){return e(r,n)}return WO=t,WO}var vQ=hQ();const ki=tt(vQ);var B$=function(e,t){return e&&t?String.prototype.replace.call(e,mQ,function(r,n){return!t.hasOwnProperty(n)||t[n]==null?r:t[n]}):e},mQ=/%\{(.*?)\}/g,gQ={translate:function(e,t){return t!=null&&t._?B$(t._,t):B$(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},Ej=p.createContext(gQ);Ej.displayName="I18nContext";var _z=p.createContext(function(){}),xz=p.createContext({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),z$=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return mP=n,mP}var gP,hL;function jz(){if(hL)return gP;hL=1;var e=MQ(),t=FQ(),r=t(e);return gP=r,gP}var yP,vL;function uw(){if(vL)return yP;vL=1;var e=kz(),t=Iz(),r=jz();function n(a,o){return r(t(a,o,e),a+"")}return yP=n,yP}var bP,mL;function Tz(){if(mL)return bP;mL=1;var e=gv(),t=sw(),r=ew(),n=fs();function a(o,s,d){if(!n(d))return!1;var f=typeof s;return(f=="number"?t(d)&&r(s,d.length):f=="string"&&s in d)?e(d[s],o):!1}return bP=a,bP}var _P,gL;function $Q(){if(gL)return _P;gL=1;var e=uw(),t=Tz();function r(n){return e(function(a,o){var s=-1,d=o.length,f=d>1?o[d-1]:void 0,l=d>2?o[2]:void 0;for(f=n.length>3&&typeof f=="function"?(d--,f):void 0,l&&t(o[0],o[1],l)&&(f=d<3?void 0:f,d=1),a=Object(a);++s=f||V<0||I&&G>=y}function k(){var q=t();if(j(q))return M(q);w=setTimeout(k,P(q))}function M(q){return w=void 0,R&&h?O(q):(h=g=void 0,_)}function $(){w!==void 0&&clearTimeout(w),x=0,h=E=g=w=void 0}function N(){return w===void 0?_:M(t())}function B(){var q=t(),V=j(q);if(h=arguments,g=this,E=q,V){if(w===void 0)return C(E);if(I)return clearTimeout(w),w=setTimeout(k,f),O(E)}return w===void 0&&(w=setTimeout(k,f)),_}return B.cancel=$,B.flush=N,B}return VP=s,VP}var vX=hX();const Tj=tt(vX);var mX=function(e,t){t===void 0&&(t=250);var r=gX(e,t),n=r[0],a=r[1],o=Yn();p.useEffect(function(){var s;n!=null&&((s=o.state)===null||s===void 0?void 0:s._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},gX=function(e,t){t===void 0&&(t=250);var r=_a(e),n=r[0],a=r[1];return p.useEffect(function(){if(!(typeof window>"u")){var o=Tj(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},yX=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return mX(r,a),t},Mc=function(){return p.useContext(Fz)},Pf=function(){var e=Mc();return p.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return Qs("".concat(e,"/").concat(r));case"create":return Qs("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Qs("".concat(e,"/").concat(r)):Qs("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Qs("".concat(e,"/").concat(r)):Qs("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},Qs=function(e){return e.replace("//","/")};function qL(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var $z=function(e,t){if(qL(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 a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. -Be sure to pass the props from the parent. Example: - -const My`).concat(e,` = props => ( - <`).concat(e," {...props}> -); - -The missing props are: `).concat(a.join(", ")))},M1=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),HP}var GP,GL;function zX(){if(GL)return GP;GL=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,d){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;d=d||1;var f=s.slice(0,d),l=s.slice(d);return Array.prototype.concat.call([],n(f),n(l))}function a(s){try{return decodeURIComponent(s)}catch{for(var d=s.match(t)||[],f=1;f{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)]}),KP}var QP,QL;function UX(){return QL||(QL=1,QP=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;oI==null,s=Symbol("encodeFragmentIdentifier");function d(I){switch(I.arrayFormat){case"index":return R=>(O,C)=>{const P=O.length;return C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?O:C===null?[...O,[h(R,I),"[",P,"]"].join("")]:[...O,[h(R,I),"[",h(P,I),"]=",h(C,I)].join("")]};case"bracket":return R=>(O,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?O:C===null?[...O,[h(R,I),"[]"].join("")]:[...O,[h(R,I),"[]=",h(C,I)].join("")];case"colon-list-separator":return R=>(O,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?O:C===null?[...O,[h(R,I),":list="].join("")]:[...O,[h(R,I),":list=",h(C,I)].join("")];case"comma":case"separator":case"bracket-separator":{const R=I.arrayFormat==="bracket-separator"?"[]=":"=";return O=>(C,P)=>P===void 0||I.skipNull&&P===null||I.skipEmptyString&&P===""?C:(P=P===null?"":P,C.length===0?[[h(O,I),R,h(P,I)].join("")]:[[C,h(P,I)].join(I.arrayFormatSeparator)])}default:return R=>(O,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?O:C===null?[...O,h(R,I)]:[...O,[h(R,I),"=",h(C,I)].join("")]}}function f(I){let R;switch(I.arrayFormat){case"index":return(O,C,P)=>{if(R=/\[(\d*)\]$/.exec(O),O=O.replace(/\[\d*\]$/,""),!R){P[O]=C;return}P[O]===void 0&&(P[O]={}),P[O][R[1]]=C};case"bracket":return(O,C,P)=>{if(R=/(\[\])$/.exec(O),O=O.replace(/\[\]$/,""),!R){P[O]=C;return}if(P[O]===void 0){P[O]=[C];return}P[O]=[].concat(P[O],C)};case"colon-list-separator":return(O,C,P)=>{if(R=/(:list)$/.exec(O),O=O.replace(/:list$/,""),!R){P[O]=C;return}if(P[O]===void 0){P[O]=[C];return}P[O]=[].concat(P[O],C)};case"comma":case"separator":return(O,C,P)=>{const j=typeof C=="string"&&C.includes(I.arrayFormatSeparator),k=typeof C=="string"&&!j&&g(C,I).includes(I.arrayFormatSeparator);C=k?g(C,I):C;const M=j||k?C.split(I.arrayFormatSeparator).map($=>g($,I)):C===null?C:g(C,I);P[O]=M};case"bracket-separator":return(O,C,P)=>{const j=/(\[\])$/.test(O);if(O=O.replace(/\[\]$/,""),!j){P[O]=C&&g(C,I);return}const k=C===null?[]:C.split(I.arrayFormatSeparator).map(M=>g(M,I));if(P[O]===void 0){P[O]=k;return}P[O]=[].concat(P[O],k)};default:return(O,C,P)=>{if(P[O]===void 0){P[O]=C;return}P[O]=[].concat(P[O],C)}}}function l(I){if(typeof I!="string"||I.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(I,R){return R.encode?R.strict?t(I):encodeURIComponent(I):I}function g(I,R){return R.decode?r(I):I}function y(I){return Array.isArray(I)?I.sort():typeof I=="object"?y(Object.keys(I)).sort((R,O)=>Number(R)-Number(O)).map(R=>I[R]):I}function _(I){const R=I.indexOf("#");return R!==-1&&(I=I.slice(0,R)),I}function w(I){let R="";const O=I.indexOf("#");return O!==-1&&(R=I.slice(O)),R}function E(I){I=_(I);const R=I.indexOf("?");return R===-1?"":I.slice(R+1)}function x(I,R){return R.parseNumbers&&!Number.isNaN(Number(I))&&typeof I=="string"&&I.trim()!==""?I=Number(I):R.parseBooleans&&I!==null&&(I.toLowerCase()==="true"||I.toLowerCase()==="false")&&(I=I.toLowerCase()==="true"),I}function T(I,R){R=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},R),l(R.arrayFormatSeparator);const O=f(R),C=Object.create(null);if(typeof I!="string"||(I=I.trim().replace(/^[?#&]/,""),!I))return C;for(const P of I.split("&")){if(P==="")continue;let[j,k]=n(R.decode?P.replace(/\+/g," "):P,"=");k=k===void 0?null:["comma","separator","bracket-separator"].includes(R.arrayFormat)?k:g(k,R),O(g(j,R),k,C)}for(const P of Object.keys(C)){const j=C[P];if(typeof j=="object"&&j!==null)for(const k of Object.keys(j))j[k]=x(j[k],R);else C[P]=x(j,R)}return R.sort===!1?C:(R.sort===!0?Object.keys(C).sort():Object.keys(C).sort(R.sort)).reduce((P,j)=>{const k=C[j];return k&&typeof k=="object"&&!Array.isArray(k)?P[j]=y(k):P[j]=k,P},Object.create(null))}e.extract=E,e.parse=T,e.stringify=(I,R)=>{if(!I)return"";R=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},R),l(R.arrayFormatSeparator);const O=k=>R.skipNull&&o(I[k])||R.skipEmptyString&&I[k]==="",C=d(R),P={};for(const k of Object.keys(I))O(k)||(P[k]=I[k]);const j=Object.keys(P);return R.sort!==!1&&j.sort(R.sort),j.map(k=>{const M=I[k];return M===void 0?"":M===null?h(k,R):Array.isArray(M)?M.length===0&&R.arrayFormat==="bracket-separator"?h(k,R)+"[]":M.reduce(C(k),[]).join("&"):h(k,R)+"="+h(M,R)}).filter(k=>k.length>0).join("&")},e.parseUrl=(I,R)=>{R=Object.assign({decode:!0},R);const[O,C]=n(I,"#");return Object.assign({url:O.split("?")[0]||"",query:T(E(I),R)},R&&R.parseFragmentIdentifier&&C?{fragmentIdentifier:g(C,R)}:{})},e.stringifyUrl=(I,R)=>{R=Object.assign({encode:!0,strict:!0,[s]:!0},R);const O=_(I.url).split("?")[0]||"",C=e.extract(I.url),P=e.parse(C,{sort:!1}),j=Object.assign(P,I.query);let k=e.stringify(j,R);k&&(k=`?${k}`);let M=w(I.url);return I.fragmentIdentifier&&(M=`#${R[s]?h(I.fragmentIdentifier,R):I.fragmentIdentifier}`),`${O}${k}${M}`},e.pick=(I,R,O)=>{O=Object.assign({parseFragmentIdentifier:!0,[s]:!1},O);const{url:C,query:P,fragmentIdentifier:j}=e.parseUrl(I,O);return e.stringifyUrl({url:C,query:a(P,R),fragmentIdentifier:j},O)},e.exclude=(I,R,O)=>{const C=Array.isArray(R)?P=>!R.includes(P):(P,j)=>!R(P,j);return e.pick(I,C,O)}}(WP)),WP}var ev=VX(),F1=function(){return F1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new Wz(f&&f.message||o,a,f)):Promise.resolve({status:a,headers:s,body:d,json:f})})},GX=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},Hz=function(e,t){var r;return t===void 0&&(t=[]),GX(e)?Object.assign.apply(Object,WX([{}],Object.keys(e).map(function(n){return Hz(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},XP={exports:{}},YL;function KX(){return YL||(YL=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(f,l,h){this.fn=f,this.context=l,this.once=h||!1}function o(f,l,h,g,y){if(typeof h!="function")throw new TypeError("The listener must be a function");var _=new a(h,g||f,y),w=r?r+l:l;return f._events[w]?f._events[w].fn?f._events[w]=[f._events[w],_]:f._events[w].push(_):(f._events[w]=_,f._eventsCount++),f}function s(f,l){--f._eventsCount===0?f._events=new n:delete f._events[l]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var l=[],h,g;if(this._eventsCount===0)return l;for(g in h=this._events)t.call(h,g)&&l.push(r?g.slice(1):g);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(h)):l},d.prototype.listeners=function(l){var h=r?r+l:l,g=this._events[h];if(!g)return[];if(g.fn)return[g.fn];for(var y=0,_=g.length,w=new Array(_);y<_;y++)w[y]=g[y].fn;return w},d.prototype.listenerCount=function(l){var h=r?r+l:l,g=this._events[h];return g?g.fn?1:g.length:0},d.prototype.emit=function(l,h,g,y,_,w){var E=r?r+l:l;if(!this._events[E])return!1;var x=this._events[E],T=arguments.length,I,R;if(x.fn){switch(x.once&&this.removeListener(l,x.fn,void 0,!0),T){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,h),!0;case 3:return x.fn.call(x.context,h,g),!0;case 4:return x.fn.call(x.context,h,g,y),!0;case 5:return x.fn.call(x.context,h,g,y,_),!0;case 6:return x.fn.call(x.context,h,g,y,_,w),!0}for(R=1,I=new Array(T-1);R0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message},eY=["getList","getMany","getManyReference"],Zo=function(){var e=p.useContext(Mj)||Aj,t=Gz(),r=p.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],s=0;s0),n=Ke.useRef(e.isMutating()>0),a=Ke.useState(r.current||n.current),o=a[0],s=a[1];return Ke.useEffect(function(){t.current=!0;var d=e.getQueryCache().subscribe(Pn.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,s(r.current||n.current))})),f=e.getMutationCache().subscribe(Pn.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,s(r.current||n.current))}));return function(){t.current=!1,d(),f()}},[e]),o},dl=function(){var e=$i();return p.useCallback(function(){e.invalidateQueries()},[e])},H2=function(){return H2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o(h)?a>1?r(h,a-1,o,s,d):e(d,h):s||(d[d.length]=h)}return d}return tR=r,tR}var rR,tD;function sY(){if(tD)return rR;tD=1;function e(t,r,n,a){for(var o=t.length,s=n+(a?1:-1);a?s--:++s-1}return iR=t,iR}var sR,iD;function Xz(){if(iD)return sR;iD=1;function e(t,r,n){for(var a=-1,o=t==null?0:t.length;++a=s){var T=l?null:a(f);if(T)return o(T);w=!1,y=n,x=new e}else x=l?[]:E;e:for(;++g<_;){var I=f[g],R=l?l(I):I;if(I=h||I!==0?I:0,w&&R===R){for(var O=x.length;O--;)if(x[O]===R)continue e;l&&x.push(R),E.push(I)}else y(x,R,h)||(x!==E&&x.push(R),E.push(I))}return E}return cR=d,cR}var dR,cD;function hY(){if(cD)return dR;cD=1;var e=Fj(),t=uw(),r=pY(),n=Pj(),a=t(function(o){return r(e(o,1,n,!0))});return dR=a,dR}var vY=hY();const Yz=tt(vY);var G2=function(){return G2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?V(G):G},{updatedAt:B}),a.setQueriesData({queryKey:[k,"getManyReference"]},function(G){return G&&G.data?{data:V(G.data),total:G.total}:G},{updatedAt:B})},O=Cf(Nr(Nr({mutationFn:function(j){var k=j===void 0?{}:j,M=k.resource,$=M===void 0?e:M,N=k.id,B=N===void 0?_.current.id:N,q=k.data,V=q===void 0?_.current.data:q,G=k.meta,Y=G===void 0?_.current.meta:G,X=k.previousData,H=X===void 0?_.current.previousData:X;if(!$)throw new Error("useUpdate mutation requires a non-empty resource");if(B==null)throw new Error("useUpdate mutation requires a non-empty id");if(!V)throw new Error("useUpdate mutation requires a non-empty data object");return E.current($,{id:B,data:V,previousData:H,meta:Y}).then(function(te){var ne=te.data;return ne})}},g),{onMutate:function(j){return fD(void 0,void 0,void 0,function(){var k;return pD(this,function(M){switch(M.label){case 0:return g.onMutate?[4,g.onMutate(j)]:[3,2];case 1:return k=M.sent()||{},[2,Nr({snapshot:w.current},k)];case 2:return[2,{snapshot:w.current}]}})})},onError:function(j,k,M){if(k===void 0&&(k={}),(y.current==="optimistic"||y.current==="undoable")&&M.snapshot.forEach(function($){var N=$[0],B=$[1];a.setQueryData(N,B)}),x.current)return x.current(j,k,M);if(g.onError)return g.onError(j,k,M)},onSuccess:function(j,k,M){if(k===void 0&&(k={}),y.current==="pessimistic"){var $=k.resource,N=$===void 0?e:$,B=k.id,q=B===void 0?o:B;R({resource:N,id:q,data:j}),g.onSuccess&&!I.current&&g.onSuccess(j,k,M)}},onSettled:function(j,k,M,$){if(M===void 0&&(M={}),(y.current==="optimistic"||y.current==="undoable")&&$.snapshot.forEach(function(N){var B=N[0];a.invalidateQueries({queryKey:B})}),T.current)return T.current(j,k,M,$);if(g.onSettled)return g.onSettled(j,k,M,$)}})),C=function(j,k,M){return j===void 0&&(j=e),k===void 0&&(k={}),M===void 0&&(M={}),fD(void 0,void 0,void 0,function(){var $,N,B,q,V,G,Y,X,H,te,ne,K,ee,Ce,se;return pD(this,function(Se){switch(Se.label){case 0:return $=M.mutationMode,N=M.returnPromise,B=N===void 0?g.returnPromise:N,q=M.onError,V=M.onSettled,G=M.onSuccess,Y=hD(M,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),h?E.current=h(n.update.bind(n)):E.current=n.update,I.current=!!G,x.current=q,T.current=V,_.current=t,$&&(y.current=$),B&&y.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),y.current==="pessimistic"?B?[2,O.mutateAsync(Nr({resource:j},k),Nr({onSuccess:G},Y))]:[2,O.mutate(Nr({resource:j},k),Nr({onSuccess:G},Y))]:(X=k.id,H=X===void 0?o:X,te=k.data,ne=te===void 0?s:te,K=k.meta,ee=K===void 0?d:K,Ce=a.getQueryData([j,"getOne",{id:String(H),meta:ee}]),se=[[j,"getOne",{id:String(H),meta:ee}],[j,"getList"],[j,"getInfiniteList"],[j,"getMany"],[j,"getManyReference"]],w.current=se.reduce(function(me,we){return me.concat(a.getQueriesData({queryKey:we}))},[]),[4,Promise.all(w.current.map(function(me){var we=me[0];return a.cancelQueries({queryKey:we})}))]);case 1:return Se.sent(),R({resource:j,id:H,data:ne}),setTimeout(function(){G?G(Nr(Nr({},Ce),ne),Nr({resource:j},k),{snapshot:w.current}):g.onSuccess&&!I.current&&g.onSuccess(Nr(Nr({},Ce),ne),Nr({resource:j},k),{snapshot:w.current})},0),y.current==="optimistic"?[2,O.mutate(Nr({resource:j},k))]:(vb.once("end",function(me){var we=me.isUndo;we?w.current.forEach(function(Oe){var ie=Oe[0],Fe=Oe[1];a.setQueryData(ie,Fe)}):O.mutate(Nr({resource:j},k))}),[2])}})})},P=p.useMemo(function(){return Nr({isLoading:O.isPending},O)},[O]);return[wr(C),P]},Ha=function(){return Ha=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?M($):$},{updatedAt:k}),a.setQueriesData({queryKey:[C,"getManyReference"]},function($){if(!$||!$.data)return $;var N=M($.data),B=N.length<$.data.length;return B?{data:N,total:$.total-1}:$},{updatedAt:k})},T=Cf(Ha(Ha({mutationFn:function(O){var C=O===void 0?{}:O,P=C.resource,j=P===void 0?e:P,k=C.id,M=k===void 0?g.current.id:k,$=C.previousData,N=$===void 0?g.current.previousData:$,B=C.meta,q=B===void 0?g.current.meta:B;if(!j)throw new Error("useDelete mutation requires a non-empty resource");if(M==null)throw new Error("useDelete mutation requires a non-empty id");return n.delete(j,{id:M,previousData:N,meta:q}).then(function(V){var G=V.data;return G})}},l),{onMutate:function(O){return vD(void 0,void 0,void 0,function(){var C;return mD(this,function(P){switch(P.label){case 0:return l.onMutate?[4,l.onMutate(O)]:[3,2];case 1:return C=P.sent()||{},[2,Ha({snapshot:y.current},C)];case 2:return[2,{snapshot:y.current}]}})})},onError:function(O,C,P){if(C===void 0&&(C={}),(h.current==="optimistic"||h.current==="undoable")&&P.snapshot.forEach(function(j){var k=j[0],M=j[1];a.setQueryData(k,M)}),l.onError&&!_.current)return l.onError(O,C,P)},onSuccess:function(O,C,P){if(C===void 0&&(C={}),h.current==="pessimistic"){var j=C.resource,k=j===void 0?e:j,M=C.id,$=M===void 0?o:M;x({resource:k,id:$}),l.onSuccess&&!w.current&&l.onSuccess(O,C,P)}},onSettled:function(O,C,P,j){if(P===void 0&&(P={}),(h.current==="optimistic"||h.current==="undoable")&&j.snapshot.forEach(function(k){var M=k[0];a.invalidateQueries({queryKey:M})}),l.onSettled&&!E.current)return l.onSettled(O,C,P,j)}})),I=function(O,C,P){return O===void 0&&(O=e),C===void 0&&(C={}),P===void 0&&(P={}),vD(void 0,void 0,void 0,function(){var j,k,M,$,N,B,q;return mD(this,function(V){switch(V.label){case 0:return j=P.mutationMode,k=gD(P,["mutationMode"]),_.current=!!P.onError,w.current=!!P.onSuccess,E.current=!!P.onSettled,g.current=t,j&&(h.current=j),h.current==="pessimistic"?[2,T.mutate(Ha({resource:O},C),k)]:(M=C.id,$=M===void 0?o:M,N=C.previousData,B=N===void 0?s:N,q=[[O,"getList"],[O,"getInfiniteList"],[O,"getMany"],[O,"getManyReference"]],y.current=q.reduce(function(G,Y){return G.concat(a.getQueriesData({queryKey:Y}))},[]),[4,Promise.all(y.current.map(function(G){var Y=G[0];return a.cancelQueries({queryKey:Y})}))]);case 1:return V.sent(),x({resource:O,id:$}),setTimeout(function(){P.onSuccess?P.onSuccess(B,Ha({resource:O},C),{snapshot:y.current}):l.onSuccess&&l.onSuccess(B,Ha({resource:O},C),{snapshot:y.current})},0),h.current==="optimistic"?[2,T.mutate(Ha({resource:O},C),{onSettled:P.onSettled,onError:P.onError})]:(vb.once("end",function(G){var Y=G.isUndo;Y?y.current.forEach(function(X){var H=X[0],te=X[1];a.setQueryData(H,te)}):T.mutate(Ha({resource:O},C),{onSettled:P.onSettled,onError:P.onError})}),[2])}})})},R=p.useMemo(function(){return Ha({isLoading:T.isPending},T)},[T]);return[wr(I),R]},Ga=function(){return Ga=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?k(M):M},{updatedAt:j}),a.setQueriesData({queryKey:[O,"getManyReference"]},function(M){if(!M||!M.data)return M;var $=k(M.data),N=$.length=0?s[l].apply(s,rg(rg([],g,!1),[h],!1)):o.apply(void 0,g)};return s.length>0?s[l].apply(s,rg(rg([],d,!1),[h],!1)):o.apply(void 0,d)}},[]),a=p.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},$1=function(){return $1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;K||E(typeof Y=="string"?Y:Y.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Y=="string"?Y:Y instanceof Error||typeof Y=="object"&&Y!==null&&Y.hasOwnProperty("message")?Y.message:void 0}})}},C),{returnPromise:!0,getMutateWithMiddlewares:k})),N=$[0],B=$[1].isPending,q=p.useCallback(function(Y,X){X===void 0&&(X={});var H=X.transform,te=X.meta,ne=TD(X,["transform","meta"]);return Promise.resolve(H?H(Y):o?o(Y):Y).then(function(K){return ID(void 0,void 0,void 0,function(){var ee,Ce;return jD(this,function(se){switch(se.label){case 0:return se.trys.push([0,2,,3]),[4,N(f,{data:K,meta:te??O},ne)];case 1:return se.sent(),[3,3];case 2:return ee=se.sent(),(ee instanceof Wz||typeof ee=="object"&&ee!==null&&ee.hasOwnProperty("body"))&&((Ce=ee.body)===null||Ce===void 0?void 0:Ce.errors)!=null?[2,ee.body.errors]:[3,3];case 3:return[2]}})})})},[N,O,f,o]),V=_v(),G=w("ra.page.create",{name:V(f,1)});return{isFetching:!1,isLoading:!1,isPending:B,saving:B,defaultTitle:G,save:q,resource:f,record:T,redirect:y,registerMutationMiddleware:j,unregisterMutationMiddleware:M}},DY=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ev.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},NY=function(e,t){return t?"edit":e?"show":"list"},Lj=p.createContext(void 0);Lj.displayName="RecordContext";var Fc=function(e){var t=e.children,r=e.value;return p.createElement(Lj.Provider,{value:r},t)},Dj=p.createContext(null);Dj.displayName="CreateContext";var L1=function(){return L1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!Be||a!=="pessimistic")&&E(typeof ie=="string"?ie:ie.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ie=="string"?ie:ie instanceof Error||typeof ie=="object"&&ie!==null&&ie.hasOwnProperty("message")?ie.message:void 0}})}},M),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:B})),me=Se[0],we=Se[1].isPending,Oe=p.useCallback(function(ie,Fe){var ke=Fe===void 0?{}:Fe,$e=ke.onSuccess,Te=ke.onError,Be=ke.transform,Le=ke.meta;return Promise.resolve(Be?Be(ie,{previousData:se.previousData}):g?g(ie,{previousData:se.previousData}):ie).then(function(dt){return AD(void 0,void 0,void 0,function(){var He,Z;return MD(this,function(ae){switch(ae.label){case 0:return ae.trys.push([0,2,,3]),[4,me(y,{id:R,data:dt,meta:Le??P},{onError:Te,onSuccess:$e})];case 1:return ae.sent(),[3,3];case 2:return He=ae.sent(),((Z=He.body)===null||Z===void 0?void 0:Z.errors)!=null?[2,He.body.errors]:[3,3];case 3:return[2]}})})})},[R,P,y,g,me,se.previousData]);return{defaultTitle:Ce,error:Y,isFetching:H,isLoading:X,isPending:te,mutationMode:a,record:G,redirect:h,refetch:ne,registerMutationMiddleware:N,resource:y,save:Oe,saving:we,unregisterMutationMiddleware:q}},WY="list",Sr=function(e){var t=p.useContext(Lj);return e&&e.record||t},nq=function(e){var t=e.value,r=e.children;return t?p.createElement(Fc,{value:t},r):r},Nj=p.createContext(null);Nj.displayName="EditContext";var HY=function(e){var t=e.children,r=e.value;return p.createElement(Nj.Provider,{value:r},p.createElement(eq,{value:tq(r)},p.createElement(Fc,{value:r&&r.record},t)))},GY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":e(l)){case"string":return[{item:h,value:this._handleString(l,h)}];case"number":return[{item:h,value:this._handleNumber(l,h)}];case"boolean":return[{item:h,value:this._handleBoolean.bind(this)(l,h)}]}return this.checkComplex(l,h)}},{key:"_handleObject",value:function(l){var h=[];for(var g in l){var y=l[g],_=this.check(y,g,g,l);h=h.concat(_)}return h}},{key:"_handleArray",value:function(l){for(var h=this,g=[],y,_=0;_0&&!x.item&&y===void 0&&(y=x);g=g.concat(E)}}return g}},{key:"_handleBoolean",value:function(l){var h;return l?h=this._options.booleanTrueString||"true":h=this._options.booleanFalseString||"false",h}},{key:"_handleString",value:function(l){return l}},{key:"_handleNumber",value:function(l){return l}},{key:"_handleDate",value:function(l){return l.toLocaleDateString()}}]),d}();OR=a;var o=typeof window>"u"?Yl:window;function s(d,f){if(d instanceof o[f])return!0;switch(typeof d>"u"?"undefined":e(d)){case"string":return f==="String";case"boolean":return f==="Boolean";case"number":return f==="Number"}return!1}return OR}var PR,BD;function aJ(){return BD||(BD=1,PR=function(t,r,n){var a=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),s=t+t,d=t==='"'?function(f){return f.indexOf(r)>=0||f.indexOf(a)>=0||f.indexOf('"')>=0}:function(f){return f.indexOf(r)>=0||f.indexOf(a)>=0};return function(f){return n&&(f=""+f),f.replace&&(f=f.replace(o,s),(n||d(f))&&(f=t+f+t)),f}}),PR}var RR,zD;function oJ(){if(zD)return RR;zD=1;var e=function(){function s(d,f){for(var l=0;l0&&(T=T.concat(Array(I).join(".").split("."))),l&&this._options.fillGaps&&(T=T.map(g)),h.push(T.join(this._options.rowDelimiter)),l=T}}catch(R){_=!0,w=R}finally{try{!y&&E.return&&E.return()}finally{if(_)throw w}}return h}},{key:"_parseArray",value:function(f,l){var h=this;this._headers=this._headers||[];var g=[],y=void 0,_=function(P){var j=h._headers.indexOf(P);return j===-1&&(h._headers.push(P),j=h._headers.indexOf(P)),j};y=function(P){var j=[],k=function(ne){return j.push(ne.map(function(K){return K??""}))},M=function(){return new Array(h._headers.length).fill(null)},$={},N=M(),B=!0,q=!1,V=void 0;try{for(var G=P[Symbol.iterator](),Y;!(B=(Y=G.next()).done);B=!0){var X=Y.value,H=_(X.item);if(N[H]!=null&&(k(N),N=M()),$[H]=$[H]||0,h._options.fillTopRow&&$[H]0&&k(N),g=g.concat(h._checkRows(j))};var w=!0,E=!1,x=void 0;try{for(var T=f[Symbol.iterator](),I;!(w=(I=T.next()).done);w=!0){var R=I.value,O=h._handler.check(R,h._options.mainPathItem,R,f);y(O)}}catch(C){E=!0,x=C}finally{try{!w&&T.return&&T.return()}finally{if(E)throw x}}return!l&&h._options.includeHeaders&&g.unshift(this.headers),r(g,h._options.endOfLine)}},{key:"_parseObject",value:function(f){var l=this,h=[],g=[],y=void 0,_=[[],[]];y=function(T){var I=T.value||T.value===0?T.value.toString():l._options.undefinedString;if(I=l._escape(I),l._options.verticalOutput){var R=[T.item,I];h.push(R.join(l._options.rowDelimiter))}else _[0].push(T.item),_[1].push(I)};for(var w in f){var E="";this._options.mainPathItem&&(E=this._options.mainPathItem+this._options.headerPathString),g=this._handler.check(f[w],E+w,w,f),g.forEach(y)}return this._options.verticalOutput||(h.push(_[0].join(this._options.rowDelimiter)),h.push(_[1].join(this._options.rowDelimiter))),r(h,this._options.endOfLine)}},{key:"headers",get:function(){var f=this,l=this._headers;return this._options.rename&&this._options.rename.length>0&&(l=l.map(function(h){return f._options.rename[f._options.headers.indexOf(h)]||h})),this._options.forceTextDelimiter&&(l=l.map(function(h){return""+f._options.textDelimiter+h+f._options.textDelimiter})),this._options.mapHeaders&&(l=l.map(this._options.mapHeaders)),l.join(this._options.rowDelimiter)}}]),s}();return RR=o,RR}var kR,qD;function iJ(){if(qD)return kR;qD=1;var e=function(t){throw new Error("jsonexport called without third argument as a callback and is required")};return kR=e,kR}var IR,UD;function sJ(){if(UD)return IR;UD=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t=oJ(),r=iJ();dw();var n=oq();return IR=function(){var a={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:n||` -`,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},o=void 0,s=void 0,d=void 0;if(arguments.length===3){var f=Array.prototype.slice.call(arguments);o=f[0],s=f[1],d=f[2]}else if(arguments.length===2){var l=void 0,h=Array.prototype.slice.call(arguments);o=h[0],l=h[1],typeof l=="function"?d=l:(typeof l>"u"?"undefined":e(l))==="object"&&(s=l)}else if(arguments.length===1){var g=Array.prototype.slice.call(arguments),y=g[0];if((typeof y>"u"?"undefined":e(y))==="object"){var _=Object.keys(a),w=Object.keys(y),E=w.every(function(I){return _.includes(I)});w.length>0&&E?s=y:o=y}else o=y}else return new r(new t(a));var x=Object.assign({},a,s),T=new t(x);return o?new Promise(function(I,R){T.parse(o,function(O,C){if(d)return d(O,C);if(O)return R(O);if(R)return I(C)})}):new r(T)},IR}var lJ=sJ();const uJ=tt(lJ);var cJ=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},dJ=function(e,t,r,n){return uJ(e,function(a,o){return cJ(o,n)})},fJ=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)},[])))},pJ=function(e){return function(t,r,n){return e.getMany(n,{ids:fJ(t,r)}).then(function(a){var o=a.data;return o.reduce(function(s,d){return s[d.id]=d,s},{})})}},nh=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||w(function(I){if(!Array.isArray(I))return nh([],I,!0);var R=I.indexOf(T);return R>-1?nh(nh([],I.slice(0,R),!0),I.slice(R+1),!0):nh(nh([],I,!0),[T],!1)})},clearSelection:function(){E()}}},[w,E]);return[_,x]},jR=[];function Ci(e){var t=p.useState(e),r=t[0],n=t[1],a=p.useRef(!1);p.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=p.useCallback(function(s){if(a.current)return n(s)},[a,n]);return[r,o]}function fw(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Ci(!1),n=r[0],a=r[1];return p.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function hJ(){var e=p.useRef(!0);return p.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Jl=function(){return Jl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&O(M)},[_.search]);var $=p.useCallback(function(ne){P.current&&(C.current?C.current=VL(C.current,ne):(C.current=VL(M,ne),setTimeout(function(){C.current&&(a&&!y?T(C.current):a&&y?O(C.current):w({search:"?".concat(ev.stringify(Jl(Jl({},C.current),{filter:JSON.stringify(C.current.filter),displayedFilters:JSON.stringify(C.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===V2}}),C.current=void 0)},0)))},VD(VD([],j,!0),[w],!1)),N=p.useCallback(function(ne){return $({type:Dz,payload:ne})},[$]),B=p.useCallback(function(ne){return $({type:V2,payload:ne})},[$]),q=p.useCallback(function(ne){return $({type:Nz,payload:ne})},[$]),V=M.filter||GD,G=M.displayedFilters||GD,Y=Tj(function(ne,K){$({type:W2,payload:{filter:Ic(ne),displayedFilters:K}})},r),X=p.useCallback(function(ne,K,ee){return K===void 0&&(K=void 0),ee===void 0&&(ee=!1),ee?Y(ne,K):$({type:W2,payload:{filter:Ic(ne),displayedFilters:K}})},[$]),H=p.useCallback(function(ne){$({type:zz,payload:ne})},[$]),te=p.useCallback(function(ne,K){$({type:Bz,payload:{filterName:ne,defaultValue:K}})},[$]);return[Jl(Jl({filterValues:V,requestSignature:j},M),{displayedFilters:G}),{changeParams:$,setPage:B,setPerPage:q,setSort:N,setFilters:X,hideFilter:H,showFilter:te}]},WD=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},mJ=function(e){var t=e.search,r=ev.parse(t);return WD(r,"filter"),WD(r,"displayedFilters"),r},gJ=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},yJ=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,s=Object.keys(t).length>0?t:gJ(r)?Jl({},r):{filter:n||{}};return s.sort||(s.sort=a.field,s.order=a.order),s.perPage==null&&(s.perPage=o),s.page==null&&(s.page=1),Jl(Jl({},s),{page:HD(s.page,1),perPage:HD(s.perPage,10)})},HD=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},GD={},bJ={field:"id",order:ff},KD={},pw=p.createContext(null);pw.displayName="ListContext";var iq=p.createContext(void 0),_J=function(e){return p.useMemo(function(){return cw(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};iq.displayName="ListFilterContext";var sq=p.createContext(void 0),xJ=function(e){return p.useMemo(function(){return cw(e,["sort","setSort","resource"])},[e.sort,e.setSort])};sq.displayName="ListSortContext";var Bj=p.createContext(void 0);Bj.displayName="ListPaginationContext";var wJ=function(e){return p.useMemo(function(){return cw(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},zj=function(e){var t=e.value,r=e.children;return p.createElement(pw.Provider,{value:t},p.createElement(iq.Provider,{value:_J(t)},p.createElement(sq.Provider,{value:xJ(t)},p.createElement(Bj.Provider,{value:wJ(t)},r))))},pf=function(){return pf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(B==null||(B==null?void 0:B.length)===0)){j.setPage(1);return}if(V!=null){var se=Math.ceil(V/P.perPage)||1;!H&&P.page>se&&j.setPage(se)}},[H,P.page,P.perPage,B,j,V]);var K=p.useMemo(function(){return{field:P.sort,order:P.order}},[P.sort,P.order]),ee=_v(),Ce=R("ra.page.list",{name:ee(x,2)});return{sort:K,data:B,meta:G,defaultTitle:Ce,displayedFilters:P.displayedFilters,error:Y,exporter:s,filter:d,filterValues:P.filterValues,hideFilter:j.hideFilter,isFetching:H,isLoading:X,isPending:te,onSelect:$.select,onToggleItem:$.toggle,onUnselectItems:$.clearSelection,page:P.page,perPage:P.perPage,refetch:ne,resource:x,selectedIds:M,setFilters:j.setFilters,setPage:j.setPage,setPerPage:j.setPerPage,setSort:j.setSort,showFilter:j.showFilter,total:V,hasNextPage:q?q.hasNextPage:V!=null?P.page*P.perPage1}},CJ={field:"id",order:ff},OJ=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],mb=function(e){return Object.keys(e).filter(function(t){return!OJ.includes(t)}).reduce(function(t,r){var n;return pf(pf({},t),(n={},n[r]=e[r],n))},{})},PJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:$_($_([],f.slice(0,l),!0),f.slice(l+1),!0):r?[t]:$_($_([],f,!0),[t],!1)})},[o,t,r]);return[s,d]},IJ=function(e,t){var r=_a("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(d){return t.some(function(f){return f==d})}):!1,s=p.useCallback(function(){var d=n.filter(function(f){return!t.some(function(l){return l==f})});a(o?d:d.concat(t))},[n,a,o,t]);return[o,s]},bh=function(){return bh=Object.assign||function(e){for(var t,r=1,n=arguments.length;rxr(be,ee.field)?ee.order==="ASC"?1:-1:xr(ve,ee.field)1,hideFilter:Le,isFetching:C,isLoading:k,isPending:N,onSelect:we.select,onToggleItem:we.toggle,onUnselectItems:we.clearSelection,page:X,perPage:te,resource:"",refetch:jJ,selectedIds:me,setFilters:He,setPage:H,setPerPage:ne,setSort:se,showFilter:dt,total:V==null?void 0:V.total}},TJ={},La=function(){var e=p.useContext(pw);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},TR,XD;function AJ(){if(XD)return TR;XD=1;var e=uw(),t=gv(),r=Tz(),n=yv(),a=Object.prototype,o=a.hasOwnProperty,s=e(function(d,f){d=Object(d);var l=-1,h=f.length,g=h>2?f[2]:void 0;for(g&&r(f[0],f[1],g)&&(h=1);++l1,setSort:V,showFilter:me,total:ke}},DJ={},Hb=e=>e.type==="checkbox",_h=e=>e instanceof Date,Za=e=>e==null;const fq=e=>typeof e=="object";var Nn=e=>!Za(e)&&!Array.isArray(e)&&fq(e)&&!_h(e),pq=e=>Nn(e)&&e.target?Hb(e.target)?e.target.checked:e.target.value:e,NJ=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,hq=(e,t)=>e.has(NJ(t)),BJ=e=>{const t=e.constructor&&e.constructor.prototype;return Nn(t)&&t.hasOwnProperty("isPrototypeOf")},Uj=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Kn(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(!(Uj&&(e instanceof Blob||e instanceof FileList))&&(r||Nn(e)))if(t=r?[]:{},!r&&!BJ(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Kn(e[n]));else return e;return t}var Gb=e=>Array.isArray(e)?e.filter(Boolean):[],Yr=e=>e===void 0,nt=(e,t,r)=>{if(!t||!Nn(e))return r;const n=Gb(t.split(/[,[\].]+?/)).reduce((a,o)=>Za(a)?a:a[o],e);return Yr(n)||n===e?Yr(e[t])?r:e[t]:n},wi=e=>typeof e=="boolean",Vj=e=>/^\w*$/.test(e),vq=e=>Gb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Br=(e,t,r)=>{let n=-1;const a=Vj(t)?[t]:vq(t),o=a.length,s=o-1;for(;++nKe.useContext(mq),gq=e=>{const{children:t,...r}=e;return Ke.createElement(mq.Provider,{value:r},t)};var yq=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Pi.all&&(t._proxyFormState[s]=!n||Pi.all),r&&(r[s]=!0),e[s]}});return a},Ya=e=>Nn(e)&&!Object.keys(e).length,bq=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return Ya(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!n||Pi.all))},Oo=e=>Array.isArray(e)?e:[e],_q=(e,t,r)=>!e||!t||e===t||Oo(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function hw(e){const t=Ke.useRef(e);t.current=e,Ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Kb(e){const t=Li(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[s,d]=Ke.useState(r._formState),f=Ke.useRef(!0),l=Ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=Ke.useRef(a);return h.current=a,hw({disabled:n,next:g=>f.current&&_q(h.current,g.name,o)&&bq(g,l.current,r._updateFormState)&&d({...r._formState,...g}),subject:r._subjects.state}),Ke.useEffect(()=>(f.current=!0,l.current.isValid&&r._updateValid(!0),()=>{f.current=!1}),[r]),yq(s,r,l.current,!1)}var Zs=e=>typeof e=="string",xq=(e,t,r,n,a)=>Zs(e)?(n&&t.watch.add(e),nt(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),nt(r,o))):(n&&(t.watchAll=!0),r);function wq(e){const t=Li(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:s}=e||{},d=Ke.useRef(n);d.current=n,hw({disabled:o,subject:r._subjects.values,next:h=>{_q(d.current,h.name,s)&&l(Kn(xq(d.current,r._names,h.values||r._formValues,!1,a)))}});const[f,l]=Ke.useState(r._getWatch(n,a));return Ke.useEffect(()=>r._removeUnmounted()),f}function zJ(e){const t=Li(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,s=hq(a._names.array,r),d=wq({control:a,name:r,defaultValue:nt(a._formValues,r,nt(a._defaultValues,r,e.defaultValue)),exact:!0}),f=Kb({control:a,name:r,exact:!0}),l=Ke.useRef(a.register(r,{...e.rules,value:d,...wi(e.disabled)?{disabled:e.disabled}:{}}));return Ke.useEffect(()=>{const h=a._options.shouldUnregister||o,g=(y,_)=>{const w=nt(a._fields,y);w&&w._f&&(w._f.mount=_)};if(g(r,!0),h){const y=Kn(nt(a._options.defaultValues,r));Br(a._defaultValues,r,y),Yr(nt(a._formValues,r))&&Br(a._formValues,r,y)}return()=>{(s?h&&!a._state.action:h)?a.unregister(r):g(r,!1)}},[r,a,s,o]),Ke.useEffect(()=>{nt(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:nt(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:d,...wi(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:Ke.useCallback(h=>l.current.onChange({target:{value:pq(h),name:r},type:D1.CHANGE}),[r]),onBlur:Ke.useCallback(()=>l.current.onBlur({target:{value:nt(a._formValues,r),name:r},type:D1.BLUR}),[r,a]),ref:Ke.useCallback(h=>{const g=nt(a._fields,r);g&&h&&(g._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:y=>h.setCustomValidity(y),reportValidity:()=>h.reportValidity()})},[a._fields,r])},formState:f,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!nt(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!nt(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!nt(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!nt(f.validatingFields,r)},error:{enumerable:!0,get:()=>nt(f.errors,r)}})}}var qJ=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},Xu=()=>{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)})},MR=(e,t,r={})=>r.shouldFocus||Yr(r.shouldFocus)?r.focusName||`${e}.${Yr(r.focusIndex)?t:r.focusIndex}.`:"",Ky=e=>({isOnSubmit:!e||e===Pi.onSubmit,isOnBlur:e===Pi.onBlur,isOnChange:e===Pi.onChange,isOnAll:e===Pi.all,isOnTouch:e===Pi.onTouched}),X2=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Eh=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=nt(e,a);if(o){const{_f:s,...d}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],a)&&!n)return!0;if(s.ref&&t(s.ref,s.name)&&!n)return!0;if(Eh(d,t))break}else if(Nn(d)&&Eh(d,t))break}}};var Sq=(e,t,r)=>{const n=Oo(nt(e,r));return Br(n,"root",t[r]),Br(e,r,n),e},Wj=e=>e.type==="file",Zl=e=>typeof e=="function",N1=e=>{if(!Uj)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},s1=e=>Zs(e),Hj=e=>e.type==="radio",B1=e=>e instanceof RegExp;const YD={value:!1,isValid:!1},JD={value:!0,isValid:!0};var Eq=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&&!Yr(e[0].attributes.value)?Yr(e[0].value)||e[0].value===""?JD:{value:e[0].value,isValid:!0}:JD:YD}return YD};const ZD={isValid:!1,value:null};var Cq=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,ZD):ZD;function eN(e,t,r="validate"){if(s1(e)||Array.isArray(e)&&e.every(s1)||wi(e)&&!e)return{type:r,message:s1(e)?e:"",ref:t}}var ah=e=>Nn(e)&&!B1(e)?e:{value:e,message:""},Y2=async(e,t,r,n,a)=>{const{ref:o,refs:s,required:d,maxLength:f,minLength:l,min:h,max:g,pattern:y,validate:_,name:w,valueAsNumber:E,mount:x,disabled:T}=e._f,I=nt(t,w);if(!x||T)return{};const R=s?s[0]:o,O=B=>{n&&R.reportValidity&&(R.setCustomValidity(wi(B)?"":B||""),R.reportValidity())},C={},P=Hj(o),j=Hb(o),k=P||j,M=(E||Wj(o))&&Yr(o.value)&&Yr(I)||N1(o)&&o.value===""||I===""||Array.isArray(I)&&!I.length,$=qJ.bind(null,w,r,C),N=(B,q,V,G=Wl.maxLength,Y=Wl.minLength)=>{const X=B?q:V;C[w]={type:B?G:Y,message:X,ref:o,...$(B?G:Y,X)}};if(a?!Array.isArray(I)||!I.length:d&&(!k&&(M||Za(I))||wi(I)&&!I||j&&!Eq(s).isValid||P&&!Cq(s).isValid)){const{value:B,message:q}=s1(d)?{value:!!d,message:d}:ah(d);if(B&&(C[w]={type:Wl.required,message:q,ref:R,...$(Wl.required,q)},!r))return O(q),C}if(!M&&(!Za(h)||!Za(g))){let B,q;const V=ah(g),G=ah(h);if(!Za(I)&&!isNaN(I)){const Y=o.valueAsNumber||I&&+I;Za(V.value)||(B=Y>V.value),Za(G.value)||(q=Ynew Date(new Date().toDateString()+" "+ne),H=o.type=="time",te=o.type=="week";Zs(V.value)&&I&&(B=H?X(I)>X(V.value):te?I>V.value:Y>new Date(V.value)),Zs(G.value)&&I&&(q=H?X(I)+B.value,G=!Za(q.value)&&I.length<+q.value;if((V||G)&&(N(V,B.message,q.message),!r))return O(C[w].message),C}if(y&&!M&&Zs(I)){const{value:B,message:q}=ah(y);if(B1(B)&&!I.match(B)&&(C[w]={type:Wl.pattern,message:q,ref:o,...$(Wl.pattern,q)},!r))return O(q),C}if(_){if(Zl(_)){const B=await _(I,t),q=eN(B,R);if(q&&(C[w]={...q,...$(Wl.validate,q.message)},!r))return O(q.message),C}else if(Nn(_)){let B={};for(const q in _){if(!Ya(B)&&!r)break;const V=eN(await _[q](I,t),R,q);V&&(B={...V,...$(q,V.message)},O(V.message),r&&(C[w]=B))}if(!Ya(B)&&(C[w]={ref:R,...B},!r))return C}}return O(!0),C},FR=(e,t)=>[...e,...Oo(t)],$R=e=>Array.isArray(e)?e.map(()=>{}):void 0;function LR(e,t,r){return[...e.slice(0,t),...Oo(r),...e.slice(t)]}var DR=(e,t,r)=>Array.isArray(e)?(Yr(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],NR=(e,t)=>[...Oo(t),...Oo(e)];function UJ(e,t){let r=0;const n=[...e];for(const a of t)n.splice(a-r,1),r++;return Gb(n).length?n:[]}var BR=(e,t)=>Yr(t)?[]:UJ(e,Oo(t).sort((r,n)=>r-n)),zR=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function VJ(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function HJ(e){const t=Li(),{control:r=t.control,name:n,keyName:a="id",shouldUnregister:o}=e,[s,d]=Ke.useState(r._getFieldArray(n)),f=Ke.useRef(r._getFieldArray(n).map(Xu)),l=Ke.useRef(s),h=Ke.useRef(n),g=Ke.useRef(!1);h.current=n,l.current=s,r._names.array.add(n),e.rules&&r.register(n,e.rules),hw({next:({values:C,name:P})=>{if(P===h.current||!P){const j=nt(C,h.current);Array.isArray(j)&&(d(j),f.current=j.map(Xu))}},subject:r._subjects.array});const y=Ke.useCallback(C=>{g.current=!0,r._updateFieldArray(n,C)},[r,n]),_=(C,P)=>{const j=Oo(Kn(C)),k=FR(r._getFieldArray(n),j);r._names.focus=MR(n,k.length-1,P),f.current=FR(f.current,j.map(Xu)),y(k),d(k),r._updateFieldArray(n,k,FR,{argA:$R(C)})},w=(C,P)=>{const j=Oo(Kn(C)),k=NR(r._getFieldArray(n),j);r._names.focus=MR(n,0,P),f.current=NR(f.current,j.map(Xu)),y(k),d(k),r._updateFieldArray(n,k,NR,{argA:$R(C)})},E=C=>{const P=BR(r._getFieldArray(n),C);f.current=BR(f.current,C),y(P),d(P),r._updateFieldArray(n,P,BR,{argA:C})},x=(C,P,j)=>{const k=Oo(Kn(P)),M=LR(r._getFieldArray(n),C,k);r._names.focus=MR(n,C,j),f.current=LR(f.current,C,k.map(Xu)),y(M),d(M),r._updateFieldArray(n,M,LR,{argA:C,argB:$R(P)})},T=(C,P)=>{const j=r._getFieldArray(n);zR(j,C,P),zR(f.current,C,P),y(j),d(j),r._updateFieldArray(n,j,zR,{argA:C,argB:P},!1)},I=(C,P)=>{const j=r._getFieldArray(n);DR(j,C,P),DR(f.current,C,P),y(j),d(j),r._updateFieldArray(n,j,DR,{argA:C,argB:P},!1)},R=(C,P)=>{const j=Kn(P),k=tN(r._getFieldArray(n),C,j);f.current=[...k].map((M,$)=>!M||$===C?Xu():f.current[$]),y(k),d([...k]),r._updateFieldArray(n,k,tN,{argA:C,argB:j},!0,!1)},O=C=>{const P=Oo(Kn(C));f.current=P.map(Xu),y([...P]),d([...P]),r._updateFieldArray(n,[...P],j=>j,{},!0,!1)};return Ke.useEffect(()=>{if(r._state.action=!1,X2(n,r._names)&&r._subjects.state.next({...r._formState}),g.current&&(!Ky(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(C=>{const P=nt(C.errors,n),j=nt(r._formState.errors,n);(j?!P&&j.type||P&&(j.type!==P.type||j.message!==P.message):P&&P.type)&&(P?Br(r._formState.errors,n,P):$n(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const C=nt(r._fields,n);C&&C._f&&!(Ky(r._options.reValidateMode).isOnSubmit&&Ky(r._options.mode).isOnSubmit)&&Y2(C,r._formValues,r._options.criteriaMode===Pi.all,r._options.shouldUseNativeValidation,!0).then(P=>!Ya(P)&&r._subjects.state.next({errors:Sq(r._formState.errors,P,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Eh(r._fields,(C,P)=>{if(r._names.focus&&P.startsWith(r._names.focus)&&C.focus)return C.focus(),1}),r._names.focus="",r._updateValid(),g.current=!1},[s,n,r]),Ke.useEffect(()=>(!nt(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)}),[n,r,a,o]),{swap:Ke.useCallback(T,[y,n,r]),move:Ke.useCallback(I,[y,n,r]),prepend:Ke.useCallback(w,[y,n,r]),append:Ke.useCallback(_,[y,n,r]),remove:Ke.useCallback(E,[y,n,r]),insert:Ke.useCallback(x,[y,n,r]),update:Ke.useCallback(R,[y,n,r]),replace:Ke.useCallback(O,[y,n,r]),fields:Ke.useMemo(()=>s.map((C,P)=>({...C,[a]:f.current[P]||Xu()})),[s,a])}}var qR=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},z1=e=>Za(e)||!fq(e);function sc(e,t){if(z1(e)||z1(t))return e===t;if(_h(e)&&_h(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const s=t[a];if(_h(o)&&_h(s)||Nn(o)&&Nn(s)||Array.isArray(o)&&Array.isArray(s)?!sc(o,s):o!==s)return!1}}return!0}var Oq=e=>e.type==="select-multiple",GJ=e=>Hj(e)||Hb(e),UR=e=>N1(e)&&e.isConnected,Pq=e=>{for(const t in e)if(Zl(e[t]))return!0;return!1};function q1(e,t={}){const r=Array.isArray(e);if(Nn(e)||r)for(const n in e)Array.isArray(e[n])||Nn(e[n])&&!Pq(e[n])?(t[n]=Array.isArray(e[n])?[]:{},q1(e[n],t[n])):Za(e[n])||(t[n]=!0);return t}function Rq(e,t,r){const n=Array.isArray(e);if(Nn(e)||n)for(const a in e)Array.isArray(e[a])||Nn(e[a])&&!Pq(e[a])?Yr(t)||z1(r[a])?r[a]=Array.isArray(e[a])?q1(e[a],[]):{...q1(e[a])}:Rq(e[a],Za(t)?{}:t[a],r[a]):r[a]=!sc(e[a],t[a]);return r}var L_=(e,t)=>Rq(e,t,q1(t)),kq=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Yr(e)?e:t?e===""?NaN:e&&+e:r&&Zs(e)?new Date(e):n?n(e):e;function VR(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Wj(t)?t.files:Hj(t)?Cq(e.refs).value:Oq(t)?[...t.selectedOptions].map(({value:r})=>r):Hb(t)?Eq(e.refs).value:kq(Yr(t.value)?e.ref.value:t.value,e)}var KJ=(e,t,r,n)=>{const a={};for(const o of e){const s=nt(t,o);s&&Br(a,o,s._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},ng=e=>Yr(e)?e:B1(e)?e.source:Nn(e)?B1(e.value)?e.value.source:e.value:e;const rN="AsyncFunction";var QJ=e=>(!e||!e.validate)&&!!(Zl(e.validate)&&e.validate.constructor.name===rN||Nn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===rN)),XJ=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function nN(e,t,r){const n=nt(e,r);if(n||Vj(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),s=nt(t,o),d=nt(e,o);if(s&&!Array.isArray(s)&&r!==o)return{name:r};if(d&&d.type)return{name:o,error:d};a.pop()}return{name:r}}var YJ=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,JJ=(e,t)=>!Gb(nt(e,t)).length&&$n(e,t);const ZJ={mode:Pi.onSubmit,reValidateMode:Pi.onChange,shouldFocusError:!0};function eZ(e={}){let t={...ZJ,...e},r={submitCount:0,isDirty:!1,isLoading:Zl(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Nn(t.defaultValues)||Nn(t.values)?Kn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Kn(a),s={action:!1,mount:!1,watch:!1},d={mount:new Set,unMount:new Set,array:new Set,watch:new Set},f,l=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={values:qR(),array:qR(),state:qR()},y=Ky(t.mode),_=Ky(t.reValidateMode),w=t.criteriaMode===Pi.all,E=Z=>ae=>{clearTimeout(l),l=setTimeout(Z,ae)},x=async Z=>{if(h.isValid||Z){const ae=t.resolver?Ya((await k()).errors):await $(n,!0);ae!==r.isValid&&g.state.next({isValid:ae})}},T=(Z,ae)=>{(h.isValidating||h.validatingFields)&&((Z||Array.from(d.mount)).forEach(fe=>{fe&&(ae?Br(r.validatingFields,fe,ae):$n(r.validatingFields,fe))}),g.state.next({validatingFields:r.validatingFields,isValidating:!Ya(r.validatingFields)}))},I=(Z,ae=[],fe,ve,be=!0,_e=!0)=>{if(ve&&fe){if(s.action=!0,_e&&Array.isArray(nt(n,Z))){const De=fe(nt(n,Z),ve.argA,ve.argB);be&&Br(n,Z,De)}if(_e&&Array.isArray(nt(r.errors,Z))){const De=fe(nt(r.errors,Z),ve.argA,ve.argB);be&&Br(r.errors,Z,De),JJ(r.errors,Z)}if(h.touchedFields&&_e&&Array.isArray(nt(r.touchedFields,Z))){const De=fe(nt(r.touchedFields,Z),ve.argA,ve.argB);be&&Br(r.touchedFields,Z,De)}h.dirtyFields&&(r.dirtyFields=L_(a,o)),g.state.next({name:Z,isDirty:B(Z,ae),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Br(o,Z,ae)},R=(Z,ae)=>{Br(r.errors,Z,ae),g.state.next({errors:r.errors})},O=Z=>{r.errors=Z,g.state.next({errors:r.errors,isValid:!1})},C=(Z,ae,fe,ve)=>{const be=nt(n,Z);if(be){const _e=nt(o,Z,Yr(fe)?nt(a,Z):fe);Yr(_e)||ve&&ve.defaultChecked||ae?Br(o,Z,ae?_e:VR(be._f)):G(Z,_e),s.mount&&x()}},P=(Z,ae,fe,ve,be)=>{let _e=!1,De=!1;const Ge={name:Z},Mt=!!(nt(n,Z)&&nt(n,Z)._f&&nt(n,Z)._f.disabled);if(!fe||ve){h.isDirty&&(De=r.isDirty,r.isDirty=Ge.isDirty=B(),_e=De!==Ge.isDirty);const et=Mt||sc(nt(a,Z),ae);De=!!(!Mt&&nt(r.dirtyFields,Z)),et||Mt?$n(r.dirtyFields,Z):Br(r.dirtyFields,Z,!0),Ge.dirtyFields=r.dirtyFields,_e=_e||h.dirtyFields&&De!==!et}if(fe){const et=nt(r.touchedFields,Z);et||(Br(r.touchedFields,Z,fe),Ge.touchedFields=r.touchedFields,_e=_e||h.touchedFields&&et!==fe)}return _e&&be&&g.state.next(Ge),_e?Ge:{}},j=(Z,ae,fe,ve)=>{const be=nt(r.errors,Z),_e=h.isValid&&wi(ae)&&r.isValid!==ae;if(e.delayError&&fe?(f=E(()=>R(Z,fe)),f(e.delayError)):(clearTimeout(l),f=null,fe?Br(r.errors,Z,fe):$n(r.errors,Z)),(fe?!sc(be,fe):be)||!Ya(ve)||_e){const De={...ve,..._e&&wi(ae)?{isValid:ae}:{},errors:r.errors,name:Z};r={...r,...De},g.state.next(De)}},k=async Z=>{T(Z,!0);const ae=await t.resolver(o,t.context,KJ(Z||d.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return T(Z),ae},M=async Z=>{const{errors:ae}=await k(Z);if(Z)for(const fe of Z){const ve=nt(ae,fe);ve?Br(r.errors,fe,ve):$n(r.errors,fe)}else r.errors=ae;return ae},$=async(Z,ae,fe={valid:!0})=>{for(const ve in Z){const be=Z[ve];if(be){const{_f:_e,...De}=be;if(_e){const Ge=d.array.has(_e.name),Mt=be._f&&QJ(be._f);Mt&&h.validatingFields&&T([ve],!0);const et=await Y2(be,o,w,t.shouldUseNativeValidation&&!ae,Ge);if(Mt&&h.validatingFields&&T([ve]),et[_e.name]&&(fe.valid=!1,ae))break;!ae&&(nt(et,_e.name)?Ge?Sq(r.errors,et,_e.name):Br(r.errors,_e.name,et[_e.name]):$n(r.errors,_e.name))}!Ya(De)&&await $(De,ae,fe)}}return fe.valid},N=()=>{for(const Z of d.unMount){const ae=nt(n,Z);ae&&(ae._f.refs?ae._f.refs.every(fe=>!UR(fe)):!UR(ae._f.ref))&&me(Z)}d.unMount=new Set},B=(Z,ae)=>(Z&&ae&&Br(o,Z,ae),!sc(K(),a)),q=(Z,ae,fe)=>xq(Z,d,{...s.mount?o:Yr(ae)?a:Zs(Z)?{[Z]:ae}:ae},fe,ae),V=Z=>Gb(nt(s.mount?o:a,Z,e.shouldUnregister?nt(a,Z,[]):[])),G=(Z,ae,fe={})=>{const ve=nt(n,Z);let be=ae;if(ve){const _e=ve._f;_e&&(!_e.disabled&&Br(o,Z,kq(ae,_e)),be=N1(_e.ref)&&Za(ae)?"":ae,Oq(_e.ref)?[..._e.ref.options].forEach(De=>De.selected=be.includes(De.value)):_e.refs?Hb(_e.ref)?_e.refs.length>1?_e.refs.forEach(De=>(!De.defaultChecked||!De.disabled)&&(De.checked=Array.isArray(be)?!!be.find(Ge=>Ge===De.value):be===De.value)):_e.refs[0]&&(_e.refs[0].checked=!!be):_e.refs.forEach(De=>De.checked=De.value===be):Wj(_e.ref)?_e.ref.value="":(_e.ref.value=be,_e.ref.type||g.values.next({name:Z,values:{...o}})))}(fe.shouldDirty||fe.shouldTouch)&&P(Z,be,fe.shouldTouch,fe.shouldDirty,!0),fe.shouldValidate&&ne(Z)},Y=(Z,ae,fe)=>{for(const ve in ae){const be=ae[ve],_e=`${Z}.${ve}`,De=nt(n,_e);(d.array.has(Z)||!z1(be)||De&&!De._f)&&!_h(be)?Y(_e,be,fe):G(_e,be,fe)}},X=(Z,ae,fe={})=>{const ve=nt(n,Z),be=d.array.has(Z),_e=Kn(ae);Br(o,Z,_e),be?(g.array.next({name:Z,values:{...o}}),(h.isDirty||h.dirtyFields)&&fe.shouldDirty&&g.state.next({name:Z,dirtyFields:L_(a,o),isDirty:B(Z,_e)})):ve&&!ve._f&&!Za(_e)?Y(Z,_e,fe):G(Z,_e,fe),X2(Z,d)&&g.state.next({...r}),g.values.next({name:s.mount?Z:void 0,values:{...o}})},H=async Z=>{s.mount=!0;const ae=Z.target;let fe=ae.name,ve=!0;const be=nt(n,fe),_e=()=>ae.type?VR(be._f):pq(Z),De=Ge=>{ve=Number.isNaN(Ge)||sc(Ge,nt(o,fe,Ge))};if(be){let Ge,Mt;const et=_e(),ot=Z.type===D1.BLUR||Z.type===D1.FOCUS_OUT,it=!XJ(be._f)&&!t.resolver&&!nt(r.errors,fe)&&!be._f.deps||YJ(ot,nt(r.touchedFields,fe),r.isSubmitted,_,y),Dt=X2(fe,d,ot);Br(o,fe,et),ot?(be._f.onBlur&&be._f.onBlur(Z),f&&f(0)):be._f.onChange&&be._f.onChange(Z);const Zt=P(fe,et,ot,!1),Kt=!Ya(Zt)||Dt;if(!ot&&g.values.next({name:fe,type:Z.type,values:{...o}}),it)return h.isValid&&(e.mode==="onBlur"?ot&&x():x()),Kt&&g.state.next({name:fe,...Dt?{}:Zt});if(!ot&&Dt&&g.state.next({...r}),t.resolver){const{errors:rt}=await k([fe]);if(De(et),ve){const Pt=nN(r.errors,n,fe),Je=nN(rt,n,Pt.name||fe);Ge=Je.error,fe=Je.name,Mt=Ya(rt)}}else T([fe],!0),Ge=(await Y2(be,o,w,t.shouldUseNativeValidation))[fe],T([fe]),De(et),ve&&(Ge?Mt=!1:h.isValid&&(Mt=await $(n,!0)));ve&&(be._f.deps&&ne(be._f.deps),j(fe,Mt,Ge,Zt))}},te=(Z,ae)=>{if(nt(r.errors,ae)&&Z.focus)return Z.focus(),1},ne=async(Z,ae={})=>{let fe,ve;const be=Oo(Z);if(t.resolver){const _e=await M(Yr(Z)?Z:be);fe=Ya(_e),ve=Z?!be.some(De=>nt(_e,De)):fe}else Z?(ve=(await Promise.all(be.map(async _e=>{const De=nt(n,_e);return await $(De&&De._f?{[_e]:De}:De)}))).every(Boolean),!(!ve&&!r.isValid)&&x()):ve=fe=await $(n);return g.state.next({...!Zs(Z)||h.isValid&&fe!==r.isValid?{}:{name:Z},...t.resolver||!Z?{isValid:fe}:{},errors:r.errors}),ae.shouldFocus&&!ve&&Eh(n,te,Z?be:d.mount),ve},K=Z=>{const ae={...s.mount?o:a};return Yr(Z)?ae:Zs(Z)?nt(ae,Z):Z.map(fe=>nt(ae,fe))},ee=(Z,ae)=>({invalid:!!nt((ae||r).errors,Z),isDirty:!!nt((ae||r).dirtyFields,Z),error:nt((ae||r).errors,Z),isValidating:!!nt(r.validatingFields,Z),isTouched:!!nt((ae||r).touchedFields,Z)}),Ce=Z=>{Z&&Oo(Z).forEach(ae=>$n(r.errors,ae)),g.state.next({errors:Z?r.errors:{}})},se=(Z,ae,fe)=>{const ve=(nt(n,Z,{_f:{}})._f||{}).ref,be=nt(r.errors,Z)||{},{ref:_e,message:De,type:Ge,...Mt}=be;Br(r.errors,Z,{...Mt,...ae,ref:ve}),g.state.next({name:Z,errors:r.errors,isValid:!1}),fe&&fe.shouldFocus&&ve&&ve.focus&&ve.focus()},Se=(Z,ae)=>Zl(Z)?g.values.subscribe({next:fe=>Z(q(void 0,ae),fe)}):q(Z,ae,!0),me=(Z,ae={})=>{for(const fe of Z?Oo(Z):d.mount)d.mount.delete(fe),d.array.delete(fe),ae.keepValue||($n(n,fe),$n(o,fe)),!ae.keepError&&$n(r.errors,fe),!ae.keepDirty&&$n(r.dirtyFields,fe),!ae.keepTouched&&$n(r.touchedFields,fe),!ae.keepIsValidating&&$n(r.validatingFields,fe),!t.shouldUnregister&&!ae.keepDefaultValue&&$n(a,fe);g.values.next({values:{...o}}),g.state.next({...r,...ae.keepDirty?{isDirty:B()}:{}}),!ae.keepIsValid&&x()},we=({disabled:Z,name:ae,field:fe,fields:ve,value:be})=>{if(wi(Z)&&s.mount||Z){const _e=Z?void 0:Yr(be)?VR(fe?fe._f:nt(ve,ae)._f):be;Br(o,ae,_e),P(ae,_e,!1,!1,!0)}},Oe=(Z,ae={})=>{let fe=nt(n,Z);const ve=wi(ae.disabled)||wi(e.disabled);return Br(n,Z,{...fe||{},_f:{...fe&&fe._f?fe._f:{ref:{name:Z}},name:Z,mount:!0,...ae}}),d.mount.add(Z),fe?we({field:fe,disabled:wi(ae.disabled)?ae.disabled:e.disabled,name:Z,value:ae.value}):C(Z,!0,ae.value),{...ve?{disabled:ae.disabled||e.disabled}:{},...t.progressive?{required:!!ae.required,min:ng(ae.min),max:ng(ae.max),minLength:ng(ae.minLength),maxLength:ng(ae.maxLength),pattern:ng(ae.pattern)}:{},name:Z,onChange:H,onBlur:H,ref:be=>{if(be){Oe(Z,ae),fe=nt(n,Z);const _e=Yr(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,De=GJ(_e),Ge=fe._f.refs||[];if(De?Ge.find(Mt=>Mt===_e):_e===fe._f.ref)return;Br(n,Z,{_f:{...fe._f,...De?{refs:[...Ge.filter(UR),_e,...Array.isArray(nt(a,Z))?[{}]:[]],ref:{type:_e.type,name:Z}}:{ref:_e}}}),C(Z,!1,void 0,_e)}else fe=nt(n,Z,{}),fe._f&&(fe._f.mount=!1),(t.shouldUnregister||ae.shouldUnregister)&&!(hq(d.array,Z)&&s.action)&&d.unMount.add(Z)}}},ie=()=>t.shouldFocusError&&Eh(n,te,d.mount),Fe=Z=>{wi(Z)&&(g.state.next({disabled:Z}),Eh(n,(ae,fe)=>{const ve=nt(n,fe);ve&&(ae.disabled=ve._f.disabled||Z,Array.isArray(ve._f.refs)&&ve._f.refs.forEach(be=>{be.disabled=ve._f.disabled||Z}))},0,!1))},ke=(Z,ae)=>async fe=>{let ve;fe&&(fe.preventDefault&&fe.preventDefault(),fe.persist&&fe.persist());let be=Kn(o);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:_e,values:De}=await k();r.errors=_e,be=De}else await $(n);if($n(r.errors,"root"),Ya(r.errors)){g.state.next({errors:{}});try{await Z(be,fe)}catch(_e){ve=_e}}else ae&&await ae({...r.errors},fe),ie(),setTimeout(ie);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ya(r.errors)&&!ve,submitCount:r.submitCount+1,errors:r.errors}),ve)throw ve},$e=(Z,ae={})=>{nt(n,Z)&&(Yr(ae.defaultValue)?X(Z,Kn(nt(a,Z))):(X(Z,ae.defaultValue),Br(a,Z,Kn(ae.defaultValue))),ae.keepTouched||$n(r.touchedFields,Z),ae.keepDirty||($n(r.dirtyFields,Z),r.isDirty=ae.defaultValue?B(Z,Kn(nt(a,Z))):B()),ae.keepError||($n(r.errors,Z),h.isValid&&x()),g.state.next({...r}))},Te=(Z,ae={})=>{const fe=Z?Kn(Z):a,ve=Kn(fe),be=Ya(Z),_e=be?a:ve;if(ae.keepDefaultValues||(a=fe),!ae.keepValues){if(ae.keepDirtyValues)for(const De of d.mount)nt(r.dirtyFields,De)?Br(_e,De,nt(o,De)):X(De,nt(_e,De));else{if(Uj&&Yr(Z))for(const De of d.mount){const Ge=nt(n,De);if(Ge&&Ge._f){const Mt=Array.isArray(Ge._f.refs)?Ge._f.refs[0]:Ge._f.ref;if(N1(Mt)){const et=Mt.closest("form");if(et){et.reset();break}}}}n={}}o=e.shouldUnregister?ae.keepDefaultValues?Kn(a):{}:Kn(_e),g.array.next({values:{..._e}}),g.values.next({values:{..._e}})}d={mount:ae.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!ae.keepIsValid||!!ae.keepDirtyValues,s.watch=!!e.shouldUnregister,g.state.next({submitCount:ae.keepSubmitCount?r.submitCount:0,isDirty:be?!1:ae.keepDirty?r.isDirty:!!(ae.keepDefaultValues&&!sc(Z,a)),isSubmitted:ae.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:be?{}:ae.keepDirtyValues?ae.keepDefaultValues&&o?L_(a,o):r.dirtyFields:ae.keepDefaultValues&&Z?L_(a,Z):ae.keepDirty?r.dirtyFields:{},touchedFields:ae.keepTouched?r.touchedFields:{},errors:ae.keepErrors?r.errors:{},isSubmitSuccessful:ae.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Be=(Z,ae)=>Te(Zl(Z)?Z(o):Z,ae);return{control:{register:Oe,unregister:me,getFieldState:ee,handleSubmit:ke,setError:se,_executeSchema:k,_getWatch:q,_getDirty:B,_updateValid:x,_removeUnmounted:N,_updateFieldArray:I,_updateDisabledField:we,_getFieldArray:V,_reset:Te,_resetDefaultValues:()=>Zl(t.defaultValues)&&t.defaultValues().then(Z=>{Be(Z,t.resetOptions),g.state.next({isLoading:!1})}),_updateFormState:Z=>{r={...r,...Z}},_disableForm:Fe,_subjects:g,_proxyFormState:h,_setErrors:O,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(Z){s=Z},get _defaultValues(){return a},get _names(){return d},set _names(Z){d=Z},get _formState(){return r},set _formState(Z){r=Z},get _options(){return t},set _options(Z){t={...t,...Z}}},trigger:ne,register:Oe,handleSubmit:ke,watch:Se,setValue:X,getValues:K,reset:Be,resetField:$e,clearErrors:Ce,unregister:me,setError:se,setFocus:(Z,ae={})=>{const fe=nt(n,Z),ve=fe&&fe._f;if(ve){const be=ve.refs?ve.refs[0]:ve.ref;be.focus&&(be.focus(),ae.shouldSelect&&be.select())}},getFieldState:ee}}function Iq(e={}){const t=Ke.useRef(),r=Ke.useRef(),[n,a]=Ke.useState({isDirty:!1,isValidating:!1,isLoading:Zl(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Zl(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...eZ(e),formState:n});const o=t.current.control;return o._options=e,hw({subject:o._subjects.state,next:s=>{bq(s,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Ke.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==n.isDirty&&o._subjects.state.next({isDirty:s})}},[o,n.isDirty]),Ke.useEffect(()=>{e.values&&!sc(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),Ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=yq(n,o),t.current}var U1=function(){return U1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,f=p.useState(!1),l=f[0],h=f[1],g=!e||!d||o,y=PG(function(_){var w=_.currentLocation,E=_.nextLocation;if(g)return!1;var x=t||w.pathname,T=E.pathname.startsWith(x),I=E.pathname.startsWith("".concat(x,"/show")),R=T&&!I;return!R});p.useEffect(function(){if(y.state==="blocked"){if(g){y.proceed();return}h(!0)}},[y.state]),p.useEffect(function(){if(l){var _=window.confirm(n("ra.message.unsaved_changes"));_?y.proceed&&y.proceed():y.reset&&y.reset()}h(!1)},[l,n]),p.useEffect(function(){var _=function(w){w.preventDefault(),w.returnValue=!0};if(!g)return window.addEventListener("beforeunload",_),function(){window.removeEventListener("beforeunload",_)}},[g])},vZ=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return hZ(r,n,a),null};function mZ(e,t){var r=Rj({},gZ(e,t),t);return r}function gZ(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var Mq=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var s=o[0],d=o[1];if(typeof d=="object"){r(d,"".concat(a).concat(s,"."));return}t("".concat(a).concat(s),{type:"server",message:d.toString()})})};r(e,"")},yZ=function(e,t){t===void 0&&(t=!0);var r=Kb(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=p.useRef(n),s=Jr();p.useEffect(function(){var d,f;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((f=(d=a.root)===null||d===void 0?void 0:d.serverError)===null||f===void 0?void 0:f.message)=="string"?a.root.serverError.message:void 0;s(l||"ra.message.invalid_form",{type:"error"})}},[a,n,s,t])},bZ=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},rk=function(){return rk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,$c=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function OZ(e){return e?e.hasOwnProperty("message"):!1}var Lc=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Dc=function(e){return Fq(e,function(){for(var t=[],r=0;re?Lc(t,{max:e},r,n):void 0}});Dc(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!$c(r)&&re?Lc(t,{max:e},r,n):void 0}}),Lq=Dc(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!$c(t)&&isNaN(Number(t))?Lc(e,void 0,t,r):void 0}}),Gj=Fq(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!$c(r)&&typeof r=="string"&&!e.test(r)?Lc(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Dc(function(e){return e===void 0&&(e="ra.validation.email"),Gj(CZ,e)});var jZ=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Dc(function(e,t){return t===void 0&&(t=jZ),function(r,n){return!$c(r)&&e.indexOf(r)===-1?Lc(t,{list:e},r,n):void 0}});var TZ=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},Dq=p.createContext(null),mw=function(){var e=p.useContext(jq);return e},AZ=function(e){var t=e.children,r=e.name,n=mw();return p.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]),p.createElement(Dq.Provider,{value:r},t)},Nq=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,s=bw(o),d=Sr(t),f=Li(),l=f.getValues,h=f.resetField,g=f.formState,y=f.reset,_=xr(d,s),w=xr(l(),s),E=g.dirtyFields,x=Object.keys(E).includes(s);p.useEffect(function(){if(!(a==null||w!=null||_!=null||x)){var T=s.split(".").some(function(O){return MZ.test(O)});if(T){var I=s.split(".").slice(0,-1).join("."),R=xr(l(),I);if(R==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),y({},{keepValues:!0});return}h(s,{defaultValue:a})}})},MZ=/^\d+$/,Bq=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,s=o===void 0?"disabled":o,d=e.translateChoice,f=d===void 0?!0:d,l=at(),h=p.useCallback(function(_){if(p.isValidElement(r))return p.createElement(Fc,{value:_},r);var w=typeof r=="function"?r(_):xr(_,r);return p.isValidElement(w)?w:f?l(String(w),{_:w}):String(w)},[r,l,f]),g=p.useCallback(function(_){return xr(_,a)},[a]),y=p.useCallback(function(_){return xr(_,s)},[s]);return{getChoiceText:h,getChoiceValue:g,getDisableValue:y}},FZ=function(e){var t=Kb(),r=t.dirtyFields,n=t.touchedFields,a=t.validatingFields,o=t.errors,s=Object.keys(r),d=Object.keys(n),f=Object.keys(a),l=Object.keys(o),h=mw(),g=p.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0,isValidating:!0}),y=g[0],_=g[1],w=wr(function(){if(h){var E=h.getGroupFields(e),x=E.map(function(I){return{name:I,error:xr(o,I,void 0),isDirty:xr(r,I,!1)!==!1,isValid:xr(o,I,void 0)==null,isValidating:xr(a,I,void 0)==null,isTouched:xr(n,I,!1)!==!1}}).filter(function(I){return I!=null}),T=$Z(x);_(function(I){return ki(I,T)?I:T})}});return p.useEffect(function(){w()},[JSON.stringify(s),JSON.stringify(l),JSON.stringify(d),JSON.stringify(f),w,e,h]),p.useEffect(function(){if(h){var E=h.subscribe(e,function(){w()});return E}},[h,e,w]),y},$Z=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var a={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid,isValidating:t.isValidating&&r.isValidating};return a},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1,isValidating:!1})},zq=function(){var e=p.useContext(Dq);return e},ak=function(){return ak=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var Gq=function(){return p.useContext(Wq)},ik=function(){return ik=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||w.customRoutesWithLayout.length>0||w.customRoutesWithoutLayout.length>0?"ready":"empty"),_&&g(_),[2]})})};r||y()},[e,n,r,d,t,s,h]),[o,l]},cee=function(e){var t=p.useState(e),r=t[0],n=t[1],a=p.useCallback(function(o){n(function(s){return{customRoutesWithLayout:s.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:s.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:s.resources.concat(o.resources)}})},[]);return[r,n,a]},dee=function(e,t){var r=Gq(),n=r.register,a=r.unregister;p.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var s=o.type.registerResource(o.props,t);n(s)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var s=o.type.registerResource(o.props,t);a(s)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},fee=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return Kq(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},Kq=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]},By=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(p.Children.forEach(e,function(a){if(p.isValidElement(a)){if(a.type===p.Fragment){var o=By(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var s=a;s.props.noLayout?r.push(s.props.children):t.push(s.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},Qq=p.createContext(!1),pee=Qq.Provider,hee=function(){return p.useContext(Qq)},vee=function(e){eee();var t=Pf(),r=lee(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,s=r.resources,d=e.layout,f=e.catchAll,l=e.dashboard,h=e.loading,g=e.requireAuth,y=e.ready,_=p.useState(g),w=_[0],E=_[1],x=p.useState(g),T=x[0],I=x[1],R=i6();if(p.useEffect(function(){g&&R(void 0,!1).then(function(){E(!1)}).catch(function(){}).finally(function(){I(!1)})},[R,g]),o==="empty"){if(!y)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return p.createElement(y,null)}return o==="loading"||T?p.createElement(_c,null,a,p.createElement(ya,{path:"*",element:p.createElement("div",{style:{height:"100vh"}},p.createElement(h,null))})):w?p.createElement(_c,null,a,p.createElement(ya,{path:"*",element:p.createElement(Jee,null)})):p.createElement(_c,null,a,p.createElement(ya,{path:"/*",element:p.createElement(pee,{value:!!l},p.createElement(d,null,p.createElement(_c,null,n,p.Children.map(s,function(O){return p.createElement(ya,{key:O.props.name,path:"".concat(O.props.name,"/*"),element:O})}),p.createElement(ya,{path:"/",element:l?p.createElement(Wee,{authParams:mee,component:l}):s.length>0?p.createElement(IG,{to:t({resource:s[0].props.name,type:"list"})}):null}),p.createElement(ya,{path:"*",element:p.createElement(f,null)}))))}))},mee={params:{route:"dashboard"}},Xq=p.createContext("React Admin"),gee=Xq.Provider,Yq=function(){return p.useContext(Xq)},yee=function(e){var t=e.children;return p.createElement(p.Fragment,null,t)},bee=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return Uq(n),p.createElement("div",null,p.createElement("h1",null,"Error"),p.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},_ee=function(e){var t=p.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,s=e.catchAll,d=s===void 0?uN:s,f=e.children,l=e.dashboard,h=e.disableTelemetry,g=h===void 0?!1:h,y=e.error,_=y===void 0?bee:y,w=e.layout,E=w===void 0?yee:w,x=e.loading,T=x===void 0?uN:x,I=e.loginPage,R=I===void 0?!1:I,O=e.ready,C=O===void 0?Pee:O,P=e.requireAuth,j=P===void 0?!1:P,k=e.title,M=k===void 0?"React Admin":k;p.useEffect(function(){if(!(g||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var N=new Image;N.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[g]);var $=function(N,B){return n(B)};return p.createElement(gee,{value:M},p.createElement(Hq,{onError:$,fallbackRender:function(N){var B=N.error,q=N.resetErrorBoundary;return p.createElement("div",{style:{minHeight:"100vh"}},p.createElement(_,{error:B,errorInfo:r,resetErrorBoundary:q}))}},p.createElement(_c,null,R!==!1&&R!==!0?p.createElement(ya,{path:"/login",element:lN(R)}):null,o!==!1&&o!==!0?p.createElement(ya,{path:"/auth-callback",element:lN(o)}):null,p.createElement(ya,{path:"/*",element:p.createElement(vee,{catchAll:d,dashboard:l,layout:E,loading:T,requireAuth:j,ready:C},f)}))))},lN=function(e){return p.isValidElement(e)?e:p.createElement(e)},uN=function(){return null},Jq=function(e){return null};Jq.raName="CustomRoutes";var Zq=p.createContext(void 0),Nc=function(e){var t=e.children,r=e.value;return r?p.createElement(Zq.Provider,{value:r},t):t},e6=function(e){var t=e.value,r=e.children;return t?p.createElement(Nc,{value:t},r):r},HR={exports:{}},Ar={};/** - * @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 cN;function xee(){if(cN)return Ar;cN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function E(x){if(typeof x=="object"&&x!==null){var T=x.$$typeof;switch(T){case e:switch(x=x.type,x){case r:case a:case n:case l:case h:return x;default:switch(x=x&&x.$$typeof,x){case d:case s:case f:case y:case g:case o:return x;default:return T}}case t:return T}}}return Ar.ContextConsumer=s,Ar.ContextProvider=o,Ar.Element=e,Ar.ForwardRef=f,Ar.Fragment=r,Ar.Lazy=y,Ar.Memo=g,Ar.Portal=t,Ar.Profiler=a,Ar.StrictMode=n,Ar.Suspense=l,Ar.SuspenseList=h,Ar.isAsyncMode=function(){return!1},Ar.isConcurrentMode=function(){return!1},Ar.isContextConsumer=function(x){return E(x)===s},Ar.isContextProvider=function(x){return E(x)===o},Ar.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Ar.isForwardRef=function(x){return E(x)===f},Ar.isFragment=function(x){return E(x)===r},Ar.isLazy=function(x){return E(x)===y},Ar.isMemo=function(x){return E(x)===g},Ar.isPortal=function(x){return E(x)===t},Ar.isProfiler=function(x){return E(x)===a},Ar.isStrictMode=function(x){return E(x)===n},Ar.isSuspense=function(x){return E(x)===l},Ar.isSuspenseList=function(x){return E(x)===h},Ar.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===a||x===n||x===l||x===h||x===_||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===g||x.$$typeof===o||x.$$typeof===s||x.$$typeof===f||x.$$typeof===w||x.getModuleId!==void 0)},Ar.typeOf=E,Ar}var dN;function wee(){return dN||(dN=1,HR.exports=xee()),HR.exports}var sk=wee(),Gn=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return p.createElement(Nc,{value:a},p.createElement(_c,null,t&&p.createElement(ya,{path:"create/*",element:D_(t)}),o&&p.createElement(ya,{path:":id/show/*",element:D_(o)}),r&&p.createElement(ya,{path:":id/*",element:D_(r)}),n&&p.createElement(ya,{path:"/*",element:p.createElement(yX,{storeKey:"".concat(a,".list.scrollPosition")},D_(n))}),e.children))},D_=function(e){if(p.isValidElement(e))return e;if(sk.isValidElementType(e)){var t=e;return p.createElement(t,null)}return null};Gn.raName="Resource";Gn.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,s=e.options,d=e.show,f=e.recordRepresentation,l=e.hasCreate,h=e.hasEdit,g=e.hasShow;return{name:o,options:s,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!h,hasShow:!!d||!!g,icon:n,recordRepresentation:f}};var Qj=p.createContext(void 0),See={getSource:function(e){return e},getLabel:function(e){return e}},gw=Qj.Provider,Xj=function(){var e=p.useContext(Qj);return e||See},Eee=function(){return p.useContext(Qj)},Xb=function(){return Gq().definitions},_r={},fN;function Cee(){if(fN)return _r;fN=1;/*! - * inflection - * Copyright(c) 2011 Ben Lin - * MIT Licensed - * - * @fileoverview - * A port of inflection-js to node.js module. - */Object.defineProperty(_r,"__esModule",{value:!0}),_r.transform=_r.ordinalize=_r.foreignKey=_r.classify=_r.tableize=_r.demodulize=_r.titleize=_r.dasherize=_r.capitalize=_r.humanize=_r.underscore=_r.camelize=_r.inflect=_r.singularize=_r.pluralize=void 0;const e=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],t={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},r=[[t.plural.men],[t.plural.people],[t.plural.children],[t.plural.tia],[t.plural.analyses],[t.plural.databases],[t.plural.drives],[t.plural.hives],[t.plural.curves],[t.plural.lrves],[t.plural.foves],[t.plural.aeiouyies],[t.plural.series],[t.plural.movies],[t.plural.xes],[t.plural.mice],[t.plural.buses],[t.plural.oes],[t.plural.shoes],[t.plural.crises],[t.plural.octopuses],[t.plural.aliases],[t.plural.summonses],[t.plural.oxen],[t.plural.matrices],[t.plural.feet],[t.plural.teeth],[t.plural.geese],[t.plural.quizzes],[t.plural.whereases],[t.plural.criteria],[t.plural.genera],[t.singular.man,"$1en"],[t.singular.person,"$1ople"],[t.singular.child,"$1ren"],[t.singular.drive,"$1s"],[t.singular.ox,"$1en"],[t.singular.axis,"$1es"],[t.singular.octopus,"$1uses"],[t.singular.alias,"$1es"],[t.singular.summons,"$1es"],[t.singular.bus,"$1ses"],[t.singular.buffalo,"$1oes"],[t.singular.tium,"$1a"],[t.singular.sis,"ses"],[t.singular.ffe,"$1$2ves"],[t.singular.hive,"$1ves"],[t.singular.aeiouyy,"$1ies"],[t.singular.matrix,"$1ices"],[t.singular.vertex,"$1ices"],[t.singular.x,"$1es"],[t.singular.mouse,"$1ice"],[t.singular.foot,"feet"],[t.singular.tooth,"teeth"],[t.singular.goose,"geese"],[t.singular.quiz,"$1zes"],[t.singular.whereas,"$1es"],[t.singular.criterion,"$1a"],[t.singular.genus,"genera"],[t.singular.s,"s"],[t.singular.common,"s"]],n=[[t.singular.man],[t.singular.person],[t.singular.child],[t.singular.drive],[t.singular.ox],[t.singular.axis],[t.singular.octopus],[t.singular.alias],[t.singular.summons],[t.singular.bus],[t.singular.buffalo],[t.singular.tium],[t.singular.sis],[t.singular.ffe],[t.singular.hive],[t.singular.aeiouyy],[t.singular.x],[t.singular.matrix],[t.singular.mouse],[t.singular.foot],[t.singular.tooth],[t.singular.goose],[t.singular.quiz],[t.singular.whereas],[t.singular.criterion],[t.singular.genus],[t.plural.men,"$1an"],[t.plural.people,"$1rson"],[t.plural.children,"$1"],[t.plural.databases,"$1"],[t.plural.drives,"$1"],[t.plural.genera,"genus"],[t.plural.criteria,"$1on"],[t.plural.tia,"$1um"],[t.plural.analyses,"$1$2sis"],[t.plural.hives,"$1ve"],[t.plural.curves,"$1"],[t.plural.lrves,"$1f"],[t.plural.aves,"$1ve"],[t.plural.foves,"$1fe"],[t.plural.movies,"$1ovie"],[t.plural.aeiouyies,"$1y"],[t.plural.series,"$1eries"],[t.plural.xes,"$1"],[t.plural.mice,"$1ouse"],[t.plural.buses,"$1"],[t.plural.oes,"$1"],[t.plural.shoes,"$1"],[t.plural.crises,"$1is"],[t.plural.octopuses,"$1us"],[t.plural.aliases,"$1"],[t.plural.summonses,"$1"],[t.plural.oxen,"$1"],[t.plural.matrices,"$1ix"],[t.plural.vertices,"$1ex"],[t.plural.feet,"foot"],[t.plural.teeth,"tooth"],[t.plural.geese,"goose"],[t.plural.quizzes,"$1"],[t.plural.whereases,"$1"],[t.plural.ss,"ss"],[t.plural.s,""]],a=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],o=new RegExp("(_ids|_id)$","g"),s=new RegExp("_","g"),d=new RegExp("[ _]","g"),f=new RegExp("([A-Z])","g"),l=new RegExp("^_");function h(N,B,q,V){if(V)return V;if(q.includes(N.toLocaleLowerCase()))return N;for(const G of B)if(N.match(G[0]))return G[1]!==void 0?N.replace(G[0],G[1]):N;return N}function g(N,B){return h(N,r,e,B)}_r.pluralize=g;function y(N,B){return h(N,n,e,B)}_r.singularize=y;function _(N,B,q,V){return isNaN(B)?N:B===1?h(N,n,e,q):h(N,r,e,V)}_r.inflect=_;function w(N,B){const q=N.split("/"),V=q.length;let G,Y,X,H;for(let te=0;te1?Cc.pluralize(r):Cc.singularize(r))});return o}},vr=function(e){var t=p.useContext(Zq);return e&&e.resource||t},uu=function(e){var t=vr(e),r=Xb(),n=e||{},a=n.hasCreate,o=n.hasEdit,s=n.hasList,d=n.hasShow,f=n.recordRepresentation,l=p.useMemo(function(){return qj({},{hasCreate:a,hasEdit:o,hasList:s,hasShow:d,recordRepresentation:f},t?r[t]:{})},[t,r,a,o,s,d,f]);return l},yw=function(e){var t=uu({resource:e}).recordRepresentation;return p.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?xr(r,t):p.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},bw=function(e){var t=Xj();return t.getSource(e)},t6=function(){var e=at(),t=vr(),r=Eee();return p.useCallback(function(n){var a=n.source,o=n.label,s=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,Ree({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:s,resourceFromContext:t,source:a}))},[t,e,r])},Oee="en",r6=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=t6();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:p.createElement("span",null,o({label:r,resource:n,source:t}),a&&p.createElement("span",{"aria-hidden":"true"}," *"))};r6.displayName="FieldTitle";const ji=p.memo(r6),Pee=function(){return p.createElement("span",null)},Yj=function(e,t){};var Ree=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var s=kee(o),d=s.sourceWithoutDigits,f=s.sourceSuffix,l=Cc.transform(f.replace(/\./g," "),["underscore","humanize"]);return n?[pN(n,d),{_:l}]:r?[r,{_:l}]:[pN(a||"undefined",d),{_:l}]},pN=function(e,t){return"resources.".concat(e,".fields.").concat(t)},kee=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,s){Iee(o)&&(n=s)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},Iee=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};function jee(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Tee=typeof window<"u"?p.useLayoutEffect:p.useEffect,wr=function(e){var t=p.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return Tee(function(){t.current=e}),p.useCallback(function(){for(var r=[],n=0;n"u"?t:y)});return function(){return g()}},[e,o,t,n,d]);var l=wr(function(h,g){var y=typeof h=="function"?h(d):h;a(e,typeof y>"u"?typeof g>"u"?t:g:y)});return[d,l]},Aee=function(e){var t=nw().removeItem;return p.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])},Mee=function(e){var t=nw().removeItems;return p.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])},Fee=function(){var e=nw().reset;return e},xv=function(){var e=su(),t=$i(),r=Fee(),n=ul(),a=p.useRef(n),o=Yn(),s=p.useRef(o),d=Mc(),f=Qs("".concat(d,"/").concat(qx.loginUrl));p.useEffect(function(){s.current=o,a.current=n},[o,n]);var l=p.useCallback(function(h,g,y){return h===void 0&&(h={}),g===void 0&&(g=f),y===void 0&&(y=!0),e?e.logout(h).then(function(_){if(_===!1||g===!1){r(),t.clear();return}var w=_||g;if(w!=null&&w.startsWith("http"))return r(),t.clear(),window.location.href=w,w;var E=w.split("?"),x={pathname:E[0]},T={};return y&&s.current&&s.current.pathname&&(T={state:{nextPathname:s.current.pathname,nextSearch:s.current.search}}),E[1]&&(x.search=E[1]),a.current(x,T),r(),t.clear(),_}):(a.current({pathname:f},{state:{nextPathname:s.current&&s.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,f,t]);return l},Qd=function(){return Qd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},vN=function(){},Xd=function(){return Xd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),wv(t);var s=a6(t).permissions;if(a)return p.createElement(a,Xy({permissions:s},o));if(n)return n(Xy({permissions:s},o));if(r)return r(Xy({permissions:s},o))},o6=function(){var e=su(),t=Yn(),r=t.state,n=ul(),a=Mc(),o=wz().resetNotifications,s=r&&r.nextPathname,d=r&&r.nextSearch,f=Qs("".concat(a,"/").concat(qx.afterLoginUrl)),l=p.useCallback(function(h,g){return h===void 0&&(h={}),e?e.login(h).then(function(y){if(o(),y&&y.hasOwnProperty("redirectTo"))y&&n(y.redirectTo);else{var _=g||s+d||f;n(_)}return y}):(o(),n(f),Promise.resolve())},[e,n,s,d,o,f]);return l},Hee="AUTH_LOGIN",Gee="AUTH_CHECK",Kee="AUTH_ERROR",Qee="AUTH_LOGOUT",Xee="AUTH_GET_PERMISSIONS";const Yee=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Yy=function(){return Yy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return _a(r&&e?"".concat(r,".").concat(e):r??e,t)},Jj=function(){var e=p.useContext(Vq);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},dte=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?ga(Sv,--ko):0,tv--,Ln===10&&(tv=1,xw--),Ln}function Xo(){return Ln=ko2||bb(Ln)>3?"":" "}function Ite(e,t){for(;--t&&Xo()&&!(Ln<48||Ln>102||Ln>57&&Ln<65||Ln>70&&Ln<97););return Yb(e,l1()+(t<6&&tl()==32&&Xo()==32))}function ck(e){for(;Xo();)switch(Ln){case e:return ko;case 34:case 39:e!==34&&e!==39&&ck(Ln);break;case 40:e===41&&ck(e);break;case 92:Xo();break}return ko}function jte(e,t){for(;Xo()&&e+Ln!==57;)if(e+Ln===84&&tl()===47)break;return"/*"+Yb(t,ko-1)+"*"+_w(e===47?e:Xo())}function Tte(e){for(;!bb(tl());)Xo();return Yb(e,ko)}function Ate(e){return m6(c1("",null,null,null,[""],e=v6(e),0,[0],e))}function c1(e,t,r,n,a,o,s,d,f){for(var l=0,h=0,g=s,y=0,_=0,w=0,E=1,x=1,T=1,I=0,R="",O=a,C=o,P=n,j=R;x;)switch(w=I,I=Xo()){case 40:if(w!=108&&ga(j,g-1)==58){uk(j+=kr(u1(I),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:j+=u1(I);break;case 9:case 10:case 13:case 32:j+=kte(w);break;case 92:j+=Ite(l1()-1,7);continue;case 47:switch(tl()){case 42:case 47:N_(Mte(jte(Xo(),l1()),t,r),f);break;default:j+="/"}break;case 123*E:d[l++]=Xs(j)*T;case 125*E:case 59:case 0:switch(I){case 0:case 125:x=0;case 59+h:T==-1&&(j=kr(j,/\f/g,"")),_>0&&Xs(j)-g&&N_(_>32?_N(j+";",n,r,g-1):_N(kr(j," ","")+";",n,r,g-2),f);break;case 59:j+=";";default:if(N_(P=bN(j,t,r,l,h,a,d,R,O=[],C=[],g),o),I===123)if(h===0)c1(j,t,P,P,O,o,g,d,C);else switch(y===99&&ga(j,3)===110?100:y){case 100:case 108:case 109:case 115:c1(e,P,P,n&&N_(bN(e,P,P,0,0,a,d,R,a,O=[],g),C),a,C,g,d,n?O:C);break;default:c1(j,P,P,P,[""],C,0,d,C)}}l=h=_=0,E=T=1,R=j="",g=s;break;case 58:g=1+Xs(j),_=w;default:if(E<1){if(I==123)--E;else if(I==125&&E++==0&&Rte()==125)continue}switch(j+=_w(I),I*E){case 38:T=h>0?1:(j+="\f",-1);break;case 44:d[l++]=(Xs(j)-1)*T,T=1;break;case 64:tl()===45&&(j+=u1(Xo())),y=tl(),h=g=Xs(R=j+=Tte(l1())),I++;break;case 45:w===45&&Xs(j)==2&&(E=0)}}return o}function bN(e,t,r,n,a,o,s,d,f,l,h){for(var g=a-1,y=a===0?o:[""],_=tT(y),w=0,E=0,x=0;w0?y[T]+" "+I:kr(I,/&\f/g,y[T])))&&(f[x++]=R);return ww(e,t,r,a===0?Zj:d,f,l,h)}function Mte(e,t,r){return ww(e,t,r,d6,_w(Pte()),yb(e,2,-2),0)}function _N(e,t,r,n){return ww(e,t,r,eT,yb(e,0,n),yb(e,n+1,-1),n)}function Ch(e,t){for(var r="",n=tT(e),a=0;a6)switch(ga(e,t+1)){case 109:if(ga(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+Rr+"$2-$3$1"+G1+(ga(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uk(e,"stretch")?g6(kr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ga(e,t+1)!==115)break;case 6444:switch(ga(e,Xs(e)-3-(~uk(e,"!important")&&10))){case 107:return kr(e,":",":"+Rr)+e;case 101:return kr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rr+(ga(e,14)===45?"inline-":"")+"box$3$1"+Rr+"$2$3$1"+Ta+"$2box$3")+e}break;case 5936:switch(ga(e,t+11)){case 114:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rr+e+Ta+e+e}return e}var Ute=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case eT:t.return=g6(t.value,t.length);break;case f6:return Ch([og(t,{value:kr(t.value,"@","@"+Rr)})],a);case Zj:if(t.length)return Ote(t.props,function(o){switch(Cte(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ch([og(t,{props:[kr(o,/:(read-\w+)/,":"+G1+"$1")]})],a);case"::placeholder":return Ch([og(t,{props:[kr(o,/:(plac\w+)/,":"+Rr+"input-$1")]}),og(t,{props:[kr(o,/:(plac\w+)/,":"+G1+"$1")]}),og(t,{props:[kr(o,/:(plac\w+)/,Ta+"input-$1")]})],a)}return""})}},Vte=[Ute],y6=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(E){var x=E.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||Vte,o={},s,d=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(E){for(var x=E.getAttribute("data-emotion").split(" "),T=1;T=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Yte={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jte=/[A-Z]|^ms/g,Zte=/_EMO_([^_]+?)_([^]*?)_EMO_/g,x6=function(t){return t.charCodeAt(1)===45},CN=function(t){return t!=null&&typeof t!="boolean"},XR=c6(function(e){return x6(e)?e:e.replace(Jte,"-$&").toLowerCase()}),ON=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zte,function(n,a,o){return Ys={name:a,styles:o,next:Ys},a})}return Yte[t]!==1&&!x6(t)&&typeof r=="number"&&r!==0?r+"px":r};function _b(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Ys={name:a.name,styles:a.styles,next:Ys},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ys={name:s.name,styles:s.styles,next:Ys},s=s.next;var d=o.styles+";";return d}return ere(e,t,r)}case"function":{if(e!==void 0){var f=Ys,l=r(e);return Ys=f,_b(e,t,l)}break}}var h=r;if(t==null)return h;var g=t[h];return g!==void 0?g:h}function ere(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?ore:ire},IN=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},sre=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return b6(r,n,a),rre(function(){return _6(r,n,a)}),null},lre=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var d=IN(t,r,n),f=d||kN(a),l=!f("as");return function(){var h=arguments,g=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&g.push("label:"+o+";"),h[0]==null||h[0].raw===void 0)g.push.apply(g,h);else{g.push(h[0][0]);for(var y=h.length,_=1;_t(dre(a)?r:a):t;return A.jsx(are,{styles:n})}function nT(e,t){return dk(e,t)}const O6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fre=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:C6,StyledEngineProvider:cre,ThemeContext:Jb,css:Rf,default:nT,internal_processStyles:O6,keyframes:cu},Symbol.toStringTag,{value:"Module"}));function Xl(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 P6(e){if(!Xl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=P6(e[r])}),t}function ro(e,t,r={clone:!0}){const n=r.clone?z({},e):e;return Xl(e)&&Xl(t)&&Object.keys(t).forEach(a=>{Xl(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Xl(e[a])?n[a]=ro(e[a],t[a],r):r.clone?n[a]=Xl(t[a])?P6(t[a]):t[a]:n[a]=t[a]}),n}const pre=Object.freeze(Object.defineProperty({__proto__:null,default:ro,isPlainObject:Xl},Symbol.toStringTag,{value:"Module"})),hre=["values","unit","step"],vre=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)=>z({},r,{[n.key]:n.val}),{})};function R6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Ve(e,hre),o=vre(t),s=Object.keys(o);function d(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function f(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function l(y,_){const w=s.indexOf(_);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(w!==-1&&typeof t[s[w]]=="number"?t[s[w]]:_)-n/100}${r})`}function h(y){return s.indexOf(y)+1`@media (min-width:${aT[e]}px)`};function cs(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||jN;return t.reduce((s,d,f)=>(s[o.up(o.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const o=n.breakpoints||jN;return Object.keys(t).reduce((s,d)=>{if(Object.keys(o.values||aT).indexOf(d)!==-1){const f=o.up(d);s[f]=r(t[d],d)}else{const f=d;s[f]=t[f]}return s},{})}return r(t)}function k6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function I6(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function gre(e,...t){const r=k6(e),n=[r,...t].reduce((a,o)=>ro(a,o),{});return I6(Object.keys(r),n)}function yre(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function YR({values:e,breakpoints:t,base:r}){const n=r||yre(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((s,d,f)=>(Array.isArray(e)?(s[d]=e[f]!=null?e[f]:e[o],o=f):typeof e=="object"?(s[d]=e[d]!=null?e[d]:e[o],o=d):s[d]=e,s),{})}function Ue(e){if(typeof e!="string")throw new Error(au(7));return e.charAt(0).toUpperCase()+e.slice(1)}const bre=Object.freeze(Object.defineProperty({__proto__:null,default:Ue},Symbol.toStringTag,{value:"Module"}));function rv(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function K1(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=rv(e,r)||n,t&&(a=t(a,n,e)),a}function Rn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=s=>{if(s[t]==null)return null;const d=s[t],f=s.theme,l=rv(f,n)||{};return cs(s,d,g=>{let y=K1(l,a,g);return g===y&&typeof g=="string"&&(y=K1(l,a,`${t}${g==="default"?"":Ue(g)}`,g)),r===!1?y:{[r]:y}})};return o.propTypes={},o.filterProps=[t],o}function _re(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const xre={m:"margin",p:"padding"},wre={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},TN={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sre=_re(e=>{if(e.length>2)if(TN[e])e=TN[e];else return[e];const[t,r]=e.split(""),n=xre[t],a=wre[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),oT=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],iT=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...oT,...iT];function Zb(e,t,r,n){var a;const o=(a=rv(e,t,!1))!=null?a:r;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function sT(e){return Zb(e,"spacing",8)}function xf(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 Ere(e,t){return r=>e.reduce((n,a)=>(n[a]=xf(t,r),n),{})}function Cre(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Sre(r),o=Ere(a,n),s=e[r];return cs(e,s,o)}function j6(e,t){const r=sT(e.theme);return Object.keys(e).map(n=>Cre(e,t,n,r)).reduce(Jy,{})}function gn(e){return j6(e,oT)}gn.propTypes={};gn.filterProps=oT;function yn(e){return j6(e,iT)}yn.propTypes={};yn.filterProps=iT;function Ore(e=8){if(e.mui)return e;const t=sT({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Sw(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Jy(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Oi(e){return typeof e!="number"?e:`${e}px solid`}function Di(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const Pre=Di("border",Oi),Rre=Di("borderTop",Oi),kre=Di("borderRight",Oi),Ire=Di("borderBottom",Oi),jre=Di("borderLeft",Oi),Tre=Di("borderColor"),Are=Di("borderTopColor"),Mre=Di("borderRightColor"),Fre=Di("borderBottomColor"),$re=Di("borderLeftColor"),Lre=Di("outline",Oi),Dre=Di("outlineColor"),Ew=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zb(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:xf(t,n)});return cs(e,e.borderRadius,r)}return null};Ew.propTypes={};Ew.filterProps=["borderRadius"];Sw(Pre,Rre,kre,Ire,jre,Tre,Are,Mre,Fre,$re,Ew,Lre,Dre);const Cw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zb(e.theme,"spacing",8),r=n=>({gap:xf(t,n)});return cs(e,e.gap,r)}return null};Cw.propTypes={};Cw.filterProps=["gap"];const Ow=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zb(e.theme,"spacing",8),r=n=>({columnGap:xf(t,n)});return cs(e,e.columnGap,r)}return null};Ow.propTypes={};Ow.filterProps=["columnGap"];const Pw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zb(e.theme,"spacing",8),r=n=>({rowGap:xf(t,n)});return cs(e,e.rowGap,r)}return null};Pw.propTypes={};Pw.filterProps=["rowGap"];const Nre=Rn({prop:"gridColumn"}),Bre=Rn({prop:"gridRow"}),zre=Rn({prop:"gridAutoFlow"}),qre=Rn({prop:"gridAutoColumns"}),Ure=Rn({prop:"gridAutoRows"}),Vre=Rn({prop:"gridTemplateColumns"}),Wre=Rn({prop:"gridTemplateRows"}),Hre=Rn({prop:"gridTemplateAreas"}),Gre=Rn({prop:"gridArea"});Sw(Cw,Ow,Pw,Nre,Bre,zre,qre,Ure,Vre,Wre,Hre,Gre);function Oh(e,t){return t==="grey"?t:e}const Kre=Rn({prop:"color",themeKey:"palette",transform:Oh}),Qre=Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oh}),Xre=Rn({prop:"backgroundColor",themeKey:"palette",transform:Oh});Sw(Kre,Qre,Xre);function Go(e){return e<=1&&e!==0?`${e*100}%`:e}const Yre=Rn({prop:"width",transform:Go}),lT=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||aT[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Go(r)}};return cs(e,e.maxWidth,t)}return null};lT.filterProps=["maxWidth"];const Jre=Rn({prop:"minWidth",transform:Go}),Zre=Rn({prop:"height",transform:Go}),ene=Rn({prop:"maxHeight",transform:Go}),tne=Rn({prop:"minHeight",transform:Go});Rn({prop:"size",cssProperty:"width",transform:Go});Rn({prop:"size",cssProperty:"height",transform:Go});const rne=Rn({prop:"boxSizing"});Sw(Yre,lT,Jre,Zre,ene,tne,rne);const e0={border:{themeKey:"borders",transform:Oi},borderTop:{themeKey:"borders",transform:Oi},borderRight:{themeKey:"borders",transform:Oi},borderBottom:{themeKey:"borders",transform:Oi},borderLeft:{themeKey:"borders",transform:Oi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Oi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ew},color:{themeKey:"palette",transform:Oh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oh},backgroundColor:{themeKey:"palette",transform:Oh},p:{style:yn},pt:{style:yn},pr:{style:yn},pb:{style:yn},pl:{style:yn},px:{style:yn},py:{style:yn},padding:{style:yn},paddingTop:{style:yn},paddingRight:{style:yn},paddingBottom:{style:yn},paddingLeft:{style:yn},paddingX:{style:yn},paddingY:{style:yn},paddingInline:{style:yn},paddingInlineStart:{style:yn},paddingInlineEnd:{style:yn},paddingBlock:{style:yn},paddingBlockStart:{style:yn},paddingBlockEnd:{style:yn},m:{style:gn},mt:{style:gn},mr:{style:gn},mb:{style:gn},ml:{style:gn},mx:{style:gn},my:{style:gn},margin:{style:gn},marginTop:{style:gn},marginRight:{style:gn},marginBottom:{style:gn},marginLeft:{style:gn},marginX:{style:gn},marginY:{style:gn},marginInline:{style:gn},marginInlineStart:{style:gn},marginInlineEnd:{style:gn},marginBlock:{style:gn},marginBlockStart:{style:gn},marginBlockEnd:{style:gn},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:Cw},rowGap:{style:Pw},columnGap:{style:Ow},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Go},maxWidth:{style:lT},minWidth:{transform:Go},height:{transform:Go},maxHeight:{transform:Go},minHeight:{transform:Go},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function nne(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ane(e,t){return typeof e=="function"?e(t):e}function T6(){function e(r,n,a,o){const s={[r]:n,theme:a},d=o[r];if(!d)return{[r]:n};const{cssProperty:f=r,themeKey:l,transform:h,style:g}=d;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const y=rv(a,l)||{};return g?g(s):cs(s,n,w=>{let E=K1(y,h,w);return w===E&&typeof w=="string"&&(E=K1(y,h,`${r}${w==="default"?"":Ue(w)}`,w)),f===!1?E:{[f]:E}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const s=(n=o.unstable_sxConfig)!=null?n:e0;function d(f){let l=f;if(typeof f=="function")l=f(o);else if(typeof f!="object")return f;if(!l)return null;const h=k6(o.breakpoints),g=Object.keys(h);let y=h;return Object.keys(l).forEach(_=>{const w=ane(l[_],o);if(w!=null)if(typeof w=="object")if(s[_])y=Jy(y,e(_,w,o,s));else{const E=cs({theme:o},w,x=>({[_]:x}));nne(E,w)?y[_]=t({sx:w,theme:o}):y=Jy(y,E)}else y=Jy(y,e(_,w,o,s))}),I6(g,y)}return Array.isArray(a)?a.map(d):d(a)}return t}const Ev=T6();Ev.filterProps=["sx"];function A6(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 one=["breakpoints","palette","spacing","shape"];function Cv(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,s=Ve(e,one),d=R6(r),f=Ore(a);let l=ro({breakpoints:d,direction:"ltr",components:{},palette:z({mode:"light"},n),spacing:f,shape:z({},mre,o)},s);return l.applyStyles=A6,l=t.reduce((h,g)=>ro(h,g),l),l.unstable_sxConfig=z({},e0,s==null?void 0:s.unstable_sxConfig),l.unstable_sx=function(g){return Ev({sx:g,theme:this})},l}const ine=Object.freeze(Object.defineProperty({__proto__:null,default:Cv,private_createBreakpoints:R6,unstable_applyStyles:A6},Symbol.toStringTag,{value:"Module"}));function sne(e){return Object.keys(e).length===0}function uT(e=null){const t=p.useContext(Jb);return!t||sne(t)?e:t}const lne=Cv();function Rw(e=lne){return uT(e)}function une({styles:e,themeId:t,defaultTheme:r={}}){const n=Rw(r),a=typeof e=="function"?e(t&&n[t]||n):e;return A.jsx(C6,{styles:a})}const cne=["sx"],dne=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:e0;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function kw(e){const{sx:t}=e,r=Ve(e,cne),{systemProps:n,otherProps:a}=dne(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const d=t(...s);return Xl(d)?z({},n,d):n}:o=z({},n,t),z({},a,{sx:o})}const fne=Object.freeze(Object.defineProperty({__proto__:null,default:Ev,extendSxProp:kw,unstable_createStyleFunctionSx:T6,unstable_defaultSxConfig:e0},Symbol.toStringTag,{value:"Module"})),AN=e=>e,pne=()=>{let e=AN;return{configure(t){e=t},generate(t){return e(t)},reset(){e=AN}}},cT=pne();function M6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;td!=="theme"&&d!=="sx"&&d!=="as"})(Ev);return p.forwardRef(function(f,l){const h=Rw(r),g=kw(f),{className:y,component:_="div"}=g,w=Ve(g,hne);return A.jsx(o,z({as:_,ref:l,className:Re(y,a?a(n):n),theme:t&&h[t]||h},w))})}const mne={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 wt(e,t,r="Mui"){const n=mne[t];return n?`${r}-${n}`:`${cT.generate(e)}-${t}`}function Ot(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=wt(e,a,r)}),n}const gne=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function F6(e){const t=`${e}`.match(gne);return t&&t[1]||""}function $6(e,t=""){return e.displayName||e.name||F6(e)||t}function MN(e,t,r){const n=$6(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function yne(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $6(e,"Component");if(typeof e=="object")switch(e.$$typeof){case sk.ForwardRef:return MN(e,e.render,"ForwardRef");case sk.Memo:return MN(e,e.type,"memo");default:return}}}const bne=Object.freeze(Object.defineProperty({__proto__:null,default:yne,getFunctionName:F6},Symbol.toStringTag,{value:"Module"})),_ne=["ownerState"],xne=["variants"],wne=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Sne(e){return Object.keys(e).length===0}function Ene(e){return typeof e=="string"&&e.charCodeAt(0)>96}function JR(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cne=Cv(),One=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function B_({defaultTheme:e,theme:t,themeId:r}){return Sne(t)?e:t[r]||t}function Pne(e){return e?(t,r)=>r[e]:null}function d1(e,t){let{ownerState:r}=t,n=Ve(t,_ne);const a=typeof e=="function"?e(z({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>d1(o,z({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let d=Ve(a,xne);return o.forEach(f=>{let l=!0;typeof f.props=="function"?l=f.props(z({ownerState:r},n,r)):Object.keys(f.props).forEach(h=>{(r==null?void 0:r[h])!==f.props[h]&&n[h]!==f.props[h]&&(l=!1)}),l&&(Array.isArray(d)||(d=[d]),d.push(typeof f.style=="function"?f.style(z({ownerState:r},n,r)):f.style))}),d}return a}function Rne(e={}){const{themeId:t,defaultTheme:r=Cne,rootShouldForwardProp:n=JR,slotShouldForwardProp:a=JR}=e,o=s=>Ev(z({},s,{theme:B_(z({},s,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(s,d={})=>{O6(s,C=>C.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:f,slot:l,skipVariantsResolver:h,skipSx:g,overridesResolver:y=Pne(One(l))}=d,_=Ve(d,wne),w=h!==void 0?h:l&&l!=="Root"&&l!=="root"||!1,E=g||!1;let x,T=JR;l==="Root"||l==="root"?T=n:l?T=a:Ene(s)&&(T=void 0);const I=nT(s,z({shouldForwardProp:T,label:x},_)),R=C=>typeof C=="function"&&C.__emotion_real!==C||Xl(C)?P=>d1(C,z({},P,{theme:B_({theme:P.theme,defaultTheme:r,themeId:t})})):C,O=(C,...P)=>{let j=R(C);const k=P?P.map(R):[];f&&y&&k.push(N=>{const B=B_(z({},N,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[f]||!B.components[f].styleOverrides)return null;const q=B.components[f].styleOverrides,V={};return Object.entries(q).forEach(([G,Y])=>{V[G]=d1(Y,z({},N,{theme:B}))}),y(N,V)}),f&&!w&&k.push(N=>{var B;const q=B_(z({},N,{defaultTheme:r,themeId:t})),V=q==null||(B=q.components)==null||(B=B[f])==null?void 0:B.variants;return d1({variants:V},z({},N,{theme:q}))}),E||k.push(o);const M=k.length-P.length;if(Array.isArray(C)&&M>0){const N=new Array(M).fill("");j=[...C,...N],j.raw=[...C.raw,...N]}const $=I(j,...k);return s.muiName&&($.muiName=s.muiName),$};return I.withConfig&&(O.withConfig=I.withConfig),O}}const L6=Rne();function xb(e,t){const r=z({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=z({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=z({},o),Object.keys(a).forEach(s=>{r[n][s]=xb(a[s],o[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function D6(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:xb(t.components[r].defaultProps,n)}function dT({props:e,name:t,defaultTheme:r,themeId:n}){let a=Rw(r);return n&&(a=a[n]||a),D6({theme:a,name:t,props:e})}const Yo=typeof window<"u"?p.useLayoutEffect:p.useEffect;function kne(e,t,r,n,a){const[o,s]=p.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return Yo(()=>{let d=!0;if(!r)return;const f=r(e),l=()=>{d&&s(f.matches)};return l(),f.addListener(l),()=>{d=!1,f.removeListener(l)}},[e,r]),o}const N6=p.useSyncExternalStore;function Ine(e,t,r,n,a){const o=p.useCallback(()=>t,[t]),s=p.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:h}=n(e);return()=>h}return o},[o,e,n,a,r]),[d,f]=p.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const h=r(e);return[()=>h.matches,g=>(h.addListener(g),()=>{h.removeListener(g)})]},[o,r,e]);return N6(f,d,s)}function no(e,t={}){const r=uT(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:d=!1}=D6({name:"MuiUseMediaQuery",props:t,theme:r});let f=typeof e=="function"?e(r):e;return f=f.replace(/^@media( ?)/m,""),(N6!==void 0?Ine:kne)(f,a,o,s,d)}function B6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const jne=Object.freeze(Object.defineProperty({__proto__:null,default:B6},Symbol.toStringTag,{value:"Module"}));function z6(e,t=0,r=1){return B6(e,t,r)}function Tne(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function fT(e){if(e.type)return e;if(e.charAt(0)==="#")return fT(Tne(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(au(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(au(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function q6(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function nv(e,t){return e=fT(e),t=z6(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,q6(e)}function U6(e,t){if(e=fT(e),t=z6(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 q6(e)}function pk(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Ov(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Ane(e,t){return()=>null}function f1(e,t){var r,n;return p.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 Dn(e){return e&&e.ownerDocument||document}function Ti(e){return Dn(e).defaultView||window}function Mne(e,t){return()=>null}function Q1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let FN=0;function Fne(e){const[t,r]=p.useState(e),n=e||t;return p.useEffect(()=>{t==null&&(FN+=1,r(`mui-${FN}`))},[t]),n}const $N=R1.useId;function wf(e){if($N!==void 0){const t=$N();return e??t}return Fne(e)}function $ne(e,t,r,n,a){return null}function av({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=p.useRef(e!==void 0),[o,s]=p.useState(t),d=a?e:o,f=p.useCallback(l=>{a||s(l)},[]);return[d,f]}function to(e){const t=p.useRef(e);return Yo(()=>{t.current=e}),p.useRef((...r)=>(0,t.current)(...r)).current}function fn(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Q1(r,t)})},e)}const LN={};function Lne(e,t){const r=p.useRef(LN);return r.current===LN&&(r.current=e(t)),r}const Dne=[];function Nne(e){p.useEffect(e,Dne)}class t0{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new t0}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Zd(){const e=Lne(t0.create).current;return Nne(e.disposeEffect),e}let Iw=!0,hk=!1;const Bne=new t0,zne={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 qne(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&zne[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Une(e){e.metaKey||e.altKey||e.ctrlKey||(Iw=!0)}function ZR(){Iw=!1}function Vne(){this.visibilityState==="hidden"&&hk&&(Iw=!0)}function Wne(e){e.addEventListener("keydown",Une,!0),e.addEventListener("mousedown",ZR,!0),e.addEventListener("pointerdown",ZR,!0),e.addEventListener("touchstart",ZR,!0),e.addEventListener("visibilitychange",Vne,!0)}function Hne(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Iw||qne(t)}function jw(){const e=p.useCallback(a=>{a!=null&&Wne(a.ownerDocument)},[]),t=p.useRef(!1);function r(){return t.current?(hk=!0,Bne.start(100,()=>{hk=!1}),t.current=!1,!0):!1}function n(a){return Hne(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function V6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let uh;function W6(){if(uh)return uh;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),uh="reverse",e.scrollLeft>0?uh="default":(e.scrollLeft=1,e.scrollLeft===0&&(uh="negative")),document.body.removeChild(e),uh}function Gne(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(W6()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function St(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,s)=>{if(s){const d=t(s);d!==""&&o.push(d),r&&r[s]&&o.push(r[s])}return o},[]).join(" ")}),n}function wb(e){return typeof e=="string"}function xh(e,t,r){return e===void 0||wb(e)?t:z({},t,{ownerState:z({},t.ownerState,r)})}function X1(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 DN(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 H6(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const _=Re(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),w=z({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),E=z({},r,a,n);return _.length>0&&(E.className=_),Object.keys(w).length>0&&(E.style=w),{props:E,internalRef:void 0}}const s=X1(z({},a,n)),d=DN(n),f=DN(a),l=t(s),h=Re(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=z({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=z({},l,r,f,d);return h.length>0&&(y.className=h),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:l.ref}}function G6(e,t,r){return typeof e=="function"?e(t,r):e}const Kne=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ai(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,s=Ve(e,Kne),d=o?{}:G6(n,a),{props:f,internalRef:l}=H6(z({},s,{externalSlotProps:d})),h=fn(l,d==null?void 0:d.ref,(t=e.additionalProps)==null?void 0:t.ref);return xh(r,z({},f,{ref:h}),a)}const K6=p.createContext(null);function Q6(){return p.useContext(K6)}const Qne=typeof Symbol=="function"&&Symbol.for,Xne=Qne?Symbol.for("mui.nested"):"__THEME_NESTED__";function Yne(e,t){return typeof t=="function"?t(e):z({},e,t)}function Jne(e){const{children:t,theme:r}=e,n=Q6(),a=p.useMemo(()=>{const o=n===null?r:Yne(n,r);return o!=null&&(o[Xne]=n!==null),o},[r,n]);return A.jsx(K6.Provider,{value:a,children:t})}const Zne=["value"],X6=p.createContext();function eae(e){let{value:t}=e,r=Ve(e,Zne);return A.jsx(X6.Provider,z({value:t??!0},r))}const zc=()=>{const e=p.useContext(X6);return e??!1},Y6=p.createContext(void 0);function tae({value:e,children:t}){return A.jsx(Y6.Provider,{value:e,children:t})}function rae(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?xb(a.defaultProps,n):!a.styleOverrides&&!a.variants?xb(a,n):n}function nae({props:e,name:t}){const r=p.useContext(Y6);return rae({props:e,name:t,theme:{components:r}})}const NN={};function BN(e,t,r,n=!1){return p.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),s=e?z({},t,{[e]:o}):o;return n?()=>s:s}return e?z({},t,{[e]:r}):z({},t,r)},[e,t,r,n])}function aae(e){const{children:t,theme:r,themeId:n}=e,a=uT(NN),o=Q6()||NN,s=BN(n,a,r),d=BN(n,o,r,!0),f=s.direction==="rtl";return A.jsx(Jne,{theme:d,children:A.jsx(Jb.Provider,{value:s,children:A.jsx(eae,{value:f,children:A.jsx(tae,{value:s==null?void 0:s.components,children:t})})})})}const oae=["className","component","disableGutters","fixed","maxWidth","classes"],iae=Cv(),sae=L6("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),lae=e=>dT({props:e,name:"MuiContainer",defaultTheme:iae}),uae=(e,t)=>{const r=f=>wt(t,f),{classes:n,fixed:a,disableGutters:o,maxWidth:s}=e,d={root:["root",s&&`maxWidth${Ue(String(s))}`,a&&"fixed",o&&"disableGutters"]};return St(d,r,n)};function cae(e={}){const{createStyledComponent:t=sae,useThemeProps:r=lae,componentName:n="MuiContainer"}=e,a=t(({theme:s,ownerState:d})=>z({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!d.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:d})=>d.fixed&&Object.keys(s.breakpoints.values).reduce((f,l)=>{const h=l,g=s.breakpoints.values[h];return g!==0&&(f[s.breakpoints.up(h)]={maxWidth:`${g}${s.breakpoints.unit}`}),f},{}),({theme:s,ownerState:d})=>z({},d.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},d.maxWidth&&d.maxWidth!=="xs"&&{[s.breakpoints.up(d.maxWidth)]:{maxWidth:`${s.breakpoints.values[d.maxWidth]}${s.breakpoints.unit}`}}));return p.forwardRef(function(d,f){const l=r(d),{className:h,component:g="div",disableGutters:y=!1,fixed:_=!1,maxWidth:w="lg"}=l,E=Ve(l,oae),x=z({},l,{component:g,disableGutters:y,fixed:_,maxWidth:w}),T=uae(x,n);return A.jsx(a,z({as:g,ownerState:x,className:Re(T.root,h),ref:f},E))})}const dae=["component","direction","spacing","divider","children","className","useFlexGap"],fae=Cv(),pae=L6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function hae(e){return dT({props:e,name:"MuiStack",defaultTheme:fae})}function vae(e,t){const r=p.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],gae=({ownerState:e,theme:t})=>{let r=z({display:"flex",flexDirection:"column"},cs({theme:t},YR({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=sT(t),a=Object.keys(t.breakpoints.values).reduce((f,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(f[l]=!0),f),{}),o=YR({values:e.direction,base:a}),s=YR({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((f,l,h)=>{if(!o[f]){const y=l>0?o[h[l-1]]:"column";o[f]=y}}),r=ro(r,cs({theme:t},s,(f,l)=>e.useFlexGap?{gap:xf(n,f)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${mae(l?o[l]:e.direction)}`]:xf(n,f)}}))}return r=gre(t.breakpoints,r),r};function yae(e={}){const{createStyledComponent:t=pae,useThemeProps:r=hae,componentName:n="MuiStack"}=e,a=()=>St({root:["root"]},f=>wt(n,f),{}),o=t(gae);return p.forwardRef(function(f,l){const h=r(f),g=kw(h),{component:y="div",direction:_="column",spacing:w=0,divider:E,children:x,className:T,useFlexGap:I=!1}=g,R=Ve(g,dae),O={direction:_,spacing:w,useFlexGap:I},C=a();return A.jsx(o,z({as:y,ownerState:O,ref:l,className:Re(C.root,T)},R,{children:E?vae(x,E):x}))})}function bae(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var dn={},e2={exports:{}},zN;function vt(){return zN||(zN=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(e2)),e2.exports}const _ae=iu(hte),xae=iu(jne);var qN;function wae(){if(qN)return dn;qN=1;var e=vt();Object.defineProperty(dn,"__esModule",{value:!0}),dn.alpha=w,dn.blend=P,dn.colorChannel=void 0,dn.darken=x,dn.decomposeColor=s,dn.emphasize=O,dn.getContrastRatio=_,dn.getLuminance=y,dn.hexToRgb=a,dn.hslToRgb=g,dn.lighten=I,dn.private_safeAlpha=E,dn.private_safeColorChannel=void 0,dn.private_safeDarken=T,dn.private_safeEmphasize=C,dn.private_safeLighten=R,dn.recomposeColor=l,dn.rgbToHex=h;var t=e(_ae),r=e(xae);function n(j,k=0,M=1){return(0,r.default)(j,k,M)}function a(j){j=j.slice(1);const k=new RegExp(`.{1,${j.length>=6?2:1}}`,"g");let M=j.match(k);return M&&M[0].length===1&&(M=M.map($=>$+$)),M?`rgb${M.length===4?"a":""}(${M.map(($,N)=>N<3?parseInt($,16):Math.round(parseInt($,16)/255*1e3)/1e3).join(", ")})`:""}function o(j){const k=j.toString(16);return k.length===1?`0${k}`:k}function s(j){if(j.type)return j;if(j.charAt(0)==="#")return s(a(j));const k=j.indexOf("("),M=j.substring(0,k);if(["rgb","rgba","hsl","hsla","color"].indexOf(M)===-1)throw new Error((0,t.default)(9,j));let $=j.substring(k+1,j.length-1),N;if(M==="color"){if($=$.split(" "),N=$.shift(),$.length===4&&$[3].charAt(0)==="/"&&($[3]=$[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(N)===-1)throw new Error((0,t.default)(10,N))}else $=$.split(",");return $=$.map(B=>parseFloat(B)),{type:M,values:$,colorSpace:N}}const d=j=>{const k=s(j);return k.values.slice(0,3).map((M,$)=>k.type.indexOf("hsl")!==-1&&$!==0?`${M}%`:M).join(" ")};dn.colorChannel=d;const f=(j,k)=>{try{return d(j)}catch{return j}};dn.private_safeColorChannel=f;function l(j){const{type:k,colorSpace:M}=j;let{values:$}=j;return k.indexOf("rgb")!==-1?$=$.map((N,B)=>B<3?parseInt(N,10):N):k.indexOf("hsl")!==-1&&($[1]=`${$[1]}%`,$[2]=`${$[2]}%`),k.indexOf("color")!==-1?$=`${M} ${$.join(" ")}`:$=`${$.join(", ")}`,`${k}(${$})`}function h(j){if(j.indexOf("#")===0)return j;const{values:k}=s(j);return`#${k.map((M,$)=>o($===3?Math.round(255*M):M)).join("")}`}function g(j){j=s(j);const{values:k}=j,M=k[0],$=k[1]/100,N=k[2]/100,B=$*Math.min(N,1-N),q=(Y,X=(Y+M/30)%12)=>N-B*Math.max(Math.min(X-3,9-X,1),-1);let V="rgb";const G=[Math.round(q(0)*255),Math.round(q(8)*255),Math.round(q(4)*255)];return j.type==="hsla"&&(V+="a",G.push(k[3])),l({type:V,values:G})}function y(j){j=s(j);let k=j.type==="hsl"||j.type==="hsla"?s(g(j)).values:j.values;return k=k.map(M=>(j.type!=="color"&&(M/=255),M<=.03928?M/12.92:((M+.055)/1.055)**2.4)),Number((.2126*k[0]+.7152*k[1]+.0722*k[2]).toFixed(3))}function _(j,k){const M=y(j),$=y(k);return(Math.max(M,$)+.05)/(Math.min(M,$)+.05)}function w(j,k){return j=s(j),k=n(k),(j.type==="rgb"||j.type==="hsl")&&(j.type+="a"),j.type==="color"?j.values[3]=`/${k}`:j.values[3]=k,l(j)}function E(j,k,M){try{return w(j,k)}catch{return j}}function x(j,k){if(j=s(j),k=n(k),j.type.indexOf("hsl")!==-1)j.values[2]*=1-k;else if(j.type.indexOf("rgb")!==-1||j.type.indexOf("color")!==-1)for(let M=0;M<3;M+=1)j.values[M]*=1-k;return l(j)}function T(j,k,M){try{return x(j,k)}catch{return j}}function I(j,k){if(j=s(j),k=n(k),j.type.indexOf("hsl")!==-1)j.values[2]+=(100-j.values[2])*k;else if(j.type.indexOf("rgb")!==-1)for(let M=0;M<3;M+=1)j.values[M]+=(255-j.values[M])*k;else if(j.type.indexOf("color")!==-1)for(let M=0;M<3;M+=1)j.values[M]+=(1-j.values[M])*k;return l(j)}function R(j,k,M){try{return I(j,k)}catch{return j}}function O(j,k=.15){return y(j)>.5?x(j,k):I(j,k)}function C(j,k,M){try{return O(j,k)}catch{return j}}function P(j,k,M,$=1){const N=(G,Y)=>Math.round((G**(1/$)*(1-M)+Y**(1/$)*M)**$),B=s(j),q=s(k),V=[N(B.values[0],q.values[0]),N(B.values[1],q.values[1]),N(B.values[2],q.values[2])];return l({type:"rgb",values:V})}return dn}var ir=wae();const Sae=["mode","contrastThreshold","tonalOffset"],UN={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:gb.white,default:gb.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}},t2={text:{primary:gb.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:gb.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 VN(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ir.lighten(e.main,a):t==="dark"&&(e.dark=ir.darken(e.main,o)))}function Eae(e="light"){return e==="dark"?{main:Bd[200],light:Bd[50],dark:Bd[400]}:{main:Bd[700],light:Bd[400],dark:Bd[800]}}function Cae(e="light"){return e==="dark"?{main:ih[200],light:ih[50],dark:ih[400]}:{main:ih[500],light:ih[300],dark:ih[700]}}function Oae(e="light"){return e==="dark"?{main:oh[500],light:oh[300],dark:oh[700]}:{main:oh[700],light:oh[400],dark:oh[800]}}function Pae(e="light"){return e==="dark"?{main:sh[400],light:sh[300],dark:sh[700]}:{main:sh[700],light:sh[500],dark:sh[900]}}function Rae(e="light"){return e==="dark"?{main:lh[400],light:lh[300],dark:lh[700]}:{main:lh[800],light:lh[500],dark:lh[900]}}function kae(e="light"){return e==="dark"?{main:ag[400],light:ag[300],dark:ag[700]}:{main:"#ed6c02",light:ag[500],dark:ag[900]}}function Iae(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Ve(e,Sae),o=e.primary||Eae(t),s=e.secondary||Cae(t),d=e.error||Oae(t),f=e.info||Pae(t),l=e.success||Rae(t),h=e.warning||kae(t);function g(E){return ir.getContrastRatio(E,t2.text.primary)>=r?t2.text.primary:UN.text.primary}const y=({color:E,name:x,mainShade:T=500,lightShade:I=300,darkShade:R=700})=>{if(E=z({},E),!E.main&&E[T]&&(E.main=E[T]),!E.hasOwnProperty("main"))throw new Error(au(11,x?` (${x})`:"",T));if(typeof E.main!="string")throw new Error(au(12,x?` (${x})`:"",JSON.stringify(E.main)));return VN(E,"light",I,n),VN(E,"dark",R,n),E.contrastText||(E.contrastText=g(E.main)),E},_={dark:t2,light:UN};return ro(z({common:z({},gb),mode:t,primary:y({color:o,name:"primary"}),secondary:y({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:d,name:"error"}),warning:y({color:h,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:l,name:"success"}),grey:pte,contrastThreshold:r,getContrastText:g,augmentColor:y,tonalOffset:n},_[t]),a)}const jae=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Tae(e){return Math.round(e*1e5)/1e5}const WN={textTransform:"uppercase"},HN='"Roboto", "Helvetica", "Arial", sans-serif';function Aae(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=HN,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:d=500,fontWeightBold:f=700,htmlFontSize:l=16,allVariants:h,pxToRem:g}=r,y=Ve(r,jae),_=a/14,w=g||(T=>`${T/l*_}rem`),E=(T,I,R,O,C)=>z({fontFamily:n,fontWeight:T,fontSize:w(I),lineHeight:R},n===HN?{letterSpacing:`${Tae(O/I)}em`}:{},C,h),x={h1:E(o,96,1.167,-1.5),h2:E(o,60,1.2,-.5),h3:E(s,48,1.167,0),h4:E(s,34,1.235,.25),h5:E(s,24,1.334,0),h6:E(d,20,1.6,.15),subtitle1:E(s,16,1.75,.15),subtitle2:E(d,14,1.57,.1),body1:E(s,16,1.5,.15),body2:E(s,14,1.43,.15),button:E(d,14,1.75,.4,WN),caption:E(s,12,1.66,.4),overline:E(s,12,2.66,1,WN),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ro(z({htmlFontSize:l,pxToRem:w,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:f},x),y,{clone:!1})}const Mae=.2,Fae=.14,$ae=.12;function on(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Mae})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fae})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$ae})`].join(",")}const Lae=["none",on(0,2,1,-1,0,1,1,0,0,1,3,0),on(0,3,1,-2,0,2,2,0,0,1,5,0),on(0,3,3,-2,0,3,4,0,0,1,8,0),on(0,2,4,-1,0,4,5,0,0,1,10,0),on(0,3,5,-1,0,5,8,0,0,1,14,0),on(0,3,5,-1,0,6,10,0,0,1,18,0),on(0,4,5,-2,0,7,10,1,0,2,16,1),on(0,5,5,-3,0,8,10,1,0,3,14,2),on(0,5,6,-3,0,9,12,1,0,3,16,2),on(0,6,6,-3,0,10,14,1,0,4,18,3),on(0,6,7,-4,0,11,15,1,0,4,20,3),on(0,7,8,-4,0,12,17,2,0,5,22,4),on(0,7,8,-4,0,13,19,2,0,5,24,4),on(0,7,9,-4,0,14,21,2,0,5,26,4),on(0,8,9,-5,0,15,22,2,0,6,28,5),on(0,8,10,-5,0,16,24,2,0,6,30,5),on(0,8,11,-5,0,17,26,2,0,6,32,5),on(0,9,11,-5,0,18,28,2,0,7,34,6),on(0,9,12,-6,0,19,29,2,0,7,36,6),on(0,10,13,-6,0,20,31,3,0,8,38,7),on(0,10,13,-6,0,21,33,3,0,8,40,7),on(0,10,14,-6,0,22,35,3,0,8,42,7),on(0,11,14,-7,0,23,36,3,0,9,44,8),on(0,11,15,-7,0,24,38,3,0,9,46,8)],Dae=["duration","easing","delay"],Nae={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)"},Bae={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function GN(e){return`${Math.round(e)}ms`}function zae(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function qae(e){const t=z({},Nae,e.easing),r=z({},Bae,e.duration);return z({getAutoHeightDuration:zae,create:(a=["all"],o={})=>{const{duration:s=r.standard,easing:d=t.easeInOut,delay:f=0}=o;return Ve(o,Dae),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof s=="string"?s:GN(s)} ${d} ${typeof f=="string"?f:GN(f)}`).join(",")}},e,{easing:t,duration:r})}const Uae={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Vae=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Y1(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,s=Ve(e,Vae);if(e.vars)throw new Error(au(18));const d=Iae(n),f=Cv(e);let l=ro(f,{mixins:bae(f.breakpoints,r),palette:d,shadows:Lae.slice(),typography:Aae(d,o),transitions:qae(a),zIndex:z({},Uae)});return l=ro(l,s),l=t.reduce((h,g)=>ro(h,g),l),l.unstable_sxConfig=z({},e0,s==null?void 0:s.unstable_sxConfig),l.unstable_sx=function(g){return Ev({sx:g,theme:this})},l}const Tw=Y1();function ei(){const e=Rw(Tw);return e[_f]||e}function J6({props:e,name:t}){return dT({props:e,name:t,defaultTheme:Tw,themeId:_f})}var $d={},r2={exports:{}},KN;function Wae(){return KN||(KN=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n96}function w(C){return C!=="ownerState"&&C!=="theme"&&C!=="sx"&&C!=="as"}const E=$d.systemDefaultTheme=(0,o.default)(),x=C=>C&&C.charAt(0).toLowerCase()+C.slice(1);function T({defaultTheme:C,theme:P,themeId:j}){return y(P)?C:P[j]||P}function I(C){return C?(P,j)=>j[C]:null}function R(C,P){let{ownerState:j}=P,k=(0,r.default)(P,d);const M=typeof C=="function"?C((0,t.default)({ownerState:j},k)):C;if(Array.isArray(M))return M.flatMap($=>R($,(0,t.default)({ownerState:j},k)));if(M&&typeof M=="object"&&Array.isArray(M.variants)){const{variants:$=[]}=M;let B=(0,r.default)(M,f);return $.forEach(q=>{let V=!0;typeof q.props=="function"?V=q.props((0,t.default)({ownerState:j},k,j)):Object.keys(q.props).forEach(G=>{(j==null?void 0:j[G])!==q.props[G]&&k[G]!==q.props[G]&&(V=!1)}),V&&(Array.isArray(B)||(B=[B]),B.push(typeof q.style=="function"?q.style((0,t.default)({ownerState:j},k,j)):q.style))}),B}return M}function O(C={}){const{themeId:P,defaultTheme:j=E,rootShouldForwardProp:k=w,slotShouldForwardProp:M=w}=C,$=N=>(0,s.default)((0,t.default)({},N,{theme:T((0,t.default)({},N,{defaultTheme:j,themeId:P}))}));return $.__mui_systemSx=!0,(N,B={})=>{(0,n.internal_processStyles)(N,me=>me.filter(we=>!(we!=null&&we.__mui_systemSx)));const{name:q,slot:V,skipVariantsResolver:G,skipSx:Y,overridesResolver:X=I(x(V))}=B,H=(0,r.default)(B,l),te=G!==void 0?G:V&&V!=="Root"&&V!=="root"||!1,ne=Y||!1;let K,ee=w;V==="Root"||V==="root"?ee=k:V?ee=M:_(N)&&(ee=void 0);const Ce=(0,n.default)(N,(0,t.default)({shouldForwardProp:ee,label:K},H)),se=me=>typeof me=="function"&&me.__emotion_real!==me||(0,a.isPlainObject)(me)?we=>R(me,(0,t.default)({},we,{theme:T({theme:we.theme,defaultTheme:j,themeId:P})})):me,Se=(me,...we)=>{let Oe=se(me);const ie=we?we.map(se):[];q&&X&&ie.push($e=>{const Te=T((0,t.default)({},$e,{defaultTheme:j,themeId:P}));if(!Te.components||!Te.components[q]||!Te.components[q].styleOverrides)return null;const Be=Te.components[q].styleOverrides,Le={};return Object.entries(Be).forEach(([dt,He])=>{Le[dt]=R(He,(0,t.default)({},$e,{theme:Te}))}),X($e,Le)}),q&&!te&&ie.push($e=>{var Te;const Be=T((0,t.default)({},$e,{defaultTheme:j,themeId:P})),Le=Be==null||(Te=Be.components)==null||(Te=Te[q])==null?void 0:Te.variants;return R({variants:Le},(0,t.default)({},$e,{theme:Be}))}),ne||ie.push($);const Fe=ie.length-we.length;if(Array.isArray(me)&&Fe>0){const $e=new Array(Fe).fill("");Oe=[...me,...$e],Oe.raw=[...me.raw,...$e]}const ke=Ce(Oe,...ie);return N.muiName&&(ke.muiName=N.muiName),ke};return Ce.withConfig&&(Se.withConfig=Ce.withConfig),Se}}return $d}var Zae=Jae();const eoe=tt(Zae);function eU(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wa=e=>eU(e)&&e!=="classes",he=eoe({themeId:_f,defaultTheme:Tw,rootShouldForwardProp:wa}),toe=["theme"];function roe(e){let{theme:t}=e,r=Ve(e,toe);const n=t[_f];return A.jsx(aae,z({},r,{themeId:n?_f:void 0,theme:n||t}))}const YN=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Et(e){return nae(e)}function noe(e){return wt("MuiSvgIcon",e)}Ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const aoe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ooe=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Ue(t)}`,`fontSize${Ue(r)}`]};return St(a,noe,n)},ioe=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ue(r.color)}`],t[`fontSize${Ue(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,s,d,f,l,h,g,y,_,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,24))||"1.5rem",large:((l=e.typography)==null||(h=l.pxToRem)==null?void 0:h.call(l,35))||"2.1875rem"}[t.fontSize],color:(g=(y=(e.vars||e).palette)==null||(y=y[t.color])==null?void 0:y.main)!=null?g:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),vk=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:d="svg",fontSize:f="medium",htmlColor:l,inheritViewBox:h=!1,titleAccess:g,viewBox:y="0 0 24 24"}=n,_=Ve(n,aoe),w=p.isValidElement(a)&&a.type==="svg",E=z({},n,{color:s,component:d,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:y,hasSvgAsChild:w}),x={};h||(x.viewBox=y);const T=ooe(E);return A.jsxs(ioe,z({as:d,className:Re(T.root,o),focusable:"false",color:l,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:r},x,_,w&&a.props,{ownerState:E,children:[w?a.props.children:a,g?A.jsx("title",{children:g}):null]}))});vk.muiName="SvgIcon";function ti(e,t){function r(n,a){return A.jsx(vk,z({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=vk.muiName,p.memo(p.forwardRef(r))}const soe={configure:e=>{cT.configure(e)}},loe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ue,createChainedFunction:pk,createSvgIcon:ti,debounce:Ov,deprecatedPropType:Ane,isMuiElement:f1,ownerDocument:Dn,ownerWindow:Ti,requirePropFactory:Mne,setRef:Q1,unstable_ClassNameGenerator:soe,unstable_useEnhancedEffect:Yo,unstable_useId:wf,unsupportedProp:$ne,useControlled:av,useEventCallback:to,useForkRef:fn,useIsFocusVisible:jw},Symbol.toStringTag,{value:"Module"}));function mk(e,t){return mk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},mk(e,t)}function tU(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mk(e,t)}const JN={disabled:!1},J1=Ke.createContext(null);var uoe=function(t){return t.scrollTop},zy="unmounted",zd="exited",qd="entering",ph="entered",gk="exiting",ps=function(e){tU(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var s=a,d=s&&!s.isMounting?n.enter:n.appear,f;return o.appearStatus=null,n.in?d?(f=zd,o.appearStatus=qd):f=ph:n.unmountOnExit||n.mountOnEnter?f=zy:f=zd,o.state={status:f},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===zy?{status:zd}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==qd&&s!==ph&&(o=qd):(s===qd||s===ph)&&(o=gk)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,s,d;return o=s=d=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,d=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:d}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===qd){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Fy.findDOMNode(this);s&&uoe(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zd&&this.setState({status:zy})},r.performEnter=function(a){var o=this,s=this.props.enter,d=this.context?this.context.isMounting:a,f=this.props.nodeRef?[d]:[Fy.findDOMNode(this),d],l=f[0],h=f[1],g=this.getTimeouts(),y=d?g.appear:g.enter;if(!a&&!s||JN.disabled){this.safeSetState({status:ph},function(){o.props.onEntered(l)});return}this.props.onEnter(l,h),this.safeSetState({status:qd},function(){o.props.onEntering(l,h),o.onTransitionEnd(y,function(){o.safeSetState({status:ph},function(){o.props.onEntered(l,h)})})})},r.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),d=this.props.nodeRef?void 0:Fy.findDOMNode(this);if(!o||JN.disabled){this.safeSetState({status:zd},function(){a.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:gk},function(){a.props.onExiting(d),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:zd},function(){a.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,s=!0;return this.nextCallback=function(d){s&&(s=!1,o.nextCallback=null,a(d))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Fy.findDOMNode(this),d=a==null&&!this.props.addEndListener;if(!s||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=f[0],h=f[1];this.props.addEndListener(l,h)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===zy)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var d=Ve(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ke.createElement(J1.Provider,{value:null},typeof s=="function"?s(a,d):Ke.cloneElement(Ke.Children.only(s),d))},t}(Ke.Component);ps.contextType=J1;ps.propTypes={};function ch(){}ps.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ch,onEntering:ch,onEntered:ch,onExit:ch,onExiting:ch,onExited:ch};ps.UNMOUNTED=zy;ps.EXITED=zd;ps.ENTERING=qd;ps.ENTERED=ph;ps.EXITING=gk;function coe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pT(e,t){var r=function(o){return t&&p.isValidElement(o)?t(o):o},n=Object.create(null);return e&&p.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function doe(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var s,d={};for(var f in t){if(n[f])for(s=0;se.scrollTop;function ov(e,t){var r,n;const{timeout:a,easing:o,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=s.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function moe(e){return wt("MuiPaper",e)}Ot("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 goe=["className","component","elevation","square","variant"],yoe=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return St(o,moe,a)},boe=he("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 z({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"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ir.alpha("#fff",YN(t.elevation))}, ${ir.alpha("#fff",YN(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),qc=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:s=1,square:d=!1,variant:f="elevation"}=n,l=Ve(n,goe),h=z({},n,{component:o,elevation:s,square:d,variant:f}),g=yoe(h);return A.jsx(boe,z({as:o,ownerState:h,className:Re(g.root,a),ref:r},l))}),_oe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],xoe=["component","slots","slotProps"],woe=["component"];function Soe(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:d}=t,f=Ve(t,_oe),{component:l,slots:h={[e]:void 0},slotProps:g={[e]:void 0}}=o;Ve(o,xoe);const y=h[e]||n,_=G6(g[e],a),w=H6(z({className:r},f,{externalForwardedProps:void 0,externalSlotProps:_})),{props:{component:E},internalRef:x}=w,T=Ve(w.props,woe),I=fn(x,_==null?void 0:_.ref,t.ref),R=s?s(T):{},O=z({},a,R),C=E,P=xh(y,z({},e==="root",!h[e]&&d,T,C&&{as:C},{ref:I}),O);return Object.keys(R).forEach(j=>{delete P[j]}),[y,P]}function Eoe(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:s,in:d,onExited:f,timeout:l}=e,[h,g]=p.useState(!1),y=Re(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),_={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},w=Re(r.child,h&&r.childLeaving,n&&r.childPulsate);return!d&&!h&&g(!0),p.useEffect(()=>{if(!d&&f!=null){const E=setTimeout(f,l);return()=>{clearTimeout(E)}}},[f,d,l]),A.jsx("span",{className:y,style:_,children:A.jsx("span",{className:w})})}const Si=Ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Coe=["center","classes","className"];let Aw=e=>e,ZN,e3,t3,r3;const yk=550,Ooe=80,Poe=cu(ZN||(ZN=Aw` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Roe=cu(e3||(e3=Aw` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),koe=cu(t3||(t3=Aw` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),Ioe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),joe=he(Eoe,{name:"MuiTouchRipple",slot:"Ripple"})(r3||(r3=Aw` - 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; - } -`),Si.rippleVisible,Poe,yk,({theme:e})=>e.transitions.easing.easeInOut,Si.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Si.child,Si.childLeaving,Roe,yk,({theme:e})=>e.transitions.easing.easeInOut,Si.childPulsate,koe,({theme:e})=>e.transitions.easing.easeInOut),Toe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s}=n,d=Ve(n,Coe),[f,l]=p.useState([]),h=p.useRef(0),g=p.useRef(null);p.useEffect(()=>{g.current&&(g.current(),g.current=null)},[f]);const y=p.useRef(!1),_=Zd(),w=p.useRef(null),E=p.useRef(null),x=p.useCallback(O=>{const{pulsate:C,rippleX:P,rippleY:j,rippleSize:k,cb:M}=O;l($=>[...$,A.jsx(joe,{classes:{ripple:Re(o.ripple,Si.ripple),rippleVisible:Re(o.rippleVisible,Si.rippleVisible),ripplePulsate:Re(o.ripplePulsate,Si.ripplePulsate),child:Re(o.child,Si.child),childLeaving:Re(o.childLeaving,Si.childLeaving),childPulsate:Re(o.childPulsate,Si.childPulsate)},timeout:yk,pulsate:C,rippleX:P,rippleY:j,rippleSize:k},h.current)]),h.current+=1,g.current=M},[o]),T=p.useCallback((O={},C={},P=()=>{})=>{const{pulsate:j=!1,center:k=a||C.pulsate,fakeElement:M=!1}=C;if((O==null?void 0:O.type)==="mousedown"&&y.current){y.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(y.current=!0);const $=M?null:E.current,N=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,q,V;if(k||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)B=Math.round(N.width/2),q=Math.round(N.height/2);else{const{clientX:G,clientY:Y}=O.touches&&O.touches.length>0?O.touches[0]:O;B=Math.round(G-N.left),q=Math.round(Y-N.top)}if(k)V=Math.sqrt((2*N.width**2+N.height**2)/3),V%2===0&&(V+=1);else{const G=Math.max(Math.abs(($?$.clientWidth:0)-B),B)*2+2,Y=Math.max(Math.abs(($?$.clientHeight:0)-q),q)*2+2;V=Math.sqrt(G**2+Y**2)}O!=null&&O.touches?w.current===null&&(w.current=()=>{x({pulsate:j,rippleX:B,rippleY:q,rippleSize:V,cb:P})},_.start(Ooe,()=>{w.current&&(w.current(),w.current=null)})):x({pulsate:j,rippleX:B,rippleY:q,rippleSize:V,cb:P})},[a,x,_]),I=p.useCallback(()=>{T({},{pulsate:!0})},[T]),R=p.useCallback((O,C)=>{if(_.clear(),(O==null?void 0:O.type)==="touchend"&&w.current){w.current(),w.current=null,_.start(0,()=>{R(O,C)});return}w.current=null,l(P=>P.length>0?P.slice(1):P),g.current=C},[_]);return p.useImperativeHandle(r,()=>({pulsate:I,start:T,stop:R}),[I,T,R]),A.jsx(Ioe,z({className:Re(Si.root,o.root,s),ref:E},d,{children:A.jsx(hT,{component:null,exit:!0,children:f})}))});function Aoe(e){return wt("MuiButtonBase",e)}const Moe=Ot("MuiButtonBase",["root","disabled","focusVisible"]),Foe=["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"],$oe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,s=St({root:["root",t&&"disabled",r&&"focusVisible"]},Aoe,a);return r&&n&&(s.root+=` ${n}`),s},Loe=he("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"},[`&.${Moe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),du=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:d,component:f="button",disabled:l=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:y=!1,LinkComponent:_="a",onBlur:w,onClick:E,onContextMenu:x,onDragLeave:T,onFocus:I,onFocusVisible:R,onKeyDown:O,onKeyUp:C,onMouseDown:P,onMouseLeave:j,onMouseUp:k,onTouchEnd:M,onTouchMove:$,onTouchStart:N,tabIndex:B=0,TouchRippleProps:q,touchRippleRef:V,type:G}=n,Y=Ve(n,Foe),X=p.useRef(null),H=p.useRef(null),te=fn(H,V),{isFocusVisibleRef:ne,onFocus:K,onBlur:ee,ref:Ce}=jw(),[se,Se]=p.useState(!1);l&&se&&Se(!1),p.useImperativeHandle(a,()=>({focusVisible:()=>{Se(!0),X.current.focus()}}),[]);const[me,we]=p.useState(!1);p.useEffect(()=>{we(!0)},[]);const Oe=me&&!h&&!l;p.useEffect(()=>{se&&y&&!h&&me&&H.current.pulsate()},[h,y,se,me]);function ie(it,Dt,Zt=g){return to(Kt=>(Dt&&Dt(Kt),!Zt&&H.current&&H.current[it](Kt),!0))}const Fe=ie("start",P),ke=ie("stop",x),$e=ie("stop",T),Te=ie("stop",k),Be=ie("stop",it=>{se&&it.preventDefault(),j&&j(it)}),Le=ie("start",N),dt=ie("stop",M),He=ie("stop",$),Z=ie("stop",it=>{ee(it),ne.current===!1&&Se(!1),w&&w(it)},!1),ae=to(it=>{X.current||(X.current=it.currentTarget),K(it),ne.current===!0&&(Se(!0),R&&R(it)),I&&I(it)}),fe=()=>{const it=X.current;return f&&f!=="button"&&!(it.tagName==="A"&&it.href)},ve=p.useRef(!1),be=to(it=>{y&&!ve.current&&se&&H.current&&it.key===" "&&(ve.current=!0,H.current.stop(it,()=>{H.current.start(it)})),it.target===it.currentTarget&&fe()&&it.key===" "&&it.preventDefault(),O&&O(it),it.target===it.currentTarget&&fe()&&it.key==="Enter"&&!l&&(it.preventDefault(),E&&E(it))}),_e=to(it=>{y&&it.key===" "&&H.current&&se&&!it.defaultPrevented&&(ve.current=!1,H.current.stop(it,()=>{H.current.pulsate(it)})),C&&C(it),E&&it.target===it.currentTarget&&fe()&&it.key===" "&&!it.defaultPrevented&&E(it)});let De=f;De==="button"&&(Y.href||Y.to)&&(De=_);const Ge={};De==="button"?(Ge.type=G===void 0?"button":G,Ge.disabled=l):(!Y.href&&!Y.to&&(Ge.role="button"),l&&(Ge["aria-disabled"]=l));const Mt=fn(r,Ce,X),et=z({},n,{centerRipple:o,component:f,disabled:l,disableRipple:h,disableTouchRipple:g,focusRipple:y,tabIndex:B,focusVisible:se}),ot=$oe(et);return A.jsxs(Loe,z({as:De,className:Re(ot.root,d),ownerState:et,onBlur:Z,onClick:E,onContextMenu:ke,onFocus:ae,onKeyDown:be,onKeyUp:_e,onMouseDown:Fe,onMouseLeave:Be,onMouseUp:Te,onDragLeave:$e,onTouchEnd:dt,onTouchMove:He,onTouchStart:Le,ref:Mt,tabIndex:l?-1:B,type:G},Ge,Y,{children:[s,Oe?A.jsx(Toe,z({ref:te,center:o},q)):null]}))});function Doe(e){return wt("MuiIconButton",e)}const Noe=Ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Boe=["edge","children","className","color","disabled","disableFocusRipple","size"],zoe=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,s={root:["root",r&&"disabled",n!=="default"&&`color${Ue(n)}`,a&&`edge${Ue(a)}`,`size${Ue(o)}`]};return St(s,Doe,t)},qoe=he(du,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ue(r.color)}`],r.edge&&t[`edge${Ue(r.edge)}`],t[`size${Ue(r.size)}`]]}})(({theme:e,ownerState:t})=>z({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})`:ir.alpha(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 z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&z({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":z({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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)},{[`&.${Noe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),_n=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:s,color:d="default",disabled:f=!1,disableFocusRipple:l=!1,size:h="medium"}=n,g=Ve(n,Boe),y=z({},n,{edge:a,color:d,disabled:f,disableFocusRipple:l,size:h}),_=zoe(y);return A.jsx(qoe,z({className:Re(_.root,s),centerRipple:!0,focusRipple:!l,disabled:f,ref:r},g,{ownerState:y,children:o}))});function Uoe(e){return wt("MuiTypography",e)}Ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Voe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Woe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:s}=e,d={root:["root",o,e.align!=="inherit"&&`align${Ue(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return St(d,Uoe,s)},Hoe=he("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${Ue(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({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})),n3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Goe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Koe=e=>Goe[e]||e,nr=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTypography"}),a=Koe(n.color),o=kw(z({},n,{color:a})),{align:s="inherit",className:d,component:f,gutterBottom:l=!1,noWrap:h=!1,paragraph:g=!1,variant:y="body1",variantMapping:_=n3}=o,w=Ve(o,Voe),E=z({},o,{align:s,color:a,className:d,component:f,gutterBottom:l,noWrap:h,paragraph:g,variant:y,variantMapping:_}),x=f||(g?"p":_[y]||n3[y])||"span",T=Woe(E);return A.jsx(Hoe,z({as:x,ref:r,ownerState:E,className:Re(T.root,d)},w))});function Qoe(e){return wt("MuiAppBar",e)}Ot("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Xoe=["className","color","enableColorOnDark","position"],Yoe=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${Ue(t)}`,`position${Ue(r)}`]};return St(a,Qoe,n)},z_=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Joe=he(qc,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ue(r.position)}`],t[`color${Ue(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return z({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&&z({},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"&&z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&z({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:z_(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:z_(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:z_(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:z_(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Zoe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:s=!1,position:d="fixed"}=n,f=Ve(n,Xoe),l=z({},n,{color:o,position:d,enableColorOnDark:s}),h=Yoe(l);return A.jsx(Joe,z({square:!0,component:"header",ownerState:l,elevation:4,className:Re(h.root,a,d==="fixed"&&"mui-fixed"),ref:r},f))});var ig={},a3;function eie(){if(a3)return ig;a3=1,Object.defineProperty(ig,"__esModule",{value:!0}),ig.default=void 0;var e=n(zx()),t=Z6;function r(s){if(typeof WeakMap!="function")return null;var d=new WeakMap,f=new WeakMap;return(r=function(l){return l?f:d})(s)}function n(s,d){if(s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var f=r(d);if(f&&f.has(s))return f.get(s);var l={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in s)if(g!=="default"&&Object.prototype.hasOwnProperty.call(s,g)){var y=h?Object.getOwnPropertyDescriptor(s,g):null;y&&(y.get||y.set)?Object.defineProperty(l,g,y):l[g]=s[g]}return l.default=s,f&&f.set(s,l),l}function a(s){return Object.keys(s).length===0}function o(s=null){const d=e.useContext(t.ThemeContext);return!d||a(d)?s:d}return ig.default=o,ig}var tie=eie();const rie=tt(tie);var Po="top",Mi="bottom",Fi="right",Ro="left",mT="auto",r0=[Po,Mi,Fi,Ro],iv="start",Sb="end",nie="clippingParents",rU="viewport",sg="popper",aie="reference",o3=r0.reduce(function(e,t){return e.concat([t+"-"+iv,t+"-"+Sb])},[]),nU=[].concat(r0,[mT]).reduce(function(e,t){return e.concat([t,t+"-"+iv,t+"-"+Sb])},[]),oie="beforeRead",iie="read",sie="afterRead",lie="beforeMain",uie="main",cie="afterMain",die="beforeWrite",fie="write",pie="afterWrite",hie=[oie,iie,sie,lie,uie,cie,die,fie,pie];function ol(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sf(e){var t=Jo(e).Element;return e instanceof t||e instanceof Element}function Ii(e){var t=Jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gT(e){if(typeof ShadowRoot>"u")return!1;var t=Jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vie(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Ii(o)||!ol(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(s){var d=a[s];d===!1?o.removeAttribute(s):o.setAttribute(s,d===!0?"":d)}))})}function mie(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),d=s.reduce(function(f,l){return f[l]="",f},{});!Ii(a)||!ol(a)||(Object.assign(a.style,d),Object.keys(o).forEach(function(f){a.removeAttribute(f)}))})}}const gie={name:"applyStyles",enabled:!0,phase:"write",fn:vie,effect:mie,requires:["computeStyles"]};function rl(e){return e.split("-")[0]}var hf=Math.max,Z1=Math.min,sv=Math.round;function bk(){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 aU(){return!/^((?!chrome|android).)*safari/i.test(bk())}function lv(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Ii(e)&&(a=e.offsetWidth>0&&sv(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&sv(n.height)/e.offsetHeight||1);var s=Sf(e)?Jo(e):window,d=s.visualViewport,f=!aU()&&r,l=(n.left+(f&&d?d.offsetLeft:0))/a,h=(n.top+(f&&d?d.offsetTop:0))/o,g=n.width/a,y=n.height/o;return{width:g,height:y,top:h,right:l+g,bottom:h+y,left:l,x:l,y:h}}function yT(e){var t=lv(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 oU(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&gT(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ou(e){return Jo(e).getComputedStyle(e)}function yie(e){return["table","td","th"].indexOf(ol(e))>=0}function Uc(e){return((Sf(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mw(e){return ol(e)==="html"?e:e.assignedSlot||e.parentNode||(gT(e)?e.host:null)||Uc(e)}function i3(e){return!Ii(e)||ou(e).position==="fixed"?null:e.offsetParent}function bie(e){var t=/firefox/i.test(bk()),r=/Trident/i.test(bk());if(r&&Ii(e)){var n=ou(e);if(n.position==="fixed")return null}var a=Mw(e);for(gT(a)&&(a=a.host);Ii(a)&&["html","body"].indexOf(ol(a))<0;){var o=ou(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function n0(e){for(var t=Jo(e),r=i3(e);r&&yie(r)&&ou(r).position==="static";)r=i3(r);return r&&(ol(r)==="html"||ol(r)==="body"&&ou(r).position==="static")?t:r||bie(e)||t}function bT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zy(e,t,r){return hf(e,Z1(t,r))}function _ie(e,t,r){var n=Zy(e,t,r);return n>r?r:n}function iU(){return{top:0,right:0,bottom:0,left:0}}function sU(e){return Object.assign({},iU(),e)}function lU(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var xie=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,sU(typeof t!="number"?t:lU(t,r0))};function wie(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,d=rl(r.placement),f=bT(d),l=[Ro,Fi].indexOf(d)>=0,h=l?"height":"width";if(!(!o||!s)){var g=xie(a.padding,r),y=yT(o),_=f==="y"?Po:Ro,w=f==="y"?Mi:Fi,E=r.rects.reference[h]+r.rects.reference[f]-s[f]-r.rects.popper[h],x=s[f]-r.rects.reference[f],T=n0(o),I=T?f==="y"?T.clientHeight||0:T.clientWidth||0:0,R=E/2-x/2,O=g[_],C=I-y[h]-g[w],P=I/2-y[h]/2+R,j=Zy(O,P,C),k=f;r.modifiersData[n]=(t={},t[k]=j,t.centerOffset=j-P,t)}}function Sie(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||oU(t.elements.popper,a)&&(t.elements.arrow=a))}const Eie={name:"arrow",enabled:!0,phase:"main",fn:wie,effect:Sie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uv(e){return e.split("-")[1]}var Cie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Oie(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:sv(r*a)/a||0,y:sv(n*a)/a||0}}function s3(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,d=e.position,f=e.gpuAcceleration,l=e.adaptive,h=e.roundOffsets,g=e.isFixed,y=s.x,_=y===void 0?0:y,w=s.y,E=w===void 0?0:w,x=typeof h=="function"?h({x:_,y:E}):{x:_,y:E};_=x.x,E=x.y;var T=s.hasOwnProperty("x"),I=s.hasOwnProperty("y"),R=Ro,O=Po,C=window;if(l){var P=n0(r),j="clientHeight",k="clientWidth";if(P===Jo(r)&&(P=Uc(r),ou(P).position!=="static"&&d==="absolute"&&(j="scrollHeight",k="scrollWidth")),P=P,a===Po||(a===Ro||a===Fi)&&o===Sb){O=Mi;var M=g&&P===C&&C.visualViewport?C.visualViewport.height:P[j];E-=M-n.height,E*=f?1:-1}if(a===Ro||(a===Po||a===Mi)&&o===Sb){R=Fi;var $=g&&P===C&&C.visualViewport?C.visualViewport.width:P[k];_-=$-n.width,_*=f?1:-1}}var N=Object.assign({position:d},l&&Cie),B=h===!0?Oie({x:_,y:E},Jo(r)):{x:_,y:E};if(_=B.x,E=B.y,f){var q;return Object.assign({},N,(q={},q[O]=I?"0":"",q[R]=T?"0":"",q.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",q))}return Object.assign({},N,(t={},t[O]=I?E+"px":"",t[R]=T?_+"px":"",t.transform="",t))}function Pie(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,d=r.roundOffsets,f=d===void 0?!0:d,l={placement:rl(t.placement),variation:uv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,s3(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,s3(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Rie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pie,data:{}};var q_={passive:!0};function kie(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,s=n.resize,d=s===void 0?!0:s,f=Jo(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(h){h.addEventListener("scroll",r.update,q_)}),d&&f.addEventListener("resize",r.update,q_),function(){o&&l.forEach(function(h){h.removeEventListener("scroll",r.update,q_)}),d&&f.removeEventListener("resize",r.update,q_)}}const Iie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kie,data:{}};var jie={left:"right",right:"left",bottom:"top",top:"bottom"};function p1(e){return e.replace(/left|right|bottom|top/g,function(t){return jie[t]})}var Tie={start:"end",end:"start"};function l3(e){return e.replace(/start|end/g,function(t){return Tie[t]})}function _T(e){var t=Jo(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function xT(e){return lv(Uc(e)).left+_T(e).scrollLeft}function Aie(e,t){var r=Jo(e),n=Uc(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,d=0,f=0;if(a){o=a.width,s=a.height;var l=aU();(l||!l&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:o,height:s,x:d+xT(e),y:f}}function Mie(e){var t,r=Uc(e),n=_T(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=hf(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=hf(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-n.scrollLeft+xT(e),f=-n.scrollTop;return ou(a||r).direction==="rtl"&&(d+=hf(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:d,y:f}}function wT(e){var t=ou(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function uU(e){return["html","body","#document"].indexOf(ol(e))>=0?e.ownerDocument.body:Ii(e)&&wT(e)?e:uU(Mw(e))}function eb(e,t){var r;t===void 0&&(t=[]);var n=uU(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Jo(n),s=a?[o].concat(o.visualViewport||[],wT(n)?n:[]):n,d=t.concat(s);return a?d:d.concat(eb(Mw(s)))}function _k(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fie(e,t){var r=lv(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 u3(e,t,r){return t===rU?_k(Aie(e,r)):Sf(t)?Fie(t,r):_k(Mie(Uc(e)))}function $ie(e){var t=eb(Mw(e)),r=["absolute","fixed"].indexOf(ou(e).position)>=0,n=r&&Ii(e)?n0(e):e;return Sf(n)?t.filter(function(a){return Sf(a)&&oU(a,n)&&ol(a)!=="body"}):[]}function Lie(e,t,r,n){var a=t==="clippingParents"?$ie(e):[].concat(t),o=[].concat(a,[r]),s=o[0],d=o.reduce(function(f,l){var h=u3(e,l,n);return f.top=hf(h.top,f.top),f.right=Z1(h.right,f.right),f.bottom=Z1(h.bottom,f.bottom),f.left=hf(h.left,f.left),f},u3(e,s,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function cU(e){var t=e.reference,r=e.element,n=e.placement,a=n?rl(n):null,o=n?uv(n):null,s=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,f;switch(a){case Po:f={x:s,y:t.y-r.height};break;case Mi:f={x:s,y:t.y+t.height};break;case Fi:f={x:t.x+t.width,y:d};break;case Ro:f={x:t.x-r.width,y:d};break;default:f={x:t.x,y:t.y}}var l=a?bT(a):null;if(l!=null){var h=l==="y"?"height":"width";switch(o){case iv:f[l]=f[l]-(t[h]/2-r[h]/2);break;case Sb:f[l]=f[l]+(t[h]/2-r[h]/2);break}}return f}function Eb(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,d=r.boundary,f=d===void 0?nie:d,l=r.rootBoundary,h=l===void 0?rU:l,g=r.elementContext,y=g===void 0?sg:g,_=r.altBoundary,w=_===void 0?!1:_,E=r.padding,x=E===void 0?0:E,T=sU(typeof x!="number"?x:lU(x,r0)),I=y===sg?aie:sg,R=e.rects.popper,O=e.elements[w?I:y],C=Lie(Sf(O)?O:O.contextElement||Uc(e.elements.popper),f,h,s),P=lv(e.elements.reference),j=cU({reference:P,element:R,placement:a}),k=_k(Object.assign({},R,j)),M=y===sg?k:P,$={top:C.top-M.top+T.top,bottom:M.bottom-C.bottom+T.bottom,left:C.left-M.left+T.left,right:M.right-C.right+T.right},N=e.modifiersData.offset;if(y===sg&&N){var B=N[a];Object.keys($).forEach(function(q){var V=[Fi,Mi].indexOf(q)>=0?1:-1,G=[Po,Mi].indexOf(q)>=0?"y":"x";$[q]+=B[G]*V})}return $}function Die(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,d=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?nU:f,h=uv(n),g=h?d?o3:o3.filter(function(w){return uv(w)===h}):r0,y=g.filter(function(w){return l.indexOf(w)>=0});y.length===0&&(y=g);var _=y.reduce(function(w,E){return w[E]=Eb(e,{placement:E,boundary:a,rootBoundary:o,padding:s})[rl(E)],w},{});return Object.keys(_).sort(function(w,E){return _[w]-_[E]})}function Nie(e){if(rl(e)===mT)return[];var t=p1(e);return[l3(e),t,l3(t)]}function Bie(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!0:s,f=r.fallbackPlacements,l=r.padding,h=r.boundary,g=r.rootBoundary,y=r.altBoundary,_=r.flipVariations,w=_===void 0?!0:_,E=r.allowedAutoPlacements,x=t.options.placement,T=rl(x),I=T===x,R=f||(I||!w?[p1(x)]:Nie(x)),O=[x].concat(R).reduce(function(se,Se){return se.concat(rl(Se)===mT?Die(t,{placement:Se,boundary:h,rootBoundary:g,padding:l,flipVariations:w,allowedAutoPlacements:E}):Se)},[]),C=t.rects.reference,P=t.rects.popper,j=new Map,k=!0,M=O[0],$=0;$=0,G=V?"width":"height",Y=Eb(t,{placement:N,boundary:h,rootBoundary:g,altBoundary:y,padding:l}),X=V?q?Fi:Ro:q?Mi:Po;C[G]>P[G]&&(X=p1(X));var H=p1(X),te=[];if(o&&te.push(Y[B]<=0),d&&te.push(Y[X]<=0,Y[H]<=0),te.every(function(se){return se})){M=N,k=!1;break}j.set(N,te)}if(k)for(var ne=w?3:1,K=function(Se){var me=O.find(function(we){var Oe=j.get(we);if(Oe)return Oe.slice(0,Se).every(function(ie){return ie})});if(me)return M=me,"break"},ee=ne;ee>0;ee--){var Ce=K(ee);if(Ce==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const zie={name:"flip",enabled:!0,phase:"main",fn:Bie,requiresIfExists:["offset"],data:{_skip:!1}};function c3(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 d3(e){return[Po,Fi,Mi,Ro].some(function(t){return e[t]>=0})}function qie(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Eb(t,{elementContext:"reference"}),d=Eb(t,{altBoundary:!0}),f=c3(s,n),l=c3(d,a,o),h=d3(f),g=d3(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:h,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}const Uie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qie};function Vie(e,t,r){var n=rl(e),a=[Ro,Po].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],d=o[1];return s=s||0,d=(d||0)*a,[Ro,Fi].indexOf(n)>=0?{x:d,y:s}:{x:s,y:d}}function Wie(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=nU.reduce(function(h,g){return h[g]=Vie(g,t.rects,o),h},{}),d=s[t.placement],f=d.x,l=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=s}const Hie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wie};function Gie(e){var t=e.state,r=e.name;t.modifiersData[r]=cU({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Kie={name:"popperOffsets",enabled:!0,phase:"read",fn:Gie,data:{}};function Qie(e){return e==="x"?"y":"x"}function Xie(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!1:s,f=r.boundary,l=r.rootBoundary,h=r.altBoundary,g=r.padding,y=r.tether,_=y===void 0?!0:y,w=r.tetherOffset,E=w===void 0?0:w,x=Eb(t,{boundary:f,rootBoundary:l,padding:g,altBoundary:h}),T=rl(t.placement),I=uv(t.placement),R=!I,O=bT(T),C=Qie(O),P=t.modifiersData.popperOffsets,j=t.rects.reference,k=t.rects.popper,M=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,$=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(P){if(o){var q,V=O==="y"?Po:Ro,G=O==="y"?Mi:Fi,Y=O==="y"?"height":"width",X=P[O],H=X+x[V],te=X-x[G],ne=_?-k[Y]/2:0,K=I===iv?j[Y]:k[Y],ee=I===iv?-k[Y]:-j[Y],Ce=t.elements.arrow,se=_&&Ce?yT(Ce):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:iU(),me=Se[V],we=Se[G],Oe=Zy(0,j[Y],se[Y]),ie=R?j[Y]/2-ne-Oe-me-$.mainAxis:K-Oe-me-$.mainAxis,Fe=R?-j[Y]/2+ne+Oe+we+$.mainAxis:ee+Oe+we+$.mainAxis,ke=t.elements.arrow&&n0(t.elements.arrow),$e=ke?O==="y"?ke.clientTop||0:ke.clientLeft||0:0,Te=(q=N==null?void 0:N[O])!=null?q:0,Be=X+ie-Te-$e,Le=X+Fe-Te,dt=Zy(_?Z1(H,Be):H,X,_?hf(te,Le):te);P[O]=dt,B[O]=dt-X}if(d){var He,Z=O==="x"?Po:Ro,ae=O==="x"?Mi:Fi,fe=P[C],ve=C==="y"?"height":"width",be=fe+x[Z],_e=fe-x[ae],De=[Po,Ro].indexOf(T)!==-1,Ge=(He=N==null?void 0:N[C])!=null?He:0,Mt=De?be:fe-j[ve]-k[ve]-Ge+$.altAxis,et=De?fe+j[ve]+k[ve]-Ge-$.altAxis:_e,ot=_&&De?_ie(Mt,fe,et):Zy(_?Mt:be,fe,_?et:_e);P[C]=ot,B[C]=ot-fe}t.modifiersData[n]=B}}const Yie={name:"preventOverflow",enabled:!0,phase:"main",fn:Xie,requiresIfExists:["offset"]};function Jie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zie(e){return e===Jo(e)||!Ii(e)?_T(e):Jie(e)}function ese(e){var t=e.getBoundingClientRect(),r=sv(t.width)/e.offsetWidth||1,n=sv(t.height)/e.offsetHeight||1;return r!==1||n!==1}function tse(e,t,r){r===void 0&&(r=!1);var n=Ii(t),a=Ii(t)&&ese(t),o=Uc(t),s=lv(e,a,r),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((ol(t)!=="body"||wT(o))&&(d=Zie(t)),Ii(t)?(f=lv(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=xT(o))),{x:s.left+d.scrollLeft-f.x,y:s.top+d.scrollTop-f.y,width:s.width,height:s.height}}function rse(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(d){if(!r.has(d)){var f=t.get(d);f&&a(f)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function nse(e){var t=rse(e);return hie.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function ase(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ose(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var f3={placement:"bottom",modifiers:[],strategy:"absolute"};function p3(){for(var e=arguments.length,t=new Array(e),r=0;r{o||d(use(a)||document.body)},[a,o]),Yo(()=>{if(s&&!o)return Q1(r,s),()=>{Q1(r,null)}},[r,s,o]),o){if(p.isValidElement(n)){const l={ref:f};return p.cloneElement(n,l)}return A.jsx(p.Fragment,{children:n})}return A.jsx(p.Fragment,{children:s&&Ux.createPortal(n,s)})});function cse(e){return wt("MuiPopper",e)}Ot("MuiPopper",["root"]);const dse=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],fse=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function pse(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function xk(e){return typeof e=="function"?e():e}function hse(e){return e.nodeType!==void 0}const vse=e=>{const{classes:t}=e;return St({root:["root"]},cse,t)},mse={},gse=p.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:s,disablePortal:d,modifiers:f,open:l,placement:h,popperOptions:g,popperRef:y,slotProps:_={},slots:w={},TransitionProps:E}=t,x=Ve(t,dse),T=p.useRef(null),I=fn(T,r),R=p.useRef(null),O=fn(R,y),C=p.useRef(O);Yo(()=>{C.current=O},[O]),p.useImperativeHandle(y,()=>R.current,[]);const P=pse(h,s),[j,k]=p.useState(P),[M,$]=p.useState(xk(a));p.useEffect(()=>{R.current&&R.current.forceUpdate()}),p.useEffect(()=>{a&&$(xk(a))},[a]),Yo(()=>{if(!M||!l)return;const G=H=>{k(H.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{G(H)}}];f!=null&&(Y=Y.concat(f)),g&&g.modifiers!=null&&(Y=Y.concat(g.modifiers));const X=lse(M,T.current,z({placement:P},g,{modifiers:Y}));return C.current(X),()=>{X.destroy(),C.current(null)}},[M,d,f,l,g,P]);const N={placement:j};E!==null&&(N.TransitionProps=E);const B=vse(t),q=(n=w.root)!=null?n:"div",V=Ai({elementType:q,externalSlotProps:_.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:B.root});return A.jsx(q,z({},V,{children:typeof o=="function"?o(N):o}))}),yse=p.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:s="ltr",disablePortal:d=!1,keepMounted:f=!1,modifiers:l,open:h,placement:g="bottom",popperOptions:y=mse,popperRef:_,style:w,transition:E=!1,slotProps:x={},slots:T={}}=t,I=Ve(t,fse),[R,O]=p.useState(!0),C=()=>{O(!1)},P=()=>{O(!0)};if(!f&&!h&&(!E||R))return null;let j;if(o)j=o;else if(n){const $=xk(n);j=$&&hse($)?Dn($).body:Dn(null).body}const k=!h&&f&&(!E||R)?"none":void 0,M=E?{in:h,onEnter:C,onExited:P}:void 0;return A.jsx(dU,{disablePortal:d,container:j,children:A.jsx(gse,z({anchorEl:n,direction:s,disablePortal:d,modifiers:l,ref:r,open:E?!R:h,placement:g,popperOptions:y,popperRef:_,slotProps:x,slots:T},I,{style:z({position:"fixed",top:0,left:0,display:k},w),TransitionProps:M,children:a}))})}),bse=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],_se=he(yse,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fU=p.forwardRef(function(t,r){var n;const a=rie(),o=Et({props:t,name:"MuiPopper"}),{anchorEl:s,component:d,components:f,componentsProps:l,container:h,disablePortal:g,keepMounted:y,modifiers:_,open:w,placement:E,popperOptions:x,popperRef:T,transition:I,slots:R,slotProps:O}=o,C=Ve(o,bse),P=(n=R==null?void 0:R.root)!=null?n:f==null?void 0:f.Root,j=z({anchorEl:s,container:h,disablePortal:g,keepMounted:y,modifiers:_,open:w,placement:E,popperOptions:x,popperRef:T,transition:I},C);return A.jsx(_se,z({as:d,direction:a==null?void 0:a.direction,slots:{root:P},slotProps:O??l},j,{ref:r}))}),xse=["onChange","maxRows","minRows","style","value"];function U_(e){return parseInt(e,10)||0}const wse={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Sse(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Ese=p.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:s,value:d}=t,f=Ve(t,xse),{current:l}=p.useRef(d!=null),h=p.useRef(null),g=fn(r,h),y=p.useRef(null),_=p.useRef(null),w=p.useCallback(()=>{const T=h.current,R=Ti(T).getComputedStyle(T);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};const O=_.current;O.style.width=R.width,O.value=T.value||t.placeholder||"x",O.value.slice(-1)===` -`&&(O.value+=" ");const C=R.boxSizing,P=U_(R.paddingBottom)+U_(R.paddingTop),j=U_(R.borderBottomWidth)+U_(R.borderTopWidth),k=O.scrollHeight;O.value="x";const M=O.scrollHeight;let $=k;o&&($=Math.max(Number(o)*M,$)),a&&($=Math.min(Number(a)*M,$)),$=Math.max($,M);const N=$+(C==="border-box"?P+j:0),B=Math.abs($-k)<=1;return{outerHeightStyle:N,overflowing:B}},[a,o,t.placeholder]),E=p.useCallback(()=>{const T=w();if(Sse(T))return;const I=T.outerHeightStyle,R=h.current;y.current!==I&&(y.current=I,R.style.height=`${I}px`),R.style.overflow=T.overflowing?"hidden":""},[w]);Yo(()=>{const T=()=>{E()};let I;const R=Ov(T),O=h.current,C=Ti(O);C.addEventListener("resize",R);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(T),P.observe(O)),()=>{R.clear(),cancelAnimationFrame(I),C.removeEventListener("resize",R),P&&P.disconnect()}},[w,E]),Yo(()=>{E()});const x=T=>{l||E(),n&&n(T)};return A.jsxs(p.Fragment,{children:[A.jsx("textarea",z({value:d,onChange:x,ref:g,rows:o,style:s},f)),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:_,tabIndex:-1,style:z({},wse.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function fu({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const Fw=p.createContext(void 0);function hs(){return p.useContext(Fw)}function pU(e){return A.jsx(une,z({},e,{defaultTheme:Tw,themeId:_f}))}function h3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ex(e,t=!1){return e&&(h3(e.value)&&e.value!==""||t&&h3(e.defaultValue)&&e.defaultValue!=="")}function Cse(e){return e.startAdornment}function Ose(e){return wt("MuiInputBase",e)}const cv=Ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Pse=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],$w=(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${Ue(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Lw=(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]},Rse=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:s,formControl:d,fullWidth:f,hiddenLabel:l,multiline:h,readOnly:g,size:y,startAdornment:_,type:w}=e,E={root:["root",`color${Ue(r)}`,n&&"disabled",a&&"error",f&&"fullWidth",s&&"focused",d&&"formControl",y&&y!=="medium"&&`size${Ue(y)}`,h&&"multiline",_&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",g&&"readOnly"],input:["input",n&&"disabled",w==="search"&&"inputTypeSearch",h&&"inputMultiline",y==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",_&&"inputAdornedStart",o&&"inputAdornedEnd",g&&"readOnly"]};return St(E,Ose,t)},Dw=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$w})(({theme:e,ownerState:t})=>z({},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",[`&.${cv.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&z({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Nw=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Lw})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=z({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return z({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] + .${cv.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${cv.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),kse=A.jsx(pU,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Bw=p.forwardRef(function(t,r){var n;const a=Et({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:d,className:f,components:l={},componentsProps:h={},defaultValue:g,disabled:y,disableInjectingGlobalStyles:_,endAdornment:w,fullWidth:E=!1,id:x,inputComponent:T="input",inputProps:I={},inputRef:R,maxRows:O,minRows:C,multiline:P=!1,name:j,onBlur:k,onChange:M,onClick:$,onFocus:N,onKeyDown:B,onKeyUp:q,placeholder:V,readOnly:G,renderSuffix:Y,rows:X,slotProps:H={},slots:te={},startAdornment:ne,type:K="text",value:ee}=a,Ce=Ve(a,Pse),se=I.value!=null?I.value:ee,{current:Se}=p.useRef(se!=null),me=p.useRef(),we=p.useCallback(ot=>{},[]),Oe=fn(me,R,I.ref,we),[ie,Fe]=p.useState(!1),ke=hs(),$e=fu({props:a,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=ke?ke.focused:ie,p.useEffect(()=>{!ke&&y&&ie&&(Fe(!1),k&&k())},[ke,y,ie,k]);const Te=ke&&ke.onFilled,Be=ke&&ke.onEmpty,Le=p.useCallback(ot=>{ex(ot)?Te&&Te():Be&&Be()},[Te,Be]);Yo(()=>{Se&&Le({value:se})},[se,Le,Se]);const dt=ot=>{if($e.disabled){ot.stopPropagation();return}N&&N(ot),I.onFocus&&I.onFocus(ot),ke&&ke.onFocus?ke.onFocus(ot):Fe(!0)},He=ot=>{k&&k(ot),I.onBlur&&I.onBlur(ot),ke&&ke.onBlur?ke.onBlur(ot):Fe(!1)},Z=(ot,...it)=>{if(!Se){const Dt=ot.target||me.current;if(Dt==null)throw new Error(au(1));Le({value:Dt.value})}I.onChange&&I.onChange(ot,...it),M&&M(ot,...it)};p.useEffect(()=>{Le(me.current)},[]);const ae=ot=>{me.current&&ot.currentTarget===ot.target&&me.current.focus(),$&&$(ot)};let fe=T,ve=I;P&&fe==="input"&&(X?ve=z({type:void 0,minRows:X,maxRows:X},ve):ve=z({type:void 0,maxRows:O,minRows:C},ve),fe=Ese);const be=ot=>{Le(ot.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};p.useEffect(()=>{ke&&ke.setAdornedStart(!!ne)},[ke,ne]);const _e=z({},a,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:w,error:$e.error,focused:$e.focused,formControl:ke,fullWidth:E,hiddenLabel:$e.hiddenLabel,multiline:P,size:$e.size,startAdornment:ne,type:K}),De=Rse(_e),Ge=te.root||l.Root||Dw,Mt=H.root||h.root||{},et=te.input||l.Input||Nw;return ve=z({},ve,(n=H.input)!=null?n:h.input),A.jsxs(p.Fragment,{children:[!_&&kse,A.jsxs(Ge,z({},Mt,!wb(Ge)&&{ownerState:z({},_e,Mt.ownerState)},{ref:r,onClick:ae},Ce,{className:Re(De.root,Mt.className,f,G&&"MuiInputBase-readOnly"),children:[ne,A.jsx(Fw.Provider,{value:null,children:A.jsx(et,z({ownerState:_e,"aria-invalid":$e.error,"aria-describedby":o,autoComplete:s,autoFocus:d,defaultValue:g,disabled:$e.disabled,id:x,onAnimationStart:be,name:j,placeholder:V,readOnly:G,required:$e.required,rows:X,value:se,onKeyDown:B,onKeyUp:q,type:K},ve,!wb(et)&&{as:fe,ownerState:z({},_e,ve.ownerState)},{ref:Oe,className:Re(De.input,ve.className,G&&"MuiInputBase-readOnly"),onBlur:He,onChange:Z,onFocus:dt}))}),w,Y?Y(z({},$e,{startAdornment:ne})):null]}))]})});function Ise(e){return wt("MuiInput",e)}const lg=z({},cv,Ot("MuiInput",["root","underline","input"]));function jse(e){return wt("MuiOutlinedInput",e)}const Yu=z({},cv,Ot("MuiOutlinedInput",["root","notchedOutline","input"]));function Tse(e){return wt("MuiFilledInput",e)}const Ld=z({},cv,Ot("MuiFilledInput",["root","underline","input"])),hU=ti(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ase=ti(A.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Mse(e){return wt("MuiAvatar",e)}Ot("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Fse=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],$se=e=>{const{classes:t,variant:r,colorDefault:n}=e;return St({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Mse,t)},Lse=he("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:z({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:z({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Dse=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Nse=he(Ase,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Bse({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=p.useState(!1);return p.useEffect(()=>{if(!r&&!n)return;o(!1);let s=!0;const d=new Image;return d.onload=()=>{s&&o("loaded")},d.onerror=()=>{s&&o("error")},d.crossOrigin=e,d.referrerPolicy=t,d.src=r,n&&(d.srcset=n),()=>{s=!1}},[e,t,r,n]),a}const Cb=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:s,component:d="div",slots:f={},slotProps:l={},imgProps:h,sizes:g,src:y,srcSet:_,variant:w="circular"}=n,E=Ve(n,Fse);let x=null;const T=Bse(z({},h,{src:y,srcSet:_})),I=y||_,R=I&&T!=="error",O=z({},n,{colorDefault:!R,component:d,variant:w}),C=$se(O),[P,j]=Soe("img",{className:C.img,elementType:Dse,externalForwardedProps:{slots:f,slotProps:{img:z({},h,l.img)}},additionalProps:{alt:a,src:y,srcSet:_,sizes:g},ownerState:O});return R?x=A.jsx(P,z({},j)):o||o===0?x=o:I&&a?x=a[0]:x=A.jsx(Nse,{ownerState:O,className:C.fallback}),A.jsx(Lse,z({as:d,ownerState:O,className:Re(C.root,s),ref:r},E,{children:x}))}),zse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],qse={entering:{opacity:1},entered:{opacity:1}},vU=p.forwardRef(function(t,r){const n=ei(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:d,easing:f,in:l,onEnter:h,onEntered:g,onEntering:y,onExit:_,onExited:w,onExiting:E,style:x,timeout:T=a,TransitionComponent:I=ps}=t,R=Ve(t,zse),O=p.useRef(null),C=fn(O,d.ref,r),P=V=>G=>{if(V){const Y=O.current;G===void 0?V(Y):V(Y,G)}},j=P(y),k=P((V,G)=>{vT(V);const Y=ov({style:x,timeout:T,easing:f},{mode:"enter"});V.style.webkitTransition=n.transitions.create("opacity",Y),V.style.transition=n.transitions.create("opacity",Y),h&&h(V,G)}),M=P(g),$=P(E),N=P(V=>{const G=ov({style:x,timeout:T,easing:f},{mode:"exit"});V.style.webkitTransition=n.transitions.create("opacity",G),V.style.transition=n.transitions.create("opacity",G),_&&_(V)}),B=P(w),q=V=>{o&&o(O.current,V)};return A.jsx(I,z({appear:s,in:l,nodeRef:O,onEnter:k,onEntered:M,onEntering:j,onExit:N,onExited:B,onExiting:$,addEndListener:q,timeout:T},R,{children:(V,G)=>p.cloneElement(d,z({style:z({opacity:0,visibility:V==="exited"&&!l?"hidden":void 0},qse[V],x,d.props.style),ref:C},G))}))});function Use(e){return wt("MuiBackdrop",e)}Ot("MuiBackdrop",["root","invisible"]);const Vse=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Wse=e=>{const{classes:t,invisible:r}=e;return St({root:["root",r&&"invisible"]},Use,t)},Hse=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>z({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"})),mU=p.forwardRef(function(t,r){var n,a,o;const s=Et({props:t,name:"MuiBackdrop"}),{children:d,className:f,component:l="div",components:h={},componentsProps:g={},invisible:y=!1,open:_,slotProps:w={},slots:E={},TransitionComponent:x=vU,transitionDuration:T}=s,I=Ve(s,Vse),R=z({},s,{component:l,invisible:y}),O=Wse(R),C=(n=w.root)!=null?n:g.root;return A.jsx(x,z({in:_,timeout:T},I,{children:A.jsx(Hse,z({"aria-hidden":!0},C,{as:(a=(o=E.root)!=null?o:h.Root)!=null?a:l,className:Re(O.root,f,C==null?void 0:C.className),ownerState:z({},R,C==null?void 0:C.ownerState),classes:O,ref:r,children:d}))}))}),Gse=Ot("MuiBox",["root"]),Kse=Y1(),eo=vne({themeId:_f,defaultTheme:Kse,defaultClassName:Gse.root,generateClassName:cT.generate});function Qse(e){return wt("MuiButton",e)}const V_=Ot("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"]),Xse=p.createContext({}),Yse=p.createContext(void 0),Jse=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Zse=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:s}=e,d={root:["root",o,`${o}${Ue(t)}`,`size${Ue(a)}`,`${o}Size${Ue(a)}`,`color${Ue(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ue(a)}`],endIcon:["icon","endIcon",`iconSize${Ue(a)}`]},f=St(d,Qse,s);return z({},s,f)},gU=e=>z({},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}}),ele=he(du,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ue(r.color)}`],t[`size${Ue(r.size)}`],t[`${r.variant}Size${Ue(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return z({},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":z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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})`:ir.alpha(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})`:ir.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${V_.focusVisible}`]:z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${V_.disabled}`]:z({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 ${ir.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${V_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${V_.disabled}`]:{boxShadow:"none"}}),tle=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ue(r.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},gU(e))),rle=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ue(r.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},gU(e))),Bn=p.forwardRef(function(t,r){const n=p.useContext(Xse),a=p.useContext(Yse),o=xb(n,t),s=Et({props:o,name:"MuiButton"}),{children:d,color:f="primary",component:l="button",className:h,disabled:g=!1,disableElevation:y=!1,disableFocusRipple:_=!1,endIcon:w,focusVisibleClassName:E,fullWidth:x=!1,size:T="medium",startIcon:I,type:R,variant:O="text"}=s,C=Ve(s,Jse),P=z({},s,{color:f,component:l,disabled:g,disableElevation:y,disableFocusRipple:_,fullWidth:x,size:T,type:R,variant:O}),j=Zse(P),k=I&&A.jsx(tle,{className:j.startIcon,ownerState:P,children:I}),M=w&&A.jsx(rle,{className:j.endIcon,ownerState:P,children:w}),$=a||"";return A.jsxs(ele,z({ownerState:P,className:Re(n.className,j.root,h,$),component:l,disabled:g,focusRipple:!_,focusVisibleClassName:Re(j.focusVisible,E),ref:r,type:R},C,{classes:j,children:[k,d,M]}))});function nle(e){return wt("MuiCard",e)}Ot("MuiCard",["root"]);const ale=["className","raised"],ole=e=>{const{classes:t}=e;return St({root:["root"]},nle,t)},ile=he(qc,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),kf=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,s=Ve(n,ale),d=z({},n,{raised:o}),f=ole(d);return A.jsx(ile,z({className:Re(f.root,a),elevation:o?8:void 0,ref:r,ownerState:d},s))});function sle(e){return wt("MuiCardActions",e)}Ot("MuiCardActions",["root","spacing"]);const lle=["disableSpacing","className"],ule=e=>{const{classes:t,disableSpacing:r}=e;return St({root:["root",!r&&"spacing"]},sle,t)},cle=he("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),yU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardActions"}),{disableSpacing:a=!1,className:o}=n,s=Ve(n,lle),d=z({},n,{disableSpacing:a}),f=ule(d);return A.jsx(cle,z({className:Re(f.root,o),ownerState:d,ref:r},s))});function dle(e){return wt("MuiCardContent",e)}Ot("MuiCardContent",["root"]);const fle=["className","component"],ple=e=>{const{classes:t}=e;return St({root:["root"]},dle,t)},hle=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ei=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,s=Ve(n,fle),d=z({},n,{component:o}),f=ple(d);return A.jsx(hle,z({as:o,className:Re(f.root,a),ownerState:d,ref:r},s))});function vle(e){return wt("MuiCardHeader",e)}const v3=Ot("MuiCardHeader",["root","avatar","action","content","title","subheader"]),mle=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],gle=e=>{const{classes:t}=e;return St({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},vle,t)},yle=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>z({[`& .${v3.title}`]:t.title,[`& .${v3.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),ble=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),_le=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),xle=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Dd=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:s,component:d="div",disableTypography:f=!1,subheader:l,subheaderTypographyProps:h,title:g,titleTypographyProps:y}=n,_=Ve(n,mle),w=z({},n,{component:d,disableTypography:f}),E=gle(w);let x=g;x!=null&&x.type!==nr&&!f&&(x=A.jsx(nr,z({variant:o?"body2":"h5",className:E.title,component:"span",display:"block"},y,{children:x})));let T=l;return T!=null&&T.type!==nr&&!f&&(T=A.jsx(nr,z({variant:o?"body2":"body1",className:E.subheader,color:"text.secondary",component:"span",display:"block"},h,{children:T}))),A.jsxs(yle,z({className:Re(E.root,s),as:d,ref:r,ownerState:w},_,{children:[o&&A.jsx(ble,{className:E.avatar,ownerState:w,children:o}),A.jsxs(xle,{className:E.content,ownerState:w,children:[x,T]}),a&&A.jsx(_le,{className:E.action,ownerState:w,children:a})]}))});function wle(e){return wt("PrivateSwitchBase",e)}Ot("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Sle=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ele=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${Ue(a)}`],input:["input"]};return St(o,wle,t)},Cle=he(du)(({ownerState:e})=>z({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Ole=he("input",{shouldForwardProp:wa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bU=p.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:s,defaultChecked:d,disabled:f,disableFocusRipple:l=!1,edge:h=!1,icon:g,id:y,inputProps:_,inputRef:w,name:E,onBlur:x,onChange:T,onFocus:I,readOnly:R,required:O=!1,tabIndex:C,type:P,value:j}=t,k=Ve(t,Sle),[M,$]=av({controlled:a,default:!!d,name:"SwitchBase",state:"checked"}),N=hs(),B=te=>{I&&I(te),N&&N.onFocus&&N.onFocus(te)},q=te=>{x&&x(te),N&&N.onBlur&&N.onBlur(te)},V=te=>{if(te.nativeEvent.defaultPrevented)return;const ne=te.target.checked;$(ne),T&&T(te,ne)};let G=f;N&&typeof G>"u"&&(G=N.disabled);const Y=P==="checkbox"||P==="radio",X=z({},t,{checked:M,disabled:G,disableFocusRipple:l,edge:h}),H=Ele(X);return A.jsxs(Cle,z({component:"span",className:Re(H.root,s),centerRipple:!0,focusRipple:!l,disabled:G,tabIndex:null,role:void 0,onFocus:B,onBlur:q,ownerState:X,ref:r},k,{children:[A.jsx(Ole,z({autoFocus:n,checked:a,defaultChecked:d,className:H.input,disabled:G,id:Y?y:void 0,name:E,onChange:V,readOnly:R,ref:w,required:O,ownerState:X,tabIndex:C,type:P},P==="checkbox"&&j===void 0?{}:{value:j},_)),M?o:g]}))}),Ple=ti(A.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"),Rle=ti(A.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"),kle=ti(A.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 Ile(e){return wt("MuiCheckbox",e)}const a2=Ot("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),jle=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Tle=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${Ue(n)}`,`size${Ue(a)}`]},s=St(o,Ile,t);return z({},t,s)},Ale=he(bU,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Ue(r.size)}`],r.color!=="default"&&t[`color${Ue(r.color)}`]]}})(({theme:e,ownerState:t})=>z({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})`:ir.alpha(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a2.checked}, &.${a2.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${a2.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Mle=A.jsx(Rle,{}),Fle=A.jsx(Ple,{}),$le=A.jsx(kle,{}),dv=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiCheckbox"}),{checkedIcon:s=Mle,color:d="primary",icon:f=Fle,indeterminate:l=!1,indeterminateIcon:h=$le,inputProps:g,size:y="medium",className:_}=o,w=Ve(o,jle),E=l?h:f,x=l?h:s,T=z({},o,{color:d,indeterminate:l,size:y}),I=Tle(T);return A.jsx(Ale,z({type:"checkbox",inputProps:z({"data-indeterminate":l},g),icon:p.cloneElement(E,{fontSize:(n=E.props.fontSize)!=null?n:y}),checkedIcon:p.cloneElement(x,{fontSize:(a=x.props.fontSize)!=null?a:y}),ownerState:T,ref:r,className:Re(I.root,_)},w,{classes:I}))});function Lle(e){return wt("MuiCircularProgress",e)}Ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Dle=["className","color","disableShrink","size","style","thickness","value","variant"];let zw=e=>e,m3,g3,y3,b3;const Ju=44,Nle=cu(m3||(m3=zw` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),Ble=cu(g3||(g3=zw` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),zle=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${Ue(n)}`],svg:["svg"],circle:["circle",`circle${Ue(r)}`,a&&"circleDisableShrink"]};return St(o,Lle,t)},qle=he("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Ue(r.color)}`]]}})(({ownerState:e,theme:t})=>z({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"&&Rf(y3||(y3=zw` - animation: ${0} 1.4s linear infinite; - `),Nle)),Ule=he("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Vle=he("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Ue(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>z({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&&Rf(b3||(b3=zw` - animation: ${0} 1.4s ease-in-out infinite; - `),Ble)),Pv=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:s=!1,size:d=40,style:f,thickness:l=3.6,value:h=0,variant:g="indeterminate"}=n,y=Ve(n,Dle),_=z({},n,{color:o,disableShrink:s,size:d,thickness:l,value:h,variant:g}),w=zle(_),E={},x={},T={};if(g==="determinate"){const I=2*Math.PI*((Ju-l)/2);E.strokeDasharray=I.toFixed(3),T["aria-valuenow"]=Math.round(h),E.strokeDashoffset=`${((100-h)/100*I).toFixed(3)}px`,x.transform="rotate(-90deg)"}return A.jsx(qle,z({className:Re(w.root,a),style:z({width:d,height:d},x,f),ownerState:_,ref:r,role:"progressbar"},T,y,{children:A.jsx(Ule,{className:w.svg,ownerState:_,viewBox:`${Ju/2} ${Ju/2} ${Ju} ${Ju}`,children:A.jsx(Vle,{className:w.circle,style:E,ownerState:_,cx:Ju,cy:Ju,r:(Ju-l)/2,fill:"none",strokeWidth:l})})}))});function _3(e){return e.substring(2).toLowerCase()}function Wle(e,t){return t.documentElement.clientWidth(setTimeout(()=>{f.current=!0},0),()=>{f.current=!1}),[]);const h=fn(t.ref,d),g=to(w=>{const E=l.current;l.current=!1;const x=Dn(d.current);if(!f.current||!d.current||"clientX"in w&&Wle(w,x))return;if(s.current){s.current=!1;return}let T;w.composedPath?T=w.composedPath().indexOf(d.current)>-1:T=!x.documentElement.contains(w.target)||d.current.contains(w.target),!T&&(r||!E)&&a(w)}),y=w=>E=>{l.current=!0;const x=t.props[w];x&&x(E)},_={ref:h};return o!==!1&&(_[o]=y(o)),p.useEffect(()=>{if(o!==!1){const w=_3(o),E=Dn(d.current),x=()=>{s.current=!0};return E.addEventListener(w,g),E.addEventListener("touchmove",x),()=>{E.removeEventListener(w,g),E.removeEventListener("touchmove",x)}}},[g,o]),n!==!1&&(_[n]=y(n)),p.useEffect(()=>{if(n!==!1){const w=_3(n),E=Dn(d.current);return E.addEventListener(w,g),()=>{E.removeEventListener(w,g)}}},[g,n]),A.jsx(p.Fragment,{children:p.cloneElement(t,_)})}const dh=cae({createStyledComponent:he("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Et({props:e,name:"MuiContainer"})}),Gle=(e,t)=>z({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Kle=e=>z({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}}),Qle=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,d])=>{var f;n[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(f=d.palette)==null?void 0:f.mode}});let a=z({html:Gle(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:z({margin:0},Kle(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function Xle(e){const t=Et({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return A.jsxs(p.Fragment,{children:[A.jsx(pU,{styles:a=>Qle(a,n)}),r]})}function Yle(e){const t=Dn(e);return t.body===e?Ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function tb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function x3(e){return parseInt(Ti(e).getComputedStyle(e).paddingRight,10)||0}function Jle(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 w3(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,s=>{const d=o.indexOf(s)===-1,f=!Jle(s);d&&f&&tb(s,a)})}function o2(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Zle(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Yle(n)){const s=V6(Dn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${x3(n)+s}px`;const d=Dn(n).querySelectorAll(".mui-fixed");[].forEach.call(d,f=>{r.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${x3(f)+s}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Dn(n).body;else{const s=n.parentElement,d=Ti(n);o=(s==null?void 0:s.nodeName)==="HTML"&&d.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:s,property:d})=>{o?s.style.setProperty(d,o):s.style.removeProperty(d)})}}function eue(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class tue{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&&tb(t.modalRef,!1);const a=eue(r);w3(r,t.mount,t.modalRef,a,!0);const o=o2(this.containers,s=>s.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=o2(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Zle(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=o2(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&tb(t.modalRef,r),w3(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&tb(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const rue=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nue(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 aue(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 oue(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||aue(e))}function iue(e){const t=[],r=[];return Array.from(e.querySelectorAll(rue)).forEach((n,a)=>{const o=nue(n);o===-1||!oue(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function sue(){return!0}function lue(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=iue,isEnabled:s=sue,open:d}=e,f=p.useRef(!1),l=p.useRef(null),h=p.useRef(null),g=p.useRef(null),y=p.useRef(null),_=p.useRef(!1),w=p.useRef(null),E=fn(t.ref,w),x=p.useRef(null);p.useEffect(()=>{!d||!w.current||(_.current=!r)},[r,d]),p.useEffect(()=>{if(!d||!w.current)return;const R=Dn(w.current);return w.current.contains(R.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),_.current&&w.current.focus()),()=>{a||(g.current&&g.current.focus&&(f.current=!0,g.current.focus()),g.current=null)}},[d]),p.useEffect(()=>{if(!d||!w.current)return;const R=Dn(w.current),O=j=>{x.current=j,!(n||!s()||j.key!=="Tab")&&R.activeElement===w.current&&j.shiftKey&&(f.current=!0,h.current&&h.current.focus())},C=()=>{const j=w.current;if(j===null)return;if(!R.hasFocus()||!s()||f.current){f.current=!1;return}if(j.contains(R.activeElement)||n&&R.activeElement!==l.current&&R.activeElement!==h.current)return;if(R.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!_.current)return;let k=[];if((R.activeElement===l.current||R.activeElement===h.current)&&(k=o(w.current)),k.length>0){var M,$;const N=!!((M=x.current)!=null&&M.shiftKey&&(($=x.current)==null?void 0:$.key)==="Tab"),B=k[0],q=k[k.length-1];typeof B!="string"&&typeof q!="string"&&(N?q.focus():B.focus())}else j.focus()};R.addEventListener("focusin",C),R.addEventListener("keydown",O,!0);const P=setInterval(()=>{R.activeElement&&R.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(P),R.removeEventListener("focusin",C),R.removeEventListener("keydown",O,!0)}},[r,n,a,s,d,o]);const T=R=>{g.current===null&&(g.current=R.relatedTarget),_.current=!0,y.current=R.target;const O=t.props.onFocus;O&&O(R)},I=R=>{g.current===null&&(g.current=R.relatedTarget),_.current=!0};return A.jsxs(p.Fragment,{children:[A.jsx("div",{tabIndex:d?0:-1,onFocus:I,ref:l,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:E,onFocus:T}),A.jsx("div",{tabIndex:d?0:-1,onFocus:I,ref:h,"data-testid":"sentinelEnd"})]})}function uue(e){return typeof e=="function"?e():e}function cue(e){return e?e.props.hasOwnProperty("in"):!1}const due=new tue;function fue(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=due,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:d,children:f,onClose:l,open:h,rootRef:g}=e,y=p.useRef({}),_=p.useRef(null),w=p.useRef(null),E=fn(w,g),[x,T]=p.useState(!h),I=cue(f);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const O=()=>Dn(_.current),C=()=>(y.current.modalRef=w.current,y.current.mount=_.current,y.current),P=()=>{a.mount(C(),{disableScrollLock:n}),w.current&&(w.current.scrollTop=0)},j=to(()=>{const Y=uue(t)||O().body;a.add(C(),Y),w.current&&P()}),k=p.useCallback(()=>a.isTopModal(C()),[a]),M=to(Y=>{_.current=Y,Y&&(h&&k()?P():w.current&&tb(w.current,R))}),$=p.useCallback(()=>{a.remove(C(),R)},[R,a]);p.useEffect(()=>()=>{$()},[$]),p.useEffect(()=>{h?j():(!I||!o)&&$()},[h,$,I,o,j]);const N=Y=>X=>{var H;(H=Y.onKeyDown)==null||H.call(Y,X),!(X.key!=="Escape"||X.which===229||!k())&&(r||(X.stopPropagation(),l&&l(X,"escapeKeyDown")))},B=Y=>X=>{var H;(H=Y.onClick)==null||H.call(Y,X),X.target===X.currentTarget&&l&&l(X,"backdropClick")};return{getRootProps:(Y={})=>{const X=X1(e);delete X.onTransitionEnter,delete X.onTransitionExited;const H=z({},X,Y);return z({role:"presentation"},H,{onKeyDown:N(H),ref:E})},getBackdropProps:(Y={})=>{const X=Y;return z({"aria-hidden":!0},X,{onClick:B(X),open:h})},getTransitionProps:()=>{const Y=()=>{T(!1),s&&s()},X=()=>{T(!0),d&&d(),o&&$()};return{onEnter:pk(Y,f==null?void 0:f.props.onEnter),onExited:pk(X,f==null?void 0:f.props.onExited)}},rootRef:E,portalRef:M,isTopModal:k,exited:x,hasTransition:I}}function pue(e){return wt("MuiModal",e)}Ot("MuiModal",["root","hidden","backdrop"]);const hue=["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"],vue=e=>{const{open:t,exited:r,classes:n}=e;return St({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},pue,n)},mue=he("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})=>z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gue=he(mU,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ST=p.forwardRef(function(t,r){var n,a,o,s,d,f;const l=Et({name:"MuiModal",props:t}),{BackdropComponent:h=gue,BackdropProps:g,className:y,closeAfterTransition:_=!1,children:w,container:E,component:x,components:T={},componentsProps:I={},disableAutoFocus:R=!1,disableEnforceFocus:O=!1,disableEscapeKeyDown:C=!1,disablePortal:P=!1,disableRestoreFocus:j=!1,disableScrollLock:k=!1,hideBackdrop:M=!1,keepMounted:$=!1,onBackdropClick:N,open:B,slotProps:q,slots:V}=l,G=Ve(l,hue),Y=z({},l,{closeAfterTransition:_,disableAutoFocus:R,disableEnforceFocus:O,disableEscapeKeyDown:C,disablePortal:P,disableRestoreFocus:j,disableScrollLock:k,hideBackdrop:M,keepMounted:$}),{getRootProps:X,getBackdropProps:H,getTransitionProps:te,portalRef:ne,isTopModal:K,exited:ee,hasTransition:Ce}=fue(z({},Y,{rootRef:r})),se=z({},Y,{exited:ee}),Se=vue(se),me={};if(w.props.tabIndex===void 0&&(me.tabIndex="-1"),Ce){const{onEnter:Te,onExited:Be}=te();me.onEnter=Te,me.onExited=Be}const we=(n=(a=V==null?void 0:V.root)!=null?a:T.Root)!=null?n:mue,Oe=(o=(s=V==null?void 0:V.backdrop)!=null?s:T.Backdrop)!=null?o:h,ie=(d=q==null?void 0:q.root)!=null?d:I.root,Fe=(f=q==null?void 0:q.backdrop)!=null?f:I.backdrop,ke=Ai({elementType:we,externalSlotProps:ie,externalForwardedProps:G,getSlotProps:X,additionalProps:{ref:r,as:x},ownerState:se,className:Re(y,ie==null?void 0:ie.className,Se==null?void 0:Se.root,!se.open&&se.exited&&(Se==null?void 0:Se.hidden))}),$e=Ai({elementType:Oe,externalSlotProps:Fe,additionalProps:g,getSlotProps:Te=>H(z({},Te,{onClick:Be=>{N&&N(Be),Te!=null&&Te.onClick&&Te.onClick(Be)}})),className:Re(Fe==null?void 0:Fe.className,g==null?void 0:g.className,Se==null?void 0:Se.backdrop),ownerState:se});return!$&&!B&&(!Ce||ee)?null:A.jsx(dU,{ref:ne,container:E,disablePortal:P,children:A.jsxs(we,z({},ke,{children:[!M&&h?A.jsx(Oe,z({},$e)):null,A.jsx(lue,{disableEnforceFocus:O,disableAutoFocus:R,disableRestoreFocus:j,isEnabled:K,open:B,children:p.cloneElement(w,me)})]}))})});function yue(e){return wt("MuiDialog",e)}const i2=Ot("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_U=p.createContext({}),bue=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],_ue=he(mU,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),xue=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Ue(r)}`],paper:["paper",`paperScroll${Ue(r)}`,`paperWidth${Ue(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return St(s,yue,t)},wue=he(ST,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Sue=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Ue(r.scroll)}`]]}})(({ownerState:e})=>z({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"}})),Eue=he(qc,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Ue(r.scroll)}`],t[`paperWidth${Ue(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>z({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)`,[`&.${i2.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}`,[`&.${i2.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,[`&.${i2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),a0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialog"}),a=ei(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":d,BackdropComponent:f,BackdropProps:l,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:_=!1,fullWidth:w=!1,maxWidth:E="sm",onBackdropClick:x,onClick:T,onClose:I,open:R,PaperComponent:O=qc,PaperProps:C={},scroll:P="paper",TransitionComponent:j=vU,transitionDuration:k=o,TransitionProps:M}=n,$=Ve(n,bue),N=z({},n,{disableEscapeKeyDown:y,fullScreen:_,fullWidth:w,maxWidth:E,scroll:P}),B=xue(N),q=p.useRef(),V=H=>{q.current=H.target===H.currentTarget},G=H=>{T&&T(H),q.current&&(q.current=null,x&&x(H),I&&I(H,"backdropClick"))},Y=wf(d),X=p.useMemo(()=>({titleId:Y}),[Y]);return A.jsx(wue,z({className:Re(B.root,g),closeAfterTransition:!0,components:{Backdrop:_ue},componentsProps:{backdrop:z({transitionDuration:k,as:f},l)},disableEscapeKeyDown:y,onClose:I,open:R,ref:r,onClick:G,ownerState:N},$,{children:A.jsx(j,z({appear:!0,in:R,timeout:k,role:"presentation"},M,{children:A.jsx(Sue,{className:Re(B.container),onMouseDown:V,ownerState:N,children:A.jsx(Eue,z({as:O,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":Y},C,{className:Re(B.paper,C.className),ownerState:N,children:A.jsx(_U.Provider,{value:X,children:h})}))})}))}))});function Cue(e){return wt("MuiDialogActions",e)}Ot("MuiDialogActions",["root","spacing"]);const Oue=["className","disableSpacing"],Pue=e=>{const{classes:t,disableSpacing:r}=e;return St({root:["root",!r&&"spacing"]},Cue,t)},Rue=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ET=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,s=Ve(n,Oue),d=z({},n,{disableSpacing:o}),f=Pue(d);return A.jsx(Rue,z({className:Re(f.root,a),ownerState:d,ref:r},s))});function kue(e){return wt("MuiDialogContent",e)}Ot("MuiDialogContent",["root","dividers"]);function Iue(e){return wt("MuiDialogTitle",e)}const jue=Ot("MuiDialogTitle",["root"]),Tue=["className","dividers"],Aue=e=>{const{classes:t,dividers:r}=e;return St({root:["root",r&&"dividers"]},kue,t)},Mue=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>z({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}`}:{[`.${jue.root} + &`]:{paddingTop:0}})),o0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,s=Ve(n,Tue),d=z({},n,{dividers:o}),f=Aue(d);return A.jsx(Mue,z({className:Re(f.root,a),ownerState:d,ref:r},s))});function Fue(e){return wt("MuiDialogContentText",e)}Ot("MuiDialogContentText",["root"]);const $ue=["children","className"],Lue=e=>{const{classes:t}=e,n=St({root:["root"]},Fue,t);return z({},t,n)},Due=he(nr,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qw=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Ve(n,$ue),s=Lue(o);return A.jsx(Due,z({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:Re(s.root,a)},n,{classes:s}))}),Nue=["className","id"],Bue=e=>{const{classes:t}=e;return St({root:["root"]},Iue,t)},zue=he(nr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),i0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,s=Ve(n,Nue),d=n,f=Bue(d),{titleId:l=o}=p.useContext(_U);return A.jsx(zue,z({component:"h2",className:Re(f.root,a),ownerState:d,ref:r,variant:"h6",id:o??l},s))});function que(e){return wt("MuiDivider",e)}const S3=Ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Uue=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Vue=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:s,textAlign:d,variant:f}=e;return St({root:["root",t&&"absolute",f,o&&"light",s==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&s==="vertical"&&"withChildrenVertical",d==="right"&&s!=="vertical"&&"textAlignRight",d==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},que,n)},Wue=he("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})=>z({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)`:ir.alpha(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})=>z({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>z({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>z({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>z({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Hue=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>z({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)`})),Ob=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:s,component:d=o?"div":"hr",flexItem:f=!1,light:l=!1,orientation:h="horizontal",role:g=d!=="hr"?"separator":void 0,textAlign:y="center",variant:_="fullWidth"}=n,w=Ve(n,Uue),E=z({},n,{absolute:a,component:d,flexItem:f,light:l,orientation:h,role:g,textAlign:y,variant:_}),x=Vue(E);return A.jsx(Wue,z({as:d,className:Re(x.root,s),role:g,ref:r,ownerState:E},w,{children:o?A.jsx(Hue,{className:x.wrapper,ownerState:E,children:o}):null}))});Ob.muiSkipListHighlight=!0;const Gue=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Kue(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=Ti(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const l=o.getComputedStyle(t);s=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let d=0,f=0;if(s&&s!=="none"&&typeof s=="string"){const l=s.split("(")[1].split(")")[0].split(",");d=parseInt(l[4],10),f=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+d-n.left}px)`:`translateX(${o.innerWidth+d-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-d}px)`:`translateX(-${n.left+n.width-d}px)`:e==="up"?a?`translateY(${a.bottom+f-n.top}px)`:`translateY(${o.innerHeight+f-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-f}px)`:`translateY(-${n.top+n.height-f}px)`}function Que(e){return typeof e=="function"?e():e}function W_(e,t,r){const n=Que(r),a=Kue(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const xU=p.forwardRef(function(t,r){const n=ei(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:d=!0,children:f,container:l,direction:h="down",easing:g=a,in:y,onEnter:_,onEntered:w,onEntering:E,onExit:x,onExited:T,onExiting:I,style:R,timeout:O=o,TransitionComponent:C=ps}=t,P=Ve(t,Gue),j=p.useRef(null),k=fn(f.ref,j,r),M=H=>te=>{H&&(te===void 0?H(j.current):H(j.current,te))},$=M((H,te)=>{W_(h,H,l),vT(H),_&&_(H,te)}),N=M((H,te)=>{const ne=ov({timeout:O,style:R,easing:g},{mode:"enter"});H.style.webkitTransition=n.transitions.create("-webkit-transform",z({},ne)),H.style.transition=n.transitions.create("transform",z({},ne)),H.style.webkitTransform="none",H.style.transform="none",E&&E(H,te)}),B=M(w),q=M(I),V=M(H=>{const te=ov({timeout:O,style:R,easing:g},{mode:"exit"});H.style.webkitTransition=n.transitions.create("-webkit-transform",te),H.style.transition=n.transitions.create("transform",te),W_(h,H,l),x&&x(H)}),G=M(H=>{H.style.webkitTransition="",H.style.transition="",T&&T(H)}),Y=H=>{s&&s(j.current,H)},X=p.useCallback(()=>{j.current&&W_(h,j.current,l)},[h,l]);return p.useEffect(()=>{if(y||h==="down"||h==="right")return;const H=Ov(()=>{j.current&&W_(h,j.current,l)}),te=Ti(j.current);return te.addEventListener("resize",H),()=>{H.clear(),te.removeEventListener("resize",H)}},[h,y,l]),p.useEffect(()=>{y||X()},[y,X]),A.jsx(C,z({nodeRef:j,onEnter:$,onEntered:B,onEntering:N,onExit:V,onExited:G,onExiting:q,addEndListener:Y,appear:d,in:y,timeout:O},P,{children:(H,te)=>p.cloneElement(f,z({ref:k,style:z({visibility:H==="exited"&&!y?"hidden":void 0},R,f.props.style)},te))}))});function Xue(e){return wt("MuiDrawer",e)}Ot("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Yue=["BackdropProps"],Jue=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],wU=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Zue=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ue(r)}`,n!=="temporary"&&`paperAnchorDocked${Ue(r)}`]};return St(a,Xue,t)},ece=he(ST,{name:"MuiDrawer",slot:"Root",overridesResolver:wU})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),E3=he("div",{shouldForwardProp:wa,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:wU})({flex:"0 0 auto"}),tce=he(qc,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Ue(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Ue(r.anchor)}`]]}})(({theme:e,ownerState:t})=>z({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}`})),SU={left:"right",right:"left",top:"down",bottom:"up"};function rce(e){return["left","right"].indexOf(e)!==-1}function nce({direction:e},t){return e==="rtl"&&rce(t)?SU[t]:t}const ace=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDrawer"}),a=ei(),o=zc(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:f,children:l,className:h,elevation:g=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:_}={},onClose:w,open:E=!1,PaperProps:x={},SlideProps:T,TransitionComponent:I=xU,transitionDuration:R=s,variant:O="temporary"}=n,C=Ve(n.ModalProps,Yue),P=Ve(n,Jue),j=p.useRef(!1);p.useEffect(()=>{j.current=!0},[]);const k=nce({direction:o?"rtl":"ltr"},d),$=z({},n,{anchor:d,elevation:g,open:E,variant:O},P),N=Zue($),B=A.jsx(tce,z({elevation:O==="temporary"?g:0,square:!0},x,{className:Re(N.paper,x.className),ownerState:$,children:l}));if(O==="permanent")return A.jsx(E3,z({className:Re(N.root,N.docked,h),ownerState:$,ref:r},P,{children:B}));const q=A.jsx(I,z({in:E,direction:SU[k],timeout:R,appear:j.current},T,{children:B}));return O==="persistent"?A.jsx(E3,z({className:Re(N.root,N.docked,h),ownerState:$,ref:r},P,{children:q})):A.jsx(ece,z({BackdropProps:z({},f,_,{transitionDuration:R}),className:Re(N.root,N.modal,h),open:E,ownerState:$,onClose:w,hideBackdrop:y,ref:r},P,C,{children:q}))});function oce(e){return wt("MuiFab",e)}const C3=Ot("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),ice=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],sce=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${Ue(a)}`,t==="inherit"?"colorInherit":t]},s=St(o,oce,n);return z({},n,s)},lce=he(du,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>wa(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Ue(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return z({},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"},[`&.${C3.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})=>z({},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})=>({[`&.${C3.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),uce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFab"}),{children:a,className:o,color:s="default",component:d="button",disabled:f=!1,disableFocusRipple:l=!1,focusVisibleClassName:h,size:g="large",variant:y="circular"}=n,_=Ve(n,ice),w=z({},n,{color:s,component:d,disabled:f,disableFocusRipple:l,size:g,variant:y}),E=sce(w);return A.jsx(lce,z({className:Re(E.root,o),component:d,disabled:f,focusRipple:!l,focusVisibleClassName:Re(E.focusVisible,h),ownerState:w,ref:r},_,{classes:E,children:a}))}),cce=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],dce=e=>{const{classes:t,disableUnderline:r}=e,a=St({root:["root",!r&&"underline"],input:["input"]},Tse,t);return z({},t,a)},fce=he(Dw,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$w(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",d=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return z({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Ld.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ld.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:d}},!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"},[`&.${Ld.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ld.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ld.disabled}, .${Ld.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ld.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&z({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}))}),pce=he(Nw,{name:"MuiFilledInput",slot:"Input",overridesResolver:Lw})(({theme:e,ownerState:t})=>z({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})),CT=p.forwardRef(function(t,r){var n,a,o,s;const d=Et({props:t,name:"MuiFilledInput"}),{components:f={},componentsProps:l,fullWidth:h=!1,inputComponent:g="input",multiline:y=!1,slotProps:_,slots:w={},type:E="text"}=d,x=Ve(d,cce),T=z({},d,{fullWidth:h,inputComponent:g,multiline:y,type:E}),I=dce(d),R={root:{ownerState:T},input:{ownerState:T}},O=_??l?ro(R,_??l):R,C=(n=(a=w.root)!=null?a:f.Root)!=null?n:fce,P=(o=(s=w.input)!=null?s:f.Input)!=null?o:pce;return A.jsx(Bw,z({slots:{root:C,input:P},componentsProps:O,fullWidth:h,inputComponent:g,multiline:y,ref:r,type:E},x,{classes:I}))});CT.muiName="Input";function hce(e){return wt("MuiFormControl",e)}Ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const vce=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],mce=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${Ue(r)}`,n&&"fullWidth"]};return St(a,hce,t)},gce=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,t[`margin${Ue(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>z({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%"})),EU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormControl"}),{children:a,className:o,color:s="primary",component:d="div",disabled:f=!1,error:l=!1,focused:h,fullWidth:g=!1,hiddenLabel:y=!1,margin:_="none",required:w=!1,size:E="medium",variant:x="outlined"}=n,T=Ve(n,vce),I=z({},n,{color:s,component:d,disabled:f,error:l,fullWidth:g,hiddenLabel:y,margin:_,required:w,size:E,variant:x}),R=mce(I),[O,C]=p.useState(()=>{let q=!1;return a&&p.Children.forEach(a,V=>{if(!f1(V,["Input","Select"]))return;const G=f1(V,["Select"])?V.props.input:V;G&&Cse(G.props)&&(q=!0)}),q}),[P,j]=p.useState(()=>{let q=!1;return a&&p.Children.forEach(a,V=>{f1(V,["Input","Select"])&&(ex(V.props,!0)||ex(V.props.inputProps,!0))&&(q=!0)}),q}),[k,M]=p.useState(!1);f&&k&&M(!1);const $=h!==void 0&&!f?h:k;let N;const B=p.useMemo(()=>({adornedStart:O,setAdornedStart:C,color:s,disabled:f,error:l,filled:P,focused:$,fullWidth:g,hiddenLabel:y,size:E,onBlur:()=>{M(!1)},onEmpty:()=>{j(!1)},onFilled:()=>{j(!0)},onFocus:()=>{M(!0)},registerEffect:N,required:w,variant:x}),[O,s,f,l,P,$,g,y,N,w,E,x]);return A.jsx(Fw.Provider,{value:B,children:A.jsx(gce,z({as:d,ownerState:I,className:Re(R.root,o),ref:r},T,{children:a}))})}),Rv=yae({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Et({props:e,name:"MuiStack"})});function yce(e){return wt("MuiFormControlLabel",e)}const qy=Ot("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),bce=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],_ce=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,s={root:["root",r&&"disabled",`labelPlacement${Ue(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return St(s,yce,t)},xce=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${qy.label}`]:t.label},t.root,t[`labelPlacement${Ue(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>z({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${qy.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},{[`& .${qy.label}`]:{[`&.${qy.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),wce=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${qy.error}`]:{color:(e.vars||e).palette.error.main}})),wk=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:d={},control:f,disabled:l,disableTypography:h,label:g,labelPlacement:y="end",required:_,slotProps:w={}}=o,E=Ve(o,bce),x=hs(),T=(n=l??f.props.disabled)!=null?n:x==null?void 0:x.disabled,I=_??f.props.required,R={disabled:T,required:I};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof f.props[M]>"u"&&typeof o[M]<"u"&&(R[M]=o[M])});const O=fu({props:o,muiFormControl:x,states:["error"]}),C=z({},o,{disabled:T,labelPlacement:y,required:I,error:O.error}),P=_ce(C),j=(a=w.typography)!=null?a:d.typography;let k=g;return k!=null&&k.type!==nr&&!h&&(k=A.jsx(nr,z({component:"span"},j,{className:Re(P.label,j==null?void 0:j.className),children:k}))),A.jsxs(xce,z({className:Re(P.root,s),ownerState:C,ref:r},E,{children:[p.cloneElement(f,R),I?A.jsxs(Rv,{display:"block",children:[k,A.jsxs(wce,{ownerState:C,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):k]}))});function Sce(e){return wt("MuiFormGroup",e)}Ot("MuiFormGroup",["root","row","error"]);const Ece=["className","row"],Cce=e=>{const{classes:t,row:r,error:n}=e;return St({root:["root",r&&"row",n&&"error"]},Sce,t)},Oce=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>z({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Pce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,s=Ve(n,Ece),d=hs(),f=fu({props:n,muiFormControl:d,states:["error"]}),l=z({},n,{row:o,error:f.error}),h=Cce(l);return A.jsx(Oce,z({className:Re(h.root,a),ownerState:l,ref:r},s))});function Rce(e){return wt("MuiFormHelperText",e)}const O3=Ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var P3;const kce=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Ice=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:s,focused:d,required:f}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${Ue(n)}`,r&&"contained",d&&"focused",s&&"filled",f&&"required"]};return St(l,Rce,t)},jce=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Ue(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${O3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${O3.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),OT=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:s="p"}=n,d=Ve(n,kce),f=hs(),l=fu({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),h=z({},n,{component:s,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}),g=Ice(h);return A.jsx(jce,z({as:s,ownerState:h,className:Re(g.root,o),ref:r},d,{children:a===" "?P3||(P3=A.jsx("span",{className:"notranslate",children:"​"})):a}))});function Tce(e){return wt("MuiFormLabel",e)}const rb=Ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ace=["children","className","color","component","disabled","error","filled","focused","required"],Mce=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:s,required:d}=e,f={root:["root",`color${Ue(r)}`,a&&"disabled",o&&"error",s&&"filled",n&&"focused",d&&"required"],asterisk:["asterisk",o&&"error"]};return St(f,Tce,t)},Fce=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${rb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${rb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rb.error}`]:{color:(e.vars||e).palette.error.main}})),$ce=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${rb.error}`]:{color:(e.vars||e).palette.error.main}})),Lce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:s="label"}=n,d=Ve(n,Ace),f=hs(),l=fu({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),h=z({},n,{color:l.color||"primary",component:s,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),g=Mce(h);return A.jsxs(Fce,z({as:s,ownerState:h,className:Re(g.root,o),ref:r},d,{children:[a,l.required&&A.jsxs($ce,{ownerState:h,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]}))}),Dce=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Sk(e){return`scale(${e}, ${e**2})`}const Nce={entering:{opacity:1,transform:Sk(1)},entered:{opacity:1,transform:"none"}},s2=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Pb=p.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:s,in:d,onEnter:f,onEntered:l,onEntering:h,onExit:g,onExited:y,onExiting:_,style:w,timeout:E="auto",TransitionComponent:x=ps}=t,T=Ve(t,Dce),I=Zd(),R=p.useRef(),O=ei(),C=p.useRef(null),P=fn(C,o.ref,r),j=G=>Y=>{if(G){const X=C.current;Y===void 0?G(X):G(X,Y)}},k=j(h),M=j((G,Y)=>{vT(G);const{duration:X,delay:H,easing:te}=ov({style:w,timeout:E,easing:s},{mode:"enter"});let ne;E==="auto"?(ne=O.transitions.getAutoHeightDuration(G.clientHeight),R.current=ne):ne=X,G.style.transition=[O.transitions.create("opacity",{duration:ne,delay:H}),O.transitions.create("transform",{duration:s2?ne:ne*.666,delay:H,easing:te})].join(","),f&&f(G,Y)}),$=j(l),N=j(_),B=j(G=>{const{duration:Y,delay:X,easing:H}=ov({style:w,timeout:E,easing:s},{mode:"exit"});let te;E==="auto"?(te=O.transitions.getAutoHeightDuration(G.clientHeight),R.current=te):te=Y,G.style.transition=[O.transitions.create("opacity",{duration:te,delay:X}),O.transitions.create("transform",{duration:s2?te:te*.666,delay:s2?X:X||te*.333,easing:H})].join(","),G.style.opacity=0,G.style.transform=Sk(.75),g&&g(G)}),q=j(y),V=G=>{E==="auto"&&I.start(R.current||0,G),n&&n(C.current,G)};return A.jsx(x,z({appear:a,in:d,nodeRef:C,onEnter:M,onEntered:$,onEntering:k,onExit:B,onExited:q,onExiting:N,addEndListener:V,timeout:E==="auto"?null:E},T,{children:(G,Y)=>p.cloneElement(o,z({style:z({opacity:0,transform:Sk(.75),visibility:G==="exited"&&!d?"hidden":void 0},Nce[G],w,o.props.style),ref:P},Y))}))});Pb.muiSupportAuto=!0;const Bce=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],zce=e=>{const{classes:t,disableUnderline:r}=e,a=St({root:["root",!r&&"underline"],input:["input"]},Ise,t);return z({},t,a)},qce=he(Dw,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$w(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})`),z({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"},[`&.${lg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lg.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(.${lg.disabled}, .${lg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lg.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Uce=he(Nw,{name:"MuiInput",slot:"Input",overridesResolver:Lw})({}),Uw=p.forwardRef(function(t,r){var n,a,o,s;const d=Et({props:t,name:"MuiInput"}),{disableUnderline:f,components:l={},componentsProps:h,fullWidth:g=!1,inputComponent:y="input",multiline:_=!1,slotProps:w,slots:E={},type:x="text"}=d,T=Ve(d,Bce),I=zce(d),O={root:{ownerState:{disableUnderline:f}}},C=w??h?ro(w??h,O):O,P=(n=(a=E.root)!=null?a:l.Root)!=null?n:qce,j=(o=(s=E.input)!=null?s:l.Input)!=null?o:Uce;return A.jsx(Bw,z({slots:{root:P,input:j},slotProps:C,fullWidth:g,inputComponent:y,multiline:_,ref:r,type:x},T,{classes:I}))});Uw.muiName="Input";function Vce(e){return wt("MuiInputAdornment",e)}const R3=Ot("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var k3;const Wce=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Hce=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ue(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Gce=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:s}=e,d={root:["root",r&&"disablePointerEvents",a&&`position${Ue(a)}`,s,n&&"hiddenLabel",o&&`size${Ue(o)}`]};return St(d,Vce,t)},Kce=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Hce})(({theme:e,ownerState:t})=>z({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${R3.positionStart}&:not(.${R3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Ph=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:s="div",disablePointerEvents:d=!1,disableTypography:f=!1,position:l,variant:h}=n,g=Ve(n,Wce),y=hs()||{};let _=h;h&&y.variant,y&&!_&&(_=y.variant);const w=z({},n,{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:d,position:l,variant:_}),E=Gce(w);return A.jsx(Fw.Provider,{value:null,children:A.jsx(Kce,z({as:s,ownerState:w,className:Re(E.root,o),ref:r},g,{children:typeof a=="string"&&!f?A.jsx(nr,{color:"text.secondary",children:a}):A.jsxs(p.Fragment,{children:[l==="start"?k3||(k3=A.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function Qce(e){return wt("MuiInputLabel",e)}Ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Xce=["disableAnimation","margin","shrink","variant","className"],Yce=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:s,required:d}=e,f={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${Ue(n)}`,s],asterisk:[d&&"asterisk"]},l=St(f,Qce,t);return z({},t,l)},Jce=he(Lce,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${rb.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})=>z({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"&&z({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&&z({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"&&z({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)"}))),CU=p.forwardRef(function(t,r){const n=Et({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:s}=n,d=Ve(n,Xce),f=hs();let l=o;typeof l>"u"&&f&&(l=f.filled||f.focused||f.adornedStart);const h=fu({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),g=z({},n,{disableAnimation:a,formControl:f,shrink:l,size:h.size,variant:h.variant,required:h.required,focused:h.focused}),y=Yce(g);return A.jsx(Jce,z({"data-shrink":l,ownerState:g,ref:r,className:Re(y.root,s)},d,{classes:y}))});function Zce(e){return wt("MuiLinearProgress",e)}Ot("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const ede=["className","color","value","valueBuffer","variant"];let kv=e=>e,I3,j3,T3,A3,M3,F3;const Ek=4,tde=cu(I3||(I3=kv` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),rde=cu(j3||(j3=kv` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),nde=cu(T3||(T3=kv` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),ade=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${Ue(n)}`,r],dashed:["dashed",`dashedColor${Ue(n)}`],bar1:["bar",`barColor${Ue(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Ue(n)}`,r==="buffer"&&`color${Ue(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return St(a,Zce,t)},PT=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?ir.lighten(e.palette[t].main,.62):ir.darken(e.palette[t].main,.5),ode=he("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ue(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>z({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:PT(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)"})),ide=he("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Ue(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=PT(t,e.color);return z({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"})},Rf(A3||(A3=kv` - animation: ${0} 3s infinite linear; - `),nde)),sde=he("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Ue(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>z({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 .${Ek}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Ek}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Rf(M3||(M3=kv` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),tde)),lde=he("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Ue(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>z({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:PT(t,e.color),transition:`transform .${Ek}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Rf(F3||(F3=kv` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),rde)),ude=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:s,valueBuffer:d,variant:f="indeterminate"}=n,l=Ve(n,ede),h=z({},n,{color:o,variant:f}),g=ade(h),y=zc(),_={},w={bar1:{},bar2:{}};if((f==="determinate"||f==="buffer")&&s!==void 0){_["aria-valuenow"]=Math.round(s),_["aria-valuemin"]=0,_["aria-valuemax"]=100;let E=s-100;y&&(E=-E),w.bar1.transform=`translateX(${E}%)`}if(f==="buffer"&&d!==void 0){let E=(d||0)-100;y&&(E=-E),w.bar2.transform=`translateX(${E}%)`}return A.jsxs(ode,z({className:Re(g.root,a),ownerState:h,role:"progressbar"},_,{ref:r},l,{children:[f==="buffer"?A.jsx(ide,{className:g.dashed,ownerState:h}):null,A.jsx(sde,{className:g.bar1,ownerState:h,style:w.bar1}),f==="determinate"?null:A.jsx(lde,{className:g.bar2,ownerState:h,style:w.bar2})]}))});function cde(e){return wt("MuiLink",e)}const dde=Ot("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),OU={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fde=e=>OU[e]||e,pde=({theme:e,ownerState:t})=>{const r=fde(t.color),n=rv(e,`palette.${r}`,!1)||t.color,a=rv(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:ir.alpha(n,.4)},hde=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],vde=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${Ue(a)}`,r==="button"&&"button",n&&"focusVisible"]};return St(o,cde,t)},mde=he(nr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ue(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>z({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&z({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:pde({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"},[`&.${dde.focusVisible}`]:{outline:"auto"}})),gde=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:s="a",onBlur:d,onFocus:f,TypographyClasses:l,underline:h="always",variant:g="inherit",sx:y}=n,_=Ve(n,hde),{isFocusVisibleRef:w,onBlur:E,onFocus:x,ref:T}=jw(),[I,R]=p.useState(!1),O=fn(r,T),C=M=>{E(M),w.current===!1&&R(!1),d&&d(M)},P=M=>{x(M),w.current===!0&&R(!0),f&&f(M)},j=z({},n,{color:o,component:s,focusVisible:I,underline:h,variant:g}),k=vde(j);return A.jsx(mde,z({color:o,className:Re(k.root,a),classes:l,component:s,onBlur:C,onFocus:P,ref:O,ownerState:j,variant:g,sx:[...Object.keys(OU).includes(o)?[]:[{color:o}],...Array.isArray(y)?y:[y]]},_))}),Rb=p.createContext({});function yde(e){return wt("MuiList",e)}Ot("MuiList",["root","padding","dense","subheader"]);const bde=["children","className","component","dense","disablePadding","subheader"],_de=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return St({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},yde,t)},xde=he("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})=>z({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),wde=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiList"}),{children:a,className:o,component:s="ul",dense:d=!1,disablePadding:f=!1,subheader:l}=n,h=Ve(n,bde),g=p.useMemo(()=>({dense:d}),[d]),y=z({},n,{component:s,dense:d,disablePadding:f}),_=_de(y);return A.jsx(Rb.Provider,{value:g,children:A.jsxs(xde,z({as:s,className:Re(_.root,o),ref:r,ownerState:y},h,{children:[l,a]}))})});function Sde(e){return wt("MuiListItemIcon",e)}const $3=Ot("MuiListItemIcon",["root","alignItemsFlexStart"]),Ede=["className"],Cde=e=>{const{alignItems:t,classes:r}=e;return St({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Sde,r)},Ode=he("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})=>z({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),tf=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Ve(n,Ede),s=p.useContext(Rb),d=z({},n,{alignItems:s.alignItems}),f=Cde(d);return A.jsx(Ode,z({className:Re(f.root,a),ownerState:d,ref:r},o))});function Pde(e){return wt("MuiListItemText",e)}const tx=Ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Rde=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],kde=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return St({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Pde,t)},Ide=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tx.primary}`]:t.primary},{[`& .${tx.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>z({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),wh=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:s=!1,inset:d=!1,primary:f,primaryTypographyProps:l,secondary:h,secondaryTypographyProps:g}=n,y=Ve(n,Rde),{dense:_}=p.useContext(Rb);let w=f??a,E=h;const x=z({},n,{disableTypography:s,inset:d,primary:!!w,secondary:!!E,dense:_}),T=kde(x);return w!=null&&w.type!==nr&&!s&&(w=A.jsx(nr,z({variant:_?"body2":"body1",className:T.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:w}))),E!=null&&E.type!==nr&&!s&&(E=A.jsx(nr,z({variant:"body2",className:T.secondary,color:"text.secondary",display:"block"},g,{children:E}))),A.jsxs(Ide,z({className:Re(T.root,o),ownerState:x,ref:r},y,{children:[w,E]}))}),jde=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l2(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function L3(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function PU(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 ug(e,t,r,n,a,o){let s=!1,d=a(e,t,t?r:!1);for(;d;){if(d===e.firstChild){if(s)return!1;s=!0}const f=n?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!PU(d,o)||f)d=a(e,d,r);else return d.focus(),!0}return!1}const RU=p.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:s,className:d,disabledItemsFocusable:f=!1,disableListWrap:l=!1,onKeyDown:h,variant:g="selectedMenu"}=t,y=Ve(t,jde),_=p.useRef(null),w=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yo(()=>{a&&_.current.focus()},[a]),p.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(R,{direction:O})=>{const C=!_.current.style.width;if(R.clientHeight<_.current.clientHeight&&C){const P=`${V6(Dn(R))}px`;_.current.style[O==="rtl"?"paddingLeft":"paddingRight"]=P,_.current.style.width=`calc(100% + ${P})`}return _.current}}),[]);const E=R=>{const O=_.current,C=R.key,P=Dn(O).activeElement;if(C==="ArrowDown")R.preventDefault(),ug(O,P,l,f,l2);else if(C==="ArrowUp")R.preventDefault(),ug(O,P,l,f,L3);else if(C==="Home")R.preventDefault(),ug(O,null,l,f,l2);else if(C==="End")R.preventDefault(),ug(O,null,l,f,L3);else if(C.length===1){const j=w.current,k=C.toLowerCase(),M=performance.now();j.keys.length>0&&(M-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&k!==j.keys[0]&&(j.repeating=!1)),j.lastTime=M,j.keys.push(k);const $=P&&!j.repeating&&PU(P,j);j.previousKeyMatched&&($||ug(O,P,!1,f,l2,j))?R.preventDefault():j.previousKeyMatched=!1}h&&h(R)},x=fn(_,r);let T=-1;p.Children.forEach(s,(R,O)=>{if(!p.isValidElement(R)){T===O&&(T+=1,T>=s.length&&(T=-1));return}R.props.disabled||(g==="selectedMenu"&&R.props.selected||T===-1)&&(T=O),T===O&&(R.props.disabled||R.props.muiSkipListHighlight||R.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const I=p.Children.map(s,(R,O)=>{if(O===T){const C={};return o&&(C.autoFocus=!0),R.props.tabIndex===void 0&&g==="selectedMenu"&&(C.tabIndex=0),p.cloneElement(R,C)}return R});return A.jsx(wde,z({role:"menu",ref:x,className:d,onKeyDown:E,tabIndex:a?0:-1},y,{children:I}))});function Tde(e){return wt("MuiPopover",e)}Ot("MuiPopover",["root","paper"]);const Ade=["onEntering"],Mde=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Fde=["slotProps"];function D3(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function N3(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function B3(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function u2(e){return typeof e=="function"?e():e}const $de=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"]},Tde,t)},Lde=he(ST,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kU=he(qc,{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}),RT=p.forwardRef(function(t,r){var n,a,o;const s=Et({props:t,name:"MuiPopover"}),{action:d,anchorEl:f,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:g="anchorEl",children:y,className:_,container:w,elevation:E=8,marginThreshold:x=16,open:T,PaperProps:I={},slots:R,slotProps:O,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:P=Pb,transitionDuration:j="auto",TransitionProps:{onEntering:k}={},disableScrollLock:M=!1}=s,$=Ve(s.TransitionProps,Ade),N=Ve(s,Mde),B=(n=O==null?void 0:O.paper)!=null?n:I,q=p.useRef(),V=fn(q,B.ref),G=z({},s,{anchorOrigin:l,anchorReference:g,elevation:E,marginThreshold:x,externalPaperSlotProps:B,transformOrigin:C,TransitionComponent:P,transitionDuration:j,TransitionProps:$}),Y=$de(G),X=p.useCallback(()=>{if(g==="anchorPosition")return h;const Te=u2(f),Le=(Te&&Te.nodeType===1?Te:Dn(q.current).body).getBoundingClientRect();return{top:Le.top+D3(Le,l.vertical),left:Le.left+N3(Le,l.horizontal)}},[f,l.horizontal,l.vertical,h,g]),H=p.useCallback(Te=>({vertical:D3(Te,C.vertical),horizontal:N3(Te,C.horizontal)}),[C.horizontal,C.vertical]),te=p.useCallback(Te=>{const Be={width:Te.offsetWidth,height:Te.offsetHeight},Le=H(Be);if(g==="none")return{top:null,left:null,transformOrigin:B3(Le)};const dt=X();let He=dt.top-Le.vertical,Z=dt.left-Le.horizontal;const ae=He+Be.height,fe=Z+Be.width,ve=Ti(u2(f)),be=ve.innerHeight-x,_e=ve.innerWidth-x;if(x!==null&&Hebe){const De=ae-be;He-=De,Le.vertical+=De}if(x!==null&&Z_e){const De=fe-_e;Z-=De,Le.horizontal+=De}return{top:`${Math.round(He)}px`,left:`${Math.round(Z)}px`,transformOrigin:B3(Le)}},[f,g,X,H,x]),[ne,K]=p.useState(T),ee=p.useCallback(()=>{const Te=q.current;if(!Te)return;const Be=te(Te);Be.top!==null&&(Te.style.top=Be.top),Be.left!==null&&(Te.style.left=Be.left),Te.style.transformOrigin=Be.transformOrigin,K(!0)},[te]);p.useEffect(()=>(M&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[f,M,ee]);const Ce=(Te,Be)=>{k&&k(Te,Be),ee()},se=()=>{K(!1)};p.useEffect(()=>{T&&ee()}),p.useImperativeHandle(d,()=>T?{updatePosition:()=>{ee()}}:null,[T,ee]),p.useEffect(()=>{if(!T)return;const Te=Ov(()=>{ee()}),Be=Ti(f);return Be.addEventListener("resize",Te),()=>{Te.clear(),Be.removeEventListener("resize",Te)}},[f,T,ee]);let Se=j;j==="auto"&&!P.muiSupportAuto&&(Se=void 0);const me=w||(f?Dn(u2(f)).body:void 0),we=(a=R==null?void 0:R.root)!=null?a:Lde,Oe=(o=R==null?void 0:R.paper)!=null?o:kU,ie=Ai({elementType:Oe,externalSlotProps:z({},B,{style:ne?B.style:z({},B.style,{opacity:0})}),additionalProps:{elevation:E,ref:V},ownerState:G,className:Re(Y.paper,B==null?void 0:B.className)}),Fe=Ai({elementType:we,externalSlotProps:(O==null?void 0:O.root)||{},externalForwardedProps:N,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:me,open:T},ownerState:G,className:Re(Y.root,_)}),{slotProps:ke}=Fe,$e=Ve(Fe,Fde);return A.jsx(we,z({},$e,!wb(we)&&{slotProps:ke,disableScrollLock:M},{children:A.jsx(P,z({appear:!0,in:T,onEntering:Ce,onExited:se,timeout:Se},$,{children:A.jsx(Oe,z({},ie,{children:y}))}))}))});function Dde(e){return wt("MuiMenu",e)}Ot("MuiMenu",["root","paper","list"]);const Nde=["onEntering"],Bde=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],zde={vertical:"top",horizontal:"right"},qde={vertical:"top",horizontal:"left"},Ude=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"],list:["list"]},Dde,t)},Vde=he(RT,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wde=he(kU,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Hde=he(RU,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Vw=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:d,className:f,disableAutoFocusItem:l=!1,MenuListProps:h={},onClose:g,open:y,PaperProps:_={},PopoverClasses:w,transitionDuration:E="auto",TransitionProps:{onEntering:x}={},variant:T="selectedMenu",slots:I={},slotProps:R={}}=o,O=Ve(o.TransitionProps,Nde),C=Ve(o,Bde),P=zc(),j=z({},o,{autoFocus:s,disableAutoFocusItem:l,MenuListProps:h,onEntering:x,PaperProps:_,transitionDuration:E,TransitionProps:O,variant:T}),k=Ude(j),M=s&&!l&&y,$=p.useRef(null),N=(H,te)=>{$.current&&$.current.adjustStyleForScrollbar(H,{direction:P?"rtl":"ltr"}),x&&x(H,te)},B=H=>{H.key==="Tab"&&(H.preventDefault(),g&&g(H,"tabKeyDown"))};let q=-1;p.Children.map(d,(H,te)=>{p.isValidElement(H)&&(H.props.disabled||(T==="selectedMenu"&&H.props.selected||q===-1)&&(q=te))});const V=(n=I.paper)!=null?n:Wde,G=(a=R.paper)!=null?a:_,Y=Ai({elementType:I.root,externalSlotProps:R.root,ownerState:j,className:[k.root,f]}),X=Ai({elementType:V,externalSlotProps:G,ownerState:j,className:k.paper});return A.jsx(Vde,z({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?zde:qde,slots:{paper:V,root:I.root},slotProps:{root:Y,paper:X},open:y,ref:r,transitionDuration:E,TransitionProps:z({onEntering:N},O),ownerState:j},C,{classes:w,children:A.jsx(Hde,z({onKeyDown:B,actions:$,autoFocus:s&&(q===-1||l),autoFocusItem:M,variant:T},h,{className:Re(k.list,h.className),children:d}))}))});function Gde(e){return wt("MuiMenuItem",e)}const cg=Ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Kde=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Qde=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Xde=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:s}=e,f=St({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Gde,s);return z({},s,f)},Yde=he(du,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Qde})(({theme:e,ownerState:t})=>z({},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"}},[`&.${cg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ir.alpha(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})`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${S3.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${S3.inset}`]:{marginLeft:52},[`& .${tx.root}`]:{marginTop:0,marginBottom:0},[`& .${tx.inset}`]:{paddingLeft:36},[`& .${$3.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$3.root} svg`]:{fontSize:"1.25rem"}}))),Ko=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:s=!1,divider:d=!1,disableGutters:f=!1,focusVisibleClassName:l,role:h="menuitem",tabIndex:g,className:y}=n,_=Ve(n,Kde),w=p.useContext(Rb),E=p.useMemo(()=>({dense:s||w.dense||!1,disableGutters:f}),[w.dense,s,f]),x=p.useRef(null);Yo(()=>{a&&x.current&&x.current.focus()},[a]);const T=z({},n,{dense:E.dense,divider:d,disableGutters:f}),I=Xde(n),R=fn(x,r);let O;return n.disabled||(O=g!==void 0?g:-1),A.jsx(Rb.Provider,{value:E,children:A.jsx(Yde,z({ref:R,role:h,tabIndex:O,component:o,focusVisibleClassName:Re(I.focusVisible,l),className:Re(I.root,y)},_,{ownerState:T,classes:I}))})});function IU(e){return wt("MuiNativeSelect",e)}const kT=Ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Jde=["className","disabled","error","IconComponent","inputRef","variant"],Zde=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:s}=e,d={select:["select",r,n&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${Ue(r)}`,o&&"iconOpen",n&&"disabled"]};return St(d,IU,t)},jU=({ownerState:e,theme:t})=>z({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":z({},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"},[`&.${kT.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}}),efe=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wa,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${kT.multiple}`]:t.multiple}]}})(jU),TU=({ownerState:e,theme:t})=>z({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${kT.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),tfe=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ue(r.variant)}`],r.open&&t.iconOpen]}})(TU),AU=p.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:s,inputRef:d,variant:f="standard"}=t,l=Ve(t,Jde),h=z({},t,{disabled:a,variant:f,error:o}),g=Zde(h);return A.jsxs(p.Fragment,{children:[A.jsx(efe,z({ownerState:h,className:Re(g.select,n),disabled:a,ref:d||r},l)),t.multiple?null:A.jsx(tfe,{as:s,ownerState:h,className:g.icon})]})}),rfe=["className","children","classes","IconComponent","input","inputProps","variant"],nfe=["root"],afe=e=>{const{classes:t}=e;return St({root:["root"]},IU,t)},ofe=A.jsx(Uw,{}),Ck=p.forwardRef(function(t,r){const n=Et({name:"MuiNativeSelect",props:t}),{className:a,children:o,classes:s={},IconComponent:d=hU,input:f=ofe,inputProps:l}=n,h=Ve(n,rfe),g=hs(),y=fu({props:n,muiFormControl:g,states:["variant"]}),_=z({},n,{classes:s}),w=afe(_),E=Ve(s,nfe);return A.jsx(p.Fragment,{children:p.cloneElement(f,z({inputComponent:AU,inputProps:z({children:o,classes:E,IconComponent:d,variant:y.variant,type:void 0},l,f?f.props.inputProps:{}),ref:r},h,{className:Re(w.root,f.props.className,a)}))})});Ck.muiName="Select";var z3;const ife=["children","classes","className","label","notched"],sfe=he("fieldset",{shouldForwardProp:wa})({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%"}),lfe=he("legend",{shouldForwardProp:wa})(({ownerState:e,theme:t})=>z({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&&z({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 ufe(e){const{className:t,label:r,notched:n}=e,a=Ve(e,ife),o=r!=null&&r!=="",s=z({},e,{notched:n,withLabel:o});return A.jsx(sfe,z({"aria-hidden":!0,className:t,ownerState:s},a,{children:A.jsx(lfe,{ownerState:s,children:o?A.jsx("span",{children:r}):z3||(z3=A.jsx("span",{className:"notranslate",children:"​"}))})}))}const cfe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],dfe=e=>{const{classes:t}=e,n=St({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jse,t);return z({},t,n)},ffe=he(Dw,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$w})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return z({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yu.focused} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yu.error} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yu.disabled} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&z({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),pfe=he(ufe,{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}}),hfe=he(Nw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Lw})(({theme:e,ownerState:t})=>z({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})),IT=p.forwardRef(function(t,r){var n,a,o,s,d;const f=Et({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:h=!1,inputComponent:g="input",label:y,multiline:_=!1,notched:w,slots:E={},type:x="text"}=f,T=Ve(f,cfe),I=dfe(f),R=hs(),O=fu({props:f,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=z({},f,{color:O.color||"primary",disabled:O.disabled,error:O.error,focused:O.focused,formControl:R,fullWidth:h,hiddenLabel:O.hiddenLabel,multiline:_,size:O.size,type:x}),P=(n=(a=E.root)!=null?a:l.Root)!=null?n:ffe,j=(o=(s=E.input)!=null?s:l.Input)!=null?o:hfe;return A.jsx(Bw,z({slots:{root:P,input:j},renderSuffix:k=>A.jsx(pfe,{ownerState:C,className:I.notchedOutline,label:y!=null&&y!==""&&O.required?d||(d=A.jsxs(p.Fragment,{children:[y," ","*"]})):y,notched:typeof w<"u"?w:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:h,inputComponent:g,multiline:_,ref:r,type:x},T,{classes:z({},I,{notchedOutline:null})}))});IT.muiName="Input";function vfe(e){return wt("MuiPagination",e)}Ot("MuiPagination",["root","ul","outlined","text"]);const mfe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function gfe(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:s=!1,hidePrevButton:d=!1,onChange:f,page:l,showFirstButton:h=!1,showLastButton:g=!1,siblingCount:y=1}=e,_=Ve(e,mfe),[w,E]=av({controlled:l,default:a,name:r,state:"page"}),x=(M,$)=>{l||E($),f&&f(M,$)},T=(M,$)=>{const N=$-M+1;return Array.from({length:N},(B,q)=>M+q)},I=T(1,Math.min(t,n)),R=T(Math.max(n-t+1,t+1),n),O=Math.max(Math.min(w-y,n-t-y*2-1),t+2),C=Math.min(Math.max(w+y,t+y*2+2),R.length>0?R[0]-2:n-1),P=[...h?["first"]:[],...d?[]:["previous"],...I,...O>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...R,...s?[]:["next"],...g?["last"]:[]],j=M=>{switch(M){case"first":return 1;case"previous":return w-1;case"next":return w+1;case"last":return n;default:return null}},k=P.map(M=>typeof M=="number"?{onClick:$=>{x($,M)},type:"page",page:M,selected:M===w,disabled:o,"aria-current":M===w?"true":void 0}:{onClick:$=>{x($,j(M))},type:M,page:j(M),selected:!1,disabled:o||M.indexOf("ellipsis")===-1&&(M==="next"||M==="last"?w>=n:w<=1)});return z({items:k},_)}function yfe(e){return wt("MuiPaginationItem",e)}const _i=Ot("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Ok=ti(A.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Pk=ti(A.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),q3=ti(A.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),U3=ti(A.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),bfe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],MU=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.variant==="text"&&t[`text${Ue(r.color)}`],r.variant==="outlined"&&t[`outlined${Ue(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]},_fe=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:s,type:d,variant:f}=e,l={root:["root",`size${Ue(o)}`,f,s,r!=="standard"&&`color${Ue(r)}`,r!=="standard"&&`${f}${Ue(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[d]],icon:["icon"]};return St(l,yfe,t)},xfe=he("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:MU})(({theme:e,ownerState:t})=>z({},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",[`&.${_i.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)})),wfe=he(du,{name:"MuiPaginationItem",slot:"Root",overridesResolver:MU})(({theme:e,ownerState:t})=>z({},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,[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_i.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"}},[`&.${_i.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}))`:ir.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${_i.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})=>z({},t.variant==="text"&&{[`&.${_i.selected}`]:z({},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}},[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${_i.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)"}`,[`&.${_i.selected}`]:z({},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)`:ir.alpha(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:ir.alpha(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}))`:ir.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${_i.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Sfe=he("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>z({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Efe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:s,components:d={},disabled:f=!1,page:l,selected:h=!1,shape:g="circular",size:y="medium",slots:_={},type:w="page",variant:E="text"}=n,x=Ve(n,bfe),T=z({},n,{color:o,disabled:f,selected:h,shape:g,size:y,type:w,variant:E}),I=zc(),R=_fe(T),C=(I?{previous:_.next||d.next||U3,next:_.previous||d.previous||q3,last:_.first||d.first||Ok,first:_.last||d.last||Pk}:{previous:_.previous||d.previous||q3,next:_.next||d.next||U3,first:_.first||d.first||Ok,last:_.last||d.last||Pk})[w];return w==="start-ellipsis"||w==="end-ellipsis"?A.jsx(xfe,{ref:r,ownerState:T,className:Re(R.root,a),children:"…"}):A.jsxs(wfe,z({ref:r,ownerState:T,component:s,disabled:f,className:Re(R.root,a)},x,{children:[w==="page"&&l,C?A.jsx(Sfe,{as:C,ownerState:T,className:R.icon}):null]}))}),Cfe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Ofe=e=>{const{classes:t,variant:r}=e;return St({root:["root",r],ul:["ul"]},vfe,t)},Pfe=he("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Rfe=he("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function kfe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Ife=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:s="standard",count:d=1,defaultPage:f=1,disabled:l=!1,getItemAriaLabel:h=kfe,hideNextButton:g=!1,hidePrevButton:y=!1,renderItem:_=k=>A.jsx(Efe,z({},k)),shape:w="circular",showFirstButton:E=!1,showLastButton:x=!1,siblingCount:T=1,size:I="medium",variant:R="text"}=n,O=Ve(n,Cfe),{items:C}=gfe(z({},n,{componentName:"Pagination"})),P=z({},n,{boundaryCount:a,color:s,count:d,defaultPage:f,disabled:l,getItemAriaLabel:h,hideNextButton:g,hidePrevButton:y,renderItem:_,shape:w,showFirstButton:E,showLastButton:x,siblingCount:T,size:I,variant:R}),j=Ofe(P);return A.jsx(Pfe,z({"aria-label":"pagination navigation",className:Re(j.root,o),ownerState:P,ref:r},O,{children:A.jsx(Rfe,{className:j.ul,ownerState:P,children:C.map((k,M)=>A.jsx("li",{children:_(z({},k,{color:s,"aria-label":h(k.type,k.page,k.selected),shape:w,size:I,variant:R}))},M))})}))});function jfe(e){return wt("MuiSelect",e)}const dg=Ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var V3;const Tfe=["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"],Afe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${dg.select}`]:t.select},{[`&.${dg.select}`]:t[r.variant]},{[`&.${dg.error}`]:t.error},{[`&.${dg.multiple}`]:t.multiple}]}})(jU,{[`&.${dg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mfe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ue(r.variant)}`],r.open&&t.iconOpen]}})(TU),Ffe=he("input",{shouldForwardProp:e=>eU(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 W3(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function $fe(e){return e==null||typeof e=="string"&&!e.trim()}const Lfe=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:s}=e,d={select:["select",r,n&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${Ue(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return St(d,jfe,t)},Dfe=p.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:s,autoWidth:d,children:f,className:l,defaultOpen:h,defaultValue:g,disabled:y,displayEmpty:_,error:w=!1,IconComponent:E,inputRef:x,labelId:T,MenuProps:I={},multiple:R,name:O,onBlur:C,onChange:P,onClose:j,onFocus:k,onOpen:M,open:$,readOnly:N,renderValue:B,SelectDisplayProps:q={},tabIndex:V,value:G,variant:Y="standard"}=t,X=Ve(t,Tfe),[H,te]=av({controlled:G,default:g,name:"Select"}),[ne,K]=av({controlled:$,default:h,name:"Select"}),ee=p.useRef(null),Ce=p.useRef(null),[se,Se]=p.useState(null),{current:me}=p.useRef($!=null),[we,Oe]=p.useState(),ie=fn(r,x),Fe=p.useCallback(rt=>{Ce.current=rt,rt&&Se(rt)},[]),ke=se==null?void 0:se.parentNode;p.useImperativeHandle(ie,()=>({focus:()=>{Ce.current.focus()},node:ee.current,value:H}),[H]),p.useEffect(()=>{h&&ne&&se&&!me&&(Oe(d?null:ke.clientWidth),Ce.current.focus())},[se,d]),p.useEffect(()=>{s&&Ce.current.focus()},[s]),p.useEffect(()=>{if(!T)return;const rt=Dn(Ce.current).getElementById(T);if(rt){const Pt=()=>{getSelection().isCollapsed&&Ce.current.focus()};return rt.addEventListener("click",Pt),()=>{rt.removeEventListener("click",Pt)}}},[T]);const $e=(rt,Pt)=>{rt?M&&M(Pt):j&&j(Pt),me||(Oe(d?null:ke.clientWidth),K(rt))},Te=rt=>{rt.button===0&&(rt.preventDefault(),Ce.current.focus(),$e(!0,rt))},Be=rt=>{$e(!1,rt)},Le=p.Children.toArray(f),dt=rt=>{const Pt=Le.find(Je=>Je.props.value===rt.target.value);Pt!==void 0&&(te(Pt.props.value),P&&P(rt,Pt))},He=rt=>Pt=>{let Je;if(Pt.currentTarget.hasAttribute("tabindex")){if(R){Je=Array.isArray(H)?H.slice():[];const ut=H.indexOf(rt.props.value);ut===-1?Je.push(rt.props.value):Je.splice(ut,1)}else Je=rt.props.value;if(rt.props.onClick&&rt.props.onClick(Pt),H!==Je&&(te(Je),P)){const ut=Pt.nativeEvent||Pt,Ht=new ut.constructor(ut.type,ut);Object.defineProperty(Ht,"target",{writable:!0,value:{value:Je,name:O}}),P(Ht,rt)}R||$e(!1,Pt)}},Z=rt=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf(rt.key)!==-1&&(rt.preventDefault(),$e(!0,rt))},ae=se!==null&&ne,fe=rt=>{!ae&&C&&(Object.defineProperty(rt,"target",{writable:!0,value:{value:H,name:O}}),C(rt))};delete X["aria-invalid"];let ve,be;const _e=[];let De=!1;(ex({value:H})||_)&&(B?ve=B(H):De=!0);const Ge=Le.map(rt=>{if(!p.isValidElement(rt))return null;let Pt;if(R){if(!Array.isArray(H))throw new Error(au(2));Pt=H.some(Je=>W3(Je,rt.props.value)),Pt&&De&&_e.push(rt.props.children)}else Pt=W3(H,rt.props.value),Pt&&De&&(be=rt.props.children);return p.cloneElement(rt,{"aria-selected":Pt?"true":"false",onClick:He(rt),onKeyUp:Je=>{Je.key===" "&&Je.preventDefault(),rt.props.onKeyUp&&rt.props.onKeyUp(Je)},role:"option",selected:Pt,value:void 0,"data-value":rt.props.value})});De&&(R?_e.length===0?ve=null:ve=_e.reduce((rt,Pt,Je)=>(rt.push(Pt),Je<_e.length-1&&rt.push(", "),rt),[]):ve=be);let Mt=we;!d&&me&&se&&(Mt=ke.clientWidth);let et;typeof V<"u"?et=V:et=y?null:0;const ot=q.id||(O?`mui-component-select-${O}`:void 0),it=z({},t,{variant:Y,value:H,open:ae,error:w}),Dt=Lfe(it),Zt=z({},I.PaperProps,(n=I.slotProps)==null?void 0:n.paper),Kt=wf();return A.jsxs(p.Fragment,{children:[A.jsx(Afe,z({ref:Fe,tabIndex:et,role:"combobox","aria-controls":Kt,"aria-disabled":y?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[T,ot].filter(Boolean).join(" ")||void 0,"aria-describedby":a,onKeyDown:Z,onMouseDown:y||N?null:Te,onBlur:fe,onFocus:k},q,{ownerState:it,className:Re(q.className,Dt.select,l),id:ot,children:$fe(ve)?V3||(V3=A.jsx("span",{className:"notranslate",children:"​"})):ve})),A.jsx(Ffe,z({"aria-invalid":w,value:Array.isArray(H)?H.join(","):H,name:O,ref:ee,"aria-hidden":!0,onChange:dt,tabIndex:-1,disabled:y,className:Dt.nativeInput,autoFocus:s,ownerState:it},X)),A.jsx(Mfe,{as:E,className:Dt.icon,ownerState:it}),A.jsx(Vw,z({id:`menu-${O||""}`,anchorEl:ke,open:ae,onClose:Be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},I,{MenuListProps:z({"aria-labelledby":T,role:"listbox","aria-multiselectable":R?"true":void 0,disableListWrap:!0,id:Kt},I.MenuListProps),slotProps:z({},I.slotProps,{paper:z({},Zt,{style:z({minWidth:Mt},Zt!=null?Zt.style:null)})}),children:Ge}))]})}),Nfe=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Bfe=["root"],zfe=e=>{const{classes:t}=e;return t},jT={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wa(e)&&e!=="variant",slot:"Root"},qfe=he(Uw,jT)(""),Ufe=he(IT,jT)(""),Vfe=he(CT,jT)(""),Ww=p.forwardRef(function(t,r){const n=Et({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:s={},className:d,defaultOpen:f=!1,displayEmpty:l=!1,IconComponent:h=hU,id:g,input:y,inputProps:_,label:w,labelId:E,MenuProps:x,multiple:T=!1,native:I=!1,onClose:R,onOpen:O,open:C,renderValue:P,SelectDisplayProps:j,variant:k="outlined"}=n,M=Ve(n,Nfe),$=I?AU:Dfe,N=hs(),B=fu({props:n,muiFormControl:N,states:["variant","error"]}),q=B.variant||k,V=z({},n,{variant:q,classes:s}),G=zfe(V),Y=Ve(G,Bfe),X=y||{standard:A.jsx(qfe,{ownerState:V}),outlined:A.jsx(Ufe,{label:w,ownerState:V}),filled:A.jsx(Vfe,{ownerState:V})}[q],H=fn(r,X.ref);return A.jsx(p.Fragment,{children:p.cloneElement(X,z({inputComponent:$,inputProps:z({children:o,error:B.error,IconComponent:h,variant:q,type:void 0,multiple:T},I?{id:g}:{autoWidth:a,defaultOpen:f,displayEmpty:l,labelId:E,MenuProps:x,onClose:R,onOpen:O,open:C,renderValue:P,SelectDisplayProps:z({id:g},j)},_,{classes:_?ro(Y,_.classes):Y},y?y.props.inputProps:{})},(T&&I||l)&&q==="outlined"?{notched:!0}:{},{ref:H,className:Re(X.props.className,d,G.root)},!y&&{variant:q},M))})});Ww.muiName="Select";function Wfe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,s=Zd();p.useEffect(()=>{if(!a)return;function T(I){I.defaultPrevented||(I.key==="Escape"||I.key==="Esc")&&(n==null||n(I,"escapeKeyDown"))}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[a,n]);const d=to((T,I)=>{n==null||n(T,I)}),f=to(T=>{!n||T==null||s.start(T,()=>{d(null,"timeout")})});p.useEffect(()=>(a&&f(t),s.clear),[a,t,f,s]);const l=T=>{n==null||n(T,"clickaway")},h=s.clear,g=p.useCallback(()=>{t!=null&&f(o??t*.5)},[t,o,f]),y=T=>I=>{const R=T.onBlur;R==null||R(I),g()},_=T=>I=>{const R=T.onFocus;R==null||R(I),h()},w=T=>I=>{const R=T.onMouseEnter;R==null||R(I),h()},E=T=>I=>{const R=T.onMouseLeave;R==null||R(I),g()};return p.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",g),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[r,a,g,h]),{getRootProps:(T={})=>{const I=z({},X1(e),X1(T));return z({role:"presentation"},T,I,{onBlur:y(I),onFocus:_(I),onMouseEnter:w(I),onMouseLeave:E(I)})},onClickAway:l}}function Hfe(e){return wt("MuiSnackbarContent",e)}Ot("MuiSnackbarContent",["root","message","action"]);const Gfe=["action","className","message","role"],Kfe=e=>{const{classes:t}=e;return St({root:["root"],action:["action"],message:["message"]},Hfe,t)},Qfe=he(qc,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=ir.emphasize(e.palette.background.default,t);return z({},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}})}),Xfe=he("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Yfe=he("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Jfe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:s,role:d="alert"}=n,f=Ve(n,Gfe),l=n,h=Kfe(l);return A.jsxs(Qfe,z({role:d,square:!0,elevation:6,className:Re(h.root,o),ownerState:l,ref:r},f,{children:[A.jsx(Xfe,{className:h.message,ownerState:l,children:s}),a?A.jsx(Yfe,{className:h.action,ownerState:l,children:a}):null]}))});function Zfe(e){return wt("MuiSnackbar",e)}Ot("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const epe=["onEnter","onExited"],tpe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],rpe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Ue(r.vertical)}${Ue(r.horizontal)}`]};return St(n,Zfe,t)},H3=he("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Ue(r.anchorOrigin.vertical)}${Ue(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return z({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")]:z({},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"})})}),npe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSnackbar"}),a=ei(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:d,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:h,className:g,ClickAwayListenerProps:y,ContentProps:_,disableWindowBlurListener:w=!1,message:E,open:x,TransitionComponent:T=Pb,transitionDuration:I=o,TransitionProps:{onEnter:R,onExited:O}={}}=n,C=Ve(n.TransitionProps,epe),P=Ve(n,tpe),j=z({},n,{anchorOrigin:{vertical:d,horizontal:f},autoHideDuration:l,disableWindowBlurListener:w,TransitionComponent:T,transitionDuration:I}),k=rpe(j),{getRootProps:M,onClickAway:$}=Wfe(z({},j)),[N,B]=p.useState(!0),q=Ai({elementType:H3,getSlotProps:M,externalForwardedProps:P,ownerState:j,additionalProps:{ref:r},className:[k.root,g]}),V=Y=>{B(!0),O&&O(Y)},G=(Y,X)=>{B(!1),R&&R(Y,X)};return!x&&N?null:A.jsx(Hle,z({onClickAway:$},y,{children:A.jsx(H3,z({},q,{children:A.jsx(T,z({appear:!0,in:x,timeout:I,direction:d==="top"?"down":"up",onEnter:G,onExited:V},C,{children:h||A.jsx(Jfe,z({message:E,action:s},_))}))}))}))});function ape(e){return wt("MuiTooltip",e)}const xc=Ot("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ope=["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 ipe(e){return Math.round(e*1e5)/1e5}const spe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ue(o.split("-")[0])}`],arrow:["arrow"]};return St(s,ape,t)},lpe=he(fU,{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})=>z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${xc.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xc.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xc.arrow}`]:z({},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"] .${xc.arrow}`]:z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),upe=he("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${Ue(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ir.alpha(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:`${ipe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${xc.popper}[data-popper-placement*="left"] &`]:z({transformOrigin:"right center"},t.isRtl?z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):z({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${xc.popper}[data-popper-placement*="right"] &`]:z({transformOrigin:"left center"},t.isRtl?z({marginRight:"14px"},t.touch&&{marginRight:"24px"}):z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${xc.popper}[data-popper-placement*="top"] &`]:z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${xc.popper}[data-popper-placement*="bottom"] &`]:z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),cpe=he("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:ir.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let H_=!1;const G3=new t0;let fg={x:0,y:0};function G_(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const xa=p.forwardRef(function(t,r){var n,a,o,s,d,f,l,h,g,y,_,w,E,x,T,I,R,O,C;const P=Et({props:t,name:"MuiTooltip"}),{arrow:j=!1,children:k,components:M={},componentsProps:$={},describeChild:N=!1,disableFocusListener:B=!1,disableHoverListener:q=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:Y=100,enterNextDelay:X=0,enterTouchDelay:H=700,followCursor:te=!1,id:ne,leaveDelay:K=0,leaveTouchDelay:ee=1500,onClose:Ce,onOpen:se,open:Se,placement:me="bottom",PopperComponent:we,PopperProps:Oe={},slotProps:ie={},slots:Fe={},title:ke,TransitionComponent:$e=Pb,TransitionProps:Te}=P,Be=Ve(P,ope),Le=p.isValidElement(k)?k:A.jsx("span",{children:k}),dt=ei(),He=zc(),[Z,ae]=p.useState(),[fe,ve]=p.useState(null),be=p.useRef(!1),_e=V||te,De=Zd(),Ge=Zd(),Mt=Zd(),et=Zd(),[ot,it]=av({controlled:Se,default:!1,name:"Tooltip",state:"open"});let Dt=ot;const Zt=wf(ne),Kt=p.useRef(),rt=to(()=>{Kt.current!==void 0&&(document.body.style.WebkitUserSelect=Kt.current,Kt.current=void 0),et.clear()});p.useEffect(()=>rt,[rt]);const Pt=It=>{G3.clear(),H_=!0,it(!0),se&&!Dt&&se(It)},Je=to(It=>{G3.start(800+K,()=>{H_=!1}),it(!1),Ce&&Dt&&Ce(It),De.start(dt.transitions.duration.shortest,()=>{be.current=!1})}),ut=It=>{be.current&&It.type!=="touchstart"||(Z&&Z.removeAttribute("title"),Ge.clear(),Mt.clear(),Y||H_&&X?Ge.start(H_?X:Y,()=>{Pt(It)}):Pt(It))},Ht=It=>{Ge.clear(),Mt.start(K,()=>{Je(It)})},{isFocusVisibleRef:Qt,onBlur:Or,onFocus:Ur,ref:Gr}=jw(),[,kn]=p.useState(!1),zn=It=>{Or(It),Qt.current===!1&&(kn(!1),Ht(It))},Io=It=>{Z||ae(It.currentTarget),Ur(It),Qt.current===!0&&(kn(!0),ut(It))},vs=It=>{be.current=!0;const Zr=Le.props;Zr.onTouchStart&&Zr.onTouchStart(It)},Bi=It=>{vs(It),Mt.clear(),De.clear(),rt(),Kt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",et.start(H,()=>{document.body.style.WebkitUserSelect=Kt.current,ut(It)})},ri=It=>{Le.props.onTouchEnd&&Le.props.onTouchEnd(It),rt(),Mt.start(ee,()=>{Je(It)})};p.useEffect(()=>{if(!Dt)return;function It(Zr){(Zr.key==="Escape"||Zr.key==="Esc")&&Je(Zr)}return document.addEventListener("keydown",It),()=>{document.removeEventListener("keydown",It)}},[Je,Dt]);const fl=fn(Le.ref,Gr,ae,r);!ke&&ke!==0&&(Dt=!1);const ms=p.useRef(),le=It=>{const Zr=Le.props;Zr.onMouseMove&&Zr.onMouseMove(It),fg={x:It.clientX,y:It.clientY},ms.current&&ms.current.update()},ye={},je=typeof ke=="string";N?(ye.title=!Dt&&je&&!q?ke:null,ye["aria-describedby"]=Dt?Zt:null):(ye["aria-label"]=je?ke:null,ye["aria-labelledby"]=Dt&&!je?Zt:null);const Ne=z({},ye,Be,Le.props,{className:Re(Be.className,Le.props.className),onTouchStart:vs,ref:fl},te?{onMouseMove:le}:{}),lt={};G||(Ne.onTouchStart=Bi,Ne.onTouchEnd=ri),q||(Ne.onMouseOver=G_(ut,Ne.onMouseOver),Ne.onMouseLeave=G_(Ht,Ne.onMouseLeave),_e||(lt.onMouseOver=ut,lt.onMouseLeave=Ht)),B||(Ne.onFocus=G_(Io,Ne.onFocus),Ne.onBlur=G_(zn,Ne.onBlur),_e||(lt.onFocus=Io,lt.onBlur=zn));const kt=p.useMemo(()=>{var It;let Zr=[{name:"arrow",enabled:!!fe,options:{element:fe,padding:4}}];return(It=Oe.popperOptions)!=null&&It.modifiers&&(Zr=Zr.concat(Oe.popperOptions.modifiers)),z({},Oe.popperOptions,{modifiers:Zr})},[fe,Oe]),Ft=z({},P,{isRtl:He,arrow:j,disableInteractive:_e,placement:me,PopperComponentProp:we,touch:be.current}),ft=spe(Ft),_t=(n=(a=Fe.popper)!=null?a:M.Popper)!=null?n:lpe,mt=(o=(s=(d=Fe.transition)!=null?d:M.Transition)!=null?s:$e)!=null?o:Pb,jt=(f=(l=Fe.tooltip)!=null?l:M.Tooltip)!=null?f:upe,Wt=(h=(g=Fe.arrow)!=null?g:M.Arrow)!=null?h:cpe,er=xh(_t,z({},Oe,(y=ie.popper)!=null?y:$.popper,{className:Re(ft.popper,Oe==null?void 0:Oe.className,(_=(w=ie.popper)!=null?w:$.popper)==null?void 0:_.className)}),Ft),rn=xh(mt,z({},Te,(E=ie.transition)!=null?E:$.transition),Ft),Er=xh(jt,z({},(x=ie.tooltip)!=null?x:$.tooltip,{className:Re(ft.tooltip,(T=(I=ie.tooltip)!=null?I:$.tooltip)==null?void 0:T.className)}),Ft),sr=xh(Wt,z({},(R=ie.arrow)!=null?R:$.arrow,{className:Re(ft.arrow,(O=(C=ie.arrow)!=null?C:$.arrow)==null?void 0:O.className)}),Ft);return A.jsxs(p.Fragment,{children:[p.cloneElement(Le,Ne),A.jsx(_t,z({as:we??fU,placement:me,anchorEl:te?{getBoundingClientRect:()=>({top:fg.y,left:fg.x,right:fg.x,bottom:fg.y,width:0,height:0})}:Z,popperRef:ms,open:Z?Dt:!1,id:Zt,transition:!0},lt,er,{popperOptions:kt,children:({TransitionProps:It})=>A.jsx(mt,z({timeout:dt.transitions.duration.shorter},It,rn,{children:A.jsxs(jt,z({},Er,{children:[ke,j?A.jsx(Wt,z({},sr,{ref:ve})):null]}))}))}))]})});function dpe(e){return wt("MuiSwitch",e)}const Ka=Ot("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),fpe=["className","color","edge","size","sx"],ppe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:s}=e,d={root:["root",r&&`edge${Ue(r)}`,`size${Ue(n)}`],switchBase:["switchBase",`color${Ue(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=St(d,dpe,t);return z({},t,f)},hpe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ue(r.edge)}`],t[`size${Ue(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,[`& .${Ka.thumb}`]:{width:16,height:16},[`& .${Ka.switchBase}`]:{padding:4,[`&.${Ka.checked}`]:{transform:"translateX(16px)"}}}}]}),vpe=he(bU,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Ka.input}`]:t.input},r.color!=="default"&&t[`color${Ue(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}),[`&.${Ka.checked}`]:{transform:"translateX(20px)"},[`&.${Ka.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ka.checked} + .${Ka.track}`]:{opacity:.5},[`&.${Ka.disabled} + .${Ka.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ka.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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:{[`&.${Ka.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ka.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ir.lighten(e.palette[t].main,.62):ir.darken(e.palette[t].main,.55)}`}},[`&.${Ka.checked} + .${Ka.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),mpe=he("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}`})),gpe=he("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%"})),FU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:d="medium",sx:f}=n,l=Ve(n,fpe),h=z({},n,{color:o,edge:s,size:d}),g=ppe(h),y=A.jsx(gpe,{className:g.thumb,ownerState:h});return A.jsxs(hpe,{className:Re(g.root,a),sx:f,ownerState:h,children:[A.jsx(vpe,z({type:"checkbox",icon:y,checkedIcon:y,ref:r,ownerState:h},l,{classes:z({},g,{root:g.switchBase})})),A.jsx(mpe,{className:g.track,ownerState:h})]})});function ype(e){return wt("MuiTab",e)}const Zu=Ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),bpe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],_pe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:s,selected:d,disabled:f}=e,l={root:["root",o&&s&&"labelIcon",`textColor${Ue(r)}`,n&&"fullWidth",a&&"wrapped",d&&"selected",f&&"disabled"],iconWrapper:["iconWrapper"]};return St(l,ype,t)},xpe=he(du,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Ue(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Zu.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>z({},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,[`& > .${Zu.iconWrapper}`]:z({},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,[`&.${Zu.selected}`]:{opacity:1},[`&.${Zu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zu.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)})),$U=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:d,icon:f,iconPosition:l="top",indicator:h,label:g,onChange:y,onClick:_,onFocus:w,selected:E,selectionFollowsFocus:x,textColor:T="inherit",value:I,wrapped:R=!1}=n,O=Ve(n,bpe),C=z({},n,{disabled:o,disableFocusRipple:s,selected:E,icon:!!f,iconPosition:l,label:!!g,fullWidth:d,textColor:T,wrapped:R}),P=_pe(C),j=f&&g&&p.isValidElement(f)?p.cloneElement(f,{className:Re(P.iconWrapper,f.props.className)}):f,k=$=>{!E&&y&&y($,I),_&&_($)},M=$=>{x&&!E&&y&&y($,I),w&&w($)};return A.jsxs(xpe,z({focusRipple:!s,className:Re(P.root,a),ref:r,role:"tab","aria-selected":E,disabled:o,onClick:k,onFocus:M,ownerState:C,tabIndex:E?0:-1},O,{children:[l==="top"||l==="start"?A.jsxs(p.Fragment,{children:[j,g]}):A.jsxs(p.Fragment,{children:[g,j]}),h]}))}),LU=p.createContext();function wpe(e){return wt("MuiTable",e)}Ot("MuiTable",["root","stickyHeader"]);const Spe=["className","component","padding","size","stickyHeader"],Epe=e=>{const{classes:t,stickyHeader:r}=e;return St({root:["root",r&&"stickyHeader"]},wpe,t)},Cpe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>z({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":z({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),K3="table",DU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTable"}),{className:a,component:o=K3,padding:s="normal",size:d="medium",stickyHeader:f=!1}=n,l=Ve(n,Spe),h=z({},n,{component:o,padding:s,size:d,stickyHeader:f}),g=Epe(h),y=p.useMemo(()=>({padding:s,size:d,stickyHeader:f}),[s,d,f]);return A.jsx(LU.Provider,{value:y,children:A.jsx(Cpe,z({as:o,role:o===K3?null:"table",ref:r,className:Re(g.root,a),ownerState:h},l))})}),Hw=p.createContext();function Ope(e){return wt("MuiTableBody",e)}Ot("MuiTableBody",["root"]);const Ppe=["className","component"],Rpe=e=>{const{classes:t}=e;return St({root:["root"]},Ope,t)},kpe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ipe={variant:"body"},Q3="tbody",NU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableBody"}),{className:a,component:o=Q3}=n,s=Ve(n,Ppe),d=z({},n,{component:o}),f=Rpe(d);return A.jsx(Hw.Provider,{value:Ipe,children:A.jsx(kpe,z({className:Re(f.root,a),as:o,ref:r,role:o===Q3?null:"rowgroup",ownerState:d},s))})});function jpe(e){return wt("MuiTableCell",e)}const Tpe=Ot("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Ape=["align","className","component","padding","scope","size","sortDirection","variant"],Mpe=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:s}=e,d={root:["root",r,s&&"stickyHeader",n!=="inherit"&&`align${Ue(n)}`,a!=="normal"&&`padding${Ue(a)}`,`size${Ue(o)}`]};return St(d,jpe,t)},Fpe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.padding!=="normal"&&t[`padding${Ue(r.padding)}`],r.align!=="inherit"&&t[`align${Ue(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>z({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?ir.lighten(ir.alpha(e.palette.divider,1),.88):ir.darken(ir.alpha(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",[`&.${Tpe.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})),Ma=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:s,padding:d,scope:f,size:l,sortDirection:h,variant:g}=n,y=Ve(n,Ape),_=p.useContext(LU),w=p.useContext(Hw),E=w&&w.variant==="head";let x;s?x=s:x=E?"th":"td";let T=f;x==="td"?T=void 0:!T&&E&&(T="col");const I=g||w&&w.variant,R=z({},n,{align:a,component:x,padding:d||(_&&_.padding?_.padding:"normal"),size:l||(_&&_.size?_.size:"medium"),sortDirection:h,stickyHeader:I==="head"&&_&&_.stickyHeader,variant:I}),O=Mpe(R);let C=null;return h&&(C=h==="asc"?"ascending":"descending"),A.jsx(Fpe,z({as:x,ref:r,className:Re(O.root,o),"aria-sort":C,scope:T,ownerState:R},y))});function $pe(e){return wt("MuiTableHead",e)}Ot("MuiTableHead",["root"]);const Lpe=["className","component"],Dpe=e=>{const{classes:t}=e;return St({root:["root"]},$pe,t)},Npe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Bpe={variant:"head"},X3="thead",BU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableHead"}),{className:a,component:o=X3}=n,s=Ve(n,Lpe),d=z({},n,{component:o}),f=Dpe(d);return A.jsx(Hw.Provider,{value:Bpe,children:A.jsx(Npe,z({as:o,className:Re(f.root,a),ref:r,role:o===X3?null:"rowgroup",ownerState:d},s))})});function zpe(e){return wt("MuiToolbar",e)}Ot("MuiToolbar",["root","gutters","regular","dense"]);const qpe=["className","component","disableGutters","variant"],Upe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return St({root:["root",!r&&"gutters",n]},zpe,t)},Vpe=he("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})=>z({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),Iv=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:s=!1,variant:d="regular"}=n,f=Ve(n,qpe),l=z({},n,{component:o,disableGutters:s,variant:d}),h=Upe(l);return A.jsx(Vpe,z({as:o,className:Re(h.root,a),ref:r,ownerState:l},f))}),zU=ti(A.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qU=ti(A.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Wpe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Hpe=p.forwardRef(function(t,r){var n,a,o,s,d,f,l,h;const{backIconButtonProps:g,count:y,disabled:_=!1,getItemAriaLabel:w,nextIconButtonProps:E,onPageChange:x,page:T,rowsPerPage:I,showFirstButton:R,showLastButton:O,slots:C={},slotProps:P={}}=t,j=Ve(t,Wpe),k=zc(),M=ie=>{x(ie,0)},$=ie=>{x(ie,T-1)},N=ie=>{x(ie,T+1)},B=ie=>{x(ie,Math.max(0,Math.ceil(y/I)-1))},q=(n=C.firstButton)!=null?n:_n,V=(a=C.lastButton)!=null?a:_n,G=(o=C.nextButton)!=null?o:_n,Y=(s=C.previousButton)!=null?s:_n,X=(d=C.firstButtonIcon)!=null?d:Ok,H=(f=C.lastButtonIcon)!=null?f:Pk,te=(l=C.nextButtonIcon)!=null?l:qU,ne=(h=C.previousButtonIcon)!=null?h:zU,K=k?V:q,ee=k?G:Y,Ce=k?Y:G,se=k?q:V,Se=k?P.lastButton:P.firstButton,me=k?P.nextButton:P.previousButton,we=k?P.previousButton:P.nextButton,Oe=k?P.firstButton:P.lastButton;return A.jsxs("div",z({ref:r},j,{children:[R&&A.jsx(K,z({onClick:M,disabled:_||T===0,"aria-label":w("first",T),title:w("first",T)},Se,{children:k?A.jsx(H,z({},P.lastButtonIcon)):A.jsx(X,z({},P.firstButtonIcon))})),A.jsx(ee,z({onClick:$,disabled:_||T===0,color:"inherit","aria-label":w("previous",T),title:w("previous",T)},me??g,{children:k?A.jsx(te,z({},P.nextButtonIcon)):A.jsx(ne,z({},P.previousButtonIcon))})),A.jsx(Ce,z({onClick:N,disabled:_||(y!==-1?T>=Math.ceil(y/I)-1:!1),color:"inherit","aria-label":w("next",T),title:w("next",T)},we??E,{children:k?A.jsx(ne,z({},P.previousButtonIcon)):A.jsx(te,z({},P.nextButtonIcon))})),O&&A.jsx(se,z({onClick:B,disabled:_||T>=Math.ceil(y/I)-1,"aria-label":w("last",T),title:w("last",T)},Oe,{children:k?A.jsx(X,z({},P.firstButtonIcon)):A.jsx(H,z({},P.lastButtonIcon))}))]}))});function Gpe(e){return wt("MuiTablePagination",e)}const nb=Ot("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Y3;const Kpe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Qpe=he(Ma,{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}})),Xpe=he(Iv,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>z({[`& .${nb.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},[`& .${nb.actions}`]:{flexShrink:0,marginLeft:20}})),Ype=he("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Jpe=he("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>z({},e.typography.body2,{flexShrink:0})),Zpe=he(Ww,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>z({[`& .${nb.selectIcon}`]:t.selectIcon,[`& .${nb.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${nb.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),ehe=he(Ko,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),the=he("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>z({},e.typography.body2,{flexShrink:0}));function rhe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function nhe(e){return`Go to ${e} page`}const ahe=e=>{const{classes:t}=e;return St({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Gpe,t)},J3=p.forwardRef(function(t,r){var n;const a=Et({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Hpe,backIconButtonProps:s,className:d,colSpan:f,component:l=Ma,count:h,disabled:g=!1,getItemAriaLabel:y=nhe,labelDisplayedRows:_=rhe,labelRowsPerPage:w="Rows per page:",nextIconButtonProps:E,onPageChange:x,onRowsPerPageChange:T,page:I,rowsPerPage:R,rowsPerPageOptions:O=[10,25,50,100],SelectProps:C={},showFirstButton:P=!1,showLastButton:j=!1,slotProps:k={},slots:M={}}=a,$=Ve(a,Kpe),N=a,B=ahe(N),q=(n=k==null?void 0:k.select)!=null?n:C,V=q.native?"option":ehe;let G;(l===Ma||l==="td")&&(G=f||1e3);const Y=wf(q.id),X=wf(q.labelId),H=()=>h===-1?(I+1)*R:R===-1?h:Math.min(h,(I+1)*R);return A.jsx(Qpe,z({colSpan:G,ref:r,as:l,ownerState:N,className:Re(B.root,d)},$,{children:A.jsxs(Xpe,{className:B.toolbar,children:[A.jsx(Ype,{className:B.spacer}),O.length>1&&A.jsx(Jpe,{className:B.selectLabel,id:X,children:w}),O.length>1&&A.jsx(Zpe,z({variant:"standard"},!q.variant&&{input:Y3||(Y3=A.jsx(Bw,{}))},{value:R,onChange:T,id:Y,labelId:X},q,{classes:z({},q.classes,{root:Re(B.input,B.selectRoot,(q.classes||{}).root),select:Re(B.select,(q.classes||{}).select),icon:Re(B.selectIcon,(q.classes||{}).icon)}),disabled:g,children:O.map(te=>p.createElement(V,z({},!wb(V)&&{ownerState:N},{className:B.menuItem,key:te.label?te.label:te,value:te.value?te.value:te}),te.label?te.label:te))})),A.jsx(the,{className:B.displayedRows,children:_({from:h===0?0:I*R+1,to:H(),count:h===-1?-1:h,page:I})}),A.jsx(o,{className:B.actions,backIconButtonProps:s,count:h,nextIconButtonProps:E,onPageChange:x,page:I,rowsPerPage:R,showFirstButton:P,showLastButton:j,slotProps:k.actions,slots:M.actions,getItemAriaLabel:y,disabled:g})]})}))});function ohe(e){return wt("MuiTableRow",e)}const Z3=Ot("MuiTableRow",["root","selected","hover","head","footer"]),ihe=["className","component","hover","selected"],she=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return St({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},ohe,t)},lhe=he("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,[`&.${Z3.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Z3.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ir.alpha(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}))`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),e4="tr",kb=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableRow"}),{className:a,component:o=e4,hover:s=!1,selected:d=!1}=n,f=Ve(n,ihe),l=p.useContext(Hw),h=z({},n,{component:o,hover:s,selected:d,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),g=she(h);return A.jsx(lhe,z({as:o,ref:r,className:Re(g.root,a),role:o===e4?null:"row",ownerState:h},f))}),uhe=ti(A.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function che(e){return wt("MuiTableSortLabel",e)}const c2=Ot("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),dhe=["active","children","className","direction","hideSortIcon","IconComponent"],fhe=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${Ue(r)}`]};return St(a,che,t)},phe=he(du,{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,[`& .${c2.icon}`]:{opacity:.5}},[`&.${c2.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${c2.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),hhe=he("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Ue(r.direction)}`]]}})(({theme:e,ownerState:t})=>z({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)"})),vhe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:s,direction:d="asc",hideSortIcon:f=!1,IconComponent:l=uhe}=n,h=Ve(n,dhe),g=z({},n,{active:a,direction:d,hideSortIcon:f,IconComponent:l}),y=fhe(g);return A.jsxs(phe,z({className:Re(y.root,s),component:"span",disableRipple:!0,ownerState:g,ref:r},h,{children:[o,f&&!a?null:A.jsx(hhe,{as:l,className:Re(y.icon),ownerState:g})]}))});function mhe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function ghe(e,t,r,n={},a=()=>{}){const{ease:o=mhe,duration:s=300}=n;let d=null;const f=t[e];let l=!1;const h=()=>{l=!0},g=y=>{if(l){a(new Error("Animation cancelled"));return}d===null&&(d=y);const _=Math.min(1,(y-d)/s);if(t[e]=o(_)*(r-f)+f,_>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(g)};return f===r?(a(new Error("Element already at target position")),h):(requestAnimationFrame(g),h)}const yhe=["onChange"],bhe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function _he(e){const{onChange:t}=e,r=Ve(e,yhe),n=p.useRef(),a=p.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return Yo(()=>{const s=Ov(()=>{const f=n.current;o(),f!==n.current&&t(n.current)}),d=Ti(a.current);return d.addEventListener("resize",s),()=>{s.clear(),d.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{o(),t(n.current)},[t]),A.jsx("div",z({style:bhe,ref:a},r))}function xhe(e){return wt("MuiTabScrollButton",e)}const whe=Ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),She=["className","slots","slotProps","direction","orientation","disabled"],Ehe=e=>{const{classes:t,orientation:r,disabled:n}=e;return St({root:["root",r,n&&"disabled"]},xhe,t)},Che=he(du,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>z({width:40,flexShrink:0,opacity:.8,[`&.${whe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ohe=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiTabScrollButton"}),{className:s,slots:d={},slotProps:f={},direction:l}=o,h=Ve(o,She),g=zc(),y=z({isRtl:g},o),_=Ehe(y),w=(n=d.StartScrollButtonIcon)!=null?n:zU,E=(a=d.EndScrollButtonIcon)!=null?a:qU,x=Ai({elementType:w,externalSlotProps:f.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),T=Ai({elementType:E,externalSlotProps:f.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return A.jsx(Che,z({component:"div",className:Re(_.root,s),ref:r,role:null,ownerState:y,tabIndex:null},h,{children:l==="left"?A.jsx(w,z({},x)):A.jsx(E,z({},T))}))});function Phe(e){return wt("MuiTabs",e)}const d2=Ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Rhe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],t4=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,r4=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,K_=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},khe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:s,scrollButtonsHideMobile:d,classes:f}=e;return St({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Phe,f)},Ihe=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${d2.scrollButtons}`]:t.scrollButtons},{[`& .${d2.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>z({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${d2.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),jhe=he("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})=>z({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"})),The=he("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})=>z({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Ahe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>z({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})),Mhe=he(_he)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),n4={},UU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTabs"}),a=ei(),o=zc(),{"aria-label":s,"aria-labelledby":d,action:f,centered:l=!1,children:h,className:g,component:y="div",allowScrollButtonsMobile:_=!1,indicatorColor:w="primary",onChange:E,orientation:x="horizontal",ScrollButtonComponent:T=Ohe,scrollButtons:I="auto",selectionFollowsFocus:R,slots:O={},slotProps:C={},TabIndicatorProps:P={},TabScrollButtonProps:j={},textColor:k="primary",value:M,variant:$="standard",visibleScrollbar:N=!1}=n,B=Ve(n,Rhe),q=$==="scrollable",V=x==="vertical",G=V?"scrollTop":"scrollLeft",Y=V?"top":"left",X=V?"bottom":"right",H=V?"clientHeight":"clientWidth",te=V?"height":"width",ne=z({},n,{component:y,allowScrollButtonsMobile:_,indicatorColor:w,orientation:x,vertical:V,scrollButtons:I,textColor:k,variant:$,visibleScrollbar:N,fixed:!q,hideScrollbar:q&&!N,scrollableX:q&&!V,scrollableY:q&&V,centered:l&&!q,scrollButtonsHideMobile:!_}),K=khe(ne),ee=Ai({elementType:O.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:ne}),Ce=Ai({elementType:O.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:ne}),[se,Se]=p.useState(!1),[me,we]=p.useState(n4),[Oe,ie]=p.useState(!1),[Fe,ke]=p.useState(!1),[$e,Te]=p.useState(!1),[Be,Le]=p.useState({overflow:"hidden",scrollbarWidth:0}),dt=new Map,He=p.useRef(null),Z=p.useRef(null),ae=()=>{const Je=He.current;let ut;if(Je){const Qt=Je.getBoundingClientRect();ut={clientWidth:Je.clientWidth,scrollLeft:Je.scrollLeft,scrollTop:Je.scrollTop,scrollLeftNormalized:Gne(Je,o?"rtl":"ltr"),scrollWidth:Je.scrollWidth,top:Qt.top,bottom:Qt.bottom,left:Qt.left,right:Qt.right}}let Ht;if(Je&&M!==!1){const Qt=Z.current.children;if(Qt.length>0){const Or=Qt[dt.get(M)];Ht=Or?Or.getBoundingClientRect():null}}return{tabsMeta:ut,tabMeta:Ht}},fe=to(()=>{const{tabsMeta:Je,tabMeta:ut}=ae();let Ht=0,Qt;if(V)Qt="top",ut&&Je&&(Ht=ut.top-Je.top+Je.scrollTop);else if(Qt=o?"right":"left",ut&&Je){const Ur=o?Je.scrollLeftNormalized+Je.clientWidth-Je.scrollWidth:Je.scrollLeft;Ht=(o?-1:1)*(ut[Qt]-Je[Qt]+Ur)}const Or={[Qt]:Ht,[te]:ut?ut[te]:0};if(isNaN(me[Qt])||isNaN(me[te]))we(Or);else{const Ur=Math.abs(me[Qt]-Or[Qt]),Gr=Math.abs(me[te]-Or[te]);(Ur>=1||Gr>=1)&&we(Or)}}),ve=(Je,{animation:ut=!0}={})=>{ut?ghe(G,He.current,Je,{duration:a.transitions.duration.standard}):He.current[G]=Je},be=Je=>{let ut=He.current[G];V?ut+=Je:(ut+=Je*(o?-1:1),ut*=o&&W6()==="reverse"?-1:1),ve(ut)},_e=()=>{const Je=He.current[H];let ut=0;const Ht=Array.from(Z.current.children);for(let Qt=0;QtJe){Qt===0&&(ut=Je);break}ut+=Or[H]}return ut},De=()=>{be(-1*_e())},Ge=()=>{be(_e())},Mt=p.useCallback(Je=>{Le({overflow:null,scrollbarWidth:Je})},[]),et=()=>{const Je={};Je.scrollbarSizeListener=q?A.jsx(Mhe,{onChange:Mt,className:Re(K.scrollableX,K.hideScrollbar)}):null;const Ht=q&&(I==="auto"&&(Oe||Fe)||I===!0);return Je.scrollButtonStart=Ht?A.jsx(T,z({slots:{StartScrollButtonIcon:O.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:x,direction:o?"right":"left",onClick:De,disabled:!Oe},j,{className:Re(K.scrollButtons,j.className)})):null,Je.scrollButtonEnd=Ht?A.jsx(T,z({slots:{EndScrollButtonIcon:O.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ce},orientation:x,direction:o?"left":"right",onClick:Ge,disabled:!Fe},j,{className:Re(K.scrollButtons,j.className)})):null,Je},ot=to(Je=>{const{tabsMeta:ut,tabMeta:Ht}=ae();if(!(!Ht||!ut)){if(Ht[Y]ut[X]){const Qt=ut[G]+(Ht[X]-ut[X]);ve(Qt,{animation:Je})}}}),it=to(()=>{q&&I!==!1&&Te(!$e)});p.useEffect(()=>{const Je=Ov(()=>{He.current&&fe()});let ut;const Ht=Ur=>{Ur.forEach(Gr=>{Gr.removedNodes.forEach(kn=>{var zn;(zn=ut)==null||zn.unobserve(kn)}),Gr.addedNodes.forEach(kn=>{var zn;(zn=ut)==null||zn.observe(kn)})}),Je(),it()},Qt=Ti(He.current);Qt.addEventListener("resize",Je);let Or;return typeof ResizeObserver<"u"&&(ut=new ResizeObserver(Je),Array.from(Z.current.children).forEach(Ur=>{ut.observe(Ur)})),typeof MutationObserver<"u"&&(Or=new MutationObserver(Ht),Or.observe(Z.current,{childList:!0})),()=>{var Ur,Gr;Je.clear(),Qt.removeEventListener("resize",Je),(Ur=Or)==null||Ur.disconnect(),(Gr=ut)==null||Gr.disconnect()}},[fe,it]),p.useEffect(()=>{const Je=Array.from(Z.current.children),ut=Je.length;if(typeof IntersectionObserver<"u"&&ut>0&&q&&I!==!1){const Ht=Je[0],Qt=Je[ut-1],Or={root:He.current,threshold:.99},Ur=Io=>{ie(!Io[0].isIntersecting)},Gr=new IntersectionObserver(Ur,Or);Gr.observe(Ht);const kn=Io=>{ke(!Io[0].isIntersecting)},zn=new IntersectionObserver(kn,Or);return zn.observe(Qt),()=>{Gr.disconnect(),zn.disconnect()}}},[q,I,$e,h==null?void 0:h.length]),p.useEffect(()=>{Se(!0)},[]),p.useEffect(()=>{fe()}),p.useEffect(()=>{ot(n4!==me)},[ot,me]),p.useImperativeHandle(f,()=>({updateIndicator:fe,updateScrollButtons:it}),[fe,it]);const Dt=A.jsx(Ahe,z({},P,{className:Re(K.indicator,P.className),ownerState:ne,style:z({},me,P.style)}));let Zt=0;const Kt=p.Children.map(h,Je=>{if(!p.isValidElement(Je))return null;const ut=Je.props.value===void 0?Zt:Je.props.value;dt.set(ut,Zt);const Ht=ut===M;return Zt+=1,p.cloneElement(Je,z({fullWidth:$==="fullWidth",indicator:Ht&&!se&&Dt,selected:Ht,selectionFollowsFocus:R,onChange:E,textColor:k,value:ut},Zt===1&&M===!1&&!Je.props.tabIndex?{tabIndex:0}:{}))}),rt=Je=>{const ut=Z.current,Ht=Dn(ut).activeElement;if(Ht.getAttribute("role")!=="tab")return;let Or=x==="horizontal"?"ArrowLeft":"ArrowUp",Ur=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&o&&(Or="ArrowRight",Ur="ArrowLeft"),Je.key){case Or:Je.preventDefault(),K_(ut,Ht,r4);break;case Ur:Je.preventDefault(),K_(ut,Ht,t4);break;case"Home":Je.preventDefault(),K_(ut,null,t4);break;case"End":Je.preventDefault(),K_(ut,null,r4);break}},Pt=et();return A.jsxs(Ihe,z({className:Re(K.root,g),ownerState:ne,ref:r,as:y},B,{children:[Pt.scrollButtonStart,Pt.scrollbarSizeListener,A.jsxs(jhe,{className:K.scroller,ownerState:ne,style:{overflow:Be.overflow,[V?`margin${o?"Left":"Right"}`:"marginBottom"]:N?void 0:-Be.scrollbarWidth},ref:He,children:[A.jsx(The,{"aria-label":s,"aria-labelledby":d,"aria-orientation":x==="vertical"?"vertical":null,className:K.flexContainer,ownerState:ne,onKeyDown:rt,ref:Z,role:"tablist",children:Kt}),se&&Dt]}),Pt.scrollButtonEnd]}))});function Fhe(e){return wt("MuiTextField",e)}Ot("MuiTextField",["root"]);const $he=["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"],Lhe={standard:Uw,filled:CT,outlined:IT},Dhe=e=>{const{classes:t}=e;return St({root:["root"]},Fhe,t)},Nhe=he(EU,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),s0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:s,className:d,color:f="primary",defaultValue:l,disabled:h=!1,error:g=!1,FormHelperTextProps:y,fullWidth:_=!1,helperText:w,id:E,InputLabelProps:x,inputProps:T,InputProps:I,inputRef:R,label:O,maxRows:C,minRows:P,multiline:j=!1,name:k,onBlur:M,onChange:$,onFocus:N,placeholder:B,required:q=!1,rows:V,select:G=!1,SelectProps:Y,type:X,value:H,variant:te="outlined"}=n,ne=Ve(n,$he),K=z({},n,{autoFocus:o,color:f,disabled:h,error:g,fullWidth:_,multiline:j,required:q,select:G,variant:te}),ee=Dhe(K),Ce={};te==="outlined"&&(x&&typeof x.shrink<"u"&&(Ce.notched=x.shrink),Ce.label=O),G&&((!Y||!Y.native)&&(Ce.id=void 0),Ce["aria-describedby"]=void 0);const se=wf(E),Se=w&&se?`${se}-helper-text`:void 0,me=O&&se?`${se}-label`:void 0,we=Lhe[te],Oe=A.jsx(we,z({"aria-describedby":Se,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:_,multiline:j,name:k,rows:V,maxRows:C,minRows:P,type:X,value:H,id:se,inputRef:R,onBlur:M,onChange:$,onFocus:N,placeholder:B,inputProps:T},Ce,I));return A.jsxs(Nhe,z({className:Re(ee.root,d),disabled:h,error:g,fullWidth:_,ref:r,required:q,color:f,variant:te,ownerState:K},ne,{children:[O!=null&&O!==""&&A.jsx(CU,z({htmlFor:se,id:me},x,{children:O})),G?A.jsx(Ww,z({"aria-describedby":Se,id:se,labelId:me,value:H,input:Oe},Y,{children:s})):Oe,w&&A.jsx(OT,z({id:Se},y,{children:w}))]}))}),Bhe=["getTrigger","target"];function zhe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const qhe=typeof window<"u"?window:null;function VU(e={}){const{getTrigger:t=zhe,target:r=qhe}=e,n=Ve(e,Bhe),a=p.useRef(),[o,s]=p.useState(()=>t(a,n));return p.useEffect(()=>{const d=()=>{s(t(a,z({target:r},n)))};return d(),r.addEventListener("scroll",d,{passive:!0}),()=>{r.removeEventListener("scroll",d,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var pg={},f2={};const Uhe=iu(loe);var a4;function yt(){return a4||(a4=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Uhe}(f2)),f2}var o4;function Vhe(){if(o4)return pg;o4=1;var e=vt();Object.defineProperty(pg,"__esModule",{value:!0}),pg.default=void 0;var t=e(yt()),r=gt();return pg.default=(0,t.default)((0,r.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"),pg}var Whe=Vhe();const Gw=tt(Whe);var ab=function(){return ab=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{t[r]=JU(e[r])}),t}function AT(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return hh(e)&&hh(t)&&Object.keys(t).forEach(a=>{hh(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&hh(e[a])?n[a]=AT(e[a],t[a],r):r.clone?n[a]=hh(t[a])?JU(t[a]):t[a]:n[a]=t[a]}),n}var ZU={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{defaultProps:{fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0}},RaSimpleFormIterator:{defaultProps:{fullWidth:!0}},RaTranslatableInputs:{defaultProps:{fullWidth:!0}}}},Gve=AT(ZU,{palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}},components:{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}}}),Kve=AT(ZU,{palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}}),Qve=function(){var e=at(),t=Xw(),r=t.darkTheme,n=t.defaultTheme,a=no("(prefers-color-scheme: dark)",{noSsr:!0}),o=YU(n||(a&&r?"dark":"light")),s=o[0],d=o[1],f=function(){d(s==="dark"?"light":"dark")},l=e("ra.action.toggle_theme",{_:"Toggle Theme"});return Ke.createElement(xa,{title:l,enterDelay:300},Ke.createElement(_n,{color:"inherit",onClick:f,"aria-label":l},s==="dark"?Ke.createElement(Wve,null):Ke.createElement(qve,null)))},Fk=function(){return Fk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?p.createElement(aye,null):null,t&&p.createElement(Qve,null),p.createElement(xve,null))},Zve=p.createElement(Jve,null),eme=p.createElement(QU,null),Uy="RaAppBar",rf={appBar:"".concat(Uy,"-appBar"),toolbar:"".concat(Uy,"-toolbar"),menuButton:"".concat(Uy,"-menuButton"),title:"".concat(Uy,"-title")},tme=he(Zoe,{name:Uy,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(rf.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(rf.menuButton)]={marginRight:"0.2em"},t["& .".concat(rf.title)]={},t}),wg={},h4;function rme(){if(h4)return wg;h4=1;var e=vt();Object.defineProperty(wg,"__esModule",{value:!0}),wg.default=void 0;var t=e(yt()),r=gt();return wg.default=(0,t.default)((0,r.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"),wg}var nme=rme();const ame=tt(nme);var Sg={},v4;function ome(){if(v4)return Sg;v4=1;var e=vt();Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.default=void 0;var t=e(yt()),r=gt();return Sg.default=(0,t.default)((0,r.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"),Sg}var ime=ome();const sme=tt(ime);var ib=function(){return ib=Object.assign||function(e){for(var t,r=1,n=arguments.length;rC.getBoundingClientRect().bottom?O=I.lastChild:O=I.firstChild}O&&I===O.closest("ul")?a(T.dataset.index,f.current):(x.preventDefault(),x.stopPropagation()),T.classList.remove("drag-active"),document.removeEventListener("dragover",g)},E=function(x){x.preventDefault(),x.dataTransfer.dropEffect="move"};return p.createElement(Tme,{key:o,draggable:a?"true":void 0,onDrag:a?_:void 0,onDragStart:a?y:void 0,onDragEnd:a?w:void 0,onDragOver:a?E:void 0,"data-index":s},p.createElement("label",{htmlFor:"switch_".concat(s)},p.createElement(FU,{checked:t,onChange:n,name:s,id:"switch_".concat(s),size:"small",sx:{mr:.5,ml:-.5}}),p.createElement(nr,{variant:"body2",component:"span"},p.createElement(ji,{label:r,source:o,resource:d}))),a&&p.createElement(jme,{className:"dragIcon",color:"disabled",fontSize:"small"}))},Tme=he("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"}}}}),ec=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nO?C=ec(ec(ec(ec([],d.slice(0,O),!0),[d[R]],!1),d.slice(O,R),!0),d.slice(R+1),!0):C=ec(ec(ec(ec([],d.slice(0,R),!0),d.slice(R+1,O+1),!0),[d[R]],!1),d.slice(O+1),!0),f(C),y(function(P){return C.filter(function(j){return P.includes(j.index)}).map(function(j){return j.index})})}},E=function(){y([])},x=function(){y(d.map(function(T){return T.index}))};return p.createElement(eo,{pt:.5},p.createElement(eo,{component:"ul",sx:{paddingInlineStart:0,m:0}},d.map(function(T){return p.createElement(a9,{key:T.index,source:T.source,label:T.label,index:T.index,selected:g.includes(T.index),onToggle:_,onMove:w})})),p.createElement(eo,{onDrop:function(T){return T.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},p.createElement(Bn,{size:"small",onClick:E},o("ra.inspector.hideAll",{_:"Hide All"})),p.createElement(Bn,{size:"small",onClick:x},o("ra.inspector.showAll",{_:"Show All"}))))},Ig={},w4;function Mme(){if(w4)return Ig;w4=1;var e=vt();Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.default=void 0;var t=e(yt()),r=gt();return Ig.default=(0,t.default)((0,r.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"),Ig}var Fme=Mme();const $me=tt(Fme);var jg={},S4;function Lme(){if(S4)return jg;S4=1;var e=vt();Object.defineProperty(jg,"__esModule",{value:!0}),jg.default=void 0;var t=e(yt()),r=gt();return jg.default=(0,t.default)((0,r.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"),jg}var Dme=Lme();const Nme=tt(Dme);var Bme=function(){var e=at();return u6("ra.configurable.inspector.title",{_:"Inspector"}),p.createElement(nr,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},o9=function(){var e=Jj(),t=e.isEnabled,r=e.disable,n=e.title,a=e.titleOptions,o=e.editor,s=e.preferenceKey,d=p.useRef(!1),f=Mee(s),l=ei(),h=at(),g=p.useState(0),y=g[0],_=g[1],w=_a("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8,y:8}),E=w[0],x=w[1],T=p.useState(),I=T[0],R=T[1],O=function(j){var k=document==null?void 0:document.elementFromPoint(j.clientX,j.clientY);(k==null?void 0:k.id)==="inspector-dialog-title"&&(d.current=!0,j.dataTransfer.effectAllowed="move",j.dataTransfer.setData("inspector",""),setTimeout(function(){j.target.classList.add("hide")},0),R({x:j.clientX-E.x,y:j.clientY-E.y}))},C=function(j){d.current&&I&&(x({x:j.clientX-I.x,y:j.clientY-I.y}),j.target.classList.remove("hide"),d.current=!1)};p.useEffect(function(){if(t){var j=function(k){k.dataTransfer.types.includes("inspector")&&k.preventDefault()};return document==null||document.addEventListener("dragover",j),function(){document==null||document.removeEventListener("dragover",j)}}},[t]),p.useEffect(function(){if(t){var j=function(){window==null||window.requestAnimationFrame(function(){x(function(k){return{x:Math.min(k.x,(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8),y:Math.min(k.y,(window==null?void 0:window.innerHeight)-50)}})})};return j(),window==null||window.addEventListener("resize",j),function(){window==null||window.removeEventListener("resize",j)}}},[t,x,l.breakpoints.values.sm]);var P=function(){f(),_(function(j){return j+1})};return t?p.createElement(zme,{className:sb.modal,elevation:3,draggable:!0,onDragStart:O,onDragEnd:C,sx:{left:E.x,top:E.y}},p.createElement("div",{className:sb.title},p.createElement(nr,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&h(n,a)),p.createElement("span",{id:"inspector-toolbar"}),s&&p.createElement(_n,{"aria-label":h("ra.action.remove"),onClick:P,size:"small"},p.createElement(Nme,{fontSize:"inherit"})),p.createElement(_n,{"aria-label":h("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},p.createElement($me,{fontSize:"inherit"}))),p.createElement("div",{className:sb.content,key:y},p.createElement(l6,{value:s},o||p.createElement(Bme,null)))):null},m1="RaInspector",sb={modal:"".concat(m1,"-modal"),title:"".concat(m1,"-title"),content:"".concat(m1,"-content")},zme=he(qc,{name:m1,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(sb.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(sb.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});o9.displayName="Inspector";var wc=function(){return wc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var f=n===!1?p.createElement(r9,lx({title:r,defaultTitle:t},a)):p.createElement(Ume,lx({title:r,defaultTitle:t,preferenceKey:n},a));return p.createElement(p.Fragment,null,Ux.createPortal(f,s))},Nk=function(){return Nk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,$=Cye(x===!1||x===void 0?void 0:!x,l||!M||j||k);Yj(g==="submit"&&(f&&(f.onSuccess||f.onError)||y),'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 N=p.useCallback(function(V){return F4(void 0,void 0,void 0,function(){var G;return $4(this,function(Y){switch(Y.label){case 0:return O!=null&&O.save?[4,O.save(V,ub(ub({},f),{transform:y}))]:[3,2];case 1:G=Y.sent(),Y.label=2;case 2:return G!=null&&Mq(G,R.setError),[2]}})})},[R.setError,O,f,y]),B=p.useCallback(function(V){return F4(void 0,void 0,void 0,function(){return $4(this,function(G){switch(G.label){case 0:return d&&d(V),V.defaultPrevented?[2]:g!=="button"?[3,2]:(V.stopPropagation(),[4,R.handleSubmit(N)(V)]);case 1:G.sent(),G.label=2;case 2:return[2]}})})},[d,g,R,N]),q=s&&I(s,{_:s});return p.createElement(Eye,ub({variant:w,type:g,color:r,"aria-label":q,disabled:$,onClick:B},T),k?p.createElement(Pv,{sx:xye,size:14,thickness:3,color:"inherit"}):a,q)},xye={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},wye=p.createElement(bye,null),Sye="RaSaveButton",Eye=he(Bn,{name:Sye,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}),Cye=function(e,t){return typeof e>"u"?t:e},Oye=function(){return Ke.createElement(Rye,{onClick:kye,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Pye="RaSkipNavigationButton",Rye=he(qr,{name:Pye,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})}}}),kye=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},rI=function(){return rI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=a-1,color:"primary"},p.createElement(Jye,{fontSize:"small"})))},ebe=p.forwardRef(function(e,t){var r=e.children,n=e.disabled,a=e.disableReordering,o=e.disableRemove,s=e.getItemLabel,d=e.index,f=e.inline,l=e.record,h=e.removeButton,g=h===void 0?p.createElement(Hye,null):h,y=e.reOrderButtons,_=y===void 0?p.createElement(Zye,null):y,w=vr(e);if(!w)throw new Error("SimpleFormIteratorItem must be used in a ResourceContextProvider or be passed a resource prop.");var E=eS(),x=E.total,T=E.reOrder,I=E.remove,R=function(k){return typeof o=="boolean"?o:o&&o(k)},O=p.useMemo(function(){return{index:d,total:x,reOrder:function(k){return T(d,k)},remove:function(){return I(d)}}},[d,x,T,I]),C=typeof s=="function"?s(d):s,P=Xj(),j=p.useMemo(function(){return{getSource:function(k){return k?P.getSource("".concat(d,".").concat(k)):P.getSource("".concat(d))},getLabel:function(k){return P.getLabel(k)}}},[d,P]);return p.createElement(w9.Provider,{value:O},p.createElement("li",{className:Qn.line,ref:t},C!=null&&C!==!1&&p.createElement(nr,{variant:"body2",className:Qn.index},C),p.createElement(gw,{value:j},p.createElement(Fc,{value:l},p.createElement(Rv,{className:Re(Qn.form),direction:f?{xs:"column",sm:"row"}:"column",gap:f?2:0},r))),!n&&p.createElement("span",{className:Qn.action},!a&&_,!R(l)&&g)))}),Ug={},B4;function tbe(){if(B4)return Ug;B4=1;var e=vt();Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.default=void 0;var t=e(yt()),r=gt();return Ug.default=(0,t.default)((0,r.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),Ug}var rbe=tbe();const nbe=tt(rbe);var lI=function(){return lI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var Ce=N[0];Ce.id;var se=cbe(Ce,["id"]);K.current=se;for(var Se in K.current)K.current[Se]=null}var me=p.useCallback(function(ke){ke===void 0&&(ke=void 0);var $e=ke;ke==null&&($e=K.current,p.Children.count(s)===1&&p.isValidElement(p.Children.only(s))&&!p.Children.only(s).props.source&&!p.Children.only(s).type!==Z2?$e="":($e=$e||{},p.Children.forEach(s,function(Te){var Be;p.isValidElement(Te)&&Te.type!==Z2&&Te.props.source&&($e[Te.props.source]=(Be=Te.props.defaultValue)!==null&&Be!==void 0?Be:null)}))),$($e),Y("".concat(C,".").concat(N.length),{defaultValue:$e})},[$,s,Y,C,N.length]),we=p.useCallback(function(ke,$e){B(ke,$e)},[B]),Oe=p.useCallback(function(){V([]),k(!1)},[V]),ie=xr(ne,C),Fe=p.useMemo(function(){return{total:N.length,add:me,remove:ee,reOrder:we,source:C}},[me,N.length,we,ee,C]);return N?p.createElement(x9.Provider,{value:Fe},p.createElement(dbe,{className:Re(d,R&&"fullwidth",l&&"disabled"),sx:O},p.createElement("ul",{className:Qn.list},N.map(function(ke,$e){return p.createElement(ebe,{key:ke.id,disabled:l,disableRemove:w,disableReordering:E,fields:N,getItemLabel:I,index:$e,onRemoveField:ee,onReorder:we,record:ie&&ie[$e]||{},removeButton:a,reOrderButtons:o,resource:f,inline:x},s)})),!l&&!(g&&(y||w))&&p.createElement("div",{className:Qn.buttons},!g&&p.createElement("div",{className:Qn.add},n),N.length>0&&!y&&!w&&p.createElement("div",{className:Qn.clear},p.createElement(MT,{isOpen:j,title:te("ra.action.clear_array_input"),content:te("ra.message.clear_array_input"),onConfirm:Oe,onClose:function(){return k(!1)}}),p.createElement(ube,{onClick:function(){return k(!0)}}))))):null},dbe=he("div",{name:Us,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,a=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(Qn.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(a.palette.divider)},r[a.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(Qn.index)]=(n={display:"flex",alignItems:"top",marginRight:a.spacing(1),marginTop:a.spacing(1)},n[a.breakpoints.down("md")]={display:"none"},n),t["& .".concat(Qn.form)]={},t["&.fullwidth > ul > li > .".concat(Qn.form)]={flex:2},t["& .".concat(Qn.inline)]={flexDirection:"row",columnGap:"1em"},t["& .".concat(Qn.action)]={marginTop:a.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(Qn.buttons)]={display:"flex"},t["& .".concat(Qn.add)]={borderBottom:"none"},t["& .".concat(Qn.clear)]={borderBottom:"none"},t["& .".concat(Qn.line,":hover > .").concat(Qn.action)]={visibility:"visible"},t}),fbe=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function d(h){try{l(n.next(h))}catch(g){s(g)}}function f(h){try{l(n.throw(h))}catch(g){s(g)}}function l(h){h.done?o(h.value):a(h.value).then(d,f)}l((n=n.apply(e,t||[])).next())})},pbe=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(l){return function(h){return f([l,h])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var O=O9(),C=at(),P=Sr(e);if(!P)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var j=vr(e),k=uu(e),M=k.hasShow||k.hasEdit;if(!j)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!O||!O.isRowExpandable||O.isRowExpandable(P))&&s,N=kJ(j,g,O&&O.expandSingle),B=N[0],q=N[1],V=p.useState(function(){return q4($,a,f)}),G=V[0],Y=V[1];p.useEffect(function(){var ee=q4($,a,f);ee!==G&&Y(ee)},[$,G,a,f]);var X=ul(),H=p.useCallback(function(ee){q(),ee.stopPropagation()},[q]),te=p.useCallback(function(ee){!I||!y||(y(g,ee),ee.stopPropagation())},[g,y,I]),ne=qq(),K=p.useCallback(function(ee){return Ebe(void 0,void 0,void 0,function(){var Ce;return Cbe(this,function(se){switch(se.label){case 0:return ee.persist(),[4,ne({record:P,resource:j,link:typeof _=="function"?function(Se,me){return _(Se.id,me,Se)}:_})];case 1:return Ce=se.sent(),_==="expand"?(H(ee),[2]):_==="toggleSelection"?(te(ee),[2]):Ce===!1||Ce==null?[2]:(X(Ce,{state:{_scrollToTop:!0}}),[2])}})})},[P,j,_,X,H,te,ne]);return Ke.createElement(Ke.Fragment,null,Ke.createElement(kb,fI({ref:t,className:Re(o,(r={},r[zt.expandable]=$,r[zt.selectable]=I,r[zt.clickableRow]=_??M,r)),key:g,style:x,hover:h,onClick:K},R),s&&Ke.createElement(Ma,{padding:"none",className:zt.expandIconCell},$&&Ke.createElement(Sbe,{className:Re(zt.expandIcon,(n={},n[zt.expanded]=B,n)),expanded:B,onClick:H,expandContentId:"".concat(g,"-expand")})),f&&Ke.createElement(Ma,{padding:"checkbox"},Ke.createElement(dv,{"aria-label":C("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(zt.checkbox),checked:I&&E,onClick:te,disabled:!I})),Ke.Children.map(a,function(ee,Ce){return p.isValidElement(ee)?Ke.createElement(C9,{key:"".concat(g,"-").concat(ee.props.source||Ce),className:Re("column-".concat(ee.props.source),zt.rowCell),record:P,field:ee,resource:j}):null})),$&&B&&Ke.createElement(kb,{key:"".concat(g,"-expand"),id:"".concat(g,"-expand"),className:zt.expandedPanel},Ke.createElement(Ma,{colSpan:G},p.isValidElement(s)?s:p.createElement(s))))}),Obe=function(e,t){e.children,e.expand;var r=pI(e,["children","expand"]);t.children,t.expand;var n=pI(t,["children","expand"]);return $z(r,n)},R9=p.memo(P9,Obe);R9.displayName="PureDatagridRow";var wx=function(){return wx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=s&&(_=o,w=!1,l=new e(l));e:for(;++y0&&R.length>0&&R.every(function(O){return _.includes(O)}),onChange:I,onClick:function(O){return O.stopPropagation()}})),p.Children.map(t,function(O,C){return p.isValidElement(O)?p.createElement(Tbe,{className:Re(zt.headerCell,"column-".concat(O.props.source)),sort:h,field:O,isSorting:(h==null?void 0:h.field)===(O.props.sortBy||O.props.source),key:O.props.source||C,updateSort:T||void 0}):null})))};j9.displayName="DatagridHeader";var Wbe=function(e){var t=e.children,r=e.value;return Ke.createElement(NT.Provider,{value:r},t)},Wg={},H4;function Hbe(){if(H4)return Wg;H4=1;var e=vt();Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.default=void 0;var t=e(yt()),r=gt();return Wg.default=(0,t.default)((0,r.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"),Wg}var Gbe=Hbe();const Kbe=tt(Gbe);var vI=function(){return vI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?p.createElement(p.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",p.createElement(qr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Tb=function(){return Tb=Object.assign||function(e){for(var t,r=1,n=arguments.length;rk?M=tc(tc(tc(tc([],f.slice(0,k),!0),[f[j]],!1),f.slice(k,j),!0),f.slice(j+1),!0):M=tc(tc(tc(tc([],f.slice(0,j),!0),f.slice(j+1,k+1),!0),[f[j]],!1),f.slice(k+1),!0),l(M),_(function($){return M.filter(function(N){return $.includes(N.index)}).map(function(N){return N.index})})}};return p.createElement(p.Fragment,null,E?p.createElement(xa,{title:x},p.createElement(_n,Ex({"aria-label":x,color:"primary",onClick:T,size:"large"},Y4(e)),p.createElement(X4,null))):p.createElement(l0e,Ex({size:"small",onClick:T,startIcon:p.createElement(X4,null)},Y4(e)),x),p.createElement(RT,{open:!!o,anchorEl:o,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},p.createElement(eo,{component:"ul",p:1,my:0},f.map(function(C){return p.createElement(a9,{key:C.index,source:C.source,label:C.label,index:C.index,selected:y.includes(C.index),onToggle:R,onMove:O})}))))},l0e=he(Bn,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),Y4=function(e){e.resource,e.preferenceKey;var t=s0e(e,["resource","preferenceKey"]);return t},u0e=function(e){var t,r=e.filterElement,n=e.handleHide,a=e.className,o=vr(e),s=at();return p.createElement(c0e,{"data-source":r.props.source,className:Re("filter-field",a)},p.cloneElement(r,{resource:o,record:d0e,size:(t=r.props.size)!==null&&t!==void 0?t:"small",helperText:!1,defaultValue:void 0}),!r.props.alwaysOn&&p.createElement(_n,{className:Re("hide-filter",Cx.hideButton),onClick:n,"data-key":r.props.source,title:s("ra.action.remove_filter"),size:"small"},p.createElement(S9,null)),p.createElement("div",{className:Cx.spacer}," "))},mI="RaFilterFormInput",Cx={spacer:"".concat(mI,"-spacer"),hideButton:"".concat(mI,"-hideButton")},c0e=he("div",{name:mI,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"},t[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(Cx.spacer)]={width:r.spacing(2)},t["& .".concat(Cx.hideButton)]={marginBottom:r.spacing(1)},t}),d0e={},tS=p.createContext(void 0),Pc=function(){return Pc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var h=function(){if(!r)return[];var _=o.getValues();return r.filter(function(w){var E=xr(_,w.props.source);return w.props.alwaysOn||f[w.props.source]||!$9(E)})},g=p.useCallback(function(_){return l(_.currentTarget.dataset.key)},[l]),y=p.useMemo(function(){return{getSource:function(_){return _},getLabel:function(_){return"resources.".concat(a,".fields.").concat(_)}}},[a]);return p.createElement(gw,{value:y},p.createElement(_0e,Pc({className:t},g0e(n),{onSubmit:m0e}),h().map(function(_){return p.createElement(u0e,{key:_.key||_.props.source,filterElement:_,handleHide:g,resource:a,className:Ox.filterFormInput})}),p.createElement("div",{className:Ox.clearFix})))},m0e=function(e){return e.preventDefault(),!1},g0e=function(e){e.hasCreate,e.resource;var t=zT(e,["hasCreate","resource"]);return t},y0e=function(e,t){return Pc(Pc({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return rw(Pc({},r),n.props.source,n.props.defaultValue)},{})),e)},b0e=function(e){return e.preventDefault(),e.stopPropagation(),!1},gI="RaFilterForm",Ox={clearFix:"".concat(gI,"-clearFix"),filterFormInput:"".concat(gI,"-filterFormInput")},_0e=he("form",{name:gI,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(Ox.clearFix)]={clear:"right"},t["& .".concat(Ox.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),x0e=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=F9(e,a,t),n},(r=Mz(t))!==null&&r!==void 0?r:{})},F9=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return xr(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var s,d=F9(e[t],o,(s=(r||{})[t])!==null&&s!==void 0?s:{});return a[o]=d,a},{});return Object.keys(n).length?n:""}return xr(r,t,"")},$9=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return $9(e[t])}):!1},Gg={},J4;function w0e(){if(J4)return Gg;J4=1;var e=vt();Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.default=void 0;var t=e(yt()),r=gt();return Gg.default=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Gg}var S0e=w0e();const fv=tt(S0e);var Kg={},Z4;function E0e(){if(Z4)return Kg;Z4=1;var e=vt();Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.default=void 0;var t=e(yt()),r=gt();return Kg.default=(0,t.default)((0,r.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd"),Kg}var C0e=E0e();const O0e=tt(C0e);var Qg={},eB;function P0e(){if(eB)return Qg;eB=1;var e=vt();Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=void 0;var t=e(yt()),r=gt();return Qg.default=(0,t.default)((0,r.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove"),Qg}var R0e=P0e();const k0e=tt(R0e);var Xg={},tB;function I0e(){if(tB)return Xg;tB=1;var e=vt();Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var t=e(yt()),r=gt();return Xg.default=(0,t.default)((0,r.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),Xg}var j0e=I0e();const T0e=tt(j0e);var Yg={},rB;function A0e(){if(rB)return Yg;rB=1;var e=vt();Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.default=void 0;var t=e(yt()),r=gt();return Yg.default=(0,t.default)((0,r.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Yg}var M0e=A0e();const F0e=tt(M0e);var Jg={},nB;function $0e(){if(nB)return Jg;nB=1;var e=vt();Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.default=void 0;var t=e(yt()),r=gt();return Jg.default=(0,t.default)((0,r.jsx)("path",{d:"M19 5v14H5V5zm0-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-2"}),"CheckBoxOutlineBlank"),Jg}var L0e=$0e();const D0e=tt(L0e);var Zg={},aB;function N0e(){if(aB)return Zg;aB=1;var e=vt();Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=void 0;var t=e(yt()),r=gt();return Zg.default=(0,t.default)((0,r.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),Zg}var B0e=N0e();const z0e=tt(B0e);var q0e=p.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,s=e.displayed,d=vr(e),f=p.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=p.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return p.createElement(Ko,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:s?l:f,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":s},p.createElement(tf,null,s?p.createElement(z0e,{fontSize:"small"}):p.createElement(D0e,{fontSize:"small"})),p.createElement(wh,null,p.createElement(ji,{label:r.props.label,source:r.props.source,resource:d})))}),qT=function(e){return _a("".concat(e,".savedQueries"),[])},UT=function(e){return Array.isArray(e)?e.filter(function(t){return U0e(t)}):[]},U0e=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")},V0e=function(e){var t=e.open,r=e.onClose,n=at(),a=La(),o=a.resource,s=a.filterValues,d=a.displayedFilters,f=a.sort,l=a.perPage,h=qT(o),g=h[0],y=h[1],_=p.useState(""),w=_[0],E=_[1],x=function(R){E(R.target.value)},T=function(R){R.preventDefault(),I()},I=function(){var R={label:w,value:{filter:s,sort:f,perPage:l,displayedFilters:d}},O=UT(g);y(O.concat(R)),E(""),r()};return p.createElement(a0,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},p.createElement(i0,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),p.createElement(o0,null,p.createElement("form",{onSubmit:T},p.createElement(s0,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:w,onChange:x}))),p.createElement(ET,null,p.createElement(Bn,{onClick:r},n("ra.action.cancel")),p.createElement(Bn,{onClick:I,color:"primary"},n("ra.action.save"))))},oB=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var h=qT(f||"")[0],g=ul(),y=La(),_=y.displayedFilters,w=_===void 0?{}:_,E=y.filterValues,x=y.perPage,T=y.setFilters,I=y.showFilter,R=y.hideFilter,O=y.sort,C=!ki(E,{}),P=UT(h),j=P.some(function(we){return ki(we.value,{filter:E,sort:O,perPage:x,displayedFilters:w})}),k=p.useState(!1),M=k[0],$=k[1],N=p.useRef();if(d===void 0)throw new Error("The component requires the prop to be set");var B=d.filter(function(we){return!we.props.alwaysOn}),q=p.useCallback(function(we){we.preventDefault(),$(!0),N.current=we.currentTarget},[N,$]),V=p.useCallback(function(){$(!1)},[$]),G=p.useCallback(function(we){var Oe=we.source,ie=we.defaultValue;I(Oe,ie===""?void 0:ie),setTimeout(function(){var Fe=document.querySelector("input[name='".concat(Oe,"']"));Fe&&Fe.focus()},50),$(!1)},[I,$]),Y=p.useCallback(function(we){var Oe=we.source;R(Oe),$(!1)},[R,$]),X=p.useState(!1),H=X[0],te=X[1],ne=function(){te(!1)},K=function(){$(!1),te(!0)},ee=p.useState(!1),Ce=ee[0],se=ee[1],Se=function(){se(!1)},me=function(){$(!1),se(!0)};return B.length===0&&P.length===0&&!C?null:p.createElement(Q0e,yI({className:r},G0e(s)),p.createElement(qr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:q,variant:o,size:a},p.createElement(F0e,null)),p.createElement(Vw,{open:M,anchorEl:N.current,onClose:V},B.map(function(we,Oe){return p.createElement(q0e,{key:we.props.source,filter:we,displayed:!!w[we.props.source],resource:f,onShow:G,onHide:Y,autoFocus:Oe===0})}),(C||P.length>0)&&p.createElement(Ob,null),P.map(function(we,Oe){return ki(we.value,{filter:E,sort:O,perPage:x,displayedFilters:w})?p.createElement(Ko,{onClick:me,key:Oe},p.createElement(tf,null,p.createElement(k0e,{fontSize:"small"})),p.createElement(wh,null,l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:we.label}))):p.createElement(Ko,{onClick:function(){var ie,Fe;g({search:ev.stringify({filter:JSON.stringify(we.value.filter),sort:(ie=we.value.sort)===null||ie===void 0?void 0:ie.field,order:(Fe=we.value.sort)===null||Fe===void 0?void 0:Fe.order,page:1,perPage:we.value.perPage,displayedFilters:JSON.stringify(we.value.displayedFilters)})}),$(!1)},key:Oe},p.createElement(tf,null,p.createElement(T0e,{fontSize:"small"})),p.createElement(wh,null,we.label))}),C&&!j&&!n&&p.createElement(Ko,{onClick:K},p.createElement(tf,null,p.createElement(O0e,{fontSize:"small"})),p.createElement(wh,null,l("ra.saved_queries.new_label",{_:"Save current query..."}))),C&&p.createElement(Ko,{onClick:function(){T({},{}),$(!1)}},p.createElement(tf,null,p.createElement(fv,{fontSize:"small"})),p.createElement(wh,null,l("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&p.createElement(p.Fragment,null,p.createElement(V0e,{open:H,onClose:ne}),p.createElement(W0e,{open:Ce,onClose:Se})))},G0e=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=L9(e,["displayedFilters","filterValues","showFilter"]);return t},K0e="RaFilterButton",Q0e=he("div",{name:K0e,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),ey={},iB;function X0e(){if(iB)return ey;iB=1;var e=vt();Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=void 0;var t=e(yt()),r=gt();return ey.default=(0,t.default)((0,r.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"),ey}var Y0e=X0e();const J0e=tt(Y0e);var bI=function(){return bI=Object.assign||function(e){for(var t,r=1,n=arguments.length;rE-1)throw new Error(_("ra.navigation.page_out_of_boundaries",{page:P+1}));g(P+1)},[E,g,_]),T=p.useCallback(function(C){y(C.target.value)},[y]),I=p.useCallback(function(C){var P=C.from,j=C.to,k=C.count;return k===-1&&d?_("ra.navigation.partial_page_range_info",{offsetBegin:P,offsetEnd:j,_:"%{from}-%{to} of more than %{to}"}):_("ra.navigation.page_range_info",{offsetBegin:P,offsetEnd:j,total:k===-1?j:k,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[_,d]),R=p.useCallback(function(C){return _("ra.navigation.".concat(C),{_:"Go to ".concat(C," page")})},[_]);if(s)return p.createElement(Iv,{variant:"dense"});if(h===0||f<1||h!=null&&f>E)return null;if(w)return p.createElement(J3,Px({count:h??-1,rowsPerPage:l,page:f-1,onPageChange:x,rowsPerPageOptions:a_e,component:"span",labelDisplayedRows:I},mb(a)));var O=n||(!s&&h!=null?Z0e:void 0);return p.createElement(J3,Px({count:h??-1,rowsPerPage:l,page:f-1,onPageChange:x,onRowsPerPageChange:T,ActionsComponent:O,nextIconButtonProps:{disabled:!d},component:"span",labelRowsPerPage:_("ra.navigation.page_rows_per_page"),labelDisplayedRows:I,getItemAriaLabel:R,rowsPerPageOptions:r},mb(a)))}),n_e=[5,10,25,50],a_e=[],Rx=function(){return Rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof me.target.value>"u")){var we=me.target,Oe=we.valueAsDate!==void 0&&we.valueAsDate!==null&&!isNaN(new Date(we.valueAsDate).getTime())?w?w(we.valueAsDate):we.valueAsDate:w?w(we.value):Z_(we.value);Oe!==""&&Oe!=null&&(C.onChange(Oe),B.current=!0)}},H=function(me){h&&h(me),Y.current=!0},te=function(){if(Y.current=!1,!!q.current){var me=q.current.valueAsDate!==void 0&&q.current.valueAsDate!==null&&!isNaN(new Date(q.current.valueAsDate).getTime())?w?w(q.current.valueAsDate):Z_(q.current.valueAsDate):w?w(q.current.value):Z_(q.current.value);me!==C.value&&C.onChange(me??""),G&&G()}},ne=P.error,K=P.invalid,ee=s!==!1||K,Ce=C.ref,se=C.name,Se=jee([Ce,q]);return p.createElement(s0,Rx({id:j,inputRef:Se,name:se,defaultValue:a(V.current),key:$,type:"datetime-local",onChange:X,onFocus:H,onBlur:te,className:Re("ra-input","ra-input-".concat(g),t),size:"small",variant:x,margin:d,error:K,disabled:T||I,readOnly:I,helperText:ee?p.createElement(Ef,{error:ne==null?void 0:ne.message,helperText:s}):null,label:p.createElement(ji,{label:o,source:g,resource:y,isRequired:k}),InputLabelProps:u_e},Av(R)))},N9=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},s_e=N9(4),J_=N9(2),lB=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=s_e(e.getFullYear()),r=J_(e.getMonth()+1),n=J_(e.getDate()),a=J_(e.getHours()),o=J_(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},l_e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,u_e={shrink:!0},Z_=function(e){return e==null||e===""?"":e instanceof Date?lB(e):l_e.test(e)?e:lB(new Date(e))},kx=function(){return kx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof Oe.target.value>"u")){var ie=Oe.target;ne(ie.value);var Fe=ie.valueAsNumber!==void 0&&ie.valueAsNumber!==null&&!isNaN(ie.valueAsNumber)?y?y(ie.valueAsNumber):ie.valueAsNumber:y?y(ie.value):v_e(ie.value);$.onChange(Fe)}},Ce=function(Oe){g&&g(Oe),K.current=!0},se=function(){Y&&Y(),K.current=!1;var Oe=o($.value);ne(function(ie){return ie!==Oe?Oe:ie})},Se=s!==!1||q,me=$.ref,we=cB($,["ref"]);return p.createElement(s0,ic({id:V},we,{inputRef:me,value:te,onChange:ee,onFocus:Ce,onBlur:se,className:Re("ra-input","ra-input-".concat(w),t),type:"number",size:"small",variant:O,error:q,disabled:P||j,readOnly:j,helperText:Se?p.createElement(Ef,{error:B==null?void 0:B.message,helperText:s}):null,label:p.createElement(ji,{label:d,source:w,resource:_,isRequired:G}),margin:f,inputProps:ic(ic({},X),{readOnly:j})},Av(k)))},v_e=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},m_e=function(e){return e==null||isNaN(e)?"":e.toString()},ty={},dB;function g_e(){if(dB)return ty;dB=1;var e=vt();Object.defineProperty(ty,"__esModule",{value:!0}),ty.default=void 0;var t=e(yt()),r=gt();return ty.default=(0,t.default)((0,r.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"),ty}var y_e=g_e();const z9=tt(y_e);var ry={},fB;function b_e(){if(fB)return ry;fB=1;var e=vt();Object.defineProperty(ry,"__esModule",{value:!0}),ry.default=void 0;var t=e(yt()),r=gt();return ry.default=(0,t.default)((0,r.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"),ry}var __e=b_e();const x_e=tt(__e);var Ix=function(){return Ix=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 p.createElement(O_e,xI({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:p.createElement(Ph,{position:"end"},p.createElement(J0e,{color:"disabled"}))},size:"small"},r))},C_e="RaSearchInput",O_e=he(Xn,{name:C_e,overridesResolver:function(e,t){return t.root}})({marginTop:0}),pv=function(){return pv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!g.message?"ra.auth.sign_in_error":g.message,{type:"error",messageArgs:{_:typeof g=="string"?g:g&&g.message?g.message:void 0}})})};return p.createElement(A_e,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},p.createElement(Ei,{className:Th.content},p.createElement(Xn,{autoFocus:!0,source:"username",label:d("ra.auth.username"),autoComplete:"username",validate:Qo()}),p.createElement(Xn,{source:"password",label:d("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Qo()}),p.createElement(Bn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:Th.button},a?p.createElement(Pv,{className:Th.icon,size:19,thickness:3}):d("ra.auth.sign_in"))))},b1="RaLoginForm",Th={content:"".concat(b1,"-content"),button:"".concat(b1,"-button"),icon:"".concat(b1,"-icon")},A_e=he(vw,{name:b1,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Th.content)]={width:300},t["& .".concat(Th.button)]={marginTop:r.spacing(2)},t["& .".concat(Th.icon)]={margin:r.spacing(.3)},t}),wI=function(){return wI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&h?G_e:r;return a?p.createElement(Q_e,OI({className:Re("edit-page",o)},l),f!==!1&&p.createElement(If,{title:f,defaultTitle:_,preferenceKey:"".concat(y,".edit.title")}),E,p.createElement("div",{className:Re(Fh.main,(t={},t[Fh.noActions]=!E,t))},p.createElement(d,{className:Fh.card},w?a:p.createElement(Ei,null," ")),n)):null},w1="RaEdit",Fh={main:"".concat(w1,"-main"),noActions:"".concat(w1,"-noActions"),card:"".concat(w1,"-card")},Q_e=he("div",{name:w1,overridesResolver:function(e,t){return t.root}})((ny={},ny["& .".concat(Fh.main)]={display:"flex",alignItems:"flex-start"},ny["& .".concat(Fh.noActions)]={marginTop:"1em"},ny["& .".concat(Fh.card)]={flex:"1 1 auto"},ny)),PI=function(){return PI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},II=function(){return II=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error("the value prop is required at runtime");var _=function(){return p.createElement(c1e,Tx({label:f,count:a,value:g,icon:s,className:r,syncWithLocation:h,onChange:l},f1e(y)))},w=function(){return p.createElement(AZ,{name:g.toString()},p.createElement(Rv,Tx({alignItems:"flex-start",style:o?d1e:void 0,className:n,id:"tabpanel-".concat(g),"aria-labelledby":"tabheader-".concat(g),"aria-hidden":o||void 0},y),t))};return d==="header"?_():w()};Vs.displayName="FormTab";var d1e={display:"none"},f1e=function(e){e.classes,e.ref,e.margin;var t=Q9(e,["classes","ref","margin"]);return t},Ax=function(){return Ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&x?S1e:r;return!a||!E&&l?null:p.createElement(C1e,TI({className:Re("show-page",o)},g),h!==!1&&p.createElement(If,{title:h,defaultTitle:w,preferenceKey:"".concat(_,".show.title")}),T!==!1&&T,p.createElement("div",{className:Re(Lh.main,(t={},t[Lh.noActions]=!T,t))},p.createElement(d,{className:Lh.card},a),n))},E1="RaShow",Lh={main:"".concat(E1,"-main"),noActions:"".concat(E1,"-noActions"),card:"".concat(E1,"-card")},C1e=he("div",{name:E1,overridesResolver:function(e,t){return t.root}})((ay={},ay["& .".concat(Lh.main)]={display:"flex"},ay["& .".concat(Lh.noActions)]={marginTop:"1em"},ay["& .".concat(Lh.card)]={flex:"1 1 auto"},ay)),AI=function(){return AI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var _=Bc(e);if(_==null||_==="")return r?p.createElement(nr,Lx({component:"span",variant:"body2",className:t},il(g)),r&&y(r,{_:r})):null;var w=h(_),E="";if(w)if(s&&f)E=y2?w.toLocaleString(n,a):w.toLocaleString();else if(f){var x=a??(typeof _=="string"&&_.length<=10?{timeZone:"UTC"}:void 0);E=y2?w.toLocaleDateString(n,x):w.toLocaleDateString()}else s&&(E=y2?w.toLocaleTimeString(n,a):w.toLocaleTimeString());return p.createElement(nr,Lx({component:"span",variant:"body2",className:t},il(g)),E)};e8.displayName="DateFieldImpl";var ba=Tf(e8),$1e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},y2=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),FI=function(){return FI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),Sc=function(e){var t=e.children,r=e.debounce,n=e.filter,a=n===void 0?X1e:n,o=e.page,s=o===void 0?1:o,d=e.pagination,f=d===void 0?null:d,l=e.perPage,h=l===void 0?25:l,g=e.reference,y=e.resource,_=e.sort,w=_===void 0?Y1e:_,E=e.source,x=E===void 0?"id":E,T=e.storeKey,I=e.target,R=e.queryOptions,O=Sr(e),C=LJ({debounce:r,filter:a,page:s,perPage:h,record:O,reference:g,resource:y,sort:w,source:x,storeKey:T,target:I,queryOptions:R});return Ke.createElement(Nc,{value:g},Ke.createElement(zj,{value:C},t,f))},X1e={},Y1e={field:"id",order:"DESC"},Bx=function(){return Bx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},db=function(){return db=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error(t)}function bB(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 f8(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 _B;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_B||(_B={}));function Axe(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 Mxe(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?f8(e):e;return{pathname:r?r.startsWith("/")?r:Fxe(r,t):t,search:Lxe(n),hash:Dxe(a)}}function Fxe(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function _2(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 $xe(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function p8(e,t){let r=$xe(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function h8(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=f8(e):(a=HI({},e),al(!a.pathname||!a.pathname.includes("?"),_2("?","pathname","search",a)),al(!a.pathname||!a.pathname.includes("#"),_2("#","pathname","hash",a)),al(!a.search||!a.search.includes("#"),_2("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,d;if(s==null)d=r;else{let g=t.length-1;if(!n&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}d=g>=0?t[g]:"/"}let f=Mxe(a,d),l=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(l||h)&&(f.pathname+="/"),f}const v8=e=>e.join("/").replace(/\/\/+/g,"/"),Lxe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Dxe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,m8=["post","put","patch","delete"];new Set(m8);const Nxe=["get",...m8];new Set(Nxe);/** - * React Router v6.30.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function GI(){return GI=Object.assign?Object.assign.bind():function(e){for(var t=1;t{d.current=!0}),p.useCallback(function(l,h){if(h===void 0&&(h={}),!d.current)return;if(typeof l=="number"){n.go(l);return}let g=h8(l,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:v8([t,g.pathname])),(h.replace?n.replace:n.push)(g,h.state,h)},[t,n,s,o,e])}function _8(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=p.useContext(f0),{matches:a}=p.useContext(oS),{pathname:o}=KT(),s=JSON.stringify(p8(a,n.v7_relativeSplatPath));return p.useMemo(()=>h8(e,JSON.parse(s),o,r==="path"),[e,s,o,r])}var x8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x8||{}),w8=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}(w8||{});function Uxe(e){let t=p.useContext(g8);return t||al(!1),t}function Vxe(e){let t=p.useContext(oS);return t||al(!1),t}function Wxe(e){let t=Vxe(),r=t.matches[t.matches.length-1];return r.route.id||al(!1),r.route.id}function Hxe(){let{router:e}=Uxe(x8.UseNavigateStable),t=Wxe(w8.UseNavigateStable),r=p.useRef(!1);return b8(()=>{r.current=!0}),p.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,GI({fromRouteId:t},o)))},[e,t])}function Gxe(e){al(!1)}new Promise(()=>{});/** - * React Router DOM v6.30.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function KI(){return KI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function Qxe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xxe(e,t){return e.button===0&&(!t||t==="_self")&&!Qxe(e)}const Yxe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Jxe="6";try{window.__reactRouterVersion=Jxe}catch{}const Zxe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ewe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,S8=p.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:s,state:d,target:f,to:l,preventScrollReset:h,viewTransition:g}=t,y=Kxe(t,Yxe),{basename:_}=p.useContext(f0),w,E=!1;if(typeof l=="string"&&ewe.test(l)&&(w=l,Zxe))try{let R=new URL(window.location.href),O=l.startsWith("//")?new URL(R.protocol+l):new URL(l),C=Axe(O.pathname,_);O.origin===R.origin&&C!=null?l=C+O.search+O.hash:E=!0}catch{}let x=Bxe(l,{relative:a}),T=twe(l,{replace:s,state:d,target:f,preventScrollReset:h,relative:a,viewTransition:g});function I(R){n&&n(R),R.defaultPrevented||T(R)}return p.createElement("a",KI({},y,{href:w||x,onClick:E||o?n:I,ref:r,target:f}))});var xB;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xB||(xB={}));var wB;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wB||(wB={}));function twe(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:s,viewTransition:d}=t===void 0?{}:t,f=zxe(),l=KT(),h=_8(e,{relative:s});return p.useCallback(g=>{if(Xxe(g,r)){g.preventDefault();let y=n!==void 0?n:bB(l)===bB(h);f(e,{replace:y,state:a,preventScrollReset:o,relative:s,viewTransition:d})}},[l,f,h,n,a,r,e,o,s,d])}var O1={exports:{}};/* @license -Papa Parse -v5.4.1 -https://github.com/mholt/PapaParse -License: MIT -*/var rwe=O1.exports,SB;function nwe(){return SB||(SB=1,function(e,t){(function(r,n){e.exports=n()})(rwe,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},a=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,s={},d=0,f={parse:function(k,M){var $=(M=M||{}).dynamicTyping||!1;if(j($)&&(M.dynamicTypingFunction=$,$={}),M.dynamicTyping=$,M.transform=!!j(M.transform)&&M.transform,M.worker&&f.WORKERS_SUPPORTED){var N=function(){if(!f.WORKERS_SUPPORTED)return!1;var q=(G=n.URL||n.webkitURL||null,Y=r.toString(),f.BLOB_URL||(f.BLOB_URL=G.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; ","(",Y,")();"],{type:"text/javascript"})))),V=new n.Worker(q),G,Y;return V.onmessage=I,V.id=d++,s[V.id]=V}();return N.userStep=M.step,N.userChunk=M.chunk,N.userComplete=M.complete,N.userError=M.error,M.step=j(M.step),M.chunk=j(M.chunk),M.complete=j(M.complete),M.error=j(M.error),delete M.worker,void N.postMessage({input:k,config:M,workerId:N.id})}var B=null;return f.NODE_STREAM_INPUT,typeof k=="string"?(k=function(q){return q.charCodeAt(0)===65279?q.slice(1):q}(k),B=M.download?new g(M):new _(M)):k.readable===!0&&j(k.read)&&j(k.on)?B=new w(M):(n.File&&k instanceof File||k instanceof Object)&&(B=new y(M)),B.stream(k)},unparse:function(k,M){var $=!1,N=!0,B=",",q=`\r -`,V='"',G=V+V,Y=!1,X=null,H=!1;(function(){if(typeof M=="object"){if(typeof M.delimiter!="string"||f.BAD_DELIMITERS.filter(function(ee){return M.delimiter.indexOf(ee)!==-1}).length||(B=M.delimiter),(typeof M.quotes=="boolean"||typeof M.quotes=="function"||Array.isArray(M.quotes))&&($=M.quotes),typeof M.skipEmptyLines!="boolean"&&typeof M.skipEmptyLines!="string"||(Y=M.skipEmptyLines),typeof M.newline=="string"&&(q=M.newline),typeof M.quoteChar=="string"&&(V=M.quoteChar),typeof M.header=="boolean"&&(N=M.header),Array.isArray(M.columns)){if(M.columns.length===0)throw new Error("Option columns is empty");X=M.columns}M.escapeChar!==void 0&&(G=M.escapeChar+V),(typeof M.escapeFormulae=="boolean"||M.escapeFormulae instanceof RegExp)&&(H=M.escapeFormulae instanceof RegExp?M.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var te=new RegExp(x(V),"g");if(typeof k=="string"&&(k=JSON.parse(k)),Array.isArray(k)){if(!k.length||Array.isArray(k[0]))return ne(null,k,Y);if(typeof k[0]=="object")return ne(X||Object.keys(k[0]),k,Y)}else if(typeof k=="object")return typeof k.data=="string"&&(k.data=JSON.parse(k.data)),Array.isArray(k.data)&&(k.fields||(k.fields=k.meta&&k.meta.fields||X),k.fields||(k.fields=Array.isArray(k.data[0])?k.fields:typeof k.data[0]=="object"?Object.keys(k.data[0]):[]),Array.isArray(k.data[0])||typeof k.data[0]=="object"||(k.data=[k.data])),ne(k.fields||[],k.data||[],Y);throw new Error("Unable to serialize unrecognized input");function ne(ee,Ce,se){var Se="";typeof ee=="string"&&(ee=JSON.parse(ee)),typeof Ce=="string"&&(Ce=JSON.parse(Ce));var me=Array.isArray(ee)&&0=this._config.preview;if(o)n.postMessage({results:q,workerId:f.WORKER_ID,finished:G});else if(j(this._config.chunk)&&!$){if(this._config.chunk(q,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);q=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(q.data),this._completeResults.errors=this._completeResults.errors.concat(q.errors),this._completeResults.meta=q.meta),this._completed||!G||!j(this._config.complete)||q&&q.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),G||q&&q.meta.paused||this._nextChunk(),q}this._halted=!0},this._sendError=function(M){j(this._config.error)?this._config.error(M):o&&this._config.error&&n.postMessage({workerId:f.WORKER_ID,error:M,finished:!1})}}function g(k){var M;(k=k||{}).chunkSize||(k.chunkSize=f.RemoteChunkSize),h.call(this,k),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function($){this._input=$,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),a||(M.onload=P(this._chunkLoaded,this),M.onerror=P(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var $=this._config.downloadRequestHeaders;for(var N in $)M.setRequestHeader(N,$[N])}if(this._config.chunkSize){var B=this._start+this._config.chunkSize-1;M.setRequestHeader("Range","bytes="+this._start+"-"+B)}try{M.send(this._config.downloadRequestBody)}catch(q){this._chunkError(q.message)}a&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:M.responseText.length,this._finished=!this._config.chunkSize||this._start>=function($){var N=$.getResponseHeader("Content-Range");return N===null?-1:parseInt(N.substring(N.lastIndexOf("/")+1))}(M),this.parseChunk(M.responseText)))},this._chunkError=function($){var N=M.statusText||$;this._sendError(new Error(N))}}function y(k){var M,$;(k=k||{}).chunkSize||(k.chunkSize=f.LocalChunkSize),h.call(this,k);var N=typeof FileReader<"u";this.stream=function(B){this._input=B,$=B.slice||B.webkitSlice||B.mozSlice,N?((M=new FileReader).onload=P(this._chunkLoaded,this),M.onerror=P(this._chunkError,this)):M=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(B.target.result)},this._chunkError=function(){this._sendError(M.error)}}function _(k){var M;h.call(this,k=k||{}),this.stream=function($){return M=$,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var $,N=this._config.chunkSize;return N?($=M.substring(0,N),M=M.substring(N)):($=M,M=""),this._finished=!M,this.parseChunk($)}}}function w(k){h.call(this,k=k||{});var M=[],$=!0,N=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(B){this._input=B,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){N&&M.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),M.length?this.parseChunk(M.shift()):$=!0},this._streamData=P(function(B){try{M.push(typeof B=="string"?B:B.toString(this._config.encoding)),$&&($=!1,this._checkIsFinished(),this.parseChunk(M.shift()))}catch(q){this._streamError(q)}},this),this._streamError=P(function(B){this._streamCleanUp(),this._sendError(B)},this),this._streamEnd=P(function(){this._streamCleanUp(),N=!0,this._streamData("")},this),this._streamCleanUp=P(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function E(k){var M,$,N,B=Math.pow(2,53),q=-B,V=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,G=/^((\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)))$/,Y=this,X=0,H=0,te=!1,ne=!1,K=[],ee={data:[],errors:[],meta:{}};if(j(k.step)){var Ce=k.step;k.step=function(ie){if(ee=ie,me())Se();else{if(Se(),ee.data.length===0)return;X+=ie.data.length,k.preview&&X>k.preview?$.abort():(ee.data=ee.data[0],Ce(ee,Y))}}}function se(ie){return k.skipEmptyLines==="greedy"?ie.join("").trim()==="":ie.length===1&&ie[0].length===0}function Se(){return ee&&N&&(Oe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+f.DefaultDelimiter+"'"),N=!1),k.skipEmptyLines&&(ee.data=ee.data.filter(function(ie){return!se(ie)})),me()&&function(){if(!ee)return;function ie(ke,$e){j(k.transformHeader)&&(ke=k.transformHeader(ke,$e)),K.push(ke)}if(Array.isArray(ee.data[0])){for(var Fe=0;me()&&Fe=K.length?"__parsed_extra":K[Te]),k.transform&&(dt=k.transform(dt,Le)),dt=we(Le,dt),Le==="__parsed_extra"?(Be[Le]=Be[Le]||[],Be[Le].push(dt)):Be[Le]=dt}return k.header&&(Te>K.length?Oe("FieldMismatch","TooManyFields","Too many fields: expected "+K.length+" fields but parsed "+Te,H+$e):Te=Z.length/2?`\r -`:"\r"}(ie,$e)),N=!1,k.delimiter)j(k.delimiter)&&(k.delimiter=k.delimiter(ie),ee.meta.delimiter=k.delimiter);else{var Te=function(Le,dt,He,Z,ae){var fe,ve,be,_e;ae=ae||[","," ","|",";",f.RECORD_SEP,f.UNIT_SEP];for(var De=0;De=V)return Kt(!0)}else for(Ge=X,X++;;){if((Ge=te.indexOf(M,Ge+1))===-1)return K||Oe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:we.length,index:X}),Dt();if(Ge===ee-1)return Dt(te.substring(X,Ge).replace(De,M));if(M!==Y||te[Ge+1]!==Y){if(M===Y||Ge===0||te[Ge-1]!==Y){be!==-1&&be=V)return Kt(!0);break}Oe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:we.length,index:X}),Ge++}}else Ge++}return Dt();function ot(Pt){we.push(Pt),Fe=X}function it(Pt){var Je=0;if(Pt!==-1){var ut=te.substring(Ge+1,Pt);ut&&ut.trim()===""&&(Je=ut.length)}return Je}function Dt(Pt){return K||(Pt===void 0&&(Pt=te.substring(X)),ie.push(Pt),X=ee,ot(ie),me&&rt()),Kt()}function Zt(Pt){X=Pt,ot(ie),ie=[],_e=te.indexOf(N,X)}function Kt(Pt){return{data:we,errors:Oe,meta:{delimiter:$,linebreak:N,aborted:H,truncated:!!Pt,cursor:Fe+(ne||0)}}}function rt(){q(Kt()),we=[],Oe=[]}},this.abort=function(){H=!0},this.getCharIndex=function(){return X}}function I(k){var M=k.data,$=s[M.workerId],N=!1;if(M.error)$.userError(M.error,M.file);else if(M.results&&M.results.data){var B={abort:function(){N=!0,R(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:O,resume:O};if(j($.userStep)){for(var q=0;q{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},uwe=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),cwe=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await bf(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},dwe=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await bf(t,{method:"GET"})).json.server_version},fwe=async e=>{const t=`${e}/_matrix/client/versions`;return(await bf(t,{method:"GET"})).json},pwe=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await bf(t,{method:"GET"})).json.flows},hwe=e=>`${hr.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function OB(){const e=hr.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function vwe(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const x2=!0,mwe=["id","displayname"].sort();function t1({value:e,text:t}){const r=C8();return A.jsx("option",{value:e,children:r(t)})}const gwe=()=>{const[e,t]=p.useState([]),[r,n]=p.useState(null),[a,o]=p.useState(null),[s,d]=p.useState(!0),[f,l]=p.useState(null),[h,g]=p.useState(null),[y,_]=p.useState(""),[w,E]=p.useState("stop"),[x,T]=p.useState(!0),[I,R]=p.useState("ignore"),O=C8(),C=Jr(),P=Zo(),j=async se=>{if(f!==null)return;t([]),n(null),o(null),g(null);const Se=se.target.files?se.target.files[0]:null;if(Se){if(Se.size>1e8){const me=O("import_users.errors.unreasonably_big",{size:(Se.size/1048576).toFixed(2)});C(me),n(me);return}try{EB.parse(Se,{header:!0,skipEmptyLines:!0,complete:me=>{me.errors&&n(me.errors.map(we=>we.toString())),k(me,{setValues:t,setStats:o,setError:n})}})}catch{return n("Unknown error"),null}}},k=({data:se,meta:Se,errors:me},{setValues:we,setStats:Oe,setError:ie})=>{const Fe=mwe.filter(Te=>{var Be;return!((Be=Se.fields)!=null&&Be.includes(Te))});if(Fe.length>0)return ie(O("import_users.error.required_field",{field:Fe[0]})),!1;const ke={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:se.length},$e=me.map(Te=>Te.message);return se.forEach((Te,Be)=>{var Le,dt,He;Te.user_type===void 0||Te.user_type===""?ke.user_types.default++:ke.user_types[Te.user_type]+=1,(Le=Se.fields)!=null&&Le.includes("name")&&delete Te.name,(dt=Se.fields)!=null&&dt.includes("user_type")&&delete Te.user_type,(He=Se.fields)!=null&&He.includes("is_admin")&&delete Te.is_admin,["is_guest","admin","deactivated"].forEach(Z=>{Te[Z]==="true"?(ke[Z]++,Te[Z]=!0):(Te[Z]!=="false"&&Te[Z]!==""&&$e.push(O("import_users.error.invalid_value",{field:Z,row:Be})),Te[Z]=!1)}),Te.password!==void 0&&Te.password!==""&&ke.password++,Te.avatar_url!==void 0&&Te.avatar_url!==""&&ke.avatar_url++,Te.id!==void 0&&Te.id!==""&&ke.id++}),$e.length>0&&ie($e),Oe(ke),we(se),!0},M=async()=>{if(f!==null){C("import_users.errors.already_in_progress");return}const se=await $(P,e,w,x,I,s,l,n);g(se),_(EB.unparse(se.skippedRecords)),console.log("Skipped records:"),console.log(y)},$=async(se,Se,me,we,Oe,ie,Fe,ke)=>{const $e=[],Te=[],Be=[],Le={total:0,id:0,is_guest:0,admin:0,password:0};let dt=0;const He=Se.length;try{Fe({done:dt,limit:He});for(const Z of Se){const ae={...Z};(Oe==="ignore"||ae.id===void 0)&&(ae.id=OB()),(we===!1||Z.password===void 0)&&(ae.password=vwe()),x2&&console.log("will check for existence of record "+JSON.stringify(ae));let fe=0;const ve=be=>se.getOne("users",{id:be.id}).then(async()=>{if(x2&&console.log("already existed"),Oe==="update"||me==="skip")$e.push(be);else{if(me==="stop")throw new Error(O("import_users.error.id_exits",{id:be.id}));{const _e=Object.assign({},be,{id:OB()});fe++,fe>512?(console.warn("retry loop got stuck? pathological situation?"),$e.push(be)):await ve(_e)}}},async()=>{x2&&console.log("OK to create record "+be.id+" ("+be.displayname+")."),ie||await se.create("users",{data:be}),Be.push(be)});await ve(ae),dt++,Fe({done:dt,limit:Se.length})}Fe(null)}catch(Z){ke(O("import_users.error.at_entry",{entry:dt+1,message:Z instanceof Error?Z.message:String(Z)})),Fe(null)}return{skippedRecords:$e,erroredRecords:Te,succeededRecords:Be,totalRecordCount:He,changeStats:Le,wasDryRun:ie}},N=()=>{const se=document.createElement("a");console.log(y);const Se=new Blob([y],{type:"text/comma-separated-values"});se.href=URL.createObjectURL(Se),se.download="skippedRecords.csv",document.body.appendChild(se),se.click()},B=async se=>{if(f!==null)return;const Se=se.target.value;E(Se)},q=se=>{f===null&&T(se.target.checked)},V=async se=>{if(f!==null)return;const Se=se.target.value;R(Se)},G=se=>{f===null&&d(se.target.checked)},Y=a&&!h&&[A.jsxs(dh,{children:[A.jsx(Dd,{title:O("import_users.cards.importstats.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:O("import_users.cards.importstats.users_total",a.total)}),A.jsx("div",{children:O("import_users.cards.importstats.guest_count",a.is_guest)}),A.jsx("div",{children:O("import_users.cards.importstats.admin_count",a.admin)})]})]}),A.jsxs(dh,{children:[A.jsx(Dd,{title:O("import_users.cards.ids.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:a.id===a.total?O("import_users.cards.ids.all_ids_present"):O("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?A.jsx("div",{children:A.jsxs(Ck,{onChange:V,value:I,disabled:f!==null,children:[A.jsx(t1,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),A.jsx(t1,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),A.jsxs(dh,{children:[A.jsx(Dd,{title:O("import_users.cards.passwords.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:a.password===a.total?O("import_users.cards.passwords.all_passwords_present"):O("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?A.jsx("div",{children:A.jsx(wk,{control:A.jsx(dv,{checked:x,disabled:f!==null,onChange:q}),label:O("import_users.cards.passwords.use_passwords")})}):""]})]})],X=a&&!h&&A.jsxs(dh,{children:[A.jsx(Dd,{title:O("import_users.cards.conflicts.header")}),A.jsx(Ei,{children:A.jsx("div",{children:A.jsxs(Ck,{onChange:B,value:w,disabled:f!==null,children:[A.jsx(t1,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),A.jsx(t1,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),H=r&&A.jsxs(dh,{children:[A.jsx(Dd,{title:O("import_users.error.error")}),A.jsx(Ei,{children:(Array.isArray(r)?r:[r]).map(se=>A.jsx("div",{children:se}))})]}),te=!h&&A.jsxs(dh,{children:[A.jsx(Dd,{title:O("import_users.cards.upload.header")}),A.jsxs(Ei,{children:[O("import_users.cards.upload.explanation"),A.jsx("a",{href:"./data/example.csv",children:"example.csv"}),A.jsx("br",{}),A.jsx("br",{}),A.jsx("input",{type:"file",onChange:j,disabled:f!==null})]})]}),ne=h&&A.jsxs(Ei,{children:[A.jsx(Dd,{title:O("import_users.cards.results.header")}),A.jsxs("div",{children:[O("import_users.cards.results.total",h.totalRecordCount),A.jsx("br",{}),O("import_users.cards.results.successful",h.succeededRecords.length),A.jsx("br",{}),h.skippedRecords.length?[O("import_users.cards.results.skipped",h.skippedRecords.length),A.jsx("div",{children:A.jsx("button",{onClick:N,children:O("import_users.cards.results.download_skipped")})}),A.jsx("br",{})]:"",h.erroredRecords.length?[O("import_users.cards.results.skipped",h.erroredRecords.length),A.jsx("br",{})]:"",A.jsx("br",{}),h.wasDryRun&&[O("import_users.cards.results.simulated_only"),A.jsx("br",{})]]})]}),K=!e||e.length===0||h?void 0:A.jsxs(yU,{children:[A.jsx(wk,{control:A.jsx(dv,{checked:s,onChange:G,disabled:f!==null}),label:O("import_users.cards.startImport.simulate_only")}),A.jsx(Bn,{size:"large",onClick:M,disabled:f!==null,children:O("import_users.cards.startImport.run_import")}),f!==null?A.jsxs("div",{children:[f.done," of ",f.limit," done"]}):null]}),ee=[];te&&ee.push(te),H&&ee.push(H),X&&ee.push(X),Y&&ee.push(...Y),K&&ee.push(K),ne&&ee.push(ne);const Ce=A.jsx(kf,{children:ee});return[A.jsx(If,{defaultTitle:O("import_users.title")}),Ce]},ywe=gwe,P1={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"}}}},bwe={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"}}}};Rj(P1,bwe);const _we={...P1,ra:{...P1.ra,navigation:{...P1.ra.navigation,no_filtered_results:"Keine Ergebnisse",clear_filters:"Alle Filter entfernen"}},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"}}},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."}},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",locked:"Gesperrt",deactivated:"Deaktiviert",erased:"Gelöscht",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"},url:"URL"}}},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"}},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."}}}};var xwe={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_all_button:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:" "},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?",access_denied:"Access denied",authentication_error:"Authentication error"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",access_denied:"You don't have the right permissions to access this page",are_you_sure:"Are you sure?",authentication_error:"The authentication server returned an error and your credentials could not be checked.",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update %{name} %{recordRepresentation}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} %{recordRepresentation} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this %{name}?",delete_title:"Delete %{name} %{recordRepresentation}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",select_all_limit_reached:"There are too many elements to select them all. Only the first %{max} elements were selected.",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?",yes:"Yes",placeholder_data_warning:"Network issue: Data refresh failed."},navigation:{clear_filters:"Clear filters",no_filtered_results:"No %{name} found using the current filters.",no_results:"No %{name} found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field_lower_first} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",email:"Email",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}};const wwe={...xwe,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"}}},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."}},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",locked:"Locked",deactivated:"Deactivated",erased:"Erased",guests:"Show guests",show_deactivated:"Show deactivated users",show_locked:"Show locked 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"}},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 Swe={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:{clear_filters:"Effacer les filtres",no_filtered_results:"Aucun résultat trouvé avec les filtres actuels.",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 Ewe={...Swe,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é"}}},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."}},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",locked:"Verrouillé",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"}},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 w2,PB;function Cwe(){return PB||(PB=1,w2={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}"}}}),w2}var Owe=Cwe();const Pwe=tt(Owe),Rwe={...Pwe,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"}}},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."}},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",locked:"Bloccato",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"}},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."}}}},S2={ra:{action:{add_filter:"Добавить фильтр",add:"Добавить",back:"Назад",bulk_actions:"1 выбран |||| %{smart_count} выбрано |||| %{smart_count} выбрано",cancel:"Отмена",clear_array_input:"Очистить список",clear_input_value:"Очистить",clone:"Дублировать",confirm:"Подтвердить",create:"Создать",create_item:"Создать %{item}",delete:"Удалить",edit:"Редактировать",export:"Экспорт",list:"Список",refresh:"Обновить",remove_filter:"Убрать фильтр",remove_all_filters:"Убрать все фильтры",remove:"Удалить",save:"Сохранить",search:"Поиск",select_all:"Выбрать все",select_row:"Выбрать эту запись",show:"Просмотр",sort:"Сортировка",undo:"Отменить",unselect:"Не выбрано",expand:"Раскрыть",close:"Закрыть",open_menu:"Открыть меню",close_menu:"Закрыть меню",update:"Обновить",move_up:"Переместить вверх",move_down:"Переместить вниз",open:"Открыть",toggle_theme:"Переключить тему",select_columns:"Столбцы",update_application:"Обновить приложение"},boolean:{true:"Да",false:"Нет",null:" "},page:{create:"Создать %{name}",dashboard:"Главная",edit:"%{name} %{recordRepresentation}",error:"Что-то пошло не так",list:"%{name}",loading:"Загрузка",not_found:"Не найдено",show:"%{name} %{recordRepresentation}",empty:"Нет %{name}.",invite:"Вы хотите добавить еще одну?"},input:{file:{upload_several:"Перетащите файлы сюда или нажмите для выбора.",upload_single:"Перетащите файл сюда или нажмите для выбора."},image:{upload_several:"Перетащите изображения сюда или нажмите для выбора.",upload_single:"Перетащите изображение сюда или нажмите для выбора."},references:{all_missing:"Связанных данных не найдено",many_missing:"Некоторые из связанных данных недоступны",single_missing:"Связанный объект недоступен"},password:{toggle_visible:"Скрыть пароль",toggle_hidden:"Показать пароль"}},message:{about:"Справка",are_you_sure:"Вы уверены?",auth_error:"Произошла ошибка при валидации токена аутентификации",bulk_delete_content:"Вы уверены, что хотите удалить %{name}? |||| Вы уверены, что хотите удалить %{smart_count} объектов? |||| Вы уверены, что хотите удалить %{smart_count} объектов?",bulk_delete_title:"Удалить %{name} |||| Удалить %{smart_count} %{name} |||| Удалить %{smart_count} %{name}",bulk_update_content:"Вы уверены, что хотите обновить %{name}? |||| Вы уверены, что хотите обновить %{smart_count} объектов?",bulk_update_title:"Обновить %{name} |||| Обновить %{smart_count} %{name}",clear_array_input:"Вы уверены, что хотите очистить весь список?",delete_content:"Вы уверены что хотите удалить этот объект",delete_title:"Удалить %{name} #%{id}",details:"Описание",error:"В процессе запроса возникла ошибка, и он не может быть завершен",invalid_form:"Форма заполнена неверно, проверьте, пожалуйста, ошибки",loading:"Идет загрузка, пожалуйста, подождите...",no:"Нет",not_found:"Ошибка URL или вы следуете по неверной ссылке",yes:"Да",unsaved_changes:"Некоторые из ваших изменений не были сохранены. Вы уверены, что хотите их игнорировать?"},navigation:{no_results:"Результатов не найдено",no_more_results:"Страница %{page} выходит за пределы нумерации, попробуйте предыдущую",page_out_of_boundaries:"Страница %{page} вне границ",page_out_from_end:"Невозможно переместиться дальше последней страницы",page_out_from_begin:"Номер страницы не может быть меньше 1",page_range_info:"%{offsetBegin}-%{offsetEnd} из %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} из более %{offsetEnd}",current_page:"Страница %{page}",page:"На %{page} страницу",first:"На первую страницу",last:"На последнюю страницу",next:"Следующая",prev:"Предыдущая",previous:"Предыдущая",page_rows_per_page:"Строк на странице:",skip_nav:"Перейти к содержанию"},sort:{sort_by:"Сортировать по %{field} %{order}",ASC:"возрастанию",DESC:"убыванию"},auth:{auth_check_error:"Пожалуйста, авторизуйтесь для продолжения работы",user_menu:"Профиль",username:"Имя пользователя",password:"Пароль",sign_in:"Войти",sign_in_error:"Ошибка аутентификации, попробуйте снова",logout:"Выйти"},notification:{updated:"Элемент обновлен |||| %{smart_count} обновлено |||| %{smart_count} обновлено",created:"Элемент создан",deleted:"Элемент удален |||| %{smart_count} удалено |||| %{smart_count} удалено",bad_item:"Элемент не валиден",item_doesnt_exist:"Элемент не существует",http_error:"Ошибка сервера",data_provider_error:"Ошибка dataProvider, проверьте консоль",i18n_error:"Не удалось загрузить перевод для указанного языка",canceled:"Операция отменена",logged_out:"Ваша сессия завершена, попробуйте переподключиться/войти снова",not_authorized:"У вас нет доступа к этому ресурсу",application_update_available:"Имеется новая версия приложения."},validation:{required:"Обязательно для заполнения",minLength:"Минимальное кол-во символов %{min}",maxLength:"Максимальное кол-во символов %{max}",minValue:"Минимальное значение %{min}",maxValue:"Значение может быть %{max} или меньше",number:"Должно быть цифрой",email:"Некорректный email",oneOf:"Должно быть одним из: %{options}",regex:"Должно быть в формате (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Сохраненные запросы",query_name:"Имя запроса",new_label:"Сохранить текущий запрос...",new_dialog_title:"Сохранить текущий запрос как",remove_label:"Удалить сохраненный запрос",remove_label_with_name:'Удалить запрос "%{name}"',remove_dialog_title:"Удалить сохраненный запрос?",remove_message:"Вы уверены, что хотите удалить этот запрос из списка сохраненных запросов?",help:"Отфильтровать список и сохранить запрос на будущее"},configurable:{customize:"Настроить",configureMode:"Настроить эту страницу",inspector:{title:"Инспектор",content:"Наведите на UI-элементы приложения, чтобы настроить",reset:"Сбросить настройки",hideAll:"Скрыть все",showAll:"Показать все"},Datagrid:{title:"Таблица данных",unlabeled:"Безымянный столбец #%{column}"},SimpleForm:{title:"Форма",unlabeled:"Безымянное поле ввода #%{input}"},SimpleList:{title:"Список",primaryText:"Первичный текст",secondaryText:"Вторичный текст",tertiaryText:"Третичный текст"}}}},kwe={...S2,ra:{...S2.ra,navigation:{...S2.ra.navigation,no_filtered_results:"Нет результатов",clear_filters:"Все фильтры сбросить"}},synapseadmin:{auth:{base_url:"Адрес домашнего сервера",welcome:"Добро пожаловать в Synapse-admin",server_version:"Версия Synapse",supports_specs:"поддерживает спецификации Matrix",username_error:"Пожалуйста, укажите полный ID пользователя: '@user:domain'",protocol_error:"Адрес должен начинаться с 'http://' или 'https://'",url_error:"Неверный адрес сервера Matrix",sso_sign_in:"Вход через SSO"},users:{invalid_user_id:"Локальная часть ID пользователя Matrix без адреса домашнего сервера.",tabs:{sso:"SSO"}},rooms:{details:"Данные комнаты",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} мегабайт",already_in_progress:"Импорт уже в процессе",id_exits:"ID %{id} уже существует"},title:"Импорт пользователей из CSV",goToPdf:"Перейти к PDF",cards:{importstats:{header:"Импорт пользователей",users_total:"%{smart_count} пользователь в CSV файле |||| %{smart_count} пользователя в CSV файле |||| %{smart_count} пользователей в CSV файле",guest_count:"%{smart_count} гость |||| %{smart_count} гостя |||| %{smart_count} гостей",admin_count:"%{smart_count} администратор |||| %{smart_count} администратора |||| %{smart_count} администраторов"},conflicts:{header:"Стратегия разрешения конфликтов",mode:{stop:"Остановка при конфликте",skip:"Показать ошибку и пропустить при конфликте"}},ids:{header:"Идентификаторы",all_ids_present:"Идентификаторы присутствуют в каждой записи",count_ids_present:"%{smart_count} запись с ID |||| %{smart_count} записи с ID |||| %{smart_count} записей с ID",mode:{ignore:"Игнорировать идентификаторы в CSV и создать новые",update:"Обновить существующие записи"}},passwords:{header:"Пароли",all_passwords_present:"Пароли присутствуют в каждой записи",count_passwords_present:"%{smart_count} запись с паролем |||| %{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} записи всего |||| %{smart_count} записей всего",successful:"%{smart_count} запись успешно импортирована |||| %{smart_count} записи успешно импортированы |||| %{smart_count} записей успешно импортированы",skipped:"%{smart_count} запись пропущена |||| %{smart_count} записи пропущены |||| %{smart_count} записей пропущено",download_skipped:"Скачать пропущенные записи",with_error:"%{smart_count} запись с ошибкой |||| %{smart_count} записи с ошибками |||| %{smart_count} записей с ошибками",simulated_only:"Импорт был симулирован"}}},delete_media:{name:"Файлы",fields:{before_ts:"Последнее обращение до",size_gt:"Более чем (в байтах)",keep_profiles:"Сохранить аватары"},action:{send:"Удалить файлы",send_success:"Запрос успешно отправлен.",send_failure:"Произошла ошибка."},helper:{send:"Это API удаляет локальные файлы с вашего собственного сервера, включая локальные миниатюры и копии скачанных файлов. Данный API не затрагивает файлы, загруженные во внешние хранилища."}},resources:{users:{name:"Пользователь |||| Пользователи",email:"Почта",msisdn:"Телефон",threepid:"Почта / Телефон",fields:{avatar:"Аватар",id:"ID пользователя",name:"Имя",is_guest:"Гость",admin:"Администратор сервера",locked:"Заблокирован",deactivated:"Деактивирован",erased:"Удалён",guests:"Показывать гостей",show_deactivated:"Показывать деактивированных",user_id:"Поиск пользователя",displayname:"Отображаемое имя",password:"Пароль",avatar_url:"Адрес аватары",avatar_src:"Аватар",medium:"Тип",threepids:"3PID'ы",address:"Адрес",creation_ts_ms:"Дата создания",consent_version:"Версия соглашения",auth_provider:"Провайдер",user_type:"Тип пользователя"},helper:{password:"Смена пароля завершит все сессии пользователя.",deactivate:"Вы должны предоставить пароль для реактивации учётной записи.",erase:"Пометить пользователя как удалённого в соответствии с GDPR"},action:{erase:"Удалить данные пользователя"}},rooms:{name:"Комната |||| Комнаты",fields:{room_id:"ID комнаты",name:"Название",canonical_alias:"Псевдоним",joined_members:"Участники",joined_local_members:"Локальные участники",joined_local_devices:"Локальные устройства",state_events:"События состояния / Сложность",version:"Версия",is_encrypted:"Зашифровано",encryption:"Шифрование",federatable:"Федерация",public:"Отображается в каталоге комнат",creator:"Создатель",join_rules:"Правила входа",guest_access:"Гостевой доступ",history_visibility:"Видимость истории",topic:"Тема",avatar:"Аватар"},helper:{forward_extremities:"Оконечности — это события-листья в конце ориентированного ациклического графа (DAG) в комнате, т.е. события без дочерних элементов. Чем больше их в комнате, тем больше Synapse работает над разрешением состояния (это дорогостоящая операция). Хотя Synapse старается не допускать существования слишком большого числа таких событий в комнате, из-за ошибок они иногда снова появляются. Если в комнате >10 оконечностей, стоит найти комнату-виновника и попробовать удалить их с помощью SQL-запросов из #1760."},enums:{join_rules:{public:"Для всех",knock:"Надо постучать",invite:"По приглашению",private:"Приватная"},guest_access:{can_join:"Гости могут войти",forbidden:"Гости не могут войти"},history_visibility:{invited:"С момента приглашения",joined:"С момента входа",shared:"С момента открытия доступа",world_readable:"Для всех"},unencrypted:"Без шифрования"},action:{erase:{title:"Удалить комнату",content:"Действительно удалить эту комнату? Это действие будет невозможно отменить. Все сообщения и файлы в комнате будут удалены с сервера!"}}},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:"Алгоритм",url:"Ссылка",info:{mimetype:"Тип"}}}},action:{erase:{title:"Удалить жалобу",content:"Действительно удалить жалобу? Это действие будет невозможно отменить."}}},connections:{name:"Подключения",fields:{last_seen:"Дата",ip:"IP адрес",user_agent:"Юзер-агент"}},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:"Последний доступ"},action:{open:"Открыть файл в новом окне"}},protect_media:{action:{create:"Не защищён, установить защиту",delete:"Защищён, снять защиту",none:"На карантине",send_success:"Статус защиты успешно изменён.",send_failure:"Произошла ошибка."}},quarantine_media:{action:{name:"Карантин",create:"Поместить на карантин",delete:"На карантине, снять карантин",none:"Защищено от карантина",send_success:"Статус карантина успешно изменён.",send_failure:"Произошла ошибка."}},pushers:{name:"Пушер |||| Пушеры",fields:{app:"Приложение",app_display_name:"Название приложения",app_id:"ID приложения",device_display_name:"Название устройства",kind:"Вид",lang:"Язык",profile_tag:"Тег профиля",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:"Размер файлов"}},forward_extremities:{name:"Оконечности",fields:{id:"ID события",received_ts:"Дата и время",depth:"Глубина",state_group:"Группа состояния"}},room_state:{name:"События состояния",fields:{type:"Тип",content:"Содержимое",origin_server_ts:"Дата отправки",sender:"Отправитель"}},room_directory:{name:"Каталог комнат",fields:{world_readable:"Гости могут просматривать без входа",guest_can_join:"Гости могут войти"},action:{title:"Удалить комнату из каталога |||| Удалить %{smart_count} комнаты из каталога |||| Удалить %{smart_count} комнат из каталога",content:"Действительно удалить комнату из каталога? |||| Действительно удалить %{smart_count} комнаты из каталога? |||| Действительно удалить %{smart_count} комнат из каталога?",erase:"Удалить из каталога комнат",create:"Опубликовать в каталоге комнат",send_success:"Комната успешно опубликована.",send_failure:"Произошла ошибка."}},destinations:{name:"Федерация",fields:{destination:"Назначение",failure_ts:"Дата и время ошибки",retry_last_ts:"Дата и время последней попытки",retry_interval:"Интервал между попытками",last_successful_stream_ordering:"Последний успешный поток",stream_ordering:"Поток"},action:{reconnect:"Переподключиться"}},registration_tokens:{name:"Токены регистрации",fields:{token:"Токен",valid:"Рабочий токен",uses_allowed:"Количество использований",pending:"Ожидает",completed:"Завершено",expiry_time:"Дата окончания",length:"Длина"},helper:{length:"Длина токена, если токен не задан."}}}};var r1={},RB;function Iwe(){if(RB)return r1;RB=1,Object.defineProperty(r1,"__esModule",{value:!0});var e={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}"}}};return r1.default=e,r1}var jwe=Iwe();const E2=tt(jwe),Twe={...E2,ra:{...E2.ra,navigation:{...E2.ra.navigation,no_filtered_results:"没有结果",clear_filters:"清除所有过滤器"}},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:"只是一次模拟运行"}}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},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:"上一次访问"}},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:"媒体文件长度"}}}},O8=p.createContext({}),Awe=()=>p.useContext(O8),Mwe=he(eo)(({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"}})),Fwe=()=>{const e=o6(),t=Jr(),{restrictBaseUrl:r}=Awe(),n=typeof r=="string",a=Array.isArray(r),o=!(n||a),[s,d]=p.useState(!1),[f,l]=p.useState(!0),[h,g]=Ij(),y=jj(),_=at(),w=n?r:hr.getItem("base_url"),[E,x]=p.useState(""),T=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(T){const P=T[1];console.log("SSO token is",P),window.history.replaceState({},"",window.location.href.replace(T[0],"#").split("#")[0]);const j=hr.getItem("sso_base_url");if(hr.removeItem("sso_base_url"),j){const k={base_url:j,username:null,password:null,loginToken:P};console.log("Base URL is:",j),console.log("SSO Token is:",P),console.log("Let's try token login..."),e(k).catch(M=>{alert(typeof M=="string"?M:typeof M>"u"||!M.message?"ra.auth.sign_in_error":M.message),console.error(M)})}}const I=P=>P.match(/^(http|https):\/\//)?P.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:_("synapseadmin.auth.url_error"):_("synapseadmin.auth.protocol_error"),R=P=>{d(!0),e(P).catch(j=>{d(!1),t(typeof j=="string"?j:typeof j>"u"||!j.message?"ra.auth.sign_in_error":j.message,{type:"warning"})})},O=()=>{hr.setItem("sso_base_url",E);const P=`${E}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=P},C=({formData:P})=>{const j=Li(),[k,M]=p.useState(""),[$,N]=p.useState(""),B=()=>{var V;if(P.base_url||n)return;const q=(V=lwe(P.username))==null?void 0:V.domain;q&&cwe(q).then(G=>{(o||a&&r.includes(G))&&j.setValue("base_url",G)})};return p.useEffect(()=>{P.base_url===""&&a&&j.setValue("base_url",r[0]),uwe(P.base_url)&&(dwe(P.base_url).then(q=>M(`${_("synapseadmin.auth.server_version")} ${q}`)).catch(()=>M("")),fwe(P.base_url).then(q=>N(`${_("synapseadmin.auth.supports_specs")} ${q.versions.join(", ")}`)).catch(()=>N("")),pwe(P.base_url).then(q=>{const V=q.find(Y=>Y.type==="m.login.password")!==void 0,G=q.find(Y=>Y.type==="m.login.sso")!==void 0;l(V),x(G?P.base_url:"")}).catch(()=>x("")))},[P.base_url,j]),A.jsxs(A.Fragment,{children:[A.jsx(eo,{children:A.jsx(Xn,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:s||!f,onBlur:B,resettable:!0,validate:Qo()})}),A.jsx(eo,{children:A.jsx(WT,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:s||!f,resettable:!0,validate:Qo()})}),A.jsx(eo,{children:A.jsx(Xn,{source:"base_url",label:"synapseadmin.auth.base_url",select:a,autoComplete:"url",disabled:s,readOnly:n,resettable:o,validate:[Qo(),I],children:a&&r.map(q=>A.jsx(Ko,{value:q,children:q},q))})}),A.jsx(nr,{className:"serverVersion",children:k}),A.jsx(nr,{className:"matrixVersions",children:$})]})};return A.jsxs(vw,{defaultValues:{base_url:w},onSubmit:R,mode:"onTouched",children:[A.jsx(Mwe,{children:A.jsxs(kf,{className:"card",children:[A.jsx(eo,{className:"avatar",children:s?A.jsx(Pv,{size:25,thickness:2}):A.jsx(Cb,{className:"icon",children:A.jsx(Gw,{})})}),A.jsx(eo,{className:"hint",children:_("synapseadmin.auth.welcome")}),A.jsxs(eo,{className:"form",children:[A.jsx(Ww,{value:h,onChange:P=>g(P.target.value),fullWidth:!0,disabled:s,className:"select",children:y.map(P=>A.jsx(Ko,{value:P.locale,children:P.name},P.locale))}),A.jsx(Z2,{children:P=>A.jsx(C,{...P})}),A.jsxs(yU,{className:"actions",children:[A.jsx(Bn,{variant:"contained",type:"submit",color:"primary",disabled:s||!f,fullWidth:!0,children:_("ra.auth.sign_in")}),A.jsx(Bn,{variant:"contained",color:"secondary",onClick:O,disabled:s||E==="",fullWidth:!0,children:_("synapseadmin.auth.sso_sign_in")})]})]})]})}),A.jsx(p9,{})]})};var sy={},kB;function $we(){if(kB)return sy;kB=1;var e=vt();Object.defineProperty(sy,"__esModule",{value:!0}),sy.default=void 0;var t=e(yt()),r=gt();return sy.default=(0,t.default)((0,r.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"),sy}var Lwe=$we();const Dwe=tt(Lwe);var ly={},IB;function Nwe(){if(IB)return ly;IB=1;var e=vt();Object.defineProperty(ly,"__esModule",{value:!0}),ly.default=void 0;var t=e(yt()),r=gt();return ly.default=(0,t.default)((0,r.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"),ly}var Bwe=Nwe();const zwe=tt(Bwe);var uy={},jB;function qwe(){if(jB)return uy;jB=1;var e=vt();Object.defineProperty(uy,"__esModule",{value:!0}),uy.default=void 0;var t=e(yt()),r=gt();return uy.default=(0,t.default)((0,r.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"),uy}var Uwe=qwe();const Mv=tt(Uwe),$a={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},QT=e=>new Date(e).getTime(),Vwe=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),a=(r+(t.getMonth()+1).toString()).slice(-2),o=(r+t.getDate().toString()).slice(-2),s=(r+t.getHours().toString()).slice(-2),d=(r+t.getMinutes().toString()).slice(-2);return`${n}-${a}-${o}T${s}:${d}`},P8=()=>A.jsx(jf,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Wwe=[A.jsx(nS,{source:"destination",alwaysOn:!0})],R8=()=>{const e=Sr(),t=dl(),r=Jr(),[n,{isLoading:a}]=Vb();if(!e||!e.failure_ts)return null;const o=s=>{s.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return A.jsx(qr,{label:"resources.destinations.action.reconnect",onClick:o,disabled:a,children:A.jsx(Dwe,{})})},Hwe=()=>A.jsx(Ni,{children:A.jsx(R8,{})}),Gwe=()=>{const e=Sr(),t=at();return A.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},Kwe=e=>{const t=Sr(e);return e.source&&Lb.get(t,e.source)===0?A.jsx(ba,{...e,record:{...t,[e.source]:null}}):A.jsx(ba,{...e})},Qwe=e=>{const{palette:{error:t,mode:r}}=ei(),n=a=>({backgroundColor:a.retry_last_ts>0?U6(t[r],.5):void 0,"& > td":r==="dark"?{color:a.retry_last_ts>0?"black":"white","& > button":{color:Bd[700]}}:void 0});return A.jsx(Af,{...e,filters:Wwe,pagination:A.jsx(P8,{}),sort:{field:"destination",order:"ASC"},children:A.jsxs(Fa,{rowSx:n,rowClick:a=>`${a}/show/rooms`,bulkActionButtons:!1,children:[A.jsx(st,{source:"destination"}),A.jsx(ba,{source:"failure_ts",showTime:!0,options:$a}),A.jsx(Kwe,{source:"retry_last_ts",showTime:!0,options:$a}),A.jsx(st,{source:"retry_interval"}),A.jsx(st,{source:"last_successful_stream_ordering"}),A.jsx(R8,{})]})})},Xwe=e=>{const t=at();return A.jsx(HT,{actions:A.jsx(Hwe,{}),title:A.jsx(Gwe,{}),...e,children:A.jsxs(aS,{children:[A.jsxs(us,{label:"status",icon:A.jsx(jv,{}),children:[A.jsx(st,{source:"destination"}),A.jsx(ba,{source:"failure_ts",showTime:!0,options:$a}),A.jsx(ba,{source:"retry_last_ts",showTime:!0,options:$a}),A.jsx(st,{source:"retry_interval"}),A.jsx(st,{source:"last_successful_stream_ordering"})]}),A.jsx(us,{label:t("resources.rooms.name",{smart_count:2}),icon:A.jsx(Mv,{}),path:"rooms",children:A.jsx(Sc,{reference:"destination_rooms",target:"destination",label:!1,pagination:A.jsx(P8,{}),perPage:50,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[A.jsx(st,{source:"room_id",label:"resources.rooms.fields.room_id"}),A.jsx(st,{source:"stream_ordering",sortable:!1}),A.jsx(tu,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:A.jsx(st,{source:"name",sortable:!1})})]})})})]})})},Ywe={name:"destinations",icon:zwe,list:Qwe,show:Xwe};var cy={},TB;function Jwe(){if(TB)return cy;TB=1;var e=vt();Object.defineProperty(cy,"__esModule",{value:!0}),cy.default=void 0;var t=e(yt()),r=gt();return cy.default=(0,t.default)((0,r.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"),cy}var Zwe=Jwe();const eSe=tt(Zwe),tSe=[Gj(/^[A-Za-z0-9._~-]{0,64}$/)],k8=[Lq()],rSe=[Lq(),IZ(64)],nSe=[A.jsx(el,{source:"valid",alwaysOn:!0})],aSe=e=>A.jsx(Af,{...e,filters:nSe,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:A.jsxs(Fa,{rowClick:"edit",children:[A.jsx(st,{source:"token",sortable:!1}),A.jsx(nl,{source:"uses_allowed",sortable:!1}),A.jsx(nl,{source:"pending",sortable:!1}),A.jsx(nl,{source:"completed",sortable:!1}),A.jsx(ba,{source:"expiry_time",showTime:!0,options:$a,sortable:!1})]})}),oSe=e=>A.jsx(U9,{...e,redirect:"list",children:A.jsxs(d0,{toolbar:A.jsx(c0,{children:A.jsx(Zw,{alwaysEnable:!0})}),children:[A.jsx(Xn,{source:"token",autoComplete:"off",validate:tSe,resettable:!0}),A.jsx(jh,{source:"length",validate:rSe,helperText:"resources.registration_tokens.helper.length",step:1}),A.jsx(jh,{source:"uses_allowed",validate:k8,step:1}),A.jsx(VT,{source:"expiry_time",parse:QT})]})}),iSe=e=>A.jsx(V9,{...e,children:A.jsxs(d0,{children:[A.jsx(Xn,{source:"token",disabled:!0}),A.jsx(jh,{source:"pending",disabled:!0}),A.jsx(jh,{source:"completed",disabled:!0}),A.jsx(jh,{source:"uses_allowed",validate:k8,step:1}),A.jsx(VT,{source:"expiry_time",parse:QT,format:Vwe})]})}),sSe={name:"registration_tokens",icon:eSe,list:aSe,edit:iSe,create:oSe};var dy={},AB;function lSe(){if(AB)return dy;AB=1;var e=vt();Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=void 0;var t=e(yt()),r=gt();return dy.default=(0,t.default)((0,r.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"),dy}var uSe=lSe();const I8=tt(uSe);var fy={},MB;function cSe(){if(MB)return fy;MB=1;var e=vt();Object.defineProperty(fy,"__esModule",{value:!0}),fy.default=void 0;var t=e(yt()),r=gt();return fy.default=(0,t.default)((0,r.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),fy}var dSe=cSe();const fSe=tt(dSe);var py={},FB;function pSe(){if(FB)return py;FB=1;var e=vt();Object.defineProperty(py,"__esModule",{value:!0}),py.default=void 0;var t=e(yt()),r=gt();return py.default=(0,t.default)((0,r.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"),py}var hSe=pSe();const $B=tt(hSe);var hy={},LB;function vSe(){if(LB)return hy;LB=1;var e=vt();Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=void 0;var t=e(yt()),r=gt();return hy.default=(0,t.default)((0,r.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"),hy}var mSe=vSe();const j8=tt(mSe);var vy={},DB;function gSe(){if(DB)return vy;DB=1;var e=vt();Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var t=e(yt()),r=gt();return vy.default=(0,t.default)((0,r.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"),vy}var ySe=gSe();const T8=tt(ySe);var my={},NB;function bSe(){if(NB)return my;NB=1;var e=vt();Object.defineProperty(my,"__esModule",{value:!0}),my.default=void 0;var t=e(yt()),r=gt();return my.default=(0,t.default)((0,r.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"),my}var _Se=bSe();const xSe=tt(_Se);var gy={},BB;function wSe(){if(BB)return gy;BB=1;var e=vt();Object.defineProperty(gy,"__esModule",{value:!0}),gy.default=void 0;var t=e(yt()),r=gt();return gy.default=(0,t.default)((0,r.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"),gy}var SSe=wSe();const ESe=tt(SSe),CSe=({open:e,onClose:t,onSubmit:r})=>{const n=at(),a=o=>A.jsxs(c0,{...o,children:[A.jsx(Zw,{label:"delete_media.action.send",icon:A.jsx(T8,{})}),A.jsx(qr,{label:"ra.action.cancel",onClick:t,children:A.jsx(j8,{})})]});return A.jsxs(a0,{open:e,onClose:t,children:[A.jsx(i0,{children:n("delete_media.action.send")}),A.jsxs(o0,{children:[A.jsx(qw,{children:n("delete_media.helper.send")}),A.jsxs(d0,{toolbar:A.jsx(a,{}),onSubmit:r,children:[A.jsx(VT,{source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:QT}),A.jsx(jh,{source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),A.jsx(el,{source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},OSe=e=>{const t=ei(),[r,n]=p.useState(!1),a=Jr(),o=Zo(),{mutate:s,isPending:d}=Cf({mutationFn:h=>o.deleteMedia(h),onSuccess:()=>{a("delete_media.action.send_success"),l()},onError:()=>{a("delete_media.action.send_failure",{type:"error"})}}),f=()=>n(!0),l=()=>n(!1);return A.jsxs(A.Fragment,{children:[A.jsx(qr,{...e,label:"delete_media.action.send",onClick:f,disabled:d,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:nv(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:A.jsx(T8,{})}),A.jsx(CSe,{open:r,onClose:l,onSubmit:s})]})},PSe=e=>{const t=Sr(),r=at(),n=dl(),a=Jr(),[o,{isLoading:s}]=Ub(),[d]=Vb();if(!t)return null;const f=()=>{o("protect_media",{data:t},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})},l=()=>{d("protect_media",{id:t.id},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[t.quarantined_by&&A.jsx(xa,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:A.jsx("div",{children:A.jsx(qr,{...e,disabled:!0,children:A.jsx(fv,{})})})}),t.safe_from_quarantine&&A.jsx(xa,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:l,disabled:s,children:A.jsx(Gw,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&A.jsx(xa,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:f,disabled:s,children:A.jsx(ESe,{})})})})]})},RSe=e=>{const t=Sr(),r=at(),n=dl(),a=Jr(),[o,{isLoading:s}]=Ub(),[d]=Vb();if(!t)return null;const f=()=>{o("quarantine_media",{data:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})},l=()=>{d("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[t.safe_from_quarantine&&A.jsx(xa,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:A.jsx("div",{children:A.jsx(qr,{...e,disabled:!0,children:A.jsx(fv,{})})})}),t.quarantined_by&&A.jsx(xa,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:l,disabled:s,children:A.jsx($B,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&A.jsx(xa,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:f,disabled:s,children:A.jsx($B,{})})})})]})},A8=({media_id:e,label:t})=>{const r=at(),n=hwe(e);return A.jsxs(eo,{style:{whiteSpace:"pre"},children:[A.jsx(xa,{title:r("resources.users_media.action.open"),children:A.jsx("span",{children:A.jsx(qr,{component:S8,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:A.jsx(xSe,{})})})}),t]})},kSe=({source:e})=>{var a;const t=hr.getItem("home_server"),r=Sr();if(!r)return null;const n=(a=Lb.get(r,e))==null?void 0:a.toString();return n?A.jsx(A8,{media_id:`${t}/${n}`,label:n}):null},ISe=({source:e})=>{var a;const t=Sr();if(!t)return null;const r=(a=Lb.get(t,e))==null?void 0:a.toString();if(!r)return null;const n=r.replace("mxc://","");return A.jsx(A8,{media_id:n,label:r})},jSe=()=>A.jsx(jf,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),TSe=e=>{const t=at();return A.jsx(HT,{...e,actions:A.jsx(ASe,{}),children:A.jsxs(aS,{children:[A.jsxs(us,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:A.jsx(jv,{}),children:[A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(tu,{source:"user_id",reference:"users",children:A.jsx(st,{source:"id"})}),A.jsx(nl,{source:"score"}),A.jsx(st,{source:"reason"}),A.jsx(st,{source:"name"}),A.jsx(st,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),A.jsx(tu,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:A.jsx(st,{source:"id"})})]}),A.jsxs(us,{label:"synapseadmin.reports.tabs.detail",icon:A.jsx(I8,{}),path:"detail",children:[A.jsx(ba,{source:"event_json.origin_server_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(tu,{source:"sender",reference:"users",children:A.jsx(st,{source:"id"})}),A.jsx(st,{source:"sender",label:"Sender (raw user ID)"}),A.jsx(st,{source:"event_id"}),A.jsx(st,{source:"event_json.origin"}),A.jsx(st,{source:"event_json.type"}),A.jsx(st,{source:"event_json.content.msgtype"}),A.jsx(st,{source:"event_json.content.body"}),A.jsx(st,{source:"event_json.content.info.mimetype"}),A.jsx(ISe,{source:"event_json.content.url"}),A.jsx(st,{source:"event_json.content.format"}),A.jsx(st,{source:"event_json.content.formatted_body"}),A.jsx(st,{source:"event_json.content.algorithm"}),A.jsx(st,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},ASe=()=>{const e=Sr();return A.jsx(Ni,{children:A.jsx(Tv,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},MSe=e=>A.jsx(Af,{...e,pagination:A.jsx(jSe,{}),sort:{field:"received_ts",order:"DESC"},children:A.jsxs(Fa,{rowClick:"show",bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1}),A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(st,{sortable:!1,source:"user_id"}),A.jsx(st,{sortable:!1,source:"name"}),A.jsx(st,{sortable:!1,source:"score"})]})}),FSe={name:"reports",icon:fSe,list:MSe,show:TSe},XT=({source:e,...t})=>{var l;const r=Sr(t),n=(l=Lb.get(r,e))==null?void 0:l.toString(),{alt:a,classes:o,sizes:s,sx:d,variant:f}=t;return A.jsx(Cb,{alt:a,classes:o,sizes:s,src:n,sx:d,variant:f})},$Se=()=>A.jsx(jf,{rowsPerPageOptions:[100,500,1e3,2e3]}),LSe=e=>{const t=at();return A.jsx(Tv,{...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:A.jsx(Mv,{})})},M8=e=>A.jsx(Jw,{...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:A.jsx(Mv,{})}),DSe=e=>{const{selectedIds:t}=La(),r=Jr(),n=dl(),a=dq("rooms"),o=Zo(),{mutate:s,isPending:d}=Cf({mutationFn:()=>o.createMany("room_directory",{ids:t,data:{}}),onSuccess:()=>{r("resources.room_directory.action.send_success"),a(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return A.jsx(qr,{...e,label:"resources.room_directory.action.create",onClick:s,disabled:d,children:A.jsx(Mv,{})})},NSe=e=>{const t=Sr(),r=Jr(),n=dl(),[a,{isLoading:o}]=Ub();if(!t)return;const s=()=>{a("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 A.jsx(qr,{...e,label:"resources.room_directory.action.create",onClick:s,disabled:o,children:A.jsx(Mv,{})})},BSe=()=>A.jsxs(Ni,{children:[A.jsx(M9,{}),A.jsx(u0,{})]}),zSe=()=>A.jsx(Af,{pagination:A.jsx($Se,{}),perPage:100,actions:A.jsx(BSe,{}),children:A.jsxs(A9,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:A.jsx(M8,{}),omit:["room_id","canonical_alias","topic"],children:[A.jsx(XT,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),A.jsx(st,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),A.jsx(st,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),A.jsx(st,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),A.jsx(st,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),A.jsx(nl,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),A.jsx(Ri,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),A.jsx(Ri,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),qSe={name:"room_directory",icon:Mv,list:zSe};var yy={},zB;function USe(){if(zB)return yy;zB=1;var e=vt();Object.defineProperty(yy,"__esModule",{value:!0}),yy.default=void 0;var t=e(yt()),r=gt();return yy.default=(0,t.default)((0,r.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"),yy}var VSe=USe();const WSe=tt(VSe);var by={},qB;function HSe(){if(qB)return by;qB=1;var e=vt();Object.defineProperty(by,"__esModule",{value:!0}),by.default=void 0;var t=e(yt()),r=gt();return by.default=(0,t.default)((0,r.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward"),by}var GSe=HSe();const KSe=tt(GSe);var _y={},UB;function QSe(){if(UB)return _y;UB=1;var e=vt();Object.defineProperty(_y,"__esModule",{value:!0}),_y.default=void 0;var t=e(yt()),r=gt();return _y.default=(0,t.default)((0,r.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"),_y}var XSe=QSe();const F8=tt(XSe);var xy={},VB;function YSe(){if(VB)return xy;VB=1;var e=vt();Object.defineProperty(xy,"__esModule",{value:!0}),xy.default=void 0;var t=e(yt()),r=gt();return xy.default=(0,t.default)((0,r.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"),xy}var JSe=YSe();const WB=tt(JSe);var wy={},HB;function ZSe(){if(HB)return wy;HB=1;var e=vt();Object.defineProperty(wy,"__esModule",{value:!0}),wy.default=void 0;var t=e(yt()),r=gt();return wy.default=(0,t.default)((0,r.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"),wy}var eEe=ZSe();const tEe=tt(eEe),rEe=()=>A.jsx(jf,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),nEe=()=>{const e=Sr(),t=at();let r="";return e&&(r=e.name!==""?e.name:e.id),A.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},aEe=()=>{const e=Sr(),t=e!=null&&e.public?A.jsx(LSe,{}):A.jsx(NSe,{});return A.jsxs(Ni,{children:[t,A.jsx(Tv,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},oEe=e=>{const t=at();return A.jsx(HT,{...e,actions:A.jsx(aEe,{}),title:A.jsx(nEe,{}),children:A.jsxs(aS,{children:[A.jsxs(us,{label:"synapseadmin.rooms.tabs.basic",icon:A.jsx(jv,{}),children:[A.jsx(st,{source:"room_id"}),A.jsx(st,{source:"name"}),A.jsx(st,{source:"topic"}),A.jsx(st,{source:"canonical_alias"}),A.jsx(tu,{source:"creator",reference:"users",children:A.jsx(st,{source:"id"})})]}),A.jsxs(us,{label:"synapseadmin.rooms.tabs.detail",icon:A.jsx(I8,{}),path:"detail",children:[A.jsx(st,{source:"joined_members"}),A.jsx(st,{source:"joined_local_members"}),A.jsx(st,{source:"joined_local_devices"}),A.jsx(st,{source:"state_events"}),A.jsx(st,{source:"version"}),A.jsx(st,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),A.jsx(us,{label:"synapseadmin.rooms.tabs.members",icon:A.jsx(F8,{}),path:"members",children:A.jsx(Sc,{reference:"room_members",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1,label:"resources.users.fields.id"}),A.jsx(tu,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:A.jsx(st,{source:"displayname",sortable:!1})})]})})}),A.jsxs(us,{label:"synapseadmin.rooms.tabs.permission",icon:A.jsx(z9,{}),path:"permission",children:[A.jsx(Ri,{source:"federatable"}),A.jsx(Ri,{source:"public"}),A.jsx(b2,{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"}]}),A.jsx(b2,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),A.jsx(b2,{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"}]})]}),A.jsx(us,{label:t("resources.room_state.name",{smart_count:2}),icon:A.jsx(WSe,{}),path:"state",children:A.jsx(Sc,{reference:"room_state",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"type",sortable:!1}),A.jsx(ba,{source:"origin_server_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(st,{source:"content",sortable:!1}),A.jsx(tu,{source:"sender",reference:"users",sortable:!1,children:A.jsx(st,{source:"id"})})]})})}),A.jsxs(us,{label:"resources.forward_extremities.name",icon:A.jsx(KSe,{}),path:"forward_extremities",children:[A.jsx(eo,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),A.jsx(Sc,{reference:"forward_extremities",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1}),A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(nl,{source:"depth",sortable:!1}),A.jsx(st,{source:"state_group",sortable:!1})]})})]})]})})},iEe=()=>A.jsxs(A.Fragment,{children:[A.jsx(DSe,{}),A.jsx(M8,{}),A.jsx(Jw,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),sEe=[A.jsx(nS,{source:"search_term",alwaysOn:!0})],lEe=()=>A.jsxs(Ni,{children:[A.jsx(M9,{}),A.jsx(u0,{})]}),uEe=e=>{const t=ei();return A.jsx(Af,{...e,pagination:A.jsx(rEe,{}),sort:{field:"name",order:"ASC"},filters:sEe,actions:A.jsx(lEe,{}),children:A.jsxs(A9,{rowClick:"show",bulkActionButtons:A.jsx(iEe,{}),omit:["joined_local_members","state_events","version","federatable"],children:[A.jsx(Ri,{source:"is_encrypted",sortBy:"encryption",TrueIcon:WB,FalseIcon:tEe,label:A.jsx(WB,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),A.jsx(D1e,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),A.jsx(st,{source:"joined_members"}),A.jsx(st,{source:"joined_local_members"}),A.jsx(st,{source:"state_events"}),A.jsx(st,{source:"version"}),A.jsx(Ri,{source:"federatable"}),A.jsx(Ri,{source:"public"})]})})},cEe={name:"rooms",icon:jv,list:uEe,show:oEe};var Sy={},GB;function dEe(){if(GB)return Sy;GB=1;var e=vt();Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.default=void 0;var t=e(yt()),r=gt();return Sy.default=(0,t.default)((0,r.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer"),Sy}var fEe=dEe();const pEe=tt(fEe),hEe=()=>{const{isLoading:e,total:t}=La();return A.jsxs(Ni,{children:[A.jsx(OSe,{}),A.jsx(u0,{disabled:e||t===0})]})},vEe=()=>A.jsx(jf,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),mEe=[A.jsx(nS,{source:"search_term",alwaysOn:!0})],gEe=e=>A.jsx(Af,{...e,actions:A.jsx(hEe,{}),filters:mEe,pagination:A.jsx(vEe,{}),sort:{field:"media_length",order:"DESC"},children:A.jsxs(Fa,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[A.jsx(st,{source:"user_id",label:"resources.users.fields.id"}),A.jsx(st,{source:"displayname",label:"resources.users.fields.displayname"}),A.jsx(nl,{source:"media_count"}),A.jsx(nl,{source:"media_length"})]})}),yEe={name:"user_media_statistics",icon:pEe,list:gEe};var Ey={},KB;function bEe(){if(KB)return Ey;KB=1;var e=vt();Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var t=e(yt()),r=gt();return Ey.default=(0,t.default)((0,r.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"),Ey}var _Ee=bEe();const xEe=tt(_Ee);var Cy={},QB;function wEe(){if(QB)return Cy;QB=1;var e=vt();Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=void 0;var t=e(yt()),r=gt();return Cy.default=(0,t.default)((0,r.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"),Cy}var SEe=wEe();const EEe=tt(SEe);var Oy={},XB;function CEe(){if(XB)return Oy;XB=1;var e=vt();Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.default=void 0;var t=e(yt()),r=gt();return Oy.default=(0,t.default)((0,r.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"),Oy}var OEe=CEe();const PEe=tt(OEe);var Py={},YB;function REe(){if(YB)return Py;YB=1;var e=vt();Object.defineProperty(Py,"__esModule",{value:!0}),Py.default=void 0;var t=e(yt()),r=gt();return Py.default=(0,t.default)((0,r.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"),Py}var kEe=REe();const IEe=tt(kEe);var Ry={},JB;function jEe(){if(JB)return Ry;JB=1;var e=vt();Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.default=void 0;var t=e(yt()),r=gt();return Ry.default=(0,t.default)((0,r.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"),Ry}var TEe=jEe();const AEe=tt(TEe);var ky={},ZB;function MEe(){if(ZB)return ky;ZB=1;var e=vt();Object.defineProperty(ky,"__esModule",{value:!0}),ky.default=void 0;var t=e(yt()),r=gt();return ky.default=(0,t.default)((0,r.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"),ky}var FEe=MEe();const $Ee=tt(FEe);var Iy={},e5;function LEe(){if(e5)return Iy;e5=1;var e=vt();Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var t=e(yt()),r=gt();return Iy.default=(0,t.default)((0,r.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"),Iy}var DEe=LEe();const NEe=tt(DEe);var jy={},t5;function BEe(){if(t5)return jy;t5=1;var e=vt();Object.defineProperty(jy,"__esModule",{value:!0}),jy.default=void 0;var t=e(yt()),r=gt();return jy.default=(0,t.default)((0,r.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"),jy}var zEe=BEe();const $8=tt(zEe),L8=({open:e,onClose:t,onSubmit:r})=>{const n=at(),a=o=>A.jsxs(c0,{...o,children:[A.jsx(Zw,{label:"resources.servernotices.action.send",disabled:o.pristine}),A.jsx(qr,{label:"ra.action.cancel",onClick:t,children:A.jsx(j8,{})})]});return A.jsxs(a0,{open:e,onClose:t,children:[A.jsx(i0,{children:n("resources.servernotices.action.send")}),A.jsxs(o0,{children:[A.jsx(qw,{children:n("resources.servernotices.helper.send")}),A.jsx(d0,{toolbar:A.jsx(a,{}),onSubmit:r,children:A.jsx(Xn,{source:"body",label:"resources.servernotices.fields.body",multiline:!0,rows:"4",resettable:!0,validate:Qo()})})]})]})},qEe=()=>{const e=Sr(),[t,r]=p.useState(!1),n=Jr(),[a,{isLoading:o}]=Ub(),s=()=>r(!0),d=()=>r(!1);if(!e)return;const f=l=>{a("servernotices",{data:{id:e.id,...l}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),d()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[A.jsx(qr,{label:"resources.servernotices.send",onClick:s,disabled:o,children:A.jsx($8,{})}),A.jsx(L8,{open:t,onClose:d,onSubmit:f})]})},UEe=()=>{const{selectedIds:e}=La(),[t,r]=p.useState(!1),n=()=>r(!0),a=()=>r(!1),o=Jr(),s=dq("users"),d=Zo(),{mutate:f,isPending:l}=Cf({mutationFn:h=>d.createMany("servernotices",{ids:e,data:h}),onSuccess:()=>{o("resources.servernotices.action.send_success"),s(),a()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})});return A.jsxs(A.Fragment,{children:[A.jsx(qr,{label:"resources.servernotices.send",onClick:n,disabled:l,children:A.jsx($8,{})}),A.jsx(L8,{open:t,onClose:a,onSubmit:f})]})},VEe=e=>{const t=Sr();return t?A.jsx(v9,{...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},D8=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],N8=[{id:"bot",name:"bot"},{id:"support",name:"support"}],B8=()=>{const{isLoading:e,total:t}=La();return A.jsxs(Ni,{children:[A.jsx(TT,{}),A.jsx(u0,{disabled:e||t===0,maxResults:1e4}),A.jsx(qr,{component:S8,to:"/import_users",label:"CSV Import",children:A.jsx(h9,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};B8.defaultProps={selectedIds:[],onUnselectItems:()=>null};const z8=()=>A.jsx(jf,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),WEe=[A.jsx(nS,{source:"name",alwaysOn:!0}),A.jsx(el,{source:"guests",alwaysOn:!0}),A.jsx(el,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0}),A.jsx(el,{label:"resources.users.fields.show_locked",source:"locked",alwaysOn:!0})],HEe=()=>A.jsxs(A.Fragment,{children:[A.jsx(UEe,{}),A.jsx(Jw,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),GEe=e=>A.jsx(Af,{...e,filters:WEe,filterDefaultValues:{guests:!0,deactivated:!1,locked:!1},sort:{field:"name",order:"ASC"},actions:A.jsx(B8,{}),pagination:A.jsx(z8,{}),children:A.jsxs(Fa,{rowClick:(t,r)=>`/${r}/${t}`,bulkActionButtons:A.jsx(HEe,{}),children:[A.jsx(XT,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),A.jsx(st,{source:"id",sortBy:"name"}),A.jsx(st,{source:"displayname"}),A.jsx(Ri,{source:"is_guest"}),A.jsx(Ri,{source:"admin"}),A.jsx(Ri,{source:"deactivated"}),A.jsx(Ri,{source:"locked"}),A.jsx(Ri,{source:"erased",sortable:!1}),A.jsx(ba,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:$a})]})}),KEe=[Qo(),W1(253),Gj(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],QEe=[Qo(),W1(255)],XEe=()=>{const e=Sr(),t=at();return A.jsxs(Ni,{children:[!(e!=null&&e.deactivated)&&A.jsx(qEe,{}),A.jsx(Tv,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},YEe=e=>A.jsx(U9,{...e,redirect:(t,r)=>`${t}/${r}`,children:A.jsxs(d0,{children:[A.jsx(Xn,{source:"id",autoComplete:"off",validate:KEe}),A.jsx(Xn,{source:"displayname",validate:W1(256)}),A.jsx(WT,{source:"password",autoComplete:"new-password",validate:W1(512)}),A.jsx(jx,{source:"user_type",choices:N8,translateChoice:!1,resettable:!0}),A.jsx(el,{source:"admin"}),A.jsx(yx,{source:"threepids",children:A.jsxs(_x,{disableReordering:!0,children:[A.jsx(jx,{source:"medium",choices:D8,validate:Qo()}),A.jsx(Xn,{source:"address",validate:QEe})]})}),A.jsx(yx,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:A.jsxs(_x,{disableReordering:!0,children:[A.jsx(Xn,{source:"auth_provider",validate:Qo()}),A.jsx(Xn,{source:"external_id",label:"resources.users.fields.id",validate:Qo()})]})})]})}),JEe=()=>{const e=Sr(),t=at();return A.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},ZEe=e=>{const t=at();return A.jsx(V9,{...e,title:A.jsx(JEe,{}),actions:A.jsx(XEe,{}),children:A.jsxs(X9,{children:[A.jsxs(Vs,{label:t("resources.users.name",{smart_count:1}),icon:A.jsx($Ee,{}),children:[A.jsx(XT,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),A.jsx(Xn,{source:"id",disabled:!0}),A.jsx(Xn,{source:"displayname"}),A.jsx(WT,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),A.jsx(jx,{source:"user_type",choices:N8,translateChoice:!1,resettable:!0}),A.jsx(el,{source:"admin"}),A.jsx(el,{source:"locked"}),A.jsx(el,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),A.jsx(el,{source:"erased",disabled:!0}),A.jsx(ba,{source:"creation_ts_ms",showTime:!0,options:$a}),A.jsx(st,{source:"consent_version"})]}),A.jsx(Vs,{label:"resources.users.threepid",icon:A.jsx(EEe,{}),path:"threepid",children:A.jsx(yx,{source:"threepids",children:A.jsxs(_x,{disableReordering:!0,children:[A.jsx(jx,{source:"medium",choices:D8}),A.jsx(Xn,{source:"address"})]})})}),A.jsx(Vs,{label:"synapseadmin.users.tabs.sso",icon:A.jsx(xEe,{}),path:"sso",children:A.jsx(yx,{source:"external_ids",label:!1,children:A.jsxs(_x,{disableReordering:!0,children:[A.jsx(Xn,{source:"auth_provider",validate:Qo()}),A.jsx(Xn,{source:"external_id",label:"resources.users.fields.id",validate:Qo()})]})})}),A.jsx(Vs,{label:t("resources.devices.name",{smart_count:2}),icon:A.jsx(PEe,{}),path:"devices",children:A.jsx(Sc,{reference:"devices",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},children:[A.jsx(st,{source:"device_id",sortable:!1}),A.jsx(st,{source:"display_name",sortable:!1}),A.jsx(st,{source:"last_seen_ip",sortable:!1}),A.jsx(ba,{source:"last_seen_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(VEe,{})]})})}),A.jsx(Vs,{label:"resources.connections.name",icon:A.jsx(NEe,{}),path:"connections",children:A.jsx(tu,{reference:"connections",source:"id",label:!1,link:!1,children:A.jsx(P1e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"ip",sortable:!1}),A.jsx(ba,{source:"last_seen",showTime:!0,options:$a,sortable:!1}),A.jsx(st,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),A.jsx(Vs,{label:t("resources.users_media.name",{smart_count:2}),icon:A.jsx(AEe,{}),path:"media",children:A.jsx(Sc,{reference:"users_media",target:"user_id",label:!1,pagination:A.jsx(z8,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:A.jsxs(Fa,{style:{width:"100%"},children:[A.jsx(kSe,{source:"media_id"}),A.jsx(ba,{source:"created_ts",showTime:!0,options:$a}),A.jsx(ba,{source:"last_access_ts",showTime:!0,options:$a}),A.jsx(nl,{source:"media_length"}),A.jsx(st,{source:"media_type"}),A.jsx(st,{source:"upload_name"}),A.jsx(st,{source:"quarantined_by"}),A.jsx(RSe,{label:"resources.quarantine_media.action.name"}),A.jsx(PSe,{label:"resources.users_media.fields.safe_from_quarantine"}),A.jsx(Tv,{mutationMode:"pessimistic",redirect:!1})]})})}),A.jsx(Vs,{label:t("resources.rooms.name",{smart_count:2}),icon:A.jsx(jv,{}),path:"rooms",children:A.jsx(Sc,{reference:"joined_rooms",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),A.jsx(tu,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:A.jsx(st,{source:"name",sortable:!1})})]})})}),A.jsx(Vs,{label:t("resources.pushers.name",{smart_count:2}),icon:A.jsx(IEe,{}),path:"pushers",children:A.jsx(Sc,{reference:"pushers",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"kind",sortable:!1}),A.jsx(st,{source:"app_display_name",sortable:!1}),A.jsx(st,{source:"app_id",sortable:!1}),A.jsx(st,{source:"data.url",sortable:!1}),A.jsx(st,{source:"device_display_name",sortable:!1}),A.jsx(st,{source:"lang",sortable:!1}),A.jsx(st,{source:"profile_tag",sortable:!1}),A.jsx(st,{source:"pushkey",sortable:!1})]})})})]})})},eCe={name:"users",icon:F8,list:GEe,edit:ZEe,create:YEe},tCe={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:hr.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r,identifier:{type:"m.id.user",user:t}}))};e=e.replace(/\/+$/g,""),hr.setItem("base_url",e);const s=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:d}=await bf(s,a);hr.setItem("home_server",d.home_server),hr.setItem("user_id",d.user_id),hr.setItem("access_token",d.access_token),hr.setItem("device_id",d.device_id)},logout:async()=>{console.log("logout");const e=hr.getItem("base_url")+"/_matrix/client/r0/logout",t=hr.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await bf(e,r),hr.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=hr.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},Wo=(e,t={})=>{const r=hr.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),bf(e,t)},r5=e=>{const t=hr.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const a=n[1],o=n[2];return`${t}/_matrix/media/r0/thumbnail/${a}/${o}?width=24&height=24&method=scale`},Mn={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?r5(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)}:${hr.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/${hr.getItem("home_server")}/${e.id}`})},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/${hr.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${hr.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?r5(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 Ty(e,t){if(!(t===null&&e!=="user_type"))return t}function n5(e){return e==="DESC"?"b":"f"}const rCe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:a,deactivated:o,locked:s,search_term:d,destination:f,valid:l}=t.filter,{page:h,perPage:g}=t.pagination,{field:y,order:_}=t.sort,w=(h-1)*g,E={from:w,limit:g,user_id:r,search_term:d,name:n,destination:f,guests:a,deactivated:o,locked:s,valid:l,order_by:y,dir:n5(_)},x=hr.getItem("base_url");if(!x||!(e in Mn))throw Error("Homeserver not set");const T=Mn[e],R=`${x+T.path}?${ev.stringify(E)}`,{json:O}=await Wo(R);return{data:O[T.data].map(T.map),total:T.total(O,w,g)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path,{json:o}=await Wo(`${a}/${encodeURIComponent(t.id)}`);return{data:n.map(o)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homerserver not set");const n=Mn[e],a=r+n.path,o=await Promise.all(t.ids.map(s=>Wo(`${a}/${encodeURIComponent(s)}`)));return{data:o.map(({json:s})=>n.map(s)),total:o.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,s=(r-1)*n,d={from:s,limit:n,order_by:a,dir:n5(o)},f=hr.getItem("base_url");if(!f||!(e in Mn))throw Error("Homeserver not set");const l=Mn[e],h=l.reference(t.id),g=`${f}${h.endpoint}?${ev.stringify(d)}`,{json:y}=await Wo(g);return{data:y[l.data].map(l.map),total:l.total(y,s,n)}},update:async(e,t)=>{console.log("update "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path,{json:o}=await Wo(`${a}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,Ty)});return{data:n.map(o)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path;return{data:(await Promise.all(t.ids.map(s=>Wo(`${a}/${encodeURIComponent(s)}`),{method:"PUT",body:JSON.stringify(t.data,Ty)}))).map(({json:s})=>s)}},create:async(e,t)=>{console.log("create "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if(!("create"in n))return Promise.reject();const a=n.create(t.data),o=r+a.endpoint,{json:s}=await Wo(o,{method:a.method,body:JSON.stringify(a.body,Ty)});return{data:n.map(s)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(o=>{t.data.id=o;const s=n.create(t.data),d=r+s.endpoint;return Wo(d,{method:s.method,body:JSON.stringify(s.body,Ty)})}))).map(({json:o})=>o)}},delete:async(e,t)=>{console.log("delete "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if("delete"in n){const a=n.delete(t),o=r+a.endpoint,{json:s}=await Wo(o,{method:"method"in a?a.method:"DELETE",body:"body"in a?JSON.stringify(a.body):null});return{data:s}}else{const a=r+n.path,{json:o}=await Wo(`${a}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,Ty)});return{data:o}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(o=>{const s=n.delete({...t,id:o}),d=r+s.endpoint;return Wo(d,{method:"method"in s?s.method:"DELETE",body:"body"in s?JSON.stringify(s.body):null})}))).map(({json:o})=>o)};{const a=r+n.path;return{data:(await Promise.all(t.ids.map(s=>Wo(`${a}/${s}`,{method:"DELETE"})))).map(({json:s})=>s)}}},deleteMedia:async({before_ts:e,size_gt:t=0,keep_profiles:r=!0})=>{const a=`/_synapse/admin/v1/media/${hr.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,s=hr.getItem("base_url")+a,{json:d}=await Wo(s,{method:"POST"});return d}},n1={de:_we,en:wwe,fr:Ewe,it:Rwe,ru:kwe,zh:Twe},nCe=O5(e=>n1[e]?Lb.merge({},n1.en,n1[e]):n1.en,NQ(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"ru",name:"Russian(Русский)"},{locale:"zh",name:"简体中文"}]),aCe=()=>A.jsxs(Txe,{disableTelemetry:!0,requireAuth:!0,loginPage:Fwe,authProvider:tCe,dataProvider:rCe,i18nProvider:nCe,children:[A.jsx(Jq,{children:A.jsx(Gxe,{path:"/import_users",element:A.jsx(ywe,{})})}),A.jsx(Gn,{...eCe}),A.jsx(Gn,{...cEe}),A.jsx(Gn,{...yEe}),A.jsx(Gn,{...FSe}),A.jsx(Gn,{...qSe}),A.jsx(Gn,{...Ywe}),A.jsx(Gn,{...sSe}),A.jsx(Gn,{name:"connections"}),A.jsx(Gn,{name:"devices"}),A.jsx(Gn,{name:"room_members"}),A.jsx(Gn,{name:"users_media"}),A.jsx(Gn,{name:"joined_rooms"}),A.jsx(Gn,{name:"pushers"}),A.jsx(Gn,{name:"servernotices"}),A.jsx(Gn,{name:"forward_extremities"}),A.jsx(Gn,{name:"room_state"}),A.jsx(Gn,{name:"destination_rooms"})]});fetch("/synapse-admin/config.json").then(e=>e.json()).then(e=>g7.createRoot(document.getElementById("root")).render(A.jsx(Ke.StrictMode,{children:A.jsx(O8.Provider,{value:e,children:A.jsx(aCe,{})})}))); diff --git a/assets/index-v4KhFlf0.js b/assets/index-v4KhFlf0.js new file mode 100644 index 0000000..0b99e1c --- /dev/null +++ b/assets/index-v4KhFlf0.js @@ -0,0 +1,297 @@ +var iA=e=>{throw TypeError(e)};var eE=(e,t,r)=>t.has(e)||iA("Cannot "+r);var ue=(e,t,r)=>(eE(e,t,"read from private field"),r?r.call(e):t.get(e)),Bt=(e,t,r)=>t.has(e)?iA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xt=(e,t,r,n)=>(eE(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),or=(e,t,r)=>(eE(e,t,"access private method"),r);var I_=(e,t,r,n)=>({set _(a){xt(e,t,a,r)},get _(){return ue(e,t,n)}});function ZB(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ou(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var tE={exports:{}},Jm={},rE={exports:{}},lr={};/** + * @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 sA;function $W(){if(sA)return lr;sA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function y(K){return K===null||typeof K!="object"?null:(K=g&&K[g]||K["@@iterator"],typeof K=="function"?K:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function x(K,ee,Ce){this.props=K,this.context=ee,this.refs=E,this.updater=Ce||_}x.prototype.isReactComponent={},x.prototype.setState=function(K,ee){if(typeof K!="object"&&typeof K!="function"&&K!=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,K,ee,"setState")},x.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};function T(){}T.prototype=x.prototype;function I(K,ee,Ce){this.props=K,this.context=ee,this.refs=E,this.updater=Ce||_}var R=I.prototype=new T;R.constructor=I,S(R,x.prototype),R.isPureReactComponent=!0;var P=Array.isArray,C=Object.prototype.hasOwnProperty,O={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function k(K,ee,Ce){var se,Se={},me=null,we=null;if(ee!=null)for(se in ee.ref!==void 0&&(we=ee.ref),ee.key!==void 0&&(me=""+ee.key),ee)C.call(ee,se)&&!j.hasOwnProperty(se)&&(Se[se]=ee[se]);var Oe=arguments.length-2;if(Oe===1)Se.children=Ce;else if(1>>1,ee=H[K];if(0>>1;Ka(Se,ne))mea(we,Se)?(H[K]=we,H[me]=ne,K=me):(H[K]=Se,H[se]=ne,K=se);else if(mea(we,ne))H[K]=we,H[me]=ne,K=me;else break e}}return te}function a(H,te){var ne=H.sortIndex-te.sortIndex;return ne!==0?ne:H.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,d=s.now();e.unstable_now=function(){return s.now()-d}}var f=[],u=[],h=1,g=null,y=3,_=!1,S=!1,E=!1,x=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(H){for(var te=r(u);te!==null;){if(te.callback===null)n(u);else if(te.startTime<=H)n(u),te.sortIndex=te.expirationTime,t(f,te);else break;te=r(u)}}function P(H){if(E=!1,R(H),!S)if(r(f)!==null)S=!0,Y(C);else{var te=r(u);te!==null&&X(P,te.startTime-H)}}function C(H,te){S=!1,E&&(E=!1,T(k),k=-1),_=!0;var ne=y;try{for(R(te),g=r(f);g!==null&&(!(g.expirationTime>te)||H&&!N());){var K=g.callback;if(typeof K=="function"){g.callback=null,y=g.priorityLevel;var ee=K(g.expirationTime<=te);te=e.unstable_now(),typeof ee=="function"?g.callback=ee:g===r(f)&&n(f),R(te)}else n(f);g=r(f)}if(g!==null)var Ce=!0;else{var se=r(u);se!==null&&X(P,se.startTime-te),Ce=!1}return Ce}finally{g=null,y=ne,_=!1}}var O=!1,j=null,k=-1,M=5,$=-1;function N(){return!(e.unstable_now()-$H||125K?(H.sortIndex=ne,t(u,H),r(f)===null&&H===r(u)&&(E?(T(k),k=-1):E=!0,X(P,ne-K))):(H.sortIndex=ee,t(f,H),S||_||(S=!0,Y(C))),H},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(H){var te=y;return function(){var ne=y;y=te;try{return H.apply(this,arguments)}finally{y=ne}}}}(oE)),oE}var fA;function NW(){return fA||(fA=1,aE.exports=DW()),aE.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 pA;function BW(){if(pA)return xo;pA=1;var e=Nx(),t=NW();function r(i){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+i,m=1;m"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,u=/^[: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]*$/,h={},g={};function y(i){return f.call(g,i)?!0:f.call(h,i)?!1:u.test(i)?g[i]=!0:(h[i]=!0,!1)}function _(i,l,m,b){if(m!==null&&m.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return b?!1:m!==null?!m.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function S(i,l,m,b){if(l===null||typeof l>"u"||_(i,l,m,b))return!0;if(b)return!1;if(m!==null)switch(m.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function E(i,l,m,b,F,L,W){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=b,this.attributeNamespace=F,this.mustUseProperty=m,this.propertyName=i,this.type=l,this.sanitizeURL=L,this.removeEmptyString=W}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){x[i]=new E(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var l=i[0];x[l]=new E(l,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){x[i]=new E(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){x[i]=new E(i,2,!1,i,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(i){x[i]=new E(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){x[i]=new E(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){x[i]=new E(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){x[i]=new E(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){x[i]=new E(i,5,!1,i.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function I(i){return i[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(i){var l=i.replace(T,I);x[l]=new E(l,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var l=i.replace(T,I);x[l]=new E(l,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var l=i.replace(T,I);x[l]=new E(l,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){x[i]=new E(i,1,!1,i.toLowerCase(),null,!1,!1)}),x.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){x[i]=new E(i,1,!1,i.toLowerCase(),null,!0,!0)});function R(i,l,m,b){var F=x.hasOwnProperty(l)?x[l]:null;(F!==null?F.type!==0:b||!(2re||F[W]!==L[re]){var ce=` +`+F[W].replace(" at new "," at ");return i.displayName&&ce.includes("")&&(ce=ce.replace("",i.displayName)),ce}while(1<=W&&0<=re);break}}}finally{Ce=!1,Error.prepareStackTrace=m}return(i=i?i.displayName||i.name:"")?ee(i):""}function Se(i){switch(i.tag){case 5:return ee(i.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return i=se(i.type,!1),i;case 11:return i=se(i.type.render,!1),i;case 1:return i=se(i.type,!0),i;default:return""}}function me(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case j:return"Fragment";case O:return"Portal";case M:return"Profiler";case k:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case N:return(i.displayName||"Context")+".Consumer";case $:return(i._context.displayName||"Context")+".Provider";case B:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return l=i.displayName||null,l!==null?l:me(i.type)||"Memo";case Y:l=i._payload,i=i._init;try{return me(i(l))}catch{}}return null}function we(i){var l=i.type;switch(i.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=l.render,i=i.displayName||i.name||"",l.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(l);case 8:return l===k?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function Oe(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ie(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Fe(i){var l=ie(i)?"checked":"value",m=Object.getOwnPropertyDescriptor(i.constructor.prototype,l),b=""+i[l];if(!i.hasOwnProperty(l)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var F=m.get,L=m.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return F.call(this)},set:function(W){b=""+W,L.call(this,W)}}),Object.defineProperty(i,l,{enumerable:m.enumerable}),{getValue:function(){return b},setValue:function(W){b=""+W},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function ke(i){i._valueTracker||(i._valueTracker=Fe(i))}function $e(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var m=l.getValue(),b="";return i&&(b=ie(i)?i.checked?"true":"false":i.value),i=b,i!==m?(l.setValue(i),!0):!1}function Te(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Be(i,l){var m=l.checked;return ne({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??i._wrapperState.initialChecked})}function Le(i,l){var m=l.defaultValue==null?"":l.defaultValue,b=l.checked!=null?l.checked:l.defaultChecked;m=Oe(l.value!=null?l.value:m),i._wrapperState={initialChecked:b,initialValue:m,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function dt(i,l){l=l.checked,l!=null&&R(i,"checked",l,!1)}function He(i,l){dt(i,l);var m=Oe(l.value),b=l.type;if(m!=null)b==="number"?(m===0&&i.value===""||i.value!=m)&&(i.value=""+m):i.value!==""+m&&(i.value=""+m);else if(b==="submit"||b==="reset"){i.removeAttribute("value");return}l.hasOwnProperty("value")?ae(i,l.type,m):l.hasOwnProperty("defaultValue")&&ae(i,l.type,Oe(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(i.defaultChecked=!!l.defaultChecked)}function Z(i,l,m){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var b=l.type;if(!(b!=="submit"&&b!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+i._wrapperState.initialValue,m||l===i.value||(i.value=l),i.defaultValue=l}m=i.name,m!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,m!==""&&(i.name=m)}function ae(i,l,m){(l!=="number"||Te(i.ownerDocument)!==i)&&(m==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+m&&(i.defaultValue=""+m))}var fe=Array.isArray;function ve(i,l,m,b){if(i=i.options,l){l={};for(var F=0;F"+l.valueOf().toString()+"",l=ot.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}});function Dt(i,l){if(l){var m=i.firstChild;if(m&&m===i.lastChild&&m.nodeType===3){m.nodeValue=l;return}}i.textContent=l}var Zt={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},Kt=["Webkit","ms","Moz","O"];Object.keys(Zt).forEach(function(i){Kt.forEach(function(l){l=l+i.charAt(0).toUpperCase()+i.substring(1),Zt[l]=Zt[i]})});function nt(i,l,m){return l==null||typeof l=="boolean"||l===""?"":m||typeof l!="number"||l===0||Zt.hasOwnProperty(i)&&Zt[i]?(""+l).trim():l+"px"}function Pt(i,l){i=i.style;for(var m in l)if(l.hasOwnProperty(m)){var b=m.indexOf("--")===0,F=nt(m,l[m],b);m==="float"&&(m="cssFloat"),b?i.setProperty(m,F):i[m]=F}}var Je=ne({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 ut(i,l){if(l){if(Je[i]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(r(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(r(61))}if(l.style!=null&&typeof l.style!="object")throw Error(r(62))}}function Ht(i,l){if(i.indexOf("-")===-1)return typeof l.is=="string";switch(i){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 Qt=null;function Or(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ur=null,Gr=null,kn=null;function zn(i){if(i=ta(i)){if(typeof Ur!="function")throw Error(r(280));var l=i.stateNode;l&&(l=ip(l),Ur(i.stateNode,i.type,l))}}function Io(i){Gr?kn?kn.push(i):kn=[i]:Gr=i}function ms(){if(Gr){var i=Gr,l=kn;if(kn=Gr=null,zn(i),l)for(i=0;i>>=0,i===0?32:31-(Uc(i)/Af|0)|0}var fu=64,Mf=4194304;function pu(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function vl(i,l){var m=i.pendingLanes;if(m===0)return 0;var b=0,F=i.suspendedLanes,L=i.pingedLanes,W=m&268435455;if(W!==0){var re=W&~F;re!==0?b=pu(re):(L&=W,L!==0&&(b=pu(L)))}else W=m&~F,W!==0?b=pu(W):L!==0&&(b=pu(L));if(b===0)return 0;if(l!==0&&l!==b&&(l&F)===0&&(F=b&-b,L=l&-l,F>=L||F===16&&(L&4194240)!==0))return l;if((b&4)!==0&&(b|=m&16),l=i.entangledLanes,l!==0)for(i=i.entanglements,l&=b;0m;m++)l.push(i);return l}function Wc(i,l,m){i.pendingLanes|=l,l!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,l=31-In(l),i[l]=m}function p0(i,l){var m=i.pendingLanes&~l;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=l,i.mutableReadLanes&=l,i.entangledLanes&=l,l=i.entanglements;var b=i.eventTimes;for(i=i.expirationTimes;0=zi),P0=" ",R0=!1;function k0(i,l){switch(i){case"keyup":return Da.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var bu=!1;function _u(i,l){switch(i){case"compositionend":return I0(l);case"keypress":return l.which!==32?null:(R0=!0,P0);case"textInput":return i=l.data,i===P0&&R0?null:i;default:return null}}function hS(i,l){if(bu)return i==="compositionend"||!Xc&&k0(i,l)?(i=Nv(),ai=Qc=Kr=null,bu=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:m,offset:l-i};i=b}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Gt(m)}}function pn(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?pn(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function jr(){for(var i=window,l=Te();l instanceof i.HTMLIFrameElement;){try{var m=typeof l.contentWindow.location.href=="string"}catch{m=!1}if(m)i=l.contentWindow;else break;l=Te(i.document)}return l}function Yc(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}function _S(i){var l=jr(),m=i.focusedElem,b=i.selectionRange;if(l!==m&&m&&m.ownerDocument&&pn(m.ownerDocument.documentElement,m)){if(b!==null&&Yc(m)){if(l=b.start,i=b.end,i===void 0&&(i=l),"selectionStart"in m)m.selectionStart=l,m.selectionEnd=Math.min(i,m.value.length);else if(i=(l=m.ownerDocument||document)&&l.defaultView||window,i.getSelection){i=i.getSelection();var F=m.textContent.length,L=Math.min(b.start,F);b=b.end===void 0?L:Math.min(b.end,F),!i.extend&&L>b&&(F=b,b=L,L=F),F=mr(m,L);var W=mr(m,b);F&&W&&(i.rangeCount!==1||i.anchorNode!==F.node||i.anchorOffset!==F.offset||i.focusNode!==W.node||i.focusOffset!==W.offset)&&(l=l.createRange(),l.setStart(F.node,F.offset),i.removeAllRanges(),L>b?(i.addRange(l),i.extend(W.node,W.offset)):(l.setEnd(W.node,W.offset),i.addRange(l)))}}for(l=[],i=m;i=i.parentNode;)i.nodeType===1&&l.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m=document.documentMode,qi=null,Jv=null,oi=null,wu=!1;function Jc(i,l,m){var b=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;wu||qi==null||qi!==Te(b)||(b=qi,"selectionStart"in b&&Yc(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),oi&&pt(oi,b)||(oi=b,b=rp(Jv,"onSelect"),0Iu||(i.current=nm[Iu],nm[Iu]=null,Iu--)}function Dr(i,l){Iu++,nm[Iu]=i.current,i.current=l}var Is={},ra=Ca(Is),Oa=Ca(!1),da=Is;function ju(i,l){var m=i.type.contextTypes;if(!m)return Is;var b=i.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===l)return b.__reactInternalMemoizedMaskedChildContext;var F={},L;for(L in m)F[L]=l[L];return b&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=l,i.__reactInternalMemoizedMaskedChildContext=F),F}function Pa(i){return i=i.childContextTypes,i!=null}function sp(){Wr(Oa),Wr(ra)}function B0(i,l,m){if(ra.current!==Is)throw Error(r(168));Dr(ra,l),Dr(Oa,m)}function z0(i,l,m){var b=i.stateNode;if(l=l.childContextTypes,typeof b.getChildContext!="function")return m;b=b.getChildContext();for(var F in b)if(!(F in l))throw Error(r(108,we(i)||"Unknown",F));return ne({},m,b)}function so(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Is,da=ra.current,Dr(ra,i),Dr(Oa,Oa.current),!0}function q0(i,l,m){var b=i.stateNode;if(!b)throw Error(r(169));m?(i=z0(i,l,da),b.__reactInternalMemoizedMergedChildContext=i,Wr(Oa),Wr(ra),Dr(ra,i)):Wr(Oa),Dr(Oa,m)}var Wi=null,lp=!1,am=!1;function U0(i){Wi===null?Wi=[i]:Wi.push(i)}function Sl(i){lp=!0,U0(i)}function js(){if(!am&&Wi!==null){am=!0;var i=0,l=br;try{var m=Wi;for(br=1;i>=W,F-=W,li=1<<32-In(l)+F|m<qt?(An=$t,$t=null):An=$t.sibling;var yr=We(Ee,$t,Pe[qt],Ze);if(yr===null){$t===null&&($t=An);break}i&&$t&&yr.alternate===null&&l(Ee,$t),pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr,$t=An}if(qt===Pe.length)return m(Ee,$t),Hr&&Cl(Ee,qt),Tt;if($t===null){for(;qtqt?(An=$t,$t=null):An=$t.sibling;var Us=We(Ee,$t,yr.value,Ze);if(Us===null){$t===null&&($t=An);break}i&&$t&&Us.alternate===null&&l(Ee,$t),pe=L(Us,pe,qt),Lt===null?Tt=Us:Lt.sibling=Us,Lt=Us,$t=An}if(yr.done)return m(Ee,$t),Hr&&Cl(Ee,qt),Tt;if($t===null){for(;!yr.done;qt++,yr=Pe.next())yr=Ye(Ee,yr.value,Ze),yr!==null&&(pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr);return Hr&&Cl(Ee,qt),Tt}for($t=b(Ee,$t);!yr.done;qt++,yr=Pe.next())yr=ht($t,Ee,qt,yr.value,Ze),yr!==null&&(i&&yr.alternate!==null&&$t.delete(yr.key===null?qt:yr.key),pe=L(yr,pe,qt),Lt===null?Tt=yr:Lt.sibling=yr,Lt=yr);return i&&$t.forEach(function(qS){return l(Ee,qS)}),Hr&&Cl(Ee,qt),Tt}function un(Ee,pe,Pe,Ze){if(typeof Pe=="object"&&Pe!==null&&Pe.type===j&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case C:e:{for(var Tt=Pe.key,Lt=pe;Lt!==null;){if(Lt.key===Tt){if(Tt=Pe.type,Tt===j){if(Lt.tag===7){m(Ee,Lt.sibling),pe=F(Lt,Pe.props.children),pe.return=Ee,Ee=pe;break e}}else if(Lt.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===Y&&G0(Tt)===Lt.type){m(Ee,Lt.sibling),pe=F(Lt,Pe.props),pe.ref=ud(Ee,Lt,Pe),pe.return=Ee,Ee=pe;break e}m(Ee,Lt);break}else l(Ee,Lt);Lt=Lt.sibling}Pe.type===j?(pe=Dl(Pe.props.children,Ee.mode,Ze,Pe.key),pe.return=Ee,Ee=pe):(Ze=Hp(Pe.type,Pe.key,Pe.props,null,Ee.mode,Ze),Ze.ref=ud(Ee,pe,Pe),Ze.return=Ee,Ee=Ze)}return W(Ee);case O:e:{for(Lt=Pe.key;pe!==null;){if(pe.key===Lt)if(pe.tag===4&&pe.stateNode.containerInfo===Pe.containerInfo&&pe.stateNode.implementation===Pe.implementation){m(Ee,pe.sibling),pe=F(pe,Pe.children||[]),pe.return=Ee,Ee=pe;break e}else{m(Ee,pe);break}else l(Ee,pe);pe=pe.sibling}pe=Gm(Pe,Ee.mode,Ze),pe.return=Ee,Ee=pe}return W(Ee);case Y:return Lt=Pe._init,un(Ee,pe,Lt(Pe._payload),Ze)}if(fe(Pe))return Ct(Ee,pe,Pe,Ze);if(te(Pe))return Rt(Ee,pe,Pe,Ze);Pl(Ee,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,pe!==null&&pe.tag===6?(m(Ee,pe.sibling),pe=F(pe,Pe),pe.return=Ee,Ee=pe):(m(Ee,pe),pe=Hm(Pe,Ee.mode,Ze),pe.return=Ee,Ee=pe),W(Ee)):m(Ee,pe)}return un}var an=im(!0),fp=im(!1),cd=Ca(null),qa=null,Ts=null,Au=null;function Gi(){Au=Ts=qa=null}function pp(i){var l=cd.current;Wr(cd),i._currentValue=l}function qn(i,l,m){for(;i!==null;){var b=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,b!==null&&(b.childLanes|=l)):b!==null&&(b.childLanes&l)!==l&&(b.childLanes|=l),i===m)break;i=i.return}}function As(i,l){qa=i,Au=Ts=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&l)!==0&&(pa=!0),i.firstContext=null)}function co(i){var l=i._currentValue;if(Au!==i)if(i={context:i,memoizedValue:l,next:null},Ts===null){if(qa===null)throw Error(r(308));Ts=i,qa.dependencies={lanes:0,firstContext:i}}else Ts=Ts.next=i;return l}var Rl=null;function sm(i){Rl===null?Rl=[i]:Rl.push(i)}function hp(i,l,m,b){var F=l.interleaved;return F===null?(m.next=m,sm(l)):(m.next=F.next,F.next=m),l.interleaved=m,Ki(i,b)}function Ki(i,l){i.lanes|=l;var m=i.alternate;for(m!==null&&(m.lanes|=l),m=i,i=i.return;i!==null;)i.childLanes|=l,m=i.alternate,m!==null&&(m.childLanes|=l),m=i,i=i.return;return m.tag===3?m.stateNode:null}var fo=!1;function vp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function K0(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Qi(i,l){return{eventTime:i,lane:l,tag:0,payload:null,callback:null,next:null}}function po(i,l,m){var b=i.updateQueue;if(b===null)return null;if(b=b.shared,(dr&2)!==0){var F=b.pending;return F===null?l.next=l:(l.next=F.next,F.next=l),b.pending=l,Ki(i,m)}return F=b.interleaved,F===null?(l.next=l,sm(b)):(l.next=F.next,F.next=l),b.interleaved=l,Ki(i,m)}function mp(i,l,m){if(l=l.updateQueue,l!==null&&(l=l.shared,(m&4194240)!==0)){var b=l.lanes;b&=i.pendingLanes,m|=b,l.lanes=m,Hc(i,m)}}function Q0(i,l){var m=i.updateQueue,b=i.alternate;if(b!==null&&(b=b.updateQueue,m===b)){var F=null,L=null;if(m=m.firstBaseUpdate,m!==null){do{var W={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};L===null?F=L=W:L=L.next=W,m=m.next}while(m!==null);L===null?F=L=l:L=L.next=l}else F=L=l;m={baseState:b.baseState,firstBaseUpdate:F,lastBaseUpdate:L,shared:b.shared,effects:b.effects},i.updateQueue=m;return}i=m.lastBaseUpdate,i===null?m.firstBaseUpdate=l:i.next=l,m.lastBaseUpdate=l}function Mu(i,l,m,b){var F=i.updateQueue;fo=!1;var L=F.firstBaseUpdate,W=F.lastBaseUpdate,re=F.shared.pending;if(re!==null){F.shared.pending=null;var ce=re,Ae=ce.next;ce.next=null,W===null?L=Ae:W.next=Ae,W=ce;var Qe=i.alternate;Qe!==null&&(Qe=Qe.updateQueue,re=Qe.lastBaseUpdate,re!==W&&(re===null?Qe.firstBaseUpdate=Ae:re.next=Ae,Qe.lastBaseUpdate=ce))}if(L!==null){var Ye=F.baseState;W=0,Qe=Ae=ce=null,re=L;do{var We=re.lane,ht=re.eventTime;if((b&We)===We){Qe!==null&&(Qe=Qe.next={eventTime:ht,lane:0,tag:re.tag,payload:re.payload,callback:re.callback,next:null});e:{var Ct=i,Rt=re;switch(We=l,ht=m,Rt.tag){case 1:if(Ct=Rt.payload,typeof Ct=="function"){Ye=Ct.call(ht,Ye,We);break e}Ye=Ct;break e;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=Rt.payload,We=typeof Ct=="function"?Ct.call(ht,Ye,We):Ct,We==null)break e;Ye=ne({},Ye,We);break e;case 2:fo=!0}}re.callback!==null&&re.lane!==0&&(i.flags|=64,We=F.effects,We===null?F.effects=[re]:We.push(re))}else ht={eventTime:ht,lane:We,tag:re.tag,payload:re.payload,callback:re.callback,next:null},Qe===null?(Ae=Qe=ht,ce=Ye):Qe=Qe.next=ht,W|=We;if(re=re.next,re===null){if(re=F.shared.pending,re===null)break;We=re,re=We.next,We.next=null,F.lastBaseUpdate=We,F.shared.pending=null}}while(!0);if(Qe===null&&(ce=Ye),F.baseState=ce,F.firstBaseUpdate=Ae,F.lastBaseUpdate=Qe,l=F.shared.interleaved,l!==null){F=l;do W|=F.lane,F=F.next;while(F!==l)}else L===null&&(F.shared.lanes=0);Ds|=W,i.lanes=W,i.memoizedState=Ye}}function lm(i,l,m){if(i=l.effects,l.effects=null,i!==null)for(l=0;lm?m:4,i(!0);var b=fm.transition;fm.transition={};try{i(!1),l()}finally{br=m,fm.transition=b}}function _m(){return ho().memoizedState}function wS(i,l,m){var b=zs(i);if(m={lane:b,action:m,hasEagerState:!1,eagerState:null,next:null},xm(i))fa(l,m);else if(m=hp(i,l,m,b),m!==null){var F=ma();Bo(m,i,b,F),Fo(m,l,b)}}function t_(i,l,m){var b=zs(i),F={lane:b,action:m,hasEagerState:!1,eagerState:null,next:null};if(xm(i))fa(l,F);else{var L=i.alternate;if(i.lanes===0&&(L===null||L.lanes===0)&&(L=l.lastRenderedReducer,L!==null))try{var W=l.lastRenderedState,re=L(W,m);if(F.hasEagerState=!0,F.eagerState=re,Ie(re,W)){var ce=l.interleaved;ce===null?(F.next=F,sm(l)):(F.next=ce.next,ce.next=F),l.interleaved=F;return}}catch{}finally{}m=hp(i,l,F,b),m!==null&&(F=ma(),Bo(m,i,b,F),Fo(m,l,b))}}function xm(i){var l=i.alternate;return i===en||l!==null&&l===en}function fa(i,l){hd=$u=!0;var m=i.pending;m===null?l.next=l:(l.next=m.next,m.next=l),i.pending=l}function Fo(i,l,m){if((m&4194240)!==0){var b=l.lanes;b&=i.pendingLanes,m|=b,l.lanes=m,Hc(i,m)}}var Ep={readContext:co,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useInsertionEffect:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useSyncExternalStore:oa,useId:oa,unstable_isNewReconciler:!1},SS={readContext:co,useCallback:function(i,l){return hi().memoizedState=[i,l===void 0?null:l],i},useContext:co,useEffect:Sp,useImperativeHandle:function(i,l,m){return m=m!=null?m.concat([i]):null,md(4194308,4,ym.bind(null,l,i),m)},useLayoutEffect:function(i,l){return md(4194308,4,i,l)},useInsertionEffect:function(i,l){return md(4,2,i,l)},useMemo:function(i,l){var m=hi();return l=l===void 0?null:l,i=i(),m.memoizedState=[i,l],i},useReducer:function(i,l,m){var b=hi();return l=m!==void 0?m(l):l,b.memoizedState=b.baseState=l,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:l},b.queue=i,i=i.dispatch=wS.bind(null,en,i),[b.memoizedState,i]},useRef:function(i){var l=hi();return i={current:i},l.memoizedState=i},useState:vd,useDebugValue:gd,useDeferredValue:function(i){return hi().memoizedState=i},useTransition:function(){var i=vd(!1),l=i[0];return i=e_.bind(null,i[1]),hi().memoizedState=i,[l,i]},useMutableSource:function(){},useSyncExternalStore:function(i,l,m){var b=en,F=hi();if(Hr){if(m===void 0)throw Error(r(407));m=m()}else{if(m=l(),Tn===null)throw Error(r(349));(Fs&30)!==0||mm(b,l,m)}F.memoizedState=m;var L={value:m,getSnapshot:l};return F.queue=L,Sp(Yi.bind(null,b,L,i),[i]),b.flags|=2048,Du(9,ka.bind(null,b,L,m,l),void 0,null),m},useId:function(){var i=hi(),l=Tn.identifierPrefix;if(Hr){var m=ui,b=li;m=(b&~(1<<32-In(b)-1)).toString(32)+m,l=":"+l+"R"+m,m=Il++,0<\/script>",i=i.removeChild(i.firstChild)):typeof b.is=="string"?i=W.createElement(m,{is:b.is}):(i=W.createElement(m),m==="select"&&(W=i,b.multiple?W.multiple=!0:b.size&&(W.size=b.size))):i=W.createElementNS(i,m),i[ii]=l,i[ks]=b,Vn(i,l,!1,!1),l.stateNode=i;e:{switch(W=Ht(m,b),m){case"dialog":Vr("cancel",i),Vr("close",i),F=b;break;case"iframe":case"object":case"embed":Vr("load",i),F=b;break;case"video":case"audio":for(F=0;FMl&&(l.flags|=128,b=!0,Ed(L,!1),l.lanes=4194304)}else{if(!b)if(i=kl(W),i!==null){if(l.flags|=128,b=!0,m=i.updateQueue,m!==null&&(l.updateQueue=m,l.flags|=4),Ed(L,!0),L.tail===null&&L.tailMode==="hidden"&&!W.alternate&&!Hr)return Wn(l),null}else 2*Ir()-L.renderingStartTime>Ml&&m!==1073741824&&(l.flags|=128,b=!0,Ed(L,!1),l.lanes=4194304);L.isBackwards?(W.sibling=l.child,l.child=W):(m=L.last,m!==null?m.sibling=W:l.child=W,L.last=W)}return L.tail!==null?(l=L.tail,L.rendering=l,L.tail=l.sibling,L.renderingStartTime=Ir(),l.sibling=null,m=Qr.current,Dr(Qr,b?m&1|2:m&1),l):(Wn(l),null);case 22:case 23:return Vm(),b=l.memoizedState!==null,i!==null&&i.memoizedState!==null!==b&&(l.flags|=8192),b&&(l.mode&1)!==0?(Va&1073741824)!==0&&(Wn(l),l.subtreeFlags&6&&(l.flags|=8192)):Wn(l),null;case 24:return null;case 25:return null}throw Error(r(156,l.tag))}function CS(i,l){switch(Ol(l),l.tag){case 1:return Pa(l.type)&&sp(),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return Ms(),Wr(Oa),Wr(ra),yp(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 5:return gp(l),null;case 13:if(Wr(Qr),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));di()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return Wr(Qr),null;case 4:return Ms(),null;case 10:return pp(l.type._context),null;case 22:case 23:return Vm(),null;case 24:return null;default:return null}}var Ap=!1,Xr=!1,ha=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Vu(i,l){var m=i.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(b){tn(i,l,b)}else m.current=null}function Cd(i,l,m){try{m()}catch(b){tn(i,l,b)}}var l_=!1;function OS(i,l){if(ad=Nf,i=jr(),Yc(i)){if("selectionStart"in i)var m={start:i.selectionStart,end:i.selectionEnd};else e:{m=(m=i.ownerDocument)&&m.defaultView||window;var b=m.getSelection&&m.getSelection();if(b&&b.rangeCount!==0){m=b.anchorNode;var F=b.anchorOffset,L=b.focusNode;b=b.focusOffset;try{m.nodeType,L.nodeType}catch{m=null;break e}var W=0,re=-1,ce=-1,Ae=0,Qe=0,Ye=i,We=null;t:for(;;){for(var ht;Ye!==m||F!==0&&Ye.nodeType!==3||(re=W+F),Ye!==L||b!==0&&Ye.nodeType!==3||(ce=W+b),Ye.nodeType===3&&(W+=Ye.nodeValue.length),(ht=Ye.firstChild)!==null;)We=Ye,Ye=ht;for(;;){if(Ye===i)break t;if(We===m&&++Ae===F&&(re=W),We===L&&++Qe===b&&(ce=W),(ht=Ye.nextSibling)!==null)break;Ye=We,We=Ye.parentNode}Ye=ht}m=re===-1||ce===-1?null:{start:re,end:ce}}else m=null}m=m||{start:0,end:0}}else m=null;for(wl={focusedElem:i,selectionRange:m},Nf=!1,bt=l;bt!==null;)if(l=bt,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,bt=i;else for(;bt!==null;){l=bt;try{var Ct=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(Ct!==null){var Rt=Ct.memoizedProps,un=Ct.memoizedState,Ee=l.stateNode,pe=Ee.getSnapshotBeforeUpdate(l.elementType===l.type?Rt:vo(l.type,Rt),un);Ee.__reactInternalSnapshotBeforeUpdate=pe}break;case 3:var Pe=l.stateNode.containerInfo;Pe.nodeType===1?Pe.textContent="":Pe.nodeType===9&&Pe.documentElement&&Pe.removeChild(Pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ze){tn(l,l.return,Ze)}if(i=l.sibling,i!==null){i.return=l.return,bt=i;break}bt=l.return}return Ct=l_,l_=!1,Ct}function es(i,l,m){var b=l.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var F=b=b.next;do{if((F.tag&i)===i){var L=F.destroy;F.destroy=void 0,L!==void 0&&Cd(l,m,L)}F=F.next}while(F!==b)}}function Od(i,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var m=l=l.next;do{if((m.tag&i)===i){var b=m.create;m.destroy=b()}m=m.next}while(m!==l)}}function Mp(i){var l=i.ref;if(l!==null){var m=i.stateNode;switch(i.tag){case 5:i=m;break;default:i=m}typeof l=="function"?l(i):l.current=i}}function u_(i){var l=i.alternate;l!==null&&(i.alternate=null,u_(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&(delete l[ii],delete l[ks],delete l[op],delete l[Q],delete l[ku])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function c_(i){return i.tag===5||i.tag===3||i.tag===4}function d_(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||c_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Am(i,l,m){var b=i.tag;if(b===5||b===6)i=i.stateNode,l?m.nodeType===8?m.parentNode.insertBefore(i,l):m.insertBefore(i,l):(m.nodeType===8?(l=m.parentNode,l.insertBefore(i,m)):(l=m,l.appendChild(i)),m=m._reactRootContainer,m!=null||l.onclick!==null||(l.onclick=np));else if(b!==4&&(i=i.child,i!==null))for(Am(i,l,m),i=i.sibling;i!==null;)Am(i,l,m),i=i.sibling}function Fp(i,l,m){var b=i.tag;if(b===5||b===6)i=i.stateNode,l?m.insertBefore(i,l):m.appendChild(i);else if(b!==4&&(i=i.child,i!==null))for(Fp(i,l,m),i=i.sibling;i!==null;)Fp(i,l,m),i=i.sibling}var jn=null,Lo=!1;function yi(i,l,m){for(m=m.child;m!==null;)Mm(i,l,m),m=m.sibling}function Mm(i,l,m){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(To,m)}catch{}switch(m.tag){case 5:Xr||Vu(m,l);case 6:var b=jn,F=Lo;jn=null,yi(i,l,m),jn=b,Lo=F,jn!==null&&(Lo?(i=jn,m=m.stateNode,i.nodeType===8?i.parentNode.removeChild(m):i.removeChild(m)):jn.removeChild(m.stateNode));break;case 18:jn!==null&&(Lo?(i=jn,m=m.stateNode,i.nodeType===8?rm(i.parentNode,m):i.nodeType===1&&rm(i,m),Cr(i)):rm(jn,m.stateNode));break;case 4:b=jn,F=Lo,jn=m.stateNode.containerInfo,Lo=!0,yi(i,l,m),jn=b,Lo=F;break;case 0:case 11:case 14:case 15:if(!Xr&&(b=m.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){F=b=b.next;do{var L=F,W=L.destroy;L=L.tag,W!==void 0&&((L&2)!==0||(L&4)!==0)&&Cd(m,l,W),F=F.next}while(F!==b)}yi(i,l,m);break;case 1:if(!Xr&&(Vu(m,l),b=m.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=m.memoizedProps,b.state=m.memoizedState,b.componentWillUnmount()}catch(re){tn(m,l,re)}yi(i,l,m);break;case 21:yi(i,l,m);break;case 22:m.mode&1?(Xr=(b=Xr)||m.memoizedState!==null,yi(i,l,m),Xr=b):yi(i,l,m);break;default:yi(i,l,m)}}function Wu(i){var l=i.updateQueue;if(l!==null){i.updateQueue=null;var m=i.stateNode;m===null&&(m=i.stateNode=new ha),l.forEach(function(b){var F=AS.bind(null,i,b);m.has(b)||(m.add(b),b.then(F,F))})}}function Ua(i,l){var m=l.deletions;if(m!==null)for(var b=0;bF&&(F=W),b&=~L}if(b=F,b=Ir()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*p_(b/1960))-b,10i?16:i,Bs===null)var b=!1;else{if(i=Bs,Bs=null,va=0,(dr&6)!==0)throw Error(r(331));var F=dr;for(dr|=4,bt=i.current;bt!==null;){var L=bt,W=L.child;if((bt.flags&16)!==0){var re=L.deletions;if(re!==null){for(var ce=0;ceIr()-Dm?$l(i,0):Dp|=m),ja(i,l)}function b_(i,l){l===0&&((i.mode&1)===0?l=1:(l=Mf,Mf<<=1,(Mf&130023424)===0&&(Mf=4194304)));var m=ma();i=Ki(i,l),i!==null&&(Wc(i,l,m),ja(i,m))}function TS(i){var l=i.memoizedState,m=0;l!==null&&(m=l.retryLane),b_(i,m)}function AS(i,l){var m=0;switch(i.tag){case 13:var b=i.stateNode,F=i.memoizedState;F!==null&&(m=F.retryLane);break;case 19:b=i.stateNode;break;default:throw Error(r(314))}b!==null&&b.delete(l),b_(i,m)}var __;__=function(i,l,m){if(i!==null)if(i.memoizedProps!==l.pendingProps||Oa.current)pa=!0;else{if((i.lanes&m)===0&&(l.flags&128)===0)return pa=!1,i_(i,l,m);pa=(i.flags&131072)!==0}else pa=!1,Hr&&(l.flags&1048576)!==0&&V0(l,cp,l.index);switch(l.lanes=0,l.tag){case 2:var b=l.type;Tp(i,l),i=l.pendingProps;var F=ju(l,ra.current);As(l,m),F=jl(null,l,b,i,F,m);var L=bp();return l.flags|=1,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,Pa(b)?(L=!0,so(l)):L=!1,l.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,vp(l),F.updater=Pp,l.stateNode=F,F._reactInternals=l,Sm(l,b,i,m),l=Im(null,l,b,!0,L,m)):(l.tag=0,Hr&&L&&sd(l),Un(null,l,F,m),l=l.child),l;case 16:b=l.elementType;e:{switch(Tp(i,l),i=l.pendingProps,F=b._init,b=F(b._payload),l.type=b,F=l.tag=FS(b),i=vo(b,i),F){case 0:l=Rm(null,l,b,i,m);break e;case 1:l=km(null,l,b,i,m);break e;case 11:l=a_(null,l,b,i,m);break e;case 14:l=Cm(null,l,b,vo(b.type,i),m);break e}throw Error(r(306,b,""))}return l;case 0:return b=l.type,F=l.pendingProps,F=l.elementType===b?F:vo(b,F),Rm(i,l,b,F,m);case 1:return b=l.type,F=l.pendingProps,F=l.elementType===b?F:vo(b,F),km(i,l,b,F,m);case 3:e:{if(o_(l),i===null)throw Error(r(387));b=l.pendingProps,L=l.memoizedState,F=L.element,K0(i,l),Mu(l,b,null,m);var W=l.memoizedState;if(b=W.element,L.isDehydrated)if(L={element:b,isDehydrated:!1,cache:W.cache,pendingSuspenseBoundaries:W.pendingSuspenseBoundaries,transitions:W.transitions},l.updateQueue.baseState=L,l.memoizedState=L,l.flags&256){F=Al(Error(r(423)),l),l=gi(i,l,b,m,F);break e}else if(b!==F){F=Al(Error(r(424)),l),l=gi(i,l,b,m,F);break e}else for(za=Rs(l.stateNode.containerInfo.firstChild),aa=l,Hr=!0,Mo=null,m=fp(l,null,b,m),l.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(di(),b===F){l=$o(i,l,m);break e}Un(i,l,b,m)}l=l.child}return l;case 5:return cm(l),i===null&&Ra(l),b=l.type,F=l.pendingProps,L=i!==null?i.memoizedProps:null,W=F.children,od(b,F)?W=null:L!==null&&od(b,L)&&(l.flags|=32),Pm(i,l),Un(i,l,W,m),l.child;case 6:return i===null&&Ra(l),null;case 13:return jp(i,l,m);case 4:return um(l,l.stateNode.containerInfo),b=l.pendingProps,i===null?l.child=an(l,null,b,m):Un(i,l,b,m),l.child;case 11:return b=l.type,F=l.pendingProps,F=l.elementType===b?F:vo(b,F),a_(i,l,b,F,m);case 7:return Un(i,l,l.pendingProps,m),l.child;case 8:return Un(i,l,l.pendingProps.children,m),l.child;case 12:return Un(i,l,l.pendingProps.children,m),l.child;case 10:e:{if(b=l.type._context,F=l.pendingProps,L=l.memoizedProps,W=F.value,Dr(cd,b._currentValue),b._currentValue=W,L!==null)if(Ie(L.value,W)){if(L.children===F.children&&!Oa.current){l=$o(i,l,m);break e}}else for(L=l.child,L!==null&&(L.return=l);L!==null;){var re=L.dependencies;if(re!==null){W=L.child;for(var ce=re.firstContext;ce!==null;){if(ce.context===b){if(L.tag===1){ce=Qi(-1,m&-m),ce.tag=2;var Ae=L.updateQueue;if(Ae!==null){Ae=Ae.shared;var Qe=Ae.pending;Qe===null?ce.next=ce:(ce.next=Qe.next,Qe.next=ce),Ae.pending=ce}}L.lanes|=m,ce=L.alternate,ce!==null&&(ce.lanes|=m),qn(L.return,m,l),re.lanes|=m;break}ce=ce.next}}else if(L.tag===10)W=L.type===l.type?null:L.child;else if(L.tag===18){if(W=L.return,W===null)throw Error(r(341));W.lanes|=m,re=W.alternate,re!==null&&(re.lanes|=m),qn(W,m,l),W=L.sibling}else W=L.child;if(W!==null)W.return=L;else for(W=L;W!==null;){if(W===l){W=null;break}if(L=W.sibling,L!==null){L.return=W.return,W=L;break}W=W.return}L=W}Un(i,l,F.children,m),l=l.child}return l;case 9:return F=l.type,b=l.pendingProps.children,As(l,m),F=co(F),b=b(F),l.flags|=1,Un(i,l,b,m),l.child;case 14:return b=l.type,F=vo(b,l.pendingProps),F=vo(b.type,F),Cm(i,l,b,F,m);case 15:return mi(i,l,l.type,l.pendingProps,m);case 17:return b=l.type,F=l.pendingProps,F=l.elementType===b?F:vo(b,F),Tp(i,l),l.tag=1,Pa(b)?(i=!0,so(l)):i=!1,As(l,m),Tl(l,b,F),Sm(l,b,F,m),Im(null,l,b,!0,i,m);case 19:return $s(i,l,m);case 22:return Om(i,l,m)}throw Error(r(156,l.tag))};function x_(i,l){return Zr(i,l)}function MS(i,l,m,b){this.tag=i,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function go(i,l,m,b){return new MS(i,l,m,b)}function Wp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function FS(i){if(typeof i=="function")return Wp(i)?1:0;if(i!=null){if(i=i.$$typeof,i===B)return 11;if(i===G)return 14}return 2}function zo(i,l){var m=i.alternate;return m===null?(m=go(i.tag,l,i.key,i.mode),m.elementType=i.elementType,m.type=i.type,m.stateNode=i.stateNode,m.alternate=i,i.alternate=m):(m.pendingProps=l,m.type=i.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=i.flags&14680064,m.childLanes=i.childLanes,m.lanes=i.lanes,m.child=i.child,m.memoizedProps=i.memoizedProps,m.memoizedState=i.memoizedState,m.updateQueue=i.updateQueue,l=i.dependencies,m.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},m.sibling=i.sibling,m.index=i.index,m.ref=i.ref,m}function Hp(i,l,m,b,F,L){var W=2;if(b=i,typeof i=="function")Wp(i)&&(W=1);else if(typeof i=="string")W=5;else e:switch(i){case j:return Dl(m.children,F,L,l);case k:W=8,F|=8;break;case M:return i=go(12,m,l,F|2),i.elementType=M,i.lanes=L,i;case q:return i=go(13,m,l,F),i.elementType=q,i.lanes=L,i;case V:return i=go(19,m,l,F),i.elementType=V,i.lanes=L,i;case X:return Gp(m,F,L,l);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case $:W=10;break e;case N:W=9;break e;case B:W=11;break e;case G:W=14;break e;case Y:W=16,b=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return l=go(W,m,l,F),l.elementType=i,l.type=b,l.lanes=L,l}function Dl(i,l,m,b){return i=go(7,i,b,l),i.lanes=m,i}function Gp(i,l,m,b){return i=go(22,i,b,l),i.elementType=X,i.lanes=m,i.stateNode={isHidden:!1},i}function Hm(i,l,m){return i=go(6,i,null,l),i.lanes=m,i}function Gm(i,l,m){return l=go(4,i.children!==null?i.children:[],i.key,l),l.lanes=m,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}function $S(i,l,m,b,F){this.tag=l,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vc(0),this.expirationTimes=Vc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vc(0),this.identifierPrefix=b,this.onRecoverableError=F,this.mutableSourceEagerHydrationData=null}function Km(i,l,m,b,F,L,W,re,ce){return i=new $S(i,l,m,re,ce),l===1?(l=1,L===!0&&(l|=8)):l=0,L=go(3,null,null,l),i.current=L,L.stateNode=i,L.memoizedState={element:b,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},vp(L),i}function LS(i,l,m){var b=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),nE.exports=BW(),nE.exports}var vA;function zW(){if(vA)return j_;vA=1;var e=e5();return j_.createRoot=e.createRoot,j_.hydrateRoot=e.hydrateRoot,j_}var qW=zW(),Ty={exports:{}};/** + * @license + * Lodash + * 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 + */var UW=Ty.exports,mA;function VW(){return mA||(mA=1,function(e,t){(function(){var r,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",d="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",u=500,h="__lodash_placeholder__",g=1,y=2,_=4,S=1,E=2,x=1,T=2,I=4,R=8,P=16,C=32,O=64,j=128,k=256,M=512,$=30,N="...",B=800,q=16,V=1,G=2,Y=3,X=1/0,H=9007199254740991,te=17976931348623157e292,ne=NaN,K=4294967295,ee=K-1,Ce=K>>>1,se=[["ary",j],["bind",x],["bindKey",T],["curry",R],["curryRight",P],["flip",M],["partial",C],["partialRight",O],["rearg",k]],Se="[object Arguments]",me="[object Array]",we="[object AsyncFunction]",Oe="[object Boolean]",ie="[object Date]",Fe="[object DOMException]",ke="[object Error]",$e="[object Function]",Te="[object GeneratorFunction]",Be="[object Map]",Le="[object Number]",dt="[object Null]",He="[object Object]",Z="[object Promise]",ae="[object Proxy]",fe="[object RegExp]",ve="[object Set]",be="[object String]",_e="[object Symbol]",De="[object Undefined]",Ge="[object WeakMap]",Mt="[object WeakSet]",et="[object ArrayBuffer]",ot="[object DataView]",it="[object Float32Array]",Dt="[object Float64Array]",Zt="[object Int8Array]",Kt="[object Int16Array]",nt="[object Int32Array]",Pt="[object Uint8Array]",Je="[object Uint8ClampedArray]",ut="[object Uint16Array]",Ht="[object Uint32Array]",Qt=/\b__p \+= '';/g,Or=/\b(__p \+=) '' \+/g,Ur=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gr=/&(?:amp|lt|gt|quot|#39);/g,kn=/[&<>"']/g,zn=RegExp(Gr.source),Io=RegExp(kn.source),ms=/<%-([\s\S]+?)%>/g,Bi=/<%([\s\S]+?)%>/g,ri=/<%=([\s\S]+?)%>/g,fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gs=/^\w*$/,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ye=/[\\^$.*+?()[\]{}|]/g,je=RegExp(ye.source),Ne=/^\s+/,lt=/\s/,kt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ft=/\{\n\/\* \[wrapped with (.+)\] \*/,ft=/,? & /,_t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mt=/[()=,{}\[\]\/\s]/,jt=/\\(\\)?/g,Wt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,er=/\w*$/,rn=/^[-+]0x[0-9a-f]+$/i,Er=/^0b[01]+$/i,sr=/^\[object .+?Constructor\]$/,It=/^0o[0-7]+$/i,Zr=/^(?:0|[1-9]\d*)$/,ys=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sa=/($^)/,ao=/['\n\r\u2028\u2029\\]/g,Ir="\\ud800-\\udfff",pl="\\u0300-\\u036f",jo="\\ufe20-\\ufe2f",hl="\\u20d0-\\u20ff",ni=pl+jo+hl,ur="\\u2700-\\u27bf",$r="a-z\\xdf-\\xf6\\xf8-\\xff",To="\\xac\\xb1\\xd7\\xf7",Jn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nn="\\u2000-\\u206f",In=" \\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",Uc="A-Z\\xc0-\\xd6\\xd8-\\xde",Af="\\ufe0e\\ufe0f",d0=To+Jn+nn+In,fu="['’]",Mf="["+Ir+"]",pu="["+d0+"]",vl="["+ni+"]",f0="\\d+",nS="["+ur+"]",Ff="["+$r+"]",Mv="[^"+Ir+d0+f0+ur+$r+Uc+"]",Vc="\\ud83c[\\udffb-\\udfff]",Wc="(?:"+vl+"|"+Vc+")",p0="[^"+Ir+"]",Hc="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",ml="["+Uc+"]",Fv="\\u200d",$f="(?:"+Ff+"|"+Mv+")",h0="(?:"+ml+"|"+Mv+")",$v="(?:"+fu+"(?:d|ll|m|re|s|t|ve))?",Lv="(?:"+fu+"(?:D|LL|M|RE|S|T|VE))?",Lf=Wc+"?",Gc="["+Af+"]?",bs="(?:"+Fv+"(?:"+[p0,Hc,br].join("|")+")"+Gc+Lf+")*",_s="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hu=Gc+Lf+bs,Kc="(?:"+[nS,Hc,br].join("|")+")"+hu,ws="(?:"+[p0+vl+"?",vl,Hc,br,Mf].join("|")+")",aS=RegExp(fu,"g"),v0=RegExp(vl,"g"),gl=RegExp(Vc+"(?="+Vc+")|"+ws+hu,"g"),oS=RegExp([ml+"?"+Ff+"+"+$v+"(?="+[pu,ml,"$"].join("|")+")",h0+"+"+Lv+"(?="+[pu,ml+$f,"$"].join("|")+")",ml+"?"+$f+"+"+$v,ml+"+"+Lv,xs,_s,f0,Kc].join("|"),"g"),m0=RegExp("["+Fv+Ir+ni+Af+"]"),Df=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,g0=["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"],iS=-1,Pr={};Pr[it]=Pr[Dt]=Pr[Zt]=Pr[Kt]=Pr[nt]=Pr[Pt]=Pr[Je]=Pr[ut]=Pr[Ht]=!0,Pr[Se]=Pr[me]=Pr[et]=Pr[Oe]=Pr[ot]=Pr[ie]=Pr[ke]=Pr[$e]=Pr[Be]=Pr[Le]=Pr[He]=Pr[fe]=Pr[ve]=Pr[be]=Pr[Ge]=!1;var Cr={};Cr[Se]=Cr[me]=Cr[et]=Cr[ot]=Cr[Oe]=Cr[ie]=Cr[it]=Cr[Dt]=Cr[Zt]=Cr[Kt]=Cr[nt]=Cr[Be]=Cr[Le]=Cr[He]=Cr[fe]=Cr[ve]=Cr[be]=Cr[_e]=Cr[Pt]=Cr[Je]=Cr[ut]=Cr[Ht]=!0,Cr[ke]=Cr[$e]=Cr[Ge]=!1;var vu={À:"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"},Nf={"&":"&","<":"<",">":">",'"':""","'":"'"},sS={"&":"&","<":"<",">":">",""":'"',"'":"'"},lS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dv=parseFloat,Bf=parseInt,zf=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl,y0=typeof self=="object"&&self&&self.Object===Object&&self,Kr=zf||y0||Function("return this")(),Qc=t&&!t.nodeType&&t,ai=Qc&&!0&&e&&!e.nodeType&&e,Nv=ai&&ai.exports===Qc,mu=Nv&&zf.process,ua=function(){try{var ge=ai&&ai.require&&ai.require("util").types;return ge||mu&&mu.binding&&mu.binding("util")}catch{}}(),Bv=ua&&ua.isArrayBuffer,Ea=ua&&ua.isDate,yl=ua&&ua.isMap,qf=ua&&ua.isRegExp,gu=ua&&ua.isSet,b0=ua&&ua.isTypedArray;function ca(ge,Me,Ie){switch(Ie.length){case 0:return ge.call(Me);case 1:return ge.call(Me,Ie[0]);case 2:return ge.call(Me,Ie[0],Ie[1]);case 3:return ge.call(Me,Ie[0],Ie[1],Ie[2])}return ge.apply(Me,Ie)}function zv(ge,Me,Ie,pt){for(var Gt=-1,mr=ge==null?0:ge.length;++Gt-1}function Uv(ge,Me,Ie){for(var pt=-1,Gt=ge==null?0:ge.length;++pt-1;);return Ie}function Xv(ge,Me){for(var Ie=ge.length;Ie--&&yu(Me,ge[Ie],0)>-1;);return Ie}function P0(ge,Me){for(var Ie=ge.length,pt=0;Ie--;)ge[Ie]===Me&&++pt;return pt}var R0=Hf(vu),k0=Hf(Nf);function I0(ge){return"\\"+lS[ge]}function bu(ge,Me){return ge==null?r:ge[Me]}function _u(ge){return m0.test(ge)}function hS(ge){return Df.test(ge)}function vS(ge){for(var Me,Ie=[];!(Me=ge.next()).done;)Ie.push(Me.value);return Ie}function Gf(ge){var Me=-1,Ie=Array(ge.size);return ge.forEach(function(pt,Gt){Ie[++Me]=[Gt,pt]}),Ie}function Yv(ge,Me){return function(Ie){return ge(Me(Ie))}}function oo(ge,Me){for(var Ie=-1,pt=ge.length,Gt=0,mr=[];++Ie-1}function z0(c,v){var w=this.__data__,D=aa(w,c);return D<0?(++this.size,w.push([c,v])):w[D][1]=v,this}da.prototype.clear=ju,da.prototype.delete=Pa,da.prototype.get=sp,da.prototype.has=B0,da.prototype.set=z0;function so(c){var v=-1,w=c==null?0:c.length;for(this.clear();++v=v?c:v)),c}function Ra(c,v,w,D,U,J){var oe,de=v&g,xe=v&y,ze=v&_;if(w&&(oe=U?w(c,D,U,J):w(c)),oe!==r)return oe;if(!cn(c))return c;var qe=Yt(c);if(qe){if(oe=Ed(c),!de)return fa(c,oe)}else{var Xe=Vn(c),ct=Xe==$e||Xe==Te;if(Ku(c))return bm(c,de);if(Xe==He||Xe==Se||ct&&!U){if(oe=xe||ct?{}:Wn(c),!de)return xe?SS(c,Mo(oe,c)):Ep(c,Hr(oe,c))}else{if(!Cr[Xe])return U?c:{};oe=ES(c,Xe,de)}}J||(J=new na);var At=J.get(c);if(At)return At;J.set(c,oe),WT(c)?c.forEach(function(Vt){oe.add(Ra(Vt,v,w,Vt,c,J))}):UT(c)&&c.forEach(function(Vt,cr){oe.set(cr,Ra(Vt,v,w,cr,c,J))});var Ut=ze?xe?xd:_d:xe?bo:sa,ar=qe?r:Ut(c);return Zn(ar||c,function(Vt,cr){ar&&(cr=Vt,Vt=c[cr]),Ol(oe,cr,Ra(Vt,v,w,cr,c,J))}),oe}function W0(c){var v=sa(c);return function(w){return ld(w,c,v)}}function ld(c,v,w){var D=w.length;if(c==null)return!D;for(c=jr(c);D--;){var U=w[D],J=v[U],oe=c[U];if(oe===r&&!(U in c)||!J(oe))return!1}return!0}function om(c,v,w){if(typeof c!="function")throw new io(s);return Wu(function(){c.apply(r,w)},v)}function di(c,v,w,D){var U=-1,J=Vf,oe=!0,de=c.length,xe=[],ze=v.length;if(!de)return xe;w&&(v=Lr(v,Da(w))),D?(J=Uv,oe=!1):v.length>=a&&(J=zi,oe=!1,v=new Sl(v));e:for(;++UU?0:U+w),D=D===r||D>U?U:rr(D),D<0&&(D+=U),D=w>D?0:GT(D);w0&&w(de)?v>1?an(de,v-1,w,D,U):Es(U,de):D||(U[U.length]=de)}return U}var fp=Op(),cd=Op(!0);function qa(c,v){return c&&fp(c,v,sa)}function Ts(c,v){return c&&cd(c,v,sa)}function Au(c,v){return Ss(v,function(w){return Bl(c[w])})}function Gi(c,v){v=vi(v,c);for(var w=0,D=v.length;c!=null&&wv}function co(c,v){return c!=null&&gr.call(c,v)}function Rl(c,v){return c!=null&&v in jr(c)}function sm(c,v,w){return c>=ea(v,w)&&c=120&&qe.length>=120)?new Sl(oe&&qe):r}qe=c[0];var Xe=-1,ct=de[0];e:for(;++Xe-1;)de!==c&&ep.call(de,xe,1),ep.call(c,xe,1);return c}function xn(c,v){for(var w=c?v.length:0,D=w-1;w--;){var U=v[w];if(w==D||U!==J){var J=U;Xr(U)?ep.call(c,U,1):xp(c,U)}}return c}function $u(c,v){return c+Os(nd()*(v-c+1))}function hd(c,v,w,D){for(var U=-1,J=hn(xl((v-c)/(w||1)),0),oe=Ie(J);J--;)oe[D?J:++U]=c,c+=w;return oe}function Il(c,v){var w="";if(!c||v<1||v>H)return w;do v%2&&(w+=c),v=Os(v/2),v&&(c+=c);while(v);return w}function tr(c,v){return Ua(Fp(c,v,_o),c+"")}function oa(c){return ui(eh(c))}function pm(c,v){var w=eh(c);return $p(w,Hi(v,0,w.length))}function jl(c,v,w,D){if(!cn(c))return c;v=vi(v,c);for(var U=-1,J=v.length,oe=J-1,de=c;de!=null&&++UU?0:U+v),w=w>U?U:w,w<0&&(w+=U),U=v>w?0:w-v>>>0,v>>>=0;for(var J=Ie(U);++D>>1,oe=c[J];oe!==null&&!qo(oe)&&(w?oe<=v:oe=a){var ze=v?null:a_(c);if(ze)return Cs(ze);oe=!1,U=zi,xe=new Sl}else xe=v?[]:de;e:for(;++D=D?c:ia(c,v,w)}var ym=L0||function(c){return Kr.clearTimeout(c)};function bm(c,v){if(v)return c.slice();var w=c.length,D=Zv?Zv(w):new c.constructor(w);return c.copy(D),D}function gd(c){var v=new c.constructor(c.byteLength);return new td(v).set(new td(c)),v}function Y0(c,v){var w=v?gd(c.buffer):c.buffer;return new c.constructor(w,c.byteOffset,c.byteLength)}function J0(c){var v=new c.constructor(c.source,er.exec(c));return v.lastIndex=c.lastIndex,v}function Z0(c){return Ba?jr(Ba.call(c)):{}}function e_(c,v){var w=v?gd(c.buffer):c.buffer;return new c.constructor(w,c.byteOffset,c.length)}function _m(c,v){if(c!==v){var w=c!==r,D=c===null,U=c===c,J=qo(c),oe=v!==r,de=v===null,xe=v===v,ze=qo(v);if(!de&&!ze&&!J&&c>v||J&&oe&&xe&&!de&&!ze||D&&oe&&xe||!w&&xe||!U)return 1;if(!D&&!J&&!ze&&c=de)return xe;var ze=w[D];return xe*(ze=="desc"?-1:1)}}return c.index-v.index}function t_(c,v,w,D){for(var U=-1,J=c.length,oe=w.length,de=-1,xe=v.length,ze=hn(J-oe,0),qe=Ie(xe+ze),Xe=!D;++de1?w[U-1]:r,oe=U>2?w[2]:r;for(J=c.length>3&&typeof J=="function"?(U--,J):r,oe&&ha(w[0],w[1],oe)&&(J=U<3?r:J,U=1),v=jr(v);++D-1?U[J?v[oe]:oe]:r}}function Rp(c){return gi(function(v){var w=v.length,D=w,U=ta.prototype.thru;for(c&&v.reverse();D--;){var J=v[D];if(typeof J!="function")throw new io(s);if(U&&!oe&&Uu(J)=="wrapper")var oe=new ta([],!0)}for(D=oe?D:w;++D1&&fr.reverse(),qe&&xede))return!1;var ze=J.get(c),qe=J.get(v);if(ze&&qe)return ze==v&&qe==c;var Xe=-1,ct=!0,At=w&E?new Sl:r;for(J.set(c,v),J.set(v,c);++Xe1?"& ":"")+v[D],v=v.join(w>2?", ":" "),c.replace(kt,`{ +/* [wrapped with `+v+`] */ +`)}function Ap(c){return Yt(c)||Md(c)||!!($0&&c&&c[$0])}function Xr(c,v){var w=typeof c;return v=v??H,!!v&&(w=="number"||w!="symbol"&&Zr.test(c))&&c>-1&&c%1==0&&c0){if(++v>=B)return arguments[0]}else v=0;return c.apply(r,arguments)}}function $p(c,v){var w=-1,D=c.length,U=D-1;for(v=v===r?D:v;++w1?c[v-1]:r;return w=typeof w=="function"?(c.pop(),w):r,tn(c,w)});function Wp(c){var v=Q(c);return v.__chain__=!0,v}function FS(c,v){return v(c),c}function zo(c,v){return v(c)}var Hp=gi(function(c){var v=c.length,w=v?c[0]:0,D=this.__wrapped__,U=function(J){return dp(J,c)};return v>1||this.__actions__.length||!(D instanceof Xt)||!Xr(w)?this.thru(U):(D=D.slice(w,+w+(v?1:0)),D.__actions__.push({func:zo,args:[U],thisArg:r}),new ta(D,this.__chain__).thru(function(J){return v&&!J.length&&J.push(r),J}))});function Dl(){return Wp(this)}function Gp(){return new ta(this.value(),this.__chain__)}function Hm(){this.__values__===r&&(this.__values__=HT(this.value()));var c=this.__index__>=this.__values__.length,v=c?r:this.__values__[this.__index__++];return{done:c,value:v}}function Gm(){return this}function $S(c){for(var v,w=this;w instanceof si;){var D=p_(w);D.__index__=0,D.__values__=r,v?U.__wrapped__=D:v=D;var U=D;w=w.__wrapped__}return U.__wrapped__=c,v}function Km(){var c=this.__wrapped__;if(c instanceof Xt){var v=c;return this.__actions__.length&&(v=new Xt(this)),v=v.reverse(),v.__actions__.push({func:zo,args:[qp],thisArg:r}),new ta(v,this.__chain__)}return this.thru(qp)}function LS(){return Du(this.__wrapped__,this.__actions__)}var w_=Cp(function(c,v,w){gr.call(c,w)?++c[w]:ci(c,w,1)});function S_(c,v,w){var D=Yt(c)?qv:ud;return w&&ha(c,v,w)&&(v=r),D(c,Nt(v,3))}function Kp(c,v){var w=Yt(c)?Ss:im;return w(c,Nt(v,3))}var Qp=Al(Ds),E_=Al(Rd);function Qm(c,v){return an(Nl(c,v),1)}function DS(c,v){return an(Nl(c,v),X)}function C_(c,v,w){return w=w===r?1:rr(w),an(Nl(c,v),w)}function Xp(c,v){var w=Yt(c)?Zn:fi;return w(c,Nt(v,3))}function Td(c,v){var w=Yt(c)?Uf:H0;return w(c,Nt(v,3))}var Xm=Cp(function(c,v,w){gr.call(c,w)?c[w].push(v):ci(c,w,[v])});function Yp(c,v,w,D){c=yo(c)?c:eh(c),w=w&&!D?rr(w):0;var U=c.length;return w<0&&(w=hn(U+w,0)),R_(c)?w<=U&&c.indexOf(v,w)>-1:!!U&&yu(c,v,w)>-1}var O_=tr(function(c,v,w){var D=-1,U=typeof v=="function",J=yo(c)?Ie(c.length):[];return fi(c,function(oe){J[++D]=U?ca(v,oe,w):fo(oe,v,w)}),J}),NS=Cp(function(c,v,w){ci(c,w,v)});function Nl(c,v){var w=Yt(c)?Lr:cm;return w(c,Nt(v,3))}function BS(c,v,w,D){return c==null?[]:(Yt(v)||(v=v==null?[]:[v]),w=D?r:w,Yt(w)||(w=w==null?[]:[w]),pd(c,v,w))}var Ad=Cp(function(c,v,w){c[w?0:1].push(v)},function(){return[[],[]]});function zS(c,v,w){var D=Yt(c)?Vv:E0,U=arguments.length<3;return D(c,Nt(v,4),w,U,fi)}function Jp(c,v,w){var D=Yt(c)?uS:E0,U=arguments.length<3;return D(c,Nt(v,4),w,U,H0)}function i(c,v){var w=Yt(c)?Ss:im;return w(c,Ze(Nt(v,3)))}function l(c){var v=Yt(c)?ui:oa;return v(c)}function m(c,v,w){(w?ha(c,v,w):v===r)?v=1:v=rr(v);var D=Yt(c)?Cl:pm;return D(c,v)}function b(c){var v=Yt(c)?V0:ho;return v(c)}function F(c){if(c==null)return 0;if(yo(c))return R_(c)?bl(c):c.length;var v=Vn(c);return v==Be||v==ve?c.size:Xi(c).length}function L(c,v,w){var D=Yt(c)?Wv:hm;return w&&ha(c,v,w)&&(v=r),D(c,Nt(v,3))}var W=tr(function(c,v){if(c==null)return[];var w=v.length;return w>1&&ha(c,v[0],v[1])?v=[]:w>2&&ha(v[0],v[1],v[2])&&(v=[v[0]]),pd(c,an(v,1),[])}),re=Vr||function(){return Kr.Date.now()};function ce(c,v){if(typeof v!="function")throw new io(s);return c=rr(c),function(){if(--c<1)return v.apply(this,arguments)}}function Ae(c,v,w){return v=w?r:v,v=c&&v==null?c.length:v,mi(c,j,r,r,r,r,v)}function Qe(c,v){var w;if(typeof v!="function")throw new io(s);return c=rr(c),function(){return--c>0&&(w=v.apply(this,arguments)),c<=1&&(v=r),w}}var Ye=tr(function(c,v,w){var D=x;if(w.length){var U=oo(w,Zi(Ye));D|=C}return mi(c,D,v,w,U)}),We=tr(function(c,v,w){var D=x|T;if(w.length){var U=oo(w,Zi(We));D|=C}return mi(v,D,c,w,U)});function ht(c,v,w){v=w?r:v;var D=mi(c,R,r,r,r,r,r,v);return D.placeholder=ht.placeholder,D}function Ct(c,v,w){v=w?r:v;var D=mi(c,P,r,r,r,r,r,v);return D.placeholder=Ct.placeholder,D}function Rt(c,v,w){var D,U,J,oe,de,xe,ze=0,qe=!1,Xe=!1,ct=!0;if(typeof c!="function")throw new io(s);v=bi(v)||0,cn(w)&&(qe=!!w.leading,Xe="maxWait"in w,J=Xe?hn(bi(w.maxWait)||0,v):J,ct="trailing"in w?!!w.trailing:ct);function At(En){var ns=D,ql=U;return D=U=r,ze=En,oe=c.apply(ql,ns),oe}function Ut(En){return ze=En,de=Wu(cr,v),qe?At(En):oe}function ar(En){var ns=En-xe,ql=En-ze,oA=v-ns;return Xe?ea(oA,J-ql):oA}function Vt(En){var ns=En-xe,ql=En-ze;return xe===r||ns>=v||ns<0||Xe&&ql>=J}function cr(){var En=re();if(Vt(En))return fr(En);de=Wu(cr,ar(En))}function fr(En){return de=r,ct&&D?At(En):(D=U=r,oe)}function Uo(){de!==r&&ym(de),ze=0,D=xe=U=de=r}function Wa(){return de===r?oe:fr(re())}function Vo(){var En=re(),ns=Vt(En);if(D=arguments,U=this,xe=En,ns){if(de===r)return Ut(xe);if(Xe)return ym(de),de=Wu(cr,v),At(xe)}return de===r&&(de=Wu(cr,v)),oe}return Vo.cancel=Uo,Vo.flush=Wa,Vo}var un=tr(function(c,v){return om(c,1,v)}),Ee=tr(function(c,v,w){return om(c,bi(v)||0,w)});function pe(c){return mi(c,M)}function Pe(c,v){if(typeof c!="function"||v!=null&&typeof v!="function")throw new io(s);var w=function(){var D=arguments,U=v?v.apply(this,D):D[0],J=w.cache;if(J.has(U))return J.get(U);var oe=c.apply(this,D);return w.cache=J.set(U,oe)||J,oe};return w.cache=new(Pe.Cache||so),w}Pe.Cache=so;function Ze(c){if(typeof c!="function")throw new io(s);return function(){var v=arguments;switch(v.length){case 0:return!c.call(this);case 1:return!c.call(this,v[0]);case 2:return!c.call(this,v[0],v[1]);case 3:return!c.call(this,v[0],v[1],v[2])}return!c.apply(this,v)}}function Tt(c){return Qe(2,c)}var Lt=X0(function(c,v){v=v.length==1&&Yt(v[0])?Lr(v[0],Da(Nt())):Lr(an(v,1),Da(Nt()));var w=v.length;return tr(function(D){for(var U=-1,J=ea(D.length,w);++U=v}),Md=vp(function(){return arguments}())?vp:function(c){return mn(c)&&gr.call(c,"callee")&&!Zf.call(c,"callee")},Yt=Ie.isArray,SV=Bv?Da(Bv):K0;function yo(c){return c!=null&&P_(c.length)&&!Bl(c)}function Sn(c){return mn(c)&&yo(c)}function EV(c){return c===!0||c===!1||mn(c)&&qn(c)==Oe}var Ku=tm||ZS,CV=Ea?Da(Ea):Qi;function OV(c){return mn(c)&&c.nodeType===1&&!Ym(c)}function PV(c){if(c==null)return!0;if(yo(c)&&(Yt(c)||typeof c=="string"||typeof c.splice=="function"||Ku(c)||Zp(c)||Md(c)))return!c.length;var v=Vn(c);if(v==Be||v==ve)return!c.size;if(es(c))return!Xi(c).length;for(var w in c)if(gr.call(c,w))return!1;return!0}function RV(c,v){return po(c,v)}function kV(c,v,w){w=typeof w=="function"?w:r;var D=w?w(c,v):r;return D===r?po(c,v,r,w):!!D}function US(c){if(!mn(c))return!1;var v=qn(c);return v==ke||v==Fe||typeof c.message=="string"&&typeof c.name=="string"&&!Ym(c)}function IV(c){return typeof c=="number"&&Eu(c)}function Bl(c){if(!cn(c))return!1;var v=qn(c);return v==$e||v==Te||v==we||v==ae}function qT(c){return typeof c=="number"&&c==rr(c)}function P_(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=H}function cn(c){var v=typeof c;return c!=null&&(v=="object"||v=="function")}function mn(c){return c!=null&&typeof c=="object"}var UT=yl?Da(yl):Q0;function jV(c,v){return c===v||Mu(c,v,Sd(v))}function TV(c,v,w){return w=typeof w=="function"?w:r,Mu(c,v,Sd(v),w)}function AV(c){return VT(c)&&c!=+c}function MV(c){if(OS(c))throw new Gt(o);return lm(c)}function FV(c){return c===null}function $V(c){return c==null}function VT(c){return typeof c=="number"||mn(c)&&qn(c)==Le}function Ym(c){if(!mn(c)||qn(c)!=He)return!1;var v=Ao(c);if(v===null)return!0;var w=gr.call(v,"constructor")&&v.constructor;return typeof w=="function"&&w instanceof w&&Jc.call(w)==Yf}var VS=qf?Da(qf):dd;function LV(c){return qT(c)&&c>=-9007199254740991&&c<=H}var WT=gu?Da(gu):pi;function R_(c){return typeof c=="string"||!Yt(c)&&mn(c)&&qn(c)==be}function qo(c){return typeof c=="symbol"||mn(c)&&qn(c)==_e}var Zp=b0?Da(b0):fd;function DV(c){return c===r}function NV(c){return mn(c)&&Vn(c)==Ge}function BV(c){return mn(c)&&qn(c)==Mt}var zV=Ip(Ms),qV=Ip(function(c,v){return c<=v});function HT(c){if(!c)return[];if(yo(c))return R_(c)?Na(c):fa(c);if(Vi&&c[Vi])return vS(c[Vi]());var v=Vn(c),w=v==Be?Gf:v==ve?Cs:eh;return w(c)}function zl(c){if(!c)return c===0?c:0;if(c=bi(c),c===X||c===-1/0){var v=c<0?-1:1;return v*te}return c===c?c:0}function rr(c){var v=zl(c),w=v%1;return v===v?w?v-w:v:0}function GT(c){return c?Hi(rr(c),0,K):0}function bi(c){if(typeof c=="number")return c;if(qo(c))return ne;if(cn(c)){var v=typeof c.valueOf=="function"?c.valueOf():c;c=cn(v)?v+"":v}if(typeof c!="string")return c===0?c:+c;c=C0(c);var w=Er.test(c);return w||It.test(c)?Bf(c.slice(2),w?2:8):rn.test(c)?ne:+c}function KT(c){return Fo(c,bo(c))}function UV(c){return c?Hi(rr(c),-9007199254740991,H):c===0?c:0}function Tr(c){return c==null?"":ka(c)}var VV=Bu(function(c,v){if(es(v)||yo(v)){Fo(v,sa(v),c);return}for(var w in v)gr.call(v,w)&&Ol(c,w,v[w])}),QT=Bu(function(c,v){Fo(v,bo(v),c)}),k_=Bu(function(c,v,w,D){Fo(v,bo(v),c,D)}),WV=Bu(function(c,v,w,D){Fo(v,sa(v),c,D)}),HV=gi(dp);function GV(c,v){var w=ku(c);return v==null?w:Hr(w,v)}var KV=tr(function(c,v){c=jr(c);var w=-1,D=v.length,U=D>2?v[2]:r;for(U&&ha(v[0],v[1],U)&&(D=1);++w1),J}),Fo(c,xd(c),w),D&&(w=Ra(w,g|y|_,Rm));for(var U=v.length;U--;)xp(w,v[U]);return w});function f8(c,v){return YT(c,Ze(Nt(v)))}var p8=gi(function(c,v){return c==null?{}:fm(c,v)});function YT(c,v){if(c==null)return{};var w=Lr(xd(c),function(D){return[D]});return v=Nt(v),Fs(c,w,function(D,U){return v(D,U[0])})}function h8(c,v,w){v=vi(v,c);var D=-1,U=v.length;for(U||(U=1,c=r);++Dv){var D=c;c=v,v=D}if(w||c%1||v%1){var U=nd();return ea(c+U*(v-c+Dv("1e-"+((U+"").length-1))),v)}return $u(c,v)}var C8=Tl(function(c,v,w){return v=v.toLowerCase(),c+(w?eA(v):v)});function eA(c){return GS(Tr(c).toLowerCase())}function tA(c){return c=Tr(c),c&&c.replace(ys,R0).replace(v0,"")}function O8(c,v,w){c=Tr(c),v=ka(v);var D=c.length;w=w===r?D:Hi(rr(w),0,D);var U=w;return w-=v.length,w>=0&&c.slice(w,U)==v}function P8(c){return c=Tr(c),c&&Io.test(c)?c.replace(kn,k0):c}function R8(c){return c=Tr(c),c&&je.test(c)?c.replace(ye,"\\$&"):c}var k8=Tl(function(c,v,w){return c+(w?"-":"")+v.toLowerCase()}),I8=Tl(function(c,v,w){return c+(w?" ":"")+v.toLowerCase()}),j8=wm("toLowerCase");function T8(c,v,w){c=Tr(c),v=rr(v);var D=v?bl(c):0;if(!v||D>=v)return c;var U=(v-D)/2;return bd(Os(U),w)+c+bd(xl(U),w)}function A8(c,v,w){c=Tr(c),v=rr(v);var D=v?bl(c):0;return v&&D>>0,w?(c=Tr(c),c&&(typeof v=="string"||v!=null&&!VS(v))&&(v=ka(v),!v&&_u(c))?Ji(Na(c),0,w):c.split(v,w)):[]}var B8=Tl(function(c,v,w){return c+(w?" ":"")+GS(v)});function z8(c,v,w){return c=Tr(c),w=w==null?0:Hi(rr(w),0,c.length),v=ka(v),c.slice(w,w+v.length)==v}function q8(c,v,w){var D=Q.templateSettings;w&&ha(c,v,w)&&(v=r),c=Tr(c),v=k_({},v,D,Om);var U=k_({},v.imports,D.imports,Om),J=sa(U),oe=Xc(U,J),de,xe,ze=0,qe=v.interpolate||Sa,Xe="__p += '",ct=Yc((v.escape||Sa).source+"|"+qe.source+"|"+(qe===ri?Wt:Sa).source+"|"+(v.evaluate||Sa).source+"|$","g"),At="//# sourceURL="+(gr.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++iS+"]")+` +`;c.replace(ct,function(Vt,cr,fr,Uo,Wa,Vo){return fr||(fr=Uo),Xe+=c.slice(ze,Vo).replace(ao,I0),cr&&(de=!0,Xe+=`' + +__e(`+cr+`) + +'`),Wa&&(xe=!0,Xe+=`'; +`+Wa+`; +__p += '`),fr&&(Xe+=`' + +((__t = (`+fr+`)) == null ? '' : __t) + +'`),ze=Vo+Vt.length,Vt}),Xe+=`'; +`;var Ut=gr.call(v,"variable")&&v.variable;if(!Ut)Xe=`with (obj) { +`+Xe+` +} +`;else if(mt.test(Ut))throw new Gt(d);Xe=(xe?Xe.replace(Qt,""):Xe).replace(Or,"$1").replace(Ur,"$1;"),Xe="function("+(Ut||"obj")+`) { +`+(Ut?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(de?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Xe+`return __p +}`;var ar=nA(function(){return mr(J,At+"return "+Xe).apply(r,oe)});if(ar.source=Xe,US(ar))throw ar;return ar}function U8(c){return Tr(c).toLowerCase()}function V8(c){return Tr(c).toUpperCase()}function W8(c,v,w){if(c=Tr(c),c&&(w||v===r))return C0(c);if(!c||!(v=ka(v)))return c;var D=Na(c),U=Na(v),J=O0(D,U),oe=Xv(D,U)+1;return Ji(D,J,oe).join("")}function H8(c,v,w){if(c=Tr(c),c&&(w||v===r))return c.slice(0,Qf(c)+1);if(!c||!(v=ka(v)))return c;var D=Na(c),U=Xv(D,Na(v))+1;return Ji(D,0,U).join("")}function G8(c,v,w){if(c=Tr(c),c&&(w||v===r))return c.replace(Ne,"");if(!c||!(v=ka(v)))return c;var D=Na(c),U=O0(D,Na(v));return Ji(D,U).join("")}function K8(c,v){var w=$,D=N;if(cn(v)){var U="separator"in v?v.separator:U;w="length"in v?rr(v.length):w,D="omission"in v?ka(v.omission):D}c=Tr(c);var J=c.length;if(_u(c)){var oe=Na(c);J=oe.length}if(w>=J)return c;var de=w-bl(D);if(de<1)return D;var xe=oe?Ji(oe,0,de).join(""):c.slice(0,de);if(U===r)return xe+D;if(oe&&(de+=xe.length-de),VS(U)){if(c.slice(de).search(U)){var ze,qe=xe;for(U.global||(U=Yc(U.source,Tr(er.exec(U))+"g")),U.lastIndex=0;ze=U.exec(qe);)var Xe=ze.index;xe=xe.slice(0,Xe===r?de:Xe)}}else if(c.indexOf(ka(U),de)!=de){var ct=xe.lastIndexOf(U);ct>-1&&(xe=xe.slice(0,ct))}return xe+D}function Q8(c){return c=Tr(c),c&&zn.test(c)?c.replace(Gr,j0):c}var X8=Tl(function(c,v,w){return c+(w?" ":"")+v.toUpperCase()}),GS=wm("toUpperCase");function rA(c,v,w){return c=Tr(c),v=w?r:v,v===r?hS(c)?yS(c):dS(c):c.match(v)||[]}var nA=tr(function(c,v){try{return ca(c,r,v)}catch(w){return US(w)?w:new Gt(w)}}),Y8=gi(function(c,v){return Zn(v,function(w){w=No(w),ci(c,w,Ye(c[w],c))}),c});function J8(c){var v=c==null?0:c.length,w=Nt();return c=v?Lr(c,function(D){if(typeof D[1]!="function")throw new io(s);return[w(D[0]),D[1]]}):[],tr(function(D){for(var U=-1;++UH)return[];var w=K,D=ea(c,K);v=Nt(v),c-=K;for(var U=Qv(D,v);++w0||v<0)?new Xt(w):(c<0?w=w.takeRight(-c):c&&(w=w.drop(c)),v!==r&&(v=rr(v),w=v<0?w.dropRight(-v):w.take(v-c)),w)},Xt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Xt.prototype.toArray=function(){return this.take(K)},qa(Xt.prototype,function(c,v){var w=/^(?:filter|find|map|reject)|While$/.test(v),D=/^(?:head|last)$/.test(v),U=Q[D?"take"+(v=="last"?"Right":""):v],J=D||/^find/.test(v);U&&(Q.prototype[v]=function(){var oe=this.__wrapped__,de=D?[1]:arguments,xe=oe instanceof Xt,ze=de[0],qe=xe||Yt(oe),Xe=function(cr){var fr=U.apply(Q,Es([cr],de));return D&&ct?fr[0]:fr};qe&&w&&typeof ze=="function"&&ze.length!=1&&(xe=qe=!1);var ct=this.__chain__,At=!!this.__actions__.length,Ut=J&&!ct,ar=xe&&!At;if(!J&&qe){oe=ar?oe:new Xt(this);var Vt=c.apply(oe,de);return Vt.__actions__.push({func:zo,args:[Xe],thisArg:r}),new ta(Vt,ct)}return Ut&&ar?c.apply(this,de):(Vt=this.thru(Xe),Ut?D?Vt.value()[0]:Vt.value():Vt)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(c){var v=qi[c],w=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",D=/^(?:pop|shift)$/.test(c);Q.prototype[c]=function(){var U=arguments;if(D&&!this.__chain__){var J=this.value();return v.apply(Yt(J)?J:[],U)}return this[w](function(oe){return v.apply(Yt(oe)?oe:[],U)})}}),qa(Xt.prototype,function(c,v){var w=Q[v];if(w){var D=w.name+"";gr.call(Pu,D)||(Pu[D]=[]),Pu[D].push({name:v,func:w})}}),Pu[qu(r,T).name]=[{name:"wrapper",func:r}],Xt.prototype.clone=ip,Xt.prototype.reverse=nm,Xt.prototype.value=Iu,Q.prototype.at=Hp,Q.prototype.chain=Dl,Q.prototype.commit=Gp,Q.prototype.next=Hm,Q.prototype.plant=$S,Q.prototype.reverse=Km,Q.prototype.toJSON=Q.prototype.valueOf=Q.prototype.value=LS,Q.prototype.first=Q.prototype.head,Vi&&(Q.prototype[Vi]=Gm),Q},xu=bS();ai?((ai.exports=xu)._=xu,Qc._=xu):Kr._=xu}).call(UW)}(Ty,Ty.exports)),Ty.exports}var $b=VW(),iE,gA;function t5(){if(gA)return iE;gA=1;var e=Object.prototype.toString;return iE=function(r){var n=e.call(r),a=n==="[object Arguments]";return a||(a=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),a},iE}var sE,yA;function WW(){if(yA)return sE;yA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=t5(),a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),s=a.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(y){var _=y.constructor;return _&&_.prototype===y},u={$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},h=function(){if(typeof window>"u")return!1;for(var y in window)try{if(!u["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{f(window[y])}catch{return!0}}catch{return!0}return!1}(),g=function(y){if(typeof window>"u"||!h)return f(y);try{return f(y)}catch{return!1}};e=function(_){var S=_!==null&&typeof _=="object",E=r.call(_)==="[object Function]",x=n(_),T=S&&r.call(_)==="[object String]",I=[];if(!S&&!E&&!x)throw new TypeError("Object.keys called on a non-object");var R=s&&E;if(T&&_.length>0&&!t.call(_,0))for(var P=0;P<_.length;++P)I.push(String(P));if(x&&_.length>0)for(var C=0;C<_.length;++C)I.push(String(C));else for(var O in _)!(R&&O==="prototype")&&t.call(_,O)&&I.push(String(O));if(o)for(var j=g(_),k=0;k"u"||!E?e:E(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":_&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&E?E(""[Symbol.iterator]()):e,"%Symbol%":_?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":y,"%TypedArray%":T,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(E)try{null.error}catch(X){var R=E(E(X));I["%Error.prototype%"]=R}var P=function X(H){var te;if(H==="%AsyncFunction%")te=u("async function () {}");else if(H==="%GeneratorFunction%")te=u("function* () {}");else if(H==="%AsyncGeneratorFunction%")te=u("async function* () {}");else if(H==="%AsyncGenerator%"){var ne=X("%AsyncGeneratorFunction%");ne&&(te=ne.prototype)}else if(H==="%AsyncIteratorPrototype%"){var K=X("%AsyncGenerator%");K&&E&&(te=E(K.prototype))}return I[H]=te,te},C={__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"]},O=qI(),j=n5(),k=O.call(Function.call,Array.prototype.concat),M=O.call(Function.apply,Array.prototype.splice),$=O.call(Function.call,String.prototype.replace),N=O.call(Function.call,String.prototype.slice),B=O.call(Function.call,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,G=function(H){var te=N(H,0,1),ne=N(H,-1);if(te==="%"&&ne!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(ne==="%"&&te!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var K=[];return $(H,q,function(ee,Ce,se,Se){K[K.length]=se?$(Se,V,"$1"):Ce||ee}),K},Y=function(H,te){var ne=H,K;if(j(C,ne)&&(K=C[ne],ne="%"+K[0]+"%"),j(I,ne)){var ee=I[ne];if(ee===x&&(ee=P(ne)),typeof ee>"u"&&!te)throw new s("intrinsic "+H+" exists, but is not available. Please file an issue!");return{alias:K,name:ne,value:ee}}throw new o("intrinsic "+H+" does not exist!")};return wE=function(H,te){if(typeof H!="string"||H.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof te!="boolean")throw new s('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,H)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ne=G(H),K=ne.length>0?ne[0]:"",ee=Y("%"+K+"%",te),Ce=ee.name,se=ee.value,Se=!1,me=ee.alias;me&&(K=me[0],M(ne,k([0,1],me)));for(var we=1,Oe=!0;we=ne.length){var $e=h(se,ie);Oe=!!$e,Oe&&"get"in $e&&!("originalValue"in $e.get)?se=$e.get:se=se[ie]}else Oe=j(se,ie),se=se[ie];Oe&&!Se&&(I[Ce]=se)}}return se},wE}var SE,MA;function UI(){if(MA)return SE;MA=1;var e=Db(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return SE=t,SE}var EE,FA;function a5(){if(FA)return EE;FA=1;var e=Db(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return EE=t,EE}var CE,$A;function o5(){if($A)return CE;$A=1;var e=UI(),t=r5(),r=Lb(),n=a5();return CE=function(o,s,d){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,y=!!n&&n(o,s);if(e)e(o,s,{configurable:h===null&&y?y.configurable:!h,enumerable:f===null&&y?y.enumerable:!f,value:d,writable:u===null&&y?y.writable:!u});else if(g||!f&&!u&&!h)o[s]=d;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},CE}var OE,LA;function i5(){if(LA)return OE;LA=1;var e=UI(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},OE=t,OE}var PE,DA;function s5(){if(DA)return PE;DA=1;var e=HW(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,a=o5(),o=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},s=i5()(),d=function(u,h,g,y){if(h in u){if(y===!0){if(u[h]===g)return}else if(!o(y)||!y())return}s?a(u,h,g,!0):a(u,h,g)},f=function(u,h){var g=arguments.length>2?arguments[2]:{},y=e(h);t&&(y=n.call(y,Object.getOwnPropertySymbols(h)));for(var _=0;_4294967295||o(f)!==f)throw new a("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],h=!0,g=!0;if("length"in d&&n){var y=n(d,"length");y&&!y.configurable&&(h=!1),y&&!y.writable&&(g=!1)}return(h||g||!u)&&(r?t(d,"length",f,!0,!0):t(d,"length",f)),d},kE}var BA;function l5(){return BA||(BA=1,function(e){var t=qI(),r=Db(),n=r7(),a=Lb(),o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),d=r("%Reflect.apply%",!0)||t.call(s,o),f=UI(),u=r("%Math.max%");e.exports=function(y){if(typeof y!="function")throw new a("a function is required");var _=d(t,s,arguments);return n(_,1+u(0,y.length-(arguments.length-1)),!0)};var h=function(){return d(t,o,arguments)};f?f(e.exports,"apply",{value:h}):e.exports.apply=h}(RE)),RE.exports}var IE,zA;function n7(){if(zA)return IE;zA=1;var e=Lb();return IE=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},IE}var jE,qA;function a7(){if(qA)return jE;qA=1;var e=Db(),t=l5(),r=t(e("String.prototype.indexOf"));return jE=function(a,o){var s=e(a,!!o);return typeof s=="function"&&r(a,".prototype.")>-1?t(s):s},jE}var TE,UA;function u5(){if(UA)return TE;UA=1;var e=n7(),t=a7(),r=t("Object.prototype.propertyIsEnumerable"),n=t("Array.prototype.push");return TE=function(o){var s=e(o),d=[];for(var f in s)r(s,f)&&n(d,[f,s[f]]);return d},TE}var AE,VA;function c5(){if(VA)return AE;VA=1;var e=u5();return AE=function(){return typeof Object.entries=="function"?Object.entries:e},AE}var ME,WA;function o7(){if(WA)return ME;WA=1;var e=c5(),t=s5();return ME=function(){var n=e();return t(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},ME}var FE,HA;function i7(){if(HA)return FE;HA=1;var e=s5(),t=l5(),r=u5(),n=c5(),a=o7(),o=t(n(),Object);return e(o,{getPolyfill:n,implementation:r,shim:a}),FE=o,FE}var $E,GA;function s7(){if(GA)return $E;GA=1;var e=function(){};return $E=e,$E}var LE,KA;function l7(){if(KA)return LE;KA=1;var e=i7(),t=s7(),r=n5(),n=function(P){t(!1,P)},a=String.prototype.replace,o=String.prototype.split,s="||||",d=function(R){var P=R%100,C=P%10;return P!==11&&C===1?0:2<=C&&C<=4&&!(P>=12&&P<=14)?1:2},f={pluralTypes:{arabic:function(R){if(R<3)return R;var P=R%100;return P>=3&&P<=10?3:P>=11?4:5},bosnian_serbian:d,chinese:function(){return 0},croatian:d,french:function(R){return R>=2?1:0},german:function(R){return R!==1?1:0},russian:d,lithuanian:function(R){return R%10===1&&R%100!==11?0:R%10>=2&&R%10<=9&&(R%100<11||R%100>19)?1:2},czech:function(R){return R===1?0:R>=2&&R<=4?1:2},polish:function(R){if(R===1)return 0;var P=R%10;return 2<=P&&P<=4&&(R%100<10||R%100>=20)?1:2},icelandic:function(R){return R%10!==1||R%100===11?1:0},slovenian:function(R){var P=R%100;return P===1?0:P===2?1:P===3||P===4?2:3},romanian:function(R){if(R===1)return 0;var P=R%100;return R===0||P>=2&&P<=19?1:2},ukrainian:d},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"],ukrainian:["uk","ua"]}};function u(R){for(var P={},C=e(R),O=0;O{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hf=typeof window>"u"||"Deno"in globalThis;function Ja(){}function c7(e,t){return typeof e=="function"?e(t):e}function x2(e){return typeof e=="number"&&e>=0&&e!==1/0}function f5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wh(e,t){return typeof e=="function"?e(t):e}function ss(e,t){return typeof e=="function"?e(t):e}function XA(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:s,stale:d}=e;if(s){if(n){if(t.queryHash!==WI(s,t.options))return!1}else if(!db(t.queryKey,s))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||a&&a!==t.state.fetchStatus||o&&!o(t))}function YA(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Pc(t.options.mutationKey)!==Pc(o))return!1}else if(!db(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function WI(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pc)(e)}function Pc(e){return JSON.stringify(e,(t,r)=>w2(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function db(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>db(e[r],t[r])):!1}function p5(e,t){if(e===t)return e;const r=JA(e)&&JA(t);if(r||w2(e)&&w2(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),s=o.length,d=r?[]:{};let f=0;for(let u=0;u{setTimeout(t,e)})}function S2(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?p5(e,t):t}function f7(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function p7(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var HI=Symbol();function h5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===HI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function v5(e,t){return typeof e=="function"?e(...t):!!e}var rf,lc,Dh,UB,h7=(UB=class extends pv{constructor(){super();Bt(this,rf);Bt(this,lc);Bt(this,Dh);xt(this,Dh,t=>{if(!hf&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ue(this,lc)||this.setEventListener(ue(this,Dh))}onUnsubscribe(){var t;this.hasListeners()||((t=ue(this,lc))==null||t.call(this),xt(this,lc,void 0))}setEventListener(t){var r;xt(this,Dh,t),(r=ue(this,lc))==null||r.call(this),xt(this,lc,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){ue(this,rf)!==t&&(xt(this,rf,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof ue(this,rf)=="boolean"?ue(this,rf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rf=new WeakMap,lc=new WeakMap,Dh=new WeakMap,UB),GI=new h7,Nh,uc,Bh,VB,v7=(VB=class extends pv{constructor(){super();Bt(this,Nh,!0);Bt(this,uc);Bt(this,Bh);xt(this,Bh,t=>{if(!hf&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){ue(this,uc)||this.setEventListener(ue(this,Bh))}onUnsubscribe(){var t;this.hasListeners()||((t=ue(this,uc))==null||t.call(this),xt(this,uc,void 0))}setEventListener(t){var r;xt(this,Bh,t),(r=ue(this,uc))==null||r.call(this),xt(this,uc,t(this.setOnline.bind(this)))}setOnline(t){ue(this,Nh)!==t&&(xt(this,Nh,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return ue(this,Nh)}},Nh=new WeakMap,uc=new WeakMap,Bh=new WeakMap,VB),R1=new v7;function E2(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function m7(e){return Math.min(1e3*2**e,3e4)}function m5(e){return(e??"online")==="online"?R1.isOnline():!0}var g5=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function DE(e){return e instanceof g5}function y5(e){let t=!1,r=0,n=!1,a;const o=E2(),s=E=>{var x;n||(y(new g5(E)),(x=e.abort)==null||x.call(e))},d=()=>{t=!0},f=()=>{t=!1},u=()=>GI.isFocused()&&(e.networkMode==="always"||R1.isOnline())&&e.canRun(),h=()=>m5(e.networkMode)&&e.canRun(),g=E=>{var x;n||(n=!0,(x=e.onSuccess)==null||x.call(e,E),a==null||a(),o.resolve(E))},y=E=>{var x;n||(n=!0,(x=e.onError)==null||x.call(e,E),a==null||a(),o.reject(E))},_=()=>new Promise(E=>{var x;a=T=>{(n||u())&&E(T)},(x=e.onPause)==null||x.call(e)}).then(()=>{var E;a=void 0,n||(E=e.onContinue)==null||E.call(e)}),S=()=>{if(n)return;let E;const x=r===0?e.initialPromise:void 0;try{E=x??e.fn()}catch(T){E=Promise.reject(T)}Promise.resolve(E).then(g).catch(T=>{var O;if(n)return;const I=e.retry??(hf?0:3),R=e.retryDelay??m7,P=typeof R=="function"?R(r,T):R,C=I===!0||typeof I=="number"&&ru()?void 0:_()).then(()=>{t?y(T):S()})})};return{promise:o,cancel:s,continue:()=>(a==null||a(),o),cancelRetry:d,continueRetry:f,canStart:h,start:()=>(h()?S():_().then(S),o)}}var g7=e=>setTimeout(e,0);function y7(){let e=[],t=0,r=d=>{d()},n=d=>{d()},a=g7;const o=d=>{t?e.push(d):a(()=>{r(d)})},s=()=>{const d=e;e=[],d.length&&a(()=>{n(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||s()}return f},batchCalls:d=>(...f)=>{o(()=>{d(...f)})},schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d},setScheduler:d=>{a=d}}}var Pn=y7(),nf,WB,b5=(WB=class{constructor(){Bt(this,nf)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),x2(this.gcTime)&&xt(this,nf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(hf?1/0:5*60*1e3))}clearGcTimeout(){ue(this,nf)&&(clearTimeout(ue(this,nf)),xt(this,nf,void 0))}},nf=new WeakMap,WB),zh,qh,xi,af,Aa,Tb,of,as,Hl,HB,b7=(HB=class extends b5{constructor(t){super();Bt(this,as);Bt(this,zh);Bt(this,qh);Bt(this,xi);Bt(this,af);Bt(this,Aa);Bt(this,Tb);Bt(this,of);xt(this,of,!1),xt(this,Tb,t.defaultOptions),this.setOptions(t.options),this.observers=[],xt(this,af,t.client),xt(this,xi,ue(this,af).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xt(this,zh,_7(this.options)),this.state=t.state??ue(this,zh),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ue(this,Aa))==null?void 0:t.promise}setOptions(t){this.options={...ue(this,Tb),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ue(this,xi).remove(this)}setData(t,r){const n=S2(this.state.data,t,this.options);return or(this,as,Hl).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){or(this,as,Hl).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=ue(this,Aa))==null?void 0:n.promise;return(a=ue(this,Aa))==null||a.cancel(t),r?r.then(Ja).catch(Ja):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ue(this,zh))}isActive(){return this.observers.some(t=>ss(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===HI||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!f5(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=ue(this,Aa))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=ue(this,Aa))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ue(this,xi).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(ue(this,Aa)&&(ue(this,of)?ue(this,Aa).cancel({revert:!0}):ue(this,Aa).cancelRetry()),this.scheduleGc()),ue(this,xi).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||or(this,as,Hl).call(this,{type:"invalidate"})}fetch(t,r){var f,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(ue(this,Aa))return ue(this,Aa).continueRetry(),ue(this,Aa).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(y=>y.options.queryFn);g&&this.setOptions(g.options)}const n=new AbortController,a=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(xt(this,of,!0),n.signal)})},o=()=>{const g=h5(this.options,r),y={client:ue(this,af),queryKey:this.queryKey,meta:this.meta};return a(y),xt(this,of,!1),this.options.persister?this.options.persister(g,y,this):g(y)},s={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ue(this,af),state:this.state,fetchFn:o};a(s),(f=this.options.behavior)==null||f.onFetch(s,this),xt(this,qh,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&or(this,as,Hl).call(this,{type:"fetch",meta:(h=s.fetchOptions)==null?void 0:h.meta});const d=g=>{var y,_,S,E;DE(g)&&g.silent||or(this,as,Hl).call(this,{type:"error",error:g}),DE(g)||((_=(y=ue(this,xi).config).onError)==null||_.call(y,g,this),(E=(S=ue(this,xi).config).onSettled)==null||E.call(S,this.state.data,g,this)),this.scheduleGc()};return xt(this,Aa,y5({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:g=>{var y,_,S,E;if(g===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(x){d(x);return}(_=(y=ue(this,xi).config).onSuccess)==null||_.call(y,g,this),(E=(S=ue(this,xi).config).onSettled)==null||E.call(S,g,this.state.error,this),this.scheduleGc()},onError:d,onFail:(g,y)=>{or(this,as,Hl).call(this,{type:"failed",failureCount:g,error:y})},onPause:()=>{or(this,as,Hl).call(this,{type:"pause"})},onContinue:()=>{or(this,as,Hl).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),ue(this,Aa).start()}},zh=new WeakMap,qh=new WeakMap,xi=new WeakMap,af=new WeakMap,Aa=new WeakMap,Tb=new WeakMap,of=new WeakMap,as=new WeakSet,Hl=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,..._5(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return DE(a)&&a.revert&&ue(this,qh)?{...ue(this,qh),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Pn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),ue(this,xi).notify({query:this,type:"updated",action:t})})},HB);function _5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:m5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _7(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Gs,GB,x7=(GB=class extends pv{constructor(t={}){super();Bt(this,Gs);this.config=t,xt(this,Gs,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??WI(a,r);let s=this.get(o);return s||(s=new b7({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){ue(this,Gs).has(t.queryHash)||(ue(this,Gs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=ue(this,Gs).get(t.queryHash);r&&(t.destroy(),r===t&&ue(this,Gs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Pn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ue(this,Gs).get(t)}getAll(){return[...ue(this,Gs).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>XA(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>XA(t,n)):r}notify(t){Pn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Pn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Pn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gs=new WeakMap,GB),Ks,Qa,sf,Qs,tc,KB,w7=(KB=class extends b5{constructor(t){super();Bt(this,Qs);Bt(this,Ks);Bt(this,Qa);Bt(this,sf);this.mutationId=t.mutationId,xt(this,Qa,t.mutationCache),xt(this,Ks,[]),this.state=t.state||x5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ue(this,Ks).includes(t)||(ue(this,Ks).push(t),this.clearGcTimeout(),ue(this,Qa).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xt(this,Ks,ue(this,Ks).filter(r=>r!==t)),this.scheduleGc(),ue(this,Qa).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ue(this,Ks).length||(this.state.status==="pending"?this.scheduleGc():ue(this,Qa).remove(this))}continue(){var t;return((t=ue(this,sf))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,d,f,u,h,g,y,_,S,E,x,T,I,R,P,C,O,j,k;const r=()=>{or(this,Qs,tc).call(this,{type:"continue"})};xt(this,sf,y5({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,$)=>{or(this,Qs,tc).call(this,{type:"failed",failureCount:M,error:$})},onPause:()=>{or(this,Qs,tc).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ue(this,Qa).canRun(this)}));const n=this.state.status==="pending",a=!ue(this,sf).canStart();try{if(n)r();else{or(this,Qs,tc).call(this,{type:"pending",variables:t,isPaused:a}),await((s=(o=ue(this,Qa).config).onMutate)==null?void 0:s.call(o,t,this));const $=await((f=(d=this.options).onMutate)==null?void 0:f.call(d,t));$!==this.state.context&&or(this,Qs,tc).call(this,{type:"pending",context:$,variables:t,isPaused:a})}const M=await ue(this,sf).start();return await((h=(u=ue(this,Qa).config).onSuccess)==null?void 0:h.call(u,M,t,this.state.context,this)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,M,t,this.state.context)),await((S=(_=ue(this,Qa).config).onSettled)==null?void 0:S.call(_,M,null,this.state.variables,this.state.context,this)),await((x=(E=this.options).onSettled)==null?void 0:x.call(E,M,null,t,this.state.context)),or(this,Qs,tc).call(this,{type:"success",data:M}),M}catch(M){try{throw await((I=(T=ue(this,Qa).config).onError)==null?void 0:I.call(T,M,t,this.state.context,this)),await((P=(R=this.options).onError)==null?void 0:P.call(R,M,t,this.state.context)),await((O=(C=ue(this,Qa).config).onSettled)==null?void 0:O.call(C,void 0,M,this.state.variables,this.state.context,this)),await((k=(j=this.options).onSettled)==null?void 0:k.call(j,void 0,M,t,this.state.context)),M}finally{or(this,Qs,tc).call(this,{type:"error",error:M})}}finally{ue(this,Qa).runNext(this)}}},Ks=new WeakMap,Qa=new WeakMap,sf=new WeakMap,Qs=new WeakSet,tc=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Pn.batch(()=>{ue(this,Ks).forEach(n=>{n.onMutationUpdate(t)}),ue(this,Qa).notify({mutation:this,type:"updated",action:t})})},KB);function x5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kl,os,Ab,QB,S7=(QB=class extends pv{constructor(t={}){super();Bt(this,Kl);Bt(this,os);Bt(this,Ab);this.config=t,xt(this,Kl,new Set),xt(this,os,new Map),xt(this,Ab,0)}build(t,r,n){const a=new w7({mutationCache:this,mutationId:++I_(this,Ab)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){ue(this,Kl).add(t);const r=T_(t);if(typeof r=="string"){const n=ue(this,os).get(r);n?n.push(t):ue(this,os).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ue(this,Kl).delete(t)){const r=T_(t);if(typeof r=="string"){const n=ue(this,os).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&ue(this,os).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=T_(t);if(typeof r=="string"){const n=ue(this,os).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=T_(t);if(typeof r=="string"){const a=(n=ue(this,os).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Pn.batch(()=>{ue(this,Kl).forEach(t=>{this.notify({type:"removed",mutation:t})}),ue(this,Kl).clear(),ue(this,os).clear()})}getAll(){return Array.from(ue(this,Kl))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>YA(r,n))}findAll(t={}){return this.getAll().filter(r=>YA(t,r))}notify(t){Pn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Pn.batch(()=>Promise.all(t.map(r=>r.continue().catch(Ja))))}},Kl=new WeakMap,os=new WeakMap,Ab=new WeakMap,QB);function T_(e){var t;return(t=e.options.scope)==null?void 0:t.id}function eM(e){return{onFetch:(t,r)=>{var h,g,y,_,S;const n=t.options,a=(y=(g=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:g.fetchMore)==null?void 0:y.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],s=((S=t.state.data)==null?void 0:S.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const u=async()=>{let E=!1;const x=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},T=h5(t.options,t.fetchOptions),I=async(R,P,C)=>{if(E)return Promise.reject();if(P==null&&R.pages.length)return Promise.resolve(R);const O={client:t.client,queryKey:t.queryKey,pageParam:P,direction:C?"backward":"forward",meta:t.options.meta};x(O);const j=await T(O),{maxPages:k}=t.options,M=C?p7:f7;return{pages:M(R.pages,j,k),pageParams:M(R.pageParams,P,k)}};if(a&&o.length){const R=a==="backward",P=R?E7:tM,C={pages:o,pageParams:s},O=P(n,C);d=await I(C,O,R)}else{const R=e??o.length;do{const P=f===0?s[0]??n.initialPageParam:tM(n,d);if(f>0&&P==null)break;d=await I(d,P),f++}while(f{var E,x;return(x=(E=t.options).persister)==null?void 0:x.call(E,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function tM(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function E7(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var bn,cc,dc,Uh,Vh,fc,Wh,Hh,XB,C7=(XB=class{constructor(e={}){Bt(this,bn);Bt(this,cc);Bt(this,dc);Bt(this,Uh);Bt(this,Vh);Bt(this,fc);Bt(this,Wh);Bt(this,Hh);xt(this,bn,e.queryCache||new x7),xt(this,cc,e.mutationCache||new S7),xt(this,dc,e.defaultOptions||{}),xt(this,Uh,new Map),xt(this,Vh,new Map),xt(this,fc,0)}mount(){I_(this,fc)._++,ue(this,fc)===1&&(xt(this,Wh,GI.subscribe(async e=>{e&&(await this.resumePausedMutations(),ue(this,bn).onFocus())})),xt(this,Hh,R1.subscribe(async e=>{e&&(await this.resumePausedMutations(),ue(this,bn).onOnline())})))}unmount(){var e,t;I_(this,fc)._--,ue(this,fc)===0&&((e=ue(this,Wh))==null||e.call(this),xt(this,Wh,void 0),(t=ue(this,Hh))==null||t.call(this),xt(this,Hh,void 0))}isFetching(e){return ue(this,bn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ue(this,cc).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ue(this,bn).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=ue(this,bn).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(wh(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return ue(this,bn).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=ue(this,bn).get(n.queryHash),o=a==null?void 0:a.state.data,s=c7(t,o);if(s!==void 0)return ue(this,bn).build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Pn.batch(()=>ue(this,bn).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ue(this,bn).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=ue(this,bn);Pn.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=ue(this,bn);return Pn.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Pn.batch(()=>ue(this,bn).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Ja).catch(Ja)}invalidateQueries(e,t={}){return Pn.batch(()=>(ue(this,bn).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Pn.batch(()=>ue(this,bn).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Ja)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Ja)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=ue(this,bn).build(this,t);return r.isStaleByTime(wh(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ja).catch(Ja)}fetchInfiniteQuery(e){return e.behavior=eM(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ja).catch(Ja)}ensureInfiniteQueryData(e){return e.behavior=eM(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return R1.isOnline()?ue(this,cc).resumePausedMutations():Promise.resolve()}getQueryCache(){return ue(this,bn)}getMutationCache(){return ue(this,cc)}getDefaultOptions(){return ue(this,dc)}setDefaultOptions(e){xt(this,dc,e)}setQueryDefaults(e,t){ue(this,Uh).set(Pc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ue(this,Uh).values()],r={};return t.forEach(n=>{db(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){ue(this,Vh).set(Pc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ue(this,Vh).values()],r={};return t.forEach(n=>{db(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ue(this,dc).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=WI(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===HI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ue(this,dc).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ue(this,bn).clear(),ue(this,cc).clear()}},bn=new WeakMap,cc=new WeakMap,dc=new WeakMap,Uh=new WeakMap,Vh=new WeakMap,fc=new WeakMap,Wh=new WeakMap,Hh=new WeakMap,XB),So,pr,Mb,Xa,lf,Gh,pc,hc,Fb,Kh,Qh,uf,cf,vc,Xh,Fr,Ay,C2,O2,P2,R2,k2,I2,j2,w5,YB,O7=(YB=class extends pv{constructor(t,r){super();Bt(this,Fr);Bt(this,So);Bt(this,pr);Bt(this,Mb);Bt(this,Xa);Bt(this,lf);Bt(this,Gh);Bt(this,pc);Bt(this,hc);Bt(this,Fb);Bt(this,Kh);Bt(this,Qh);Bt(this,uf);Bt(this,cf);Bt(this,vc);Bt(this,Xh,new Set);this.options=r,xt(this,So,t),xt(this,hc,null),xt(this,pc,E2()),this.options.experimental_prefetchInRender||ue(this,pc).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ue(this,pr).addObserver(this),rM(ue(this,pr),this.options)?or(this,Fr,Ay).call(this):this.updateResult(),or(this,Fr,R2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return T2(ue(this,pr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return T2(ue(this,pr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,or(this,Fr,k2).call(this),or(this,Fr,I2).call(this),ue(this,pr).removeObserver(this)}setOptions(t){const r=this.options,n=ue(this,pr);if(this.options=ue(this,So).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ss(this.options.enabled,ue(this,pr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");or(this,Fr,j2).call(this),ue(this,pr).setOptions(this.options),r._defaulted&&!P1(this.options,r)&&ue(this,So).getQueryCache().notify({type:"observerOptionsUpdated",query:ue(this,pr),observer:this});const a=this.hasListeners();a&&nM(ue(this,pr),n,this.options,r)&&or(this,Fr,Ay).call(this),this.updateResult(),a&&(ue(this,pr)!==n||ss(this.options.enabled,ue(this,pr))!==ss(r.enabled,ue(this,pr))||wh(this.options.staleTime,ue(this,pr))!==wh(r.staleTime,ue(this,pr)))&&or(this,Fr,C2).call(this);const o=or(this,Fr,O2).call(this);a&&(ue(this,pr)!==n||ss(this.options.enabled,ue(this,pr))!==ss(r.enabled,ue(this,pr))||o!==ue(this,vc))&&or(this,Fr,P2).call(this,o)}getOptimisticResult(t){const r=ue(this,So).getQueryCache().build(ue(this,So),t),n=this.createResult(r,t);return R7(this,n)&&(xt(this,Xa,n),xt(this,Gh,this.options),xt(this,lf,ue(this,pr).state)),n}getCurrentResult(){return ue(this,Xa)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){ue(this,Xh).add(t)}getCurrentQuery(){return ue(this,pr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=ue(this,So).defaultQueryOptions(t),n=ue(this,So).getQueryCache().build(ue(this,So),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return or(this,Fr,Ay).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ue(this,Xa)))}createResult(t,r){var M;const n=ue(this,pr),a=this.options,o=ue(this,Xa),s=ue(this,lf),d=ue(this,Gh),u=t!==n?t.state:ue(this,Mb),{state:h}=t;let g={...h},y=!1,_;if(r._optimisticResults){const $=this.hasListeners(),N=!$&&rM(t,r),B=$&&nM(t,n,r,a);(N||B)&&(g={...g,..._5(h.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:S,errorUpdatedAt:E,status:x}=g;_=g.data;let T=!1;if(r.placeholderData!==void 0&&_===void 0&&x==="pending"){let $;o!=null&&o.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?($=o.data,T=!0):$=typeof r.placeholderData=="function"?r.placeholderData((M=ue(this,Qh))==null?void 0:M.state.data,ue(this,Qh)):r.placeholderData,$!==void 0&&(x="success",_=S2(o==null?void 0:o.data,$,r),y=!0)}if(r.select&&_!==void 0&&!T)if(o&&_===(s==null?void 0:s.data)&&r.select===ue(this,Fb))_=ue(this,Kh);else try{xt(this,Fb,r.select),_=r.select(_),_=S2(o==null?void 0:o.data,_,r),xt(this,Kh,_),xt(this,hc,null)}catch($){xt(this,hc,$)}ue(this,hc)&&(S=ue(this,hc),_=ue(this,Kh),E=Date.now(),x="error");const I=g.fetchStatus==="fetching",R=x==="pending",P=x==="error",C=R&&I,O=_!==void 0,k={status:x,fetchStatus:g.fetchStatus,isPending:R,isSuccess:x==="success",isError:P,isInitialLoading:C,isLoading:C,data:_,dataUpdatedAt:g.dataUpdatedAt,error:S,errorUpdatedAt:E,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>u.dataUpdateCount||g.errorUpdateCount>u.errorUpdateCount,isFetching:I,isRefetching:I&&!R,isLoadingError:P&&!O,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:P&&O,isStale:KI(t,r),refetch:this.refetch,promise:ue(this,pc)};if(this.options.experimental_prefetchInRender){const $=q=>{k.status==="error"?q.reject(k.error):k.data!==void 0&&q.resolve(k.data)},N=()=>{const q=xt(this,pc,k.promise=E2());$(q)},B=ue(this,pc);switch(B.status){case"pending":t.queryHash===n.queryHash&&$(B);break;case"fulfilled":(k.status==="error"||k.data!==B.value)&&N();break;case"rejected":(k.status!=="error"||k.error!==B.reason)&&N();break}}return k}updateResult(){const t=ue(this,Xa),r=this.createResult(ue(this,pr),this.options);if(xt(this,lf,ue(this,pr).state),xt(this,Gh,this.options),ue(this,lf).data!==void 0&&xt(this,Qh,ue(this,pr)),P1(r,t))return;xt(this,Xa,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!ue(this,Xh).size)return!0;const s=new Set(o??ue(this,Xh));return this.options.throwOnError&&s.add("error"),Object.keys(ue(this,Xa)).some(d=>{const f=d;return ue(this,Xa)[f]!==t[f]&&s.has(f)})};or(this,Fr,w5).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&or(this,Fr,R2).call(this)}},So=new WeakMap,pr=new WeakMap,Mb=new WeakMap,Xa=new WeakMap,lf=new WeakMap,Gh=new WeakMap,pc=new WeakMap,hc=new WeakMap,Fb=new WeakMap,Kh=new WeakMap,Qh=new WeakMap,uf=new WeakMap,cf=new WeakMap,vc=new WeakMap,Xh=new WeakMap,Fr=new WeakSet,Ay=function(t){or(this,Fr,j2).call(this);let r=ue(this,pr).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ja)),r},C2=function(){or(this,Fr,k2).call(this);const t=wh(this.options.staleTime,ue(this,pr));if(hf||ue(this,Xa).isStale||!x2(t))return;const n=f5(ue(this,Xa).dataUpdatedAt,t)+1;xt(this,uf,setTimeout(()=>{ue(this,Xa).isStale||this.updateResult()},n))},O2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ue(this,pr)):this.options.refetchInterval)??!1},P2=function(t){or(this,Fr,I2).call(this),xt(this,vc,t),!(hf||ss(this.options.enabled,ue(this,pr))===!1||!x2(ue(this,vc))||ue(this,vc)===0)&&xt(this,cf,setInterval(()=>{(this.options.refetchIntervalInBackground||GI.isFocused())&&or(this,Fr,Ay).call(this)},ue(this,vc)))},R2=function(){or(this,Fr,C2).call(this),or(this,Fr,P2).call(this,or(this,Fr,O2).call(this))},k2=function(){ue(this,uf)&&(clearTimeout(ue(this,uf)),xt(this,uf,void 0))},I2=function(){ue(this,cf)&&(clearInterval(ue(this,cf)),xt(this,cf,void 0))},j2=function(){const t=ue(this,So).getQueryCache().build(ue(this,So),this.options);if(t===ue(this,pr))return;const r=ue(this,pr);xt(this,pr,t),xt(this,Mb,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},w5=function(t){Pn.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(ue(this,Xa))}),ue(this,So).getQueryCache().notify({query:ue(this,pr),type:"observerResultsUpdated"})})},YB);function P7(e,t){return ss(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rM(e,t){return P7(e,t)||e.state.data!==void 0&&T2(e,t,t.refetchOnMount)}function T2(e,t,r){if(ss(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&KI(e,t)}return!1}function nM(e,t,r,n){return(e!==t||ss(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&KI(e,r)}function KI(e,t){return ss(t.enabled,e)!==!1&&e.isStaleByTime(wh(t.staleTime,e))}function R7(e,t){return!P1(e.getCurrentResult(),t)}var mc,gc,Eo,Ql,ru,r1,A2,JB,k7=(JB=class extends pv{constructor(r,n){super();Bt(this,ru);Bt(this,mc);Bt(this,gc);Bt(this,Eo);Bt(this,Ql);xt(this,mc,r),this.setOptions(n),this.bindMethods(),or(this,ru,r1).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=ue(this,mc).defaultMutationOptions(r),P1(this.options,n)||ue(this,mc).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ue(this,Eo),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Pc(n.mutationKey)!==Pc(this.options.mutationKey)?this.reset():((a=ue(this,Eo))==null?void 0:a.state.status)==="pending"&&ue(this,Eo).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=ue(this,Eo))==null||r.removeObserver(this)}onMutationUpdate(r){or(this,ru,r1).call(this),or(this,ru,A2).call(this,r)}getCurrentResult(){return ue(this,gc)}reset(){var r;(r=ue(this,Eo))==null||r.removeObserver(this),xt(this,Eo,void 0),or(this,ru,r1).call(this),or(this,ru,A2).call(this)}mutate(r,n){var a;return xt(this,Ql,n),(a=ue(this,Eo))==null||a.removeObserver(this),xt(this,Eo,ue(this,mc).getMutationCache().build(ue(this,mc),this.options)),ue(this,Eo).addObserver(this),ue(this,Eo).execute(r)}},mc=new WeakMap,gc=new WeakMap,Eo=new WeakMap,Ql=new WeakMap,ru=new WeakSet,r1=function(){var n;const r=((n=ue(this,Eo))==null?void 0:n.state)??x5();xt(this,gc,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},A2=function(r){Pn.batch(()=>{var n,a,o,s,d,f,u,h;if(ue(this,Ql)&&this.hasListeners()){const g=ue(this,gc).variables,y=ue(this,gc).context;(r==null?void 0:r.type)==="success"?((a=(n=ue(this,Ql)).onSuccess)==null||a.call(n,r.data,g,y),(s=(o=ue(this,Ql)).onSettled)==null||s.call(o,r.data,null,g,y)):(r==null?void 0:r.type)==="error"&&((f=(d=ue(this,Ql)).onError)==null||f.call(d,r.error,g,y),(h=(u=ue(this,Ql)).onSettled)==null||h.call(u,void 0,r.error,g,y))}this.listeners.forEach(g=>{g(ue(this,gc))})})},JB),S5=p.createContext(void 0),$i=e=>{const t=p.useContext(S5);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},I7=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),A.jsx(S5.Provider,{value:e,children:t})),E5=p.createContext(!1),j7=()=>p.useContext(E5);E5.Provider;function T7(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A7=p.createContext(T7()),M7=()=>p.useContext(A7),F7=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},$7=e=>{p.useEffect(()=>{e.clearReset()},[e])},L7=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||v5(r,[e.error,n])),D7=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},N7=(e,t)=>e.isLoading&&e.isFetching&&!t,B7=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,aM=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function z7(e,t,r){var g,y,_,S,E;const n=$i(),a=j7(),o=M7(),s=n.defaultQueryOptions(e);(y=(g=n.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||y.call(g,s),s._optimisticResults=a?"isRestoring":"optimistic",D7(s),F7(s,o),$7(o);const d=!n.getQueryCache().get(s.queryHash),[f]=p.useState(()=>new t(n,s)),u=f.getOptimisticResult(s),h=!a&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(x=>{const T=h?f.subscribe(Pn.batchCalls(x)):Ja;return f.updateResult(),T},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),p.useEffect(()=>{f.setOptions(s)},[s,f]),B7(s,u))throw aM(s,f,o);if(L7({result:u,errorResetBoundary:o,throwOnError:s.throwOnError,query:n.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw u.error;if((S=(_=n.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||S.call(_,s,u),s.experimental_prefetchInRender&&!hf&&N7(u,a)){const x=d?aM(s,f,o):(E=n.getQueryCache().get(s.queryHash))==null?void 0:E.promise;x==null||x.catch(Ja).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?u:f.trackResult(u)}function Ic(e,t){return z7(e,O7)}function Ef(e,t){const r=$i(),[n]=p.useState(()=>new k7(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);const a=p.useSyncExternalStore(p.useCallback(s=>n.subscribe(Pn.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=p.useCallback((s,d)=>{n.mutate(s,d).catch(Ja)},[n]);if(a.error&&v5(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var zx=e5();const My=tt(zx),q7=ZB({__proto__:null,default:My},[zx]);/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function vf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function V7(){return Math.random().toString(36).substr(2,8)}function iM(e,t){return{usr:e.state,key:e.key,idx:t}}function fb(e,t,r,n){return r===void 0&&(r=null),sn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sl(t):t,{state:r,key:t&&t.key||n||V7()})}function mf(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 sl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function W7(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,s=a.history,d=On.Pop,f=null,u=h();u==null&&(u=0,s.replaceState(sn({},s.state,{idx:u}),""));function h(){return(s.state||{idx:null}).idx}function g(){d=On.Pop;let x=h(),T=x==null?null:x-u;u=x,f&&f({action:d,location:E.location,delta:T})}function y(x,T){d=On.Push;let I=fb(E.location,x,T);r&&r(I,x),u=h()+1;let R=iM(I,u),P=E.createHref(I);try{s.pushState(R,"",P)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(P)}o&&f&&f({action:d,location:E.location,delta:1})}function _(x,T){d=On.Replace;let I=fb(E.location,x,T);r&&r(I,x),u=h();let R=iM(I,u),P=E.createHref(I);s.replaceState(R,"",P),o&&f&&f({action:d,location:E.location,delta:0})}function S(x){let T=a.location.origin!=="null"?a.location.origin:a.location.href,I=typeof x=="string"?x:mf(x);return I=I.replace(/ $/,"%20"),Jt(T,"No window.location.(origin|href) available to create URL for href: "+I),new URL(I,T)}let E={get action(){return d},get location(){return e(a,s)},listen(x){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(oM,g),f=x,()=>{a.removeEventListener(oM,g),f=null}},createHref(x){return t(a,x)},createURL:S,encodeLocation(x){let T=S(x);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:y,replace:_,go(x){return s.go(x)}};return E}var zr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zr||(zr={}));const H7=new Set(["lazy","caseSensitive","path","id","index","children"]);function G7(e){return e.index===!0}function k1(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let s=[...r,String(o)],d=typeof a.id=="string"?a.id:s.join("-");if(Jt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Jt(!n[d],'Found a route id collision on id "'+d+`". Route id's must be globally unique within Data Router usages`),G7(a)){let f=sn({},a,t(a),{id:d});return n[d]=f,f}else{let f=sn({},a,t(a),{id:d,children:void 0});return n[d]=f,a.children&&(f.children=k1(a.children,t,s,n)),f}})}function Ud(e,t,r){return r===void 0&&(r="/"),n1(e,t,r,!1)}function n1(e,t,r,n){let a=typeof t=="string"?sl(t):t,o=Rc(a.pathname||"/",r);if(o==null)return null;let s=C5(e);Q7(s);let d=null;for(let f=0;d==null&&f{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};f.relativePath.startsWith("/")&&(Jt(f.relativePath.startsWith(n),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(n.length));let u=eu([n,f.relativePath]),h=r.concat(f);o.children&&o.children.length>0&&(Jt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),C5(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:rH(u,o.index),routesMeta:h})};return e.forEach((o,s)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))a(o,s);else for(let f of O5(o.path))a(o,s,f)}),t}function O5(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let s=O5(n.join("/")),d=[];return d.push(...s.map(f=>f===""?o:[o,f].join("/"))),a&&d.push(...s),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function Q7(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:nH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const X7=/^:[\w-]+$/,Y7=3,J7=2,Z7=1,eH=10,tH=-2,sM=e=>e==="*";function rH(e,t){let r=e.split("/"),n=r.length;return r.some(sM)&&(n+=tH),t&&(n+=J7),r.filter(a=>!sM(a)).reduce((a,o)=>a+(X7.test(o)?Y7:o===""?Z7:eH),n)}function nH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function aH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",s=[];for(let d=0;d{let{paramName:y,isOptional:_}=h;if(y==="*"){let E=d[g]||"";s=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const S=d[g];return _&&!S?u[y]=void 0:u[y]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function oH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),vf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,d,f)=>(n.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function P5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vf(!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 Rc(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 iH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?sl(e):e;return{pathname:r?r.startsWith("/")?r:sH(r,t):t,search:uH(n),hash:cH(a)}}function sH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function NE(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 R5(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function qx(e,t){let r=R5(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Ux(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=sl(e):(a=sn({},e),Jt(!a.pathname||!a.pathname.includes("?"),NE("?","pathname","search",a)),Jt(!a.pathname||!a.pathname.includes("#"),NE("#","pathname","hash",a)),Jt(!a.search||!a.search.includes("#"),NE("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,d;if(s==null)d=r;else{let g=t.length-1;if(!n&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}d=g>=0?t[g]:"/"}let f=iH(a,d),u=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(u||h)&&(f.pathname+="/"),f}const eu=e=>e.join("/").replace(/\/\/+/g,"/"),lH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class I1{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Vx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const k5=["post","put","patch","delete"],dH=new Set(k5),fH=["get",...k5],pH=new Set(fH),hH=new Set([301,302,303,307,308]),vH=new Set([307,308]),BE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},QI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),I5="remix-router-transitions";function yH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Jt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;a=ye=>({hasErrorBoundary:le(ye)})}else a=gH;let o={},s=k1(e.routes,a,void 0,o),d,f=e.basename||"/",u=e.dataStrategy||wH,h=e.patchRoutesOnNavigation,g=sn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),y=null,_=new Set,S=null,E=null,x=null,T=e.hydrationData!=null,I=Ud(s,e.history.location,f),R=null;if(I==null&&!h){let le=Co(404,{pathname:e.history.location.pathname}),{matches:ye,route:je}=yM(s);I=ye,R={[je.id]:le}}I&&!e.hydrationData&&Bi(I,s,e.history.location.pathname).active&&(I=null);let P;if(I)if(I.some(le=>le.route.lazy))P=!1;else if(!I.some(le=>le.route.loader))P=!0;else if(g.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,ye=e.hydrationData?e.hydrationData.errors:null;if(ye){let je=I.findIndex(Ne=>ye[Ne.route.id]!==void 0);P=I.slice(0,je+1).every(Ne=>!F2(Ne.route,le,ye))}else P=I.every(je=>!F2(je.route,le,ye))}else P=e.hydrationData!=null;else if(P=!1,I=[],g.v7_partialHydration){let le=Bi(null,s,e.history.location.pathname);le.active&&le.matches&&(I=le.matches)}let C,O={historyAction:e.history.action,location:e.history.location,matches:I,initialized:P,navigation:BE,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},j=On.Pop,k=!1,M,$=!1,N=new Map,B=null,q=!1,V=!1,G=[],Y=new Set,X=new Map,H=0,te=-1,ne=new Map,K=new Set,ee=new Map,Ce=new Map,se=new Set,Se=new Map,me=new Map,we;function Oe(){if(y=e.history.listen(le=>{let{action:ye,location:je,delta:Ne}=le;if(we){we(),we=void 0;return}vf(me.size===0||Ne!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let lt=Or({currentLocation:O.location,nextLocation:je,historyAction:ye});if(lt&&Ne!=null){let kt=new Promise(Ft=>{we=Ft});e.history.go(Ne*-1),Qt(lt,{state:"blocked",location:je,proceed(){Qt(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),kt.then(()=>e.history.go(Ne))},reset(){let Ft=new Map(O.blockers);Ft.set(lt,dh),ke({blockers:Ft})}});return}return Le(ye,je)}),r){$H(t,N);let le=()=>LH(t,N);t.addEventListener("pagehide",le),B=()=>t.removeEventListener("pagehide",le)}return O.initialized||Le(On.Pop,O.location,{initialHydration:!0}),C}function ie(){y&&y(),B&&B(),_.clear(),M&&M.abort(),O.fetchers.forEach((le,ye)=>Dt(ye)),O.blockers.forEach((le,ye)=>Ht(ye))}function Fe(le){return _.add(le),()=>_.delete(le)}function ke(le,ye){ye===void 0&&(ye={}),O=sn({},O,le);let je=[],Ne=[];g.v7_fetcherPersist&&O.fetchers.forEach((lt,kt)=>{lt.state==="idle"&&(se.has(kt)?Ne.push(kt):je.push(kt))}),[..._].forEach(lt=>lt(O,{deletedFetchers:Ne,viewTransitionOpts:ye.viewTransitionOpts,flushSync:ye.flushSync===!0})),g.v7_fetcherPersist&&(je.forEach(lt=>O.fetchers.delete(lt)),Ne.forEach(lt=>Dt(lt)))}function $e(le,ye,je){var Ne,lt;let{flushSync:kt}=je===void 0?{}:je,Ft=O.actionData!=null&&O.navigation.formMethod!=null&&is(O.navigation.formMethod)&&O.navigation.state==="loading"&&((Ne=le.state)==null?void 0:Ne._isRedirect)!==!0,ft;ye.actionData?Object.keys(ye.actionData).length>0?ft=ye.actionData:ft=null:Ft?ft=O.actionData:ft=null;let _t=ye.loaderData?mM(O.loaderData,ye.loaderData,ye.matches||[],ye.errors):O.loaderData,mt=O.blockers;mt.size>0&&(mt=new Map(mt),mt.forEach((er,rn)=>mt.set(rn,dh)));let jt=k===!0||O.navigation.formMethod!=null&&is(O.navigation.formMethod)&&((lt=le.state)==null?void 0:lt._isRedirect)!==!0;d&&(s=d,d=void 0),q||j===On.Pop||(j===On.Push?e.history.push(le,le.state):j===On.Replace&&e.history.replace(le,le.state));let Wt;if(j===On.Pop){let er=N.get(O.location.pathname);er&&er.has(le.pathname)?Wt={currentLocation:O.location,nextLocation:le}:N.has(le.pathname)&&(Wt={currentLocation:le,nextLocation:O.location})}else if($){let er=N.get(O.location.pathname);er?er.add(le.pathname):(er=new Set([le.pathname]),N.set(O.location.pathname,er)),Wt={currentLocation:O.location,nextLocation:le}}ke(sn({},ye,{actionData:ft,loaderData:_t,historyAction:j,location:le,initialized:!0,navigation:BE,revalidation:"idle",restoreScrollPosition:ms(le,ye.matches||O.matches),preventScrollReset:jt,blockers:mt}),{viewTransitionOpts:Wt,flushSync:kt===!0}),j=On.Pop,k=!1,$=!1,q=!1,V=!1,G=[]}async function Te(le,ye){if(typeof le=="number"){e.history.go(le);return}let je=M2(O.location,O.matches,f,g.v7_prependBasename,le,g.v7_relativeSplatPath,ye==null?void 0:ye.fromRouteId,ye==null?void 0:ye.relative),{path:Ne,submission:lt,error:kt}=lM(g.v7_normalizeFormMethod,!1,je,ye),Ft=O.location,ft=fb(O.location,Ne,ye&&ye.state);ft=sn({},ft,e.history.encodeLocation(ft));let _t=ye&&ye.replace!=null?ye.replace:void 0,mt=On.Push;_t===!0?mt=On.Replace:_t===!1||lt!=null&&is(lt.formMethod)&<.formAction===O.location.pathname+O.location.search&&(mt=On.Replace);let jt=ye&&"preventScrollReset"in ye?ye.preventScrollReset===!0:void 0,Wt=(ye&&ye.flushSync)===!0,er=Or({currentLocation:Ft,nextLocation:ft,historyAction:mt});if(er){Qt(er,{state:"blocked",location:ft,proceed(){Qt(er,{state:"proceeding",proceed:void 0,reset:void 0,location:ft}),Te(le,ye)},reset(){let rn=new Map(O.blockers);rn.set(er,dh),ke({blockers:rn})}});return}return await Le(mt,ft,{submission:lt,pendingError:kt,preventScrollReset:jt,replace:ye&&ye.replace,enableViewTransition:ye&&ye.viewTransition,flushSync:Wt})}function Be(){if(Mt(),ke({revalidation:"loading"}),O.navigation.state!=="submitting"){if(O.navigation.state==="idle"){Le(O.historyAction,O.location,{startUninterruptedRevalidation:!0});return}Le(j||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:$===!0})}}async function Le(le,ye,je){M&&M.abort(),M=null,j=le,q=(je&&je.startUninterruptedRevalidation)===!0,Io(O.location,O.matches),k=(je&&je.preventScrollReset)===!0,$=(je&&je.enableViewTransition)===!0;let Ne=d||s,lt=je&&je.overrideNavigation,kt=Ud(Ne,ye,f),Ft=(je&&je.flushSync)===!0,ft=Bi(kt,Ne,ye.pathname);if(ft.active&&ft.matches&&(kt=ft.matches),!kt){let{error:Er,notFoundMatches:sr,route:It}=Ur(ye.pathname);$e(ye,{matches:sr,loaderData:{},errors:{[It.id]:Er}},{flushSync:Ft});return}if(O.initialized&&!V&&RH(O.location,ye)&&!(je&&je.submission&&is(je.submission.formMethod))){$e(ye,{matches:kt},{flushSync:Ft});return}M=new AbortController;let _t=th(e.history,ye,M.signal,je&&je.submission),mt;if(je&&je.pendingError)mt=[Vd(kt).route.id,{type:zr.error,error:je.pendingError}];else if(je&&je.submission&&is(je.submission.formMethod)){let Er=await dt(_t,ye,je.submission,kt,ft.active,{replace:je.replace,flushSync:Ft});if(Er.shortCircuited)return;if(Er.pendingActionResult){let[sr,It]=Er.pendingActionResult;if(Ho(It)&&Vx(It.error)&&It.error.status===404){M=null,$e(ye,{matches:Er.matches,loaderData:{},errors:{[sr]:It.error}});return}}kt=Er.matches||kt,mt=Er.pendingActionResult,lt=zE(ye,je.submission),Ft=!1,ft.active=!1,_t=th(e.history,_t.url,_t.signal)}let{shortCircuited:jt,matches:Wt,loaderData:er,errors:rn}=await He(_t,ye,kt,ft.active,lt,je&&je.submission,je&&je.fetcherSubmission,je&&je.replace,je&&je.initialHydration===!0,Ft,mt);jt||(M=null,$e(ye,sn({matches:Wt||kt},gM(mt),{loaderData:er,errors:rn})))}async function dt(le,ye,je,Ne,lt,kt){kt===void 0&&(kt={}),Mt();let Ft=MH(ye,je);if(ke({navigation:Ft},{flushSync:kt.flushSync===!0}),lt){let mt=await ri(Ne,ye.pathname,le.signal);if(mt.type==="aborted")return{shortCircuited:!0};if(mt.type==="error"){let jt=Vd(mt.partialMatches).route.id;return{matches:mt.partialMatches,pendingActionResult:[jt,{type:zr.error,error:mt.error}]}}else if(mt.matches)Ne=mt.matches;else{let{notFoundMatches:jt,error:Wt,route:er}=Ur(ye.pathname);return{matches:jt,pendingActionResult:[er.id,{type:zr.error,error:Wt}]}}}let ft,_t=Fy(Ne,ye);if(!_t.route.action&&!_t.route.lazy)ft={type:zr.error,error:Co(405,{method:le.method,pathname:ye.pathname,routeId:_t.route.id})};else if(ft=(await De("action",O,le,[_t],Ne,null))[_t.route.id],le.signal.aborted)return{shortCircuited:!0};if(Yd(ft)){let mt;return kt&&kt.replace!=null?mt=kt.replace:mt=pM(ft.response.headers.get("Location"),new URL(le.url),f)===O.location.pathname+O.location.search,await _e(le,ft,!0,{submission:je,replace:mt}),{shortCircuited:!0}}if(yc(ft))throw Co(400,{type:"defer-action"});if(Ho(ft)){let mt=Vd(Ne,_t.route.id);return(kt&&kt.replace)!==!0&&(j=On.Push),{matches:Ne,pendingActionResult:[mt.route.id,ft]}}return{matches:Ne,pendingActionResult:[_t.route.id,ft]}}async function He(le,ye,je,Ne,lt,kt,Ft,ft,_t,mt,jt){let Wt=lt||zE(ye,kt),er=kt||Ft||_M(Wt),rn=!q&&(!g.v7_partialHydration||!_t);if(Ne){if(rn){let $r=Z(jt);ke(sn({navigation:Wt},$r!==void 0?{actionData:$r}:{}),{flushSync:mt})}let ur=await ri(je,ye.pathname,le.signal);if(ur.type==="aborted")return{shortCircuited:!0};if(ur.type==="error"){let $r=Vd(ur.partialMatches).route.id;return{matches:ur.partialMatches,loaderData:{},errors:{[$r]:ur.error}}}else if(ur.matches)je=ur.matches;else{let{error:$r,notFoundMatches:To,route:Jn}=Ur(ye.pathname);return{matches:To,loaderData:{},errors:{[Jn.id]:$r}}}}let Er=d||s,[sr,It]=cM(e.history,O,je,er,ye,g.v7_partialHydration&&_t===!0,g.v7_skipActionErrorRevalidation,V,G,Y,se,ee,K,Er,f,jt);if(Gr(ur=>!(je&&je.some($r=>$r.route.id===ur))||sr&&sr.some($r=>$r.route.id===ur)),te=++H,sr.length===0&&It.length===0){let ur=Pt();return $e(ye,sn({matches:je,loaderData:{},errors:jt&&Ho(jt[1])?{[jt[0]]:jt[1].error}:null},gM(jt),ur?{fetchers:new Map(O.fetchers)}:{}),{flushSync:mt}),{shortCircuited:!0}}if(rn){let ur={};if(!Ne){ur.navigation=Wt;let $r=Z(jt);$r!==void 0&&(ur.actionData=$r)}It.length>0&&(ur.fetchers=ae(It)),ke(ur,{flushSync:mt})}It.forEach(ur=>{Kt(ur.key),ur.controller&&X.set(ur.key,ur.controller)});let Zr=()=>It.forEach(ur=>Kt(ur.key));M&&M.signal.addEventListener("abort",Zr);let{loaderResults:ys,fetcherResults:Sa}=await Ge(O,je,sr,It,le);if(le.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Zr),It.forEach(ur=>X.delete(ur.key));let ao=A_(ys);if(ao)return await _e(le,ao.result,!0,{replace:ft}),{shortCircuited:!0};if(ao=A_(Sa),ao)return K.add(ao.key),await _e(le,ao.result,!0,{replace:ft}),{shortCircuited:!0};let{loaderData:Ir,errors:pl}=vM(O,je,ys,jt,It,Sa,Se);Se.forEach((ur,$r)=>{ur.subscribe(To=>{(To||ur.done)&&Se.delete($r)})}),g.v7_partialHydration&&_t&&O.errors&&(pl=sn({},O.errors,pl));let jo=Pt(),hl=Je(te),ni=jo||hl||It.length>0;return sn({matches:je,loaderData:Ir,errors:pl},ni?{fetchers:new Map(O.fetchers)}:{})}function Z(le){if(le&&!Ho(le[1]))return{[le[0]]:le[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function ae(le){return le.forEach(ye=>{let je=O.fetchers.get(ye.key),Ne=Zm(void 0,je?je.data:void 0);O.fetchers.set(ye.key,Ne)}),new Map(O.fetchers)}function fe(le,ye,je,Ne){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Kt(le);let lt=(Ne&&Ne.flushSync)===!0,kt=d||s,Ft=M2(O.location,O.matches,f,g.v7_prependBasename,je,g.v7_relativeSplatPath,ye,Ne==null?void 0:Ne.relative),ft=Ud(kt,Ft,f),_t=Bi(ft,kt,Ft);if(_t.active&&_t.matches&&(ft=_t.matches),!ft){ot(le,ye,Co(404,{pathname:Ft}),{flushSync:lt});return}let{path:mt,submission:jt,error:Wt}=lM(g.v7_normalizeFormMethod,!0,Ft,Ne);if(Wt){ot(le,ye,Wt,{flushSync:lt});return}let er=Fy(ft,mt),rn=(Ne&&Ne.preventScrollReset)===!0;if(jt&&is(jt.formMethod)){ve(le,ye,mt,er,ft,_t.active,lt,rn,jt);return}ee.set(le,{routeId:ye,path:mt}),be(le,ye,mt,er,ft,_t.active,lt,rn,jt)}async function ve(le,ye,je,Ne,lt,kt,Ft,ft,_t){Mt(),ee.delete(le);function mt(nn){if(!nn.route.action&&!nn.route.lazy){let In=Co(405,{method:_t.formMethod,pathname:je,routeId:ye});return ot(le,ye,In,{flushSync:Ft}),!0}return!1}if(!kt&&mt(Ne))return;let jt=O.fetchers.get(le);et(le,FH(_t,jt),{flushSync:Ft});let Wt=new AbortController,er=th(e.history,je,Wt.signal,_t);if(kt){let nn=await ri(lt,je,er.signal);if(nn.type==="aborted")return;if(nn.type==="error"){ot(le,ye,nn.error,{flushSync:Ft});return}else if(nn.matches){if(lt=nn.matches,Ne=Fy(lt,je),mt(Ne))return}else{ot(le,ye,Co(404,{pathname:je}),{flushSync:Ft});return}}X.set(le,Wt);let rn=H,sr=(await De("action",O,er,[Ne],lt,le))[Ne.route.id];if(er.signal.aborted){X.get(le)===Wt&&X.delete(le);return}if(g.v7_fetcherPersist&&se.has(le)){if(Yd(sr)||Ho(sr)){et(le,rc(void 0));return}}else{if(Yd(sr))if(X.delete(le),te>rn){et(le,rc(void 0));return}else return K.add(le),et(le,Zm(_t)),_e(er,sr,!1,{fetcherSubmission:_t,preventScrollReset:ft});if(Ho(sr)){ot(le,ye,sr.error);return}}if(yc(sr))throw Co(400,{type:"defer-action"});let It=O.navigation.location||O.location,Zr=th(e.history,It,Wt.signal),ys=d||s,Sa=O.navigation.state!=="idle"?Ud(ys,O.navigation.location,f):O.matches;Jt(Sa,"Didn't find any matches after fetcher action");let ao=++H;ne.set(le,ao);let Ir=Zm(_t,sr.data);O.fetchers.set(le,Ir);let[pl,jo]=cM(e.history,O,Sa,_t,It,!1,g.v7_skipActionErrorRevalidation,V,G,Y,se,ee,K,ys,f,[Ne.route.id,sr]);jo.filter(nn=>nn.key!==le).forEach(nn=>{let In=nn.key,Uc=O.fetchers.get(In),Af=Zm(void 0,Uc?Uc.data:void 0);O.fetchers.set(In,Af),Kt(In),nn.controller&&X.set(In,nn.controller)}),ke({fetchers:new Map(O.fetchers)});let hl=()=>jo.forEach(nn=>Kt(nn.key));Wt.signal.addEventListener("abort",hl);let{loaderResults:ni,fetcherResults:ur}=await Ge(O,Sa,pl,jo,Zr);if(Wt.signal.aborted)return;Wt.signal.removeEventListener("abort",hl),ne.delete(le),X.delete(le),jo.forEach(nn=>X.delete(nn.key));let $r=A_(ni);if($r)return _e(Zr,$r.result,!1,{preventScrollReset:ft});if($r=A_(ur),$r)return K.add($r.key),_e(Zr,$r.result,!1,{preventScrollReset:ft});let{loaderData:To,errors:Jn}=vM(O,Sa,ni,void 0,jo,ur,Se);if(O.fetchers.has(le)){let nn=rc(sr.data);O.fetchers.set(le,nn)}Je(ao),O.navigation.state==="loading"&&ao>te?(Jt(j,"Expected pending action"),M&&M.abort(),$e(O.navigation.location,{matches:Sa,loaderData:To,errors:Jn,fetchers:new Map(O.fetchers)})):(ke({errors:Jn,loaderData:mM(O.loaderData,To,Sa,Jn),fetchers:new Map(O.fetchers)}),V=!1)}async function be(le,ye,je,Ne,lt,kt,Ft,ft,_t){let mt=O.fetchers.get(le);et(le,Zm(_t,mt?mt.data:void 0),{flushSync:Ft});let jt=new AbortController,Wt=th(e.history,je,jt.signal);if(kt){let sr=await ri(lt,je,Wt.signal);if(sr.type==="aborted")return;if(sr.type==="error"){ot(le,ye,sr.error,{flushSync:Ft});return}else if(sr.matches)lt=sr.matches,Ne=Fy(lt,je);else{ot(le,ye,Co(404,{pathname:je}),{flushSync:Ft});return}}X.set(le,jt);let er=H,Er=(await De("loader",O,Wt,[Ne],lt,le))[Ne.route.id];if(yc(Er)&&(Er=await XI(Er,Wt.signal,!0)||Er),X.get(le)===jt&&X.delete(le),!Wt.signal.aborted){if(se.has(le)){et(le,rc(void 0));return}if(Yd(Er))if(te>er){et(le,rc(void 0));return}else{K.add(le),await _e(Wt,Er,!1,{preventScrollReset:ft});return}if(Ho(Er)){ot(le,ye,Er.error);return}Jt(!yc(Er),"Unhandled fetcher deferred data"),et(le,rc(Er.data))}}async function _e(le,ye,je,Ne){let{submission:lt,fetcherSubmission:kt,preventScrollReset:Ft,replace:ft}=Ne===void 0?{}:Ne;ye.response.headers.has("X-Remix-Revalidate")&&(V=!0);let _t=ye.response.headers.get("Location");Jt(_t,"Expected a Location header on the redirect Response"),_t=pM(_t,new URL(le.url),f);let mt=fb(O.location,_t,{_isRedirect:!0});if(r){let sr=!1;if(ye.response.headers.has("X-Remix-Reload-Document"))sr=!0;else if(QI.test(_t)){const It=e.history.createURL(_t);sr=It.origin!==t.location.origin||Rc(It.pathname,f)==null}if(sr){ft?t.location.replace(_t):t.location.assign(_t);return}}M=null;let jt=ft===!0||ye.response.headers.has("X-Remix-Replace")?On.Replace:On.Push,{formMethod:Wt,formAction:er,formEncType:rn}=O.navigation;!lt&&!kt&&Wt&&er&&rn&&(lt=_M(O.navigation));let Er=lt||kt;if(vH.has(ye.response.status)&&Er&&is(Er.formMethod))await Le(jt,mt,{submission:sn({},Er,{formAction:_t}),preventScrollReset:Ft||k,enableViewTransition:je?$:void 0});else{let sr=zE(mt,lt);await Le(jt,mt,{overrideNavigation:sr,fetcherSubmission:kt,preventScrollReset:Ft||k,enableViewTransition:je?$:void 0})}}async function De(le,ye,je,Ne,lt,kt){let Ft,ft={};try{Ft=await SH(u,le,ye,je,Ne,lt,kt,o,a)}catch(_t){return Ne.forEach(mt=>{ft[mt.route.id]={type:zr.error,error:_t}}),ft}for(let[_t,mt]of Object.entries(Ft))if(kH(mt)){let jt=mt.result;ft[_t]={type:zr.redirect,response:OH(jt,je,_t,lt,f,g.v7_relativeSplatPath)}}else ft[_t]=await CH(mt);return ft}async function Ge(le,ye,je,Ne,lt){let kt=le.matches,Ft=De("loader",le,lt,je,ye,null),ft=Promise.all(Ne.map(async jt=>{if(jt.matches&&jt.match&&jt.controller){let er=(await De("loader",le,th(e.history,jt.path,jt.controller.signal),[jt.match],jt.matches,jt.key))[jt.match.route.id];return{[jt.key]:er}}else return Promise.resolve({[jt.key]:{type:zr.error,error:Co(404,{pathname:jt.path})}})})),_t=await Ft,mt=(await ft).reduce((jt,Wt)=>Object.assign(jt,Wt),{});return await Promise.all([TH(ye,_t,lt.signal,kt,le.loaderData),AH(ye,mt,Ne)]),{loaderResults:_t,fetcherResults:mt}}function Mt(){V=!0,G.push(...Gr()),ee.forEach((le,ye)=>{X.has(ye)&&Y.add(ye),Kt(ye)})}function et(le,ye,je){je===void 0&&(je={}),O.fetchers.set(le,ye),ke({fetchers:new Map(O.fetchers)},{flushSync:(je&&je.flushSync)===!0})}function ot(le,ye,je,Ne){Ne===void 0&&(Ne={});let lt=Vd(O.matches,ye);Dt(le),ke({errors:{[lt.route.id]:je},fetchers:new Map(O.fetchers)},{flushSync:(Ne&&Ne.flushSync)===!0})}function it(le){return g.v7_fetcherPersist&&(Ce.set(le,(Ce.get(le)||0)+1),se.has(le)&&se.delete(le)),O.fetchers.get(le)||mH}function Dt(le){let ye=O.fetchers.get(le);X.has(le)&&!(ye&&ye.state==="loading"&&ne.has(le))&&Kt(le),ee.delete(le),ne.delete(le),K.delete(le),se.delete(le),Y.delete(le),O.fetchers.delete(le)}function Zt(le){if(g.v7_fetcherPersist){let ye=(Ce.get(le)||0)-1;ye<=0?(Ce.delete(le),se.add(le)):Ce.set(le,ye)}else Dt(le);ke({fetchers:new Map(O.fetchers)})}function Kt(le){let ye=X.get(le);ye&&(ye.abort(),X.delete(le))}function nt(le){for(let ye of le){let je=it(ye),Ne=rc(je.data);O.fetchers.set(ye,Ne)}}function Pt(){let le=[],ye=!1;for(let je of K){let Ne=O.fetchers.get(je);Jt(Ne,"Expected fetcher: "+je),Ne.state==="loading"&&(K.delete(je),le.push(je),ye=!0)}return nt(le),ye}function Je(le){let ye=[];for(let[je,Ne]of ne)if(Ne0}function ut(le,ye){let je=O.blockers.get(le)||dh;return me.get(le)!==ye&&me.set(le,ye),je}function Ht(le){O.blockers.delete(le),me.delete(le)}function Qt(le,ye){let je=O.blockers.get(le)||dh;Jt(je.state==="unblocked"&&ye.state==="blocked"||je.state==="blocked"&&ye.state==="blocked"||je.state==="blocked"&&ye.state==="proceeding"||je.state==="blocked"&&ye.state==="unblocked"||je.state==="proceeding"&&ye.state==="unblocked","Invalid blocker state transition: "+je.state+" -> "+ye.state);let Ne=new Map(O.blockers);Ne.set(le,ye),ke({blockers:Ne})}function Or(le){let{currentLocation:ye,nextLocation:je,historyAction:Ne}=le;if(me.size===0)return;me.size>1&&vf(!1,"A router only supports one blocker at a time");let lt=Array.from(me.entries()),[kt,Ft]=lt[lt.length-1],ft=O.blockers.get(kt);if(!(ft&&ft.state==="proceeding")&&Ft({currentLocation:ye,nextLocation:je,historyAction:Ne}))return kt}function Ur(le){let ye=Co(404,{pathname:le}),je=d||s,{matches:Ne,route:lt}=yM(je);return Gr(),{notFoundMatches:Ne,route:lt,error:ye}}function Gr(le){let ye=[];return Se.forEach((je,Ne)=>{(!le||le(Ne))&&(je.cancel(),ye.push(Ne),Se.delete(Ne))}),ye}function kn(le,ye,je){if(S=le,x=ye,E=je||null,!T&&O.navigation===BE){T=!0;let Ne=ms(O.location,O.matches);Ne!=null&&ke({restoreScrollPosition:Ne})}return()=>{S=null,x=null,E=null}}function zn(le,ye){return E&&E(le,ye.map(Ne=>K7(Ne,O.loaderData)))||le.key}function Io(le,ye){if(S&&x){let je=zn(le,ye);S[je]=x()}}function ms(le,ye){if(S){let je=zn(le,ye),Ne=S[je];if(typeof Ne=="number")return Ne}return null}function Bi(le,ye,je){if(h)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:n1(ye,je,f,!0)}}else return{active:!0,matches:n1(ye,je,f,!0)||[]};return{active:!1,matches:null}}async function ri(le,ye,je){if(!h)return{type:"success",matches:le};let Ne=le;for(;;){let lt=d==null,kt=d||s,Ft=o;try{await h({path:ye,matches:Ne,patch:(mt,jt)=>{je.aborted||fM(mt,jt,kt,Ft,a)}})}catch(mt){return{type:"error",error:mt,partialMatches:Ne}}finally{lt&&!je.aborted&&(s=[...s])}if(je.aborted)return{type:"aborted"};let ft=Ud(kt,ye,f);if(ft)return{type:"success",matches:ft};let _t=n1(kt,ye,f,!0);if(!_t||Ne.length===_t.length&&Ne.every((mt,jt)=>mt.route.id===_t[jt].route.id))return{type:"success",matches:null};Ne=_t}}function fl(le){o={},d=k1(le,a,void 0,o)}function gs(le,ye){let je=d==null;fM(le,ye,d||s,o,a),je&&(s=[...s],ke({}))}return C={get basename(){return f},get future(){return g},get state(){return O},get routes(){return s},get window(){return t},initialize:Oe,subscribe:Fe,enableScrollRestoration:kn,navigate:Te,fetch:fe,revalidate:Be,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:it,deleteFetcher:Zt,dispose:ie,getBlocker:ut,deleteBlocker:Ht,patchRoutes:gs,_internalFetchControllers:X,_internalActiveDeferreds:Se,_internalSetRoutes:fl},C}function bH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function M2(e,t,r,n,a,o,s,d){let f,u;if(s){f=[];for(let g of t)if(f.push(g),g.route.id===s){u=g;break}}else f=t,u=t[t.length-1];let h=Ux(a||".",qx(f,o),Rc(e.pathname,r)||e.pathname,d==="path");if(a==null&&(h.search=e.search,h.hash=e.hash),(a==null||a===""||a===".")&&u){let g=YI(h.search);if(u.route.index&&!g)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&g){let y=new URLSearchParams(h.search),_=y.getAll("index");y.delete("index"),_.filter(E=>E).forEach(E=>y.append("index",E));let S=y.toString();h.search=S?"?"+S:""}}return n&&r!=="/"&&(h.pathname=h.pathname==="/"?r:eu([r,h.pathname])),mf(h)}function lM(e,t,r,n){if(!n||!bH(n))return{path:r};if(n.formMethod&&!jH(n.formMethod))return{path:r,error:Co(405,{method:n.formMethod})};let a=()=>({path:r,error:Co(400,{type:"invalid-body"})}),o=n.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),d=A5(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!is(s))return a();let y=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((_,S)=>{let[E,x]=S;return""+_+E+"="+x+` +`},""):String(n.body);return{path:r,submission:{formMethod:s,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:y}}}else if(n.formEncType==="application/json"){if(!is(s))return a();try{let y=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:s,formAction:d,formEncType:n.formEncType,formData:void 0,json:y,text:void 0}}}catch{return a()}}}Jt(typeof FormData=="function","FormData is not available in this environment");let f,u;if(n.formData)f=$2(n.formData),u=n.formData;else if(n.body instanceof FormData)f=$2(n.body),u=n.body;else if(n.body instanceof URLSearchParams)f=n.body,u=hM(f);else if(n.body==null)f=new URLSearchParams,u=new FormData;else try{f=new URLSearchParams(n.body),u=hM(f)}catch{return a()}let h={formMethod:s,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(is(h.formMethod))return{path:r,submission:h};let g=sl(r);return t&&g.search&&YI(g.search)&&f.append("index",""),g.search="?"+f,{path:mf(g),submission:h}}function uM(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function cM(e,t,r,n,a,o,s,d,f,u,h,g,y,_,S,E){let x=E?Ho(E[1])?E[1].error:E[1].data:void 0,T=e.createURL(t.location),I=e.createURL(a),R=r;o&&t.errors?R=uM(r,Object.keys(t.errors)[0],!0):E&&Ho(E[1])&&(R=uM(r,E[0]));let P=E?E[1].statusCode:void 0,C=s&&P&&P>=400,O=R.filter((k,M)=>{let{route:$}=k;if($.lazy)return!0;if($.loader==null)return!1;if(o)return F2($,t.loaderData,t.errors);if(_H(t.loaderData,t.matches[M],k)||f.some(q=>q===k.route.id))return!0;let N=t.matches[M],B=k;return dM(k,sn({currentUrl:T,currentParams:N.params,nextUrl:I,nextParams:B.params},n,{actionResult:x,actionStatus:P,defaultShouldRevalidate:C?!1:d||T.pathname+T.search===I.pathname+I.search||T.search!==I.search||j5(N,B)}))}),j=[];return g.forEach((k,M)=>{if(o||!r.some(V=>V.route.id===k.routeId)||h.has(M))return;let $=Ud(_,k.path,S);if(!$){j.push({key:M,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(M),B=Fy($,k.path),q=!1;y.has(M)?q=!1:u.has(M)?(u.delete(M),q=!0):N&&N.state!=="idle"&&N.data===void 0?q=d:q=dM(B,sn({currentUrl:T,currentParams:t.matches[t.matches.length-1].params,nextUrl:I,nextParams:r[r.length-1].params},n,{actionResult:x,actionStatus:P,defaultShouldRevalidate:C?!1:d})),q&&j.push({key:M,routeId:k.routeId,path:k.path,matches:$,match:B,controller:new AbortController})}),[O,j]}function F2(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function _H(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function j5(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function dM(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function fM(e,t,r,n,a){var o;let s;if(e){let u=n[e];Jt(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),s=u.children}else s=r;let d=t.filter(u=>!s.some(h=>T5(u,h))),f=k1(d,a,[e||"_","patch",String(((o=s)==null?void 0:o.length)||"0")],n);s.push(...f)}function T5(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>T5(r,o))}):!1}async function xH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];Jt(a,"No route found in manifest");let o={};for(let s in n){let f=a[s]!==void 0&&s!=="hasErrorBoundary";vf(!f,'Route "'+a.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!f&&!H7.has(s)&&(o[s]=n[s])}Object.assign(a,o),Object.assign(a,sn({},t(a),{lazy:void 0}))}async function wH(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,s)=>Object.assign(a,{[r[s].route.id]:o}),{})}async function SH(e,t,r,n,a,o,s,d,f,u){let h=o.map(_=>_.route.lazy?xH(_.route,f,d):void 0),g=o.map((_,S)=>{let E=h[S],x=a.some(I=>I.route.id===_.route.id);return sn({},_,{shouldLoad:x,resolve:async I=>(I&&n.method==="GET"&&(_.route.lazy||_.route.loader)&&(x=!0),x?EH(t,n,_,E,I,u):Promise.resolve({type:zr.data,result:void 0}))})}),y=await e({matches:g,request:n,params:o[0].params,fetcherKey:s,context:u});try{await Promise.all(h)}catch{}return y}async function EH(e,t,r,n,a,o){let s,d,f=u=>{let h,g=new Promise((S,E)=>h=E);d=()=>h(),t.signal.addEventListener("abort",d);let y=S=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:o},...S!==void 0?[S]:[]),_=(async()=>{try{return{type:"data",result:await(a?a(E=>y(E)):y())}}catch(S){return{type:"error",result:S}}})();return Promise.race([_,g])};try{let u=r.route[e];if(n)if(u){let h,[g]=await Promise.all([f(u).catch(y=>{h=y}),n]);if(h!==void 0)throw h;s=g}else if(await n,u=r.route[e],u)s=await f(u);else if(e==="action"){let h=new URL(t.url),g=h.pathname+h.search;throw Co(405,{method:t.method,pathname:g,routeId:r.route.id})}else return{type:zr.data,result:void 0};else if(u)s=await f(u);else{let h=new URL(t.url),g=h.pathname+h.search;throw Co(404,{pathname:g})}Jt(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:zr.error,result:u}}finally{d&&t.signal.removeEventListener("abort",d)}return s}async function CH(e){let{result:t,type:r}=e;if(M5(t)){let u;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(h){return{type:zr.error,error:h}}return r===zr.error?{type:zr.error,error:new I1(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:zr.data,data:u,statusCode:t.status,headers:t.headers}}if(r===zr.error){if(bM(t)){var n;if(t.data instanceof Error){var a;return{type:zr.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new I1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zr.error,error:t,statusCode:Vx(t)?t.status:void 0}}if(IH(t)){var o,s;return{type:zr.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(bM(t)){var d,f;return{type:zr.data,data:t.data,statusCode:(d=t.init)==null?void 0:d.status,headers:(f=t.init)!=null&&f.headers?new Headers(t.init.headers):void 0}}return{type:zr.data,data:t}}function OH(e,t,r,n,a,o){let s=e.headers.get("Location");if(Jt(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!QI.test(s)){let d=n.slice(0,n.findIndex(f=>f.route.id===r)+1);s=M2(new URL(t.url),d,a,!0,s,o),e.headers.set("Location",s)}return e}function pM(e,t,r){if(QI.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Rc(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function th(e,t,r,n){let a=e.createURL(A5(t)).toString(),o={signal:r};if(n&&is(n.formMethod)){let{formMethod:s,formEncType:d}=n;o.method=s.toUpperCase(),d==="application/json"?(o.headers=new Headers({"Content-Type":d}),o.body=JSON.stringify(n.json)):d==="text/plain"?o.body=n.text:d==="application/x-www-form-urlencoded"&&n.formData?o.body=$2(n.formData):o.body=n.formData}return new Request(a,o)}function $2(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function hM(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function PH(e,t,r,n,a){let o={},s=null,d,f=!1,u={},h=r&&Ho(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let y=g.route.id,_=t[y];if(Jt(!Yd(_),"Cannot handle redirect results in processLoaderData"),Ho(_)){let S=_.error;h!==void 0&&(S=h,h=void 0),s=s||{};{let E=Vd(e,y);s[E.route.id]==null&&(s[E.route.id]=S)}o[y]=void 0,f||(f=!0,d=Vx(_.error)?_.error.status:500),_.headers&&(u[y]=_.headers)}else yc(_)?(n.set(y,_.deferredData),o[y]=_.deferredData.data,_.statusCode!=null&&_.statusCode!==200&&!f&&(d=_.statusCode),_.headers&&(u[y]=_.headers)):(o[y]=_.data,_.statusCode&&_.statusCode!==200&&!f&&(d=_.statusCode),_.headers&&(u[y]=_.headers))}),h!==void 0&&r&&(s={[r[0]]:h},o[r[0]]=void 0),{loaderData:o,errors:s,statusCode:d||200,loaderHeaders:u}}function vM(e,t,r,n,a,o,s){let{loaderData:d,errors:f}=PH(t,r,n,s);return a.forEach(u=>{let{key:h,match:g,controller:y}=u,_=o[h];if(Jt(_,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(Ho(_)){let S=Vd(e.matches,g==null?void 0:g.route.id);f&&f[S.route.id]||(f=sn({},f,{[S.route.id]:_.error})),e.fetchers.delete(h)}else if(Yd(_))Jt(!1,"Unhandled fetcher revalidation redirect");else if(yc(_))Jt(!1,"Unhandled fetcher deferred data");else{let S=rc(_.data);e.fetchers.set(h,S)}}),{loaderData:d,errors:f}}function mM(e,t,r,n){let a=sn({},t);for(let o of r){let s=o.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(a[s]=t[s]):e[s]!==void 0&&o.route.loader&&(a[s]=e[s]),n&&n.hasOwnProperty(s))break}return a}function gM(e){return e?Ho(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Vd(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function yM(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Co(e,t){let{pathname:r,routeId:n,method:a,type:o,message:s}=t===void 0?{}:t,d="Unknown Server Error",f="Unknown @remix-run/router error";return e===400?(d="Bad Request",a&&r&&n?f="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?f="defer() is not supported in actions":o==="invalid-body"&&(f="Unable to encode submission body")):e===403?(d="Forbidden",f='Route "'+n+'" does not match URL "'+r+'"'):e===404?(d="Not Found",f='No route matches URL "'+r+'"'):e===405&&(d="Method Not Allowed",a&&r&&n?f="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(f='Invalid request method "'+a.toUpperCase()+'"')),new I1(e||500,d,new Error(f),!0)}function A_(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Yd(a))return{key:n,result:a}}}function A5(e){let t=typeof e=="string"?sl(e):e;return mf(sn({},t,{hash:""}))}function RH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function kH(e){return M5(e.result)&&hH.has(e.result.status)}function yc(e){return e.type===zr.deferred}function Ho(e){return e.type===zr.error}function Yd(e){return(e&&e.type)===zr.redirect}function bM(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function IH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function M5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jH(e){return pH.has(e.toLowerCase())}function is(e){return dH.has(e.toLowerCase())}async function TH(e,t,r,n,a){let o=Object.entries(t);for(let s=0;s(y==null?void 0:y.route.id)===d);if(!u)continue;let h=n.find(y=>y.route.id===u.route.id),g=h!=null&&!j5(h,u)&&(a&&a[u.route.id])!==void 0;yc(f)&&g&&await XI(f,r,!1).then(y=>{y&&(t[d]=y)})}}async function AH(e,t,r){for(let n=0;n(u==null?void 0:u.route.id)===o)&&yc(d)&&(Jt(s,"Expected an AbortController for revalidating fetcher deferred result"),await XI(d,s.signal,!0).then(u=>{u&&(t[a]=u)}))}}async function XI(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zr.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zr.error,error:a}}return{type:zr.data,data:e.deferredData.data}}}function YI(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Fy(e,t){let r=typeof t=="string"?sl(t).search:t.search;if(e[e.length-1].route.index&&YI(r||""))return e[e.length-1];let n=R5(e);return n[n.length-1]}function _M(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:s}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:s,text:void 0}}}function zE(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function MH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Zm(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function FH(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function rc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $H(e,t){try{let r=e.sessionStorage.getItem(I5);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function LH(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(I5,JSON.stringify(r))}catch(n){vf(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;tYh(e,P5(t)),[t,e])}function $5(e){p.useContext(jc).static||p.useLayoutEffect(e)}function ul(){let{isDataRoute:e}=p.useContext(ll);return e?ZH():BH()}function BH(){Tc()||Jt(!1);let e=p.useContext(Nb),{basename:t,future:r,navigator:n}=p.useContext(jc),{matches:a}=p.useContext(ll),{pathname:o}=Yn(),s=JSON.stringify(qx(a,r.v7_relativeSplatPath)),d=p.useRef(!1);return $5(()=>{d.current=!0}),p.useCallback(function(u,h){if(h===void 0&&(h={}),!d.current)return;if(typeof u=="number"){n.go(u);return}let g=Ux(u,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:eu([t,g.pathname])),(h.replace?n.replace:n.push)(g,h.state,h)},[t,n,s,o,e])}const zH=p.createContext(null);function qH(e){let t=p.useContext(ll).outlet;return t&&p.createElement(zH.Provider,{value:e},t)}function Hx(){let{matches:e}=p.useContext(ll),t=e[e.length-1];return t?t.params:{}}function ZI(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=p.useContext(jc),{matches:a}=p.useContext(ll),{pathname:o}=Yn(),s=JSON.stringify(qx(a,n.v7_relativeSplatPath));return p.useMemo(()=>Ux(e,JSON.parse(s),o,r==="path"),[e,s,o,r])}function UH(e,t){return L5(e,t)}function L5(e,t,r,n){Tc()||Jt(!1);let{navigator:a}=p.useContext(jc),{matches:o}=p.useContext(ll),s=o[o.length-1],d=s?s.params:{};s&&s.pathname;let f=s?s.pathnameBase:"/";s&&s.route;let u=Yn(),h;if(t){var g;let x=typeof t=="string"?sl(t):t;f==="/"||(g=x.pathname)!=null&&g.startsWith(f)||Jt(!1),h=x}else h=u;let y=h.pathname||"/",_=y;if(f!=="/"){let x=f.replace(/^\//,"").split("/");_="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let S=Ud(e,{pathname:_}),E=KH(S&&S.map(x=>Object.assign({},x,{params:Object.assign({},d,x.params),pathname:eu([f,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?f:eu([f,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,r,n);return t&&E?p.createElement(Wx.Provider,{value:{location:gf({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:On.Pop}},E):E}function VH(){let e=XH(),t=Vx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:a},r):null,null)}const WH=p.createElement(VH,null);class HH extends p.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?p.createElement(ll.Provider,{value:this.props.routeContext},p.createElement(F5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function GH(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(Nb);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(ll.Provider,{value:t},n)}function KH(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,d=(a=r)==null?void 0:a.errors;if(d!=null){let h=s.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);h>=0||Jt(!1),s=s.slice(0,Math.min(s.length,h+1))}let f=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((h,g,y)=>{let _,S=!1,E=null,x=null;r&&(_=d&&g.route.id?d[g.route.id]:void 0,E=g.route.errorElement||WH,f&&(u<0&&y===0?(eG("route-fallback"),S=!0,x=null):u===y&&(S=!0,x=g.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,y+1)),I=()=>{let R;return _?R=E:S?R=x:g.route.Component?R=p.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=h,p.createElement(GH,{match:g,routeContext:{outlet:h,matches:T,isDataRoute:r!=null},children:R})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?p.createElement(HH,{location:r.location,revalidation:r.revalidation,component:E,error:_,children:I(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):I()},null)}var D5=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(D5||{}),N5=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}(N5||{});function B5(e){let t=p.useContext(Nb);return t||Jt(!1),t}function z5(e){let t=p.useContext(JI);return t||Jt(!1),t}function QH(e){let t=p.useContext(ll);return t||Jt(!1),t}function q5(e){let t=QH(),r=t.matches[t.matches.length-1];return r.route.id||Jt(!1),r.route.id}function XH(){var e;let t=p.useContext(F5),r=z5(),n=q5();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let YH=0;function JH(e){let{router:t,basename:r}=B5(),n=z5(),[a,o]=p.useState(""),s=p.useCallback(d=>{if(typeof e!="function")return!!e;if(r==="/")return e(d);let{currentLocation:f,nextLocation:u,historyAction:h}=d;return e({currentLocation:gf({},f,{pathname:Rc(f.pathname,r)||f.pathname}),nextLocation:gf({},u,{pathname:Rc(u.pathname,r)||u.pathname}),historyAction:h})},[r,e]);return p.useEffect(()=>{let d=String(++YH);return o(d),()=>t.deleteBlocker(d)},[t]),p.useEffect(()=>{a!==""&&t.getBlocker(a,s)},[t,a,s]),a&&n.blockers.has(a)?n.blockers.get(a):dh}function ZH(){let{router:e}=B5(D5.UseNavigateStable),t=q5(N5.UseNavigateStable),r=p.useRef(!1);return $5(()=>{r.current=!0}),p.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,gf({fromRouteId:t},o)))},[e,t])}const xM={};function eG(e,t,r){xM[e]||(xM[e]=!0)}function tG(e){let{to:t,replace:r,state:n,relative:a}=e;Tc()||Jt(!1);let{future:o,static:s}=p.useContext(jc),{matches:d}=p.useContext(ll),{pathname:f}=Yn(),u=ul(),h=Ux(t,qx(d,o.v7_relativeSplatPath),f,a==="path"),g=JSON.stringify(h);return p.useEffect(()=>u(JSON.parse(g),{replace:r,state:n,relative:a}),[u,g,a,r,n]),null}function rG(e){return qH(e.context)}function la(e){Jt(!1)}function nG(e){let{basename:t="/",children:r=null,location:n,navigationType:a=On.Pop,navigator:o,static:s=!1,future:d}=e;Tc()&&Jt(!1);let f=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:f,navigator:o,static:s,future:gf({v7_relativeSplatPath:!1},d)}),[f,d,o,s]);typeof n=="string"&&(n=sl(n));let{pathname:h="/",search:g="",hash:y="",state:_=null,key:S="default"}=n,E=p.useMemo(()=>{let x=Rc(h,f);return x==null?null:{location:{pathname:x,search:g,hash:y,state:_,key:S},navigationType:a}},[f,h,g,y,_,S,a]);return E==null?null:p.createElement(jc.Provider,{value:u},p.createElement(Wx.Provider,{children:r,value:E}))}function bc(e){let{children:t,location:r}=e;return UH(L2(t),r)}new Promise(()=>{});function L2(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(n,a)=>{if(!p.isValidElement(n))return;let o=[...t,a];if(n.type===p.Fragment){r.push.apply(r,L2(n.props.children,o));return}n.type!==la&&Jt(!1),!n.props.index||!n.props.children||Jt(!1);let s={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=L2(n.props.children,o)),r.push(s)}),r}function aG(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function iG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sG(e,t){return e.button===0&&(!t||t==="_self")&&!iG(e)}const lG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],uG="6";try{window.__reactRouterVersion=uG}catch{}function cG(e,t){return yH({basename:t==null?void 0:t.basename,future:pb({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:U7({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dG(),routes:e,mapRouteProperties:aG,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function dG(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=pb({},t,{errors:fG(t.errors)})),t}function fG(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new I1(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let s=new o(a.message);s.stack="",r[n]=s}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const pG=p.createContext({isTransitioning:!1}),hG=p.createContext(new Map),vG="startTransition",wM=O1[vG],mG="flushSync",SM=q7[mG];function gG(e){wM?wM(e):e()}function eg(e){SM?SM(e):e()}class yG{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function bG(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[s,d]=p.useState(),[f,u]=p.useState({isTransitioning:!1}),[h,g]=p.useState(),[y,_]=p.useState(),[S,E]=p.useState(),x=p.useRef(new Map),{v7_startTransition:T}=n||{},I=p.useCallback(k=>{T?gG(k):k()},[T]),R=p.useCallback((k,M)=>{let{deletedFetchers:$,flushSync:N,viewTransitionOpts:B}=M;$.forEach(V=>x.current.delete(V)),k.fetchers.forEach((V,G)=>{V.data!==void 0&&x.current.set(G,V.data)});let q=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!B||q){N?eg(()=>o(k)):I(()=>o(k));return}if(N){eg(()=>{y&&(h&&h.resolve(),y.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=r.window.document.startViewTransition(()=>{eg(()=>o(k))});V.finished.finally(()=>{eg(()=>{g(void 0),_(void 0),d(void 0),u({isTransitioning:!1})})}),eg(()=>_(V));return}y?(h&&h.resolve(),y.skipTransition(),E({state:k,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(d(k),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,y,h,x,I]);p.useLayoutEffect(()=>r.subscribe(R),[r,R]),p.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new yG)},[f]),p.useEffect(()=>{if(h&&s&&r.window){let k=s,M=h.promise,$=r.window.document.startViewTransition(async()=>{I(()=>o(k)),await M});$.finished.finally(()=>{g(void 0),_(void 0),d(void 0),u({isTransitioning:!1})}),_($)}},[I,s,h,r.window]),p.useEffect(()=>{h&&s&&a.location.key===s.location.key&&h.resolve()},[h,y,a.location,s]),p.useEffect(()=>{!f.isTransitioning&&S&&(d(S.state),u({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),E(void 0))},[f.isTransitioning,S]),p.useEffect(()=>{},[]);let P=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,M,$)=>r.navigate(k,{state:M,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(k,M,$)=>r.navigate(k,{replace:!0,state:M,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[r]),C=r.basename||"/",O=p.useMemo(()=>({router:r,navigator:P,static:!1,basename:C}),[r,P,C]),j=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.createElement(p.Fragment,null,p.createElement(Nb.Provider,{value:O},p.createElement(JI.Provider,{value:a},p.createElement(hG.Provider,{value:x.current},p.createElement(pG.Provider,{value:f},p.createElement(nG,{basename:C,location:a.location,navigationType:a.historyAction,navigator:P,future:j},a.initialized||r.future.v7_partialHydration?p.createElement(_G,{routes:r.routes,future:r.future,state:a}):t))))),null)}const _G=p.memo(xG);function xG(e){let{routes:t,future:r,state:n}=e;return L5(t,void 0,n,r)}const wG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cs=p.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:s,state:d,target:f,to:u,preventScrollReset:h,viewTransition:g}=t,y=oG(t,lG),{basename:_}=p.useContext(jc),S,E=!1;if(typeof u=="string"&&SG.test(u)&&(S=u,wG))try{let R=new URL(window.location.href),P=u.startsWith("//")?new URL(R.protocol+u):new URL(u),C=Rc(P.pathname,_);P.origin===R.origin&&C!=null?u=C+P.search+P.hash:E=!0}catch{}let x=DH(u,{relative:a}),T=EG(u,{replace:s,state:d,target:f,preventScrollReset:h,relative:a,viewTransition:g});function I(R){n&&n(R),R.defaultPrevented||T(R)}return p.createElement("a",pb({},y,{href:S||x,onClick:E||o?n:I,ref:r,target:f}))});var EM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(EM||(EM={}));var CM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(CM||(CM={}));function EG(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:s,viewTransition:d}=t===void 0?{}:t,f=ul(),u=Yn(),h=ZI(e,{relative:s});return p.useCallback(g=>{if(sG(g,r)){g.preventDefault();let y=n!==void 0?n:mf(u)===mf(h);f(e,{replace:y,state:a,preventScrollReset:o,relative:s,viewTransition:d})}},[u,f,h,n,a,r,e,o,s,d])}var CG="RaStore",OG=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}},D2=OG(),PG=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(CG).concat(t),n=r.length,a={},o=function(d,f){Object.keys(a).forEach(function(u){a[u]&&a[u].key===d&&a[u].callback(f)})},s=function(d){var f;if(((f=d.key)===null||f===void 0?void 0:f.substring(0,n))===r){var u=d.key.substring(n+1),h=d.newValue?OM(d.newValue):void 0;Object.keys(a).forEach(function(g){a[g]&&a[g].key===u&&(h===null?a[g].callback(void 0):a[g].callback(h??void 0))})}};return{setup:function(){if(D2){var d=Ul().getItem("".concat(r,".version"));if(d&&d!==e){var f=Ul();Object.keys(f).forEach(function(u){u.startsWith(r)&&f.removeItem(u)})}Ul().setItem("".concat(r,".version"),e),window.addEventListener("storage",s)}},teardown:function(){D2&&window.removeEventListener("storage",s)},getItem:function(d,f){var u=Ul().getItem("".concat(r,".").concat(d));return u==null?f:OM(u)},setItem:function(d,f){f===void 0?Ul().removeItem("".concat(r,".").concat(d)):Ul().setItem("".concat(r,".").concat(d),JSON.stringify(f)),o(d,f)},removeItem:function(d){Ul().removeItem("".concat(r,".").concat(d)),o(d,void 0)},removeItems:function(d){var f=Ul();Object.keys(f).forEach(function(u){if(u.startsWith("".concat(r,".").concat(d))){f.removeItem(u);var h=u.substring(n+1);o(h,void 0)}})},reset:function(){var d=Ul();Object.keys(d).forEach(function(f){if(f.startsWith(r)){d.removeItem(f);var u=f.substring(n+1);o(u,void 0)}})},subscribe:function(d,f){var u=Math.random().toString();return a[u]={key:d,callback:f},function(){delete a[u]}}}},OM=function(e){try{return JSON.parse(e)}catch{return e}},RG=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),kG=new RG,Ul=function(){return D2?window.localStorage:kG},qE,PM;function U5(){if(PM)return qE;PM=1;var e=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl;return qE=e,qE}var UE,RM;function fs(){if(RM)return UE;RM=1;var e=U5(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return UE=r,UE}var VE,kM;function hv(){if(kM)return VE;kM=1;var e=fs(),t=e.Symbol;return VE=t,VE}var WE,IM;function IG(){if(IM)return WE;IM=1;var e=hv(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function o(s){var d=r.call(s,a),f=s[a];try{s[a]=void 0;var u=!0}catch{}var h=n.call(s);return u&&(d?s[a]=f:delete s[a]),h}return WE=o,WE}var HE,jM;function jG(){if(jM)return HE;jM=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return HE=r,HE}var GE,TM;function vv(){if(TM)return GE;TM=1;var e=hv(),t=IG(),r=jG(),n="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function s(d){return d==null?d===void 0?a:n:o&&o in Object(d)?t(d):r(d)}return GE=s,GE}var KE,AM;function ps(){if(AM)return KE;AM=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return KE=e,KE}var QE,MM;function ej(){if(MM)return QE;MM=1;var e=vv(),t=ps(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function s(d){if(!t(d))return!1;var f=e(d);return f==n||f==a||f==r||f==o}return QE=s,QE}var XE,FM;function TG(){if(FM)return XE;FM=1;var e=fs(),t=e["__core-js_shared__"];return XE=t,XE}var YE,$M;function AG(){if($M)return YE;$M=1;var e=TG(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return YE=r,YE}var JE,LM;function V5(){if(LM)return JE;LM=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return JE=r,JE}var ZE,DM;function MG(){if(DM)return ZE;DM=1;var e=ej(),t=AG(),r=ps(),n=V5(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,d=Object.prototype,f=s.toString,u=d.hasOwnProperty,h=RegExp("^"+f.call(u).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(y){if(!r(y)||t(y))return!1;var _=e(y)?h:o;return _.test(n(y))}return ZE=g,ZE}var eC,NM;function FG(){if(NM)return eC;NM=1;function e(t,r){return t==null?void 0:t[r]}return eC=e,eC}var tC,BM;function Cf(){if(BM)return tC;BM=1;var e=MG(),t=FG();function r(n,a){var o=t(n,a);return e(o)?o:void 0}return tC=r,tC}var rC,zM;function W5(){if(zM)return rC;zM=1;var e=Cf(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return rC=t,rC}var nC,qM;function tj(){if(qM)return nC;qM=1;var e=W5();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return nC=t,nC}var aC,UM;function mv(){if(UM)return aC;UM=1;function e(t,r){return t===r||t!==t&&r!==r}return aC=e,aC}var oC,VM;function rj(){if(VM)return oC;VM=1;var e=tj(),t=mv(),r=Object.prototype,n=r.hasOwnProperty;function a(o,s,d){var f=o[s];(!(n.call(o,s)&&t(f,d))||d===void 0&&!(s in o))&&e(o,s,d)}return oC=a,oC}var iC,WM;function cl(){if(WM)return iC;WM=1;var e=Array.isArray;return iC=e,iC}var sC,HM;function su(){if(HM)return sC;HM=1;function e(t){return t!=null&&typeof t=="object"}return sC=e,sC}var lC,GM;function Gx(){if(GM)return lC;GM=1;var e=vv(),t=su(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return lC=n,lC}var uC,KM;function $G(){if(KM)return uC;KM=1;var e=cl(),t=Gx(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(o,s){if(e(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||t(o)?!0:n.test(o)||!r.test(o)||s!=null&&o in Object(s)}return uC=a,uC}var cC,QM;function Kx(){if(QM)return cC;QM=1;var e=Cf(),t=e(Object,"create");return cC=t,cC}var dC,XM;function LG(){if(XM)return dC;XM=1;var e=Kx();function t(){this.__data__=e?e(null):{},this.size=0}return dC=t,dC}var fC,YM;function DG(){if(YM)return fC;YM=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return fC=e,fC}var pC,JM;function NG(){if(JM)return pC;JM=1;var e=Kx(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(o){var s=this.__data__;if(e){var d=s[o];return d===t?void 0:d}return n.call(s,o)?s[o]:void 0}return pC=a,pC}var hC,ZM;function BG(){if(ZM)return hC;ZM=1;var e=Kx(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var o=this.__data__;return e?o[a]!==void 0:r.call(o,a)}return hC=n,hC}var vC,eF;function zG(){if(eF)return vC;eF=1;var e=Kx(),t="__lodash_hash_undefined__";function r(n,a){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&a===void 0?t:a,this}return vC=r,vC}var mC,tF;function qG(){if(tF)return mC;tF=1;var e=LG(),t=DG(),r=NG(),n=BG(),a=zG();function o(s){var d=-1,f=s==null?0:s.length;for(this.clear();++d-1}return xC=t,xC}var wC,sF;function GG(){if(sF)return wC;sF=1;var e=Qx();function t(r,n){var a=this.__data__,o=e(a,r);return o<0?(++this.size,a.push([r,n])):a[o][1]=n,this}return wC=t,wC}var SC,lF;function Xx(){if(lF)return SC;lF=1;var e=UG(),t=VG(),r=WG(),n=HG(),a=GG();function o(s){var d=-1,f=s==null?0:s.length;for(this.clear();++d-1&&n%1==0&&no?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(o);++a_))return!1;var E=g.get(s),x=g.get(d);if(E&&x)return E==d&&x==s;var T=-1,I=!0,R=f&a?new e:void 0;for(g.set(s,d),g.set(d,s);++T<_;){var P=s[T],C=d[T];if(u)var O=y?u(C,P,T,d,s,g):u(P,C,T,s,d,g);if(O!==void 0){if(O)continue;I=!1;break}if(R){if(!t(d,function(j,k){if(!r(R,k)&&(P===j||h(P,j,f,u,g)))return R.push(k)})){I=!1;break}}else if(!(P===C||h(P,C,f,u,g))){I=!1;break}}return g.delete(s),g.delete(d),I}return lO=o,lO}var uO,QF;function J5(){if(QF)return uO;QF=1;var e=fs(),t=e.Uint8Array;return uO=t,uO}var cO,XF;function EK(){if(XF)return cO;XF=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,o){n[++r]=[o,a]}),n}return cO=e,cO}var dO,YF;function uj(){if(YF)return dO;YF=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return dO=e,dO}var fO,JF;function CK(){if(JF)return fO;JF=1;var e=hv(),t=J5(),r=mv(),n=Y5(),a=EK(),o=uj(),s=1,d=2,f="[object Boolean]",u="[object Date]",h="[object Error]",g="[object Map]",y="[object Number]",_="[object RegExp]",S="[object Set]",E="[object String]",x="[object Symbol]",T="[object ArrayBuffer]",I="[object DataView]",R=e?e.prototype:void 0,P=R?R.valueOf:void 0;function C(O,j,k,M,$,N,B){switch(k){case I:if(O.byteLength!=j.byteLength||O.byteOffset!=j.byteOffset)return!1;O=O.buffer,j=j.buffer;case T:return!(O.byteLength!=j.byteLength||!N(new t(O),new t(j)));case f:case u:case y:return r(+O,+j);case h:return O.name==j.name&&O.message==j.message;case _:case E:return O==j+"";case g:var q=a;case S:var V=M&s;if(q||(q=o),O.size!=j.size&&!V)return!1;var G=B.get(O);if(G)return G==j;M|=d,B.set(O,j);var Y=n(q(O),q(j),M,$,N,B);return B.delete(O),Y;case x:if(P)return P.call(O)==P.call(j)}return!1}return fO=C,fO}var pO,ZF;function cj(){if(ZF)return pO;ZF=1;function e(t,r){for(var n=-1,a=r.length,o=t.length;++n-1&&r%1==0&&r<=e}return wO=t,wO}var SO,c$;function IK(){if(c$)return SO;c$=1;var e=vv(),t=fj(),r=su(),n="[object Arguments]",a="[object Array]",o="[object Boolean]",s="[object Date]",d="[object Error]",f="[object Function]",u="[object Map]",h="[object Number]",g="[object Object]",y="[object RegExp]",_="[object Set]",S="[object String]",E="[object WeakMap]",x="[object ArrayBuffer]",T="[object DataView]",I="[object Float32Array]",R="[object Float64Array]",P="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",j="[object Uint8Array]",k="[object Uint8ClampedArray]",M="[object Uint16Array]",$="[object Uint32Array]",N={};N[I]=N[R]=N[P]=N[C]=N[O]=N[j]=N[k]=N[M]=N[$]=!0,N[n]=N[a]=N[x]=N[o]=N[T]=N[s]=N[d]=N[f]=N[u]=N[h]=N[g]=N[y]=N[_]=N[S]=N[E]=!1;function B(q){return r(q)&&t(q.length)&&!!N[e(q)]}return SO=B,SO}var EO,d$;function aw(){if(d$)return EO;d$=1;function e(t){return function(r){return t(r)}}return EO=e,EO}var Ly={exports:{}};Ly.exports;var f$;function pj(){return f$||(f$=1,function(e,t){var r=U5(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,s=o&&r.process,d=function(){try{var f=a&&a.require&&a.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}}();e.exports=d}(Ly,Ly.exports)),Ly.exports}var CO,p$;function hj(){if(p$)return CO;p$=1;var e=IK(),t=aw(),r=pj(),n=r&&r.isTypedArray,a=n?t(n):e;return CO=a,CO}var OO,h$;function tz(){if(h$)return OO;h$=1;var e=PK(),t=rw(),r=cl(),n=nw(),a=Jx(),o=hj(),s=Object.prototype,d=s.hasOwnProperty;function f(u,h){var g=r(u),y=!g&&t(u),_=!g&&!y&&n(u),S=!g&&!y&&!_&&o(u),E=g||y||_||S,x=E?e(u.length,String):[],T=x.length;for(var I in u)(h||d.call(u,I))&&!(E&&(I=="length"||_&&(I=="offset"||I=="parent")||S&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||a(I,T)))&&x.push(I);return x}return OO=f,OO}var PO,v$;function vj(){if(v$)return PO;v$=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return PO=t,PO}var RO,m$;function rz(){if(m$)return RO;m$=1;function e(t,r){return function(n){return t(r(n))}}return RO=e,RO}var kO,g$;function jK(){if(g$)return kO;g$=1;var e=rz(),t=e(Object.keys,Object);return kO=t,kO}var IO,y$;function TK(){if(y$)return IO;y$=1;var e=vj(),t=jK(),r=Object.prototype,n=r.hasOwnProperty;function a(o){if(!e(o))return t(o);var s=[];for(var d in Object(o))n.call(o,d)&&d!="constructor"&&s.push(d);return s}return IO=a,IO}var jO,b$;function ow(){if(b$)return jO;b$=1;var e=ej(),t=fj();function r(n){return n!=null&&t(n.length)&&!e(n)}return jO=r,jO}var TO,_$;function mj(){if(_$)return TO;_$=1;var e=tz(),t=TK(),r=ow();function n(a){return r(a)?e(a):t(a)}return TO=n,TO}var AO,x$;function nz(){if(x$)return AO;x$=1;var e=Z5(),t=dj(),r=mj();function n(a){return e(a,r,t)}return AO=n,AO}var MO,w$;function AK(){if(w$)return MO;w$=1;var e=nz(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(o,s,d,f,u,h){var g=d&t,y=e(o),_=y.length,S=e(s),E=S.length;if(_!=E&&!g)return!1;for(var x=_;x--;){var T=y[x];if(!(g?T in s:n.call(s,T)))return!1}var I=h.get(o),R=h.get(s);if(I&&R)return I==s&&R==o;var P=!0;h.set(o,s),h.set(s,o);for(var C=g;++x<_;){T=y[x];var O=o[T],j=s[T];if(f)var k=g?f(j,O,T,s,o,h):f(O,j,T,o,s,h);if(!(k===void 0?O===j||u(O,j,d,f,h):k)){P=!1;break}C||(C=T=="constructor")}if(P&&!C){var M=o.constructor,$=s.constructor;M!=$&&"constructor"in o&&"constructor"in s&&!(typeof M=="function"&&M instanceof M&&typeof $=="function"&&$ instanceof $)&&(P=!1)}return h.delete(o),h.delete(s),P}return MO=a,MO}var FO,S$;function MK(){if(S$)return FO;S$=1;var e=Cf(),t=fs(),r=e(t,"DataView");return FO=r,FO}var $O,E$;function FK(){if(E$)return $O;E$=1;var e=Cf(),t=fs(),r=e(t,"Promise");return $O=r,$O}var LO,C$;function az(){if(C$)return LO;C$=1;var e=Cf(),t=fs(),r=e(t,"Set");return LO=r,LO}var DO,O$;function $K(){if(O$)return DO;O$=1;var e=Cf(),t=fs(),r=e(t,"WeakMap");return DO=r,DO}var NO,P$;function iw(){if(P$)return NO;P$=1;var e=MK(),t=nj(),r=FK(),n=az(),a=$K(),o=vv(),s=V5(),d="[object Map]",f="[object Object]",u="[object Promise]",h="[object Set]",g="[object WeakMap]",y="[object DataView]",_=s(e),S=s(t),E=s(r),x=s(n),T=s(a),I=o;return(e&&I(new e(new ArrayBuffer(1)))!=y||t&&I(new t)!=d||r&&I(r.resolve())!=u||n&&I(new n)!=h||a&&I(new a)!=g)&&(I=function(R){var P=o(R),C=P==f?R.constructor:void 0,O=C?s(C):"";if(O)switch(O){case _:return y;case S:return d;case E:return u;case x:return h;case T:return g}return P}),NO=I,NO}var BO,R$;function LK(){if(R$)return BO;R$=1;var e=ij(),t=Y5(),r=CK(),n=AK(),a=iw(),o=cl(),s=nw(),d=hj(),f=1,u="[object Arguments]",h="[object Array]",g="[object Object]",y=Object.prototype,_=y.hasOwnProperty;function S(E,x,T,I,R,P){var C=o(E),O=o(x),j=C?h:a(E),k=O?h:a(x);j=j==u?g:j,k=k==u?g:k;var M=j==g,$=k==g,N=j==k;if(N&&s(E)){if(!s(x))return!1;C=!0,M=!1}if(N&&!M)return P||(P=new e),C||d(E)?t(E,x,T,I,R,P):r(E,x,j,T,I,R,P);if(!(T&f)){var B=M&&_.call(E,"__wrapped__"),q=$&&_.call(x,"__wrapped__");if(B||q){var V=B?E.value():E,G=q?x.value():x;return P||(P=new e),R(V,G,T,I,P)}}return N?(P||(P=new e),n(E,x,T,I,R,P)):!1}return BO=S,BO}var zO,k$;function DK(){if(k$)return zO;k$=1;var e=LK(),t=su();function r(n,a,o,s,d){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,o,s,r,d)}return zO=r,zO}var qO,I$;function NK(){if(I$)return qO;I$=1;var e=DK();function t(r,n){return e(r,n)}return qO=t,qO}var BK=NK();const ki=tt(BK);var j$=function(e,t){return e&&t?String.prototype.replace.call(e,zK,function(r,n){return!t.hasOwnProperty(n)||t[n]==null?r:t[n]}):e},zK=/%\{(.*?)\}/g,qK={translate:function(e,t){return t!=null&&t._?j$(t._,t):j$(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},gj=p.createContext(qK);gj.displayName="I18nContext";var oz=p.createContext(function(){}),iz=p.createContext({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),T$=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return pP=n,pP}var hP,oL;function mz(){if(oL)return hP;oL=1;var e=oQ(),t=iQ(),r=t(e);return hP=r,hP}var vP,iL;function sw(){if(iL)return vP;iL=1;var e=hz(),t=vz(),r=mz();function n(a,o){return r(t(a,o,e),a+"")}return vP=n,vP}var mP,sL;function gz(){if(sL)return mP;sL=1;var e=mv(),t=ow(),r=Jx(),n=ps();function a(o,s,d){if(!n(d))return!1;var f=typeof s;return(f=="number"?t(d)&&r(s,d.length):f=="string"&&s in d)?e(d[s],o):!1}return mP=a,mP}var gP,lL;function sQ(){if(lL)return gP;lL=1;var e=sw(),t=gz();function r(n){return e(function(a,o){var s=-1,d=o.length,f=d>1?o[d-1]:void 0,u=d>2?o[2]:void 0;for(f=n.length>3&&typeof f=="function"?(d--,f):void 0,u&&t(o[0],o[1],u)&&(f=d<3?void 0:f,d=1),a=Object(a);++s=f||V<0||I&&G>=y}function k(){var q=t();if(j(q))return M(q);S=setTimeout(k,O(q))}function M(q){return S=void 0,R&&h?P(q):(h=g=void 0,_)}function $(){S!==void 0&&clearTimeout(S),x=0,h=E=g=S=void 0}function N(){return S===void 0?_:M(t())}function B(){var q=t(),V=j(q);if(h=arguments,g=this,E=q,V){if(S===void 0)return C(E);if(I)return clearTimeout(S),S=setTimeout(k,f),P(E)}return S===void 0&&(S=setTimeout(k,f)),_}return B.cancel=$,B.flush=N,B}return zP=s,zP}var BQ=NQ();const Cj=tt(BQ);var zQ=function(e,t){t===void 0&&(t=250);var r=qQ(e,t),n=r[0],a=r[1],o=Yn();p.useEffect(function(){var s;n!=null&&((s=o.state)===null||s===void 0?void 0:s._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},qQ=function(e,t){t===void 0&&(t=250);var r=_a(e),n=r[0],a=r[1];return p.useEffect(function(){if(!(typeof window>"u")){var o=Cj(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},UQ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return zQ(r,a),t},Ac=function(){return p.useContext(_z)},Of=function(){var e=Ac();return p.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return Xs("".concat(e,"/").concat(r));case"create":return Xs("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Xs("".concat(e,"/").concat(r)):Xs("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Xs("".concat(e,"/").concat(r)):Xs("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},Xs=function(e){return e.replace("//","/")};function AL(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var xz=function(e,t){if(AL(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 a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. +Be sure to pass the props from the parent. Example: + +const My`).concat(e,` = props => ( + <`).concat(e," {...props}> +); + +The missing props are: `).concat(a.join(", ")))},T1=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),UP}var VP,DL;function fX(){if(DL)return VP;DL=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,d){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;d=d||1;var f=s.slice(0,d),u=s.slice(d);return Array.prototype.concat.call([],n(f),n(u))}function a(s){try{return decodeURIComponent(s)}catch{for(var d=s.match(t)||[],f=1;f{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)]}),WP}var HP,BL;function hX(){return BL||(BL=1,HP=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;oI==null,s=Symbol("encodeFragmentIdentifier");function d(I){switch(I.arrayFormat){case"index":return R=>(P,C)=>{const O=P.length;return C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?P:C===null?[...P,[h(R,I),"[",O,"]"].join("")]:[...P,[h(R,I),"[",h(O,I),"]=",h(C,I)].join("")]};case"bracket":return R=>(P,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?P:C===null?[...P,[h(R,I),"[]"].join("")]:[...P,[h(R,I),"[]=",h(C,I)].join("")];case"colon-list-separator":return R=>(P,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?P:C===null?[...P,[h(R,I),":list="].join("")]:[...P,[h(R,I),":list=",h(C,I)].join("")];case"comma":case"separator":case"bracket-separator":{const R=I.arrayFormat==="bracket-separator"?"[]=":"=";return P=>(C,O)=>O===void 0||I.skipNull&&O===null||I.skipEmptyString&&O===""?C:(O=O===null?"":O,C.length===0?[[h(P,I),R,h(O,I)].join("")]:[[C,h(O,I)].join(I.arrayFormatSeparator)])}default:return R=>(P,C)=>C===void 0||I.skipNull&&C===null||I.skipEmptyString&&C===""?P:C===null?[...P,h(R,I)]:[...P,[h(R,I),"=",h(C,I)].join("")]}}function f(I){let R;switch(I.arrayFormat){case"index":return(P,C,O)=>{if(R=/\[(\d*)\]$/.exec(P),P=P.replace(/\[\d*\]$/,""),!R){O[P]=C;return}O[P]===void 0&&(O[P]={}),O[P][R[1]]=C};case"bracket":return(P,C,O)=>{if(R=/(\[\])$/.exec(P),P=P.replace(/\[\]$/,""),!R){O[P]=C;return}if(O[P]===void 0){O[P]=[C];return}O[P]=[].concat(O[P],C)};case"colon-list-separator":return(P,C,O)=>{if(R=/(:list)$/.exec(P),P=P.replace(/:list$/,""),!R){O[P]=C;return}if(O[P]===void 0){O[P]=[C];return}O[P]=[].concat(O[P],C)};case"comma":case"separator":return(P,C,O)=>{const j=typeof C=="string"&&C.includes(I.arrayFormatSeparator),k=typeof C=="string"&&!j&&g(C,I).includes(I.arrayFormatSeparator);C=k?g(C,I):C;const M=j||k?C.split(I.arrayFormatSeparator).map($=>g($,I)):C===null?C:g(C,I);O[P]=M};case"bracket-separator":return(P,C,O)=>{const j=/(\[\])$/.test(P);if(P=P.replace(/\[\]$/,""),!j){O[P]=C&&g(C,I);return}const k=C===null?[]:C.split(I.arrayFormatSeparator).map(M=>g(M,I));if(O[P]===void 0){O[P]=k;return}O[P]=[].concat(O[P],k)};default:return(P,C,O)=>{if(O[P]===void 0){O[P]=C;return}O[P]=[].concat(O[P],C)}}}function u(I){if(typeof I!="string"||I.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(I,R){return R.encode?R.strict?t(I):encodeURIComponent(I):I}function g(I,R){return R.decode?r(I):I}function y(I){return Array.isArray(I)?I.sort():typeof I=="object"?y(Object.keys(I)).sort((R,P)=>Number(R)-Number(P)).map(R=>I[R]):I}function _(I){const R=I.indexOf("#");return R!==-1&&(I=I.slice(0,R)),I}function S(I){let R="";const P=I.indexOf("#");return P!==-1&&(R=I.slice(P)),R}function E(I){I=_(I);const R=I.indexOf("?");return R===-1?"":I.slice(R+1)}function x(I,R){return R.parseNumbers&&!Number.isNaN(Number(I))&&typeof I=="string"&&I.trim()!==""?I=Number(I):R.parseBooleans&&I!==null&&(I.toLowerCase()==="true"||I.toLowerCase()==="false")&&(I=I.toLowerCase()==="true"),I}function T(I,R){R=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},R),u(R.arrayFormatSeparator);const P=f(R),C=Object.create(null);if(typeof I!="string"||(I=I.trim().replace(/^[?#&]/,""),!I))return C;for(const O of I.split("&")){if(O==="")continue;let[j,k]=n(R.decode?O.replace(/\+/g," "):O,"=");k=k===void 0?null:["comma","separator","bracket-separator"].includes(R.arrayFormat)?k:g(k,R),P(g(j,R),k,C)}for(const O of Object.keys(C)){const j=C[O];if(typeof j=="object"&&j!==null)for(const k of Object.keys(j))j[k]=x(j[k],R);else C[O]=x(j,R)}return R.sort===!1?C:(R.sort===!0?Object.keys(C).sort():Object.keys(C).sort(R.sort)).reduce((O,j)=>{const k=C[j];return k&&typeof k=="object"&&!Array.isArray(k)?O[j]=y(k):O[j]=k,O},Object.create(null))}e.extract=E,e.parse=T,e.stringify=(I,R)=>{if(!I)return"";R=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},R),u(R.arrayFormatSeparator);const P=k=>R.skipNull&&o(I[k])||R.skipEmptyString&&I[k]==="",C=d(R),O={};for(const k of Object.keys(I))P(k)||(O[k]=I[k]);const j=Object.keys(O);return R.sort!==!1&&j.sort(R.sort),j.map(k=>{const M=I[k];return M===void 0?"":M===null?h(k,R):Array.isArray(M)?M.length===0&&R.arrayFormat==="bracket-separator"?h(k,R)+"[]":M.reduce(C(k),[]).join("&"):h(k,R)+"="+h(M,R)}).filter(k=>k.length>0).join("&")},e.parseUrl=(I,R)=>{R=Object.assign({decode:!0},R);const[P,C]=n(I,"#");return Object.assign({url:P.split("?")[0]||"",query:T(E(I),R)},R&&R.parseFragmentIdentifier&&C?{fragmentIdentifier:g(C,R)}:{})},e.stringifyUrl=(I,R)=>{R=Object.assign({encode:!0,strict:!0,[s]:!0},R);const P=_(I.url).split("?")[0]||"",C=e.extract(I.url),O=e.parse(C,{sort:!1}),j=Object.assign(O,I.query);let k=e.stringify(j,R);k&&(k=`?${k}`);let M=S(I.url);return I.fragmentIdentifier&&(M=`#${R[s]?h(I.fragmentIdentifier,R):I.fragmentIdentifier}`),`${P}${k}${M}`},e.pick=(I,R,P)=>{P=Object.assign({parseFragmentIdentifier:!0,[s]:!1},P);const{url:C,query:O,fragmentIdentifier:j}=e.parseUrl(I,P);return e.stringifyUrl({url:C,query:a(O,R),fragmentIdentifier:j},P)},e.exclude=(I,R,P)=>{const C=Array.isArray(R)?O=>!R.includes(O):(O,j)=>!R(O,j);return e.pick(I,C,P)}}(qP)),qP}var Zh=vX(),A1=function(){return A1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new Iz(f&&f.message||o,a,f)):Promise.resolve({status:a,headers:s,body:d,json:f})})},yX=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},jz=function(e,t){var r;return t===void 0&&(t=[]),yX(e)?Object.assign.apply(Object,mX([{}],Object.keys(e).map(function(n){return jz(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},GP={exports:{}},qL;function bX(){return qL||(qL=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(f,u,h){this.fn=f,this.context=u,this.once=h||!1}function o(f,u,h,g,y){if(typeof h!="function")throw new TypeError("The listener must be a function");var _=new a(h,g||f,y),S=r?r+u:u;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],_]:f._events[S].push(_):(f._events[S]=_,f._eventsCount++),f}function s(f,u){--f._eventsCount===0?f._events=new n:delete f._events[u]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var u=[],h,g;if(this._eventsCount===0)return u;for(g in h=this._events)t.call(h,g)&&u.push(r?g.slice(1):g);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},d.prototype.listeners=function(u){var h=r?r+u:u,g=this._events[h];if(!g)return[];if(g.fn)return[g.fn];for(var y=0,_=g.length,S=new Array(_);y<_;y++)S[y]=g[y].fn;return S},d.prototype.listenerCount=function(u){var h=r?r+u:u,g=this._events[h];return g?g.fn?1:g.length:0},d.prototype.emit=function(u,h,g,y,_,S){var E=r?r+u:u;if(!this._events[E])return!1;var x=this._events[E],T=arguments.length,I,R;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),T){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,h),!0;case 3:return x.fn.call(x.context,h,g),!0;case 4:return x.fn.call(x.context,h,g,y),!0;case 5:return x.fn.call(x.context,h,g,y,_),!0;case 6:return x.fn.call(x.context,h,g,y,_,S),!0}for(R=1,I=new Array(T-1);R0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]"u"||!e.message?t:e.message},CX=["getList","getMany","getManyReference"],Zo=function(){var e=p.useContext(Pj)||Oj,t=Tz(),r=p.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],s=0;s0),n=Ke.useRef(e.isMutating()>0),a=Ke.useState(r.current||n.current),o=a[0],s=a[1];return Ke.useEffect(function(){t.current=!0;var d=e.getQueryCache().subscribe(Pn.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,s(r.current||n.current))})),f=e.getMutationCache().subscribe(Pn.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,s(r.current||n.current))}));return function(){t.current=!1,d(),f()}},[e]),o},dl=function(){var e=$i();return p.useCallback(function(){e.invalidateQueries()},[e])},q2=function(){return q2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o(h)?a>1?r(h,a-1,o,s,d):e(d,h):s||(d[d.length]=h)}return d}return JP=r,JP}var ZP,HL;function TX(){if(HL)return ZP;HL=1;function e(t,r,n,a){for(var o=t.length,s=n+(a?1:-1);a?s--:++s-1}return nR=t,nR}var aR,YL;function Fz(){if(YL)return aR;YL=1;function e(t,r,n){for(var a=-1,o=t==null?0:t.length;++a=s){var T=u?null:a(f);if(T)return o(T);S=!1,y=n,x=new e}else x=u?[]:E;e:for(;++g<_;){var I=f[g],R=u?u(I):I;if(I=h||I!==0?I:0,S&&R===R){for(var P=x.length;P--;)if(x[P]===R)continue e;u&&x.push(R),E.push(I)}else y(x,R,h)||(x!==E&&x.push(R),E.push(I))}return E}return sR=d,sR}var lR,tD;function NX(){if(tD)return lR;tD=1;var e=Rj(),t=sw(),r=DX(),n=_j(),a=t(function(o){return r(e(o,1,n,!0))});return lR=a,lR}var BX=NX();const $z=tt(BX);var U2=function(){return U2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0?V(G):G},{updatedAt:B}),a.setQueriesData({queryKey:[k,"getManyReference"]},function(G){return G&&G.data?{data:V(G.data),total:G.total}:G},{updatedAt:B})},P=Ef(Nr(Nr({mutationFn:function(j){var k=j===void 0?{}:j,M=k.resource,$=M===void 0?e:M,N=k.id,B=N===void 0?_.current.id:N,q=k.data,V=q===void 0?_.current.data:q,G=k.meta,Y=G===void 0?_.current.meta:G,X=k.previousData,H=X===void 0?_.current.previousData:X;if(!$)throw new Error("useUpdate mutation requires a non-empty resource");if(B==null)throw new Error("useUpdate mutation requires a non-empty id");if(!V)throw new Error("useUpdate mutation requires a non-empty data object");return E.current($,{id:B,data:V,previousData:H,meta:Y}).then(function(te){var ne=te.data;return ne})}},g),{onMutate:function(j){return nD(void 0,void 0,void 0,function(){var k;return aD(this,function(M){switch(M.label){case 0:return g.onMutate?[4,g.onMutate(j)]:[3,2];case 1:return k=M.sent()||{},[2,Nr({snapshot:S.current},k)];case 2:return[2,{snapshot:S.current}]}})})},onError:function(j,k,M){if(k===void 0&&(k={}),(y.current==="optimistic"||y.current==="undoable")&&M.snapshot.forEach(function($){var N=$[0],B=$[1];a.setQueryData(N,B)}),x.current)return x.current(j,k,M);if(g.onError)return g.onError(j,k,M)},onSuccess:function(j,k,M){if(k===void 0&&(k={}),y.current==="pessimistic"){var $=k.resource,N=$===void 0?e:$,B=k.id,q=B===void 0?o:B;R({resource:N,id:q,data:j}),g.onSuccess&&!I.current&&g.onSuccess(j,k,M)}},onSettled:function(j,k,M,$){if(M===void 0&&(M={}),(y.current==="optimistic"||y.current==="undoable")&&$.snapshot.forEach(function(N){var B=N[0];a.invalidateQueries({queryKey:B})}),T.current)return T.current(j,k,M,$);if(g.onSettled)return g.onSettled(j,k,M,$)}})),C=function(j,k,M){return j===void 0&&(j=e),k===void 0&&(k={}),M===void 0&&(M={}),nD(void 0,void 0,void 0,function(){var $,N,B,q,V,G,Y,X,H,te,ne,K,ee,Ce,se;return aD(this,function(Se){switch(Se.label){case 0:return $=M.mutationMode,N=M.returnPromise,B=N===void 0?g.returnPromise:N,q=M.onError,V=M.onSettled,G=M.onSuccess,Y=oD(M,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),h?E.current=h(n.update.bind(n)):E.current=n.update,I.current=!!G,x.current=q,T.current=V,_.current=t,$&&(y.current=$),B&&y.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),y.current==="pessimistic"?B?[2,P.mutateAsync(Nr({resource:j},k),Nr({onSuccess:G},Y))]:[2,P.mutate(Nr({resource:j},k),Nr({onSuccess:G},Y))]:(X=k.id,H=X===void 0?o:X,te=k.data,ne=te===void 0?s:te,K=k.meta,ee=K===void 0?d:K,Ce=a.getQueryData([j,"getOne",{id:String(H),meta:ee}]),se=[[j,"getOne",{id:String(H),meta:ee}],[j,"getList"],[j,"getInfiniteList"],[j,"getMany"],[j,"getManyReference"]],S.current=se.reduce(function(me,we){return me.concat(a.getQueriesData({queryKey:we}))},[]),[4,Promise.all(S.current.map(function(me){var we=me[0];return a.cancelQueries({queryKey:we})}))]);case 1:return Se.sent(),R({resource:j,id:H,data:ne}),setTimeout(function(){G?G(Nr(Nr({},Ce),ne),Nr({resource:j},k),{snapshot:S.current}):g.onSuccess&&!I.current&&g.onSuccess(Nr(Nr({},Ce),ne),Nr({resource:j},k),{snapshot:S.current})},0),y.current==="optimistic"?[2,P.mutate(Nr({resource:j},k))]:(hb.once("end",function(me){var we=me.isUndo;we?S.current.forEach(function(Oe){var ie=Oe[0],Fe=Oe[1];a.setQueryData(ie,Fe)}):P.mutate(Nr({resource:j},k))}),[2])}})})},O=p.useMemo(function(){return Nr({isLoading:P.isPending},P)},[P]);return[wr(C),O]},Ha=function(){return Ha=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0?M($):$},{updatedAt:k}),a.setQueriesData({queryKey:[C,"getManyReference"]},function($){if(!$||!$.data)return $;var N=M($.data),B=N.length<$.data.length;return B?{data:N,total:$.total-1}:$},{updatedAt:k})},T=Ef(Ha(Ha({mutationFn:function(P){var C=P===void 0?{}:P,O=C.resource,j=O===void 0?e:O,k=C.id,M=k===void 0?g.current.id:k,$=C.previousData,N=$===void 0?g.current.previousData:$,B=C.meta,q=B===void 0?g.current.meta:B;if(!j)throw new Error("useDelete mutation requires a non-empty resource");if(M==null)throw new Error("useDelete mutation requires a non-empty id");return n.delete(j,{id:M,previousData:N,meta:q}).then(function(V){var G=V.data;return G})}},u),{onMutate:function(P){return iD(void 0,void 0,void 0,function(){var C;return sD(this,function(O){switch(O.label){case 0:return u.onMutate?[4,u.onMutate(P)]:[3,2];case 1:return C=O.sent()||{},[2,Ha({snapshot:y.current},C)];case 2:return[2,{snapshot:y.current}]}})})},onError:function(P,C,O){if(C===void 0&&(C={}),(h.current==="optimistic"||h.current==="undoable")&&O.snapshot.forEach(function(j){var k=j[0],M=j[1];a.setQueryData(k,M)}),u.onError&&!_.current)return u.onError(P,C,O)},onSuccess:function(P,C,O){if(C===void 0&&(C={}),h.current==="pessimistic"){var j=C.resource,k=j===void 0?e:j,M=C.id,$=M===void 0?o:M;x({resource:k,id:$}),u.onSuccess&&!S.current&&u.onSuccess(P,C,O)}},onSettled:function(P,C,O,j){if(O===void 0&&(O={}),(h.current==="optimistic"||h.current==="undoable")&&j.snapshot.forEach(function(k){var M=k[0];a.invalidateQueries({queryKey:M})}),u.onSettled&&!E.current)return u.onSettled(P,C,O,j)}})),I=function(P,C,O){return P===void 0&&(P=e),C===void 0&&(C={}),O===void 0&&(O={}),iD(void 0,void 0,void 0,function(){var j,k,M,$,N,B,q;return sD(this,function(V){switch(V.label){case 0:return j=O.mutationMode,k=lD(O,["mutationMode"]),_.current=!!O.onError,S.current=!!O.onSuccess,E.current=!!O.onSettled,g.current=t,j&&(h.current=j),h.current==="pessimistic"?[2,T.mutate(Ha({resource:P},C),k)]:(M=C.id,$=M===void 0?o:M,N=C.previousData,B=N===void 0?s:N,q=[[P,"getList"],[P,"getInfiniteList"],[P,"getMany"],[P,"getManyReference"]],y.current=q.reduce(function(G,Y){return G.concat(a.getQueriesData({queryKey:Y}))},[]),[4,Promise.all(y.current.map(function(G){var Y=G[0];return a.cancelQueries({queryKey:Y})}))]);case 1:return V.sent(),x({resource:P,id:$}),setTimeout(function(){O.onSuccess?O.onSuccess(B,Ha({resource:P},C),{snapshot:y.current}):u.onSuccess&&u.onSuccess(B,Ha({resource:P},C),{snapshot:y.current})},0),h.current==="optimistic"?[2,T.mutate(Ha({resource:P},C),{onSettled:O.onSettled,onError:O.onError})]:(hb.once("end",function(G){var Y=G.isUndo;Y?y.current.forEach(function(X){var H=X[0],te=X[1];a.setQueryData(H,te)}):T.mutate(Ha({resource:P},C),{onSettled:O.onSettled,onError:O.onError})}),[2])}})})},R=p.useMemo(function(){return Ha({isLoading:T.isPending},T)},[T]);return[wr(I),R]},Ga=function(){return Ga=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0?k(M):M},{updatedAt:j}),a.setQueriesData({queryKey:[P,"getManyReference"]},function(M){if(!M||!M.data)return M;var $=k(M.data),N=$.length=0?s[u].apply(s,tg(tg([],g,!1),[h],!1)):o.apply(void 0,g)};return s.length>0?s[u].apply(s,tg(tg([],d,!1),[h],!1)):o.apply(void 0,d)}},[]),a=p.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},M1=function(){return M1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0;K||E(typeof Y=="string"?Y:Y.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Y=="string"?Y:Y instanceof Error||typeof Y=="object"&&Y!==null&&Y.hasOwnProperty("message")?Y.message:void 0}})}},C),{returnPromise:!0,getMutateWithMiddlewares:k})),N=$[0],B=$[1].isPending,q=p.useCallback(function(Y,X){X===void 0&&(X={});var H=X.transform,te=X.meta,ne=SD(X,["transform","meta"]);return Promise.resolve(H?H(Y):o?o(Y):Y).then(function(K){return xD(void 0,void 0,void 0,function(){var ee,Ce;return wD(this,function(se){switch(se.label){case 0:return se.trys.push([0,2,,3]),[4,N(f,{data:K,meta:te??P},ne)];case 1:return se.sent(),[3,3];case 2:return ee=se.sent(),(ee instanceof Iz||typeof ee=="object"&&ee!==null&&ee.hasOwnProperty("body"))&&((Ce=ee.body)===null||Ce===void 0?void 0:Ce.errors)!=null?[2,ee.body.errors]:[3,3];case 3:return[2]}})})})},[N,P,f,o]),V=bv(),G=S("ra.page.create",{name:V(f,1)});return{isFetching:!1,isLoading:!1,isPending:B,saving:B,defaultTitle:G,save:q,resource:f,record:T,redirect:y,registerMutationMiddleware:j,unregisterMutationMiddleware:M}},uY=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=Zh.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},cY=function(e,t){return t?"edit":e?"show":"list"},Ij=p.createContext(void 0);Ij.displayName="RecordContext";var Mc=function(e){var t=e.children,r=e.value;return p.createElement(Ij.Provider,{value:r},t)},jj=p.createContext(null);jj.displayName="CreateContext";var F1=function(){return F1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0;(!Be||a!=="pessimistic")&&E(typeof ie=="string"?ie:ie.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ie=="string"?ie:ie instanceof Error||typeof ie=="object"&&ie!==null&&ie.hasOwnProperty("message")?ie.message:void 0}})}},M),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:B})),me=Se[0],we=Se[1].isPending,Oe=p.useCallback(function(ie,Fe){var ke=Fe===void 0?{}:Fe,$e=ke.onSuccess,Te=ke.onError,Be=ke.transform,Le=ke.meta;return Promise.resolve(Be?Be(ie,{previousData:se.previousData}):g?g(ie,{previousData:se.previousData}):ie).then(function(dt){return ED(void 0,void 0,void 0,function(){var He,Z;return CD(this,function(ae){switch(ae.label){case 0:return ae.trys.push([0,2,,3]),[4,me(y,{id:R,data:dt,meta:Le??O},{onError:Te,onSuccess:$e})];case 1:return ae.sent(),[3,3];case 2:return He=ae.sent(),((Z=He.body)===null||Z===void 0?void 0:Z.errors)!=null?[2,He.body.errors]:[3,3];case 3:return[2]}})})})},[R,O,y,g,me,se.previousData]);return{defaultTitle:Ce,error:Y,isFetching:H,isLoading:X,isPending:te,mutationMode:a,record:G,redirect:h,refetch:ne,registerMutationMiddleware:N,resource:y,save:Oe,saving:we,unregisterMutationMiddleware:q}},mY="list",Sr=function(e){var t=p.useContext(Ij);return e&&e.record||t},qz=function(e){var t=e.value,r=e.children;return t?p.createElement(Mc,{value:t},r):r},Tj=p.createContext(null);Tj.displayName="EditContext";var gY=function(e){var t=e.children,r=e.value;return p.createElement(Tj.Provider,{value:r},p.createElement(Nz,{value:Bz(r)},p.createElement(Mc,{value:r&&r.record},t)))},yY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":e(u)){case"string":return[{item:h,value:this._handleString(u,h)}];case"number":return[{item:h,value:this._handleNumber(u,h)}];case"boolean":return[{item:h,value:this._handleBoolean.bind(this)(u,h)}]}return this.checkComplex(u,h)}},{key:"_handleObject",value:function(u){var h=[];for(var g in u){var y=u[g],_=this.check(y,g,g,u);h=h.concat(_)}return h}},{key:"_handleArray",value:function(u){for(var h=this,g=[],y,_=0;_0&&!x.item&&y===void 0&&(y=x);g=g.concat(E)}}return g}},{key:"_handleBoolean",value:function(u){var h;return u?h=this._options.booleanTrueString||"true":h=this._options.booleanFalseString||"false",h}},{key:"_handleString",value:function(u){return u}},{key:"_handleNumber",value:function(u){return u}},{key:"_handleDate",value:function(u){return u.toLocaleDateString()}}]),d}();SR=a;var o=typeof window>"u"?Yl:window;function s(d,f){if(d instanceof o[f])return!0;switch(typeof d>"u"?"undefined":e(d)){case"string":return f==="String";case"boolean":return f==="Boolean";case"number":return f==="Number"}return!1}return SR}var ER,jD;function kY(){return jD||(jD=1,ER=function(t,r,n){var a=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),s=t+t,d=t==='"'?function(f){return f.indexOf(r)>=0||f.indexOf(a)>=0||f.indexOf('"')>=0}:function(f){return f.indexOf(r)>=0||f.indexOf(a)>=0};return function(f){return n&&(f=""+f),f.replace&&(f=f.replace(o,s),(n||d(f))&&(f=t+f+t)),f}}),ER}var CR,TD;function IY(){if(TD)return CR;TD=1;var e=function(){function s(d,f){for(var u=0;u0&&(T=T.concat(Array(I).join(".").split("."))),u&&this._options.fillGaps&&(T=T.map(g)),h.push(T.join(this._options.rowDelimiter)),u=T}}catch(R){_=!0,S=R}finally{try{!y&&E.return&&E.return()}finally{if(_)throw S}}return h}},{key:"_parseArray",value:function(f,u){var h=this;this._headers=this._headers||[];var g=[],y=void 0,_=function(O){var j=h._headers.indexOf(O);return j===-1&&(h._headers.push(O),j=h._headers.indexOf(O)),j};y=function(O){var j=[],k=function(ne){return j.push(ne.map(function(K){return K??""}))},M=function(){return new Array(h._headers.length).fill(null)},$={},N=M(),B=!0,q=!1,V=void 0;try{for(var G=O[Symbol.iterator](),Y;!(B=(Y=G.next()).done);B=!0){var X=Y.value,H=_(X.item);if(N[H]!=null&&(k(N),N=M()),$[H]=$[H]||0,h._options.fillTopRow&&$[H]0&&k(N),g=g.concat(h._checkRows(j))};var S=!0,E=!1,x=void 0;try{for(var T=f[Symbol.iterator](),I;!(S=(I=T.next()).done);S=!0){var R=I.value,P=h._handler.check(R,h._options.mainPathItem,R,f);y(P)}}catch(C){E=!0,x=C}finally{try{!S&&T.return&&T.return()}finally{if(E)throw x}}return!u&&h._options.includeHeaders&&g.unshift(this.headers),r(g,h._options.endOfLine)}},{key:"_parseObject",value:function(f){var u=this,h=[],g=[],y=void 0,_=[[],[]];y=function(T){var I=T.value||T.value===0?T.value.toString():u._options.undefinedString;if(I=u._escape(I),u._options.verticalOutput){var R=[T.item,I];h.push(R.join(u._options.rowDelimiter))}else _[0].push(T.item),_[1].push(I)};for(var S in f){var E="";this._options.mainPathItem&&(E=this._options.mainPathItem+this._options.headerPathString),g=this._handler.check(f[S],E+S,S,f),g.forEach(y)}return this._options.verticalOutput||(h.push(_[0].join(this._options.rowDelimiter)),h.push(_[1].join(this._options.rowDelimiter))),r(h,this._options.endOfLine)}},{key:"headers",get:function(){var f=this,u=this._headers;return this._options.rename&&this._options.rename.length>0&&(u=u.map(function(h){return f._options.rename[f._options.headers.indexOf(h)]||h})),this._options.forceTextDelimiter&&(u=u.map(function(h){return""+f._options.textDelimiter+h+f._options.textDelimiter})),this._options.mapHeaders&&(u=u.map(this._options.mapHeaders)),u.join(this._options.rowDelimiter)}}]),s}();return CR=o,CR}var OR,AD;function jY(){if(AD)return OR;AD=1;var e=function(t){throw new Error("jsonexport called without third argument as a callback and is required")};return OR=e,OR}var PR,MD;function TY(){if(MD)return PR;MD=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t=IY(),r=jY();uw();var n=Vz();return PR=function(){var a={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:n||` +`,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},o=void 0,s=void 0,d=void 0;if(arguments.length===3){var f=Array.prototype.slice.call(arguments);o=f[0],s=f[1],d=f[2]}else if(arguments.length===2){var u=void 0,h=Array.prototype.slice.call(arguments);o=h[0],u=h[1],typeof u=="function"?d=u:(typeof u>"u"?"undefined":e(u))==="object"&&(s=u)}else if(arguments.length===1){var g=Array.prototype.slice.call(arguments),y=g[0];if((typeof y>"u"?"undefined":e(y))==="object"){var _=Object.keys(a),S=Object.keys(y),E=S.every(function(I){return _.includes(I)});S.length>0&&E?s=y:o=y}else o=y}else return new r(new t(a));var x=Object.assign({},a,s),T=new t(x);return o?new Promise(function(I,R){T.parse(o,function(P,C){if(d)return d(P,C);if(P)return R(P);if(R)return I(C)})}):new r(T)},PR}var AY=TY();const MY=tt(AY);var FY=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},$Y=function(e,t,r,n){return MY(e,function(a,o){return FY(o,n)})},LY=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)},[])))},DY=function(e){return function(t,r,n){return e.getMany(n,{ids:LY(t,r)}).then(function(a){var o=a.data;return o.reduce(function(s,d){return s[d.id]=d,s},{})})}},rh=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||S(function(I){if(!Array.isArray(I))return rh([],I,!0);var R=I.indexOf(T);return R>-1?rh(rh([],I.slice(0,R),!0),I.slice(R+1),!0):rh(rh([],I,!0),[T],!1)})},clearSelection:function(){E()}}},[S,E]);return[_,x]},RR=[];function Ci(e){var t=p.useState(e),r=t[0],n=t[1],a=p.useRef(!1);p.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=p.useCallback(function(s){if(a.current)return n(s)},[a,n]);return[r,o]}function cw(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Ci(!1),n=r[0],a=r[1];return p.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function NY(){var e=p.useRef(!0);return p.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Jl=function(){return Jl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&P(M)},[_.search]);var $=p.useCallback(function(ne){O.current&&(C.current?C.current=FL(C.current,ne):(C.current=FL(M,ne),setTimeout(function(){C.current&&(a&&!y?T(C.current):a&&y?P(C.current):S({search:"?".concat(Zh.stringify(Jl(Jl({},C.current),{filter:JSON.stringify(C.current.filter),displayedFilters:JSON.stringify(C.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===B2}}),C.current=void 0)},0)))},FD(FD([],j,!0),[S],!1)),N=p.useCallback(function(ne){return $({type:Sz,payload:ne})},[$]),B=p.useCallback(function(ne){return $({type:B2,payload:ne})},[$]),q=p.useCallback(function(ne){return $({type:Ez,payload:ne})},[$]),V=M.filter||DD,G=M.displayedFilters||DD,Y=Cj(function(ne,K){$({type:z2,payload:{filter:kc(ne),displayedFilters:K}})},r),X=p.useCallback(function(ne,K,ee){return K===void 0&&(K=void 0),ee===void 0&&(ee=!1),ee?Y(ne,K):$({type:z2,payload:{filter:kc(ne),displayedFilters:K}})},[$]),H=p.useCallback(function(ne){$({type:Oz,payload:ne})},[$]),te=p.useCallback(function(ne,K){$({type:Cz,payload:{filterName:ne,defaultValue:K}})},[$]);return[Jl(Jl({filterValues:V,requestSignature:j},M),{displayedFilters:G}),{changeParams:$,setPage:B,setPerPage:q,setSort:N,setFilters:X,hideFilter:H,showFilter:te}]},$D=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},zY=function(e){var t=e.search,r=Zh.parse(t);return $D(r,"filter"),$D(r,"displayedFilters"),r},qY=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},UY=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,s=Object.keys(t).length>0?t:qY(r)?Jl({},r):{filter:n||{}};return s.sort||(s.sort=a.field,s.order=a.order),s.perPage==null&&(s.perPage=o),s.page==null&&(s.page=1),Jl(Jl({},s),{page:LD(s.page,1),perPage:LD(s.perPage,10)})},LD=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},DD={},VY={field:"id",order:df},ND={},dw=p.createContext(null);dw.displayName="ListContext";var Wz=p.createContext(void 0),WY=function(e){return p.useMemo(function(){return lw(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};Wz.displayName="ListFilterContext";var Hz=p.createContext(void 0),HY=function(e){return p.useMemo(function(){return lw(e,["sort","setSort","resource"])},[e.sort,e.setSort])};Hz.displayName="ListSortContext";var Aj=p.createContext(void 0);Aj.displayName="ListPaginationContext";var GY=function(e){return p.useMemo(function(){return lw(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},Mj=function(e){var t=e.value,r=e.children;return p.createElement(dw.Provider,{value:t},p.createElement(Wz.Provider,{value:WY(t)},p.createElement(Hz.Provider,{value:HY(t)},p.createElement(Aj.Provider,{value:GY(t)},r))))},ff=function(){return ff=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(B==null||(B==null?void 0:B.length)===0)){j.setPage(1);return}if(V!=null){var se=Math.ceil(V/O.perPage)||1;!H&&O.page>se&&j.setPage(se)}},[H,O.page,O.perPage,B,j,V]);var K=p.useMemo(function(){return{field:O.sort,order:O.order}},[O.sort,O.order]),ee=bv(),Ce=R("ra.page.list",{name:ee(x,2)});return{sort:K,data:B,meta:G,defaultTitle:Ce,displayedFilters:O.displayedFilters,error:Y,exporter:s,filter:d,filterValues:O.filterValues,hideFilter:j.hideFilter,isFetching:H,isLoading:X,isPending:te,onSelect:$.select,onToggleItem:$.toggle,onUnselectItems:$.clearSelection,page:O.page,perPage:O.perPage,refetch:ne,resource:x,selectedIds:M,setFilters:j.setFilters,setPage:j.setPage,setPerPage:j.setPerPage,setSort:j.setSort,showFilter:j.showFilter,total:V,hasNextPage:q?q.hasNextPage:V!=null?O.page*O.perPage1}},XY={field:"id",order:df},YY=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],vb=function(e){return Object.keys(e).filter(function(t){return!YY.includes(t)}).reduce(function(t,r){var n;return ff(ff({},t),(n={},n[r]=e[r],n))},{})},JY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:M_(M_([],f.slice(0,u),!0),f.slice(u+1),!0):r?[t]:M_(M_([],f,!0),[t],!1)})},[o,t,r]);return[s,d]},tJ=function(e,t){var r=_a("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(d){return t.some(function(f){return f==d})}):!1,s=p.useCallback(function(){var d=n.filter(function(f){return!t.some(function(u){return u==f})});a(o?d:d.concat(t))},[n,a,o,t]);return[o,s]},yh=function(){return yh=Object.assign||function(e){for(var t,r=1,n=arguments.length;rxr(be,ee.field)?ee.order==="ASC"?1:-1:xr(ve,ee.field)1,hideFilter:Le,isFetching:C,isLoading:k,isPending:N,onSelect:we.select,onToggleItem:we.toggle,onUnselectItems:we.clearSelection,page:X,perPage:te,resource:"",refetch:rJ,selectedIds:me,setFilters:He,setPage:H,setPerPage:ne,setSort:se,showFilter:dt,total:V==null?void 0:V.total}},nJ={},La=function(){var e=p.useContext(dw);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},kR,zD;function aJ(){if(zD)return kR;zD=1;var e=sw(),t=mv(),r=gz(),n=gv(),a=Object.prototype,o=a.hasOwnProperty,s=e(function(d,f){d=Object(d);var u=-1,h=f.length,g=h>2?f[2]:void 0;for(g&&r(f[0],f[1],g)&&(h=1);++u1,setSort:V,showFilter:me,total:ke}},uJ={},Wb=e=>e.type==="checkbox",bh=e=>e instanceof Date,Za=e=>e==null;const Yz=e=>typeof e=="object";var Nn=e=>!Za(e)&&!Array.isArray(e)&&Yz(e)&&!bh(e),Jz=e=>Nn(e)&&e.target?Wb(e.target)?e.target.checked:e.target.value:e,cJ=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Zz=(e,t)=>e.has(cJ(t)),dJ=e=>{const t=e.constructor&&e.constructor.prototype;return Nn(t)&&t.hasOwnProperty("isPrototypeOf")},$j=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Kn(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(!($j&&(e instanceof Blob||e instanceof FileList))&&(r||Nn(e)))if(t=r?[]:{},!r&&!dJ(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Kn(e[n]));else return e;return t}var Hb=e=>Array.isArray(e)?e.filter(Boolean):[],Yr=e=>e===void 0,at=(e,t,r)=>{if(!t||!Nn(e))return r;const n=Hb(t.split(/[,[\].]+?/)).reduce((a,o)=>Za(a)?a:a[o],e);return Yr(n)||n===e?Yr(e[t])?r:e[t]:n},wi=e=>typeof e=="boolean",Lj=e=>/^\w*$/.test(e),eq=e=>Hb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Br=(e,t,r)=>{let n=-1;const a=Lj(t)?[t]:eq(t),o=a.length,s=o-1;for(;++nKe.useContext(tq),rq=e=>{const{children:t,...r}=e;return Ke.createElement(tq.Provider,{value:r},t)};var nq=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Pi.all&&(t._proxyFormState[s]=!n||Pi.all),r&&(r[s]=!0),e[s]}});return a},Ya=e=>Nn(e)&&!Object.keys(e).length,aq=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return Ya(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!n||Pi.all))},Oo=e=>Array.isArray(e)?e:[e],oq=(e,t,r)=>!e||!t||e===t||Oo(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function fw(e){const t=Ke.useRef(e);t.current=e,Ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Gb(e){const t=Li(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[s,d]=Ke.useState(r._formState),f=Ke.useRef(!0),u=Ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=Ke.useRef(a);return h.current=a,fw({disabled:n,next:g=>f.current&&oq(h.current,g.name,o)&&aq(g,u.current,r._updateFormState)&&d({...r._formState,...g}),subject:r._subjects.state}),Ke.useEffect(()=>(f.current=!0,u.current.isValid&&r._updateValid(!0),()=>{f.current=!1}),[r]),nq(s,r,u.current,!1)}var el=e=>typeof e=="string",iq=(e,t,r,n,a)=>el(e)?(n&&t.watch.add(e),at(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),at(r,o))):(n&&(t.watchAll=!0),r);function sq(e){const t=Li(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:s}=e||{},d=Ke.useRef(n);d.current=n,fw({disabled:o,subject:r._subjects.values,next:h=>{oq(d.current,h.name,s)&&u(Kn(iq(d.current,r._names,h.values||r._formValues,!1,a)))}});const[f,u]=Ke.useState(r._getWatch(n,a));return Ke.useEffect(()=>r._removeUnmounted()),f}function fJ(e){const t=Li(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,s=Zz(a._names.array,r),d=sq({control:a,name:r,defaultValue:at(a._formValues,r,at(a._defaultValues,r,e.defaultValue)),exact:!0}),f=Gb({control:a,name:r,exact:!0}),u=Ke.useRef(a.register(r,{...e.rules,value:d,...wi(e.disabled)?{disabled:e.disabled}:{}}));return Ke.useEffect(()=>{const h=a._options.shouldUnregister||o,g=(y,_)=>{const S=at(a._fields,y);S&&S._f&&(S._f.mount=_)};if(g(r,!0),h){const y=Kn(at(a._options.defaultValues,r));Br(a._defaultValues,r,y),Yr(at(a._formValues,r))&&Br(a._formValues,r,y)}return()=>{(s?h&&!a._state.action:h)?a.unregister(r):g(r,!1)}},[r,a,s,o]),Ke.useEffect(()=>{at(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:at(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:d,...wi(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:Ke.useCallback(h=>u.current.onChange({target:{value:Jz(h),name:r},type:$1.CHANGE}),[r]),onBlur:Ke.useCallback(()=>u.current.onBlur({target:{value:at(a._formValues,r),name:r},type:$1.BLUR}),[r,a]),ref:Ke.useCallback(h=>{const g=at(a._fields,r);g&&h&&(g._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:y=>h.setCustomValidity(y),reportValidity:()=>h.reportValidity()})},[a._fields,r])},formState:f,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!at(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!at(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!at(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!at(f.validatingFields,r)},error:{enumerable:!0,get:()=>at(f.errors,r)}})}}var pJ=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},Qu=()=>{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)})},jR=(e,t,r={})=>r.shouldFocus||Yr(r.shouldFocus)?r.focusName||`${e}.${Yr(r.focusIndex)?t:r.focusIndex}.`:"",Gy=e=>({isOnSubmit:!e||e===Pi.onSubmit,isOnBlur:e===Pi.onBlur,isOnChange:e===Pi.onChange,isOnAll:e===Pi.all,isOnTouch:e===Pi.onTouched}),H2=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Sh=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=at(e,a);if(o){const{_f:s,...d}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],a)&&!n)return!0;if(s.ref&&t(s.ref,s.name)&&!n)return!0;if(Sh(d,t))break}else if(Nn(d)&&Sh(d,t))break}}};var lq=(e,t,r)=>{const n=Oo(at(e,r));return Br(n,"root",t[r]),Br(e,r,n),e},Dj=e=>e.type==="file",Zl=e=>typeof e=="function",L1=e=>{if(!$j)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},o1=e=>el(e),Nj=e=>e.type==="radio",D1=e=>e instanceof RegExp;const qD={value:!1,isValid:!1},UD={value:!0,isValid:!0};var uq=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&&!Yr(e[0].attributes.value)?Yr(e[0].value)||e[0].value===""?UD:{value:e[0].value,isValid:!0}:UD:qD}return qD};const VD={isValid:!1,value:null};var cq=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,VD):VD;function WD(e,t,r="validate"){if(o1(e)||Array.isArray(e)&&e.every(o1)||wi(e)&&!e)return{type:r,message:o1(e)?e:"",ref:t}}var nh=e=>Nn(e)&&!D1(e)?e:{value:e,message:""},G2=async(e,t,r,n,a)=>{const{ref:o,refs:s,required:d,maxLength:f,minLength:u,min:h,max:g,pattern:y,validate:_,name:S,valueAsNumber:E,mount:x,disabled:T}=e._f,I=at(t,S);if(!x||T)return{};const R=s?s[0]:o,P=B=>{n&&R.reportValidity&&(R.setCustomValidity(wi(B)?"":B||""),R.reportValidity())},C={},O=Nj(o),j=Wb(o),k=O||j,M=(E||Dj(o))&&Yr(o.value)&&Yr(I)||L1(o)&&o.value===""||I===""||Array.isArray(I)&&!I.length,$=pJ.bind(null,S,r,C),N=(B,q,V,G=Wl.maxLength,Y=Wl.minLength)=>{const X=B?q:V;C[S]={type:B?G:Y,message:X,ref:o,...$(B?G:Y,X)}};if(a?!Array.isArray(I)||!I.length:d&&(!k&&(M||Za(I))||wi(I)&&!I||j&&!uq(s).isValid||O&&!cq(s).isValid)){const{value:B,message:q}=o1(d)?{value:!!d,message:d}:nh(d);if(B&&(C[S]={type:Wl.required,message:q,ref:R,...$(Wl.required,q)},!r))return P(q),C}if(!M&&(!Za(h)||!Za(g))){let B,q;const V=nh(g),G=nh(h);if(!Za(I)&&!isNaN(I)){const Y=o.valueAsNumber||I&&+I;Za(V.value)||(B=Y>V.value),Za(G.value)||(q=Ynew Date(new Date().toDateString()+" "+ne),H=o.type=="time",te=o.type=="week";el(V.value)&&I&&(B=H?X(I)>X(V.value):te?I>V.value:Y>new Date(V.value)),el(G.value)&&I&&(q=H?X(I)+B.value,G=!Za(q.value)&&I.length<+q.value;if((V||G)&&(N(V,B.message,q.message),!r))return P(C[S].message),C}if(y&&!M&&el(I)){const{value:B,message:q}=nh(y);if(D1(B)&&!I.match(B)&&(C[S]={type:Wl.pattern,message:q,ref:o,...$(Wl.pattern,q)},!r))return P(q),C}if(_){if(Zl(_)){const B=await _(I,t),q=WD(B,R);if(q&&(C[S]={...q,...$(Wl.validate,q.message)},!r))return P(q.message),C}else if(Nn(_)){let B={};for(const q in _){if(!Ya(B)&&!r)break;const V=WD(await _[q](I,t),R,q);V&&(B={...V,...$(q,V.message)},P(V.message),r&&(C[S]=B))}if(!Ya(B)&&(C[S]={ref:R,...B},!r))return C}}return P(!0),C},TR=(e,t)=>[...e,...Oo(t)],AR=e=>Array.isArray(e)?e.map(()=>{}):void 0;function MR(e,t,r){return[...e.slice(0,t),...Oo(r),...e.slice(t)]}var FR=(e,t,r)=>Array.isArray(e)?(Yr(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],$R=(e,t)=>[...Oo(t),...Oo(e)];function hJ(e,t){let r=0;const n=[...e];for(const a of t)n.splice(a-r,1),r++;return Hb(n).length?n:[]}var LR=(e,t)=>Yr(t)?[]:hJ(e,Oo(t).sort((r,n)=>r-n)),DR=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function vJ(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function gJ(e){const t=Li(),{control:r=t.control,name:n,keyName:a="id",shouldUnregister:o}=e,[s,d]=Ke.useState(r._getFieldArray(n)),f=Ke.useRef(r._getFieldArray(n).map(Qu)),u=Ke.useRef(s),h=Ke.useRef(n),g=Ke.useRef(!1);h.current=n,u.current=s,r._names.array.add(n),e.rules&&r.register(n,e.rules),fw({next:({values:C,name:O})=>{if(O===h.current||!O){const j=at(C,h.current);Array.isArray(j)&&(d(j),f.current=j.map(Qu))}},subject:r._subjects.array});const y=Ke.useCallback(C=>{g.current=!0,r._updateFieldArray(n,C)},[r,n]),_=(C,O)=>{const j=Oo(Kn(C)),k=TR(r._getFieldArray(n),j);r._names.focus=jR(n,k.length-1,O),f.current=TR(f.current,j.map(Qu)),y(k),d(k),r._updateFieldArray(n,k,TR,{argA:AR(C)})},S=(C,O)=>{const j=Oo(Kn(C)),k=$R(r._getFieldArray(n),j);r._names.focus=jR(n,0,O),f.current=$R(f.current,j.map(Qu)),y(k),d(k),r._updateFieldArray(n,k,$R,{argA:AR(C)})},E=C=>{const O=LR(r._getFieldArray(n),C);f.current=LR(f.current,C),y(O),d(O),r._updateFieldArray(n,O,LR,{argA:C})},x=(C,O,j)=>{const k=Oo(Kn(O)),M=MR(r._getFieldArray(n),C,k);r._names.focus=jR(n,C,j),f.current=MR(f.current,C,k.map(Qu)),y(M),d(M),r._updateFieldArray(n,M,MR,{argA:C,argB:AR(O)})},T=(C,O)=>{const j=r._getFieldArray(n);DR(j,C,O),DR(f.current,C,O),y(j),d(j),r._updateFieldArray(n,j,DR,{argA:C,argB:O},!1)},I=(C,O)=>{const j=r._getFieldArray(n);FR(j,C,O),FR(f.current,C,O),y(j),d(j),r._updateFieldArray(n,j,FR,{argA:C,argB:O},!1)},R=(C,O)=>{const j=Kn(O),k=HD(r._getFieldArray(n),C,j);f.current=[...k].map((M,$)=>!M||$===C?Qu():f.current[$]),y(k),d([...k]),r._updateFieldArray(n,k,HD,{argA:C,argB:j},!0,!1)},P=C=>{const O=Oo(Kn(C));f.current=O.map(Qu),y([...O]),d([...O]),r._updateFieldArray(n,[...O],j=>j,{},!0,!1)};return Ke.useEffect(()=>{if(r._state.action=!1,H2(n,r._names)&&r._subjects.state.next({...r._formState}),g.current&&(!Gy(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(C=>{const O=at(C.errors,n),j=at(r._formState.errors,n);(j?!O&&j.type||O&&(j.type!==O.type||j.message!==O.message):O&&O.type)&&(O?Br(r._formState.errors,n,O):$n(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const C=at(r._fields,n);C&&C._f&&!(Gy(r._options.reValidateMode).isOnSubmit&&Gy(r._options.mode).isOnSubmit)&&G2(C,r._formValues,r._options.criteriaMode===Pi.all,r._options.shouldUseNativeValidation,!0).then(O=>!Ya(O)&&r._subjects.state.next({errors:lq(r._formState.errors,O,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Sh(r._fields,(C,O)=>{if(r._names.focus&&O.startsWith(r._names.focus)&&C.focus)return C.focus(),1}),r._names.focus="",r._updateValid(),g.current=!1},[s,n,r]),Ke.useEffect(()=>(!at(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)}),[n,r,a,o]),{swap:Ke.useCallback(T,[y,n,r]),move:Ke.useCallback(I,[y,n,r]),prepend:Ke.useCallback(S,[y,n,r]),append:Ke.useCallback(_,[y,n,r]),remove:Ke.useCallback(E,[y,n,r]),insert:Ke.useCallback(x,[y,n,r]),update:Ke.useCallback(R,[y,n,r]),replace:Ke.useCallback(P,[y,n,r]),fields:Ke.useMemo(()=>s.map((C,O)=>({...C,[a]:f.current[O]||Qu()})),[s,a])}}var NR=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},N1=e=>Za(e)||!Yz(e);function ic(e,t){if(N1(e)||N1(t))return e===t;if(bh(e)&&bh(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const s=t[a];if(bh(o)&&bh(s)||Nn(o)&&Nn(s)||Array.isArray(o)&&Array.isArray(s)?!ic(o,s):o!==s)return!1}}return!0}var dq=e=>e.type==="select-multiple",yJ=e=>Nj(e)||Wb(e),BR=e=>L1(e)&&e.isConnected,fq=e=>{for(const t in e)if(Zl(e[t]))return!0;return!1};function B1(e,t={}){const r=Array.isArray(e);if(Nn(e)||r)for(const n in e)Array.isArray(e[n])||Nn(e[n])&&!fq(e[n])?(t[n]=Array.isArray(e[n])?[]:{},B1(e[n],t[n])):Za(e[n])||(t[n]=!0);return t}function pq(e,t,r){const n=Array.isArray(e);if(Nn(e)||n)for(const a in e)Array.isArray(e[a])||Nn(e[a])&&!fq(e[a])?Yr(t)||N1(r[a])?r[a]=Array.isArray(e[a])?B1(e[a],[]):{...B1(e[a])}:pq(e[a],Za(t)?{}:t[a],r[a]):r[a]=!ic(e[a],t[a]);return r}var F_=(e,t)=>pq(e,t,B1(t)),hq=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Yr(e)?e:t?e===""?NaN:e&&+e:r&&el(e)?new Date(e):n?n(e):e;function zR(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return Dj(t)?t.files:Nj(t)?cq(e.refs).value:dq(t)?[...t.selectedOptions].map(({value:r})=>r):Wb(t)?uq(e.refs).value:hq(Yr(t.value)?e.ref.value:t.value,e)}var bJ=(e,t,r,n)=>{const a={};for(const o of e){const s=at(t,o);s&&Br(a,o,s._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},rg=e=>Yr(e)?e:D1(e)?e.source:Nn(e)?D1(e.value)?e.value.source:e.value:e;const GD="AsyncFunction";var _J=e=>(!e||!e.validate)&&!!(Zl(e.validate)&&e.validate.constructor.name===GD||Nn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===GD)),xJ=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function KD(e,t,r){const n=at(e,r);if(n||Lj(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),s=at(t,o),d=at(e,o);if(s&&!Array.isArray(s)&&r!==o)return{name:r};if(d&&d.type)return{name:o,error:d};a.pop()}return{name:r}}var wJ=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,SJ=(e,t)=>!Hb(at(e,t)).length&&$n(e,t);const EJ={mode:Pi.onSubmit,reValidateMode:Pi.onChange,shouldFocusError:!0};function CJ(e={}){let t={...EJ,...e},r={submitCount:0,isDirty:!1,isLoading:Zl(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Nn(t.defaultValues)||Nn(t.values)?Kn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Kn(a),s={action:!1,mount:!1,watch:!1},d={mount:new Set,unMount:new Set,array:new Set,watch:new Set},f,u=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={values:NR(),array:NR(),state:NR()},y=Gy(t.mode),_=Gy(t.reValidateMode),S=t.criteriaMode===Pi.all,E=Z=>ae=>{clearTimeout(u),u=setTimeout(Z,ae)},x=async Z=>{if(h.isValid||Z){const ae=t.resolver?Ya((await k()).errors):await $(n,!0);ae!==r.isValid&&g.state.next({isValid:ae})}},T=(Z,ae)=>{(h.isValidating||h.validatingFields)&&((Z||Array.from(d.mount)).forEach(fe=>{fe&&(ae?Br(r.validatingFields,fe,ae):$n(r.validatingFields,fe))}),g.state.next({validatingFields:r.validatingFields,isValidating:!Ya(r.validatingFields)}))},I=(Z,ae=[],fe,ve,be=!0,_e=!0)=>{if(ve&&fe){if(s.action=!0,_e&&Array.isArray(at(n,Z))){const De=fe(at(n,Z),ve.argA,ve.argB);be&&Br(n,Z,De)}if(_e&&Array.isArray(at(r.errors,Z))){const De=fe(at(r.errors,Z),ve.argA,ve.argB);be&&Br(r.errors,Z,De),SJ(r.errors,Z)}if(h.touchedFields&&_e&&Array.isArray(at(r.touchedFields,Z))){const De=fe(at(r.touchedFields,Z),ve.argA,ve.argB);be&&Br(r.touchedFields,Z,De)}h.dirtyFields&&(r.dirtyFields=F_(a,o)),g.state.next({name:Z,isDirty:B(Z,ae),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Br(o,Z,ae)},R=(Z,ae)=>{Br(r.errors,Z,ae),g.state.next({errors:r.errors})},P=Z=>{r.errors=Z,g.state.next({errors:r.errors,isValid:!1})},C=(Z,ae,fe,ve)=>{const be=at(n,Z);if(be){const _e=at(o,Z,Yr(fe)?at(a,Z):fe);Yr(_e)||ve&&ve.defaultChecked||ae?Br(o,Z,ae?_e:zR(be._f)):G(Z,_e),s.mount&&x()}},O=(Z,ae,fe,ve,be)=>{let _e=!1,De=!1;const Ge={name:Z},Mt=!!(at(n,Z)&&at(n,Z)._f&&at(n,Z)._f.disabled);if(!fe||ve){h.isDirty&&(De=r.isDirty,r.isDirty=Ge.isDirty=B(),_e=De!==Ge.isDirty);const et=Mt||ic(at(a,Z),ae);De=!!(!Mt&&at(r.dirtyFields,Z)),et||Mt?$n(r.dirtyFields,Z):Br(r.dirtyFields,Z,!0),Ge.dirtyFields=r.dirtyFields,_e=_e||h.dirtyFields&&De!==!et}if(fe){const et=at(r.touchedFields,Z);et||(Br(r.touchedFields,Z,fe),Ge.touchedFields=r.touchedFields,_e=_e||h.touchedFields&&et!==fe)}return _e&&be&&g.state.next(Ge),_e?Ge:{}},j=(Z,ae,fe,ve)=>{const be=at(r.errors,Z),_e=h.isValid&&wi(ae)&&r.isValid!==ae;if(e.delayError&&fe?(f=E(()=>R(Z,fe)),f(e.delayError)):(clearTimeout(u),f=null,fe?Br(r.errors,Z,fe):$n(r.errors,Z)),(fe?!ic(be,fe):be)||!Ya(ve)||_e){const De={...ve,..._e&&wi(ae)?{isValid:ae}:{},errors:r.errors,name:Z};r={...r,...De},g.state.next(De)}},k=async Z=>{T(Z,!0);const ae=await t.resolver(o,t.context,bJ(Z||d.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return T(Z),ae},M=async Z=>{const{errors:ae}=await k(Z);if(Z)for(const fe of Z){const ve=at(ae,fe);ve?Br(r.errors,fe,ve):$n(r.errors,fe)}else r.errors=ae;return ae},$=async(Z,ae,fe={valid:!0})=>{for(const ve in Z){const be=Z[ve];if(be){const{_f:_e,...De}=be;if(_e){const Ge=d.array.has(_e.name),Mt=be._f&&_J(be._f);Mt&&h.validatingFields&&T([ve],!0);const et=await G2(be,o,S,t.shouldUseNativeValidation&&!ae,Ge);if(Mt&&h.validatingFields&&T([ve]),et[_e.name]&&(fe.valid=!1,ae))break;!ae&&(at(et,_e.name)?Ge?lq(r.errors,et,_e.name):Br(r.errors,_e.name,et[_e.name]):$n(r.errors,_e.name))}!Ya(De)&&await $(De,ae,fe)}}return fe.valid},N=()=>{for(const Z of d.unMount){const ae=at(n,Z);ae&&(ae._f.refs?ae._f.refs.every(fe=>!BR(fe)):!BR(ae._f.ref))&&me(Z)}d.unMount=new Set},B=(Z,ae)=>(Z&&ae&&Br(o,Z,ae),!ic(K(),a)),q=(Z,ae,fe)=>iq(Z,d,{...s.mount?o:Yr(ae)?a:el(Z)?{[Z]:ae}:ae},fe,ae),V=Z=>Hb(at(s.mount?o:a,Z,e.shouldUnregister?at(a,Z,[]):[])),G=(Z,ae,fe={})=>{const ve=at(n,Z);let be=ae;if(ve){const _e=ve._f;_e&&(!_e.disabled&&Br(o,Z,hq(ae,_e)),be=L1(_e.ref)&&Za(ae)?"":ae,dq(_e.ref)?[..._e.ref.options].forEach(De=>De.selected=be.includes(De.value)):_e.refs?Wb(_e.ref)?_e.refs.length>1?_e.refs.forEach(De=>(!De.defaultChecked||!De.disabled)&&(De.checked=Array.isArray(be)?!!be.find(Ge=>Ge===De.value):be===De.value)):_e.refs[0]&&(_e.refs[0].checked=!!be):_e.refs.forEach(De=>De.checked=De.value===be):Dj(_e.ref)?_e.ref.value="":(_e.ref.value=be,_e.ref.type||g.values.next({name:Z,values:{...o}})))}(fe.shouldDirty||fe.shouldTouch)&&O(Z,be,fe.shouldTouch,fe.shouldDirty,!0),fe.shouldValidate&&ne(Z)},Y=(Z,ae,fe)=>{for(const ve in ae){const be=ae[ve],_e=`${Z}.${ve}`,De=at(n,_e);(d.array.has(Z)||!N1(be)||De&&!De._f)&&!bh(be)?Y(_e,be,fe):G(_e,be,fe)}},X=(Z,ae,fe={})=>{const ve=at(n,Z),be=d.array.has(Z),_e=Kn(ae);Br(o,Z,_e),be?(g.array.next({name:Z,values:{...o}}),(h.isDirty||h.dirtyFields)&&fe.shouldDirty&&g.state.next({name:Z,dirtyFields:F_(a,o),isDirty:B(Z,_e)})):ve&&!ve._f&&!Za(_e)?Y(Z,_e,fe):G(Z,_e,fe),H2(Z,d)&&g.state.next({...r}),g.values.next({name:s.mount?Z:void 0,values:{...o}})},H=async Z=>{s.mount=!0;const ae=Z.target;let fe=ae.name,ve=!0;const be=at(n,fe),_e=()=>ae.type?zR(be._f):Jz(Z),De=Ge=>{ve=Number.isNaN(Ge)||ic(Ge,at(o,fe,Ge))};if(be){let Ge,Mt;const et=_e(),ot=Z.type===$1.BLUR||Z.type===$1.FOCUS_OUT,it=!xJ(be._f)&&!t.resolver&&!at(r.errors,fe)&&!be._f.deps||wJ(ot,at(r.touchedFields,fe),r.isSubmitted,_,y),Dt=H2(fe,d,ot);Br(o,fe,et),ot?(be._f.onBlur&&be._f.onBlur(Z),f&&f(0)):be._f.onChange&&be._f.onChange(Z);const Zt=O(fe,et,ot,!1),Kt=!Ya(Zt)||Dt;if(!ot&&g.values.next({name:fe,type:Z.type,values:{...o}}),it)return h.isValid&&(e.mode==="onBlur"?ot&&x():x()),Kt&&g.state.next({name:fe,...Dt?{}:Zt});if(!ot&&Dt&&g.state.next({...r}),t.resolver){const{errors:nt}=await k([fe]);if(De(et),ve){const Pt=KD(r.errors,n,fe),Je=KD(nt,n,Pt.name||fe);Ge=Je.error,fe=Je.name,Mt=Ya(nt)}}else T([fe],!0),Ge=(await G2(be,o,S,t.shouldUseNativeValidation))[fe],T([fe]),De(et),ve&&(Ge?Mt=!1:h.isValid&&(Mt=await $(n,!0)));ve&&(be._f.deps&&ne(be._f.deps),j(fe,Mt,Ge,Zt))}},te=(Z,ae)=>{if(at(r.errors,ae)&&Z.focus)return Z.focus(),1},ne=async(Z,ae={})=>{let fe,ve;const be=Oo(Z);if(t.resolver){const _e=await M(Yr(Z)?Z:be);fe=Ya(_e),ve=Z?!be.some(De=>at(_e,De)):fe}else Z?(ve=(await Promise.all(be.map(async _e=>{const De=at(n,_e);return await $(De&&De._f?{[_e]:De}:De)}))).every(Boolean),!(!ve&&!r.isValid)&&x()):ve=fe=await $(n);return g.state.next({...!el(Z)||h.isValid&&fe!==r.isValid?{}:{name:Z},...t.resolver||!Z?{isValid:fe}:{},errors:r.errors}),ae.shouldFocus&&!ve&&Sh(n,te,Z?be:d.mount),ve},K=Z=>{const ae={...s.mount?o:a};return Yr(Z)?ae:el(Z)?at(ae,Z):Z.map(fe=>at(ae,fe))},ee=(Z,ae)=>({invalid:!!at((ae||r).errors,Z),isDirty:!!at((ae||r).dirtyFields,Z),error:at((ae||r).errors,Z),isValidating:!!at(r.validatingFields,Z),isTouched:!!at((ae||r).touchedFields,Z)}),Ce=Z=>{Z&&Oo(Z).forEach(ae=>$n(r.errors,ae)),g.state.next({errors:Z?r.errors:{}})},se=(Z,ae,fe)=>{const ve=(at(n,Z,{_f:{}})._f||{}).ref,be=at(r.errors,Z)||{},{ref:_e,message:De,type:Ge,...Mt}=be;Br(r.errors,Z,{...Mt,...ae,ref:ve}),g.state.next({name:Z,errors:r.errors,isValid:!1}),fe&&fe.shouldFocus&&ve&&ve.focus&&ve.focus()},Se=(Z,ae)=>Zl(Z)?g.values.subscribe({next:fe=>Z(q(void 0,ae),fe)}):q(Z,ae,!0),me=(Z,ae={})=>{for(const fe of Z?Oo(Z):d.mount)d.mount.delete(fe),d.array.delete(fe),ae.keepValue||($n(n,fe),$n(o,fe)),!ae.keepError&&$n(r.errors,fe),!ae.keepDirty&&$n(r.dirtyFields,fe),!ae.keepTouched&&$n(r.touchedFields,fe),!ae.keepIsValidating&&$n(r.validatingFields,fe),!t.shouldUnregister&&!ae.keepDefaultValue&&$n(a,fe);g.values.next({values:{...o}}),g.state.next({...r,...ae.keepDirty?{isDirty:B()}:{}}),!ae.keepIsValid&&x()},we=({disabled:Z,name:ae,field:fe,fields:ve,value:be})=>{if(wi(Z)&&s.mount||Z){const _e=Z?void 0:Yr(be)?zR(fe?fe._f:at(ve,ae)._f):be;Br(o,ae,_e),O(ae,_e,!1,!1,!0)}},Oe=(Z,ae={})=>{let fe=at(n,Z);const ve=wi(ae.disabled)||wi(e.disabled);return Br(n,Z,{...fe||{},_f:{...fe&&fe._f?fe._f:{ref:{name:Z}},name:Z,mount:!0,...ae}}),d.mount.add(Z),fe?we({field:fe,disabled:wi(ae.disabled)?ae.disabled:e.disabled,name:Z,value:ae.value}):C(Z,!0,ae.value),{...ve?{disabled:ae.disabled||e.disabled}:{},...t.progressive?{required:!!ae.required,min:rg(ae.min),max:rg(ae.max),minLength:rg(ae.minLength),maxLength:rg(ae.maxLength),pattern:rg(ae.pattern)}:{},name:Z,onChange:H,onBlur:H,ref:be=>{if(be){Oe(Z,ae),fe=at(n,Z);const _e=Yr(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,De=yJ(_e),Ge=fe._f.refs||[];if(De?Ge.find(Mt=>Mt===_e):_e===fe._f.ref)return;Br(n,Z,{_f:{...fe._f,...De?{refs:[...Ge.filter(BR),_e,...Array.isArray(at(a,Z))?[{}]:[]],ref:{type:_e.type,name:Z}}:{ref:_e}}}),C(Z,!1,void 0,_e)}else fe=at(n,Z,{}),fe._f&&(fe._f.mount=!1),(t.shouldUnregister||ae.shouldUnregister)&&!(Zz(d.array,Z)&&s.action)&&d.unMount.add(Z)}}},ie=()=>t.shouldFocusError&&Sh(n,te,d.mount),Fe=Z=>{wi(Z)&&(g.state.next({disabled:Z}),Sh(n,(ae,fe)=>{const ve=at(n,fe);ve&&(ae.disabled=ve._f.disabled||Z,Array.isArray(ve._f.refs)&&ve._f.refs.forEach(be=>{be.disabled=ve._f.disabled||Z}))},0,!1))},ke=(Z,ae)=>async fe=>{let ve;fe&&(fe.preventDefault&&fe.preventDefault(),fe.persist&&fe.persist());let be=Kn(o);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:_e,values:De}=await k();r.errors=_e,be=De}else await $(n);if($n(r.errors,"root"),Ya(r.errors)){g.state.next({errors:{}});try{await Z(be,fe)}catch(_e){ve=_e}}else ae&&await ae({...r.errors},fe),ie(),setTimeout(ie);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ya(r.errors)&&!ve,submitCount:r.submitCount+1,errors:r.errors}),ve)throw ve},$e=(Z,ae={})=>{at(n,Z)&&(Yr(ae.defaultValue)?X(Z,Kn(at(a,Z))):(X(Z,ae.defaultValue),Br(a,Z,Kn(ae.defaultValue))),ae.keepTouched||$n(r.touchedFields,Z),ae.keepDirty||($n(r.dirtyFields,Z),r.isDirty=ae.defaultValue?B(Z,Kn(at(a,Z))):B()),ae.keepError||($n(r.errors,Z),h.isValid&&x()),g.state.next({...r}))},Te=(Z,ae={})=>{const fe=Z?Kn(Z):a,ve=Kn(fe),be=Ya(Z),_e=be?a:ve;if(ae.keepDefaultValues||(a=fe),!ae.keepValues){if(ae.keepDirtyValues)for(const De of d.mount)at(r.dirtyFields,De)?Br(_e,De,at(o,De)):X(De,at(_e,De));else{if($j&&Yr(Z))for(const De of d.mount){const Ge=at(n,De);if(Ge&&Ge._f){const Mt=Array.isArray(Ge._f.refs)?Ge._f.refs[0]:Ge._f.ref;if(L1(Mt)){const et=Mt.closest("form");if(et){et.reset();break}}}}n={}}o=e.shouldUnregister?ae.keepDefaultValues?Kn(a):{}:Kn(_e),g.array.next({values:{..._e}}),g.values.next({values:{..._e}})}d={mount:ae.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!ae.keepIsValid||!!ae.keepDirtyValues,s.watch=!!e.shouldUnregister,g.state.next({submitCount:ae.keepSubmitCount?r.submitCount:0,isDirty:be?!1:ae.keepDirty?r.isDirty:!!(ae.keepDefaultValues&&!ic(Z,a)),isSubmitted:ae.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:be?{}:ae.keepDirtyValues?ae.keepDefaultValues&&o?F_(a,o):r.dirtyFields:ae.keepDefaultValues&&Z?F_(a,Z):ae.keepDirty?r.dirtyFields:{},touchedFields:ae.keepTouched?r.touchedFields:{},errors:ae.keepErrors?r.errors:{},isSubmitSuccessful:ae.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Be=(Z,ae)=>Te(Zl(Z)?Z(o):Z,ae);return{control:{register:Oe,unregister:me,getFieldState:ee,handleSubmit:ke,setError:se,_executeSchema:k,_getWatch:q,_getDirty:B,_updateValid:x,_removeUnmounted:N,_updateFieldArray:I,_updateDisabledField:we,_getFieldArray:V,_reset:Te,_resetDefaultValues:()=>Zl(t.defaultValues)&&t.defaultValues().then(Z=>{Be(Z,t.resetOptions),g.state.next({isLoading:!1})}),_updateFormState:Z=>{r={...r,...Z}},_disableForm:Fe,_subjects:g,_proxyFormState:h,_setErrors:P,get _fields(){return n},get _formValues(){return o},get _state(){return s},set _state(Z){s=Z},get _defaultValues(){return a},get _names(){return d},set _names(Z){d=Z},get _formState(){return r},set _formState(Z){r=Z},get _options(){return t},set _options(Z){t={...t,...Z}}},trigger:ne,register:Oe,handleSubmit:ke,watch:Se,setValue:X,getValues:K,reset:Be,resetField:$e,clearErrors:Ce,unregister:me,setError:se,setFocus:(Z,ae={})=>{const fe=at(n,Z),ve=fe&&fe._f;if(ve){const be=ve.refs?ve.refs[0]:ve.ref;be.focus&&(be.focus(),ae.shouldSelect&&be.select())}},getFieldState:ee}}function vq(e={}){const t=Ke.useRef(),r=Ke.useRef(),[n,a]=Ke.useState({isDirty:!1,isValidating:!1,isLoading:Zl(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Zl(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...CJ(e),formState:n});const o=t.current.control;return o._options=e,fw({subject:o._subjects.state,next:s=>{aq(s,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Ke.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==n.isDirty&&o._subjects.state.next({isDirty:s})}},[o,n.isDirty]),Ke.useEffect(()=>{e.values&&!ic(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),Ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=nq(n,o),t.current}var z1=function(){return z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0,f=p.useState(!1),u=f[0],h=f[1],g=!e||!d||o,y=JH(function(_){var S=_.currentLocation,E=_.nextLocation;if(g)return!1;var x=t||S.pathname,T=E.pathname.startsWith(x),I=E.pathname.startsWith("".concat(x,"/show")),R=T&&!I;return!R});p.useEffect(function(){if(y.state==="blocked"){if(g){y.proceed();return}h(!0)}},[y.state]),p.useEffect(function(){if(u){var _=window.confirm(n("ra.message.unsaved_changes"));_?y.proceed&&y.proceed():y.reset&&y.reset()}h(!1)},[u,n]),p.useEffect(function(){var _=function(S){S.preventDefault(),S.returnValue=!0};if(!g)return window.addEventListener("beforeunload",_),function(){window.removeEventListener("beforeunload",_)}},[g])},BJ=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return NJ(r,n,a),null};function zJ(e,t){var r=xj({},qJ(e,t),t);return r}function qJ(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var bq=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var s=o[0],d=o[1];if(typeof d=="object"){r(d,"".concat(a).concat(s,"."));return}t("".concat(a).concat(s),{type:"server",message:d.toString()})})};r(e,"")},UJ=function(e,t){t===void 0&&(t=!0);var r=Gb(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=p.useRef(n),s=Jr();p.useEffect(function(){var d,f;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var u=typeof((f=(d=a.root)===null||d===void 0?void 0:d.serverError)===null||f===void 0?void 0:f.message)=="string"?a.root.serverError.message:void 0;s(u||"ra.message.invalid_form",{type:"error"})}},[a,n,s,t])},VJ=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},J2=function(){return J2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[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,}))$/,Fc=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function YJ(e){return e?e.hasOwnProperty("message"):!1}var $c=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Lc=function(e){return _q(e,function(){for(var t=[],r=0;re?$c(t,{max:e},r,n):void 0}});Lc(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Fc(r)&&re?$c(t,{max:e},r,n):void 0}}),wq=Lc(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Fc(t)&&isNaN(Number(t))?$c(e,void 0,t,r):void 0}}),Bj=_q(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Fc(r)&&typeof r=="string"&&!e.test(r)?$c(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Lc(function(e){return e===void 0&&(e="ra.validation.email"),Bj(XJ,e)});var rZ=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Lc(function(e,t){return t===void 0&&(t=rZ),function(r,n){return!Fc(r)&&e.indexOf(r)===-1?$c(t,{list:e},r,n):void 0}});var nZ=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},Sq=p.createContext(null),hw=function(){var e=p.useContext(mq);return e},aZ=function(e){var t=e.children,r=e.name,n=hw();return p.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]),p.createElement(Sq.Provider,{value:r},t)},Eq=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,s=gw(o),d=Sr(t),f=Li(),u=f.getValues,h=f.resetField,g=f.formState,y=f.reset,_=xr(d,s),S=xr(u(),s),E=g.dirtyFields,x=Object.keys(E).includes(s);p.useEffect(function(){if(!(a==null||S!=null||_!=null||x)){var T=s.split(".").some(function(P){return oZ.test(P)});if(T){var I=s.split(".").slice(0,-1).join("."),R=xr(u(),I);if(R==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),y({},{keepValues:!0});return}h(s,{defaultValue:a})}})},oZ=/^\d+$/,Cq=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,s=o===void 0?"disabled":o,d=e.translateChoice,f=d===void 0?!0:d,u=rt(),h=p.useCallback(function(_){if(p.isValidElement(r))return p.createElement(Mc,{value:_},r);var S=typeof r=="function"?r(_):xr(_,r);return p.isValidElement(S)?S:f?u(String(S),{_:S}):String(S)},[r,u,f]),g=p.useCallback(function(_){return xr(_,a)},[a]),y=p.useCallback(function(_){return xr(_,s)},[s]);return{getChoiceText:h,getChoiceValue:g,getDisableValue:y}},iZ=function(e){var t=Gb(),r=t.dirtyFields,n=t.touchedFields,a=t.validatingFields,o=t.errors,s=Object.keys(r),d=Object.keys(n),f=Object.keys(a),u=Object.keys(o),h=hw(),g=p.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0,isValidating:!0}),y=g[0],_=g[1],S=wr(function(){if(h){var E=h.getGroupFields(e),x=E.map(function(I){return{name:I,error:xr(o,I,void 0),isDirty:xr(r,I,!1)!==!1,isValid:xr(o,I,void 0)==null,isValidating:xr(a,I,void 0)==null,isTouched:xr(n,I,!1)!==!1}}).filter(function(I){return I!=null}),T=sZ(x);_(function(I){return ki(I,T)?I:T})}});return p.useEffect(function(){S()},[JSON.stringify(s),JSON.stringify(u),JSON.stringify(d),JSON.stringify(f),S,e,h]),p.useEffect(function(){if(h){var E=h.subscribe(e,function(){S()});return E}},[h,e,S]),y},sZ=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var a={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid,isValidating:t.isValidating&&r.isValidating};return a},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1,isValidating:!1})},Oq=function(){var e=p.useContext(Sq);return e},ek=function(){return ek=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var Tq=function(){return p.useContext(Iq)},rk=function(){return rk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0||S.customRoutesWithLayout.length>0||S.customRoutesWithoutLayout.length>0?"ready":"empty"),_&&g(_),[2]})})};r||y()},[e,n,r,d,t,s,h]),[o,u]},FZ=function(e){var t=p.useState(e),r=t[0],n=t[1],a=p.useCallback(function(o){n(function(s){return{customRoutesWithLayout:s.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:s.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:s.resources.concat(o.resources)}})},[]);return[r,n,a]},$Z=function(e,t){var r=Tq(),n=r.register,a=r.unregister;p.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var s=o.type.registerResource(o.props,t);n(s)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var s=o.type.registerResource(o.props,t);a(s)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},LZ=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return Aq(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},Aq=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]},Ny=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(p.Children.forEach(e,function(a){if(p.isValidElement(a)){if(a.type===p.Fragment){var o=Ny(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var s=a;s.props.noLayout?r.push(s.props.children):t.push(s.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},Mq=p.createContext(!1),DZ=Mq.Provider,NZ=function(){return p.useContext(Mq)},BZ=function(e){CZ();var t=Of(),r=AZ(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,s=r.resources,d=e.layout,f=e.catchAll,u=e.dashboard,h=e.loading,g=e.requireAuth,y=e.ready,_=p.useState(g),S=_[0],E=_[1],x=p.useState(g),T=x[0],I=x[1],R=Wq();if(p.useEffect(function(){g&&R(void 0,!1).then(function(){E(!1)}).catch(function(){}).finally(function(){I(!1)})},[R,g]),o==="empty"){if(!y)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return p.createElement(y,null)}return o==="loading"||T?p.createElement(bc,null,a,p.createElement(la,{path:"*",element:p.createElement("div",{style:{height:"100vh"}},p.createElement(h,null))})):S?p.createElement(bc,null,a,p.createElement(la,{path:"*",element:p.createElement(See,null)})):p.createElement(bc,null,a,p.createElement(la,{path:"/*",element:p.createElement(DZ,{value:!!u},p.createElement(d,null,p.createElement(bc,null,n,p.Children.map(s,function(P){return p.createElement(la,{key:P.props.name,path:"".concat(P.props.name,"/*"),element:P})}),p.createElement(la,{path:"/",element:u?p.createElement(mee,{authParams:zZ,component:u}):s.length>0?p.createElement(tG,{to:t({resource:s[0].props.name,type:"list"})}):null}),p.createElement(la,{path:"*",element:p.createElement(f,null)}))))}))},zZ={params:{route:"dashboard"}},Fq=p.createContext("React Admin"),qZ=Fq.Provider,$q=function(){return p.useContext(Fq)},UZ=function(e){var t=e.children;return p.createElement(p.Fragment,null,t)},VZ=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return Rq(n),p.createElement("div",null,p.createElement("h1",null,"Error"),p.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},WZ=function(e){var t=p.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,s=e.catchAll,d=s===void 0?eN:s,f=e.children,u=e.dashboard,h=e.disableTelemetry,g=h===void 0?!1:h,y=e.error,_=y===void 0?VZ:y,S=e.layout,E=S===void 0?UZ:S,x=e.loading,T=x===void 0?eN:x,I=e.loginPage,R=I===void 0?!1:I,P=e.ready,C=P===void 0?JZ:P,O=e.requireAuth,j=O===void 0?!1:O,k=e.title,M=k===void 0?"React Admin":k;p.useEffect(function(){if(!(g||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var N=new Image;N.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[g]);var $=function(N,B){return n(B)};return p.createElement(qZ,{value:M},p.createElement(jq,{onError:$,fallbackRender:function(N){var B=N.error,q=N.resetErrorBoundary;return p.createElement("div",{style:{minHeight:"100vh"}},p.createElement(_,{error:B,errorInfo:r,resetErrorBoundary:q}))}},p.createElement(bc,null,R!==!1&&R!==!0?p.createElement(la,{path:"/login",element:ZD(R)}):null,o!==!1&&o!==!0?p.createElement(la,{path:"/auth-callback",element:ZD(o)}):null,p.createElement(la,{path:"/*",element:p.createElement(BZ,{catchAll:d,dashboard:u,layout:E,loading:T,requireAuth:j,ready:C},f)}))))},ZD=function(e){return p.isValidElement(e)?e:p.createElement(e)},eN=function(){return null},Lq=function(e){return null};Lq.raName="CustomRoutes";var Dq=p.createContext(void 0),Dc=function(e){var t=e.children,r=e.value;return r?p.createElement(Dq.Provider,{value:r},t):t},Nq=function(e){var t=e.value,r=e.children;return t?p.createElement(Dc,{value:t},r):r},UR={exports:{}},Ar={};/** + * @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 tN;function HZ(){if(tN)return Ar;tN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function E(x){if(typeof x=="object"&&x!==null){var T=x.$$typeof;switch(T){case e:switch(x=x.type,x){case r:case a:case n:case u:case h:return x;default:switch(x=x&&x.$$typeof,x){case d:case s:case f:case y:case g:case o:return x;default:return T}}case t:return T}}}return Ar.ContextConsumer=s,Ar.ContextProvider=o,Ar.Element=e,Ar.ForwardRef=f,Ar.Fragment=r,Ar.Lazy=y,Ar.Memo=g,Ar.Portal=t,Ar.Profiler=a,Ar.StrictMode=n,Ar.Suspense=u,Ar.SuspenseList=h,Ar.isAsyncMode=function(){return!1},Ar.isConcurrentMode=function(){return!1},Ar.isContextConsumer=function(x){return E(x)===s},Ar.isContextProvider=function(x){return E(x)===o},Ar.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Ar.isForwardRef=function(x){return E(x)===f},Ar.isFragment=function(x){return E(x)===r},Ar.isLazy=function(x){return E(x)===y},Ar.isMemo=function(x){return E(x)===g},Ar.isPortal=function(x){return E(x)===t},Ar.isProfiler=function(x){return E(x)===a},Ar.isStrictMode=function(x){return E(x)===n},Ar.isSuspense=function(x){return E(x)===u},Ar.isSuspenseList=function(x){return E(x)===h},Ar.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===a||x===n||x===u||x===h||x===_||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===g||x.$$typeof===o||x.$$typeof===s||x.$$typeof===f||x.$$typeof===S||x.getModuleId!==void 0)},Ar.typeOf=E,Ar}var rN;function GZ(){return rN||(rN=1,UR.exports=HZ()),UR.exports}var nk=GZ(),Gn=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return p.createElement(Dc,{value:a},p.createElement(bc,null,t&&p.createElement(la,{path:"create/*",element:$_(t)}),o&&p.createElement(la,{path:":id/show/*",element:$_(o)}),r&&p.createElement(la,{path:":id/*",element:$_(r)}),n&&p.createElement(la,{path:"/*",element:p.createElement(UQ,{storeKey:"".concat(a,".list.scrollPosition")},$_(n))}),e.children))},$_=function(e){if(p.isValidElement(e))return e;if(nk.isValidElementType(e)){var t=e;return p.createElement(t,null)}return null};Gn.raName="Resource";Gn.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,s=e.options,d=e.show,f=e.recordRepresentation,u=e.hasCreate,h=e.hasEdit,g=e.hasShow;return{name:o,options:s,hasList:!!a,hasCreate:!!t||!!u,hasEdit:!!r||!!h,hasShow:!!d||!!g,icon:n,recordRepresentation:f}};var qj=p.createContext(void 0),KZ={getSource:function(e){return e},getLabel:function(e){return e}},vw=qj.Provider,Uj=function(){var e=p.useContext(qj);return e||KZ},QZ=function(){return p.useContext(qj)},Qb=function(){return Tq().definitions},_r={},nN;function XZ(){if(nN)return _r;nN=1;/*! + * inflection + * Copyright(c) 2011 Ben Lin + * MIT Licensed + * + * @fileoverview + * A port of inflection-js to node.js module. + */Object.defineProperty(_r,"__esModule",{value:!0}),_r.transform=_r.ordinalize=_r.foreignKey=_r.classify=_r.tableize=_r.demodulize=_r.titleize=_r.dasherize=_r.capitalize=_r.humanize=_r.underscore=_r.camelize=_r.inflect=_r.singularize=_r.pluralize=void 0;const e=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],t={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},r=[[t.plural.men],[t.plural.people],[t.plural.children],[t.plural.tia],[t.plural.analyses],[t.plural.databases],[t.plural.drives],[t.plural.hives],[t.plural.curves],[t.plural.lrves],[t.plural.foves],[t.plural.aeiouyies],[t.plural.series],[t.plural.movies],[t.plural.xes],[t.plural.mice],[t.plural.buses],[t.plural.oes],[t.plural.shoes],[t.plural.crises],[t.plural.octopuses],[t.plural.aliases],[t.plural.summonses],[t.plural.oxen],[t.plural.matrices],[t.plural.feet],[t.plural.teeth],[t.plural.geese],[t.plural.quizzes],[t.plural.whereases],[t.plural.criteria],[t.plural.genera],[t.singular.man,"$1en"],[t.singular.person,"$1ople"],[t.singular.child,"$1ren"],[t.singular.drive,"$1s"],[t.singular.ox,"$1en"],[t.singular.axis,"$1es"],[t.singular.octopus,"$1uses"],[t.singular.alias,"$1es"],[t.singular.summons,"$1es"],[t.singular.bus,"$1ses"],[t.singular.buffalo,"$1oes"],[t.singular.tium,"$1a"],[t.singular.sis,"ses"],[t.singular.ffe,"$1$2ves"],[t.singular.hive,"$1ves"],[t.singular.aeiouyy,"$1ies"],[t.singular.matrix,"$1ices"],[t.singular.vertex,"$1ices"],[t.singular.x,"$1es"],[t.singular.mouse,"$1ice"],[t.singular.foot,"feet"],[t.singular.tooth,"teeth"],[t.singular.goose,"geese"],[t.singular.quiz,"$1zes"],[t.singular.whereas,"$1es"],[t.singular.criterion,"$1a"],[t.singular.genus,"genera"],[t.singular.s,"s"],[t.singular.common,"s"]],n=[[t.singular.man],[t.singular.person],[t.singular.child],[t.singular.drive],[t.singular.ox],[t.singular.axis],[t.singular.octopus],[t.singular.alias],[t.singular.summons],[t.singular.bus],[t.singular.buffalo],[t.singular.tium],[t.singular.sis],[t.singular.ffe],[t.singular.hive],[t.singular.aeiouyy],[t.singular.x],[t.singular.matrix],[t.singular.mouse],[t.singular.foot],[t.singular.tooth],[t.singular.goose],[t.singular.quiz],[t.singular.whereas],[t.singular.criterion],[t.singular.genus],[t.plural.men,"$1an"],[t.plural.people,"$1rson"],[t.plural.children,"$1"],[t.plural.databases,"$1"],[t.plural.drives,"$1"],[t.plural.genera,"genus"],[t.plural.criteria,"$1on"],[t.plural.tia,"$1um"],[t.plural.analyses,"$1$2sis"],[t.plural.hives,"$1ve"],[t.plural.curves,"$1"],[t.plural.lrves,"$1f"],[t.plural.aves,"$1ve"],[t.plural.foves,"$1fe"],[t.plural.movies,"$1ovie"],[t.plural.aeiouyies,"$1y"],[t.plural.series,"$1eries"],[t.plural.xes,"$1"],[t.plural.mice,"$1ouse"],[t.plural.buses,"$1"],[t.plural.oes,"$1"],[t.plural.shoes,"$1"],[t.plural.crises,"$1is"],[t.plural.octopuses,"$1us"],[t.plural.aliases,"$1"],[t.plural.summonses,"$1"],[t.plural.oxen,"$1"],[t.plural.matrices,"$1ix"],[t.plural.vertices,"$1ex"],[t.plural.feet,"foot"],[t.plural.teeth,"tooth"],[t.plural.geese,"goose"],[t.plural.quizzes,"$1"],[t.plural.whereases,"$1"],[t.plural.ss,"ss"],[t.plural.s,""]],a=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],o=new RegExp("(_ids|_id)$","g"),s=new RegExp("_","g"),d=new RegExp("[ _]","g"),f=new RegExp("([A-Z])","g"),u=new RegExp("^_");function h(N,B,q,V){if(V)return V;if(q.includes(N.toLocaleLowerCase()))return N;for(const G of B)if(N.match(G[0]))return G[1]!==void 0?N.replace(G[0],G[1]):N;return N}function g(N,B){return h(N,r,e,B)}_r.pluralize=g;function y(N,B){return h(N,n,e,B)}_r.singularize=y;function _(N,B,q,V){return isNaN(B)?N:B===1?h(N,n,e,q):h(N,r,e,V)}_r.inflect=_;function S(N,B){const q=N.split("/"),V=q.length;let G,Y,X,H;for(let te=0;te1?Ec.pluralize(r):Ec.singularize(r))});return o}},vr=function(e){var t=p.useContext(Dq);return e&&e.resource||t},lu=function(e){var t=vr(e),r=Qb(),n=e||{},a=n.hasCreate,o=n.hasEdit,s=n.hasList,d=n.hasShow,f=n.recordRepresentation,u=p.useMemo(function(){return Fj({},{hasCreate:a,hasEdit:o,hasList:s,hasShow:d,recordRepresentation:f},t?r[t]:{})},[t,r,a,o,s,d,f]);return u},mw=function(e){var t=lu({resource:e}).recordRepresentation;return p.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?xr(r,t):p.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},gw=function(e){var t=Uj();return t.getSource(e)},Bq=function(){var e=rt(),t=vr(),r=QZ();return p.useCallback(function(n){var a=n.source,o=n.label,s=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,ZZ({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:s,resourceFromContext:t,source:a}))},[t,e,r])},YZ="en",zq=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=Bq();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:p.createElement("span",null,o({label:r,resource:n,source:t}),a&&p.createElement("span",{"aria-hidden":"true"}," *"))};zq.displayName="FieldTitle";const ji=p.memo(zq),JZ=function(){return p.createElement("span",null)},Vj=function(e,t){};var ZZ=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var s=eee(o),d=s.sourceWithoutDigits,f=s.sourceSuffix,u=Ec.transform(f.replace(/\./g," "),["underscore","humanize"]);return n?[aN(n,d),{_:u}]:r?[r,{_:u}]:[aN(a||"undefined",d),{_:u}]},aN=function(e,t){return"resources.".concat(e,".fields.").concat(t)},eee=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,s){tee(o)&&(n=s)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},tee=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};function ree(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var nee=typeof window<"u"?p.useLayoutEffect:p.useEffect,wr=function(e){var t=p.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return nee(function(){t.current=e}),p.useCallback(function(){for(var r=[],n=0;n"u"?t:y)});return function(){return g()}},[e,o,t,n,d]);var u=wr(function(h,g){var y=typeof h=="function"?h(d):h;a(e,typeof y>"u"?typeof g>"u"?t:g:y)});return[d,u]},aee=function(e){var t=tw().removeItem;return p.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])},oee=function(e){var t=tw().removeItems;return p.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])},iee=function(){var e=tw().reset;return e},_v=function(){var e=iu(),t=$i(),r=iee(),n=ul(),a=p.useRef(n),o=Yn(),s=p.useRef(o),d=Ac(),f=Xs("".concat(d,"/").concat(Bx.loginUrl));p.useEffect(function(){s.current=o,a.current=n},[o,n]);var u=p.useCallback(function(h,g,y){return h===void 0&&(h={}),g===void 0&&(g=f),y===void 0&&(y=!0),e?e.logout(h).then(function(_){if(_===!1||g===!1){r(),t.clear();return}var S=_||g;if(S!=null&&S.startsWith("http"))return r(),t.clear(),window.location.href=S,S;var E=S.split("?"),x={pathname:E[0]},T={};return y&&s.current&&s.current.pathname&&(T={state:{nextPathname:s.current.pathname,nextSearch:s.current.search}}),E[1]&&(x.search=E[1]),a.current(x,T),r(),t.clear(),_}):(a.current({pathname:f},{state:{nextPathname:s.current&&s.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,f,t]);return u},Kd=function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},iN=function(){},Qd=function(){return Qd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]"),xv(t);var s=Uq(t).permissions;if(a)return p.createElement(a,Qy({permissions:s},o));if(n)return n(Qy({permissions:s},o));if(r)return r(Qy({permissions:s},o))},Vq=function(){var e=iu(),t=Yn(),r=t.state,n=ul(),a=Ac(),o=sz().resetNotifications,s=r&&r.nextPathname,d=r&&r.nextSearch,f=Xs("".concat(a,"/").concat(Bx.afterLoginUrl)),u=p.useCallback(function(h,g){return h===void 0&&(h={}),e?e.login(h).then(function(y){if(o(),y&&y.hasOwnProperty("redirectTo"))y&&n(y.redirectTo);else{var _=g||s+d||f;n(_)}return y}):(o(),n(f),Promise.resolve())},[e,n,s,d,o,f]);return u},gee="AUTH_LOGIN",yee="AUTH_CHECK",bee="AUTH_ERROR",_ee="AUTH_LOGOUT",xee="AUTH_GET_PERMISSIONS";const wee=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Xy=function(){return Xy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return _a(r&&e?"".concat(r,".").concat(e):r??e,t)},Wj=function(){var e=p.useContext(kq);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},$ee=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?ya(wv,--ko):0,ev--,Ln===10&&(ev=1,bw--),Ln}function Xo(){return Ln=ko2||yb(Ln)>3?"":" "}function tte(e,t){for(;--t&&Xo()&&!(Ln<48||Ln>102||Ln>57&&Ln<65||Ln>70&&Ln<97););return Xb(e,i1()+(t<6&&rl()==32&&Xo()==32))}function ik(e){for(;Xo();)switch(Ln){case e:return ko;case 34:case 39:e!==34&&e!==39&&ik(Ln);break;case 40:e===41&&ik(e);break;case 92:Xo();break}return ko}function rte(e,t){for(;Xo()&&e+Ln!==57;)if(e+Ln===84&&rl()===47)break;return"/*"+Xb(t,ko-1)+"*"+yw(e===47?e:Xo())}function nte(e){for(;!yb(rl());)Xo();return Xb(e,ko)}function ate(e){return t6(l1("",null,null,null,[""],e=e6(e),0,[0],e))}function l1(e,t,r,n,a,o,s,d,f){for(var u=0,h=0,g=s,y=0,_=0,S=0,E=1,x=1,T=1,I=0,R="",P=a,C=o,O=n,j=R;x;)switch(S=I,I=Xo()){case 40:if(S!=108&&ya(j,g-1)==58){ok(j+=kr(s1(I),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:j+=s1(I);break;case 9:case 10:case 13:case 32:j+=ete(S);break;case 92:j+=tte(i1()-1,7);continue;case 47:switch(rl()){case 42:case 47:L_(ote(rte(Xo(),i1()),t,r),f);break;default:j+="/"}break;case 123*E:d[u++]=Ys(j)*T;case 125*E:case 59:case 0:switch(I){case 0:case 125:x=0;case 59+h:T==-1&&(j=kr(j,/\f/g,"")),_>0&&Ys(j)-g&&L_(_>32?dN(j+";",n,r,g-1):dN(kr(j," ","")+";",n,r,g-2),f);break;case 59:j+=";";default:if(L_(O=cN(j,t,r,u,h,a,d,R,P=[],C=[],g),o),I===123)if(h===0)l1(j,t,O,O,P,o,g,d,C);else switch(y===99&&ya(j,3)===110?100:y){case 100:case 108:case 109:case 115:l1(e,O,O,n&&L_(cN(e,O,O,0,0,a,d,R,a,P=[],g),C),a,C,g,d,n?P:C);break;default:l1(j,O,O,O,[""],C,0,d,C)}}u=h=_=0,E=T=1,R=j="",g=s;break;case 58:g=1+Ys(j),_=S;default:if(E<1){if(I==123)--E;else if(I==125&&E++==0&&Zee()==125)continue}switch(j+=yw(I),I*E){case 38:T=h>0?1:(j+="\f",-1);break;case 44:d[u++]=(Ys(j)-1)*T,T=1;break;case 64:rl()===45&&(j+=s1(Xo())),y=rl(),h=g=Ys(R=j+=nte(i1())),I++;break;case 45:S===45&&Ys(j)==2&&(E=0)}}return o}function cN(e,t,r,n,a,o,s,d,f,u,h){for(var g=a-1,y=a===0?o:[""],_=Kj(y),S=0,E=0,x=0;S0?y[T]+" "+I:kr(I,/&\f/g,y[T])))&&(f[x++]=R);return _w(e,t,r,a===0?Hj:d,f,u,h)}function ote(e,t,r){return _w(e,t,r,Xq,yw(Jee()),gb(e,2,-2),0)}function dN(e,t,r,n){return _w(e,t,r,Gj,gb(e,0,n),gb(e,n+1,-1),n)}function Eh(e,t){for(var r="",n=Kj(e),a=0;a6)switch(ya(e,t+1)){case 109:if(ya(e,t+4)!==45)break;case 102:return kr(e,/(.+:)(.+)-([^]+)/,"$1"+Rr+"$2-$3$1"+W1+(ya(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ok(e,"stretch")?r6(kr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ya(e,t+1)!==115)break;case 6444:switch(ya(e,Ys(e)-3-(~ok(e,"!important")&&10))){case 107:return kr(e,":",":"+Rr)+e;case 101:return kr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rr+(ya(e,14)===45?"inline-":"")+"box$3$1"+Rr+"$2$3$1"+Ta+"$2box$3")+e}break;case 5936:switch(ya(e,t+11)){case 114:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rr+e+Ta+kr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rr+e+Ta+e+e}return e}var hte=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Gj:t.return=r6(t.value,t.length);break;case Yq:return Eh([ag(t,{value:kr(t.value,"@","@"+Rr)})],a);case Hj:if(t.length)return Yee(t.props,function(o){switch(Xee(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eh([ag(t,{props:[kr(o,/:(read-\w+)/,":"+W1+"$1")]})],a);case"::placeholder":return Eh([ag(t,{props:[kr(o,/:(plac\w+)/,":"+Rr+"input-$1")]}),ag(t,{props:[kr(o,/:(plac\w+)/,":"+W1+"$1")]}),ag(t,{props:[kr(o,/:(plac\w+)/,Ta+"input-$1")]})],a)}return""})}},vte=[hte],n6=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(E){var x=E.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||vte,o={},s,d=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(E){for(var x=E.getAttribute("data-emotion").split(" "),T=1;T=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wte={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ste=/[A-Z]|^ms/g,Ete=/_EMO_([^_]+?)_([^]*?)_EMO_/g,i6=function(t){return t.charCodeAt(1)===45},mN=function(t){return t!=null&&typeof t!="boolean"},GR=Qq(function(e){return i6(e)?e:e.replace(Ste,"-$&").toLowerCase()}),gN=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ete,function(n,a,o){return Js={name:a,styles:o,next:Js},a})}return wte[t]!==1&&!i6(t)&&typeof r=="number"&&r!==0?r+"px":r};function bb(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Js={name:a.name,styles:a.styles,next:Js},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Js={name:s.name,styles:s.styles,next:Js},s=s.next;var d=o.styles+";";return d}return Cte(e,t,r)}case"function":{if(e!==void 0){var f=Js,u=r(e);return Js=f,bb(e,t,u)}break}}var h=r;if(t==null)return h;var g=t[h];return g!==void 0?g:h}function Cte(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?Ite:jte},xN=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},Tte=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return a6(r,n,a),Pte(function(){return o6(r,n,a)}),null},Ate=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var d=xN(t,r,n),f=d||_N(a),u=!f("as");return function(){var h=arguments,g=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&g.push("label:"+o+";"),h[0]==null||h[0].raw===void 0)g.push.apply(g,h);else{g.push(h[0][0]);for(var y=h.length,_=1;_t($te(a)?r:a):t;return A.jsx(kte,{styles:n})}function Xj(e,t){return sk(e,t)}const d6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Lte=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:c6,StyledEngineProvider:Fte,ThemeContext:Yb,css:Pf,default:Xj,internal_processStyles:d6,keyframes:uu},Symbol.toStringTag,{value:"Module"}));function Xl(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 f6(e){if(!Xl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=f6(e[r])}),t}function ro(e,t,r={clone:!0}){const n=r.clone?z({},e):e;return Xl(e)&&Xl(t)&&Object.keys(t).forEach(a=>{Xl(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Xl(e[a])?n[a]=ro(e[a],t[a],r):r.clone?n[a]=Xl(t[a])?f6(t[a]):t[a]:n[a]=t[a]}),n}const Dte=Object.freeze(Object.defineProperty({__proto__:null,default:ro,isPlainObject:Xl},Symbol.toStringTag,{value:"Module"})),Nte=["values","unit","step"],Bte=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>z({},r,{[n.key]:n.val}),{})};function p6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Ve(e,Nte),o=Bte(t),s=Object.keys(o);function d(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function f(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function u(y,_){const S=s.indexOf(_);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(S!==-1&&typeof t[s[S]]=="number"?t[s[S]]:_)-n/100}${r})`}function h(y){return s.indexOf(y)+1`@media (min-width:${Yj[e]}px)`};function ds(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||wN;return t.reduce((s,d,f)=>(s[o.up(o.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const o=n.breakpoints||wN;return Object.keys(t).reduce((s,d)=>{if(Object.keys(o.values||Yj).indexOf(d)!==-1){const f=o.up(d);s[f]=r(t[d],d)}else{const f=d;s[f]=t[f]}return s},{})}return r(t)}function h6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function v6(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function qte(e,...t){const r=h6(e),n=[r,...t].reduce((a,o)=>ro(a,o),{});return v6(Object.keys(r),n)}function Ute(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function KR({values:e,breakpoints:t,base:r}){const n=r||Ute(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((s,d,f)=>(Array.isArray(e)?(s[d]=e[f]!=null?e[f]:e[o],o=f):typeof e=="object"?(s[d]=e[d]!=null?e[d]:e[o],o=d):s[d]=e,s),{})}function Ue(e){if(typeof e!="string")throw new Error(nu(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Vte=Object.freeze(Object.defineProperty({__proto__:null,default:Ue},Symbol.toStringTag,{value:"Module"}));function tv(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function H1(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=tv(e,r)||n,t&&(a=t(a,n,e)),a}function Rn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=s=>{if(s[t]==null)return null;const d=s[t],f=s.theme,u=tv(f,n)||{};return ds(s,d,g=>{let y=H1(u,a,g);return g===y&&typeof g=="string"&&(y=H1(u,a,`${t}${g==="default"?"":Ue(g)}`,g)),r===!1?y:{[r]:y}})};return o.propTypes={},o.filterProps=[t],o}function Wte(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Hte={m:"margin",p:"padding"},Gte={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},SN={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kte=Wte(e=>{if(e.length>2)if(SN[e])e=SN[e];else return[e];const[t,r]=e.split(""),n=Hte[t],a=Gte[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Jj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Jj,...Zj];function Jb(e,t,r,n){var a;const o=(a=tv(e,t,!1))!=null?a:r;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function eT(e){return Jb(e,"spacing",8)}function _f(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 Qte(e,t){return r=>e.reduce((n,a)=>(n[a]=_f(t,r),n),{})}function Xte(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Kte(r),o=Qte(a,n),s=e[r];return ds(e,s,o)}function m6(e,t){const r=eT(e.theme);return Object.keys(e).map(n=>Xte(e,t,n,r)).reduce(Yy,{})}function gn(e){return m6(e,Jj)}gn.propTypes={};gn.filterProps=Jj;function yn(e){return m6(e,Zj)}yn.propTypes={};yn.filterProps=Zj;function Yte(e=8){if(e.mui)return e;const t=eT({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function xw(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Yy(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Oi(e){return typeof e!="number"?e:`${e}px solid`}function Di(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const Jte=Di("border",Oi),Zte=Di("borderTop",Oi),ere=Di("borderRight",Oi),tre=Di("borderBottom",Oi),rre=Di("borderLeft",Oi),nre=Di("borderColor"),are=Di("borderTopColor"),ore=Di("borderRightColor"),ire=Di("borderBottomColor"),sre=Di("borderLeftColor"),lre=Di("outline",Oi),ure=Di("outlineColor"),ww=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Jb(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:_f(t,n)});return ds(e,e.borderRadius,r)}return null};ww.propTypes={};ww.filterProps=["borderRadius"];xw(Jte,Zte,ere,tre,rre,nre,are,ore,ire,sre,ww,lre,ure);const Sw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Jb(e.theme,"spacing",8),r=n=>({gap:_f(t,n)});return ds(e,e.gap,r)}return null};Sw.propTypes={};Sw.filterProps=["gap"];const Ew=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Jb(e.theme,"spacing",8),r=n=>({columnGap:_f(t,n)});return ds(e,e.columnGap,r)}return null};Ew.propTypes={};Ew.filterProps=["columnGap"];const Cw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Jb(e.theme,"spacing",8),r=n=>({rowGap:_f(t,n)});return ds(e,e.rowGap,r)}return null};Cw.propTypes={};Cw.filterProps=["rowGap"];const cre=Rn({prop:"gridColumn"}),dre=Rn({prop:"gridRow"}),fre=Rn({prop:"gridAutoFlow"}),pre=Rn({prop:"gridAutoColumns"}),hre=Rn({prop:"gridAutoRows"}),vre=Rn({prop:"gridTemplateColumns"}),mre=Rn({prop:"gridTemplateRows"}),gre=Rn({prop:"gridTemplateAreas"}),yre=Rn({prop:"gridArea"});xw(Sw,Ew,Cw,cre,dre,fre,pre,hre,vre,mre,gre,yre);function Ch(e,t){return t==="grey"?t:e}const bre=Rn({prop:"color",themeKey:"palette",transform:Ch}),_re=Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ch}),xre=Rn({prop:"backgroundColor",themeKey:"palette",transform:Ch});xw(bre,_re,xre);function Go(e){return e<=1&&e!==0?`${e*100}%`:e}const wre=Rn({prop:"width",transform:Go}),tT=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Yj[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Go(r)}};return ds(e,e.maxWidth,t)}return null};tT.filterProps=["maxWidth"];const Sre=Rn({prop:"minWidth",transform:Go}),Ere=Rn({prop:"height",transform:Go}),Cre=Rn({prop:"maxHeight",transform:Go}),Ore=Rn({prop:"minHeight",transform:Go});Rn({prop:"size",cssProperty:"width",transform:Go});Rn({prop:"size",cssProperty:"height",transform:Go});const Pre=Rn({prop:"boxSizing"});xw(wre,tT,Sre,Ere,Cre,Ore,Pre);const Zb={border:{themeKey:"borders",transform:Oi},borderTop:{themeKey:"borders",transform:Oi},borderRight:{themeKey:"borders",transform:Oi},borderBottom:{themeKey:"borders",transform:Oi},borderLeft:{themeKey:"borders",transform:Oi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Oi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ww},color:{themeKey:"palette",transform:Ch},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ch},backgroundColor:{themeKey:"palette",transform:Ch},p:{style:yn},pt:{style:yn},pr:{style:yn},pb:{style:yn},pl:{style:yn},px:{style:yn},py:{style:yn},padding:{style:yn},paddingTop:{style:yn},paddingRight:{style:yn},paddingBottom:{style:yn},paddingLeft:{style:yn},paddingX:{style:yn},paddingY:{style:yn},paddingInline:{style:yn},paddingInlineStart:{style:yn},paddingInlineEnd:{style:yn},paddingBlock:{style:yn},paddingBlockStart:{style:yn},paddingBlockEnd:{style:yn},m:{style:gn},mt:{style:gn},mr:{style:gn},mb:{style:gn},ml:{style:gn},mx:{style:gn},my:{style:gn},margin:{style:gn},marginTop:{style:gn},marginRight:{style:gn},marginBottom:{style:gn},marginLeft:{style:gn},marginX:{style:gn},marginY:{style:gn},marginInline:{style:gn},marginInlineStart:{style:gn},marginInlineEnd:{style:gn},marginBlock:{style:gn},marginBlockStart:{style:gn},marginBlockEnd:{style:gn},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:Sw},rowGap:{style:Cw},columnGap:{style:Ew},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Go},maxWidth:{style:tT},minWidth:{transform:Go},height:{transform:Go},maxHeight:{transform:Go},minHeight:{transform:Go},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Rre(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function kre(e,t){return typeof e=="function"?e(t):e}function g6(){function e(r,n,a,o){const s={[r]:n,theme:a},d=o[r];if(!d)return{[r]:n};const{cssProperty:f=r,themeKey:u,transform:h,style:g}=d;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const y=tv(a,u)||{};return g?g(s):ds(s,n,S=>{let E=H1(y,h,S);return S===E&&typeof S=="string"&&(E=H1(y,h,`${r}${S==="default"?"":Ue(S)}`,S)),f===!1?E:{[f]:E}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const s=(n=o.unstable_sxConfig)!=null?n:Zb;function d(f){let u=f;if(typeof f=="function")u=f(o);else if(typeof f!="object")return f;if(!u)return null;const h=h6(o.breakpoints),g=Object.keys(h);let y=h;return Object.keys(u).forEach(_=>{const S=kre(u[_],o);if(S!=null)if(typeof S=="object")if(s[_])y=Yy(y,e(_,S,o,s));else{const E=ds({theme:o},S,x=>({[_]:x}));Rre(E,S)?y[_]=t({sx:S,theme:o}):y=Yy(y,E)}else y=Yy(y,e(_,S,o,s))}),v6(g,y)}return Array.isArray(a)?a.map(d):d(a)}return t}const Sv=g6();Sv.filterProps=["sx"];function y6(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 Ire=["breakpoints","palette","spacing","shape"];function Ev(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,s=Ve(e,Ire),d=p6(r),f=Yte(a);let u=ro({breakpoints:d,direction:"ltr",components:{},palette:z({mode:"light"},n),spacing:f,shape:z({},zte,o)},s);return u.applyStyles=y6,u=t.reduce((h,g)=>ro(h,g),u),u.unstable_sxConfig=z({},Zb,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(g){return Sv({sx:g,theme:this})},u}const jre=Object.freeze(Object.defineProperty({__proto__:null,default:Ev,private_createBreakpoints:p6,unstable_applyStyles:y6},Symbol.toStringTag,{value:"Module"}));function Tre(e){return Object.keys(e).length===0}function rT(e=null){const t=p.useContext(Yb);return!t||Tre(t)?e:t}const Are=Ev();function Ow(e=Are){return rT(e)}function Mre({styles:e,themeId:t,defaultTheme:r={}}){const n=Ow(r),a=typeof e=="function"?e(t&&n[t]||n):e;return A.jsx(c6,{styles:a})}const Fre=["sx"],$re=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Zb;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Pw(e){const{sx:t}=e,r=Ve(e,Fre),{systemProps:n,otherProps:a}=$re(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const d=t(...s);return Xl(d)?z({},n,d):n}:o=z({},n,t),z({},a,{sx:o})}const Lre=Object.freeze(Object.defineProperty({__proto__:null,default:Sv,extendSxProp:Pw,unstable_createStyleFunctionSx:g6,unstable_defaultSxConfig:Zb},Symbol.toStringTag,{value:"Module"})),EN=e=>e,Dre=()=>{let e=EN;return{configure(t){e=t},generate(t){return e(t)},reset(){e=EN}}},nT=Dre();function b6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;td!=="theme"&&d!=="sx"&&d!=="as"})(Sv);return p.forwardRef(function(f,u){const h=Ow(r),g=Pw(f),{className:y,component:_="div"}=g,S=Ve(g,Nre);return A.jsx(o,z({as:_,ref:u,className:Re(y,a?a(n):n),theme:t&&h[t]||h},S))})}const zre={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 wt(e,t,r="Mui"){const n=zre[t];return n?`${r}-${n}`:`${nT.generate(e)}-${t}`}function Ot(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=wt(e,a,r)}),n}const qre=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function _6(e){const t=`${e}`.match(qre);return t&&t[1]||""}function x6(e,t=""){return e.displayName||e.name||_6(e)||t}function CN(e,t,r){const n=x6(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ure(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return x6(e,"Component");if(typeof e=="object")switch(e.$$typeof){case nk.ForwardRef:return CN(e,e.render,"ForwardRef");case nk.Memo:return CN(e,e.type,"memo");default:return}}}const Vre=Object.freeze(Object.defineProperty({__proto__:null,default:Ure,getFunctionName:_6},Symbol.toStringTag,{value:"Module"})),Wre=["ownerState"],Hre=["variants"],Gre=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Kre(e){return Object.keys(e).length===0}function Qre(e){return typeof e=="string"&&e.charCodeAt(0)>96}function QR(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xre=Ev(),Yre=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function D_({defaultTheme:e,theme:t,themeId:r}){return Kre(t)?e:t[r]||t}function Jre(e){return e?(t,r)=>r[e]:null}function u1(e,t){let{ownerState:r}=t,n=Ve(t,Wre);const a=typeof e=="function"?e(z({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>u1(o,z({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let d=Ve(a,Hre);return o.forEach(f=>{let u=!0;typeof f.props=="function"?u=f.props(z({ownerState:r},n,r)):Object.keys(f.props).forEach(h=>{(r==null?void 0:r[h])!==f.props[h]&&n[h]!==f.props[h]&&(u=!1)}),u&&(Array.isArray(d)||(d=[d]),d.push(typeof f.style=="function"?f.style(z({ownerState:r},n,r)):f.style))}),d}return a}function Zre(e={}){const{themeId:t,defaultTheme:r=Xre,rootShouldForwardProp:n=QR,slotShouldForwardProp:a=QR}=e,o=s=>Sv(z({},s,{theme:D_(z({},s,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(s,d={})=>{d6(s,C=>C.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:f,slot:u,skipVariantsResolver:h,skipSx:g,overridesResolver:y=Jre(Yre(u))}=d,_=Ve(d,Gre),S=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,E=g||!1;let x,T=QR;u==="Root"||u==="root"?T=n:u?T=a:Qre(s)&&(T=void 0);const I=Xj(s,z({shouldForwardProp:T,label:x},_)),R=C=>typeof C=="function"&&C.__emotion_real!==C||Xl(C)?O=>u1(C,z({},O,{theme:D_({theme:O.theme,defaultTheme:r,themeId:t})})):C,P=(C,...O)=>{let j=R(C);const k=O?O.map(R):[];f&&y&&k.push(N=>{const B=D_(z({},N,{defaultTheme:r,themeId:t}));if(!B.components||!B.components[f]||!B.components[f].styleOverrides)return null;const q=B.components[f].styleOverrides,V={};return Object.entries(q).forEach(([G,Y])=>{V[G]=u1(Y,z({},N,{theme:B}))}),y(N,V)}),f&&!S&&k.push(N=>{var B;const q=D_(z({},N,{defaultTheme:r,themeId:t})),V=q==null||(B=q.components)==null||(B=B[f])==null?void 0:B.variants;return u1({variants:V},z({},N,{theme:q}))}),E||k.push(o);const M=k.length-O.length;if(Array.isArray(C)&&M>0){const N=new Array(M).fill("");j=[...C,...N],j.raw=[...C.raw,...N]}const $=I(j,...k);return s.muiName&&($.muiName=s.muiName),$};return I.withConfig&&(P.withConfig=I.withConfig),P}}const w6=Zre();function _b(e,t){const r=z({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=z({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=z({},o),Object.keys(a).forEach(s=>{r[n][s]=_b(a[s],o[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function S6(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:_b(t.components[r].defaultProps,n)}function aT({props:e,name:t,defaultTheme:r,themeId:n}){let a=Ow(r);return n&&(a=a[n]||a),S6({theme:a,name:t,props:e})}const Yo=typeof window<"u"?p.useLayoutEffect:p.useEffect;function ene(e,t,r,n,a){const[o,s]=p.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return Yo(()=>{let d=!0;if(!r)return;const f=r(e),u=()=>{d&&s(f.matches)};return u(),f.addListener(u),()=>{d=!1,f.removeListener(u)}},[e,r]),o}const E6=p.useSyncExternalStore;function tne(e,t,r,n,a){const o=p.useCallback(()=>t,[t]),s=p.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:h}=n(e);return()=>h}return o},[o,e,n,a,r]),[d,f]=p.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const h=r(e);return[()=>h.matches,g=>(h.addListener(g),()=>{h.removeListener(g)})]},[o,r,e]);return E6(f,d,s)}function no(e,t={}){const r=rT(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:d=!1}=S6({name:"MuiUseMediaQuery",props:t,theme:r});let f=typeof e=="function"?e(r):e;return f=f.replace(/^@media( ?)/m,""),(E6!==void 0?tne:ene)(f,a,o,s,d)}function C6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const rne=Object.freeze(Object.defineProperty({__proto__:null,default:C6},Symbol.toStringTag,{value:"Module"}));function O6(e,t=0,r=1){return C6(e,t,r)}function nne(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function oT(e){if(e.type)return e;if(e.charAt(0)==="#")return oT(nne(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(nu(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(nu(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function P6(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function rv(e,t){return e=oT(e),t=O6(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,P6(e)}function R6(e,t){if(e=oT(e),t=O6(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 P6(e)}function uk(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Cv(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function ane(e,t){return()=>null}function c1(e,t){var r,n;return p.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 Dn(e){return e&&e.ownerDocument||document}function Ti(e){return Dn(e).defaultView||window}function one(e,t){return()=>null}function G1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ON=0;function ine(e){const[t,r]=p.useState(e),n=e||t;return p.useEffect(()=>{t==null&&(ON+=1,r(`mui-${ON}`))},[t]),n}const PN=O1.useId;function xf(e){if(PN!==void 0){const t=PN();return e??t}return ine(e)}function sne(e,t,r,n,a){return null}function nv({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=p.useRef(e!==void 0),[o,s]=p.useState(t),d=a?e:o,f=p.useCallback(u=>{a||s(u)},[]);return[d,f]}function to(e){const t=p.useRef(e);return Yo(()=>{t.current=e}),p.useRef((...r)=>(0,t.current)(...r)).current}function fn(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{G1(r,t)})},e)}const RN={};function lne(e,t){const r=p.useRef(RN);return r.current===RN&&(r.current=e(t)),r}const une=[];function cne(e){p.useEffect(e,une)}class e0{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e0}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Jd(){const e=lne(e0.create).current;return cne(e.disposeEffect),e}let Rw=!0,ck=!1;const dne=new e0,fne={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 pne(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&fne[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hne(e){e.metaKey||e.altKey||e.ctrlKey||(Rw=!0)}function XR(){Rw=!1}function vne(){this.visibilityState==="hidden"&&ck&&(Rw=!0)}function mne(e){e.addEventListener("keydown",hne,!0),e.addEventListener("mousedown",XR,!0),e.addEventListener("pointerdown",XR,!0),e.addEventListener("touchstart",XR,!0),e.addEventListener("visibilitychange",vne,!0)}function gne(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Rw||pne(t)}function kw(){const e=p.useCallback(a=>{a!=null&&mne(a.ownerDocument)},[]),t=p.useRef(!1);function r(){return t.current?(ck=!0,dne.start(100,()=>{ck=!1}),t.current=!1,!0):!1}function n(a){return gne(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function k6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let lh;function I6(){if(lh)return lh;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),lh="reverse",e.scrollLeft>0?lh="default":(e.scrollLeft=1,e.scrollLeft===0&&(lh="negative")),document.body.removeChild(e),lh}function yne(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(I6()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function St(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,s)=>{if(s){const d=t(s);d!==""&&o.push(d),r&&r[s]&&o.push(r[s])}return o},[]).join(" ")}),n}function xb(e){return typeof e=="string"}function _h(e,t,r){return e===void 0||xb(e)?t:z({},t,{ownerState:z({},t.ownerState,r)})}function K1(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 kN(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 j6(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const _=Re(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),S=z({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),E=z({},r,a,n);return _.length>0&&(E.className=_),Object.keys(S).length>0&&(E.style=S),{props:E,internalRef:void 0}}const s=K1(z({},a,n)),d=kN(n),f=kN(a),u=t(s),h=Re(u==null?void 0:u.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=z({},u==null?void 0:u.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=z({},u,r,f,d);return h.length>0&&(y.className=h),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:u.ref}}function T6(e,t,r){return typeof e=="function"?e(t,r):e}const bne=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ai(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,s=Ve(e,bne),d=o?{}:T6(n,a),{props:f,internalRef:u}=j6(z({},s,{externalSlotProps:d})),h=fn(u,d==null?void 0:d.ref,(t=e.additionalProps)==null?void 0:t.ref);return _h(r,z({},f,{ref:h}),a)}const A6=p.createContext(null);function M6(){return p.useContext(A6)}const _ne=typeof Symbol=="function"&&Symbol.for,xne=_ne?Symbol.for("mui.nested"):"__THEME_NESTED__";function wne(e,t){return typeof t=="function"?t(e):z({},e,t)}function Sne(e){const{children:t,theme:r}=e,n=M6(),a=p.useMemo(()=>{const o=n===null?r:wne(n,r);return o!=null&&(o[xne]=n!==null),o},[r,n]);return A.jsx(A6.Provider,{value:a,children:t})}const Ene=["value"],F6=p.createContext();function Cne(e){let{value:t}=e,r=Ve(e,Ene);return A.jsx(F6.Provider,z({value:t??!0},r))}const Bc=()=>{const e=p.useContext(F6);return e??!1},$6=p.createContext(void 0);function One({value:e,children:t}){return A.jsx($6.Provider,{value:e,children:t})}function Pne(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?_b(a.defaultProps,n):!a.styleOverrides&&!a.variants?_b(a,n):n}function Rne({props:e,name:t}){const r=p.useContext($6);return Pne({props:e,name:t,theme:{components:r}})}const IN={};function jN(e,t,r,n=!1){return p.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),s=e?z({},t,{[e]:o}):o;return n?()=>s:s}return e?z({},t,{[e]:r}):z({},t,r)},[e,t,r,n])}function kne(e){const{children:t,theme:r,themeId:n}=e,a=rT(IN),o=M6()||IN,s=jN(n,a,r),d=jN(n,o,r,!0),f=s.direction==="rtl";return A.jsx(Sne,{theme:d,children:A.jsx(Yb.Provider,{value:s,children:A.jsx(Cne,{value:f,children:A.jsx(One,{value:s==null?void 0:s.components,children:t})})})})}const Ine=["className","component","disableGutters","fixed","maxWidth","classes"],jne=Ev(),Tne=w6("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Ane=e=>aT({props:e,name:"MuiContainer",defaultTheme:jne}),Mne=(e,t)=>{const r=f=>wt(t,f),{classes:n,fixed:a,disableGutters:o,maxWidth:s}=e,d={root:["root",s&&`maxWidth${Ue(String(s))}`,a&&"fixed",o&&"disableGutters"]};return St(d,r,n)};function Fne(e={}){const{createStyledComponent:t=Tne,useThemeProps:r=Ane,componentName:n="MuiContainer"}=e,a=t(({theme:s,ownerState:d})=>z({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!d.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:d})=>d.fixed&&Object.keys(s.breakpoints.values).reduce((f,u)=>{const h=u,g=s.breakpoints.values[h];return g!==0&&(f[s.breakpoints.up(h)]={maxWidth:`${g}${s.breakpoints.unit}`}),f},{}),({theme:s,ownerState:d})=>z({},d.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},d.maxWidth&&d.maxWidth!=="xs"&&{[s.breakpoints.up(d.maxWidth)]:{maxWidth:`${s.breakpoints.values[d.maxWidth]}${s.breakpoints.unit}`}}));return p.forwardRef(function(d,f){const u=r(d),{className:h,component:g="div",disableGutters:y=!1,fixed:_=!1,maxWidth:S="lg"}=u,E=Ve(u,Ine),x=z({},u,{component:g,disableGutters:y,fixed:_,maxWidth:S}),T=Mne(x,n);return A.jsx(a,z({as:g,ownerState:x,className:Re(T.root,h),ref:f},E))})}const $ne=["component","direction","spacing","divider","children","className","useFlexGap"],Lne=Ev(),Dne=w6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Nne(e){return aT({props:e,name:"MuiStack",defaultTheme:Lne})}function Bne(e,t){const r=p.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],qne=({ownerState:e,theme:t})=>{let r=z({display:"flex",flexDirection:"column"},ds({theme:t},KR({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=eT(t),a=Object.keys(t.breakpoints.values).reduce((f,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(f[u]=!0),f),{}),o=KR({values:e.direction,base:a}),s=KR({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((f,u,h)=>{if(!o[f]){const y=u>0?o[h[u-1]]:"column";o[f]=y}}),r=ro(r,ds({theme:t},s,(f,u)=>e.useFlexGap?{gap:_f(n,f)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${zne(u?o[u]:e.direction)}`]:_f(n,f)}}))}return r=qte(t.breakpoints,r),r};function Une(e={}){const{createStyledComponent:t=Dne,useThemeProps:r=Nne,componentName:n="MuiStack"}=e,a=()=>St({root:["root"]},f=>wt(n,f),{}),o=t(qne);return p.forwardRef(function(f,u){const h=r(f),g=Pw(h),{component:y="div",direction:_="column",spacing:S=0,divider:E,children:x,className:T,useFlexGap:I=!1}=g,R=Ve(g,$ne),P={direction:_,spacing:S,useFlexGap:I},C=a();return A.jsx(o,z({as:y,ownerState:P,ref:u,className:Re(C.root,T)},R,{children:E?Bne(x,E):x}))})}function Vne(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var dn={},YR={exports:{}},TN;function vt(){return TN||(TN=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(YR)),YR.exports}const Wne=ou(Nee),Hne=ou(rne);var AN;function Gne(){if(AN)return dn;AN=1;var e=vt();Object.defineProperty(dn,"__esModule",{value:!0}),dn.alpha=S,dn.blend=O,dn.colorChannel=void 0,dn.darken=x,dn.decomposeColor=s,dn.emphasize=P,dn.getContrastRatio=_,dn.getLuminance=y,dn.hexToRgb=a,dn.hslToRgb=g,dn.lighten=I,dn.private_safeAlpha=E,dn.private_safeColorChannel=void 0,dn.private_safeDarken=T,dn.private_safeEmphasize=C,dn.private_safeLighten=R,dn.recomposeColor=u,dn.rgbToHex=h;var t=e(Wne),r=e(Hne);function n(j,k=0,M=1){return(0,r.default)(j,k,M)}function a(j){j=j.slice(1);const k=new RegExp(`.{1,${j.length>=6?2:1}}`,"g");let M=j.match(k);return M&&M[0].length===1&&(M=M.map($=>$+$)),M?`rgb${M.length===4?"a":""}(${M.map(($,N)=>N<3?parseInt($,16):Math.round(parseInt($,16)/255*1e3)/1e3).join(", ")})`:""}function o(j){const k=j.toString(16);return k.length===1?`0${k}`:k}function s(j){if(j.type)return j;if(j.charAt(0)==="#")return s(a(j));const k=j.indexOf("("),M=j.substring(0,k);if(["rgb","rgba","hsl","hsla","color"].indexOf(M)===-1)throw new Error((0,t.default)(9,j));let $=j.substring(k+1,j.length-1),N;if(M==="color"){if($=$.split(" "),N=$.shift(),$.length===4&&$[3].charAt(0)==="/"&&($[3]=$[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(N)===-1)throw new Error((0,t.default)(10,N))}else $=$.split(",");return $=$.map(B=>parseFloat(B)),{type:M,values:$,colorSpace:N}}const d=j=>{const k=s(j);return k.values.slice(0,3).map((M,$)=>k.type.indexOf("hsl")!==-1&&$!==0?`${M}%`:M).join(" ")};dn.colorChannel=d;const f=(j,k)=>{try{return d(j)}catch{return j}};dn.private_safeColorChannel=f;function u(j){const{type:k,colorSpace:M}=j;let{values:$}=j;return k.indexOf("rgb")!==-1?$=$.map((N,B)=>B<3?parseInt(N,10):N):k.indexOf("hsl")!==-1&&($[1]=`${$[1]}%`,$[2]=`${$[2]}%`),k.indexOf("color")!==-1?$=`${M} ${$.join(" ")}`:$=`${$.join(", ")}`,`${k}(${$})`}function h(j){if(j.indexOf("#")===0)return j;const{values:k}=s(j);return`#${k.map((M,$)=>o($===3?Math.round(255*M):M)).join("")}`}function g(j){j=s(j);const{values:k}=j,M=k[0],$=k[1]/100,N=k[2]/100,B=$*Math.min(N,1-N),q=(Y,X=(Y+M/30)%12)=>N-B*Math.max(Math.min(X-3,9-X,1),-1);let V="rgb";const G=[Math.round(q(0)*255),Math.round(q(8)*255),Math.round(q(4)*255)];return j.type==="hsla"&&(V+="a",G.push(k[3])),u({type:V,values:G})}function y(j){j=s(j);let k=j.type==="hsl"||j.type==="hsla"?s(g(j)).values:j.values;return k=k.map(M=>(j.type!=="color"&&(M/=255),M<=.03928?M/12.92:((M+.055)/1.055)**2.4)),Number((.2126*k[0]+.7152*k[1]+.0722*k[2]).toFixed(3))}function _(j,k){const M=y(j),$=y(k);return(Math.max(M,$)+.05)/(Math.min(M,$)+.05)}function S(j,k){return j=s(j),k=n(k),(j.type==="rgb"||j.type==="hsl")&&(j.type+="a"),j.type==="color"?j.values[3]=`/${k}`:j.values[3]=k,u(j)}function E(j,k,M){try{return S(j,k)}catch{return j}}function x(j,k){if(j=s(j),k=n(k),j.type.indexOf("hsl")!==-1)j.values[2]*=1-k;else if(j.type.indexOf("rgb")!==-1||j.type.indexOf("color")!==-1)for(let M=0;M<3;M+=1)j.values[M]*=1-k;return u(j)}function T(j,k,M){try{return x(j,k)}catch{return j}}function I(j,k){if(j=s(j),k=n(k),j.type.indexOf("hsl")!==-1)j.values[2]+=(100-j.values[2])*k;else if(j.type.indexOf("rgb")!==-1)for(let M=0;M<3;M+=1)j.values[M]+=(255-j.values[M])*k;else if(j.type.indexOf("color")!==-1)for(let M=0;M<3;M+=1)j.values[M]+=(1-j.values[M])*k;return u(j)}function R(j,k,M){try{return I(j,k)}catch{return j}}function P(j,k=.15){return y(j)>.5?x(j,k):I(j,k)}function C(j,k,M){try{return P(j,k)}catch{return j}}function O(j,k,M,$=1){const N=(G,Y)=>Math.round((G**(1/$)*(1-M)+Y**(1/$)*M)**$),B=s(j),q=s(k),V=[N(B.values[0],q.values[0]),N(B.values[1],q.values[1]),N(B.values[2],q.values[2])];return u({type:"rgb",values:V})}return dn}var ir=Gne();const Kne=["mode","contrastThreshold","tonalOffset"],MN={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:mb.white,default:mb.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}},JR={text:{primary:mb.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:mb.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 FN(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ir.lighten(e.main,a):t==="dark"&&(e.dark=ir.darken(e.main,o)))}function Qne(e="light"){return e==="dark"?{main:Nd[200],light:Nd[50],dark:Nd[400]}:{main:Nd[700],light:Nd[400],dark:Nd[800]}}function Xne(e="light"){return e==="dark"?{main:oh[200],light:oh[50],dark:oh[400]}:{main:oh[500],light:oh[300],dark:oh[700]}}function Yne(e="light"){return e==="dark"?{main:ah[500],light:ah[300],dark:ah[700]}:{main:ah[700],light:ah[400],dark:ah[800]}}function Jne(e="light"){return e==="dark"?{main:ih[400],light:ih[300],dark:ih[700]}:{main:ih[700],light:ih[500],dark:ih[900]}}function Zne(e="light"){return e==="dark"?{main:sh[400],light:sh[300],dark:sh[700]}:{main:sh[800],light:sh[500],dark:sh[900]}}function eae(e="light"){return e==="dark"?{main:ng[400],light:ng[300],dark:ng[700]}:{main:"#ed6c02",light:ng[500],dark:ng[900]}}function tae(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Ve(e,Kne),o=e.primary||Qne(t),s=e.secondary||Xne(t),d=e.error||Yne(t),f=e.info||Jne(t),u=e.success||Zne(t),h=e.warning||eae(t);function g(E){return ir.getContrastRatio(E,JR.text.primary)>=r?JR.text.primary:MN.text.primary}const y=({color:E,name:x,mainShade:T=500,lightShade:I=300,darkShade:R=700})=>{if(E=z({},E),!E.main&&E[T]&&(E.main=E[T]),!E.hasOwnProperty("main"))throw new Error(nu(11,x?` (${x})`:"",T));if(typeof E.main!="string")throw new Error(nu(12,x?` (${x})`:"",JSON.stringify(E.main)));return FN(E,"light",I,n),FN(E,"dark",R,n),E.contrastText||(E.contrastText=g(E.main)),E},_={dark:JR,light:MN};return ro(z({common:z({},mb),mode:t,primary:y({color:o,name:"primary"}),secondary:y({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:d,name:"error"}),warning:y({color:h,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:u,name:"success"}),grey:Dee,contrastThreshold:r,getContrastText:g,augmentColor:y,tonalOffset:n},_[t]),a)}const rae=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function nae(e){return Math.round(e*1e5)/1e5}const $N={textTransform:"uppercase"},LN='"Roboto", "Helvetica", "Arial", sans-serif';function aae(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=LN,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:d=500,fontWeightBold:f=700,htmlFontSize:u=16,allVariants:h,pxToRem:g}=r,y=Ve(r,rae),_=a/14,S=g||(T=>`${T/u*_}rem`),E=(T,I,R,P,C)=>z({fontFamily:n,fontWeight:T,fontSize:S(I),lineHeight:R},n===LN?{letterSpacing:`${nae(P/I)}em`}:{},C,h),x={h1:E(o,96,1.167,-1.5),h2:E(o,60,1.2,-.5),h3:E(s,48,1.167,0),h4:E(s,34,1.235,.25),h5:E(s,24,1.334,0),h6:E(d,20,1.6,.15),subtitle1:E(s,16,1.75,.15),subtitle2:E(d,14,1.57,.1),body1:E(s,16,1.5,.15),body2:E(s,14,1.43,.15),button:E(d,14,1.75,.4,$N),caption:E(s,12,1.66,.4),overline:E(s,12,2.66,1,$N),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ro(z({htmlFontSize:u,pxToRem:S,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:f},x),y,{clone:!1})}const oae=.2,iae=.14,sae=.12;function on(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oae})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iae})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sae})`].join(",")}const lae=["none",on(0,2,1,-1,0,1,1,0,0,1,3,0),on(0,3,1,-2,0,2,2,0,0,1,5,0),on(0,3,3,-2,0,3,4,0,0,1,8,0),on(0,2,4,-1,0,4,5,0,0,1,10,0),on(0,3,5,-1,0,5,8,0,0,1,14,0),on(0,3,5,-1,0,6,10,0,0,1,18,0),on(0,4,5,-2,0,7,10,1,0,2,16,1),on(0,5,5,-3,0,8,10,1,0,3,14,2),on(0,5,6,-3,0,9,12,1,0,3,16,2),on(0,6,6,-3,0,10,14,1,0,4,18,3),on(0,6,7,-4,0,11,15,1,0,4,20,3),on(0,7,8,-4,0,12,17,2,0,5,22,4),on(0,7,8,-4,0,13,19,2,0,5,24,4),on(0,7,9,-4,0,14,21,2,0,5,26,4),on(0,8,9,-5,0,15,22,2,0,6,28,5),on(0,8,10,-5,0,16,24,2,0,6,30,5),on(0,8,11,-5,0,17,26,2,0,6,32,5),on(0,9,11,-5,0,18,28,2,0,7,34,6),on(0,9,12,-6,0,19,29,2,0,7,36,6),on(0,10,13,-6,0,20,31,3,0,8,38,7),on(0,10,13,-6,0,21,33,3,0,8,40,7),on(0,10,14,-6,0,22,35,3,0,8,42,7),on(0,11,14,-7,0,23,36,3,0,9,44,8),on(0,11,15,-7,0,24,38,3,0,9,46,8)],uae=["duration","easing","delay"],cae={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)"},dae={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function DN(e){return`${Math.round(e)}ms`}function fae(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function pae(e){const t=z({},cae,e.easing),r=z({},dae,e.duration);return z({getAutoHeightDuration:fae,create:(a=["all"],o={})=>{const{duration:s=r.standard,easing:d=t.easeInOut,delay:f=0}=o;return Ve(o,uae),(Array.isArray(a)?a:[a]).map(u=>`${u} ${typeof s=="string"?s:DN(s)} ${d} ${typeof f=="string"?f:DN(f)}`).join(",")}},e,{easing:t,duration:r})}const hae={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},vae=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Q1(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,s=Ve(e,vae);if(e.vars)throw new Error(nu(18));const d=tae(n),f=Ev(e);let u=ro(f,{mixins:Vne(f.breakpoints,r),palette:d,shadows:lae.slice(),typography:aae(d,o),transitions:pae(a),zIndex:z({},hae)});return u=ro(u,s),u=t.reduce((h,g)=>ro(h,g),u),u.unstable_sxConfig=z({},Zb,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(g){return Sv({sx:g,theme:this})},u}const Iw=Q1();function ei(){const e=Ow(Iw);return e[bf]||e}function L6({props:e,name:t}){return aT({props:e,name:t,defaultTheme:Iw,themeId:bf})}var Fd={},ZR={exports:{}},NN;function mae(){return NN||(NN=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n96}function S(C){return C!=="ownerState"&&C!=="theme"&&C!=="sx"&&C!=="as"}const E=Fd.systemDefaultTheme=(0,o.default)(),x=C=>C&&C.charAt(0).toLowerCase()+C.slice(1);function T({defaultTheme:C,theme:O,themeId:j}){return y(O)?C:O[j]||O}function I(C){return C?(O,j)=>j[C]:null}function R(C,O){let{ownerState:j}=O,k=(0,r.default)(O,d);const M=typeof C=="function"?C((0,t.default)({ownerState:j},k)):C;if(Array.isArray(M))return M.flatMap($=>R($,(0,t.default)({ownerState:j},k)));if(M&&typeof M=="object"&&Array.isArray(M.variants)){const{variants:$=[]}=M;let B=(0,r.default)(M,f);return $.forEach(q=>{let V=!0;typeof q.props=="function"?V=q.props((0,t.default)({ownerState:j},k,j)):Object.keys(q.props).forEach(G=>{(j==null?void 0:j[G])!==q.props[G]&&k[G]!==q.props[G]&&(V=!1)}),V&&(Array.isArray(B)||(B=[B]),B.push(typeof q.style=="function"?q.style((0,t.default)({ownerState:j},k,j)):q.style))}),B}return M}function P(C={}){const{themeId:O,defaultTheme:j=E,rootShouldForwardProp:k=S,slotShouldForwardProp:M=S}=C,$=N=>(0,s.default)((0,t.default)({},N,{theme:T((0,t.default)({},N,{defaultTheme:j,themeId:O}))}));return $.__mui_systemSx=!0,(N,B={})=>{(0,n.internal_processStyles)(N,me=>me.filter(we=>!(we!=null&&we.__mui_systemSx)));const{name:q,slot:V,skipVariantsResolver:G,skipSx:Y,overridesResolver:X=I(x(V))}=B,H=(0,r.default)(B,u),te=G!==void 0?G:V&&V!=="Root"&&V!=="root"||!1,ne=Y||!1;let K,ee=S;V==="Root"||V==="root"?ee=k:V?ee=M:_(N)&&(ee=void 0);const Ce=(0,n.default)(N,(0,t.default)({shouldForwardProp:ee,label:K},H)),se=me=>typeof me=="function"&&me.__emotion_real!==me||(0,a.isPlainObject)(me)?we=>R(me,(0,t.default)({},we,{theme:T({theme:we.theme,defaultTheme:j,themeId:O})})):me,Se=(me,...we)=>{let Oe=se(me);const ie=we?we.map(se):[];q&&X&&ie.push($e=>{const Te=T((0,t.default)({},$e,{defaultTheme:j,themeId:O}));if(!Te.components||!Te.components[q]||!Te.components[q].styleOverrides)return null;const Be=Te.components[q].styleOverrides,Le={};return Object.entries(Be).forEach(([dt,He])=>{Le[dt]=R(He,(0,t.default)({},$e,{theme:Te}))}),X($e,Le)}),q&&!te&&ie.push($e=>{var Te;const Be=T((0,t.default)({},$e,{defaultTheme:j,themeId:O})),Le=Be==null||(Te=Be.components)==null||(Te=Te[q])==null?void 0:Te.variants;return R({variants:Le},(0,t.default)({},$e,{theme:Be}))}),ne||ie.push($);const Fe=ie.length-we.length;if(Array.isArray(me)&&Fe>0){const $e=new Array(Fe).fill("");Oe=[...me,...$e],Oe.raw=[...me.raw,...$e]}const ke=Ce(Oe,...ie);return N.muiName&&(ke.muiName=N.muiName),ke};return Ce.withConfig&&(Se.withConfig=Ce.withConfig),Se}}return Fd}var Eae=Sae();const Cae=tt(Eae);function N6(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wa=e=>N6(e)&&e!=="classes",he=Cae({themeId:bf,defaultTheme:Iw,rootShouldForwardProp:wa}),Oae=["theme"];function Pae(e){let{theme:t}=e,r=Ve(e,Oae);const n=t[bf];return A.jsx(kne,z({},r,{themeId:n?bf:void 0,theme:n||t}))}const qN=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Et(e){return Rne(e)}function Rae(e){return wt("MuiSvgIcon",e)}Ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kae=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Iae=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Ue(t)}`,`fontSize${Ue(r)}`]};return St(a,Rae,n)},jae=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ue(r.color)}`],t[`fontSize${Ue(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,s,d,f,u,h,g,y,_,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,24))||"1.5rem",large:((u=e.typography)==null||(h=u.pxToRem)==null?void 0:h.call(u,35))||"2.1875rem"}[t.fontSize],color:(g=(y=(e.vars||e).palette)==null||(y=y[t.color])==null?void 0:y.main)!=null?g:{action:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.active,disabled:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.disabled,inherit:void 0}[t.color]}}),dk=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:d="svg",fontSize:f="medium",htmlColor:u,inheritViewBox:h=!1,titleAccess:g,viewBox:y="0 0 24 24"}=n,_=Ve(n,kae),S=p.isValidElement(a)&&a.type==="svg",E=z({},n,{color:s,component:d,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:y,hasSvgAsChild:S}),x={};h||(x.viewBox=y);const T=Iae(E);return A.jsxs(jae,z({as:d,className:Re(T.root,o),focusable:"false",color:u,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:r},x,_,S&&a.props,{ownerState:E,children:[S?a.props.children:a,g?A.jsx("title",{children:g}):null]}))});dk.muiName="SvgIcon";function ti(e,t){function r(n,a){return A.jsx(dk,z({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=dk.muiName,p.memo(p.forwardRef(r))}const Tae={configure:e=>{nT.configure(e)}},Aae=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ue,createChainedFunction:uk,createSvgIcon:ti,debounce:Cv,deprecatedPropType:ane,isMuiElement:c1,ownerDocument:Dn,ownerWindow:Ti,requirePropFactory:one,setRef:G1,unstable_ClassNameGenerator:Tae,unstable_useEnhancedEffect:Yo,unstable_useId:xf,unsupportedProp:sne,useControlled:nv,useEventCallback:to,useForkRef:fn,useIsFocusVisible:kw},Symbol.toStringTag,{value:"Module"}));function fk(e,t){return fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},fk(e,t)}function B6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fk(e,t)}const UN={disabled:!1},X1=Ke.createContext(null);var Mae=function(t){return t.scrollTop},By="unmounted",Bd="exited",zd="entering",fh="entered",pk="exiting",hs=function(e){B6(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var s=a,d=s&&!s.isMounting?n.enter:n.appear,f;return o.appearStatus=null,n.in?d?(f=Bd,o.appearStatus=zd):f=fh:n.unmountOnExit||n.mountOnEnter?f=By:f=Bd,o.state={status:f},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===By?{status:Bd}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==zd&&s!==fh&&(o=zd):(s===zd||s===fh)&&(o=pk)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,s,d;return o=s=d=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,d=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:d}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===zd){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:My.findDOMNode(this);s&&Mae(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bd&&this.setState({status:By})},r.performEnter=function(a){var o=this,s=this.props.enter,d=this.context?this.context.isMounting:a,f=this.props.nodeRef?[d]:[My.findDOMNode(this),d],u=f[0],h=f[1],g=this.getTimeouts(),y=d?g.appear:g.enter;if(!a&&!s||UN.disabled){this.safeSetState({status:fh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:zd},function(){o.props.onEntering(u,h),o.onTransitionEnd(y,function(){o.safeSetState({status:fh},function(){o.props.onEntered(u,h)})})})},r.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),d=this.props.nodeRef?void 0:My.findDOMNode(this);if(!o||UN.disabled){this.safeSetState({status:Bd},function(){a.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:pk},function(){a.props.onExiting(d),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Bd},function(){a.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,s=!0;return this.nextCallback=function(d){s&&(s=!1,o.nextCallback=null,a(d))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:My.findDOMNode(this),d=a==null&&!this.props.addEndListener;if(!s||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=f[0],h=f[1];this.props.addEndListener(u,h)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===By)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var d=Ve(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ke.createElement(X1.Provider,{value:null},typeof s=="function"?s(a,d):Ke.cloneElement(Ke.Children.only(s),d))},t}(Ke.Component);hs.contextType=X1;hs.propTypes={};function uh(){}hs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uh,onEntering:uh,onEntered:uh,onExit:uh,onExiting:uh,onExited:uh};hs.UNMOUNTED=By;hs.EXITED=Bd;hs.ENTERING=zd;hs.ENTERED=fh;hs.EXITING=pk;function Fae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iT(e,t){var r=function(o){return t&&p.isValidElement(o)?t(o):o},n=Object.create(null);return e&&p.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function $ae(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var s,d={};for(var f in t){if(n[f])for(s=0;se.scrollTop;function av(e,t){var r,n;const{timeout:a,easing:o,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=s.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function zae(e){return wt("MuiPaper",e)}Ot("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 qae=["className","component","elevation","square","variant"],Uae=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return St(o,zae,a)},Vae=he("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 z({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"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ir.alpha("#fff",qN(t.elevation))}, ${ir.alpha("#fff",qN(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),zc=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:s=1,square:d=!1,variant:f="elevation"}=n,u=Ve(n,qae),h=z({},n,{component:o,elevation:s,square:d,variant:f}),g=Uae(h);return A.jsx(Vae,z({as:o,ownerState:h,className:Re(g.root,a),ref:r},u))}),Wae=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Hae=["component","slots","slotProps"],Gae=["component"];function Kae(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:s,internalForwardedProps:d}=t,f=Ve(t,Wae),{component:u,slots:h={[e]:void 0},slotProps:g={[e]:void 0}}=o;Ve(o,Hae);const y=h[e]||n,_=T6(g[e],a),S=j6(z({className:r},f,{externalForwardedProps:void 0,externalSlotProps:_})),{props:{component:E},internalRef:x}=S,T=Ve(S.props,Gae),I=fn(x,_==null?void 0:_.ref,t.ref),R=s?s(T):{},P=z({},a,R),C=E,O=_h(y,z({},e==="root",!h[e]&&d,T,C&&{as:C},{ref:I}),P);return Object.keys(R).forEach(j=>{delete O[j]}),[y,O]}function Qae(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:s,in:d,onExited:f,timeout:u}=e,[h,g]=p.useState(!1),y=Re(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),_={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},S=Re(r.child,h&&r.childLeaving,n&&r.childPulsate);return!d&&!h&&g(!0),p.useEffect(()=>{if(!d&&f!=null){const E=setTimeout(f,u);return()=>{clearTimeout(E)}}},[f,d,u]),A.jsx("span",{className:y,style:_,children:A.jsx("span",{className:S})})}const Si=Ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xae=["center","classes","className"];let jw=e=>e,VN,WN,HN,GN;const hk=550,Yae=80,Jae=uu(VN||(VN=jw` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),Zae=uu(WN||(WN=jw` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),eoe=uu(HN||(HN=jw` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),toe=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),roe=he(Qae,{name:"MuiTouchRipple",slot:"Ripple"})(GN||(GN=jw` + 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; + } +`),Si.rippleVisible,Jae,hk,({theme:e})=>e.transitions.easing.easeInOut,Si.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Si.child,Si.childLeaving,Zae,hk,({theme:e})=>e.transitions.easing.easeInOut,Si.childPulsate,eoe,({theme:e})=>e.transitions.easing.easeInOut),noe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s}=n,d=Ve(n,Xae),[f,u]=p.useState([]),h=p.useRef(0),g=p.useRef(null);p.useEffect(()=>{g.current&&(g.current(),g.current=null)},[f]);const y=p.useRef(!1),_=Jd(),S=p.useRef(null),E=p.useRef(null),x=p.useCallback(P=>{const{pulsate:C,rippleX:O,rippleY:j,rippleSize:k,cb:M}=P;u($=>[...$,A.jsx(roe,{classes:{ripple:Re(o.ripple,Si.ripple),rippleVisible:Re(o.rippleVisible,Si.rippleVisible),ripplePulsate:Re(o.ripplePulsate,Si.ripplePulsate),child:Re(o.child,Si.child),childLeaving:Re(o.childLeaving,Si.childLeaving),childPulsate:Re(o.childPulsate,Si.childPulsate)},timeout:hk,pulsate:C,rippleX:O,rippleY:j,rippleSize:k},h.current)]),h.current+=1,g.current=M},[o]),T=p.useCallback((P={},C={},O=()=>{})=>{const{pulsate:j=!1,center:k=a||C.pulsate,fakeElement:M=!1}=C;if((P==null?void 0:P.type)==="mousedown"&&y.current){y.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(y.current=!0);const $=M?null:E.current,N=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,q,V;if(k||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)B=Math.round(N.width/2),q=Math.round(N.height/2);else{const{clientX:G,clientY:Y}=P.touches&&P.touches.length>0?P.touches[0]:P;B=Math.round(G-N.left),q=Math.round(Y-N.top)}if(k)V=Math.sqrt((2*N.width**2+N.height**2)/3),V%2===0&&(V+=1);else{const G=Math.max(Math.abs(($?$.clientWidth:0)-B),B)*2+2,Y=Math.max(Math.abs(($?$.clientHeight:0)-q),q)*2+2;V=Math.sqrt(G**2+Y**2)}P!=null&&P.touches?S.current===null&&(S.current=()=>{x({pulsate:j,rippleX:B,rippleY:q,rippleSize:V,cb:O})},_.start(Yae,()=>{S.current&&(S.current(),S.current=null)})):x({pulsate:j,rippleX:B,rippleY:q,rippleSize:V,cb:O})},[a,x,_]),I=p.useCallback(()=>{T({},{pulsate:!0})},[T]),R=p.useCallback((P,C)=>{if(_.clear(),(P==null?void 0:P.type)==="touchend"&&S.current){S.current(),S.current=null,_.start(0,()=>{R(P,C)});return}S.current=null,u(O=>O.length>0?O.slice(1):O),g.current=C},[_]);return p.useImperativeHandle(r,()=>({pulsate:I,start:T,stop:R}),[I,T,R]),A.jsx(toe,z({className:Re(Si.root,o.root,s),ref:E},d,{children:A.jsx(sT,{component:null,exit:!0,children:f})}))});function aoe(e){return wt("MuiButtonBase",e)}const ooe=Ot("MuiButtonBase",["root","disabled","focusVisible"]),ioe=["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"],soe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,s=St({root:["root",t&&"disabled",r&&"focusVisible"]},aoe,a);return r&&n&&(s.root+=` ${n}`),s},loe=he("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"},[`&.${ooe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cu=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:d,component:f="button",disabled:u=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:y=!1,LinkComponent:_="a",onBlur:S,onClick:E,onContextMenu:x,onDragLeave:T,onFocus:I,onFocusVisible:R,onKeyDown:P,onKeyUp:C,onMouseDown:O,onMouseLeave:j,onMouseUp:k,onTouchEnd:M,onTouchMove:$,onTouchStart:N,tabIndex:B=0,TouchRippleProps:q,touchRippleRef:V,type:G}=n,Y=Ve(n,ioe),X=p.useRef(null),H=p.useRef(null),te=fn(H,V),{isFocusVisibleRef:ne,onFocus:K,onBlur:ee,ref:Ce}=kw(),[se,Se]=p.useState(!1);u&&se&&Se(!1),p.useImperativeHandle(a,()=>({focusVisible:()=>{Se(!0),X.current.focus()}}),[]);const[me,we]=p.useState(!1);p.useEffect(()=>{we(!0)},[]);const Oe=me&&!h&&!u;p.useEffect(()=>{se&&y&&!h&&me&&H.current.pulsate()},[h,y,se,me]);function ie(it,Dt,Zt=g){return to(Kt=>(Dt&&Dt(Kt),!Zt&&H.current&&H.current[it](Kt),!0))}const Fe=ie("start",O),ke=ie("stop",x),$e=ie("stop",T),Te=ie("stop",k),Be=ie("stop",it=>{se&&it.preventDefault(),j&&j(it)}),Le=ie("start",N),dt=ie("stop",M),He=ie("stop",$),Z=ie("stop",it=>{ee(it),ne.current===!1&&Se(!1),S&&S(it)},!1),ae=to(it=>{X.current||(X.current=it.currentTarget),K(it),ne.current===!0&&(Se(!0),R&&R(it)),I&&I(it)}),fe=()=>{const it=X.current;return f&&f!=="button"&&!(it.tagName==="A"&&it.href)},ve=p.useRef(!1),be=to(it=>{y&&!ve.current&&se&&H.current&&it.key===" "&&(ve.current=!0,H.current.stop(it,()=>{H.current.start(it)})),it.target===it.currentTarget&&fe()&&it.key===" "&&it.preventDefault(),P&&P(it),it.target===it.currentTarget&&fe()&&it.key==="Enter"&&!u&&(it.preventDefault(),E&&E(it))}),_e=to(it=>{y&&it.key===" "&&H.current&&se&&!it.defaultPrevented&&(ve.current=!1,H.current.stop(it,()=>{H.current.pulsate(it)})),C&&C(it),E&&it.target===it.currentTarget&&fe()&&it.key===" "&&!it.defaultPrevented&&E(it)});let De=f;De==="button"&&(Y.href||Y.to)&&(De=_);const Ge={};De==="button"?(Ge.type=G===void 0?"button":G,Ge.disabled=u):(!Y.href&&!Y.to&&(Ge.role="button"),u&&(Ge["aria-disabled"]=u));const Mt=fn(r,Ce,X),et=z({},n,{centerRipple:o,component:f,disabled:u,disableRipple:h,disableTouchRipple:g,focusRipple:y,tabIndex:B,focusVisible:se}),ot=soe(et);return A.jsxs(loe,z({as:De,className:Re(ot.root,d),ownerState:et,onBlur:Z,onClick:E,onContextMenu:ke,onFocus:ae,onKeyDown:be,onKeyUp:_e,onMouseDown:Fe,onMouseLeave:Be,onMouseUp:Te,onDragLeave:$e,onTouchEnd:dt,onTouchMove:He,onTouchStart:Le,ref:Mt,tabIndex:u?-1:B,type:G},Ge,Y,{children:[s,Oe?A.jsx(noe,z({ref:te,center:o},q)):null]}))});function uoe(e){return wt("MuiIconButton",e)}const coe=Ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),doe=["edge","children","className","color","disabled","disableFocusRipple","size"],foe=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,s={root:["root",r&&"disabled",n!=="default"&&`color${Ue(n)}`,a&&`edge${Ue(a)}`,`size${Ue(o)}`]};return St(s,uoe,t)},poe=he(cu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Ue(r.color)}`],r.edge&&t[`edge${Ue(r.edge)}`],t[`size${Ue(r.size)}`]]}})(({theme:e,ownerState:t})=>z({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})`:ir.alpha(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 z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&z({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":z({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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)},{[`&.${coe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),_n=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:s,color:d="default",disabled:f=!1,disableFocusRipple:u=!1,size:h="medium"}=n,g=Ve(n,doe),y=z({},n,{edge:a,color:d,disabled:f,disableFocusRipple:u,size:h}),_=foe(y);return A.jsx(poe,z({className:Re(_.root,s),centerRipple:!0,focusRipple:!u,disabled:f,ref:r},g,{ownerState:y,children:o}))});function hoe(e){return wt("MuiTypography",e)}Ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const voe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],moe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:s}=e,d={root:["root",o,e.align!=="inherit"&&`align${Ue(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return St(d,hoe,s)},goe=he("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${Ue(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({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})),KN={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yoe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},boe=e=>yoe[e]||e,nr=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTypography"}),a=boe(n.color),o=Pw(z({},n,{color:a})),{align:s="inherit",className:d,component:f,gutterBottom:u=!1,noWrap:h=!1,paragraph:g=!1,variant:y="body1",variantMapping:_=KN}=o,S=Ve(o,voe),E=z({},o,{align:s,color:a,className:d,component:f,gutterBottom:u,noWrap:h,paragraph:g,variant:y,variantMapping:_}),x=f||(g?"p":_[y]||KN[y])||"span",T=moe(E);return A.jsx(goe,z({as:x,ref:r,ownerState:E,className:Re(T.root,d)},S))});function _oe(e){return wt("MuiAppBar",e)}Ot("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const xoe=["className","color","enableColorOnDark","position"],woe=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${Ue(t)}`,`position${Ue(r)}`]};return St(a,_oe,n)},N_=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Soe=he(zc,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ue(r.position)}`],t[`color${Ue(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return z({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&&z({},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"&&z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&z({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:N_(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:N_(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:N_(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:N_(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Eoe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:s=!1,position:d="fixed"}=n,f=Ve(n,xoe),u=z({},n,{color:o,position:d,enableColorOnDark:s}),h=woe(u);return A.jsx(Soe,z({square:!0,component:"header",ownerState:u,elevation:4,className:Re(h.root,a,d==="fixed"&&"mui-fixed"),ref:r},f))});var og={},QN;function Coe(){if(QN)return og;QN=1,Object.defineProperty(og,"__esModule",{value:!0}),og.default=void 0;var e=n(Nx()),t=D6;function r(s){if(typeof WeakMap!="function")return null;var d=new WeakMap,f=new WeakMap;return(r=function(u){return u?f:d})(s)}function n(s,d){if(s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var f=r(d);if(f&&f.has(s))return f.get(s);var u={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in s)if(g!=="default"&&Object.prototype.hasOwnProperty.call(s,g)){var y=h?Object.getOwnPropertyDescriptor(s,g):null;y&&(y.get||y.set)?Object.defineProperty(u,g,y):u[g]=s[g]}return u.default=s,f&&f.set(s,u),u}function a(s){return Object.keys(s).length===0}function o(s=null){const d=e.useContext(t.ThemeContext);return!d||a(d)?s:d}return og.default=o,og}var Ooe=Coe();const Poe=tt(Ooe);var Po="top",Mi="bottom",Fi="right",Ro="left",uT="auto",t0=[Po,Mi,Fi,Ro],ov="start",wb="end",Roe="clippingParents",z6="viewport",ig="popper",koe="reference",XN=t0.reduce(function(e,t){return e.concat([t+"-"+ov,t+"-"+wb])},[]),q6=[].concat(t0,[uT]).reduce(function(e,t){return e.concat([t,t+"-"+ov,t+"-"+wb])},[]),Ioe="beforeRead",joe="read",Toe="afterRead",Aoe="beforeMain",Moe="main",Foe="afterMain",$oe="beforeWrite",Loe="write",Doe="afterWrite",Noe=[Ioe,joe,Toe,Aoe,Moe,Foe,$oe,Loe,Doe];function ol(e){return e?(e.nodeName||"").toLowerCase():null}function Jo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wf(e){var t=Jo(e).Element;return e instanceof t||e instanceof Element}function Ii(e){var t=Jo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cT(e){if(typeof ShadowRoot>"u")return!1;var t=Jo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Boe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Ii(o)||!ol(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(s){var d=a[s];d===!1?o.removeAttribute(s):o.setAttribute(s,d===!0?"":d)}))})}function zoe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),d=s.reduce(function(f,u){return f[u]="",f},{});!Ii(a)||!ol(a)||(Object.assign(a.style,d),Object.keys(o).forEach(function(f){a.removeAttribute(f)}))})}}const qoe={name:"applyStyles",enabled:!0,phase:"write",fn:Boe,effect:zoe,requires:["computeStyles"]};function nl(e){return e.split("-")[0]}var pf=Math.max,Y1=Math.min,iv=Math.round;function vk(){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 U6(){return!/^((?!chrome|android).)*safari/i.test(vk())}function sv(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Ii(e)&&(a=e.offsetWidth>0&&iv(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&iv(n.height)/e.offsetHeight||1);var s=wf(e)?Jo(e):window,d=s.visualViewport,f=!U6()&&r,u=(n.left+(f&&d?d.offsetLeft:0))/a,h=(n.top+(f&&d?d.offsetTop:0))/o,g=n.width/a,y=n.height/o;return{width:g,height:y,top:h,right:u+g,bottom:h+y,left:u,x:u,y:h}}function dT(e){var t=sv(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 V6(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&cT(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function au(e){return Jo(e).getComputedStyle(e)}function Uoe(e){return["table","td","th"].indexOf(ol(e))>=0}function qc(e){return((wf(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tw(e){return ol(e)==="html"?e:e.assignedSlot||e.parentNode||(cT(e)?e.host:null)||qc(e)}function YN(e){return!Ii(e)||au(e).position==="fixed"?null:e.offsetParent}function Voe(e){var t=/firefox/i.test(vk()),r=/Trident/i.test(vk());if(r&&Ii(e)){var n=au(e);if(n.position==="fixed")return null}var a=Tw(e);for(cT(a)&&(a=a.host);Ii(a)&&["html","body"].indexOf(ol(a))<0;){var o=au(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function r0(e){for(var t=Jo(e),r=YN(e);r&&Uoe(r)&&au(r).position==="static";)r=YN(r);return r&&(ol(r)==="html"||ol(r)==="body"&&au(r).position==="static")?t:r||Voe(e)||t}function fT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jy(e,t,r){return pf(e,Y1(t,r))}function Woe(e,t,r){var n=Jy(e,t,r);return n>r?r:n}function W6(){return{top:0,right:0,bottom:0,left:0}}function H6(e){return Object.assign({},W6(),e)}function G6(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Hoe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,H6(typeof t!="number"?t:G6(t,t0))};function Goe(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,d=nl(r.placement),f=fT(d),u=[Ro,Fi].indexOf(d)>=0,h=u?"height":"width";if(!(!o||!s)){var g=Hoe(a.padding,r),y=dT(o),_=f==="y"?Po:Ro,S=f==="y"?Mi:Fi,E=r.rects.reference[h]+r.rects.reference[f]-s[f]-r.rects.popper[h],x=s[f]-r.rects.reference[f],T=r0(o),I=T?f==="y"?T.clientHeight||0:T.clientWidth||0:0,R=E/2-x/2,P=g[_],C=I-y[h]-g[S],O=I/2-y[h]/2+R,j=Jy(P,O,C),k=f;r.modifiersData[n]=(t={},t[k]=j,t.centerOffset=j-O,t)}}function Koe(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||V6(t.elements.popper,a)&&(t.elements.arrow=a))}const Qoe={name:"arrow",enabled:!0,phase:"main",fn:Goe,effect:Koe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lv(e){return e.split("-")[1]}var Xoe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yoe(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:iv(r*a)/a||0,y:iv(n*a)/a||0}}function JN(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,d=e.position,f=e.gpuAcceleration,u=e.adaptive,h=e.roundOffsets,g=e.isFixed,y=s.x,_=y===void 0?0:y,S=s.y,E=S===void 0?0:S,x=typeof h=="function"?h({x:_,y:E}):{x:_,y:E};_=x.x,E=x.y;var T=s.hasOwnProperty("x"),I=s.hasOwnProperty("y"),R=Ro,P=Po,C=window;if(u){var O=r0(r),j="clientHeight",k="clientWidth";if(O===Jo(r)&&(O=qc(r),au(O).position!=="static"&&d==="absolute"&&(j="scrollHeight",k="scrollWidth")),O=O,a===Po||(a===Ro||a===Fi)&&o===wb){P=Mi;var M=g&&O===C&&C.visualViewport?C.visualViewport.height:O[j];E-=M-n.height,E*=f?1:-1}if(a===Ro||(a===Po||a===Mi)&&o===wb){R=Fi;var $=g&&O===C&&C.visualViewport?C.visualViewport.width:O[k];_-=$-n.width,_*=f?1:-1}}var N=Object.assign({position:d},u&&Xoe),B=h===!0?Yoe({x:_,y:E},Jo(r)):{x:_,y:E};if(_=B.x,E=B.y,f){var q;return Object.assign({},N,(q={},q[P]=I?"0":"",q[R]=T?"0":"",q.transform=(C.devicePixelRatio||1)<=1?"translate("+_+"px, "+E+"px)":"translate3d("+_+"px, "+E+"px, 0)",q))}return Object.assign({},N,(t={},t[P]=I?E+"px":"",t[R]=T?_+"px":"",t.transform="",t))}function Joe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,d=r.roundOffsets,f=d===void 0?!0:d,u={placement:nl(t.placement),variation:lv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,JN(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,JN(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zoe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Joe,data:{}};var B_={passive:!0};function eie(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,s=n.resize,d=s===void 0?!0:s,f=Jo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(h){h.addEventListener("scroll",r.update,B_)}),d&&f.addEventListener("resize",r.update,B_),function(){o&&u.forEach(function(h){h.removeEventListener("scroll",r.update,B_)}),d&&f.removeEventListener("resize",r.update,B_)}}const tie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eie,data:{}};var rie={left:"right",right:"left",bottom:"top",top:"bottom"};function d1(e){return e.replace(/left|right|bottom|top/g,function(t){return rie[t]})}var nie={start:"end",end:"start"};function ZN(e){return e.replace(/start|end/g,function(t){return nie[t]})}function pT(e){var t=Jo(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function hT(e){return sv(qc(e)).left+pT(e).scrollLeft}function aie(e,t){var r=Jo(e),n=qc(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,d=0,f=0;if(a){o=a.width,s=a.height;var u=U6();(u||!u&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:o,height:s,x:d+hT(e),y:f}}function oie(e){var t,r=qc(e),n=pT(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=pf(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=pf(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-n.scrollLeft+hT(e),f=-n.scrollTop;return au(a||r).direction==="rtl"&&(d+=pf(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:d,y:f}}function vT(e){var t=au(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function K6(e){return["html","body","#document"].indexOf(ol(e))>=0?e.ownerDocument.body:Ii(e)&&vT(e)?e:K6(Tw(e))}function Zy(e,t){var r;t===void 0&&(t=[]);var n=K6(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Jo(n),s=a?[o].concat(o.visualViewport||[],vT(n)?n:[]):n,d=t.concat(s);return a?d:d.concat(Zy(Tw(s)))}function mk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iie(e,t){var r=sv(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 e3(e,t,r){return t===z6?mk(aie(e,r)):wf(t)?iie(t,r):mk(oie(qc(e)))}function sie(e){var t=Zy(Tw(e)),r=["absolute","fixed"].indexOf(au(e).position)>=0,n=r&&Ii(e)?r0(e):e;return wf(n)?t.filter(function(a){return wf(a)&&V6(a,n)&&ol(a)!=="body"}):[]}function lie(e,t,r,n){var a=t==="clippingParents"?sie(e):[].concat(t),o=[].concat(a,[r]),s=o[0],d=o.reduce(function(f,u){var h=e3(e,u,n);return f.top=pf(h.top,f.top),f.right=Y1(h.right,f.right),f.bottom=Y1(h.bottom,f.bottom),f.left=pf(h.left,f.left),f},e3(e,s,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function Q6(e){var t=e.reference,r=e.element,n=e.placement,a=n?nl(n):null,o=n?lv(n):null,s=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,f;switch(a){case Po:f={x:s,y:t.y-r.height};break;case Mi:f={x:s,y:t.y+t.height};break;case Fi:f={x:t.x+t.width,y:d};break;case Ro:f={x:t.x-r.width,y:d};break;default:f={x:t.x,y:t.y}}var u=a?fT(a):null;if(u!=null){var h=u==="y"?"height":"width";switch(o){case ov:f[u]=f[u]-(t[h]/2-r[h]/2);break;case wb:f[u]=f[u]+(t[h]/2-r[h]/2);break}}return f}function Sb(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,d=r.boundary,f=d===void 0?Roe:d,u=r.rootBoundary,h=u===void 0?z6:u,g=r.elementContext,y=g===void 0?ig:g,_=r.altBoundary,S=_===void 0?!1:_,E=r.padding,x=E===void 0?0:E,T=H6(typeof x!="number"?x:G6(x,t0)),I=y===ig?koe:ig,R=e.rects.popper,P=e.elements[S?I:y],C=lie(wf(P)?P:P.contextElement||qc(e.elements.popper),f,h,s),O=sv(e.elements.reference),j=Q6({reference:O,element:R,placement:a}),k=mk(Object.assign({},R,j)),M=y===ig?k:O,$={top:C.top-M.top+T.top,bottom:M.bottom-C.bottom+T.bottom,left:C.left-M.left+T.left,right:M.right-C.right+T.right},N=e.modifiersData.offset;if(y===ig&&N){var B=N[a];Object.keys($).forEach(function(q){var V=[Fi,Mi].indexOf(q)>=0?1:-1,G=[Po,Mi].indexOf(q)>=0?"y":"x";$[q]+=B[G]*V})}return $}function uie(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,d=r.flipVariations,f=r.allowedAutoPlacements,u=f===void 0?q6:f,h=lv(n),g=h?d?XN:XN.filter(function(S){return lv(S)===h}):t0,y=g.filter(function(S){return u.indexOf(S)>=0});y.length===0&&(y=g);var _=y.reduce(function(S,E){return S[E]=Sb(e,{placement:E,boundary:a,rootBoundary:o,padding:s})[nl(E)],S},{});return Object.keys(_).sort(function(S,E){return _[S]-_[E]})}function cie(e){if(nl(e)===uT)return[];var t=d1(e);return[ZN(e),t,ZN(t)]}function die(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!0:s,f=r.fallbackPlacements,u=r.padding,h=r.boundary,g=r.rootBoundary,y=r.altBoundary,_=r.flipVariations,S=_===void 0?!0:_,E=r.allowedAutoPlacements,x=t.options.placement,T=nl(x),I=T===x,R=f||(I||!S?[d1(x)]:cie(x)),P=[x].concat(R).reduce(function(se,Se){return se.concat(nl(Se)===uT?uie(t,{placement:Se,boundary:h,rootBoundary:g,padding:u,flipVariations:S,allowedAutoPlacements:E}):Se)},[]),C=t.rects.reference,O=t.rects.popper,j=new Map,k=!0,M=P[0],$=0;$=0,G=V?"width":"height",Y=Sb(t,{placement:N,boundary:h,rootBoundary:g,altBoundary:y,padding:u}),X=V?q?Fi:Ro:q?Mi:Po;C[G]>O[G]&&(X=d1(X));var H=d1(X),te=[];if(o&&te.push(Y[B]<=0),d&&te.push(Y[X]<=0,Y[H]<=0),te.every(function(se){return se})){M=N,k=!1;break}j.set(N,te)}if(k)for(var ne=S?3:1,K=function(Se){var me=P.find(function(we){var Oe=j.get(we);if(Oe)return Oe.slice(0,Se).every(function(ie){return ie})});if(me)return M=me,"break"},ee=ne;ee>0;ee--){var Ce=K(ee);if(Ce==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const fie={name:"flip",enabled:!0,phase:"main",fn:die,requiresIfExists:["offset"],data:{_skip:!1}};function t3(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 r3(e){return[Po,Fi,Mi,Ro].some(function(t){return e[t]>=0})}function pie(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Sb(t,{elementContext:"reference"}),d=Sb(t,{altBoundary:!0}),f=t3(s,n),u=t3(d,a,o),h=r3(f),g=r3(u);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}const hie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pie};function vie(e,t,r){var n=nl(e),a=[Ro,Po].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],d=o[1];return s=s||0,d=(d||0)*a,[Ro,Fi].indexOf(n)>=0?{x:d,y:s}:{x:s,y:d}}function mie(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=q6.reduce(function(h,g){return h[g]=vie(g,t.rects,o),h},{}),d=s[t.placement],f=d.x,u=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}const gie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mie};function yie(e){var t=e.state,r=e.name;t.modifiersData[r]=Q6({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bie={name:"popperOffsets",enabled:!0,phase:"read",fn:yie,data:{}};function _ie(e){return e==="x"?"y":"x"}function xie(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,d=s===void 0?!1:s,f=r.boundary,u=r.rootBoundary,h=r.altBoundary,g=r.padding,y=r.tether,_=y===void 0?!0:y,S=r.tetherOffset,E=S===void 0?0:S,x=Sb(t,{boundary:f,rootBoundary:u,padding:g,altBoundary:h}),T=nl(t.placement),I=lv(t.placement),R=!I,P=fT(T),C=_ie(P),O=t.modifiersData.popperOffsets,j=t.rects.reference,k=t.rects.popper,M=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,$=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(O){if(o){var q,V=P==="y"?Po:Ro,G=P==="y"?Mi:Fi,Y=P==="y"?"height":"width",X=O[P],H=X+x[V],te=X-x[G],ne=_?-k[Y]/2:0,K=I===ov?j[Y]:k[Y],ee=I===ov?-k[Y]:-j[Y],Ce=t.elements.arrow,se=_&&Ce?dT(Ce):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W6(),me=Se[V],we=Se[G],Oe=Jy(0,j[Y],se[Y]),ie=R?j[Y]/2-ne-Oe-me-$.mainAxis:K-Oe-me-$.mainAxis,Fe=R?-j[Y]/2+ne+Oe+we+$.mainAxis:ee+Oe+we+$.mainAxis,ke=t.elements.arrow&&r0(t.elements.arrow),$e=ke?P==="y"?ke.clientTop||0:ke.clientLeft||0:0,Te=(q=N==null?void 0:N[P])!=null?q:0,Be=X+ie-Te-$e,Le=X+Fe-Te,dt=Jy(_?Y1(H,Be):H,X,_?pf(te,Le):te);O[P]=dt,B[P]=dt-X}if(d){var He,Z=P==="x"?Po:Ro,ae=P==="x"?Mi:Fi,fe=O[C],ve=C==="y"?"height":"width",be=fe+x[Z],_e=fe-x[ae],De=[Po,Ro].indexOf(T)!==-1,Ge=(He=N==null?void 0:N[C])!=null?He:0,Mt=De?be:fe-j[ve]-k[ve]-Ge+$.altAxis,et=De?fe+j[ve]+k[ve]-Ge-$.altAxis:_e,ot=_&&De?Woe(Mt,fe,et):Jy(_?Mt:be,fe,_?et:_e);O[C]=ot,B[C]=ot-fe}t.modifiersData[n]=B}}const wie={name:"preventOverflow",enabled:!0,phase:"main",fn:xie,requiresIfExists:["offset"]};function Sie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Eie(e){return e===Jo(e)||!Ii(e)?pT(e):Sie(e)}function Cie(e){var t=e.getBoundingClientRect(),r=iv(t.width)/e.offsetWidth||1,n=iv(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Oie(e,t,r){r===void 0&&(r=!1);var n=Ii(t),a=Ii(t)&&Cie(t),o=qc(t),s=sv(e,a,r),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!r)&&((ol(t)!=="body"||vT(o))&&(d=Eie(t)),Ii(t)?(f=sv(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=hT(o))),{x:s.left+d.scrollLeft-f.x,y:s.top+d.scrollTop-f.y,width:s.width,height:s.height}}function Pie(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(d){if(!r.has(d)){var f=t.get(d);f&&a(f)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Rie(e){var t=Pie(e);return Noe.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function kie(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Iie(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var n3={placement:"bottom",modifiers:[],strategy:"absolute"};function a3(){for(var e=arguments.length,t=new Array(e),r=0;r{o||d(Mie(a)||document.body)},[a,o]),Yo(()=>{if(s&&!o)return G1(r,s),()=>{G1(r,null)}},[r,s,o]),o){if(p.isValidElement(n)){const u={ref:f};return p.cloneElement(n,u)}return A.jsx(p.Fragment,{children:n})}return A.jsx(p.Fragment,{children:s&&zx.createPortal(n,s)})});function Fie(e){return wt("MuiPopper",e)}Ot("MuiPopper",["root"]);const $ie=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Lie=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Die(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function gk(e){return typeof e=="function"?e():e}function Nie(e){return e.nodeType!==void 0}const Bie=e=>{const{classes:t}=e;return St({root:["root"]},Fie,t)},zie={},qie=p.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:s,disablePortal:d,modifiers:f,open:u,placement:h,popperOptions:g,popperRef:y,slotProps:_={},slots:S={},TransitionProps:E}=t,x=Ve(t,$ie),T=p.useRef(null),I=fn(T,r),R=p.useRef(null),P=fn(R,y),C=p.useRef(P);Yo(()=>{C.current=P},[P]),p.useImperativeHandle(y,()=>R.current,[]);const O=Die(h,s),[j,k]=p.useState(O),[M,$]=p.useState(gk(a));p.useEffect(()=>{R.current&&R.current.forceUpdate()}),p.useEffect(()=>{a&&$(gk(a))},[a]),Yo(()=>{if(!M||!u)return;const G=H=>{k(H.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{G(H)}}];f!=null&&(Y=Y.concat(f)),g&&g.modifiers!=null&&(Y=Y.concat(g.modifiers));const X=Aie(M,T.current,z({placement:O},g,{modifiers:Y}));return C.current(X),()=>{X.destroy(),C.current(null)}},[M,d,f,u,g,O]);const N={placement:j};E!==null&&(N.TransitionProps=E);const B=Bie(t),q=(n=S.root)!=null?n:"div",V=Ai({elementType:q,externalSlotProps:_.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:B.root});return A.jsx(q,z({},V,{children:typeof o=="function"?o(N):o}))}),Uie=p.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:s="ltr",disablePortal:d=!1,keepMounted:f=!1,modifiers:u,open:h,placement:g="bottom",popperOptions:y=zie,popperRef:_,style:S,transition:E=!1,slotProps:x={},slots:T={}}=t,I=Ve(t,Lie),[R,P]=p.useState(!0),C=()=>{P(!1)},O=()=>{P(!0)};if(!f&&!h&&(!E||R))return null;let j;if(o)j=o;else if(n){const $=gk(n);j=$&&Nie($)?Dn($).body:Dn(null).body}const k=!h&&f&&(!E||R)?"none":void 0,M=E?{in:h,onEnter:C,onExited:O}:void 0;return A.jsx(X6,{disablePortal:d,container:j,children:A.jsx(qie,z({anchorEl:n,direction:s,disablePortal:d,modifiers:u,ref:r,open:E?!R:h,placement:g,popperOptions:y,popperRef:_,slotProps:x,slots:T},I,{style:z({position:"fixed",top:0,left:0,display:k},S),TransitionProps:M,children:a}))})}),Vie=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Wie=he(Uie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y6=p.forwardRef(function(t,r){var n;const a=Poe(),o=Et({props:t,name:"MuiPopper"}),{anchorEl:s,component:d,components:f,componentsProps:u,container:h,disablePortal:g,keepMounted:y,modifiers:_,open:S,placement:E,popperOptions:x,popperRef:T,transition:I,slots:R,slotProps:P}=o,C=Ve(o,Vie),O=(n=R==null?void 0:R.root)!=null?n:f==null?void 0:f.Root,j=z({anchorEl:s,container:h,disablePortal:g,keepMounted:y,modifiers:_,open:S,placement:E,popperOptions:x,popperRef:T,transition:I},C);return A.jsx(Wie,z({as:d,direction:a==null?void 0:a.direction,slots:{root:O},slotProps:P??u},j,{ref:r}))}),Hie=["onChange","maxRows","minRows","style","value"];function z_(e){return parseInt(e,10)||0}const Gie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Kie(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Qie=p.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:s,value:d}=t,f=Ve(t,Hie),{current:u}=p.useRef(d!=null),h=p.useRef(null),g=fn(r,h),y=p.useRef(null),_=p.useRef(null),S=p.useCallback(()=>{const T=h.current,R=Ti(T).getComputedStyle(T);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=_.current;P.style.width=R.width,P.value=T.value||t.placeholder||"x",P.value.slice(-1)===` +`&&(P.value+=" ");const C=R.boxSizing,O=z_(R.paddingBottom)+z_(R.paddingTop),j=z_(R.borderBottomWidth)+z_(R.borderTopWidth),k=P.scrollHeight;P.value="x";const M=P.scrollHeight;let $=k;o&&($=Math.max(Number(o)*M,$)),a&&($=Math.min(Number(a)*M,$)),$=Math.max($,M);const N=$+(C==="border-box"?O+j:0),B=Math.abs($-k)<=1;return{outerHeightStyle:N,overflowing:B}},[a,o,t.placeholder]),E=p.useCallback(()=>{const T=S();if(Kie(T))return;const I=T.outerHeightStyle,R=h.current;y.current!==I&&(y.current=I,R.style.height=`${I}px`),R.style.overflow=T.overflowing?"hidden":""},[S]);Yo(()=>{const T=()=>{E()};let I;const R=Cv(T),P=h.current,C=Ti(P);C.addEventListener("resize",R);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(T),O.observe(P)),()=>{R.clear(),cancelAnimationFrame(I),C.removeEventListener("resize",R),O&&O.disconnect()}},[S,E]),Yo(()=>{E()});const x=T=>{u||E(),n&&n(T)};return A.jsxs(p.Fragment,{children:[A.jsx("textarea",z({value:d,onChange:x,ref:g,rows:o,style:s},f)),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:_,tabIndex:-1,style:z({},Gie.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function du({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const Aw=p.createContext(void 0);function vs(){return p.useContext(Aw)}function J6(e){return A.jsx(Mre,z({},e,{defaultTheme:Iw,themeId:bf}))}function o3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function J1(e,t=!1){return e&&(o3(e.value)&&e.value!==""||t&&o3(e.defaultValue)&&e.defaultValue!=="")}function Xie(e){return e.startAdornment}function Yie(e){return wt("MuiInputBase",e)}const uv=Ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Jie=["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"],Mw=(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${Ue(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Fw=(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]},Zie=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:s,formControl:d,fullWidth:f,hiddenLabel:u,multiline:h,readOnly:g,size:y,startAdornment:_,type:S}=e,E={root:["root",`color${Ue(r)}`,n&&"disabled",a&&"error",f&&"fullWidth",s&&"focused",d&&"formControl",y&&y!=="medium"&&`size${Ue(y)}`,h&&"multiline",_&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",g&&"readOnly"],input:["input",n&&"disabled",S==="search"&&"inputTypeSearch",h&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",_&&"inputAdornedStart",o&&"inputAdornedEnd",g&&"readOnly"]};return St(E,Yie,t)},$w=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mw})(({theme:e,ownerState:t})=>z({},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",[`&.${uv.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&z({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Lw=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fw})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=z({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return z({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] + .${uv.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${uv.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"})}),ese=A.jsx(J6,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Dw=p.forwardRef(function(t,r){var n;const a=Et({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:d,className:f,components:u={},componentsProps:h={},defaultValue:g,disabled:y,disableInjectingGlobalStyles:_,endAdornment:S,fullWidth:E=!1,id:x,inputComponent:T="input",inputProps:I={},inputRef:R,maxRows:P,minRows:C,multiline:O=!1,name:j,onBlur:k,onChange:M,onClick:$,onFocus:N,onKeyDown:B,onKeyUp:q,placeholder:V,readOnly:G,renderSuffix:Y,rows:X,slotProps:H={},slots:te={},startAdornment:ne,type:K="text",value:ee}=a,Ce=Ve(a,Jie),se=I.value!=null?I.value:ee,{current:Se}=p.useRef(se!=null),me=p.useRef(),we=p.useCallback(ot=>{},[]),Oe=fn(me,R,I.ref,we),[ie,Fe]=p.useState(!1),ke=vs(),$e=du({props:a,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=ke?ke.focused:ie,p.useEffect(()=>{!ke&&y&&ie&&(Fe(!1),k&&k())},[ke,y,ie,k]);const Te=ke&&ke.onFilled,Be=ke&&ke.onEmpty,Le=p.useCallback(ot=>{J1(ot)?Te&&Te():Be&&Be()},[Te,Be]);Yo(()=>{Se&&Le({value:se})},[se,Le,Se]);const dt=ot=>{if($e.disabled){ot.stopPropagation();return}N&&N(ot),I.onFocus&&I.onFocus(ot),ke&&ke.onFocus?ke.onFocus(ot):Fe(!0)},He=ot=>{k&&k(ot),I.onBlur&&I.onBlur(ot),ke&&ke.onBlur?ke.onBlur(ot):Fe(!1)},Z=(ot,...it)=>{if(!Se){const Dt=ot.target||me.current;if(Dt==null)throw new Error(nu(1));Le({value:Dt.value})}I.onChange&&I.onChange(ot,...it),M&&M(ot,...it)};p.useEffect(()=>{Le(me.current)},[]);const ae=ot=>{me.current&&ot.currentTarget===ot.target&&me.current.focus(),$&&$(ot)};let fe=T,ve=I;O&&fe==="input"&&(X?ve=z({type:void 0,minRows:X,maxRows:X},ve):ve=z({type:void 0,maxRows:P,minRows:C},ve),fe=Qie);const be=ot=>{Le(ot.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};p.useEffect(()=>{ke&&ke.setAdornedStart(!!ne)},[ke,ne]);const _e=z({},a,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:S,error:$e.error,focused:$e.focused,formControl:ke,fullWidth:E,hiddenLabel:$e.hiddenLabel,multiline:O,size:$e.size,startAdornment:ne,type:K}),De=Zie(_e),Ge=te.root||u.Root||$w,Mt=H.root||h.root||{},et=te.input||u.Input||Lw;return ve=z({},ve,(n=H.input)!=null?n:h.input),A.jsxs(p.Fragment,{children:[!_&&ese,A.jsxs(Ge,z({},Mt,!xb(Ge)&&{ownerState:z({},_e,Mt.ownerState)},{ref:r,onClick:ae},Ce,{className:Re(De.root,Mt.className,f,G&&"MuiInputBase-readOnly"),children:[ne,A.jsx(Aw.Provider,{value:null,children:A.jsx(et,z({ownerState:_e,"aria-invalid":$e.error,"aria-describedby":o,autoComplete:s,autoFocus:d,defaultValue:g,disabled:$e.disabled,id:x,onAnimationStart:be,name:j,placeholder:V,readOnly:G,required:$e.required,rows:X,value:se,onKeyDown:B,onKeyUp:q,type:K},ve,!xb(et)&&{as:fe,ownerState:z({},_e,ve.ownerState)},{ref:Oe,className:Re(De.input,ve.className,G&&"MuiInputBase-readOnly"),onBlur:He,onChange:Z,onFocus:dt}))}),S,Y?Y(z({},$e,{startAdornment:ne})):null]}))]})});function tse(e){return wt("MuiInput",e)}const sg=z({},uv,Ot("MuiInput",["root","underline","input"]));function rse(e){return wt("MuiOutlinedInput",e)}const Xu=z({},uv,Ot("MuiOutlinedInput",["root","notchedOutline","input"]));function nse(e){return wt("MuiFilledInput",e)}const $d=z({},uv,Ot("MuiFilledInput",["root","underline","input"])),Z6=ti(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ase=ti(A.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 ose(e){return wt("MuiAvatar",e)}Ot("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ise=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],sse=e=>{const{classes:t,variant:r,colorDefault:n}=e;return St({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},ose,t)},lse=he("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:z({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:z({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),use=he("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cse=he(ase,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function dse({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=p.useState(!1);return p.useEffect(()=>{if(!r&&!n)return;o(!1);let s=!0;const d=new Image;return d.onload=()=>{s&&o("loaded")},d.onerror=()=>{s&&o("error")},d.crossOrigin=e,d.referrerPolicy=t,d.src=r,n&&(d.srcset=n),()=>{s=!1}},[e,t,r,n]),a}const Eb=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:s,component:d="div",slots:f={},slotProps:u={},imgProps:h,sizes:g,src:y,srcSet:_,variant:S="circular"}=n,E=Ve(n,ise);let x=null;const T=dse(z({},h,{src:y,srcSet:_})),I=y||_,R=I&&T!=="error",P=z({},n,{colorDefault:!R,component:d,variant:S}),C=sse(P),[O,j]=Kae("img",{className:C.img,elementType:use,externalForwardedProps:{slots:f,slotProps:{img:z({},h,u.img)}},additionalProps:{alt:a,src:y,srcSet:_,sizes:g},ownerState:P});return R?x=A.jsx(O,z({},j)):o||o===0?x=o:I&&a?x=a[0]:x=A.jsx(cse,{ownerState:P,className:C.fallback}),A.jsx(lse,z({as:d,ownerState:P,className:Re(C.root,s),ref:r},E,{children:x}))}),fse=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pse={entering:{opacity:1},entered:{opacity:1}},eU=p.forwardRef(function(t,r){const n=ei(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:d,easing:f,in:u,onEnter:h,onEntered:g,onEntering:y,onExit:_,onExited:S,onExiting:E,style:x,timeout:T=a,TransitionComponent:I=hs}=t,R=Ve(t,fse),P=p.useRef(null),C=fn(P,d.ref,r),O=V=>G=>{if(V){const Y=P.current;G===void 0?V(Y):V(Y,G)}},j=O(y),k=O((V,G)=>{lT(V);const Y=av({style:x,timeout:T,easing:f},{mode:"enter"});V.style.webkitTransition=n.transitions.create("opacity",Y),V.style.transition=n.transitions.create("opacity",Y),h&&h(V,G)}),M=O(g),$=O(E),N=O(V=>{const G=av({style:x,timeout:T,easing:f},{mode:"exit"});V.style.webkitTransition=n.transitions.create("opacity",G),V.style.transition=n.transitions.create("opacity",G),_&&_(V)}),B=O(S),q=V=>{o&&o(P.current,V)};return A.jsx(I,z({appear:s,in:u,nodeRef:P,onEnter:k,onEntered:M,onEntering:j,onExit:N,onExited:B,onExiting:$,addEndListener:q,timeout:T},R,{children:(V,G)=>p.cloneElement(d,z({style:z({opacity:0,visibility:V==="exited"&&!u?"hidden":void 0},pse[V],x,d.props.style),ref:C},G))}))});function hse(e){return wt("MuiBackdrop",e)}Ot("MuiBackdrop",["root","invisible"]);const vse=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mse=e=>{const{classes:t,invisible:r}=e;return St({root:["root",r&&"invisible"]},hse,t)},gse=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>z({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"})),tU=p.forwardRef(function(t,r){var n,a,o;const s=Et({props:t,name:"MuiBackdrop"}),{children:d,className:f,component:u="div",components:h={},componentsProps:g={},invisible:y=!1,open:_,slotProps:S={},slots:E={},TransitionComponent:x=eU,transitionDuration:T}=s,I=Ve(s,vse),R=z({},s,{component:u,invisible:y}),P=mse(R),C=(n=S.root)!=null?n:g.root;return A.jsx(x,z({in:_,timeout:T},I,{children:A.jsx(gse,z({"aria-hidden":!0},C,{as:(a=(o=E.root)!=null?o:h.Root)!=null?a:u,className:Re(P.root,f,C==null?void 0:C.className),ownerState:z({},R,C==null?void 0:C.ownerState),classes:P,ref:r,children:d}))}))}),yse=Ot("MuiBox",["root"]),bse=Q1(),eo=Bre({themeId:bf,defaultTheme:bse,defaultClassName:yse.root,generateClassName:nT.generate});function _se(e){return wt("MuiButton",e)}const q_=Ot("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"]),xse=p.createContext({}),wse=p.createContext(void 0),Sse=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ese=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:s}=e,d={root:["root",o,`${o}${Ue(t)}`,`size${Ue(a)}`,`${o}Size${Ue(a)}`,`color${Ue(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ue(a)}`],endIcon:["icon","endIcon",`iconSize${Ue(a)}`]},f=St(d,_se,s);return z({},s,f)},rU=e=>z({},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}}),Cse=he(cu,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ue(r.color)}`],t[`size${Ue(r.size)}`],t[`${r.variant}Size${Ue(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return z({},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":z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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})`:ir.alpha(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})`:ir.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${q_.focusVisible}`]:z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${q_.disabled}`]:z({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 ${ir.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${q_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${q_.disabled}`]:{boxShadow:"none"}}),Ose=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ue(r.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},rU(e))),Pse=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ue(r.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},rU(e))),Bn=p.forwardRef(function(t,r){const n=p.useContext(xse),a=p.useContext(wse),o=_b(n,t),s=Et({props:o,name:"MuiButton"}),{children:d,color:f="primary",component:u="button",className:h,disabled:g=!1,disableElevation:y=!1,disableFocusRipple:_=!1,endIcon:S,focusVisibleClassName:E,fullWidth:x=!1,size:T="medium",startIcon:I,type:R,variant:P="text"}=s,C=Ve(s,Sse),O=z({},s,{color:f,component:u,disabled:g,disableElevation:y,disableFocusRipple:_,fullWidth:x,size:T,type:R,variant:P}),j=Ese(O),k=I&&A.jsx(Ose,{className:j.startIcon,ownerState:O,children:I}),M=S&&A.jsx(Pse,{className:j.endIcon,ownerState:O,children:S}),$=a||"";return A.jsxs(Cse,z({ownerState:O,className:Re(n.className,j.root,h,$),component:u,disabled:g,focusRipple:!_,focusVisibleClassName:Re(j.focusVisible,E),ref:r,type:R},C,{classes:j,children:[k,d,M]}))});function Rse(e){return wt("MuiCard",e)}Ot("MuiCard",["root"]);const kse=["className","raised"],Ise=e=>{const{classes:t}=e;return St({root:["root"]},Rse,t)},jse=he(zc,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Rf=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,s=Ve(n,kse),d=z({},n,{raised:o}),f=Ise(d);return A.jsx(jse,z({className:Re(f.root,a),elevation:o?8:void 0,ref:r,ownerState:d},s))});function Tse(e){return wt("MuiCardActions",e)}Ot("MuiCardActions",["root","spacing"]);const Ase=["disableSpacing","className"],Mse=e=>{const{classes:t,disableSpacing:r}=e;return St({root:["root",!r&&"spacing"]},Tse,t)},Fse=he("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),nU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardActions"}),{disableSpacing:a=!1,className:o}=n,s=Ve(n,Ase),d=z({},n,{disableSpacing:a}),f=Mse(d);return A.jsx(Fse,z({className:Re(f.root,o),ownerState:d,ref:r},s))});function $se(e){return wt("MuiCardContent",e)}Ot("MuiCardContent",["root"]);const Lse=["className","component"],Dse=e=>{const{classes:t}=e;return St({root:["root"]},$se,t)},Nse=he("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ei=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,s=Ve(n,Lse),d=z({},n,{component:o}),f=Dse(d);return A.jsx(Nse,z({as:o,className:Re(f.root,a),ownerState:d,ref:r},s))});function Bse(e){return wt("MuiCardHeader",e)}const i3=Ot("MuiCardHeader",["root","avatar","action","content","title","subheader"]),zse=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],qse=e=>{const{classes:t}=e;return St({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Bse,t)},Use=he("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>z({[`& .${i3.title}`]:t.title,[`& .${i3.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Vse=he("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Wse=he("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Hse=he("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Ld=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:s,component:d="div",disableTypography:f=!1,subheader:u,subheaderTypographyProps:h,title:g,titleTypographyProps:y}=n,_=Ve(n,zse),S=z({},n,{component:d,disableTypography:f}),E=qse(S);let x=g;x!=null&&x.type!==nr&&!f&&(x=A.jsx(nr,z({variant:o?"body2":"h5",className:E.title,component:"span",display:"block"},y,{children:x})));let T=u;return T!=null&&T.type!==nr&&!f&&(T=A.jsx(nr,z({variant:o?"body2":"body1",className:E.subheader,color:"text.secondary",component:"span",display:"block"},h,{children:T}))),A.jsxs(Use,z({className:Re(E.root,s),as:d,ref:r,ownerState:S},_,{children:[o&&A.jsx(Vse,{className:E.avatar,ownerState:S,children:o}),A.jsxs(Hse,{className:E.content,ownerState:S,children:[x,T]}),a&&A.jsx(Wse,{className:E.action,ownerState:S,children:a})]}))});function Gse(e){return wt("PrivateSwitchBase",e)}Ot("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kse=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Qse=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${Ue(a)}`],input:["input"]};return St(o,Gse,t)},Xse=he(cu)(({ownerState:e})=>z({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Yse=he("input",{shouldForwardProp:wa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),aU=p.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:s,defaultChecked:d,disabled:f,disableFocusRipple:u=!1,edge:h=!1,icon:g,id:y,inputProps:_,inputRef:S,name:E,onBlur:x,onChange:T,onFocus:I,readOnly:R,required:P=!1,tabIndex:C,type:O,value:j}=t,k=Ve(t,Kse),[M,$]=nv({controlled:a,default:!!d,name:"SwitchBase",state:"checked"}),N=vs(),B=te=>{I&&I(te),N&&N.onFocus&&N.onFocus(te)},q=te=>{x&&x(te),N&&N.onBlur&&N.onBlur(te)},V=te=>{if(te.nativeEvent.defaultPrevented)return;const ne=te.target.checked;$(ne),T&&T(te,ne)};let G=f;N&&typeof G>"u"&&(G=N.disabled);const Y=O==="checkbox"||O==="radio",X=z({},t,{checked:M,disabled:G,disableFocusRipple:u,edge:h}),H=Qse(X);return A.jsxs(Xse,z({component:"span",className:Re(H.root,s),centerRipple:!0,focusRipple:!u,disabled:G,tabIndex:null,role:void 0,onFocus:B,onBlur:q,ownerState:X,ref:r},k,{children:[A.jsx(Yse,z({autoFocus:n,checked:a,defaultChecked:d,className:H.input,disabled:G,id:Y?y:void 0,name:E,onChange:V,readOnly:R,ref:S,required:P,ownerState:X,tabIndex:C,type:O},O==="checkbox"&&j===void 0?{}:{value:j},_)),M?o:g]}))}),Jse=ti(A.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"),Zse=ti(A.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"),ele=ti(A.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 tle(e){return wt("MuiCheckbox",e)}const t2=Ot("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),rle=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],nle=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${Ue(n)}`,`size${Ue(a)}`]},s=St(o,tle,t);return z({},t,s)},ale=he(aU,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Ue(r.size)}`],r.color!=="default"&&t[`color${Ue(r.color)}`]]}})(({theme:e,ownerState:t})=>z({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})`:ir.alpha(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${t2.checked}, &.${t2.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${t2.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ole=A.jsx(Zse,{}),ile=A.jsx(Jse,{}),sle=A.jsx(ele,{}),cv=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiCheckbox"}),{checkedIcon:s=ole,color:d="primary",icon:f=ile,indeterminate:u=!1,indeterminateIcon:h=sle,inputProps:g,size:y="medium",className:_}=o,S=Ve(o,rle),E=u?h:f,x=u?h:s,T=z({},o,{color:d,indeterminate:u,size:y}),I=nle(T);return A.jsx(ale,z({type:"checkbox",inputProps:z({"data-indeterminate":u},g),icon:p.cloneElement(E,{fontSize:(n=E.props.fontSize)!=null?n:y}),checkedIcon:p.cloneElement(x,{fontSize:(a=x.props.fontSize)!=null?a:y}),ownerState:T,ref:r,className:Re(I.root,_)},S,{classes:I}))});function lle(e){return wt("MuiCircularProgress",e)}Ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ule=["className","color","disableShrink","size","style","thickness","value","variant"];let Nw=e=>e,s3,l3,u3,c3;const Yu=44,cle=uu(s3||(s3=Nw` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),dle=uu(l3||(l3=Nw` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),fle=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${Ue(n)}`],svg:["svg"],circle:["circle",`circle${Ue(r)}`,a&&"circleDisableShrink"]};return St(o,lle,t)},ple=he("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Ue(r.color)}`]]}})(({ownerState:e,theme:t})=>z({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"&&Pf(u3||(u3=Nw` + animation: ${0} 1.4s linear infinite; + `),cle)),hle=he("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),vle=he("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Ue(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>z({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&&Pf(c3||(c3=Nw` + animation: ${0} 1.4s ease-in-out infinite; + `),dle)),Ov=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:s=!1,size:d=40,style:f,thickness:u=3.6,value:h=0,variant:g="indeterminate"}=n,y=Ve(n,ule),_=z({},n,{color:o,disableShrink:s,size:d,thickness:u,value:h,variant:g}),S=fle(_),E={},x={},T={};if(g==="determinate"){const I=2*Math.PI*((Yu-u)/2);E.strokeDasharray=I.toFixed(3),T["aria-valuenow"]=Math.round(h),E.strokeDashoffset=`${((100-h)/100*I).toFixed(3)}px`,x.transform="rotate(-90deg)"}return A.jsx(ple,z({className:Re(S.root,a),style:z({width:d,height:d},x,f),ownerState:_,ref:r,role:"progressbar"},T,y,{children:A.jsx(hle,{className:S.svg,ownerState:_,viewBox:`${Yu/2} ${Yu/2} ${Yu} ${Yu}`,children:A.jsx(vle,{className:S.circle,style:E,ownerState:_,cx:Yu,cy:Yu,r:(Yu-u)/2,fill:"none",strokeWidth:u})})}))});function d3(e){return e.substring(2).toLowerCase()}function mle(e,t){return t.documentElement.clientWidth(setTimeout(()=>{f.current=!0},0),()=>{f.current=!1}),[]);const h=fn(t.ref,d),g=to(S=>{const E=u.current;u.current=!1;const x=Dn(d.current);if(!f.current||!d.current||"clientX"in S&&mle(S,x))return;if(s.current){s.current=!1;return}let T;S.composedPath?T=S.composedPath().indexOf(d.current)>-1:T=!x.documentElement.contains(S.target)||d.current.contains(S.target),!T&&(r||!E)&&a(S)}),y=S=>E=>{u.current=!0;const x=t.props[S];x&&x(E)},_={ref:h};return o!==!1&&(_[o]=y(o)),p.useEffect(()=>{if(o!==!1){const S=d3(o),E=Dn(d.current),x=()=>{s.current=!0};return E.addEventListener(S,g),E.addEventListener("touchmove",x),()=>{E.removeEventListener(S,g),E.removeEventListener("touchmove",x)}}},[g,o]),n!==!1&&(_[n]=y(n)),p.useEffect(()=>{if(n!==!1){const S=d3(n),E=Dn(d.current);return E.addEventListener(S,g),()=>{E.removeEventListener(S,g)}}},[g,n]),A.jsx(p.Fragment,{children:p.cloneElement(t,_)})}const ch=Fne({createStyledComponent:he("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Et({props:e,name:"MuiContainer"})}),yle=(e,t)=>z({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),ble=e=>z({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}}),_le=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,d])=>{var f;n[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(f=d.palette)==null?void 0:f.mode}});let a=z({html:yle(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:z({margin:0},ble(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function xle(e){const t=Et({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return A.jsxs(p.Fragment,{children:[A.jsx(J6,{styles:a=>_le(a,n)}),r]})}function wle(e){const t=Dn(e);return t.body===e?Ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function eb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function f3(e){return parseInt(Ti(e).getComputedStyle(e).paddingRight,10)||0}function Sle(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 p3(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,s=>{const d=o.indexOf(s)===-1,f=!Sle(s);d&&f&&eb(s,a)})}function r2(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Ele(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(wle(n)){const s=k6(Dn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${f3(n)+s}px`;const d=Dn(n).querySelectorAll(".mui-fixed");[].forEach.call(d,f=>{r.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${f3(f)+s}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Dn(n).body;else{const s=n.parentElement,d=Ti(n);o=(s==null?void 0:s.nodeName)==="HTML"&&d.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:s,property:d})=>{o?s.style.setProperty(d,o):s.style.removeProperty(d)})}}function Cle(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ole{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&&eb(t.modalRef,!1);const a=Cle(r);p3(r,t.mount,t.modalRef,a,!0);const o=r2(this.containers,s=>s.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=r2(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Ele(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=r2(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&eb(t.modalRef,r),p3(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&eb(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ple=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rle(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 kle(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 Ile(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kle(e))}function jle(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ple)).forEach((n,a)=>{const o=Rle(n);o===-1||!Ile(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function Tle(){return!0}function Ale(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=jle,isEnabled:s=Tle,open:d}=e,f=p.useRef(!1),u=p.useRef(null),h=p.useRef(null),g=p.useRef(null),y=p.useRef(null),_=p.useRef(!1),S=p.useRef(null),E=fn(t.ref,S),x=p.useRef(null);p.useEffect(()=>{!d||!S.current||(_.current=!r)},[r,d]),p.useEffect(()=>{if(!d||!S.current)return;const R=Dn(S.current);return S.current.contains(R.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),_.current&&S.current.focus()),()=>{a||(g.current&&g.current.focus&&(f.current=!0,g.current.focus()),g.current=null)}},[d]),p.useEffect(()=>{if(!d||!S.current)return;const R=Dn(S.current),P=j=>{x.current=j,!(n||!s()||j.key!=="Tab")&&R.activeElement===S.current&&j.shiftKey&&(f.current=!0,h.current&&h.current.focus())},C=()=>{const j=S.current;if(j===null)return;if(!R.hasFocus()||!s()||f.current){f.current=!1;return}if(j.contains(R.activeElement)||n&&R.activeElement!==u.current&&R.activeElement!==h.current)return;if(R.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!_.current)return;let k=[];if((R.activeElement===u.current||R.activeElement===h.current)&&(k=o(S.current)),k.length>0){var M,$;const N=!!((M=x.current)!=null&&M.shiftKey&&(($=x.current)==null?void 0:$.key)==="Tab"),B=k[0],q=k[k.length-1];typeof B!="string"&&typeof q!="string"&&(N?q.focus():B.focus())}else j.focus()};R.addEventListener("focusin",C),R.addEventListener("keydown",P,!0);const O=setInterval(()=>{R.activeElement&&R.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(O),R.removeEventListener("focusin",C),R.removeEventListener("keydown",P,!0)}},[r,n,a,s,d,o]);const T=R=>{g.current===null&&(g.current=R.relatedTarget),_.current=!0,y.current=R.target;const P=t.props.onFocus;P&&P(R)},I=R=>{g.current===null&&(g.current=R.relatedTarget),_.current=!0};return A.jsxs(p.Fragment,{children:[A.jsx("div",{tabIndex:d?0:-1,onFocus:I,ref:u,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:E,onFocus:T}),A.jsx("div",{tabIndex:d?0:-1,onFocus:I,ref:h,"data-testid":"sentinelEnd"})]})}function Mle(e){return typeof e=="function"?e():e}function Fle(e){return e?e.props.hasOwnProperty("in"):!1}const $le=new Ole;function Lle(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=$le,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:d,children:f,onClose:u,open:h,rootRef:g}=e,y=p.useRef({}),_=p.useRef(null),S=p.useRef(null),E=fn(S,g),[x,T]=p.useState(!h),I=Fle(f);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const P=()=>Dn(_.current),C=()=>(y.current.modalRef=S.current,y.current.mount=_.current,y.current),O=()=>{a.mount(C(),{disableScrollLock:n}),S.current&&(S.current.scrollTop=0)},j=to(()=>{const Y=Mle(t)||P().body;a.add(C(),Y),S.current&&O()}),k=p.useCallback(()=>a.isTopModal(C()),[a]),M=to(Y=>{_.current=Y,Y&&(h&&k()?O():S.current&&eb(S.current,R))}),$=p.useCallback(()=>{a.remove(C(),R)},[R,a]);p.useEffect(()=>()=>{$()},[$]),p.useEffect(()=>{h?j():(!I||!o)&&$()},[h,$,I,o,j]);const N=Y=>X=>{var H;(H=Y.onKeyDown)==null||H.call(Y,X),!(X.key!=="Escape"||X.which===229||!k())&&(r||(X.stopPropagation(),u&&u(X,"escapeKeyDown")))},B=Y=>X=>{var H;(H=Y.onClick)==null||H.call(Y,X),X.target===X.currentTarget&&u&&u(X,"backdropClick")};return{getRootProps:(Y={})=>{const X=K1(e);delete X.onTransitionEnter,delete X.onTransitionExited;const H=z({},X,Y);return z({role:"presentation"},H,{onKeyDown:N(H),ref:E})},getBackdropProps:(Y={})=>{const X=Y;return z({"aria-hidden":!0},X,{onClick:B(X),open:h})},getTransitionProps:()=>{const Y=()=>{T(!1),s&&s()},X=()=>{T(!0),d&&d(),o&&$()};return{onEnter:uk(Y,f==null?void 0:f.props.onEnter),onExited:uk(X,f==null?void 0:f.props.onExited)}},rootRef:E,portalRef:M,isTopModal:k,exited:x,hasTransition:I}}function Dle(e){return wt("MuiModal",e)}Ot("MuiModal",["root","hidden","backdrop"]);const Nle=["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"],Ble=e=>{const{open:t,exited:r,classes:n}=e;return St({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Dle,n)},zle=he("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})=>z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),qle=he(tU,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mT=p.forwardRef(function(t,r){var n,a,o,s,d,f;const u=Et({name:"MuiModal",props:t}),{BackdropComponent:h=qle,BackdropProps:g,className:y,closeAfterTransition:_=!1,children:S,container:E,component:x,components:T={},componentsProps:I={},disableAutoFocus:R=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:C=!1,disablePortal:O=!1,disableRestoreFocus:j=!1,disableScrollLock:k=!1,hideBackdrop:M=!1,keepMounted:$=!1,onBackdropClick:N,open:B,slotProps:q,slots:V}=u,G=Ve(u,Nle),Y=z({},u,{closeAfterTransition:_,disableAutoFocus:R,disableEnforceFocus:P,disableEscapeKeyDown:C,disablePortal:O,disableRestoreFocus:j,disableScrollLock:k,hideBackdrop:M,keepMounted:$}),{getRootProps:X,getBackdropProps:H,getTransitionProps:te,portalRef:ne,isTopModal:K,exited:ee,hasTransition:Ce}=Lle(z({},Y,{rootRef:r})),se=z({},Y,{exited:ee}),Se=Ble(se),me={};if(S.props.tabIndex===void 0&&(me.tabIndex="-1"),Ce){const{onEnter:Te,onExited:Be}=te();me.onEnter=Te,me.onExited=Be}const we=(n=(a=V==null?void 0:V.root)!=null?a:T.Root)!=null?n:zle,Oe=(o=(s=V==null?void 0:V.backdrop)!=null?s:T.Backdrop)!=null?o:h,ie=(d=q==null?void 0:q.root)!=null?d:I.root,Fe=(f=q==null?void 0:q.backdrop)!=null?f:I.backdrop,ke=Ai({elementType:we,externalSlotProps:ie,externalForwardedProps:G,getSlotProps:X,additionalProps:{ref:r,as:x},ownerState:se,className:Re(y,ie==null?void 0:ie.className,Se==null?void 0:Se.root,!se.open&&se.exited&&(Se==null?void 0:Se.hidden))}),$e=Ai({elementType:Oe,externalSlotProps:Fe,additionalProps:g,getSlotProps:Te=>H(z({},Te,{onClick:Be=>{N&&N(Be),Te!=null&&Te.onClick&&Te.onClick(Be)}})),className:Re(Fe==null?void 0:Fe.className,g==null?void 0:g.className,Se==null?void 0:Se.backdrop),ownerState:se});return!$&&!B&&(!Ce||ee)?null:A.jsx(X6,{ref:ne,container:E,disablePortal:O,children:A.jsxs(we,z({},ke,{children:[!M&&h?A.jsx(Oe,z({},$e)):null,A.jsx(Ale,{disableEnforceFocus:P,disableAutoFocus:R,disableRestoreFocus:j,isEnabled:K,open:B,children:p.cloneElement(S,me)})]}))})});function Ule(e){return wt("MuiDialog",e)}const n2=Ot("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),oU=p.createContext({}),Vle=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Wle=he(tU,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Hle=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Ue(r)}`],paper:["paper",`paperScroll${Ue(r)}`,`paperWidth${Ue(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return St(s,Ule,t)},Gle=he(mT,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Kle=he("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Ue(r.scroll)}`]]}})(({ownerState:e})=>z({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"}})),Qle=he(zc,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Ue(r.scroll)}`],t[`paperWidth${Ue(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>z({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)`,[`&.${n2.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}`,[`&.${n2.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,[`&.${n2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),n0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialog"}),a=ei(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":d,BackdropComponent:f,BackdropProps:u,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:_=!1,fullWidth:S=!1,maxWidth:E="sm",onBackdropClick:x,onClick:T,onClose:I,open:R,PaperComponent:P=zc,PaperProps:C={},scroll:O="paper",TransitionComponent:j=eU,transitionDuration:k=o,TransitionProps:M}=n,$=Ve(n,Vle),N=z({},n,{disableEscapeKeyDown:y,fullScreen:_,fullWidth:S,maxWidth:E,scroll:O}),B=Hle(N),q=p.useRef(),V=H=>{q.current=H.target===H.currentTarget},G=H=>{T&&T(H),q.current&&(q.current=null,x&&x(H),I&&I(H,"backdropClick"))},Y=xf(d),X=p.useMemo(()=>({titleId:Y}),[Y]);return A.jsx(Gle,z({className:Re(B.root,g),closeAfterTransition:!0,components:{Backdrop:Wle},componentsProps:{backdrop:z({transitionDuration:k,as:f},u)},disableEscapeKeyDown:y,onClose:I,open:R,ref:r,onClick:G,ownerState:N},$,{children:A.jsx(j,z({appear:!0,in:R,timeout:k,role:"presentation"},M,{children:A.jsx(Kle,{className:Re(B.container),onMouseDown:V,ownerState:N,children:A.jsx(Qle,z({as:P,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":Y},C,{className:Re(B.paper,C.className),ownerState:N,children:A.jsx(oU.Provider,{value:X,children:h})}))})}))}))});function Xle(e){return wt("MuiDialogActions",e)}Ot("MuiDialogActions",["root","spacing"]);const Yle=["className","disableSpacing"],Jle=e=>{const{classes:t,disableSpacing:r}=e;return St({root:["root",!r&&"spacing"]},Xle,t)},Zle=he("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>z({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),gT=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,s=Ve(n,Yle),d=z({},n,{disableSpacing:o}),f=Jle(d);return A.jsx(Zle,z({className:Re(f.root,a),ownerState:d,ref:r},s))});function eue(e){return wt("MuiDialogContent",e)}Ot("MuiDialogContent",["root","dividers"]);function tue(e){return wt("MuiDialogTitle",e)}const rue=Ot("MuiDialogTitle",["root"]),nue=["className","dividers"],aue=e=>{const{classes:t,dividers:r}=e;return St({root:["root",r&&"dividers"]},eue,t)},oue=he("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>z({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}`}:{[`.${rue.root} + &`]:{paddingTop:0}})),a0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,s=Ve(n,nue),d=z({},n,{dividers:o}),f=aue(d);return A.jsx(oue,z({className:Re(f.root,a),ownerState:d,ref:r},s))});function iue(e){return wt("MuiDialogContentText",e)}Ot("MuiDialogContentText",["root"]);const sue=["children","className"],lue=e=>{const{classes:t}=e,n=St({root:["root"]},iue,t);return z({},t,n)},uue=he(nr,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bw=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Ve(n,sue),s=lue(o);return A.jsx(uue,z({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:Re(s.root,a)},n,{classes:s}))}),cue=["className","id"],due=e=>{const{classes:t}=e;return St({root:["root"]},tue,t)},fue=he(nr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),o0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,s=Ve(n,cue),d=n,f=due(d),{titleId:u=o}=p.useContext(oU);return A.jsx(fue,z({component:"h2",className:Re(f.root,a),ownerState:d,ref:r,variant:"h6",id:o??u},s))});function pue(e){return wt("MuiDivider",e)}const h3=Ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hue=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],vue=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:s,textAlign:d,variant:f}=e;return St({root:["root",t&&"absolute",f,o&&"light",s==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&s==="vertical"&&"withChildrenVertical",d==="right"&&s!=="vertical"&&"textAlignRight",d==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},pue,n)},mue=he("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})=>z({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)`:ir.alpha(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})=>z({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>z({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>z({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>z({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),gue=he("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>z({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)`})),Cb=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:s,component:d=o?"div":"hr",flexItem:f=!1,light:u=!1,orientation:h="horizontal",role:g=d!=="hr"?"separator":void 0,textAlign:y="center",variant:_="fullWidth"}=n,S=Ve(n,hue),E=z({},n,{absolute:a,component:d,flexItem:f,light:u,orientation:h,role:g,textAlign:y,variant:_}),x=vue(E);return A.jsx(mue,z({as:d,className:Re(x.root,s),role:g,ref:r,ownerState:E},S,{children:o?A.jsx(gue,{className:x.wrapper,ownerState:E,children:o}):null}))});Cb.muiSkipListHighlight=!0;const yue=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bue(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=Ti(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=o.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let d=0,f=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");d=parseInt(u[4],10),f=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+d-n.left}px)`:`translateX(${o.innerWidth+d-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-d}px)`:`translateX(-${n.left+n.width-d}px)`:e==="up"?a?`translateY(${a.bottom+f-n.top}px)`:`translateY(${o.innerHeight+f-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-f}px)`:`translateY(-${n.top+n.height-f}px)`}function _ue(e){return typeof e=="function"?e():e}function U_(e,t,r){const n=_ue(r),a=bue(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const iU=p.forwardRef(function(t,r){const n=ei(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:d=!0,children:f,container:u,direction:h="down",easing:g=a,in:y,onEnter:_,onEntered:S,onEntering:E,onExit:x,onExited:T,onExiting:I,style:R,timeout:P=o,TransitionComponent:C=hs}=t,O=Ve(t,yue),j=p.useRef(null),k=fn(f.ref,j,r),M=H=>te=>{H&&(te===void 0?H(j.current):H(j.current,te))},$=M((H,te)=>{U_(h,H,u),lT(H),_&&_(H,te)}),N=M((H,te)=>{const ne=av({timeout:P,style:R,easing:g},{mode:"enter"});H.style.webkitTransition=n.transitions.create("-webkit-transform",z({},ne)),H.style.transition=n.transitions.create("transform",z({},ne)),H.style.webkitTransform="none",H.style.transform="none",E&&E(H,te)}),B=M(S),q=M(I),V=M(H=>{const te=av({timeout:P,style:R,easing:g},{mode:"exit"});H.style.webkitTransition=n.transitions.create("-webkit-transform",te),H.style.transition=n.transitions.create("transform",te),U_(h,H,u),x&&x(H)}),G=M(H=>{H.style.webkitTransition="",H.style.transition="",T&&T(H)}),Y=H=>{s&&s(j.current,H)},X=p.useCallback(()=>{j.current&&U_(h,j.current,u)},[h,u]);return p.useEffect(()=>{if(y||h==="down"||h==="right")return;const H=Cv(()=>{j.current&&U_(h,j.current,u)}),te=Ti(j.current);return te.addEventListener("resize",H),()=>{H.clear(),te.removeEventListener("resize",H)}},[h,y,u]),p.useEffect(()=>{y||X()},[y,X]),A.jsx(C,z({nodeRef:j,onEnter:$,onEntered:B,onEntering:N,onExit:V,onExited:G,onExiting:q,addEndListener:Y,appear:d,in:y,timeout:P},O,{children:(H,te)=>p.cloneElement(f,z({ref:k,style:z({visibility:H==="exited"&&!y?"hidden":void 0},R,f.props.style)},te))}))});function xue(e){return wt("MuiDrawer",e)}Ot("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const wue=["BackdropProps"],Sue=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],sU=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Eue=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ue(r)}`,n!=="temporary"&&`paperAnchorDocked${Ue(r)}`]};return St(a,xue,t)},Cue=he(mT,{name:"MuiDrawer",slot:"Root",overridesResolver:sU})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),v3=he("div",{shouldForwardProp:wa,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:sU})({flex:"0 0 auto"}),Oue=he(zc,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Ue(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Ue(r.anchor)}`]]}})(({theme:e,ownerState:t})=>z({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}`})),lU={left:"right",right:"left",top:"down",bottom:"up"};function Pue(e){return["left","right"].indexOf(e)!==-1}function Rue({direction:e},t){return e==="rtl"&&Pue(t)?lU[t]:t}const kue=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiDrawer"}),a=ei(),o=Bc(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:f,children:u,className:h,elevation:g=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:_}={},onClose:S,open:E=!1,PaperProps:x={},SlideProps:T,TransitionComponent:I=iU,transitionDuration:R=s,variant:P="temporary"}=n,C=Ve(n.ModalProps,wue),O=Ve(n,Sue),j=p.useRef(!1);p.useEffect(()=>{j.current=!0},[]);const k=Rue({direction:o?"rtl":"ltr"},d),$=z({},n,{anchor:d,elevation:g,open:E,variant:P},O),N=Eue($),B=A.jsx(Oue,z({elevation:P==="temporary"?g:0,square:!0},x,{className:Re(N.paper,x.className),ownerState:$,children:u}));if(P==="permanent")return A.jsx(v3,z({className:Re(N.root,N.docked,h),ownerState:$,ref:r},O,{children:B}));const q=A.jsx(I,z({in:E,direction:lU[k],timeout:R,appear:j.current},T,{children:B}));return P==="persistent"?A.jsx(v3,z({className:Re(N.root,N.docked,h),ownerState:$,ref:r},O,{children:q})):A.jsx(Cue,z({BackdropProps:z({},f,_,{transitionDuration:R}),className:Re(N.root,N.modal,h),open:E,ownerState:$,onClose:S,hideBackdrop:y,ref:r},O,C,{children:q}))});function Iue(e){return wt("MuiFab",e)}const m3=Ot("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),jue=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Tue=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${Ue(a)}`,t==="inherit"?"colorInherit":t]},s=St(o,Iue,n);return z({},n,s)},Aue=he(cu,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>wa(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Ue(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return z({},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"},[`&.${m3.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})=>z({},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})=>({[`&.${m3.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Mue=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFab"}),{children:a,className:o,color:s="default",component:d="button",disabled:f=!1,disableFocusRipple:u=!1,focusVisibleClassName:h,size:g="large",variant:y="circular"}=n,_=Ve(n,jue),S=z({},n,{color:s,component:d,disabled:f,disableFocusRipple:u,size:g,variant:y}),E=Tue(S);return A.jsx(Aue,z({className:Re(E.root,o),component:d,disabled:f,focusRipple:!u,focusVisibleClassName:Re(E.focusVisible,h),ownerState:S,ref:r},_,{classes:E,children:a}))}),Fue=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],$ue=e=>{const{classes:t,disableUnderline:r}=e,a=St({root:["root",!r&&"underline"],input:["input"]},nse,t);return z({},t,a)},Lue=he($w,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Mw(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",d=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return z({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${$d.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${$d.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:d}},!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"},[`&.${$d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$d.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$d.disabled}, .${$d.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$d.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&z({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}))}),Due=he(Lw,{name:"MuiFilledInput",slot:"Input",overridesResolver:Fw})(({theme:e,ownerState:t})=>z({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})),yT=p.forwardRef(function(t,r){var n,a,o,s;const d=Et({props:t,name:"MuiFilledInput"}),{components:f={},componentsProps:u,fullWidth:h=!1,inputComponent:g="input",multiline:y=!1,slotProps:_,slots:S={},type:E="text"}=d,x=Ve(d,Fue),T=z({},d,{fullWidth:h,inputComponent:g,multiline:y,type:E}),I=$ue(d),R={root:{ownerState:T},input:{ownerState:T}},P=_??u?ro(R,_??u):R,C=(n=(a=S.root)!=null?a:f.Root)!=null?n:Lue,O=(o=(s=S.input)!=null?s:f.Input)!=null?o:Due;return A.jsx(Dw,z({slots:{root:C,input:O},componentsProps:P,fullWidth:h,inputComponent:g,multiline:y,ref:r,type:E},x,{classes:I}))});yT.muiName="Input";function Nue(e){return wt("MuiFormControl",e)}Ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bue=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],zue=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${Ue(r)}`,n&&"fullWidth"]};return St(a,Nue,t)},que=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,t[`margin${Ue(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>z({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%"})),uU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormControl"}),{children:a,className:o,color:s="primary",component:d="div",disabled:f=!1,error:u=!1,focused:h,fullWidth:g=!1,hiddenLabel:y=!1,margin:_="none",required:S=!1,size:E="medium",variant:x="outlined"}=n,T=Ve(n,Bue),I=z({},n,{color:s,component:d,disabled:f,error:u,fullWidth:g,hiddenLabel:y,margin:_,required:S,size:E,variant:x}),R=zue(I),[P,C]=p.useState(()=>{let q=!1;return a&&p.Children.forEach(a,V=>{if(!c1(V,["Input","Select"]))return;const G=c1(V,["Select"])?V.props.input:V;G&&Xie(G.props)&&(q=!0)}),q}),[O,j]=p.useState(()=>{let q=!1;return a&&p.Children.forEach(a,V=>{c1(V,["Input","Select"])&&(J1(V.props,!0)||J1(V.props.inputProps,!0))&&(q=!0)}),q}),[k,M]=p.useState(!1);f&&k&&M(!1);const $=h!==void 0&&!f?h:k;let N;const B=p.useMemo(()=>({adornedStart:P,setAdornedStart:C,color:s,disabled:f,error:u,filled:O,focused:$,fullWidth:g,hiddenLabel:y,size:E,onBlur:()=>{M(!1)},onEmpty:()=>{j(!1)},onFilled:()=>{j(!0)},onFocus:()=>{M(!0)},registerEffect:N,required:S,variant:x}),[P,s,f,u,O,$,g,y,N,S,E,x]);return A.jsx(Aw.Provider,{value:B,children:A.jsx(que,z({as:d,ownerState:I,className:Re(R.root,o),ref:r},T,{children:a}))})}),Pv=Une({createStyledComponent:he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Et({props:e,name:"MuiStack"})});function Uue(e){return wt("MuiFormControlLabel",e)}const zy=Ot("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Vue=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Wue=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,s={root:["root",r&&"disabled",`labelPlacement${Ue(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return St(s,Uue,t)},Hue=he("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${zy.label}`]:t.label},t.root,t[`labelPlacement${Ue(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>z({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${zy.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},{[`& .${zy.label}`]:{[`&.${zy.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Gue=he("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${zy.error}`]:{color:(e.vars||e).palette.error.main}})),yk=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:d={},control:f,disabled:u,disableTypography:h,label:g,labelPlacement:y="end",required:_,slotProps:S={}}=o,E=Ve(o,Vue),x=vs(),T=(n=u??f.props.disabled)!=null?n:x==null?void 0:x.disabled,I=_??f.props.required,R={disabled:T,required:I};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof f.props[M]>"u"&&typeof o[M]<"u"&&(R[M]=o[M])});const P=du({props:o,muiFormControl:x,states:["error"]}),C=z({},o,{disabled:T,labelPlacement:y,required:I,error:P.error}),O=Wue(C),j=(a=S.typography)!=null?a:d.typography;let k=g;return k!=null&&k.type!==nr&&!h&&(k=A.jsx(nr,z({component:"span"},j,{className:Re(O.label,j==null?void 0:j.className),children:k}))),A.jsxs(Hue,z({className:Re(O.root,s),ownerState:C,ref:r},E,{children:[p.cloneElement(f,R),I?A.jsxs(Pv,{display:"block",children:[k,A.jsxs(Gue,{ownerState:C,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):k]}))});function Kue(e){return wt("MuiFormGroup",e)}Ot("MuiFormGroup",["root","row","error"]);const Que=["className","row"],Xue=e=>{const{classes:t,row:r,error:n}=e;return St({root:["root",r&&"row",n&&"error"]},Kue,t)},Yue=he("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>z({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Jue=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,s=Ve(n,Que),d=vs(),f=du({props:n,muiFormControl:d,states:["error"]}),u=z({},n,{row:o,error:f.error}),h=Xue(u);return A.jsx(Yue,z({className:Re(h.root,a),ownerState:u,ref:r},s))});function Zue(e){return wt("MuiFormHelperText",e)}const g3=Ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var y3;const ece=["children","className","component","disabled","error","filled","focused","margin","required","variant"],tce=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:s,focused:d,required:f}=e,u={root:["root",a&&"disabled",o&&"error",n&&`size${Ue(n)}`,r&&"contained",d&&"focused",s&&"filled",f&&"required"]};return St(u,Zue,t)},rce=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Ue(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${g3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${g3.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),bT=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:s="p"}=n,d=Ve(n,ece),f=vs(),u=du({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),h=z({},n,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),g=tce(h);return A.jsx(rce,z({as:s,ownerState:h,className:Re(g.root,o),ref:r},d,{children:a===" "?y3||(y3=A.jsx("span",{className:"notranslate",children:"​"})):a}))});function nce(e){return wt("MuiFormLabel",e)}const tb=Ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ace=["children","className","color","component","disabled","error","filled","focused","required"],oce=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:s,required:d}=e,f={root:["root",`color${Ue(r)}`,a&&"disabled",o&&"error",s&&"filled",n&&"focused",d&&"required"],asterisk:["asterisk",o&&"error"]};return St(f,nce,t)},ice=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${tb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${tb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tb.error}`]:{color:(e.vars||e).palette.error.main}})),sce=he("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${tb.error}`]:{color:(e.vars||e).palette.error.main}})),lce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:s="label"}=n,d=Ve(n,ace),f=vs(),u=du({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),h=z({},n,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),g=oce(h);return A.jsxs(ice,z({as:s,ownerState:h,className:Re(g.root,o),ref:r},d,{children:[a,u.required&&A.jsxs(sce,{ownerState:h,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]}))}),uce=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bk(e){return`scale(${e}, ${e**2})`}const cce={entering:{opacity:1,transform:bk(1)},entered:{opacity:1,transform:"none"}},a2=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ob=p.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:s,in:d,onEnter:f,onEntered:u,onEntering:h,onExit:g,onExited:y,onExiting:_,style:S,timeout:E="auto",TransitionComponent:x=hs}=t,T=Ve(t,uce),I=Jd(),R=p.useRef(),P=ei(),C=p.useRef(null),O=fn(C,o.ref,r),j=G=>Y=>{if(G){const X=C.current;Y===void 0?G(X):G(X,Y)}},k=j(h),M=j((G,Y)=>{lT(G);const{duration:X,delay:H,easing:te}=av({style:S,timeout:E,easing:s},{mode:"enter"});let ne;E==="auto"?(ne=P.transitions.getAutoHeightDuration(G.clientHeight),R.current=ne):ne=X,G.style.transition=[P.transitions.create("opacity",{duration:ne,delay:H}),P.transitions.create("transform",{duration:a2?ne:ne*.666,delay:H,easing:te})].join(","),f&&f(G,Y)}),$=j(u),N=j(_),B=j(G=>{const{duration:Y,delay:X,easing:H}=av({style:S,timeout:E,easing:s},{mode:"exit"});let te;E==="auto"?(te=P.transitions.getAutoHeightDuration(G.clientHeight),R.current=te):te=Y,G.style.transition=[P.transitions.create("opacity",{duration:te,delay:X}),P.transitions.create("transform",{duration:a2?te:te*.666,delay:a2?X:X||te*.333,easing:H})].join(","),G.style.opacity=0,G.style.transform=bk(.75),g&&g(G)}),q=j(y),V=G=>{E==="auto"&&I.start(R.current||0,G),n&&n(C.current,G)};return A.jsx(x,z({appear:a,in:d,nodeRef:C,onEnter:M,onEntered:$,onEntering:k,onExit:B,onExited:q,onExiting:N,addEndListener:V,timeout:E==="auto"?null:E},T,{children:(G,Y)=>p.cloneElement(o,z({style:z({opacity:0,transform:bk(.75),visibility:G==="exited"&&!d?"hidden":void 0},cce[G],S,o.props.style),ref:O},Y))}))});Ob.muiSupportAuto=!0;const dce=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],fce=e=>{const{classes:t,disableUnderline:r}=e,a=St({root:["root",!r&&"underline"],input:["input"]},tse,t);return z({},t,a)},pce=he($w,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Mw(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})`),z({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"},[`&.${sg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sg.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(.${sg.disabled}, .${sg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${sg.disabled}:before`]:{borderBottomStyle:"dotted"}})}),hce=he(Lw,{name:"MuiInput",slot:"Input",overridesResolver:Fw})({}),zw=p.forwardRef(function(t,r){var n,a,o,s;const d=Et({props:t,name:"MuiInput"}),{disableUnderline:f,components:u={},componentsProps:h,fullWidth:g=!1,inputComponent:y="input",multiline:_=!1,slotProps:S,slots:E={},type:x="text"}=d,T=Ve(d,dce),I=fce(d),P={root:{ownerState:{disableUnderline:f}}},C=S??h?ro(S??h,P):P,O=(n=(a=E.root)!=null?a:u.Root)!=null?n:pce,j=(o=(s=E.input)!=null?s:u.Input)!=null?o:hce;return A.jsx(Dw,z({slots:{root:O,input:j},slotProps:C,fullWidth:g,inputComponent:y,multiline:_,ref:r,type:x},T,{classes:I}))});zw.muiName="Input";function vce(e){return wt("MuiInputAdornment",e)}const b3=Ot("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _3;const mce=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gce=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ue(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},yce=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:s}=e,d={root:["root",r&&"disablePointerEvents",a&&`position${Ue(a)}`,s,n&&"hiddenLabel",o&&`size${Ue(o)}`]};return St(d,vce,t)},bce=he("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:gce})(({theme:e,ownerState:t})=>z({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${b3.positionStart}&:not(.${b3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Oh=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:s="div",disablePointerEvents:d=!1,disableTypography:f=!1,position:u,variant:h}=n,g=Ve(n,mce),y=vs()||{};let _=h;h&&y.variant,y&&!_&&(_=y.variant);const S=z({},n,{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:d,position:u,variant:_}),E=yce(S);return A.jsx(Aw.Provider,{value:null,children:A.jsx(bce,z({as:s,ownerState:S,className:Re(E.root,o),ref:r},g,{children:typeof a=="string"&&!f?A.jsx(nr,{color:"text.secondary",children:a}):A.jsxs(p.Fragment,{children:[u==="start"?_3||(_3=A.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function _ce(e){return wt("MuiInputLabel",e)}Ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const xce=["disableAnimation","margin","shrink","variant","className"],wce=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:s,required:d}=e,f={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${Ue(n)}`,s],asterisk:[d&&"asterisk"]},u=St(f,_ce,t);return z({},t,u)},Sce=he(lce,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tb.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})=>z({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"&&z({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&&z({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"&&z({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)"}))),cU=p.forwardRef(function(t,r){const n=Et({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:s}=n,d=Ve(n,xce),f=vs();let u=o;typeof u>"u"&&f&&(u=f.filled||f.focused||f.adornedStart);const h=du({props:n,muiFormControl:f,states:["size","variant","required","focused"]}),g=z({},n,{disableAnimation:a,formControl:f,shrink:u,size:h.size,variant:h.variant,required:h.required,focused:h.focused}),y=wce(g);return A.jsx(Sce,z({"data-shrink":u,ownerState:g,ref:r,className:Re(y.root,s)},d,{classes:y}))});function Ece(e){return wt("MuiLinearProgress",e)}Ot("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Cce=["className","color","value","valueBuffer","variant"];let Rv=e=>e,x3,w3,S3,E3,C3,O3;const _k=4,Oce=uu(x3||(x3=Rv` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),Pce=uu(w3||(w3=Rv` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),Rce=uu(S3||(S3=Rv` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),kce=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${Ue(n)}`,r],dashed:["dashed",`dashedColor${Ue(n)}`],bar1:["bar",`barColor${Ue(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Ue(n)}`,r==="buffer"&&`color${Ue(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return St(a,Ece,t)},_T=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?ir.lighten(e.palette[t].main,.62):ir.darken(e.palette[t].main,.5),Ice=he("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ue(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>z({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:_T(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)"})),jce=he("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Ue(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=_T(t,e.color);return z({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"})},Pf(E3||(E3=Rv` + animation: ${0} 3s infinite linear; + `),Rce)),Tce=he("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Ue(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>z({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 .${_k}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${_k}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Pf(C3||(C3=Rv` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),Oce)),Ace=he("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Ue(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>z({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:_T(t,e.color),transition:`transform .${_k}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Pf(O3||(O3=Rv` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),Pce)),Mce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:s,valueBuffer:d,variant:f="indeterminate"}=n,u=Ve(n,Cce),h=z({},n,{color:o,variant:f}),g=kce(h),y=Bc(),_={},S={bar1:{},bar2:{}};if((f==="determinate"||f==="buffer")&&s!==void 0){_["aria-valuenow"]=Math.round(s),_["aria-valuemin"]=0,_["aria-valuemax"]=100;let E=s-100;y&&(E=-E),S.bar1.transform=`translateX(${E}%)`}if(f==="buffer"&&d!==void 0){let E=(d||0)-100;y&&(E=-E),S.bar2.transform=`translateX(${E}%)`}return A.jsxs(Ice,z({className:Re(g.root,a),ownerState:h,role:"progressbar"},_,{ref:r},u,{children:[f==="buffer"?A.jsx(jce,{className:g.dashed,ownerState:h}):null,A.jsx(Tce,{className:g.bar1,ownerState:h,style:S.bar1}),f==="determinate"?null:A.jsx(Ace,{className:g.bar2,ownerState:h,style:S.bar2})]}))});function Fce(e){return wt("MuiLink",e)}const $ce=Ot("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),dU={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Lce=e=>dU[e]||e,Dce=({theme:e,ownerState:t})=>{const r=Lce(t.color),n=tv(e,`palette.${r}`,!1)||t.color,a=tv(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:ir.alpha(n,.4)},Nce=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Bce=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${Ue(a)}`,r==="button"&&"button",n&&"focusVisible"]};return St(o,Fce,t)},zce=he(nr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ue(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>z({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&z({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Dce({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"},[`&.${$ce.focusVisible}`]:{outline:"auto"}})),qce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:s="a",onBlur:d,onFocus:f,TypographyClasses:u,underline:h="always",variant:g="inherit",sx:y}=n,_=Ve(n,Nce),{isFocusVisibleRef:S,onBlur:E,onFocus:x,ref:T}=kw(),[I,R]=p.useState(!1),P=fn(r,T),C=M=>{E(M),S.current===!1&&R(!1),d&&d(M)},O=M=>{x(M),S.current===!0&&R(!0),f&&f(M)},j=z({},n,{color:o,component:s,focusVisible:I,underline:h,variant:g}),k=Bce(j);return A.jsx(zce,z({color:o,className:Re(k.root,a),classes:u,component:s,onBlur:C,onFocus:O,ref:P,ownerState:j,variant:g,sx:[...Object.keys(dU).includes(o)?[]:[{color:o}],...Array.isArray(y)?y:[y]]},_))}),Pb=p.createContext({});function Uce(e){return wt("MuiList",e)}Ot("MuiList",["root","padding","dense","subheader"]);const Vce=["children","className","component","dense","disablePadding","subheader"],Wce=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return St({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},Uce,t)},Hce=he("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})=>z({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Gce=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiList"}),{children:a,className:o,component:s="ul",dense:d=!1,disablePadding:f=!1,subheader:u}=n,h=Ve(n,Vce),g=p.useMemo(()=>({dense:d}),[d]),y=z({},n,{component:s,dense:d,disablePadding:f}),_=Wce(y);return A.jsx(Pb.Provider,{value:g,children:A.jsxs(Hce,z({as:s,className:Re(_.root,o),ref:r,ownerState:y},h,{children:[u,a]}))})});function Kce(e){return wt("MuiListItemIcon",e)}const P3=Ot("MuiListItemIcon",["root","alignItemsFlexStart"]),Qce=["className"],Xce=e=>{const{alignItems:t,classes:r}=e;return St({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Kce,r)},Yce=he("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})=>z({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),ef=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Ve(n,Qce),s=p.useContext(Pb),d=z({},n,{alignItems:s.alignItems}),f=Xce(d);return A.jsx(Yce,z({className:Re(f.root,a),ownerState:d,ref:r},o))});function Jce(e){return wt("MuiListItemText",e)}const Z1=Ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Zce=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ede=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return St({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Jce,t)},tde=he("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Z1.primary}`]:t.primary},{[`& .${Z1.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>z({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),xh=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:s=!1,inset:d=!1,primary:f,primaryTypographyProps:u,secondary:h,secondaryTypographyProps:g}=n,y=Ve(n,Zce),{dense:_}=p.useContext(Pb);let S=f??a,E=h;const x=z({},n,{disableTypography:s,inset:d,primary:!!S,secondary:!!E,dense:_}),T=ede(x);return S!=null&&S.type!==nr&&!s&&(S=A.jsx(nr,z({variant:_?"body2":"body1",className:T.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:S}))),E!=null&&E.type!==nr&&!s&&(E=A.jsx(nr,z({variant:"body2",className:T.secondary,color:"text.secondary",display:"block"},g,{children:E}))),A.jsxs(tde,z({className:Re(T.root,o),ownerState:x,ref:r},y,{children:[S,E]}))}),rde=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function o2(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function R3(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function fU(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 lg(e,t,r,n,a,o){let s=!1,d=a(e,t,t?r:!1);for(;d;){if(d===e.firstChild){if(s)return!1;s=!0}const f=n?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!fU(d,o)||f)d=a(e,d,r);else return d.focus(),!0}return!1}const pU=p.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:s,className:d,disabledItemsFocusable:f=!1,disableListWrap:u=!1,onKeyDown:h,variant:g="selectedMenu"}=t,y=Ve(t,rde),_=p.useRef(null),S=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yo(()=>{a&&_.current.focus()},[a]),p.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(R,{direction:P})=>{const C=!_.current.style.width;if(R.clientHeight<_.current.clientHeight&&C){const O=`${k6(Dn(R))}px`;_.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=O,_.current.style.width=`calc(100% + ${O})`}return _.current}}),[]);const E=R=>{const P=_.current,C=R.key,O=Dn(P).activeElement;if(C==="ArrowDown")R.preventDefault(),lg(P,O,u,f,o2);else if(C==="ArrowUp")R.preventDefault(),lg(P,O,u,f,R3);else if(C==="Home")R.preventDefault(),lg(P,null,u,f,o2);else if(C==="End")R.preventDefault(),lg(P,null,u,f,R3);else if(C.length===1){const j=S.current,k=C.toLowerCase(),M=performance.now();j.keys.length>0&&(M-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&k!==j.keys[0]&&(j.repeating=!1)),j.lastTime=M,j.keys.push(k);const $=O&&!j.repeating&&fU(O,j);j.previousKeyMatched&&($||lg(P,O,!1,f,o2,j))?R.preventDefault():j.previousKeyMatched=!1}h&&h(R)},x=fn(_,r);let T=-1;p.Children.forEach(s,(R,P)=>{if(!p.isValidElement(R)){T===P&&(T+=1,T>=s.length&&(T=-1));return}R.props.disabled||(g==="selectedMenu"&&R.props.selected||T===-1)&&(T=P),T===P&&(R.props.disabled||R.props.muiSkipListHighlight||R.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const I=p.Children.map(s,(R,P)=>{if(P===T){const C={};return o&&(C.autoFocus=!0),R.props.tabIndex===void 0&&g==="selectedMenu"&&(C.tabIndex=0),p.cloneElement(R,C)}return R});return A.jsx(Gce,z({role:"menu",ref:x,className:d,onKeyDown:E,tabIndex:a?0:-1},y,{children:I}))});function nde(e){return wt("MuiPopover",e)}Ot("MuiPopover",["root","paper"]);const ade=["onEntering"],ode=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ide=["slotProps"];function k3(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function I3(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function j3(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function i2(e){return typeof e=="function"?e():e}const sde=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"]},nde,t)},lde=he(mT,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hU=he(zc,{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}),xT=p.forwardRef(function(t,r){var n,a,o;const s=Et({props:t,name:"MuiPopover"}),{action:d,anchorEl:f,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:g="anchorEl",children:y,className:_,container:S,elevation:E=8,marginThreshold:x=16,open:T,PaperProps:I={},slots:R,slotProps:P,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:O=Ob,transitionDuration:j="auto",TransitionProps:{onEntering:k}={},disableScrollLock:M=!1}=s,$=Ve(s.TransitionProps,ade),N=Ve(s,ode),B=(n=P==null?void 0:P.paper)!=null?n:I,q=p.useRef(),V=fn(q,B.ref),G=z({},s,{anchorOrigin:u,anchorReference:g,elevation:E,marginThreshold:x,externalPaperSlotProps:B,transformOrigin:C,TransitionComponent:O,transitionDuration:j,TransitionProps:$}),Y=sde(G),X=p.useCallback(()=>{if(g==="anchorPosition")return h;const Te=i2(f),Le=(Te&&Te.nodeType===1?Te:Dn(q.current).body).getBoundingClientRect();return{top:Le.top+k3(Le,u.vertical),left:Le.left+I3(Le,u.horizontal)}},[f,u.horizontal,u.vertical,h,g]),H=p.useCallback(Te=>({vertical:k3(Te,C.vertical),horizontal:I3(Te,C.horizontal)}),[C.horizontal,C.vertical]),te=p.useCallback(Te=>{const Be={width:Te.offsetWidth,height:Te.offsetHeight},Le=H(Be);if(g==="none")return{top:null,left:null,transformOrigin:j3(Le)};const dt=X();let He=dt.top-Le.vertical,Z=dt.left-Le.horizontal;const ae=He+Be.height,fe=Z+Be.width,ve=Ti(i2(f)),be=ve.innerHeight-x,_e=ve.innerWidth-x;if(x!==null&&Hebe){const De=ae-be;He-=De,Le.vertical+=De}if(x!==null&&Z_e){const De=fe-_e;Z-=De,Le.horizontal+=De}return{top:`${Math.round(He)}px`,left:`${Math.round(Z)}px`,transformOrigin:j3(Le)}},[f,g,X,H,x]),[ne,K]=p.useState(T),ee=p.useCallback(()=>{const Te=q.current;if(!Te)return;const Be=te(Te);Be.top!==null&&(Te.style.top=Be.top),Be.left!==null&&(Te.style.left=Be.left),Te.style.transformOrigin=Be.transformOrigin,K(!0)},[te]);p.useEffect(()=>(M&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[f,M,ee]);const Ce=(Te,Be)=>{k&&k(Te,Be),ee()},se=()=>{K(!1)};p.useEffect(()=>{T&&ee()}),p.useImperativeHandle(d,()=>T?{updatePosition:()=>{ee()}}:null,[T,ee]),p.useEffect(()=>{if(!T)return;const Te=Cv(()=>{ee()}),Be=Ti(f);return Be.addEventListener("resize",Te),()=>{Te.clear(),Be.removeEventListener("resize",Te)}},[f,T,ee]);let Se=j;j==="auto"&&!O.muiSupportAuto&&(Se=void 0);const me=S||(f?Dn(i2(f)).body:void 0),we=(a=R==null?void 0:R.root)!=null?a:lde,Oe=(o=R==null?void 0:R.paper)!=null?o:hU,ie=Ai({elementType:Oe,externalSlotProps:z({},B,{style:ne?B.style:z({},B.style,{opacity:0})}),additionalProps:{elevation:E,ref:V},ownerState:G,className:Re(Y.paper,B==null?void 0:B.className)}),Fe=Ai({elementType:we,externalSlotProps:(P==null?void 0:P.root)||{},externalForwardedProps:N,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:me,open:T},ownerState:G,className:Re(Y.root,_)}),{slotProps:ke}=Fe,$e=Ve(Fe,ide);return A.jsx(we,z({},$e,!xb(we)&&{slotProps:ke,disableScrollLock:M},{children:A.jsx(O,z({appear:!0,in:T,onEntering:Ce,onExited:se,timeout:Se},$,{children:A.jsx(Oe,z({},ie,{children:y}))}))}))});function ude(e){return wt("MuiMenu",e)}Ot("MuiMenu",["root","paper","list"]);const cde=["onEntering"],dde=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],fde={vertical:"top",horizontal:"right"},pde={vertical:"top",horizontal:"left"},hde=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"],list:["list"]},ude,t)},vde=he(xT,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mde=he(hU,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gde=he(pU,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qw=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:d,className:f,disableAutoFocusItem:u=!1,MenuListProps:h={},onClose:g,open:y,PaperProps:_={},PopoverClasses:S,transitionDuration:E="auto",TransitionProps:{onEntering:x}={},variant:T="selectedMenu",slots:I={},slotProps:R={}}=o,P=Ve(o.TransitionProps,cde),C=Ve(o,dde),O=Bc(),j=z({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:h,onEntering:x,PaperProps:_,transitionDuration:E,TransitionProps:P,variant:T}),k=hde(j),M=s&&!u&&y,$=p.useRef(null),N=(H,te)=>{$.current&&$.current.adjustStyleForScrollbar(H,{direction:O?"rtl":"ltr"}),x&&x(H,te)},B=H=>{H.key==="Tab"&&(H.preventDefault(),g&&g(H,"tabKeyDown"))};let q=-1;p.Children.map(d,(H,te)=>{p.isValidElement(H)&&(H.props.disabled||(T==="selectedMenu"&&H.props.selected||q===-1)&&(q=te))});const V=(n=I.paper)!=null?n:mde,G=(a=R.paper)!=null?a:_,Y=Ai({elementType:I.root,externalSlotProps:R.root,ownerState:j,className:[k.root,f]}),X=Ai({elementType:V,externalSlotProps:G,ownerState:j,className:k.paper});return A.jsx(vde,z({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?fde:pde,slots:{paper:V,root:I.root},slotProps:{root:Y,paper:X},open:y,ref:r,transitionDuration:E,TransitionProps:z({onEntering:N},P),ownerState:j},C,{classes:S,children:A.jsx(gde,z({onKeyDown:B,actions:$,autoFocus:s&&(q===-1||u),autoFocusItem:M,variant:T},h,{className:Re(k.list,h.className),children:d}))}))});function yde(e){return wt("MuiMenuItem",e)}const ug=Ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),bde=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_de=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},xde=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:s}=e,f=St({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},yde,s);return z({},s,f)},wde=he(cu,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:_de})(({theme:e,ownerState:t})=>z({},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"}},[`&.${ug.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ug.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ug.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ir.alpha(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})`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ug.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ug.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${h3.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${h3.inset}`]:{marginLeft:52},[`& .${Z1.root}`]:{marginTop:0,marginBottom:0},[`& .${Z1.inset}`]:{paddingLeft:36},[`& .${P3.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${P3.root} svg`]:{fontSize:"1.25rem"}}))),Ko=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:s=!1,divider:d=!1,disableGutters:f=!1,focusVisibleClassName:u,role:h="menuitem",tabIndex:g,className:y}=n,_=Ve(n,bde),S=p.useContext(Pb),E=p.useMemo(()=>({dense:s||S.dense||!1,disableGutters:f}),[S.dense,s,f]),x=p.useRef(null);Yo(()=>{a&&x.current&&x.current.focus()},[a]);const T=z({},n,{dense:E.dense,divider:d,disableGutters:f}),I=xde(n),R=fn(x,r);let P;return n.disabled||(P=g!==void 0?g:-1),A.jsx(Pb.Provider,{value:E,children:A.jsx(wde,z({ref:R,role:h,tabIndex:P,component:o,focusVisibleClassName:Re(I.focusVisible,u),className:Re(I.root,y)},_,{ownerState:T,classes:I}))})});function vU(e){return wt("MuiNativeSelect",e)}const wT=Ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Sde=["className","disabled","error","IconComponent","inputRef","variant"],Ede=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:s}=e,d={select:["select",r,n&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${Ue(r)}`,o&&"iconOpen",n&&"disabled"]};return St(d,vU,t)},mU=({ownerState:e,theme:t})=>z({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":z({},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"},[`&.${wT.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}}),Cde=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wa,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${wT.multiple}`]:t.multiple}]}})(mU),gU=({ownerState:e,theme:t})=>z({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${wT.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Ode=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ue(r.variant)}`],r.open&&t.iconOpen]}})(gU),yU=p.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:s,inputRef:d,variant:f="standard"}=t,u=Ve(t,Sde),h=z({},t,{disabled:a,variant:f,error:o}),g=Ede(h);return A.jsxs(p.Fragment,{children:[A.jsx(Cde,z({ownerState:h,className:Re(g.select,n),disabled:a,ref:d||r},u)),t.multiple?null:A.jsx(Ode,{as:s,ownerState:h,className:g.icon})]})}),Pde=["className","children","classes","IconComponent","input","inputProps","variant"],Rde=["root"],kde=e=>{const{classes:t}=e;return St({root:["root"]},vU,t)},Ide=A.jsx(zw,{}),xk=p.forwardRef(function(t,r){const n=Et({name:"MuiNativeSelect",props:t}),{className:a,children:o,classes:s={},IconComponent:d=Z6,input:f=Ide,inputProps:u}=n,h=Ve(n,Pde),g=vs(),y=du({props:n,muiFormControl:g,states:["variant"]}),_=z({},n,{classes:s}),S=kde(_),E=Ve(s,Rde);return A.jsx(p.Fragment,{children:p.cloneElement(f,z({inputComponent:yU,inputProps:z({children:o,classes:E,IconComponent:d,variant:y.variant,type:void 0},u,f?f.props.inputProps:{}),ref:r},h,{className:Re(S.root,f.props.className,a)}))})});xk.muiName="Select";var T3;const jde=["children","classes","className","label","notched"],Tde=he("fieldset",{shouldForwardProp:wa})({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%"}),Ade=he("legend",{shouldForwardProp:wa})(({ownerState:e,theme:t})=>z({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&&z({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 Mde(e){const{className:t,label:r,notched:n}=e,a=Ve(e,jde),o=r!=null&&r!=="",s=z({},e,{notched:n,withLabel:o});return A.jsx(Tde,z({"aria-hidden":!0,className:t,ownerState:s},a,{children:A.jsx(Ade,{ownerState:s,children:o?A.jsx("span",{children:r}):T3||(T3=A.jsx("span",{className:"notranslate",children:"​"}))})}))}const Fde=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],$de=e=>{const{classes:t}=e,n=St({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rse,t);return z({},t,n)},Lde=he($w,{shouldForwardProp:e=>wa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mw})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return z({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Xu.focused} .${Xu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Xu.error} .${Xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xu.disabled} .${Xu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&z({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Dde=he(Mde,{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}}),Nde=he(Lw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Fw})(({theme:e,ownerState:t})=>z({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})),ST=p.forwardRef(function(t,r){var n,a,o,s,d;const f=Et({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:h=!1,inputComponent:g="input",label:y,multiline:_=!1,notched:S,slots:E={},type:x="text"}=f,T=Ve(f,Fde),I=$de(f),R=vs(),P=du({props:f,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=z({},f,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:R,fullWidth:h,hiddenLabel:P.hiddenLabel,multiline:_,size:P.size,type:x}),O=(n=(a=E.root)!=null?a:u.Root)!=null?n:Lde,j=(o=(s=E.input)!=null?s:u.Input)!=null?o:Nde;return A.jsx(Dw,z({slots:{root:O,input:j},renderSuffix:k=>A.jsx(Dde,{ownerState:C,className:I.notchedOutline,label:y!=null&&y!==""&&P.required?d||(d=A.jsxs(p.Fragment,{children:[y," ","*"]})):y,notched:typeof S<"u"?S:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:h,inputComponent:g,multiline:_,ref:r,type:x},T,{classes:z({},I,{notchedOutline:null})}))});ST.muiName="Input";function Bde(e){return wt("MuiPagination",e)}Ot("MuiPagination",["root","ul","outlined","text"]);const zde=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function qde(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:s=!1,hidePrevButton:d=!1,onChange:f,page:u,showFirstButton:h=!1,showLastButton:g=!1,siblingCount:y=1}=e,_=Ve(e,zde),[S,E]=nv({controlled:u,default:a,name:r,state:"page"}),x=(M,$)=>{u||E($),f&&f(M,$)},T=(M,$)=>{const N=$-M+1;return Array.from({length:N},(B,q)=>M+q)},I=T(1,Math.min(t,n)),R=T(Math.max(n-t+1,t+1),n),P=Math.max(Math.min(S-y,n-t-y*2-1),t+2),C=Math.min(Math.max(S+y,t+y*2+2),R.length>0?R[0]-2:n-1),O=[...h?["first"]:[],...d?[]:["previous"],...I,...P>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...R,...s?[]:["next"],...g?["last"]:[]],j=M=>{switch(M){case"first":return 1;case"previous":return S-1;case"next":return S+1;case"last":return n;default:return null}},k=O.map(M=>typeof M=="number"?{onClick:$=>{x($,M)},type:"page",page:M,selected:M===S,disabled:o,"aria-current":M===S?"true":void 0}:{onClick:$=>{x($,j(M))},type:M,page:j(M),selected:!1,disabled:o||M.indexOf("ellipsis")===-1&&(M==="next"||M==="last"?S>=n:S<=1)});return z({items:k},_)}function Ude(e){return wt("MuiPaginationItem",e)}const _i=Ot("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),wk=ti(A.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Sk=ti(A.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),A3=ti(A.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),M3=ti(A.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Vde=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],bU=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.variant==="text"&&t[`text${Ue(r.color)}`],r.variant==="outlined"&&t[`outlined${Ue(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]},Wde=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:s,type:d,variant:f}=e,u={root:["root",`size${Ue(o)}`,f,s,r!=="standard"&&`color${Ue(r)}`,r!=="standard"&&`${f}${Ue(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[d]],icon:["icon"]};return St(u,Ude,t)},Hde=he("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:bU})(({theme:e,ownerState:t})=>z({},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",[`&.${_i.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)})),Gde=he(cu,{name:"MuiPaginationItem",slot:"Root",overridesResolver:bU})(({theme:e,ownerState:t})=>z({},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,[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_i.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"}},[`&.${_i.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}))`:ir.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${_i.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})=>z({},t.variant==="text"&&{[`&.${_i.selected}`]:z({},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}},[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${_i.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)"}`,[`&.${_i.selected}`]:z({},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)`:ir.alpha(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:ir.alpha(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}))`:ir.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ir.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${_i.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Kde=he("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>z({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Qde=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:s,components:d={},disabled:f=!1,page:u,selected:h=!1,shape:g="circular",size:y="medium",slots:_={},type:S="page",variant:E="text"}=n,x=Ve(n,Vde),T=z({},n,{color:o,disabled:f,selected:h,shape:g,size:y,type:S,variant:E}),I=Bc(),R=Wde(T),C=(I?{previous:_.next||d.next||M3,next:_.previous||d.previous||A3,last:_.first||d.first||wk,first:_.last||d.last||Sk}:{previous:_.previous||d.previous||A3,next:_.next||d.next||M3,first:_.first||d.first||wk,last:_.last||d.last||Sk})[S];return S==="start-ellipsis"||S==="end-ellipsis"?A.jsx(Hde,{ref:r,ownerState:T,className:Re(R.root,a),children:"…"}):A.jsxs(Gde,z({ref:r,ownerState:T,component:s,disabled:f,className:Re(R.root,a)},x,{children:[S==="page"&&u,C?A.jsx(Kde,{as:C,ownerState:T,className:R.icon}):null]}))}),Xde=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Yde=e=>{const{classes:t,variant:r}=e;return St({root:["root",r],ul:["ul"]},Bde,t)},Jde=he("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Zde=he("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function efe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const tfe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:s="standard",count:d=1,defaultPage:f=1,disabled:u=!1,getItemAriaLabel:h=efe,hideNextButton:g=!1,hidePrevButton:y=!1,renderItem:_=k=>A.jsx(Qde,z({},k)),shape:S="circular",showFirstButton:E=!1,showLastButton:x=!1,siblingCount:T=1,size:I="medium",variant:R="text"}=n,P=Ve(n,Xde),{items:C}=qde(z({},n,{componentName:"Pagination"})),O=z({},n,{boundaryCount:a,color:s,count:d,defaultPage:f,disabled:u,getItemAriaLabel:h,hideNextButton:g,hidePrevButton:y,renderItem:_,shape:S,showFirstButton:E,showLastButton:x,siblingCount:T,size:I,variant:R}),j=Yde(O);return A.jsx(Jde,z({"aria-label":"pagination navigation",className:Re(j.root,o),ownerState:O,ref:r},P,{children:A.jsx(Zde,{className:j.ul,ownerState:O,children:C.map((k,M)=>A.jsx("li",{children:_(z({},k,{color:s,"aria-label":h(k.type,k.page,k.selected),shape:S,size:I,variant:R}))},M))})}))});function rfe(e){return wt("MuiSelect",e)}const cg=Ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var F3;const nfe=["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"],afe=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${cg.select}`]:t.select},{[`&.${cg.select}`]:t[r.variant]},{[`&.${cg.error}`]:t.error},{[`&.${cg.multiple}`]:t.multiple}]}})(mU,{[`&.${cg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ofe=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ue(r.variant)}`],r.open&&t.iconOpen]}})(gU),ife=he("input",{shouldForwardProp:e=>N6(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 $3(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function sfe(e){return e==null||typeof e=="string"&&!e.trim()}const lfe=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:s}=e,d={select:["select",r,n&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${Ue(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return St(d,rfe,t)},ufe=p.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:s,autoWidth:d,children:f,className:u,defaultOpen:h,defaultValue:g,disabled:y,displayEmpty:_,error:S=!1,IconComponent:E,inputRef:x,labelId:T,MenuProps:I={},multiple:R,name:P,onBlur:C,onChange:O,onClose:j,onFocus:k,onOpen:M,open:$,readOnly:N,renderValue:B,SelectDisplayProps:q={},tabIndex:V,value:G,variant:Y="standard"}=t,X=Ve(t,nfe),[H,te]=nv({controlled:G,default:g,name:"Select"}),[ne,K]=nv({controlled:$,default:h,name:"Select"}),ee=p.useRef(null),Ce=p.useRef(null),[se,Se]=p.useState(null),{current:me}=p.useRef($!=null),[we,Oe]=p.useState(),ie=fn(r,x),Fe=p.useCallback(nt=>{Ce.current=nt,nt&&Se(nt)},[]),ke=se==null?void 0:se.parentNode;p.useImperativeHandle(ie,()=>({focus:()=>{Ce.current.focus()},node:ee.current,value:H}),[H]),p.useEffect(()=>{h&&ne&&se&&!me&&(Oe(d?null:ke.clientWidth),Ce.current.focus())},[se,d]),p.useEffect(()=>{s&&Ce.current.focus()},[s]),p.useEffect(()=>{if(!T)return;const nt=Dn(Ce.current).getElementById(T);if(nt){const Pt=()=>{getSelection().isCollapsed&&Ce.current.focus()};return nt.addEventListener("click",Pt),()=>{nt.removeEventListener("click",Pt)}}},[T]);const $e=(nt,Pt)=>{nt?M&&M(Pt):j&&j(Pt),me||(Oe(d?null:ke.clientWidth),K(nt))},Te=nt=>{nt.button===0&&(nt.preventDefault(),Ce.current.focus(),$e(!0,nt))},Be=nt=>{$e(!1,nt)},Le=p.Children.toArray(f),dt=nt=>{const Pt=Le.find(Je=>Je.props.value===nt.target.value);Pt!==void 0&&(te(Pt.props.value),O&&O(nt,Pt))},He=nt=>Pt=>{let Je;if(Pt.currentTarget.hasAttribute("tabindex")){if(R){Je=Array.isArray(H)?H.slice():[];const ut=H.indexOf(nt.props.value);ut===-1?Je.push(nt.props.value):Je.splice(ut,1)}else Je=nt.props.value;if(nt.props.onClick&&nt.props.onClick(Pt),H!==Je&&(te(Je),O)){const ut=Pt.nativeEvent||Pt,Ht=new ut.constructor(ut.type,ut);Object.defineProperty(Ht,"target",{writable:!0,value:{value:Je,name:P}}),O(Ht,nt)}R||$e(!1,Pt)}},Z=nt=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf(nt.key)!==-1&&(nt.preventDefault(),$e(!0,nt))},ae=se!==null&&ne,fe=nt=>{!ae&&C&&(Object.defineProperty(nt,"target",{writable:!0,value:{value:H,name:P}}),C(nt))};delete X["aria-invalid"];let ve,be;const _e=[];let De=!1;(J1({value:H})||_)&&(B?ve=B(H):De=!0);const Ge=Le.map(nt=>{if(!p.isValidElement(nt))return null;let Pt;if(R){if(!Array.isArray(H))throw new Error(nu(2));Pt=H.some(Je=>$3(Je,nt.props.value)),Pt&&De&&_e.push(nt.props.children)}else Pt=$3(H,nt.props.value),Pt&&De&&(be=nt.props.children);return p.cloneElement(nt,{"aria-selected":Pt?"true":"false",onClick:He(nt),onKeyUp:Je=>{Je.key===" "&&Je.preventDefault(),nt.props.onKeyUp&&nt.props.onKeyUp(Je)},role:"option",selected:Pt,value:void 0,"data-value":nt.props.value})});De&&(R?_e.length===0?ve=null:ve=_e.reduce((nt,Pt,Je)=>(nt.push(Pt),Je<_e.length-1&&nt.push(", "),nt),[]):ve=be);let Mt=we;!d&&me&&se&&(Mt=ke.clientWidth);let et;typeof V<"u"?et=V:et=y?null:0;const ot=q.id||(P?`mui-component-select-${P}`:void 0),it=z({},t,{variant:Y,value:H,open:ae,error:S}),Dt=lfe(it),Zt=z({},I.PaperProps,(n=I.slotProps)==null?void 0:n.paper),Kt=xf();return A.jsxs(p.Fragment,{children:[A.jsx(afe,z({ref:Fe,tabIndex:et,role:"combobox","aria-controls":Kt,"aria-disabled":y?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[T,ot].filter(Boolean).join(" ")||void 0,"aria-describedby":a,onKeyDown:Z,onMouseDown:y||N?null:Te,onBlur:fe,onFocus:k},q,{ownerState:it,className:Re(q.className,Dt.select,u),id:ot,children:sfe(ve)?F3||(F3=A.jsx("span",{className:"notranslate",children:"​"})):ve})),A.jsx(ife,z({"aria-invalid":S,value:Array.isArray(H)?H.join(","):H,name:P,ref:ee,"aria-hidden":!0,onChange:dt,tabIndex:-1,disabled:y,className:Dt.nativeInput,autoFocus:s,ownerState:it},X)),A.jsx(ofe,{as:E,className:Dt.icon,ownerState:it}),A.jsx(qw,z({id:`menu-${P||""}`,anchorEl:ke,open:ae,onClose:Be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},I,{MenuListProps:z({"aria-labelledby":T,role:"listbox","aria-multiselectable":R?"true":void 0,disableListWrap:!0,id:Kt},I.MenuListProps),slotProps:z({},I.slotProps,{paper:z({},Zt,{style:z({minWidth:Mt},Zt!=null?Zt.style:null)})}),children:Ge}))]})}),cfe=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dfe=["root"],ffe=e=>{const{classes:t}=e;return t},ET={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wa(e)&&e!=="variant",slot:"Root"},pfe=he(zw,ET)(""),hfe=he(ST,ET)(""),vfe=he(yT,ET)(""),Uw=p.forwardRef(function(t,r){const n=Et({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:s={},className:d,defaultOpen:f=!1,displayEmpty:u=!1,IconComponent:h=Z6,id:g,input:y,inputProps:_,label:S,labelId:E,MenuProps:x,multiple:T=!1,native:I=!1,onClose:R,onOpen:P,open:C,renderValue:O,SelectDisplayProps:j,variant:k="outlined"}=n,M=Ve(n,cfe),$=I?yU:ufe,N=vs(),B=du({props:n,muiFormControl:N,states:["variant","error"]}),q=B.variant||k,V=z({},n,{variant:q,classes:s}),G=ffe(V),Y=Ve(G,dfe),X=y||{standard:A.jsx(pfe,{ownerState:V}),outlined:A.jsx(hfe,{label:S,ownerState:V}),filled:A.jsx(vfe,{ownerState:V})}[q],H=fn(r,X.ref);return A.jsx(p.Fragment,{children:p.cloneElement(X,z({inputComponent:$,inputProps:z({children:o,error:B.error,IconComponent:h,variant:q,type:void 0,multiple:T},I?{id:g}:{autoWidth:a,defaultOpen:f,displayEmpty:u,labelId:E,MenuProps:x,onClose:R,onOpen:P,open:C,renderValue:O,SelectDisplayProps:z({id:g},j)},_,{classes:_?ro(Y,_.classes):Y},y?y.props.inputProps:{})},(T&&I||u)&&q==="outlined"?{notched:!0}:{},{ref:H,className:Re(X.props.className,d,G.root)},!y&&{variant:q},M))})});Uw.muiName="Select";function mfe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,s=Jd();p.useEffect(()=>{if(!a)return;function T(I){I.defaultPrevented||(I.key==="Escape"||I.key==="Esc")&&(n==null||n(I,"escapeKeyDown"))}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[a,n]);const d=to((T,I)=>{n==null||n(T,I)}),f=to(T=>{!n||T==null||s.start(T,()=>{d(null,"timeout")})});p.useEffect(()=>(a&&f(t),s.clear),[a,t,f,s]);const u=T=>{n==null||n(T,"clickaway")},h=s.clear,g=p.useCallback(()=>{t!=null&&f(o??t*.5)},[t,o,f]),y=T=>I=>{const R=T.onBlur;R==null||R(I),g()},_=T=>I=>{const R=T.onFocus;R==null||R(I),h()},S=T=>I=>{const R=T.onMouseEnter;R==null||R(I),h()},E=T=>I=>{const R=T.onMouseLeave;R==null||R(I),g()};return p.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",g),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[r,a,g,h]),{getRootProps:(T={})=>{const I=z({},K1(e),K1(T));return z({role:"presentation"},T,I,{onBlur:y(I),onFocus:_(I),onMouseEnter:S(I),onMouseLeave:E(I)})},onClickAway:u}}function gfe(e){return wt("MuiSnackbarContent",e)}Ot("MuiSnackbarContent",["root","message","action"]);const yfe=["action","className","message","role"],bfe=e=>{const{classes:t}=e;return St({root:["root"],action:["action"],message:["message"]},gfe,t)},_fe=he(zc,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=ir.emphasize(e.palette.background.default,t);return z({},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}})}),xfe=he("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),wfe=he("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Sfe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:s,role:d="alert"}=n,f=Ve(n,yfe),u=n,h=bfe(u);return A.jsxs(_fe,z({role:d,square:!0,elevation:6,className:Re(h.root,o),ownerState:u,ref:r},f,{children:[A.jsx(xfe,{className:h.message,ownerState:u,children:s}),a?A.jsx(wfe,{className:h.action,ownerState:u,children:a}):null]}))});function Efe(e){return wt("MuiSnackbar",e)}Ot("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Cfe=["onEnter","onExited"],Ofe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Pfe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Ue(r.vertical)}${Ue(r.horizontal)}`]};return St(n,Efe,t)},L3=he("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Ue(r.anchorOrigin.vertical)}${Ue(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return z({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")]:z({},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"})})}),Rfe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSnackbar"}),a=ei(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:d,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:h,className:g,ClickAwayListenerProps:y,ContentProps:_,disableWindowBlurListener:S=!1,message:E,open:x,TransitionComponent:T=Ob,transitionDuration:I=o,TransitionProps:{onEnter:R,onExited:P}={}}=n,C=Ve(n.TransitionProps,Cfe),O=Ve(n,Ofe),j=z({},n,{anchorOrigin:{vertical:d,horizontal:f},autoHideDuration:u,disableWindowBlurListener:S,TransitionComponent:T,transitionDuration:I}),k=Pfe(j),{getRootProps:M,onClickAway:$}=mfe(z({},j)),[N,B]=p.useState(!0),q=Ai({elementType:L3,getSlotProps:M,externalForwardedProps:O,ownerState:j,additionalProps:{ref:r},className:[k.root,g]}),V=Y=>{B(!0),P&&P(Y)},G=(Y,X)=>{B(!1),R&&R(Y,X)};return!x&&N?null:A.jsx(gle,z({onClickAway:$},y,{children:A.jsx(L3,z({},q,{children:A.jsx(T,z({appear:!0,in:x,timeout:I,direction:d==="top"?"down":"up",onEnter:G,onExited:V},C,{children:h||A.jsx(Sfe,z({message:E,action:s},_))}))}))}))});function kfe(e){return wt("MuiTooltip",e)}const _c=Ot("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ife=["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 jfe(e){return Math.round(e*1e5)/1e5}const Tfe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ue(o.split("-")[0])}`],arrow:["arrow"]};return St(s,kfe,t)},Afe=he(Y6,{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})=>z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_c.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_c.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_c.arrow}`]:z({},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"] .${_c.arrow}`]:z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Mfe=he("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${Ue(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ir.alpha(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:`${jfe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_c.popper}[data-popper-placement*="left"] &`]:z({transformOrigin:"right center"},t.isRtl?z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):z({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_c.popper}[data-popper-placement*="right"] &`]:z({transformOrigin:"left center"},t.isRtl?z({marginRight:"14px"},t.touch&&{marginRight:"24px"}):z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_c.popper}[data-popper-placement*="top"] &`]:z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_c.popper}[data-popper-placement*="bottom"] &`]:z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Ffe=he("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:ir.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let V_=!1;const D3=new e0;let dg={x:0,y:0};function W_(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const xa=p.forwardRef(function(t,r){var n,a,o,s,d,f,u,h,g,y,_,S,E,x,T,I,R,P,C;const O=Et({props:t,name:"MuiTooltip"}),{arrow:j=!1,children:k,components:M={},componentsProps:$={},describeChild:N=!1,disableFocusListener:B=!1,disableHoverListener:q=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:Y=100,enterNextDelay:X=0,enterTouchDelay:H=700,followCursor:te=!1,id:ne,leaveDelay:K=0,leaveTouchDelay:ee=1500,onClose:Ce,onOpen:se,open:Se,placement:me="bottom",PopperComponent:we,PopperProps:Oe={},slotProps:ie={},slots:Fe={},title:ke,TransitionComponent:$e=Ob,TransitionProps:Te}=O,Be=Ve(O,Ife),Le=p.isValidElement(k)?k:A.jsx("span",{children:k}),dt=ei(),He=Bc(),[Z,ae]=p.useState(),[fe,ve]=p.useState(null),be=p.useRef(!1),_e=V||te,De=Jd(),Ge=Jd(),Mt=Jd(),et=Jd(),[ot,it]=nv({controlled:Se,default:!1,name:"Tooltip",state:"open"});let Dt=ot;const Zt=xf(ne),Kt=p.useRef(),nt=to(()=>{Kt.current!==void 0&&(document.body.style.WebkitUserSelect=Kt.current,Kt.current=void 0),et.clear()});p.useEffect(()=>nt,[nt]);const Pt=It=>{D3.clear(),V_=!0,it(!0),se&&!Dt&&se(It)},Je=to(It=>{D3.start(800+K,()=>{V_=!1}),it(!1),Ce&&Dt&&Ce(It),De.start(dt.transitions.duration.shortest,()=>{be.current=!1})}),ut=It=>{be.current&&It.type!=="touchstart"||(Z&&Z.removeAttribute("title"),Ge.clear(),Mt.clear(),Y||V_&&X?Ge.start(V_?X:Y,()=>{Pt(It)}):Pt(It))},Ht=It=>{Ge.clear(),Mt.start(K,()=>{Je(It)})},{isFocusVisibleRef:Qt,onBlur:Or,onFocus:Ur,ref:Gr}=kw(),[,kn]=p.useState(!1),zn=It=>{Or(It),Qt.current===!1&&(kn(!1),Ht(It))},Io=It=>{Z||ae(It.currentTarget),Ur(It),Qt.current===!0&&(kn(!0),ut(It))},ms=It=>{be.current=!0;const Zr=Le.props;Zr.onTouchStart&&Zr.onTouchStart(It)},Bi=It=>{ms(It),Mt.clear(),De.clear(),nt(),Kt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",et.start(H,()=>{document.body.style.WebkitUserSelect=Kt.current,ut(It)})},ri=It=>{Le.props.onTouchEnd&&Le.props.onTouchEnd(It),nt(),Mt.start(ee,()=>{Je(It)})};p.useEffect(()=>{if(!Dt)return;function It(Zr){(Zr.key==="Escape"||Zr.key==="Esc")&&Je(Zr)}return document.addEventListener("keydown",It),()=>{document.removeEventListener("keydown",It)}},[Je,Dt]);const fl=fn(Le.ref,Gr,ae,r);!ke&&ke!==0&&(Dt=!1);const gs=p.useRef(),le=It=>{const Zr=Le.props;Zr.onMouseMove&&Zr.onMouseMove(It),dg={x:It.clientX,y:It.clientY},gs.current&&gs.current.update()},ye={},je=typeof ke=="string";N?(ye.title=!Dt&&je&&!q?ke:null,ye["aria-describedby"]=Dt?Zt:null):(ye["aria-label"]=je?ke:null,ye["aria-labelledby"]=Dt&&!je?Zt:null);const Ne=z({},ye,Be,Le.props,{className:Re(Be.className,Le.props.className),onTouchStart:ms,ref:fl},te?{onMouseMove:le}:{}),lt={};G||(Ne.onTouchStart=Bi,Ne.onTouchEnd=ri),q||(Ne.onMouseOver=W_(ut,Ne.onMouseOver),Ne.onMouseLeave=W_(Ht,Ne.onMouseLeave),_e||(lt.onMouseOver=ut,lt.onMouseLeave=Ht)),B||(Ne.onFocus=W_(Io,Ne.onFocus),Ne.onBlur=W_(zn,Ne.onBlur),_e||(lt.onFocus=Io,lt.onBlur=zn));const kt=p.useMemo(()=>{var It;let Zr=[{name:"arrow",enabled:!!fe,options:{element:fe,padding:4}}];return(It=Oe.popperOptions)!=null&&It.modifiers&&(Zr=Zr.concat(Oe.popperOptions.modifiers)),z({},Oe.popperOptions,{modifiers:Zr})},[fe,Oe]),Ft=z({},O,{isRtl:He,arrow:j,disableInteractive:_e,placement:me,PopperComponentProp:we,touch:be.current}),ft=Tfe(Ft),_t=(n=(a=Fe.popper)!=null?a:M.Popper)!=null?n:Afe,mt=(o=(s=(d=Fe.transition)!=null?d:M.Transition)!=null?s:$e)!=null?o:Ob,jt=(f=(u=Fe.tooltip)!=null?u:M.Tooltip)!=null?f:Mfe,Wt=(h=(g=Fe.arrow)!=null?g:M.Arrow)!=null?h:Ffe,er=_h(_t,z({},Oe,(y=ie.popper)!=null?y:$.popper,{className:Re(ft.popper,Oe==null?void 0:Oe.className,(_=(S=ie.popper)!=null?S:$.popper)==null?void 0:_.className)}),Ft),rn=_h(mt,z({},Te,(E=ie.transition)!=null?E:$.transition),Ft),Er=_h(jt,z({},(x=ie.tooltip)!=null?x:$.tooltip,{className:Re(ft.tooltip,(T=(I=ie.tooltip)!=null?I:$.tooltip)==null?void 0:T.className)}),Ft),sr=_h(Wt,z({},(R=ie.arrow)!=null?R:$.arrow,{className:Re(ft.arrow,(P=(C=ie.arrow)!=null?C:$.arrow)==null?void 0:P.className)}),Ft);return A.jsxs(p.Fragment,{children:[p.cloneElement(Le,Ne),A.jsx(_t,z({as:we??Y6,placement:me,anchorEl:te?{getBoundingClientRect:()=>({top:dg.y,left:dg.x,right:dg.x,bottom:dg.y,width:0,height:0})}:Z,popperRef:gs,open:Z?Dt:!1,id:Zt,transition:!0},lt,er,{popperOptions:kt,children:({TransitionProps:It})=>A.jsx(mt,z({timeout:dt.transitions.duration.shorter},It,rn,{children:A.jsxs(jt,z({},Er,{children:[ke,j?A.jsx(Wt,z({},sr,{ref:ve})):null]}))}))}))]})});function $fe(e){return wt("MuiSwitch",e)}const Ka=Ot("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Lfe=["className","color","edge","size","sx"],Dfe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:s}=e,d={root:["root",r&&`edge${Ue(r)}`,`size${Ue(n)}`],switchBase:["switchBase",`color${Ue(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=St(d,$fe,t);return z({},t,f)},Nfe=he("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ue(r.edge)}`],t[`size${Ue(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,[`& .${Ka.thumb}`]:{width:16,height:16},[`& .${Ka.switchBase}`]:{padding:4,[`&.${Ka.checked}`]:{transform:"translateX(16px)"}}}}]}),Bfe=he(aU,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Ka.input}`]:t.input},r.color!=="default"&&t[`color${Ue(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}),[`&.${Ka.checked}`]:{transform:"translateX(20px)"},[`&.${Ka.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ka.checked} + .${Ka.track}`]:{opacity:.5},[`&.${Ka.disabled} + .${Ka.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ka.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(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:{[`&.${Ka.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ir.alpha(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ka.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ir.lighten(e.palette[t].main,.62):ir.darken(e.palette[t].main,.55)}`}},[`&.${Ka.checked} + .${Ka.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),zfe=he("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}`})),qfe=he("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%"})),_U=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:d="medium",sx:f}=n,u=Ve(n,Lfe),h=z({},n,{color:o,edge:s,size:d}),g=Dfe(h),y=A.jsx(qfe,{className:g.thumb,ownerState:h});return A.jsxs(Nfe,{className:Re(g.root,a),sx:f,ownerState:h,children:[A.jsx(Bfe,z({type:"checkbox",icon:y,checkedIcon:y,ref:r,ownerState:h},u,{classes:z({},g,{root:g.switchBase})})),A.jsx(zfe,{className:g.track,ownerState:h})]})});function Ufe(e){return wt("MuiTab",e)}const Ju=Ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Vfe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Wfe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:s,selected:d,disabled:f}=e,u={root:["root",o&&s&&"labelIcon",`textColor${Ue(r)}`,n&&"fullWidth",a&&"wrapped",d&&"selected",f&&"disabled"],iconWrapper:["iconWrapper"]};return St(u,Ufe,t)},Hfe=he(cu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Ue(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Ju.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>z({},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,[`& > .${Ju.iconWrapper}`]:z({},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,[`&.${Ju.selected}`]:{opacity:1},[`&.${Ju.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ju.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ju.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ju.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ju.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)})),xU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:d,icon:f,iconPosition:u="top",indicator:h,label:g,onChange:y,onClick:_,onFocus:S,selected:E,selectionFollowsFocus:x,textColor:T="inherit",value:I,wrapped:R=!1}=n,P=Ve(n,Vfe),C=z({},n,{disabled:o,disableFocusRipple:s,selected:E,icon:!!f,iconPosition:u,label:!!g,fullWidth:d,textColor:T,wrapped:R}),O=Wfe(C),j=f&&g&&p.isValidElement(f)?p.cloneElement(f,{className:Re(O.iconWrapper,f.props.className)}):f,k=$=>{!E&&y&&y($,I),_&&_($)},M=$=>{x&&!E&&y&&y($,I),S&&S($)};return A.jsxs(Hfe,z({focusRipple:!s,className:Re(O.root,a),ref:r,role:"tab","aria-selected":E,disabled:o,onClick:k,onFocus:M,ownerState:C,tabIndex:E?0:-1},P,{children:[u==="top"||u==="start"?A.jsxs(p.Fragment,{children:[j,g]}):A.jsxs(p.Fragment,{children:[g,j]}),h]}))}),wU=p.createContext();function Gfe(e){return wt("MuiTable",e)}Ot("MuiTable",["root","stickyHeader"]);const Kfe=["className","component","padding","size","stickyHeader"],Qfe=e=>{const{classes:t,stickyHeader:r}=e;return St({root:["root",r&&"stickyHeader"]},Gfe,t)},Xfe=he("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>z({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":z({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),N3="table",SU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTable"}),{className:a,component:o=N3,padding:s="normal",size:d="medium",stickyHeader:f=!1}=n,u=Ve(n,Kfe),h=z({},n,{component:o,padding:s,size:d,stickyHeader:f}),g=Qfe(h),y=p.useMemo(()=>({padding:s,size:d,stickyHeader:f}),[s,d,f]);return A.jsx(wU.Provider,{value:y,children:A.jsx(Xfe,z({as:o,role:o===N3?null:"table",ref:r,className:Re(g.root,a),ownerState:h},u))})}),Vw=p.createContext();function Yfe(e){return wt("MuiTableBody",e)}Ot("MuiTableBody",["root"]);const Jfe=["className","component"],Zfe=e=>{const{classes:t}=e;return St({root:["root"]},Yfe,t)},epe=he("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),tpe={variant:"body"},B3="tbody",EU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableBody"}),{className:a,component:o=B3}=n,s=Ve(n,Jfe),d=z({},n,{component:o}),f=Zfe(d);return A.jsx(Vw.Provider,{value:tpe,children:A.jsx(epe,z({className:Re(f.root,a),as:o,ref:r,role:o===B3?null:"rowgroup",ownerState:d},s))})});function rpe(e){return wt("MuiTableCell",e)}const npe=Ot("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ape=["align","className","component","padding","scope","size","sortDirection","variant"],ope=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:s}=e,d={root:["root",r,s&&"stickyHeader",n!=="inherit"&&`align${Ue(n)}`,a!=="normal"&&`padding${Ue(a)}`,`size${Ue(o)}`]};return St(d,rpe,t)},ipe=he("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.padding!=="normal"&&t[`padding${Ue(r.padding)}`],r.align!=="inherit"&&t[`align${Ue(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>z({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?ir.lighten(ir.alpha(e.palette.divider,1),.88):ir.darken(ir.alpha(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",[`&.${npe.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})),Ma=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:s,padding:d,scope:f,size:u,sortDirection:h,variant:g}=n,y=Ve(n,ape),_=p.useContext(wU),S=p.useContext(Vw),E=S&&S.variant==="head";let x;s?x=s:x=E?"th":"td";let T=f;x==="td"?T=void 0:!T&&E&&(T="col");const I=g||S&&S.variant,R=z({},n,{align:a,component:x,padding:d||(_&&_.padding?_.padding:"normal"),size:u||(_&&_.size?_.size:"medium"),sortDirection:h,stickyHeader:I==="head"&&_&&_.stickyHeader,variant:I}),P=ope(R);let C=null;return h&&(C=h==="asc"?"ascending":"descending"),A.jsx(ipe,z({as:x,ref:r,className:Re(P.root,o),"aria-sort":C,scope:T,ownerState:R},y))});function spe(e){return wt("MuiTableHead",e)}Ot("MuiTableHead",["root"]);const lpe=["className","component"],upe=e=>{const{classes:t}=e;return St({root:["root"]},spe,t)},cpe=he("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),dpe={variant:"head"},z3="thead",CU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableHead"}),{className:a,component:o=z3}=n,s=Ve(n,lpe),d=z({},n,{component:o}),f=upe(d);return A.jsx(Vw.Provider,{value:dpe,children:A.jsx(cpe,z({as:o,className:Re(f.root,a),ref:r,role:o===z3?null:"rowgroup",ownerState:d},s))})});function fpe(e){return wt("MuiToolbar",e)}Ot("MuiToolbar",["root","gutters","regular","dense"]);const ppe=["className","component","disableGutters","variant"],hpe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return St({root:["root",!r&&"gutters",n]},fpe,t)},vpe=he("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})=>z({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),kv=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:s=!1,variant:d="regular"}=n,f=Ve(n,ppe),u=z({},n,{component:o,disableGutters:s,variant:d}),h=hpe(u);return A.jsx(vpe,z({as:o,className:Re(h.root,a),ref:r,ownerState:u},f))}),OU=ti(A.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),PU=ti(A.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),mpe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],gpe=p.forwardRef(function(t,r){var n,a,o,s,d,f,u,h;const{backIconButtonProps:g,count:y,disabled:_=!1,getItemAriaLabel:S,nextIconButtonProps:E,onPageChange:x,page:T,rowsPerPage:I,showFirstButton:R,showLastButton:P,slots:C={},slotProps:O={}}=t,j=Ve(t,mpe),k=Bc(),M=ie=>{x(ie,0)},$=ie=>{x(ie,T-1)},N=ie=>{x(ie,T+1)},B=ie=>{x(ie,Math.max(0,Math.ceil(y/I)-1))},q=(n=C.firstButton)!=null?n:_n,V=(a=C.lastButton)!=null?a:_n,G=(o=C.nextButton)!=null?o:_n,Y=(s=C.previousButton)!=null?s:_n,X=(d=C.firstButtonIcon)!=null?d:wk,H=(f=C.lastButtonIcon)!=null?f:Sk,te=(u=C.nextButtonIcon)!=null?u:PU,ne=(h=C.previousButtonIcon)!=null?h:OU,K=k?V:q,ee=k?G:Y,Ce=k?Y:G,se=k?q:V,Se=k?O.lastButton:O.firstButton,me=k?O.nextButton:O.previousButton,we=k?O.previousButton:O.nextButton,Oe=k?O.firstButton:O.lastButton;return A.jsxs("div",z({ref:r},j,{children:[R&&A.jsx(K,z({onClick:M,disabled:_||T===0,"aria-label":S("first",T),title:S("first",T)},Se,{children:k?A.jsx(H,z({},O.lastButtonIcon)):A.jsx(X,z({},O.firstButtonIcon))})),A.jsx(ee,z({onClick:$,disabled:_||T===0,color:"inherit","aria-label":S("previous",T),title:S("previous",T)},me??g,{children:k?A.jsx(te,z({},O.nextButtonIcon)):A.jsx(ne,z({},O.previousButtonIcon))})),A.jsx(Ce,z({onClick:N,disabled:_||(y!==-1?T>=Math.ceil(y/I)-1:!1),color:"inherit","aria-label":S("next",T),title:S("next",T)},we??E,{children:k?A.jsx(ne,z({},O.previousButtonIcon)):A.jsx(te,z({},O.nextButtonIcon))})),P&&A.jsx(se,z({onClick:B,disabled:_||T>=Math.ceil(y/I)-1,"aria-label":S("last",T),title:S("last",T)},Oe,{children:k?A.jsx(X,z({},O.firstButtonIcon)):A.jsx(H,z({},O.lastButtonIcon))}))]}))});function ype(e){return wt("MuiTablePagination",e)}const rb=Ot("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var q3;const bpe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_pe=he(Ma,{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}})),xpe=he(kv,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>z({[`& .${rb.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},[`& .${rb.actions}`]:{flexShrink:0,marginLeft:20}})),wpe=he("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Spe=he("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>z({},e.typography.body2,{flexShrink:0})),Epe=he(Uw,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>z({[`& .${rb.selectIcon}`]:t.selectIcon,[`& .${rb.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${rb.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Cpe=he(Ko,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ope=he("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>z({},e.typography.body2,{flexShrink:0}));function Ppe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function Rpe(e){return`Go to ${e} page`}const kpe=e=>{const{classes:t}=e;return St({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},ype,t)},U3=p.forwardRef(function(t,r){var n;const a=Et({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=gpe,backIconButtonProps:s,className:d,colSpan:f,component:u=Ma,count:h,disabled:g=!1,getItemAriaLabel:y=Rpe,labelDisplayedRows:_=Ppe,labelRowsPerPage:S="Rows per page:",nextIconButtonProps:E,onPageChange:x,onRowsPerPageChange:T,page:I,rowsPerPage:R,rowsPerPageOptions:P=[10,25,50,100],SelectProps:C={},showFirstButton:O=!1,showLastButton:j=!1,slotProps:k={},slots:M={}}=a,$=Ve(a,bpe),N=a,B=kpe(N),q=(n=k==null?void 0:k.select)!=null?n:C,V=q.native?"option":Cpe;let G;(u===Ma||u==="td")&&(G=f||1e3);const Y=xf(q.id),X=xf(q.labelId),H=()=>h===-1?(I+1)*R:R===-1?h:Math.min(h,(I+1)*R);return A.jsx(_pe,z({colSpan:G,ref:r,as:u,ownerState:N,className:Re(B.root,d)},$,{children:A.jsxs(xpe,{className:B.toolbar,children:[A.jsx(wpe,{className:B.spacer}),P.length>1&&A.jsx(Spe,{className:B.selectLabel,id:X,children:S}),P.length>1&&A.jsx(Epe,z({variant:"standard"},!q.variant&&{input:q3||(q3=A.jsx(Dw,{}))},{value:R,onChange:T,id:Y,labelId:X},q,{classes:z({},q.classes,{root:Re(B.input,B.selectRoot,(q.classes||{}).root),select:Re(B.select,(q.classes||{}).select),icon:Re(B.selectIcon,(q.classes||{}).icon)}),disabled:g,children:P.map(te=>p.createElement(V,z({},!xb(V)&&{ownerState:N},{className:B.menuItem,key:te.label?te.label:te,value:te.value?te.value:te}),te.label?te.label:te))})),A.jsx(Ope,{className:B.displayedRows,children:_({from:h===0?0:I*R+1,to:H(),count:h===-1?-1:h,page:I})}),A.jsx(o,{className:B.actions,backIconButtonProps:s,count:h,nextIconButtonProps:E,onPageChange:x,page:I,rowsPerPage:R,showFirstButton:O,showLastButton:j,slotProps:k.actions,slots:M.actions,getItemAriaLabel:y,disabled:g})]})}))});function Ipe(e){return wt("MuiTableRow",e)}const V3=Ot("MuiTableRow",["root","selected","hover","head","footer"]),jpe=["className","component","hover","selected"],Tpe=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return St({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},Ipe,t)},Ape=he("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,[`&.${V3.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V3.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ir.alpha(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}))`:ir.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),W3="tr",Rb=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableRow"}),{className:a,component:o=W3,hover:s=!1,selected:d=!1}=n,f=Ve(n,jpe),u=p.useContext(Vw),h=z({},n,{component:o,hover:s,selected:d,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),g=Tpe(h);return A.jsx(Ape,z({as:o,ref:r,className:Re(g.root,a),role:o===W3?null:"row",ownerState:h},f))}),Mpe=ti(A.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Fpe(e){return wt("MuiTableSortLabel",e)}const s2=Ot("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),$pe=["active","children","className","direction","hideSortIcon","IconComponent"],Lpe=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${Ue(r)}`]};return St(a,Fpe,t)},Dpe=he(cu,{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,[`& .${s2.icon}`]:{opacity:.5}},[`&.${s2.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${s2.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),Npe=he("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Ue(r.direction)}`]]}})(({theme:e,ownerState:t})=>z({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)"})),Bpe=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:s,direction:d="asc",hideSortIcon:f=!1,IconComponent:u=Mpe}=n,h=Ve(n,$pe),g=z({},n,{active:a,direction:d,hideSortIcon:f,IconComponent:u}),y=Lpe(g);return A.jsxs(Dpe,z({className:Re(y.root,s),component:"span",disableRipple:!0,ownerState:g,ref:r},h,{children:[o,f&&!a?null:A.jsx(Npe,{as:u,className:Re(y.icon),ownerState:g})]}))});function zpe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qpe(e,t,r,n={},a=()=>{}){const{ease:o=zpe,duration:s=300}=n;let d=null;const f=t[e];let u=!1;const h=()=>{u=!0},g=y=>{if(u){a(new Error("Animation cancelled"));return}d===null&&(d=y);const _=Math.min(1,(y-d)/s);if(t[e]=o(_)*(r-f)+f,_>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(g)};return f===r?(a(new Error("Element already at target position")),h):(requestAnimationFrame(g),h)}const Upe=["onChange"],Vpe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Wpe(e){const{onChange:t}=e,r=Ve(e,Upe),n=p.useRef(),a=p.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return Yo(()=>{const s=Cv(()=>{const f=n.current;o(),f!==n.current&&t(n.current)}),d=Ti(a.current);return d.addEventListener("resize",s),()=>{s.clear(),d.removeEventListener("resize",s)}},[t]),p.useEffect(()=>{o(),t(n.current)},[t]),A.jsx("div",z({style:Vpe,ref:a},r))}function Hpe(e){return wt("MuiTabScrollButton",e)}const Gpe=Ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Kpe=["className","slots","slotProps","direction","orientation","disabled"],Qpe=e=>{const{classes:t,orientation:r,disabled:n}=e;return St({root:["root",r,n&&"disabled"]},Hpe,t)},Xpe=he(cu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>z({width:40,flexShrink:0,opacity:.8,[`&.${Gpe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ype=p.forwardRef(function(t,r){var n,a;const o=Et({props:t,name:"MuiTabScrollButton"}),{className:s,slots:d={},slotProps:f={},direction:u}=o,h=Ve(o,Kpe),g=Bc(),y=z({isRtl:g},o),_=Qpe(y),S=(n=d.StartScrollButtonIcon)!=null?n:OU,E=(a=d.EndScrollButtonIcon)!=null?a:PU,x=Ai({elementType:S,externalSlotProps:f.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),T=Ai({elementType:E,externalSlotProps:f.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return A.jsx(Xpe,z({component:"div",className:Re(_.root,s),ref:r,role:null,ownerState:y,tabIndex:null},h,{children:u==="left"?A.jsx(S,z({},x)):A.jsx(E,z({},T))}))});function Jpe(e){return wt("MuiTabs",e)}const l2=Ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Zpe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],H3=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,G3=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,H_=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},ehe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:s,scrollButtonsHideMobile:d,classes:f}=e;return St({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Jpe,f)},the=he("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${l2.scrollButtons}`]:t.scrollButtons},{[`& .${l2.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>z({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${l2.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rhe=he("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})=>z({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"})),nhe=he("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})=>z({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ahe=he("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>z({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})),ohe=he(Wpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),K3={},RU=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTabs"}),a=ei(),o=Bc(),{"aria-label":s,"aria-labelledby":d,action:f,centered:u=!1,children:h,className:g,component:y="div",allowScrollButtonsMobile:_=!1,indicatorColor:S="primary",onChange:E,orientation:x="horizontal",ScrollButtonComponent:T=Ype,scrollButtons:I="auto",selectionFollowsFocus:R,slots:P={},slotProps:C={},TabIndicatorProps:O={},TabScrollButtonProps:j={},textColor:k="primary",value:M,variant:$="standard",visibleScrollbar:N=!1}=n,B=Ve(n,Zpe),q=$==="scrollable",V=x==="vertical",G=V?"scrollTop":"scrollLeft",Y=V?"top":"left",X=V?"bottom":"right",H=V?"clientHeight":"clientWidth",te=V?"height":"width",ne=z({},n,{component:y,allowScrollButtonsMobile:_,indicatorColor:S,orientation:x,vertical:V,scrollButtons:I,textColor:k,variant:$,visibleScrollbar:N,fixed:!q,hideScrollbar:q&&!N,scrollableX:q&&!V,scrollableY:q&&V,centered:u&&!q,scrollButtonsHideMobile:!_}),K=ehe(ne),ee=Ai({elementType:P.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:ne}),Ce=Ai({elementType:P.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:ne}),[se,Se]=p.useState(!1),[me,we]=p.useState(K3),[Oe,ie]=p.useState(!1),[Fe,ke]=p.useState(!1),[$e,Te]=p.useState(!1),[Be,Le]=p.useState({overflow:"hidden",scrollbarWidth:0}),dt=new Map,He=p.useRef(null),Z=p.useRef(null),ae=()=>{const Je=He.current;let ut;if(Je){const Qt=Je.getBoundingClientRect();ut={clientWidth:Je.clientWidth,scrollLeft:Je.scrollLeft,scrollTop:Je.scrollTop,scrollLeftNormalized:yne(Je,o?"rtl":"ltr"),scrollWidth:Je.scrollWidth,top:Qt.top,bottom:Qt.bottom,left:Qt.left,right:Qt.right}}let Ht;if(Je&&M!==!1){const Qt=Z.current.children;if(Qt.length>0){const Or=Qt[dt.get(M)];Ht=Or?Or.getBoundingClientRect():null}}return{tabsMeta:ut,tabMeta:Ht}},fe=to(()=>{const{tabsMeta:Je,tabMeta:ut}=ae();let Ht=0,Qt;if(V)Qt="top",ut&&Je&&(Ht=ut.top-Je.top+Je.scrollTop);else if(Qt=o?"right":"left",ut&&Je){const Ur=o?Je.scrollLeftNormalized+Je.clientWidth-Je.scrollWidth:Je.scrollLeft;Ht=(o?-1:1)*(ut[Qt]-Je[Qt]+Ur)}const Or={[Qt]:Ht,[te]:ut?ut[te]:0};if(isNaN(me[Qt])||isNaN(me[te]))we(Or);else{const Ur=Math.abs(me[Qt]-Or[Qt]),Gr=Math.abs(me[te]-Or[te]);(Ur>=1||Gr>=1)&&we(Or)}}),ve=(Je,{animation:ut=!0}={})=>{ut?qpe(G,He.current,Je,{duration:a.transitions.duration.standard}):He.current[G]=Je},be=Je=>{let ut=He.current[G];V?ut+=Je:(ut+=Je*(o?-1:1),ut*=o&&I6()==="reverse"?-1:1),ve(ut)},_e=()=>{const Je=He.current[H];let ut=0;const Ht=Array.from(Z.current.children);for(let Qt=0;QtJe){Qt===0&&(ut=Je);break}ut+=Or[H]}return ut},De=()=>{be(-1*_e())},Ge=()=>{be(_e())},Mt=p.useCallback(Je=>{Le({overflow:null,scrollbarWidth:Je})},[]),et=()=>{const Je={};Je.scrollbarSizeListener=q?A.jsx(ohe,{onChange:Mt,className:Re(K.scrollableX,K.hideScrollbar)}):null;const Ht=q&&(I==="auto"&&(Oe||Fe)||I===!0);return Je.scrollButtonStart=Ht?A.jsx(T,z({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:x,direction:o?"right":"left",onClick:De,disabled:!Oe},j,{className:Re(K.scrollButtons,j.className)})):null,Je.scrollButtonEnd=Ht?A.jsx(T,z({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ce},orientation:x,direction:o?"left":"right",onClick:Ge,disabled:!Fe},j,{className:Re(K.scrollButtons,j.className)})):null,Je},ot=to(Je=>{const{tabsMeta:ut,tabMeta:Ht}=ae();if(!(!Ht||!ut)){if(Ht[Y]ut[X]){const Qt=ut[G]+(Ht[X]-ut[X]);ve(Qt,{animation:Je})}}}),it=to(()=>{q&&I!==!1&&Te(!$e)});p.useEffect(()=>{const Je=Cv(()=>{He.current&&fe()});let ut;const Ht=Ur=>{Ur.forEach(Gr=>{Gr.removedNodes.forEach(kn=>{var zn;(zn=ut)==null||zn.unobserve(kn)}),Gr.addedNodes.forEach(kn=>{var zn;(zn=ut)==null||zn.observe(kn)})}),Je(),it()},Qt=Ti(He.current);Qt.addEventListener("resize",Je);let Or;return typeof ResizeObserver<"u"&&(ut=new ResizeObserver(Je),Array.from(Z.current.children).forEach(Ur=>{ut.observe(Ur)})),typeof MutationObserver<"u"&&(Or=new MutationObserver(Ht),Or.observe(Z.current,{childList:!0})),()=>{var Ur,Gr;Je.clear(),Qt.removeEventListener("resize",Je),(Ur=Or)==null||Ur.disconnect(),(Gr=ut)==null||Gr.disconnect()}},[fe,it]),p.useEffect(()=>{const Je=Array.from(Z.current.children),ut=Je.length;if(typeof IntersectionObserver<"u"&&ut>0&&q&&I!==!1){const Ht=Je[0],Qt=Je[ut-1],Or={root:He.current,threshold:.99},Ur=Io=>{ie(!Io[0].isIntersecting)},Gr=new IntersectionObserver(Ur,Or);Gr.observe(Ht);const kn=Io=>{ke(!Io[0].isIntersecting)},zn=new IntersectionObserver(kn,Or);return zn.observe(Qt),()=>{Gr.disconnect(),zn.disconnect()}}},[q,I,$e,h==null?void 0:h.length]),p.useEffect(()=>{Se(!0)},[]),p.useEffect(()=>{fe()}),p.useEffect(()=>{ot(K3!==me)},[ot,me]),p.useImperativeHandle(f,()=>({updateIndicator:fe,updateScrollButtons:it}),[fe,it]);const Dt=A.jsx(ahe,z({},O,{className:Re(K.indicator,O.className),ownerState:ne,style:z({},me,O.style)}));let Zt=0;const Kt=p.Children.map(h,Je=>{if(!p.isValidElement(Je))return null;const ut=Je.props.value===void 0?Zt:Je.props.value;dt.set(ut,Zt);const Ht=ut===M;return Zt+=1,p.cloneElement(Je,z({fullWidth:$==="fullWidth",indicator:Ht&&!se&&Dt,selected:Ht,selectionFollowsFocus:R,onChange:E,textColor:k,value:ut},Zt===1&&M===!1&&!Je.props.tabIndex?{tabIndex:0}:{}))}),nt=Je=>{const ut=Z.current,Ht=Dn(ut).activeElement;if(Ht.getAttribute("role")!=="tab")return;let Or=x==="horizontal"?"ArrowLeft":"ArrowUp",Ur=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&o&&(Or="ArrowRight",Ur="ArrowLeft"),Je.key){case Or:Je.preventDefault(),H_(ut,Ht,G3);break;case Ur:Je.preventDefault(),H_(ut,Ht,H3);break;case"Home":Je.preventDefault(),H_(ut,null,H3);break;case"End":Je.preventDefault(),H_(ut,null,G3);break}},Pt=et();return A.jsxs(the,z({className:Re(K.root,g),ownerState:ne,ref:r,as:y},B,{children:[Pt.scrollButtonStart,Pt.scrollbarSizeListener,A.jsxs(rhe,{className:K.scroller,ownerState:ne,style:{overflow:Be.overflow,[V?`margin${o?"Left":"Right"}`:"marginBottom"]:N?void 0:-Be.scrollbarWidth},ref:He,children:[A.jsx(nhe,{"aria-label":s,"aria-labelledby":d,"aria-orientation":x==="vertical"?"vertical":null,className:K.flexContainer,ownerState:ne,onKeyDown:nt,ref:Z,role:"tablist",children:Kt}),se&&Dt]}),Pt.scrollButtonEnd]}))});function ihe(e){return wt("MuiTextField",e)}Ot("MuiTextField",["root"]);const she=["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"],lhe={standard:zw,filled:yT,outlined:ST},uhe=e=>{const{classes:t}=e;return St({root:["root"]},ihe,t)},che=he(uU,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),i0=p.forwardRef(function(t,r){const n=Et({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:s,className:d,color:f="primary",defaultValue:u,disabled:h=!1,error:g=!1,FormHelperTextProps:y,fullWidth:_=!1,helperText:S,id:E,InputLabelProps:x,inputProps:T,InputProps:I,inputRef:R,label:P,maxRows:C,minRows:O,multiline:j=!1,name:k,onBlur:M,onChange:$,onFocus:N,placeholder:B,required:q=!1,rows:V,select:G=!1,SelectProps:Y,type:X,value:H,variant:te="outlined"}=n,ne=Ve(n,she),K=z({},n,{autoFocus:o,color:f,disabled:h,error:g,fullWidth:_,multiline:j,required:q,select:G,variant:te}),ee=uhe(K),Ce={};te==="outlined"&&(x&&typeof x.shrink<"u"&&(Ce.notched=x.shrink),Ce.label=P),G&&((!Y||!Y.native)&&(Ce.id=void 0),Ce["aria-describedby"]=void 0);const se=xf(E),Se=S&&se?`${se}-helper-text`:void 0,me=P&&se?`${se}-label`:void 0,we=lhe[te],Oe=A.jsx(we,z({"aria-describedby":Se,autoComplete:a,autoFocus:o,defaultValue:u,fullWidth:_,multiline:j,name:k,rows:V,maxRows:C,minRows:O,type:X,value:H,id:se,inputRef:R,onBlur:M,onChange:$,onFocus:N,placeholder:B,inputProps:T},Ce,I));return A.jsxs(che,z({className:Re(ee.root,d),disabled:h,error:g,fullWidth:_,ref:r,required:q,color:f,variant:te,ownerState:K},ne,{children:[P!=null&&P!==""&&A.jsx(cU,z({htmlFor:se,id:me},x,{children:P})),G?A.jsx(Uw,z({"aria-describedby":Se,id:se,labelId:me,value:H,input:Oe},Y,{children:s})):Oe,S&&A.jsx(bT,z({id:Se},y,{children:S}))]}))}),dhe=["getTrigger","target"];function fhe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const phe=typeof window<"u"?window:null;function kU(e={}){const{getTrigger:t=fhe,target:r=phe}=e,n=Ve(e,dhe),a=p.useRef(),[o,s]=p.useState(()=>t(a,n));return p.useEffect(()=>{const d=()=>{s(t(a,z({target:r},n)))};return d(),r.addEventListener("scroll",d,{passive:!0}),()=>{r.removeEventListener("scroll",d,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var fg={},u2={};const hhe=ou(Aae);var Q3;function yt(){return Q3||(Q3=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hhe}(u2)),u2}var X3;function vhe(){if(X3)return fg;X3=1;var e=vt();Object.defineProperty(fg,"__esModule",{value:!0}),fg.default=void 0;var t=e(yt()),r=gt();return fg.default=(0,t.default)((0,r.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"),fg}var mhe=vhe();const Ww=tt(mhe);var nb=function(){return nb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{t[r]=LU(e[r])}),t}function OT(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ph(e)&&ph(t)&&Object.keys(t).forEach(a=>{ph(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ph(e[a])?n[a]=OT(e[a],t[a],r):r.clone?n[a]=ph(t[a])?LU(t[a]):t[a]:n[a]=t[a]}),n}var DU={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{defaultProps:{fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0}},RaSimpleFormIterator:{defaultProps:{fullWidth:!0}},RaTranslatableInputs:{defaultProps:{fullWidth:!0}}}},yve=OT(DU,{palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}},components:{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}}}),bve=OT(DU,{palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}}),_ve=function(){var e=rt(),t=Kw(),r=t.darkTheme,n=t.defaultTheme,a=no("(prefers-color-scheme: dark)",{noSsr:!0}),o=$U(n||(a&&r?"dark":"light")),s=o[0],d=o[1],f=function(){d(s==="dark"?"light":"dark")},u=e("ra.action.toggle_theme",{_:"Toggle Theme"});return Ke.createElement(xa,{title:u,enterDelay:300},Ke.createElement(_n,{color:"inherit",onClick:f,"aria-label":u},s==="dark"?Ke.createElement(mve,null):Ke.createElement(pve,null)))},jk=function(){return jk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?p.createElement(kge,null):null,t&&p.createElement(_ve,null),p.createElement(Hhe,null))},Eve=p.createElement(Sve,null),Cve=p.createElement(MU,null),qy="RaAppBar",tf={appBar:"".concat(qy,"-appBar"),toolbar:"".concat(qy,"-toolbar"),menuButton:"".concat(qy,"-menuButton"),title:"".concat(qy,"-title")},Ove=he(Eoe,{name:qy,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(tf.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(tf.menuButton)]={marginRight:"0.2em"},t["& .".concat(tf.title)]={},t}),xg={},o4;function Pve(){if(o4)return xg;o4=1;var e=vt();Object.defineProperty(xg,"__esModule",{value:!0}),xg.default=void 0;var t=e(yt()),r=gt();return xg.default=(0,t.default)((0,r.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"),xg}var Rve=Pve();const kve=tt(Rve);var wg={},i4;function Ive(){if(i4)return wg;i4=1;var e=vt();Object.defineProperty(wg,"__esModule",{value:!0}),wg.default=void 0;var t=e(yt()),r=gt();return wg.default=(0,t.default)((0,r.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"),wg}var jve=Ive();const Tve=tt(jve);var ob=function(){return ob=Object.assign||function(e){for(var t,r=1,n=arguments.length;rC.getBoundingClientRect().bottom?P=I.lastChild:P=I.firstChild}P&&I===P.closest("ul")?a(T.dataset.index,f.current):(x.preventDefault(),x.stopPropagation()),T.classList.remove("drag-active"),document.removeEventListener("dragover",g)},E=function(x){x.preventDefault(),x.dataTransfer.dropEffect="move"};return p.createElement(nme,{key:o,draggable:a?"true":void 0,onDrag:a?_:void 0,onDragStart:a?y:void 0,onDragEnd:a?S:void 0,onDragOver:a?E:void 0,"data-index":s},p.createElement("label",{htmlFor:"switch_".concat(s)},p.createElement(_U,{checked:t,onChange:n,name:s,id:"switch_".concat(s),size:"small",sx:{mr:.5,ml:-.5}}),p.createElement(nr,{variant:"body2",component:"span"},p.createElement(ji,{label:r,source:o,resource:d}))),a&&p.createElement(rme,{className:"dragIcon",color:"disabled",fontSize:"small"}))},nme=he("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"}}}}),Zu=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nP?C=Zu(Zu(Zu(Zu([],d.slice(0,P),!0),[d[R]],!1),d.slice(P,R),!0),d.slice(R+1),!0):C=Zu(Zu(Zu(Zu([],d.slice(0,R),!0),d.slice(R+1,P+1),!0),[d[R]],!1),d.slice(P+1),!0),f(C),y(function(O){return C.filter(function(j){return O.includes(j.index)}).map(function(j){return j.index})})}},E=function(){y([])},x=function(){y(d.map(function(T){return T.index}))};return p.createElement(eo,{pt:.5},p.createElement(eo,{component:"ul",sx:{paddingInlineStart:0,m:0}},d.map(function(T){return p.createElement(UU,{key:T.index,source:T.source,label:T.label,index:T.index,selected:g.includes(T.index),onToggle:_,onMove:S})})),p.createElement(eo,{onDrop:function(T){return T.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},p.createElement(Bn,{size:"small",onClick:E},o("ra.inspector.hideAll",{_:"Hide All"})),p.createElement(Bn,{size:"small",onClick:x},o("ra.inspector.showAll",{_:"Show All"}))))},kg={},p4;function ome(){if(p4)return kg;p4=1;var e=vt();Object.defineProperty(kg,"__esModule",{value:!0}),kg.default=void 0;var t=e(yt()),r=gt();return kg.default=(0,t.default)((0,r.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"),kg}var ime=ome();const sme=tt(ime);var Ig={},h4;function lme(){if(h4)return Ig;h4=1;var e=vt();Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.default=void 0;var t=e(yt()),r=gt();return Ig.default=(0,t.default)((0,r.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"),Ig}var ume=lme();const cme=tt(ume);var dme=function(){var e=rt();return Kq("ra.configurable.inspector.title",{_:"Inspector"}),p.createElement(nr,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},VU=function(){var e=Wj(),t=e.isEnabled,r=e.disable,n=e.title,a=e.titleOptions,o=e.editor,s=e.preferenceKey,d=p.useRef(!1),f=oee(s),u=ei(),h=rt(),g=p.useState(0),y=g[0],_=g[1],S=_a("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8,y:8}),E=S[0],x=S[1],T=p.useState(),I=T[0],R=T[1],P=function(j){var k=document==null?void 0:document.elementFromPoint(j.clientX,j.clientY);(k==null?void 0:k.id)==="inspector-dialog-title"&&(d.current=!0,j.dataTransfer.effectAllowed="move",j.dataTransfer.setData("inspector",""),setTimeout(function(){j.target.classList.add("hide")},0),R({x:j.clientX-E.x,y:j.clientY-E.y}))},C=function(j){d.current&&I&&(x({x:j.clientX-I.x,y:j.clientY-I.y}),j.target.classList.remove("hide"),d.current=!1)};p.useEffect(function(){if(t){var j=function(k){k.dataTransfer.types.includes("inspector")&&k.preventDefault()};return document==null||document.addEventListener("dragover",j),function(){document==null||document.removeEventListener("dragover",j)}}},[t]),p.useEffect(function(){if(t){var j=function(){window==null||window.requestAnimationFrame(function(){x(function(k){return{x:Math.min(k.x,(document==null?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8),y:Math.min(k.y,(window==null?void 0:window.innerHeight)-50)}})})};return j(),window==null||window.addEventListener("resize",j),function(){window==null||window.removeEventListener("resize",j)}}},[t,x,u.breakpoints.values.sm]);var O=function(){f(),_(function(j){return j+1})};return t?p.createElement(fme,{className:ib.modal,elevation:3,draggable:!0,onDragStart:P,onDragEnd:C,sx:{left:E.x,top:E.y}},p.createElement("div",{className:ib.title},p.createElement(nr,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&h(n,a)),p.createElement("span",{id:"inspector-toolbar"}),s&&p.createElement(_n,{"aria-label":h("ra.action.remove"),onClick:O,size:"small"},p.createElement(cme,{fontSize:"inherit"})),p.createElement(_n,{"aria-label":h("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},p.createElement(sme,{fontSize:"inherit"}))),p.createElement("div",{className:ib.content,key:y},p.createElement(Gq,{value:s},o||p.createElement(dme,null)))):null},h1="RaInspector",ib={modal:"".concat(h1,"-modal"),title:"".concat(h1,"-title"),content:"".concat(h1,"-content")},fme=he(zc,{name:h1,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(ib.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(ib.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});VU.displayName="Inspector";var xc=function(){return xc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var f=n===!1?p.createElement(zU,ix({title:r,defaultTitle:t},a)):p.createElement(hme,ix({title:r,defaultTitle:t,preferenceKey:n},a));return p.createElement(p.Fragment,null,zx.createPortal(f,s))},Fk=function(){return Fk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0,$=Xge(x===!1||x===void 0?void 0:!x,u||!M||j||k);Vj(g==="submit"&&(f&&(f.onSuccess||f.onError)||y),'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 N=p.useCallback(function(V){return O4(void 0,void 0,void 0,function(){var G;return P4(this,function(Y){switch(Y.label){case 0:return P!=null&&P.save?[4,P.save(V,lb(lb({},f),{transform:y}))]:[3,2];case 1:G=Y.sent(),Y.label=2;case 2:return G!=null&&bq(G,R.setError),[2]}})})},[R.setError,P,f,y]),B=p.useCallback(function(V){return O4(void 0,void 0,void 0,function(){return P4(this,function(G){switch(G.label){case 0:return d&&d(V),V.defaultPrevented?[2]:g!=="button"?[3,2]:(V.stopPropagation(),[4,R.handleSubmit(N)(V)]);case 1:G.sent(),G.label=2;case 2:return[2]}})})},[d,g,R,N]),q=s&&I(s,{_:s});return p.createElement(Qge,lb({variant:S,type:g,color:r,"aria-label":q,disabled:$,onClick:B},T),k?p.createElement(Ov,{sx:Hge,size:14,thickness:3,color:"inherit"}):a,q)},Hge={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},Gge=p.createElement(Vge,null),Kge="RaSaveButton",Qge=he(Bn,{name:Kge,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}),Xge=function(e,t){return typeof e>"u"?t:e},Yge=function(){return Ke.createElement(Zge,{onClick:eye,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Jge="RaSkipNavigationButton",Zge=he(qr,{name:Jge,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})}}}),eye=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jk=function(){return Jk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=a-1,color:"primary"},p.createElement(Sye,{fontSize:"small"})))},Cye=p.forwardRef(function(e,t){var r=e.children,n=e.disabled,a=e.disableReordering,o=e.disableRemove,s=e.getItemLabel,d=e.index,f=e.inline,u=e.record,h=e.removeButton,g=h===void 0?p.createElement(gye,null):h,y=e.reOrderButtons,_=y===void 0?p.createElement(Eye,null):y,S=vr(e);if(!S)throw new Error("SimpleFormIteratorItem must be used in a ResourceContextProvider or be passed a resource prop.");var E=Jw(),x=E.total,T=E.reOrder,I=E.remove,R=function(k){return typeof o=="boolean"?o:o&&o(k)},P=p.useMemo(function(){return{index:d,total:x,reOrder:function(k){return T(d,k)},remove:function(){return I(d)}}},[d,x,T,I]),C=typeof s=="function"?s(d):s,O=Uj(),j=p.useMemo(function(){return{getSource:function(k){return k?O.getSource("".concat(d,".").concat(k)):O.getSource("".concat(d))},getLabel:function(k){return O.getLabel(k)}}},[d,O]);return p.createElement(s9.Provider,{value:P},p.createElement("li",{className:Qn.line,ref:t},C!=null&&C!==!1&&p.createElement(nr,{variant:"body2",className:Qn.index},C),p.createElement(vw,{value:j},p.createElement(Mc,{value:u},p.createElement(Pv,{className:Re(Qn.form),direction:f?{xs:"column",sm:"row"}:"column",gap:f?2:0},r))),!n&&p.createElement("span",{className:Qn.action},!a&&_,!R(u)&&g)))}),qg={},j4;function Oye(){if(j4)return qg;j4=1;var e=vt();Object.defineProperty(qg,"__esModule",{value:!0}),qg.default=void 0;var t=e(yt()),r=gt();return qg.default=(0,t.default)((0,r.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),qg}var Pye=Oye();const Rye=tt(Pye);var aI=function(){return aI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var Ce=N[0];Ce.id;var se=Fye(Ce,["id"]);K.current=se;for(var Se in K.current)K.current[Se]=null}var me=p.useCallback(function(ke){ke===void 0&&(ke=void 0);var $e=ke;ke==null&&($e=K.current,p.Children.count(s)===1&&p.isValidElement(p.Children.only(s))&&!p.Children.only(s).props.source&&!p.Children.only(s).type!==Q2?$e="":($e=$e||{},p.Children.forEach(s,function(Te){var Be;p.isValidElement(Te)&&Te.type!==Q2&&Te.props.source&&($e[Te.props.source]=(Be=Te.props.defaultValue)!==null&&Be!==void 0?Be:null)}))),$($e),Y("".concat(C,".").concat(N.length),{defaultValue:$e})},[$,s,Y,C,N.length]),we=p.useCallback(function(ke,$e){B(ke,$e)},[B]),Oe=p.useCallback(function(){V([]),k(!1)},[V]),ie=xr(ne,C),Fe=p.useMemo(function(){return{total:N.length,add:me,remove:ee,reOrder:we,source:C}},[me,N.length,we,ee,C]);return N?p.createElement(i9.Provider,{value:Fe},p.createElement($ye,{className:Re(d,R&&"fullwidth",u&&"disabled"),sx:P},p.createElement("ul",{className:Qn.list},N.map(function(ke,$e){return p.createElement(Cye,{key:ke.id,disabled:u,disableRemove:S,disableReordering:E,fields:N,getItemLabel:I,index:$e,onRemoveField:ee,onReorder:we,record:ie&&ie[$e]||{},removeButton:a,reOrderButtons:o,resource:f,inline:x},s)})),!u&&!(g&&(y||S))&&p.createElement("div",{className:Qn.buttons},!g&&p.createElement("div",{className:Qn.add},n),N.length>0&&!y&&!S&&p.createElement("div",{className:Qn.clear},p.createElement(PT,{isOpen:j,title:te("ra.action.clear_array_input"),content:te("ra.message.clear_array_input"),onConfirm:Oe,onClose:function(){return k(!1)}}),p.createElement(Mye,{onClick:function(){return k(!0)}}))))):null},$ye=he("div",{name:Vs,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,a=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(Qn.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(a.palette.divider)},r[a.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(Qn.index)]=(n={display:"flex",alignItems:"top",marginRight:a.spacing(1),marginTop:a.spacing(1)},n[a.breakpoints.down("md")]={display:"none"},n),t["& .".concat(Qn.form)]={},t["&.fullwidth > ul > li > .".concat(Qn.form)]={flex:2},t["& .".concat(Qn.inline)]={flexDirection:"row",columnGap:"1em"},t["& .".concat(Qn.action)]={marginTop:a.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(Qn.buttons)]={display:"flex"},t["& .".concat(Qn.add)]={borderBottom:"none"},t["& .".concat(Qn.clear)]={borderBottom:"none"},t["& .".concat(Qn.line,":hover > .").concat(Qn.action)]={visibility:"visible"},t}),Lye=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function d(h){try{u(n.next(h))}catch(g){s(g)}}function f(h){try{u(n.throw(h))}catch(g){s(g)}}function u(h){h.done?o(h.value):a(h.value).then(d,f)}u((n=n.apply(e,t||[])).next())})},Dye=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(u){return function(h){return f([u,h])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]"u")throw new Error("DatagridRow expects an id prop");var P=d9(),C=rt(),O=Sr(e);if(!O)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var j=vr(e),k=lu(e),M=k.hasShow||k.hasEdit;if(!j)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var $=(!P||!P.isRowExpandable||P.isRowExpandable(O))&&s,N=eJ(j,g,P&&P.expandSingle),B=N[0],q=N[1],V=p.useState(function(){return A4($,a,f)}),G=V[0],Y=V[1];p.useEffect(function(){var ee=A4($,a,f);ee!==G&&Y(ee)},[$,G,a,f]);var X=ul(),H=p.useCallback(function(ee){q(),ee.stopPropagation()},[q]),te=p.useCallback(function(ee){!I||!y||(y(g,ee),ee.stopPropagation())},[g,y,I]),ne=Pq(),K=p.useCallback(function(ee){return Qye(void 0,void 0,void 0,function(){var Ce;return Xye(this,function(se){switch(se.label){case 0:return ee.persist(),[4,ne({record:O,resource:j,link:typeof _=="function"?function(Se,me){return _(Se.id,me,Se)}:_})];case 1:return Ce=se.sent(),_==="expand"?(H(ee),[2]):_==="toggleSelection"?(te(ee),[2]):Ce===!1||Ce==null?[2]:(X(Ce,{state:{_scrollToTop:!0}}),[2])}})})},[O,j,_,X,H,te,ne]);return Ke.createElement(Ke.Fragment,null,Ke.createElement(Rb,lI({ref:t,className:Re(o,(r={},r[zt.expandable]=$,r[zt.selectable]=I,r[zt.clickableRow]=_??M,r)),key:g,style:x,hover:h,onClick:K},R),s&&Ke.createElement(Ma,{padding:"none",className:zt.expandIconCell},$&&Ke.createElement(Kye,{className:Re(zt.expandIcon,(n={},n[zt.expanded]=B,n)),expanded:B,onClick:H,expandContentId:"".concat(g,"-expand")})),f&&Ke.createElement(Ma,{padding:"checkbox"},Ke.createElement(cv,{"aria-label":C("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(zt.checkbox),checked:I&&E,onClick:te,disabled:!I})),Ke.Children.map(a,function(ee,Ce){return p.isValidElement(ee)?Ke.createElement(c9,{key:"".concat(g,"-").concat(ee.props.source||Ce),className:Re("column-".concat(ee.props.source),zt.rowCell),record:O,field:ee,resource:j}):null})),$&&B&&Ke.createElement(Rb,{key:"".concat(g,"-expand"),id:"".concat(g,"-expand"),className:zt.expandedPanel},Ke.createElement(Ma,{colSpan:G},p.isValidElement(s)?s:p.createElement(s))))}),Yye=function(e,t){e.children,e.expand;var r=uI(e,["children","expand"]);t.children,t.expand;var n=uI(t,["children","expand"]);return xz(r,n)},p9=p.memo(f9,Yye);p9.displayName="PureDatagridRow";var _x=function(){return _x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=s&&(_=o,S=!1,u=new e(u));e:for(;++y0&&R.length>0&&R.every(function(P){return _.includes(P)}),onChange:I,onClick:function(P){return P.stopPropagation()}})),p.Children.map(t,function(P,C){return p.isValidElement(P)?p.createElement(nbe,{className:Re(zt.headerCell,"column-".concat(P.props.source)),sort:h,field:P,isSorting:(h==null?void 0:h.field)===(P.props.sortBy||P.props.source),key:P.props.source||C,updateSort:T||void 0}):null})))};m9.displayName="DatagridHeader";var mbe=function(e){var t=e.children,r=e.value;return Ke.createElement(TT.Provider,{value:r},t)},Vg={},L4;function gbe(){if(L4)return Vg;L4=1;var e=vt();Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=void 0;var t=e(yt()),r=gt();return Vg.default=(0,t.default)((0,r.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"),Vg}var ybe=gbe();const bbe=tt(ybe);var dI=function(){return dI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?p.createElement(p.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",p.createElement(qr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},jb=function(){return jb=Object.assign||function(e){for(var t,r=1,n=arguments.length;rk?M=ec(ec(ec(ec([],f.slice(0,k),!0),[f[j]],!1),f.slice(k,j),!0),f.slice(j+1),!0):M=ec(ec(ec(ec([],f.slice(0,j),!0),f.slice(j+1,k+1),!0),[f[j]],!1),f.slice(k+1),!0),u(M),_(function($){return M.filter(function(N){return $.includes(N.index)}).map(function(N){return N.index})})}};return p.createElement(p.Fragment,null,E?p.createElement(xa,{title:x},p.createElement(_n,wx({"aria-label":x,color:"primary",onClick:T,size:"large"},q4(e)),p.createElement(z4,null))):p.createElement(Abe,wx({size:"small",onClick:T,startIcon:p.createElement(z4,null)},q4(e)),x),p.createElement(xT,{open:!!o,anchorEl:o,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},p.createElement(eo,{component:"ul",p:1,my:0},f.map(function(C){return p.createElement(UU,{key:C.index,source:C.source,label:C.label,index:C.index,selected:y.includes(C.index),onToggle:R,onMove:P})}))))},Abe=he(Bn,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),q4=function(e){e.resource,e.preferenceKey;var t=Tbe(e,["resource","preferenceKey"]);return t},Mbe=function(e){var t,r=e.filterElement,n=e.handleHide,a=e.className,o=vr(e),s=rt();return p.createElement(Fbe,{"data-source":r.props.source,className:Re("filter-field",a)},p.cloneElement(r,{resource:o,record:$be,size:(t=r.props.size)!==null&&t!==void 0?t:"small",helperText:!1,defaultValue:void 0}),!r.props.alwaysOn&&p.createElement(_n,{className:Re("hide-filter",Sx.hideButton),onClick:n,"data-key":r.props.source,title:s("ra.action.remove_filter"),size:"small"},p.createElement(l9,null)),p.createElement("div",{className:Sx.spacer}," "))},fI="RaFilterFormInput",Sx={spacer:"".concat(fI,"-spacer"),hideButton:"".concat(fI,"-hideButton")},Fbe=he("div",{name:fI,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"},t[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(Sx.spacer)]={width:r.spacing(2)},t["& .".concat(Sx.hideButton)]={marginBottom:r.spacing(1)},t}),$be={},Zw=p.createContext(void 0),Oc=function(){return Oc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1] element instead.")})},[r]);var h=function(){if(!r)return[];var _=o.getValues();return r.filter(function(S){var E=xr(_,S.props.source);return S.props.alwaysOn||f[S.props.source]||!x9(E)})},g=p.useCallback(function(_){return u(_.currentTarget.dataset.key)},[u]),y=p.useMemo(function(){return{getSource:function(_){return _},getLabel:function(_){return"resources.".concat(a,".fields.").concat(_)}}},[a]);return p.createElement(vw,{value:y},p.createElement(Wbe,Oc({className:t},qbe(n),{onSubmit:zbe}),h().map(function(_){return p.createElement(Mbe,{key:_.key||_.props.source,filterElement:_,handleHide:g,resource:a,className:Ex.filterFormInput})}),p.createElement("div",{className:Ex.clearFix})))},zbe=function(e){return e.preventDefault(),!1},qbe=function(e){e.hasCreate,e.resource;var t=MT(e,["hasCreate","resource"]);return t},Ube=function(e,t){return Oc(Oc({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return ew(Oc({},r),n.props.source,n.props.defaultValue)},{})),e)},Vbe=function(e){return e.preventDefault(),e.stopPropagation(),!1},pI="RaFilterForm",Ex={clearFix:"".concat(pI,"-clearFix"),filterFormInput:"".concat(pI,"-filterFormInput")},Wbe=he("form",{name:pI,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(Ex.clearFix)]={clear:"right"},t["& .".concat(Ex.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),Hbe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=_9(e,a,t),n},(r=bz(t))!==null&&r!==void 0?r:{})},_9=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return xr(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var s,d=_9(e[t],o,(s=(r||{})[t])!==null&&s!==void 0?s:{});return a[o]=d,a},{});return Object.keys(n).length?n:""}return xr(r,t,"")},x9=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return x9(e[t])}):!1},Hg={},U4;function Gbe(){if(U4)return Hg;U4=1;var e=vt();Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.default=void 0;var t=e(yt()),r=gt();return Hg.default=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Hg}var Kbe=Gbe();const dv=tt(Kbe);var Gg={},V4;function Qbe(){if(V4)return Gg;V4=1;var e=vt();Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.default=void 0;var t=e(yt()),r=gt();return Gg.default=(0,t.default)((0,r.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd"),Gg}var Xbe=Qbe();const Ybe=tt(Xbe);var Kg={},W4;function Jbe(){if(W4)return Kg;W4=1;var e=vt();Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.default=void 0;var t=e(yt()),r=gt();return Kg.default=(0,t.default)((0,r.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove"),Kg}var Zbe=Jbe();const e0e=tt(Zbe);var Qg={},H4;function t0e(){if(H4)return Qg;H4=1;var e=vt();Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=void 0;var t=e(yt()),r=gt();return Qg.default=(0,t.default)((0,r.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder"),Qg}var r0e=t0e();const n0e=tt(r0e);var Xg={},G4;function a0e(){if(G4)return Xg;G4=1;var e=vt();Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var t=e(yt()),r=gt();return Xg.default=(0,t.default)((0,r.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Xg}var o0e=a0e();const i0e=tt(o0e);var Yg={},K4;function s0e(){if(K4)return Yg;K4=1;var e=vt();Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.default=void 0;var t=e(yt()),r=gt();return Yg.default=(0,t.default)((0,r.jsx)("path",{d:"M19 5v14H5V5zm0-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-2"}),"CheckBoxOutlineBlank"),Yg}var l0e=s0e();const u0e=tt(l0e);var Jg={},Q4;function c0e(){if(Q4)return Jg;Q4=1;var e=vt();Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.default=void 0;var t=e(yt()),r=gt();return Jg.default=(0,t.default)((0,r.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),Jg}var d0e=c0e();const f0e=tt(d0e);var p0e=p.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,s=e.displayed,d=vr(e),f=p.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),u=p.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return p.createElement(Ko,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:s?u:f,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":s},p.createElement(ef,null,s?p.createElement(f0e,{fontSize:"small"}):p.createElement(u0e,{fontSize:"small"})),p.createElement(xh,null,p.createElement(ji,{label:r.props.label,source:r.props.source,resource:d})))}),FT=function(e){return _a("".concat(e,".savedQueries"),[])},$T=function(e){return Array.isArray(e)?e.filter(function(t){return h0e(t)}):[]},h0e=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")},v0e=function(e){var t=e.open,r=e.onClose,n=rt(),a=La(),o=a.resource,s=a.filterValues,d=a.displayedFilters,f=a.sort,u=a.perPage,h=FT(o),g=h[0],y=h[1],_=p.useState(""),S=_[0],E=_[1],x=function(R){E(R.target.value)},T=function(R){R.preventDefault(),I()},I=function(){var R={label:S,value:{filter:s,sort:f,perPage:u,displayedFilters:d}},P=$T(g);y(P.concat(R)),E(""),r()};return p.createElement(n0,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},p.createElement(o0,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),p.createElement(a0,null,p.createElement("form",{onSubmit:T},p.createElement(i0,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:S,onChange:x}))),p.createElement(gT,null,p.createElement(Bn,{onClick:r},n("ra.action.cancel")),p.createElement(Bn,{onClick:I,color:"primary"},n("ra.action.save"))))},X4=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var h=FT(f||"")[0],g=ul(),y=La(),_=y.displayedFilters,S=_===void 0?{}:_,E=y.filterValues,x=y.perPage,T=y.setFilters,I=y.showFilter,R=y.hideFilter,P=y.sort,C=!ki(E,{}),O=$T(h),j=O.some(function(we){return ki(we.value,{filter:E,sort:P,perPage:x,displayedFilters:S})}),k=p.useState(!1),M=k[0],$=k[1],N=p.useRef();if(d===void 0)throw new Error("The component requires the prop to be set");var B=d.filter(function(we){return!we.props.alwaysOn}),q=p.useCallback(function(we){we.preventDefault(),$(!0),N.current=we.currentTarget},[N,$]),V=p.useCallback(function(){$(!1)},[$]),G=p.useCallback(function(we){var Oe=we.source,ie=we.defaultValue;I(Oe,ie===""?void 0:ie),setTimeout(function(){var Fe=document.querySelector("input[name='".concat(Oe,"']"));Fe&&Fe.focus()},50),$(!1)},[I,$]),Y=p.useCallback(function(we){var Oe=we.source;R(Oe),$(!1)},[R,$]),X=p.useState(!1),H=X[0],te=X[1],ne=function(){te(!1)},K=function(){$(!1),te(!0)},ee=p.useState(!1),Ce=ee[0],se=ee[1],Se=function(){se(!1)},me=function(){$(!1),se(!0)};return B.length===0&&O.length===0&&!C?null:p.createElement(_0e,hI({className:r},y0e(s)),p.createElement(qr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:q,variant:o,size:a},p.createElement(i0e,null)),p.createElement(qw,{open:M,anchorEl:N.current,onClose:V},B.map(function(we,Oe){return p.createElement(p0e,{key:we.props.source,filter:we,displayed:!!S[we.props.source],resource:f,onShow:G,onHide:Y,autoFocus:Oe===0})}),(C||O.length>0)&&p.createElement(Cb,null),O.map(function(we,Oe){return ki(we.value,{filter:E,sort:P,perPage:x,displayedFilters:S})?p.createElement(Ko,{onClick:me,key:Oe},p.createElement(ef,null,p.createElement(e0e,{fontSize:"small"})),p.createElement(xh,null,u("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:we.label}))):p.createElement(Ko,{onClick:function(){var ie,Fe;g({search:Zh.stringify({filter:JSON.stringify(we.value.filter),sort:(ie=we.value.sort)===null||ie===void 0?void 0:ie.field,order:(Fe=we.value.sort)===null||Fe===void 0?void 0:Fe.order,page:1,perPage:we.value.perPage,displayedFilters:JSON.stringify(we.value.displayedFilters)})}),$(!1)},key:Oe},p.createElement(ef,null,p.createElement(n0e,{fontSize:"small"})),p.createElement(xh,null,we.label))}),C&&!j&&!n&&p.createElement(Ko,{onClick:K},p.createElement(ef,null,p.createElement(Ybe,{fontSize:"small"})),p.createElement(xh,null,u("ra.saved_queries.new_label",{_:"Save current query..."}))),C&&p.createElement(Ko,{onClick:function(){T({},{}),$(!1)}},p.createElement(ef,null,p.createElement(dv,{fontSize:"small"})),p.createElement(xh,null,u("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&p.createElement(p.Fragment,null,p.createElement(v0e,{open:H,onClose:ne}),p.createElement(m0e,{open:Ce,onClose:Se})))},y0e=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=w9(e,["displayedFilters","filterValues","showFilter"]);return t},b0e="RaFilterButton",_0e=he("div",{name:b0e,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),Zg={},Y4;function x0e(){if(Y4)return Zg;Y4=1;var e=vt();Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=void 0;var t=e(yt()),r=gt();return Zg.default=(0,t.default)((0,r.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"),Zg}var w0e=x0e();const S0e=tt(w0e);var vI=function(){return vI=Object.assign||function(e){for(var t,r=1,n=arguments.length;rE-1)throw new Error(_("ra.navigation.page_out_of_boundaries",{page:O+1}));g(O+1)},[E,g,_]),T=p.useCallback(function(C){y(C.target.value)},[y]),I=p.useCallback(function(C){var O=C.from,j=C.to,k=C.count;return k===-1&&d?_("ra.navigation.partial_page_range_info",{offsetBegin:O,offsetEnd:j,_:"%{from}-%{to} of more than %{to}"}):_("ra.navigation.page_range_info",{offsetBegin:O,offsetEnd:j,total:k===-1?j:k,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[_,d]),R=p.useCallback(function(C){return _("ra.navigation.".concat(C),{_:"Go to ".concat(C," page")})},[_]);if(s)return p.createElement(kv,{variant:"dense"});if(h===0||f<1||h!=null&&f>E)return null;if(S)return p.createElement(U3,Cx({count:h??-1,rowsPerPage:u,page:f-1,onPageChange:x,rowsPerPageOptions:k0e,component:"span",labelDisplayedRows:I},vb(a)));var P=n||(!s&&h!=null?E0e:void 0);return p.createElement(U3,Cx({count:h??-1,rowsPerPage:u,page:f-1,onPageChange:x,onRowsPerPageChange:T,ActionsComponent:P,nextIconButtonProps:{disabled:!d},component:"span",labelRowsPerPage:_("ra.navigation.page_rows_per_page"),labelDisplayedRows:I,getItemAriaLabel:R,rowsPerPageOptions:r},vb(a)))}),R0e=[5,10,25,50],k0e=[],Ox=function(){return Ox=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof me.target.value>"u")){var we=me.target,Oe=we.valueAsDate!==void 0&&we.valueAsDate!==null&&!isNaN(new Date(we.valueAsDate).getTime())?S?S(we.valueAsDate):we.valueAsDate:S?S(we.value):Y_(we.value);Oe!==""&&Oe!=null&&(C.onChange(Oe),B.current=!0)}},H=function(me){h&&h(me),Y.current=!0},te=function(){if(Y.current=!1,!!q.current){var me=q.current.valueAsDate!==void 0&&q.current.valueAsDate!==null&&!isNaN(new Date(q.current.valueAsDate).getTime())?S?S(q.current.valueAsDate):Y_(q.current.valueAsDate):S?S(q.current.value):Y_(q.current.value);me!==C.value&&C.onChange(me??""),G&&G()}},ne=O.error,K=O.invalid,ee=s!==!1||K,Ce=C.ref,se=C.name,Se=ree([Ce,q]);return p.createElement(i0,Ox({id:j,inputRef:Se,name:se,defaultValue:a(V.current),key:$,type:"datetime-local",onChange:X,onFocus:H,onBlur:te,className:Re("ra-input","ra-input-".concat(g),t),size:"small",variant:x,margin:d,error:K,disabled:T||I,readOnly:I,helperText:ee?p.createElement(Sf,{error:ne==null?void 0:ne.message,helperText:s}):null,label:p.createElement(ji,{label:o,source:g,resource:y,isRequired:k}),InputLabelProps:M0e},Tv(R)))},E9=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},T0e=E9(4),X_=E9(2),Z4=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=T0e(e.getFullYear()),r=X_(e.getMonth()+1),n=X_(e.getDate()),a=X_(e.getHours()),o=X_(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},A0e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,M0e={shrink:!0},Y_=function(e){return e==null||e===""?"":e instanceof Date?Z4(e):A0e.test(e)?e:Z4(new Date(e))},Px=function(){return Px=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof Oe.target.value>"u")){var ie=Oe.target;ne(ie.value);var Fe=ie.valueAsNumber!==void 0&&ie.valueAsNumber!==null&&!isNaN(ie.valueAsNumber)?y?y(ie.valueAsNumber):ie.valueAsNumber:y?y(ie.value):B0e(ie.value);$.onChange(Fe)}},Ce=function(Oe){g&&g(Oe),K.current=!0},se=function(){Y&&Y(),K.current=!1;var Oe=o($.value);ne(function(ie){return ie!==Oe?Oe:ie})},Se=s!==!1||q,me=$.ref,we=tB($,["ref"]);return p.createElement(i0,oc({id:V},we,{inputRef:me,value:te,onChange:ee,onFocus:Ce,onBlur:se,className:Re("ra-input","ra-input-".concat(S),t),type:"number",size:"small",variant:P,error:q,disabled:O||j,readOnly:j,helperText:Se?p.createElement(Sf,{error:B==null?void 0:B.message,helperText:s}):null,label:p.createElement(ji,{label:d,source:S,resource:_,isRequired:G}),margin:f,inputProps:oc(oc({},X),{readOnly:j})},Tv(k)))},B0e=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},z0e=function(e){return e==null||isNaN(e)?"":e.toString()},ey={},rB;function q0e(){if(rB)return ey;rB=1;var e=vt();Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=void 0;var t=e(yt()),r=gt();return ey.default=(0,t.default)((0,r.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"),ey}var U0e=q0e();const O9=tt(U0e);var ty={},nB;function V0e(){if(nB)return ty;nB=1;var e=vt();Object.defineProperty(ty,"__esModule",{value:!0}),ty.default=void 0;var t=e(yt()),r=gt();return ty.default=(0,t.default)((0,r.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"),ty}var W0e=V0e();const H0e=tt(W0e);var Rx=function(){return Rx=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 p.createElement(Y0e,gI({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:p.createElement(Oh,{position:"end"},p.createElement(S0e,{color:"disabled"}))},size:"small"},r))},X0e="RaSearchInput",Y0e=he(Xn,{name:X0e,overridesResolver:function(e,t){return t.root}})({marginTop:0}),fv=function(){return fv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]"u"||!g.message?"ra.auth.sign_in_error":g.message,{type:"error",messageArgs:{_:typeof g=="string"?g:g&&g.message?g.message:void 0}})})};return p.createElement(a_e,{onSubmit:u,mode:"onChange",noValidate:!0,className:r},p.createElement(Ei,{className:jh.content},p.createElement(Xn,{autoFocus:!0,source:"username",label:d("ra.auth.username"),autoComplete:"username",validate:Qo()}),p.createElement(Xn,{source:"password",label:d("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Qo()}),p.createElement(Bn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:jh.button},a?p.createElement(Ov,{className:jh.icon,size:19,thickness:3}):d("ra.auth.sign_in"))))},g1="RaLoginForm",jh={content:"".concat(g1,"-content"),button:"".concat(g1,"-button"),icon:"".concat(g1,"-icon")},a_e=he(pw,{name:g1,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(jh.content)]={width:300},t["& .".concat(jh.button)]={marginTop:r.spacing(2)},t["& .".concat(jh.icon)]={margin:r.spacing(.3)},t}),yI=function(){return yI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&h?y_e:r;return a?p.createElement(__e,wI({className:Re("edit-page",o)},u),f!==!1&&p.createElement(kf,{title:f,defaultTitle:_,preferenceKey:"".concat(y,".edit.title")}),E,p.createElement("div",{className:Re(Mh.main,(t={},t[Mh.noActions]=!E,t))},p.createElement(d,{className:Mh.card},S?a:p.createElement(Ei,null," ")),n)):null},_1="RaEdit",Mh={main:"".concat(_1,"-main"),noActions:"".concat(_1,"-noActions"),card:"".concat(_1,"-card")},__e=he("div",{name:_1,overridesResolver:function(e,t){return t.root}})((ry={},ry["& .".concat(Mh.main)]={display:"flex",alignItems:"flex-start"},ry["& .".concat(Mh.noActions)]={marginTop:"1em"},ry["& .".concat(Mh.card)]={flex:"1 1 auto"},ry)),SI=function(){return SI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},OI=function(){return OI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error("the value prop is required at runtime");var _=function(){return p.createElement(F_e,Ix({label:f,count:a,value:g,icon:s,className:r,syncWithLocation:h,onChange:u},L_e(y)))},S=function(){return p.createElement(aZ,{name:g.toString()},p.createElement(Pv,Ix({alignItems:"flex-start",style:o?$_e:void 0,className:n,id:"tabpanel-".concat(g),"aria-labelledby":"tabheader-".concat(g),"aria-hidden":o||void 0},y),t))};return d==="header"?_():S()};Ws.displayName="FormTab";var $_e={display:"none"},L_e=function(e){e.classes,e.ref,e.margin;var t=M9(e,["classes","ref","margin"]);return t},jx=function(){return jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&x?K_e:r;return!a||!E&&u?null:p.createElement(X_e,RI({className:Re("show-page",o)},g),h!==!1&&p.createElement(kf,{title:h,defaultTitle:S,preferenceKey:"".concat(_,".show.title")}),T!==!1&&T,p.createElement("div",{className:Re($h.main,(t={},t[$h.noActions]=!T,t))},p.createElement(d,{className:$h.card},a),n))},w1="RaShow",$h={main:"".concat(w1,"-main"),noActions:"".concat(w1,"-noActions"),card:"".concat(w1,"-card")},X_e=he("div",{name:w1,overridesResolver:function(e,t){return t.root}})((ny={},ny["& .".concat($h.main)]={display:"flex"},ny["& .".concat($h.noActions)]={marginTop:"1em"},ny["& .".concat($h.card)]={flex:"1 1 auto"},ny)),kI=function(){return kI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var _=Nc(e);if(_==null||_==="")return r?p.createElement(nr,Fx({component:"span",variant:"body2",className:t},il(g)),r&&y(r,{_:r})):null;var S=h(_),E="";if(S)if(s&&f)E=v2?S.toLocaleString(n,a):S.toLocaleString();else if(f){var x=a??(typeof _=="string"&&_.length<=10?{timeZone:"UTC"}:void 0);E=v2?S.toLocaleDateString(n,x):S.toLocaleDateString()}else s&&(E=v2?S.toLocaleTimeString(n,a):S.toLocaleTimeString());return p.createElement(nr,Fx({component:"span",variant:"body2",className:t},il(g)),E)};N9.displayName="DateFieldImpl";var ba=jf(N9),s1e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},v2=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),jI=function(){return jI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),wc=function(e){var t=e.children,r=e.debounce,n=e.filter,a=n===void 0?x1e:n,o=e.page,s=o===void 0?1:o,d=e.pagination,f=d===void 0?null:d,u=e.perPage,h=u===void 0?25:u,g=e.reference,y=e.resource,_=e.sort,S=_===void 0?w1e:_,E=e.source,x=E===void 0?"id":E,T=e.storeKey,I=e.target,R=e.queryOptions,P=Sr(e),C=lJ({debounce:r,filter:a,page:s,perPage:h,record:P,reference:g,resource:y,sort:S,source:x,storeKey:T,target:I,queryOptions:R});return Ke.createElement(Dc,{value:g},Ke.createElement(Mj,{value:C},t,f))},x1e={},w1e={field:"id",order:"DESC"},Dx=function(){return Dx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},cb=function(){return cb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=this._config.preview;if(o)n.postMessage({results:q,workerId:f.WORKER_ID,finished:G});else if(j(this._config.chunk)&&!$){if(this._config.chunk(q,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);q=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(q.data),this._completeResults.errors=this._completeResults.errors.concat(q.errors),this._completeResults.meta=q.meta),this._completed||!G||!j(this._config.complete)||q&&q.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),G||q&&q.meta.paused||this._nextChunk(),q}this._halted=!0},this._sendError=function(M){j(this._config.error)?this._config.error(M):o&&this._config.error&&n.postMessage({workerId:f.WORKER_ID,error:M,finished:!1})}}function g(k){var M;(k=k||{}).chunkSize||(k.chunkSize=f.RemoteChunkSize),h.call(this,k),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function($){this._input=$,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),a||(M.onload=O(this._chunkLoaded,this),M.onerror=O(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var $=this._config.downloadRequestHeaders;for(var N in $)M.setRequestHeader(N,$[N])}if(this._config.chunkSize){var B=this._start+this._config.chunkSize-1;M.setRequestHeader("Range","bytes="+this._start+"-"+B)}try{M.send(this._config.downloadRequestBody)}catch(q){this._chunkError(q.message)}a&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:M.responseText.length,this._finished=!this._config.chunkSize||this._start>=function($){var N=$.getResponseHeader("Content-Range");return N===null?-1:parseInt(N.substring(N.lastIndexOf("/")+1))}(M),this.parseChunk(M.responseText)))},this._chunkError=function($){var N=M.statusText||$;this._sendError(new Error(N))}}function y(k){var M,$;(k=k||{}).chunkSize||(k.chunkSize=f.LocalChunkSize),h.call(this,k);var N=typeof FileReader<"u";this.stream=function(B){this._input=B,$=B.slice||B.webkitSlice||B.mozSlice,N?((M=new FileReader).onload=O(this._chunkLoaded,this),M.onerror=O(this._chunkError,this)):M=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(B.target.result)},this._chunkError=function(){this._sendError(M.error)}}function _(k){var M;h.call(this,k=k||{}),this.stream=function($){return M=$,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var $,N=this._config.chunkSize;return N?($=M.substring(0,N),M=M.substring(N)):($=M,M=""),this._finished=!M,this.parseChunk($)}}}function S(k){h.call(this,k=k||{});var M=[],$=!0,N=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(B){this._input=B,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){N&&M.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),M.length?this.parseChunk(M.shift()):$=!0},this._streamData=O(function(B){try{M.push(typeof B=="string"?B:B.toString(this._config.encoding)),$&&($=!1,this._checkIsFinished(),this.parseChunk(M.shift()))}catch(q){this._streamError(q)}},this),this._streamError=O(function(B){this._streamCleanUp(),this._sendError(B)},this),this._streamEnd=O(function(){this._streamCleanUp(),N=!0,this._streamData("")},this),this._streamCleanUp=O(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function E(k){var M,$,N,B=Math.pow(2,53),q=-B,V=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,G=/^((\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)))$/,Y=this,X=0,H=0,te=!1,ne=!1,K=[],ee={data:[],errors:[],meta:{}};if(j(k.step)){var Ce=k.step;k.step=function(ie){if(ee=ie,me())Se();else{if(Se(),ee.data.length===0)return;X+=ie.data.length,k.preview&&X>k.preview?$.abort():(ee.data=ee.data[0],Ce(ee,Y))}}}function se(ie){return k.skipEmptyLines==="greedy"?ie.join("").trim()==="":ie.length===1&&ie[0].length===0}function Se(){return ee&&N&&(Oe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+f.DefaultDelimiter+"'"),N=!1),k.skipEmptyLines&&(ee.data=ee.data.filter(function(ie){return!se(ie)})),me()&&function(){if(!ee)return;function ie(ke,$e){j(k.transformHeader)&&(ke=k.transformHeader(ke,$e)),K.push(ke)}if(Array.isArray(ee.data[0])){for(var Fe=0;me()&&Fe=K.length?"__parsed_extra":K[Te]),k.transform&&(dt=k.transform(dt,Le)),dt=we(Le,dt),Le==="__parsed_extra"?(Be[Le]=Be[Le]||[],Be[Le].push(dt)):Be[Le]=dt}return k.header&&(Te>K.length?Oe("FieldMismatch","TooManyFields","Too many fields: expected "+K.length+" fields but parsed "+Te,H+$e):Te=Z.length/2?`\r +`:"\r"}(ie,$e)),N=!1,k.delimiter)j(k.delimiter)&&(k.delimiter=k.delimiter(ie),ee.meta.delimiter=k.delimiter);else{var Te=function(Le,dt,He,Z,ae){var fe,ve,be,_e;ae=ae||[","," ","|",";",f.RECORD_SEP,f.UNIT_SEP];for(var De=0;De=V)return Kt(!0)}else for(Ge=X,X++;;){if((Ge=te.indexOf(M,Ge+1))===-1)return K||Oe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:we.length,index:X}),Dt();if(Ge===ee-1)return Dt(te.substring(X,Ge).replace(De,M));if(M!==Y||te[Ge+1]!==Y){if(M===Y||Ge===0||te[Ge-1]!==Y){be!==-1&&be=V)return Kt(!0);break}Oe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:we.length,index:X}),Ge++}}else Ge++}return Dt();function ot(Pt){we.push(Pt),Fe=X}function it(Pt){var Je=0;if(Pt!==-1){var ut=te.substring(Ge+1,Pt);ut&&ut.trim()===""&&(Je=ut.length)}return Je}function Dt(Pt){return K||(Pt===void 0&&(Pt=te.substring(X)),ie.push(Pt),X=ee,ot(ie),me&&nt()),Kt()}function Zt(Pt){X=Pt,ot(ie),ie=[],_e=te.indexOf(N,X)}function Kt(Pt){return{data:we,errors:Oe,meta:{delimiter:$,linebreak:N,aborted:H,truncated:!!Pt,cursor:Fe+(ne||0)}}}function nt(){q(Kt()),we=[],Oe=[]}},this.abort=function(){H=!0},this.getCharIndex=function(){return X}}function I(k){var M=k.data,$=s[M.workerId],N=!1;if(M.error)$.userError(M.error,M.file);else if(M.results&&M.results.data){var B={abort:function(){N=!0,R(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:P,resume:P};if(j($.userStep)){for(var q=0;q{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},sxe=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),lxe=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await yf(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},uxe=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await yf(t,{method:"GET"})).json.server_version},cxe=async e=>{const t=`${e}/_matrix/client/versions`;return(await yf(t,{method:"GET"})).json},dxe=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await yf(t,{method:"GET"})).json.flows},fxe=e=>`${hr.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function dB(){const e=hr.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function pxe(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const g2=!0,hxe=["id","displayname"].sort();function Z_({value:e,text:t}){const r=rt();return A.jsx("option",{value:e,children:r(t)})}const vxe=()=>{const[e,t]=p.useState([]),[r,n]=p.useState(null),[a,o]=p.useState(null),[s,d]=p.useState(!0),[f,u]=p.useState(null),[h,g]=p.useState(null),[y,_]=p.useState(""),[S,E]=p.useState("stop"),[x,T]=p.useState(!0),[I,R]=p.useState("ignore"),P=rt(),C=Jr(),O=Zo(),j=async se=>{if(f!==null)return;t([]),n(null),o(null),g(null);const Se=se.target.files?se.target.files[0]:null;if(Se){if(Se.size>1e8){const me=P("import_users.errors.unreasonably_big",{size:(Se.size/1048576).toFixed(2)});C(me),n(me);return}try{cB.parse(Se,{header:!0,skipEmptyLines:!0,complete:me=>{me.errors&&n(me.errors.map(we=>we.toString())),k(me,{setValues:t,setStats:o,setError:n})}})}catch{return n("Unknown error"),null}}},k=({data:se,meta:Se,errors:me},{setValues:we,setStats:Oe,setError:ie})=>{const Fe=hxe.filter(Te=>{var Be;return!((Be=Se.fields)!=null&&Be.includes(Te))});if(Fe.length>0)return ie(P("import_users.error.required_field",{field:Fe[0]})),!1;const ke={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:se.length},$e=me.map(Te=>Te.message);return se.forEach((Te,Be)=>{var Le,dt,He;Te.user_type===void 0||Te.user_type===""?ke.user_types.default++:ke.user_types[Te.user_type]+=1,(Le=Se.fields)!=null&&Le.includes("name")&&delete Te.name,(dt=Se.fields)!=null&&dt.includes("user_type")&&delete Te.user_type,(He=Se.fields)!=null&&He.includes("is_admin")&&delete Te.is_admin,["is_guest","admin","deactivated"].forEach(Z=>{Te[Z]==="true"?(ke[Z]++,Te[Z]=!0):(Te[Z]!=="false"&&Te[Z]!==""&&$e.push(P("import_users.error.invalid_value",{field:Z,row:Be})),Te[Z]=!1)}),Te.password!==void 0&&Te.password!==""&&ke.password++,Te.avatar_url!==void 0&&Te.avatar_url!==""&&ke.avatar_url++,Te.id!==void 0&&Te.id!==""&&ke.id++}),$e.length>0&&ie($e),Oe(ke),we(se),!0},M=async()=>{if(f!==null){C("import_users.errors.already_in_progress");return}const se=await $(O,e,S,x,I,s,u,n);g(se),_(cB.unparse(se.skippedRecords)),console.log("Skipped records:"),console.log(y)},$=async(se,Se,me,we,Oe,ie,Fe,ke)=>{const $e=[],Te=[],Be=[],Le={total:0,id:0,is_guest:0,admin:0,password:0};let dt=0;const He=Se.length;try{Fe({done:dt,limit:He});for(const Z of Se){const ae={...Z};(Oe==="ignore"||ae.id===void 0)&&(ae.id=dB()),(we===!1||Z.password===void 0)&&(ae.password=pxe()),g2&&console.log("will check for existence of record "+JSON.stringify(ae));let fe=0;const ve=be=>se.getOne("users",{id:be.id}).then(async()=>{if(g2&&console.log("already existed"),Oe==="update"||me==="skip")$e.push(be);else{if(me==="stop")throw new Error(P("import_users.error.id_exits",{id:be.id}));{const _e=Object.assign({},be,{id:dB()});fe++,fe>512?(console.warn("retry loop got stuck? pathological situation?"),$e.push(be)):await ve(_e)}}},async()=>{g2&&console.log("OK to create record "+be.id+" ("+be.displayname+")."),ie||await se.create("users",{data:be}),Be.push(be)});await ve(ae),dt++,Fe({done:dt,limit:Se.length})}Fe(null)}catch(Z){ke(P("import_users.error.at_entry",{entry:dt+1,message:Z instanceof Error?Z.message:String(Z)})),Fe(null)}return{skippedRecords:$e,erroredRecords:Te,succeededRecords:Be,totalRecordCount:He,changeStats:Le,wasDryRun:ie}},N=()=>{const se=document.createElement("a");console.log(y);const Se=new Blob([y],{type:"text/comma-separated-values"});se.href=URL.createObjectURL(Se),se.download="skippedRecords.csv",document.body.appendChild(se),se.click()},B=async se=>{if(f!==null)return;const Se=se.target.value;E(Se)},q=se=>{f===null&&T(se.target.checked)},V=async se=>{if(f!==null)return;const Se=se.target.value;R(Se)},G=se=>{f===null&&d(se.target.checked)},Y=a&&!h&&[A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.importstats.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:P("import_users.cards.importstats.users_total",a.total)}),A.jsx("div",{children:P("import_users.cards.importstats.guest_count",a.is_guest)}),A.jsx("div",{children:P("import_users.cards.importstats.admin_count",a.admin)})]})]}),A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.ids.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:a.id===a.total?P("import_users.cards.ids.all_ids_present"):P("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?A.jsx("div",{children:A.jsxs(xk,{onChange:V,value:I,disabled:f!==null,children:[A.jsx(Z_,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),A.jsx(Z_,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.passwords.header")}),A.jsxs(Ei,{children:[A.jsx("div",{children:a.password===a.total?P("import_users.cards.passwords.all_passwords_present"):P("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?A.jsx("div",{children:A.jsx(yk,{control:A.jsx(cv,{checked:x,disabled:f!==null,onChange:q}),label:P("import_users.cards.passwords.use_passwords")})}):""]})]})],X=a&&!h&&A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.conflicts.header")}),A.jsx(Ei,{children:A.jsx("div",{children:A.jsxs(xk,{onChange:B,value:S,disabled:f!==null,children:[A.jsx(Z_,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),A.jsx(Z_,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),H=r&&A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.error.error")}),A.jsx(Ei,{children:(Array.isArray(r)?r:[r]).map(se=>A.jsx("div",{children:se}))})]}),te=!h&&A.jsxs(ch,{children:[A.jsx(Ld,{title:P("import_users.cards.upload.header")}),A.jsxs(Ei,{children:[P("import_users.cards.upload.explanation"),A.jsx("a",{href:"./data/example.csv",children:"example.csv"}),A.jsx("br",{}),A.jsx("br",{}),A.jsx("input",{type:"file",onChange:j,disabled:f!==null})]})]}),ne=h&&A.jsxs(Ei,{children:[A.jsx(Ld,{title:P("import_users.cards.results.header")}),A.jsxs("div",{children:[P("import_users.cards.results.total",h.totalRecordCount),A.jsx("br",{}),P("import_users.cards.results.successful",h.succeededRecords.length),A.jsx("br",{}),h.skippedRecords.length?[P("import_users.cards.results.skipped",h.skippedRecords.length),A.jsx("div",{children:A.jsx("button",{onClick:N,children:P("import_users.cards.results.download_skipped")})}),A.jsx("br",{})]:"",h.erroredRecords.length?[P("import_users.cards.results.skipped",h.erroredRecords.length),A.jsx("br",{})]:"",A.jsx("br",{}),h.wasDryRun&&[P("import_users.cards.results.simulated_only"),A.jsx("br",{})]]})]}),K=!e||e.length===0||h?void 0:A.jsxs(nU,{children:[A.jsx(yk,{control:A.jsx(cv,{checked:s,onChange:G,disabled:f!==null}),label:P("import_users.cards.startImport.simulate_only")}),A.jsx(Bn,{size:"large",onClick:M,disabled:f!==null,children:P("import_users.cards.startImport.run_import")}),f!==null?A.jsxs("div",{children:[f.done," of ",f.limit," done"]}):null]}),ee=[];te&&ee.push(te),H&&ee.push(H),X&&ee.push(X),Y&&ee.push(...Y),K&&ee.push(K),ne&&ee.push(ne);const Ce=A.jsx(Rf,{children:ee});return[A.jsx(kf,{defaultTitle:P("import_users.title")}),Ce]},mxe=vxe,C1={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"}}}},gxe={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"}}}};xj(C1,gxe);const yxe={...C1,ra:{...C1.ra,navigation:{...C1.ra.navigation,no_filtered_results:"Keine Ergebnisse",clear_filters:"Alle Filter entfernen"}},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"}}},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."}},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",locked:"Gesperrt",deactivated:"Deaktiviert",erased:"Gelöscht",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"},url:"URL"}}},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"}},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."}}}};var bxe={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_all_button:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:" "},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?",access_denied:"Access denied",authentication_error:"Authentication error"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",access_denied:"You don't have the right permissions to access this page",are_you_sure:"Are you sure?",authentication_error:"The authentication server returned an error and your credentials could not be checked.",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update %{name} %{recordRepresentation}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} %{recordRepresentation} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this %{name}?",delete_title:"Delete %{name} %{recordRepresentation}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",select_all_limit_reached:"There are too many elements to select them all. Only the first %{max} elements were selected.",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?",yes:"Yes",placeholder_data_warning:"Network issue: Data refresh failed."},navigation:{clear_filters:"Clear filters",no_filtered_results:"No %{name} found using the current filters.",no_results:"No %{name} found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field_lower_first} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",email:"Email",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}};const _xe={...bxe,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"}}},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."}},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",locked:"Locked",deactivated:"Deactivated",erased:"Erased",guests:"Show guests",show_deactivated:"Show deactivated users",show_locked:"Show locked 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"}},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 xxe={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:{clear_filters:"Effacer les filtres",no_filtered_results:"Aucun résultat trouvé avec les filtres actuels.",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 wxe={...xxe,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é"}}},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."}},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",locked:"Verrouillé",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"}},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 y2,fB;function Sxe(){return fB||(fB=1,y2={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}"}}}),y2}var Exe=Sxe();const Cxe=tt(Exe),Oxe={...Cxe,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"}}},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."}},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",locked:"Bloccato",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"}},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."}}}},b2={ra:{action:{add_filter:"Добавить фильтр",add:"Добавить",back:"Назад",bulk_actions:"1 выбран |||| %{smart_count} выбрано |||| %{smart_count} выбрано",cancel:"Отмена",clear_array_input:"Очистить список",clear_input_value:"Очистить",clone:"Дублировать",confirm:"Подтвердить",create:"Создать",create_item:"Создать %{item}",delete:"Удалить",edit:"Редактировать",export:"Экспорт",list:"Список",refresh:"Обновить",remove_filter:"Убрать фильтр",remove_all_filters:"Убрать все фильтры",remove:"Удалить",save:"Сохранить",search:"Поиск",select_all:"Выбрать все",select_row:"Выбрать эту запись",show:"Просмотр",sort:"Сортировка",undo:"Отменить",unselect:"Не выбрано",expand:"Раскрыть",close:"Закрыть",open_menu:"Открыть меню",close_menu:"Закрыть меню",update:"Обновить",move_up:"Переместить вверх",move_down:"Переместить вниз",open:"Открыть",toggle_theme:"Переключить тему",select_columns:"Столбцы",update_application:"Обновить приложение"},boolean:{true:"Да",false:"Нет",null:" "},page:{create:"Создать %{name}",dashboard:"Главная",edit:"%{name} %{recordRepresentation}",error:"Что-то пошло не так",list:"%{name}",loading:"Загрузка",not_found:"Не найдено",show:"%{name} %{recordRepresentation}",empty:"Нет %{name}.",invite:"Вы хотите добавить еще одну?"},input:{file:{upload_several:"Перетащите файлы сюда или нажмите для выбора.",upload_single:"Перетащите файл сюда или нажмите для выбора."},image:{upload_several:"Перетащите изображения сюда или нажмите для выбора.",upload_single:"Перетащите изображение сюда или нажмите для выбора."},references:{all_missing:"Связанных данных не найдено",many_missing:"Некоторые из связанных данных недоступны",single_missing:"Связанный объект недоступен"},password:{toggle_visible:"Скрыть пароль",toggle_hidden:"Показать пароль"}},message:{about:"Справка",are_you_sure:"Вы уверены?",auth_error:"Произошла ошибка при валидации токена аутентификации",bulk_delete_content:"Вы уверены, что хотите удалить %{name}? |||| Вы уверены, что хотите удалить %{smart_count} объектов? |||| Вы уверены, что хотите удалить %{smart_count} объектов?",bulk_delete_title:"Удалить %{name} |||| Удалить %{smart_count} %{name} |||| Удалить %{smart_count} %{name}",bulk_update_content:"Вы уверены, что хотите обновить %{name}? |||| Вы уверены, что хотите обновить %{smart_count} объектов?",bulk_update_title:"Обновить %{name} |||| Обновить %{smart_count} %{name}",clear_array_input:"Вы уверены, что хотите очистить весь список?",delete_content:"Вы уверены что хотите удалить этот объект",delete_title:"Удалить %{name} #%{id}",details:"Описание",error:"В процессе запроса возникла ошибка, и он не может быть завершен",invalid_form:"Форма заполнена неверно, проверьте, пожалуйста, ошибки",loading:"Идет загрузка, пожалуйста, подождите...",no:"Нет",not_found:"Ошибка URL или вы следуете по неверной ссылке",yes:"Да",unsaved_changes:"Некоторые из ваших изменений не были сохранены. Вы уверены, что хотите их игнорировать?"},navigation:{no_results:"Результатов не найдено",no_more_results:"Страница %{page} выходит за пределы нумерации, попробуйте предыдущую",page_out_of_boundaries:"Страница %{page} вне границ",page_out_from_end:"Невозможно переместиться дальше последней страницы",page_out_from_begin:"Номер страницы не может быть меньше 1",page_range_info:"%{offsetBegin}-%{offsetEnd} из %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} из более %{offsetEnd}",current_page:"Страница %{page}",page:"На %{page} страницу",first:"На первую страницу",last:"На последнюю страницу",next:"Следующая",prev:"Предыдущая",previous:"Предыдущая",page_rows_per_page:"Строк на странице:",skip_nav:"Перейти к содержанию"},sort:{sort_by:"Сортировать по %{field} %{order}",ASC:"возрастанию",DESC:"убыванию"},auth:{auth_check_error:"Пожалуйста, авторизуйтесь для продолжения работы",user_menu:"Профиль",username:"Имя пользователя",password:"Пароль",sign_in:"Войти",sign_in_error:"Ошибка аутентификации, попробуйте снова",logout:"Выйти"},notification:{updated:"Элемент обновлен |||| %{smart_count} обновлено |||| %{smart_count} обновлено",created:"Элемент создан",deleted:"Элемент удален |||| %{smart_count} удалено |||| %{smart_count} удалено",bad_item:"Элемент не валиден",item_doesnt_exist:"Элемент не существует",http_error:"Ошибка сервера",data_provider_error:"Ошибка dataProvider, проверьте консоль",i18n_error:"Не удалось загрузить перевод для указанного языка",canceled:"Операция отменена",logged_out:"Ваша сессия завершена, попробуйте переподключиться/войти снова",not_authorized:"У вас нет доступа к этому ресурсу",application_update_available:"Имеется новая версия приложения."},validation:{required:"Обязательно для заполнения",minLength:"Минимальное кол-во символов %{min}",maxLength:"Максимальное кол-во символов %{max}",minValue:"Минимальное значение %{min}",maxValue:"Значение может быть %{max} или меньше",number:"Должно быть цифрой",email:"Некорректный email",oneOf:"Должно быть одним из: %{options}",regex:"Должно быть в формате (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Сохраненные запросы",query_name:"Имя запроса",new_label:"Сохранить текущий запрос...",new_dialog_title:"Сохранить текущий запрос как",remove_label:"Удалить сохраненный запрос",remove_label_with_name:'Удалить запрос "%{name}"',remove_dialog_title:"Удалить сохраненный запрос?",remove_message:"Вы уверены, что хотите удалить этот запрос из списка сохраненных запросов?",help:"Отфильтровать список и сохранить запрос на будущее"},configurable:{customize:"Настроить",configureMode:"Настроить эту страницу",inspector:{title:"Инспектор",content:"Наведите на UI-элементы приложения, чтобы настроить",reset:"Сбросить настройки",hideAll:"Скрыть все",showAll:"Показать все"},Datagrid:{title:"Таблица данных",unlabeled:"Безымянный столбец #%{column}"},SimpleForm:{title:"Форма",unlabeled:"Безымянное поле ввода #%{input}"},SimpleList:{title:"Список",primaryText:"Первичный текст",secondaryText:"Вторичный текст",tertiaryText:"Третичный текст"}}}},Pxe={...b2,ra:{...b2.ra,navigation:{...b2.ra.navigation,no_filtered_results:"Нет результатов",clear_filters:"Все фильтры сбросить"}},synapseadmin:{auth:{base_url:"Адрес домашнего сервера",welcome:"Добро пожаловать в Synapse-admin",server_version:"Версия Synapse",supports_specs:"поддерживает спецификации Matrix",username_error:"Пожалуйста, укажите полный ID пользователя: '@user:domain'",protocol_error:"Адрес должен начинаться с 'http://' или 'https://'",url_error:"Неверный адрес сервера Matrix",sso_sign_in:"Вход через SSO"},users:{invalid_user_id:"Локальная часть ID пользователя Matrix без адреса домашнего сервера.",tabs:{sso:"SSO"}},rooms:{details:"Данные комнаты",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} мегабайт",already_in_progress:"Импорт уже в процессе",id_exits:"ID %{id} уже существует"},title:"Импорт пользователей из CSV",goToPdf:"Перейти к PDF",cards:{importstats:{header:"Импорт пользователей",users_total:"%{smart_count} пользователь в CSV файле |||| %{smart_count} пользователя в CSV файле |||| %{smart_count} пользователей в CSV файле",guest_count:"%{smart_count} гость |||| %{smart_count} гостя |||| %{smart_count} гостей",admin_count:"%{smart_count} администратор |||| %{smart_count} администратора |||| %{smart_count} администраторов"},conflicts:{header:"Стратегия разрешения конфликтов",mode:{stop:"Остановка при конфликте",skip:"Показать ошибку и пропустить при конфликте"}},ids:{header:"Идентификаторы",all_ids_present:"Идентификаторы присутствуют в каждой записи",count_ids_present:"%{smart_count} запись с ID |||| %{smart_count} записи с ID |||| %{smart_count} записей с ID",mode:{ignore:"Игнорировать идентификаторы в CSV и создать новые",update:"Обновить существующие записи"}},passwords:{header:"Пароли",all_passwords_present:"Пароли присутствуют в каждой записи",count_passwords_present:"%{smart_count} запись с паролем |||| %{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} записи всего |||| %{smart_count} записей всего",successful:"%{smart_count} запись успешно импортирована |||| %{smart_count} записи успешно импортированы |||| %{smart_count} записей успешно импортированы",skipped:"%{smart_count} запись пропущена |||| %{smart_count} записи пропущены |||| %{smart_count} записей пропущено",download_skipped:"Скачать пропущенные записи",with_error:"%{smart_count} запись с ошибкой |||| %{smart_count} записи с ошибками |||| %{smart_count} записей с ошибками",simulated_only:"Импорт был симулирован"}}},delete_media:{name:"Файлы",fields:{before_ts:"Последнее обращение до",size_gt:"Более чем (в байтах)",keep_profiles:"Сохранить аватары"},action:{send:"Удалить файлы",send_success:"Запрос успешно отправлен.",send_failure:"Произошла ошибка."},helper:{send:"Это API удаляет локальные файлы с вашего собственного сервера, включая локальные миниатюры и копии скачанных файлов. Данный API не затрагивает файлы, загруженные во внешние хранилища."}},resources:{users:{name:"Пользователь |||| Пользователи",email:"Почта",msisdn:"Телефон",threepid:"Почта / Телефон",fields:{avatar:"Аватар",id:"ID пользователя",name:"Имя",is_guest:"Гость",admin:"Администратор сервера",locked:"Заблокирован",deactivated:"Деактивирован",erased:"Удалён",guests:"Показывать гостей",show_deactivated:"Показывать деактивированных",user_id:"Поиск пользователя",displayname:"Отображаемое имя",password:"Пароль",avatar_url:"Адрес аватары",avatar_src:"Аватар",medium:"Тип",threepids:"3PID'ы",address:"Адрес",creation_ts_ms:"Дата создания",consent_version:"Версия соглашения",auth_provider:"Провайдер",user_type:"Тип пользователя"},helper:{password:"Смена пароля завершит все сессии пользователя.",deactivate:"Вы должны предоставить пароль для реактивации учётной записи.",erase:"Пометить пользователя как удалённого в соответствии с GDPR"},action:{erase:"Удалить данные пользователя"}},rooms:{name:"Комната |||| Комнаты",fields:{room_id:"ID комнаты",name:"Название",canonical_alias:"Псевдоним",joined_members:"Участники",joined_local_members:"Локальные участники",joined_local_devices:"Локальные устройства",state_events:"События состояния / Сложность",version:"Версия",is_encrypted:"Зашифровано",encryption:"Шифрование",federatable:"Федерация",public:"Отображается в каталоге комнат",creator:"Создатель",join_rules:"Правила входа",guest_access:"Гостевой доступ",history_visibility:"Видимость истории",topic:"Тема",avatar:"Аватар"},helper:{forward_extremities:"Оконечности — это события-листья в конце ориентированного ациклического графа (DAG) в комнате, т.е. события без дочерних элементов. Чем больше их в комнате, тем больше Synapse работает над разрешением состояния (это дорогостоящая операция). Хотя Synapse старается не допускать существования слишком большого числа таких событий в комнате, из-за ошибок они иногда снова появляются. Если в комнате >10 оконечностей, стоит найти комнату-виновника и попробовать удалить их с помощью SQL-запросов из #1760."},enums:{join_rules:{public:"Для всех",knock:"Надо постучать",invite:"По приглашению",private:"Приватная"},guest_access:{can_join:"Гости могут войти",forbidden:"Гости не могут войти"},history_visibility:{invited:"С момента приглашения",joined:"С момента входа",shared:"С момента открытия доступа",world_readable:"Для всех"},unencrypted:"Без шифрования"},action:{erase:{title:"Удалить комнату",content:"Действительно удалить эту комнату? Это действие будет невозможно отменить. Все сообщения и файлы в комнате будут удалены с сервера!"}}},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:"Алгоритм",url:"Ссылка",info:{mimetype:"Тип"}}}},action:{erase:{title:"Удалить жалобу",content:"Действительно удалить жалобу? Это действие будет невозможно отменить."}}},connections:{name:"Подключения",fields:{last_seen:"Дата",ip:"IP адрес",user_agent:"Юзер-агент"}},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:"Последний доступ"},action:{open:"Открыть файл в новом окне"}},protect_media:{action:{create:"Не защищён, установить защиту",delete:"Защищён, снять защиту",none:"На карантине",send_success:"Статус защиты успешно изменён.",send_failure:"Произошла ошибка."}},quarantine_media:{action:{name:"Карантин",create:"Поместить на карантин",delete:"На карантине, снять карантин",none:"Защищено от карантина",send_success:"Статус карантина успешно изменён.",send_failure:"Произошла ошибка."}},pushers:{name:"Пушер |||| Пушеры",fields:{app:"Приложение",app_display_name:"Название приложения",app_id:"ID приложения",device_display_name:"Название устройства",kind:"Вид",lang:"Язык",profile_tag:"Тег профиля",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:"Размер файлов"}},forward_extremities:{name:"Оконечности",fields:{id:"ID события",received_ts:"Дата и время",depth:"Глубина",state_group:"Группа состояния"}},room_state:{name:"События состояния",fields:{type:"Тип",content:"Содержимое",origin_server_ts:"Дата отправки",sender:"Отправитель"}},room_directory:{name:"Каталог комнат",fields:{world_readable:"Гости могут просматривать без входа",guest_can_join:"Гости могут войти"},action:{title:"Удалить комнату из каталога |||| Удалить %{smart_count} комнаты из каталога |||| Удалить %{smart_count} комнат из каталога",content:"Действительно удалить комнату из каталога? |||| Действительно удалить %{smart_count} комнаты из каталога? |||| Действительно удалить %{smart_count} комнат из каталога?",erase:"Удалить из каталога комнат",create:"Опубликовать в каталоге комнат",send_success:"Комната успешно опубликована.",send_failure:"Произошла ошибка."}},destinations:{name:"Федерация",fields:{destination:"Назначение",failure_ts:"Дата и время ошибки",retry_last_ts:"Дата и время последней попытки",retry_interval:"Интервал между попытками",last_successful_stream_ordering:"Последний успешный поток",stream_ordering:"Поток"},action:{reconnect:"Переподключиться"}},registration_tokens:{name:"Токены регистрации",fields:{token:"Токен",valid:"Рабочий токен",uses_allowed:"Количество использований",pending:"Ожидает",completed:"Завершено",expiry_time:"Дата окончания",length:"Длина"},helper:{length:"Длина токена, если токен не задан."}}}};var e1={},pB;function Rxe(){if(pB)return e1;pB=1,Object.defineProperty(e1,"__esModule",{value:!0});var e={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}"}}};return e1.default=e,e1}var kxe=Rxe();const _2=tt(kxe),Ixe={..._2,ra:{..._2.ra,navigation:{..._2.ra.navigation,no_filtered_results:"没有结果",clear_filters:"清除所有过滤器"}},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:"只是一次模拟运行"}}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},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:"上一次访问"}},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:"媒体文件长度"}}}},Y9=p.createContext({}),jxe=()=>p.useContext(Y9),Txe=he(eo)(({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"}})),Axe=()=>{const e=Vq(),t=Jr(),{restrictBaseUrl:r}=jxe(),n=typeof r=="string",a=Array.isArray(r),o=!(n||a),[s,d]=p.useState(!1),[f,u]=p.useState(!0),[h,g]=Sj(),y=Ej(),_=rt(),S=n?r:hr.getItem("base_url"),[E,x]=p.useState(""),T=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(T){const O=T[1];console.log("SSO token is",O),window.history.replaceState({},"",window.location.href.replace(T[0],"#").split("#")[0]);const j=hr.getItem("sso_base_url");if(hr.removeItem("sso_base_url"),j){const k={base_url:j,username:null,password:null,loginToken:O};console.log("Base URL is:",j),console.log("SSO Token is:",O),console.log("Let's try token login..."),e(k).catch(M=>{alert(typeof M=="string"?M:typeof M>"u"||!M.message?"ra.auth.sign_in_error":M.message),console.error(M)})}}const I=O=>O.match(/^(http|https):\/\//)?O.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:_("synapseadmin.auth.url_error"):_("synapseadmin.auth.protocol_error"),R=O=>{d(!0),e(O).catch(j=>{d(!1),t(typeof j=="string"?j:typeof j>"u"||!j.message?"ra.auth.sign_in_error":j.message,{type:"warning"})})},P=()=>{hr.setItem("sso_base_url",E);const O=`${E}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=O},C=({formData:O})=>{const j=Li(),[k,M]=p.useState(""),[$,N]=p.useState(""),B=()=>{var V;if(O.base_url||n)return;const q=(V=ixe(O.username))==null?void 0:V.domain;q&&lxe(q).then(G=>{(o||a&&r.includes(G))&&j.setValue("base_url",G)})};return p.useEffect(()=>{O.base_url===""&&a&&j.setValue("base_url",r[0]),sxe(O.base_url)&&(uxe(O.base_url).then(q=>M(`${_("synapseadmin.auth.server_version")} ${q}`)).catch(()=>M("")),cxe(O.base_url).then(q=>N(`${_("synapseadmin.auth.supports_specs")} ${q.versions.join(", ")}`)).catch(()=>N("")),dxe(O.base_url).then(q=>{const V=q.find(Y=>Y.type==="m.login.password")!==void 0,G=q.find(Y=>Y.type==="m.login.sso")!==void 0;u(V),x(G?O.base_url:"")}).catch(()=>x("")))},[O.base_url,j]),A.jsxs(A.Fragment,{children:[A.jsx(eo,{children:A.jsx(Xn,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:s||!f,onBlur:B,resettable:!0,validate:Qo()})}),A.jsx(eo,{children:A.jsx(DT,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:s||!f,resettable:!0,validate:Qo()})}),A.jsx(eo,{children:A.jsx(Xn,{source:"base_url",label:"synapseadmin.auth.base_url",select:a,autoComplete:"url",disabled:s,readOnly:n,resettable:o,validate:[Qo(),I],children:a&&r.map(q=>A.jsx(Ko,{value:q,children:q},q))})}),A.jsx(nr,{className:"serverVersion",children:k}),A.jsx(nr,{className:"matrixVersions",children:$})]})};return A.jsxs(pw,{defaultValues:{base_url:S},onSubmit:R,mode:"onTouched",children:[A.jsx(Txe,{children:A.jsxs(Rf,{className:"card",children:[A.jsx(eo,{className:"avatar",children:s?A.jsx(Ov,{size:25,thickness:2}):A.jsx(Eb,{className:"icon",children:A.jsx(Ww,{})})}),A.jsx(eo,{className:"hint",children:_("synapseadmin.auth.welcome")}),A.jsxs(eo,{className:"form",children:[A.jsx(Uw,{value:h,onChange:O=>g(O.target.value),fullWidth:!0,disabled:s,className:"select",children:y.map(O=>A.jsx(Ko,{value:O.locale,children:O.name},O.locale))}),A.jsx(Q2,{children:O=>A.jsx(C,{...O})}),A.jsxs(nU,{className:"actions",children:[A.jsx(Bn,{variant:"contained",type:"submit",color:"primary",disabled:s||!f,fullWidth:!0,children:_("ra.auth.sign_in")}),A.jsx(Bn,{variant:"contained",color:"secondary",onClick:P,disabled:s||E==="",fullWidth:!0,children:_("synapseadmin.auth.sso_sign_in")})]})]})]})}),A.jsx(JU,{})]})};var iy={},hB;function Mxe(){if(hB)return iy;hB=1;var e=vt();Object.defineProperty(iy,"__esModule",{value:!0}),iy.default=void 0;var t=e(yt()),r=gt();return iy.default=(0,t.default)((0,r.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"),iy}var Fxe=Mxe();const $xe=tt(Fxe);var sy={},vB;function Lxe(){if(vB)return sy;vB=1;var e=vt();Object.defineProperty(sy,"__esModule",{value:!0}),sy.default=void 0;var t=e(yt()),r=gt();return sy.default=(0,t.default)((0,r.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"),sy}var Dxe=Lxe();const Nxe=tt(Dxe);var ly={},mB;function Bxe(){if(mB)return ly;mB=1;var e=vt();Object.defineProperty(ly,"__esModule",{value:!0}),ly.default=void 0;var t=e(yt()),r=gt();return ly.default=(0,t.default)((0,r.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"),ly}var zxe=Bxe();const Av=tt(zxe),$a={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},BT=e=>new Date(e).getTime(),qxe=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),a=(r+(t.getMonth()+1).toString()).slice(-2),o=(r+t.getDate().toString()).slice(-2),s=(r+t.getHours().toString()).slice(-2),d=(r+t.getMinutes().toString()).slice(-2);return`${n}-${a}-${o}T${s}:${d}`},J9=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Uxe=[A.jsx(tS,{source:"destination",alwaysOn:!0})],Z9=()=>{const e=Sr(),t=dl(),r=Jr(),[n,{isLoading:a}]=Ub();if(!e||!e.failure_ts)return null;const o=s=>{s.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return A.jsx(qr,{label:"resources.destinations.action.reconnect",onClick:o,disabled:a,children:A.jsx($xe,{})})},Vxe=()=>A.jsx(Ni,{children:A.jsx(Z9,{})}),Wxe=()=>{const e=Sr(),t=rt();return A.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},Hxe=e=>{const t=Sr(e);return e.source&&$b.get(t,e.source)===0?A.jsx(ba,{...e,record:{...t,[e.source]:null}}):A.jsx(ba,{...e})},Gxe=e=>{const{palette:{error:t,mode:r}}=ei(),n=a=>({backgroundColor:a.retry_last_ts>0?R6(t[r],.5):void 0,"& > td":r==="dark"?{color:a.retry_last_ts>0?"black":"white","& > button":{color:Nd[700]}}:void 0});return A.jsx(Tf,{...e,filters:Uxe,pagination:A.jsx(J9,{}),sort:{field:"destination",order:"ASC"},children:A.jsxs(Fa,{rowSx:n,rowClick:a=>`${a}/show/rooms`,bulkActionButtons:!1,children:[A.jsx(st,{source:"destination"}),A.jsx(ba,{source:"failure_ts",showTime:!0,options:$a}),A.jsx(Hxe,{source:"retry_last_ts",showTime:!0,options:$a}),A.jsx(st,{source:"retry_interval"}),A.jsx(st,{source:"last_successful_stream_ordering"}),A.jsx(Z9,{})]})})},Kxe=e=>{const t=rt();return A.jsx(NT,{actions:A.jsx(Vxe,{}),title:A.jsx(Wxe,{}),...e,children:A.jsxs(rS,{children:[A.jsxs(us,{label:"status",icon:A.jsx(Iv,{}),children:[A.jsx(st,{source:"destination"}),A.jsx(ba,{source:"failure_ts",showTime:!0,options:$a}),A.jsx(ba,{source:"retry_last_ts",showTime:!0,options:$a}),A.jsx(st,{source:"retry_interval"}),A.jsx(st,{source:"last_successful_stream_ordering"})]}),A.jsx(us,{label:t("resources.rooms.name",{smart_count:2}),icon:A.jsx(Av,{}),path:"rooms",children:A.jsx(wc,{reference:"destination_rooms",target:"destination",label:!1,pagination:A.jsx(J9,{}),perPage:50,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[A.jsx(st,{source:"room_id",label:"resources.rooms.fields.room_id"}),A.jsx(st,{source:"stream_ordering",sortable:!1}),A.jsx(tu,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:A.jsx(st,{source:"name",sortable:!1})})]})})})]})})},Qxe={name:"destinations",icon:Nxe,list:Gxe,show:Kxe};var uy={},gB;function Xxe(){if(gB)return uy;gB=1;var e=vt();Object.defineProperty(uy,"__esModule",{value:!0}),uy.default=void 0;var t=e(yt()),r=gt();return uy.default=(0,t.default)((0,r.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"),uy}var Yxe=Xxe();const Jxe=tt(Yxe),Zxe=[Bj(/^[A-Za-z0-9._~-]{0,64}$/)],eV=[wq()],ewe=[wq(),tZ(64)],twe=[A.jsx(tl,{source:"valid",alwaysOn:!0})],rwe=e=>A.jsx(Tf,{...e,filters:twe,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:A.jsxs(Fa,{rowClick:"edit",children:[A.jsx(st,{source:"token",sortable:!1}),A.jsx(al,{source:"uses_allowed",sortable:!1}),A.jsx(al,{source:"pending",sortable:!1}),A.jsx(al,{source:"completed",sortable:!1}),A.jsx(ba,{source:"expiry_time",showTime:!0,options:$a,sortable:!1})]})}),nwe=e=>A.jsx(R9,{...e,redirect:"list",children:A.jsxs(c0,{toolbar:A.jsx(u0,{children:A.jsx(Yw,{alwaysEnable:!0})}),children:[A.jsx(Xn,{source:"token",autoComplete:"off",validate:Zxe,resettable:!0}),A.jsx(Ih,{source:"length",validate:ewe,helperText:"resources.registration_tokens.helper.length",step:1}),A.jsx(Ih,{source:"uses_allowed",validate:eV,step:1}),A.jsx(LT,{source:"expiry_time",parse:BT})]})}),awe=e=>A.jsx(k9,{...e,children:A.jsxs(c0,{children:[A.jsx(Xn,{source:"token",disabled:!0}),A.jsx(Ih,{source:"pending",disabled:!0}),A.jsx(Ih,{source:"completed",disabled:!0}),A.jsx(Ih,{source:"uses_allowed",validate:eV,step:1}),A.jsx(LT,{source:"expiry_time",parse:BT,format:qxe})]})}),owe={name:"registration_tokens",icon:Jxe,list:rwe,edit:awe,create:nwe};var cy={},yB;function iwe(){if(yB)return cy;yB=1;var e=vt();Object.defineProperty(cy,"__esModule",{value:!0}),cy.default=void 0;var t=e(yt()),r=gt();return cy.default=(0,t.default)((0,r.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"),cy}var swe=iwe();const tV=tt(swe);var dy={},bB;function lwe(){if(bB)return dy;bB=1;var e=vt();Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=void 0;var t=e(yt()),r=gt();return dy.default=(0,t.default)((0,r.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),dy}var uwe=lwe();const cwe=tt(uwe);var fy={},_B;function dwe(){if(_B)return fy;_B=1;var e=vt();Object.defineProperty(fy,"__esModule",{value:!0}),fy.default=void 0;var t=e(yt()),r=gt();return fy.default=(0,t.default)((0,r.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"),fy}var fwe=dwe();const xB=tt(fwe);var py={},wB;function pwe(){if(wB)return py;wB=1;var e=vt();Object.defineProperty(py,"__esModule",{value:!0}),py.default=void 0;var t=e(yt()),r=gt();return py.default=(0,t.default)((0,r.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"),py}var hwe=pwe();const rV=tt(hwe);var hy={},SB;function vwe(){if(SB)return hy;SB=1;var e=vt();Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=void 0;var t=e(yt()),r=gt();return hy.default=(0,t.default)((0,r.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"),hy}var mwe=vwe();const nV=tt(mwe);var vy={},EB;function gwe(){if(EB)return vy;EB=1;var e=vt();Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var t=e(yt()),r=gt();return vy.default=(0,t.default)((0,r.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"),vy}var ywe=gwe();const bwe=tt(ywe);var my={},CB;function _we(){if(CB)return my;CB=1;var e=vt();Object.defineProperty(my,"__esModule",{value:!0}),my.default=void 0;var t=e(yt()),r=gt();return my.default=(0,t.default)((0,r.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"),my}var xwe=_we();const wwe=tt(xwe),Swe=({open:e,onClose:t,onSubmit:r})=>{const n=rt(),a=o=>A.jsxs(u0,{...o,children:[A.jsx(Yw,{label:"delete_media.action.send",icon:A.jsx(nV,{})}),A.jsx(qr,{label:"ra.action.cancel",onClick:t,children:A.jsx(rV,{})})]});return A.jsxs(n0,{open:e,onClose:t,children:[A.jsx(o0,{children:n("delete_media.action.send")}),A.jsxs(a0,{children:[A.jsx(Bw,{children:n("delete_media.helper.send")}),A.jsxs(c0,{toolbar:A.jsx(a,{}),onSubmit:r,children:[A.jsx(LT,{source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:BT}),A.jsx(Ih,{source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),A.jsx(tl,{source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},Ewe=e=>{const t=ei(),[r,n]=p.useState(!1),a=Jr(),o=Zo(),{mutate:s,isPending:d}=Ef({mutationFn:h=>o.deleteMedia(h),onSuccess:()=>{a("delete_media.action.send_success"),u()},onError:()=>{a("delete_media.action.send_failure",{type:"error"})}}),f=()=>n(!0),u=()=>n(!1);return A.jsxs(A.Fragment,{children:[A.jsx(qr,{...e,label:"delete_media.action.send",onClick:f,disabled:d,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:rv(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:A.jsx(nV,{})}),A.jsx(Swe,{open:r,onClose:u,onSubmit:s})]})},Cwe=e=>{const t=Sr(),r=rt(),n=dl(),a=Jr(),[o,{isLoading:s}]=qb(),[d]=Ub();if(!t)return null;const f=()=>{o("protect_media",{data:t},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})},u=()=>{d("protect_media",{id:t.id},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[t.quarantined_by&&A.jsx(xa,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:A.jsx("div",{children:A.jsx(qr,{...e,disabled:!0,children:A.jsx(dv,{})})})}),t.safe_from_quarantine&&A.jsx(xa,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:u,disabled:s,children:A.jsx(Ww,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&A.jsx(xa,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:f,disabled:s,children:A.jsx(wwe,{})})})})]})},Owe=e=>{const t=Sr(),r=rt(),n=dl(),a=Jr(),[o,{isLoading:s}]=qb(),[d]=Ub();if(!t)return null;const f=()=>{o("quarantine_media",{data:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})},u=()=>{d("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[t.safe_from_quarantine&&A.jsx(xa,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:A.jsx("div",{children:A.jsx(qr,{...e,disabled:!0,children:A.jsx(dv,{})})})}),t.quarantined_by&&A.jsx(xa,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:u,disabled:s,children:A.jsx(xB,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&A.jsx(xa,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:A.jsx("div",{children:A.jsx(qr,{...e,onClick:f,disabled:s,children:A.jsx(xB,{})})})})]})},aV=({media_id:e,label:t})=>{const r=rt(),n=fxe(e);return A.jsxs(eo,{style:{whiteSpace:"pre"},children:[A.jsx(xa,{title:r("resources.users_media.action.open"),children:A.jsx("span",{children:A.jsx(qr,{component:cs,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:A.jsx(bwe,{})})})}),t]})},Pwe=({source:e})=>{var a;const t=hr.getItem("home_server"),r=Sr();if(!r)return null;const n=(a=$b.get(r,e))==null?void 0:a.toString();return n?A.jsx(aV,{media_id:`${t}/${n}`,label:n}):null},Rwe=({source:e})=>{var a;const t=Sr();if(!t)return null;const r=(a=$b.get(t,e))==null?void 0:a.toString();if(!r)return null;const n=r.replace("mxc://","");return A.jsx(aV,{media_id:n,label:r})},kwe=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Iwe=e=>{const t=rt();return A.jsx(NT,{...e,actions:A.jsx(jwe,{}),children:A.jsxs(rS,{children:[A.jsxs(us,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:A.jsx(Iv,{}),children:[A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(tu,{source:"user_id",reference:"users",children:A.jsx(st,{source:"id"})}),A.jsx(al,{source:"score"}),A.jsx(st,{source:"reason"}),A.jsx(st,{source:"name"}),A.jsx(st,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),A.jsx(tu,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:A.jsx(st,{source:"id"})})]}),A.jsxs(us,{label:"synapseadmin.reports.tabs.detail",icon:A.jsx(tV,{}),path:"detail",children:[A.jsx(ba,{source:"event_json.origin_server_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(tu,{source:"sender",reference:"users",children:A.jsx(st,{source:"id"})}),A.jsx(st,{source:"sender",label:"Sender (raw user ID)"}),A.jsx(st,{source:"event_id"}),A.jsx(st,{source:"event_json.origin"}),A.jsx(st,{source:"event_json.type"}),A.jsx(st,{source:"event_json.content.msgtype"}),A.jsx(st,{source:"event_json.content.body"}),A.jsx(st,{source:"event_json.content.info.mimetype"}),A.jsx(Rwe,{source:"event_json.content.url"}),A.jsx(st,{source:"event_json.content.format"}),A.jsx(st,{source:"event_json.content.formatted_body"}),A.jsx(st,{source:"event_json.content.algorithm"}),A.jsx(st,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},jwe=()=>{const e=Sr();return A.jsx(Ni,{children:A.jsx(jv,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},Twe=e=>A.jsx(Tf,{...e,pagination:A.jsx(kwe,{}),sort:{field:"received_ts",order:"DESC"},children:A.jsxs(Fa,{rowClick:"show",bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1}),A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!0}),A.jsx(st,{sortable:!1,source:"user_id"}),A.jsx(st,{sortable:!1,source:"name"}),A.jsx(st,{sortable:!1,source:"score"})]})}),Awe={name:"reports",icon:cwe,list:Twe,show:Iwe},zT=({source:e,...t})=>{var u;const r=Sr(t),n=(u=$b.get(r,e))==null?void 0:u.toString(),{alt:a,classes:o,sizes:s,sx:d,variant:f}=t;return A.jsx(Eb,{alt:a,classes:o,sizes:s,src:n,sx:d,variant:f})},Mwe=()=>A.jsx(If,{rowsPerPageOptions:[100,500,1e3,2e3]}),Fwe=e=>{const t=rt();return A.jsx(jv,{...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:A.jsx(Av,{})})},oV=e=>A.jsx(Xw,{...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:A.jsx(Av,{})}),$we=e=>{const{selectedIds:t}=La(),r=Jr(),n=dl(),a=Xz("rooms"),o=Zo(),{mutate:s,isPending:d}=Ef({mutationFn:()=>o.createMany("room_directory",{ids:t,data:{}}),onSuccess:()=>{r("resources.room_directory.action.send_success"),a(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return A.jsx(qr,{...e,label:"resources.room_directory.action.create",onClick:s,disabled:d,children:A.jsx(Av,{})})},Lwe=e=>{const t=Sr(),r=Jr(),n=dl(),[a,{isLoading:o}]=qb();if(!t)return;const s=()=>{a("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 A.jsx(qr,{...e,label:"resources.room_directory.action.create",onClick:s,disabled:o,children:A.jsx(Av,{})})},Dwe=()=>A.jsxs(Ni,{children:[A.jsx(b9,{}),A.jsx(l0,{})]}),Nwe=()=>A.jsx(Tf,{pagination:A.jsx(Mwe,{}),perPage:100,actions:A.jsx(Dwe,{}),children:A.jsxs(y9,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:A.jsx(oV,{}),omit:["room_id","canonical_alias","topic"],children:[A.jsx(zT,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),A.jsx(st,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),A.jsx(st,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),A.jsx(st,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),A.jsx(st,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),A.jsx(al,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),A.jsx(Ri,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),A.jsx(Ri,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),Bwe={name:"room_directory",icon:Av,list:Nwe};var gy={},OB;function zwe(){if(OB)return gy;OB=1;var e=vt();Object.defineProperty(gy,"__esModule",{value:!0}),gy.default=void 0;var t=e(yt()),r=gt();return gy.default=(0,t.default)((0,r.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"),gy}var qwe=zwe();const Uwe=tt(qwe);var yy={},PB;function Vwe(){if(PB)return yy;PB=1;var e=vt();Object.defineProperty(yy,"__esModule",{value:!0}),yy.default=void 0;var t=e(yt()),r=gt();return yy.default=(0,t.default)((0,r.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward"),yy}var Wwe=Vwe();const Hwe=tt(Wwe);var by={},RB;function Gwe(){if(RB)return by;RB=1;var e=vt();Object.defineProperty(by,"__esModule",{value:!0}),by.default=void 0;var t=e(yt()),r=gt();return by.default=(0,t.default)((0,r.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"),by}var Kwe=Gwe();const iV=tt(Kwe);var _y={},kB;function Qwe(){if(kB)return _y;kB=1;var e=vt();Object.defineProperty(_y,"__esModule",{value:!0}),_y.default=void 0;var t=e(yt()),r=gt();return _y.default=(0,t.default)((0,r.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"),_y}var Xwe=Qwe();const IB=tt(Xwe);var xy={},jB;function Ywe(){if(jB)return xy;jB=1;var e=vt();Object.defineProperty(xy,"__esModule",{value:!0}),xy.default=void 0;var t=e(yt()),r=gt();return xy.default=(0,t.default)((0,r.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"),xy}var Jwe=Ywe();const Zwe=tt(Jwe),eSe=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),tSe=()=>{const e=Sr(),t=rt();let r="";return e&&(r=e.name!==""?e.name:e.id),A.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},rSe=()=>{const e=Sr(),t=e!=null&&e.public?A.jsx(Fwe,{}):A.jsx(Lwe,{});return A.jsxs(Ni,{children:[t,A.jsx(jv,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},nSe=e=>{const t=rt();return A.jsx(NT,{...e,actions:A.jsx(rSe,{}),title:A.jsx(tSe,{}),children:A.jsxs(rS,{children:[A.jsxs(us,{label:"synapseadmin.rooms.tabs.basic",icon:A.jsx(Iv,{}),children:[A.jsx(st,{source:"room_id"}),A.jsx(st,{source:"name"}),A.jsx(st,{source:"topic"}),A.jsx(st,{source:"canonical_alias"}),A.jsx(tu,{source:"creator",reference:"users",children:A.jsx(st,{source:"id"})})]}),A.jsxs(us,{label:"synapseadmin.rooms.tabs.detail",icon:A.jsx(tV,{}),path:"detail",children:[A.jsx(st,{source:"joined_members"}),A.jsx(st,{source:"joined_local_members"}),A.jsx(st,{source:"joined_local_devices"}),A.jsx(st,{source:"state_events"}),A.jsx(st,{source:"version"}),A.jsx(st,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),A.jsx(us,{label:"synapseadmin.rooms.tabs.members",icon:A.jsx(iV,{}),path:"members",children:A.jsx(wc,{reference:"room_members",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1,label:"resources.users.fields.id"}),A.jsx(tu,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:A.jsx(st,{source:"displayname",sortable:!1})})]})})}),A.jsxs(us,{label:"synapseadmin.rooms.tabs.permission",icon:A.jsx(O9,{}),path:"permission",children:[A.jsx(Ri,{source:"federatable"}),A.jsx(Ri,{source:"public"}),A.jsx(m2,{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"}]}),A.jsx(m2,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),A.jsx(m2,{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"}]})]}),A.jsx(us,{label:t("resources.room_state.name",{smart_count:2}),icon:A.jsx(Uwe,{}),path:"state",children:A.jsx(wc,{reference:"room_state",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"type",sortable:!1}),A.jsx(ba,{source:"origin_server_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(st,{source:"content",sortable:!1}),A.jsx(tu,{source:"sender",reference:"users",sortable:!1,children:A.jsx(st,{source:"id"})})]})})}),A.jsxs(us,{label:"resources.forward_extremities.name",icon:A.jsx(Hwe,{}),path:"forward_extremities",children:[A.jsx(eo,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),A.jsx(wc,{reference:"forward_extremities",target:"room_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1}),A.jsx(ba,{source:"received_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(al,{source:"depth",sortable:!1}),A.jsx(st,{source:"state_group",sortable:!1})]})})]})]})})},aSe=()=>A.jsxs(A.Fragment,{children:[A.jsx($we,{}),A.jsx(oV,{}),A.jsx(Xw,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),oSe=[A.jsx(tS,{source:"search_term",alwaysOn:!0})],iSe=()=>A.jsxs(Ni,{children:[A.jsx(b9,{}),A.jsx(l0,{})]}),sSe=e=>{const t=ei();return A.jsx(Tf,{...e,pagination:A.jsx(eSe,{}),sort:{field:"name",order:"ASC"},filters:oSe,actions:A.jsx(iSe,{}),children:A.jsxs(y9,{rowClick:"show",bulkActionButtons:A.jsx(aSe,{}),omit:["joined_local_members","state_events","version","federatable"],children:[A.jsx(Ri,{source:"is_encrypted",sortBy:"encryption",TrueIcon:IB,FalseIcon:Zwe,label:A.jsx(IB,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),A.jsx(u1e,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),A.jsx(st,{source:"joined_members"}),A.jsx(st,{source:"joined_local_members"}),A.jsx(st,{source:"state_events"}),A.jsx(st,{source:"version"}),A.jsx(Ri,{source:"federatable"}),A.jsx(Ri,{source:"public"})]})})},lSe={name:"rooms",icon:Iv,list:sSe,show:nSe};var wy={},TB;function uSe(){if(TB)return wy;TB=1;var e=vt();Object.defineProperty(wy,"__esModule",{value:!0}),wy.default=void 0;var t=e(yt()),r=gt();return wy.default=(0,t.default)((0,r.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer"),wy}var cSe=uSe();const dSe=tt(cSe),fSe=()=>{const{isLoading:e,total:t}=La();return A.jsxs(Ni,{children:[A.jsx(Ewe,{}),A.jsx(l0,{disabled:e||t===0})]})},pSe=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),hSe=[A.jsx(tS,{source:"search_term",alwaysOn:!0})],vSe=e=>A.jsx(Tf,{...e,actions:A.jsx(fSe,{}),filters:hSe,pagination:A.jsx(pSe,{}),sort:{field:"media_length",order:"DESC"},children:A.jsxs(Fa,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[A.jsx(st,{source:"user_id",label:"resources.users.fields.id"}),A.jsx(st,{source:"displayname",label:"resources.users.fields.displayname"}),A.jsx(al,{source:"media_count"}),A.jsx(al,{source:"media_length"})]})}),mSe={name:"user_media_statistics",icon:dSe,list:vSe};var Sy={},AB;function gSe(){if(AB)return Sy;AB=1;var e=vt();Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.default=void 0;var t=e(yt()),r=gt();return Sy.default=(0,t.default)((0,r.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"),Sy}var ySe=gSe();const bSe=tt(ySe);var Ey={},MB;function _Se(){if(MB)return Ey;MB=1;var e=vt();Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var t=e(yt()),r=gt();return Ey.default=(0,t.default)((0,r.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"),Ey}var xSe=_Se();const wSe=tt(xSe);var Cy={},FB;function SSe(){if(FB)return Cy;FB=1;var e=vt();Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=void 0;var t=e(yt()),r=gt();return Cy.default=(0,t.default)((0,r.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"),Cy}var ESe=SSe();const CSe=tt(ESe);var Oy={},$B;function OSe(){if($B)return Oy;$B=1;var e=vt();Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.default=void 0;var t=e(yt()),r=gt();return Oy.default=(0,t.default)((0,r.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"),Oy}var PSe=OSe();const RSe=tt(PSe);var Py={},LB;function kSe(){if(LB)return Py;LB=1;var e=vt();Object.defineProperty(Py,"__esModule",{value:!0}),Py.default=void 0;var t=e(yt()),r=gt();return Py.default=(0,t.default)((0,r.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"),Py}var ISe=kSe();const jSe=tt(ISe);var Ry={},DB;function TSe(){if(DB)return Ry;DB=1;var e=vt();Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.default=void 0;var t=e(yt()),r=gt();return Ry.default=(0,t.default)((0,r.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"),Ry}var ASe=TSe();const MSe=tt(ASe);var ky={},NB;function FSe(){if(NB)return ky;NB=1;var e=vt();Object.defineProperty(ky,"__esModule",{value:!0}),ky.default=void 0;var t=e(yt()),r=gt();return ky.default=(0,t.default)((0,r.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"),ky}var $Se=FSe();const LSe=tt($Se);var Iy={},BB;function DSe(){if(BB)return Iy;BB=1;var e=vt();Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var t=e(yt()),r=gt();return Iy.default=(0,t.default)((0,r.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"),Iy}var NSe=DSe();const sV=tt(NSe),lV=({open:e,onClose:t,onSubmit:r})=>{const n=rt(),a=o=>A.jsxs(u0,{...o,children:[A.jsx(Yw,{label:"resources.servernotices.action.send",disabled:o.pristine}),A.jsx(qr,{label:"ra.action.cancel",onClick:t,children:A.jsx(rV,{})})]});return A.jsxs(n0,{open:e,onClose:t,children:[A.jsx(o0,{children:n("resources.servernotices.action.send")}),A.jsxs(a0,{children:[A.jsx(Bw,{children:n("resources.servernotices.helper.send")}),A.jsx(c0,{toolbar:A.jsx(a,{}),onSubmit:r,children:A.jsx(Xn,{source:"body",label:"resources.servernotices.fields.body",multiline:!0,rows:"4",resettable:!0,validate:Qo()})})]})]})},BSe=()=>{const e=Sr(),[t,r]=p.useState(!1),n=Jr(),[a,{isLoading:o}]=qb(),s=()=>r(!0),d=()=>r(!1);if(!e)return;const f=u=>{a("servernotices",{data:{id:e.id,...u}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),d()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return A.jsxs(A.Fragment,{children:[A.jsx(qr,{label:"resources.servernotices.send",onClick:s,disabled:o,children:A.jsx(sV,{})}),A.jsx(lV,{open:t,onClose:d,onSubmit:f})]})},zSe=()=>{const{selectedIds:e}=La(),[t,r]=p.useState(!1),n=()=>r(!0),a=()=>r(!1),o=Jr(),s=Xz("users"),d=Zo(),{mutate:f,isPending:u}=Ef({mutationFn:h=>d.createMany("servernotices",{ids:e,data:h}),onSuccess:()=>{o("resources.servernotices.action.send_success"),s(),a()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})});return A.jsxs(A.Fragment,{children:[A.jsx(qr,{label:"resources.servernotices.send",onClick:n,disabled:u,children:A.jsx(sV,{})}),A.jsx(lV,{open:t,onClose:a,onSubmit:f})]})},qSe=e=>{const t=Sr();return t?A.jsx(e9,{...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},uV=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],cV=[{id:"bot",name:"bot"},{id:"support",name:"support"}],dV=()=>{const{isLoading:e,total:t}=La();return A.jsxs(Ni,{children:[A.jsx(CT,{}),A.jsx(l0,{disabled:e||t===0,maxResults:1e4}),A.jsx(qr,{component:cs,to:"/import_users",label:"CSV Import",children:A.jsx(ZU,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};dV.defaultProps={selectedIds:[],onUnselectItems:()=>null};const fV=()=>A.jsx(If,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),USe=[A.jsx(tS,{source:"name",alwaysOn:!0}),A.jsx(tl,{source:"guests",alwaysOn:!0}),A.jsx(tl,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0}),A.jsx(tl,{label:"resources.users.fields.show_locked",source:"locked",alwaysOn:!0})],VSe=()=>A.jsxs(A.Fragment,{children:[A.jsx(zSe,{}),A.jsx(Xw,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),WSe=e=>A.jsx(Tf,{...e,filters:USe,filterDefaultValues:{guests:!0,deactivated:!1,locked:!1},sort:{field:"name",order:"ASC"},actions:A.jsx(dV,{}),pagination:A.jsx(fV,{}),children:A.jsxs(Fa,{rowClick:(t,r)=>`/${r}/${t}`,bulkActionButtons:A.jsx(VSe,{}),children:[A.jsx(zT,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),A.jsx(st,{source:"id",sortBy:"name"}),A.jsx(st,{source:"displayname"}),A.jsx(Ri,{source:"is_guest"}),A.jsx(Ri,{source:"admin"}),A.jsx(Ri,{source:"deactivated"}),A.jsx(Ri,{source:"locked"}),A.jsx(Ri,{source:"erased",sortable:!1}),A.jsx(ba,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:$a})]})}),HSe=[Qo(),U1(253),Bj(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],GSe=[Qo(),U1(255)],KSe=()=>{const e=Sr(),t=rt();return A.jsxs(Ni,{children:[!(e!=null&&e.deactivated)&&A.jsx(BSe,{}),A.jsx(jv,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},QSe=e=>A.jsx(R9,{...e,redirect:(t,r)=>`${t}/${r}`,children:A.jsxs(c0,{children:[A.jsx(Xn,{source:"id",autoComplete:"off",validate:HSe}),A.jsx(Xn,{source:"displayname",validate:U1(256)}),A.jsx(DT,{source:"password",autoComplete:"new-password",validate:U1(512)}),A.jsx(kx,{source:"user_type",choices:cV,translateChoice:!1,resettable:!0}),A.jsx(tl,{source:"admin"}),A.jsx(mx,{source:"threepids",children:A.jsxs(yx,{disableReordering:!0,children:[A.jsx(kx,{source:"medium",choices:uV,validate:Qo()}),A.jsx(Xn,{source:"address",validate:GSe})]})}),A.jsx(mx,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:A.jsxs(yx,{disableReordering:!0,children:[A.jsx(Xn,{source:"auth_provider",validate:Qo()}),A.jsx(Xn,{source:"external_id",label:"resources.users.fields.id",validate:Qo()})]})})]})}),XSe=()=>{const e=Sr(),t=rt();return A.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},YSe=e=>{const t=rt();return A.jsx(k9,{...e,title:A.jsx(XSe,{}),actions:A.jsx(KSe,{}),children:A.jsxs(F9,{children:[A.jsxs(Ws,{label:t("resources.users.name",{smart_count:1}),icon:A.jsx(MSe,{}),children:[A.jsx(zT,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),A.jsx(Xn,{source:"id",disabled:!0}),A.jsx(Xn,{source:"displayname"}),A.jsx(DT,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),A.jsx(kx,{source:"user_type",choices:cV,translateChoice:!1,resettable:!0}),A.jsx(tl,{source:"admin"}),A.jsx(tl,{source:"locked"}),A.jsx(tl,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),A.jsx(tl,{source:"erased",disabled:!0}),A.jsx(ba,{source:"creation_ts_ms",showTime:!0,options:$a}),A.jsx(st,{source:"consent_version"})]}),A.jsx(Ws,{label:"resources.users.threepid",icon:A.jsx(wSe,{}),path:"threepid",children:A.jsx(mx,{source:"threepids",children:A.jsxs(yx,{disableReordering:!0,children:[A.jsx(kx,{source:"medium",choices:uV}),A.jsx(Xn,{source:"address"})]})})}),A.jsx(Ws,{label:"synapseadmin.users.tabs.sso",icon:A.jsx(bSe,{}),path:"sso",children:A.jsx(mx,{source:"external_ids",label:!1,children:A.jsxs(yx,{disableReordering:!0,children:[A.jsx(Xn,{source:"auth_provider",validate:Qo()}),A.jsx(Xn,{source:"external_id",label:"resources.users.fields.id",validate:Qo()})]})})}),A.jsx(Ws,{label:t("resources.devices.name",{smart_count:2}),icon:A.jsx(CSe,{}),path:"devices",children:A.jsx(wc,{reference:"devices",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},children:[A.jsx(st,{source:"device_id",sortable:!1}),A.jsx(st,{source:"display_name",sortable:!1}),A.jsx(st,{source:"last_seen_ip",sortable:!1}),A.jsx(ba,{source:"last_seen_ts",showTime:!0,options:$a,sortable:!1}),A.jsx(qSe,{})]})})}),A.jsx(Ws,{label:"resources.connections.name",icon:A.jsx(LSe,{}),path:"connections",children:A.jsx(tu,{reference:"connections",source:"id",label:!1,link:!1,children:A.jsx(J_e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"ip",sortable:!1}),A.jsx(ba,{source:"last_seen",showTime:!0,options:$a,sortable:!1}),A.jsx(st,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),A.jsx(Ws,{label:t("resources.users_media.name",{smart_count:2}),icon:A.jsx(jSe,{}),path:"media",children:A.jsx(wc,{reference:"users_media",target:"user_id",label:!1,pagination:A.jsx(fV,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:A.jsxs(Fa,{style:{width:"100%"},children:[A.jsx(Pwe,{source:"media_id"}),A.jsx(ba,{source:"created_ts",showTime:!0,options:$a}),A.jsx(ba,{source:"last_access_ts",showTime:!0,options:$a}),A.jsx(al,{source:"media_length"}),A.jsx(st,{source:"media_type"}),A.jsx(st,{source:"upload_name"}),A.jsx(st,{source:"quarantined_by"}),A.jsx(Owe,{label:"resources.quarantine_media.action.name"}),A.jsx(Cwe,{label:"resources.users_media.fields.safe_from_quarantine"}),A.jsx(jv,{mutationMode:"pessimistic",redirect:!1})]})})}),A.jsx(Ws,{label:t("resources.rooms.name",{smart_count:2}),icon:A.jsx(Iv,{}),path:"rooms",children:A.jsx(wc,{reference:"joined_rooms",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[A.jsx(st,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),A.jsx(tu,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:A.jsx(st,{source:"name",sortable:!1})})]})})}),A.jsx(Ws,{label:t("resources.pushers.name",{smart_count:2}),icon:A.jsx(RSe,{}),path:"pushers",children:A.jsx(wc,{reference:"pushers",target:"user_id",label:!1,children:A.jsxs(Fa,{style:{width:"100%"},bulkActionButtons:!1,children:[A.jsx(st,{source:"kind",sortable:!1}),A.jsx(st,{source:"app_display_name",sortable:!1}),A.jsx(st,{source:"app_id",sortable:!1}),A.jsx(st,{source:"data.url",sortable:!1}),A.jsx(st,{source:"device_display_name",sortable:!1}),A.jsx(st,{source:"lang",sortable:!1}),A.jsx(st,{source:"profile_tag",sortable:!1}),A.jsx(st,{source:"pushkey",sortable:!1})]})})})]})})},JSe={name:"users",icon:iV,list:WSe,edit:YSe,create:QSe},ZSe={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:hr.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r,identifier:{type:"m.id.user",user:t}}))};e=e.replace(/\/+$/g,""),hr.setItem("base_url",e);const s=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:d}=await yf(s,a);hr.setItem("home_server",d.home_server),hr.setItem("user_id",d.user_id),hr.setItem("access_token",d.access_token),hr.setItem("device_id",d.device_id)},logout:async()=>{console.log("logout");const e=hr.getItem("base_url")+"/_matrix/client/r0/logout",t=hr.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await yf(e,r),hr.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=hr.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},Wo=(e,t={})=>{const r=hr.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),yf(e,t)},zB=e=>{const t=hr.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const a=n[1],o=n[2];return`${t}/_matrix/media/r0/thumbnail/${a}/${o}?width=24&height=24&method=scale`},Mn={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?zB(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)}:${hr.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/${hr.getItem("home_server")}/${e.id}`})},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/${hr.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${hr.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?zB(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 jy(e,t){if(!(t===null&&e!=="user_type"))return t}function qB(e){return e==="DESC"?"b":"f"}const eEe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:a,deactivated:o,locked:s,search_term:d,destination:f,valid:u}=t.filter,{page:h,perPage:g}=t.pagination,{field:y,order:_}=t.sort,S=(h-1)*g,E={from:S,limit:g,user_id:r,search_term:d,name:n,destination:f,guests:a,deactivated:o,locked:s,valid:u,order_by:y,dir:qB(_)},x=hr.getItem("base_url");if(!x||!(e in Mn))throw Error("Homeserver not set");const T=Mn[e],R=`${x+T.path}?${Zh.stringify(E)}`,{json:P}=await Wo(R);return{data:P[T.data].map(T.map),total:T.total(P,S,g)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path,{json:o}=await Wo(`${a}/${encodeURIComponent(t.id)}`);return{data:n.map(o)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homerserver not set");const n=Mn[e],a=r+n.path,o=await Promise.all(t.ids.map(s=>Wo(`${a}/${encodeURIComponent(s)}`)));return{data:o.map(({json:s})=>n.map(s)),total:o.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,s=(r-1)*n,d={from:s,limit:n,order_by:a,dir:qB(o)},f=hr.getItem("base_url");if(!f||!(e in Mn))throw Error("Homeserver not set");const u=Mn[e],h=u.reference(t.id),g=`${f}${h.endpoint}?${Zh.stringify(d)}`,{json:y}=await Wo(g);return{data:y[u.data].map(u.map),total:u.total(y,s,n)}},update:async(e,t)=>{console.log("update "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path,{json:o}=await Wo(`${a}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,jy)});return{data:n.map(o)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e],a=r+n.path;return{data:(await Promise.all(t.ids.map(s=>Wo(`${a}/${encodeURIComponent(s)}`),{method:"PUT",body:JSON.stringify(t.data,jy)}))).map(({json:s})=>s)}},create:async(e,t)=>{console.log("create "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if(!("create"in n))return Promise.reject();const a=n.create(t.data),o=r+a.endpoint,{json:s}=await Wo(o,{method:a.method,body:JSON.stringify(a.body,jy)});return{data:n.map(s)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(o=>{t.data.id=o;const s=n.create(t.data),d=r+s.endpoint;return Wo(d,{method:s.method,body:JSON.stringify(s.body,jy)})}))).map(({json:o})=>o)}},delete:async(e,t)=>{console.log("delete "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if("delete"in n){const a=n.delete(t),o=r+a.endpoint,{json:s}=await Wo(o,{method:"method"in a?a.method:"DELETE",body:"body"in a?JSON.stringify(a.body):null});return{data:s}}else{const a=r+n.path,{json:o}=await Wo(`${a}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,jy)});return{data:o}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=hr.getItem("base_url");if(!r||!(e in Mn))throw Error("Homeserver not set");const n=Mn[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(o=>{const s=n.delete({...t,id:o}),d=r+s.endpoint;return Wo(d,{method:"method"in s?s.method:"DELETE",body:"body"in s?JSON.stringify(s.body):null})}))).map(({json:o})=>o)};{const a=r+n.path;return{data:(await Promise.all(t.ids.map(s=>Wo(`${a}/${s}`,{method:"DELETE"})))).map(({json:s})=>s)}}},deleteMedia:async({before_ts:e,size_gt:t=0,keep_profiles:r=!0})=>{const a=`/_synapse/admin/v1/media/${hr.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,s=hr.getItem("base_url")+a,{json:d}=await Wo(s,{method:"POST"});return d}},t1={de:yxe,en:_xe,fr:wxe,it:Oxe,ru:Pxe,zh:Ixe},tEe=d5(e=>t1[e]?$b.merge({},t1.en,t1[e]):t1.en,cQ(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"ru",name:"Russian(Русский)"},{locale:"zh",name:"简体中文"}]),rEe=()=>A.jsxs(nxe,{disableTelemetry:!0,requireAuth:!0,loginPage:Axe,authProvider:ZSe,dataProvider:eEe,i18nProvider:tEe,children:[A.jsx(Lq,{children:A.jsx(la,{path:"/import_users",element:A.jsx(mxe,{})})}),A.jsx(Gn,{...JSe}),A.jsx(Gn,{...lSe}),A.jsx(Gn,{...mSe}),A.jsx(Gn,{...Awe}),A.jsx(Gn,{...Bwe}),A.jsx(Gn,{...Qxe}),A.jsx(Gn,{...owe}),A.jsx(Gn,{name:"connections"}),A.jsx(Gn,{name:"devices"}),A.jsx(Gn,{name:"room_members"}),A.jsx(Gn,{name:"users_media"}),A.jsx(Gn,{name:"joined_rooms"}),A.jsx(Gn,{name:"pushers"}),A.jsx(Gn,{name:"servernotices"}),A.jsx(Gn,{name:"forward_extremities"}),A.jsx(Gn,{name:"room_state"}),A.jsx(Gn,{name:"destination_rooms"})]});fetch("/synapse-admin/config.json").then(e=>e.json()).then(e=>qW.createRoot(document.getElementById("root")).render(A.jsx(Ke.StrictMode,{children:A.jsx(Y9.Provider,{value:e,children:A.jsx(rEe,{})})}))); diff --git a/index.html b/index.html index 0453b23..fc7728c 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 - - + +