From f53f790a7a0eb87cb39011b2e79f2f10cf852b05 Mon Sep 17 00:00:00 2001 From: awesome-manuel <37705355+awesome-manuel@users.noreply.github.com> Date: Mon, 6 May 2024 14:59:10 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Awesome-?= =?UTF-8?q?Technologies/synapse-admin@7061c5cbff4e55b3d5d6aa9a3bfb4b466eb8?= =?UTF-8?q?69c6=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-Bc7KSgVj.js => index-OHAMCLOO.js} | 88 +++++++++---------- index.html | 8 +- 2 files changed, 48 insertions(+), 48 deletions(-) rename assets/{index-Bc7KSgVj.js => index-OHAMCLOO.js} (74%) diff --git a/assets/index-Bc7KSgVj.js b/assets/index-OHAMCLOO.js similarity index 74% rename from assets/index-Bc7KSgVj.js rename to assets/index-OHAMCLOO.js index 31f0bc6..c009364 100644 --- a/assets/index-Bc7KSgVj.js +++ b/assets/index-OHAMCLOO.js @@ -1,4 +1,4 @@ -function GQ(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var no=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qa(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var $N={exports:{}},pb={},RN={exports:{}},xt={};/** +function HQ(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var no=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qa(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var $N={exports:{}},pb={},RN={exports:{}},xt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function GQ(e,t){for(var r=0;r>>1,ee=U[ne];if(0>>1;neo(oe,te))meo(Re,oe)?(U[ne]=Re,U[me]=te,ne=me):(U[ne]=oe,U[de]=te,ne=de);else if(meo(Re,te))U[ne]=Re,U[me]=te,ne=me;else break e}}return W}function o(U,W){var te=U.sortIndex-W.sortIndex;return te!==0?te:U.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],l=[],f=1,v=null,m=3,h=!1,x=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(U){for(var W=r(l);W!==null;){if(W.callback===null)n(l);else if(W.startTime<=U)n(l),W.sortIndex=W.expirationTime,t(c,W);else break;W=r(l)}}function $(U){if(w=!1,_(U),!x)if(r(c)!==null)x=!0,G(P);else{var W=r(l);W!==null&&q($,W.startTime-U)}}function P(U,W){x=!1,w&&(w=!1,b(R),R=-1),h=!0;var te=m;try{for(_(W),v=r(c);v!==null&&(!(v.expirationTime>W)||U&&!F());){var ne=v.callback;if(typeof ne=="function"){v.callback=null,m=v.priorityLevel;var ee=ne(v.expirationTime<=W);W=e.unstable_now(),typeof ee=="function"?v.callback=ee:v===r(c)&&n(c),_(W)}else n(c);v=r(c)}if(v!==null)var Ce=!0;else{var de=r(l);de!==null&&q($,de.startTime-W),Ce=!1}return Ce}finally{v=null,m=te,h=!1}}var E=!1,T=null,R=-1,I=5,A=-1;function F(){return!(e.unstable_now()-AU||125ne?(U.sortIndex=te,t(l,U),r(c)===null&&U===r(l)&&(w?(b(R),R=-1):w=!0,q($,te-ne))):(U.sortIndex=ee,t(c,U),x||h||(x=!0,G(P))),U},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(U){var W=m;return function(){var te=m;m=W;try{return U.apply(this,arguments)}finally{m=te}}}})(BN);DN.exports=BN;var mX=DN.exports;/** + */(function(e){function t(U,W){var te=U.length;U.push(W);e:for(;0>>1,ee=U[ne];if(0>>1;neo(oe,te))meo(Re,oe)?(U[ne]=Re,U[me]=te,ne=me):(U[ne]=oe,U[de]=te,ne=de);else if(meo(Re,te))U[ne]=Re,U[me]=te,ne=me;else break e}}return W}function o(U,W){var te=U.sortIndex-W.sortIndex;return te!==0?te:U.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],l=[],f=1,v=null,m=3,h=!1,x=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(U){for(var W=r(l);W!==null;){if(W.callback===null)n(l);else if(W.startTime<=U)n(l),W.sortIndex=W.expirationTime,t(c,W);else break;W=r(l)}}function $(U){if(w=!1,_(U),!x)if(r(c)!==null)x=!0,G(P);else{var W=r(l);W!==null&&q($,W.startTime-U)}}function P(U,W){x=!1,w&&(w=!1,b(R),R=-1),h=!0;var te=m;try{for(_(W),v=r(c);v!==null&&(!(v.expirationTime>W)||U&&!F());){var ne=v.callback;if(typeof ne=="function"){v.callback=null,m=v.priorityLevel;var ee=ne(v.expirationTime<=W);W=e.unstable_now(),typeof ee=="function"?v.callback=ee:v===r(c)&&n(c),_(W)}else n(c);v=r(c)}if(v!==null)var Ce=!0;else{var de=r(l);de!==null&&q($,de.startTime-W),Ce=!1}return Ce}finally{v=null,m=te,h=!1}}var E=!1,T=null,R=-1,I=5,A=-1;function F(){return!(e.unstable_now()-AU||125ne?(U.sortIndex=te,t(l,U),r(c)===null&&U===r(l)&&(w?(b(R),R=-1):w=!0,q($,te-ne))):(U.sortIndex=ee,t(c,U),x||h||(x=!0,G(P))),U},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(U){var W=m;return function(){var te=m;m=W;try{return U.apply(this,arguments)}finally{m=te}}}})(BN);DN.exports=BN;var vX=DN.exports;/** * @license React * react-dom.production.min.js * @@ -30,24 +30,24 @@ function GQ(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cw=Object.prototype.hasOwnProperty,hX=/^[: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]*$/,uI={},cI={};function gX(e){return Cw.call(cI,e)?!0:Cw.call(uI,e)?!1:hX.test(e)?cI[e]=!0:(uI[e]=!0,!1)}function yX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bX(e,t,r,n){if(t===null||typeof t>"u"||yX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Tn(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var en={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){en[e]=new Tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];en[t]=new Tn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){en[e]=new Tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){en[e]=new Tn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){en[e]=new Tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){en[e]=new Tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){en[e]=new Tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){en[e]=new Tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){en[e]=new Tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var XO=/[\-:]([a-z])/g;function YO(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(XO,YO);en[t]=new Tn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(XO,YO);en[t]=new Tn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(XO,YO);en[t]=new Tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){en[e]=new Tn(e,1,!1,e.toLowerCase(),null,!1,!1)});en.xlinkHref=new Tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){en[e]=new Tn(e,1,!1,e.toLowerCase(),null,!0,!0)});function JO(e,t,r,n){var o=en.hasOwnProperty(t)?en[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cw=Object.prototype.hasOwnProperty,mX=/^[: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]*$/,uI={},cI={};function hX(e){return Cw.call(cI,e)?!0:Cw.call(uI,e)?!1:mX.test(e)?cI[e]=!0:(uI[e]=!0,!1)}function gX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yX(e,t,r,n){if(t===null||typeof t>"u"||gX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Tn(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var en={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){en[e]=new Tn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];en[t]=new Tn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){en[e]=new Tn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){en[e]=new Tn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){en[e]=new Tn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){en[e]=new Tn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){en[e]=new Tn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){en[e]=new Tn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){en[e]=new Tn(e,5,!1,e.toLowerCase(),null,!1,!1)});var XO=/[\-:]([a-z])/g;function YO(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(XO,YO);en[t]=new Tn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(XO,YO);en[t]=new Tn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(XO,YO);en[t]=new Tn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){en[e]=new Tn(e,1,!1,e.toLowerCase(),null,!1,!1)});en.xlinkHref=new Tn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){en[e]=new Tn(e,1,!1,e.toLowerCase(),null,!0,!0)});function JO(e,t,r,n){var o=en.hasOwnProperty(t)?en[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var c=` -`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{U_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Tf(e):""}function _X(e){switch(e.tag){case 5:return Tf(e.type);case 16:return Tf("Lazy");case 13:return Tf("Suspense");case 19:return Tf("SuspenseList");case 0:case 2:case 15:return e=V_(e.type,!1),e;case 11:return e=V_(e.type.render,!1),e;case 1:return e=V_(e.type,!0),e;default:return""}}function $w(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qu:return"Fragment";case Ku:return"Portal";case Ow:return"Profiler";case ZO:return"StrictMode";case Ew:return"Suspense";case Pw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WN:return(e.displayName||"Context")+".Consumer";case VN:return(e._context.displayName||"Context")+".Provider";case eE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tE:return t=e.displayName||null,t!==null?t:$w(e.type)||"Memo";case as:t=e._payload,e=e._init;try{return $w(e(t))}catch{}}return null}function xX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $w(t);case 8:return t===ZO?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function As(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function HN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wX(e){var t=HN(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hm(e){e._valueTracker||(e._valueTracker=wX(e))}function GN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=HN(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Sg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Rw(e,t){var r=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function fI(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=As(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function KN(e,t){t=t.checked,t!=null&&JO(e,"checked",t,!1)}function Tw(e,t){KN(e,t);var r=As(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?kw(e,t.type,r):t.hasOwnProperty("defaultValue")&&kw(e,t.type,As(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pI(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function kw(e,t,r){(t!=="number"||Sg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var kf=Array.isArray;function hc(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Gm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Df={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},SX=["Webkit","ms","Moz","O"];Object.keys(Df).forEach(function(e){SX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Df[t]=Df[e]})});function JN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Df.hasOwnProperty(e)&&Df[e]?(""+t).trim():t+"px"}function ZN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=JN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var CX=ir({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 Aw(e,t){if(t){if(CX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Mw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fw=null;function rE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lw=null,gc=null,yc=null;function hI(e){if(e=av(e)){if(typeof Lw!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=yb(t),Lw(e.stateNode,e.type,t))}}function eD(e){gc?yc?yc.push(e):yc=[e]:gc=e}function tD(){if(gc){var e=gc,t=yc;if(yc=gc=null,hI(e),t)for(e=0;e>>=0,e===0?32:31-(MX(e)/FX|0)|0}var Km=64,Qm=4194304;function If(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Pg(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=If(s):(a&=i,a!==0&&(n=If(a)))}else i=r&~o,i!==0?n=If(i):a!==0&&(n=If(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function nv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ga(t),e[t]=r}function BX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=zf),OI=" ",EI=!1;function xD(e,t){switch(e){case"keyup":return vY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xu=!1;function hY(e,t){switch(e){case"compositionend":return wD(t);case"keypress":return t.which!==32?null:(EI=!0,OI);case"textInput":return e=t.data,e===OI&&EI?null:e;default:return null}}function gY(e,t){if(Xu)return e==="compositionend"||!cE&&xD(e,t)?(e=bD(),Mh=sE=vs=null,Xu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=TI(r)}}function ED(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ED(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PD(){for(var e=window,t=Sg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Sg(e.document)}return t}function dE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function EY(e){var t=PD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&ED(r.ownerDocument.documentElement,r)){if(n!==null&&dE(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=kI(r,a);var i=kI(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Yu=null,Vw=null,Vf=null,Ww=!1;function II(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ww||Yu==null||Yu!==Sg(n)||(n=Yu,"selectionStart"in n&&dE(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Vf&&Op(Vf,n)||(Vf=n,n=Tg(Vw,"onSelect"),0ec||(e.current=Xw[ec],Xw[ec]=null,ec--)}function qt(e,t){ec++,Xw[ec]=e.current,e.current=t}var Ms={},vn=Bs(Ms),Vn=Bs(!1),Hl=Ms;function Dc(e,t){var r=e.type.contextTypes;if(!r)return Ms;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Wn(e){return e=e.childContextTypes,e!=null}function Ig(){Yt(Vn),Yt(vn)}function DI(e,t,r){if(vn.current!==Ms)throw Error(Te(168));qt(vn,t),qt(Vn,r)}function FD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Te(108,xX(e)||"Unknown",o));return ir({},r,n)}function jg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ms,Hl=vn.current,qt(vn,e),qt(Vn,Vn.current),!0}function BI(e,t,r){var n=e.stateNode;if(!n)throw Error(Te(169));r?(e=FD(e,t,Hl),n.__reactInternalMemoizedMergedChildContext=e,Yt(Vn),Yt(vn),qt(vn,e)):Yt(Vn),qt(Vn,r)}var gi=null,bb=!1,nx=!1;function LD(e){gi===null?gi=[e]:gi.push(e)}function NY(e){bb=!0,LD(e)}function zs(){if(!nx&&gi!==null){nx=!0;var e=0,t=jt;try{var r=gi;for(jt=1;e>=i,o-=i,_i=1<<32-ga(t)+o|r<R?(I=T,T=null):I=T.sibling;var A=m(b,T,_[R],$);if(A===null){T===null&&(T=I);break}e&&T&&A.alternate===null&&t(b,T),g=a(A,g,R),E===null?P=A:E.sibling=A,E=A,T=I}if(R===_.length)return r(b,T),tr&&gl(b,R),P;if(T===null){for(;R<_.length;R++)T=v(b,_[R],$),T!==null&&(g=a(T,g,R),E===null?P=T:E.sibling=T,E=T);return tr&&gl(b,R),P}for(T=n(b,T);R<_.length;R++)I=h(T,b,R,_[R],$),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),g=a(I,g,R),E===null?P=I:E.sibling=I,E=I);return e&&T.forEach(function(F){return t(b,F)}),tr&&gl(b,R),P}function w(b,g,_,$){var P=lf(_);if(typeof P!="function")throw Error(Te(150));if(_=P.call(_),_==null)throw Error(Te(151));for(var E=P=null,T=g,R=g=0,I=null,A=_.next();T!==null&&!A.done;R++,A=_.next()){T.index>R?(I=T,T=null):I=T.sibling;var F=m(b,T,A.value,$);if(F===null){T===null&&(T=I);break}e&&T&&F.alternate===null&&t(b,T),g=a(F,g,R),E===null?P=F:E.sibling=F,E=F,T=I}if(A.done)return r(b,T),tr&&gl(b,R),P;if(T===null){for(;!A.done;R++,A=_.next())A=v(b,A.value,$),A!==null&&(g=a(A,g,R),E===null?P=A:E.sibling=A,E=A);return tr&&gl(b,R),P}for(T=n(b,T);!A.done;R++,A=_.next())A=h(T,b,R,A.value,$),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),g=a(A,g,R),E===null?P=A:E.sibling=A,E=A);return e&&T.forEach(function(L){return t(b,L)}),tr&&gl(b,R),P}function C(b,g,_,$){if(typeof _=="object"&&_!==null&&_.type===Qu&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case qm:e:{for(var P=_.key,E=g;E!==null;){if(E.key===P){if(P=_.type,P===Qu){if(E.tag===7){r(b,E.sibling),g=o(E,_.props.children),g.return=b,b=g;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===as&&GI(P)===E.type){r(b,E.sibling),g=o(E,_.props),g.ref=pf(b,E,_),g.return=b,b=g;break e}r(b,E);break}else t(b,E);E=E.sibling}_.type===Qu?(g=Al(_.props.children,b.mode,$,_.key),g.return=b,b=g):($=Vh(_.type,_.key,_.props,null,b.mode,$),$.ref=pf(b,g,_),$.return=b,b=$)}return i(b);case Ku:e:{for(E=_.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){r(b,g.sibling),g=o(g,_.children||[]),g.return=b,b=g;break e}else{r(b,g);break}else t(b,g);g=g.sibling}g=dx(_,b.mode,$),g.return=b,b=g}return i(b);case as:return E=_._init,C(b,g,E(_._payload),$)}if(kf(_))return x(b,g,_,$);if(lf(_))return w(b,g,_,$);rh(b,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,g!==null&&g.tag===6?(r(b,g.sibling),g=o(g,_),g.return=b,b=g):(r(b,g),g=cx(_,b.mode,$),g.return=b,b=g),i(b)):r(b,g)}return C}var zc=qD(!0),HD=qD(!1),iv={},Ua=Bs(iv),Rp=Bs(iv),Tp=Bs(iv);function Pl(e){if(e===iv)throw Error(Te(174));return e}function _E(e,t){switch(qt(Tp,t),qt(Rp,e),qt(Ua,iv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jw(t,e)}Yt(Ua),qt(Ua,t)}function Uc(){Yt(Ua),Yt(Rp),Yt(Tp)}function GD(e){Pl(Tp.current);var t=Pl(Ua.current),r=jw(t,e.type);t!==r&&(qt(Rp,e),qt(Ua,r))}function xE(e){Rp.current===e&&(Yt(Ua),Yt(Rp))}var nr=Bs(0);function Dg(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ox=[];function wE(){for(var e=0;er?r:4,e(!0);var n=ax.transition;ax.transition={};try{e(!1),t()}finally{jt=r,ax.transition=n}}function u3(){return Vo().memoizedState}function UY(e,t,r){var n=Ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},c3(e))d3(t,r);else if(r=zD(e,t,r,n),r!==null){var o=Pn();ya(r,e,n,o),f3(r,t,n)}}function VY(e,t,r){var n=Ps(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(c3(e))d3(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,ba(s,i)){var c=t.interleaved;c===null?(o.next=o,yE(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}r=zD(e,t,o,n),r!==null&&(o=Pn(),ya(r,e,n,o),f3(r,t,n))}}function c3(e){var t=e.alternate;return e===ar||t!==null&&t===ar}function d3(e,t){Wf=Bg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function f3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oE(e,r)}}var zg={readContext:Uo,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useInsertionEffect:an,useLayoutEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useMutableSource:an,useSyncExternalStore:an,useId:an,unstable_isNewReconciler:!1},WY={readContext:Uo,useCallback:function(e,t){return Ia().memoizedState=[e,t===void 0?null:t],e},useContext:Uo,useEffect:QI,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Dh(4194308,4,o3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Dh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dh(4,2,e,t)},useMemo:function(e,t){var r=Ia();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ia();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=UY.bind(null,ar,e),[n.memoizedState,e]},useRef:function(e){var t=Ia();return e={current:e},t.memoizedState=e},useState:KI,useDebugValue:PE,useDeferredValue:function(e){return Ia().memoizedState=e},useTransition:function(){var e=KI(!1),t=e[0];return e=zY.bind(null,e[1]),Ia().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ar,o=Ia();if(tr){if(r===void 0)throw Error(Te(407));r=r()}else{if(r=t(),Ur===null)throw Error(Te(349));Kl&30||XD(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,QI(JD.bind(null,n,a,e),[e]),n.flags|=2048,jp(9,YD.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Ia(),t=Ur.identifierPrefix;if(tr){var r=xi,n=_i;r=(n&~(1<<32-ga(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=kp++,0")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{U_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Tf(e):""}function bX(e){switch(e.tag){case 5:return Tf(e.type);case 16:return Tf("Lazy");case 13:return Tf("Suspense");case 19:return Tf("SuspenseList");case 0:case 2:case 15:return e=V_(e.type,!1),e;case 11:return e=V_(e.type.render,!1),e;case 1:return e=V_(e.type,!0),e;default:return""}}function $w(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qu:return"Fragment";case Ku:return"Portal";case Ow:return"Profiler";case ZO:return"StrictMode";case Ew:return"Suspense";case Pw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WN:return(e.displayName||"Context")+".Consumer";case VN:return(e._context.displayName||"Context")+".Provider";case eE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tE:return t=e.displayName||null,t!==null?t:$w(e.type)||"Memo";case as:t=e._payload,e=e._init;try{return $w(e(t))}catch{}}return null}function _X(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $w(t);case 8:return t===ZO?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function As(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function HN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xX(e){var t=HN(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hm(e){e._valueTracker||(e._valueTracker=xX(e))}function GN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=HN(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Sg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Rw(e,t){var r=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function fI(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=As(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function KN(e,t){t=t.checked,t!=null&&JO(e,"checked",t,!1)}function Tw(e,t){KN(e,t);var r=As(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?kw(e,t.type,r):t.hasOwnProperty("defaultValue")&&kw(e,t.type,As(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pI(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function kw(e,t,r){(t!=="number"||Sg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var kf=Array.isArray;function hc(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Gm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Df={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},wX=["Webkit","ms","Moz","O"];Object.keys(Df).forEach(function(e){wX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Df[t]=Df[e]})});function JN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Df.hasOwnProperty(e)&&Df[e]?(""+t).trim():t+"px"}function ZN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=JN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var SX=ir({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 Aw(e,t){if(t){if(SX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Mw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fw=null;function rE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lw=null,gc=null,yc=null;function hI(e){if(e=av(e)){if(typeof Lw!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=yb(t),Lw(e.stateNode,e.type,t))}}function eD(e){gc?yc?yc.push(e):yc=[e]:gc=e}function tD(){if(gc){var e=gc,t=yc;if(yc=gc=null,hI(e),t)for(e=0;e>>=0,e===0?32:31-(AX(e)/MX|0)|0}var Km=64,Qm=4194304;function If(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Pg(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=If(s):(a&=i,a!==0&&(n=If(a)))}else i=r&~o,i!==0?n=If(i):a!==0&&(n=If(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function nv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ga(t),e[t]=r}function DX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=zf),OI=" ",EI=!1;function xD(e,t){switch(e){case"keyup":return pY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xu=!1;function mY(e,t){switch(e){case"compositionend":return wD(t);case"keypress":return t.which!==32?null:(EI=!0,OI);case"textInput":return e=t.data,e===OI&&EI?null:e;default:return null}}function hY(e,t){if(Xu)return e==="compositionend"||!cE&&xD(e,t)?(e=bD(),Mh=sE=vs=null,Xu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=TI(r)}}function ED(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ED(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PD(){for(var e=window,t=Sg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Sg(e.document)}return t}function dE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function OY(e){var t=PD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&ED(r.ownerDocument.documentElement,r)){if(n!==null&&dE(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=kI(r,a);var i=kI(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Yu=null,Vw=null,Vf=null,Ww=!1;function II(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ww||Yu==null||Yu!==Sg(n)||(n=Yu,"selectionStart"in n&&dE(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Vf&&Op(Vf,n)||(Vf=n,n=Tg(Vw,"onSelect"),0ec||(e.current=Xw[ec],Xw[ec]=null,ec--)}function qt(e,t){ec++,Xw[ec]=e.current,e.current=t}var Ms={},vn=Bs(Ms),Vn=Bs(!1),Hl=Ms;function Dc(e,t){var r=e.type.contextTypes;if(!r)return Ms;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Wn(e){return e=e.childContextTypes,e!=null}function Ig(){Yt(Vn),Yt(vn)}function DI(e,t,r){if(vn.current!==Ms)throw Error(Te(168));qt(vn,t),qt(Vn,r)}function FD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Te(108,_X(e)||"Unknown",o));return ir({},r,n)}function jg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ms,Hl=vn.current,qt(vn,e),qt(Vn,Vn.current),!0}function BI(e,t,r){var n=e.stateNode;if(!n)throw Error(Te(169));r?(e=FD(e,t,Hl),n.__reactInternalMemoizedMergedChildContext=e,Yt(Vn),Yt(vn),qt(vn,e)):Yt(Vn),qt(Vn,r)}var gi=null,bb=!1,nx=!1;function LD(e){gi===null?gi=[e]:gi.push(e)}function LY(e){bb=!0,LD(e)}function zs(){if(!nx&&gi!==null){nx=!0;var e=0,t=jt;try{var r=gi;for(jt=1;e>=i,o-=i,_i=1<<32-ga(t)+o|r<R?(I=T,T=null):I=T.sibling;var A=m(b,T,_[R],$);if(A===null){T===null&&(T=I);break}e&&T&&A.alternate===null&&t(b,T),g=a(A,g,R),E===null?P=A:E.sibling=A,E=A,T=I}if(R===_.length)return r(b,T),tr&&gl(b,R),P;if(T===null){for(;R<_.length;R++)T=v(b,_[R],$),T!==null&&(g=a(T,g,R),E===null?P=T:E.sibling=T,E=T);return tr&&gl(b,R),P}for(T=n(b,T);R<_.length;R++)I=h(T,b,R,_[R],$),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?R:I.key),g=a(I,g,R),E===null?P=I:E.sibling=I,E=I);return e&&T.forEach(function(F){return t(b,F)}),tr&&gl(b,R),P}function w(b,g,_,$){var P=lf(_);if(typeof P!="function")throw Error(Te(150));if(_=P.call(_),_==null)throw Error(Te(151));for(var E=P=null,T=g,R=g=0,I=null,A=_.next();T!==null&&!A.done;R++,A=_.next()){T.index>R?(I=T,T=null):I=T.sibling;var F=m(b,T,A.value,$);if(F===null){T===null&&(T=I);break}e&&T&&F.alternate===null&&t(b,T),g=a(F,g,R),E===null?P=F:E.sibling=F,E=F,T=I}if(A.done)return r(b,T),tr&&gl(b,R),P;if(T===null){for(;!A.done;R++,A=_.next())A=v(b,A.value,$),A!==null&&(g=a(A,g,R),E===null?P=A:E.sibling=A,E=A);return tr&&gl(b,R),P}for(T=n(b,T);!A.done;R++,A=_.next())A=h(T,b,R,A.value,$),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),g=a(A,g,R),E===null?P=A:E.sibling=A,E=A);return e&&T.forEach(function(L){return t(b,L)}),tr&&gl(b,R),P}function C(b,g,_,$){if(typeof _=="object"&&_!==null&&_.type===Qu&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case qm:e:{for(var P=_.key,E=g;E!==null;){if(E.key===P){if(P=_.type,P===Qu){if(E.tag===7){r(b,E.sibling),g=o(E,_.props.children),g.return=b,b=g;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===as&&GI(P)===E.type){r(b,E.sibling),g=o(E,_.props),g.ref=pf(b,E,_),g.return=b,b=g;break e}r(b,E);break}else t(b,E);E=E.sibling}_.type===Qu?(g=Al(_.props.children,b.mode,$,_.key),g.return=b,b=g):($=Vh(_.type,_.key,_.props,null,b.mode,$),$.ref=pf(b,g,_),$.return=b,b=$)}return i(b);case Ku:e:{for(E=_.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){r(b,g.sibling),g=o(g,_.children||[]),g.return=b,b=g;break e}else{r(b,g);break}else t(b,g);g=g.sibling}g=dx(_,b.mode,$),g.return=b,b=g}return i(b);case as:return E=_._init,C(b,g,E(_._payload),$)}if(kf(_))return x(b,g,_,$);if(lf(_))return w(b,g,_,$);rh(b,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,g!==null&&g.tag===6?(r(b,g.sibling),g=o(g,_),g.return=b,b=g):(r(b,g),g=cx(_,b.mode,$),g.return=b,b=g),i(b)):r(b,g)}return C}var zc=qD(!0),HD=qD(!1),iv={},Ua=Bs(iv),Rp=Bs(iv),Tp=Bs(iv);function Pl(e){if(e===iv)throw Error(Te(174));return e}function _E(e,t){switch(qt(Tp,t),qt(Rp,e),qt(Ua,iv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jw(t,e)}Yt(Ua),qt(Ua,t)}function Uc(){Yt(Ua),Yt(Rp),Yt(Tp)}function GD(e){Pl(Tp.current);var t=Pl(Ua.current),r=jw(t,e.type);t!==r&&(qt(Rp,e),qt(Ua,r))}function xE(e){Rp.current===e&&(Yt(Ua),Yt(Rp))}var nr=Bs(0);function Dg(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ox=[];function wE(){for(var e=0;er?r:4,e(!0);var n=ax.transition;ax.transition={};try{e(!1),t()}finally{jt=r,ax.transition=n}}function u3(){return Vo().memoizedState}function zY(e,t,r){var n=Ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},c3(e))d3(t,r);else if(r=zD(e,t,r,n),r!==null){var o=Pn();ya(r,e,n,o),f3(r,t,n)}}function UY(e,t,r){var n=Ps(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(c3(e))d3(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,ba(s,i)){var c=t.interleaved;c===null?(o.next=o,yE(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}r=zD(e,t,o,n),r!==null&&(o=Pn(),ya(r,e,n,o),f3(r,t,n))}}function c3(e){var t=e.alternate;return e===ar||t!==null&&t===ar}function d3(e,t){Wf=Bg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function f3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oE(e,r)}}var zg={readContext:Uo,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useInsertionEffect:an,useLayoutEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useMutableSource:an,useSyncExternalStore:an,useId:an,unstable_isNewReconciler:!1},VY={readContext:Uo,useCallback:function(e,t){return Ia().memoizedState=[e,t===void 0?null:t],e},useContext:Uo,useEffect:QI,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Dh(4194308,4,o3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Dh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dh(4,2,e,t)},useMemo:function(e,t){var r=Ia();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ia();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=zY.bind(null,ar,e),[n.memoizedState,e]},useRef:function(e){var t=Ia();return e={current:e},t.memoizedState=e},useState:KI,useDebugValue:PE,useDeferredValue:function(e){return Ia().memoizedState=e},useTransition:function(){var e=KI(!1),t=e[0];return e=BY.bind(null,e[1]),Ia().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ar,o=Ia();if(tr){if(r===void 0)throw Error(Te(407));r=r()}else{if(r=t(),Ur===null)throw Error(Te(349));Kl&30||XD(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,QI(JD.bind(null,n,a,e),[e]),n.flags|=2048,jp(9,YD.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Ia(),t=Ur.identifierPrefix;if(tr){var r=xi,n=_i;r=(n&~(1<<32-ga(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=kp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Na]=t,e[$p]=n,x3(e,t,!1,!1),t.stateNode=e;e:{switch(i=Mw(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),o=n;break;case"iframe":case"object":case"embed":Kt("load",e),o=n;break;case"video":case"audio":for(o=0;oWc&&(t.flags|=128,n=!0,vf(a,!1),t.lanes=4194304)}else{if(!n)if(e=Dg(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),vf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!tr)return sn(t),null}else 2*mr()-a.renderingStartTime>Wc&&r!==1073741824&&(t.flags|=128,n=!0,vf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=mr(),t.sibling=null,r=nr.current,qt(nr,n?r&1|2:r&1),t):(sn(t),null);case 22:case 23:return jE(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ro&1073741824&&(sn(t),t.subtreeFlags&6&&(t.flags|=8192)):sn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function JY(e,t){switch(pE(t),t.tag){case 1:return Wn(t.type)&&Ig(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uc(),Yt(Vn),Yt(vn),wE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xE(t),null;case 13:if(Yt(nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Bc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(nr),null;case 4:return Uc(),null;case 10:return gE(t.type._context),null;case 22:case 23:return jE(),null;case 24:return null;default:return null}}var oh=!1,un=!1,ZY=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function oc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dr(e,t,n)}else r.current=null}function lS(e,t,r){try{r()}catch(n){dr(e,t,n)}}var oj=!1;function eJ(e,t){if(qw=$g,e=PD(),dE(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,c=-1,l=0,f=0,v=e,m=null;t:for(;;){for(var h;v!==r||o!==0&&v.nodeType!==3||(s=i+o),v!==a||n!==0&&v.nodeType!==3||(c=i+n),v.nodeType===3&&(i+=v.nodeValue.length),(h=v.firstChild)!==null;)m=v,v=h;for(;;){if(v===e)break t;if(m===r&&++l===o&&(s=i),m===a&&++f===n&&(c=i),(h=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=h}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Hw={focusedElem:e,selectionRange:r},$g=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,C=x.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?w:ca(t.type,w),C);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch($){dr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return x=oj,oj=!1,x}function qf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&lS(t,r,a)}o=o.next}while(o!==n)}}function wb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function uS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function C3(e){var t=e.alternate;t!==null&&(e.alternate=null,C3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Na],delete t[$p],delete t[Qw],delete t[FY],delete t[LY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function O3(e){return e.tag===5||e.tag===3||e.tag===4}function aj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||O3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=kg));else if(n!==4&&(e=e.child,e!==null))for(cS(e,t,r),e=e.sibling;e!==null;)cS(e,t,r),e=e.sibling}function dS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(dS(e,t,r),e=e.sibling;e!==null;)dS(e,t,r),e=e.sibling}var Qr=null,fa=!1;function Zi(e,t,r){for(r=r.child;r!==null;)E3(e,t,r),r=r.sibling}function E3(e,t,r){if(za&&typeof za.onCommitFiberUnmount=="function")try{za.onCommitFiberUnmount(vb,r)}catch{}switch(r.tag){case 5:un||oc(r,t);case 6:var n=Qr,o=fa;Qr=null,Zi(e,t,r),Qr=n,fa=o,Qr!==null&&(fa?(e=Qr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Qr.removeChild(r.stateNode));break;case 18:Qr!==null&&(fa?(e=Qr,r=r.stateNode,e.nodeType===8?rx(e.parentNode,r):e.nodeType===1&&rx(e,r),Sp(e)):rx(Qr,r.stateNode));break;case 4:n=Qr,o=fa,Qr=r.stateNode.containerInfo,fa=!0,Zi(e,t,r),Qr=n,fa=o;break;case 0:case 11:case 14:case 15:if(!un&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&lS(r,t,i),o=o.next}while(o!==n)}Zi(e,t,r);break;case 1:if(!un&&(oc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dr(r,t,s)}Zi(e,t,r);break;case 21:Zi(e,t,r);break;case 22:r.mode&1?(un=(n=un)||r.memoizedState!==null,Zi(e,t,r),un=n):Zi(e,t,r);break;default:Zi(e,t,r)}}function ij(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new ZY),t.forEach(function(n){var o=uJ.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ua(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=mr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*rJ(n/1960))-n,10e?16:e,ms===null)var n=!1;else{if(e=ms,ms=null,Wg=0,St&6)throw Error(Te(331));var o=St;for(St|=4,Ke=e.current;Ke!==null;){var a=Ke,i=a.child;if(Ke.flags&16){var s=a.deletions;if(s!==null){for(var c=0;cmr()-kE?jl(e,0):TE|=r),qn(e,t)}function A3(e,t){t===0&&(e.mode&1?(t=Qm,Qm<<=1,!(Qm&130023424)&&(Qm=4194304)):t=1);var r=Pn();e=Pi(e,t),e!==null&&(nv(e,t,r),qn(e,r))}function lJ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),A3(e,r)}function uJ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Te(314))}n!==null&&n.delete(t),A3(e,r)}var M3;M3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vn.current)Un=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Un=!1,XY(e,t,r);Un=!!(e.flags&131072)}else Un=!1,tr&&t.flags&1048576&&ND(t,Mg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bh(e,t),e=t.pendingProps;var o=Dc(t,vn.current);_c(t,r),o=CE(null,t,n,e,o,r);var a=OE();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wn(n)?(a=!0,jg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bE(t),o.updater=_b,t.stateNode=o,o._reactInternals=t,tS(t,n,e,r),t=oS(null,t,n,!0,a,r)):(t.tag=0,tr&&a&&fE(t),Sn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bh(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=dJ(n),e=ca(n,e),o){case 0:t=nS(null,t,n,e,r);break e;case 1:t=tj(null,t,n,e,r);break e;case 11:t=ZI(null,t,n,e,r);break e;case 14:t=ej(null,t,n,ca(n.type,e),r);break e}throw Error(Te(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),nS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),tj(e,t,n,o,r);case 3:e:{if(y3(t),e===null)throw Error(Te(387));n=t.pendingProps,a=t.memoizedState,o=a.element,UD(e,t),Ng(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Vc(Error(Te(423)),t),t=rj(e,t,n,r,o);break e}else if(n!==o){o=Vc(Error(Te(424)),t),t=rj(e,t,n,r,o);break e}else for(ao=Cs(t.stateNode.containerInfo.firstChild),lo=t,tr=!0,pa=null,r=HD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Bc(),n===o){t=$i(e,t,r);break e}Sn(e,t,n,r)}t=t.child}return t;case 5:return GD(t),e===null&&Jw(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Gw(n,o)?i=null:a!==null&&Gw(n,a)&&(t.flags|=32),g3(e,t),Sn(e,t,i,r),t.child;case 6:return e===null&&Jw(t),null;case 13:return b3(e,t,r);case 4:return _E(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=zc(t,null,n,r):Sn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),ZI(e,t,n,o,r);case 7:return Sn(e,t,t.pendingProps,r),t.child;case 8:return Sn(e,t,t.pendingProps.children,r),t.child;case 12:return Sn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,qt(Fg,n._currentValue),n._currentValue=i,a!==null)if(ba(a.value,i)){if(a.children===o.children&&!Vn.current){t=$i(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===n){if(a.tag===1){c=Si(-1,r&-r),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),Zw(a.return,r,t),s.lanes|=r;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(Te(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Zw(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Sn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,_c(t,r),o=Uo(o),n=n(o),t.flags|=1,Sn(e,t,n,r),t.child;case 14:return n=t.type,o=ca(n,t.pendingProps),o=ca(n.type,o),ej(e,t,n,o,r);case 15:return m3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),Bh(e,t),t.tag=1,Wn(n)?(e=!0,jg(t)):e=!1,_c(t,r),WD(t,n,o),tS(t,n,o,r),oS(null,t,n,!0,e,r);case 19:return _3(e,t,r);case 22:return h3(e,t,r)}throw Error(Te(156,t.tag))};function F3(e,t){return lD(e,t)}function cJ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function No(e,t,r,n){return new cJ(e,t,r,n)}function ME(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dJ(e){if(typeof e=="function")return ME(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eE)return 11;if(e===tE)return 14}return 2}function $s(e,t){var r=e.alternate;return r===null?(r=No(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Vh(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")ME(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Qu:return Al(r.children,o,a,t);case ZO:i=8,o|=8;break;case Ow:return e=No(12,r,t,o|2),e.elementType=Ow,e.lanes=a,e;case Ew:return e=No(13,r,t,o),e.elementType=Ew,e.lanes=a,e;case Pw:return e=No(19,r,t,o),e.elementType=Pw,e.lanes=a,e;case qN:return Cb(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VN:i=10;break e;case WN:i=9;break e;case eE:i=11;break e;case tE:i=14;break e;case as:i=16,n=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=No(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Al(e,t,r,n){return e=No(7,e,n,t),e.lanes=r,e}function Cb(e,t,r,n){return e=No(22,e,n,t),e.elementType=qN,e.lanes=r,e.stateNode={isHidden:!1},e}function cx(e,t,r){return e=No(6,e,null,t),e.lanes=r,e}function dx(e,t,r){return t=No(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fJ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=q_(0),this.expirationTimes=q_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=q_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function FE(e,t,r,n,o,a,i,s,c){return e=new fJ(e,t,r,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=No(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},bE(a),e}function pJ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B3)}catch(e){console.error(e)}}B3(),NN.exports=mo;var Rb=NN.exports;const Af=gr(Rb);var z3,vj=Rb;z3=vj.createRoot,vj.hydrateRoot;var Gg={exports:{}};/** +`+a.stack}return{value:e,source:t,stack:o,digest:null}}function lx(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function rS(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var HY=typeof WeakMap=="function"?WeakMap:Map;function p3(e,t,r){r=Si(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Vg||(Vg=!0,fS=n),rS(e,t)},r}function v3(e,t,r){r=Si(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){rS(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){rS(e,t),typeof n!="function"&&(Es===null?Es=new Set([this]):Es.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function XI(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new HY;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=iJ.bind(null,e,t,r),t.then(e,e))}function YI(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function JI(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Si(-1,1),t.tag=2,Os(r,t,1))),r.lanes|=1),e)}var GY=ki.ReactCurrentOwner,Un=!1;function Sn(e,t,r,n){t.child=e===null?HD(t,null,r,n):zc(t,e.child,r,n)}function ZI(e,t,r,n,o){r=r.render;var a=t.ref;return _c(t,o),n=CE(e,t,r,n,a,o),r=OE(),e!==null&&!Un?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$i(e,t,o)):(tr&&r&&fE(t),t.flags|=1,Sn(e,t,n,o),t.child)}function ej(e,t,r,n,o){if(e===null){var a=r.type;return typeof a=="function"&&!ME(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,m3(e,t,a,n,o)):(e=Vh(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(r=r.compare,r=r!==null?r:Op,r(i,n)&&e.ref===t.ref)return $i(e,t,o)}return t.flags|=1,e=$s(a,n),e.ref=t.ref,e.return=t,t.child=e}function m3(e,t,r,n,o){if(e!==null){var a=e.memoizedProps;if(Op(a,n)&&e.ref===t.ref)if(Un=!1,t.pendingProps=n=a,(e.lanes&o)!==0)e.flags&131072&&(Un=!0);else return t.lanes=e.lanes,$i(e,t,o)}return nS(e,t,r,n,o)}function h3(e,t,r){var n=t.pendingProps,o=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qt(ac,ro),ro|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,qt(ac,ro),ro|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,qt(ac,ro),ro|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,qt(ac,ro),ro|=n;return Sn(e,t,o,r),t.child}function g3(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function nS(e,t,r,n,o){var a=Wn(r)?Hl:vn.current;return a=Dc(t,a),_c(t,o),r=CE(e,t,r,n,a,o),n=OE(),e!==null&&!Un?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$i(e,t,o)):(tr&&n&&fE(t),t.flags|=1,Sn(e,t,r,o),t.child)}function tj(e,t,r,n,o){if(Wn(r)){var a=!0;jg(t)}else a=!1;if(_c(t,o),t.stateNode===null)Bh(e,t),WD(t,r,n),tS(t,r,n,o),n=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,l=r.contextType;typeof l=="object"&&l!==null?l=Uo(l):(l=Wn(r)?Hl:vn.current,l=Dc(t,l));var f=r.getDerivedStateFromProps,v=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";v||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==n||c!==l)&&HI(t,i,n,l),is=!1;var m=t.memoizedState;i.state=m,Ng(t,n,i,o),c=t.memoizedState,s!==n||m!==c||Vn.current||is?(typeof f=="function"&&(eS(t,r,f,n),c=t.memoizedState),(s=is||qI(t,r,s,n,m,c,l))?(v||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),i.props=n,i.state=c,i.context=l,n=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,UD(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ca(t.type,s),i.props=l,v=t.pendingProps,m=i.context,c=r.contextType,typeof c=="object"&&c!==null?c=Uo(c):(c=Wn(r)?Hl:vn.current,c=Dc(t,c));var h=r.getDerivedStateFromProps;(f=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==v||m!==c)&&HI(t,i,n,c),is=!1,m=t.memoizedState,i.state=m,Ng(t,n,i,o);var x=t.memoizedState;s!==v||m!==x||Vn.current||is?(typeof h=="function"&&(eS(t,r,h,n),x=t.memoizedState),(l=is||qI(t,r,l,n,m,x,c)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,x,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,x,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=x),i.props=n,i.state=x,i.context=c,n=l):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),n=!1)}return oS(e,t,r,n,a,o)}function oS(e,t,r,n,o,a){g3(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return o&&BI(t,r,!1),$i(e,t,a);n=t.stateNode,GY.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=zc(t,e.child,null,a),t.child=zc(t,null,s,a)):Sn(e,t,s,a),t.memoizedState=n.state,o&&BI(t,r,!0),t.child}function y3(e){var t=e.stateNode;t.pendingContext?DI(e,t.pendingContext,t.pendingContext!==t.context):t.context&&DI(e,t.context,!1),_E(e,t.containerInfo)}function rj(e,t,r,n,o){return Bc(),vE(o),t.flags|=256,Sn(e,t,r,n),t.child}var aS={dehydrated:null,treeContext:null,retryLane:0};function iS(e){return{baseLanes:e,cachePool:null,transitions:null}}function b3(e,t,r){var n=t.pendingProps,o=nr.current,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),qt(nr,o&1),e===null)return Jw(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=n.children,e=n.fallback,a?(n=t.mode,a=t.child,i={mode:"hidden",children:i},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=Cb(i,n,0,null),e=Al(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=iS(r),t.memoizedState=aS,e):$E(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return KY(e,t,i,n,s,o,r);if(a){a=n.fallback,i=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:n.children};return!(i&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=$s(o,c),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?a=$s(s,a):(a=Al(a,i,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,i=e.child.memoizedState,i=i===null?iS(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~r,t.memoizedState=aS,n}return a=e.child,e=a.sibling,n=$s(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function $E(e,t){return t=Cb({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function nh(e,t,r,n){return n!==null&&vE(n),zc(t,e.child,null,r),e=$E(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function KY(e,t,r,n,o,a,i){if(r)return t.flags&256?(t.flags&=-257,n=lx(Error(Te(422))),nh(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=Cb({mode:"visible",children:n.children},o,0,null),a=Al(a,o,i,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&zc(t,e.child,null,i),t.child.memoizedState=iS(i),t.memoizedState=aS,a);if(!(t.mode&1))return nh(e,t,i,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(Te(419)),n=lx(a,n,void 0),nh(e,t,i,n)}if(s=(i&e.childLanes)!==0,Un||s){if(n=Ur,n!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Pi(e,o),ya(n,e,o,-1))}return AE(),n=lx(Error(Te(421))),nh(e,t,i,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=sJ.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,ao=Cs(o.nextSibling),lo=t,tr=!0,pa=null,e!==null&&(jo[Ao++]=_i,jo[Ao++]=xi,jo[Ao++]=Gl,_i=e.id,xi=e.overflow,Gl=t),t=$E(t,n.children),t.flags|=4096,t)}function nj(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Zw(e.return,t,r)}function ux(e,t,r,n,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function _3(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(Sn(e,t,n.children,r),n=nr.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nj(e,r,t);else if(e.tag===19)nj(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(qt(nr,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Dg(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),ux(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Dg(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}ux(t,!0,r,null,a);break;case"together":ux(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $i(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ql|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Te(153));if(t.child!==null){for(e=t.child,r=$s(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=$s(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function QY(e,t,r){switch(t.tag){case 3:y3(t),Bc();break;case 5:GD(t);break;case 1:Wn(t.type)&&jg(t);break;case 4:_E(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;qt(Fg,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(qt(nr,nr.current&1),t.flags|=128,null):r&t.child.childLanes?b3(e,t,r):(qt(nr,nr.current&1),e=$i(e,t,r),e!==null?e.sibling:null);qt(nr,nr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return _3(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),qt(nr,nr.current),n)break;return null;case 22:case 23:return t.lanes=0,h3(e,t,r)}return $i(e,t,r)}var x3,sS,w3,S3;x3=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};sS=function(){};w3=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Pl(Ua.current);var a=null;switch(r){case"input":o=Rw(e,o),n=Rw(e,n),a=[];break;case"select":o=ir({},o,{value:void 0}),n=ir({},n,{value:void 0}),a=[];break;case"textarea":o=Iw(e,o),n=Iw(e,n),a=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=kg)}Aw(r,n);var i;r=null;for(l in o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var s=o[l];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(yp.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in n){var c=n[l];if(s=o!=null?o[l]:void 0,n.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(r||(r={}),r[i]=c[i])}else r||(a||(a=[]),a.push(l,r)),r=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(a=a||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(yp.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&Kt("scroll",e),a||s===c||(a=[])):(a=a||[]).push(l,c))}r&&(a=a||[]).push("style",r);var l=a;(t.updateQueue=l)&&(t.flags|=4)}};S3=function(e,t,r,n){r!==n&&(t.flags|=4)};function vf(e,t){if(!tr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function sn(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function XY(e,t,r){var n=t.pendingProps;switch(pE(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(t),null;case 1:return Wn(t.type)&&Ig(),sn(t),null;case 3:return n=t.stateNode,Uc(),Yt(Vn),Yt(vn),wE(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(th(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pa!==null&&(mS(pa),pa=null))),sS(e,t),sn(t),null;case 5:xE(t);var o=Pl(Tp.current);if(r=t.type,e!==null&&t.stateNode!=null)w3(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Te(166));return sn(t),null}if(e=Pl(Ua.current),th(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Na]=t,n[$p]=a,e=(t.mode&1)!==0,r){case"dialog":Kt("cancel",n),Kt("close",n);break;case"iframe":case"object":case"embed":Kt("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Na]=t,e[$p]=n,x3(e,t,!1,!1),t.stateNode=e;e:{switch(i=Mw(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),o=n;break;case"iframe":case"object":case"embed":Kt("load",e),o=n;break;case"video":case"audio":for(o=0;oWc&&(t.flags|=128,n=!0,vf(a,!1),t.lanes=4194304)}else{if(!n)if(e=Dg(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),vf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!tr)return sn(t),null}else 2*mr()-a.renderingStartTime>Wc&&r!==1073741824&&(t.flags|=128,n=!0,vf(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=mr(),t.sibling=null,r=nr.current,qt(nr,n?r&1|2:r&1),t):(sn(t),null);case 22:case 23:return jE(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ro&1073741824&&(sn(t),t.subtreeFlags&6&&(t.flags|=8192)):sn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function YY(e,t){switch(pE(t),t.tag){case 1:return Wn(t.type)&&Ig(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uc(),Yt(Vn),Yt(vn),wE(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xE(t),null;case 13:if(Yt(nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Bc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Yt(nr),null;case 4:return Uc(),null;case 10:return gE(t.type._context),null;case 22:case 23:return jE(),null;case 24:return null;default:return null}}var oh=!1,un=!1,JY=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function oc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){dr(e,t,n)}else r.current=null}function lS(e,t,r){try{r()}catch(n){dr(e,t,n)}}var oj=!1;function ZY(e,t){if(qw=$g,e=PD(),dE(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,c=-1,l=0,f=0,v=e,m=null;t:for(;;){for(var h;v!==r||o!==0&&v.nodeType!==3||(s=i+o),v!==a||n!==0&&v.nodeType!==3||(c=i+n),v.nodeType===3&&(i+=v.nodeValue.length),(h=v.firstChild)!==null;)m=v,v=h;for(;;){if(v===e)break t;if(m===r&&++l===o&&(s=i),m===a&&++f===n&&(c=i),(h=v.nextSibling)!==null)break;v=m,m=v.parentNode}v=h}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Hw={focusedElem:e,selectionRange:r},$g=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,C=x.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?w:ca(t.type,w),C);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch($){dr(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return x=oj,oj=!1,x}function qf(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&lS(t,r,a)}o=o.next}while(o!==n)}}function wb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function uS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function C3(e){var t=e.alternate;t!==null&&(e.alternate=null,C3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Na],delete t[$p],delete t[Qw],delete t[MY],delete t[FY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function O3(e){return e.tag===5||e.tag===3||e.tag===4}function aj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||O3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=kg));else if(n!==4&&(e=e.child,e!==null))for(cS(e,t,r),e=e.sibling;e!==null;)cS(e,t,r),e=e.sibling}function dS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(dS(e,t,r),e=e.sibling;e!==null;)dS(e,t,r),e=e.sibling}var Qr=null,fa=!1;function Zi(e,t,r){for(r=r.child;r!==null;)E3(e,t,r),r=r.sibling}function E3(e,t,r){if(za&&typeof za.onCommitFiberUnmount=="function")try{za.onCommitFiberUnmount(vb,r)}catch{}switch(r.tag){case 5:un||oc(r,t);case 6:var n=Qr,o=fa;Qr=null,Zi(e,t,r),Qr=n,fa=o,Qr!==null&&(fa?(e=Qr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Qr.removeChild(r.stateNode));break;case 18:Qr!==null&&(fa?(e=Qr,r=r.stateNode,e.nodeType===8?rx(e.parentNode,r):e.nodeType===1&&rx(e,r),Sp(e)):rx(Qr,r.stateNode));break;case 4:n=Qr,o=fa,Qr=r.stateNode.containerInfo,fa=!0,Zi(e,t,r),Qr=n,fa=o;break;case 0:case 11:case 14:case 15:if(!un&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&lS(r,t,i),o=o.next}while(o!==n)}Zi(e,t,r);break;case 1:if(!un&&(oc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){dr(r,t,s)}Zi(e,t,r);break;case 21:Zi(e,t,r);break;case 22:r.mode&1?(un=(n=un)||r.memoizedState!==null,Zi(e,t,r),un=n):Zi(e,t,r);break;default:Zi(e,t,r)}}function ij(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new JY),t.forEach(function(n){var o=lJ.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function ua(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=mr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*tJ(n/1960))-n,10e?16:e,ms===null)var n=!1;else{if(e=ms,ms=null,Wg=0,St&6)throw Error(Te(331));var o=St;for(St|=4,Ke=e.current;Ke!==null;){var a=Ke,i=a.child;if(Ke.flags&16){var s=a.deletions;if(s!==null){for(var c=0;cmr()-kE?jl(e,0):TE|=r),qn(e,t)}function A3(e,t){t===0&&(e.mode&1?(t=Qm,Qm<<=1,!(Qm&130023424)&&(Qm=4194304)):t=1);var r=Pn();e=Pi(e,t),e!==null&&(nv(e,t,r),qn(e,r))}function sJ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),A3(e,r)}function lJ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Te(314))}n!==null&&n.delete(t),A3(e,r)}var M3;M3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vn.current)Un=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Un=!1,QY(e,t,r);Un=!!(e.flags&131072)}else Un=!1,tr&&t.flags&1048576&&ND(t,Mg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bh(e,t),e=t.pendingProps;var o=Dc(t,vn.current);_c(t,r),o=CE(null,t,n,e,o,r);var a=OE();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wn(n)?(a=!0,jg(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bE(t),o.updater=_b,t.stateNode=o,o._reactInternals=t,tS(t,n,e,r),t=oS(null,t,n,!0,a,r)):(t.tag=0,tr&&a&&fE(t),Sn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bh(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=cJ(n),e=ca(n,e),o){case 0:t=nS(null,t,n,e,r);break e;case 1:t=tj(null,t,n,e,r);break e;case 11:t=ZI(null,t,n,e,r);break e;case 14:t=ej(null,t,n,ca(n.type,e),r);break e}throw Error(Te(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),nS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),tj(e,t,n,o,r);case 3:e:{if(y3(t),e===null)throw Error(Te(387));n=t.pendingProps,a=t.memoizedState,o=a.element,UD(e,t),Ng(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Vc(Error(Te(423)),t),t=rj(e,t,n,r,o);break e}else if(n!==o){o=Vc(Error(Te(424)),t),t=rj(e,t,n,r,o);break e}else for(ao=Cs(t.stateNode.containerInfo.firstChild),lo=t,tr=!0,pa=null,r=HD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Bc(),n===o){t=$i(e,t,r);break e}Sn(e,t,n,r)}t=t.child}return t;case 5:return GD(t),e===null&&Jw(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Gw(n,o)?i=null:a!==null&&Gw(n,a)&&(t.flags|=32),g3(e,t),Sn(e,t,i,r),t.child;case 6:return e===null&&Jw(t),null;case 13:return b3(e,t,r);case 4:return _E(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=zc(t,null,n,r):Sn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),ZI(e,t,n,o,r);case 7:return Sn(e,t,t.pendingProps,r),t.child;case 8:return Sn(e,t,t.pendingProps.children,r),t.child;case 12:return Sn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,qt(Fg,n._currentValue),n._currentValue=i,a!==null)if(ba(a.value,i)){if(a.children===o.children&&!Vn.current){t=$i(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var c=s.firstContext;c!==null;){if(c.context===n){if(a.tag===1){c=Si(-1,r&-r),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var f=l.pending;f===null?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),Zw(a.return,r,t),s.lanes|=r;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(Te(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Zw(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Sn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,_c(t,r),o=Uo(o),n=n(o),t.flags|=1,Sn(e,t,n,r),t.child;case 14:return n=t.type,o=ca(n,t.pendingProps),o=ca(n.type,o),ej(e,t,n,o,r);case 15:return m3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ca(n,o),Bh(e,t),t.tag=1,Wn(n)?(e=!0,jg(t)):e=!1,_c(t,r),WD(t,n,o),tS(t,n,o,r),oS(null,t,n,!0,e,r);case 19:return _3(e,t,r);case 22:return h3(e,t,r)}throw Error(Te(156,t.tag))};function F3(e,t){return lD(e,t)}function uJ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function No(e,t,r,n){return new uJ(e,t,r,n)}function ME(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cJ(e){if(typeof e=="function")return ME(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eE)return 11;if(e===tE)return 14}return 2}function $s(e,t){var r=e.alternate;return r===null?(r=No(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Vh(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")ME(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Qu:return Al(r.children,o,a,t);case ZO:i=8,o|=8;break;case Ow:return e=No(12,r,t,o|2),e.elementType=Ow,e.lanes=a,e;case Ew:return e=No(13,r,t,o),e.elementType=Ew,e.lanes=a,e;case Pw:return e=No(19,r,t,o),e.elementType=Pw,e.lanes=a,e;case qN:return Cb(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VN:i=10;break e;case WN:i=9;break e;case eE:i=11;break e;case tE:i=14;break e;case as:i=16,n=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=No(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function Al(e,t,r,n){return e=No(7,e,n,t),e.lanes=r,e}function Cb(e,t,r,n){return e=No(22,e,n,t),e.elementType=qN,e.lanes=r,e.stateNode={isHidden:!1},e}function cx(e,t,r){return e=No(6,e,null,t),e.lanes=r,e}function dx(e,t,r){return t=No(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dJ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=q_(0),this.expirationTimes=q_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=q_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function FE(e,t,r,n,o,a,i,s,c){return e=new dJ(e,t,r,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=No(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},bE(a),e}function fJ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B3)}catch(e){console.error(e)}}B3(),NN.exports=mo;var Rb=NN.exports;const Af=gr(Rb);var z3,vj=Rb;z3=vj.createRoot,vj.hydrateRoot;var Gg={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 - */Gg.exports;(function(e,t){(function(){var r,n="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",v=1,m=2,h=4,x=1,w=2,C=1,b=2,g=4,_=8,$=16,P=32,E=64,T=128,R=256,I=512,A=30,F="...",L=800,D=16,z=1,H=2,G=3,q=1/0,U=9007199254740991,W=17976931348623157e292,te=NaN,ne=4294967295,ee=ne-1,Ce=ne>>>1,de=[["ary",T],["bind",C],["bindKey",b],["curry",_],["curryRight",$],["flip",I],["partial",P],["partialRight",E],["rearg",R]],oe="[object Arguments]",me="[object Array]",Re="[object AsyncFunction]",ye="[object Boolean]",fe="[object Date]",ge="[object DOMException]",ce="[object Error]",pe="[object Function]",ae="[object GeneratorFunction]",Se="[object Map]",Oe="[object Number]",Ne="[object Null]",Xe="[object Object]",V="[object Promise]",X="[object Proxy]",Y="[object RegExp]",ie="[object Set]",se="[object String]",ue="[object Symbol]",Ee="[object Undefined]",Ie="[object WeakMap]",at="[object WeakSet]",ot="[object ArrayBuffer]",Le="[object DataView]",De="[object Float32Array]",ft="[object Float64Array]",Et="[object Int8Array]",Ot="[object Int16Array]",Ue="[object Int32Array]",et="[object Uint8Array]",ke="[object Uint8ClampedArray]",Be="[object Uint16Array]",ct="[object Uint32Array]",yt=/\b__p \+= '';/g,Jt=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hn=/&(?:amp|lt|gt|quot|#39);/g,oa=/[&<>"']/g,Qn=RegExp(hn.source),Vi=RegExp(oa.source),Qv=/<%-([\s\S]+?)%>/g,S1=/<%([\s\S]+?)%>/g,Xv=/<%=([\s\S]+?)%>/g,C1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vd=/^\w*$/,O1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ri=/[\\^$.*+?()[\]{}|]/g,Wd=RegExp(ri.source),gn=/^\s+/,rl=/\s/,E1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nl=/\{\n\/\* \[wrapped with (.+)\] \*/,qd=/,? & /,Yv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jv=/[()=,{}\[\]\/\s]/,Zv=/\\(\\)?/g,em=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tm=/\w*$/,P1=/^[-+]0x[0-9a-f]+$/i,$1=/^0b[01]+$/i,R1=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yn=/^(?:0|[1-9]\d*)$/,NV=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rm=/($^)/,DV=/['\n\r\u2028\u2029\\]/g,nm="\\ud800-\\udfff",BV="\\u0300-\\u036f",zV="\\ufe20-\\ufe2f",UV="\\u20d0-\\u20ff",MR=BV+zV+UV,FR="\\u2700-\\u27bf",LR="a-z\\xdf-\\xf6\\xf8-\\xff",VV="\\xac\\xb1\\xd7\\xf7",WV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qV="\\u2000-\\u206f",HV=" \\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",NR="A-Z\\xc0-\\xd6\\xd8-\\xde",DR="\\ufe0e\\ufe0f",BR=VV+WV+qV+HV,T1="['’]",GV="["+nm+"]",zR="["+BR+"]",om="["+MR+"]",UR="\\d+",KV="["+FR+"]",VR="["+LR+"]",WR="[^"+nm+BR+UR+FR+LR+NR+"]",k1="\\ud83c[\\udffb-\\udfff]",QV="(?:"+om+"|"+k1+")",qR="[^"+nm+"]",I1="(?:\\ud83c[\\udde6-\\uddff]){2}",j1="[\\ud800-\\udbff][\\udc00-\\udfff]",hu="["+NR+"]",HR="\\u200d",GR="(?:"+VR+"|"+WR+")",XV="(?:"+hu+"|"+WR+")",KR="(?:"+T1+"(?:d|ll|m|re|s|t|ve))?",QR="(?:"+T1+"(?:D|LL|M|RE|S|T|VE))?",XR=QV+"?",YR="["+DR+"]?",YV="(?:"+HR+"(?:"+[qR,I1,j1].join("|")+")"+YR+XR+")*",JV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ZV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",JR=YR+XR+YV,eW="(?:"+[KV,I1,j1].join("|")+")"+JR,tW="(?:"+[qR+om+"?",om,I1,j1,GV].join("|")+")",rW=RegExp(T1,"g"),nW=RegExp(om,"g"),A1=RegExp(k1+"(?="+k1+")|"+tW+JR,"g"),oW=RegExp([hu+"?"+VR+"+"+KR+"(?="+[zR,hu,"$"].join("|")+")",XV+"+"+QR+"(?="+[zR,hu+GR,"$"].join("|")+")",hu+"?"+GR+"+"+KR,hu+"+"+QR,ZV,JV,UR,eW].join("|"),"g"),aW=RegExp("["+HR+nm+MR+DR+"]"),iW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sW=["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"],lW=-1,Gt={};Gt[De]=Gt[ft]=Gt[Et]=Gt[Ot]=Gt[Ue]=Gt[et]=Gt[ke]=Gt[Be]=Gt[ct]=!0,Gt[oe]=Gt[me]=Gt[ot]=Gt[ye]=Gt[Le]=Gt[fe]=Gt[ce]=Gt[pe]=Gt[Se]=Gt[Oe]=Gt[Xe]=Gt[Y]=Gt[ie]=Gt[se]=Gt[Ie]=!1;var zt={};zt[oe]=zt[me]=zt[ot]=zt[Le]=zt[ye]=zt[fe]=zt[De]=zt[ft]=zt[Et]=zt[Ot]=zt[Ue]=zt[Se]=zt[Oe]=zt[Xe]=zt[Y]=zt[ie]=zt[se]=zt[ue]=zt[et]=zt[ke]=zt[Be]=zt[ct]=!0,zt[ce]=zt[pe]=zt[Ie]=!1;var uW={À:"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"},cW={"&":"&","<":"<",">":">",'"':""","'":"'"},dW={"&":"&","<":"<",">":">",""":'"',"'":"'"},fW={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pW=parseFloat,vW=parseInt,ZR=typeof no=="object"&&no&&no.Object===Object&&no,mW=typeof self=="object"&&self&&self.Object===Object&&self,qr=ZR||mW||Function("return this")(),M1=t&&!t.nodeType&&t,ol=M1&&!0&&e&&!e.nodeType&&e,eT=ol&&ol.exports===M1,F1=eT&&ZR.process,_o=function(){try{var Z=ol&&ol.require&&ol.require("util").types;return Z||F1&&F1.binding&&F1.binding("util")}catch{}}(),tT=_o&&_o.isArrayBuffer,rT=_o&&_o.isDate,nT=_o&&_o.isMap,oT=_o&&_o.isRegExp,aT=_o&&_o.isSet,iT=_o&&_o.isTypedArray;function Xn(Z,he,le){switch(le.length){case 0:return Z.call(he);case 1:return Z.call(he,le[0]);case 2:return Z.call(he,le[0],le[1]);case 3:return Z.call(he,le[0],le[1],le[2])}return Z.apply(he,le)}function hW(Z,he,le,qe){for(var st=-1,Pt=Z==null?0:Z.length;++st-1}function L1(Z,he,le){for(var qe=-1,st=Z==null?0:Z.length;++qe-1;);return le}function vT(Z,he){for(var le=Z.length;le--&&gu(he,Z[le],0)>-1;);return le}function OW(Z,he){for(var le=Z.length,qe=0;le--;)Z[le]===he&&++qe;return qe}var EW=z1(uW),PW=z1(cW);function $W(Z){return"\\"+fW[Z]}function RW(Z,he){return Z==null?r:Z[he]}function yu(Z){return aW.test(Z)}function TW(Z){return iW.test(Z)}function kW(Z){for(var he,le=[];!(he=Z.next()).done;)le.push(he.value);return le}function q1(Z){var he=-1,le=Array(Z.size);return Z.forEach(function(qe,st){le[++he]=[st,qe]}),le}function mT(Z,he){return function(le){return Z(he(le))}}function Hi(Z,he){for(var le=-1,qe=Z.length,st=0,Pt=[];++le-1}function y7(u,p){var y=this.__data__,k=wm(y,u);return k<0?(++this.size,y.push([u,p])):y[k][1]=p,this}ni.prototype.clear=v7,ni.prototype.delete=m7,ni.prototype.get=h7,ni.prototype.has=g7,ni.prototype.set=y7;function oi(u){var p=-1,y=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function Co(u,p,y,k,M,B){var K,Q=p&v,re=p&m,be=p&h;if(y&&(K=M?y(u,k,M,B):y(u)),K!==r)return K;if(!rr(u))return u;var _e=lt(u);if(_e){if(K=wq(u),!Q)return jn(u,K)}else{var Pe=on(u),Fe=Pe==pe||Pe==ae;if(Ji(u))return YT(u,Q);if(Pe==Xe||Pe==oe||Fe&&!M){if(K=re||Fe?{}:hk(u),!Q)return re?dq(u,A7(K,u)):cq(u,PT(K,u))}else{if(!zt[Pe])return M?u:{};K=Sq(u,Pe,Q)}}B||(B=new ia);var Ye=B.get(u);if(Ye)return Ye;B.set(u,K),qk(u)?u.forEach(function(nt){K.add(Co(nt,p,y,nt,u,B))}):Vk(u)&&u.forEach(function(nt,gt){K.set(gt,Co(nt,p,y,gt,u,B))});var rt=be?re?g_:h_:re?Mn:Nr,dt=_e?r:rt(u);return xo(dt||u,function(nt,gt){dt&&(gt=nt,nt=u[gt]),Jd(K,gt,Co(nt,p,y,gt,u,B))}),K}function M7(u){var p=Nr(u);return function(y){return $T(y,u,p)}}function $T(u,p,y){var k=y.length;if(u==null)return!k;for(u=Dt(u);k--;){var M=y[k],B=p[M],K=u[M];if(K===r&&!(M in u)||!B(K))return!1}return!0}function RT(u,p,y){if(typeof u!="function")throw new wo(i);return af(function(){u.apply(r,y)},p)}function Zd(u,p,y,k){var M=-1,B=am,K=!0,Q=u.length,re=[],be=p.length;if(!Q)return re;y&&(p=Zt(p,Yn(y))),k?(B=L1,K=!1):p.length>=o&&(B=Hd,K=!1,p=new sl(p));e:for(;++MM?0:M+y),k=k===r||k>M?M:ut(k),k<0&&(k+=M),k=y>k?0:Gk(k);y0&&y(Q)?p>1?Hr(Q,p-1,y,k,M):qi(M,Q):k||(M[M.length]=Q)}return M}var J1=nk(),IT=nk(!0);function Pa(u,p){return u&&J1(u,p,Nr)}function Z1(u,p){return u&&IT(u,p,Nr)}function Cm(u,p){return Wi(p,function(y){return ui(u[y])})}function ul(u,p){p=Xi(p,u);for(var y=0,k=p.length;u!=null&&yp}function N7(u,p){return u!=null&&kt.call(u,p)}function D7(u,p){return u!=null&&p in Dt(u)}function B7(u,p,y){return u>=nn(p,y)&&u=120&&_e.length>=120)?new sl(K&&_e):r}_e=u[0];var Pe=-1,Fe=Q[0];e:for(;++Pe-1;)Q!==u&&mm.call(Q,re,1),mm.call(u,re,1);return u}function VT(u,p){for(var y=u?p.length:0,k=y-1;y--;){var M=p[y];if(y==k||M!==B){var B=M;li(M)?mm.call(u,M,1):u_(u,M)}}return u}function i_(u,p){return u+ym(ST()*(p-u+1))}function Z7(u,p,y,k){for(var M=-1,B=kr(gm((p-u)/(y||1)),0),K=le(B);B--;)K[k?B:++M]=u,u+=y;return K}function s_(u,p){var y="";if(!u||p<1||p>U)return y;do p%2&&(y+=u),p=ym(p/2),p&&(u+=u);while(p);return y}function pt(u,p){return C_(bk(u,p,Fn),u+"")}function eq(u){return ET(Ru(u))}function tq(u,p){var y=Ru(u);return Mm(y,ll(p,0,y.length))}function rf(u,p,y,k){if(!rr(u))return u;p=Xi(p,u);for(var M=-1,B=p.length,K=B-1,Q=u;Q!=null&&++MM?0:M+p),y=y>M?M:y,y<0&&(y+=M),M=p>y?0:y-p>>>0,p>>>=0;for(var B=le(M);++k>>1,K=u[B];K!==null&&!Zn(K)&&(y?K<=p:K=o){var be=p?null:mq(u);if(be)return sm(be);K=!1,M=Hd,re=new sl}else re=p?[]:Q;e:for(;++k=k?u:Oo(u,p,y)}var XT=HW||function(u){return qr.clearTimeout(u)};function YT(u,p){if(p)return u.slice();var y=u.length,k=yT?yT(y):new u.constructor(y);return u.copy(k),k}function p_(u){var p=new u.constructor(u.byteLength);return new pm(p).set(new pm(u)),p}function iq(u,p){var y=p?p_(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function sq(u){var p=new u.constructor(u.source,tm.exec(u));return p.lastIndex=u.lastIndex,p}function lq(u){return Yd?Dt(Yd.call(u)):{}}function JT(u,p){var y=p?p_(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function ZT(u,p){if(u!==p){var y=u!==r,k=u===null,M=u===u,B=Zn(u),K=p!==r,Q=p===null,re=p===p,be=Zn(p);if(!Q&&!be&&!B&&u>p||B&&K&&re&&!Q&&!be||k&&K&&re||!y&&re||!M)return 1;if(!k&&!B&&!be&&u=Q)return re;var be=y[k];return re*(be=="desc"?-1:1)}}return u.index-p.index}function ek(u,p,y,k){for(var M=-1,B=u.length,K=y.length,Q=-1,re=p.length,be=kr(B-K,0),_e=le(re+be),Pe=!k;++Q1?y[M-1]:r,K=M>2?y[2]:r;for(B=u.length>3&&typeof B=="function"?(M--,B):r,K&&_n(y[0],y[1],K)&&(B=M<3?r:B,M=1),p=Dt(p);++k-1?M[B?p[K]:K]:r}}function ik(u){return si(function(p){var y=p.length,k=y,M=So.prototype.thru;for(u&&p.reverse();k--;){var B=p[k];if(typeof B!="function")throw new wo(i);if(M&&!K&&jm(B)=="wrapper")var K=new So([],!0)}for(k=K?k:y;++k1&&wt.reverse(),_e&&reQ))return!1;var be=B.get(u),_e=B.get(p);if(be&&_e)return be==p&&_e==u;var Pe=-1,Fe=!0,Ye=y&w?new sl:r;for(B.set(u,p),B.set(p,u);++Pe1?"& ":"")+p[k],p=p.join(y>2?", ":" "),u.replace(E1,`{ + */Gg.exports;(function(e,t){(function(){var r,n="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",v=1,m=2,h=4,x=1,w=2,C=1,b=2,g=4,_=8,$=16,P=32,E=64,T=128,R=256,I=512,A=30,F="...",L=800,D=16,z=1,H=2,G=3,q=1/0,U=9007199254740991,W=17976931348623157e292,te=NaN,ne=4294967295,ee=ne-1,Ce=ne>>>1,de=[["ary",T],["bind",C],["bindKey",b],["curry",_],["curryRight",$],["flip",I],["partial",P],["partialRight",E],["rearg",R]],oe="[object Arguments]",me="[object Array]",Re="[object AsyncFunction]",ye="[object Boolean]",fe="[object Date]",ge="[object DOMException]",ce="[object Error]",pe="[object Function]",ae="[object GeneratorFunction]",Se="[object Map]",Oe="[object Number]",Ne="[object Null]",Xe="[object Object]",V="[object Promise]",X="[object Proxy]",Y="[object RegExp]",ie="[object Set]",se="[object String]",ue="[object Symbol]",Ee="[object Undefined]",Ie="[object WeakMap]",at="[object WeakSet]",ot="[object ArrayBuffer]",Le="[object DataView]",De="[object Float32Array]",ft="[object Float64Array]",Et="[object Int8Array]",Ot="[object Int16Array]",Ue="[object Int32Array]",et="[object Uint8Array]",ke="[object Uint8ClampedArray]",Be="[object Uint16Array]",ct="[object Uint32Array]",yt=/\b__p \+= '';/g,Jt=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hn=/&(?:amp|lt|gt|quot|#39);/g,oa=/[&<>"']/g,Qn=RegExp(hn.source),Vi=RegExp(oa.source),Qv=/<%-([\s\S]+?)%>/g,S1=/<%([\s\S]+?)%>/g,Xv=/<%=([\s\S]+?)%>/g,C1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vd=/^\w*$/,O1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ri=/[\\^$.*+?()[\]{}|]/g,Wd=RegExp(ri.source),gn=/^\s+/,rl=/\s/,E1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nl=/\{\n\/\* \[wrapped with (.+)\] \*/,qd=/,? & /,Yv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jv=/[()=,{}\[\]\/\s]/,Zv=/\\(\\)?/g,em=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tm=/\w*$/,P1=/^[-+]0x[0-9a-f]+$/i,$1=/^0b[01]+$/i,R1=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,yn=/^(?:0|[1-9]\d*)$/,LV=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rm=/($^)/,NV=/['\n\r\u2028\u2029\\]/g,nm="\\ud800-\\udfff",DV="\\u0300-\\u036f",BV="\\ufe20-\\ufe2f",zV="\\u20d0-\\u20ff",MR=DV+BV+zV,FR="\\u2700-\\u27bf",LR="a-z\\xdf-\\xf6\\xf8-\\xff",UV="\\xac\\xb1\\xd7\\xf7",VV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",WV="\\u2000-\\u206f",qV=" \\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",NR="A-Z\\xc0-\\xd6\\xd8-\\xde",DR="\\ufe0e\\ufe0f",BR=UV+VV+WV+qV,T1="['’]",HV="["+nm+"]",zR="["+BR+"]",om="["+MR+"]",UR="\\d+",GV="["+FR+"]",VR="["+LR+"]",WR="[^"+nm+BR+UR+FR+LR+NR+"]",k1="\\ud83c[\\udffb-\\udfff]",KV="(?:"+om+"|"+k1+")",qR="[^"+nm+"]",I1="(?:\\ud83c[\\udde6-\\uddff]){2}",j1="[\\ud800-\\udbff][\\udc00-\\udfff]",hu="["+NR+"]",HR="\\u200d",GR="(?:"+VR+"|"+WR+")",QV="(?:"+hu+"|"+WR+")",KR="(?:"+T1+"(?:d|ll|m|re|s|t|ve))?",QR="(?:"+T1+"(?:D|LL|M|RE|S|T|VE))?",XR=KV+"?",YR="["+DR+"]?",XV="(?:"+HR+"(?:"+[qR,I1,j1].join("|")+")"+YR+XR+")*",YV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",JV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",JR=YR+XR+XV,ZV="(?:"+[GV,I1,j1].join("|")+")"+JR,eW="(?:"+[qR+om+"?",om,I1,j1,HV].join("|")+")",tW=RegExp(T1,"g"),rW=RegExp(om,"g"),A1=RegExp(k1+"(?="+k1+")|"+eW+JR,"g"),nW=RegExp([hu+"?"+VR+"+"+KR+"(?="+[zR,hu,"$"].join("|")+")",QV+"+"+QR+"(?="+[zR,hu+GR,"$"].join("|")+")",hu+"?"+GR+"+"+KR,hu+"+"+QR,JV,YV,UR,ZV].join("|"),"g"),oW=RegExp("["+HR+nm+MR+DR+"]"),aW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,iW=["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"],sW=-1,Gt={};Gt[De]=Gt[ft]=Gt[Et]=Gt[Ot]=Gt[Ue]=Gt[et]=Gt[ke]=Gt[Be]=Gt[ct]=!0,Gt[oe]=Gt[me]=Gt[ot]=Gt[ye]=Gt[Le]=Gt[fe]=Gt[ce]=Gt[pe]=Gt[Se]=Gt[Oe]=Gt[Xe]=Gt[Y]=Gt[ie]=Gt[se]=Gt[Ie]=!1;var zt={};zt[oe]=zt[me]=zt[ot]=zt[Le]=zt[ye]=zt[fe]=zt[De]=zt[ft]=zt[Et]=zt[Ot]=zt[Ue]=zt[Se]=zt[Oe]=zt[Xe]=zt[Y]=zt[ie]=zt[se]=zt[ue]=zt[et]=zt[ke]=zt[Be]=zt[ct]=!0,zt[ce]=zt[pe]=zt[Ie]=!1;var lW={À:"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"},uW={"&":"&","<":"<",">":">",'"':""","'":"'"},cW={"&":"&","<":"<",">":">",""":'"',"'":"'"},dW={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fW=parseFloat,pW=parseInt,ZR=typeof no=="object"&&no&&no.Object===Object&&no,vW=typeof self=="object"&&self&&self.Object===Object&&self,qr=ZR||vW||Function("return this")(),M1=t&&!t.nodeType&&t,ol=M1&&!0&&e&&!e.nodeType&&e,eT=ol&&ol.exports===M1,F1=eT&&ZR.process,_o=function(){try{var Z=ol&&ol.require&&ol.require("util").types;return Z||F1&&F1.binding&&F1.binding("util")}catch{}}(),tT=_o&&_o.isArrayBuffer,rT=_o&&_o.isDate,nT=_o&&_o.isMap,oT=_o&&_o.isRegExp,aT=_o&&_o.isSet,iT=_o&&_o.isTypedArray;function Xn(Z,he,le){switch(le.length){case 0:return Z.call(he);case 1:return Z.call(he,le[0]);case 2:return Z.call(he,le[0],le[1]);case 3:return Z.call(he,le[0],le[1],le[2])}return Z.apply(he,le)}function mW(Z,he,le,qe){for(var st=-1,Pt=Z==null?0:Z.length;++st-1}function L1(Z,he,le){for(var qe=-1,st=Z==null?0:Z.length;++qe-1;);return le}function vT(Z,he){for(var le=Z.length;le--&&gu(he,Z[le],0)>-1;);return le}function CW(Z,he){for(var le=Z.length,qe=0;le--;)Z[le]===he&&++qe;return qe}var OW=z1(lW),EW=z1(uW);function PW(Z){return"\\"+dW[Z]}function $W(Z,he){return Z==null?r:Z[he]}function yu(Z){return oW.test(Z)}function RW(Z){return aW.test(Z)}function TW(Z){for(var he,le=[];!(he=Z.next()).done;)le.push(he.value);return le}function q1(Z){var he=-1,le=Array(Z.size);return Z.forEach(function(qe,st){le[++he]=[st,qe]}),le}function mT(Z,he){return function(le){return Z(he(le))}}function Hi(Z,he){for(var le=-1,qe=Z.length,st=0,Pt=[];++le-1}function g7(u,p){var y=this.__data__,k=wm(y,u);return k<0?(++this.size,y.push([u,p])):y[k][1]=p,this}ni.prototype.clear=p7,ni.prototype.delete=v7,ni.prototype.get=m7,ni.prototype.has=h7,ni.prototype.set=g7;function oi(u){var p=-1,y=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function Co(u,p,y,k,M,B){var K,Q=p&v,re=p&m,be=p&h;if(y&&(K=M?y(u,k,M,B):y(u)),K!==r)return K;if(!rr(u))return u;var _e=lt(u);if(_e){if(K=xq(u),!Q)return jn(u,K)}else{var Pe=on(u),Fe=Pe==pe||Pe==ae;if(Ji(u))return YT(u,Q);if(Pe==Xe||Pe==oe||Fe&&!M){if(K=re||Fe?{}:hk(u),!Q)return re?cq(u,j7(K,u)):uq(u,PT(K,u))}else{if(!zt[Pe])return M?u:{};K=wq(u,Pe,Q)}}B||(B=new ia);var Ye=B.get(u);if(Ye)return Ye;B.set(u,K),qk(u)?u.forEach(function(nt){K.add(Co(nt,p,y,nt,u,B))}):Vk(u)&&u.forEach(function(nt,gt){K.set(gt,Co(nt,p,y,gt,u,B))});var rt=be?re?g_:h_:re?Mn:Nr,dt=_e?r:rt(u);return xo(dt||u,function(nt,gt){dt&&(gt=nt,nt=u[gt]),Jd(K,gt,Co(nt,p,y,gt,u,B))}),K}function A7(u){var p=Nr(u);return function(y){return $T(y,u,p)}}function $T(u,p,y){var k=y.length;if(u==null)return!k;for(u=Dt(u);k--;){var M=y[k],B=p[M],K=u[M];if(K===r&&!(M in u)||!B(K))return!1}return!0}function RT(u,p,y){if(typeof u!="function")throw new wo(i);return af(function(){u.apply(r,y)},p)}function Zd(u,p,y,k){var M=-1,B=am,K=!0,Q=u.length,re=[],be=p.length;if(!Q)return re;y&&(p=Zt(p,Yn(y))),k?(B=L1,K=!1):p.length>=o&&(B=Hd,K=!1,p=new sl(p));e:for(;++MM?0:M+y),k=k===r||k>M?M:ut(k),k<0&&(k+=M),k=y>k?0:Gk(k);y0&&y(Q)?p>1?Hr(Q,p-1,y,k,M):qi(M,Q):k||(M[M.length]=Q)}return M}var J1=nk(),IT=nk(!0);function Pa(u,p){return u&&J1(u,p,Nr)}function Z1(u,p){return u&&IT(u,p,Nr)}function Cm(u,p){return Wi(p,function(y){return ui(u[y])})}function ul(u,p){p=Xi(p,u);for(var y=0,k=p.length;u!=null&&yp}function L7(u,p){return u!=null&&kt.call(u,p)}function N7(u,p){return u!=null&&p in Dt(u)}function D7(u,p,y){return u>=nn(p,y)&&u=120&&_e.length>=120)?new sl(K&&_e):r}_e=u[0];var Pe=-1,Fe=Q[0];e:for(;++Pe-1;)Q!==u&&mm.call(Q,re,1),mm.call(u,re,1);return u}function VT(u,p){for(var y=u?p.length:0,k=y-1;y--;){var M=p[y];if(y==k||M!==B){var B=M;li(M)?mm.call(u,M,1):u_(u,M)}}return u}function i_(u,p){return u+ym(ST()*(p-u+1))}function J7(u,p,y,k){for(var M=-1,B=kr(gm((p-u)/(y||1)),0),K=le(B);B--;)K[k?B:++M]=u,u+=y;return K}function s_(u,p){var y="";if(!u||p<1||p>U)return y;do p%2&&(y+=u),p=ym(p/2),p&&(u+=u);while(p);return y}function pt(u,p){return C_(bk(u,p,Fn),u+"")}function Z7(u){return ET(Ru(u))}function eq(u,p){var y=Ru(u);return Mm(y,ll(p,0,y.length))}function rf(u,p,y,k){if(!rr(u))return u;p=Xi(p,u);for(var M=-1,B=p.length,K=B-1,Q=u;Q!=null&&++MM?0:M+p),y=y>M?M:y,y<0&&(y+=M),M=p>y?0:y-p>>>0,p>>>=0;for(var B=le(M);++k>>1,K=u[B];K!==null&&!Zn(K)&&(y?K<=p:K=o){var be=p?null:vq(u);if(be)return sm(be);K=!1,M=Hd,re=new sl}else re=p?[]:Q;e:for(;++k=k?u:Oo(u,p,y)}var XT=qW||function(u){return qr.clearTimeout(u)};function YT(u,p){if(p)return u.slice();var y=u.length,k=yT?yT(y):new u.constructor(y);return u.copy(k),k}function p_(u){var p=new u.constructor(u.byteLength);return new pm(p).set(new pm(u)),p}function aq(u,p){var y=p?p_(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function iq(u){var p=new u.constructor(u.source,tm.exec(u));return p.lastIndex=u.lastIndex,p}function sq(u){return Yd?Dt(Yd.call(u)):{}}function JT(u,p){var y=p?p_(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function ZT(u,p){if(u!==p){var y=u!==r,k=u===null,M=u===u,B=Zn(u),K=p!==r,Q=p===null,re=p===p,be=Zn(p);if(!Q&&!be&&!B&&u>p||B&&K&&re&&!Q&&!be||k&&K&&re||!y&&re||!M)return 1;if(!k&&!B&&!be&&u=Q)return re;var be=y[k];return re*(be=="desc"?-1:1)}}return u.index-p.index}function ek(u,p,y,k){for(var M=-1,B=u.length,K=y.length,Q=-1,re=p.length,be=kr(B-K,0),_e=le(re+be),Pe=!k;++Q1?y[M-1]:r,K=M>2?y[2]:r;for(B=u.length>3&&typeof B=="function"?(M--,B):r,K&&_n(y[0],y[1],K)&&(B=M<3?r:B,M=1),p=Dt(p);++k-1?M[B?p[K]:K]:r}}function ik(u){return si(function(p){var y=p.length,k=y,M=So.prototype.thru;for(u&&p.reverse();k--;){var B=p[k];if(typeof B!="function")throw new wo(i);if(M&&!K&&jm(B)=="wrapper")var K=new So([],!0)}for(k=K?k:y;++k1&&wt.reverse(),_e&&reQ))return!1;var be=B.get(u),_e=B.get(p);if(be&&_e)return be==p&&_e==u;var Pe=-1,Fe=!0,Ye=y&w?new sl:r;for(B.set(u,p),B.set(p,u);++Pe1?"& ":"")+p[k],p=p.join(y>2?", ":" "),u.replace(E1,`{ /* [wrapped with `+p+`] */ -`)}function Oq(u){return lt(u)||fl(u)||!!(xT&&u&&u[xT])}function li(u,p){var y=typeof u;return p=p??U,!!p&&(y=="number"||y!="symbol"&&yn.test(u))&&u>-1&&u%1==0&&u0){if(++p>=L)return arguments[0]}else p=0;return u.apply(r,arguments)}}function Mm(u,p){var y=-1,k=u.length,M=k-1;for(p=p===r?k:p;++y1?u[p-1]:r;return y=typeof y=="function"?(u.pop(),y):r,kk(u,y)});function Ik(u){var p=N(u);return p.__chain__=!0,p}function FH(u,p){return p(u),u}function Fm(u,p){return p(u)}var LH=si(function(u){var p=u.length,y=p?u[0]:0,k=this.__wrapped__,M=function(B){return Y1(B,u)};return p>1||this.__actions__.length||!(k instanceof bt)||!li(y)?this.thru(M):(k=k.slice(y,+y+(p?1:0)),k.__actions__.push({func:Fm,args:[M],thisArg:r}),new So(k,this.__chain__).thru(function(B){return p&&!B.length&&B.push(r),B}))});function NH(){return Ik(this)}function DH(){return new So(this.value(),this.__chain__)}function BH(){this.__values__===r&&(this.__values__=Hk(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function zH(){return this}function UH(u){for(var p,y=this;y instanceof xm;){var k=Ok(y);k.__index__=0,k.__values__=r,p?M.__wrapped__=k:p=k;var M=k;y=y.__wrapped__}return M.__wrapped__=u,p}function VH(){var u=this.__wrapped__;if(u instanceof bt){var p=u;return this.__actions__.length&&(p=new bt(this)),p=p.reverse(),p.__actions__.push({func:Fm,args:[O_],thisArg:r}),new So(p,this.__chain__)}return this.thru(O_)}function WH(){return KT(this.__wrapped__,this.__actions__)}var qH=$m(function(u,p,y){kt.call(u,y)?++u[y]:ai(u,y,1)});function HH(u,p,y){var k=lt(u)?sT:F7;return y&&_n(u,p,y)&&(p=r),k(u,tt(p,3))}function GH(u,p){var y=lt(u)?Wi:kT;return y(u,tt(p,3))}var KH=ak(Ek),QH=ak(Pk);function XH(u,p){return Hr(Lm(u,p),1)}function YH(u,p){return Hr(Lm(u,p),q)}function JH(u,p,y){return y=y===r?1:ut(y),Hr(Lm(u,p),y)}function jk(u,p){var y=lt(u)?xo:Ki;return y(u,tt(p,3))}function Ak(u,p){var y=lt(u)?gW:TT;return y(u,tt(p,3))}var ZH=$m(function(u,p,y){kt.call(u,y)?u[y].push(p):ai(u,y,[p])});function eG(u,p,y,k){u=An(u)?u:Ru(u),y=y&&!k?ut(y):0;var M=u.length;return y<0&&(y=kr(M+y,0)),Um(u)?y<=M&&u.indexOf(p,y)>-1:!!M&&gu(u,p,y)>-1}var tG=pt(function(u,p,y){var k=-1,M=typeof p=="function",B=An(u)?le(u.length):[];return Ki(u,function(K){B[++k]=M?Xn(p,K,y):ef(K,p,y)}),B}),rG=$m(function(u,p,y){ai(u,y,p)});function Lm(u,p){var y=lt(u)?Zt:LT;return y(u,tt(p,3))}function nG(u,p,y,k){return u==null?[]:(lt(p)||(p=p==null?[]:[p]),y=k?r:y,lt(y)||(y=y==null?[]:[y]),zT(u,p,y))}var oG=$m(function(u,p,y){u[y?0:1].push(p)},function(){return[[],[]]});function aG(u,p,y){var k=lt(u)?N1:dT,M=arguments.length<3;return k(u,tt(p,4),y,M,Ki)}function iG(u,p,y){var k=lt(u)?yW:dT,M=arguments.length<3;return k(u,tt(p,4),y,M,TT)}function sG(u,p){var y=lt(u)?Wi:kT;return y(u,Bm(tt(p,3)))}function lG(u){var p=lt(u)?ET:eq;return p(u)}function uG(u,p,y){(y?_n(u,p,y):p===r)?p=1:p=ut(p);var k=lt(u)?k7:tq;return k(u,p)}function cG(u){var p=lt(u)?I7:nq;return p(u)}function dG(u){if(u==null)return 0;if(An(u))return Um(u)?bu(u):u.length;var p=on(u);return p==Se||p==ie?u.size:n_(u).length}function fG(u,p,y){var k=lt(u)?D1:oq;return y&&_n(u,p,y)&&(p=r),k(u,tt(p,3))}var pG=pt(function(u,p){if(u==null)return[];var y=p.length;return y>1&&_n(u,p[0],p[1])?p=[]:y>2&&_n(p[0],p[1],p[2])&&(p=[p[0]]),zT(u,Hr(p,1),[])}),Nm=GW||function(){return qr.Date.now()};function vG(u,p){if(typeof p!="function")throw new wo(i);return u=ut(u),function(){if(--u<1)return p.apply(this,arguments)}}function Mk(u,p,y){return p=y?r:p,p=u&&p==null?u.length:p,ii(u,T,r,r,r,r,p)}function Fk(u,p){var y;if(typeof p!="function")throw new wo(i);return u=ut(u),function(){return--u>0&&(y=p.apply(this,arguments)),u<=1&&(p=r),y}}var P_=pt(function(u,p,y){var k=C;if(y.length){var M=Hi(y,Pu(P_));k|=P}return ii(u,k,p,y,M)}),Lk=pt(function(u,p,y){var k=C|b;if(y.length){var M=Hi(y,Pu(Lk));k|=P}return ii(p,k,u,y,M)});function Nk(u,p,y){p=y?r:p;var k=ii(u,_,r,r,r,r,r,p);return k.placeholder=Nk.placeholder,k}function Dk(u,p,y){p=y?r:p;var k=ii(u,$,r,r,r,r,r,p);return k.placeholder=Dk.placeholder,k}function Bk(u,p,y){var k,M,B,K,Q,re,be=0,_e=!1,Pe=!1,Fe=!0;if(typeof u!="function")throw new wo(i);p=Po(p)||0,rr(y)&&(_e=!!y.leading,Pe="maxWait"in y,B=Pe?kr(Po(y.maxWait)||0,p):B,Fe="trailing"in y?!!y.trailing:Fe);function Ye(pr){var la=k,di=M;return k=M=r,be=pr,K=u.apply(di,la),K}function rt(pr){return be=pr,Q=af(gt,p),_e?Ye(pr):K}function dt(pr){var la=pr-re,di=pr-be,aI=p-la;return Pe?nn(aI,B-di):aI}function nt(pr){var la=pr-re,di=pr-be;return re===r||la>=p||la<0||Pe&&di>=B}function gt(){var pr=Nm();if(nt(pr))return wt(pr);Q=af(gt,dt(pr))}function wt(pr){return Q=r,Fe&&k?Ye(pr):(k=M=r,K)}function eo(){Q!==r&&XT(Q),be=0,k=re=M=Q=r}function xn(){return Q===r?K:wt(Nm())}function to(){var pr=Nm(),la=nt(pr);if(k=arguments,M=this,re=pr,la){if(Q===r)return rt(re);if(Pe)return XT(Q),Q=af(gt,p),Ye(re)}return Q===r&&(Q=af(gt,p)),K}return to.cancel=eo,to.flush=xn,to}var mG=pt(function(u,p){return RT(u,1,p)}),hG=pt(function(u,p,y){return RT(u,Po(p)||0,y)});function gG(u){return ii(u,I)}function Dm(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new wo(i);var y=function(){var k=arguments,M=p?p.apply(this,k):k[0],B=y.cache;if(B.has(M))return B.get(M);var K=u.apply(this,k);return y.cache=B.set(M,K)||B,K};return y.cache=new(Dm.Cache||oi),y}Dm.Cache=oi;function Bm(u){if(typeof u!="function")throw new wo(i);return function(){var p=arguments;switch(p.length){case 0:return!u.call(this);case 1:return!u.call(this,p[0]);case 2:return!u.call(this,p[0],p[1]);case 3:return!u.call(this,p[0],p[1],p[2])}return!u.apply(this,p)}}function yG(u){return Fk(2,u)}var bG=aq(function(u,p){p=p.length==1&<(p[0])?Zt(p[0],Yn(tt())):Zt(Hr(p,1),Yn(tt()));var y=p.length;return pt(function(k){for(var M=-1,B=nn(k.length,y);++M=p}),fl=AT(function(){return arguments}())?AT:function(u){return lr(u)&&kt.call(u,"callee")&&!_T.call(u,"callee")},lt=le.isArray,AG=tT?Yn(tT):U7;function An(u){return u!=null&&zm(u.length)&&!ui(u)}function fr(u){return lr(u)&&An(u)}function MG(u){return u===!0||u===!1||lr(u)&&bn(u)==ye}var Ji=QW||D_,FG=rT?Yn(rT):V7;function LG(u){return lr(u)&&u.nodeType===1&&!sf(u)}function NG(u){if(u==null)return!0;if(An(u)&&(lt(u)||typeof u=="string"||typeof u.splice=="function"||Ji(u)||$u(u)||fl(u)))return!u.length;var p=on(u);if(p==Se||p==ie)return!u.size;if(of(u))return!n_(u).length;for(var y in u)if(kt.call(u,y))return!1;return!0}function DG(u,p){return tf(u,p)}function BG(u,p,y){y=typeof y=="function"?y:r;var k=y?y(u,p):r;return k===r?tf(u,p,r,y):!!k}function R_(u){if(!lr(u))return!1;var p=bn(u);return p==ce||p==ge||typeof u.message=="string"&&typeof u.name=="string"&&!sf(u)}function zG(u){return typeof u=="number"&&wT(u)}function ui(u){if(!rr(u))return!1;var p=bn(u);return p==pe||p==ae||p==Re||p==X}function Uk(u){return typeof u=="number"&&u==ut(u)}function zm(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=U}function rr(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function lr(u){return u!=null&&typeof u=="object"}var Vk=nT?Yn(nT):q7;function UG(u,p){return u===p||r_(u,p,b_(p))}function VG(u,p,y){return y=typeof y=="function"?y:r,r_(u,p,b_(p),y)}function WG(u){return Wk(u)&&u!=+u}function qG(u){if($q(u))throw new st(a);return MT(u)}function HG(u){return u===null}function GG(u){return u==null}function Wk(u){return typeof u=="number"||lr(u)&&bn(u)==Oe}function sf(u){if(!lr(u)||bn(u)!=Xe)return!1;var p=vm(u);if(p===null)return!0;var y=kt.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&cm.call(y)==VW}var T_=oT?Yn(oT):H7;function KG(u){return Uk(u)&&u>=-U&&u<=U}var qk=aT?Yn(aT):G7;function Um(u){return typeof u=="string"||!lt(u)&&lr(u)&&bn(u)==se}function Zn(u){return typeof u=="symbol"||lr(u)&&bn(u)==ue}var $u=iT?Yn(iT):K7;function QG(u){return u===r}function XG(u){return lr(u)&&on(u)==Ie}function YG(u){return lr(u)&&bn(u)==at}var JG=Im(o_),ZG=Im(function(u,p){return u<=p});function Hk(u){if(!u)return[];if(An(u))return Um(u)?aa(u):jn(u);if(Gd&&u[Gd])return kW(u[Gd]());var p=on(u),y=p==Se?q1:p==ie?sm:Ru;return y(u)}function ci(u){if(!u)return u===0?u:0;if(u=Po(u),u===q||u===-q){var p=u<0?-1:1;return p*W}return u===u?u:0}function ut(u){var p=ci(u),y=p%1;return p===p?y?p-y:p:0}function Gk(u){return u?ll(ut(u),0,ne):0}function Po(u){if(typeof u=="number")return u;if(Zn(u))return te;if(rr(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=rr(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=fT(u);var y=$1.test(u);return y||mt.test(u)?vW(u.slice(2),y?2:8):P1.test(u)?te:+u}function Kk(u){return $a(u,Mn(u))}function eK(u){return u?ll(ut(u),-U,U):u===0?u:0}function Tt(u){return u==null?"":Jn(u)}var tK=Ou(function(u,p){if(of(p)||An(p)){$a(p,Nr(p),u);return}for(var y in p)kt.call(p,y)&&Jd(u,y,p[y])}),Qk=Ou(function(u,p){$a(p,Mn(p),u)}),Vm=Ou(function(u,p,y,k){$a(p,Mn(p),u,k)}),rK=Ou(function(u,p,y,k){$a(p,Nr(p),u,k)}),nK=si(Y1);function oK(u,p){var y=Cu(u);return p==null?y:PT(y,p)}var aK=pt(function(u,p){u=Dt(u);var y=-1,k=p.length,M=k>2?p[2]:r;for(M&&_n(p[0],p[1],M)&&(k=1);++y1),B}),$a(u,g_(u),y),k&&(y=Co(y,v|m|h,hq));for(var M=p.length;M--;)u_(y,p[M]);return y});function SK(u,p){return Yk(u,Bm(tt(p)))}var CK=si(function(u,p){return u==null?{}:Y7(u,p)});function Yk(u,p){if(u==null)return{};var y=Zt(g_(u),function(k){return[k]});return p=tt(p),UT(u,y,function(k,M){return p(k,M[0])})}function OK(u,p,y){p=Xi(p,u);var k=-1,M=p.length;for(M||(M=1,u=r);++kp){var k=u;u=p,p=k}if(y||u%1||p%1){var M=ST();return nn(u+M*(p-u+pW("1e-"+((M+"").length-1))),p)}return i_(u,p)}var FK=Eu(function(u,p,y){return p=p.toLowerCase(),u+(y?eI(p):p)});function eI(u){return j_(Tt(u).toLowerCase())}function tI(u){return u=Tt(u),u&&u.replace(NV,EW).replace(nW,"")}function LK(u,p,y){u=Tt(u),p=Jn(p);var k=u.length;y=y===r?k:ll(ut(y),0,k);var M=y;return y-=p.length,y>=0&&u.slice(y,M)==p}function NK(u){return u=Tt(u),u&&Vi.test(u)?u.replace(oa,PW):u}function DK(u){return u=Tt(u),u&&Wd.test(u)?u.replace(ri,"\\$&"):u}var BK=Eu(function(u,p,y){return u+(y?"-":"")+p.toLowerCase()}),zK=Eu(function(u,p,y){return u+(y?" ":"")+p.toLowerCase()}),UK=ok("toLowerCase");function VK(u,p,y){u=Tt(u),p=ut(p);var k=p?bu(u):0;if(!p||k>=p)return u;var M=(p-k)/2;return km(ym(M),y)+u+km(gm(M),y)}function WK(u,p,y){u=Tt(u),p=ut(p);var k=p?bu(u):0;return p&&k>>0,y?(u=Tt(u),u&&(typeof p=="string"||p!=null&&!T_(p))&&(p=Jn(p),!p&&yu(u))?Yi(aa(u),0,y):u.split(p,y)):[]}var YK=Eu(function(u,p,y){return u+(y?" ":"")+j_(p)});function JK(u,p,y){return u=Tt(u),y=y==null?0:ll(ut(y),0,u.length),p=Jn(p),u.slice(y,y+p.length)==p}function ZK(u,p,y){var k=N.templateSettings;y&&_n(u,p,y)&&(p=r),u=Tt(u),p=Vm({},p,k,dk);var M=Vm({},p.imports,k.imports,dk),B=Nr(M),K=W1(M,B),Q,re,be=0,_e=p.interpolate||rm,Pe="__p += '",Fe=H1((p.escape||rm).source+"|"+_e.source+"|"+(_e===Xv?em:rm).source+"|"+(p.evaluate||rm).source+"|$","g"),Ye="//# sourceURL="+(kt.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lW+"]")+` -`;u.replace(Fe,function(nt,gt,wt,eo,xn,to){return wt||(wt=eo),Pe+=u.slice(be,to).replace(DV,$W),gt&&(Q=!0,Pe+=`' + +`)}function Cq(u){return lt(u)||fl(u)||!!(xT&&u&&u[xT])}function li(u,p){var y=typeof u;return p=p??U,!!p&&(y=="number"||y!="symbol"&&yn.test(u))&&u>-1&&u%1==0&&u0){if(++p>=L)return arguments[0]}else p=0;return u.apply(r,arguments)}}function Mm(u,p){var y=-1,k=u.length,M=k-1;for(p=p===r?k:p;++y1?u[p-1]:r;return y=typeof y=="function"?(u.pop(),y):r,kk(u,y)});function Ik(u){var p=N(u);return p.__chain__=!0,p}function MH(u,p){return p(u),u}function Fm(u,p){return p(u)}var FH=si(function(u){var p=u.length,y=p?u[0]:0,k=this.__wrapped__,M=function(B){return Y1(B,u)};return p>1||this.__actions__.length||!(k instanceof bt)||!li(y)?this.thru(M):(k=k.slice(y,+y+(p?1:0)),k.__actions__.push({func:Fm,args:[M],thisArg:r}),new So(k,this.__chain__).thru(function(B){return p&&!B.length&&B.push(r),B}))});function LH(){return Ik(this)}function NH(){return new So(this.value(),this.__chain__)}function DH(){this.__values__===r&&(this.__values__=Hk(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function BH(){return this}function zH(u){for(var p,y=this;y instanceof xm;){var k=Ok(y);k.__index__=0,k.__values__=r,p?M.__wrapped__=k:p=k;var M=k;y=y.__wrapped__}return M.__wrapped__=u,p}function UH(){var u=this.__wrapped__;if(u instanceof bt){var p=u;return this.__actions__.length&&(p=new bt(this)),p=p.reverse(),p.__actions__.push({func:Fm,args:[O_],thisArg:r}),new So(p,this.__chain__)}return this.thru(O_)}function VH(){return KT(this.__wrapped__,this.__actions__)}var WH=$m(function(u,p,y){kt.call(u,y)?++u[y]:ai(u,y,1)});function qH(u,p,y){var k=lt(u)?sT:M7;return y&&_n(u,p,y)&&(p=r),k(u,tt(p,3))}function HH(u,p){var y=lt(u)?Wi:kT;return y(u,tt(p,3))}var GH=ak(Ek),KH=ak(Pk);function QH(u,p){return Hr(Lm(u,p),1)}function XH(u,p){return Hr(Lm(u,p),q)}function YH(u,p,y){return y=y===r?1:ut(y),Hr(Lm(u,p),y)}function jk(u,p){var y=lt(u)?xo:Ki;return y(u,tt(p,3))}function Ak(u,p){var y=lt(u)?hW:TT;return y(u,tt(p,3))}var JH=$m(function(u,p,y){kt.call(u,y)?u[y].push(p):ai(u,y,[p])});function ZH(u,p,y,k){u=An(u)?u:Ru(u),y=y&&!k?ut(y):0;var M=u.length;return y<0&&(y=kr(M+y,0)),Um(u)?y<=M&&u.indexOf(p,y)>-1:!!M&&gu(u,p,y)>-1}var eG=pt(function(u,p,y){var k=-1,M=typeof p=="function",B=An(u)?le(u.length):[];return Ki(u,function(K){B[++k]=M?Xn(p,K,y):ef(K,p,y)}),B}),tG=$m(function(u,p,y){ai(u,y,p)});function Lm(u,p){var y=lt(u)?Zt:LT;return y(u,tt(p,3))}function rG(u,p,y,k){return u==null?[]:(lt(p)||(p=p==null?[]:[p]),y=k?r:y,lt(y)||(y=y==null?[]:[y]),zT(u,p,y))}var nG=$m(function(u,p,y){u[y?0:1].push(p)},function(){return[[],[]]});function oG(u,p,y){var k=lt(u)?N1:dT,M=arguments.length<3;return k(u,tt(p,4),y,M,Ki)}function aG(u,p,y){var k=lt(u)?gW:dT,M=arguments.length<3;return k(u,tt(p,4),y,M,TT)}function iG(u,p){var y=lt(u)?Wi:kT;return y(u,Bm(tt(p,3)))}function sG(u){var p=lt(u)?ET:Z7;return p(u)}function lG(u,p,y){(y?_n(u,p,y):p===r)?p=1:p=ut(p);var k=lt(u)?T7:eq;return k(u,p)}function uG(u){var p=lt(u)?k7:rq;return p(u)}function cG(u){if(u==null)return 0;if(An(u))return Um(u)?bu(u):u.length;var p=on(u);return p==Se||p==ie?u.size:n_(u).length}function dG(u,p,y){var k=lt(u)?D1:nq;return y&&_n(u,p,y)&&(p=r),k(u,tt(p,3))}var fG=pt(function(u,p){if(u==null)return[];var y=p.length;return y>1&&_n(u,p[0],p[1])?p=[]:y>2&&_n(p[0],p[1],p[2])&&(p=[p[0]]),zT(u,Hr(p,1),[])}),Nm=HW||function(){return qr.Date.now()};function pG(u,p){if(typeof p!="function")throw new wo(i);return u=ut(u),function(){if(--u<1)return p.apply(this,arguments)}}function Mk(u,p,y){return p=y?r:p,p=u&&p==null?u.length:p,ii(u,T,r,r,r,r,p)}function Fk(u,p){var y;if(typeof p!="function")throw new wo(i);return u=ut(u),function(){return--u>0&&(y=p.apply(this,arguments)),u<=1&&(p=r),y}}var P_=pt(function(u,p,y){var k=C;if(y.length){var M=Hi(y,Pu(P_));k|=P}return ii(u,k,p,y,M)}),Lk=pt(function(u,p,y){var k=C|b;if(y.length){var M=Hi(y,Pu(Lk));k|=P}return ii(p,k,u,y,M)});function Nk(u,p,y){p=y?r:p;var k=ii(u,_,r,r,r,r,r,p);return k.placeholder=Nk.placeholder,k}function Dk(u,p,y){p=y?r:p;var k=ii(u,$,r,r,r,r,r,p);return k.placeholder=Dk.placeholder,k}function Bk(u,p,y){var k,M,B,K,Q,re,be=0,_e=!1,Pe=!1,Fe=!0;if(typeof u!="function")throw new wo(i);p=Po(p)||0,rr(y)&&(_e=!!y.leading,Pe="maxWait"in y,B=Pe?kr(Po(y.maxWait)||0,p):B,Fe="trailing"in y?!!y.trailing:Fe);function Ye(pr){var la=k,di=M;return k=M=r,be=pr,K=u.apply(di,la),K}function rt(pr){return be=pr,Q=af(gt,p),_e?Ye(pr):K}function dt(pr){var la=pr-re,di=pr-be,aI=p-la;return Pe?nn(aI,B-di):aI}function nt(pr){var la=pr-re,di=pr-be;return re===r||la>=p||la<0||Pe&&di>=B}function gt(){var pr=Nm();if(nt(pr))return wt(pr);Q=af(gt,dt(pr))}function wt(pr){return Q=r,Fe&&k?Ye(pr):(k=M=r,K)}function eo(){Q!==r&&XT(Q),be=0,k=re=M=Q=r}function xn(){return Q===r?K:wt(Nm())}function to(){var pr=Nm(),la=nt(pr);if(k=arguments,M=this,re=pr,la){if(Q===r)return rt(re);if(Pe)return XT(Q),Q=af(gt,p),Ye(re)}return Q===r&&(Q=af(gt,p)),K}return to.cancel=eo,to.flush=xn,to}var vG=pt(function(u,p){return RT(u,1,p)}),mG=pt(function(u,p,y){return RT(u,Po(p)||0,y)});function hG(u){return ii(u,I)}function Dm(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new wo(i);var y=function(){var k=arguments,M=p?p.apply(this,k):k[0],B=y.cache;if(B.has(M))return B.get(M);var K=u.apply(this,k);return y.cache=B.set(M,K)||B,K};return y.cache=new(Dm.Cache||oi),y}Dm.Cache=oi;function Bm(u){if(typeof u!="function")throw new wo(i);return function(){var p=arguments;switch(p.length){case 0:return!u.call(this);case 1:return!u.call(this,p[0]);case 2:return!u.call(this,p[0],p[1]);case 3:return!u.call(this,p[0],p[1],p[2])}return!u.apply(this,p)}}function gG(u){return Fk(2,u)}var yG=oq(function(u,p){p=p.length==1&<(p[0])?Zt(p[0],Yn(tt())):Zt(Hr(p,1),Yn(tt()));var y=p.length;return pt(function(k){for(var M=-1,B=nn(k.length,y);++M=p}),fl=AT(function(){return arguments}())?AT:function(u){return lr(u)&&kt.call(u,"callee")&&!_T.call(u,"callee")},lt=le.isArray,jG=tT?Yn(tT):z7;function An(u){return u!=null&&zm(u.length)&&!ui(u)}function fr(u){return lr(u)&&An(u)}function AG(u){return u===!0||u===!1||lr(u)&&bn(u)==ye}var Ji=KW||D_,MG=rT?Yn(rT):U7;function FG(u){return lr(u)&&u.nodeType===1&&!sf(u)}function LG(u){if(u==null)return!0;if(An(u)&&(lt(u)||typeof u=="string"||typeof u.splice=="function"||Ji(u)||$u(u)||fl(u)))return!u.length;var p=on(u);if(p==Se||p==ie)return!u.size;if(of(u))return!n_(u).length;for(var y in u)if(kt.call(u,y))return!1;return!0}function NG(u,p){return tf(u,p)}function DG(u,p,y){y=typeof y=="function"?y:r;var k=y?y(u,p):r;return k===r?tf(u,p,r,y):!!k}function R_(u){if(!lr(u))return!1;var p=bn(u);return p==ce||p==ge||typeof u.message=="string"&&typeof u.name=="string"&&!sf(u)}function BG(u){return typeof u=="number"&&wT(u)}function ui(u){if(!rr(u))return!1;var p=bn(u);return p==pe||p==ae||p==Re||p==X}function Uk(u){return typeof u=="number"&&u==ut(u)}function zm(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=U}function rr(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function lr(u){return u!=null&&typeof u=="object"}var Vk=nT?Yn(nT):W7;function zG(u,p){return u===p||r_(u,p,b_(p))}function UG(u,p,y){return y=typeof y=="function"?y:r,r_(u,p,b_(p),y)}function VG(u){return Wk(u)&&u!=+u}function WG(u){if(Pq(u))throw new st(a);return MT(u)}function qG(u){return u===null}function HG(u){return u==null}function Wk(u){return typeof u=="number"||lr(u)&&bn(u)==Oe}function sf(u){if(!lr(u)||bn(u)!=Xe)return!1;var p=vm(u);if(p===null)return!0;var y=kt.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&cm.call(y)==UW}var T_=oT?Yn(oT):q7;function GG(u){return Uk(u)&&u>=-U&&u<=U}var qk=aT?Yn(aT):H7;function Um(u){return typeof u=="string"||!lt(u)&&lr(u)&&bn(u)==se}function Zn(u){return typeof u=="symbol"||lr(u)&&bn(u)==ue}var $u=iT?Yn(iT):G7;function KG(u){return u===r}function QG(u){return lr(u)&&on(u)==Ie}function XG(u){return lr(u)&&bn(u)==at}var YG=Im(o_),JG=Im(function(u,p){return u<=p});function Hk(u){if(!u)return[];if(An(u))return Um(u)?aa(u):jn(u);if(Gd&&u[Gd])return TW(u[Gd]());var p=on(u),y=p==Se?q1:p==ie?sm:Ru;return y(u)}function ci(u){if(!u)return u===0?u:0;if(u=Po(u),u===q||u===-q){var p=u<0?-1:1;return p*W}return u===u?u:0}function ut(u){var p=ci(u),y=p%1;return p===p?y?p-y:p:0}function Gk(u){return u?ll(ut(u),0,ne):0}function Po(u){if(typeof u=="number")return u;if(Zn(u))return te;if(rr(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=rr(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=fT(u);var y=$1.test(u);return y||mt.test(u)?pW(u.slice(2),y?2:8):P1.test(u)?te:+u}function Kk(u){return $a(u,Mn(u))}function ZG(u){return u?ll(ut(u),-U,U):u===0?u:0}function Tt(u){return u==null?"":Jn(u)}var eK=Ou(function(u,p){if(of(p)||An(p)){$a(p,Nr(p),u);return}for(var y in p)kt.call(p,y)&&Jd(u,y,p[y])}),Qk=Ou(function(u,p){$a(p,Mn(p),u)}),Vm=Ou(function(u,p,y,k){$a(p,Mn(p),u,k)}),tK=Ou(function(u,p,y,k){$a(p,Nr(p),u,k)}),rK=si(Y1);function nK(u,p){var y=Cu(u);return p==null?y:PT(y,p)}var oK=pt(function(u,p){u=Dt(u);var y=-1,k=p.length,M=k>2?p[2]:r;for(M&&_n(p[0],p[1],M)&&(k=1);++y1),B}),$a(u,g_(u),y),k&&(y=Co(y,v|m|h,mq));for(var M=p.length;M--;)u_(y,p[M]);return y});function wK(u,p){return Yk(u,Bm(tt(p)))}var SK=si(function(u,p){return u==null?{}:X7(u,p)});function Yk(u,p){if(u==null)return{};var y=Zt(g_(u),function(k){return[k]});return p=tt(p),UT(u,y,function(k,M){return p(k,M[0])})}function CK(u,p,y){p=Xi(p,u);var k=-1,M=p.length;for(M||(M=1,u=r);++kp){var k=u;u=p,p=k}if(y||u%1||p%1){var M=ST();return nn(u+M*(p-u+fW("1e-"+((M+"").length-1))),p)}return i_(u,p)}var MK=Eu(function(u,p,y){return p=p.toLowerCase(),u+(y?eI(p):p)});function eI(u){return j_(Tt(u).toLowerCase())}function tI(u){return u=Tt(u),u&&u.replace(LV,OW).replace(rW,"")}function FK(u,p,y){u=Tt(u),p=Jn(p);var k=u.length;y=y===r?k:ll(ut(y),0,k);var M=y;return y-=p.length,y>=0&&u.slice(y,M)==p}function LK(u){return u=Tt(u),u&&Vi.test(u)?u.replace(oa,EW):u}function NK(u){return u=Tt(u),u&&Wd.test(u)?u.replace(ri,"\\$&"):u}var DK=Eu(function(u,p,y){return u+(y?"-":"")+p.toLowerCase()}),BK=Eu(function(u,p,y){return u+(y?" ":"")+p.toLowerCase()}),zK=ok("toLowerCase");function UK(u,p,y){u=Tt(u),p=ut(p);var k=p?bu(u):0;if(!p||k>=p)return u;var M=(p-k)/2;return km(ym(M),y)+u+km(gm(M),y)}function VK(u,p,y){u=Tt(u),p=ut(p);var k=p?bu(u):0;return p&&k>>0,y?(u=Tt(u),u&&(typeof p=="string"||p!=null&&!T_(p))&&(p=Jn(p),!p&&yu(u))?Yi(aa(u),0,y):u.split(p,y)):[]}var XK=Eu(function(u,p,y){return u+(y?" ":"")+j_(p)});function YK(u,p,y){return u=Tt(u),y=y==null?0:ll(ut(y),0,u.length),p=Jn(p),u.slice(y,y+p.length)==p}function JK(u,p,y){var k=N.templateSettings;y&&_n(u,p,y)&&(p=r),u=Tt(u),p=Vm({},p,k,dk);var M=Vm({},p.imports,k.imports,dk),B=Nr(M),K=W1(M,B),Q,re,be=0,_e=p.interpolate||rm,Pe="__p += '",Fe=H1((p.escape||rm).source+"|"+_e.source+"|"+(_e===Xv?em:rm).source+"|"+(p.evaluate||rm).source+"|$","g"),Ye="//# sourceURL="+(kt.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sW+"]")+` +`;u.replace(Fe,function(nt,gt,wt,eo,xn,to){return wt||(wt=eo),Pe+=u.slice(be,to).replace(NV,PW),gt&&(Q=!0,Pe+=`' + __e(`+gt+`) + '`),xn&&(re=!0,Pe+=`'; `+xn+`; @@ -63,10 +63,10 @@ __p += '`),wt&&(Pe+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Pe+`return __p -}`;var dt=nI(function(){return Pt(B,Ye+"return "+Pe).apply(r,K)});if(dt.source=Pe,R_(dt))throw dt;return dt}function eQ(u){return Tt(u).toLowerCase()}function tQ(u){return Tt(u).toUpperCase()}function rQ(u,p,y){if(u=Tt(u),u&&(y||p===r))return fT(u);if(!u||!(p=Jn(p)))return u;var k=aa(u),M=aa(p),B=pT(k,M),K=vT(k,M)+1;return Yi(k,B,K).join("")}function nQ(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.slice(0,hT(u)+1);if(!u||!(p=Jn(p)))return u;var k=aa(u),M=vT(k,aa(p))+1;return Yi(k,0,M).join("")}function oQ(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.replace(gn,"");if(!u||!(p=Jn(p)))return u;var k=aa(u),M=pT(k,aa(p));return Yi(k,M).join("")}function aQ(u,p){var y=A,k=F;if(rr(p)){var M="separator"in p?p.separator:M;y="length"in p?ut(p.length):y,k="omission"in p?Jn(p.omission):k}u=Tt(u);var B=u.length;if(yu(u)){var K=aa(u);B=K.length}if(y>=B)return u;var Q=y-bu(k);if(Q<1)return k;var re=K?Yi(K,0,Q).join(""):u.slice(0,Q);if(M===r)return re+k;if(K&&(Q+=re.length-Q),T_(M)){if(u.slice(Q).search(M)){var be,_e=re;for(M.global||(M=H1(M.source,Tt(tm.exec(M))+"g")),M.lastIndex=0;be=M.exec(_e);)var Pe=be.index;re=re.slice(0,Pe===r?Q:Pe)}}else if(u.indexOf(Jn(M),Q)!=Q){var Fe=re.lastIndexOf(M);Fe>-1&&(re=re.slice(0,Fe))}return re+k}function iQ(u){return u=Tt(u),u&&Qn.test(u)?u.replace(hn,MW):u}var sQ=Eu(function(u,p,y){return u+(y?" ":"")+p.toUpperCase()}),j_=ok("toUpperCase");function rI(u,p,y){return u=Tt(u),p=y?r:p,p===r?TW(u)?NW(u):xW(u):u.match(p)||[]}var nI=pt(function(u,p){try{return Xn(u,r,p)}catch(y){return R_(y)?y:new st(y)}}),lQ=si(function(u,p){return xo(p,function(y){y=Ra(y),ai(u,y,P_(u[y],u))}),u});function uQ(u){var p=u==null?0:u.length,y=tt();return u=p?Zt(u,function(k){if(typeof k[1]!="function")throw new wo(i);return[y(k[0]),k[1]]}):[],pt(function(k){for(var M=-1;++MU)return[];var y=ne,k=nn(u,ne);p=tt(p),u-=ne;for(var M=V1(k,p);++y0||p<0)?new bt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),p!==r&&(p=ut(p),y=p<0?y.dropRight(-p):y.take(p-u)),y)},bt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},bt.prototype.toArray=function(){return this.take(ne)},Pa(bt.prototype,function(u,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),k=/^(?:head|last)$/.test(p),M=N[k?"take"+(p=="last"?"Right":""):p],B=k||/^find/.test(p);M&&(N.prototype[p]=function(){var K=this.__wrapped__,Q=k?[1]:arguments,re=K instanceof bt,be=Q[0],_e=re||lt(K),Pe=function(gt){var wt=M.apply(N,qi([gt],Q));return k&&Fe?wt[0]:wt};_e&&y&&typeof be=="function"&&be.length!=1&&(re=_e=!1);var Fe=this.__chain__,Ye=!!this.__actions__.length,rt=B&&!Fe,dt=re&&!Ye;if(!B&&_e){K=dt?K:new bt(this);var nt=u.apply(K,Q);return nt.__actions__.push({func:Fm,args:[Pe],thisArg:r}),new So(nt,Fe)}return rt&&dt?u.apply(this,Q):(nt=this.thru(Pe),rt?k?nt.value()[0]:nt.value():nt)})}),xo(["pop","push","shift","sort","splice","unshift"],function(u){var p=lm[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",k=/^(?:pop|shift)$/.test(u);N.prototype[u]=function(){var M=arguments;if(k&&!this.__chain__){var B=this.value();return p.apply(lt(B)?B:[],M)}return this[y](function(K){return p.apply(lt(K)?K:[],M)})}}),Pa(bt.prototype,function(u,p){var y=N[p];if(y){var k=y.name+"";kt.call(Su,k)||(Su[k]=[]),Su[k].push({name:p,func:y})}}),Su[Rm(r,b).name]=[{name:"wrapper",func:r}],bt.prototype.clone=i7,bt.prototype.reverse=s7,bt.prototype.value=l7,N.prototype.at=LH,N.prototype.chain=NH,N.prototype.commit=DH,N.prototype.next=BH,N.prototype.plant=UH,N.prototype.reverse=VH,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=WH,N.prototype.first=N.prototype.head,Gd&&(N.prototype[Gd]=zH),N},_u=DW();ol?((ol.exports=_u)._=_u,M1._=_u):qr._=_u}).call(no)})(Gg,Gg.exports);var Tb=Gg.exports,mj=Object.prototype.toString,U3=function(t){var r=mj.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mj.call(t.callee)==="[object Function]"),n},fx,hj;function yJ(){if(hj)return fx;hj=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=U3,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(m){var h=m.constructor;return h&&h.prototype===m},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!l["$"+m]&&t.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{c(window[m])}catch{return!0}}catch{return!0}return!1}(),v=function(m){if(typeof window>"u"||!f)return c(m);try{return c(m)}catch{return!1}};e=function(h){var x=h!==null&&typeof h=="object",w=r.call(h)==="[object Function]",C=n(h),b=x&&r.call(h)==="[object String]",g=[];if(!x&&!w&&!C)throw new TypeError("Object.keys called on a non-object");var _=i&&w;if(b&&h.length>0&&!t.call(h,0))for(var $=0;$0)for(var P=0;P"u"||!Dr?_t:Dr(Uint8Array),Fl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?_t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?_t:ArrayBuffer,"%ArrayIteratorPrototype%":ku&&Dr?Dr([][Symbol.iterator]()):_t,"%AsyncFromSyncIteratorPrototype%":_t,"%AsyncFunction%":Wu,"%AsyncGenerator%":Wu,"%AsyncGeneratorFunction%":Wu,"%AsyncIteratorPrototype%":Wu,"%Atomics%":typeof Atomics>"u"?_t:Atomics,"%BigInt%":typeof BigInt>"u"?_t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?_t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?_t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?_t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":UJ,"%eval%":eval,"%EvalError%":VJ,"%Float32Array%":typeof Float32Array>"u"?_t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?_t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?_t:FinalizationRegistry,"%Function%":H3,"%GeneratorFunction%":Wu,"%Int8Array%":typeof Int8Array>"u"?_t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?_t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?_t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ku&&Dr?Dr(Dr([][Symbol.iterator]())):_t,"%JSON%":typeof JSON=="object"?JSON:_t,"%Map%":typeof Map>"u"?_t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ku||!Dr?_t:Dr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?_t:Promise,"%Proxy%":typeof Proxy>"u"?_t:Proxy,"%RangeError%":WJ,"%ReferenceError%":qJ,"%Reflect%":typeof Reflect>"u"?_t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?_t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ku||!Dr?_t:Dr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?_t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ku&&Dr?Dr(""[Symbol.iterator]()):_t,"%Symbol%":ku?Symbol:_t,"%SyntaxError%":qc,"%ThrowTypeError%":GJ,"%TypedArray%":QJ,"%TypeError%":wc,"%Uint8Array%":typeof Uint8Array>"u"?_t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?_t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?_t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?_t:Uint32Array,"%URIError%":HJ,"%WeakMap%":typeof WeakMap>"u"?_t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?_t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?_t:WeakSet};if(Dr)try{null.error}catch(e){var XJ=Dr(Dr(e));Fl["%Error.prototype%"]=XJ}var YJ=function e(t){var r;if(t==="%AsyncFunction%")r=vx("async function () {}");else if(t==="%GeneratorFunction%")r=vx("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=vx("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Dr&&(r=Dr(o.prototype))}return Fl[t]=r,r},xj={__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"]},sv=BE,Kg=zJ,JJ=sv.call(Function.call,Array.prototype.concat),ZJ=sv.call(Function.apply,Array.prototype.splice),wj=sv.call(Function.call,String.prototype.replace),Qg=sv.call(Function.call,String.prototype.slice),eZ=sv.call(Function.call,RegExp.prototype.exec),tZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rZ=/\\(\\)?/g,nZ=function(t){var r=Qg(t,0,1),n=Qg(t,-1);if(r==="%"&&n!=="%")throw new qc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new qc("invalid intrinsic syntax, expected opening `%`");var o=[];return wj(t,tZ,function(a,i,s,c){o[o.length]=s?wj(c,rZ,"$1"):i||a}),o},oZ=function(t,r){var n=t,o;if(Kg(xj,n)&&(o=xj[n],n="%"+o[0]+"%"),Kg(Fl,n)){var a=Fl[n];if(a===Wu&&(a=YJ(n)),typeof a>"u"&&!r)throw new wc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new qc("intrinsic "+t+" does not exist!")},Xa=function(t,r){if(typeof t!="string"||t.length===0)throw new wc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new wc('"allowMissing" argument must be a boolean');if(eZ(/^%?[^%]*%?$/,t)===null)throw new qc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=nZ(t),o=n.length>0?n[0]:"",a=oZ("%"+o+"%",r),i=a.name,s=a.value,c=!1,l=a.alias;l&&(o=l[0],ZJ(n,JJ([0,1],l)));for(var f=1,v=!0;f=n.length){var w=Ml(s,m);v=!!w,v&&"get"in w&&!("originalValue"in w.get)?s=w.get:s=s[m]}else v=Kg(s,m),s=s[m];v&&!c&&(Fl[i]=s)}}return s},aZ=Xa,qh=aZ("%Object.defineProperty%",!0)||!1;if(qh)try{qh({},"a",{value:1})}catch{qh=!1}var zE=qh,iZ=Xa,Hh=iZ("%Object.getOwnPropertyDescriptor%",!0);if(Hh)try{Hh([],"length")}catch{Hh=null}var G3=Hh,Sj=zE,sZ=V3,Iu=kn,Cj=G3,K3=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Iu("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Iu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Iu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Iu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Iu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Iu("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!Cj&&Cj(t,r);if(Sj)Sj(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:a===null&&c?c.writable:!a});else if(s||!o&&!a&&!i)t[r]=n;else throw new sZ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},hS=zE,Q3=function(){return!!hS};Q3.hasArrayLengthDefineBug=function(){if(!hS)return null;try{return hS([],"length",{value:1}).length!==1}catch{return!0}};var X3=Q3,lZ=xJ,uZ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",cZ=Object.prototype.toString,dZ=Array.prototype.concat,Oj=K3,fZ=function(e){return typeof e=="function"&&cZ.call(e)==="[object Function]"},Y3=X3(),pZ=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!fZ(n)||!n())return}Y3?Oj(e,t,r,!0):Oj(e,t,r)},J3=function(e,t){var r=arguments.length>2?arguments[2]:{},n=lZ(t);uZ&&(n=dZ.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||hZ(r)!==r)throw new $j("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&Pj){var i=Pj(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(mZ?Ej(t,"length",r,!0,!0):Ej(t,"length",r)),t};(function(e){var t=BE,r=Xa,n=gZ,o=kn,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),c=zE,l=r("%Math.max%");e.exports=function(m){if(typeof m!="function")throw new o("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,m.length-(arguments.length-1)),!0)};var f=function(){return s(t,a,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f})(Z3);var kb=Z3.exports,e4=Xa,t4=kb,yZ=t4(e4("String.prototype.indexOf")),Ii=function(t,r){var n=e4(t,!!r);return typeof n=="function"&&yZ(t,".prototype.")>-1?t4(n):n},bZ=kn,lv=function(t){if(t==null)throw new bZ(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},_Z=Xa,r4=_Z("%Array%"),xZ=!r4.isArray&&Ii("Object.prototype.toString"),wZ=r4.isArray||function(t){return xZ(t)==="[object Array]"},SZ=wZ,CZ=Xa,OZ=Ii,EZ=kn,PZ=SZ,$Z=CZ("%Reflect.apply%",!0)||OZ("Function.prototype.apply"),RZ=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!PZ(n))throw new EZ("Assertion failed: optional `argumentsList`, if provided, must be a List");return $Z(t,r,n)};const TZ={},kZ=Object.freeze(Object.defineProperty({__proto__:null,default:TZ},Symbol.toStringTag,{value:"Module"})),IZ=Qa(kZ);var UE=typeof Map=="function"&&Map.prototype,hx=Object.getOwnPropertyDescriptor&&UE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xg=UE&&hx&&typeof hx.get=="function"?hx.get:null,Rj=UE&&Map.prototype.forEach,VE=typeof Set=="function"&&Set.prototype,gx=Object.getOwnPropertyDescriptor&&VE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Yg=VE&&gx&&typeof gx.get=="function"?gx.get:null,Tj=VE&&Set.prototype.forEach,jZ=typeof WeakMap=="function"&&WeakMap.prototype,Kf=jZ?WeakMap.prototype.has:null,AZ=typeof WeakSet=="function"&&WeakSet.prototype,Qf=AZ?WeakSet.prototype.has:null,MZ=typeof WeakRef=="function"&&WeakRef.prototype,kj=MZ?WeakRef.prototype.deref:null,FZ=Boolean.prototype.valueOf,LZ=Object.prototype.toString,NZ=Function.prototype.toString,DZ=String.prototype.match,WE=String.prototype.slice,hs=String.prototype.replace,BZ=String.prototype.toUpperCase,Ij=String.prototype.toLowerCase,n4=RegExp.prototype.test,jj=Array.prototype.concat,Aa=Array.prototype.join,zZ=Array.prototype.slice,Aj=Math.floor,gS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yx=Object.getOwnPropertySymbols,yS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Hc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",mn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Hc||!0)?Symbol.toStringTag:null,o4=Object.prototype.propertyIsEnumerable,Mj=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Fj(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||n4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Aj(-e):Aj(e);if(n!==e){var o=String(n),a=WE.call(t,o.length+1);return hs.call(o,r,"$&_")+"."+hs.call(hs.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return hs.call(t,r,"$&_")}var bS=IZ,Lj=bS.custom,Nj=i4(Lj)?Lj:null,UZ=function e(t,r,n,o){var a=r||{};if(ss(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ss(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=ss(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ss(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ss(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return l4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?Fj(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?Fj(t,l):l}var f=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof t=="object")return _S(t)?"[Array]":"[Object]";var v=iee(a,n);if(typeof o>"u")o=[];else if(s4(o,t)>=0)return"[Circular]";function m(D,z,H){if(z&&(o=zZ.call(o),o.push(z)),H){var G={depth:a.depth};return ss(a,"quoteStyle")&&(G.quoteStyle=a.quoteStyle),e(D,G,n+1,o)}return e(D,a,n+1,o)}if(typeof t=="function"&&!Dj(t)){var h=YZ(t),x=sh(t,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(x.length>0?" { "+Aa.call(x,", ")+" }":"")}if(i4(t)){var w=Hc?hs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):yS.call(t);return typeof t=="object"&&!Hc?hf(w):w}if(nee(t)){for(var C="<"+Ij.call(String(t.nodeName)),b=t.attributes||[],g=0;g",C}if(_S(t)){if(t.length===0)return"[]";var _=sh(t,m);return v&&!aee(_)?"["+xS(_,v)+"]":"[ "+Aa.call(_,", ")+" ]"}if(qZ(t)){var $=sh(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!o4.call(t,"cause")?"{ ["+String(t)+"] "+Aa.call(jj.call("[cause]: "+m(t.cause),$),", ")+" }":$.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Aa.call($,", ")+" }"}if(typeof t=="object"&&i){if(Nj&&typeof t[Nj]=="function"&&bS)return bS(t,{depth:f-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(JZ(t)){var P=[];return Rj&&Rj.call(t,function(D,z){P.push(m(z,t,!0)+" => "+m(D,t))}),Bj("Map",Xg.call(t),P,v)}if(tee(t)){var E=[];return Tj&&Tj.call(t,function(D){E.push(m(D,t))}),Bj("Set",Yg.call(t),E,v)}if(ZZ(t))return bx("WeakMap");if(ree(t))return bx("WeakSet");if(eee(t))return bx("WeakRef");if(GZ(t))return hf(m(Number(t)));if(QZ(t))return hf(m(gS.call(t)));if(KZ(t))return hf(FZ.call(t));if(HZ(t))return hf(m(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===no)return"{ [object globalThis] }";if(!WZ(t)&&!Dj(t)){var T=sh(t,m),R=Mj?Mj(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",A=!R&&mn&&Object(t)===t&&mn in t?WE.call(Us(t),8,-1):I?"Object":"",F=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",L=F+(A||I?"["+Aa.call(jj.call([],A||[],I||[]),": ")+"] ":"");return T.length===0?L+"{}":v?L+"{"+xS(T,v)+"}":L+"{ "+Aa.call(T,", ")+" }"}return String(t)};function a4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function VZ(e){return hs.call(String(e),/"/g,""")}function _S(e){return Us(e)==="[object Array]"&&(!mn||!(typeof e=="object"&&mn in e))}function WZ(e){return Us(e)==="[object Date]"&&(!mn||!(typeof e=="object"&&mn in e))}function Dj(e){return Us(e)==="[object RegExp]"&&(!mn||!(typeof e=="object"&&mn in e))}function qZ(e){return Us(e)==="[object Error]"&&(!mn||!(typeof e=="object"&&mn in e))}function HZ(e){return Us(e)==="[object String]"&&(!mn||!(typeof e=="object"&&mn in e))}function GZ(e){return Us(e)==="[object Number]"&&(!mn||!(typeof e=="object"&&mn in e))}function KZ(e){return Us(e)==="[object Boolean]"&&(!mn||!(typeof e=="object"&&mn in e))}function i4(e){if(Hc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!yS)return!1;try{return yS.call(e),!0}catch{}return!1}function QZ(e){if(!e||typeof e!="object"||!gS)return!1;try{return gS.call(e),!0}catch{}return!1}var XZ=Object.prototype.hasOwnProperty||function(e){return e in this};function ss(e,t){return XZ.call(e,t)}function Us(e){return LZ.call(e)}function YZ(e){if(e.name)return e.name;var t=DZ.call(NZ.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function s4(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return l4(WE.call(e,0,t.maxStringLength),t)+n}var o=hs.call(hs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,oee);return a4(o,"single",t)}function oee(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+BZ.call(t.toString(16))}function hf(e){return"Object("+e+")"}function bx(e){return e+" { ? }"}function Bj(e,t,r,n){var o=n?xS(r,n):Aa.call(r,", ");return e+" ("+t+") {"+o+"}"}function aee(e){for(var t=0;t=0)return!1;return!0}function iee(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Aa.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Aa.call(Array(t+1),r)}}function xS(e,t){if(e.length===0)return"";var r=` +}`;var dt=nI(function(){return Pt(B,Ye+"return "+Pe).apply(r,K)});if(dt.source=Pe,R_(dt))throw dt;return dt}function ZK(u){return Tt(u).toLowerCase()}function eQ(u){return Tt(u).toUpperCase()}function tQ(u,p,y){if(u=Tt(u),u&&(y||p===r))return fT(u);if(!u||!(p=Jn(p)))return u;var k=aa(u),M=aa(p),B=pT(k,M),K=vT(k,M)+1;return Yi(k,B,K).join("")}function rQ(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.slice(0,hT(u)+1);if(!u||!(p=Jn(p)))return u;var k=aa(u),M=vT(k,aa(p))+1;return Yi(k,0,M).join("")}function nQ(u,p,y){if(u=Tt(u),u&&(y||p===r))return u.replace(gn,"");if(!u||!(p=Jn(p)))return u;var k=aa(u),M=pT(k,aa(p));return Yi(k,M).join("")}function oQ(u,p){var y=A,k=F;if(rr(p)){var M="separator"in p?p.separator:M;y="length"in p?ut(p.length):y,k="omission"in p?Jn(p.omission):k}u=Tt(u);var B=u.length;if(yu(u)){var K=aa(u);B=K.length}if(y>=B)return u;var Q=y-bu(k);if(Q<1)return k;var re=K?Yi(K,0,Q).join(""):u.slice(0,Q);if(M===r)return re+k;if(K&&(Q+=re.length-Q),T_(M)){if(u.slice(Q).search(M)){var be,_e=re;for(M.global||(M=H1(M.source,Tt(tm.exec(M))+"g")),M.lastIndex=0;be=M.exec(_e);)var Pe=be.index;re=re.slice(0,Pe===r?Q:Pe)}}else if(u.indexOf(Jn(M),Q)!=Q){var Fe=re.lastIndexOf(M);Fe>-1&&(re=re.slice(0,Fe))}return re+k}function aQ(u){return u=Tt(u),u&&Qn.test(u)?u.replace(hn,AW):u}var iQ=Eu(function(u,p,y){return u+(y?" ":"")+p.toUpperCase()}),j_=ok("toUpperCase");function rI(u,p,y){return u=Tt(u),p=y?r:p,p===r?RW(u)?LW(u):_W(u):u.match(p)||[]}var nI=pt(function(u,p){try{return Xn(u,r,p)}catch(y){return R_(y)?y:new st(y)}}),sQ=si(function(u,p){return xo(p,function(y){y=Ra(y),ai(u,y,P_(u[y],u))}),u});function lQ(u){var p=u==null?0:u.length,y=tt();return u=p?Zt(u,function(k){if(typeof k[1]!="function")throw new wo(i);return[y(k[0]),k[1]]}):[],pt(function(k){for(var M=-1;++MU)return[];var y=ne,k=nn(u,ne);p=tt(p),u-=ne;for(var M=V1(k,p);++y0||p<0)?new bt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),p!==r&&(p=ut(p),y=p<0?y.dropRight(-p):y.take(p-u)),y)},bt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},bt.prototype.toArray=function(){return this.take(ne)},Pa(bt.prototype,function(u,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),k=/^(?:head|last)$/.test(p),M=N[k?"take"+(p=="last"?"Right":""):p],B=k||/^find/.test(p);M&&(N.prototype[p]=function(){var K=this.__wrapped__,Q=k?[1]:arguments,re=K instanceof bt,be=Q[0],_e=re||lt(K),Pe=function(gt){var wt=M.apply(N,qi([gt],Q));return k&&Fe?wt[0]:wt};_e&&y&&typeof be=="function"&&be.length!=1&&(re=_e=!1);var Fe=this.__chain__,Ye=!!this.__actions__.length,rt=B&&!Fe,dt=re&&!Ye;if(!B&&_e){K=dt?K:new bt(this);var nt=u.apply(K,Q);return nt.__actions__.push({func:Fm,args:[Pe],thisArg:r}),new So(nt,Fe)}return rt&&dt?u.apply(this,Q):(nt=this.thru(Pe),rt?k?nt.value()[0]:nt.value():nt)})}),xo(["pop","push","shift","sort","splice","unshift"],function(u){var p=lm[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",k=/^(?:pop|shift)$/.test(u);N.prototype[u]=function(){var M=arguments;if(k&&!this.__chain__){var B=this.value();return p.apply(lt(B)?B:[],M)}return this[y](function(K){return p.apply(lt(K)?K:[],M)})}}),Pa(bt.prototype,function(u,p){var y=N[p];if(y){var k=y.name+"";kt.call(Su,k)||(Su[k]=[]),Su[k].push({name:p,func:y})}}),Su[Rm(r,b).name]=[{name:"wrapper",func:r}],bt.prototype.clone=a7,bt.prototype.reverse=i7,bt.prototype.value=s7,N.prototype.at=FH,N.prototype.chain=LH,N.prototype.commit=NH,N.prototype.next=DH,N.prototype.plant=zH,N.prototype.reverse=UH,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=VH,N.prototype.first=N.prototype.head,Gd&&(N.prototype[Gd]=BH),N},_u=NW();ol?((ol.exports=_u)._=_u,M1._=_u):qr._=_u}).call(no)})(Gg,Gg.exports);var Tb=Gg.exports,mj=Object.prototype.toString,U3=function(t){var r=mj.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mj.call(t.callee)==="[object Function]"),n},fx,hj;function gJ(){if(hj)return fx;hj=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=U3,o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(m){var h=m.constructor;return h&&h.prototype===m},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!l["$"+m]&&t.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{c(window[m])}catch{return!0}}catch{return!0}return!1}(),v=function(m){if(typeof window>"u"||!f)return c(m);try{return c(m)}catch{return!1}};e=function(h){var x=h!==null&&typeof h=="object",w=r.call(h)==="[object Function]",C=n(h),b=x&&r.call(h)==="[object String]",g=[];if(!x&&!w&&!C)throw new TypeError("Object.keys called on a non-object");var _=i&&w;if(b&&h.length>0&&!t.call(h,0))for(var $=0;$0)for(var P=0;P"u"||!Dr?_t:Dr(Uint8Array),Fl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?_t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?_t:ArrayBuffer,"%ArrayIteratorPrototype%":ku&&Dr?Dr([][Symbol.iterator]()):_t,"%AsyncFromSyncIteratorPrototype%":_t,"%AsyncFunction%":Wu,"%AsyncGenerator%":Wu,"%AsyncGeneratorFunction%":Wu,"%AsyncIteratorPrototype%":Wu,"%Atomics%":typeof Atomics>"u"?_t:Atomics,"%BigInt%":typeof BigInt>"u"?_t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?_t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?_t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?_t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":zJ,"%eval%":eval,"%EvalError%":UJ,"%Float32Array%":typeof Float32Array>"u"?_t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?_t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?_t:FinalizationRegistry,"%Function%":H3,"%GeneratorFunction%":Wu,"%Int8Array%":typeof Int8Array>"u"?_t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?_t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?_t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ku&&Dr?Dr(Dr([][Symbol.iterator]())):_t,"%JSON%":typeof JSON=="object"?JSON:_t,"%Map%":typeof Map>"u"?_t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ku||!Dr?_t:Dr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?_t:Promise,"%Proxy%":typeof Proxy>"u"?_t:Proxy,"%RangeError%":VJ,"%ReferenceError%":WJ,"%Reflect%":typeof Reflect>"u"?_t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?_t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ku||!Dr?_t:Dr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?_t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ku&&Dr?Dr(""[Symbol.iterator]()):_t,"%Symbol%":ku?Symbol:_t,"%SyntaxError%":qc,"%ThrowTypeError%":HJ,"%TypedArray%":KJ,"%TypeError%":wc,"%Uint8Array%":typeof Uint8Array>"u"?_t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?_t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?_t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?_t:Uint32Array,"%URIError%":qJ,"%WeakMap%":typeof WeakMap>"u"?_t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?_t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?_t:WeakSet};if(Dr)try{null.error}catch(e){var QJ=Dr(Dr(e));Fl["%Error.prototype%"]=QJ}var XJ=function e(t){var r;if(t==="%AsyncFunction%")r=vx("async function () {}");else if(t==="%GeneratorFunction%")r=vx("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=vx("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Dr&&(r=Dr(o.prototype))}return Fl[t]=r,r},xj={__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"]},sv=BE,Kg=BJ,YJ=sv.call(Function.call,Array.prototype.concat),JJ=sv.call(Function.apply,Array.prototype.splice),wj=sv.call(Function.call,String.prototype.replace),Qg=sv.call(Function.call,String.prototype.slice),ZJ=sv.call(Function.call,RegExp.prototype.exec),eZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tZ=/\\(\\)?/g,rZ=function(t){var r=Qg(t,0,1),n=Qg(t,-1);if(r==="%"&&n!=="%")throw new qc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new qc("invalid intrinsic syntax, expected opening `%`");var o=[];return wj(t,eZ,function(a,i,s,c){o[o.length]=s?wj(c,tZ,"$1"):i||a}),o},nZ=function(t,r){var n=t,o;if(Kg(xj,n)&&(o=xj[n],n="%"+o[0]+"%"),Kg(Fl,n)){var a=Fl[n];if(a===Wu&&(a=XJ(n)),typeof a>"u"&&!r)throw new wc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new qc("intrinsic "+t+" does not exist!")},Xa=function(t,r){if(typeof t!="string"||t.length===0)throw new wc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new wc('"allowMissing" argument must be a boolean');if(ZJ(/^%?[^%]*%?$/,t)===null)throw new qc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=rZ(t),o=n.length>0?n[0]:"",a=nZ("%"+o+"%",r),i=a.name,s=a.value,c=!1,l=a.alias;l&&(o=l[0],JJ(n,YJ([0,1],l)));for(var f=1,v=!0;f=n.length){var w=Ml(s,m);v=!!w,v&&"get"in w&&!("originalValue"in w.get)?s=w.get:s=s[m]}else v=Kg(s,m),s=s[m];v&&!c&&(Fl[i]=s)}}return s},oZ=Xa,qh=oZ("%Object.defineProperty%",!0)||!1;if(qh)try{qh({},"a",{value:1})}catch{qh=!1}var zE=qh,aZ=Xa,Hh=aZ("%Object.getOwnPropertyDescriptor%",!0);if(Hh)try{Hh([],"length")}catch{Hh=null}var G3=Hh,Sj=zE,iZ=V3,Iu=kn,Cj=G3,K3=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Iu("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Iu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Iu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Iu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Iu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Iu("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!Cj&&Cj(t,r);if(Sj)Sj(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:o===null&&c?c.enumerable:!o,value:n,writable:a===null&&c?c.writable:!a});else if(s||!o&&!a&&!i)t[r]=n;else throw new iZ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},hS=zE,Q3=function(){return!!hS};Q3.hasArrayLengthDefineBug=function(){if(!hS)return null;try{return hS([],"length",{value:1}).length!==1}catch{return!0}};var X3=Q3,sZ=_J,lZ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",uZ=Object.prototype.toString,cZ=Array.prototype.concat,Oj=K3,dZ=function(e){return typeof e=="function"&&uZ.call(e)==="[object Function]"},Y3=X3(),fZ=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!dZ(n)||!n())return}Y3?Oj(e,t,r,!0):Oj(e,t,r)},J3=function(e,t){var r=arguments.length>2?arguments[2]:{},n=sZ(t);lZ&&(n=cZ.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||mZ(r)!==r)throw new $j("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,a=!0;if("length"in t&&Pj){var i=Pj(t,"length");i&&!i.configurable&&(o=!1),i&&!i.writable&&(a=!1)}return(o||a||!n)&&(vZ?Ej(t,"length",r,!0,!0):Ej(t,"length",r)),t};(function(e){var t=BE,r=Xa,n=hZ,o=kn,a=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,a),c=zE,l=r("%Math.max%");e.exports=function(m){if(typeof m!="function")throw new o("a function is required");var h=s(t,i,arguments);return n(h,1+l(0,m.length-(arguments.length-1)),!0)};var f=function(){return s(t,a,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f})(Z3);var kb=Z3.exports,e4=Xa,t4=kb,gZ=t4(e4("String.prototype.indexOf")),Ii=function(t,r){var n=e4(t,!!r);return typeof n=="function"&&gZ(t,".prototype.")>-1?t4(n):n},yZ=kn,lv=function(t){if(t==null)throw new yZ(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},bZ=Xa,r4=bZ("%Array%"),_Z=!r4.isArray&&Ii("Object.prototype.toString"),xZ=r4.isArray||function(t){return _Z(t)==="[object Array]"},wZ=xZ,SZ=Xa,CZ=Ii,OZ=kn,EZ=wZ,PZ=SZ("%Reflect.apply%",!0)||CZ("Function.prototype.apply"),$Z=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!EZ(n))throw new OZ("Assertion failed: optional `argumentsList`, if provided, must be a List");return PZ(t,r,n)};const RZ={},TZ=Object.freeze(Object.defineProperty({__proto__:null,default:RZ},Symbol.toStringTag,{value:"Module"})),kZ=Qa(TZ);var UE=typeof Map=="function"&&Map.prototype,hx=Object.getOwnPropertyDescriptor&&UE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xg=UE&&hx&&typeof hx.get=="function"?hx.get:null,Rj=UE&&Map.prototype.forEach,VE=typeof Set=="function"&&Set.prototype,gx=Object.getOwnPropertyDescriptor&&VE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Yg=VE&&gx&&typeof gx.get=="function"?gx.get:null,Tj=VE&&Set.prototype.forEach,IZ=typeof WeakMap=="function"&&WeakMap.prototype,Kf=IZ?WeakMap.prototype.has:null,jZ=typeof WeakSet=="function"&&WeakSet.prototype,Qf=jZ?WeakSet.prototype.has:null,AZ=typeof WeakRef=="function"&&WeakRef.prototype,kj=AZ?WeakRef.prototype.deref:null,MZ=Boolean.prototype.valueOf,FZ=Object.prototype.toString,LZ=Function.prototype.toString,NZ=String.prototype.match,WE=String.prototype.slice,hs=String.prototype.replace,DZ=String.prototype.toUpperCase,Ij=String.prototype.toLowerCase,n4=RegExp.prototype.test,jj=Array.prototype.concat,Aa=Array.prototype.join,BZ=Array.prototype.slice,Aj=Math.floor,gS=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yx=Object.getOwnPropertySymbols,yS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Hc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",mn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Hc||!0)?Symbol.toStringTag:null,o4=Object.prototype.propertyIsEnumerable,Mj=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Fj(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||n4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Aj(-e):Aj(e);if(n!==e){var o=String(n),a=WE.call(t,o.length+1);return hs.call(o,r,"$&_")+"."+hs.call(hs.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return hs.call(t,r,"$&_")}var bS=kZ,Lj=bS.custom,Nj=i4(Lj)?Lj:null,zZ=function e(t,r,n,o){var a=r||{};if(ss(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ss(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=ss(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ss(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ss(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return l4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?Fj(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?Fj(t,l):l}var f=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof t=="object")return _S(t)?"[Array]":"[Object]";var v=aee(a,n);if(typeof o>"u")o=[];else if(s4(o,t)>=0)return"[Circular]";function m(D,z,H){if(z&&(o=BZ.call(o),o.push(z)),H){var G={depth:a.depth};return ss(a,"quoteStyle")&&(G.quoteStyle=a.quoteStyle),e(D,G,n+1,o)}return e(D,a,n+1,o)}if(typeof t=="function"&&!Dj(t)){var h=XZ(t),x=sh(t,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(x.length>0?" { "+Aa.call(x,", ")+" }":"")}if(i4(t)){var w=Hc?hs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):yS.call(t);return typeof t=="object"&&!Hc?hf(w):w}if(ree(t)){for(var C="<"+Ij.call(String(t.nodeName)),b=t.attributes||[],g=0;g",C}if(_S(t)){if(t.length===0)return"[]";var _=sh(t,m);return v&&!oee(_)?"["+xS(_,v)+"]":"[ "+Aa.call(_,", ")+" ]"}if(WZ(t)){var $=sh(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!o4.call(t,"cause")?"{ ["+String(t)+"] "+Aa.call(jj.call("[cause]: "+m(t.cause),$),", ")+" }":$.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Aa.call($,", ")+" }"}if(typeof t=="object"&&i){if(Nj&&typeof t[Nj]=="function"&&bS)return bS(t,{depth:f-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(YZ(t)){var P=[];return Rj&&Rj.call(t,function(D,z){P.push(m(z,t,!0)+" => "+m(D,t))}),Bj("Map",Xg.call(t),P,v)}if(eee(t)){var E=[];return Tj&&Tj.call(t,function(D){E.push(m(D,t))}),Bj("Set",Yg.call(t),E,v)}if(JZ(t))return bx("WeakMap");if(tee(t))return bx("WeakSet");if(ZZ(t))return bx("WeakRef");if(HZ(t))return hf(m(Number(t)));if(KZ(t))return hf(m(gS.call(t)));if(GZ(t))return hf(MZ.call(t));if(qZ(t))return hf(m(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===no)return"{ [object globalThis] }";if(!VZ(t)&&!Dj(t)){var T=sh(t,m),R=Mj?Mj(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",A=!R&&mn&&Object(t)===t&&mn in t?WE.call(Us(t),8,-1):I?"Object":"",F=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",L=F+(A||I?"["+Aa.call(jj.call([],A||[],I||[]),": ")+"] ":"");return T.length===0?L+"{}":v?L+"{"+xS(T,v)+"}":L+"{ "+Aa.call(T,", ")+" }"}return String(t)};function a4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function UZ(e){return hs.call(String(e),/"/g,""")}function _S(e){return Us(e)==="[object Array]"&&(!mn||!(typeof e=="object"&&mn in e))}function VZ(e){return Us(e)==="[object Date]"&&(!mn||!(typeof e=="object"&&mn in e))}function Dj(e){return Us(e)==="[object RegExp]"&&(!mn||!(typeof e=="object"&&mn in e))}function WZ(e){return Us(e)==="[object Error]"&&(!mn||!(typeof e=="object"&&mn in e))}function qZ(e){return Us(e)==="[object String]"&&(!mn||!(typeof e=="object"&&mn in e))}function HZ(e){return Us(e)==="[object Number]"&&(!mn||!(typeof e=="object"&&mn in e))}function GZ(e){return Us(e)==="[object Boolean]"&&(!mn||!(typeof e=="object"&&mn in e))}function i4(e){if(Hc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!yS)return!1;try{return yS.call(e),!0}catch{}return!1}function KZ(e){if(!e||typeof e!="object"||!gS)return!1;try{return gS.call(e),!0}catch{}return!1}var QZ=Object.prototype.hasOwnProperty||function(e){return e in this};function ss(e,t){return QZ.call(e,t)}function Us(e){return FZ.call(e)}function XZ(e){if(e.name)return e.name;var t=NZ.call(LZ.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function s4(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return l4(WE.call(e,0,t.maxStringLength),t)+n}var o=hs.call(hs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,nee);return a4(o,"single",t)}function nee(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+DZ.call(t.toString(16))}function hf(e){return"Object("+e+")"}function bx(e){return e+" { ? }"}function Bj(e,t,r,n){var o=n?xS(r,n):Aa.call(r,", ");return e+" ("+t+") {"+o+"}"}function oee(e){for(var t=0;t=0)return!1;return!0}function aee(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Aa.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Aa.call(Array(t+1),r)}}function xS(e,t){if(e.length===0)return"";var r=` `+t.prev+t.base;return r+Aa.call(e,","+r)+` -`+t.prev}function sh(e,t){var r=_S(e),n=[];if(r){n.length=e.length;for(var o=0;o"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"},lee=see,qE=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":lee(t)},zj=kn,uee=UZ,cee=u4,dee=qE,c4=function(t,r){if(dee(t)!=="Object")throw new zj("Assertion failed: Type(O) is not Object");if(!cee(r))throw new zj("Assertion failed: IsPropertyKey(P) is not true, got "+uee(r));return t[r]},Uj=kn,fee=u4,pee=qE,vee=function(t,r){if(pee(t)!=="Object")throw new Uj("Assertion failed: `O` must be an Object");if(!fee(r))throw new Uj("Assertion failed: `P` must be a Property Key");return r in t},d4=Function.prototype.toString,ic=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,wS,Gh;if(typeof ic=="function"&&typeof Object.defineProperty=="function")try{wS=Object.defineProperty({},"length",{get:function(){throw Gh}}),Gh={},ic(function(){throw 42},null,wS)}catch(e){e!==Gh&&(ic=null)}else ic=null;var mee=/^\s*class\b/,SS=function(t){try{var r=d4.call(t);return mee.test(r)}catch{return!1}},_x=function(t){try{return SS(t)?!1:(d4.call(t),!0)}catch{return!1}},Kh=Object.prototype.toString,hee="[object Object]",gee="[object Function]",yee="[object GeneratorFunction]",bee="[object HTMLAllCollection]",_ee="[object HTML document.all class]",xee="[object HTMLCollection]",wee=typeof Symbol=="function"&&!!Symbol.toStringTag,See=!(0 in[,]),CS=function(){return!1};if(typeof document=="object"){var Cee=document.all;Kh.call(Cee)===Kh.call(document.all)&&(CS=function(t){if((See||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Kh.call(t);return(r===bee||r===_ee||r===xee||r===hee)&&t("")==null}catch{}return!1})}var f4=ic?function(t){if(CS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ic(t,null,wS)}catch(r){if(r!==Gh)return!1}return!SS(t)&&_x(t)}:function(t){if(CS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(wee)return _x(t);if(SS(t))return!1;var r=Kh.call(t);return r!==gee&&r!==yee&&!/^\[object HTML/.test(r)?!1:_x(t)},Oee=f4,Eee=Number.MAX_SAFE_INTEGER||9007199254740991,xx,Vj;function Pee(){return Vj||(Vj=1,xx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),xx}var wx,Wj;function $ee(){return Wj||(Wj=1,wx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),wx}var Ree=W3,HE=function(){return Ree()&&!!Symbol.toStringTag},Sx,qj;function Tee(){if(qj)return Sx;qj=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",o=HE();return Sx=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},Sx}var lh={exports:{}},Hj;function kee(){if(Hj)return lh.exports;Hj=1;var e=Object.prototype.toString,t=q3();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};lh.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return o(i)}catch{return!1}}}else lh.exports=function(i){return!1};return lh.exports}var Cx,Gj;function Iee(){if(Gj)return Cx;Gj=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=$ee(),r=f4,n=Tee(),o=kee(),a=function(c,l){if(typeof c>"u"||c===null)throw new TypeError("Cannot call method on "+c);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var f=l==="string"?["toString","valueOf"]:["valueOf","toString"],v,m,h;for(h=0;h1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var f;if(e&&(Symbol.toPrimitive?f=i(c,Symbol.toPrimitive):o(c)&&(f=Symbol.prototype.valueOf)),typeof f<"u"){var v=f.call(c,l);if(t(v))return v;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(c)||o(c))&&(l="string"),a(c,l==="default"?"number":l)},Cx}var Ox,Kj;function jee(){if(Kj)return Ox;Kj=1;var e=Iee();return Ox=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},Ox}var Ex,Qj;function Aee(){if(Qj)return Ex;Qj=1;var e=Ii,t=HE(),r,n,o,a;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),o={};var i=function(){throw o};a={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(a[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,l="[object RegExp]";return Ex=t?function(v){if(!v||typeof v!="object")return!1;var m=c(v,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{n(v,a)}catch(x){return x===o}}:function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:s(v)===l},Ex}var Px,Xj;function Mee(){if(Xj)return Px;Xj=1;var e=Ii,t=Aee(),r=e("RegExp.prototype.exec"),n=kn;return Px=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},Px}var Fee=Xa,Lee=Fee("%String%"),Nee=kn,p4=function(t){if(typeof t=="symbol")throw new Nee("Cannot convert a Symbol value to a string");return Lee(t)},Dee=lv,Bee=p4,zee=Ii,Yj=zee("String.prototype.replace"),v4=/^\s$/.test("᠎"),Uee=v4?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Vee=v4?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,m4=function(){var t=Bee(Dee(this));return Yj(Yj(t,Uee,""),Vee,"")},Wee=m4,Jj="​",ju="᠎",h4=function(){return String.prototype.trim&&Jj.trim()===Jj&&ju.trim()===ju&&("_"+ju).trim()==="_"+ju&&(ju+"_").trim()===ju+"_"?String.prototype.trim:Wee},qee=dd,Hee=h4,Gee=function(){var t=Hee();return qee(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Kee=kb,Qee=dd,Xee=lv,Yee=m4,g4=h4,Jee=Gee,Zee=Kee(g4()),y4=function(t){return Xee(t),Zee(t)};Qee(y4,{getPolyfill:g4,implementation:Yee,shim:Jee});var b4=y4,$x,Zj;function ete(){if(Zj)return $x;Zj=1;var e=Xa,t=e("%Number%"),r=e("%RegExp%"),n=kn,o=e("%parseInt%"),a=Ii,i=Mee(),s=a("String.prototype.slice"),c=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),f=i(/^[-+]0x[0-9a-f]+$/i),v=["…","​","￾"].join(""),m=new r("["+v+"]","g"),h=i(m),x=b4;return $x=function w(C){if(typeof C!="string")throw new n("Assertion failed: `argument` is not a String");if(c(C))return t(o(s(C,2),2));if(l(C))return t(o(s(C,2),8));if(h(C)||f(C))return NaN;var b=x(C);return b!==C?w(b):t(C)},$x}var tte=Xa,eA=kn,tA=tte("%Number%"),rte=Pee(),nte=jee(),ote=ete(),ate=function(t){var r=rte(t)?t:nte(t,tA);if(typeof r=="symbol")throw new eA("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new eA("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?ote(r):tA(r)},ite=Math.floor,ste=function(t){return typeof t=="bigint"?t:ite(t)},rA=ste,lte=kn,ute=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new lte("argument must be a Number or a BigInt");var r=t<0?-rA(-t):rA(t);return r===0?0:r},_4=Number.isNaN||function(t){return t!==t},cte=_4,dte=function(e){return(typeof e=="number"||typeof e=="bigint")&&!cte(e)&&e!==1/0&&e!==-1/0},fte=ate,pte=ute,vte=_4,mte=dte,hte=function(t){var r=fte(t);return vte(r)||r===0?0:mte(r)?pte(r):r},nA=Eee,gte=hte,yte=function(t){var r=gte(t);return r<=0?0:r>nA?nA:r},bte=kn,_te=c4,xte=yte,wte=qE,Ste=function(t){if(wte(t)!=="Object")throw new bte("Assertion failed: `obj` must be an Object");return xte(_te(t,"length"))},Cte=Object,Ote=Cte,Ete=lv,Pte=function(t){return Ete(t),Ote(t)},$te=String.prototype.valueOf,Rte=function(t){try{return $te.call(t),!0}catch{return!1}},Tte=Object.prototype.toString,kte="[object String]",Ite=HE(),jte=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:Ite?Rte(t):Tte.call(t)===kte},Ate=Ii,Mte=kn,Fte=RZ,Lte=c4,Nte=vee,Dte=Oee,Bte=Ste,zte=Pte,Ute=p4,Vte=jte,Wte=Ate("String.prototype.split"),oA=Object("a"),qte=oA[0]!=="a"||!(0 in oA),x4=function(t){var r=zte(this),n=qte&&Vte(this)?Wte(this,""):r,o=Bte(n);if(!Dte(t))throw new Mte("Array.prototype.forEach callback must be a function");var a;arguments.length>1&&(a=arguments[1]);for(var i=0;i=12&&t<=14)?1:2},j4={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:kx,chinese:function(){return 0},croatian:kx,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:kx,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function xre(e){var t={};return Jg(GE(e),function(r){var n=r[0],o=r[1];Jg(o,function(a){t[a]=n})}),t}function wre(e,t){var r=xre(e.pluralTypeToLanguages);return r[t]||r[I4.call(t,/-/,1)[0]]||r.en}function Sre(e,t,r){return e.pluralTypes[t](r)}function Cre(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=wre(t,r),n&&(e[r]=n)),n}}function sA(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ore(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Qh||r===Qh)throw new RangeError('"'+Qh+'" token is reserved for pluralization');return new RegExp(sA(t)+"(.*?)"+sA(r),"g")}var Ere=Cre(),Pre=/%\{(.*?)\}/g;function KE(e,t,r,n,o,a){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||Pre,c=a||k4,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var f=o||j4,v=I4.call(e,Qh),m=r||"en",h=Ere(f,m),x=Sre(f,h,l.smart_count);i=bre(v[x]||v[0])}return i=c.call(i,s,function(w,C){return!T4(l,C)||l[C]==null?w:l[C]}),i}function ji(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?KE:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||_re,this.replaceImplementation=t.replace||k4,this.tokenRegex=Ore(t.interpolation),this.pluralRules=t.pluralRules||j4}ji.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};ji.prototype.extend=function(e,t){Jg(GE(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.extend(o,a):this.phrases[a]=o},this)};ji.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:Jg(GE(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.unset(o,a):delete this.phrases[a]},this)};ji.prototype.clear=function(){this.phrases={}};ji.prototype.replace=function(e){this.clear(),this.extend(e)};ji.prototype.t=function(e,t){var r,n,o=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof o._=="string")r=o._;else if(this.onMissingKey){var a=this.onMissingKey;n=a(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=KE(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};ji.prototype.has=function(e){return T4(this.phrases,e)};ji.transformPhrase=function(t,r,n){return KE(t,r,n)};var $re=ji;const lA=gr($re);var sc=function(){return sc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function Xr(){}function kre(e,t){return typeof e=="function"?e(t):e}function ES(e){return typeof e=="number"&&e>=0&&e!==1/0}function ey(e){return Array.isArray(e)?e:[e]}function L4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xh(e,t,r){return uv(e)?typeof t=="function"?j({},r,{queryKey:e,queryFn:t}):j({},t,{queryKey:e}):e}function Ire(e,t,r){return uv(e)?typeof t=="function"?j({},r,{mutationKey:e,mutationFn:t}):j({},t,{mutationKey:e}):typeof e=="function"?j({},t,{mutationFn:e}):j({},e)}function ls(e,t,r){return uv(e)?[j({},t,{queryKey:e}),r]:[e||{},t]}function jre(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e??!t;return r?"active":"inactive"}function uA(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,c=e.stale;if(uv(s)){if(n){if(t.queryHash!==QE(s,t.options))return!1}else if(!ty(t.queryKey,s))return!1}var l=jre(r,a);if(l==="none")return!1;if(l!=="all"){var f=t.isActive();if(l==="active"&&!f||l==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function cA(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(uv(a)){if(!t.options.mutationKey)return!1;if(r){if(gs(t.options.mutationKey)!==gs(a))return!1}else if(!ty(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function QE(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||gs;return r(e)}function gs(e){var t=ey(e);return Are(t)}function Are(e){return JSON.stringify(e,function(t,r){return PS(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function ty(e,t){return N4(ey(e),ey(t))}function N4(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!N4(e[r],t[r])}):!1}function ry(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||PS(e)&&PS(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,c=0;c"u")return!0;var r=t.prototype;return!(!dA(r)||!r.hasOwnProperty("isPrototypeOf"))}function dA(e){return Object.prototype.toString.call(e)==="[object Object]"}function uv(e){return typeof e=="string"||Array.isArray(e)}function Fre(e){return new Promise(function(t){setTimeout(t,e)})}function fA(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function D4(){if(typeof AbortController=="function")return new AbortController}var Lre=function(e){Mi(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Zg&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setFocused(s):i.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(fd),Xf=new Lre,Nre=function(e){Mi(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Zg&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setOnline(s):i.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(fd),Yh=new Nre;function Dre(e){return Math.min(1e3*Math.pow(2,e),3e4)}function ny(e){return typeof(e==null?void 0:e.cancel)=="function"}var B4=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Jh(e){return e instanceof B4}var z4=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(m){return o==null?void 0:o(m)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(m,h){i=m,s=h});var c=function(h){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(h),a==null||a(),i(h))},l=function(h){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(h),a==null||a(),s(h))},f=function(){return new Promise(function(h){a=h,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},v=function m(){if(!r.isResolved){var h;try{h=t.fn()}catch(x){h=Promise.reject(x)}o=function(w){if(!r.isResolved&&(l(new B4(w)),r.abort==null||r.abort(),ny(h)))try{h.cancel()}catch{}},r.isTransportCancelable=ny(h),Promise.resolve(h).then(c).catch(function(x){var w,C;if(!r.isResolved){var b=(w=t.retry)!=null?w:3,g=(C=t.retryDelay)!=null?C:Dre,_=typeof g=="function"?g(r.failureCount,x):g,$=b===!0||typeof b=="number"&&r.failureCount"u"&&(s.exact=!0),this.queries.find(function(c){return uA(s,c)})},r.findAll=function(o,a){var i=ls(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(c){return uA(s,c)}):this.queries},r.notify=function(o){var a=this;Wt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;Wt.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;Wt.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(fd),Wre=function(){function e(r){this.options=j({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||V4(),this.meta=r.meta}var t=e.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(o){return o!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Xr).catch(Xr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),i.then(function(){return n.executeMutation()}).then(function(s){o=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(o,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(o,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(o,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:o}),o}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),oy().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,o;return this.retryer=new z4({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var o=this;this.state=qre(this.state,n),Wt.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function V4(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function qre(e,t){switch(t.type){case"failed":return j({},e,{failureCount:e.failureCount+1});case"pause":return j({},e,{isPaused:!0});case"continue":return j({},e,{isPaused:!1});case"loading":return j({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return j({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return j({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return j({},e,t.state);default:return e}}var Hre=function(e){Mi(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.mutations=[],o.mutationId=0,o}var r=t.prototype;return r.build=function(o,a,i){var s=new Wre({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;Wt.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return cA(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return cA(o,a)})},r.notify=function(o){var a=this;Wt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return Wt.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(Xr)})},Promise.resolve())})},t}(fd);function Gre(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,c=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,l=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,f=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",m=(l==null?void 0:l.direction)==="backward",h=((i=t.state.data)==null?void 0:i.pages)||[],x=((s=t.state.data)==null?void 0:s.pageParams)||[],w=D4(),C=w==null?void 0:w.signal,b=x,g=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},$=function(z,H,G,q){return b=q?[H].concat(b):[].concat(b,[H]),q?[G].concat(z):[].concat(z,[G])},P=function(z,H,G,q){if(g)return Promise.reject("Cancelled");if(typeof G>"u"&&!H&&z.length)return Promise.resolve(z);var U={queryKey:t.queryKey,signal:C,pageParam:G,meta:t.meta},W=_(U),te=Promise.resolve(W).then(function(ee){return $(z,G,ee,q)});if(ny(W)){var ne=te;ne.cancel=W.cancel}return te},E;if(!h.length)E=P([]);else if(v){var T=typeof f<"u",R=T?f:pA(t.options,h);E=P(h,T,R)}else if(m){var I=typeof f<"u",A=I?f:Kre(t.options,h);E=P(h,I,A,!0)}else(function(){b=[];var D=typeof t.options.getNextPageParam>"u",z=c&&h[0]?c(h[0],0,h):!0;E=z?P([],D,x[0]):Promise.resolve($([],x[0],h[0]));for(var H=function(U){E=E.then(function(W){var te=c&&h[U]?c(h[U],U,h):!0;if(te){var ne=D?x[U]:pA(t.options,W);return P(W,D,ne)}return Promise.resolve($(W,x[U],h[U]))})},G=1;G"u"&&(f.revert=!0);var v=Wt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.cancel(f)})});return Promise.all(v).then(Xr).catch(Xr)},t.invalidateQueries=function(n,o,a){var i,s,c,l=this,f=ls(n,o,a),v=f[0],m=f[1],h=j({},v,{active:(i=(s=v.refetchActive)!=null?s:v.active)!=null?i:!0,inactive:(c=v.refetchInactive)!=null?c:!1});return Wt.batch(function(){return l.queryCache.findAll(v).forEach(function(x){x.invalidate()}),l.refetchQueries(h,m)})},t.refetchQueries=function(n,o,a){var i=this,s=ls(n,o,a),c=s[0],l=s[1],f=Wt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.fetch(void 0,j({},l,{meta:{refetchPage:c==null?void 0:c.refetchPage}}))})}),v=Promise.all(f).then(Xr);return l!=null&&l.throwOnError||(v=v.catch(Xr)),v},t.fetchQuery=function(n,o,a){var i=Xh(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);var c=this.queryCache.build(this,s);return c.isStaleByTime(s.staleTime)?c.fetch(s):Promise.resolve(c.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then(Xr).catch(Xr)},t.fetchInfiniteQuery=function(n,o,a){var i=Xh(n,o,a);return i.behavior=Gre(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(Xr).catch(Xr)},t.cancelMutations=function(){var n=this,o=Wt.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(Xr).catch(Xr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,o){var a=this.queryDefaults.find(function(i){return gs(n)===gs(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:n,defaultOptions:o})},t.getQueryDefaults=function(n){var o;return n?(o=this.queryDefaults.find(function(a){return ty(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return gs(n)===gs(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:n,defaultOptions:o})},t.getMutationDefaults=function(n){var o;return n?(o=this.mutationDefaults.find(function(a){return ty(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=j({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=QE(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:j({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),Xre=function(e){Mi(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),vA(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return $S(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return $S(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,a){var i=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var c=this.hasListeners();c&&mA(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),c&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();c&&(this.currentQuery!==s||this.options.enabled!==i.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},r.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,a){var i=this,s={},c=function(f){i.trackedProps.includes(f)||i.trackedProps.push(f)};return Object.keys(o).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return c(l),o[l]}})}),(a.useErrorBoundary||a.suspense)&&c("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var c=a.subscribe(function(l){l.isFetching||(c(),l.isError&&(o!=null&&o.throwOnError)?s(l.error):i(l))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch(j({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return s.fetch().then(function(){return a.createResult(s,i)})},r.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},r.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(Xr)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(Zg||this.currentResult.isStale||!ES(this.options.staleTime))){var a=L4(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(Zg||this.options.enabled===!1||!ES(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Xf.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(o,a){var i=this.currentQuery,s=this.options,c=this.currentResult,l=this.currentResultState,f=this.currentResultOptions,v=o!==i,m=v?o.state:this.currentQueryInitialState,h=v?this.currentResult:this.previousQueryResult,x=o.state,w=x.dataUpdatedAt,C=x.error,b=x.errorUpdatedAt,g=x.isFetching,_=x.status,$=!1,P=!1,E;if(a.optimisticResults){var T=this.hasListeners(),R=!T&&vA(o,a),I=T&&mA(o,i,a,s);(R||I)&&(g=!0,w||(_="loading"))}if(a.keepPreviousData&&!x.dataUpdateCount&&(h!=null&&h.isSuccess)&&_!=="error")E=h.data,w=h.dataUpdatedAt,_=h.status,$=!0;else if(a.select&&typeof x.data<"u")if(c&&x.data===(l==null?void 0:l.data)&&a.select===this.selectFn)E=this.selectResult;else try{this.selectFn=a.select,E=a.select(x.data),a.structuralSharing!==!1&&(E=ry(c==null?void 0:c.data,E)),this.selectResult=E,this.selectError=null}catch(L){oy().error(L),this.selectError=L}else E=x.data;if(typeof a.placeholderData<"u"&&typeof E>"u"&&(_==="loading"||_==="idle")){var A;if(c!=null&&c.isPlaceholderData&&a.placeholderData===(f==null?void 0:f.placeholderData))A=c.data;else if(A=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof A<"u")try{A=a.select(A),a.structuralSharing!==!1&&(A=ry(c==null?void 0:c.data,A)),this.selectError=null}catch(L){oy().error(L),this.selectError=L}typeof A<"u"&&(_="success",E=A,P=!0)}this.selectError&&(C=this.selectError,E=this.selectResult,b=Date.now(),_="error");var F={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:E,dataUpdatedAt:w,error:C,errorUpdatedAt:b,failureCount:x.fetchFailureCount,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>m.dataUpdateCount||x.errorUpdateCount>m.errorUpdateCount,isFetching:g,isRefetching:g&&_!=="loading",isLoadingError:_==="error"&&x.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:$,isRefetchError:_==="error"&&x.dataUpdatedAt!==0,isStale:XE(o,a),refetch:this.refetch,remove:this.remove};return F},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,c=i.notifyOnChangePropsExclusions;if(!s&&!c||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(f){var v=f,m=o[v]!==a[v],h=l==null?void 0:l.some(function(w){return w===f}),x=c==null?void 0:c.some(function(w){return w===f});return m&&!x&&(!l||h)})},r.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Mre(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(j({},i,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!Jh(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;Wt.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(fd);function Yre(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function vA(e,t){return Yre(e,t)||e.state.dataUpdatedAt>0&&$S(e,t,t.refetchOnMount)}function $S(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&XE(e,t)}return!1}function mA(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&XE(e,r)}function XE(e,t){return e.isStaleByTime(t.staleTime)}var Jre=function(e){Mi(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.setOptions(o),a.bindMethods(),a.updateResult(),a}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var a={listeners:!0};o.type==="success"?a.onSuccess=!0:o.type==="error"&&(a.onError=!0),this.notify(a)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,j({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:V4(),a=j({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},r.notify=function(o){var a=this;Wt.batch(function(){a.mutateOptions&&(o.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):o.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)})})},t}(fd),Zre=Af.unstable_batchedUpdates;Wt.setBatchNotifyFunction(Zre);var ene=console;zre(ene);var hA=ve.createContext(void 0),W4=ve.createContext(!1);function q4(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=hA),window.ReactQueryClientContext):hA}var Xo=function(){var t=ve.useContext(q4(ve.useContext(W4)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tne=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;ve.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=q4(o);return ve.createElement(W4.Provider,{value:o},ve.createElement(i.Provider,{value:r},a))};function rne(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var nne=ve.createContext(rne()),one=function(){return ve.useContext(nne)};function H4(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function pd(e,t,r){var n=ve.useRef(!1),o=ve.useState(0),a=o[1],i=Ire(e,t,r),s=Xo(),c=ve.useRef();c.current?c.current.setOptions(i):c.current=new Jre(s,i);var l=c.current.getCurrentResult();ve.useEffect(function(){n.current=!0;var v=c.current.subscribe(Wt.batchCalls(function(){n.current&&a(function(m){return m+1})}));return function(){n.current=!1,v()}},[]);var f=ve.useCallback(function(v,m){c.current.mutate(v,m).catch(Xr)},[]);if(l.error&&H4(void 0,c.current.options.useErrorBoundary,[l.error]))throw l.error;return j({},l,{mutate:f,mutateAsync:l.mutate})}function ane(e,t){var r=ve.useRef(!1),n=ve.useState(0),o=n[1],a=Xo(),i=one(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Wt.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Wt.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Wt.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(i.isReset()||(s.retryOnMount=!1));var c=ve.useState(function(){return new t(a,s)}),l=c[0],f=l.getOptimisticResult(s);if(ve.useEffect(function(){r.current=!0,i.clearReset();var v=l.subscribe(Wt.batchCalls(function(){r.current&&o(function(m){return m+1})}));return l.updateResult(),function(){r.current=!1,v()}},[i,l]),ve.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&f.isLoading)throw l.fetchOptimistic(s).then(function(v){var m=v.data;s.onSuccess==null||s.onSuccess(m),s.onSettled==null||s.onSettled(m,null)}).catch(function(v){i.clearReset(),s.onError==null||s.onError(v),s.onSettled==null||s.onSettled(void 0,v)});if(f.isError&&!i.isReset()&&!f.isFetching&&H4(s.suspense,s.useErrorBoundary,[f.error,l.getCurrentQuery()]))throw f.error;return s.notifyOnChangeProps==="tracked"&&(f=l.trackResult(f,s)),f}function Vs(e,t,r){var n=Xh(e,t,r);return ane(n,Xre)}/** +`+t.prev}function sh(e,t){var r=_S(e),n=[];if(r){n.length=e.length;for(var o=0;o"u")return"Undefined";if(typeof t=="function"||typeof t=="object")return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"},see=iee,qE=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":see(t)},zj=kn,lee=zZ,uee=u4,cee=qE,c4=function(t,r){if(cee(t)!=="Object")throw new zj("Assertion failed: Type(O) is not Object");if(!uee(r))throw new zj("Assertion failed: IsPropertyKey(P) is not true, got "+lee(r));return t[r]},Uj=kn,dee=u4,fee=qE,pee=function(t,r){if(fee(t)!=="Object")throw new Uj("Assertion failed: `O` must be an Object");if(!dee(r))throw new Uj("Assertion failed: `P` must be a Property Key");return r in t},d4=Function.prototype.toString,ic=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,wS,Gh;if(typeof ic=="function"&&typeof Object.defineProperty=="function")try{wS=Object.defineProperty({},"length",{get:function(){throw Gh}}),Gh={},ic(function(){throw 42},null,wS)}catch(e){e!==Gh&&(ic=null)}else ic=null;var vee=/^\s*class\b/,SS=function(t){try{var r=d4.call(t);return vee.test(r)}catch{return!1}},_x=function(t){try{return SS(t)?!1:(d4.call(t),!0)}catch{return!1}},Kh=Object.prototype.toString,mee="[object Object]",hee="[object Function]",gee="[object GeneratorFunction]",yee="[object HTMLAllCollection]",bee="[object HTML document.all class]",_ee="[object HTMLCollection]",xee=typeof Symbol=="function"&&!!Symbol.toStringTag,wee=!(0 in[,]),CS=function(){return!1};if(typeof document=="object"){var See=document.all;Kh.call(See)===Kh.call(document.all)&&(CS=function(t){if((wee||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Kh.call(t);return(r===yee||r===bee||r===_ee||r===mee)&&t("")==null}catch{}return!1})}var f4=ic?function(t){if(CS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ic(t,null,wS)}catch(r){if(r!==Gh)return!1}return!SS(t)&&_x(t)}:function(t){if(CS(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(xee)return _x(t);if(SS(t))return!1;var r=Kh.call(t);return r!==hee&&r!==gee&&!/^\[object HTML/.test(r)?!1:_x(t)},Cee=f4,Oee=Number.MAX_SAFE_INTEGER||9007199254740991,xx,Vj;function Eee(){return Vj||(Vj=1,xx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),xx}var wx,Wj;function Pee(){return Wj||(Wj=1,wx=function(t){return t===null||typeof t!="function"&&typeof t!="object"}),wx}var $ee=W3,HE=function(){return $ee()&&!!Symbol.toStringTag},Sx,qj;function Ree(){if(qj)return Sx;qj=1;var e=Date.prototype.getDay,t=function(i){try{return e.call(i),!0}catch{return!1}},r=Object.prototype.toString,n="[object Date]",o=HE();return Sx=function(i){return typeof i!="object"||i===null?!1:o?t(i):r.call(i)===n},Sx}var lh={exports:{}},Hj;function Tee(){if(Hj)return lh.exports;Hj=1;var e=Object.prototype.toString,t=q3();if(t){var r=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(i){return typeof i.valueOf()!="symbol"?!1:n.test(r.call(i))};lh.exports=function(i){if(typeof i=="symbol")return!0;if(e.call(i)!=="[object Symbol]")return!1;try{return o(i)}catch{return!1}}}else lh.exports=function(i){return!1};return lh.exports}var Cx,Gj;function kee(){if(Gj)return Cx;Gj=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",t=Pee(),r=f4,n=Ree(),o=Tee(),a=function(c,l){if(typeof c>"u"||c===null)throw new TypeError("Cannot call method on "+c);if(typeof l!="string"||l!=="number"&&l!=="string")throw new TypeError('hint must be "string" or "number"');var f=l==="string"?["toString","valueOf"]:["valueOf","toString"],v,m,h;for(h=0;h1&&(arguments[1]===String?l="string":arguments[1]===Number&&(l="number"));var f;if(e&&(Symbol.toPrimitive?f=i(c,Symbol.toPrimitive):o(c)&&(f=Symbol.prototype.valueOf)),typeof f<"u"){var v=f.call(c,l);if(t(v))return v;throw new TypeError("unable to convert exotic object to primitive")}return l==="default"&&(n(c)||o(c))&&(l="string"),a(c,l==="default"?"number":l)},Cx}var Ox,Kj;function Iee(){if(Kj)return Ox;Kj=1;var e=kee();return Ox=function(r){return arguments.length>1?e(r,arguments[1]):e(r)},Ox}var Ex,Qj;function jee(){if(Qj)return Ex;Qj=1;var e=Ii,t=HE(),r,n,o,a;if(t){r=e("Object.prototype.hasOwnProperty"),n=e("RegExp.prototype.exec"),o={};var i=function(){throw o};a={toString:i,valueOf:i},typeof Symbol.toPrimitive=="symbol"&&(a[Symbol.toPrimitive]=i)}var s=e("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,l="[object RegExp]";return Ex=t?function(v){if(!v||typeof v!="object")return!1;var m=c(v,"lastIndex"),h=m&&r(m,"value");if(!h)return!1;try{n(v,a)}catch(x){return x===o}}:function(v){return!v||typeof v!="object"&&typeof v!="function"?!1:s(v)===l},Ex}var Px,Xj;function Aee(){if(Xj)return Px;Xj=1;var e=Ii,t=jee(),r=e("RegExp.prototype.exec"),n=kn;return Px=function(a){if(!t(a))throw new n("`regex` must be a RegExp");return function(s){return r(a,s)!==null}},Px}var Mee=Xa,Fee=Mee("%String%"),Lee=kn,p4=function(t){if(typeof t=="symbol")throw new Lee("Cannot convert a Symbol value to a string");return Fee(t)},Nee=lv,Dee=p4,Bee=Ii,Yj=Bee("String.prototype.replace"),v4=/^\s$/.test("᠎"),zee=v4?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Uee=v4?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,m4=function(){var t=Dee(Nee(this));return Yj(Yj(t,zee,""),Uee,"")},Vee=m4,Jj="​",ju="᠎",h4=function(){return String.prototype.trim&&Jj.trim()===Jj&&ju.trim()===ju&&("_"+ju).trim()==="_"+ju&&(ju+"_").trim()===ju+"_"?String.prototype.trim:Vee},Wee=dd,qee=h4,Hee=function(){var t=qee();return Wee(String.prototype,{trim:t},{trim:function(){return String.prototype.trim!==t}}),t},Gee=kb,Kee=dd,Qee=lv,Xee=m4,g4=h4,Yee=Hee,Jee=Gee(g4()),y4=function(t){return Qee(t),Jee(t)};Kee(y4,{getPolyfill:g4,implementation:Xee,shim:Yee});var b4=y4,$x,Zj;function Zee(){if(Zj)return $x;Zj=1;var e=Xa,t=e("%Number%"),r=e("%RegExp%"),n=kn,o=e("%parseInt%"),a=Ii,i=Aee(),s=a("String.prototype.slice"),c=i(/^0b[01]+$/i),l=i(/^0o[0-7]+$/i),f=i(/^[-+]0x[0-9a-f]+$/i),v=["…","​","￾"].join(""),m=new r("["+v+"]","g"),h=i(m),x=b4;return $x=function w(C){if(typeof C!="string")throw new n("Assertion failed: `argument` is not a String");if(c(C))return t(o(s(C,2),2));if(l(C))return t(o(s(C,2),8));if(h(C)||f(C))return NaN;var b=x(C);return b!==C?w(b):t(C)},$x}var ete=Xa,eA=kn,tA=ete("%Number%"),tte=Eee(),rte=Iee(),nte=Zee(),ote=function(t){var r=tte(t)?t:rte(t,tA);if(typeof r=="symbol")throw new eA("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new eA("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?nte(r):tA(r)},ate=Math.floor,ite=function(t){return typeof t=="bigint"?t:ate(t)},rA=ite,ste=kn,lte=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new ste("argument must be a Number or a BigInt");var r=t<0?-rA(-t):rA(t);return r===0?0:r},_4=Number.isNaN||function(t){return t!==t},ute=_4,cte=function(e){return(typeof e=="number"||typeof e=="bigint")&&!ute(e)&&e!==1/0&&e!==-1/0},dte=ote,fte=lte,pte=_4,vte=cte,mte=function(t){var r=dte(t);return pte(r)||r===0?0:vte(r)?fte(r):r},nA=Oee,hte=mte,gte=function(t){var r=hte(t);return r<=0?0:r>nA?nA:r},yte=kn,bte=c4,_te=gte,xte=qE,wte=function(t){if(xte(t)!=="Object")throw new yte("Assertion failed: `obj` must be an Object");return _te(bte(t,"length"))},Ste=Object,Cte=Ste,Ote=lv,Ete=function(t){return Ote(t),Cte(t)},Pte=String.prototype.valueOf,$te=function(t){try{return Pte.call(t),!0}catch{return!1}},Rte=Object.prototype.toString,Tte="[object String]",kte=HE(),Ite=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:kte?$te(t):Rte.call(t)===Tte},jte=Ii,Ate=kn,Mte=$Z,Fte=c4,Lte=pee,Nte=Cee,Dte=wte,Bte=Ete,zte=p4,Ute=Ite,Vte=jte("String.prototype.split"),oA=Object("a"),Wte=oA[0]!=="a"||!(0 in oA),x4=function(t){var r=Bte(this),n=Wte&&Ute(this)?Vte(this,""):r,o=Dte(n);if(!Nte(t))throw new Ate("Array.prototype.forEach callback must be a function");var a;arguments.length>1&&(a=arguments[1]);for(var i=0;i=12&&t<=14)?1:2},j4={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:kx,chinese:function(){return 0},croatian:kx,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:kx,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return e===1?0:e>=2&&e<=4?1:2},polish:function(e){if(e===1)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return t===1?0:t===2?1:t===3||t===4?2:3},romanian:function(e){if(e===1)return 0;var t=e%100;return e===0||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function _re(e){var t={};return Jg(GE(e),function(r){var n=r[0],o=r[1];Jg(o,function(a){t[a]=n})}),t}function xre(e,t){var r=_re(e.pluralTypeToLanguages);return r[t]||r[I4.call(t,/-/,1)[0]]||r.en}function wre(e,t,r){return e.pluralTypes[t](r)}function Sre(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=xre(t,r),n&&(e[r]=n)),n}}function sA(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Cre(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===Qh||r===Qh)throw new RangeError('"'+Qh+'" token is reserved for pluralization');return new RegExp(sA(t)+"(.*?)"+sA(r),"g")}var Ore=Sre(),Ere=/%\{(.*?)\}/g;function KE(e,t,r,n,o,a){if(typeof e!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(t==null)return e;var i=e,s=n||Ere,c=a||k4,l=typeof t=="number"?{smart_count:t}:t;if(l.smart_count!=null&&e){var f=o||j4,v=I4.call(e,Qh),m=r||"en",h=Ore(f,m),x=wre(f,h,l.smart_count);i=yre(v[x]||v[0])}return i=c.call(i,s,function(w,C){return!T4(l,C)||l[C]==null?w:l[C]}),i}function ji(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?KE:null;this.onMissingKey=typeof t.onMissingKey=="function"?t.onMissingKey:r,this.warn=t.warn||bre,this.replaceImplementation=t.replace||k4,this.tokenRegex=Cre(t.interpolation),this.pluralRules=t.pluralRules||j4}ji.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale};ji.prototype.extend=function(e,t){Jg(GE(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.extend(o,a):this.phrases[a]=o},this)};ji.prototype.unset=function(e,t){typeof e=="string"?delete this.phrases[e]:Jg(GE(e||{}),function(r){var n=r[0],o=r[1],a=t?t+"."+n:n;typeof o=="object"?this.unset(o,a):delete this.phrases[a]},this)};ji.prototype.clear=function(){this.phrases={}};ji.prototype.replace=function(e){this.clear(),this.extend(e)};ji.prototype.t=function(e,t){var r,n,o=t??{};if(typeof this.phrases[e]=="string")r=this.phrases[e];else if(typeof o._=="string")r=o._;else if(this.onMissingKey){var a=this.onMissingKey;n=a(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return typeof r=="string"&&(n=KE(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n};ji.prototype.has=function(e){return T4(this.phrases,e)};ji.transformPhrase=function(t,r,n){return KE(t,r,n)};var Pre=ji;const lA=gr(Pre);var sc=function(){return sc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function Xr(){}function Tre(e,t){return typeof e=="function"?e(t):e}function ES(e){return typeof e=="number"&&e>=0&&e!==1/0}function ey(e){return Array.isArray(e)?e:[e]}function L4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Xh(e,t,r){return uv(e)?typeof t=="function"?j({},r,{queryKey:e,queryFn:t}):j({},t,{queryKey:e}):e}function kre(e,t,r){return uv(e)?typeof t=="function"?j({},r,{mutationKey:e,mutationFn:t}):j({},t,{mutationKey:e}):typeof e=="function"?j({},t,{mutationFn:e}):j({},e)}function ls(e,t,r){return uv(e)?[j({},t,{queryKey:e}),r]:[e||{},t]}function Ire(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e??!t;return r?"active":"inactive"}function uA(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,c=e.stale;if(uv(s)){if(n){if(t.queryHash!==QE(s,t.options))return!1}else if(!ty(t.queryKey,s))return!1}var l=Ire(r,a);if(l==="none")return!1;if(l!=="all"){var f=t.isActive();if(l==="active"&&!f||l==="inactive"&&f)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function cA(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(uv(a)){if(!t.options.mutationKey)return!1;if(r){if(gs(t.options.mutationKey)!==gs(a))return!1}else if(!ty(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function QE(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||gs;return r(e)}function gs(e){var t=ey(e);return jre(t)}function jre(e){return JSON.stringify(e,function(t,r){return PS(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function ty(e,t){return N4(ey(e),ey(t))}function N4(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!N4(e[r],t[r])}):!1}function ry(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||PS(e)&&PS(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,c=0;c"u")return!0;var r=t.prototype;return!(!dA(r)||!r.hasOwnProperty("isPrototypeOf"))}function dA(e){return Object.prototype.toString.call(e)==="[object Object]"}function uv(e){return typeof e=="string"||Array.isArray(e)}function Mre(e){return new Promise(function(t){setTimeout(t,e)})}function fA(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function D4(){if(typeof AbortController=="function")return new AbortController}var Fre=function(e){Mi(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Zg&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setFocused(s):i.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(fd),Xf=new Fre,Lre=function(e){Mi(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!Zg&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setOnline(s):i.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(fd),Yh=new Lre;function Nre(e){return Math.min(1e3*Math.pow(2,e),3e4)}function ny(e){return typeof(e==null?void 0:e.cancel)=="function"}var B4=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Jh(e){return e instanceof B4}var z4=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(m){return o==null?void 0:o(m)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(m,h){i=m,s=h});var c=function(h){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(h),a==null||a(),i(h))},l=function(h){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(h),a==null||a(),s(h))},f=function(){return new Promise(function(h){a=h,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},v=function m(){if(!r.isResolved){var h;try{h=t.fn()}catch(x){h=Promise.reject(x)}o=function(w){if(!r.isResolved&&(l(new B4(w)),r.abort==null||r.abort(),ny(h)))try{h.cancel()}catch{}},r.isTransportCancelable=ny(h),Promise.resolve(h).then(c).catch(function(x){var w,C;if(!r.isResolved){var b=(w=t.retry)!=null?w:3,g=(C=t.retryDelay)!=null?C:Nre,_=typeof g=="function"?g(r.failureCount,x):g,$=b===!0||typeof b=="number"&&r.failureCount"u"&&(s.exact=!0),this.queries.find(function(c){return uA(s,c)})},r.findAll=function(o,a){var i=ls(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(c){return uA(s,c)}):this.queries},r.notify=function(o){var a=this;Wt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;Wt.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;Wt.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t}(fd),Vre=function(){function e(r){this.options=j({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||V4(),this.meta=r.meta}var t=e.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(o){return o!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(Xr).catch(Xr)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),i.then(function(){return n.executeMutation()}).then(function(s){o=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(o,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(o,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(o,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:o}),o}).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),oy().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,o;return this.retryer=new z4({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var o=this;this.state=Wre(this.state,n),Wt.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e}();function V4(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function Wre(e,t){switch(t.type){case"failed":return j({},e,{failureCount:e.failureCount+1});case"pause":return j({},e,{isPaused:!0});case"continue":return j({},e,{isPaused:!1});case"loading":return j({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return j({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return j({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return j({},e,t.state);default:return e}}var qre=function(e){Mi(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.mutations=[],o.mutationId=0,o}var r=t.prototype;return r.build=function(o,a,i){var s=new Vre({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;Wt.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact>"u"&&(o.exact=!0),this.mutations.find(function(a){return cA(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return cA(o,a)})},r.notify=function(o){var a=this;Wt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return Wt.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch(Xr)})},Promise.resolve())})},t}(fd);function Hre(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,c=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,l=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,f=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",m=(l==null?void 0:l.direction)==="backward",h=((i=t.state.data)==null?void 0:i.pages)||[],x=((s=t.state.data)==null?void 0:s.pageParams)||[],w=D4(),C=w==null?void 0:w.signal,b=x,g=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},$=function(z,H,G,q){return b=q?[H].concat(b):[].concat(b,[H]),q?[G].concat(z):[].concat(z,[G])},P=function(z,H,G,q){if(g)return Promise.reject("Cancelled");if(typeof G>"u"&&!H&&z.length)return Promise.resolve(z);var U={queryKey:t.queryKey,signal:C,pageParam:G,meta:t.meta},W=_(U),te=Promise.resolve(W).then(function(ee){return $(z,G,ee,q)});if(ny(W)){var ne=te;ne.cancel=W.cancel}return te},E;if(!h.length)E=P([]);else if(v){var T=typeof f<"u",R=T?f:pA(t.options,h);E=P(h,T,R)}else if(m){var I=typeof f<"u",A=I?f:Gre(t.options,h);E=P(h,I,A,!0)}else(function(){b=[];var D=typeof t.options.getNextPageParam>"u",z=c&&h[0]?c(h[0],0,h):!0;E=z?P([],D,x[0]):Promise.resolve($([],x[0],h[0]));for(var H=function(U){E=E.then(function(W){var te=c&&h[U]?c(h[U],U,h):!0;if(te){var ne=D?x[U]:pA(t.options,W);return P(W,D,ne)}return Promise.resolve($(W,x[U],h[U]))})},G=1;G"u"&&(f.revert=!0);var v=Wt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.cancel(f)})});return Promise.all(v).then(Xr).catch(Xr)},t.invalidateQueries=function(n,o,a){var i,s,c,l=this,f=ls(n,o,a),v=f[0],m=f[1],h=j({},v,{active:(i=(s=v.refetchActive)!=null?s:v.active)!=null?i:!0,inactive:(c=v.refetchInactive)!=null?c:!1});return Wt.batch(function(){return l.queryCache.findAll(v).forEach(function(x){x.invalidate()}),l.refetchQueries(h,m)})},t.refetchQueries=function(n,o,a){var i=this,s=ls(n,o,a),c=s[0],l=s[1],f=Wt.batch(function(){return i.queryCache.findAll(c).map(function(m){return m.fetch(void 0,j({},l,{meta:{refetchPage:c==null?void 0:c.refetchPage}}))})}),v=Promise.all(f).then(Xr);return l!=null&&l.throwOnError||(v=v.catch(Xr)),v},t.fetchQuery=function(n,o,a){var i=Xh(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);var c=this.queryCache.build(this,s);return c.isStaleByTime(s.staleTime)?c.fetch(s):Promise.resolve(c.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then(Xr).catch(Xr)},t.fetchInfiniteQuery=function(n,o,a){var i=Xh(n,o,a);return i.behavior=Hre(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then(Xr).catch(Xr)},t.cancelMutations=function(){var n=this,o=Wt.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then(Xr).catch(Xr)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,o){var a=this.queryDefaults.find(function(i){return gs(n)===gs(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:n,defaultOptions:o})},t.getQueryDefaults=function(n){var o;return n?(o=this.queryDefaults.find(function(a){return ty(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return gs(n)===gs(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:n,defaultOptions:o})},t.getMutationDefaults=function(n){var o;return n?(o=this.mutationDefaults.find(function(a){return ty(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=j({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=QE(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:j({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),Qre=function(e){Mi(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),vA(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return $S(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return $S(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,a){var i=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var c=this.hasListeners();c&&mA(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),c&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var l=this.computeRefetchInterval();c&&(this.currentQuery!==s||this.options.enabled!==i.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)},r.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,a){var i=this,s={},c=function(f){i.trackedProps.includes(f)||i.trackedProps.push(f)};return Object.keys(o).forEach(function(l){Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:function(){return c(l),o[l]}})}),(a.useErrorBoundary||a.suspense)&&c("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var c=a.subscribe(function(l){l.isFetching||(c(),l.isError&&(o!=null&&o.throwOnError)?s(l.error):i(l))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch(j({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return s.fetch().then(function(){return a.createResult(s,i)})},r.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},r.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch(Xr)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(Zg||this.currentResult.isStale||!ES(this.options.staleTime))){var a=L4(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(Zg||this.options.enabled===!1||!ES(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Xf.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(o,a){var i=this.currentQuery,s=this.options,c=this.currentResult,l=this.currentResultState,f=this.currentResultOptions,v=o!==i,m=v?o.state:this.currentQueryInitialState,h=v?this.currentResult:this.previousQueryResult,x=o.state,w=x.dataUpdatedAt,C=x.error,b=x.errorUpdatedAt,g=x.isFetching,_=x.status,$=!1,P=!1,E;if(a.optimisticResults){var T=this.hasListeners(),R=!T&&vA(o,a),I=T&&mA(o,i,a,s);(R||I)&&(g=!0,w||(_="loading"))}if(a.keepPreviousData&&!x.dataUpdateCount&&(h!=null&&h.isSuccess)&&_!=="error")E=h.data,w=h.dataUpdatedAt,_=h.status,$=!0;else if(a.select&&typeof x.data<"u")if(c&&x.data===(l==null?void 0:l.data)&&a.select===this.selectFn)E=this.selectResult;else try{this.selectFn=a.select,E=a.select(x.data),a.structuralSharing!==!1&&(E=ry(c==null?void 0:c.data,E)),this.selectResult=E,this.selectError=null}catch(L){oy().error(L),this.selectError=L}else E=x.data;if(typeof a.placeholderData<"u"&&typeof E>"u"&&(_==="loading"||_==="idle")){var A;if(c!=null&&c.isPlaceholderData&&a.placeholderData===(f==null?void 0:f.placeholderData))A=c.data;else if(A=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof A<"u")try{A=a.select(A),a.structuralSharing!==!1&&(A=ry(c==null?void 0:c.data,A)),this.selectError=null}catch(L){oy().error(L),this.selectError=L}typeof A<"u"&&(_="success",E=A,P=!0)}this.selectError&&(C=this.selectError,E=this.selectResult,b=Date.now(),_="error");var F={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:E,dataUpdatedAt:w,error:C,errorUpdatedAt:b,failureCount:x.fetchFailureCount,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>m.dataUpdateCount||x.errorUpdateCount>m.errorUpdateCount,isFetching:g,isRefetching:g&&_!=="loading",isLoadingError:_==="error"&&x.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:$,isRefetchError:_==="error"&&x.dataUpdatedAt!==0,isStale:XE(o,a),refetch:this.refetch,remove:this.remove};return F},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,c=i.notifyOnChangePropsExclusions;if(!s&&!c||s==="tracked"&&!this.trackedProps.length)return!0;var l=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(f){var v=f,m=o[v]!==a[v],h=l==null?void 0:l.some(function(w){return w===f}),x=c==null?void 0:c.some(function(w){return w===f});return m&&!x&&(!l||h)})},r.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Are(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(j({},i,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!Jh(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;Wt.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t}(fd);function Xre(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function vA(e,t){return Xre(e,t)||e.state.dataUpdatedAt>0&&$S(e,t,t.refetchOnMount)}function $S(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&XE(e,t)}return!1}function mA(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&XE(e,r)}function XE(e,t){return e.isStaleByTime(t.staleTime)}var Yre=function(e){Mi(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.setOptions(o),a.bindMethods(),a.updateResult(),a}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var a={listeners:!0};o.type==="success"?a.onSuccess=!0:o.type==="error"&&(a.onError=!0),this.notify(a)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,j({},this.options,{variables:typeof o<"u"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:V4(),a=j({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},r.notify=function(o){var a=this;Wt.batch(function(){a.mutateOptions&&(o.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):o.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)})})},t}(fd),Jre=Af.unstable_batchedUpdates;Wt.setBatchNotifyFunction(Jre);var Zre=console;Bre(Zre);var hA=ve.createContext(void 0),W4=ve.createContext(!1);function q4(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=hA),window.ReactQueryClientContext):hA}var Xo=function(){var t=ve.useContext(q4(ve.useContext(W4)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ene=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;ve.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=q4(o);return ve.createElement(W4.Provider,{value:o},ve.createElement(i.Provider,{value:r},a))};function tne(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var rne=ve.createContext(tne()),nne=function(){return ve.useContext(rne)};function H4(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function pd(e,t,r){var n=ve.useRef(!1),o=ve.useState(0),a=o[1],i=kre(e,t,r),s=Xo(),c=ve.useRef();c.current?c.current.setOptions(i):c.current=new Yre(s,i);var l=c.current.getCurrentResult();ve.useEffect(function(){n.current=!0;var v=c.current.subscribe(Wt.batchCalls(function(){n.current&&a(function(m){return m+1})}));return function(){n.current=!1,v()}},[]);var f=ve.useCallback(function(v,m){c.current.mutate(v,m).catch(Xr)},[]);if(l.error&&H4(void 0,c.current.options.useErrorBoundary,[l.error]))throw l.error;return j({},l,{mutate:f,mutateAsync:l.mutate})}function one(e,t){var r=ve.useRef(!1),n=ve.useState(0),o=n[1],a=Xo(),i=nne(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=Wt.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=Wt.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=Wt.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(i.isReset()||(s.retryOnMount=!1));var c=ve.useState(function(){return new t(a,s)}),l=c[0],f=l.getOptimisticResult(s);if(ve.useEffect(function(){r.current=!0,i.clearReset();var v=l.subscribe(Wt.batchCalls(function(){r.current&&o(function(m){return m+1})}));return l.updateResult(),function(){r.current=!1,v()}},[i,l]),ve.useEffect(function(){l.setOptions(s,{listeners:!1})},[s,l]),s.suspense&&f.isLoading)throw l.fetchOptimistic(s).then(function(v){var m=v.data;s.onSuccess==null||s.onSuccess(m),s.onSettled==null||s.onSettled(m,null)}).catch(function(v){i.clearReset(),s.onError==null||s.onError(v),s.onSettled==null||s.onSettled(void 0,v)});if(f.isError&&!i.isReset()&&!f.isFetching&&H4(s.suspense,s.useErrorBoundary,[f.error,l.getCurrentQuery()]))throw f.error;return s.notifyOnChangeProps==="tracked"&&(f=l.trackResult(f,s)),f}function Vs(e,t,r){var n=Xh(e,t,r);return one(n,Qre)}/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -75,7 +75,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function G4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gA(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 cv(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 yA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yA||(yA={}));function ine(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?cv(t):t,o=YE(n.pathname||"/",r);if(o==null)return null;let a=K4(e);sne(a);let i=null;for(let s=0;i==null&&s{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(hr(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let l=Rs([n,c.relativePath]),f=r.concat(c);a.children&&a.children.length>0&&(hr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),K4(a.children,t,f,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:vne(l,a.index),routesMeta:f})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of Q4(a.path))o(a,i,c)}),t}function Q4(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=Q4(n.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function sne(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:mne(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const lne=/^:[\w-]+$/,une=3,cne=2,dne=1,fne=10,pne=-2,bA=e=>e==="*";function vne(e,t){let r=e.split("/"),n=r.length;return r.some(bA)&&(n+=pne),t&&(n+=cne),r.filter(o=>!bA(o)).reduce((o,a)=>o+(lne.test(a)?une:a===""?dne:fne),n)}function mne(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function hne(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{let{paramName:m,isOptional:h}=f;if(m==="*"){let w=s[v]||"";i=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const x=s[v];return h&&!x?l[m]=void 0:l[m]=(x||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function gne(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),G4(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function yne(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return G4(!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 YE(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 bne(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?cv(e):e;return{pathname:r?r.startsWith("/")?r:_ne(r,t):t,search:Sne(n),hash:Cne(o)}}function _ne(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Ix(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 xne(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function JE(e,t){let r=xne(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function ZE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=cv(e):(o=RS({},e),hr(!o.pathname||!o.pathname.includes("?"),Ix("?","pathname","search",o)),hr(!o.pathname||!o.pathname.includes("#"),Ix("#","pathname","hash",o)),hr(!o.search||!o.search.includes("#"),Ix("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let v=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),v-=1;o.pathname=m.join("/")}s=v>=0?t[v]:"/"}let c=bne(o,s),l=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||f)&&(c.pathname+="/"),c}const Rs=e=>e.join("/").replace(/\/\/+/g,"/"),wne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Sne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Cne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function One(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const X4=["post","put","patch","delete"];new Set(X4);const Ene=["get",...X4];new Set(Ene);/** + */function RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function G4(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gA(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 cv(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 yA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yA||(yA={}));function ane(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?cv(t):t,o=YE(n.pathname||"/",r);if(o==null)return null;let a=K4(e);ine(a);let i=null;for(let s=0;i==null&&s{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(hr(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let l=Rs([n,c.relativePath]),f=r.concat(c);a.children&&a.children.length>0&&(hr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),K4(a.children,t,f,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:pne(l,a.index),routesMeta:f})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let c of Q4(a.path))o(a,i,c)}),t}function Q4(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=Q4(n.join("/")),s=[];return s.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function ine(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:vne(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const sne=/^:[\w-]+$/,lne=3,une=2,cne=1,dne=10,fne=-2,bA=e=>e==="*";function pne(e,t){let r=e.split("/"),n=r.length;return r.some(bA)&&(n+=fne),t&&(n+=une),r.filter(o=>!bA(o)).reduce((o,a)=>o+(sne.test(a)?lne:a===""?cne:dne),n)}function vne(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function mne(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{let{paramName:m,isOptional:h}=f;if(m==="*"){let w=s[v]||"";i=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const x=s[v];return h&&!x?l[m]=void 0:l[m]=(x||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function hne(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),G4(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function gne(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return G4(!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 YE(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 yne(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?cv(e):e;return{pathname:r?r.startsWith("/")?r:bne(r,t):t,search:wne(n),hash:Sne(o)}}function bne(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Ix(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 _ne(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function JE(e,t){let r=_ne(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function ZE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=cv(e):(o=RS({},e),hr(!o.pathname||!o.pathname.includes("?"),Ix("?","pathname","search",o)),hr(!o.pathname||!o.pathname.includes("#"),Ix("#","pathname","hash",o)),hr(!o.search||!o.search.includes("#"),Ix("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let v=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),v-=1;o.pathname=m.join("/")}s=v>=0?t[v]:"/"}let c=yne(o,s),l=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||f)&&(c.pathname+="/"),c}const Rs=e=>e.join("/").replace(/\/\/+/g,"/"),xne=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Sne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Cne(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const X4=["post","put","patch","delete"];new Set(X4);const One=["get",...X4];new Set(One);/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -84,7 +84,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var t=1;tMp(e,t),[t,e])}function J4(e){d.useContext(Fi).static||d.useLayoutEffect(e)}function Ja(){let{isDataRoute:e}=d.useContext(Ya);return e?Wne():Tne()}function Tne(){Ws()||hr(!1);let e=d.useContext(eP),{basename:t,future:r,navigator:n}=d.useContext(Fi),{matches:o}=d.useContext(Ya),{pathname:a}=Lr(),i=JSON.stringify(JE(o,r.v7_relativeSplatPath)),s=d.useRef(!1);return J4(()=>{s.current=!0}),d.useCallback(function(l,f){if(f===void 0&&(f={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let v=ZE(l,JSON.parse(i),a,f.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Rs([t,v.pathname])),(f.replace?n.replace:n.push)(v,f.state,f)},[t,n,i,a,e])}const kne=d.createContext(null);function Ine(e){let t=d.useContext(Ya).outlet;return t&&d.createElement(kne.Provider,{value:e},t)}function Ab(){let{matches:e}=d.useContext(Ya),t=e[e.length-1];return t?t.params:{}}function tP(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Fi),{matches:o}=d.useContext(Ya),{pathname:a}=Lr(),i=JSON.stringify(JE(o,n.v7_relativeSplatPath));return d.useMemo(()=>ZE(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function jne(e,t){return Ane(e,t)}function Ane(e,t,r,n){Ws()||hr(!1);let{navigator:o}=d.useContext(Fi),{matches:a}=d.useContext(Ya),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let l=Lr(),f;if(t){var v;let C=typeof t=="string"?cv(t):t;c==="/"||(v=C.pathname)!=null&&v.startsWith(c)||hr(!1),f=C}else f=l;let m=f.pathname||"/",h=m;if(c!=="/"){let C=c.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=ine(e,{pathname:h}),w=Dne(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Rs([c,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?c:Rs([c,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,r,n);return t&&w?d.createElement(jb.Provider,{value:{location:Fp({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ay.Pop}},w):w}function Mne(){let e=Vne(),t=One(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:o},r):null,null)}const Fne=d.createElement(Mne,null);class Lne extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(Ya.Provider,{value:this.props.routeContext},d.createElement(Y4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nne(e){let{routeContext:t,match:r,children:n}=e,o=d.useContext(eP);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Ya.Provider,{value:t},n)}function Dne(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let f=i.findIndex(v=>v.route.id&&(s==null?void 0:s[v.route.id]));f>=0||hr(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,v,m)=>{let h,x=!1,w=null,C=null;r&&(h=s&&v.route.id?s[v.route.id]:void 0,w=v.route.errorElement||Fne,c&&(l<0&&m===0?(qne("route-fallback",!1),x=!0,C=null):l===m&&(x=!0,C=v.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,m+1)),g=()=>{let _;return h?_=w:x?_=C:v.route.Component?_=d.createElement(v.route.Component,null):v.route.element?_=v.route.element:_=f,d.createElement(Nne,{match:v,routeContext:{outlet:f,matches:b,isDataRoute:r!=null},children:_})};return r&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?d.createElement(Lne,{location:r.location,revalidation:r.revalidation,component:w,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var Z4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Z4||{}),iy=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}(iy||{});function Bne(e){let t=d.useContext(eP);return t||hr(!1),t}function zne(e){let t=d.useContext(Pne);return t||hr(!1),t}function Une(e){let t=d.useContext(Ya);return t||hr(!1),t}function e5(e){let t=Une(),r=t.matches[t.matches.length-1];return r.route.id||hr(!1),r.route.id}function Vne(){var e;let t=d.useContext(Y4),r=zne(iy.UseRouteError),n=e5(iy.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Wne(){let{router:e}=Bne(Z4.UseNavigateStable),t=e5(iy.UseNavigateStable),r=d.useRef(!1);return J4(()=>{r.current=!0}),d.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Fp({fromRouteId:t},a)))},[e,t])}const _A={};function qne(e,t,r){!t&&!_A[e]&&(_A[e]=!0)}function Hne(e){let{to:t,replace:r,state:n,relative:o}=e;Ws()||hr(!1);let{future:a,static:i}=d.useContext(Fi),{matches:s}=d.useContext(Ya),{pathname:c}=Lr(),l=Ja(),f=ZE(t,JE(s,a.v7_relativeSplatPath),c,o==="path"),v=JSON.stringify(f);return d.useEffect(()=>l(JSON.parse(v),{replace:r,state:n,relative:o}),[l,v,o,r,n]),null}function Gne(e){return Ine(e.context)}function Jr(e){hr(!1)}function Kne(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ay.Pop,navigator:a,static:i=!1,future:s}=e;Ws()&&hr(!1);let c=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:c,navigator:a,static:i,future:Fp({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof n=="string"&&(n=cv(n));let{pathname:f="/",search:v="",hash:m="",state:h=null,key:x="default"}=n,w=d.useMemo(()=>{let C=YE(f,c);return C==null?null:{location:{pathname:C,search:v,hash:m,state:h,key:x},navigationType:o}},[c,f,v,m,h,x,o]);return w==null?null:d.createElement(Fi.Provider,{value:l},d.createElement(jb.Provider,{children:r,value:w}))}function Ll(e){let{children:t,location:r}=e;return jne(TS(t),r)}new Promise(()=>{});function TS(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,o)=>{if(!d.isValidElement(n))return;let a=[...t,o];if(n.type===d.Fragment){r.push.apply(r,TS(n.props.children,a));return}n.type!==Jr&&hr(!1),!n.props.index||!n.props.children||hr(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=TS(n.props.children,a)),r.push(i)}),r}/** + */function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var t=1;tMp(e,t),[t,e])}function J4(e){d.useContext(Fi).static||d.useLayoutEffect(e)}function Ja(){let{isDataRoute:e}=d.useContext(Ya);return e?Vne():Rne()}function Rne(){Ws()||hr(!1);let e=d.useContext(eP),{basename:t,future:r,navigator:n}=d.useContext(Fi),{matches:o}=d.useContext(Ya),{pathname:a}=Lr(),i=JSON.stringify(JE(o,r.v7_relativeSplatPath)),s=d.useRef(!1);return J4(()=>{s.current=!0}),d.useCallback(function(l,f){if(f===void 0&&(f={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let v=ZE(l,JSON.parse(i),a,f.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Rs([t,v.pathname])),(f.replace?n.replace:n.push)(v,f.state,f)},[t,n,i,a,e])}const Tne=d.createContext(null);function kne(e){let t=d.useContext(Ya).outlet;return t&&d.createElement(Tne.Provider,{value:e},t)}function Ab(){let{matches:e}=d.useContext(Ya),t=e[e.length-1];return t?t.params:{}}function tP(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Fi),{matches:o}=d.useContext(Ya),{pathname:a}=Lr(),i=JSON.stringify(JE(o,n.v7_relativeSplatPath));return d.useMemo(()=>ZE(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function Ine(e,t){return jne(e,t)}function jne(e,t,r,n){Ws()||hr(!1);let{navigator:o}=d.useContext(Fi),{matches:a}=d.useContext(Ya),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let l=Lr(),f;if(t){var v;let C=typeof t=="string"?cv(t):t;c==="/"||(v=C.pathname)!=null&&v.startsWith(c)||hr(!1),f=C}else f=l;let m=f.pathname||"/",h=m;if(c!=="/"){let C=c.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=ane(e,{pathname:h}),w=Nne(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Rs([c,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?c:Rs([c,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,r,n);return t&&w?d.createElement(jb.Provider,{value:{location:Fp({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ay.Pop}},w):w}function Ane(){let e=Une(),t=Cne(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:o},r):null,null)}const Mne=d.createElement(Ane,null);class Fne extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(Ya.Provider,{value:this.props.routeContext},d.createElement(Y4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lne(e){let{routeContext:t,match:r,children:n}=e,o=d.useContext(eP);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Ya.Provider,{value:t},n)}function Nne(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let i=e,s=(o=r)==null?void 0:o.errors;if(s!=null){let f=i.findIndex(v=>v.route.id&&(s==null?void 0:s[v.route.id]));f>=0||hr(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,v,m)=>{let h,x=!1,w=null,C=null;r&&(h=s&&v.route.id?s[v.route.id]:void 0,w=v.route.errorElement||Mne,c&&(l<0&&m===0?(Wne("route-fallback",!1),x=!0,C=null):l===m&&(x=!0,C=v.route.hydrateFallbackElement||null)));let b=t.concat(i.slice(0,m+1)),g=()=>{let _;return h?_=w:x?_=C:v.route.Component?_=d.createElement(v.route.Component,null):v.route.element?_=v.route.element:_=f,d.createElement(Lne,{match:v,routeContext:{outlet:f,matches:b,isDataRoute:r!=null},children:_})};return r&&(v.route.ErrorBoundary||v.route.errorElement||m===0)?d.createElement(Fne,{location:r.location,revalidation:r.revalidation,component:w,error:h,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var Z4=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Z4||{}),iy=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}(iy||{});function Dne(e){let t=d.useContext(eP);return t||hr(!1),t}function Bne(e){let t=d.useContext(Ene);return t||hr(!1),t}function zne(e){let t=d.useContext(Ya);return t||hr(!1),t}function e5(e){let t=zne(),r=t.matches[t.matches.length-1];return r.route.id||hr(!1),r.route.id}function Une(){var e;let t=d.useContext(Y4),r=Bne(iy.UseRouteError),n=e5(iy.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Vne(){let{router:e}=Dne(Z4.UseNavigateStable),t=e5(iy.UseNavigateStable),r=d.useRef(!1);return J4(()=>{r.current=!0}),d.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Fp({fromRouteId:t},a)))},[e,t])}const _A={};function Wne(e,t,r){!t&&!_A[e]&&(_A[e]=!0)}function qne(e){let{to:t,replace:r,state:n,relative:o}=e;Ws()||hr(!1);let{future:a,static:i}=d.useContext(Fi),{matches:s}=d.useContext(Ya),{pathname:c}=Lr(),l=Ja(),f=ZE(t,JE(s,a.v7_relativeSplatPath),c,o==="path"),v=JSON.stringify(f);return d.useEffect(()=>l(JSON.parse(v),{replace:r,state:n,relative:o}),[l,v,o,r,n]),null}function Hne(e){return kne(e.context)}function Jr(e){hr(!1)}function Gne(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ay.Pop,navigator:a,static:i=!1,future:s}=e;Ws()&&hr(!1);let c=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:c,navigator:a,static:i,future:Fp({v7_relativeSplatPath:!1},s)}),[c,s,a,i]);typeof n=="string"&&(n=cv(n));let{pathname:f="/",search:v="",hash:m="",state:h=null,key:x="default"}=n,w=d.useMemo(()=>{let C=YE(f,c);return C==null?null:{location:{pathname:C,search:v,hash:m,state:h,key:x},navigationType:o}},[c,f,v,m,h,x,o]);return w==null?null:d.createElement(Fi.Provider,{value:l},d.createElement(jb.Provider,{children:r,value:w}))}function Ll(e){let{children:t,location:r}=e;return Ine(TS(t),r)}new Promise(()=>{});function TS(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,o)=>{if(!d.isValidElement(n))return;let a=[...t,o];if(n.type===d.Fragment){r.push.apply(r,TS(n.props.children,a));return}n.type!==Jr&&hr(!1),!n.props.index||!n.props.children||hr(!1);let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=TS(n.props.children,a)),r.push(i)}),r}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -93,39 +93,39 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Xne(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Yne(e,t){return e.button===0&&(!t||t==="_self")&&!Xne(e)}const Jne=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Zne="6";try{window.__reactRouterVersion=Zne}catch{}const eoe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",toe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_a=d.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:l,preventScrollReset:f,unstable_viewTransition:v}=t,m=Qne(t,Jne),{basename:h}=d.useContext(Fi),x,w=!1;if(typeof l=="string"&&toe.test(l)&&(x=l,eoe))try{let _=new URL(window.location.href),$=l.startsWith("//")?new URL(_.protocol+l):new URL(l),P=YE($.pathname,h);$.origin===_.origin&&P!=null?l=P+$.search+$.hash:w=!0}catch{}let C=$ne(l,{relative:o}),b=roe(l,{replace:i,state:s,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:v});function g(_){n&&n(_),_.defaultPrevented||b(_)}return d.createElement("a",kS({},m,{href:x||C,onClick:w||a?n:g,ref:r,target:c}))});var xA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xA||(xA={}));var wA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wA||(wA={}));function roe(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=Ja(),l=Lr(),f=tP(e,{relative:i});return d.useCallback(v=>{if(Yne(v,r)){v.preventDefault();let m=n!==void 0?n:gA(l)===gA(f);c(e,{replace:m,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,c,f,n,o,r,e,a,i,s])}var noe="RaStore",ooe=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}},IS=ooe(),aoe=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(noe).concat(t),n=r.length,o={},a=function(s,c){Object.keys(o).forEach(function(l){o[l]&&o[l].key===s&&o[l].callback(c)})},i=function(s){var c;if(((c=s.key)===null||c===void 0?void 0:c.substring(0,n))===r){var l=s.key.substring(n+1),f=s.newValue?SA(s.newValue):void 0;Object.keys(o).forEach(function(v){o[v]&&o[v].key===l&&(f===null?o[v].callback(void 0):o[v].callback(f??void 0))})}};return{setup:function(){if(IS){var s=fi().getItem("".concat(r,".version"));if(s&&s!==e){var c=fi();Object.keys(c).forEach(function(l){l.startsWith(r)&&c.removeItem(l)})}fi().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){IS&&window.removeEventListener("storage",i)},getItem:function(s,c){var l=fi().getItem("".concat(r,".").concat(s));return l==null?c:SA(l)},setItem:function(s,c){c===void 0?fi().removeItem("".concat(r,".").concat(s)):fi().setItem("".concat(r,".").concat(s),JSON.stringify(c)),a(s,c)},removeItem:function(s){fi().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var c=fi();Object.keys(c).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){c.removeItem(l);var f=l.substring(n+1);a(f,void 0)}})},reset:function(){var s=fi();Object.keys(s).forEach(function(c){if(c.startsWith(r)){s.removeItem(c);var l=c.substring(n+1);a(l,void 0)}})},subscribe:function(s,c){var l=Math.random().toString();return o[l]={key:s,callback:c},function(){delete o[l]}}}},SA=function(e){try{return JSON.parse(e)}catch{return e}},ioe=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,o){o.startsWith(t)&&r.valuesMap.delete(o)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),soe=new ioe,fi=function(){return IS?window.localStorage:soe},loe=typeof no=="object"&&no&&no.Object===Object&&no,t5=loe,uoe=t5,coe=typeof self=="object"&&self&&self.Object===Object&&self,doe=uoe||coe||Function("return this")(),Sa=doe,foe=Sa,poe=foe.Symbol,vd=poe,CA=vd,r5=Object.prototype,voe=r5.hasOwnProperty,moe=r5.toString,gf=CA?CA.toStringTag:void 0;function hoe(e){var t=voe.call(e,gf),r=e[gf];try{e[gf]=void 0;var n=!0}catch{}var o=moe.call(e);return n&&(t?e[gf]=r:delete e[gf]),o}var goe=hoe,yoe=Object.prototype,boe=yoe.toString;function _oe(e){return boe.call(e)}var xoe=_oe,OA=vd,woe=goe,Soe=xoe,Coe="[object Null]",Ooe="[object Undefined]",EA=OA?OA.toStringTag:void 0;function Eoe(e){return e==null?e===void 0?Ooe:Coe:EA&&EA in Object(e)?woe(e):Soe(e)}var md=Eoe;function Poe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yo=Poe,$oe=md,Roe=Yo,Toe="[object AsyncFunction]",koe="[object Function]",Ioe="[object GeneratorFunction]",joe="[object Proxy]";function Aoe(e){if(!Roe(e))return!1;var t=$oe(e);return t==koe||t==Ioe||t==Toe||t==joe}var rP=Aoe,Moe=Sa,Foe=Moe["__core-js_shared__"],Loe=Foe,jx=Loe,PA=function(){var e=/[^.]+$/.exec(jx&&jx.keys&&jx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Noe(e){return!!PA&&PA in e}var Doe=Noe,Boe=Function.prototype,zoe=Boe.toString;function Uoe(e){if(e!=null){try{return zoe.call(e)}catch{}try{return e+""}catch{}}return""}var n5=Uoe,Voe=rP,Woe=Doe,qoe=Yo,Hoe=n5,Goe=/[\\^$.*+?()[\]{}|]/g,Koe=/^\[object .+?Constructor\]$/,Qoe=Function.prototype,Xoe=Object.prototype,Yoe=Qoe.toString,Joe=Xoe.hasOwnProperty,Zoe=RegExp("^"+Yoe.call(Joe).replace(Goe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eae(e){if(!qoe(e)||Woe(e))return!1;var t=Voe(e)?Zoe:Koe;return t.test(Hoe(e))}var tae=eae;function rae(e,t){return e==null?void 0:e[t]}var nae=rae,oae=tae,aae=nae;function iae(e,t){var r=aae(e,t);return oae(r)?r:void 0}var su=iae,sae=su,lae=function(){try{var e=sae(Object,"defineProperty");return e({},"",{}),e}catch{}}(),o5=lae,$A=o5;function uae(e,t,r){t=="__proto__"&&$A?$A(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var nP=uae;function cae(e,t){return e===t||e!==e&&t!==t}var hd=cae,dae=nP,fae=hd,pae=Object.prototype,vae=pae.hasOwnProperty;function mae(e,t,r){var n=e[t];(!(vae.call(e,t)&&fae(n,r))||r===void 0&&!(t in e))&&dae(e,t,r)}var oP=mae,hae=Array.isArray,Ca=hae;function gae(e){return e!=null&&typeof e=="object"}var Li=gae,yae=md,bae=Li,_ae="[object Symbol]";function xae(e){return typeof e=="symbol"||bae(e)&&yae(e)==_ae}var Mb=xae,wae=Ca,Sae=Mb,Cae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oae=/^\w*$/;function Eae(e,t){if(wae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Sae(e)?!0:Oae.test(e)||!Cae.test(e)||t!=null&&e in Object(t)}var aP=Eae,Pae=su,$ae=Pae(Object,"create"),Fb=$ae,RA=Fb;function Rae(){this.__data__=RA?RA(null):{},this.size=0}var Tae=Rae;function kae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Iae=kae,jae=Fb,Aae="__lodash_hash_undefined__",Mae=Object.prototype,Fae=Mae.hasOwnProperty;function Lae(e){var t=this.__data__;if(jae){var r=t[e];return r===Aae?void 0:r}return Fae.call(t,e)?t[e]:void 0}var Nae=Lae,Dae=Fb,Bae=Object.prototype,zae=Bae.hasOwnProperty;function Uae(e){var t=this.__data__;return Dae?t[e]!==void 0:zae.call(t,e)}var Vae=Uae,Wae=Fb,qae="__lodash_hash_undefined__";function Hae(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wae&&t===void 0?qae:t,this}var Gae=Hae,Kae=Tae,Qae=Iae,Xae=Nae,Yae=Vae,Jae=Gae;function gd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var vie=pie,mie=Lb;function hie(e,t){var r=this.__data__,n=mie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var gie=hie,yie=tie,bie=lie,_ie=die,xie=vie,wie=gie;function yd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&eo?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++ns))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var v=-1,m=!0,h=r&zle?new Lle:void 0;for(a.set(e,t),a.set(t,e);++v-1&&e%1==0&&e<=Nue}var mP=Due,Bue=md,zue=mP,Uue=Li,Vue="[object Arguments]",Wue="[object Array]",que="[object Boolean]",Hue="[object Date]",Gue="[object Error]",Kue="[object Function]",Que="[object Map]",Xue="[object Number]",Yue="[object Object]",Jue="[object RegExp]",Zue="[object Set]",ece="[object String]",tce="[object WeakMap]",rce="[object ArrayBuffer]",nce="[object DataView]",oce="[object Float32Array]",ace="[object Float64Array]",ice="[object Int8Array]",sce="[object Int16Array]",lce="[object Int32Array]",uce="[object Uint8Array]",cce="[object Uint8ClampedArray]",dce="[object Uint16Array]",fce="[object Uint32Array]",Xt={};Xt[oce]=Xt[ace]=Xt[ice]=Xt[sce]=Xt[lce]=Xt[uce]=Xt[cce]=Xt[dce]=Xt[fce]=!0;Xt[Vue]=Xt[Wue]=Xt[rce]=Xt[que]=Xt[nce]=Xt[Hue]=Xt[Gue]=Xt[Kue]=Xt[Que]=Xt[Xue]=Xt[Yue]=Xt[Jue]=Xt[Zue]=Xt[ece]=Xt[tce]=!1;function pce(e){return Uue(e)&&zue(e.length)&&!!Xt[Bue(e)]}var vce=pce;function mce(e){return function(t){return e(t)}}var Gb=mce,uy={exports:{}};uy.exports;(function(e,t){var r=t5,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(uy,uy.exports);var hP=uy.exports,hce=vce,gce=Gb,zA=hP,UA=zA&&zA.isTypedArray,yce=UA?gce(UA):hce,gP=yce,bce=Eue,_ce=qb,xce=Ca,wce=Hb,Sce=Bb,Cce=gP,Oce=Object.prototype,Ece=Oce.hasOwnProperty;function Pce(e,t){var r=xce(e),n=!r&&_ce(e),o=!r&&!n&&wce(e),a=!r&&!n&&!o&&Cce(e),i=r||n||o||a,s=i?bce(e.length,String):[],c=s.length;for(var l in e)(t||Ece.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Sce(l,c)))&&s.push(l);return s}var y5=Pce,$ce=Object.prototype;function Rce(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$ce;return e===r}var yP=Rce;function Tce(e,t){return function(r){return e(t(r))}}var b5=Tce,kce=b5,Ice=kce(Object.keys,Object),jce=Ice,Ace=yP,Mce=jce,Fce=Object.prototype,Lce=Fce.hasOwnProperty;function Nce(e){if(!Ace(e))return Mce(e);var t=[];for(var r in Object(e))Lce.call(e,r)&&r!="constructor"&&t.push(r);return t}var Dce=Nce,Bce=rP,zce=mP;function Uce(e){return e!=null&&zce(e.length)&&!Bce(e)}var Kb=Uce,Vce=y5,Wce=Dce,qce=Kb;function Hce(e){return qce(e)?Vce(e):Wce(e)}var Qb=Hce,Gce=m5,Kce=vP,Qce=Qb;function Xce(e){return Gce(e,Qce,Kce)}var _5=Xce,VA=_5,Yce=1,Jce=Object.prototype,Zce=Jce.hasOwnProperty;function ede(e,t,r,n,o,a){var i=r&Yce,s=VA(e),c=s.length,l=VA(t),f=l.length;if(c!=f&&!i)return!1;for(var v=c;v--;){var m=s[v];if(!(i?m in t:Zce.call(t,m)))return!1}var h=a.get(e),x=a.get(t);if(h&&x)return h==t&&x==e;var w=!0;a.set(e,t),a.set(t,e);for(var C=i;++v0){if(++t>=xpe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ope=Cpe,Epe=_pe,Ppe=Ope,$pe=Ppe(Epe),F5=$pe,Rpe=CP,Tpe=M5,kpe=F5;function Ipe(e,t){return kpe(Tpe(e,t,Rpe),e+"")}var Yb=Ipe,jpe=hd,Ape=Kb,Mpe=Bb,Fpe=Yo;function Lpe(e,t,r){if(!Fpe(r))return!1;var n=typeof t;return(n=="number"?Ape(r)&&Mpe(t,r.length):n=="string"&&t in r)?jpe(r[t],e):!1}var L5=Lpe,Npe=Yb,Dpe=L5;function Bpe(e){return Npe(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Dpe(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Jpe(e){var t=e.basename,r=e.children,n=e.history,o=d.useState({action:n.action,location:n.location}),a=o[0],i=o[1];return d.useLayoutEffect(function(){return n.listen(i)},[n]),d.createElement(Kne,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var N5=d.createContext(""),Zpe=function(e){var t=e.children,r=e.basename;return d.createElement(N5.Provider,{value:r},t)},eve=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=Ws(),i=a?tve:rve;return d.createElement(Zpe,{basename:a?n:""},d.createElement(i,{basename:n,history:t},o))},tve=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},rve=function(e){var t=e.children,r=e.history,n=d.useMemo(function(){return r||Xpe()},[r]);return d.createElement(Jpe,{history:n},t)},qs=function(){return d.useContext(N5)},Hs=function(){var e=qs();return d.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return Ma("".concat(e,"/").concat(r));case"create":return Ma("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Ma("".concat(e,"/").concat(r)):Ma("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Ma("".concat(e,"/").concat(r)):Ma("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},Ma=function(e){return e.replace("//","/")},Yf=function(){return Yf=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),z5="%[a-f0-9]{2}",gM=new RegExp("("+z5+")|([^%]+?)","gi"),yM=new RegExp("("+z5+")+","gi");function DS(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],DS(r),DS(n))}function xve(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(gM)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},Ove=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;ag==null,i=Symbol("encodeFragmentIdentifier");function s(g){switch(g.arrayFormat){case"index":return _=>($,P)=>{const E=$.length;return P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),"[",E,"]"].join("")]:[...$,[f(_,g),"[",f(E,g),"]=",f(P,g)].join("")]};case"bracket":return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),"[]"].join("")]:[...$,[f(_,g),"[]=",f(P,g)].join("")];case"colon-list-separator":return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),":list="].join("")]:[...$,[f(_,g),":list=",f(P,g)].join("")];case"comma":case"separator":case"bracket-separator":{const _=g.arrayFormat==="bracket-separator"?"[]=":"=";return $=>(P,E)=>E===void 0||g.skipNull&&E===null||g.skipEmptyString&&E===""?P:(E=E===null?"":E,P.length===0?[[f($,g),_,f(E,g)].join("")]:[[P,f(E,g)].join(g.arrayFormatSeparator)])}default:return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,f(_,g)]:[...$,[f(_,g),"=",f(P,g)].join("")]}}function c(g){let _;switch(g.arrayFormat){case"index":return($,P,E)=>{if(_=/\[(\d*)\]$/.exec($),$=$.replace(/\[\d*\]$/,""),!_){E[$]=P;return}E[$]===void 0&&(E[$]={}),E[$][_[1]]=P};case"bracket":return($,P,E)=>{if(_=/(\[\])$/.exec($),$=$.replace(/\[\]$/,""),!_){E[$]=P;return}if(E[$]===void 0){E[$]=[P];return}E[$]=[].concat(E[$],P)};case"colon-list-separator":return($,P,E)=>{if(_=/(:list)$/.exec($),$=$.replace(/:list$/,""),!_){E[$]=P;return}if(E[$]===void 0){E[$]=[P];return}E[$]=[].concat(E[$],P)};case"comma":case"separator":return($,P,E)=>{const T=typeof P=="string"&&P.includes(g.arrayFormatSeparator),R=typeof P=="string"&&!T&&v(P,g).includes(g.arrayFormatSeparator);P=R?v(P,g):P;const I=T||R?P.split(g.arrayFormatSeparator).map(A=>v(A,g)):P===null?P:v(P,g);E[$]=I};case"bracket-separator":return($,P,E)=>{const T=/(\[\])$/.test($);if($=$.replace(/\[\]$/,""),!T){E[$]=P&&v(P,g);return}const R=P===null?[]:P.split(g.arrayFormatSeparator).map(I=>v(I,g));if(E[$]===void 0){E[$]=R;return}E[$]=[].concat(E[$],R)};default:return($,P,E)=>{if(E[$]===void 0){E[$]=P;return}E[$]=[].concat(E[$],P)}}}function l(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(g,_){return _.encode?_.strict?t(g):encodeURIComponent(g):g}function v(g,_){return _.decode?r(g):g}function m(g){return Array.isArray(g)?g.sort():typeof g=="object"?m(Object.keys(g)).sort((_,$)=>Number(_)-Number($)).map(_=>g[_]):g}function h(g){const _=g.indexOf("#");return _!==-1&&(g=g.slice(0,_)),g}function x(g){let _="";const $=g.indexOf("#");return $!==-1&&(_=g.slice($)),_}function w(g){g=h(g);const _=g.indexOf("?");return _===-1?"":g.slice(_+1)}function C(g,_){return _.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):_.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function b(g,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),l(_.arrayFormatSeparator);const $=c(_),P=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return P;for(const E of g.split("&")){if(E==="")continue;let[T,R]=n(_.decode?E.replace(/\+/g," "):E,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?R:v(R,_),$(v(T,_),R,P)}for(const E of Object.keys(P)){const T=P[E];if(typeof T=="object"&&T!==null)for(const R of Object.keys(T))T[R]=C(T[R],_);else P[E]=C(T,_)}return _.sort===!1?P:(_.sort===!0?Object.keys(P).sort():Object.keys(P).sort(_.sort)).reduce((E,T)=>{const R=P[T];return R&&typeof R=="object"&&!Array.isArray(R)?E[T]=m(R):E[T]=R,E},Object.create(null))}e.extract=w,e.parse=b,e.stringify=(g,_)=>{if(!g)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),l(_.arrayFormatSeparator);const $=R=>_.skipNull&&a(g[R])||_.skipEmptyString&&g[R]==="",P=s(_),E={};for(const R of Object.keys(g))$(R)||(E[R]=g[R]);const T=Object.keys(E);return _.sort!==!1&&T.sort(_.sort),T.map(R=>{const I=g[R];return I===void 0?"":I===null?f(R,_):Array.isArray(I)?I.length===0&&_.arrayFormat==="bracket-separator"?f(R,_)+"[]":I.reduce(P(R),[]).join("&"):f(R,_)+"="+f(I,_)}).filter(R=>R.length>0).join("&")},e.parseUrl=(g,_)=>{_=Object.assign({decode:!0},_);const[$,P]=n(g,"#");return Object.assign({url:$.split("?")[0]||"",query:b(w(g),_)},_&&_.parseFragmentIdentifier&&P?{fragmentIdentifier:v(P,_)}:{})},e.stringifyUrl=(g,_)=>{_=Object.assign({encode:!0,strict:!0,[i]:!0},_);const $=h(g.url).split("?")[0]||"",P=e.extract(g.url),E=e.parse(P,{sort:!1}),T=Object.assign(E,g.query);let R=e.stringify(T,_);R&&(R=`?${R}`);let I=x(g.url);return g.fragmentIdentifier&&(I=`#${_[i]?f(g.fragmentIdentifier,_):g.fragmentIdentifier}`),`${$}${R}${I}`},e.pick=(g,_,$)=>{$=Object.assign({parseFragmentIdentifier:!0,[i]:!1},$);const{url:P,query:E,fragmentIdentifier:T}=e.parseUrl(g,$);return e.stringifyUrl({url:P,query:o(E,_),fragmentIdentifier:T},$)},e.exclude=(g,_,$)=>{const P=Array.isArray(_)?E=>!_.includes(E):(E,T)=>!_(E,T);return e.pick(g,P,$)}})(Yl);var fy=function(){return fy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new bve(c&&c.message||a,o,c)):Promise.resolve({status:o,headers:i,body:s,json:c})})},$ve=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",o=!!Object.keys(e).length;return!t&&!r&&n&&o},U5=function(e,t){var r;return t===void 0&&(t=[]),$ve(e)?Object.assign.apply(Object,Eve([{}],Object.keys(e).map(function(n){return U5(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},V5={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(c,l,f){this.fn=c,this.context=l,this.once=f||!1}function a(c,l,f,v,m){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new o(f,v||c,m),x=r?r+l:l;return c._events[x]?c._events[x].fn?c._events[x]=[c._events[x],h]:c._events[x].push(h):(c._events[x]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],f,v;if(this._eventsCount===0)return l;for(v in f=this._events)t.call(f,v)&&l.push(r?v.slice(1):v);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},s.prototype.listeners=function(l){var f=r?r+l:l,v=this._events[f];if(!v)return[];if(v.fn)return[v.fn];for(var m=0,h=v.length,x=new Array(h);m0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!e.message?t:e.message},Ave=["getList","getMany","getManyReference"],Jo=function(){var e=d.useContext(B5)||W5,t=q5(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,o){if(!(typeof o=="symbol"||o==="then"))return function(){for(var a=[],i=0;i0),n=ve.useRef(e.isMutating()>0),o=ve.useState(r.current||n.current),a=o[0],i=o[1];return ve.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Wt.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),c=e.getMutationCache().subscribe(Wt.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),c()}},[e]),a},ei=function(){var e=Xo();return d.useCallback(function(){e.invalidateQueries()},[e])},H5=function(e,t,r){var n=t.id,o=t.meta,a=Jo();return Vs([e,"getOne",{id:String(n),meta:o}],function(){return a.getOne(e,{id:n,meta:o}).then(function(i){var s=i.data;return s})},r)},uc=function(){return uc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?G5(s,t-1,r,n,o):Uve(o,s):n||(o[o.length]=s)}return o}var RP=G5;function Wve(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var K5=rme;function nme(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=gme){var l=t?null:mme(e);if(l)return hme(l);i=!1,o=vme,c=new dme}else c=t?[]:s;e:for(;++n=t||T<0||v&&R>=a}function b(){var E=Dx();if(C(E))return g(E);s=setTimeout(b,w(E))}function g(E){return s=void 0,m&&n?h(E):(n=o=void 0,i)}function _(){s!==void 0&&clearTimeout(s),l=0,n=c=o=s=void 0}function $(){return s===void 0?i:g(Dx())}function P(){var E=Dx(),T=C(E);if(n=arguments,o=this,c=E,T){if(s===void 0)return x(c);if(v)return clearTimeout(s),s=setTimeout(b,t),h(c)}return s===void 0&&(s=setTimeout(b,t)),i}return P.cancel=_,P.flush=$,P}var ehe=Zme;const Y5=gr(ehe);function OM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var J5=function(e,t){if(OM(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. + */function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Qne(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xne(e,t){return e.button===0&&(!t||t==="_self")&&!Qne(e)}const Yne=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Jne="6";try{window.__reactRouterVersion=Jne}catch{}const Zne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",eoe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_a=d.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:c,to:l,preventScrollReset:f,unstable_viewTransition:v}=t,m=Kne(t,Yne),{basename:h}=d.useContext(Fi),x,w=!1;if(typeof l=="string"&&eoe.test(l)&&(x=l,Zne))try{let _=new URL(window.location.href),$=l.startsWith("//")?new URL(_.protocol+l):new URL(l),P=YE($.pathname,h);$.origin===_.origin&&P!=null?l=P+$.search+$.hash:w=!0}catch{}let C=Pne(l,{relative:o}),b=toe(l,{replace:i,state:s,target:c,preventScrollReset:f,relative:o,unstable_viewTransition:v});function g(_){n&&n(_),_.defaultPrevented||b(_)}return d.createElement("a",kS({},m,{href:x||C,onClick:w||a?n:g,ref:r,target:c}))});var xA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xA||(xA={}));var wA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wA||(wA={}));function toe(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=Ja(),l=Lr(),f=tP(e,{relative:i});return d.useCallback(v=>{if(Xne(v,r)){v.preventDefault();let m=n!==void 0?n:gA(l)===gA(f);c(e,{replace:m,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:s})}},[l,c,f,n,o,r,e,a,i,s])}var roe="RaStore",noe=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}},IS=noe(),ooe=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(roe).concat(t),n=r.length,o={},a=function(s,c){Object.keys(o).forEach(function(l){o[l]&&o[l].key===s&&o[l].callback(c)})},i=function(s){var c;if(((c=s.key)===null||c===void 0?void 0:c.substring(0,n))===r){var l=s.key.substring(n+1),f=s.newValue?SA(s.newValue):void 0;Object.keys(o).forEach(function(v){o[v]&&o[v].key===l&&(f===null?o[v].callback(void 0):o[v].callback(f??void 0))})}};return{setup:function(){if(IS){var s=fi().getItem("".concat(r,".version"));if(s&&s!==e){var c=fi();Object.keys(c).forEach(function(l){l.startsWith(r)&&c.removeItem(l)})}fi().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){IS&&window.removeEventListener("storage",i)},getItem:function(s,c){var l=fi().getItem("".concat(r,".").concat(s));return l==null?c:SA(l)},setItem:function(s,c){c===void 0?fi().removeItem("".concat(r,".").concat(s)):fi().setItem("".concat(r,".").concat(s),JSON.stringify(c)),a(s,c)},removeItem:function(s){fi().removeItem("".concat(r,".").concat(s)),a(s,void 0)},removeItems:function(s){var c=fi();Object.keys(c).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){c.removeItem(l);var f=l.substring(n+1);a(f,void 0)}})},reset:function(){var s=fi();Object.keys(s).forEach(function(c){if(c.startsWith(r)){s.removeItem(c);var l=c.substring(n+1);a(l,void 0)}})},subscribe:function(s,c){var l=Math.random().toString();return o[l]={key:s,callback:c},function(){delete o[l]}}}},SA=function(e){try{return JSON.parse(e)}catch{return e}},aoe=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,o){o.startsWith(t)&&r.valuesMap.delete(o)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),ioe=new aoe,fi=function(){return IS?window.localStorage:ioe},soe=typeof no=="object"&&no&&no.Object===Object&&no,t5=soe,loe=t5,uoe=typeof self=="object"&&self&&self.Object===Object&&self,coe=loe||uoe||Function("return this")(),Sa=coe,doe=Sa,foe=doe.Symbol,vd=foe,CA=vd,r5=Object.prototype,poe=r5.hasOwnProperty,voe=r5.toString,gf=CA?CA.toStringTag:void 0;function moe(e){var t=poe.call(e,gf),r=e[gf];try{e[gf]=void 0;var n=!0}catch{}var o=voe.call(e);return n&&(t?e[gf]=r:delete e[gf]),o}var hoe=moe,goe=Object.prototype,yoe=goe.toString;function boe(e){return yoe.call(e)}var _oe=boe,OA=vd,xoe=hoe,woe=_oe,Soe="[object Null]",Coe="[object Undefined]",EA=OA?OA.toStringTag:void 0;function Ooe(e){return e==null?e===void 0?Coe:Soe:EA&&EA in Object(e)?xoe(e):woe(e)}var md=Ooe;function Eoe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yo=Eoe,Poe=md,$oe=Yo,Roe="[object AsyncFunction]",Toe="[object Function]",koe="[object GeneratorFunction]",Ioe="[object Proxy]";function joe(e){if(!$oe(e))return!1;var t=Poe(e);return t==Toe||t==koe||t==Roe||t==Ioe}var rP=joe,Aoe=Sa,Moe=Aoe["__core-js_shared__"],Foe=Moe,jx=Foe,PA=function(){var e=/[^.]+$/.exec(jx&&jx.keys&&jx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Loe(e){return!!PA&&PA in e}var Noe=Loe,Doe=Function.prototype,Boe=Doe.toString;function zoe(e){if(e!=null){try{return Boe.call(e)}catch{}try{return e+""}catch{}}return""}var n5=zoe,Uoe=rP,Voe=Noe,Woe=Yo,qoe=n5,Hoe=/[\\^$.*+?()[\]{}|]/g,Goe=/^\[object .+?Constructor\]$/,Koe=Function.prototype,Qoe=Object.prototype,Xoe=Koe.toString,Yoe=Qoe.hasOwnProperty,Joe=RegExp("^"+Xoe.call(Yoe).replace(Hoe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zoe(e){if(!Woe(e)||Voe(e))return!1;var t=Uoe(e)?Joe:Goe;return t.test(qoe(e))}var eae=Zoe;function tae(e,t){return e==null?void 0:e[t]}var rae=tae,nae=eae,oae=rae;function aae(e,t){var r=oae(e,t);return nae(r)?r:void 0}var su=aae,iae=su,sae=function(){try{var e=iae(Object,"defineProperty");return e({},"",{}),e}catch{}}(),o5=sae,$A=o5;function lae(e,t,r){t=="__proto__"&&$A?$A(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var nP=lae;function uae(e,t){return e===t||e!==e&&t!==t}var hd=uae,cae=nP,dae=hd,fae=Object.prototype,pae=fae.hasOwnProperty;function vae(e,t,r){var n=e[t];(!(pae.call(e,t)&&dae(n,r))||r===void 0&&!(t in e))&&cae(e,t,r)}var oP=vae,mae=Array.isArray,Ca=mae;function hae(e){return e!=null&&typeof e=="object"}var Li=hae,gae=md,yae=Li,bae="[object Symbol]";function _ae(e){return typeof e=="symbol"||yae(e)&&gae(e)==bae}var Mb=_ae,xae=Ca,wae=Mb,Sae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cae=/^\w*$/;function Oae(e,t){if(xae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||wae(e)?!0:Cae.test(e)||!Sae.test(e)||t!=null&&e in Object(t)}var aP=Oae,Eae=su,Pae=Eae(Object,"create"),Fb=Pae,RA=Fb;function $ae(){this.__data__=RA?RA(null):{},this.size=0}var Rae=$ae;function Tae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kae=Tae,Iae=Fb,jae="__lodash_hash_undefined__",Aae=Object.prototype,Mae=Aae.hasOwnProperty;function Fae(e){var t=this.__data__;if(Iae){var r=t[e];return r===jae?void 0:r}return Mae.call(t,e)?t[e]:void 0}var Lae=Fae,Nae=Fb,Dae=Object.prototype,Bae=Dae.hasOwnProperty;function zae(e){var t=this.__data__;return Nae?t[e]!==void 0:Bae.call(t,e)}var Uae=zae,Vae=Fb,Wae="__lodash_hash_undefined__";function qae(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Vae&&t===void 0?Wae:t,this}var Hae=qae,Gae=Rae,Kae=kae,Qae=Lae,Xae=Uae,Yae=Hae;function gd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var pie=fie,vie=Lb;function mie(e,t){var r=this.__data__,n=vie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var hie=mie,gie=eie,yie=sie,bie=cie,_ie=pie,xie=hie;function yd(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&eo?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++ns))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var v=-1,m=!0,h=r&Ble?new Fle:void 0;for(a.set(e,t),a.set(t,e);++v-1&&e%1==0&&e<=Lue}var mP=Nue,Due=md,Bue=mP,zue=Li,Uue="[object Arguments]",Vue="[object Array]",Wue="[object Boolean]",que="[object Date]",Hue="[object Error]",Gue="[object Function]",Kue="[object Map]",Que="[object Number]",Xue="[object Object]",Yue="[object RegExp]",Jue="[object Set]",Zue="[object String]",ece="[object WeakMap]",tce="[object ArrayBuffer]",rce="[object DataView]",nce="[object Float32Array]",oce="[object Float64Array]",ace="[object Int8Array]",ice="[object Int16Array]",sce="[object Int32Array]",lce="[object Uint8Array]",uce="[object Uint8ClampedArray]",cce="[object Uint16Array]",dce="[object Uint32Array]",Xt={};Xt[nce]=Xt[oce]=Xt[ace]=Xt[ice]=Xt[sce]=Xt[lce]=Xt[uce]=Xt[cce]=Xt[dce]=!0;Xt[Uue]=Xt[Vue]=Xt[tce]=Xt[Wue]=Xt[rce]=Xt[que]=Xt[Hue]=Xt[Gue]=Xt[Kue]=Xt[Que]=Xt[Xue]=Xt[Yue]=Xt[Jue]=Xt[Zue]=Xt[ece]=!1;function fce(e){return zue(e)&&Bue(e.length)&&!!Xt[Due(e)]}var pce=fce;function vce(e){return function(t){return e(t)}}var Gb=vce,uy={exports:{}};uy.exports;(function(e,t){var r=t5,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(uy,uy.exports);var hP=uy.exports,mce=pce,hce=Gb,zA=hP,UA=zA&&zA.isTypedArray,gce=UA?hce(UA):mce,gP=gce,yce=Oue,bce=qb,_ce=Ca,xce=Hb,wce=Bb,Sce=gP,Cce=Object.prototype,Oce=Cce.hasOwnProperty;function Ece(e,t){var r=_ce(e),n=!r&&bce(e),o=!r&&!n&&xce(e),a=!r&&!n&&!o&&Sce(e),i=r||n||o||a,s=i?yce(e.length,String):[],c=s.length;for(var l in e)(t||Oce.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||wce(l,c)))&&s.push(l);return s}var y5=Ece,Pce=Object.prototype;function $ce(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Pce;return e===r}var yP=$ce;function Rce(e,t){return function(r){return e(t(r))}}var b5=Rce,Tce=b5,kce=Tce(Object.keys,Object),Ice=kce,jce=yP,Ace=Ice,Mce=Object.prototype,Fce=Mce.hasOwnProperty;function Lce(e){if(!jce(e))return Ace(e);var t=[];for(var r in Object(e))Fce.call(e,r)&&r!="constructor"&&t.push(r);return t}var Nce=Lce,Dce=rP,Bce=mP;function zce(e){return e!=null&&Bce(e.length)&&!Dce(e)}var Kb=zce,Uce=y5,Vce=Nce,Wce=Kb;function qce(e){return Wce(e)?Uce(e):Vce(e)}var Qb=qce,Hce=m5,Gce=vP,Kce=Qb;function Qce(e){return Hce(e,Kce,Gce)}var _5=Qce,VA=_5,Xce=1,Yce=Object.prototype,Jce=Yce.hasOwnProperty;function Zce(e,t,r,n,o,a){var i=r&Xce,s=VA(e),c=s.length,l=VA(t),f=l.length;if(c!=f&&!i)return!1;for(var v=c;v--;){var m=s[v];if(!(i?m in t:Jce.call(t,m)))return!1}var h=a.get(e),x=a.get(t);if(h&&x)return h==t&&x==e;var w=!0;a.set(e,t),a.set(t,e);for(var C=i;++v0){if(++t>=_pe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Cpe=Spe,Ope=bpe,Epe=Cpe,Ppe=Epe(Ope),F5=Ppe,$pe=CP,Rpe=M5,Tpe=F5;function kpe(e,t){return Tpe(Rpe(e,t,$pe),e+"")}var Yb=kpe,Ipe=hd,jpe=Kb,Ape=Bb,Mpe=Yo;function Fpe(e,t,r){if(!Mpe(r))return!1;var n=typeof t;return(n=="number"?jpe(r)&&Ape(t,r.length):n=="string"&&t in r)?Ipe(r[t],e):!1}var L5=Fpe,Lpe=Yb,Npe=L5;function Dpe(e){return Lpe(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Npe(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Ype(e){var t=e.basename,r=e.children,n=e.history,o=d.useState({action:n.action,location:n.location}),a=o[0],i=o[1];return d.useLayoutEffect(function(){return n.listen(i)},[n]),d.createElement(Gne,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:n})}var N5=d.createContext(""),Jpe=function(e){var t=e.children,r=e.basename;return d.createElement(N5.Provider,{value:r},t)},Zpe=function(e){var t=e.history,r=e.basename,n=r===void 0?"":r,o=e.children,a=Ws(),i=a?eve:tve;return d.createElement(Jpe,{basename:a?n:""},d.createElement(i,{basename:n,history:t},o))},eve=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},tve=function(e){var t=e.children,r=e.history,n=d.useMemo(function(){return r||Qpe()},[r]);return d.createElement(Ype,{history:n},t)},qs=function(){return d.useContext(N5)},Hs=function(){var e=qs();return d.useCallback(function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return Ma("".concat(e,"/").concat(r));case"create":return Ma("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?Ma("".concat(e,"/").concat(r)):Ma("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?Ma("".concat(e,"/").concat(r)):Ma("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}},[e])},Ma=function(e){return e.replace("//","/")},Yf=function(){return Yf=Object.assign||function(e){for(var t,r=1,n=arguments.length;rencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),z5="%[a-f0-9]{2}",gM=new RegExp("("+z5+")|([^%]+?)","gi"),yM=new RegExp("("+z5+")+","gi");function DS(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],DS(r),DS(n))}function _ve(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(gM)||[],r=1;r{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},Cve=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;ag==null,i=Symbol("encodeFragmentIdentifier");function s(g){switch(g.arrayFormat){case"index":return _=>($,P)=>{const E=$.length;return P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),"[",E,"]"].join("")]:[...$,[f(_,g),"[",f(E,g),"]=",f(P,g)].join("")]};case"bracket":return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),"[]"].join("")]:[...$,[f(_,g),"[]=",f(P,g)].join("")];case"colon-list-separator":return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,[f(_,g),":list="].join("")]:[...$,[f(_,g),":list=",f(P,g)].join("")];case"comma":case"separator":case"bracket-separator":{const _=g.arrayFormat==="bracket-separator"?"[]=":"=";return $=>(P,E)=>E===void 0||g.skipNull&&E===null||g.skipEmptyString&&E===""?P:(E=E===null?"":E,P.length===0?[[f($,g),_,f(E,g)].join("")]:[[P,f(E,g)].join(g.arrayFormatSeparator)])}default:return _=>($,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?$:P===null?[...$,f(_,g)]:[...$,[f(_,g),"=",f(P,g)].join("")]}}function c(g){let _;switch(g.arrayFormat){case"index":return($,P,E)=>{if(_=/\[(\d*)\]$/.exec($),$=$.replace(/\[\d*\]$/,""),!_){E[$]=P;return}E[$]===void 0&&(E[$]={}),E[$][_[1]]=P};case"bracket":return($,P,E)=>{if(_=/(\[\])$/.exec($),$=$.replace(/\[\]$/,""),!_){E[$]=P;return}if(E[$]===void 0){E[$]=[P];return}E[$]=[].concat(E[$],P)};case"colon-list-separator":return($,P,E)=>{if(_=/(:list)$/.exec($),$=$.replace(/:list$/,""),!_){E[$]=P;return}if(E[$]===void 0){E[$]=[P];return}E[$]=[].concat(E[$],P)};case"comma":case"separator":return($,P,E)=>{const T=typeof P=="string"&&P.includes(g.arrayFormatSeparator),R=typeof P=="string"&&!T&&v(P,g).includes(g.arrayFormatSeparator);P=R?v(P,g):P;const I=T||R?P.split(g.arrayFormatSeparator).map(A=>v(A,g)):P===null?P:v(P,g);E[$]=I};case"bracket-separator":return($,P,E)=>{const T=/(\[\])$/.test($);if($=$.replace(/\[\]$/,""),!T){E[$]=P&&v(P,g);return}const R=P===null?[]:P.split(g.arrayFormatSeparator).map(I=>v(I,g));if(E[$]===void 0){E[$]=R;return}E[$]=[].concat(E[$],R)};default:return($,P,E)=>{if(E[$]===void 0){E[$]=P;return}E[$]=[].concat(E[$],P)}}}function l(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(g,_){return _.encode?_.strict?t(g):encodeURIComponent(g):g}function v(g,_){return _.decode?r(g):g}function m(g){return Array.isArray(g)?g.sort():typeof g=="object"?m(Object.keys(g)).sort((_,$)=>Number(_)-Number($)).map(_=>g[_]):g}function h(g){const _=g.indexOf("#");return _!==-1&&(g=g.slice(0,_)),g}function x(g){let _="";const $=g.indexOf("#");return $!==-1&&(_=g.slice($)),_}function w(g){g=h(g);const _=g.indexOf("?");return _===-1?"":g.slice(_+1)}function C(g,_){return _.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):_.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function b(g,_){_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_),l(_.arrayFormatSeparator);const $=c(_),P=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return P;for(const E of g.split("&")){if(E==="")continue;let[T,R]=n(_.decode?E.replace(/\+/g," "):E,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?R:v(R,_),$(v(T,_),R,P)}for(const E of Object.keys(P)){const T=P[E];if(typeof T=="object"&&T!==null)for(const R of Object.keys(T))T[R]=C(T[R],_);else P[E]=C(T,_)}return _.sort===!1?P:(_.sort===!0?Object.keys(P).sort():Object.keys(P).sort(_.sort)).reduce((E,T)=>{const R=P[T];return R&&typeof R=="object"&&!Array.isArray(R)?E[T]=m(R):E[T]=R,E},Object.create(null))}e.extract=w,e.parse=b,e.stringify=(g,_)=>{if(!g)return"";_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_),l(_.arrayFormatSeparator);const $=R=>_.skipNull&&a(g[R])||_.skipEmptyString&&g[R]==="",P=s(_),E={};for(const R of Object.keys(g))$(R)||(E[R]=g[R]);const T=Object.keys(E);return _.sort!==!1&&T.sort(_.sort),T.map(R=>{const I=g[R];return I===void 0?"":I===null?f(R,_):Array.isArray(I)?I.length===0&&_.arrayFormat==="bracket-separator"?f(R,_)+"[]":I.reduce(P(R),[]).join("&"):f(R,_)+"="+f(I,_)}).filter(R=>R.length>0).join("&")},e.parseUrl=(g,_)=>{_=Object.assign({decode:!0},_);const[$,P]=n(g,"#");return Object.assign({url:$.split("?")[0]||"",query:b(w(g),_)},_&&_.parseFragmentIdentifier&&P?{fragmentIdentifier:v(P,_)}:{})},e.stringifyUrl=(g,_)=>{_=Object.assign({encode:!0,strict:!0,[i]:!0},_);const $=h(g.url).split("?")[0]||"",P=e.extract(g.url),E=e.parse(P,{sort:!1}),T=Object.assign(E,g.query);let R=e.stringify(T,_);R&&(R=`?${R}`);let I=x(g.url);return g.fragmentIdentifier&&(I=`#${_[i]?f(g.fragmentIdentifier,_):g.fragmentIdentifier}`),`${$}${R}${I}`},e.pick=(g,_,$)=>{$=Object.assign({parseFragmentIdentifier:!0,[i]:!1},$);const{url:P,query:E,fragmentIdentifier:T}=e.parseUrl(g,$);return e.stringifyUrl({url:P,query:o(E,_),fragmentIdentifier:T},$)},e.exclude=(g,_,$)=>{const P=Array.isArray(_)?E=>!_.includes(E):(E,T)=>!_(E,T);return e.pick(g,P,$)}})(Yl);var fy=function(){return fy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new yve(c&&c.message||a,o,c)):Promise.resolve({status:o,headers:i,body:s,json:c})})},Pve=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",o=!!Object.keys(e).length;return!t&&!r&&n&&o},U5=function(e,t){var r;return t===void 0&&(t=[]),Pve(e)?Object.assign.apply(Object,Ove([{}],Object.keys(e).map(function(n){return U5(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},V5={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(c,l,f){this.fn=c,this.context=l,this.once=f||!1}function a(c,l,f,v,m){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new o(f,v||c,m),x=r?r+l:l;return c._events[x]?c._events[x].fn?c._events[x]=[c._events[x],h]:c._events[x].push(h):(c._events[x]=h,c._eventsCount++),c}function i(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],f,v;if(this._eventsCount===0)return l;for(v in f=this._events)t.call(f,v)&&l.push(r?v.slice(1):v);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(f)):l},s.prototype.listeners=function(l){var f=r?r+l:l,v=this._events[f];if(!v)return[];if(v.fn)return[v.fn];for(var m=0,h=v.length,x=new Array(h);m0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!e.message?t:e.message},jve=["getList","getMany","getManyReference"],Jo=function(){var e=d.useContext(B5)||W5,t=q5(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,o){if(!(typeof o=="symbol"||o==="then"))return function(){for(var a=[],i=0;i0),n=ve.useRef(e.isMutating()>0),o=ve.useState(r.current||n.current),a=o[0],i=o[1];return ve.useEffect(function(){t.current=!0;var s=e.getQueryCache().subscribe(Wt.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),c=e.getMutationCache().subscribe(Wt.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),c()}},[e]),a},ei=function(){var e=Xo();return d.useCallback(function(){e.invalidateQueries()},[e])},H5=function(e,t,r){var n=t.id,o=t.meta,a=Jo();return Vs([e,"getOne",{id:String(n),meta:o}],function(){return a.getOne(e,{id:n,meta:o}).then(function(i){var s=i.data;return s})},r)},uc=function(){return uc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?G5(s,t-1,r,n,o):zve(o,s):n||(o[o.length]=s)}return o}var RP=G5;function Vve(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a-1}var K5=tme;function rme(e,t,r){for(var n=-1,o=e==null?0:e.length;++n=hme){var l=t?null:vme(e);if(l)return mme(l);i=!1,o=pme,c=new cme}else c=t?[]:s;e:for(;++n=t||T<0||v&&R>=a}function b(){var E=Dx();if(C(E))return g(E);s=setTimeout(b,w(E))}function g(E){return s=void 0,m&&n?h(E):(n=o=void 0,i)}function _(){s!==void 0&&clearTimeout(s),l=0,n=c=o=s=void 0}function $(){return s===void 0?i:g(Dx())}function P(){var E=Dx(),T=C(E);if(n=arguments,o=this,c=E,T){if(s===void 0)return x(c);if(v)return clearTimeout(s),s=setTimeout(b,t),h(c)}return s===void 0&&(s=setTimeout(b,t)),i}return P.cancel=_,P.flush=$,P}var Zme=Jme;const Y5=gr(Zme);function OM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var J5=function(e,t){if(OM(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. Be sure to pass the props from the parent. Example: const My`).concat(e,` = props => ( <`).concat(e," {...props}> ); -The missing props are: `).concat(o.join(", ")))},WS=function(){return WS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(v=e.current)[l].apply(v,ch(ch([],m,!1),[f],!1)):a.apply(void 0,m)};return e.current.length>0?(i=e.current)[l].apply(i,ch(ch([],s,!1),[f],!1)):a.apply(void 0,s)}},[]),o=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return o},vy=function(){return vy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]2?t[2]:void 0;for(o&&tge(t[0],t[1],o)&&(n=1);++r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"?"undefined":gB(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var o in r){var a=r[o],i=this.check(a,o,o,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,o=[],a,i=0;i0&&!l.item&&a===void 0&&(a=l);o=o.concat(c)}}return o}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),_ge=bge,xge=typeof window>"u"?no:window;function wge(e,t){if(e instanceof xge[t])return!0;switch(typeof e>"u"?"undefined":gB(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var zx,jM;function Sge(){return jM||(jM=1,zx=function(t,r,n){var o=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(c){return c.indexOf(r)>=0||c.indexOf(o)>=0||c.indexOf('"')>=0}:function(c){return c.indexOf(r)>=0||c.indexOf(o)>=0};return function(c){return n&&(c=""+c),c.replace&&(c=c.replace(a,i),(n||s(c))&&(c=t+c+t)),c}}),zx}var Cge=function(){function e(t,r){for(var n=0;n0&&(v=v.concat(Array(m).join(".").split("."))),n&&this._options.fillGaps&&(v=v.map(a)),o.push(v.join(this._options.rowDelimiter)),n=v}}catch(h){s=!0,c=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw c}}return o}},{key:"_parseArray",value:function(r,n){var o=this;this._headers=this._headers||[];var a=[],i=void 0,s=function(C){var b=o._headers.indexOf(C);return b===-1&&(o._headers.push(C),b=o._headers.indexOf(C)),b};i=function(C){var b=[],g=function(z){return b.push(z.map(function(H){return H??""}))},_=function(){return new Array(o._headers.length).fill(null)},$={},P=_(),E=!0,T=!1,R=void 0;try{for(var I=C[Symbol.iterator](),A;!(E=(A=I.next()).done);E=!0){var F=A.value,L=s(F.item);if(P[L]!=null&&(g(P),P=_()),$[L]=$[L]||0,o._options.fillTopRow&&$[L]0&&g(P),a=a.concat(o._checkRows(b))};var c=!0,l=!1,f=void 0;try{for(var v=r[Symbol.iterator](),m;!(c=(m=v.next()).done);c=!0){var h=m.value,x=o._handler.check(h,o._options.mainPathItem,h,r);i(x)}}catch(w){l=!0,f=w}finally{try{!c&&v.return&&v.return()}finally{if(l)throw f}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),AM(a,o._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,o=[],a=[],i=void 0,s=[[],[]];i=function(v){var m=v.value||v.value===0?v.value.toString():n._options.undefinedString;if(m=n._escape(m),n._options.verticalOutput){var h=[v.item,m];o.push(h.join(n._options.rowDelimiter))}else s[0].push(v.item),s[1].push(m)};for(var c in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[c],l+c,c,r),a.forEach(i)}return this._options.verticalOutput||(o.push(s[0].join(this._options.rowDelimiter)),o.push(s[1].join(this._options.rowDelimiter))),AM(o,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(o){return r._options.rename[r._options.headers.indexOf(o)]||o})),this._options.forceTextDelimiter&&(n=n.map(function(o){return""+r._options.textDelimiter+o+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),$ge=Pge,Rge=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Tge=Rge,FM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LM=$ge,NM=Tge,kge=hB,Ige=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:kge,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var o=Array.prototype.slice.call(arguments);t=o[0],r=o[1],n=o[2]}else if(arguments.length===2){var a=void 0,i=Array.prototype.slice.call(arguments);t=i[0],a=i[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":FM(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),c=s[0];if((typeof c>"u"?"undefined":FM(c))==="object"){var l=Object.keys(e),f=Object.keys(c),v=f.every(function(x){return l.includes(x)});f.length>0&&v?r=c:t=c}else t=c}else return new NM(new LM(e));var m=Object.assign({},e,r),h=new LM(m);return t?new Promise(function(x,w){h.parse(t,function(C,b){if(n)return n(C,b);if(C)return w(C);if(w)return x(b)})}):new NM};const jge=gr(Ige),Age=function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var Mge=function(e,t,r,n){return jge(e,function(o,a){return Age(a,n)})};const Fge=Mge;var Lge=function(e){return function(t,r,n){return e.getMany(n,{ids:Nge(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},Nge=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)},[])))},Au=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n"u"||o(function(c){if(!Array.isArray(c))return Au([],c,!0);var l=c.indexOf(s);return l>-1?Au(Au([],c.slice(0,l),!0),c.slice(l+1),!0):Au(Au([],c,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},Dge=[],Bge=Wb,zge=bP,Uge=1,Vge=2;function Wge(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o0&&!T&&$(A)},[h.search]);var F=d.useCallback(function(ne){E.current&&(P.current?P.current=PM(P.current,ne):(P.current=PM(A,ne),setTimeout(function(){o?b(P.current):x({search:"?".concat(Yl.stringify(Ts(Ts({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===US}}),P.current=void 0},0)))},DM(DM([],R,!0),[x],!1)),L=d.useCallback(function(ne){return F({type:eB,payload:ne})},[F]),D=d.useCallback(function(ne){return F({type:US,payload:ne})},[F]),z=d.useCallback(function(ne){return F({type:tB,payload:ne})},[F]),H=A.filter||UM,G=A.displayedFilters||UM,q=Y5(function(ne,ee){F({type:VS,payload:{filter:Fs(ne),displayedFilters:ee}})},r),U=d.useCallback(function(ne,ee,Ce){return Ce===void 0&&(Ce=!0),Ce?q(ne,ee):F({type:VS,payload:{filter:Fs(ne),displayedFilters:ee}})},[F]),W=d.useCallback(function(ne){F({type:nB,payload:ne})},[F]),te=d.useCallback(function(ne,ee){F({type:rB,payload:{filterName:ne,defaultValue:ee}})},[F]);return[Ts({displayedFilters:G,filterValues:H,requestSignature:R},A),{changeParams:F,setPage:D,setPerPage:z,setSort:L,setFilters:U,hideFilter:W,showFilter:te}]},Jye=["page","perPage","sort","order","filter","displayedFilters"],BM=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Zye=function(e){var t=e.search,r=Qye(Yl.parse(t),function(n,o){return Jye.indexOf(o)!==-1});return BM(r,"filter"),BM(r,"displayedFilters"),r},ebe=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},tbe=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:ebe(r)?Ts({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),i.perPage==null&&(i.perPage=a),i.page==null&&(i.page=1),Ts(Ts({},i),{page:zM(i.page,1),perPage:zM(i.perPage,10)})},zM=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},UM={},rbe={field:"id",order:Nl},VM={},AP=d.createContext({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});AP.displayName="ListContext";var wB=d.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),nbe=function(e){return d.useMemo(function(){return Jb(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};wB.displayName="ListFilterContext";var SB=d.createContext({sort:null,setSort:null,resource:null}),obe=function(e){return d.useMemo(function(){return Jb(e,["sort","setSort","resource"])},[e.sort,e.setSort])};SB.displayName="ListSortContext";var MP=d.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});MP.displayName="ListPaginationContext";var abe=function(e){return d.useMemo(function(){return Jb(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},FP=function(e){var t=e.value,r=e.children;return d.createElement(AP.Provider,{value:t},d.createElement(wB.Provider,{value:nbe(t)},d.createElement(SB.Provider,{value:obe(t)},d.createElement(MP.Provider,{value:abe(t)},r))))},Dl=function(){return Dl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(s&&d.isValidElement(s))throw new Error(" received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var _=je(),$=Ht(),P=Yye({debounce:r,disableSyncWithLocation:o,filterDefaultValues:c,perPage:f,resource:C,sort:x,storeKey:w}),E=P[0],T=P[1],R=pv(C),I=R[0],A=R[1],F=Lve(C,{pagination:{page:E.page,perPage:E.perPage},sort:{field:E.sort,order:E.order},filter:Dl(Dl({},E.filter),s),meta:b},Dl({keepPreviousData:!0,retry:!1,onError:function(ee){return $((ee==null?void 0:ee.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:ee==null?void 0:ee.message}})}},g)),L=F.data,D=F.pageInfo,z=F.total,H=F.error,G=F.isLoading,q=F.isFetching,U=F.refetch;d.useEffect(function(){if(E.page<=0||!q&&E.page>1&&(L==null||(L==null?void 0:L.length)===0)){T.setPage(1);return}if(z!=null){var ee=Math.ceil(z/E.perPage)||1;!q&&E.page>ee&&T.setPage(ee)}},[q,E.page,E.perPage,L,T,z]);var W=d.useMemo(function(){return{field:E.sort,order:E.order}},[E.sort,E.order]),te=$d(),ne=_("ra.page.list",{name:te(C,2)});return{sort:W,data:L,defaultTitle:ne,displayedFilters:E.displayedFilters,error:H,exporter:i,filter:s,filterValues:E.filterValues,hideFilter:T.hideFilter,isFetching:q,isLoading:G,onSelect:A.select,onToggleItem:A.toggle,onUnselectItems:A.clearSelection,page:E.page,perPage:E.perPage,refetch:U,resource:C,selectedIds:I,setFilters:T.setFilters,setPage:T.setPage,setPerPage:T.setPerPage,setSort:T.setSort,showFilter:T.showFilter,total:z,hasNextPage:D?D.hasNextPage:z!=null?E.page*E.perPage1}},lbe={field:"id",order:Nl},ube=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],Np=function(e){return Object.keys(e).filter(function(t){return!ube.includes(t)}).reduce(function(t,r){var n;return Dl(Dl({},t),(n={},n[r]=e[r],n))},{})},cbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o-1?r?[]:dh(dh([],c.slice(0,l),!0),c.slice(l+1),!0):r?[t]:dh(dh([],c,!0),[t],!1)})},[a,t,r]);return[i,s]},pbe=function(e,t){var r=pn("".concat(e,".datagrid.expanded"),[]),n=r[0],o=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(c){return c==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(c){return!t.some(function(l){return l==c})});o(a?s:s.concat(t))},[n,o,a,t]);return[a,i]},cc=function(){return cc=Object.assign||function(e){for(var t,r=1,n=arguments.length;rvt(Ne,G.field)?G.order==="ASC"?1:-1:vt(Oe,G.field)1,hideFilter:fe,isFetching:g,isLoading:P,onSelect:ne.select,onToggleItem:ne.toggle,onUnselectItems:ne.clearSelection,page:F,perPage:D,resource:void 0,refetch:vbe,selectedIds:te,setFilters:ce,setPage:L,setPerPage:z,setSort:U,showFilter:ge,total:R==null?void 0:R.total}},mbe={},tn=function(e){var t=d.useContext(AP);return d.useMemo(function(){return lu({},e!=null?hbe(e):{},t)},[t,e])},hbe=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,o=e.displayedFilters,a=e.exporter,i=e.filterValues,s=e.hasCreate,c=e.hideFilter,l=e.isFetching,f=e.isLoading,v=e.onSelect,m=e.onToggleItem,h=e.onUnselectItems,x=e.page,w=e.perPage,C=e.refetch,b=e.resource,g=e.selectedIds,_=e.setFilters,$=e.setPage,P=e.setPerPage,E=e.setSort,T=e.showFilter,R=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:c,isFetching:l,isLoading:f,onSelect:v,onToggleItem:m,onUnselectItems:h,page:x,perPage:w,refetch:C,resource:b,selectedIds:g,setFilters:_,setPage:$,setPerPage:P,setSort:E,showFilter:T,total:R}},gbe=function(e){var t=d.useContext(MP);return d.useMemo(function(){return lu({},e!=null?ybe(e):{},t)},[t,e])},ybe=function(e){var t=e.isLoading,r=e.page,n=e.perPage,o=e.setPage,a=e.setPerPage,i=e.hasPreviousPage,s=e.hasNextPage,c=e.total,l=e.resource;return{isLoading:t,page:r,perPage:n,setPage:o,setPerPage:a,hasPreviousPage:i,hasNextPage:s,total:c,resource:l}},OB=function(e){var t=pv(e),r=t[1].unselect;return d.useCallback(function(n){r(n)},[r])},EB=function(e){var t=pv(e),r=t[1].clearSelection;return d.useCallback(function(){r()},[r])},dc=function(){return dc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1,setSort:T,showFilter:W,total:de}},vv=e=>e.type==="checkbox",fc=e=>e instanceof Date,Cn=e=>e==null;const PB=e=>typeof e=="object";var Fr=e=>!Cn(e)&&!Array.isArray(e)&&PB(e)&&!fc(e),$B=e=>Fr(e)&&e.target?vv(e.target)?e.target.checked:e.target.value:e,xbe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,RB=(e,t)=>e.has(xbe(t)),wbe=e=>{const t=e.constructor&&e.constructor.prototype;return Fr(t)&&t.hasOwnProperty("isPrototypeOf")},LP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function jr(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(!(LP&&(e instanceof Blob||e instanceof FileList))&&(r||Fr(e)))if(t=r?[]:{},!r&&!wbe(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=jr(e[n]));else return e;return t}var Od=e=>Array.isArray(e)?e.filter(Boolean):[],Vt=e=>e===void 0,Ae=(e,t,r)=>{if(!t||!Fr(e))return r;const n=Od(t.split(/[,[\].]+?/)).reduce((o,a)=>Cn(o)?o:o[a],e);return Vt(n)||n===e?Vt(e[t])?r:e[t]:n},va=e=>typeof e=="boolean";const hy={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Lo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},pi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},TB=ve.createContext(null),Zo=()=>ve.useContext(TB),kB=e=>{const{children:t,...r}=e;return ve.createElement(TB.Provider,{value:r},t)};var IB=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Lo.all&&(t._proxyFormState[i]=!n||Lo.all),r&&(r[i]=!0),e[i]}});return o},Bn=e=>Fr(e)&&!Object.keys(e).length,jB=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Bn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||Lo.all))},io=e=>Array.isArray(e)?e:[e],AB=(e,t,r)=>!e||!t||e===t||io(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function e0(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Ed(e){const t=Zo(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=ve.useState(r._formState),c=ve.useRef(!0),l=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=ve.useRef(o);return f.current=o,e0({disabled:n,next:v=>c.current&&AB(f.current,v.name,a)&&jB(v,l.current,r._updateFormState)&&s({...r._formState,...v}),subject:r._subjects.state}),ve.useEffect(()=>(c.current=!0,l.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),IB(i,r,l.current,!1)}var Ba=e=>typeof e=="string",MB=(e,t,r,n,o)=>Ba(e)?(n&&t.watch.add(e),Ae(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Ae(r,a))):(n&&(t.watchAll=!0),r);function FB(e){const t=Zo(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=ve.useRef(n);s.current=n,e0({disabled:a,subject:r._subjects.values,next:f=>{AB(s.current,f.name,i)&&l(jr(MB(s.current,r._names,f.values||r._formValues,!1,o)))}});const[c,l]=ve.useState(r._getWatch(n,o));return ve.useEffect(()=>r._removeUnmounted()),c}var NP=e=>/^\w*$/.test(e),LB=e=>Od(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Lt=(e,t,r)=>{let n=-1;const o=NP(t)?[t]:LB(t),a=o.length,i=a-1;for(;++n{const f=o._options.shouldUnregister||a,v=(m,h)=>{const x=Ae(o._fields,m);x&&(x._f.mount=h)};if(v(r,!0),f){const m=jr(Ae(o._options.defaultValues,r));Lt(o._defaultValues,r,m),Vt(Ae(o._formValues,r))&&Lt(o._formValues,r,m)}return()=>{(i?f&&!o._state.action:f)?o.unregister(r):v(r,!1)}},[r,o,i,a]),ve.useEffect(()=>{Ae(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:Ae(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:s,...va(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:ve.useCallback(f=>l.current.onChange({target:{value:$B(f),name:r},type:hy.CHANGE}),[r]),onBlur:ve.useCallback(()=>l.current.onBlur({target:{value:Ae(o._formValues,r),name:r},type:hy.BLUR}),[r,o]),ref:f=>{const v=Ae(o._fields,r);v&&f&&(v._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:m=>f.setCustomValidity(m),reportValidity:()=>f.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,r)},error:{enumerable:!0,get:()=>Ae(c.errors,r)}})}}var Cbe=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},es=()=>{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)})},Ux=(e,t,r={})=>r.shouldFocus||Vt(r.shouldFocus)?r.focusName||`${e}.${Vt(r.focusIndex)?t:r.focusIndex}.`:"",ep=e=>({isOnSubmit:!e||e===Lo.onSubmit,isOnBlur:e===Lo.onBlur,isOnChange:e===Lo.onChange,isOnAll:e===Lo.all,isOnTouch:e===Lo.onTouched}),HS=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Sc=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const a=Ae(e,o);if(a){const{_f:i,...s}=a;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;Sc(s,t)}else Fr(s)&&Sc(s,t)}}};var NB=(e,t,r)=>{const n=Od(Ae(e,r));return Lt(n,"root",t[r]),Lt(e,r,n),e},DP=e=>e.type==="file",ys=e=>typeof e=="function",gy=e=>{if(!LP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},eg=e=>Ba(e),BP=e=>e.type==="radio",yy=e=>e instanceof RegExp;const HM={value:!1,isValid:!1},GM={value:!0,isValid:!0};var DB=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&&!Vt(e[0].attributes.value)?Vt(e[0].value)||e[0].value===""?GM:{value:e[0].value,isValid:!0}:GM:HM}return HM};const KM={isValid:!1,value:null};var BB=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,KM):KM;function QM(e,t,r="validate"){if(eg(e)||Array.isArray(e)&&e.every(eg)||va(e)&&!e)return{type:r,message:eg(e)?e:"",ref:t}}var Mu=e=>Fr(e)&&!yy(e)?e:{value:e,message:""},GS=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:c,minLength:l,min:f,max:v,pattern:m,validate:h,name:x,valueAsNumber:w,mount:C,disabled:b}=e._f,g=Ae(t,x);if(!C||b)return{};const _=i?i[0]:a,$=L=>{n&&_.reportValidity&&(_.setCustomValidity(va(L)?"":L||""),_.reportValidity())},P={},E=BP(a),T=vv(a),R=E||T,I=(w||DP(a))&&Vt(a.value)&&Vt(g)||gy(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,A=Cbe.bind(null,x,r,P),F=(L,D,z,H=pi.maxLength,G=pi.minLength)=>{const q=L?D:z;P[x]={type:L?H:G,message:q,ref:a,...A(L?H:G,q)}};if(o?!Array.isArray(g)||!g.length:s&&(!R&&(I||Cn(g))||va(g)&&!g||T&&!DB(i).isValid||E&&!BB(i).isValid)){const{value:L,message:D}=eg(s)?{value:!!s,message:s}:Mu(s);if(L&&(P[x]={type:pi.required,message:D,ref:_,...A(pi.required,D)},!r))return $(D),P}if(!I&&(!Cn(f)||!Cn(v))){let L,D;const z=Mu(v),H=Mu(f);if(!Cn(g)&&!isNaN(g)){const G=a.valueAsNumber||g&&+g;Cn(z.value)||(L=G>z.value),Cn(H.value)||(D=Gnew Date(new Date().toDateString()+" "+te),U=a.type=="time",W=a.type=="week";Ba(z.value)&&g&&(L=U?q(g)>q(z.value):W?g>z.value:G>new Date(z.value)),Ba(H.value)&&g&&(D=U?q(g)+L.value,H=!Cn(D.value)&&g.length<+D.value;if((z||H)&&(F(z,L.message,D.message),!r))return $(P[x].message),P}if(m&&!I&&Ba(g)){const{value:L,message:D}=Mu(m);if(yy(L)&&!g.match(L)&&(P[x]={type:pi.pattern,message:D,ref:a,...A(pi.pattern,D)},!r))return $(D),P}if(h){if(ys(h)){const L=await h(g,t),D=QM(L,_);if(D&&(P[x]={...D,...A(pi.validate,D.message)},!r))return $(D.message),P}else if(Fr(h)){let L={};for(const D in h){if(!Bn(L)&&!r)break;const z=QM(await h[D](g,t),_,D);z&&(L={...z,...A(D,z.message)},$(z.message),r&&(P[x]=L))}if(!Bn(L)&&(P[x]={ref:_,...L},!r))return P}}return $(!0),P},Vx=(e,t)=>[...e,...io(t)],Wx=e=>Array.isArray(e)?e.map(()=>{}):void 0;function qx(e,t,r){return[...e.slice(0,t),...io(r),...e.slice(t)]}var Hx=(e,t,r)=>Array.isArray(e)?(Vt(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Gx=(e,t)=>[...io(t),...io(e)];function Obe(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return Od(n).length?n:[]}var Kx=(e,t)=>Vt(t)?[]:Obe(e,io(t).sort((r,n)=>r-n)),Qx=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function Ebe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function $be(e){const t=Zo(),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:a}=e,[i,s]=ve.useState(r._getFieldArray(n)),c=ve.useRef(r._getFieldArray(n).map(es)),l=ve.useRef(i),f=ve.useRef(n),v=ve.useRef(!1);f.current=n,l.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),e0({next:({values:P,name:E})=>{if(E===f.current||!E){const T=Ae(P,f.current);Array.isArray(T)&&(s(T),c.current=T.map(es))}},subject:r._subjects.array});const m=ve.useCallback(P=>{v.current=!0,r._updateFieldArray(n,P)},[r,n]),h=(P,E)=>{const T=io(jr(P)),R=Vx(r._getFieldArray(n),T);r._names.focus=Ux(n,R.length-1,E),c.current=Vx(c.current,T.map(es)),m(R),s(R),r._updateFieldArray(n,R,Vx,{argA:Wx(P)})},x=(P,E)=>{const T=io(jr(P)),R=Gx(r._getFieldArray(n),T);r._names.focus=Ux(n,0,E),c.current=Gx(c.current,T.map(es)),m(R),s(R),r._updateFieldArray(n,R,Gx,{argA:Wx(P)})},w=P=>{const E=Kx(r._getFieldArray(n),P);c.current=Kx(c.current,P),m(E),s(E),r._updateFieldArray(n,E,Kx,{argA:P})},C=(P,E,T)=>{const R=io(jr(E)),I=qx(r._getFieldArray(n),P,R);r._names.focus=Ux(n,P,T),c.current=qx(c.current,P,R.map(es)),m(I),s(I),r._updateFieldArray(n,I,qx,{argA:P,argB:Wx(E)})},b=(P,E)=>{const T=r._getFieldArray(n);Qx(T,P,E),Qx(c.current,P,E),m(T),s(T),r._updateFieldArray(n,T,Qx,{argA:P,argB:E},!1)},g=(P,E)=>{const T=r._getFieldArray(n);Hx(T,P,E),Hx(c.current,P,E),m(T),s(T),r._updateFieldArray(n,T,Hx,{argA:P,argB:E},!1)},_=(P,E)=>{const T=jr(E),R=XM(r._getFieldArray(n),P,T);c.current=[...R].map((I,A)=>!I||A===P?es():c.current[A]),m(R),s([...R]),r._updateFieldArray(n,R,XM,{argA:P,argB:T},!0,!1)},$=P=>{const E=io(jr(P));c.current=E.map(es),m([...E]),s([...E]),r._updateFieldArray(n,[...E],T=>T,{},!0,!1)};return ve.useEffect(()=>{if(r._state.action=!1,HS(n,r._names)&&r._subjects.state.next({...r._formState}),v.current&&(!ep(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const E=Ae(P.errors,n),T=Ae(r._formState.errors,n);(T?!E&&T.type||E&&(T.type!==E.type||T.message!==E.message):E&&E.type)&&(E?Lt(r._formState.errors,n,E):wr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=Ae(r._fields,n);P&&P._f&&!(ep(r._options.reValidateMode).isOnSubmit&&ep(r._options.mode).isOnSubmit)&&GS(P,r._formValues,r._options.criteriaMode===Lo.all,r._options.shouldUseNativeValidation,!0).then(E=>!Bn(E)&&r._subjects.state.next({errors:NB(r._formState.errors,E,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Sc(r._fields,(P,E)=>{if(r._names.focus&&E.startsWith(r._names.focus)&&P.focus)return P.focus(),1}),r._names.focus="",r._updateValid(),v.current=!1},[i,n,r]),ve.useEffect(()=>(!Ae(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||a)&&r.unregister(n)}),[n,r,o,a]),{swap:ve.useCallback(b,[m,n,r]),move:ve.useCallback(g,[m,n,r]),prepend:ve.useCallback(x,[m,n,r]),append:ve.useCallback(h,[m,n,r]),remove:ve.useCallback(w,[m,n,r]),insert:ve.useCallback(C,[m,n,r]),update:ve.useCallback(_,[m,n,r]),replace:ve.useCallback($,[m,n,r]),fields:ve.useMemo(()=>i.map((P,E)=>({...P,[o]:c.current[E]||es()})),[i,o])}}var Xx=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},by=e=>Cn(e)||!PB(e);function $l(e,t){if(by(e)||by(t))return e===t;if(fc(e)&&fc(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const i=t[o];if(fc(a)&&fc(i)||Fr(a)&&Fr(i)||Array.isArray(a)&&Array.isArray(i)?!$l(a,i):a!==i)return!1}}return!0}var zB=e=>e.type==="select-multiple",Rbe=e=>BP(e)||vv(e),Yx=e=>gy(e)&&e.isConnected,UB=e=>{for(const t in e)if(ys(e[t]))return!0;return!1};function _y(e,t={}){const r=Array.isArray(e);if(Fr(e)||r)for(const n in e)Array.isArray(e[n])||Fr(e[n])&&!UB(e[n])?(t[n]=Array.isArray(e[n])?[]:{},_y(e[n],t[n])):Cn(e[n])||(t[n]=!0);return t}function VB(e,t,r){const n=Array.isArray(e);if(Fr(e)||n)for(const o in e)Array.isArray(e[o])||Fr(e[o])&&!UB(e[o])?Vt(t)||by(r[o])?r[o]=Array.isArray(e[o])?_y(e[o],[]):{..._y(e[o])}:VB(e[o],Cn(t)?{}:t[o],r[o]):r[o]=!$l(e[o],t[o]);return r}var fh=(e,t)=>VB(e,t,_y(t)),WB=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Vt(e)?e:t?e===""?NaN:e&&+e:r&&Ba(e)?new Date(e):n?n(e):e;function Jx(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return DP(t)?t.files:BP(t)?BB(e.refs).value:zB(t)?[...t.selectedOptions].map(({value:r})=>r):vv(t)?DB(e.refs).value:WB(Vt(t.value)?e.ref.value:t.value,e)}var Tbe=(e,t,r,n)=>{const o={};for(const a of e){const i=Ae(t,a);i&&Lt(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},yf=e=>Vt(e)?e:yy(e)?e.source:Fr(e)?yy(e.value)?e.value.source:e.value:e,kbe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function YM(e,t,r){const n=Ae(e,r);if(n||NP(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=Ae(t,a),s=Ae(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:r}}var Ibe=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,jbe=(e,t)=>!Od(Ae(e,t)).length&&wr(e,t);const Abe={mode:Lo.onSubmit,reValidateMode:Lo.onChange,shouldFocusError:!0};function Mbe(e={}){let t={...Abe,...e},r={submitCount:0,isDirty:!1,isLoading:ys(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Fr(t.defaultValues)||Fr(t.values)?jr(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:jr(o),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={values:Xx(),array:Xx(),state:Xx()},m=ep(t.mode),h=ep(t.reValidateMode),x=t.criteriaMode===Lo.all,w=V=>X=>{clearTimeout(l),l=setTimeout(V,X)},C=async V=>{if(f.isValid||V){const X=t.resolver?Bn((await R()).errors):await A(n,!0);X!==r.isValid&&v.state.next({isValid:X})}},b=(V,X)=>{(f.isValidating||f.validatingFields)&&((V||Array.from(s.mount)).forEach(Y=>{Y&&(X?Lt(r.validatingFields,Y,X):wr(r.validatingFields,Y))}),v.state.next({validatingFields:r.validatingFields,isValidating:!Bn(r.validatingFields)}))},g=(V,X=[],Y,ie,se=!0,ue=!0)=>{if(ie&&Y){if(i.action=!0,ue&&Array.isArray(Ae(n,V))){const Ee=Y(Ae(n,V),ie.argA,ie.argB);se&&Lt(n,V,Ee)}if(ue&&Array.isArray(Ae(r.errors,V))){const Ee=Y(Ae(r.errors,V),ie.argA,ie.argB);se&&Lt(r.errors,V,Ee),jbe(r.errors,V)}if(f.touchedFields&&ue&&Array.isArray(Ae(r.touchedFields,V))){const Ee=Y(Ae(r.touchedFields,V),ie.argA,ie.argB);se&&Lt(r.touchedFields,V,Ee)}f.dirtyFields&&(r.dirtyFields=fh(o,a)),v.state.next({name:V,isDirty:L(V,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Lt(a,V,X)},_=(V,X)=>{Lt(r.errors,V,X),v.state.next({errors:r.errors})},$=V=>{r.errors=V,v.state.next({errors:r.errors,isValid:!1})},P=(V,X,Y,ie)=>{const se=Ae(n,V);if(se){const ue=Ae(a,V,Vt(Y)?Ae(o,V):Y);Vt(ue)||ie&&ie.defaultChecked||X?Lt(a,V,X?ue:Jx(se._f)):H(V,ue),i.mount&&C()}},E=(V,X,Y,ie,se)=>{let ue=!1,Ee=!1;const Ie={name:V},at=!!(Ae(n,V)&&Ae(n,V)._f.disabled);if(!Y||ie){f.isDirty&&(Ee=r.isDirty,r.isDirty=Ie.isDirty=L(),ue=Ee!==Ie.isDirty);const ot=at||$l(Ae(o,V),X);Ee=!!(!at&&Ae(r.dirtyFields,V)),ot||at?wr(r.dirtyFields,V):Lt(r.dirtyFields,V,!0),Ie.dirtyFields=r.dirtyFields,ue=ue||f.dirtyFields&&Ee!==!ot}if(Y){const ot=Ae(r.touchedFields,V);ot||(Lt(r.touchedFields,V,Y),Ie.touchedFields=r.touchedFields,ue=ue||f.touchedFields&&ot!==Y)}return ue&&se&&v.state.next(Ie),ue?Ie:{}},T=(V,X,Y,ie)=>{const se=Ae(r.errors,V),ue=f.isValid&&va(X)&&r.isValid!==X;if(e.delayError&&Y?(c=w(()=>_(V,Y)),c(e.delayError)):(clearTimeout(l),c=null,Y?Lt(r.errors,V,Y):wr(r.errors,V)),(Y?!$l(se,Y):se)||!Bn(ie)||ue){const Ee={...ie,...ue&&va(X)?{isValid:X}:{},errors:r.errors,name:V};r={...r,...Ee},v.state.next(Ee)}},R=async V=>{b(V,!0);const X=await t.resolver(a,t.context,Tbe(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return b(V),X},I=async V=>{const{errors:X}=await R(V);if(V)for(const Y of V){const ie=Ae(X,Y);ie?Lt(r.errors,Y,ie):wr(r.errors,Y)}else r.errors=X;return X},A=async(V,X,Y={valid:!0})=>{for(const ie in V){const se=V[ie];if(se){const{_f:ue,...Ee}=se;if(ue){const Ie=s.array.has(ue.name);b([ie],!0);const at=await GS(se,a,x,t.shouldUseNativeValidation&&!X,Ie);if(b([ie]),at[ue.name]&&(Y.valid=!1,X))break;!X&&(Ae(at,ue.name)?Ie?NB(r.errors,at,ue.name):Lt(r.errors,ue.name,at[ue.name]):wr(r.errors,ue.name))}Ee&&await A(Ee,X,Y)}}return Y.valid},F=()=>{for(const V of s.unMount){const X=Ae(n,V);X&&(X._f.refs?X._f.refs.every(Y=>!Yx(Y)):!Yx(X._f.ref))&&me(V)}s.unMount=new Set},L=(V,X)=>(V&&X&&Lt(a,V,X),!$l(ne(),o)),D=(V,X,Y)=>MB(V,s,{...i.mount?a:Vt(X)?o:Ba(V)?{[V]:X}:X},Y,X),z=V=>Od(Ae(i.mount?a:o,V,e.shouldUnregister?Ae(o,V,[]):[])),H=(V,X,Y={})=>{const ie=Ae(n,V);let se=X;if(ie){const ue=ie._f;ue&&(!ue.disabled&&Lt(a,V,WB(X,ue)),se=gy(ue.ref)&&Cn(X)?"":X,zB(ue.ref)?[...ue.ref.options].forEach(Ee=>Ee.selected=se.includes(Ee.value)):ue.refs?vv(ue.ref)?ue.refs.length>1?ue.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(se)?!!se.find(Ie=>Ie===Ee.value):se===Ee.value)):ue.refs[0]&&(ue.refs[0].checked=!!se):ue.refs.forEach(Ee=>Ee.checked=Ee.value===se):DP(ue.ref)?ue.ref.value="":(ue.ref.value=se,ue.ref.type||v.values.next({name:V,values:{...a}})))}(Y.shouldDirty||Y.shouldTouch)&&E(V,se,Y.shouldTouch,Y.shouldDirty,!0),Y.shouldValidate&&te(V)},G=(V,X,Y)=>{for(const ie in X){const se=X[ie],ue=`${V}.${ie}`,Ee=Ae(n,ue);(s.array.has(V)||!by(se)||Ee&&!Ee._f)&&!fc(se)?G(ue,se,Y):H(ue,se,Y)}},q=(V,X,Y={})=>{const ie=Ae(n,V),se=s.array.has(V),ue=jr(X);Lt(a,V,ue),se?(v.array.next({name:V,values:{...a}}),(f.isDirty||f.dirtyFields)&&Y.shouldDirty&&v.state.next({name:V,dirtyFields:fh(o,a),isDirty:L(V,ue)})):ie&&!ie._f&&!Cn(ue)?G(V,ue,Y):H(V,ue,Y),HS(V,s)&&v.state.next({...r}),v.values.next({name:i.mount?V:void 0,values:{...a}})},U=async V=>{i.mount=!0;const X=V.target;let Y=X.name,ie=!0;const se=Ae(n,Y),ue=()=>X.type?Jx(se._f):$B(V),Ee=Ie=>{ie=Number.isNaN(Ie)||Ie===Ae(a,Y,Ie)};if(se){let Ie,at;const ot=ue(),Le=V.type===hy.BLUR||V.type===hy.FOCUS_OUT,De=!kbe(se._f)&&!t.resolver&&!Ae(r.errors,Y)&&!se._f.deps||Ibe(Le,Ae(r.touchedFields,Y),r.isSubmitted,h,m),ft=HS(Y,s,Le);Lt(a,Y,ot),Le?(se._f.onBlur&&se._f.onBlur(V),c&&c(0)):se._f.onChange&&se._f.onChange(V);const Et=E(Y,ot,Le,!1),Ot=!Bn(Et)||ft;if(!Le&&v.values.next({name:Y,type:V.type,values:{...a}}),De)return f.isValid&&C(),Ot&&v.state.next({name:Y,...ft?{}:Et});if(!Le&&ft&&v.state.next({...r}),t.resolver){const{errors:Ue}=await R([Y]);if(Ee(ot),ie){const et=YM(r.errors,n,Y),ke=YM(Ue,n,et.name||Y);Ie=ke.error,Y=ke.name,at=Bn(Ue)}}else b([Y],!0),Ie=(await GS(se,a,x,t.shouldUseNativeValidation))[Y],b([Y]),Ee(ot),ie&&(Ie?at=!1:f.isValid&&(at=await A(n,!0)));ie&&(se._f.deps&&te(se._f.deps),T(Y,at,Ie,Et))}},W=(V,X)=>{if(Ae(r.errors,X)&&V.focus)return V.focus(),1},te=async(V,X={})=>{let Y,ie;const se=io(V);if(t.resolver){const ue=await I(Vt(V)?V:se);Y=Bn(ue),ie=V?!se.some(Ee=>Ae(ue,Ee)):Y}else V?(ie=(await Promise.all(se.map(async ue=>{const Ee=Ae(n,ue);return await A(Ee&&Ee._f?{[ue]:Ee}:Ee)}))).every(Boolean),!(!ie&&!r.isValid)&&C()):ie=Y=await A(n);return v.state.next({...!Ba(V)||f.isValid&&Y!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:Y}:{},errors:r.errors}),X.shouldFocus&&!ie&&Sc(n,W,V?se:s.mount),ie},ne=V=>{const X={...o,...i.mount?a:{}};return Vt(V)?X:Ba(V)?Ae(X,V):V.map(Y=>Ae(X,Y))},ee=(V,X)=>({invalid:!!Ae((X||r).errors,V),isDirty:!!Ae((X||r).dirtyFields,V),isTouched:!!Ae((X||r).touchedFields,V),isValidating:!!Ae((X||r).validatingFields,V),error:Ae((X||r).errors,V)}),Ce=V=>{V&&io(V).forEach(X=>wr(r.errors,X)),v.state.next({errors:V?r.errors:{}})},de=(V,X,Y)=>{const ie=(Ae(n,V,{_f:{}})._f||{}).ref;Lt(r.errors,V,{...X,ref:ie}),v.state.next({name:V,errors:r.errors,isValid:!1}),Y&&Y.shouldFocus&&ie&&ie.focus&&ie.focus()},oe=(V,X)=>ys(V)?v.values.subscribe({next:Y=>V(D(void 0,X),Y)}):D(V,X,!0),me=(V,X={})=>{for(const Y of V?io(V):s.mount)s.mount.delete(Y),s.array.delete(Y),X.keepValue||(wr(n,Y),wr(a,Y)),!X.keepError&&wr(r.errors,Y),!X.keepDirty&&wr(r.dirtyFields,Y),!X.keepTouched&&wr(r.touchedFields,Y),!X.keepIsValidating&&wr(r.validatingFields,Y),!t.shouldUnregister&&!X.keepDefaultValue&&wr(o,Y);v.values.next({values:{...a}}),v.state.next({...r,...X.keepDirty?{isDirty:L()}:{}}),!X.keepIsValid&&C()},Re=({disabled:V,name:X,field:Y,fields:ie,value:se})=>{if(va(V)){const ue=V?void 0:Vt(se)?Jx(Y?Y._f:Ae(ie,X)._f):se;Lt(a,X,ue),E(X,ue,!1,!1,!0)}},ye=(V,X={})=>{let Y=Ae(n,V);const ie=va(X.disabled);return Lt(n,V,{...Y||{},_f:{...Y&&Y._f?Y._f:{ref:{name:V}},name:V,mount:!0,...X}}),s.mount.add(V),Y?Re({field:Y,disabled:X.disabled,name:V,value:X.value}):P(V,!0,X.value),{...ie?{disabled:X.disabled}:{},...t.progressive?{required:!!X.required,min:yf(X.min),max:yf(X.max),minLength:yf(X.minLength),maxLength:yf(X.maxLength),pattern:yf(X.pattern)}:{},name:V,onChange:U,onBlur:U,ref:se=>{if(se){ye(V,X),Y=Ae(n,V);const ue=Vt(se.value)&&se.querySelectorAll&&se.querySelectorAll("input,select,textarea")[0]||se,Ee=Rbe(ue),Ie=Y._f.refs||[];if(Ee?Ie.find(at=>at===ue):ue===Y._f.ref)return;Lt(n,V,{_f:{...Y._f,...Ee?{refs:[...Ie.filter(Yx),ue,...Array.isArray(Ae(o,V))?[{}]:[]],ref:{type:ue.type,name:V}}:{ref:ue}}}),P(V,!1,void 0,ue)}else Y=Ae(n,V,{}),Y._f&&(Y._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(RB(s.array,V)&&i.action)&&s.unMount.add(V)}}},fe=()=>t.shouldFocusError&&Sc(n,W,s.mount),ge=V=>{va(V)&&(v.state.next({disabled:V}),Sc(n,(X,Y)=>{let ie=V;const se=Ae(n,Y);se&&va(se._f.disabled)&&(ie||(ie=se._f.disabled)),X.disabled=ie},0,!1))},ce=(V,X)=>async Y=>{let ie;Y&&(Y.preventDefault&&Y.preventDefault(),Y.persist&&Y.persist());let se=jr(a);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:ue,values:Ee}=await R();r.errors=ue,se=Ee}else await A(n);if(wr(r.errors,"root"),Bn(r.errors)){v.state.next({errors:{}});try{await V(se,Y)}catch(ue){ie=ue}}else X&&await X({...r.errors},Y),fe(),setTimeout(fe);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Bn(r.errors)&&!ie,submitCount:r.submitCount+1,errors:r.errors}),ie)throw ie},pe=(V,X={})=>{Ae(n,V)&&(Vt(X.defaultValue)?q(V,jr(Ae(o,V))):(q(V,X.defaultValue),Lt(o,V,jr(X.defaultValue))),X.keepTouched||wr(r.touchedFields,V),X.keepDirty||(wr(r.dirtyFields,V),r.isDirty=X.defaultValue?L(V,jr(Ae(o,V))):L()),X.keepError||(wr(r.errors,V),f.isValid&&C()),v.state.next({...r}))},ae=(V,X={})=>{const Y=V?jr(V):o,ie=jr(Y),se=Bn(V),ue=se?o:ie;if(X.keepDefaultValues||(o=Y),!X.keepValues){if(X.keepDirtyValues)for(const Ee of s.mount)Ae(r.dirtyFields,Ee)?Lt(ue,Ee,Ae(a,Ee)):q(Ee,Ae(ue,Ee));else{if(LP&&Vt(V))for(const Ee of s.mount){const Ie=Ae(n,Ee);if(Ie&&Ie._f){const at=Array.isArray(Ie._f.refs)?Ie._f.refs[0]:Ie._f.ref;if(gy(at)){const ot=at.closest("form");if(ot){ot.reset();break}}}}n={}}a=e.shouldUnregister?X.keepDefaultValues?jr(o):{}:jr(ue),v.array.next({values:{...ue}}),v.values.next({values:{...ue}})}s={mount:X.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!X.keepIsValid||!!X.keepDirtyValues,i.watch=!!e.shouldUnregister,v.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:se?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!$l(V,o)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:se?[]:X.keepDirtyValues?X.keepDefaultValues&&a?fh(o,a):r.dirtyFields:X.keepDefaultValues&&V?fh(o,V):{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(V,X)=>ae(ys(V)?V(a):V,X);return{control:{register:ye,unregister:me,getFieldState:ee,handleSubmit:ce,setError:de,_executeSchema:R,_getWatch:D,_getDirty:L,_updateValid:C,_removeUnmounted:F,_updateFieldArray:g,_updateDisabledField:Re,_getFieldArray:z,_reset:ae,_resetDefaultValues:()=>ys(t.defaultValues)&&t.defaultValues().then(V=>{Se(V,t.resetOptions),v.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:ge,_subjects:v,_proxyFormState:f,_setErrors:$,get _fields(){return n},get _formValues(){return a},get _state(){return i},set _state(V){i=V},get _defaultValues(){return o},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:te,register:ye,handleSubmit:ce,watch:oe,setValue:q,getValues:ne,reset:Se,resetField:pe,clearErrors:Ce,unregister:me,setError:de,setFocus:(V,X={})=>{const Y=Ae(n,V),ie=Y&&Y._f;if(ie){const se=ie.refs?ie.refs[0]:ie.ref;se.focus&&(se.focus(),X.shouldSelect&&se.select())}},getFieldState:ee}}function qB(e={}){const t=ve.useRef(),r=ve.useRef(),[n,o]=ve.useState({isDirty:!1,isValidating:!1,isLoading:ys(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ys(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Mbe(e),formState:n});const a=t.current.control;return a._options=e,e0({subject:a._subjects.state,next:i=>{jB(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),ve.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),ve.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),ve.useEffect(()=>{e.values&&!$l(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[e.values,a]),ve.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),ve.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),ve.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=IB(n,a),t.current}var Fbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?T(R):R},{updatedAt:E}),o.setQueriesData([g,"getManyReference"],function(R){return R&&R.data?{data:T(R.data),total:R.total}:R},{updatedAt:E})},w=pd(function(b){var g=b===void 0?{}:b,_=g.resource,$=_===void 0?e:_,P=g.id,E=P===void 0?m.current.id:P,T=g.data,R=T===void 0?m.current.data:T,I=g.meta,A=I===void 0?m.current.meta:I,F=g.previousData,L=F===void 0?m.current.previousData:F;return n.update($,{id:E,data:R,previousData:L,meta:A}).then(function(D){var z=D.data;return z})},Qt(Qt({},f),{onMutate:function(b){return JM(void 0,void 0,void 0,function(){var g;return ZM(this,function(_){switch(_.label){case 0:return f.onMutate?[4,f.onMutate(b)]:[3,2];case 1:return g=_.sent()||{},[2,Qt({snapshot:h.current},g)];case 2:return[2,{snapshot:h.current}]}})})},onError:function(b,g,_){if(g===void 0&&(g={}),(v.current==="optimistic"||v.current==="undoable")&&_.snapshot.forEach(function($){var P=$[0],E=$[1];o.setQueryData(P,E)}),f.onError)return f.onError(b,g,_)},onSuccess:function(b,g,_){if(g===void 0&&(g={}),v.current==="pessimistic"){var $=g.resource,P=$===void 0?e:$,E=g.id,T=E===void 0?a:E;x({resource:P,id:T,data:b}),f.onSuccess&&f.onSuccess(b,g,_)}},onSettled:function(b,g,_,$){if(_===void 0&&(_={}),(v.current==="optimistic"||v.current==="undoable")&&$.snapshot.forEach(function(P){var E=P[0];o.invalidateQueries(E)}),f.onSettled)return f.onSettled(b,g,_,$)}})),C=function(b,g,_){return b===void 0&&(b=e),g===void 0&&(g={}),_===void 0&&(_={}),JM(void 0,void 0,void 0,function(){var $,P,E,T,R,I,A,F,L,D,z,H,G,q;return ZM(this,function(U){switch(U.label){case 0:return $=_.mutationMode,P=_.returnPromise,E=P===void 0?f.returnPromise:P,T=_.onSuccess,R=_.onSettled,I=_.onError,m.current=t,$&&(v.current=$),E&&v.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),v.current==="pessimistic"?E?[2,w.mutateAsync(Qt({resource:b},g),{onSuccess:T,onSettled:R,onError:I})]:[2,w.mutate(Qt({resource:b},g),{onSuccess:T,onSettled:R,onError:I})]:(A=g.id,F=A===void 0?a:A,L=g.data,D=L===void 0?i:L,z=g.meta,H=z===void 0?s:z,G=o.getQueryData([b,"getOne",{id:String(F),meta:H}]),q=[[b,"getOne",{id:String(F),meta:H}],[b,"getList"],[b,"getInfiniteList"],[b,"getMany"],[b,"getManyReference"]],h.current=q.reduce(function(W,te){return W.concat(o.getQueriesData(te))},[]),[4,Promise.all(h.current.map(function(W){var te=W[0];return o.cancelQueries(te)}))]);case 1:return U.sent(),x({resource:b,id:F,data:D}),T&&setTimeout(function(){return T(Qt(Qt({},G),D),Qt({resource:b},g),{snapshot:h.current})},0),f.onSuccess&&setTimeout(function(){return f.onSuccess(Qt(Qt({},G),D),Qt({resource:b},g),{snapshot:h.current})},0),v.current==="optimistic"?[2,w.mutate(Qt({resource:b},g),{onSettled:R,onError:I})]:(Lp.once("end",function(W){var te=W.isUndo;te?h.current.forEach(function(ne){var ee=ne[0],Ce=ne[1];o.setQueryData(ee,Ce)}):w.mutate(Qt({resource:b},g),{onSettled:R,onError:I})}),[2])}})})};return[Zl(C),w]},Nn=function(){return Nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?P(E):E},{updatedAt:$}),o.setQueriesData([b,"getManyReference"],function(E){if(!E||!E.data)return E;var T=P(E.data),R=T.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?$(P):P},{updatedAt:_}),o.setQueriesData([C,"getManyReference"],function(P){if(!P||!P.data)return P;var E=$(P.data),T=E.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0||x.customRoutesWithLayout.length>0||x.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&v(h),[2]})})};r||m()},[e,n,r,s,t,i,f]),[a,l]},n0e=function(e){var t=d.useState(e),r=t[0],n=t[1],o=d.useCallback(function(a){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:i.resources.concat(a.resources)}})},[]);return[r,n,o]},o0e=function(e,t){var r=QB(),n=r.register,o=r.unregister;d.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);o(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,o])},a0e=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return XB(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},XB=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]},Mf=function(e){var t=[],r=[],n=[];return d.Children.forEach(e,function(o){if(d.isValidElement(o)){if(o.type===d.Fragment){var a=Mf(o.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(o.type.raName==="CustomRoutes"){var i=o;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else o.type.raName==="Resource"&&n.push(o)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n}},i0e=function(e){nve();var t=Hs(),r=t0e(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,c=e.catchAll,l=e.dashboard,f=e.loading,v=e.menu,m=e.requireAuth,h=e.ready,x=e.title,w=d.useState(!m),C=w[0],b=w[1],g=mz();return d.useEffect(function(){m&&g().then(function(){b(!0)}).catch(function(){})},[g,m]),a==="empty"?d.createElement(h,null):a==="loading"||!C?d.createElement(Ll,null,o,d.createElement(Jr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(f,null))})):d.createElement(Ll,null,o,d.createElement(Jr,{path:"/*",element:d.createElement("div",null,d.createElement(s,{dashboard:l,menu:v,title:x},d.createElement(Ll,null,n,d.Children.map(i,function(_){return d.createElement(Jr,{key:_.props.name,path:"".concat(_.props.name,"/*"),element:_})}),d.createElement(Jr,{path:"/",element:l?d.createElement(B0e,{authParams:s0e,component:l}):i.length>0?d.createElement(Hne,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(Jr,{path:"*",element:d.createElement(c,{title:x})}))))}))},s0e={params:{route:"dashboard"}},l0e=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},u0e=function(e){var t=e.catchAll,r=t===void 0?lF:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,c=s===void 0?l0e:s,l=e.loading,f=l===void 0?lF:l,v=e.loginPage,m=v===void 0?!1:v,h=e.authCallbackPage,x=h===void 0?!1:h,w=e.menu,C=e.ready,b=C===void 0?E0e:C,g=e.title,_=g===void 0?"React Admin":g,$=e.requireAuth,P=$===void 0?!1:$;return d.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var E=new Image;E.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),d.createElement(Ll,null,m!==!1&&m!==!0?d.createElement(Jr,{path:"/login",element:sF(m)}):null,x!==!1&&x!==!0?d.createElement(Jr,{path:"/auth-callback",element:sF(x)}):null,d.createElement(Jr,{path:"/*",element:d.createElement(i0e,{catchAll:r,dashboard:o,layout:c,loading:f,menu:w,requireAuth:P,ready:b,title:_},n)}))},sF=function(e){return d.isValidElement(e)?e:d.createElement(e)},lF=function(){return null},YB=function(e){return null};YB.raName="CustomRoutes";var JB={exports:{}},Bt={};/** @license React v17.0.2 +The missing props are: `).concat(o.join(", ")))},WS=function(){return WS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0?(v=e.current)[l].apply(v,ch(ch([],m,!1),[f],!1)):a.apply(void 0,m)};return e.current.length>0?(i=e.current)[l].apply(i,ch(ch([],s,!1),[f],!1)):a.apply(void 0,s)}},[]),o=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return o},vy=function(){return vy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]2?t[2]:void 0;for(o&&ege(t[0],t[1],o)&&(n=1);++r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"?"undefined":gB(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var o in r){var a=r[o],i=this.check(a,o,o,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,o=[],a,i=0;i0&&!l.item&&a===void 0&&(a=l);o=o.concat(c)}}return o}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),bge=yge,_ge=typeof window>"u"?no:window;function xge(e,t){if(e instanceof _ge[t])return!0;switch(typeof e>"u"?"undefined":gB(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var zx,jM;function wge(){return jM||(jM=1,zx=function(t,r,n){var o=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var a=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(c){return c.indexOf(r)>=0||c.indexOf(o)>=0||c.indexOf('"')>=0}:function(c){return c.indexOf(r)>=0||c.indexOf(o)>=0};return function(c){return n&&(c=""+c),c.replace&&(c=c.replace(a,i),(n||s(c))&&(c=t+c+t)),c}}),zx}var Sge=function(){function e(t,r){for(var n=0;n0&&(v=v.concat(Array(m).join(".").split("."))),n&&this._options.fillGaps&&(v=v.map(a)),o.push(v.join(this._options.rowDelimiter)),n=v}}catch(h){s=!0,c=h}finally{try{!i&&l.return&&l.return()}finally{if(s)throw c}}return o}},{key:"_parseArray",value:function(r,n){var o=this;this._headers=this._headers||[];var a=[],i=void 0,s=function(C){var b=o._headers.indexOf(C);return b===-1&&(o._headers.push(C),b=o._headers.indexOf(C)),b};i=function(C){var b=[],g=function(z){return b.push(z.map(function(H){return H??""}))},_=function(){return new Array(o._headers.length).fill(null)},$={},P=_(),E=!0,T=!1,R=void 0;try{for(var I=C[Symbol.iterator](),A;!(E=(A=I.next()).done);E=!0){var F=A.value,L=s(F.item);if(P[L]!=null&&(g(P),P=_()),$[L]=$[L]||0,o._options.fillTopRow&&$[L]0&&g(P),a=a.concat(o._checkRows(b))};var c=!0,l=!1,f=void 0;try{for(var v=r[Symbol.iterator](),m;!(c=(m=v.next()).done);c=!0){var h=m.value,x=o._handler.check(h,o._options.mainPathItem,h,r);i(x)}}catch(w){l=!0,f=w}finally{try{!c&&v.return&&v.return()}finally{if(l)throw f}}return!n&&o._options.includeHeaders&&a.unshift(this.headers),AM(a,o._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,o=[],a=[],i=void 0,s=[[],[]];i=function(v){var m=v.value||v.value===0?v.value.toString():n._options.undefinedString;if(m=n._escape(m),n._options.verticalOutput){var h=[v.item,m];o.push(h.join(n._options.rowDelimiter))}else s[0].push(v.item),s[1].push(m)};for(var c in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),a=this._handler.check(r[c],l+c,c,r),a.forEach(i)}return this._options.verticalOutput||(o.push(s[0].join(this._options.rowDelimiter)),o.push(s[1].join(this._options.rowDelimiter))),AM(o,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(o){return r._options.rename[r._options.headers.indexOf(o)]||o})),this._options.forceTextDelimiter&&(n=n.map(function(o){return""+r._options.textDelimiter+o+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),Pge=Ege,$ge=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Rge=$ge,FM=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LM=Pge,NM=Rge,Tge=hB,kge=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:Tge,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var o=Array.prototype.slice.call(arguments);t=o[0],r=o[1],n=o[2]}else if(arguments.length===2){var a=void 0,i=Array.prototype.slice.call(arguments);t=i[0],a=i[1],typeof a=="function"?n=a:(typeof a>"u"?"undefined":FM(a))==="object"&&(r=a)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),c=s[0];if((typeof c>"u"?"undefined":FM(c))==="object"){var l=Object.keys(e),f=Object.keys(c),v=f.every(function(x){return l.includes(x)});f.length>0&&v?r=c:t=c}else t=c}else return new NM(new LM(e));var m=Object.assign({},e,r),h=new LM(m);return t?new Promise(function(x,w){h.parse(t,function(C,b){if(n)return n(C,b);if(C)return w(C);if(w)return x(b)})}):new NM};const Ige=gr(kge),jge=function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())};var Age=function(e,t,r,n){return Ige(e,function(o,a){return jge(a,n)})};const Mge=Age;var Fge=function(e){return function(t,r,n){return e.getMany(n,{ids:Lge(t,r)}).then(function(o){var a=o.data;return a.reduce(function(i,s){return i[s.id]=s,i},{})})}},Lge=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)},[])))},Au=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n"u"||o(function(c){if(!Array.isArray(c))return Au([],c,!0);var l=c.indexOf(s);return l>-1?Au(Au([],c.slice(0,l),!0),c.slice(l+1),!0):Au(Au([],c,!0),[s],!1)})},clearSelection:function(){a()}}},[o,a]);return[n,i]},Nge=[],Dge=Wb,Bge=bP,zge=1,Uge=2;function Vge(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o0&&!T&&$(A)},[h.search]);var F=d.useCallback(function(ne){E.current&&(P.current?P.current=PM(P.current,ne):(P.current=PM(A,ne),setTimeout(function(){o?b(P.current):x({search:"?".concat(Yl.stringify(Ts(Ts({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ne.type===US}}),P.current=void 0},0)))},DM(DM([],R,!0),[x],!1)),L=d.useCallback(function(ne){return F({type:eB,payload:ne})},[F]),D=d.useCallback(function(ne){return F({type:US,payload:ne})},[F]),z=d.useCallback(function(ne){return F({type:tB,payload:ne})},[F]),H=A.filter||UM,G=A.displayedFilters||UM,q=Y5(function(ne,ee){F({type:VS,payload:{filter:Fs(ne),displayedFilters:ee}})},r),U=d.useCallback(function(ne,ee,Ce){return Ce===void 0&&(Ce=!0),Ce?q(ne,ee):F({type:VS,payload:{filter:Fs(ne),displayedFilters:ee}})},[F]),W=d.useCallback(function(ne){F({type:nB,payload:ne})},[F]),te=d.useCallback(function(ne,ee){F({type:rB,payload:{filterName:ne,defaultValue:ee}})},[F]);return[Ts({displayedFilters:G,filterValues:H,requestSignature:R},A),{changeParams:F,setPage:D,setPerPage:z,setSort:L,setFilters:U,hideFilter:W,showFilter:te}]},Yye=["page","perPage","sort","order","filter","displayedFilters"],BM=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Jye=function(e){var t=e.search,r=Kye(Yl.parse(t),function(n,o){return Yye.indexOf(o)!==-1});return BM(r,"filter"),BM(r,"displayedFilters"),r},Zye=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},ebe=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:Zye(r)?Ts({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),i.perPage==null&&(i.perPage=a),i.page==null&&(i.page=1),Ts(Ts({},i),{page:zM(i.page,1),perPage:zM(i.perPage,10)})},zM=function(e,t){var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},UM={},tbe={field:"id",order:Nl},VM={},AP=d.createContext({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});AP.displayName="ListContext";var wB=d.createContext({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null}),rbe=function(e){return d.useMemo(function(){return Jb(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};wB.displayName="ListFilterContext";var SB=d.createContext({sort:null,setSort:null,resource:null}),nbe=function(e){return d.useMemo(function(){return Jb(e,["sort","setSort","resource"])},[e.sort,e.setSort])};SB.displayName="ListSortContext";var MP=d.createContext({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});MP.displayName="ListPaginationContext";var obe=function(e){return d.useMemo(function(){return Jb(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},FP=function(e){var t=e.value,r=e.children;return d.createElement(AP.Provider,{value:t},d.createElement(wB.Provider,{value:rbe(t)},d.createElement(SB.Provider,{value:nbe(t)},d.createElement(MP.Provider,{value:obe(t)},r))))},Dl=function(){return Dl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(s&&d.isValidElement(s))throw new Error(" received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var _=je(),$=Ht(),P=Xye({debounce:r,disableSyncWithLocation:o,filterDefaultValues:c,perPage:f,resource:C,sort:x,storeKey:w}),E=P[0],T=P[1],R=pv(C),I=R[0],A=R[1],F=Fve(C,{pagination:{page:E.page,perPage:E.perPage},sort:{field:E.sort,order:E.order},filter:Dl(Dl({},E.filter),s),meta:b},Dl({keepPreviousData:!0,retry:!1,onError:function(ee){return $((ee==null?void 0:ee.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:ee==null?void 0:ee.message}})}},g)),L=F.data,D=F.pageInfo,z=F.total,H=F.error,G=F.isLoading,q=F.isFetching,U=F.refetch;d.useEffect(function(){if(E.page<=0||!q&&E.page>1&&(L==null||(L==null?void 0:L.length)===0)){T.setPage(1);return}if(z!=null){var ee=Math.ceil(z/E.perPage)||1;!q&&E.page>ee&&T.setPage(ee)}},[q,E.page,E.perPage,L,T,z]);var W=d.useMemo(function(){return{field:E.sort,order:E.order}},[E.sort,E.order]),te=$d(),ne=_("ra.page.list",{name:te(C,2)});return{sort:W,data:L,defaultTitle:ne,displayedFilters:E.displayedFilters,error:H,exporter:i,filter:s,filterValues:E.filterValues,hideFilter:T.hideFilter,isFetching:q,isLoading:G,onSelect:A.select,onToggleItem:A.toggle,onUnselectItems:A.clearSelection,page:E.page,perPage:E.perPage,refetch:U,resource:C,selectedIds:I,setFilters:T.setFilters,setPage:T.setPage,setPerPage:T.setPerPage,setSort:T.setSort,showFilter:T.showFilter,total:z,hasNextPage:D?D.hasNextPage:z!=null?E.page*E.perPage1}},sbe={field:"id",order:Nl},lbe=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],Np=function(e){return Object.keys(e).filter(function(t){return!lbe.includes(t)}).reduce(function(t,r){var n;return Dl(Dl({},t),(n={},n[r]=e[r],n))},{})},ube=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o-1?r?[]:dh(dh([],c.slice(0,l),!0),c.slice(l+1),!0):r?[t]:dh(dh([],c,!0),[t],!1)})},[a,t,r]);return[i,s]},fbe=function(e,t){var r=pn("".concat(e,".datagrid.expanded"),[]),n=r[0],o=r[1],a=Array.isArray(n)?n.some(function(s){return t.some(function(c){return c==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(c){return!t.some(function(l){return l==c})});o(a?s:s.concat(t))},[n,o,a,t]);return[a,i]},cc=function(){return cc=Object.assign||function(e){for(var t,r=1,n=arguments.length;rvt(Ne,G.field)?G.order==="ASC"?1:-1:vt(Oe,G.field)1,hideFilter:fe,isFetching:g,isLoading:P,onSelect:ne.select,onToggleItem:ne.toggle,onUnselectItems:ne.clearSelection,page:F,perPage:D,resource:void 0,refetch:pbe,selectedIds:te,setFilters:ce,setPage:L,setPerPage:z,setSort:U,showFilter:ge,total:R==null?void 0:R.total}},vbe={},tn=function(e){var t=d.useContext(AP);return d.useMemo(function(){return lu({},e!=null?mbe(e):{},t)},[t,e])},mbe=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,o=e.displayedFilters,a=e.exporter,i=e.filterValues,s=e.hasCreate,c=e.hideFilter,l=e.isFetching,f=e.isLoading,v=e.onSelect,m=e.onToggleItem,h=e.onUnselectItems,x=e.page,w=e.perPage,C=e.refetch,b=e.resource,g=e.selectedIds,_=e.setFilters,$=e.setPage,P=e.setPerPage,E=e.setSort,T=e.showFilter,R=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:o,exporter:a,filterValues:i,hasCreate:s,hideFilter:c,isFetching:l,isLoading:f,onSelect:v,onToggleItem:m,onUnselectItems:h,page:x,perPage:w,refetch:C,resource:b,selectedIds:g,setFilters:_,setPage:$,setPerPage:P,setSort:E,showFilter:T,total:R}},hbe=function(e){var t=d.useContext(MP);return d.useMemo(function(){return lu({},e!=null?gbe(e):{},t)},[t,e])},gbe=function(e){var t=e.isLoading,r=e.page,n=e.perPage,o=e.setPage,a=e.setPerPage,i=e.hasPreviousPage,s=e.hasNextPage,c=e.total,l=e.resource;return{isLoading:t,page:r,perPage:n,setPage:o,setPerPage:a,hasPreviousPage:i,hasNextPage:s,total:c,resource:l}},OB=function(e){var t=pv(e),r=t[1].unselect;return d.useCallback(function(n){r(n)},[r])},EB=function(e){var t=pv(e),r=t[1].clearSelection;return d.useCallback(function(){r()},[r])},dc=function(){return dc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1,setSort:T,showFilter:W,total:de}},vv=e=>e.type==="checkbox",fc=e=>e instanceof Date,Cn=e=>e==null;const PB=e=>typeof e=="object";var Fr=e=>!Cn(e)&&!Array.isArray(e)&&PB(e)&&!fc(e),$B=e=>Fr(e)&&e.target?vv(e.target)?e.target.checked:e.target.value:e,_be=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,RB=(e,t)=>e.has(_be(t)),xbe=e=>{const t=e.constructor&&e.constructor.prototype;return Fr(t)&&t.hasOwnProperty("isPrototypeOf")},LP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function jr(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(!(LP&&(e instanceof Blob||e instanceof FileList))&&(r||Fr(e)))if(t=r?[]:{},!r&&!xbe(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=jr(e[n]));else return e;return t}var Od=e=>Array.isArray(e)?e.filter(Boolean):[],Vt=e=>e===void 0,Ae=(e,t,r)=>{if(!t||!Fr(e))return r;const n=Od(t.split(/[,[\].]+?/)).reduce((o,a)=>Cn(o)?o:o[a],e);return Vt(n)||n===e?Vt(e[t])?r:e[t]:n},va=e=>typeof e=="boolean";const hy={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Lo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},pi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},TB=ve.createContext(null),Zo=()=>ve.useContext(TB),kB=e=>{const{children:t,...r}=e;return ve.createElement(TB.Provider,{value:r},t)};var IB=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==Lo.all&&(t._proxyFormState[i]=!n||Lo.all),r&&(r[i]=!0),e[i]}});return o},Bn=e=>Fr(e)&&!Object.keys(e).length,jB=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Bn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(i=>t[i]===(!n||Lo.all))},io=e=>Array.isArray(e)?e:[e],AB=(e,t,r)=>!e||!t||e===t||io(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function e0(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Ed(e){const t=Zo(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=ve.useState(r._formState),c=ve.useRef(!0),l=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=ve.useRef(o);return f.current=o,e0({disabled:n,next:v=>c.current&&AB(f.current,v.name,a)&&jB(v,l.current,r._updateFormState)&&s({...r._formState,...v}),subject:r._subjects.state}),ve.useEffect(()=>(c.current=!0,l.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),IB(i,r,l.current,!1)}var Ba=e=>typeof e=="string",MB=(e,t,r,n,o)=>Ba(e)?(n&&t.watch.add(e),Ae(r,e,o)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),Ae(r,a))):(n&&(t.watchAll=!0),r);function FB(e){const t=Zo(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i}=e||{},s=ve.useRef(n);s.current=n,e0({disabled:a,subject:r._subjects.values,next:f=>{AB(s.current,f.name,i)&&l(jr(MB(s.current,r._names,f.values||r._formValues,!1,o)))}});const[c,l]=ve.useState(r._getWatch(n,o));return ve.useEffect(()=>r._removeUnmounted()),c}var NP=e=>/^\w*$/.test(e),LB=e=>Od(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Lt=(e,t,r)=>{let n=-1;const o=NP(t)?[t]:LB(t),a=o.length,i=a-1;for(;++n{const f=o._options.shouldUnregister||a,v=(m,h)=>{const x=Ae(o._fields,m);x&&(x._f.mount=h)};if(v(r,!0),f){const m=jr(Ae(o._options.defaultValues,r));Lt(o._defaultValues,r,m),Vt(Ae(o._formValues,r))&&Lt(o._formValues,r,m)}return()=>{(i?f&&!o._state.action:f)?o.unregister(r):v(r,!1)}},[r,o,i,a]),ve.useEffect(()=>{Ae(o._fields,r)&&o._updateDisabledField({disabled:n,fields:o._fields,name:r,value:Ae(o._fields,r)._f.value})},[n,r,o]),{field:{name:r,value:s,...va(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:ve.useCallback(f=>l.current.onChange({target:{value:$B(f),name:r},type:hy.CHANGE}),[r]),onBlur:ve.useCallback(()=>l.current.onBlur({target:{value:Ae(o._formValues,r),name:r},type:hy.BLUR}),[r,o]),ref:f=>{const v=Ae(o._fields,r);v&&f&&(v._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:m=>f.setCustomValidity(m),reportValidity:()=>f.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,r)},error:{enumerable:!0,get:()=>Ae(c.errors,r)}})}}var Sbe=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},es=()=>{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)})},Ux=(e,t,r={})=>r.shouldFocus||Vt(r.shouldFocus)?r.focusName||`${e}.${Vt(r.focusIndex)?t:r.focusIndex}.`:"",ep=e=>({isOnSubmit:!e||e===Lo.onSubmit,isOnBlur:e===Lo.onBlur,isOnChange:e===Lo.onChange,isOnAll:e===Lo.all,isOnTouch:e===Lo.onTouched}),HS=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Sc=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const a=Ae(e,o);if(a){const{_f:i,...s}=a;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],o)&&!n)break;if(i.ref&&t(i.ref,i.name)&&!n)break;Sc(s,t)}else Fr(s)&&Sc(s,t)}}};var NB=(e,t,r)=>{const n=Od(Ae(e,r));return Lt(n,"root",t[r]),Lt(e,r,n),e},DP=e=>e.type==="file",ys=e=>typeof e=="function",gy=e=>{if(!LP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},eg=e=>Ba(e),BP=e=>e.type==="radio",yy=e=>e instanceof RegExp;const HM={value:!1,isValid:!1},GM={value:!0,isValid:!0};var DB=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&&!Vt(e[0].attributes.value)?Vt(e[0].value)||e[0].value===""?GM:{value:e[0].value,isValid:!0}:GM:HM}return HM};const KM={isValid:!1,value:null};var BB=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,KM):KM;function QM(e,t,r="validate"){if(eg(e)||Array.isArray(e)&&e.every(eg)||va(e)&&!e)return{type:r,message:eg(e)?e:"",ref:t}}var Mu=e=>Fr(e)&&!yy(e)?e:{value:e,message:""},GS=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:c,minLength:l,min:f,max:v,pattern:m,validate:h,name:x,valueAsNumber:w,mount:C,disabled:b}=e._f,g=Ae(t,x);if(!C||b)return{};const _=i?i[0]:a,$=L=>{n&&_.reportValidity&&(_.setCustomValidity(va(L)?"":L||""),_.reportValidity())},P={},E=BP(a),T=vv(a),R=E||T,I=(w||DP(a))&&Vt(a.value)&&Vt(g)||gy(a)&&a.value===""||g===""||Array.isArray(g)&&!g.length,A=Sbe.bind(null,x,r,P),F=(L,D,z,H=pi.maxLength,G=pi.minLength)=>{const q=L?D:z;P[x]={type:L?H:G,message:q,ref:a,...A(L?H:G,q)}};if(o?!Array.isArray(g)||!g.length:s&&(!R&&(I||Cn(g))||va(g)&&!g||T&&!DB(i).isValid||E&&!BB(i).isValid)){const{value:L,message:D}=eg(s)?{value:!!s,message:s}:Mu(s);if(L&&(P[x]={type:pi.required,message:D,ref:_,...A(pi.required,D)},!r))return $(D),P}if(!I&&(!Cn(f)||!Cn(v))){let L,D;const z=Mu(v),H=Mu(f);if(!Cn(g)&&!isNaN(g)){const G=a.valueAsNumber||g&&+g;Cn(z.value)||(L=G>z.value),Cn(H.value)||(D=Gnew Date(new Date().toDateString()+" "+te),U=a.type=="time",W=a.type=="week";Ba(z.value)&&g&&(L=U?q(g)>q(z.value):W?g>z.value:G>new Date(z.value)),Ba(H.value)&&g&&(D=U?q(g)+L.value,H=!Cn(D.value)&&g.length<+D.value;if((z||H)&&(F(z,L.message,D.message),!r))return $(P[x].message),P}if(m&&!I&&Ba(g)){const{value:L,message:D}=Mu(m);if(yy(L)&&!g.match(L)&&(P[x]={type:pi.pattern,message:D,ref:a,...A(pi.pattern,D)},!r))return $(D),P}if(h){if(ys(h)){const L=await h(g,t),D=QM(L,_);if(D&&(P[x]={...D,...A(pi.validate,D.message)},!r))return $(D.message),P}else if(Fr(h)){let L={};for(const D in h){if(!Bn(L)&&!r)break;const z=QM(await h[D](g,t),_,D);z&&(L={...z,...A(D,z.message)},$(z.message),r&&(P[x]=L))}if(!Bn(L)&&(P[x]={ref:_,...L},!r))return P}}return $(!0),P},Vx=(e,t)=>[...e,...io(t)],Wx=e=>Array.isArray(e)?e.map(()=>{}):void 0;function qx(e,t,r){return[...e.slice(0,t),...io(r),...e.slice(t)]}var Hx=(e,t,r)=>Array.isArray(e)?(Vt(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Gx=(e,t)=>[...io(t),...io(e)];function Cbe(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return Od(n).length?n:[]}var Kx=(e,t)=>Vt(t)?[]:Cbe(e,io(t).sort((r,n)=>r-n)),Qx=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function Obe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function Pbe(e){const t=Zo(),{control:r=t.control,name:n,keyName:o="id",shouldUnregister:a}=e,[i,s]=ve.useState(r._getFieldArray(n)),c=ve.useRef(r._getFieldArray(n).map(es)),l=ve.useRef(i),f=ve.useRef(n),v=ve.useRef(!1);f.current=n,l.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),e0({next:({values:P,name:E})=>{if(E===f.current||!E){const T=Ae(P,f.current);Array.isArray(T)&&(s(T),c.current=T.map(es))}},subject:r._subjects.array});const m=ve.useCallback(P=>{v.current=!0,r._updateFieldArray(n,P)},[r,n]),h=(P,E)=>{const T=io(jr(P)),R=Vx(r._getFieldArray(n),T);r._names.focus=Ux(n,R.length-1,E),c.current=Vx(c.current,T.map(es)),m(R),s(R),r._updateFieldArray(n,R,Vx,{argA:Wx(P)})},x=(P,E)=>{const T=io(jr(P)),R=Gx(r._getFieldArray(n),T);r._names.focus=Ux(n,0,E),c.current=Gx(c.current,T.map(es)),m(R),s(R),r._updateFieldArray(n,R,Gx,{argA:Wx(P)})},w=P=>{const E=Kx(r._getFieldArray(n),P);c.current=Kx(c.current,P),m(E),s(E),r._updateFieldArray(n,E,Kx,{argA:P})},C=(P,E,T)=>{const R=io(jr(E)),I=qx(r._getFieldArray(n),P,R);r._names.focus=Ux(n,P,T),c.current=qx(c.current,P,R.map(es)),m(I),s(I),r._updateFieldArray(n,I,qx,{argA:P,argB:Wx(E)})},b=(P,E)=>{const T=r._getFieldArray(n);Qx(T,P,E),Qx(c.current,P,E),m(T),s(T),r._updateFieldArray(n,T,Qx,{argA:P,argB:E},!1)},g=(P,E)=>{const T=r._getFieldArray(n);Hx(T,P,E),Hx(c.current,P,E),m(T),s(T),r._updateFieldArray(n,T,Hx,{argA:P,argB:E},!1)},_=(P,E)=>{const T=jr(E),R=XM(r._getFieldArray(n),P,T);c.current=[...R].map((I,A)=>!I||A===P?es():c.current[A]),m(R),s([...R]),r._updateFieldArray(n,R,XM,{argA:P,argB:T},!0,!1)},$=P=>{const E=io(jr(P));c.current=E.map(es),m([...E]),s([...E]),r._updateFieldArray(n,[...E],T=>T,{},!0,!1)};return ve.useEffect(()=>{if(r._state.action=!1,HS(n,r._names)&&r._subjects.state.next({...r._formState}),v.current&&(!ep(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const E=Ae(P.errors,n),T=Ae(r._formState.errors,n);(T?!E&&T.type||E&&(T.type!==E.type||T.message!==E.message):E&&E.type)&&(E?Lt(r._formState.errors,n,E):wr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=Ae(r._fields,n);P&&P._f&&!(ep(r._options.reValidateMode).isOnSubmit&&ep(r._options.mode).isOnSubmit)&&GS(P,r._formValues,r._options.criteriaMode===Lo.all,r._options.shouldUseNativeValidation,!0).then(E=>!Bn(E)&&r._subjects.state.next({errors:NB(r._formState.errors,E,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Sc(r._fields,(P,E)=>{if(r._names.focus&&E.startsWith(r._names.focus)&&P.focus)return P.focus(),1}),r._names.focus="",r._updateValid(),v.current=!1},[i,n,r]),ve.useEffect(()=>(!Ae(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||a)&&r.unregister(n)}),[n,r,o,a]),{swap:ve.useCallback(b,[m,n,r]),move:ve.useCallback(g,[m,n,r]),prepend:ve.useCallback(x,[m,n,r]),append:ve.useCallback(h,[m,n,r]),remove:ve.useCallback(w,[m,n,r]),insert:ve.useCallback(C,[m,n,r]),update:ve.useCallback(_,[m,n,r]),replace:ve.useCallback($,[m,n,r]),fields:ve.useMemo(()=>i.map((P,E)=>({...P,[o]:c.current[E]||es()})),[i,o])}}var Xx=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},by=e=>Cn(e)||!PB(e);function $l(e,t){if(by(e)||by(t))return e===t;if(fc(e)&&fc(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const a=e[o];if(!n.includes(o))return!1;if(o!=="ref"){const i=t[o];if(fc(a)&&fc(i)||Fr(a)&&Fr(i)||Array.isArray(a)&&Array.isArray(i)?!$l(a,i):a!==i)return!1}}return!0}var zB=e=>e.type==="select-multiple",$be=e=>BP(e)||vv(e),Yx=e=>gy(e)&&e.isConnected,UB=e=>{for(const t in e)if(ys(e[t]))return!0;return!1};function _y(e,t={}){const r=Array.isArray(e);if(Fr(e)||r)for(const n in e)Array.isArray(e[n])||Fr(e[n])&&!UB(e[n])?(t[n]=Array.isArray(e[n])?[]:{},_y(e[n],t[n])):Cn(e[n])||(t[n]=!0);return t}function VB(e,t,r){const n=Array.isArray(e);if(Fr(e)||n)for(const o in e)Array.isArray(e[o])||Fr(e[o])&&!UB(e[o])?Vt(t)||by(r[o])?r[o]=Array.isArray(e[o])?_y(e[o],[]):{..._y(e[o])}:VB(e[o],Cn(t)?{}:t[o],r[o]):r[o]=!$l(e[o],t[o]);return r}var fh=(e,t)=>VB(e,t,_y(t)),WB=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Vt(e)?e:t?e===""?NaN:e&&+e:r&&Ba(e)?new Date(e):n?n(e):e;function Jx(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return DP(t)?t.files:BP(t)?BB(e.refs).value:zB(t)?[...t.selectedOptions].map(({value:r})=>r):vv(t)?DB(e.refs).value:WB(Vt(t.value)?e.ref.value:t.value,e)}var Rbe=(e,t,r,n)=>{const o={};for(const a of e){const i=Ae(t,a);i&&Lt(o,a,i._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},yf=e=>Vt(e)?e:yy(e)?e.source:Fr(e)?yy(e.value)?e.value.source:e.value:e,Tbe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function YM(e,t,r){const n=Ae(e,r);if(n||NP(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const a=o.join("."),i=Ae(t,a),s=Ae(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:r}}var kbe=(e,t,r,n,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:(r?n.isOnChange:o.isOnChange)?e:!0,Ibe=(e,t)=>!Od(Ae(e,t)).length&&wr(e,t);const jbe={mode:Lo.onSubmit,reValidateMode:Lo.onChange,shouldFocusError:!0};function Abe(e={}){let t={...jbe,...e},r={submitCount:0,isDirty:!1,isLoading:ys(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},o=Fr(t.defaultValues)||Fr(t.values)?jr(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:jr(o),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={values:Xx(),array:Xx(),state:Xx()},m=ep(t.mode),h=ep(t.reValidateMode),x=t.criteriaMode===Lo.all,w=V=>X=>{clearTimeout(l),l=setTimeout(V,X)},C=async V=>{if(f.isValid||V){const X=t.resolver?Bn((await R()).errors):await A(n,!0);X!==r.isValid&&v.state.next({isValid:X})}},b=(V,X)=>{(f.isValidating||f.validatingFields)&&((V||Array.from(s.mount)).forEach(Y=>{Y&&(X?Lt(r.validatingFields,Y,X):wr(r.validatingFields,Y))}),v.state.next({validatingFields:r.validatingFields,isValidating:!Bn(r.validatingFields)}))},g=(V,X=[],Y,ie,se=!0,ue=!0)=>{if(ie&&Y){if(i.action=!0,ue&&Array.isArray(Ae(n,V))){const Ee=Y(Ae(n,V),ie.argA,ie.argB);se&&Lt(n,V,Ee)}if(ue&&Array.isArray(Ae(r.errors,V))){const Ee=Y(Ae(r.errors,V),ie.argA,ie.argB);se&&Lt(r.errors,V,Ee),Ibe(r.errors,V)}if(f.touchedFields&&ue&&Array.isArray(Ae(r.touchedFields,V))){const Ee=Y(Ae(r.touchedFields,V),ie.argA,ie.argB);se&&Lt(r.touchedFields,V,Ee)}f.dirtyFields&&(r.dirtyFields=fh(o,a)),v.state.next({name:V,isDirty:L(V,X),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Lt(a,V,X)},_=(V,X)=>{Lt(r.errors,V,X),v.state.next({errors:r.errors})},$=V=>{r.errors=V,v.state.next({errors:r.errors,isValid:!1})},P=(V,X,Y,ie)=>{const se=Ae(n,V);if(se){const ue=Ae(a,V,Vt(Y)?Ae(o,V):Y);Vt(ue)||ie&&ie.defaultChecked||X?Lt(a,V,X?ue:Jx(se._f)):H(V,ue),i.mount&&C()}},E=(V,X,Y,ie,se)=>{let ue=!1,Ee=!1;const Ie={name:V},at=!!(Ae(n,V)&&Ae(n,V)._f.disabled);if(!Y||ie){f.isDirty&&(Ee=r.isDirty,r.isDirty=Ie.isDirty=L(),ue=Ee!==Ie.isDirty);const ot=at||$l(Ae(o,V),X);Ee=!!(!at&&Ae(r.dirtyFields,V)),ot||at?wr(r.dirtyFields,V):Lt(r.dirtyFields,V,!0),Ie.dirtyFields=r.dirtyFields,ue=ue||f.dirtyFields&&Ee!==!ot}if(Y){const ot=Ae(r.touchedFields,V);ot||(Lt(r.touchedFields,V,Y),Ie.touchedFields=r.touchedFields,ue=ue||f.touchedFields&&ot!==Y)}return ue&&se&&v.state.next(Ie),ue?Ie:{}},T=(V,X,Y,ie)=>{const se=Ae(r.errors,V),ue=f.isValid&&va(X)&&r.isValid!==X;if(e.delayError&&Y?(c=w(()=>_(V,Y)),c(e.delayError)):(clearTimeout(l),c=null,Y?Lt(r.errors,V,Y):wr(r.errors,V)),(Y?!$l(se,Y):se)||!Bn(ie)||ue){const Ee={...ie,...ue&&va(X)?{isValid:X}:{},errors:r.errors,name:V};r={...r,...Ee},v.state.next(Ee)}},R=async V=>{b(V,!0);const X=await t.resolver(a,t.context,Rbe(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return b(V),X},I=async V=>{const{errors:X}=await R(V);if(V)for(const Y of V){const ie=Ae(X,Y);ie?Lt(r.errors,Y,ie):wr(r.errors,Y)}else r.errors=X;return X},A=async(V,X,Y={valid:!0})=>{for(const ie in V){const se=V[ie];if(se){const{_f:ue,...Ee}=se;if(ue){const Ie=s.array.has(ue.name);b([ie],!0);const at=await GS(se,a,x,t.shouldUseNativeValidation&&!X,Ie);if(b([ie]),at[ue.name]&&(Y.valid=!1,X))break;!X&&(Ae(at,ue.name)?Ie?NB(r.errors,at,ue.name):Lt(r.errors,ue.name,at[ue.name]):wr(r.errors,ue.name))}Ee&&await A(Ee,X,Y)}}return Y.valid},F=()=>{for(const V of s.unMount){const X=Ae(n,V);X&&(X._f.refs?X._f.refs.every(Y=>!Yx(Y)):!Yx(X._f.ref))&&me(V)}s.unMount=new Set},L=(V,X)=>(V&&X&&Lt(a,V,X),!$l(ne(),o)),D=(V,X,Y)=>MB(V,s,{...i.mount?a:Vt(X)?o:Ba(V)?{[V]:X}:X},Y,X),z=V=>Od(Ae(i.mount?a:o,V,e.shouldUnregister?Ae(o,V,[]):[])),H=(V,X,Y={})=>{const ie=Ae(n,V);let se=X;if(ie){const ue=ie._f;ue&&(!ue.disabled&&Lt(a,V,WB(X,ue)),se=gy(ue.ref)&&Cn(X)?"":X,zB(ue.ref)?[...ue.ref.options].forEach(Ee=>Ee.selected=se.includes(Ee.value)):ue.refs?vv(ue.ref)?ue.refs.length>1?ue.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(se)?!!se.find(Ie=>Ie===Ee.value):se===Ee.value)):ue.refs[0]&&(ue.refs[0].checked=!!se):ue.refs.forEach(Ee=>Ee.checked=Ee.value===se):DP(ue.ref)?ue.ref.value="":(ue.ref.value=se,ue.ref.type||v.values.next({name:V,values:{...a}})))}(Y.shouldDirty||Y.shouldTouch)&&E(V,se,Y.shouldTouch,Y.shouldDirty,!0),Y.shouldValidate&&te(V)},G=(V,X,Y)=>{for(const ie in X){const se=X[ie],ue=`${V}.${ie}`,Ee=Ae(n,ue);(s.array.has(V)||!by(se)||Ee&&!Ee._f)&&!fc(se)?G(ue,se,Y):H(ue,se,Y)}},q=(V,X,Y={})=>{const ie=Ae(n,V),se=s.array.has(V),ue=jr(X);Lt(a,V,ue),se?(v.array.next({name:V,values:{...a}}),(f.isDirty||f.dirtyFields)&&Y.shouldDirty&&v.state.next({name:V,dirtyFields:fh(o,a),isDirty:L(V,ue)})):ie&&!ie._f&&!Cn(ue)?G(V,ue,Y):H(V,ue,Y),HS(V,s)&&v.state.next({...r}),v.values.next({name:i.mount?V:void 0,values:{...a}})},U=async V=>{i.mount=!0;const X=V.target;let Y=X.name,ie=!0;const se=Ae(n,Y),ue=()=>X.type?Jx(se._f):$B(V),Ee=Ie=>{ie=Number.isNaN(Ie)||Ie===Ae(a,Y,Ie)};if(se){let Ie,at;const ot=ue(),Le=V.type===hy.BLUR||V.type===hy.FOCUS_OUT,De=!Tbe(se._f)&&!t.resolver&&!Ae(r.errors,Y)&&!se._f.deps||kbe(Le,Ae(r.touchedFields,Y),r.isSubmitted,h,m),ft=HS(Y,s,Le);Lt(a,Y,ot),Le?(se._f.onBlur&&se._f.onBlur(V),c&&c(0)):se._f.onChange&&se._f.onChange(V);const Et=E(Y,ot,Le,!1),Ot=!Bn(Et)||ft;if(!Le&&v.values.next({name:Y,type:V.type,values:{...a}}),De)return f.isValid&&C(),Ot&&v.state.next({name:Y,...ft?{}:Et});if(!Le&&ft&&v.state.next({...r}),t.resolver){const{errors:Ue}=await R([Y]);if(Ee(ot),ie){const et=YM(r.errors,n,Y),ke=YM(Ue,n,et.name||Y);Ie=ke.error,Y=ke.name,at=Bn(Ue)}}else b([Y],!0),Ie=(await GS(se,a,x,t.shouldUseNativeValidation))[Y],b([Y]),Ee(ot),ie&&(Ie?at=!1:f.isValid&&(at=await A(n,!0)));ie&&(se._f.deps&&te(se._f.deps),T(Y,at,Ie,Et))}},W=(V,X)=>{if(Ae(r.errors,X)&&V.focus)return V.focus(),1},te=async(V,X={})=>{let Y,ie;const se=io(V);if(t.resolver){const ue=await I(Vt(V)?V:se);Y=Bn(ue),ie=V?!se.some(Ee=>Ae(ue,Ee)):Y}else V?(ie=(await Promise.all(se.map(async ue=>{const Ee=Ae(n,ue);return await A(Ee&&Ee._f?{[ue]:Ee}:Ee)}))).every(Boolean),!(!ie&&!r.isValid)&&C()):ie=Y=await A(n);return v.state.next({...!Ba(V)||f.isValid&&Y!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:Y}:{},errors:r.errors}),X.shouldFocus&&!ie&&Sc(n,W,V?se:s.mount),ie},ne=V=>{const X={...o,...i.mount?a:{}};return Vt(V)?X:Ba(V)?Ae(X,V):V.map(Y=>Ae(X,Y))},ee=(V,X)=>({invalid:!!Ae((X||r).errors,V),isDirty:!!Ae((X||r).dirtyFields,V),isTouched:!!Ae((X||r).touchedFields,V),isValidating:!!Ae((X||r).validatingFields,V),error:Ae((X||r).errors,V)}),Ce=V=>{V&&io(V).forEach(X=>wr(r.errors,X)),v.state.next({errors:V?r.errors:{}})},de=(V,X,Y)=>{const ie=(Ae(n,V,{_f:{}})._f||{}).ref;Lt(r.errors,V,{...X,ref:ie}),v.state.next({name:V,errors:r.errors,isValid:!1}),Y&&Y.shouldFocus&&ie&&ie.focus&&ie.focus()},oe=(V,X)=>ys(V)?v.values.subscribe({next:Y=>V(D(void 0,X),Y)}):D(V,X,!0),me=(V,X={})=>{for(const Y of V?io(V):s.mount)s.mount.delete(Y),s.array.delete(Y),X.keepValue||(wr(n,Y),wr(a,Y)),!X.keepError&&wr(r.errors,Y),!X.keepDirty&&wr(r.dirtyFields,Y),!X.keepTouched&&wr(r.touchedFields,Y),!X.keepIsValidating&&wr(r.validatingFields,Y),!t.shouldUnregister&&!X.keepDefaultValue&&wr(o,Y);v.values.next({values:{...a}}),v.state.next({...r,...X.keepDirty?{isDirty:L()}:{}}),!X.keepIsValid&&C()},Re=({disabled:V,name:X,field:Y,fields:ie,value:se})=>{if(va(V)){const ue=V?void 0:Vt(se)?Jx(Y?Y._f:Ae(ie,X)._f):se;Lt(a,X,ue),E(X,ue,!1,!1,!0)}},ye=(V,X={})=>{let Y=Ae(n,V);const ie=va(X.disabled);return Lt(n,V,{...Y||{},_f:{...Y&&Y._f?Y._f:{ref:{name:V}},name:V,mount:!0,...X}}),s.mount.add(V),Y?Re({field:Y,disabled:X.disabled,name:V,value:X.value}):P(V,!0,X.value),{...ie?{disabled:X.disabled}:{},...t.progressive?{required:!!X.required,min:yf(X.min),max:yf(X.max),minLength:yf(X.minLength),maxLength:yf(X.maxLength),pattern:yf(X.pattern)}:{},name:V,onChange:U,onBlur:U,ref:se=>{if(se){ye(V,X),Y=Ae(n,V);const ue=Vt(se.value)&&se.querySelectorAll&&se.querySelectorAll("input,select,textarea")[0]||se,Ee=$be(ue),Ie=Y._f.refs||[];if(Ee?Ie.find(at=>at===ue):ue===Y._f.ref)return;Lt(n,V,{_f:{...Y._f,...Ee?{refs:[...Ie.filter(Yx),ue,...Array.isArray(Ae(o,V))?[{}]:[]],ref:{type:ue.type,name:V}}:{ref:ue}}}),P(V,!1,void 0,ue)}else Y=Ae(n,V,{}),Y._f&&(Y._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(RB(s.array,V)&&i.action)&&s.unMount.add(V)}}},fe=()=>t.shouldFocusError&&Sc(n,W,s.mount),ge=V=>{va(V)&&(v.state.next({disabled:V}),Sc(n,(X,Y)=>{let ie=V;const se=Ae(n,Y);se&&va(se._f.disabled)&&(ie||(ie=se._f.disabled)),X.disabled=ie},0,!1))},ce=(V,X)=>async Y=>{let ie;Y&&(Y.preventDefault&&Y.preventDefault(),Y.persist&&Y.persist());let se=jr(a);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:ue,values:Ee}=await R();r.errors=ue,se=Ee}else await A(n);if(wr(r.errors,"root"),Bn(r.errors)){v.state.next({errors:{}});try{await V(se,Y)}catch(ue){ie=ue}}else X&&await X({...r.errors},Y),fe(),setTimeout(fe);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Bn(r.errors)&&!ie,submitCount:r.submitCount+1,errors:r.errors}),ie)throw ie},pe=(V,X={})=>{Ae(n,V)&&(Vt(X.defaultValue)?q(V,jr(Ae(o,V))):(q(V,X.defaultValue),Lt(o,V,jr(X.defaultValue))),X.keepTouched||wr(r.touchedFields,V),X.keepDirty||(wr(r.dirtyFields,V),r.isDirty=X.defaultValue?L(V,jr(Ae(o,V))):L()),X.keepError||(wr(r.errors,V),f.isValid&&C()),v.state.next({...r}))},ae=(V,X={})=>{const Y=V?jr(V):o,ie=jr(Y),se=Bn(V),ue=se?o:ie;if(X.keepDefaultValues||(o=Y),!X.keepValues){if(X.keepDirtyValues)for(const Ee of s.mount)Ae(r.dirtyFields,Ee)?Lt(ue,Ee,Ae(a,Ee)):q(Ee,Ae(ue,Ee));else{if(LP&&Vt(V))for(const Ee of s.mount){const Ie=Ae(n,Ee);if(Ie&&Ie._f){const at=Array.isArray(Ie._f.refs)?Ie._f.refs[0]:Ie._f.ref;if(gy(at)){const ot=at.closest("form");if(ot){ot.reset();break}}}}n={}}a=e.shouldUnregister?X.keepDefaultValues?jr(o):{}:jr(ue),v.array.next({values:{...ue}}),v.values.next({values:{...ue}})}s={mount:X.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!X.keepIsValid||!!X.keepDirtyValues,i.watch=!!e.shouldUnregister,v.state.next({submitCount:X.keepSubmitCount?r.submitCount:0,isDirty:se?!1:X.keepDirty?r.isDirty:!!(X.keepDefaultValues&&!$l(V,o)),isSubmitted:X.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:se?[]:X.keepDirtyValues?X.keepDefaultValues&&a?fh(o,a):r.dirtyFields:X.keepDefaultValues&&V?fh(o,V):{},touchedFields:X.keepTouched?r.touchedFields:{},errors:X.keepErrors?r.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(V,X)=>ae(ys(V)?V(a):V,X);return{control:{register:ye,unregister:me,getFieldState:ee,handleSubmit:ce,setError:de,_executeSchema:R,_getWatch:D,_getDirty:L,_updateValid:C,_removeUnmounted:F,_updateFieldArray:g,_updateDisabledField:Re,_getFieldArray:z,_reset:ae,_resetDefaultValues:()=>ys(t.defaultValues)&&t.defaultValues().then(V=>{Se(V,t.resetOptions),v.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:ge,_subjects:v,_proxyFormState:f,_setErrors:$,get _fields(){return n},get _formValues(){return a},get _state(){return i},set _state(V){i=V},get _defaultValues(){return o},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:te,register:ye,handleSubmit:ce,watch:oe,setValue:q,getValues:ne,reset:Se,resetField:pe,clearErrors:Ce,unregister:me,setError:de,setFocus:(V,X={})=>{const Y=Ae(n,V),ie=Y&&Y._f;if(ie){const se=ie.refs?ie.refs[0]:ie.ref;se.focus&&(se.focus(),X.shouldSelect&&se.select())}},getFieldState:ee}}function qB(e={}){const t=ve.useRef(),r=ve.useRef(),[n,o]=ve.useState({isDirty:!1,isValidating:!1,isLoading:ys(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ys(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Abe(e),formState:n});const a=t.current.control;return a._options=e,e0({subject:a._subjects.state,next:i=>{jB(i,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),ve.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),ve.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==n.isDirty&&a._subjects.state.next({isDirty:i})}},[a,n.isDirty]),ve.useEffect(()=>{e.values&&!$l(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[e.values,a]),ve.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),ve.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),ve.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=IB(n,a),t.current}var Mbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?T(R):R},{updatedAt:E}),o.setQueriesData([g,"getManyReference"],function(R){return R&&R.data?{data:T(R.data),total:R.total}:R},{updatedAt:E})},w=pd(function(b){var g=b===void 0?{}:b,_=g.resource,$=_===void 0?e:_,P=g.id,E=P===void 0?m.current.id:P,T=g.data,R=T===void 0?m.current.data:T,I=g.meta,A=I===void 0?m.current.meta:I,F=g.previousData,L=F===void 0?m.current.previousData:F;return n.update($,{id:E,data:R,previousData:L,meta:A}).then(function(D){var z=D.data;return z})},Qt(Qt({},f),{onMutate:function(b){return JM(void 0,void 0,void 0,function(){var g;return ZM(this,function(_){switch(_.label){case 0:return f.onMutate?[4,f.onMutate(b)]:[3,2];case 1:return g=_.sent()||{},[2,Qt({snapshot:h.current},g)];case 2:return[2,{snapshot:h.current}]}})})},onError:function(b,g,_){if(g===void 0&&(g={}),(v.current==="optimistic"||v.current==="undoable")&&_.snapshot.forEach(function($){var P=$[0],E=$[1];o.setQueryData(P,E)}),f.onError)return f.onError(b,g,_)},onSuccess:function(b,g,_){if(g===void 0&&(g={}),v.current==="pessimistic"){var $=g.resource,P=$===void 0?e:$,E=g.id,T=E===void 0?a:E;x({resource:P,id:T,data:b}),f.onSuccess&&f.onSuccess(b,g,_)}},onSettled:function(b,g,_,$){if(_===void 0&&(_={}),(v.current==="optimistic"||v.current==="undoable")&&$.snapshot.forEach(function(P){var E=P[0];o.invalidateQueries(E)}),f.onSettled)return f.onSettled(b,g,_,$)}})),C=function(b,g,_){return b===void 0&&(b=e),g===void 0&&(g={}),_===void 0&&(_={}),JM(void 0,void 0,void 0,function(){var $,P,E,T,R,I,A,F,L,D,z,H,G,q;return ZM(this,function(U){switch(U.label){case 0:return $=_.mutationMode,P=_.returnPromise,E=P===void 0?f.returnPromise:P,T=_.onSuccess,R=_.onSettled,I=_.onError,m.current=t,$&&(v.current=$),E&&v.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),v.current==="pessimistic"?E?[2,w.mutateAsync(Qt({resource:b},g),{onSuccess:T,onSettled:R,onError:I})]:[2,w.mutate(Qt({resource:b},g),{onSuccess:T,onSettled:R,onError:I})]:(A=g.id,F=A===void 0?a:A,L=g.data,D=L===void 0?i:L,z=g.meta,H=z===void 0?s:z,G=o.getQueryData([b,"getOne",{id:String(F),meta:H}]),q=[[b,"getOne",{id:String(F),meta:H}],[b,"getList"],[b,"getInfiniteList"],[b,"getMany"],[b,"getManyReference"]],h.current=q.reduce(function(W,te){return W.concat(o.getQueriesData(te))},[]),[4,Promise.all(h.current.map(function(W){var te=W[0];return o.cancelQueries(te)}))]);case 1:return U.sent(),x({resource:b,id:F,data:D}),T&&setTimeout(function(){return T(Qt(Qt({},G),D),Qt({resource:b},g),{snapshot:h.current})},0),f.onSuccess&&setTimeout(function(){return f.onSuccess(Qt(Qt({},G),D),Qt({resource:b},g),{snapshot:h.current})},0),v.current==="optimistic"?[2,w.mutate(Qt({resource:b},g),{onSettled:R,onError:I})]:(Lp.once("end",function(W){var te=W.isUndo;te?h.current.forEach(function(ne){var ee=ne[0],Ce=ne[1];o.setQueryData(ee,Ce)}):w.mutate(Qt({resource:b},g),{onSettled:R,onError:I})}),[2])}})})};return[Zl(C),w]},Nn=function(){return Nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?P(E):E},{updatedAt:$}),o.setQueriesData([b,"getManyReference"],function(E){if(!E||!E.data)return E;var T=P(E.data),R=T.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?$(P):P},{updatedAt:_}),o.setQueriesData([C,"getManyReference"],function(P){if(!P||!P.data)return P;var E=$(P.data),T=E.length0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0||x.customRoutesWithLayout.length>0||x.customRoutesWithoutLayout.length>0?"ready":"empty"),h&&v(h),[2]})})};r||m()},[e,n,r,s,t,i,f]),[a,l]},r0e=function(e){var t=d.useState(e),r=t[0],n=t[1],o=d.useCallback(function(a){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(a.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(a.customRoutesWithoutLayout),resources:i.resources.concat(a.resources)}})},[]);return[r,n,o]},n0e=function(e,t){var r=QB(),n=r.register,o=r.unregister;d.useEffect(function(){return e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(a){if(typeof a.type.registerResource=="function"){var i=a.type.registerResource(a.props,t);o(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,o])},o0e=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return XB(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},XB=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]},Mf=function(e){var t=[],r=[],n=[];return d.Children.forEach(e,function(o){if(d.isValidElement(o)){if(o.type===d.Fragment){var a=Mf(o.props.children);t.push.apply(t,a.customRoutesWithLayout),r.push.apply(r,a.customRoutesWithoutLayout),n.push.apply(n,a.resources)}if(o.type.raName==="CustomRoutes"){var i=o;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else o.type.raName==="Resource"&&n.push(o)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n}},a0e=function(e){rve();var t=Hs(),r=e0e(e.children),n=r.customRoutesWithLayout,o=r.customRoutesWithoutLayout,a=r.status,i=r.resources,s=e.layout,c=e.catchAll,l=e.dashboard,f=e.loading,v=e.menu,m=e.requireAuth,h=e.ready,x=e.title,w=d.useState(!m),C=w[0],b=w[1],g=mz();return d.useEffect(function(){m&&g().then(function(){b(!0)}).catch(function(){})},[g,m]),a==="empty"?d.createElement(h,null):a==="loading"||!C?d.createElement(Ll,null,o,d.createElement(Jr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(f,null))})):d.createElement(Ll,null,o,d.createElement(Jr,{path:"/*",element:d.createElement("div",null,d.createElement(s,{dashboard:l,menu:v,title:x},d.createElement(Ll,null,n,d.Children.map(i,function(_){return d.createElement(Jr,{key:_.props.name,path:"".concat(_.props.name,"/*"),element:_})}),d.createElement(Jr,{path:"/",element:l?d.createElement(D0e,{authParams:i0e,component:l}):i.length>0?d.createElement(qne,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(Jr,{path:"*",element:d.createElement(c,{title:x})}))))}))},i0e={params:{route:"dashboard"}},s0e=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},l0e=function(e){var t=e.catchAll,r=t===void 0?lF:t,n=e.children,o=e.dashboard,a=e.disableTelemetry,i=a===void 0?!1:a,s=e.layout,c=s===void 0?s0e:s,l=e.loading,f=l===void 0?lF:l,v=e.loginPage,m=v===void 0?!1:v,h=e.authCallbackPage,x=h===void 0?!1:h,w=e.menu,C=e.ready,b=C===void 0?O0e:C,g=e.title,_=g===void 0?"React Admin":g,$=e.requireAuth,P=$===void 0?!1:$;return d.useEffect(function(){if(!(i||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var E=new Image;E.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[i]),d.createElement(Ll,null,m!==!1&&m!==!0?d.createElement(Jr,{path:"/login",element:sF(m)}):null,x!==!1&&x!==!0?d.createElement(Jr,{path:"/auth-callback",element:sF(x)}):null,d.createElement(Jr,{path:"/*",element:d.createElement(a0e,{catchAll:r,dashboard:o,layout:c,loading:f,menu:w,requireAuth:P,ready:b,title:_},n)}))},sF=function(e){return d.isValidElement(e)?e:d.createElement(e)},lF=function(){return null},YB=function(e){return null};YB.raName="CustomRoutes";var JB={exports:{}},Bt={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var t0=60103,r0=60106,hv=60107,gv=60108,yv=60114,bv=60109,_v=60110,xv=60112,wv=60113,UP=60120,Sv=60115,Cv=60116,ZB=60121,ez=60122,tz=60117,rz=60129,nz=60131;if(typeof Symbol=="function"&&Symbol.for){var Gr=Symbol.for;t0=Gr("react.element"),r0=Gr("react.portal"),hv=Gr("react.fragment"),gv=Gr("react.strict_mode"),yv=Gr("react.profiler"),bv=Gr("react.provider"),_v=Gr("react.context"),xv=Gr("react.forward_ref"),wv=Gr("react.suspense"),UP=Gr("react.suspense_list"),Sv=Gr("react.memo"),Cv=Gr("react.lazy"),ZB=Gr("react.block"),ez=Gr("react.server.block"),tz=Gr("react.fundamental"),rz=Gr("react.debug_trace_mode"),nz=Gr("react.legacy_hidden")}function Oa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case t0:switch(e=e.type,e){case hv:case yv:case gv:case wv:case UP:return e;default:switch(e=e&&e.$$typeof,e){case _v:case xv:case Cv:case Sv:case bv:return e;default:return t}}case r0:return t}}}var c0e=bv,d0e=t0,f0e=xv,p0e=hv,v0e=Cv,m0e=Sv,h0e=r0,g0e=yv,y0e=gv,b0e=wv;Bt.ContextConsumer=_v;Bt.ContextProvider=c0e;Bt.Element=d0e;Bt.ForwardRef=f0e;Bt.Fragment=p0e;Bt.Lazy=v0e;Bt.Memo=m0e;Bt.Portal=h0e;Bt.Profiler=g0e;Bt.StrictMode=y0e;Bt.Suspense=b0e;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Oa(e)===_v};Bt.isContextProvider=function(e){return Oa(e)===bv};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===t0};Bt.isForwardRef=function(e){return Oa(e)===xv};Bt.isFragment=function(e){return Oa(e)===hv};Bt.isLazy=function(e){return Oa(e)===Cv};Bt.isMemo=function(e){return Oa(e)===Sv};Bt.isPortal=function(e){return Oa(e)===r0};Bt.isProfiler=function(e){return Oa(e)===yv};Bt.isStrictMode=function(e){return Oa(e)===gv};Bt.isSuspense=function(e){return Oa(e)===wv};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hv||e===yv||e===rz||e===gv||e===wv||e===UP||e===nz||typeof e=="object"&&e!==null&&(e.$$typeof===Cv||e.$$typeof===Sv||e.$$typeof===bv||e.$$typeof===_v||e.$$typeof===xv||e.$$typeof===tz||e.$$typeof===ZB||e[0]===ez)};Bt.typeOf=Oa;JB.exports=Bt;var oz=JB.exports,az=d.createContext(void 0),uu=function(e){var t=e.children,r=e.value;return r?d.createElement(az.Provider,{value:r},t):t},Ir=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return d.createElement(uu,{value:o},d.createElement(Ll,null,t&&d.createElement(Jr,{path:"create/*",element:ph(t)}),a&&d.createElement(Jr,{path:":id/show/*",element:ph(a)}),r&&d.createElement(Jr,{path:":id/*",element:ph(r)}),n&&d.createElement(Jr,{path:"/*",element:ph(n)}),e.children))},ph=function(e){return d.isValidElement(e)?e:oz.isValidElementType(e)?d.createElement(e,null):null};Ir.raName="Resource";Ir.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,c=e.recordRepresentation,l=e.hasCreate,f=e.hasEdit,v=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!l,hasEdit:!!r||!!f,hasShow:!!s||!!v,icon:n,recordRepresentation:c}};var iz={exports:{}};/*! + */var t0=60103,r0=60106,hv=60107,gv=60108,yv=60114,bv=60109,_v=60110,xv=60112,wv=60113,UP=60120,Sv=60115,Cv=60116,ZB=60121,ez=60122,tz=60117,rz=60129,nz=60131;if(typeof Symbol=="function"&&Symbol.for){var Gr=Symbol.for;t0=Gr("react.element"),r0=Gr("react.portal"),hv=Gr("react.fragment"),gv=Gr("react.strict_mode"),yv=Gr("react.profiler"),bv=Gr("react.provider"),_v=Gr("react.context"),xv=Gr("react.forward_ref"),wv=Gr("react.suspense"),UP=Gr("react.suspense_list"),Sv=Gr("react.memo"),Cv=Gr("react.lazy"),ZB=Gr("react.block"),ez=Gr("react.server.block"),tz=Gr("react.fundamental"),rz=Gr("react.debug_trace_mode"),nz=Gr("react.legacy_hidden")}function Oa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case t0:switch(e=e.type,e){case hv:case yv:case gv:case wv:case UP:return e;default:switch(e=e&&e.$$typeof,e){case _v:case xv:case Cv:case Sv:case bv:return e;default:return t}}case r0:return t}}}var u0e=bv,c0e=t0,d0e=xv,f0e=hv,p0e=Cv,v0e=Sv,m0e=r0,h0e=yv,g0e=gv,y0e=wv;Bt.ContextConsumer=_v;Bt.ContextProvider=u0e;Bt.Element=c0e;Bt.ForwardRef=d0e;Bt.Fragment=f0e;Bt.Lazy=p0e;Bt.Memo=v0e;Bt.Portal=m0e;Bt.Profiler=h0e;Bt.StrictMode=g0e;Bt.Suspense=y0e;Bt.isAsyncMode=function(){return!1};Bt.isConcurrentMode=function(){return!1};Bt.isContextConsumer=function(e){return Oa(e)===_v};Bt.isContextProvider=function(e){return Oa(e)===bv};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===t0};Bt.isForwardRef=function(e){return Oa(e)===xv};Bt.isFragment=function(e){return Oa(e)===hv};Bt.isLazy=function(e){return Oa(e)===Cv};Bt.isMemo=function(e){return Oa(e)===Sv};Bt.isPortal=function(e){return Oa(e)===r0};Bt.isProfiler=function(e){return Oa(e)===yv};Bt.isStrictMode=function(e){return Oa(e)===gv};Bt.isSuspense=function(e){return Oa(e)===wv};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hv||e===yv||e===rz||e===gv||e===wv||e===UP||e===nz||typeof e=="object"&&e!==null&&(e.$$typeof===Cv||e.$$typeof===Sv||e.$$typeof===bv||e.$$typeof===_v||e.$$typeof===xv||e.$$typeof===tz||e.$$typeof===ZB||e[0]===ez)};Bt.typeOf=Oa;JB.exports=Bt;var oz=JB.exports,az=d.createContext(void 0),uu=function(e){var t=e.children,r=e.value;return r?d.createElement(az.Provider,{value:r},t):t},Ir=function(e){var t=e.create,r=e.edit,n=e.list,o=e.name,a=e.show;return d.createElement(uu,{value:o},d.createElement(Ll,null,t&&d.createElement(Jr,{path:"create/*",element:ph(t)}),a&&d.createElement(Jr,{path:":id/show/*",element:ph(a)}),r&&d.createElement(Jr,{path:":id/*",element:ph(r)}),n&&d.createElement(Jr,{path:"/*",element:ph(n)}),e.children))},ph=function(e){return d.isValidElement(e)?e:oz.isValidElementType(e)?d.createElement(e,null):null};Ir.raName="Resource";Ir.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,c=e.recordRepresentation,l=e.hasCreate,f=e.hasEdit,v=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!l,hasEdit:!!r||!!f,hasShow:!!s||!!v,icon:n,recordRepresentation:c}};var iz={exports:{}};/*! * inflection * Copyright(c) 2011 Ben Lin * MIT Licensed * * @fileoverview * A port of inflection-js to node.js module. - */(function(e,t){(function(r,n){e.exports=n()})(no,function(){var r=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],n={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},o=[[n.plural.men],[n.plural.people],[n.plural.children],[n.plural.tia],[n.plural.analyses],[n.plural.hives],[n.plural.curves],[n.plural.lrves],[n.plural.foves],[n.plural.aeiouyies],[n.plural.series],[n.plural.movies],[n.plural.xes],[n.plural.mice],[n.plural.buses],[n.plural.oes],[n.plural.shoes],[n.plural.crises],[n.plural.octopi],[n.plural.aliases],[n.plural.summonses],[n.plural.oxen],[n.plural.matrices],[n.plural.feet],[n.plural.teeth],[n.plural.geese],[n.plural.quizzes],[n.plural.whereases],[n.plural.criteria],[n.plural.genera],[n.singular.man,"$1en"],[n.singular.person,"$1ople"],[n.singular.child,"$1ren"],[n.singular.ox,"$1en"],[n.singular.axis,"$1es"],[n.singular.octopus,"$1i"],[n.singular.alias,"$1es"],[n.singular.summons,"$1es"],[n.singular.bus,"$1ses"],[n.singular.buffalo,"$1oes"],[n.singular.tium,"$1a"],[n.singular.sis,"ses"],[n.singular.ffe,"$1$2ves"],[n.singular.hive,"$1ves"],[n.singular.aeiouyy,"$1ies"],[n.singular.matrix,"$1ices"],[n.singular.vertex,"$1ices"],[n.singular.x,"$1es"],[n.singular.mouse,"$1ice"],[n.singular.foot,"feet"],[n.singular.tooth,"teeth"],[n.singular.goose,"geese"],[n.singular.quiz,"$1zes"],[n.singular.whereas,"$1es"],[n.singular.criterion,"$1a"],[n.singular.genus,"genera"],[n.singular.s,"s"],[n.singular.common,"s"]],a=[[n.singular.man],[n.singular.person],[n.singular.child],[n.singular.ox],[n.singular.axis],[n.singular.octopus],[n.singular.alias],[n.singular.summons],[n.singular.bus],[n.singular.buffalo],[n.singular.tium],[n.singular.sis],[n.singular.ffe],[n.singular.hive],[n.singular.aeiouyy],[n.singular.x],[n.singular.matrix],[n.singular.mouse],[n.singular.foot],[n.singular.tooth],[n.singular.goose],[n.singular.quiz],[n.singular.whereas],[n.singular.criterion],[n.singular.genus],[n.plural.men,"$1an"],[n.plural.people,"$1rson"],[n.plural.children,"$1"],[n.plural.genera,"genus"],[n.plural.criteria,"$1on"],[n.plural.tia,"$1um"],[n.plural.analyses,"$1$2sis"],[n.plural.hives,"$1ve"],[n.plural.curves,"$1"],[n.plural.lrves,"$1f"],[n.plural.aves,"$1ve"],[n.plural.foves,"$1fe"],[n.plural.movies,"$1ovie"],[n.plural.aeiouyies,"$1y"],[n.plural.series,"$1eries"],[n.plural.xes,"$1"],[n.plural.mice,"$1ouse"],[n.plural.buses,"$1"],[n.plural.oes,"$1"],[n.plural.shoes,"$1"],[n.plural.crises,"$1is"],[n.plural.octopi,"$1us"],[n.plural.aliases,"$1"],[n.plural.summonses,"$1"],[n.plural.oxen,"$1"],[n.plural.matrices,"$1ix"],[n.plural.vertices,"$1ex"],[n.plural.feet,"foot"],[n.plural.teeth,"tooth"],[n.plural.geese,"goose"],[n.plural.quizzes,"$1"],[n.plural.whereases,"$1"],[n.plural.ss,"ss"],[n.plural.s,""]],i=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],s=new RegExp("(_ids|_id)$","g"),c=new RegExp("_","g"),l=new RegExp("[ _]","g"),f=new RegExp("([A-Z])","g"),v=new RegExp("^_"),m={_apply_rules:function(h,x,w,C){if(C)h=C;else{var b=m.indexOf(w,h.toLowerCase())>-1;if(!b){for(var g=0,_=x.length;g<_;g++)if(h.match(x[g][0])){x[g][1]!==void 0&&(h=h.replace(x[g][0],x[g][1]));break}}}return h},indexOf:function(h,x,w,C){w||(w=-1);for(var b=-1,g=w,_=h.length;g<_;g++)if(h[g]===x||C&&C(h[g],x)){b=g;break}return b},pluralize:function(h,x){return m._apply_rules(h,o,r,x)},singularize:function(h,x){return m._apply_rules(h,a,r,x)},inflect:function(h,x,w,C){return x=parseInt(x,10),isNaN(x)?h:x===0||x>1?m._apply_rules(h,o,r,C):m._apply_rules(h,a,r,w)},camelize:function(h,x){for(var w=h.split("/"),C=0,b=w.length,g,_,$,P;C1?ks.pluralize(r):ks.singularize(r))});return a}},Ct=function(e){var t=d.useContext(az);return e&&e.resource||t},Ni=function(e){var t=Ct(e),r=n0(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,c=n.recordRepresentation,l=d.useMemo(function(){return lu({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:c},r[t])},[t,r,o,a,i,s,c]);return l},o0=function(e){var t=Ni({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?vt(r,t):d.isValidElement(t)?t:"#".concat(r.id):""},[t])},je=function(){var e=EP(),t=d.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:x0e},x0e=function(e){return e},sz=function(){var e=je(),t=cz(),r=Ct();return d.useCallback(function(n){var o=n.source,a=n.label,i=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,S0e({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},w0e="en",lz=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=sz();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,a({label:r,resource:n,source:t}),o&&d.createElement("span",{"aria-hidden":"true"}," *"))};lz.displayName="FieldTitle";const Wo=d.memo(lz),S0e=function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var i=C0e(a),s=i.sourceWithoutDigits,c=i.sourceSuffix,l=ks.transform(c.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:l}]:r?["".concat(r,".").concat(s),{_:l}]:["resources.".concat(o,".fields.").concat(s),{_:l}]};var C0e=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){O0e(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},O0e=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};const a0=function(e,t,r){if(e[t]&&!oz.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},E0e=function(){return d.createElement("span",null)},VP=function(e,t){};var P0e=typeof window<"u"?d.useLayoutEffect:d.useEffect,Zl=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return P0e(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:m)});return function(){return v()}},[e,a,t,n,s]);var l=Zl(function(f,v){var m=typeof f=="function"?f(s):f;o(e,typeof m>"u"?typeof v>"u"?t:v:m)});return[s,l]},$0e=function(e){var t=Vb().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},R0e=function(e){var t=Vb().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},T0e=function(){var e=Vb().reset;return e},Ov=function(){var e=Ai(),t=Xo(),r=T0e(),n=Ja(),o=d.useRef(n),a=Lr(),i=d.useRef(a),s=qs(),c=Ma("".concat(s,"/").concat(Ib.loginUrl));d.useEffect(function(){i.current=a,o.current=n},[a,n]);var l=d.useCallback(function(v,m,h){return v===void 0&&(v={}),m===void 0&&(m=c),h===void 0&&(h=!0),e.logout(v).then(function(x){if(x===!1||m===!1){r(),t.clear();return}var w=x||m;if(w!=null&&w.startsWith("http"))return r(),t.clear(),window.location.href=w,w;var C=w.split("?"),b={pathname:C[0]},g={};return h&&i.current&&i.current.pathname&&(g={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),C[1]&&(b.search=C[1]),o.current(b,g),r(),t.clear(),x})},[e,r,c,t]),f=d.useCallback(function(v){return n({pathname:c},{state:{nextPathname:a&&a.pathname}}),r(),t.clear(),Promise.resolve()},[r,a,n,c,t]);return e?l:f},XS=function(){return XS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},YS=function(){return YS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"),Rd(t);var i=pz(t).permissions;if(o)return d.createElement(o,tp({permissions:i},a));if(n)return n(tp({permissions:i},a));if(r)return r(tp({permissions:i},a))};const B0e=D0e;var vz=function(){var e=Ai(),t=Lr(),r=t.state,n=Ja(),o=qs(),a=E5().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,c=Ma("".concat(o,"/").concat(Ib.afterLoginUrl)),l=d.useCallback(function(v,m){return v===void 0&&(v={}),e.login(v).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var x=m||i+s||c;n(x)}return h})},[e,n,i,s,a,c]),f=d.useCallback(function(v,m){return a(),n(c),Promise.resolve()},[n,a,c]);return e?l:f},z0e="AUTH_LOGIN",U0e="AUTH_CHECK",V0e="AUTH_ERROR",W0e="AUTH_LOGOUT",q0e="AUTH_GET_PERMISSIONS";const H0e=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},JS=function(){return JS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return pn(r&&e?"".concat(r,".").concat(e):r??e,t)},WP=function(){return d.useContext(GB)},n1e=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]a.current&&t&&(a.current=n,Object.keys(o).length>0&&i("ra.message.invalid_form",{type:"error"}))},[o,n,i,t])},x1e=function(e,t,r){var n=d.useContext(Fi).navigator,o=Lr(),a=je(),i=Ed(r?{control:r}:void 0),s=i.isSubmitSuccessful,c=i.isSubmitting,l=i.dirtyFields,f=Object.keys(l).length>0,v=d.useRef(t||o.pathname);d.useEffect(function(){if(!(!e||!f)&&n.block){var m=n.block(function(h){var x=h.location.pathname.startsWith(v.current),w=h.location.pathname.startsWith("".concat(v.current,"/show")),C=x&&!w;!c&&(C||s||window.confirm(a("ra.message.unsaved_changes")))?(m(),h.retry()):c&&setTimeout(function(){h.retry()},100)});return m}},[e,o,n,f,c,s,a])},w1e=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},nC=function(){return nC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gs=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function $1e(e){return e?e.hasOwnProperty("message"):!1}var Ks=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Qs=function(e){return s5(e,function(){for(var t=[],r=0;re?Ks(t,{max:e},r,n):void 0}});Qs(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gs(r)&&re?Ks(t,{max:e},r,n):void 0}}),Cz=Qs(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gs(t)&&isNaN(Number(t))?Ks(e,void 0,t,r):void 0}}),qP=s5(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gs(r)&&typeof r=="string"&&!e.test(r)?Ks(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Qs(function(e){return e===void 0&&(e="ra.validation.email"),qP(P1e,e)});var j1e=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Qs(function(e,t){return t===void 0&&(t=j1e),function(r,n){return!Gs(r)&&e.indexOf(r)===-1?Ks(t,{list:e},r,n):void 0}});var A1e=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},Oz=d.createContext(void 0),s0=function(){var e=d.useContext(bz);return e},M1e=function(e){var t=e.children,r=e.name,n=s0();return d.useEffect(function(){if(!n||!n.registerGroup||!n.unregisterGroup){console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components");return}return n.registerGroup(r),function(){n.unregisterGroup(r)}},[n,r]),d.createElement(Oz.Provider,{value:r},t)},Ez=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=ht(t),s=Zo(),c=s.getValues,l=s.resetField,f=s.getFieldState,v=s.formState,m=s.reset,h=vt(i,a),x=vt(c(),a),w=f(a,v).isDirty;d.useEffect(function(){if(!(o==null||x!=null||h!=null||w)){var C=a.split(".").some(function(_){return F1e.test(_)});if(C){var b=a.split(".").slice(0,-1).join("."),g=vt(c(),b);if(g==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(o),m({},{keepValues:!0});return}l(a,{defaultValue:o})}})},F1e=/^\d+$/,Pz=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,o=n===void 0?"id":n,a=e.disableValue,i=a===void 0?"disabled":a,s=e.translateChoice,c=s===void 0?!0:s,l=je(),f=d.useCallback(function(h){if(d.isValidElement(r))return d.createElement(Ls,{value:h},r);var x=typeof r=="function"?r(h):vt(h,r);return d.isValidElement(x)?x:c?l(String(x),{_:x}):String(x)},[r,l,c]),v=d.useCallback(function(h){return vt(h,o)},[o]),m=d.useCallback(function(h){return vt(h,i)},[i]);return{getChoiceText:f,getChoiceValue:v,getDisableValue:m}},L1e=function(e){var t=Ed(),r=t.dirtyFields,n=t.touchedFields,o=t.errors,a=s0(),i=d.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0}),s=i[0],c=i[1],l=d.useCallback(function(){var f=a.getGroupFields(e),v=f.map(function(h){return{name:h,error:vt(o,h,void 0),isDirty:vt(r,h,!1)!==!1,isValid:vt(o,h,void 0)==null,isTouched:vt(n,h,!1)!==!1}}).filter(function(h){return h!=null}),m=N1e(v);c(function(h){return Bo(h,m)?h:m})},[r,o,n,a,e]);return d.useEffect(function(){l()},[JSON.stringify({dirtyFields:r,errors:o,touchedFields:n}),l]),d.useEffect(function(){return a.subscribe(e,function(){l()})},[a,e,l]),s},N1e=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var o={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid};return o},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1})},$z=function(){var e=d.useContext(Oz);return e},aC=function(){return aC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=0)&&(r[o]=e[o]);return r}function Rz(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var n_e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o_e=Rz(function(e){return n_e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function a_e(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yr(Td,--Kn):0,Kc--,Cr===10&&(Kc=1,u0--),Cr}function co(){return Cr=Kn2||Up(Cr)>3?"":" "}function y_e(e,t){for(;--t&&co()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return Pv(e,tg()+(t<6&&Va()==32&&co()==32))}function sC(e){for(;co();)switch(Cr){case e:return Kn;case 34:case 39:e!==34&&e!==39&&sC(Cr);break;case 40:e===41&&sC(e);break;case 92:co();break}return Kn}function b_e(e,t){for(;co()&&e+Cr!==57;)if(e+Cr===84&&Va()===47)break;return"/*"+Pv(t,Kn-1)+"*"+l0(e===47?e:co())}function __e(e){for(;!Up(Va());)co();return Pv(e,Kn)}function x_e(e){return Mz(ng("",null,null,null,[""],e=Az(e),0,[0],e))}function ng(e,t,r,n,o,a,i,s,c){for(var l=0,f=0,v=i,m=0,h=0,x=0,w=1,C=1,b=1,g=0,_="",$=o,P=a,E=n,T=_;C;)switch(x=g,g=co()){case 40:if(x!=108&&Yr(T,v-1)==58){iC(T+=Rt(rg(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=rg(g);break;case 9:case 10:case 13:case 32:T+=g_e(x);break;case 92:T+=y_e(tg()-1,7);continue;case 47:switch(Va()){case 42:case 47:vh(w_e(b_e(co(),tg()),t,r),c);break;default:T+="/"}break;case 123*w:s[l++]=Fa(T)*b;case 125*w:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:b==-1&&(T=Rt(T,/\f/g,"")),h>0&&Fa(T)-v&&vh(h>32?pF(T+";",n,r,v-1):pF(Rt(T," ","")+";",n,r,v-2),c);break;case 59:T+=";";default:if(vh(E=fF(T,t,r,l,f,o,s,_,$=[],P=[],v),a),g===123)if(f===0)ng(T,t,E,E,$,a,v,s,P);else switch(m===99&&Yr(T,3)===110?100:m){case 100:case 108:case 109:case 115:ng(e,E,E,n&&vh(fF(e,E,E,0,0,o,s,_,o,$=[],v),P),o,P,v,s,n?$:P);break;default:ng(T,E,E,E,[""],P,0,s,P)}}l=f=h=0,w=b=1,_=T="",v=i;break;case 58:v=1+Fa(T),h=x;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&h_e()==125)continue}switch(T+=l0(g),g*w){case 38:b=f>0?1:(T+="\f",-1);break;case 44:s[l++]=(Fa(T)-1)*b,b=1;break;case 64:Va()===45&&(T+=rg(co())),m=Va(),f=v=Fa(_=T+=__e(tg())),g++;break;case 45:x===45&&Fa(T)==2&&(w=0)}}return a}function fF(e,t,r,n,o,a,i,s,c,l,f){for(var v=o-1,m=o===0?a:[""],h=KP(m),x=0,w=0,C=0;x0?m[b]+" "+g:Rt(g,/&\f/g,m[b])))&&(c[C++]=_);return c0(e,t,r,o===0?HP:s,c,l,f)}function w_e(e,t,r){return c0(e,t,r,Tz,l0(m_e()),zp(e,2,-2),0)}function pF(e,t,r,n){return c0(e,t,r,GP,zp(e,0,n),zp(e,n+1,-1),n)}function Cc(e,t){for(var r="",n=KP(e),o=0;o6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Oy+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~iC(e,"stretch")?Fz(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yr(e,t+1)!==115)break;case 6444:switch(Yr(e,Fa(e)-3-(~iC(e,"!important")&&10))){case 107:return Rt(e,":",":"+$t)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(Yr(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+ln+"$2box$3")+e}break;case 5936:switch(Yr(e,t+11)){case 114:return $t+e+ln+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+ln+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+ln+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+ln+e+e}return e}var k_e=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case GP:t.return=Fz(t.value,t.length);break;case kz:return Cc([_f(t,{value:Rt(t.value,"@","@"+$t)})],o);case HP:if(t.length)return v_e(t.props,function(a){switch(p_e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cc([_f(t,{props:[Rt(a,/:(read-\w+)/,":"+Oy+"$1")]})],o);case"::placeholder":return Cc([_f(t,{props:[Rt(a,/:(plac\w+)/,":"+$t+"input-$1")]}),_f(t,{props:[Rt(a,/:(plac\w+)/,":"+Oy+"$1")]}),_f(t,{props:[Rt(a,/:(plac\w+)/,ln+"input-$1")]})],o)}return""})}},I_e=[k_e],Lz=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var C=w.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||I_e,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var C=w.getAttribute("data-emotion").split(" "),b=1;b-1;if(!b){for(var g=0,_=x.length;g<_;g++)if(h.match(x[g][0])){x[g][1]!==void 0&&(h=h.replace(x[g][0],x[g][1]));break}}}return h},indexOf:function(h,x,w,C){w||(w=-1);for(var b=-1,g=w,_=h.length;g<_;g++)if(h[g]===x||C&&C(h[g],x)){b=g;break}return b},pluralize:function(h,x){return m._apply_rules(h,o,r,x)},singularize:function(h,x){return m._apply_rules(h,a,r,x)},inflect:function(h,x,w,C){return x=parseInt(x,10),isNaN(x)?h:x===0||x>1?m._apply_rules(h,o,r,C):m._apply_rules(h,a,r,w)},camelize:function(h,x){for(var w=h.split("/"),C=0,b=w.length,g,_,$,P;C1?ks.pluralize(r):ks.singularize(r))});return a}},Ct=function(e){var t=d.useContext(az);return e&&e.resource||t},Ni=function(e){var t=Ct(e),r=n0(),n=e||{},o=n.hasCreate,a=n.hasEdit,i=n.hasList,s=n.hasShow,c=n.recordRepresentation,l=d.useMemo(function(){return lu({},{hasCreate:o,hasEdit:a,hasList:i,hasShow:s,recordRepresentation:c},r[t])},[t,r,o,a,i,s,c]);return l},o0=function(e){var t=Ni({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?vt(r,t):d.isValidElement(t)?t:"#".concat(r.id):""},[t])},je=function(){var e=EP(),t=d.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:_0e},_0e=function(e){return e},sz=function(){var e=je(),t=cz(),r=Ct();return d.useCallback(function(n){var o=n.source,a=n.label,i=n.resource;return a===!1||a===""?null:a&&typeof a!="string"?a:e.apply(void 0,w0e({label:a,prefix:t,resource:i,resourceFromContext:r,source:o}))},[t,r,e])},x0e="en",lz=function(e){var t=e.source,r=e.label,n=e.resource,o=e.isRequired,a=sz();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r&&typeof r!="string"?r:d.createElement("span",null,a({label:r,resource:n,source:t}),o&&d.createElement("span",{"aria-hidden":"true"}," *"))};lz.displayName="FieldTitle";const Wo=d.memo(lz),w0e=function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof a>"u")return[""];var i=S0e(a),s=i.sourceWithoutDigits,c=i.sourceSuffix,l=ks.transform(c.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:l}]:r?["".concat(r,".").concat(s),{_:l}]:["resources.".concat(o,".fields.").concat(s),{_:l}]};var S0e=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(a,i){C0e(a)&&(n=i)});var o=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:o}},C0e=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};const a0=function(e,t,r){if(e[t]&&!oz.isValidElementType(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},O0e=function(){return d.createElement("span",null)},VP=function(e,t){};var E0e=typeof window<"u"?d.useLayoutEffect:d.useEffect,Zl=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return E0e(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:m)});return function(){return v()}},[e,a,t,n,s]);var l=Zl(function(f,v){var m=typeof f=="function"?f(s):f;o(e,typeof m>"u"?typeof v>"u"?t:v:m)});return[s,l]},P0e=function(e){var t=Vb().removeItem;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},$0e=function(e){var t=Vb().removeItems;return d.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},R0e=function(){var e=Vb().reset;return e},Ov=function(){var e=Ai(),t=Xo(),r=R0e(),n=Ja(),o=d.useRef(n),a=Lr(),i=d.useRef(a),s=qs(),c=Ma("".concat(s,"/").concat(Ib.loginUrl));d.useEffect(function(){i.current=a,o.current=n},[a,n]);var l=d.useCallback(function(v,m,h){return v===void 0&&(v={}),m===void 0&&(m=c),h===void 0&&(h=!0),e.logout(v).then(function(x){if(x===!1||m===!1){r(),t.clear();return}var w=x||m;if(w!=null&&w.startsWith("http"))return r(),t.clear(),window.location.href=w,w;var C=w.split("?"),b={pathname:C[0]},g={};return h&&i.current&&i.current.pathname&&(g={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),C[1]&&(b.search=C[1]),o.current(b,g),r(),t.clear(),x})},[e,r,c,t]),f=d.useCallback(function(v){return n({pathname:c},{state:{nextPathname:a&&a.pathname}}),r(),t.clear(),Promise.resolve()},[r,a,n,c,t]);return e?l:f},XS=function(){return XS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},YS=function(){return YS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"),Rd(t);var i=pz(t).permissions;if(o)return d.createElement(o,tp({permissions:i},a));if(n)return n(tp({permissions:i},a));if(r)return r(tp({permissions:i},a))};const D0e=N0e;var vz=function(){var e=Ai(),t=Lr(),r=t.state,n=Ja(),o=qs(),a=E5().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,c=Ma("".concat(o,"/").concat(Ib.afterLoginUrl)),l=d.useCallback(function(v,m){return v===void 0&&(v={}),e.login(v).then(function(h){if(a(),h&&h.hasOwnProperty("redirectTo"))h&&n(h.redirectTo);else{var x=m||i+s||c;n(x)}return h})},[e,n,i,s,a,c]),f=d.useCallback(function(v,m){return a(),n(c),Promise.resolve()},[n,a,c]);return e?l:f},B0e="AUTH_LOGIN",z0e="AUTH_CHECK",U0e="AUTH_ERROR",V0e="AUTH_LOGOUT",W0e="AUTH_GET_PERMISSIONS";const q0e=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},JS=function(){return JS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return pn(r&&e?"".concat(r,".").concat(e):r??e,t)},WP=function(){return d.useContext(GB)},r1e=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]a.current&&t&&(a.current=n,Object.keys(o).length>0&&i("ra.message.invalid_form",{type:"error"}))},[o,n,i,t])},_1e=function(e,t,r){var n=d.useContext(Fi).navigator,o=Lr(),a=je(),i=Ed(r?{control:r}:void 0),s=i.isSubmitSuccessful,c=i.isSubmitting,l=i.dirtyFields,f=Object.keys(l).length>0,v=d.useRef(t||o.pathname);d.useEffect(function(){if(!(!e||!f)&&n.block){var m=n.block(function(h){var x=h.location.pathname.startsWith(v.current),w=h.location.pathname.startsWith("".concat(v.current,"/show")),C=x&&!w;!c&&(C||s||window.confirm(a("ra.message.unsaved_changes")))?(m(),h.retry()):c&&setTimeout(function(){h.retry()},100)});return m}},[e,o,n,f,c,s,a])},x1e=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},nC=function(){return nC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gs=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function P1e(e){return e?e.hasOwnProperty("message"):!1}var Ks=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Qs=function(e){return s5(e,function(){for(var t=[],r=0;re?Ks(t,{max:e},r,n):void 0}});Qs(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gs(r)&&re?Ks(t,{max:e},r,n):void 0}}),Cz=Qs(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gs(t)&&isNaN(Number(t))?Ks(e,void 0,t,r):void 0}}),qP=s5(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gs(r)&&typeof r=="string"&&!e.test(r)?Ks(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Qs(function(e){return e===void 0&&(e="ra.validation.email"),qP(E1e,e)});var I1e=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Qs(function(e,t){return t===void 0&&(t=I1e),function(r,n){return!Gs(r)&&e.indexOf(r)===-1?Ks(t,{list:e},r,n):void 0}});var j1e=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},Oz=d.createContext(void 0),s0=function(){var e=d.useContext(bz);return e},A1e=function(e){var t=e.children,r=e.name,n=s0();return d.useEffect(function(){if(!n||!n.registerGroup||!n.unregisterGroup){console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components");return}return n.registerGroup(r),function(){n.unregisterGroup(r)}},[n,r]),d.createElement(Oz.Provider,{value:r},t)},Ez=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,o=t.defaultValue,a=t.source,i=ht(t),s=Zo(),c=s.getValues,l=s.resetField,f=s.getFieldState,v=s.formState,m=s.reset,h=vt(i,a),x=vt(c(),a),w=f(a,v).isDirty;d.useEffect(function(){if(!(o==null||x!=null||h!=null||w)){var C=a.split(".").some(function(_){return M1e.test(_)});if(C){var b=a.split(".").slice(0,-1).join("."),g=vt(c(),b);if(g==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(o),m({},{keepValues:!0});return}l(a,{defaultValue:o})}})},M1e=/^\d+$/,Pz=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,o=n===void 0?"id":n,a=e.disableValue,i=a===void 0?"disabled":a,s=e.translateChoice,c=s===void 0?!0:s,l=je(),f=d.useCallback(function(h){if(d.isValidElement(r))return d.createElement(Ls,{value:h},r);var x=typeof r=="function"?r(h):vt(h,r);return d.isValidElement(x)?x:c?l(String(x),{_:x}):String(x)},[r,l,c]),v=d.useCallback(function(h){return vt(h,o)},[o]),m=d.useCallback(function(h){return vt(h,i)},[i]);return{getChoiceText:f,getChoiceValue:v,getDisableValue:m}},F1e=function(e){var t=Ed(),r=t.dirtyFields,n=t.touchedFields,o=t.errors,a=s0(),i=d.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0}),s=i[0],c=i[1],l=d.useCallback(function(){var f=a.getGroupFields(e),v=f.map(function(h){return{name:h,error:vt(o,h,void 0),isDirty:vt(r,h,!1)!==!1,isValid:vt(o,h,void 0)==null,isTouched:vt(n,h,!1)!==!1}}).filter(function(h){return h!=null}),m=L1e(v);c(function(h){return Bo(h,m)?h:m})},[r,o,n,a,e]);return d.useEffect(function(){l()},[JSON.stringify({dirtyFields:r,errors:o,touchedFields:n}),l]),d.useEffect(function(){return a.subscribe(e,function(){l()})},[a,e,l]),s},L1e=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var o={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid};return o},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1})},$z=function(){var e=d.useContext(Oz);return e},aC=function(){return aC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=0)&&(r[o]=e[o]);return r}function Rz(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var r_e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,n_e=Rz(function(e){return r_e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function o_e(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yr(Td,--Kn):0,Kc--,Cr===10&&(Kc=1,u0--),Cr}function co(){return Cr=Kn2||Up(Cr)>3?"":" "}function g_e(e,t){for(;--t&&co()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return Pv(e,tg()+(t<6&&Va()==32&&co()==32))}function sC(e){for(;co();)switch(Cr){case e:return Kn;case 34:case 39:e!==34&&e!==39&&sC(Cr);break;case 40:e===41&&sC(e);break;case 92:co();break}return Kn}function y_e(e,t){for(;co()&&e+Cr!==57;)if(e+Cr===84&&Va()===47)break;return"/*"+Pv(t,Kn-1)+"*"+l0(e===47?e:co())}function b_e(e){for(;!Up(Va());)co();return Pv(e,Kn)}function __e(e){return Mz(ng("",null,null,null,[""],e=Az(e),0,[0],e))}function ng(e,t,r,n,o,a,i,s,c){for(var l=0,f=0,v=i,m=0,h=0,x=0,w=1,C=1,b=1,g=0,_="",$=o,P=a,E=n,T=_;C;)switch(x=g,g=co()){case 40:if(x!=108&&Yr(T,v-1)==58){iC(T+=Rt(rg(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=rg(g);break;case 9:case 10:case 13:case 32:T+=h_e(x);break;case 92:T+=g_e(tg()-1,7);continue;case 47:switch(Va()){case 42:case 47:vh(x_e(y_e(co(),tg()),t,r),c);break;default:T+="/"}break;case 123*w:s[l++]=Fa(T)*b;case 125*w:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:b==-1&&(T=Rt(T,/\f/g,"")),h>0&&Fa(T)-v&&vh(h>32?pF(T+";",n,r,v-1):pF(Rt(T," ","")+";",n,r,v-2),c);break;case 59:T+=";";default:if(vh(E=fF(T,t,r,l,f,o,s,_,$=[],P=[],v),a),g===123)if(f===0)ng(T,t,E,E,$,a,v,s,P);else switch(m===99&&Yr(T,3)===110?100:m){case 100:case 108:case 109:case 115:ng(e,E,E,n&&vh(fF(e,E,E,0,0,o,s,_,o,$=[],v),P),o,P,v,s,n?$:P);break;default:ng(T,E,E,E,[""],P,0,s,P)}}l=f=h=0,w=b=1,_=T="",v=i;break;case 58:v=1+Fa(T),h=x;default:if(w<1){if(g==123)--w;else if(g==125&&w++==0&&m_e()==125)continue}switch(T+=l0(g),g*w){case 38:b=f>0?1:(T+="\f",-1);break;case 44:s[l++]=(Fa(T)-1)*b,b=1;break;case 64:Va()===45&&(T+=rg(co())),m=Va(),f=v=Fa(_=T+=b_e(tg())),g++;break;case 45:x===45&&Fa(T)==2&&(w=0)}}return a}function fF(e,t,r,n,o,a,i,s,c,l,f){for(var v=o-1,m=o===0?a:[""],h=KP(m),x=0,w=0,C=0;x0?m[b]+" "+g:Rt(g,/&\f/g,m[b])))&&(c[C++]=_);return c0(e,t,r,o===0?HP:s,c,l,f)}function x_e(e,t,r){return c0(e,t,r,Tz,l0(v_e()),zp(e,2,-2),0)}function pF(e,t,r,n){return c0(e,t,r,GP,zp(e,0,n),zp(e,n+1,-1),n)}function Cc(e,t){for(var r="",n=KP(e),o=0;o6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Oy+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~iC(e,"stretch")?Fz(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yr(e,t+1)!==115)break;case 6444:switch(Yr(e,Fa(e)-3-(~iC(e,"!important")&&10))){case 107:return Rt(e,":",":"+$t)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(Yr(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+ln+"$2box$3")+e}break;case 5936:switch(Yr(e,t+11)){case 114:return $t+e+ln+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+ln+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+ln+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+ln+e+e}return e}var T_e=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case GP:t.return=Fz(t.value,t.length);break;case kz:return Cc([_f(t,{value:Rt(t.value,"@","@"+$t)})],o);case HP:if(t.length)return p_e(t.props,function(a){switch(f_e(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cc([_f(t,{props:[Rt(a,/:(read-\w+)/,":"+Oy+"$1")]})],o);case"::placeholder":return Cc([_f(t,{props:[Rt(a,/:(plac\w+)/,":"+$t+"input-$1")]}),_f(t,{props:[Rt(a,/:(plac\w+)/,":"+Oy+"$1")]}),_f(t,{props:[Rt(a,/:(plac\w+)/,ln+"input-$1")]})],o)}return""})}},k_e=[T_e],Lz=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var C=w.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||k_e,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var C=w.getAttribute("data-emotion").split(" "),b=1;b=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var W_e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},q_e=/[A-Z]|^ms/g,H_e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wz=function(t){return t.charCodeAt(1)===45},mF=function(t){return t!=null&&typeof t!="boolean"},tw=Rz(function(e){return Wz(e)?e:e.replace(q_e,"-$&").toLowerCase()}),hF=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(H_e,function(n,o,a){return La={name:o,styles:a,next:La},o})}return W_e[t]!==1&&!Wz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Vp(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return La={name:r.name,styles:r.styles,next:La},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)La={name:n.name,styles:n.styles,next:La},n=n.next;var o=r.styles+";";return o}return G_e(e,t,r)}case"function":{if(e!==void 0){var a=La,i=r(e);return La=a,Vp(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function G_e(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?J_e:Z_e},_F=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},exe=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Uz(r,n,o),Q_e(function(){return Vz(r,n,o)}),null},txe=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=_F(t,r,n),c=s||bF(o),l=!c("as");return function(){var f=arguments,v=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&v.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)v.push.apply(v,f);else{v.push(f[0][0]);for(var m=f.length,h=1;ht(uxe(o)?r:o):t;return S.jsx(Y_e,{styles:n})}function ZP(e,t){return lC(e,t)}const Jz=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},cxe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Yz,StyledEngineProvider:lxe,ThemeContext:$v,css:cu,default:ZP,internal_processStyles:Jz,keyframes:Di},Symbol.toStringTag,{value:"Module"}));function bi(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 Zz(e){if(!bi(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Zz(e[r])}),t}function $n(e,t,r={clone:!0}){const n=r.clone?j({},e):e;return bi(e)&&bi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(bi(t[o])&&o in e&&bi(e[o])?n[o]=$n(e[o],t[o],r):r.clone?n[o]=bi(t[o])?Zz(t[o]):t[o]:n[o]=t[o])}),n}const dxe=Object.freeze(Object.defineProperty({__proto__:null,default:$n,isPlainObject:bi},Symbol.toStringTag,{value:"Module"})),fxe=["values","unit","step"],pxe=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>j({},r,{[n.key]:n.val}),{})};function e6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=we(e,fxe),a=pxe(t),i=Object.keys(a);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function l(m,h){const x=i.indexOf(h);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:h)-n/100}${r})`}function f(m){return i.indexOf(m)+1`@media (min-width:${e$[e]}px)`};function xa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||xF;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||xF;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||e$).indexOf(s)!==-1){const c=a.up(s);i[c]=r(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return r(t)}function t6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function r6(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function hxe(e,...t){const r=t6(e),n=[r,...t].reduce((o,a)=>$n(o,a),{});return r6(Object.keys(r),n)}function gxe(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function rw({values:e,breakpoints:t,base:r}){const n=r||gxe(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,c)=>(Array.isArray(e)?(i[s]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function xe(e){if(typeof e!="string")throw new Error(Ri(7));return e.charAt(0).toUpperCase()+e.slice(1)}const yxe=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"}));function Qc(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ey(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Qc(e,r)||n,t&&(o=t(o,n,e)),o}function yr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=Qc(c,n)||{};return xa(i,s,v=>{let m=Ey(l,o,v);return v===m&&typeof v=="string"&&(m=Ey(l,o,`${t}${v==="default"?"":xe(v)}`,v)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[t],a}function bxe(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const _xe={m:"margin",p:"padding"},xxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wF={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wxe=bxe(e=>{if(e.length>2)if(wF[e])e=wF[e];else return[e];const[t,r]=e.split(""),n=_xe[t],o=xxe[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),t$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],r$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...t$,...r$];function Rv(e,t,r,n){var o;const a=(o=Qc(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function n$(e){return Rv(e,"spacing",8)}function tu(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 Sxe(e,t){return r=>e.reduce((n,o)=>(n[o]=tu(t,r),n),{})}function Cxe(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=wxe(r),a=Sxe(o,n),i=e[r];return xa(e,i,a)}function n6(e,t){const r=n$(e.theme);return Object.keys(e).map(n=>Cxe(e,t,n,r)).reduce(rp,{})}function ur(e){return n6(e,t$)}ur.propTypes={};ur.filterProps=t$;function cr(e){return n6(e,r$)}cr.propTypes={};cr.filterProps=r$;function Oxe(e=8){if(e.mui)return e;const t=n$({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function x0(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?rp(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Mo(e){return typeof e!="number"?e:`${e}px solid`}function ea(e,t){return yr({prop:e,themeKey:"borders",transform:t})}const Exe=ea("border",Mo),Pxe=ea("borderTop",Mo),$xe=ea("borderRight",Mo),Rxe=ea("borderBottom",Mo),Txe=ea("borderLeft",Mo),kxe=ea("borderColor"),Ixe=ea("borderTopColor"),jxe=ea("borderRightColor"),Axe=ea("borderBottomColor"),Mxe=ea("borderLeftColor"),Fxe=ea("outline",Mo),Lxe=ea("outlineColor"),w0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:tu(t,n)});return xa(e,e.borderRadius,r)}return null};w0.propTypes={};w0.filterProps=["borderRadius"];x0(Exe,Pxe,$xe,Rxe,Txe,kxe,Ixe,jxe,Axe,Mxe,w0,Fxe,Lxe);const S0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({gap:tu(t,n)});return xa(e,e.gap,r)}return null};S0.propTypes={};S0.filterProps=["gap"];const C0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({columnGap:tu(t,n)});return xa(e,e.columnGap,r)}return null};C0.propTypes={};C0.filterProps=["columnGap"];const O0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({rowGap:tu(t,n)});return xa(e,e.rowGap,r)}return null};O0.propTypes={};O0.filterProps=["rowGap"];const Nxe=yr({prop:"gridColumn"}),Dxe=yr({prop:"gridRow"}),Bxe=yr({prop:"gridAutoFlow"}),zxe=yr({prop:"gridAutoColumns"}),Uxe=yr({prop:"gridAutoRows"}),Vxe=yr({prop:"gridTemplateColumns"}),Wxe=yr({prop:"gridTemplateRows"}),qxe=yr({prop:"gridTemplateAreas"}),Hxe=yr({prop:"gridArea"});x0(S0,C0,O0,Nxe,Dxe,Bxe,zxe,Uxe,Vxe,Wxe,qxe,Hxe);function Oc(e,t){return t==="grey"?t:e}const Gxe=yr({prop:"color",themeKey:"palette",transform:Oc}),Kxe=yr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oc}),Qxe=yr({prop:"backgroundColor",themeKey:"palette",transform:Oc});x0(Gxe,Kxe,Qxe);function oo(e){return e<=1&&e!==0?`${e*100}%`:e}const Xxe=yr({prop:"width",transform:oo}),o$=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||e$[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:oo(r)}};return xa(e,e.maxWidth,t)}return null};o$.filterProps=["maxWidth"];const Yxe=yr({prop:"minWidth",transform:oo}),Jxe=yr({prop:"height",transform:oo}),Zxe=yr({prop:"maxHeight",transform:oo}),ewe=yr({prop:"minHeight",transform:oo});yr({prop:"size",cssProperty:"width",transform:oo});yr({prop:"size",cssProperty:"height",transform:oo});const twe=yr({prop:"boxSizing"});x0(Xxe,o$,Yxe,Jxe,Zxe,ewe,twe);const rwe={border:{themeKey:"borders",transform:Mo},borderTop:{themeKey:"borders",transform:Mo},borderRight:{themeKey:"borders",transform:Mo},borderBottom:{themeKey:"borders",transform:Mo},borderLeft:{themeKey:"borders",transform:Mo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w0},color:{themeKey:"palette",transform:Oc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oc},backgroundColor:{themeKey:"palette",transform:Oc},p:{style:cr},pt:{style:cr},pr:{style:cr},pb:{style:cr},pl:{style:cr},px:{style:cr},py:{style:cr},padding:{style:cr},paddingTop:{style:cr},paddingRight:{style:cr},paddingBottom:{style:cr},paddingLeft:{style:cr},paddingX:{style:cr},paddingY:{style:cr},paddingInline:{style:cr},paddingInlineStart:{style:cr},paddingInlineEnd:{style:cr},paddingBlock:{style:cr},paddingBlockStart:{style:cr},paddingBlockEnd:{style:cr},m:{style:ur},mt:{style:ur},mr:{style:ur},mb:{style:ur},ml:{style:ur},mx:{style:ur},my:{style:ur},margin:{style:ur},marginTop:{style:ur},marginRight:{style:ur},marginBottom:{style:ur},marginLeft:{style:ur},marginX:{style:ur},marginY:{style:ur},marginInline:{style:ur},marginInlineStart:{style:ur},marginInlineEnd:{style:ur},marginBlock:{style:ur},marginBlockStart:{style:ur},marginBlockEnd:{style:ur},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:S0},rowGap:{style:O0},columnGap:{style:C0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oo},maxWidth:{style:o$},minWidth:{transform:oo},height:{transform:oo},maxHeight:{transform:oo},minHeight:{transform:oo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Tv=rwe;function nwe(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function owe(e,t){return typeof e=="function"?e(t):e}function o6(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:f,style:v}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const m=Qc(o,l)||{};return v?v(i):xa(i,n,x=>{let w=Ey(m,f,x);return x===w&&typeof x=="string"&&(w=Ey(m,f,`${r}${x==="default"?"":xe(x)}`,x)),c===!1?w:{[c]:w}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Tv;function s(c){let l=c;if(typeof c=="function")l=c(a);else if(typeof c!="object")return c;if(!l)return null;const f=t6(a.breakpoints),v=Object.keys(f);let m=f;return Object.keys(l).forEach(h=>{const x=owe(l[h],a);if(x!=null)if(typeof x=="object")if(i[h])m=rp(m,e(h,x,a,i));else{const w=xa({theme:a},x,C=>({[h]:C}));nwe(w,x)?m[h]=t({sx:x,theme:a}):m=rp(m,w)}else m=rp(m,e(h,x,a,i))}),r6(v,m)}return Array.isArray(o)?o.map(s):s(o)}return t}const a6=o6();a6.filterProps=["sx"];const kv=a6;function i6(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 awe=["breakpoints","palette","spacing","shape"];function kd(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=we(e,awe),s=e6(r),c=Oxe(o);let l=$n({breakpoints:s,direction:"ltr",components:{},palette:j({mode:"light"},n),spacing:c,shape:j({},mxe,a)},i);return l.applyStyles=i6,l=t.reduce((f,v)=>$n(f,v),l),l.unstable_sxConfig=j({},Tv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return kv({sx:v,theme:this})},l}const iwe=Object.freeze(Object.defineProperty({__proto__:null,default:kd,private_createBreakpoints:e6,unstable_applyStyles:i6},Symbol.toStringTag,{value:"Module"}));function swe(e){return Object.keys(e).length===0}function a$(e=null){const t=d.useContext($v);return!t||swe(t)?e:t}const lwe=kd();function E0(e=lwe){return a$(e)}function uwe({styles:e,themeId:t,defaultTheme:r={}}){const n=E0(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Yz,{styles:o})}const cwe=["sx"],dwe=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tv;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function P0(e){const{sx:t}=e,r=we(e,cwe),{systemProps:n,otherProps:o}=dwe(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return bi(s)?j({},n,s):n}:a=j({},n,t),j({},o,{sx:a})}const fwe=Object.freeze(Object.defineProperty({__proto__:null,default:kv,extendSxProp:P0,unstable_createStyleFunctionSx:o6,unstable_defaultSxConfig:Tv},Symbol.toStringTag,{value:"Module"})),SF=e=>e,pwe=()=>{let e=SF;return{configure(t){e=t},generate(t){return e(t)},reset(){e=SF}}},vwe=pwe(),i$=vwe;function s6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(kv);return d.forwardRef(function(c,l){const f=E0(r),v=P0(c),{className:m,component:h="div"}=v,x=we(v,mwe);return S.jsx(a,j({as:h,ref:l,className:$e(m,o?o(n):n),theme:t&&f[t]||f},x))})}const l6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ve(e,t,r="Mui"){const n=l6[t];return n?`${r}-${n}`:`${i$.generate(e)}-${t}`}function He(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ve(e,o,r)}),n}var u6={exports:{}},Mt={};/** + */var Wr=typeof Symbol=="function"&&Symbol.for,QP=Wr?Symbol.for("react.element"):60103,XP=Wr?Symbol.for("react.portal"):60106,d0=Wr?Symbol.for("react.fragment"):60107,f0=Wr?Symbol.for("react.strict_mode"):60108,p0=Wr?Symbol.for("react.profiler"):60114,v0=Wr?Symbol.for("react.provider"):60109,m0=Wr?Symbol.for("react.context"):60110,YP=Wr?Symbol.for("react.async_mode"):60111,h0=Wr?Symbol.for("react.concurrent_mode"):60111,g0=Wr?Symbol.for("react.forward_ref"):60112,y0=Wr?Symbol.for("react.suspense"):60113,I_e=Wr?Symbol.for("react.suspense_list"):60120,b0=Wr?Symbol.for("react.memo"):60115,_0=Wr?Symbol.for("react.lazy"):60116,j_e=Wr?Symbol.for("react.block"):60121,A_e=Wr?Symbol.for("react.fundamental"):60117,M_e=Wr?Symbol.for("react.responder"):60118,F_e=Wr?Symbol.for("react.scope"):60119;function go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case QP:switch(e=e.type,e){case YP:case h0:case d0:case p0:case f0:case y0:return e;default:switch(e=e&&e.$$typeof,e){case m0:case g0:case _0:case b0:case v0:return e;default:return t}}case XP:return t}}}function Dz(e){return go(e)===h0}At.AsyncMode=YP;At.ConcurrentMode=h0;At.ContextConsumer=m0;At.ContextProvider=v0;At.Element=QP;At.ForwardRef=g0;At.Fragment=d0;At.Lazy=_0;At.Memo=b0;At.Portal=XP;At.Profiler=p0;At.StrictMode=f0;At.Suspense=y0;At.isAsyncMode=function(e){return Dz(e)||go(e)===YP};At.isConcurrentMode=Dz;At.isContextConsumer=function(e){return go(e)===m0};At.isContextProvider=function(e){return go(e)===v0};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===QP};At.isForwardRef=function(e){return go(e)===g0};At.isFragment=function(e){return go(e)===d0};At.isLazy=function(e){return go(e)===_0};At.isMemo=function(e){return go(e)===b0};At.isPortal=function(e){return go(e)===XP};At.isProfiler=function(e){return go(e)===p0};At.isStrictMode=function(e){return go(e)===f0};At.isSuspense=function(e){return go(e)===y0};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===d0||e===h0||e===p0||e===f0||e===y0||e===I_e||typeof e=="object"&&e!==null&&(e.$$typeof===_0||e.$$typeof===b0||e.$$typeof===v0||e.$$typeof===m0||e.$$typeof===g0||e.$$typeof===A_e||e.$$typeof===M_e||e.$$typeof===F_e||e.$$typeof===j_e)};At.typeOf=go;Nz.exports=At;var L_e=Nz.exports,Bz=L_e,N_e={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},D_e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zz={};zz[Bz.ForwardRef]=N_e;zz[Bz.Memo]=D_e;var B_e=!0;function z_e(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var Uz=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||B_e===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Vz=function(t,r,n){Uz(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function U_e(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var V_e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},W_e=/[A-Z]|^ms/g,q_e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wz=function(t){return t.charCodeAt(1)===45},mF=function(t){return t!=null&&typeof t!="boolean"},tw=Rz(function(e){return Wz(e)?e:e.replace(W_e,"-$&").toLowerCase()}),hF=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(q_e,function(n,o,a){return La={name:o,styles:a,next:La},o})}return V_e[t]!==1&&!Wz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Vp(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return La={name:r.name,styles:r.styles,next:La},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)La={name:n.name,styles:n.styles,next:La},n=n.next;var o=r.styles+";";return o}return H_e(e,t,r)}case"function":{if(e!==void 0){var a=La,i=r(e);return La=a,Vp(e,t,i)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function H_e(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Y_e:J_e},_F=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Z_e=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Uz(r,n,o),K_e(function(){return Vz(r,n,o)}),null},exe=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=_F(t,r,n),c=s||bF(o),l=!c("as");return function(){var f=arguments,v=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&v.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)v.push.apply(v,f);else{v.push(f[0][0]);for(var m=f.length,h=1;ht(lxe(o)?r:o):t;return S.jsx(X_e,{styles:n})}function ZP(e,t){return lC(e,t)}const Jz=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},uxe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Yz,StyledEngineProvider:sxe,ThemeContext:$v,css:cu,default:ZP,internal_processStyles:Jz,keyframes:Di},Symbol.toStringTag,{value:"Module"}));function bi(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 Zz(e){if(!bi(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Zz(e[r])}),t}function $n(e,t,r={clone:!0}){const n=r.clone?j({},e):e;return bi(e)&&bi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(bi(t[o])&&o in e&&bi(e[o])?n[o]=$n(e[o],t[o],r):r.clone?n[o]=bi(t[o])?Zz(t[o]):t[o]:n[o]=t[o])}),n}const cxe=Object.freeze(Object.defineProperty({__proto__:null,default:$n,isPlainObject:bi},Symbol.toStringTag,{value:"Module"})),dxe=["values","unit","step"],fxe=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>j({},r,{[n.key]:n.val}),{})};function e6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=we(e,dxe),a=fxe(t),i=Object.keys(a);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function l(m,h){const x=i.indexOf(h);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:h)-n/100}${r})`}function f(m){return i.indexOf(m)+1`@media (min-width:${e$[e]}px)`};function xa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||xF;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||xF;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||e$).indexOf(s)!==-1){const c=a.up(s);i[c]=r(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return r(t)}function t6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function r6(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function mxe(e,...t){const r=t6(e),n=[r,...t].reduce((o,a)=>$n(o,a),{});return r6(Object.keys(r),n)}function hxe(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a{e[o]!=null&&(r[o]=!0)}),r}function rw({values:e,breakpoints:t,base:r}){const n=r||hxe(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,s,c)=>(Array.isArray(e)?(i[s]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[a],a=s):i[s]=e,i),{})}function xe(e){if(typeof e!="string")throw new Error(Ri(7));return e.charAt(0).toUpperCase()+e.slice(1)}const gxe=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"}));function Qc(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Ey(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Qc(e,r)||n,t&&(o=t(o,n,e)),o}function yr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=Qc(c,n)||{};return xa(i,s,v=>{let m=Ey(l,o,v);return v===m&&typeof v=="string"&&(m=Ey(l,o,`${t}${v==="default"?"":xe(v)}`,v)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[t],a}function yxe(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const bxe={m:"margin",p:"padding"},_xe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wF={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xxe=yxe(e=>{if(e.length>2)if(wF[e])e=wF[e];else return[e];const[t,r]=e.split(""),n=bxe[t],o=_xe[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),t$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],r$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...t$,...r$];function Rv(e,t,r,n){var o;const a=(o=Qc(e,t,!1))!=null?o:r;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function n$(e){return Rv(e,"spacing",8)}function tu(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 wxe(e,t){return r=>e.reduce((n,o)=>(n[o]=tu(t,r),n),{})}function Sxe(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=xxe(r),a=wxe(o,n),i=e[r];return xa(e,i,a)}function n6(e,t){const r=n$(e.theme);return Object.keys(e).map(n=>Sxe(e,t,n,r)).reduce(rp,{})}function ur(e){return n6(e,t$)}ur.propTypes={};ur.filterProps=t$;function cr(e){return n6(e,r$)}cr.propTypes={};cr.filterProps=r$;function Cxe(e=8){if(e.mui)return e;const t=n$({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function x0(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?rp(o,t[a](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Mo(e){return typeof e!="number"?e:`${e}px solid`}function ea(e,t){return yr({prop:e,themeKey:"borders",transform:t})}const Oxe=ea("border",Mo),Exe=ea("borderTop",Mo),Pxe=ea("borderRight",Mo),$xe=ea("borderBottom",Mo),Rxe=ea("borderLeft",Mo),Txe=ea("borderColor"),kxe=ea("borderTopColor"),Ixe=ea("borderRightColor"),jxe=ea("borderBottomColor"),Axe=ea("borderLeftColor"),Mxe=ea("outline",Mo),Fxe=ea("outlineColor"),w0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:tu(t,n)});return xa(e,e.borderRadius,r)}return null};w0.propTypes={};w0.filterProps=["borderRadius"];x0(Oxe,Exe,Pxe,$xe,Rxe,Txe,kxe,Ixe,jxe,Axe,w0,Mxe,Fxe);const S0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({gap:tu(t,n)});return xa(e,e.gap,r)}return null};S0.propTypes={};S0.filterProps=["gap"];const C0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({columnGap:tu(t,n)});return xa(e,e.columnGap,r)}return null};C0.propTypes={};C0.filterProps=["columnGap"];const O0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rv(e.theme,"spacing",8),r=n=>({rowGap:tu(t,n)});return xa(e,e.rowGap,r)}return null};O0.propTypes={};O0.filterProps=["rowGap"];const Lxe=yr({prop:"gridColumn"}),Nxe=yr({prop:"gridRow"}),Dxe=yr({prop:"gridAutoFlow"}),Bxe=yr({prop:"gridAutoColumns"}),zxe=yr({prop:"gridAutoRows"}),Uxe=yr({prop:"gridTemplateColumns"}),Vxe=yr({prop:"gridTemplateRows"}),Wxe=yr({prop:"gridTemplateAreas"}),qxe=yr({prop:"gridArea"});x0(S0,C0,O0,Lxe,Nxe,Dxe,Bxe,zxe,Uxe,Vxe,Wxe,qxe);function Oc(e,t){return t==="grey"?t:e}const Hxe=yr({prop:"color",themeKey:"palette",transform:Oc}),Gxe=yr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oc}),Kxe=yr({prop:"backgroundColor",themeKey:"palette",transform:Oc});x0(Hxe,Gxe,Kxe);function oo(e){return e<=1&&e!==0?`${e*100}%`:e}const Qxe=yr({prop:"width",transform:oo}),o$=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||e$[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:oo(r)}};return xa(e,e.maxWidth,t)}return null};o$.filterProps=["maxWidth"];const Xxe=yr({prop:"minWidth",transform:oo}),Yxe=yr({prop:"height",transform:oo}),Jxe=yr({prop:"maxHeight",transform:oo}),Zxe=yr({prop:"minHeight",transform:oo});yr({prop:"size",cssProperty:"width",transform:oo});yr({prop:"size",cssProperty:"height",transform:oo});const ewe=yr({prop:"boxSizing"});x0(Qxe,o$,Xxe,Yxe,Jxe,Zxe,ewe);const twe={border:{themeKey:"borders",transform:Mo},borderTop:{themeKey:"borders",transform:Mo},borderRight:{themeKey:"borders",transform:Mo},borderBottom:{themeKey:"borders",transform:Mo},borderLeft:{themeKey:"borders",transform:Mo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w0},color:{themeKey:"palette",transform:Oc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oc},backgroundColor:{themeKey:"palette",transform:Oc},p:{style:cr},pt:{style:cr},pr:{style:cr},pb:{style:cr},pl:{style:cr},px:{style:cr},py:{style:cr},padding:{style:cr},paddingTop:{style:cr},paddingRight:{style:cr},paddingBottom:{style:cr},paddingLeft:{style:cr},paddingX:{style:cr},paddingY:{style:cr},paddingInline:{style:cr},paddingInlineStart:{style:cr},paddingInlineEnd:{style:cr},paddingBlock:{style:cr},paddingBlockStart:{style:cr},paddingBlockEnd:{style:cr},m:{style:ur},mt:{style:ur},mr:{style:ur},mb:{style:ur},ml:{style:ur},mx:{style:ur},my:{style:ur},margin:{style:ur},marginTop:{style:ur},marginRight:{style:ur},marginBottom:{style:ur},marginLeft:{style:ur},marginX:{style:ur},marginY:{style:ur},marginInline:{style:ur},marginInlineStart:{style:ur},marginInlineEnd:{style:ur},marginBlock:{style:ur},marginBlockStart:{style:ur},marginBlockEnd:{style:ur},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:S0},rowGap:{style:O0},columnGap:{style:C0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oo},maxWidth:{style:o$},minWidth:{transform:oo},height:{transform:oo},maxHeight:{transform:oo},minHeight:{transform:oo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Tv=twe;function rwe(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function nwe(e,t){return typeof e=="function"?e(t):e}function o6(){function e(r,n,o,a){const i={[r]:n,theme:o},s=a[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:f,style:v}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const m=Qc(o,l)||{};return v?v(i):xa(i,n,x=>{let w=Ey(m,f,x);return x===w&&typeof x=="string"&&(w=Ey(m,f,`${r}${x==="default"?"":xe(x)}`,x)),c===!1?w:{[c]:w}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Tv;function s(c){let l=c;if(typeof c=="function")l=c(a);else if(typeof c!="object")return c;if(!l)return null;const f=t6(a.breakpoints),v=Object.keys(f);let m=f;return Object.keys(l).forEach(h=>{const x=nwe(l[h],a);if(x!=null)if(typeof x=="object")if(i[h])m=rp(m,e(h,x,a,i));else{const w=xa({theme:a},x,C=>({[h]:C}));rwe(w,x)?m[h]=t({sx:x,theme:a}):m=rp(m,w)}else m=rp(m,e(h,x,a,i))}),r6(v,m)}return Array.isArray(o)?o.map(s):s(o)}return t}const a6=o6();a6.filterProps=["sx"];const kv=a6;function i6(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 owe=["breakpoints","palette","spacing","shape"];function kd(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=we(e,owe),s=e6(r),c=Cxe(o);let l=$n({breakpoints:s,direction:"ltr",components:{},palette:j({mode:"light"},n),spacing:c,shape:j({},vxe,a)},i);return l.applyStyles=i6,l=t.reduce((f,v)=>$n(f,v),l),l.unstable_sxConfig=j({},Tv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return kv({sx:v,theme:this})},l}const awe=Object.freeze(Object.defineProperty({__proto__:null,default:kd,private_createBreakpoints:e6,unstable_applyStyles:i6},Symbol.toStringTag,{value:"Module"}));function iwe(e){return Object.keys(e).length===0}function a$(e=null){const t=d.useContext($v);return!t||iwe(t)?e:t}const swe=kd();function E0(e=swe){return a$(e)}function lwe({styles:e,themeId:t,defaultTheme:r={}}){const n=E0(r),o=typeof e=="function"?e(t&&n[t]||n):e;return S.jsx(Yz,{styles:o})}const uwe=["sx"],cwe=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tv;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function P0(e){const{sx:t}=e,r=we(e,uwe),{systemProps:n,otherProps:o}=cwe(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return bi(s)?j({},n,s):n}:a=j({},n,t),j({},o,{sx:a})}const dwe=Object.freeze(Object.defineProperty({__proto__:null,default:kv,extendSxProp:P0,unstable_createStyleFunctionSx:o6,unstable_defaultSxConfig:Tv},Symbol.toStringTag,{value:"Module"})),SF=e=>e,fwe=()=>{let e=SF;return{configure(t){e=t},generate(t){return e(t)},reset(){e=SF}}},pwe=fwe(),i$=pwe;function s6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(kv);return d.forwardRef(function(c,l){const f=E0(r),v=P0(c),{className:m,component:h="div"}=v,x=we(v,vwe);return S.jsx(a,j({as:h,ref:l,className:$e(m,o?o(n):n),theme:t&&f[t]||f},x))})}const l6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ve(e,t,r="Mui"){const n=l6[t];return n?`${r}-${n}`:`${i$.generate(e)}-${t}`}function He(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ve(e,o,r)}),n}var u6={exports:{}},Mt={};/** * @license React * react-is.production.min.js * @@ -133,7 +133,7 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var s$=Symbol.for("react.element"),l$=Symbol.for("react.portal"),$0=Symbol.for("react.fragment"),R0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),k0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),gwe=Symbol.for("react.server_context"),j0=Symbol.for("react.forward_ref"),A0=Symbol.for("react.suspense"),M0=Symbol.for("react.suspense_list"),F0=Symbol.for("react.memo"),L0=Symbol.for("react.lazy"),ywe=Symbol.for("react.offscreen"),c6;c6=Symbol.for("react.module.reference");function ta(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case s$:switch(e=e.type,e){case $0:case T0:case R0:case A0:case M0:return e;default:switch(e=e&&e.$$typeof,e){case gwe:case I0:case j0:case L0:case F0:case k0:return e;default:return t}}case l$:return t}}}Mt.ContextConsumer=I0;Mt.ContextProvider=k0;Mt.Element=s$;Mt.ForwardRef=j0;Mt.Fragment=$0;Mt.Lazy=L0;Mt.Memo=F0;Mt.Portal=l$;Mt.Profiler=T0;Mt.StrictMode=R0;Mt.Suspense=A0;Mt.SuspenseList=M0;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return ta(e)===I0};Mt.isContextProvider=function(e){return ta(e)===k0};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===s$};Mt.isForwardRef=function(e){return ta(e)===j0};Mt.isFragment=function(e){return ta(e)===$0};Mt.isLazy=function(e){return ta(e)===L0};Mt.isMemo=function(e){return ta(e)===F0};Mt.isPortal=function(e){return ta(e)===l$};Mt.isProfiler=function(e){return ta(e)===T0};Mt.isStrictMode=function(e){return ta(e)===R0};Mt.isSuspense=function(e){return ta(e)===A0};Mt.isSuspenseList=function(e){return ta(e)===M0};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$0||e===T0||e===R0||e===A0||e===M0||e===ywe||typeof e=="object"&&e!==null&&(e.$$typeof===L0||e.$$typeof===F0||e.$$typeof===k0||e.$$typeof===I0||e.$$typeof===j0||e.$$typeof===c6||e.getModuleId!==void 0)};Mt.typeOf=ta;u6.exports=Mt;var CF=u6.exports;const bwe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function d6(e){const t=`${e}`.match(bwe);return t&&t[1]||""}function f6(e,t=""){return e.displayName||e.name||d6(e)||t}function OF(e,t,r){const n=f6(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function _we(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return f6(e,"Component");if(typeof e=="object")switch(e.$$typeof){case CF.ForwardRef:return OF(e,e.render,"ForwardRef");case CF.Memo:return OF(e,e.type,"memo");default:return}}}const xwe=Object.freeze(Object.defineProperty({__proto__:null,default:_we,getFunctionName:d6},Symbol.toStringTag,{value:"Module"})),wwe=["ownerState"],Swe=["variants"],Cwe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Owe(e){return Object.keys(e).length===0}function Ewe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function nw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Pwe=kd(),$we=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function mh({defaultTheme:e,theme:t,themeId:r}){return Owe(t)?e:t[r]||t}function Rwe(e){return e?(t,r)=>r[e]:null}function og(e,t){let{ownerState:r}=t,n=we(t,wwe);const o=typeof e=="function"?e(j({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>og(a,j({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=we(o,Swe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props(j({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof c.style=="function"?c.style(j({ownerState:r},n,r)):c.style))}),s}return o}function Twe(e={}){const{themeId:t,defaultTheme:r=Pwe,rootShouldForwardProp:n=nw,slotShouldForwardProp:o=nw}=e,a=i=>kv(j({},i,{theme:mh(j({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Jz(i,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=Rwe($we(l))}=s,h=we(s,Cwe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let C,b=nw;l==="Root"||l==="root"?b=n:l?b=o:Ewe(i)&&(b=void 0);const g=ZP(i,j({shouldForwardProp:b,label:C},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||bi(P)?E=>og(P,j({},E,{theme:mh({theme:E.theme,defaultTheme:r,themeId:t})})):P,$=(P,...E)=>{let T=_(P);const R=E?E.map(_):[];c&&m&&R.push(F=>{const L=mh(j({},F,{defaultTheme:r,themeId:t}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const D=L.components[c].styleOverrides,z={};return Object.entries(D).forEach(([H,G])=>{z[H]=og(G,j({},F,{theme:L}))}),m(F,z)}),c&&!x&&R.push(F=>{var L;const D=mh(j({},F,{defaultTheme:r,themeId:t})),z=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return og({variants:z},j({},F,{theme:D}))}),w||R.push(a);const I=R.length-E.length;if(Array.isArray(P)&&I>0){const F=new Array(I).fill("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}const p6=Twe();function u$(e,t){const r=j({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=j({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=j({},a),Object.keys(o).forEach(i=>{r[n][i]=u$(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function v6(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:u$(t.components[r].defaultProps,n)}function c$({props:e,name:t,defaultTheme:r,themeId:n}){let o=E0(r);return n&&(o=o[n]||o),v6({theme:o,name:t,props:e})}const po=typeof window<"u"?d.useLayoutEffect:d.useEffect;function kwe(e,t,r,n,o){const[a,i]=d.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return po(()=>{let s=!0;if(!r)return;const c=r(e),l=()=>{s&&i(c.matches)};return l(),c.addListener(l),()=>{s=!1,c.removeListener(l)}},[e,r]),a}const m6=d.useSyncExternalStore;function Iwe(e,t,r,n,o){const a=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:f}=n(e);return()=>f}return a},[a,e,n,o,r]),[s,c]=d.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const f=r(e);return[()=>f.matches,v=>(f.addListener(v),()=>{f.removeListener(v)})]},[a,r,e]);return m6(c,s,i)}function In(e,t={}){const r=a$(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=v6({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(m6!==void 0?Iwe:kwe)(c,o,a,i,s)}function h6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const jwe=Object.freeze(Object.defineProperty({__proto__:null,default:h6},Symbol.toStringTag,{value:"Module"}));function g6(e,t=0,r=1){return h6(e,t,r)}function Awe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function d$(e){if(e.type)return e;if(e.charAt(0)==="#")return d$(Awe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ri(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Ri(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function y6(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Xc(e,t){return e=d$(e),t=g6(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,y6(e)}function Mwe(e,t){if(e=d$(e),t=g6(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 y6(e)}function cC(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Id(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Fwe(e,t){return()=>null}function ag(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Pr(e){return e&&e.ownerDocument||document}function qo(e){return Pr(e).defaultView||window}function Lwe(e,t){return()=>null}function Py(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let EF=0;function Nwe(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(EF+=1,r(`mui-${EF}`))},[t]),n}const PF=Sw.useId;function ru(e){if(PF!==void 0){const t=PF();return e??t}return Nwe(e)}function Dwe(e,t,r,n,o){return null}function Yc({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=d.useRef(e!==void 0),[a,i]=d.useState(t),s=o?e:a,c=d.useCallback(l=>{o||i(l)},[]);return[s,c]}function En(e){const t=d.useRef(e);return po(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function sr(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Py(r,t)})},e)}const $F={};function Bwe(e,t){const r=d.useRef($F);return r.current===$F&&(r.current=e(t)),r}const zwe=[];function Uwe(e){d.useEffect(e,zwe)}class Iv{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Iv}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Rl(){const e=Bwe(Iv.create).current;return Uwe(e.disposeEffect),e}let N0=!0,dC=!1;const Vwe=new Iv,Wwe={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 qwe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Wwe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Hwe(e){e.metaKey||e.altKey||e.ctrlKey||(N0=!0)}function ow(){N0=!1}function Gwe(){this.visibilityState==="hidden"&&dC&&(N0=!0)}function Kwe(e){e.addEventListener("keydown",Hwe,!0),e.addEventListener("mousedown",ow,!0),e.addEventListener("pointerdown",ow,!0),e.addEventListener("touchstart",ow,!0),e.addEventListener("visibilitychange",Gwe,!0)}function Qwe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return N0||qwe(t)}function D0(){const e=d.useCallback(o=>{o!=null&&Kwe(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(dC=!0,Vwe.start(100,()=>{dC=!1}),t.current=!1,!0):!1}function n(o){return Qwe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function b6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let zu;function _6(){if(zu)return zu;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),zu="reverse",e.scrollLeft>0?zu="default":(e.scrollLeft=1,e.scrollLeft===0&&(zu="negative")),document.body.removeChild(e),zu}function Xwe(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(_6()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function ze(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}const Ywe=d.createContext(null),x6=Ywe;function w6(){return d.useContext(x6)}const Jwe=typeof Symbol=="function"&&Symbol.for,Zwe=Jwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function eSe(e,t){return typeof t=="function"?t(e):j({},e,t)}function tSe(e){const{children:t,theme:r}=e,n=w6(),o=d.useMemo(()=>{const a=n===null?r:eSe(n,r);return a!=null&&(a[Zwe]=n!==null),a},[r,n]);return S.jsx(x6.Provider,{value:o,children:t})}const rSe=["value"],S6=d.createContext();function nSe(e){let{value:t}=e,r=we(e,rSe);return S.jsx(S6.Provider,j({value:t??!0},r))}const Xs=()=>{const e=d.useContext(S6);return e??!1},RF={};function TF(e,t,r,n=!1){return d.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?j({},t,{[e]:a}):a;return n?()=>i:i}return e?j({},t,{[e]:r}):j({},t,r)},[e,t,r,n])}function oSe(e){const{children:t,theme:r,themeId:n}=e,o=a$(RF),a=w6()||RF,i=TF(n,o,r),s=TF(n,a,r,!0),c=i.direction==="rtl";return S.jsx(tSe,{theme:s,children:S.jsx($v.Provider,{value:i,children:S.jsx(nSe,{value:c,children:t})})})}const aSe=["className","component","disableGutters","fixed","maxWidth","classes"],iSe=kd(),sSe=p6("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),lSe=e=>c$({props:e,name:"MuiContainer",defaultTheme:iSe}),uSe=(e,t)=>{const r=c=>Ve(t,c),{classes:n,fixed:o,disableGutters:a,maxWidth:i}=e,s={root:["root",i&&`maxWidth${xe(String(i))}`,o&&"fixed",a&&"disableGutters"]};return ze(s,r,n)};function cSe(e={}){const{createStyledComponent:t=sSe,useThemeProps:r=lSe,componentName:n="MuiContainer"}=e,o=t(({theme:i,ownerState:s})=>j({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:s})=>s.fixed&&Object.keys(i.breakpoints.values).reduce((c,l)=>{const f=l,v=i.breakpoints.values[f];return v!==0&&(c[i.breakpoints.up(f)]={maxWidth:`${v}${i.breakpoints.unit}`}),c},{}),({theme:i,ownerState:s})=>j({},s.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[i.breakpoints.up(s.maxWidth)]:{maxWidth:`${i.breakpoints.values[s.maxWidth]}${i.breakpoints.unit}`}}));return d.forwardRef(function(s,c){const l=r(s),{className:f,component:v="div",disableGutters:m=!1,fixed:h=!1,maxWidth:x="lg"}=l,w=we(l,aSe),C=j({},l,{component:v,disableGutters:m,fixed:h,maxWidth:x}),b=uSe(C,n);return S.jsx(o,j({as:v,ownerState:C,className:$e(b.root,f),ref:c},w))})}const dSe=["component","direction","spacing","divider","children","className","useFlexGap"],fSe=kd(),pSe=p6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function vSe(e){return c$({props:e,name:"MuiStack",defaultTheme:fSe})}function mSe(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],gSe=({ownerState:e,theme:t})=>{let r=j({display:"flex",flexDirection:"column"},xa({theme:t},rw({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=n$(t),o=Object.keys(t.breakpoints.values).reduce((c,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(c[l]=!0),c),{}),a=rw({values:e.direction,base:o}),i=rw({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,l,f)=>{if(!a[c]){const m=l>0?a[f[l-1]]:"column";a[c]=m}}),r=$n(r,xa({theme:t},i,(c,l)=>e.useFlexGap?{gap:tu(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${hSe(l?a[l]:e.direction)}`]:tu(n,c)}}))}return r=hxe(t.breakpoints,r),r};function ySe(e={}){const{createStyledComponent:t=pSe,useThemeProps:r=vSe,componentName:n="MuiStack"}=e,o=()=>ze({root:["root"]},c=>Ve(n,c),{}),a=t(gSe);return d.forwardRef(function(c,l){const f=r(c),v=P0(f),{component:m="div",direction:h="column",spacing:x=0,divider:w,children:C,className:b,useFlexGap:g=!1}=v,_=we(v,dSe),$={direction:h,spacing:x,useFlexGap:g},P=o();return S.jsx(a,j({as:m,ownerState:$,ref:l,className:$e(P.root,b)},_,{children:w?mSe(C,w):C}))})}function bSe(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var br={},C6={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(C6);var We=C6.exports;const _Se=Qa(r_e),xSe=Qa(jwe);var O6=We;Object.defineProperty(br,"__esModule",{value:!0});var It=br.alpha=R6;br.blend=jSe;br.colorChannel=void 0;var B0=br.darken=p$;br.decomposeColor=Ho;var wSe=br.emphasize=T6,SSe=br.getContrastRatio=$Se;br.getLuminance=$y;br.hexToRgb=E6;br.hslToRgb=$6;var z0=br.lighten=v$;br.private_safeAlpha=RSe;br.private_safeColorChannel=void 0;br.private_safeDarken=TSe;br.private_safeEmphasize=ISe;br.private_safeLighten=kSe;br.recomposeColor=jd;br.rgbToHex=PSe;var kF=O6(_Se),CSe=O6(xSe);function f$(e,t=0,r=1){return(0,CSe.default)(e,t,r)}function E6(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function OSe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ho(e){if(e.type)return e;if(e.charAt(0)==="#")return Ho(E6(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,kF.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,kF.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const P6=e=>{const t=Ho(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};br.colorChannel=P6;const ESe=(e,t)=>{try{return P6(e)}catch{return e}};br.private_safeColorChannel=ESe;function jd(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function PSe(e){if(e.indexOf("#")===0)return e;const{values:t}=Ho(e);return`#${t.map((r,n)=>OSe(n===3?Math.round(255*r):r)).join("")}`}function $6(e){e=Ho(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(l,f=(l+r/30)%12)=>o-a*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),jd({type:s,values:c})}function $y(e){e=Ho(e);let t=e.type==="hsl"||e.type==="hsla"?Ho($6(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function $Se(e,t){const r=$y(e),n=$y(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function R6(e,t){return e=Ho(e),t=f$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jd(e)}function RSe(e,t,r){try{return R6(e,t)}catch{return e}}function p$(e,t){if(e=Ho(e),t=f$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return jd(e)}function TSe(e,t,r){try{return p$(e,t)}catch{return e}}function v$(e,t){if(e=Ho(e),t=f$(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 jd(e)}function kSe(e,t,r){try{return v$(e,t)}catch{return e}}function T6(e,t=.15){return $y(e)>.5?p$(e,t):v$(e,t)}function ISe(e,t,r){try{return T6(e,t)}catch{return e}}function jSe(e,t,r,n=1){const o=(c,l)=>Math.round((c**(1/n)*(1-r)+l**(1/n)*r)**n),a=Ho(e),i=Ho(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return jd({type:"rgb",values:s})}const ASe=["mode","contrastThreshold","tonalOffset"],IF={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:Bp.white,default:Bp.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}},aw={text:{primary:Bp.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:Bp.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 jF(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=z0(e.main,o):t==="dark"&&(e.dark=B0(e.main,a)))}function MSe(e="light"){return e==="dark"?{main:Nu[200],light:Nu[50],dark:Nu[400]}:{main:Nu[700],light:Nu[400],dark:Nu[800]}}function FSe(e="light"){return e==="dark"?{main:Lu[200],light:Lu[50],dark:Lu[400]}:{main:Lu[500],light:Lu[300],dark:Lu[700]}}function LSe(e="light"){return e==="dark"?{main:Fu[500],light:Fu[300],dark:Fu[700]}:{main:Fu[700],light:Fu[400],dark:Fu[800]}}function NSe(e="light"){return e==="dark"?{main:Du[400],light:Du[300],dark:Du[700]}:{main:Du[700],light:Du[500],dark:Du[900]}}function DSe(e="light"){return e==="dark"?{main:Bu[400],light:Bu[300],dark:Bu[700]}:{main:Bu[800],light:Bu[500],dark:Bu[900]}}function BSe(e="light"){return e==="dark"?{main:bf[400],light:bf[300],dark:bf[700]}:{main:"#ed6c02",light:bf[500],dark:bf[900]}}function zSe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=we(e,ASe),a=e.primary||MSe(t),i=e.secondary||FSe(t),s=e.error||LSe(t),c=e.info||NSe(t),l=e.success||DSe(t),f=e.warning||BSe(t);function v(w){return SSe(w,aw.text.primary)>=r?aw.text.primary:IF.text.primary}const m=({color:w,name:C,mainShade:b=500,lightShade:g=300,darkShade:_=700})=>{if(w=j({},w),!w.main&&w[b]&&(w.main=w[b]),!w.hasOwnProperty("main"))throw new Error(Ri(11,C?` (${C})`:"",b));if(typeof w.main!="string")throw new Error(Ri(12,C?` (${C})`:"",JSON.stringify(w.main)));return jF(w,"light",g,n),jF(w,"dark",_,n),w.contrastText||(w.contrastText=v(w.main)),w},h={dark:aw,light:IF};return $n(j({common:j({},Bp),mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:l,name:"success"}),grey:t_e,contrastThreshold:r,getContrastText:v,augmentColor:m,tonalOffset:n},h[t]),o)}const USe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function VSe(e){return Math.round(e*1e5)/1e5}const AF={textTransform:"uppercase"},MF='"Roboto", "Helvetica", "Arial", sans-serif';function WSe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=MF,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:f,pxToRem:v}=r,m=we(r,USe),h=o/14,x=v||(b=>`${b/l*h}rem`),w=(b,g,_,$,P)=>j({fontFamily:n,fontWeight:b,fontSize:x(g),lineHeight:_},n===MF?{letterSpacing:`${VSe($/g)}em`}:{},P,f),C={h1:w(a,96,1.167,-1.5),h2:w(a,60,1.2,-.5),h3:w(i,48,1.167,0),h4:w(i,34,1.235,.25),h5:w(i,24,1.334,0),h6:w(s,20,1.6,.15),subtitle1:w(i,16,1.75,.15),subtitle2:w(s,14,1.57,.1),body1:w(i,16,1.5,.15),body2:w(i,14,1.43,.15),button:w(s,14,1.75,.4,AF),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,AF),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $n(j({htmlFontSize:l,pxToRem:x,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:c},C),m,{clone:!1})}const qSe=.2,HSe=.14,GSe=.12;function er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qSe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${HSe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${GSe})`].join(",")}const KSe=["none",er(0,2,1,-1,0,1,1,0,0,1,3,0),er(0,3,1,-2,0,2,2,0,0,1,5,0),er(0,3,3,-2,0,3,4,0,0,1,8,0),er(0,2,4,-1,0,4,5,0,0,1,10,0),er(0,3,5,-1,0,5,8,0,0,1,14,0),er(0,3,5,-1,0,6,10,0,0,1,18,0),er(0,4,5,-2,0,7,10,1,0,2,16,1),er(0,5,5,-3,0,8,10,1,0,3,14,2),er(0,5,6,-3,0,9,12,1,0,3,16,2),er(0,6,6,-3,0,10,14,1,0,4,18,3),er(0,6,7,-4,0,11,15,1,0,4,20,3),er(0,7,8,-4,0,12,17,2,0,5,22,4),er(0,7,8,-4,0,13,19,2,0,5,24,4),er(0,7,9,-4,0,14,21,2,0,5,26,4),er(0,8,9,-5,0,15,22,2,0,6,28,5),er(0,8,10,-5,0,16,24,2,0,6,30,5),er(0,8,11,-5,0,17,26,2,0,6,32,5),er(0,9,11,-5,0,18,28,2,0,7,34,6),er(0,9,12,-6,0,19,29,2,0,7,36,6),er(0,10,13,-6,0,20,31,3,0,8,38,7),er(0,10,13,-6,0,21,33,3,0,8,40,7),er(0,10,14,-6,0,22,35,3,0,8,42,7),er(0,11,14,-7,0,23,36,3,0,9,44,8),er(0,11,15,-7,0,24,38,3,0,9,46,8)],QSe=["duration","easing","delay"],XSe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},YSe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FF(e){return`${Math.round(e)}ms`}function JSe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ZSe(e){const t=j({},XSe,e.easing),r=j({},YSe,e.duration);return j({getAutoHeightDuration:JSe,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:c=0}=a;return we(a,QSe),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:FF(i)} ${s} ${typeof c=="string"?c:FF(c)}`).join(",")}},e,{easing:t,duration:r})}const eCe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tCe=eCe,rCe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ry(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=we(e,rCe);if(e.vars)throw new Error(Ri(18));const s=zSe(n),c=kd(e);let l=$n(c,{mixins:bSe(c.breakpoints,r),palette:s,shadows:KSe.slice(),typography:WSe(s,a),transitions:ZSe(o),zIndex:j({},tCe)});return l=$n(l,i),l=t.reduce((f,v)=>$n(f,v),l),l.unstable_sxConfig=j({},Tv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return kv({sx:v,theme:this})},l}const nCe=Ry(),U0=nCe;function ra(){const e=E0(U0);return e[eu]||e}function Ge({props:e,name:t}){return c$({props:e,name:t,defaultTheme:U0,themeId:eu})}var jv={},iw={exports:{}},LF;function oCe(){return LF||(LF=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(o[i]=r[i]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sw)),sw.exports}const k6=Qa(cxe),iCe=Qa(dxe),sCe=Qa(yxe),lCe=Qa(xwe),uCe=Qa(iwe),cCe=Qa(fwe);var Ad=We;Object.defineProperty(jv,"__esModule",{value:!0});var dCe=jv.default=CCe;jv.shouldForwardProp=ig;jv.systemDefaultTheme=void 0;var To=Ad(oCe()),fC=Ad(aCe()),DF=yCe(k6),fCe=iCe;Ad(sCe);Ad(lCe);var pCe=Ad(uCe),vCe=Ad(cCe);const mCe=["ownerState"],hCe=["variants"],gCe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function I6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(I6=function(n){return n?r:t})(e)}function yCe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=I6(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function bCe(e){return Object.keys(e).length===0}function _Ce(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ig(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xCe=jv.systemDefaultTheme=(0,pCe.default)(),wCe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hh({defaultTheme:e,theme:t,themeId:r}){return bCe(t)?e:t[r]||t}function SCe(e){return e?(t,r)=>r[e]:null}function sg(e,t){let{ownerState:r}=t,n=(0,fC.default)(t,mCe);const o=typeof e=="function"?e((0,To.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>sg(a,(0,To.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,fC.default)(o,hCe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props((0,To.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof c.style=="function"?c.style((0,To.default)({ownerState:r},n,r)):c.style))}),s}return o}function CCe(e={}){const{themeId:t,defaultTheme:r=xCe,rootShouldForwardProp:n=ig,slotShouldForwardProp:o=ig}=e,a=i=>(0,vCe.default)((0,To.default)({},i,{theme:hh((0,To.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,DF.internal_processStyles)(i,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=SCe(wCe(l))}=s,h=(0,fC.default)(s,gCe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let C,b=ig;l==="Root"||l==="root"?b=n:l?b=o:_Ce(i)&&(b=void 0);const g=(0,DF.default)(i,(0,To.default)({shouldForwardProp:b,label:C},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||(0,fCe.isPlainObject)(P)?E=>sg(P,(0,To.default)({},E,{theme:hh({theme:E.theme,defaultTheme:r,themeId:t})})):P,$=(P,...E)=>{let T=_(P);const R=E?E.map(_):[];c&&m&&R.push(F=>{const L=hh((0,To.default)({},F,{defaultTheme:r,themeId:t}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const D=L.components[c].styleOverrides,z={};return Object.entries(D).forEach(([H,G])=>{z[H]=sg(G,(0,To.default)({},F,{theme:L}))}),m(F,z)}),c&&!x&&R.push(F=>{var L;const D=hh((0,To.default)({},F,{defaultTheme:r,themeId:t})),z=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return sg({variants:z},(0,To.default)({},F,{theme:D}))}),w||R.push(a);const I=R.length-E.length;if(Array.isArray(P)&&I>0){const F=new Array(I).fill("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}function j6(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const OCe=e=>j6(e)&&e!=="classes",rn=OCe,J=dCe({themeId:eu,defaultTheme:U0,rootShouldForwardProp:rn}),ECe=["theme"];function PCe(e){let{theme:t}=e,r=we(e,ECe);const n=t[eu];return S.jsx(oSe,j({},r,{themeId:n?eu:void 0,theme:n||t}))}const BF=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function $Ce(e){return Ve("MuiSvgIcon",e)}He("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const RCe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],TCe=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return ze(o,$Ce,n)},kCe=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,c,l,f,v,m,h,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(c=s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem",large:((l=e.typography)==null||(f=l.pxToRem)==null?void 0:f.call(l,35))||"2.1875rem"}[t.fontSize],color:(v=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?v:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),pC=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:f=!1,titleAccess:v,viewBox:m="0 0 24 24"}=n,h=we(n,RCe),x=d.isValidElement(o)&&o.type==="svg",w=j({},n,{color:i,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:x}),C={};f||(C.viewBox=m);const b=TCe(w);return S.jsxs(kCe,j({as:s,className:$e(b.root,a),focusable:"false",color:l,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r},C,h,x&&o.props,{ownerState:w,children:[x?o.props.children:o,v?S.jsx("title",{children:v}):null]}))});pC.muiName="SvgIcon";function yo(e,t){function r(n,o){return S.jsx(pC,j({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=pC.muiName,d.memo(d.forwardRef(r))}const ICe={configure:e=>{i$.configure(e)}},jCe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:xe,createChainedFunction:cC,createSvgIcon:yo,debounce:Id,deprecatedPropType:Fwe,isMuiElement:ag,ownerDocument:Pr,ownerWindow:qo,requirePropFactory:Lwe,setRef:Py,unstable_ClassNameGenerator:ICe,unstable_useEnhancedEffect:po,unstable_useId:ru,unsupportedProp:Dwe,useControlled:Yc,useEventCallback:En,useForkRef:sr,useIsFocusVisible:D0},Symbol.toStringTag,{value:"Module"}));function A6(e){return Ge}const zF={disabled:!1},Ty=ve.createContext(null);var ACe=function(t){return t.scrollTop},Ff="unmounted",_l="exited",xl="entering",qu="entered",vC="exiting",Bi=function(e){Mi(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?s?(c=_l,a.appearStatus=xl):c=qu:n.unmountOnExit||n.mountOnEnter?c=Ff:c=_l,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Ff?{status:_l}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==xl&&i!==qu&&(a=xl):(i===xl||i===qu)&&(a=vC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Af.findDOMNode(this);i&&ACe(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_l&&this.setState({status:Ff})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[Af.findDOMNode(this),s],l=c[0],f=c[1],v=this.getTimeouts(),m=s?v.appear:v.enter;if(!o&&!i||zF.disabled){this.safeSetState({status:qu},function(){a.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:xl},function(){a.props.onEntering(l,f),a.onTransitionEnd(m,function(){a.safeSetState({status:qu},function(){a.props.onEntered(l,f)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Af.findDOMNode(this);if(!a||zF.disabled){this.safeSetState({status:_l},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:vC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:_l},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Af.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=c[0],f=c[1];this.props.addEndListener(l,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ff)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=we(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ty.Provider,{value:null},typeof i=="function"?i(o,s):ve.cloneElement(ve.Children.only(i),s))},t}(ve.Component);Bi.contextType=Ty;Bi.propTypes={};function Uu(){}Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uu,onEntering:Uu,onEntered:Uu,onExit:Uu,onExiting:Uu,onExited:Uu};Bi.UNMOUNTED=Ff;Bi.EXITED=_l;Bi.ENTERING=xl;Bi.ENTERED=qu;Bi.EXITING=vC;const m$=Bi;function h$(e,t){var r=function(a){return t&&d.isValidElement(a)?t(a):a},n=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function MCe(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var c in t){if(n[c])for(i=0;ie.scrollTop;function Jc(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function zCe(e){return Ve("MuiPaper",e)}He("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const UCe=["className","component","elevation","square","variant"],VCe=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ze(a,zCe,o)},WCe=J("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return j({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&j({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${It("#fff",BF(t.elevation))}, ${It("#fff",BF(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),qCe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:c="elevation"}=n,l=we(n,UCe),f=j({},n,{component:a,elevation:i,square:s,variant:c}),v=VCe(f);return S.jsx(WCe,j({as:a,ownerState:f,className:$e(v.root,o),ref:r},l))}),Ys=qCe;function Wp(e){return typeof e=="string"}function mc(e,t,r){return e===void 0||Wp(e)?t:j({},t,{ownerState:j({},t.ownerState,r)})}const HCe={disableDefaultClasses:!1},GCe=d.createContext(HCe);function KCe(e){const{disableDefaultClasses:t}=d.useContext(GCe);return r=>t?"":e(r)}function ky(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 M6(e,t,r){return typeof e=="function"?e(t,r):e}function UF(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 F6(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const h=$e(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),x=j({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),w=j({},r,o,n);return h.length>0&&(w.className=h),Object.keys(x).length>0&&(w.style=x),{props:w,internalRef:void 0}}const i=ky(j({},o,n)),s=UF(n),c=UF(o),l=t(i),f=$e(l==null?void 0:l.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),v=j({},l==null?void 0:l.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=j({},l,r,c,s);return f.length>0&&(m.className=f),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:l.ref}}const QCe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Go(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=we(e,QCe),s=a?{}:M6(n,o),{props:c,internalRef:l}=F6(j({},i,{externalSlotProps:s})),f=sr(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return mc(r,j({},c,{ref:f}),o)}const XCe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],YCe=["component","slots","slotProps"],JCe=["component"];function ZCe(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,c=we(t,XCe),{component:l,slots:f={[e]:void 0},slotProps:v={[e]:void 0}}=a,m=we(a,YCe),h=f[e]||n,x=M6(v[e],o),w=F6(j({className:r},c,{externalForwardedProps:e==="root"?m:void 0,externalSlotProps:x})),{props:{component:C},internalRef:b}=w,g=we(w.props,JCe),_=sr(b,x==null?void 0:x.ref,t.ref),$=i?i(g):{},P=j({},o,$),E=e==="root"?C||l:C,T=mc(h,j({},e==="root"&&!l&&!f[e]&&s,e!=="root"&&!f[e]&&s,g,E&&{as:E},{ref:_}),P);return Object.keys($).forEach(R=>{delete T[R]}),[h,T]}function eOe(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:c,timeout:l}=e,[f,v]=d.useState(!1),m=$e(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},x=$e(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&v(!0),d.useEffect(()=>{if(!s&&c!=null){const w=setTimeout(c,l);return()=>{clearTimeout(w)}}},[c,s,l]),S.jsx("span",{className:m,style:h,children:S.jsx("span",{className:x})})}const ko=He("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tOe=["center","classes","className"];let V0=e=>e,VF,WF,qF,HF;const mC=550,rOe=80,nOe=Di(VF||(VF=V0` + */var s$=Symbol.for("react.element"),l$=Symbol.for("react.portal"),$0=Symbol.for("react.fragment"),R0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),k0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),hwe=Symbol.for("react.server_context"),j0=Symbol.for("react.forward_ref"),A0=Symbol.for("react.suspense"),M0=Symbol.for("react.suspense_list"),F0=Symbol.for("react.memo"),L0=Symbol.for("react.lazy"),gwe=Symbol.for("react.offscreen"),c6;c6=Symbol.for("react.module.reference");function ta(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case s$:switch(e=e.type,e){case $0:case T0:case R0:case A0:case M0:return e;default:switch(e=e&&e.$$typeof,e){case hwe:case I0:case j0:case L0:case F0:case k0:return e;default:return t}}case l$:return t}}}Mt.ContextConsumer=I0;Mt.ContextProvider=k0;Mt.Element=s$;Mt.ForwardRef=j0;Mt.Fragment=$0;Mt.Lazy=L0;Mt.Memo=F0;Mt.Portal=l$;Mt.Profiler=T0;Mt.StrictMode=R0;Mt.Suspense=A0;Mt.SuspenseList=M0;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return ta(e)===I0};Mt.isContextProvider=function(e){return ta(e)===k0};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===s$};Mt.isForwardRef=function(e){return ta(e)===j0};Mt.isFragment=function(e){return ta(e)===$0};Mt.isLazy=function(e){return ta(e)===L0};Mt.isMemo=function(e){return ta(e)===F0};Mt.isPortal=function(e){return ta(e)===l$};Mt.isProfiler=function(e){return ta(e)===T0};Mt.isStrictMode=function(e){return ta(e)===R0};Mt.isSuspense=function(e){return ta(e)===A0};Mt.isSuspenseList=function(e){return ta(e)===M0};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$0||e===T0||e===R0||e===A0||e===M0||e===gwe||typeof e=="object"&&e!==null&&(e.$$typeof===L0||e.$$typeof===F0||e.$$typeof===k0||e.$$typeof===I0||e.$$typeof===j0||e.$$typeof===c6||e.getModuleId!==void 0)};Mt.typeOf=ta;u6.exports=Mt;var CF=u6.exports;const ywe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function d6(e){const t=`${e}`.match(ywe);return t&&t[1]||""}function f6(e,t=""){return e.displayName||e.name||d6(e)||t}function OF(e,t,r){const n=f6(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function bwe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return f6(e,"Component");if(typeof e=="object")switch(e.$$typeof){case CF.ForwardRef:return OF(e,e.render,"ForwardRef");case CF.Memo:return OF(e,e.type,"memo");default:return}}}const _we=Object.freeze(Object.defineProperty({__proto__:null,default:bwe,getFunctionName:d6},Symbol.toStringTag,{value:"Module"})),xwe=["ownerState"],wwe=["variants"],Swe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Cwe(e){return Object.keys(e).length===0}function Owe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function nw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ewe=kd(),Pwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function mh({defaultTheme:e,theme:t,themeId:r}){return Cwe(t)?e:t[r]||t}function $we(e){return e?(t,r)=>r[e]:null}function og(e,t){let{ownerState:r}=t,n=we(t,xwe);const o=typeof e=="function"?e(j({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>og(a,j({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=we(o,wwe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props(j({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof c.style=="function"?c.style(j({ownerState:r},n,r)):c.style))}),s}return o}function Rwe(e={}){const{themeId:t,defaultTheme:r=Ewe,rootShouldForwardProp:n=nw,slotShouldForwardProp:o=nw}=e,a=i=>kv(j({},i,{theme:mh(j({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{Jz(i,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=$we(Pwe(l))}=s,h=we(s,Swe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let C,b=nw;l==="Root"||l==="root"?b=n:l?b=o:Owe(i)&&(b=void 0);const g=ZP(i,j({shouldForwardProp:b,label:C},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||bi(P)?E=>og(P,j({},E,{theme:mh({theme:E.theme,defaultTheme:r,themeId:t})})):P,$=(P,...E)=>{let T=_(P);const R=E?E.map(_):[];c&&m&&R.push(F=>{const L=mh(j({},F,{defaultTheme:r,themeId:t}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const D=L.components[c].styleOverrides,z={};return Object.entries(D).forEach(([H,G])=>{z[H]=og(G,j({},F,{theme:L}))}),m(F,z)}),c&&!x&&R.push(F=>{var L;const D=mh(j({},F,{defaultTheme:r,themeId:t})),z=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return og({variants:z},j({},F,{theme:D}))}),w||R.push(a);const I=R.length-E.length;if(Array.isArray(P)&&I>0){const F=new Array(I).fill("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}const p6=Rwe();function u$(e,t){const r=j({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=j({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=j({},a),Object.keys(o).forEach(i=>{r[n][i]=u$(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function v6(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:u$(t.components[r].defaultProps,n)}function c$({props:e,name:t,defaultTheme:r,themeId:n}){let o=E0(r);return n&&(o=o[n]||o),v6({theme:o,name:t,props:e})}const po=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Twe(e,t,r,n,o){const[a,i]=d.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return po(()=>{let s=!0;if(!r)return;const c=r(e),l=()=>{s&&i(c.matches)};return l(),c.addListener(l),()=>{s=!1,c.removeListener(l)}},[e,r]),a}const m6=d.useSyncExternalStore;function kwe(e,t,r,n,o){const a=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:f}=n(e);return()=>f}return a},[a,e,n,o,r]),[s,c]=d.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const f=r(e);return[()=>f.matches,v=>(f.addListener(v),()=>{f.removeListener(v)})]},[a,r,e]);return m6(c,s,i)}function In(e,t={}){const r=a$(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=v6({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(m6!==void 0?kwe:Twe)(c,o,a,i,s)}function h6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Iwe=Object.freeze(Object.defineProperty({__proto__:null,default:h6},Symbol.toStringTag,{value:"Module"}));function g6(e,t=0,r=1){return h6(e,t,r)}function jwe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function d$(e){if(e.type)return e;if(e.charAt(0)==="#")return d$(jwe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ri(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Ri(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}function y6(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Xc(e,t){return e=d$(e),t=g6(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,y6(e)}function Awe(e,t){if(e=d$(e),t=g6(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 y6(e)}function cC(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Id(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Mwe(e,t){return()=>null}function ag(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Pr(e){return e&&e.ownerDocument||document}function qo(e){return Pr(e).defaultView||window}function Fwe(e,t){return()=>null}function Py(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let EF=0;function Lwe(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(EF+=1,r(`mui-${EF}`))},[t]),n}const PF=Sw.useId;function ru(e){if(PF!==void 0){const t=PF();return e??t}return Lwe(e)}function Nwe(e,t,r,n,o){return null}function Yc({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=d.useRef(e!==void 0),[a,i]=d.useState(t),s=o?e:a,c=d.useCallback(l=>{o||i(l)},[]);return[s,c]}function En(e){const t=d.useRef(e);return po(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function sr(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Py(r,t)})},e)}const $F={};function Dwe(e,t){const r=d.useRef($F);return r.current===$F&&(r.current=e(t)),r}const Bwe=[];function zwe(e){d.useEffect(e,Bwe)}class Iv{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Iv}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Rl(){const e=Dwe(Iv.create).current;return zwe(e.disposeEffect),e}let N0=!0,dC=!1;const Uwe=new Iv,Vwe={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 Wwe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Vwe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function qwe(e){e.metaKey||e.altKey||e.ctrlKey||(N0=!0)}function ow(){N0=!1}function Hwe(){this.visibilityState==="hidden"&&dC&&(N0=!0)}function Gwe(e){e.addEventListener("keydown",qwe,!0),e.addEventListener("mousedown",ow,!0),e.addEventListener("pointerdown",ow,!0),e.addEventListener("touchstart",ow,!0),e.addEventListener("visibilitychange",Hwe,!0)}function Kwe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return N0||Wwe(t)}function D0(){const e=d.useCallback(o=>{o!=null&&Gwe(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(dC=!0,Uwe.start(100,()=>{dC=!1}),t.current=!1,!0):!1}function n(o){return Kwe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function b6(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let zu;function _6(){if(zu)return zu;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),zu="reverse",e.scrollLeft>0?zu="default":(e.scrollLeft=1,e.scrollLeft===0&&(zu="negative")),document.body.removeChild(e),zu}function Qwe(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(_6()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function ze(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const s=t(i);s!==""&&a.push(s),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}const Xwe=d.createContext(null),x6=Xwe;function w6(){return d.useContext(x6)}const Ywe=typeof Symbol=="function"&&Symbol.for,Jwe=Ywe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Zwe(e,t){return typeof t=="function"?t(e):j({},e,t)}function eSe(e){const{children:t,theme:r}=e,n=w6(),o=d.useMemo(()=>{const a=n===null?r:Zwe(n,r);return a!=null&&(a[Jwe]=n!==null),a},[r,n]);return S.jsx(x6.Provider,{value:o,children:t})}const tSe=["value"],S6=d.createContext();function rSe(e){let{value:t}=e,r=we(e,tSe);return S.jsx(S6.Provider,j({value:t??!0},r))}const Xs=()=>{const e=d.useContext(S6);return e??!1},RF={};function TF(e,t,r,n=!1){return d.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const a=r(o),i=e?j({},t,{[e]:a}):a;return n?()=>i:i}return e?j({},t,{[e]:r}):j({},t,r)},[e,t,r,n])}function nSe(e){const{children:t,theme:r,themeId:n}=e,o=a$(RF),a=w6()||RF,i=TF(n,o,r),s=TF(n,a,r,!0),c=i.direction==="rtl";return S.jsx(eSe,{theme:s,children:S.jsx($v.Provider,{value:i,children:S.jsx(rSe,{value:c,children:t})})})}const oSe=["className","component","disableGutters","fixed","maxWidth","classes"],aSe=kd(),iSe=p6("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),sSe=e=>c$({props:e,name:"MuiContainer",defaultTheme:aSe}),lSe=(e,t)=>{const r=c=>Ve(t,c),{classes:n,fixed:o,disableGutters:a,maxWidth:i}=e,s={root:["root",i&&`maxWidth${xe(String(i))}`,o&&"fixed",a&&"disableGutters"]};return ze(s,r,n)};function uSe(e={}){const{createStyledComponent:t=iSe,useThemeProps:r=sSe,componentName:n="MuiContainer"}=e,o=t(({theme:i,ownerState:s})=>j({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:s})=>s.fixed&&Object.keys(i.breakpoints.values).reduce((c,l)=>{const f=l,v=i.breakpoints.values[f];return v!==0&&(c[i.breakpoints.up(f)]={maxWidth:`${v}${i.breakpoints.unit}`}),c},{}),({theme:i,ownerState:s})=>j({},s.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[i.breakpoints.up(s.maxWidth)]:{maxWidth:`${i.breakpoints.values[s.maxWidth]}${i.breakpoints.unit}`}}));return d.forwardRef(function(s,c){const l=r(s),{className:f,component:v="div",disableGutters:m=!1,fixed:h=!1,maxWidth:x="lg"}=l,w=we(l,oSe),C=j({},l,{component:v,disableGutters:m,fixed:h,maxWidth:x}),b=lSe(C,n);return S.jsx(o,j({as:v,ownerState:C,className:$e(b.root,f),ref:c},w))})}const cSe=["component","direction","spacing","divider","children","className","useFlexGap"],dSe=kd(),fSe=p6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function pSe(e){return c$({props:e,name:"MuiStack",defaultTheme:dSe})}function vSe(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],hSe=({ownerState:e,theme:t})=>{let r=j({display:"flex",flexDirection:"column"},xa({theme:t},rw({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=n$(t),o=Object.keys(t.breakpoints.values).reduce((c,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(c[l]=!0),c),{}),a=rw({values:e.direction,base:o}),i=rw({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,l,f)=>{if(!a[c]){const m=l>0?a[f[l-1]]:"column";a[c]=m}}),r=$n(r,xa({theme:t},i,(c,l)=>e.useFlexGap?{gap:tu(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${mSe(l?a[l]:e.direction)}`]:tu(n,c)}}))}return r=mxe(t.breakpoints,r),r};function gSe(e={}){const{createStyledComponent:t=fSe,useThemeProps:r=pSe,componentName:n="MuiStack"}=e,o=()=>ze({root:["root"]},c=>Ve(n,c),{}),a=t(hSe);return d.forwardRef(function(c,l){const f=r(c),v=P0(f),{component:m="div",direction:h="column",spacing:x=0,divider:w,children:C,className:b,useFlexGap:g=!1}=v,_=we(v,cSe),$={direction:h,spacing:x,useFlexGap:g},P=o();return S.jsx(a,j({as:m,ownerState:$,ref:l,className:$e(P.root,b)},_,{children:w?vSe(C,w):C}))})}function ySe(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var br={},C6={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(C6);var We=C6.exports;const bSe=Qa(t_e),_Se=Qa(Iwe);var O6=We;Object.defineProperty(br,"__esModule",{value:!0});var It=br.alpha=R6;br.blend=ISe;br.colorChannel=void 0;var B0=br.darken=p$;br.decomposeColor=Ho;var xSe=br.emphasize=T6,wSe=br.getContrastRatio=PSe;br.getLuminance=$y;br.hexToRgb=E6;br.hslToRgb=$6;var z0=br.lighten=v$;br.private_safeAlpha=$Se;br.private_safeColorChannel=void 0;br.private_safeDarken=RSe;br.private_safeEmphasize=kSe;br.private_safeLighten=TSe;br.recomposeColor=jd;br.rgbToHex=ESe;var kF=O6(bSe),SSe=O6(_Se);function f$(e,t=0,r=1){return(0,SSe.default)(e,t,r)}function E6(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function CSe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ho(e){if(e.type)return e;if(e.charAt(0)==="#")return Ho(E6(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,kF.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,kF.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const P6=e=>{const t=Ho(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};br.colorChannel=P6;const OSe=(e,t)=>{try{return P6(e)}catch{return e}};br.private_safeColorChannel=OSe;function jd(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function ESe(e){if(e.indexOf("#")===0)return e;const{values:t}=Ho(e);return`#${t.map((r,n)=>CSe(n===3?Math.round(255*r):r)).join("")}`}function $6(e){e=Ho(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(l,f=(l+r/30)%12)=>o-a*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),jd({type:s,values:c})}function $y(e){e=Ho(e);let t=e.type==="hsl"||e.type==="hsla"?Ho($6(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function PSe(e,t){const r=$y(e),n=$y(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function R6(e,t){return e=Ho(e),t=f$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jd(e)}function $Se(e,t,r){try{return R6(e,t)}catch{return e}}function p$(e,t){if(e=Ho(e),t=f$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return jd(e)}function RSe(e,t,r){try{return p$(e,t)}catch{return e}}function v$(e,t){if(e=Ho(e),t=f$(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 jd(e)}function TSe(e,t,r){try{return v$(e,t)}catch{return e}}function T6(e,t=.15){return $y(e)>.5?p$(e,t):v$(e,t)}function kSe(e,t,r){try{return T6(e,t)}catch{return e}}function ISe(e,t,r,n=1){const o=(c,l)=>Math.round((c**(1/n)*(1-r)+l**(1/n)*r)**n),a=Ho(e),i=Ho(t),s=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return jd({type:"rgb",values:s})}const jSe=["mode","contrastThreshold","tonalOffset"],IF={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:Bp.white,default:Bp.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}},aw={text:{primary:Bp.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:Bp.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 jF(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=z0(e.main,o):t==="dark"&&(e.dark=B0(e.main,a)))}function ASe(e="light"){return e==="dark"?{main:Nu[200],light:Nu[50],dark:Nu[400]}:{main:Nu[700],light:Nu[400],dark:Nu[800]}}function MSe(e="light"){return e==="dark"?{main:Lu[200],light:Lu[50],dark:Lu[400]}:{main:Lu[500],light:Lu[300],dark:Lu[700]}}function FSe(e="light"){return e==="dark"?{main:Fu[500],light:Fu[300],dark:Fu[700]}:{main:Fu[700],light:Fu[400],dark:Fu[800]}}function LSe(e="light"){return e==="dark"?{main:Du[400],light:Du[300],dark:Du[700]}:{main:Du[700],light:Du[500],dark:Du[900]}}function NSe(e="light"){return e==="dark"?{main:Bu[400],light:Bu[300],dark:Bu[700]}:{main:Bu[800],light:Bu[500],dark:Bu[900]}}function DSe(e="light"){return e==="dark"?{main:bf[400],light:bf[300],dark:bf[700]}:{main:"#ed6c02",light:bf[500],dark:bf[900]}}function BSe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=we(e,jSe),a=e.primary||ASe(t),i=e.secondary||MSe(t),s=e.error||FSe(t),c=e.info||LSe(t),l=e.success||NSe(t),f=e.warning||DSe(t);function v(w){return wSe(w,aw.text.primary)>=r?aw.text.primary:IF.text.primary}const m=({color:w,name:C,mainShade:b=500,lightShade:g=300,darkShade:_=700})=>{if(w=j({},w),!w.main&&w[b]&&(w.main=w[b]),!w.hasOwnProperty("main"))throw new Error(Ri(11,C?` (${C})`:"",b));if(typeof w.main!="string")throw new Error(Ri(12,C?` (${C})`:"",JSON.stringify(w.main)));return jF(w,"light",g,n),jF(w,"dark",_,n),w.contrastText||(w.contrastText=v(w.main)),w},h={dark:aw,light:IF};return $n(j({common:j({},Bp),mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:l,name:"success"}),grey:e_e,contrastThreshold:r,getContrastText:v,augmentColor:m,tonalOffset:n},h[t]),o)}const zSe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function USe(e){return Math.round(e*1e5)/1e5}const AF={textTransform:"uppercase"},MF='"Roboto", "Helvetica", "Arial", sans-serif';function VSe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=MF,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:f,pxToRem:v}=r,m=we(r,zSe),h=o/14,x=v||(b=>`${b/l*h}rem`),w=(b,g,_,$,P)=>j({fontFamily:n,fontWeight:b,fontSize:x(g),lineHeight:_},n===MF?{letterSpacing:`${USe($/g)}em`}:{},P,f),C={h1:w(a,96,1.167,-1.5),h2:w(a,60,1.2,-.5),h3:w(i,48,1.167,0),h4:w(i,34,1.235,.25),h5:w(i,24,1.334,0),h6:w(s,20,1.6,.15),subtitle1:w(i,16,1.75,.15),subtitle2:w(s,14,1.57,.1),body1:w(i,16,1.5,.15),body2:w(i,14,1.43,.15),button:w(s,14,1.75,.4,AF),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,AF),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $n(j({htmlFontSize:l,pxToRem:x,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:c},C),m,{clone:!1})}const WSe=.2,qSe=.14,HSe=.12;function er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${WSe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qSe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${HSe})`].join(",")}const GSe=["none",er(0,2,1,-1,0,1,1,0,0,1,3,0),er(0,3,1,-2,0,2,2,0,0,1,5,0),er(0,3,3,-2,0,3,4,0,0,1,8,0),er(0,2,4,-1,0,4,5,0,0,1,10,0),er(0,3,5,-1,0,5,8,0,0,1,14,0),er(0,3,5,-1,0,6,10,0,0,1,18,0),er(0,4,5,-2,0,7,10,1,0,2,16,1),er(0,5,5,-3,0,8,10,1,0,3,14,2),er(0,5,6,-3,0,9,12,1,0,3,16,2),er(0,6,6,-3,0,10,14,1,0,4,18,3),er(0,6,7,-4,0,11,15,1,0,4,20,3),er(0,7,8,-4,0,12,17,2,0,5,22,4),er(0,7,8,-4,0,13,19,2,0,5,24,4),er(0,7,9,-4,0,14,21,2,0,5,26,4),er(0,8,9,-5,0,15,22,2,0,6,28,5),er(0,8,10,-5,0,16,24,2,0,6,30,5),er(0,8,11,-5,0,17,26,2,0,6,32,5),er(0,9,11,-5,0,18,28,2,0,7,34,6),er(0,9,12,-6,0,19,29,2,0,7,36,6),er(0,10,13,-6,0,20,31,3,0,8,38,7),er(0,10,13,-6,0,21,33,3,0,8,40,7),er(0,10,14,-6,0,22,35,3,0,8,42,7),er(0,11,14,-7,0,23,36,3,0,9,44,8),er(0,11,15,-7,0,24,38,3,0,9,46,8)],KSe=["duration","easing","delay"],QSe={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)"},XSe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function FF(e){return`${Math.round(e)}ms`}function YSe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function JSe(e){const t=j({},QSe,e.easing),r=j({},XSe,e.duration);return j({getAutoHeightDuration:YSe,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:c=0}=a;return we(a,KSe),(Array.isArray(o)?o:[o]).map(l=>`${l} ${typeof i=="string"?i:FF(i)} ${s} ${typeof c=="string"?c:FF(c)}`).join(",")}},e,{easing:t,duration:r})}const ZSe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},eCe=ZSe,tCe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ry(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=we(e,tCe);if(e.vars)throw new Error(Ri(18));const s=BSe(n),c=kd(e);let l=$n(c,{mixins:ySe(c.breakpoints,r),palette:s,shadows:GSe.slice(),typography:VSe(s,a),transitions:JSe(o),zIndex:j({},eCe)});return l=$n(l,i),l=t.reduce((f,v)=>$n(f,v),l),l.unstable_sxConfig=j({},Tv,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(v){return kv({sx:v,theme:this})},l}const rCe=Ry(),U0=rCe;function ra(){const e=E0(U0);return e[eu]||e}function Ge({props:e,name:t}){return c$({props:e,name:t,defaultTheme:U0,themeId:eu})}var jv={},iw={exports:{}},LF;function nCe(){return LF||(LF=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n=0)&&(o[i]=r[i]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sw)),sw.exports}const k6=Qa(uxe),aCe=Qa(cxe),iCe=Qa(gxe),sCe=Qa(_we),lCe=Qa(awe),uCe=Qa(dwe);var Ad=We;Object.defineProperty(jv,"__esModule",{value:!0});var cCe=jv.default=SCe;jv.shouldForwardProp=ig;jv.systemDefaultTheme=void 0;var To=Ad(nCe()),fC=Ad(oCe()),DF=gCe(k6),dCe=aCe;Ad(iCe);Ad(sCe);var fCe=Ad(lCe),pCe=Ad(uCe);const vCe=["ownerState"],mCe=["variants"],hCe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function I6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(I6=function(n){return n?r:t})(e)}function gCe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=I6(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function yCe(e){return Object.keys(e).length===0}function bCe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ig(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _Ce=jv.systemDefaultTheme=(0,fCe.default)(),xCe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hh({defaultTheme:e,theme:t,themeId:r}){return yCe(t)?e:t[r]||t}function wCe(e){return e?(t,r)=>r[e]:null}function sg(e,t){let{ownerState:r}=t,n=(0,fC.default)(t,vCe);const o=typeof e=="function"?e((0,To.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>sg(a,(0,To.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let s=(0,fC.default)(o,mCe);return a.forEach(c=>{let l=!0;typeof c.props=="function"?l=c.props((0,To.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof c.style=="function"?c.style((0,To.default)({ownerState:r},n,r)):c.style))}),s}return o}function SCe(e={}){const{themeId:t,defaultTheme:r=_Ce,rootShouldForwardProp:n=ig,slotShouldForwardProp:o=ig}=e,a=i=>(0,pCe.default)((0,To.default)({},i,{theme:hh((0,To.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,s={})=>{(0,DF.internal_processStyles)(i,P=>P.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:f,skipSx:v,overridesResolver:m=wCe(xCe(l))}=s,h=(0,fC.default)(s,hCe),x=f!==void 0?f:l&&l!=="Root"&&l!=="root"||!1,w=v||!1;let C,b=ig;l==="Root"||l==="root"?b=n:l?b=o:bCe(i)&&(b=void 0);const g=(0,DF.default)(i,(0,To.default)({shouldForwardProp:b,label:C},h)),_=P=>typeof P=="function"&&P.__emotion_real!==P||(0,dCe.isPlainObject)(P)?E=>sg(P,(0,To.default)({},E,{theme:hh({theme:E.theme,defaultTheme:r,themeId:t})})):P,$=(P,...E)=>{let T=_(P);const R=E?E.map(_):[];c&&m&&R.push(F=>{const L=hh((0,To.default)({},F,{defaultTheme:r,themeId:t}));if(!L.components||!L.components[c]||!L.components[c].styleOverrides)return null;const D=L.components[c].styleOverrides,z={};return Object.entries(D).forEach(([H,G])=>{z[H]=sg(G,(0,To.default)({},F,{theme:L}))}),m(F,z)}),c&&!x&&R.push(F=>{var L;const D=hh((0,To.default)({},F,{defaultTheme:r,themeId:t})),z=D==null||(L=D.components)==null||(L=L[c])==null?void 0:L.variants;return sg({variants:z},(0,To.default)({},F,{theme:D}))}),w||R.push(a);const I=R.length-E.length;if(Array.isArray(P)&&I>0){const F=new Array(I).fill("");T=[...P,...F],T.raw=[...P.raw,...F]}const A=g(T,...R);return i.muiName&&(A.muiName=i.muiName),A};return g.withConfig&&($.withConfig=g.withConfig),$}}function j6(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const CCe=e=>j6(e)&&e!=="classes",rn=CCe,J=cCe({themeId:eu,defaultTheme:U0,rootShouldForwardProp:rn}),OCe=["theme"];function ECe(e){let{theme:t}=e,r=we(e,OCe);const n=t[eu];return S.jsx(nSe,j({},r,{themeId:n?eu:void 0,theme:n||t}))}const BF=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function PCe(e){return Ve("MuiSvgIcon",e)}He("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $Ce=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],RCe=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return ze(o,PCe,n)},TCe=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,s,c,l,f,v,m,h,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(c=s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem",large:((l=e.typography)==null||(f=l.pxToRem)==null?void 0:f.call(l,35))||"2.1875rem"}[t.fontSize],color:(v=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?v:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),pC=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:f=!1,titleAccess:v,viewBox:m="0 0 24 24"}=n,h=we(n,$Ce),x=d.isValidElement(o)&&o.type==="svg",w=j({},n,{color:i,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:x}),C={};f||(C.viewBox=m);const b=RCe(w);return S.jsxs(TCe,j({as:s,className:$e(b.root,a),focusable:"false",color:l,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r},C,h,x&&o.props,{ownerState:w,children:[x?o.props.children:o,v?S.jsx("title",{children:v}):null]}))});pC.muiName="SvgIcon";function yo(e,t){function r(n,o){return S.jsx(pC,j({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=pC.muiName,d.memo(d.forwardRef(r))}const kCe={configure:e=>{i$.configure(e)}},ICe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:xe,createChainedFunction:cC,createSvgIcon:yo,debounce:Id,deprecatedPropType:Mwe,isMuiElement:ag,ownerDocument:Pr,ownerWindow:qo,requirePropFactory:Fwe,setRef:Py,unstable_ClassNameGenerator:kCe,unstable_useEnhancedEffect:po,unstable_useId:ru,unsupportedProp:Nwe,useControlled:Yc,useEventCallback:En,useForkRef:sr,useIsFocusVisible:D0},Symbol.toStringTag,{value:"Module"}));function A6(e){return Ge}const zF={disabled:!1},Ty=ve.createContext(null);var jCe=function(t){return t.scrollTop},Ff="unmounted",_l="exited",xl="entering",qu="entered",vC="exiting",Bi=function(e){Mi(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,s=i&&!i.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?s?(c=_l,a.appearStatus=xl):c=qu:n.unmountOnExit||n.mountOnEnter?c=Ff:c=_l,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Ff?{status:_l}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==xl&&i!==qu&&(a=xl):(i===xl||i===qu)&&(a=vC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,s;return a=i=s=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,s=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:s}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Af.findDOMNode(this);i&&jCe(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_l&&this.setState({status:Ff})},r.performEnter=function(o){var a=this,i=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[Af.findDOMNode(this),s],l=c[0],f=c[1],v=this.getTimeouts(),m=s?v.appear:v.enter;if(!o&&!i||zF.disabled){this.safeSetState({status:qu},function(){a.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:xl},function(){a.props.onEntering(l,f),a.onTransitionEnd(m,function(){a.safeSetState({status:qu},function(){a.props.onEntered(l,f)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Af.findDOMNode(this);if(!a||zF.disabled){this.safeSetState({status:_l},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:vC},function(){o.props.onExiting(s),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:_l},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,a.nextCallback=null,o(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:Af.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=c[0],f=c[1];this.props.addEndListener(l,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ff)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=we(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ty.Provider,{value:null},typeof i=="function"?i(o,s):ve.cloneElement(ve.Children.only(i),s))},t}(ve.Component);Bi.contextType=Ty;Bi.propTypes={};function Uu(){}Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uu,onEntering:Uu,onEntered:Uu,onExit:Uu,onExiting:Uu,onExited:Uu};Bi.UNMOUNTED=Ff;Bi.EXITED=_l;Bi.ENTERING=xl;Bi.ENTERED=qu;Bi.EXITING=vC;const m$=Bi;function h$(e,t){var r=function(a){return t&&d.isValidElement(a)?t(a):a},n=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function ACe(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i,s={};for(var c in t){if(n[c])for(i=0;ie.scrollTop;function Jc(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function BCe(e){return Ve("MuiPaper",e)}He("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const zCe=["className","component","elevation","square","variant"],UCe=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ze(a,BCe,o)},VCe=J("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return j({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&j({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${It("#fff",BF(t.elevation))}, ${It("#fff",BF(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),WCe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:s=!1,variant:c="elevation"}=n,l=we(n,zCe),f=j({},n,{component:a,elevation:i,square:s,variant:c}),v=UCe(f);return S.jsx(VCe,j({as:a,ownerState:f,className:$e(v.root,o),ref:r},l))}),Ys=WCe;function Wp(e){return typeof e=="string"}function mc(e,t,r){return e===void 0||Wp(e)?t:j({},t,{ownerState:j({},t.ownerState,r)})}const qCe={disableDefaultClasses:!1},HCe=d.createContext(qCe);function GCe(e){const{disableDefaultClasses:t}=d.useContext(HCe);return r=>t?"":e(r)}function ky(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 M6(e,t,r){return typeof e=="function"?e(t,r):e}function UF(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 F6(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const h=$e(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),x=j({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),w=j({},r,o,n);return h.length>0&&(w.className=h),Object.keys(x).length>0&&(w.style=x),{props:w,internalRef:void 0}}const i=ky(j({},o,n)),s=UF(n),c=UF(o),l=t(i),f=$e(l==null?void 0:l.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),v=j({},l==null?void 0:l.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=j({},l,r,c,s);return f.length>0&&(m.className=f),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:l.ref}}const KCe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Go(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=we(e,KCe),s=a?{}:M6(n,o),{props:c,internalRef:l}=F6(j({},i,{externalSlotProps:s})),f=sr(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return mc(r,j({},c,{ref:f}),o)}const QCe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],XCe=["component","slots","slotProps"],YCe=["component"];function JCe(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,c=we(t,QCe),{component:l,slots:f={[e]:void 0},slotProps:v={[e]:void 0}}=a,m=we(a,XCe),h=f[e]||n,x=M6(v[e],o),w=F6(j({className:r},c,{externalForwardedProps:e==="root"?m:void 0,externalSlotProps:x})),{props:{component:C},internalRef:b}=w,g=we(w.props,YCe),_=sr(b,x==null?void 0:x.ref,t.ref),$=i?i(g):{},P=j({},o,$),E=e==="root"?C||l:C,T=mc(h,j({},e==="root"&&!l&&!f[e]&&s,e!=="root"&&!f[e]&&s,g,E&&{as:E},{ref:_}),P);return Object.keys($).forEach(R=>{delete T[R]}),[h,T]}function ZCe(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:c,timeout:l}=e,[f,v]=d.useState(!1),m=$e(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},x=$e(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&v(!0),d.useEffect(()=>{if(!s&&c!=null){const w=setTimeout(c,l);return()=>{clearTimeout(w)}}},[c,s,l]),S.jsx("span",{className:m,style:h,children:S.jsx("span",{className:x})})}const ko=He("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),eOe=["center","classes","className"];let V0=e=>e,VF,WF,qF,HF;const mC=550,tOe=80,rOe=Di(VF||(VF=V0` 0% { transform: scale(0); opacity: 0.1; @@ -143,7 +143,7 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu transform: scale(1); opacity: 0.3; } -`)),oOe=Di(WF||(WF=V0` +`)),nOe=Di(WF||(WF=V0` 0% { opacity: 1; } @@ -151,7 +151,7 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu 100% { opacity: 0; } -`)),aOe=Di(qF||(qF=V0` +`)),oOe=Di(qF||(qF=V0` 0% { transform: scale(1); } @@ -163,7 +163,7 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu 100% { transform: scale(1); } -`)),iOe=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sOe=J(eOe,{name:"MuiTouchRipple",slot:"Ripple"})(HF||(HF=V0` +`)),aOe=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iOe=J(ZCe,{name:"MuiTouchRipple",slot:"Ripple"})(HF||(HF=V0` opacity: 0; position: absolute; @@ -206,8 +206,8 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu animation-iteration-count: infinite; animation-delay: 200ms; } -`),ko.rippleVisible,nOe,mC,({theme:e})=>e.transitions.easing.easeInOut,ko.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ko.child,ko.childLeaving,oOe,mC,({theme:e})=>e.transitions.easing.easeInOut,ko.childPulsate,aOe,({theme:e})=>e.transitions.easing.easeInOut),lOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=we(n,tOe),[c,l]=d.useState([]),f=d.useRef(0),v=d.useRef(null);d.useEffect(()=>{v.current&&(v.current(),v.current=null)},[c]);const m=d.useRef(!1),h=Rl(),x=d.useRef(null),w=d.useRef(null),C=d.useCallback($=>{const{pulsate:P,rippleX:E,rippleY:T,rippleSize:R,cb:I}=$;l(A=>[...A,S.jsx(sOe,{classes:{ripple:$e(a.ripple,ko.ripple),rippleVisible:$e(a.rippleVisible,ko.rippleVisible),ripplePulsate:$e(a.ripplePulsate,ko.ripplePulsate),child:$e(a.child,ko.child),childLeaving:$e(a.childLeaving,ko.childLeaving),childPulsate:$e(a.childPulsate,ko.childPulsate)},timeout:mC,pulsate:P,rippleX:E,rippleY:T,rippleSize:R},f.current)]),f.current+=1,v.current=I},[a]),b=d.useCallback(($={},P={},E=()=>{})=>{const{pulsate:T=!1,center:R=o||P.pulsate,fakeElement:I=!1}=P;if(($==null?void 0:$.type)==="mousedown"&&m.current){m.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(m.current=!0);const A=I?null:w.current,F=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,D,z;if(R||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)L=Math.round(F.width/2),D=Math.round(F.height/2);else{const{clientX:H,clientY:G}=$.touches&&$.touches.length>0?$.touches[0]:$;L=Math.round(H-F.left),D=Math.round(G-F.top)}if(R)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-L),L)*2+2,G=Math.max(Math.abs((A?A.clientHeight:0)-D),D)*2+2;z=Math.sqrt(H**2+G**2)}$!=null&&$.touches?x.current===null&&(x.current=()=>{C({pulsate:T,rippleX:L,rippleY:D,rippleSize:z,cb:E})},h.start(rOe,()=>{x.current&&(x.current(),x.current=null)})):C({pulsate:T,rippleX:L,rippleY:D,rippleSize:z,cb:E})},[o,C,h]),g=d.useCallback(()=>{b({},{pulsate:!0})},[b]),_=d.useCallback(($,P)=>{if(h.clear(),($==null?void 0:$.type)==="touchend"&&x.current){x.current(),x.current=null,h.start(0,()=>{_($,P)});return}x.current=null,l(E=>E.length>0?E.slice(1):E),v.current=P},[h]);return d.useImperativeHandle(r,()=>({pulsate:g,start:b,stop:_}),[g,b,_]),S.jsx(iOe,j({className:$e(ko.root,a.root,i),ref:w},s,{children:S.jsx(BCe,{component:null,exit:!0,children:c})}))}),uOe=lOe;function cOe(e){return Ve("MuiButtonBase",e)}const dOe=He("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"],pOe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ze({root:["root",t&&"disabled",r&&"focusVisible"]},cOe,o);return r&&n&&(i.root+=` ${n}`),i},vOe=J("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dOe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:c="button",disabled:l=!1,disableRipple:f=!1,disableTouchRipple:v=!1,focusRipple:m=!1,LinkComponent:h="a",onBlur:x,onClick:w,onContextMenu:C,onDragLeave:b,onFocus:g,onFocusVisible:_,onKeyDown:$,onKeyUp:P,onMouseDown:E,onMouseLeave:T,onMouseUp:R,onTouchEnd:I,onTouchMove:A,onTouchStart:F,tabIndex:L=0,TouchRippleProps:D,touchRippleRef:z,type:H}=n,G=we(n,fOe),q=d.useRef(null),U=d.useRef(null),W=sr(U,z),{isFocusVisibleRef:te,onFocus:ne,onBlur:ee,ref:Ce}=D0(),[de,oe]=d.useState(!1);l&&de&&oe(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{oe(!0),q.current.focus()}}),[]);const[me,Re]=d.useState(!1);d.useEffect(()=>{Re(!0)},[]);const ye=me&&!f&&!l;d.useEffect(()=>{de&&m&&!f&&me&&U.current.pulsate()},[f,m,de,me]);function fe(De,ft,Et=v){return En(Ot=>(ft&&ft(Ot),!Et&&U.current&&U.current[De](Ot),!0))}const ge=fe("start",E),ce=fe("stop",C),pe=fe("stop",b),ae=fe("stop",R),Se=fe("stop",De=>{de&&De.preventDefault(),T&&T(De)}),Oe=fe("start",F),Ne=fe("stop",I),Xe=fe("stop",A),V=fe("stop",De=>{ee(De),te.current===!1&&oe(!1),x&&x(De)},!1),X=En(De=>{q.current||(q.current=De.currentTarget),ne(De),te.current===!0&&(oe(!0),_&&_(De)),g&&g(De)}),Y=()=>{const De=q.current;return c&&c!=="button"&&!(De.tagName==="A"&&De.href)},ie=d.useRef(!1),se=En(De=>{m&&!ie.current&&de&&U.current&&De.key===" "&&(ie.current=!0,U.current.stop(De,()=>{U.current.start(De)})),De.target===De.currentTarget&&Y()&&De.key===" "&&De.preventDefault(),$&&$(De),De.target===De.currentTarget&&Y()&&De.key==="Enter"&&!l&&(De.preventDefault(),w&&w(De))}),ue=En(De=>{m&&De.key===" "&&U.current&&de&&!De.defaultPrevented&&(ie.current=!1,U.current.stop(De,()=>{U.current.pulsate(De)})),P&&P(De),w&&De.target===De.currentTarget&&Y()&&De.key===" "&&!De.defaultPrevented&&w(De)});let Ee=c;Ee==="button"&&(G.href||G.to)&&(Ee=h);const Ie={};Ee==="button"?(Ie.type=H===void 0?"button":H,Ie.disabled=l):(!G.href&&!G.to&&(Ie.role="button"),l&&(Ie["aria-disabled"]=l));const at=sr(r,Ce,q),ot=j({},n,{centerRipple:a,component:c,disabled:l,disableRipple:f,disableTouchRipple:v,focusRipple:m,tabIndex:L,focusVisible:de}),Le=pOe(ot);return S.jsxs(vOe,j({as:Ee,className:$e(Le.root,s),ownerState:ot,onBlur:V,onClick:w,onContextMenu:ce,onFocus:X,onKeyDown:se,onKeyUp:ue,onMouseDown:ge,onMouseLeave:Se,onMouseUp:ae,onDragLeave:pe,onTouchEnd:Ne,onTouchMove:Xe,onTouchStart:Oe,ref:at,tabIndex:l?-1:L,type:H},Ie,G,{children:[i,ye?S.jsx(uOe,j({ref:W,center:a},D)):null]}))}),zi=mOe;function hOe(e){return Ve("MuiIconButton",e)}const gOe=He("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),yOe=["edge","children","className","color","disabled","disableFocusRipple","size"],bOe=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,o&&`edge${xe(o)}`,`size${xe(a)}`]};return ze(i,hOe,t)},_Oe=J(zi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>j({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return j({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&j({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":j({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${gOe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),xOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:c=!1,disableFocusRipple:l=!1,size:f="medium"}=n,v=we(n,yOe),m=j({},n,{edge:o,color:s,disabled:c,disableFocusRipple:l,size:f}),h=bOe(m);return S.jsx(_Oe,j({className:$e(h.root,i),centerRipple:!0,focusRipple:!l,disabled:c,ref:r},v,{ownerState:m,children:a}))}),or=xOe;function wOe(e){return Ve("MuiTypography",e)}He("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const SOe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],COe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return ze(s,wOe,i)},OOe=J("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>j({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),GF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},EOe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},POe=e=>EOe[e]||e,$Oe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTypography"}),o=POe(n.color),a=P0(j({},n,{color:o})),{align:i="inherit",className:s,component:c,gutterBottom:l=!1,noWrap:f=!1,paragraph:v=!1,variant:m="body1",variantMapping:h=GF}=a,x=we(a,SOe),w=j({},a,{align:i,color:o,className:s,component:c,gutterBottom:l,noWrap:f,paragraph:v,variant:m,variantMapping:h}),C=c||(v?"p":h[m]||GF[m])||"span",b=COe(w);return S.jsx(OOe,j({as:C,ref:r,ownerState:w,className:$e(b.root,s)},x))}),it=$Oe;function ROe(e){return Ve("MuiAppBar",e)}He("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const TOe=["className","color","enableColorOnDark","position"],kOe=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return ze(o,ROe,n)},gh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,IOe=J(Ys,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return j({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&j({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&j({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&j({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gh(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:gh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),jOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,c=we(n,TOe),l=j({},n,{color:a,position:s,enableColorOnDark:i}),f=kOe(l);return S.jsx(IOe,j({square:!0,component:"header",ownerState:l,elevation:4,className:$e(f.root,o,s==="fixed"&&"mui-fixed"),ref:r},c))}),AOe=jOe,L6="base";function MOe(e){return`${L6}--${e}`}function FOe(e,t){return`${L6}-${e}-${t}`}function N6(e,t){const r=l6[t];return r?MOe(r):FOe(e,t)}function LOe(e,t){const r={};return t.forEach(n=>{r[n]=N6(e,n)}),r}function KF(e){return e.substring(2).toLowerCase()}function NOe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=sr(t.ref,s),v=En(x=>{const w=l.current;l.current=!1;const C=Pr(s.current);if(!c.current||!s.current||"clientX"in x&&NOe(x,C))return;if(i.current){i.current=!1;return}let b;x.composedPath?b=x.composedPath().indexOf(s.current)>-1:b=!C.documentElement.contains(x.target)||s.current.contains(x.target),!b&&(r||!w)&&o(x)}),m=x=>w=>{l.current=!0;const C=t.props[x];C&&C(w)},h={ref:f};return a!==!1&&(h[a]=m(a)),d.useEffect(()=>{if(a!==!1){const x=KF(a),w=Pr(s.current),C=()=>{i.current=!0};return w.addEventListener(x,v),w.addEventListener("touchmove",C),()=>{w.removeEventListener(x,v),w.removeEventListener("touchmove",C)}}},[v,a]),n!==!1&&(h[n]=m(n)),d.useEffect(()=>{if(n!==!1){const x=KF(n),w=Pr(s.current);return w.addEventListener(x,v),()=>{w.removeEventListener(x,v)}}},[v,n]),S.jsx(d.Fragment,{children:d.cloneElement(t,h)})}const BOe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zOe(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 UOe(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 VOe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||UOe(e))}function WOe(e){const t=[],r=[];return Array.from(e.querySelectorAll(BOe)).forEach((n,o)=>{const a=zOe(n);a===-1||!VOe(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function qOe(){return!0}function HOe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=WOe,isEnabled:i=qOe,open:s}=e,c=d.useRef(!1),l=d.useRef(null),f=d.useRef(null),v=d.useRef(null),m=d.useRef(null),h=d.useRef(!1),x=d.useRef(null),w=sr(t.ref,x),C=d.useRef(null);d.useEffect(()=>{!s||!x.current||(h.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!x.current)return;const _=Pr(x.current);return x.current.contains(_.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),h.current&&x.current.focus()),()=>{o||(v.current&&v.current.focus&&(c.current=!0,v.current.focus()),v.current=null)}},[s]),d.useEffect(()=>{if(!s||!x.current)return;const _=Pr(x.current),$=T=>{C.current=T,!(n||!i()||T.key!=="Tab")&&_.activeElement===x.current&&T.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const T=x.current;if(T===null)return;if(!_.hasFocus()||!i()||c.current){c.current=!1;return}if(T.contains(_.activeElement)||n&&_.activeElement!==l.current&&_.activeElement!==f.current)return;if(_.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!h.current)return;let R=[];if((_.activeElement===l.current||_.activeElement===f.current)&&(R=a(x.current)),R.length>0){var I,A;const F=!!((I=C.current)!=null&&I.shiftKey&&((A=C.current)==null?void 0:A.key)==="Tab"),L=R[0],D=R[R.length-1];typeof L!="string"&&typeof D!="string"&&(F?D.focus():L.focus())}else T.focus()};_.addEventListener("focusin",P),_.addEventListener("keydown",$,!0);const E=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(E),_.removeEventListener("focusin",P),_.removeEventListener("keydown",$,!0)}},[r,n,o,i,s,a]);const b=_=>{v.current===null&&(v.current=_.relatedTarget),h.current=!0,m.current=_.target;const $=t.props.onFocus;$&&$(_)},g=_=>{v.current===null&&(v.current=_.relatedTarget),h.current=!0};return S.jsxs(d.Fragment,{children:[S.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:w,onFocus:b}),S.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:f,"data-testid":"sentinelEnd"})]})}function GOe(e){return typeof e=="function"?e():e}const D6=d.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=d.useState(null),c=sr(d.isValidElement(n)?n.ref:null,r);if(po(()=>{a||s(GOe(o)||document.body)},[o,a]),po(()=>{if(i&&!a)return Py(r,i),()=>{Py(r,null)}},[r,i,a]),a){if(d.isValidElement(n)){const l={ref:c};return d.cloneElement(n,l)}return S.jsx(d.Fragment,{children:n})}return S.jsx(d.Fragment,{children:i&&Rb.createPortal(n,i)})});function KOe(e){const t=Pr(e);return t.body===e?qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function np(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function QF(e){return parseInt(qo(e).getComputedStyle(e).paddingRight,10)||0}function QOe(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 XF(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,c=!QOe(i);s&&c&&np(i,o)})}function lw(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function XOe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(KOe(n)){const i=b6(Pr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${QF(n)+i}px`;const s=Pr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${QF(c)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Pr(n).body;else{const i=n.parentElement,s=qo(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function YOe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class JOe{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&&np(t.modalRef,!1);const o=YOe(r);XF(r,t.mount,t.modalRef,o,!0);const a=lw(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=lw(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=XOe(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=lw(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&np(t.modalRef,r),XF(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&np(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ZOe(e){return typeof e=="function"?e():e}function eEe(e){return e?e.props.hasOwnProperty("in"):!1}const tEe=new JOe;function rEe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=tEe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:c,onClose:l,open:f,rootRef:v}=e,m=d.useRef({}),h=d.useRef(null),x=d.useRef(null),w=sr(x,v),[C,b]=d.useState(!f),g=eEe(c);let _=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(_=!1);const $=()=>Pr(h.current),P=()=>(m.current.modalRef=x.current,m.current.mount=h.current,m.current),E=()=>{o.mount(P(),{disableScrollLock:n}),x.current&&(x.current.scrollTop=0)},T=En(()=>{const G=ZOe(t)||$().body;o.add(P(),G),x.current&&E()}),R=d.useCallback(()=>o.isTopModal(P()),[o]),I=En(G=>{h.current=G,G&&(f&&R()?E():x.current&&np(x.current,_))}),A=d.useCallback(()=>{o.remove(P(),_)},[_,o]);d.useEffect(()=>()=>{A()},[A]),d.useEffect(()=>{f?T():(!g||!a)&&A()},[f,A,g,a,T]);const F=G=>q=>{var U;(U=G.onKeyDown)==null||U.call(G,q),!(q.key!=="Escape"||q.which===229||!R())&&(r||(q.stopPropagation(),l&&l(q,"escapeKeyDown")))},L=G=>q=>{var U;(U=G.onClick)==null||U.call(G,q),q.target===q.currentTarget&&l&&l(q,"backdropClick")};return{getRootProps:(G={})=>{const q=ky(e);delete q.onTransitionEnter,delete q.onTransitionExited;const U=j({},q,G);return j({role:"presentation"},U,{onKeyDown:F(U),ref:w})},getBackdropProps:(G={})=>{const q=G;return j({"aria-hidden":!0},q,{onClick:L(q),open:f})},getTransitionProps:()=>{const G=()=>{b(!1),i&&i()},q=()=>{b(!0),s&&s(),a&&A()};return{onEnter:cC(G,c==null?void 0:c.props.onEnter),onExited:cC(q,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:I,isTopModal:R,exited:C,hasTransition:g}}var Hn="top",Ko="bottom",Qo="right",Gn="left",b$="auto",Av=[Hn,Ko,Qo,Gn],Zc="start",qp="end",nEe="clippingParents",B6="viewport",xf="popper",oEe="reference",YF=Av.reduce(function(e,t){return e.concat([t+"-"+Zc,t+"-"+qp])},[]),z6=[].concat(Av,[b$]).reduce(function(e,t){return e.concat([t,t+"-"+Zc,t+"-"+qp])},[]),aEe="beforeRead",iEe="read",sEe="afterRead",lEe="beforeMain",uEe="main",cEe="afterMain",dEe="beforeWrite",fEe="write",pEe="afterWrite",vEe=[aEe,iEe,sEe,lEe,uEe,cEe,dEe,fEe,pEe];function Ga(e){return e?(e.nodeName||"").toLowerCase():null}function vo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nu(e){var t=vo(e).Element;return e instanceof t||e instanceof Element}function zo(e){var t=vo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _$(e){if(typeof ShadowRoot>"u")return!1;var t=vo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mEe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!zo(a)||!Ga(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function hEe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(c,l){return c[l]="",c},{});!zo(o)||!Ga(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const gEe={name:"applyStyles",enabled:!0,phase:"write",fn:mEe,effect:hEe,requires:["computeStyles"]};function Wa(e){return e.split("-")[0]}var Bl=Math.max,Iy=Math.min,ed=Math.round;function hC(){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(hC())}function td(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&zo(e)&&(o=e.offsetWidth>0&&ed(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(n.height)/e.offsetHeight||1);var i=nu(e)?vo(e):window,s=i.visualViewport,c=!U6()&&r,l=(n.left+(c&&s?s.offsetLeft:0))/o,f=(n.top+(c&&s?s.offsetTop:0))/a,v=n.width/o,m=n.height/a;return{width:v,height:m,top:f,right:l+v,bottom:f+m,left:l,x:l,y:f}}function x$(e){var t=td(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&&_$(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ti(e){return vo(e).getComputedStyle(e)}function yEe(e){return["table","td","th"].indexOf(Ga(e))>=0}function Js(e){return((nu(e)?e.ownerDocument:e.document)||window.document).documentElement}function W0(e){return Ga(e)==="html"?e:e.assignedSlot||e.parentNode||(_$(e)?e.host:null)||Js(e)}function JF(e){return!zo(e)||Ti(e).position==="fixed"?null:e.offsetParent}function bEe(e){var t=/firefox/i.test(hC()),r=/Trident/i.test(hC());if(r&&zo(e)){var n=Ti(e);if(n.position==="fixed")return null}var o=W0(e);for(_$(o)&&(o=o.host);zo(o)&&["html","body"].indexOf(Ga(o))<0;){var a=Ti(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Mv(e){for(var t=vo(e),r=JF(e);r&&yEe(r)&&Ti(r).position==="static";)r=JF(r);return r&&(Ga(r)==="html"||Ga(r)==="body"&&Ti(r).position==="static")?t:r||bEe(e)||t}function w$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function op(e,t,r){return Bl(e,Iy(t,r))}function _Ee(e,t,r){var n=op(e,t,r);return n>r?r:n}function W6(){return{top:0,right:0,bottom:0,left:0}}function q6(e){return Object.assign({},W6(),e)}function H6(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var xEe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,q6(typeof t!="number"?t:H6(t,Av))};function wEe(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Wa(r.placement),c=w$(s),l=[Gn,Qo].indexOf(s)>=0,f=l?"height":"width";if(!(!a||!i)){var v=xEe(o.padding,r),m=x$(a),h=c==="y"?Hn:Gn,x=c==="y"?Ko:Qo,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],C=i[c]-r.rects.reference[c],b=Mv(a),g=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,_=w/2-C/2,$=v[h],P=g-m[f]-v[x],E=g/2-m[f]/2+_,T=op($,E,P),R=c;r.modifiersData[n]=(t={},t[R]=T,t.centerOffset=T-E,t)}}function SEe(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||V6(t.elements.popper,o)&&(t.elements.arrow=o))}const CEe={name:"arrow",enabled:!0,phase:"main",fn:wEe,effect:SEe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rd(e){return e.split("-")[1]}var OEe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function EEe(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ed(r*o)/o||0,y:ed(n*o)/o||0}}function ZF(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,v=e.isFixed,m=i.x,h=m===void 0?0:m,x=i.y,w=x===void 0?0:x,C=typeof f=="function"?f({x:h,y:w}):{x:h,y:w};h=C.x,w=C.y;var b=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),_=Gn,$=Hn,P=window;if(l){var E=Mv(r),T="clientHeight",R="clientWidth";if(E===vo(r)&&(E=Js(r),Ti(E).position!=="static"&&s==="absolute"&&(T="scrollHeight",R="scrollWidth")),E=E,o===Hn||(o===Gn||o===Qo)&&a===qp){$=Ko;var I=v&&E===P&&P.visualViewport?P.visualViewport.height:E[T];w-=I-n.height,w*=c?1:-1}if(o===Gn||(o===Hn||o===Ko)&&a===qp){_=Qo;var A=v&&E===P&&P.visualViewport?P.visualViewport.width:E[R];h-=A-n.width,h*=c?1:-1}}var F=Object.assign({position:s},l&&OEe),L=f===!0?EEe({x:h,y:w},vo(r)):{x:h,y:w};if(h=L.x,w=L.y,c){var D;return Object.assign({},F,(D={},D[$]=g?"0":"",D[_]=b?"0":"",D.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",D))}return Object.assign({},F,(t={},t[$]=g?w+"px":"",t[_]=b?h+"px":"",t.transform="",t))}function PEe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,c=s===void 0?!0:s,l={placement:Wa(t.placement),variation:rd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZF(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZF(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const $Ee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:PEe,data:{}};var yh={passive:!0};function REe(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,c=vo(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(f){f.addEventListener("scroll",r.update,yh)}),s&&c.addEventListener("resize",r.update,yh),function(){a&&l.forEach(function(f){f.removeEventListener("scroll",r.update,yh)}),s&&c.removeEventListener("resize",r.update,yh)}}const TEe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:REe,data:{}};var kEe={left:"right",right:"left",bottom:"top",top:"bottom"};function lg(e){return e.replace(/left|right|bottom|top/g,function(t){return kEe[t]})}var IEe={start:"end",end:"start"};function eL(e){return e.replace(/start|end/g,function(t){return IEe[t]})}function S$(e){var t=vo(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function C$(e){return td(Js(e)).left+S$(e).scrollLeft}function jEe(e,t){var r=vo(e),n=Js(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;var l=U6();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+C$(e),y:c}}function AEe(e){var t,r=Js(e),n=S$(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Bl(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Bl(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+C$(e),c=-n.scrollTop;return Ti(o||r).direction==="rtl"&&(s+=Bl(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function O$(e){var t=Ti(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function G6(e){return["html","body","#document"].indexOf(Ga(e))>=0?e.ownerDocument.body:zo(e)&&O$(e)?e:G6(W0(e))}function ap(e,t){var r;t===void 0&&(t=[]);var n=G6(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=vo(n),i=o?[a].concat(a.visualViewport||[],O$(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(ap(W0(i)))}function gC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function MEe(e,t){var r=td(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 tL(e,t,r){return t===B6?gC(jEe(e,r)):nu(t)?MEe(t,r):gC(AEe(Js(e)))}function FEe(e){var t=ap(W0(e)),r=["absolute","fixed"].indexOf(Ti(e).position)>=0,n=r&&zo(e)?Mv(e):e;return nu(n)?t.filter(function(o){return nu(o)&&V6(o,n)&&Ga(o)!=="body"}):[]}function LEe(e,t,r,n){var o=t==="clippingParents"?FEe(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(c,l){var f=tL(e,l,n);return c.top=Bl(f.top,c.top),c.right=Iy(f.right,c.right),c.bottom=Iy(f.bottom,c.bottom),c.left=Bl(f.left,c.left),c},tL(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function K6(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wa(n):null,a=n?rd(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case Hn:c={x:i,y:t.y-r.height};break;case Ko:c={x:i,y:t.y+t.height};break;case Qo:c={x:t.x+t.width,y:s};break;case Gn:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?w$(o):null;if(l!=null){var f=l==="y"?"height":"width";switch(a){case Zc:c[l]=c[l]-(t[f]/2-r[f]/2);break;case qp:c[l]=c[l]+(t[f]/2-r[f]/2);break}}return c}function Hp(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,c=s===void 0?nEe:s,l=r.rootBoundary,f=l===void 0?B6:l,v=r.elementContext,m=v===void 0?xf:v,h=r.altBoundary,x=h===void 0?!1:h,w=r.padding,C=w===void 0?0:w,b=q6(typeof C!="number"?C:H6(C,Av)),g=m===xf?oEe:xf,_=e.rects.popper,$=e.elements[x?g:m],P=LEe(nu($)?$:$.contextElement||Js(e.elements.popper),c,f,i),E=td(e.elements.reference),T=K6({reference:E,element:_,strategy:"absolute",placement:o}),R=gC(Object.assign({},_,T)),I=m===xf?R:E,A={top:P.top-I.top+b.top,bottom:I.bottom-P.bottom+b.bottom,left:P.left-I.left+b.left,right:I.right-P.right+b.right},F=e.modifiersData.offset;if(m===xf&&F){var L=F[o];Object.keys(A).forEach(function(D){var z=[Qo,Ko].indexOf(D)>=0?1:-1,H=[Hn,Ko].indexOf(D)>=0?"y":"x";A[D]+=L[H]*z})}return A}function NEe(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?z6:c,f=rd(n),v=f?s?YF:YF.filter(function(x){return rd(x)===f}):Av,m=v.filter(function(x){return l.indexOf(x)>=0});m.length===0&&(m=v);var h=m.reduce(function(x,w){return x[w]=Hp(e,{placement:w,boundary:o,rootBoundary:a,padding:i})[Wa(w)],x},{});return Object.keys(h).sort(function(x,w){return h[x]-h[w]})}function DEe(e){if(Wa(e)===b$)return[];var t=lg(e);return[eL(e),t,eL(t)]}function BEe(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,c=r.fallbackPlacements,l=r.padding,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,h=r.flipVariations,x=h===void 0?!0:h,w=r.allowedAutoPlacements,C=t.options.placement,b=Wa(C),g=b===C,_=c||(g||!x?[lg(C)]:DEe(C)),$=[C].concat(_).reduce(function(de,oe){return de.concat(Wa(oe)===b$?NEe(t,{placement:oe,boundary:f,rootBoundary:v,padding:l,flipVariations:x,allowedAutoPlacements:w}):oe)},[]),P=t.rects.reference,E=t.rects.popper,T=new Map,R=!0,I=$[0],A=0;A<$.length;A++){var F=$[A],L=Wa(F),D=rd(F)===Zc,z=[Hn,Ko].indexOf(L)>=0,H=z?"width":"height",G=Hp(t,{placement:F,boundary:f,rootBoundary:v,altBoundary:m,padding:l}),q=z?D?Qo:Gn:D?Ko:Hn;P[H]>E[H]&&(q=lg(q));var U=lg(q),W=[];if(a&&W.push(G[L]<=0),s&&W.push(G[q]<=0,G[U]<=0),W.every(function(de){return de})){I=F,R=!1;break}T.set(F,W)}if(R)for(var te=x?3:1,ne=function(oe){var me=$.find(function(Re){var ye=T.get(Re);if(ye)return ye.slice(0,oe).every(function(fe){return fe})});if(me)return I=me,"break"},ee=te;ee>0;ee--){var Ce=ne(ee);if(Ce==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const zEe={name:"flip",enabled:!0,phase:"main",fn:BEe,requiresIfExists:["offset"],data:{_skip:!1}};function rL(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 nL(e){return[Hn,Qo,Ko,Gn].some(function(t){return e[t]>=0})}function UEe(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Hp(t,{elementContext:"reference"}),s=Hp(t,{altBoundary:!0}),c=rL(i,n),l=rL(s,o,a),f=nL(c),v=nL(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const VEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:UEe};function WEe(e,t,r){var n=Wa(e),o=[Gn,Hn].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Gn,Qo].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function qEe(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=z6.reduce(function(f,v){return f[v]=WEe(v,t.rects,a),f},{}),s=i[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const HEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qEe};function GEe(e){var t=e.state,r=e.name;t.modifiersData[r]=K6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const KEe={name:"popperOffsets",enabled:!0,phase:"read",fn:GEe,data:{}};function QEe(e){return e==="x"?"y":"x"}function XEe(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,c=r.boundary,l=r.rootBoundary,f=r.altBoundary,v=r.padding,m=r.tether,h=m===void 0?!0:m,x=r.tetherOffset,w=x===void 0?0:x,C=Hp(t,{boundary:c,rootBoundary:l,padding:v,altBoundary:f}),b=Wa(t.placement),g=rd(t.placement),_=!g,$=w$(b),P=QEe($),E=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,I=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(a){var D,z=$==="y"?Hn:Gn,H=$==="y"?Ko:Qo,G=$==="y"?"height":"width",q=E[$],U=q+C[z],W=q-C[H],te=h?-R[G]/2:0,ne=g===Zc?T[G]:R[G],ee=g===Zc?-R[G]:-T[G],Ce=t.elements.arrow,de=h&&Ce?x$(Ce):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W6(),me=oe[z],Re=oe[H],ye=op(0,T[G],de[G]),fe=_?T[G]/2-te-ye-me-A.mainAxis:ne-ye-me-A.mainAxis,ge=_?-T[G]/2+te+ye+Re+A.mainAxis:ee+ye+Re+A.mainAxis,ce=t.elements.arrow&&Mv(t.elements.arrow),pe=ce?$==="y"?ce.clientTop||0:ce.clientLeft||0:0,ae=(D=F==null?void 0:F[$])!=null?D:0,Se=q+fe-ae-pe,Oe=q+ge-ae,Ne=op(h?Iy(U,Se):U,q,h?Bl(W,Oe):W);E[$]=Ne,L[$]=Ne-q}if(s){var Xe,V=$==="x"?Hn:Gn,X=$==="x"?Ko:Qo,Y=E[P],ie=P==="y"?"height":"width",se=Y+C[V],ue=Y-C[X],Ee=[Hn,Gn].indexOf(b)!==-1,Ie=(Xe=F==null?void 0:F[P])!=null?Xe:0,at=Ee?se:Y-T[ie]-R[ie]-Ie+A.altAxis,ot=Ee?Y+T[ie]+R[ie]-Ie-A.altAxis:ue,Le=h&&Ee?_Ee(at,Y,ot):op(h?at:se,Y,h?ot:ue);E[P]=Le,L[P]=Le-Y}t.modifiersData[n]=L}}const YEe={name:"preventOverflow",enabled:!0,phase:"main",fn:XEe,requiresIfExists:["offset"]};function JEe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ZEe(e){return e===vo(e)||!zo(e)?S$(e):JEe(e)}function ePe(e){var t=e.getBoundingClientRect(),r=ed(t.width)/e.offsetWidth||1,n=ed(t.height)/e.offsetHeight||1;return r!==1||n!==1}function tPe(e,t,r){r===void 0&&(r=!1);var n=zo(t),o=zo(t)&&ePe(t),a=Js(t),i=td(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ga(t)!=="body"||O$(a))&&(s=ZEe(t)),zo(t)?(c=td(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=C$(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function rPe(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&o(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function nPe(e){var t=rPe(e);return vEe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function oPe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function aPe(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var oL={placement:"bottom",modifiers:[],strategy:"absolute"};function aL(){for(var e=arguments.length,t=new Array(e),r=0;rze({root:["root"]},KCe(uPe)),mPe={},hPe=d.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:c,open:l,placement:f,popperOptions:v,popperRef:m,slotProps:h={},slots:x={},TransitionProps:w}=t,C=we(t,cPe),b=d.useRef(null),g=sr(b,r),_=d.useRef(null),$=sr(_,m),P=d.useRef($);po(()=>{P.current=$},[$]),d.useImperativeHandle(m,()=>_.current,[]);const E=fPe(f,i),[T,R]=d.useState(E),[I,A]=d.useState(yC(o));d.useEffect(()=>{_.current&&_.current.forceUpdate()}),d.useEffect(()=>{o&&A(yC(o))},[o]),po(()=>{if(!I||!l)return;const H=U=>{R(U.placement)};let G=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:U})=>{H(U)}}];c!=null&&(G=G.concat(c)),v&&v.modifiers!=null&&(G=G.concat(v.modifiers));const q=lPe(I,b.current,j({placement:E},v,{modifiers:G}));return P.current(q),()=>{q.destroy(),P.current(null)}},[I,s,c,l,v,E]);const F={placement:T};w!==null&&(F.TransitionProps=w);const L=vPe(),D=(n=x.root)!=null?n:"div",z=Go({elementType:D,externalSlotProps:h.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:L.root});return S.jsx(D,j({},z,{children:typeof a=="function"?a(F):a}))}),gPe=d.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:l,open:f,placement:v="bottom",popperOptions:m=mPe,popperRef:h,style:x,transition:w=!1,slotProps:C={},slots:b={}}=t,g=we(t,dPe),[_,$]=d.useState(!0),P=()=>{$(!1)},E=()=>{$(!0)};if(!c&&!f&&(!w||_))return null;let T;if(a)T=a;else if(n){const A=yC(n);T=A&&pPe(A)?Pr(A).body:Pr(null).body}const R=!f&&c&&(!w||_)?"none":void 0,I=w?{in:f,onEnter:P,onExited:E}:void 0;return S.jsx(D6,{disablePortal:s,container:T,children:S.jsx(hPe,j({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:w?!_:f,placement:v,popperOptions:m,popperRef:h,slotProps:C,slots:b},g,{style:j({position:"fixed",top:0,left:0,display:R},x),TransitionProps:I,children:o}))})});function yPe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=Rl();d.useEffect(()=>{if(!o)return;function b(g){g.defaultPrevented||(g.key==="Escape"||g.key==="Esc")&&(n==null||n(g,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,n]);const s=En((b,g)=>{n==null||n(b,g)}),c=En(b=>{!n||b==null||i.start(b,()=>{s(null,"timeout")})});d.useEffect(()=>(o&&c(t),i.clear),[o,t,c,i]);const l=b=>{n==null||n(b,"clickaway")},f=i.clear,v=d.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),m=b=>g=>{const _=b.onBlur;_==null||_(g),v()},h=b=>g=>{const _=b.onFocus;_==null||_(g),f()},x=b=>g=>{const _=b.onMouseEnter;_==null||_(g),f()},w=b=>g=>{const _=b.onMouseLeave;_==null||_(g),v()};return d.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",v),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",f)}},[r,o,v,f]),{getRootProps:(b={})=>{const g=j({},ky(e),ky(b));return j({role:"presentation"},b,g,{onBlur:m(g),onFocus:h(g),onMouseEnter:x(g),onMouseLeave:w(g)})},onClickAway:l}}const bPe=["onChange","maxRows","minRows","style","value"];function bh(e){return parseInt(e,10)||0}const _Pe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function xPe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const wPe=d.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,c=we(t,bPe),{current:l}=d.useRef(s!=null),f=d.useRef(null),v=sr(r,f),m=d.useRef(null),h=d.useCallback(()=>{const C=f.current,g=qo(C).getComputedStyle(C);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const _=m.current;_.style.width=g.width,_.value=C.value||t.placeholder||"x",_.value.slice(-1)===` -`&&(_.value+=" ");const $=g.boxSizing,P=bh(g.paddingBottom)+bh(g.paddingTop),E=bh(g.borderBottomWidth)+bh(g.borderTopWidth),T=_.scrollHeight;_.value="x";const R=_.scrollHeight;let I=T;a&&(I=Math.max(Number(a)*R,I)),o&&(I=Math.min(Number(o)*R,I)),I=Math.max(I,R);const A=I+($==="border-box"?P+E:0),F=Math.abs(I-T)<=1;return{outerHeightStyle:A,overflowing:F}},[o,a,t.placeholder]),x=d.useCallback(()=>{const C=h();if(xPe(C))return;const b=f.current;b.style.height=`${C.outerHeightStyle}px`,b.style.overflow=C.overflowing?"hidden":""},[h]);po(()=>{const C=()=>{x()};let b;const g=Id(C),_=f.current,$=qo(_);$.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(C),P.observe(_)),()=>{g.clear(),cancelAnimationFrame(b),$.removeEventListener("resize",g),P&&P.disconnect()}},[h,x]),po(()=>{x()});const w=C=>{l||x(),n&&n(C)};return S.jsxs(d.Fragment,{children:[S.jsx("textarea",j({value:s,onChange:w,ref:v,rows:a,style:i},c)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:j({},_Pe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});var E$={};Object.defineProperty(E$,"__esModule",{value:!0});var X6=E$.default=void 0,SPe=OPe(d),CPe=k6;function Y6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Y6=function(n){return n?r:t})(e)}function OPe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Y6(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function EPe(e){return Object.keys(e).length===0}function PPe(e=null){const t=SPe.useContext(CPe.ThemeContext);return!t||EPe(t)?e:t}X6=E$.default=PPe;const $Pe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],RPe=J(gPe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TPe=d.forwardRef(function(t,r){var n;const o=X6(),a=Ge({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:c,componentsProps:l,container:f,disablePortal:v,keepMounted:m,modifiers:h,open:x,placement:w,popperOptions:C,popperRef:b,transition:g,slots:_,slotProps:$}=a,P=we(a,$Pe),E=(n=_==null?void 0:_.root)!=null?n:c==null?void 0:c.Root,T=j({anchorEl:i,container:f,disablePortal:v,keepMounted:m,modifiers:h,open:x,placement:w,popperOptions:C,popperRef:b,transition:g},P);return S.jsx(RPe,j({as:s,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:$??l},T,{ref:r}))}),J6=TPe;function Ui({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const kPe=d.createContext(void 0),q0=kPe;function Ea(){return d.useContext(q0)}function IPe(e){return S.jsx(uwe,j({},e,{defaultTheme:U0,themeId:eu}))}function iL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function jy(e,t=!1){return e&&(iL(e.value)&&e.value!==""||t&&iL(e.defaultValue)&&e.defaultValue!=="")}function jPe(e){return e.startAdornment}function APe(e){return Ve("MuiInputBase",e)}const MPe=He("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nd=MPe,FPe=["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"],H0=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},G0=(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]},LPe=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:c,hiddenLabel:l,multiline:f,readOnly:v,size:m,startAdornment:h,type:x}=e,w={root:["root",`color${xe(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",i&&"focused",s&&"formControl",m&&m!=="medium"&&`size${xe(m)}`,f&&"multiline",h&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",x==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",v&&"readOnly"]};return ze(w,APe,t)},K0=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:H0})(({theme:e,ownerState:t})=>j({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&j({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Q0=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=j({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return j({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${nd.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"})}),NPe=S.jsx(IPe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),DPe=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:c,components:l={},componentsProps:f={},defaultValue:v,disabled:m,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:w=!1,id:C,inputComponent:b="input",inputProps:g={},inputRef:_,maxRows:$,minRows:P,multiline:E=!1,name:T,onBlur:R,onChange:I,onClick:A,onFocus:F,onKeyDown:L,onKeyUp:D,placeholder:z,readOnly:H,renderSuffix:G,rows:q,slotProps:U={},slots:W={},startAdornment:te,type:ne="text",value:ee}=o,Ce=we(o,FPe),de=g.value!=null?g.value:ee,{current:oe}=d.useRef(de!=null),me=d.useRef(),Re=d.useCallback(Le=>{},[]),ye=sr(me,_,g.ref,Re),[fe,ge]=d.useState(!1),ce=Ea(),pe=Ui({props:o,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=ce?ce.focused:fe,d.useEffect(()=>{!ce&&m&&fe&&(ge(!1),R&&R())},[ce,m,fe,R]);const ae=ce&&ce.onFilled,Se=ce&&ce.onEmpty,Oe=d.useCallback(Le=>{jy(Le)?ae&&ae():Se&&Se()},[ae,Se]);po(()=>{oe&&Oe({value:de})},[de,Oe,oe]);const Ne=Le=>{if(pe.disabled){Le.stopPropagation();return}F&&F(Le),g.onFocus&&g.onFocus(Le),ce&&ce.onFocus?ce.onFocus(Le):ge(!0)},Xe=Le=>{R&&R(Le),g.onBlur&&g.onBlur(Le),ce&&ce.onBlur?ce.onBlur(Le):ge(!1)},V=(Le,...De)=>{if(!oe){const ft=Le.target||me.current;if(ft==null)throw new Error(Ri(1));Oe({value:ft.value})}g.onChange&&g.onChange(Le,...De),I&&I(Le,...De)};d.useEffect(()=>{Oe(me.current)},[]);const X=Le=>{me.current&&Le.currentTarget===Le.target&&me.current.focus(),A&&A(Le)};let Y=b,ie=g;E&&Y==="input"&&(q?ie=j({type:void 0,minRows:q,maxRows:q},ie):ie=j({type:void 0,maxRows:$,minRows:P},ie),Y=wPe);const se=Le=>{Oe(Le.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};d.useEffect(()=>{ce&&ce.setAdornedStart(!!te)},[ce,te]);const ue=j({},o,{color:pe.color||"primary",disabled:pe.disabled,endAdornment:x,error:pe.error,focused:pe.focused,formControl:ce,fullWidth:w,hiddenLabel:pe.hiddenLabel,multiline:E,size:pe.size,startAdornment:te,type:ne}),Ee=LPe(ue),Ie=W.root||l.Root||K0,at=U.root||f.root||{},ot=W.input||l.Input||Q0;return ie=j({},ie,(n=U.input)!=null?n:f.input),S.jsxs(d.Fragment,{children:[!h&&NPe,S.jsxs(Ie,j({},at,!Wp(Ie)&&{ownerState:j({},ue,at.ownerState)},{ref:r,onClick:X},Ce,{className:$e(Ee.root,at.className,c,H&&"MuiInputBase-readOnly"),children:[te,S.jsx(q0.Provider,{value:null,children:S.jsx(ot,j({ownerState:ue,"aria-invalid":pe.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:v,disabled:pe.disabled,id:C,onAnimationStart:se,name:T,placeholder:z,readOnly:H,required:pe.required,rows:q,value:de,onKeyDown:L,onKeyUp:D,type:ne},ie,!Wp(ot)&&{as:Y,ownerState:j({},ue,ie.ownerState)},{ref:ye,className:$e(Ee.input,ie.className,H&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:V,onFocus:Ne}))}),x,G?G(j({},pe,{startAdornment:te})):null]}))]})}),X0=DPe;function BPe(e){return Ve("MuiInput",e)}const zPe=j({},nd,He("MuiInput",["root","underline","input"])),wf=zPe;function UPe(e){return Ve("MuiOutlinedInput",e)}const VPe=j({},nd,He("MuiOutlinedInput",["root","notchedOutline","input"])),ts=VPe;function WPe(e){return Ve("MuiFilledInput",e)}const qPe=j({},nd,He("MuiFilledInput",["root","underline","input"])),pl=qPe,Z6=yo(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),HPe=yo(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function GPe(e){return Ve("MuiAvatar",e)}He("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const KPe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],QPe=A6(),XPe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return ze({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},GPe,t)},YPe=J("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:j({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:j({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),JPe=J("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ZPe=J(HPe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function e$e({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const t$e=d.forwardRef(function(t,r){const n=QPe({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:c={},slotProps:l={},imgProps:f,sizes:v,src:m,srcSet:h,variant:x="circular"}=n,w=we(n,KPe);let C=null;const b=e$e(j({},f,{src:m,srcSet:h})),g=m||h,_=g&&b!=="error",$=j({},n,{colorDefault:!_,component:s,variant:x}),P=XPe($),[E,T]=ZCe("img",{className:P.img,elementType:JPe,externalForwardedProps:{slots:c,slotProps:{img:j({},f,l.img)}},additionalProps:{alt:o,src:m,srcSet:h,sizes:v},ownerState:$});return _?C=S.jsx(E,j({},T)):a||a===0?C=a:g&&o?C=o[0]:C=S.jsx(ZPe,{ownerState:$,className:P.fallback}),S.jsx(YPe,j({as:s,ownerState:$,className:$e(P.root,i),ref:r},w,{children:C}))}),Gp=t$e,r$e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],n$e={entering:{opacity:1},entered:{opacity:1}},o$e=d.forwardRef(function(t,r){const n=ra(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:c,in:l,onEnter:f,onEntered:v,onEntering:m,onExit:h,onExited:x,onExiting:w,style:C,timeout:b=o,TransitionComponent:g=m$}=t,_=we(t,r$e),$=d.useRef(null),P=sr($,s.ref,r),E=z=>H=>{if(z){const G=$.current;H===void 0?z(G):z(G,H)}},T=E(m),R=E((z,H)=>{y$(z);const G=Jc({style:C,timeout:b,easing:c},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",G),z.style.transition=n.transitions.create("opacity",G),f&&f(z,H)}),I=E(v),A=E(w),F=E(z=>{const H=Jc({style:C,timeout:b,easing:c},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",H),z.style.transition=n.transitions.create("opacity",H),h&&h(z)}),L=E(x),D=z=>{a&&a($.current,z)};return S.jsx(g,j({appear:i,in:l,nodeRef:$,onEnter:R,onEntered:I,onEntering:T,onExit:F,onExited:L,onExiting:A,addEndListener:D,timeout:b},_,{children:(z,H)=>d.cloneElement(s,j({style:j({opacity:0,visibility:z==="exited"&&!l?"hidden":void 0},n$e[z],C,s.props.style),ref:P},H))}))}),e9=o$e;function a$e(e){return Ve("MuiBackdrop",e)}He("MuiBackdrop",["root","invisible"]);const i$e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],s$e=e=>{const{classes:t,invisible:r}=e;return ze({root:["root",r&&"invisible"]},a$e,t)},l$e=J("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>j({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),u$e=d.forwardRef(function(t,r){var n,o,a;const i=Ge({props:t,name:"MuiBackdrop"}),{children:s,className:c,component:l="div",components:f={},componentsProps:v={},invisible:m=!1,open:h,slotProps:x={},slots:w={},TransitionComponent:C=e9,transitionDuration:b}=i,g=we(i,i$e),_=j({},i,{component:l,invisible:m}),$=s$e(_),P=(n=x.root)!=null?n:v.root;return S.jsx(C,j({in:h,timeout:b},g,{children:S.jsx(l$e,j({"aria-hidden":!0},P,{as:(o=(a=w.root)!=null?a:f.Root)!=null?o:l,className:$e($.root,c,P==null?void 0:P.className),ownerState:j({},_,P==null?void 0:P.ownerState),classes:$,ref:r,children:s}))}))}),t9=u$e,c$e=He("MuiBox",["root"]),d$e=c$e,f$e=Ry(),p$e=hwe({themeId:eu,defaultTheme:f$e,defaultClassName:d$e.root,generateClassName:i$.generate}),On=p$e;function v$e(e){return Ve("MuiButton",e)}const m$e=He("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),_h=m$e,h$e=d.createContext({}),g$e=h$e,y$e=d.createContext(void 0),b$e=y$e,_$e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],x$e=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(o)}`,`${a}Size${xe(o)}`,`color${xe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${xe(o)}`],endIcon:["icon","endIcon",`iconSize${xe(o)}`]},c=ze(s,v$e,i);return j({},i,c)},r9=e=>j({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),w$e=J(zi,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return j({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":j({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${_h.focusVisible}`]:j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${_h.disabled}`]:j({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${It(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${_h.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_h.disabled}`]:{boxShadow:"none"}}),S$e=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},r9(e))),C$e=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},r9(e))),O$e=d.forwardRef(function(t,r){const n=d.useContext(g$e),o=d.useContext(b$e),a=u$(n,t),i=Ge({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:l="button",className:f,disabled:v=!1,disableElevation:m=!1,disableFocusRipple:h=!1,endIcon:x,focusVisibleClassName:w,fullWidth:C=!1,size:b="medium",startIcon:g,type:_,variant:$="text"}=i,P=we(i,_$e),E=j({},i,{color:c,component:l,disabled:v,disableElevation:m,disableFocusRipple:h,fullWidth:C,size:b,type:_,variant:$}),T=x$e(E),R=g&&S.jsx(S$e,{className:T.startIcon,ownerState:E,children:g}),I=x&&S.jsx(C$e,{className:T.endIcon,ownerState:E,children:x}),A=o||"";return S.jsxs(w$e,j({ownerState:E,className:$e(n.className,T.root,f,A),component:l,disabled:v,focusRipple:!h,focusVisibleClassName:$e(T.focusVisible,w),ref:r,type:_},P,{classes:T,children:[R,s,I]}))}),$r=O$e;function E$e(e){return Ve("MuiCard",e)}He("MuiCard",["root"]);const P$e=["className","raised"],$$e=e=>{const{classes:t}=e;return ze({root:["root"]},E$e,t)},R$e=J(Ys,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),T$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=we(n,P$e),s=j({},n,{raised:a}),c=$$e(s);return S.jsx(R$e,j({className:$e(c.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),du=T$e;function k$e(e){return Ve("MuiCardActions",e)}He("MuiCardActions",["root","spacing"]);const I$e=["disableSpacing","className"],j$e=e=>{const{classes:t,disableSpacing:r}=e;return ze({root:["root",!r&&"spacing"]},k$e,t)},A$e=J("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>j({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),M$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a}=n,i=we(n,I$e),s=j({},n,{disableSpacing:o}),c=j$e(s);return S.jsx(A$e,j({className:$e(c.root,a),ownerState:s,ref:r},i))}),n9=M$e;function F$e(e){return Ve("MuiCardContent",e)}He("MuiCardContent",["root"]);const L$e=["className","component"],N$e=e=>{const{classes:t}=e;return ze({root:["root"]},F$e,t)},D$e=J("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),B$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=we(n,L$e),s=j({},n,{component:a}),c=N$e(s);return S.jsx(D$e,j({as:a,className:$e(c.root,o),ownerState:s,ref:r},i))}),Io=B$e;function z$e(e){return Ve("MuiCardHeader",e)}const U$e=He("MuiCardHeader",["root","avatar","action","content","title","subheader"]),sL=U$e,V$e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],W$e=e=>{const{classes:t}=e;return ze({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},z$e,t)},q$e=J("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>j({[`& .${sL.title}`]:t.title,[`& .${sL.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),H$e=J("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),G$e=J("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),K$e=J("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Q$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:c=!1,subheader:l,subheaderTypographyProps:f,title:v,titleTypographyProps:m}=n,h=we(n,V$e),x=j({},n,{component:s,disableTypography:c}),w=W$e(x);let C=v;C!=null&&C.type!==it&&!c&&(C=S.jsx(it,j({variant:a?"body2":"h5",className:w.title,component:"span",display:"block"},m,{children:C})));let b=l;return b!=null&&b.type!==it&&!c&&(b=S.jsx(it,j({variant:a?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:b}))),S.jsxs(q$e,j({className:$e(w.root,i),as:s,ref:r,ownerState:x},h,{children:[a&&S.jsx(H$e,{className:w.avatar,ownerState:x,children:a}),S.jsxs(K$e,{className:w.content,ownerState:x,children:[C,b]}),o&&S.jsx(G$e,{className:w.action,ownerState:x,children:o})]}))}),vl=Q$e;function X$e(e){return Ve("PrivateSwitchBase",e)}He("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Y$e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],J$e=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${xe(o)}`],input:["input"]};return ze(a,X$e,t)},Z$e=J(zi)(({ownerState:e})=>j({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),e2e=J("input",{shouldForwardProp:rn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),t2e=d.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:c,disableFocusRipple:l=!1,edge:f=!1,icon:v,id:m,inputProps:h,inputRef:x,name:w,onBlur:C,onChange:b,onFocus:g,readOnly:_,required:$=!1,tabIndex:P,type:E,value:T}=t,R=we(t,Y$e),[I,A]=Yc({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Ea(),L=W=>{g&&g(W),F&&F.onFocus&&F.onFocus(W)},D=W=>{C&&C(W),F&&F.onBlur&&F.onBlur(W)},z=W=>{if(W.nativeEvent.defaultPrevented)return;const te=W.target.checked;A(te),b&&b(W,te)};let H=c;F&&typeof H>"u"&&(H=F.disabled);const G=E==="checkbox"||E==="radio",q=j({},t,{checked:I,disabled:H,disableFocusRipple:l,edge:f}),U=J$e(q);return S.jsxs(Z$e,j({component:"span",className:$e(U.root,i),centerRipple:!0,focusRipple:!l,disabled:H,tabIndex:null,role:void 0,onFocus:L,onBlur:D,ownerState:q,ref:r},R,{children:[S.jsx(e2e,j({autoFocus:n,checked:o,defaultChecked:s,className:U.input,disabled:H,id:G?m:void 0,name:w,onChange:z,readOnly:_,ref:x,required:$,ownerState:q,tabIndex:P,type:E},E==="checkbox"&&T===void 0?{}:{value:T},h)),I?a:v]}))}),o9=t2e,r2e=yo(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),n2e=yo(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),o2e=yo(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function a2e(e){return Ve("MuiCheckbox",e)}const i2e=He("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uw=i2e,s2e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],l2e=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(o)}`]},i=ze(a,a2e,t);return j({},t,i)},u2e=J(o9,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${xe(r.size)}`],r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${uw.checked}, &.${uw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${uw.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),c2e=S.jsx(n2e,{}),d2e=S.jsx(r2e,{}),f2e=S.jsx(o2e,{}),p2e=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:i=c2e,color:s="primary",icon:c=d2e,indeterminate:l=!1,indeterminateIcon:f=f2e,inputProps:v,size:m="medium",className:h}=a,x=we(a,s2e),w=l?f:c,C=l?f:i,b=j({},a,{color:s,indeterminate:l,size:m}),g=l2e(b);return S.jsx(u2e,j({type:"checkbox",inputProps:j({"data-indeterminate":l},v),icon:d.cloneElement(w,{fontSize:(n=w.props.fontSize)!=null?n:m}),checkedIcon:d.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:m}),ownerState:b,ref:r,className:$e(g.root,h)},x,{classes:g}))}),od=p2e;function v2e(e){return Ve("MuiCircularProgress",e)}He("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const m2e=["className","color","disableShrink","size","style","thickness","value","variant"];let Y0=e=>e,lL,uL,cL,dL;const rs=44,h2e=Di(lL||(lL=Y0` +`),ko.rippleVisible,rOe,mC,({theme:e})=>e.transitions.easing.easeInOut,ko.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ko.child,ko.childLeaving,nOe,mC,({theme:e})=>e.transitions.easing.easeInOut,ko.childPulsate,oOe,({theme:e})=>e.transitions.easing.easeInOut),sOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=we(n,eOe),[c,l]=d.useState([]),f=d.useRef(0),v=d.useRef(null);d.useEffect(()=>{v.current&&(v.current(),v.current=null)},[c]);const m=d.useRef(!1),h=Rl(),x=d.useRef(null),w=d.useRef(null),C=d.useCallback($=>{const{pulsate:P,rippleX:E,rippleY:T,rippleSize:R,cb:I}=$;l(A=>[...A,S.jsx(iOe,{classes:{ripple:$e(a.ripple,ko.ripple),rippleVisible:$e(a.rippleVisible,ko.rippleVisible),ripplePulsate:$e(a.ripplePulsate,ko.ripplePulsate),child:$e(a.child,ko.child),childLeaving:$e(a.childLeaving,ko.childLeaving),childPulsate:$e(a.childPulsate,ko.childPulsate)},timeout:mC,pulsate:P,rippleX:E,rippleY:T,rippleSize:R},f.current)]),f.current+=1,v.current=I},[a]),b=d.useCallback(($={},P={},E=()=>{})=>{const{pulsate:T=!1,center:R=o||P.pulsate,fakeElement:I=!1}=P;if(($==null?void 0:$.type)==="mousedown"&&m.current){m.current=!1;return}($==null?void 0:$.type)==="touchstart"&&(m.current=!0);const A=I?null:w.current,F=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,D,z;if(R||$===void 0||$.clientX===0&&$.clientY===0||!$.clientX&&!$.touches)L=Math.round(F.width/2),D=Math.round(F.height/2);else{const{clientX:H,clientY:G}=$.touches&&$.touches.length>0?$.touches[0]:$;L=Math.round(H-F.left),D=Math.round(G-F.top)}if(R)z=Math.sqrt((2*F.width**2+F.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-L),L)*2+2,G=Math.max(Math.abs((A?A.clientHeight:0)-D),D)*2+2;z=Math.sqrt(H**2+G**2)}$!=null&&$.touches?x.current===null&&(x.current=()=>{C({pulsate:T,rippleX:L,rippleY:D,rippleSize:z,cb:E})},h.start(tOe,()=>{x.current&&(x.current(),x.current=null)})):C({pulsate:T,rippleX:L,rippleY:D,rippleSize:z,cb:E})},[o,C,h]),g=d.useCallback(()=>{b({},{pulsate:!0})},[b]),_=d.useCallback(($,P)=>{if(h.clear(),($==null?void 0:$.type)==="touchend"&&x.current){x.current(),x.current=null,h.start(0,()=>{_($,P)});return}x.current=null,l(E=>E.length>0?E.slice(1):E),v.current=P},[h]);return d.useImperativeHandle(r,()=>({pulsate:g,start:b,stop:_}),[g,b,_]),S.jsx(aOe,j({className:$e(ko.root,a.root,i),ref:w},s,{children:S.jsx(DCe,{component:null,exit:!0,children:c})}))}),lOe=sOe;function uOe(e){return Ve("MuiButtonBase",e)}const cOe=He("MuiButtonBase",["root","disabled","focusVisible"]),dOe=["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"],fOe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ze({root:["root",t&&"disabled",r&&"focusVisible"]},uOe,o);return r&&n&&(i.root+=` ${n}`),i},pOe=J("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cOe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:c="button",disabled:l=!1,disableRipple:f=!1,disableTouchRipple:v=!1,focusRipple:m=!1,LinkComponent:h="a",onBlur:x,onClick:w,onContextMenu:C,onDragLeave:b,onFocus:g,onFocusVisible:_,onKeyDown:$,onKeyUp:P,onMouseDown:E,onMouseLeave:T,onMouseUp:R,onTouchEnd:I,onTouchMove:A,onTouchStart:F,tabIndex:L=0,TouchRippleProps:D,touchRippleRef:z,type:H}=n,G=we(n,dOe),q=d.useRef(null),U=d.useRef(null),W=sr(U,z),{isFocusVisibleRef:te,onFocus:ne,onBlur:ee,ref:Ce}=D0(),[de,oe]=d.useState(!1);l&&de&&oe(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{oe(!0),q.current.focus()}}),[]);const[me,Re]=d.useState(!1);d.useEffect(()=>{Re(!0)},[]);const ye=me&&!f&&!l;d.useEffect(()=>{de&&m&&!f&&me&&U.current.pulsate()},[f,m,de,me]);function fe(De,ft,Et=v){return En(Ot=>(ft&&ft(Ot),!Et&&U.current&&U.current[De](Ot),!0))}const ge=fe("start",E),ce=fe("stop",C),pe=fe("stop",b),ae=fe("stop",R),Se=fe("stop",De=>{de&&De.preventDefault(),T&&T(De)}),Oe=fe("start",F),Ne=fe("stop",I),Xe=fe("stop",A),V=fe("stop",De=>{ee(De),te.current===!1&&oe(!1),x&&x(De)},!1),X=En(De=>{q.current||(q.current=De.currentTarget),ne(De),te.current===!0&&(oe(!0),_&&_(De)),g&&g(De)}),Y=()=>{const De=q.current;return c&&c!=="button"&&!(De.tagName==="A"&&De.href)},ie=d.useRef(!1),se=En(De=>{m&&!ie.current&&de&&U.current&&De.key===" "&&(ie.current=!0,U.current.stop(De,()=>{U.current.start(De)})),De.target===De.currentTarget&&Y()&&De.key===" "&&De.preventDefault(),$&&$(De),De.target===De.currentTarget&&Y()&&De.key==="Enter"&&!l&&(De.preventDefault(),w&&w(De))}),ue=En(De=>{m&&De.key===" "&&U.current&&de&&!De.defaultPrevented&&(ie.current=!1,U.current.stop(De,()=>{U.current.pulsate(De)})),P&&P(De),w&&De.target===De.currentTarget&&Y()&&De.key===" "&&!De.defaultPrevented&&w(De)});let Ee=c;Ee==="button"&&(G.href||G.to)&&(Ee=h);const Ie={};Ee==="button"?(Ie.type=H===void 0?"button":H,Ie.disabled=l):(!G.href&&!G.to&&(Ie.role="button"),l&&(Ie["aria-disabled"]=l));const at=sr(r,Ce,q),ot=j({},n,{centerRipple:a,component:c,disabled:l,disableRipple:f,disableTouchRipple:v,focusRipple:m,tabIndex:L,focusVisible:de}),Le=fOe(ot);return S.jsxs(pOe,j({as:Ee,className:$e(Le.root,s),ownerState:ot,onBlur:V,onClick:w,onContextMenu:ce,onFocus:X,onKeyDown:se,onKeyUp:ue,onMouseDown:ge,onMouseLeave:Se,onMouseUp:ae,onDragLeave:pe,onTouchEnd:Ne,onTouchMove:Xe,onTouchStart:Oe,ref:at,tabIndex:l?-1:L,type:H},Ie,G,{children:[i,ye?S.jsx(lOe,j({ref:W,center:a},D)):null]}))}),zi=vOe;function mOe(e){return Ve("MuiIconButton",e)}const hOe=He("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),gOe=["edge","children","className","color","disabled","disableFocusRipple","size"],yOe=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,o&&`edge${xe(o)}`,`size${xe(a)}`]};return ze(i,mOe,t)},bOe=J(zi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>j({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return j({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&j({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":j({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${hOe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),_Oe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:c=!1,disableFocusRipple:l=!1,size:f="medium"}=n,v=we(n,gOe),m=j({},n,{edge:o,color:s,disabled:c,disableFocusRipple:l,size:f}),h=yOe(m);return S.jsx(bOe,j({className:$e(h.root,i),centerRipple:!0,focusRipple:!l,disabled:c,ref:r},v,{ownerState:m,children:a}))}),or=_Oe;function xOe(e){return Ve("MuiTypography",e)}He("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wOe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],SOe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return ze(s,xOe,i)},COe=J("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>j({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),GF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},OOe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},EOe=e=>OOe[e]||e,POe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTypography"}),o=EOe(n.color),a=P0(j({},n,{color:o})),{align:i="inherit",className:s,component:c,gutterBottom:l=!1,noWrap:f=!1,paragraph:v=!1,variant:m="body1",variantMapping:h=GF}=a,x=we(a,wOe),w=j({},a,{align:i,color:o,className:s,component:c,gutterBottom:l,noWrap:f,paragraph:v,variant:m,variantMapping:h}),C=c||(v?"p":h[m]||GF[m])||"span",b=SOe(w);return S.jsx(COe,j({as:C,ref:r,ownerState:w,className:$e(b.root,s)},x))}),it=POe;function $Oe(e){return Ve("MuiAppBar",e)}He("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const ROe=["className","color","enableColorOnDark","position"],TOe=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return ze(o,$Oe,n)},gh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,kOe=J(Ys,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return j({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&j({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&j({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&j({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gh(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:gh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),IOe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,c=we(n,ROe),l=j({},n,{color:a,position:s,enableColorOnDark:i}),f=TOe(l);return S.jsx(kOe,j({square:!0,component:"header",ownerState:l,elevation:4,className:$e(f.root,o,s==="fixed"&&"mui-fixed"),ref:r},c))}),jOe=IOe,L6="base";function AOe(e){return`${L6}--${e}`}function MOe(e,t){return`${L6}-${e}-${t}`}function N6(e,t){const r=l6[t];return r?AOe(r):MOe(e,t)}function FOe(e,t){const r={};return t.forEach(n=>{r[n]=N6(e,n)}),r}function KF(e){return e.substring(2).toLowerCase()}function LOe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=sr(t.ref,s),v=En(x=>{const w=l.current;l.current=!1;const C=Pr(s.current);if(!c.current||!s.current||"clientX"in x&&LOe(x,C))return;if(i.current){i.current=!1;return}let b;x.composedPath?b=x.composedPath().indexOf(s.current)>-1:b=!C.documentElement.contains(x.target)||s.current.contains(x.target),!b&&(r||!w)&&o(x)}),m=x=>w=>{l.current=!0;const C=t.props[x];C&&C(w)},h={ref:f};return a!==!1&&(h[a]=m(a)),d.useEffect(()=>{if(a!==!1){const x=KF(a),w=Pr(s.current),C=()=>{i.current=!0};return w.addEventListener(x,v),w.addEventListener("touchmove",C),()=>{w.removeEventListener(x,v),w.removeEventListener("touchmove",C)}}},[v,a]),n!==!1&&(h[n]=m(n)),d.useEffect(()=>{if(n!==!1){const x=KF(n),w=Pr(s.current);return w.addEventListener(x,v),()=>{w.removeEventListener(x,v)}}},[v,n]),S.jsx(d.Fragment,{children:d.cloneElement(t,h)})}const DOe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BOe(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 zOe(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 UOe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||zOe(e))}function VOe(e){const t=[],r=[];return Array.from(e.querySelectorAll(DOe)).forEach((n,o)=>{const a=BOe(n);a===-1||!UOe(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function WOe(){return!0}function qOe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=VOe,isEnabled:i=WOe,open:s}=e,c=d.useRef(!1),l=d.useRef(null),f=d.useRef(null),v=d.useRef(null),m=d.useRef(null),h=d.useRef(!1),x=d.useRef(null),w=sr(t.ref,x),C=d.useRef(null);d.useEffect(()=>{!s||!x.current||(h.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!x.current)return;const _=Pr(x.current);return x.current.contains(_.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),h.current&&x.current.focus()),()=>{o||(v.current&&v.current.focus&&(c.current=!0,v.current.focus()),v.current=null)}},[s]),d.useEffect(()=>{if(!s||!x.current)return;const _=Pr(x.current),$=T=>{C.current=T,!(n||!i()||T.key!=="Tab")&&_.activeElement===x.current&&T.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const T=x.current;if(T===null)return;if(!_.hasFocus()||!i()||c.current){c.current=!1;return}if(T.contains(_.activeElement)||n&&_.activeElement!==l.current&&_.activeElement!==f.current)return;if(_.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!h.current)return;let R=[];if((_.activeElement===l.current||_.activeElement===f.current)&&(R=a(x.current)),R.length>0){var I,A;const F=!!((I=C.current)!=null&&I.shiftKey&&((A=C.current)==null?void 0:A.key)==="Tab"),L=R[0],D=R[R.length-1];typeof L!="string"&&typeof D!="string"&&(F?D.focus():L.focus())}else T.focus()};_.addEventListener("focusin",P),_.addEventListener("keydown",$,!0);const E=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(E),_.removeEventListener("focusin",P),_.removeEventListener("keydown",$,!0)}},[r,n,o,i,s,a]);const b=_=>{v.current===null&&(v.current=_.relatedTarget),h.current=!0,m.current=_.target;const $=t.props.onFocus;$&&$(_)},g=_=>{v.current===null&&(v.current=_.relatedTarget),h.current=!0};return S.jsxs(d.Fragment,{children:[S.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:w,onFocus:b}),S.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:f,"data-testid":"sentinelEnd"})]})}function HOe(e){return typeof e=="function"?e():e}const D6=d.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[i,s]=d.useState(null),c=sr(d.isValidElement(n)?n.ref:null,r);if(po(()=>{a||s(HOe(o)||document.body)},[o,a]),po(()=>{if(i&&!a)return Py(r,i),()=>{Py(r,null)}},[r,i,a]),a){if(d.isValidElement(n)){const l={ref:c};return d.cloneElement(n,l)}return S.jsx(d.Fragment,{children:n})}return S.jsx(d.Fragment,{children:i&&Rb.createPortal(n,i)})});function GOe(e){const t=Pr(e);return t.body===e?qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function np(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function QF(e){return parseInt(qo(e).getComputedStyle(e).paddingRight,10)||0}function KOe(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 XF(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,i=>{const s=a.indexOf(i)===-1,c=!KOe(i);s&&c&&np(i,o)})}function lw(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function QOe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(GOe(n)){const i=b6(Pr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${QF(n)+i}px`;const s=Pr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${QF(c)+i}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Pr(n).body;else{const i=n.parentElement,s=qo(n);a=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:i,property:s})=>{a?i.style.setProperty(s,a):i.style.removeProperty(s)})}}function XOe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class YOe{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&&np(t.modalRef,!1);const o=XOe(r);XF(r,t.mount,t.modalRef,o,!0);const a=lw(this.containers,i=>i.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=lw(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=QOe(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=lw(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&np(t.modalRef,r),XF(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&np(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function JOe(e){return typeof e=="function"?e():e}function ZOe(e){return e?e.props.hasOwnProperty("in"):!1}const eEe=new YOe;function tEe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=eEe,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:c,onClose:l,open:f,rootRef:v}=e,m=d.useRef({}),h=d.useRef(null),x=d.useRef(null),w=sr(x,v),[C,b]=d.useState(!f),g=ZOe(c);let _=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(_=!1);const $=()=>Pr(h.current),P=()=>(m.current.modalRef=x.current,m.current.mount=h.current,m.current),E=()=>{o.mount(P(),{disableScrollLock:n}),x.current&&(x.current.scrollTop=0)},T=En(()=>{const G=JOe(t)||$().body;o.add(P(),G),x.current&&E()}),R=d.useCallback(()=>o.isTopModal(P()),[o]),I=En(G=>{h.current=G,G&&(f&&R()?E():x.current&&np(x.current,_))}),A=d.useCallback(()=>{o.remove(P(),_)},[_,o]);d.useEffect(()=>()=>{A()},[A]),d.useEffect(()=>{f?T():(!g||!a)&&A()},[f,A,g,a,T]);const F=G=>q=>{var U;(U=G.onKeyDown)==null||U.call(G,q),!(q.key!=="Escape"||q.which===229||!R())&&(r||(q.stopPropagation(),l&&l(q,"escapeKeyDown")))},L=G=>q=>{var U;(U=G.onClick)==null||U.call(G,q),q.target===q.currentTarget&&l&&l(q,"backdropClick")};return{getRootProps:(G={})=>{const q=ky(e);delete q.onTransitionEnter,delete q.onTransitionExited;const U=j({},q,G);return j({role:"presentation"},U,{onKeyDown:F(U),ref:w})},getBackdropProps:(G={})=>{const q=G;return j({"aria-hidden":!0},q,{onClick:L(q),open:f})},getTransitionProps:()=>{const G=()=>{b(!1),i&&i()},q=()=>{b(!0),s&&s(),a&&A()};return{onEnter:cC(G,c==null?void 0:c.props.onEnter),onExited:cC(q,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:I,isTopModal:R,exited:C,hasTransition:g}}var Hn="top",Ko="bottom",Qo="right",Gn="left",b$="auto",Av=[Hn,Ko,Qo,Gn],Zc="start",qp="end",rEe="clippingParents",B6="viewport",xf="popper",nEe="reference",YF=Av.reduce(function(e,t){return e.concat([t+"-"+Zc,t+"-"+qp])},[]),z6=[].concat(Av,[b$]).reduce(function(e,t){return e.concat([t,t+"-"+Zc,t+"-"+qp])},[]),oEe="beforeRead",aEe="read",iEe="afterRead",sEe="beforeMain",lEe="main",uEe="afterMain",cEe="beforeWrite",dEe="write",fEe="afterWrite",pEe=[oEe,aEe,iEe,sEe,lEe,uEe,cEe,dEe,fEe];function Ga(e){return e?(e.nodeName||"").toLowerCase():null}function vo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nu(e){var t=vo(e).Element;return e instanceof t||e instanceof Element}function zo(e){var t=vo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _$(e){if(typeof ShadowRoot>"u")return!1;var t=vo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vEe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!zo(a)||!Ga(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var s=o[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function mEe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(c,l){return c[l]="",c},{});!zo(o)||!Ga(o)||(Object.assign(o.style,s),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const hEe={name:"applyStyles",enabled:!0,phase:"write",fn:vEe,effect:mEe,requires:["computeStyles"]};function Wa(e){return e.split("-")[0]}var Bl=Math.max,Iy=Math.min,ed=Math.round;function hC(){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(hC())}function td(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&zo(e)&&(o=e.offsetWidth>0&&ed(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ed(n.height)/e.offsetHeight||1);var i=nu(e)?vo(e):window,s=i.visualViewport,c=!U6()&&r,l=(n.left+(c&&s?s.offsetLeft:0))/o,f=(n.top+(c&&s?s.offsetTop:0))/a,v=n.width/o,m=n.height/a;return{width:v,height:m,top:f,right:l+v,bottom:f+m,left:l,x:l,y:f}}function x$(e){var t=td(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&&_$(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ti(e){return vo(e).getComputedStyle(e)}function gEe(e){return["table","td","th"].indexOf(Ga(e))>=0}function Js(e){return((nu(e)?e.ownerDocument:e.document)||window.document).documentElement}function W0(e){return Ga(e)==="html"?e:e.assignedSlot||e.parentNode||(_$(e)?e.host:null)||Js(e)}function JF(e){return!zo(e)||Ti(e).position==="fixed"?null:e.offsetParent}function yEe(e){var t=/firefox/i.test(hC()),r=/Trident/i.test(hC());if(r&&zo(e)){var n=Ti(e);if(n.position==="fixed")return null}var o=W0(e);for(_$(o)&&(o=o.host);zo(o)&&["html","body"].indexOf(Ga(o))<0;){var a=Ti(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Mv(e){for(var t=vo(e),r=JF(e);r&&gEe(r)&&Ti(r).position==="static";)r=JF(r);return r&&(Ga(r)==="html"||Ga(r)==="body"&&Ti(r).position==="static")?t:r||yEe(e)||t}function w$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function op(e,t,r){return Bl(e,Iy(t,r))}function bEe(e,t,r){var n=op(e,t,r);return n>r?r:n}function W6(){return{top:0,right:0,bottom:0,left:0}}function q6(e){return Object.assign({},W6(),e)}function H6(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var _Ee=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,q6(typeof t!="number"?t:H6(t,Av))};function xEe(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Wa(r.placement),c=w$(s),l=[Gn,Qo].indexOf(s)>=0,f=l?"height":"width";if(!(!a||!i)){var v=_Ee(o.padding,r),m=x$(a),h=c==="y"?Hn:Gn,x=c==="y"?Ko:Qo,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],C=i[c]-r.rects.reference[c],b=Mv(a),g=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,_=w/2-C/2,$=v[h],P=g-m[f]-v[x],E=g/2-m[f]/2+_,T=op($,E,P),R=c;r.modifiersData[n]=(t={},t[R]=T,t.centerOffset=T-E,t)}}function wEe(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||V6(t.elements.popper,o)&&(t.elements.arrow=o))}const SEe={name:"arrow",enabled:!0,phase:"main",fn:xEe,effect:wEe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rd(e){return e.split("-")[1]}var CEe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function OEe(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ed(r*o)/o||0,y:ed(n*o)/o||0}}function ZF(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,v=e.isFixed,m=i.x,h=m===void 0?0:m,x=i.y,w=x===void 0?0:x,C=typeof f=="function"?f({x:h,y:w}):{x:h,y:w};h=C.x,w=C.y;var b=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),_=Gn,$=Hn,P=window;if(l){var E=Mv(r),T="clientHeight",R="clientWidth";if(E===vo(r)&&(E=Js(r),Ti(E).position!=="static"&&s==="absolute"&&(T="scrollHeight",R="scrollWidth")),E=E,o===Hn||(o===Gn||o===Qo)&&a===qp){$=Ko;var I=v&&E===P&&P.visualViewport?P.visualViewport.height:E[T];w-=I-n.height,w*=c?1:-1}if(o===Gn||(o===Hn||o===Ko)&&a===qp){_=Qo;var A=v&&E===P&&P.visualViewport?P.visualViewport.width:E[R];h-=A-n.width,h*=c?1:-1}}var F=Object.assign({position:s},l&&CEe),L=f===!0?OEe({x:h,y:w},vo(r)):{x:h,y:w};if(h=L.x,w=L.y,c){var D;return Object.assign({},F,(D={},D[$]=g?"0":"",D[_]=b?"0":"",D.transform=(P.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",D))}return Object.assign({},F,(t={},t[$]=g?w+"px":"",t[_]=b?h+"px":"",t.transform="",t))}function EEe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,c=s===void 0?!0:s,l={placement:Wa(t.placement),variation:rd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZF(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZF(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const PEe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:EEe,data:{}};var yh={passive:!0};function $Ee(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,s=i===void 0?!0:i,c=vo(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(f){f.addEventListener("scroll",r.update,yh)}),s&&c.addEventListener("resize",r.update,yh),function(){a&&l.forEach(function(f){f.removeEventListener("scroll",r.update,yh)}),s&&c.removeEventListener("resize",r.update,yh)}}const REe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$Ee,data:{}};var TEe={left:"right",right:"left",bottom:"top",top:"bottom"};function lg(e){return e.replace(/left|right|bottom|top/g,function(t){return TEe[t]})}var kEe={start:"end",end:"start"};function eL(e){return e.replace(/start|end/g,function(t){return kEe[t]})}function S$(e){var t=vo(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function C$(e){return td(Js(e)).left+S$(e).scrollLeft}function IEe(e,t){var r=vo(e),n=Js(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;var l=U6();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s+C$(e),y:c}}function jEe(e){var t,r=Js(e),n=S$(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Bl(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Bl(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+C$(e),c=-n.scrollTop;return Ti(o||r).direction==="rtl"&&(s+=Bl(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:c}}function O$(e){var t=Ti(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function G6(e){return["html","body","#document"].indexOf(Ga(e))>=0?e.ownerDocument.body:zo(e)&&O$(e)?e:G6(W0(e))}function ap(e,t){var r;t===void 0&&(t=[]);var n=G6(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=vo(n),i=o?[a].concat(a.visualViewport||[],O$(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(ap(W0(i)))}function gC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function AEe(e,t){var r=td(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 tL(e,t,r){return t===B6?gC(IEe(e,r)):nu(t)?AEe(t,r):gC(jEe(Js(e)))}function MEe(e){var t=ap(W0(e)),r=["absolute","fixed"].indexOf(Ti(e).position)>=0,n=r&&zo(e)?Mv(e):e;return nu(n)?t.filter(function(o){return nu(o)&&V6(o,n)&&Ga(o)!=="body"}):[]}function FEe(e,t,r,n){var o=t==="clippingParents"?MEe(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce(function(c,l){var f=tL(e,l,n);return c.top=Bl(f.top,c.top),c.right=Iy(f.right,c.right),c.bottom=Iy(f.bottom,c.bottom),c.left=Bl(f.left,c.left),c},tL(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function K6(e){var t=e.reference,r=e.element,n=e.placement,o=n?Wa(n):null,a=n?rd(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(o){case Hn:c={x:i,y:t.y-r.height};break;case Ko:c={x:i,y:t.y+t.height};break;case Qo:c={x:t.x+t.width,y:s};break;case Gn:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?w$(o):null;if(l!=null){var f=l==="y"?"height":"width";switch(a){case Zc:c[l]=c[l]-(t[f]/2-r[f]/2);break;case qp:c[l]=c[l]+(t[f]/2-r[f]/2);break}}return c}function Hp(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,c=s===void 0?rEe:s,l=r.rootBoundary,f=l===void 0?B6:l,v=r.elementContext,m=v===void 0?xf:v,h=r.altBoundary,x=h===void 0?!1:h,w=r.padding,C=w===void 0?0:w,b=q6(typeof C!="number"?C:H6(C,Av)),g=m===xf?nEe:xf,_=e.rects.popper,$=e.elements[x?g:m],P=FEe(nu($)?$:$.contextElement||Js(e.elements.popper),c,f,i),E=td(e.elements.reference),T=K6({reference:E,element:_,strategy:"absolute",placement:o}),R=gC(Object.assign({},_,T)),I=m===xf?R:E,A={top:P.top-I.top+b.top,bottom:I.bottom-P.bottom+b.bottom,left:P.left-I.left+b.left,right:I.right-P.right+b.right},F=e.modifiersData.offset;if(m===xf&&F){var L=F[o];Object.keys(A).forEach(function(D){var z=[Qo,Ko].indexOf(D)>=0?1:-1,H=[Hn,Ko].indexOf(D)>=0?"y":"x";A[D]+=L[H]*z})}return A}function LEe(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?z6:c,f=rd(n),v=f?s?YF:YF.filter(function(x){return rd(x)===f}):Av,m=v.filter(function(x){return l.indexOf(x)>=0});m.length===0&&(m=v);var h=m.reduce(function(x,w){return x[w]=Hp(e,{placement:w,boundary:o,rootBoundary:a,padding:i})[Wa(w)],x},{});return Object.keys(h).sort(function(x,w){return h[x]-h[w]})}function NEe(e){if(Wa(e)===b$)return[];var t=lg(e);return[eL(e),t,eL(t)]}function DEe(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!0:i,c=r.fallbackPlacements,l=r.padding,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,h=r.flipVariations,x=h===void 0?!0:h,w=r.allowedAutoPlacements,C=t.options.placement,b=Wa(C),g=b===C,_=c||(g||!x?[lg(C)]:NEe(C)),$=[C].concat(_).reduce(function(de,oe){return de.concat(Wa(oe)===b$?LEe(t,{placement:oe,boundary:f,rootBoundary:v,padding:l,flipVariations:x,allowedAutoPlacements:w}):oe)},[]),P=t.rects.reference,E=t.rects.popper,T=new Map,R=!0,I=$[0],A=0;A<$.length;A++){var F=$[A],L=Wa(F),D=rd(F)===Zc,z=[Hn,Ko].indexOf(L)>=0,H=z?"width":"height",G=Hp(t,{placement:F,boundary:f,rootBoundary:v,altBoundary:m,padding:l}),q=z?D?Qo:Gn:D?Ko:Hn;P[H]>E[H]&&(q=lg(q));var U=lg(q),W=[];if(a&&W.push(G[L]<=0),s&&W.push(G[q]<=0,G[U]<=0),W.every(function(de){return de})){I=F,R=!1;break}T.set(F,W)}if(R)for(var te=x?3:1,ne=function(oe){var me=$.find(function(Re){var ye=T.get(Re);if(ye)return ye.slice(0,oe).every(function(fe){return fe})});if(me)return I=me,"break"},ee=te;ee>0;ee--){var Ce=ne(ee);if(Ce==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const BEe={name:"flip",enabled:!0,phase:"main",fn:DEe,requiresIfExists:["offset"],data:{_skip:!1}};function rL(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 nL(e){return[Hn,Qo,Ko,Gn].some(function(t){return e[t]>=0})}function zEe(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Hp(t,{elementContext:"reference"}),s=Hp(t,{altBoundary:!0}),c=rL(i,n),l=rL(s,o,a),f=nL(c),v=nL(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}const UEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zEe};function VEe(e,t,r){var n=Wa(e),o=[Gn,Hn].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Gn,Qo].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function WEe(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=z6.reduce(function(f,v){return f[v]=VEe(v,t.rects,a),f},{}),s=i[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const qEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:WEe};function HEe(e){var t=e.state,r=e.name;t.modifiersData[r]=K6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const GEe={name:"popperOffsets",enabled:!0,phase:"read",fn:HEe,data:{}};function KEe(e){return e==="x"?"y":"x"}function QEe(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,s=i===void 0?!1:i,c=r.boundary,l=r.rootBoundary,f=r.altBoundary,v=r.padding,m=r.tether,h=m===void 0?!0:m,x=r.tetherOffset,w=x===void 0?0:x,C=Hp(t,{boundary:c,rootBoundary:l,padding:v,altBoundary:f}),b=Wa(t.placement),g=rd(t.placement),_=!g,$=w$(b),P=KEe($),E=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,I=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(E){if(a){var D,z=$==="y"?Hn:Gn,H=$==="y"?Ko:Qo,G=$==="y"?"height":"width",q=E[$],U=q+C[z],W=q-C[H],te=h?-R[G]/2:0,ne=g===Zc?T[G]:R[G],ee=g===Zc?-R[G]:-T[G],Ce=t.elements.arrow,de=h&&Ce?x$(Ce):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W6(),me=oe[z],Re=oe[H],ye=op(0,T[G],de[G]),fe=_?T[G]/2-te-ye-me-A.mainAxis:ne-ye-me-A.mainAxis,ge=_?-T[G]/2+te+ye+Re+A.mainAxis:ee+ye+Re+A.mainAxis,ce=t.elements.arrow&&Mv(t.elements.arrow),pe=ce?$==="y"?ce.clientTop||0:ce.clientLeft||0:0,ae=(D=F==null?void 0:F[$])!=null?D:0,Se=q+fe-ae-pe,Oe=q+ge-ae,Ne=op(h?Iy(U,Se):U,q,h?Bl(W,Oe):W);E[$]=Ne,L[$]=Ne-q}if(s){var Xe,V=$==="x"?Hn:Gn,X=$==="x"?Ko:Qo,Y=E[P],ie=P==="y"?"height":"width",se=Y+C[V],ue=Y-C[X],Ee=[Hn,Gn].indexOf(b)!==-1,Ie=(Xe=F==null?void 0:F[P])!=null?Xe:0,at=Ee?se:Y-T[ie]-R[ie]-Ie+A.altAxis,ot=Ee?Y+T[ie]+R[ie]-Ie-A.altAxis:ue,Le=h&&Ee?bEe(at,Y,ot):op(h?at:se,Y,h?ot:ue);E[P]=Le,L[P]=Le-Y}t.modifiersData[n]=L}}const XEe={name:"preventOverflow",enabled:!0,phase:"main",fn:QEe,requiresIfExists:["offset"]};function YEe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JEe(e){return e===vo(e)||!zo(e)?S$(e):YEe(e)}function ZEe(e){var t=e.getBoundingClientRect(),r=ed(t.width)/e.offsetWidth||1,n=ed(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ePe(e,t,r){r===void 0&&(r=!1);var n=zo(t),o=zo(t)&&ZEe(t),a=Js(t),i=td(e,o,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ga(t)!=="body"||O$(a))&&(s=JEe(t)),zo(t)?(c=td(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=C$(a))),{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function tPe(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&o(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function rPe(e){var t=tPe(e);return pEe.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function nPe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function oPe(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var oL={placement:"bottom",modifiers:[],strategy:"absolute"};function aL(){for(var e=arguments.length,t=new Array(e),r=0;rze({root:["root"]},GCe(lPe)),vPe={},mPe=d.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:c,open:l,placement:f,popperOptions:v,popperRef:m,slotProps:h={},slots:x={},TransitionProps:w}=t,C=we(t,uPe),b=d.useRef(null),g=sr(b,r),_=d.useRef(null),$=sr(_,m),P=d.useRef($);po(()=>{P.current=$},[$]),d.useImperativeHandle(m,()=>_.current,[]);const E=dPe(f,i),[T,R]=d.useState(E),[I,A]=d.useState(yC(o));d.useEffect(()=>{_.current&&_.current.forceUpdate()}),d.useEffect(()=>{o&&A(yC(o))},[o]),po(()=>{if(!I||!l)return;const H=U=>{R(U.placement)};let G=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:U})=>{H(U)}}];c!=null&&(G=G.concat(c)),v&&v.modifiers!=null&&(G=G.concat(v.modifiers));const q=sPe(I,b.current,j({placement:E},v,{modifiers:G}));return P.current(q),()=>{q.destroy(),P.current(null)}},[I,s,c,l,v,E]);const F={placement:T};w!==null&&(F.TransitionProps=w);const L=pPe(),D=(n=x.root)!=null?n:"div",z=Go({elementType:D,externalSlotProps:h.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:L.root});return S.jsx(D,j({},z,{children:typeof a=="function"?a(F):a}))}),hPe=d.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:l,open:f,placement:v="bottom",popperOptions:m=vPe,popperRef:h,style:x,transition:w=!1,slotProps:C={},slots:b={}}=t,g=we(t,cPe),[_,$]=d.useState(!0),P=()=>{$(!1)},E=()=>{$(!0)};if(!c&&!f&&(!w||_))return null;let T;if(a)T=a;else if(n){const A=yC(n);T=A&&fPe(A)?Pr(A).body:Pr(null).body}const R=!f&&c&&(!w||_)?"none":void 0,I=w?{in:f,onEnter:P,onExited:E}:void 0;return S.jsx(D6,{disablePortal:s,container:T,children:S.jsx(mPe,j({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:w?!_:f,placement:v,popperOptions:m,popperRef:h,slotProps:C,slots:b},g,{style:j({position:"fixed",top:0,left:0,display:R},x),TransitionProps:I,children:o}))})});function gPe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=Rl();d.useEffect(()=>{if(!o)return;function b(g){g.defaultPrevented||(g.key==="Escape"||g.key==="Esc")&&(n==null||n(g,"escapeKeyDown"))}return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[o,n]);const s=En((b,g)=>{n==null||n(b,g)}),c=En(b=>{!n||b==null||i.start(b,()=>{s(null,"timeout")})});d.useEffect(()=>(o&&c(t),i.clear),[o,t,c,i]);const l=b=>{n==null||n(b,"clickaway")},f=i.clear,v=d.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),m=b=>g=>{const _=b.onBlur;_==null||_(g),v()},h=b=>g=>{const _=b.onFocus;_==null||_(g),f()},x=b=>g=>{const _=b.onMouseEnter;_==null||_(g),f()},w=b=>g=>{const _=b.onMouseLeave;_==null||_(g),v()};return d.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",v),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",f)}},[r,o,v,f]),{getRootProps:(b={})=>{const g=j({},ky(e),ky(b));return j({role:"presentation"},b,g,{onBlur:m(g),onFocus:h(g),onMouseEnter:x(g),onMouseLeave:w(g)})},onClickAway:l}}const yPe=["onChange","maxRows","minRows","style","value"];function bh(e){return parseInt(e,10)||0}const bPe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _Pe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const xPe=d.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=t,c=we(t,yPe),{current:l}=d.useRef(s!=null),f=d.useRef(null),v=sr(r,f),m=d.useRef(null),h=d.useCallback(()=>{const C=f.current,g=qo(C).getComputedStyle(C);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const _=m.current;_.style.width=g.width,_.value=C.value||t.placeholder||"x",_.value.slice(-1)===` +`&&(_.value+=" ");const $=g.boxSizing,P=bh(g.paddingBottom)+bh(g.paddingTop),E=bh(g.borderBottomWidth)+bh(g.borderTopWidth),T=_.scrollHeight;_.value="x";const R=_.scrollHeight;let I=T;a&&(I=Math.max(Number(a)*R,I)),o&&(I=Math.min(Number(o)*R,I)),I=Math.max(I,R);const A=I+($==="border-box"?P+E:0),F=Math.abs(I-T)<=1;return{outerHeightStyle:A,overflowing:F}},[o,a,t.placeholder]),x=d.useCallback(()=>{const C=h();if(_Pe(C))return;const b=f.current;b.style.height=`${C.outerHeightStyle}px`,b.style.overflow=C.overflowing?"hidden":""},[h]);po(()=>{const C=()=>{x()};let b;const g=Id(C),_=f.current,$=qo(_);$.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(C),P.observe(_)),()=>{g.clear(),cancelAnimationFrame(b),$.removeEventListener("resize",g),P&&P.disconnect()}},[h,x]),po(()=>{x()});const w=C=>{l||x(),n&&n(C)};return S.jsxs(d.Fragment,{children:[S.jsx("textarea",j({value:s,onChange:w,ref:v,rows:a,style:i},c)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:j({},bPe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});var E$={};Object.defineProperty(E$,"__esModule",{value:!0});var X6=E$.default=void 0,wPe=CPe(d),SPe=k6;function Y6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Y6=function(n){return n?r:t})(e)}function CPe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Y6(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function OPe(e){return Object.keys(e).length===0}function EPe(e=null){const t=wPe.useContext(SPe.ThemeContext);return!t||OPe(t)?e:t}X6=E$.default=EPe;const PPe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$Pe=J(hPe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),RPe=d.forwardRef(function(t,r){var n;const o=X6(),a=Ge({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:c,componentsProps:l,container:f,disablePortal:v,keepMounted:m,modifiers:h,open:x,placement:w,popperOptions:C,popperRef:b,transition:g,slots:_,slotProps:$}=a,P=we(a,PPe),E=(n=_==null?void 0:_.root)!=null?n:c==null?void 0:c.Root,T=j({anchorEl:i,container:f,disablePortal:v,keepMounted:m,modifiers:h,open:x,placement:w,popperOptions:C,popperRef:b,transition:g},P);return S.jsx($Pe,j({as:s,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:$??l},T,{ref:r}))}),J6=RPe;function Ui({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const TPe=d.createContext(void 0),q0=TPe;function Ea(){return d.useContext(q0)}function kPe(e){return S.jsx(lwe,j({},e,{defaultTheme:U0,themeId:eu}))}function iL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function jy(e,t=!1){return e&&(iL(e.value)&&e.value!==""||t&&iL(e.defaultValue)&&e.defaultValue!=="")}function IPe(e){return e.startAdornment}function jPe(e){return Ve("MuiInputBase",e)}const APe=He("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nd=APe,MPe=["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"],H0=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},G0=(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]},FPe=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:c,hiddenLabel:l,multiline:f,readOnly:v,size:m,startAdornment:h,type:x}=e,w={root:["root",`color${xe(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",i&&"focused",s&&"formControl",m&&m!=="medium"&&`size${xe(m)}`,f&&"multiline",h&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",x==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",v&&"readOnly"]};return ze(w,jPe,t)},K0=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:H0})(({theme:e,ownerState:t})=>j({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&j({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Q0=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=j({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return j({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${nd.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"})}),LPe=S.jsx(kPe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),NPe=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:c,components:l={},componentsProps:f={},defaultValue:v,disabled:m,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:w=!1,id:C,inputComponent:b="input",inputProps:g={},inputRef:_,maxRows:$,minRows:P,multiline:E=!1,name:T,onBlur:R,onChange:I,onClick:A,onFocus:F,onKeyDown:L,onKeyUp:D,placeholder:z,readOnly:H,renderSuffix:G,rows:q,slotProps:U={},slots:W={},startAdornment:te,type:ne="text",value:ee}=o,Ce=we(o,MPe),de=g.value!=null?g.value:ee,{current:oe}=d.useRef(de!=null),me=d.useRef(),Re=d.useCallback(Le=>{},[]),ye=sr(me,_,g.ref,Re),[fe,ge]=d.useState(!1),ce=Ea(),pe=Ui({props:o,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=ce?ce.focused:fe,d.useEffect(()=>{!ce&&m&&fe&&(ge(!1),R&&R())},[ce,m,fe,R]);const ae=ce&&ce.onFilled,Se=ce&&ce.onEmpty,Oe=d.useCallback(Le=>{jy(Le)?ae&&ae():Se&&Se()},[ae,Se]);po(()=>{oe&&Oe({value:de})},[de,Oe,oe]);const Ne=Le=>{if(pe.disabled){Le.stopPropagation();return}F&&F(Le),g.onFocus&&g.onFocus(Le),ce&&ce.onFocus?ce.onFocus(Le):ge(!0)},Xe=Le=>{R&&R(Le),g.onBlur&&g.onBlur(Le),ce&&ce.onBlur?ce.onBlur(Le):ge(!1)},V=(Le,...De)=>{if(!oe){const ft=Le.target||me.current;if(ft==null)throw new Error(Ri(1));Oe({value:ft.value})}g.onChange&&g.onChange(Le,...De),I&&I(Le,...De)};d.useEffect(()=>{Oe(me.current)},[]);const X=Le=>{me.current&&Le.currentTarget===Le.target&&me.current.focus(),A&&A(Le)};let Y=b,ie=g;E&&Y==="input"&&(q?ie=j({type:void 0,minRows:q,maxRows:q},ie):ie=j({type:void 0,maxRows:$,minRows:P},ie),Y=xPe);const se=Le=>{Oe(Le.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};d.useEffect(()=>{ce&&ce.setAdornedStart(!!te)},[ce,te]);const ue=j({},o,{color:pe.color||"primary",disabled:pe.disabled,endAdornment:x,error:pe.error,focused:pe.focused,formControl:ce,fullWidth:w,hiddenLabel:pe.hiddenLabel,multiline:E,size:pe.size,startAdornment:te,type:ne}),Ee=FPe(ue),Ie=W.root||l.Root||K0,at=U.root||f.root||{},ot=W.input||l.Input||Q0;return ie=j({},ie,(n=U.input)!=null?n:f.input),S.jsxs(d.Fragment,{children:[!h&&LPe,S.jsxs(Ie,j({},at,!Wp(Ie)&&{ownerState:j({},ue,at.ownerState)},{ref:r,onClick:X},Ce,{className:$e(Ee.root,at.className,c,H&&"MuiInputBase-readOnly"),children:[te,S.jsx(q0.Provider,{value:null,children:S.jsx(ot,j({ownerState:ue,"aria-invalid":pe.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:v,disabled:pe.disabled,id:C,onAnimationStart:se,name:T,placeholder:z,readOnly:H,required:pe.required,rows:q,value:de,onKeyDown:L,onKeyUp:D,type:ne},ie,!Wp(ot)&&{as:Y,ownerState:j({},ue,ie.ownerState)},{ref:ye,className:$e(Ee.input,ie.className,H&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:V,onFocus:Ne}))}),x,G?G(j({},pe,{startAdornment:te})):null]}))]})}),X0=NPe;function DPe(e){return Ve("MuiInput",e)}const BPe=j({},nd,He("MuiInput",["root","underline","input"])),wf=BPe;function zPe(e){return Ve("MuiOutlinedInput",e)}const UPe=j({},nd,He("MuiOutlinedInput",["root","notchedOutline","input"])),ts=UPe;function VPe(e){return Ve("MuiFilledInput",e)}const WPe=j({},nd,He("MuiFilledInput",["root","underline","input"])),pl=WPe,Z6=yo(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qPe=yo(S.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function HPe(e){return Ve("MuiAvatar",e)}He("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const GPe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],KPe=A6(),QPe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return ze({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},HPe,t)},XPe=J("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:j({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:j({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),YPe=J("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),JPe=J(qPe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function ZPe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,a]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;a(!1);let i=!0;const s=new Image;return s.onload=()=>{i&&a("loaded")},s.onerror=()=>{i&&a("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),o}const e$e=d.forwardRef(function(t,r){const n=KPe({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:c={},slotProps:l={},imgProps:f,sizes:v,src:m,srcSet:h,variant:x="circular"}=n,w=we(n,GPe);let C=null;const b=ZPe(j({},f,{src:m,srcSet:h})),g=m||h,_=g&&b!=="error",$=j({},n,{colorDefault:!_,component:s,variant:x}),P=QPe($),[E,T]=JCe("img",{className:P.img,elementType:YPe,externalForwardedProps:{slots:c,slotProps:{img:j({},f,l.img)}},additionalProps:{alt:o,src:m,srcSet:h,sizes:v},ownerState:$});return _?C=S.jsx(E,j({},T)):a||a===0?C=a:g&&o?C=o[0]:C=S.jsx(JPe,{ownerState:$,className:P.fallback}),S.jsx(XPe,j({as:s,ownerState:$,className:$e(P.root,i),ref:r},w,{children:C}))}),Gp=e$e,t$e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],r$e={entering:{opacity:1},entered:{opacity:1}},n$e=d.forwardRef(function(t,r){const n=ra(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:c,in:l,onEnter:f,onEntered:v,onEntering:m,onExit:h,onExited:x,onExiting:w,style:C,timeout:b=o,TransitionComponent:g=m$}=t,_=we(t,t$e),$=d.useRef(null),P=sr($,s.ref,r),E=z=>H=>{if(z){const G=$.current;H===void 0?z(G):z(G,H)}},T=E(m),R=E((z,H)=>{y$(z);const G=Jc({style:C,timeout:b,easing:c},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",G),z.style.transition=n.transitions.create("opacity",G),f&&f(z,H)}),I=E(v),A=E(w),F=E(z=>{const H=Jc({style:C,timeout:b,easing:c},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",H),z.style.transition=n.transitions.create("opacity",H),h&&h(z)}),L=E(x),D=z=>{a&&a($.current,z)};return S.jsx(g,j({appear:i,in:l,nodeRef:$,onEnter:R,onEntered:I,onEntering:T,onExit:F,onExited:L,onExiting:A,addEndListener:D,timeout:b},_,{children:(z,H)=>d.cloneElement(s,j({style:j({opacity:0,visibility:z==="exited"&&!l?"hidden":void 0},r$e[z],C,s.props.style),ref:P},H))}))}),e9=n$e;function o$e(e){return Ve("MuiBackdrop",e)}He("MuiBackdrop",["root","invisible"]);const a$e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],i$e=e=>{const{classes:t,invisible:r}=e;return ze({root:["root",r&&"invisible"]},o$e,t)},s$e=J("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>j({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),l$e=d.forwardRef(function(t,r){var n,o,a;const i=Ge({props:t,name:"MuiBackdrop"}),{children:s,className:c,component:l="div",components:f={},componentsProps:v={},invisible:m=!1,open:h,slotProps:x={},slots:w={},TransitionComponent:C=e9,transitionDuration:b}=i,g=we(i,a$e),_=j({},i,{component:l,invisible:m}),$=i$e(_),P=(n=x.root)!=null?n:v.root;return S.jsx(C,j({in:h,timeout:b},g,{children:S.jsx(s$e,j({"aria-hidden":!0},P,{as:(o=(a=w.root)!=null?a:f.Root)!=null?o:l,className:$e($.root,c,P==null?void 0:P.className),ownerState:j({},_,P==null?void 0:P.ownerState),classes:$,ref:r,children:s}))}))}),t9=l$e,u$e=He("MuiBox",["root"]),c$e=u$e,d$e=Ry(),f$e=mwe({themeId:eu,defaultTheme:d$e,defaultClassName:c$e.root,generateClassName:i$.generate}),On=f$e;function p$e(e){return Ve("MuiButton",e)}const v$e=He("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),_h=v$e,m$e=d.createContext({}),h$e=m$e,g$e=d.createContext(void 0),y$e=g$e,b$e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],_$e=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(o)}`,`${a}Size${xe(o)}`,`color${xe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${xe(o)}`],endIcon:["icon","endIcon",`iconSize${xe(o)}`]},c=ze(s,p$e,i);return j({},i,c)},r9=e=>j({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),x$e=J(zi,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return j({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":j({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${_h.focusVisible}`]:j({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${_h.disabled}`]:j({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${It(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${_h.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${_h.disabled}`]:{boxShadow:"none"}}),w$e=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},r9(e))),S$e=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>j({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},r9(e))),C$e=d.forwardRef(function(t,r){const n=d.useContext(h$e),o=d.useContext(y$e),a=u$(n,t),i=Ge({props:a,name:"MuiButton"}),{children:s,color:c="primary",component:l="button",className:f,disabled:v=!1,disableElevation:m=!1,disableFocusRipple:h=!1,endIcon:x,focusVisibleClassName:w,fullWidth:C=!1,size:b="medium",startIcon:g,type:_,variant:$="text"}=i,P=we(i,b$e),E=j({},i,{color:c,component:l,disabled:v,disableElevation:m,disableFocusRipple:h,fullWidth:C,size:b,type:_,variant:$}),T=_$e(E),R=g&&S.jsx(w$e,{className:T.startIcon,ownerState:E,children:g}),I=x&&S.jsx(S$e,{className:T.endIcon,ownerState:E,children:x}),A=o||"";return S.jsxs(x$e,j({ownerState:E,className:$e(n.className,T.root,f,A),component:l,disabled:v,focusRipple:!h,focusVisibleClassName:$e(T.focusVisible,w),ref:r,type:_},P,{classes:T,children:[R,s,I]}))}),$r=C$e;function O$e(e){return Ve("MuiCard",e)}He("MuiCard",["root"]);const E$e=["className","raised"],P$e=e=>{const{classes:t}=e;return ze({root:["root"]},O$e,t)},$$e=J(Ys,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),R$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,i=we(n,E$e),s=j({},n,{raised:a}),c=P$e(s);return S.jsx($$e,j({className:$e(c.root,o),elevation:a?8:void 0,ref:r,ownerState:s},i))}),du=R$e;function T$e(e){return Ve("MuiCardActions",e)}He("MuiCardActions",["root","spacing"]);const k$e=["disableSpacing","className"],I$e=e=>{const{classes:t,disableSpacing:r}=e;return ze({root:["root",!r&&"spacing"]},T$e,t)},j$e=J("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>j({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),A$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a}=n,i=we(n,k$e),s=j({},n,{disableSpacing:o}),c=I$e(s);return S.jsx(j$e,j({className:$e(c.root,a),ownerState:s,ref:r},i))}),n9=A$e;function M$e(e){return Ve("MuiCardContent",e)}He("MuiCardContent",["root"]);const F$e=["className","component"],L$e=e=>{const{classes:t}=e;return ze({root:["root"]},M$e,t)},N$e=J("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),D$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,i=we(n,F$e),s=j({},n,{component:a}),c=L$e(s);return S.jsx(N$e,j({as:a,className:$e(c.root,o),ownerState:s,ref:r},i))}),Io=D$e;function B$e(e){return Ve("MuiCardHeader",e)}const z$e=He("MuiCardHeader",["root","avatar","action","content","title","subheader"]),sL=z$e,U$e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],V$e=e=>{const{classes:t}=e;return ze({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},B$e,t)},W$e=J("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>j({[`& .${sL.title}`]:t.title,[`& .${sL.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),q$e=J("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),H$e=J("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),G$e=J("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),K$e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCardHeader"}),{action:o,avatar:a,className:i,component:s="div",disableTypography:c=!1,subheader:l,subheaderTypographyProps:f,title:v,titleTypographyProps:m}=n,h=we(n,U$e),x=j({},n,{component:s,disableTypography:c}),w=V$e(x);let C=v;C!=null&&C.type!==it&&!c&&(C=S.jsx(it,j({variant:a?"body2":"h5",className:w.title,component:"span",display:"block"},m,{children:C})));let b=l;return b!=null&&b.type!==it&&!c&&(b=S.jsx(it,j({variant:a?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:b}))),S.jsxs(W$e,j({className:$e(w.root,i),as:s,ref:r,ownerState:x},h,{children:[a&&S.jsx(q$e,{className:w.avatar,ownerState:x,children:a}),S.jsxs(G$e,{className:w.content,ownerState:x,children:[C,b]}),o&&S.jsx(H$e,{className:w.action,ownerState:x,children:o})]}))}),vl=K$e;function Q$e(e){return Ve("PrivateSwitchBase",e)}He("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const X$e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Y$e=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${xe(o)}`],input:["input"]};return ze(a,Q$e,t)},J$e=J(zi)(({ownerState:e})=>j({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Z$e=J("input",{shouldForwardProp:rn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),e2e=d.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:a,className:i,defaultChecked:s,disabled:c,disableFocusRipple:l=!1,edge:f=!1,icon:v,id:m,inputProps:h,inputRef:x,name:w,onBlur:C,onChange:b,onFocus:g,readOnly:_,required:$=!1,tabIndex:P,type:E,value:T}=t,R=we(t,X$e),[I,A]=Yc({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),F=Ea(),L=W=>{g&&g(W),F&&F.onFocus&&F.onFocus(W)},D=W=>{C&&C(W),F&&F.onBlur&&F.onBlur(W)},z=W=>{if(W.nativeEvent.defaultPrevented)return;const te=W.target.checked;A(te),b&&b(W,te)};let H=c;F&&typeof H>"u"&&(H=F.disabled);const G=E==="checkbox"||E==="radio",q=j({},t,{checked:I,disabled:H,disableFocusRipple:l,edge:f}),U=Y$e(q);return S.jsxs(J$e,j({component:"span",className:$e(U.root,i),centerRipple:!0,focusRipple:!l,disabled:H,tabIndex:null,role:void 0,onFocus:L,onBlur:D,ownerState:q,ref:r},R,{children:[S.jsx(Z$e,j({autoFocus:n,checked:o,defaultChecked:s,className:U.input,disabled:H,id:G?m:void 0,name:w,onChange:z,readOnly:_,ref:x,required:$,ownerState:q,tabIndex:P,type:E},E==="checkbox"&&T===void 0?{}:{value:T},h)),I?a:v]}))}),o9=e2e,t2e=yo(S.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),r2e=yo(S.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),n2e=yo(S.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function o2e(e){return Ve("MuiCheckbox",e)}const a2e=He("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uw=a2e,i2e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],s2e=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(o)}`]},i=ze(a,o2e,t);return j({},t,i)},l2e=J(o9,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${xe(r.size)}`],r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${uw.checked}, &.${uw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${uw.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),u2e=S.jsx(r2e,{}),c2e=S.jsx(t2e,{}),d2e=S.jsx(n2e,{}),f2e=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:i=u2e,color:s="primary",icon:c=c2e,indeterminate:l=!1,indeterminateIcon:f=d2e,inputProps:v,size:m="medium",className:h}=a,x=we(a,i2e),w=l?f:c,C=l?f:i,b=j({},a,{color:s,indeterminate:l,size:m}),g=s2e(b);return S.jsx(l2e,j({type:"checkbox",inputProps:j({"data-indeterminate":l},v),icon:d.cloneElement(w,{fontSize:(n=w.props.fontSize)!=null?n:m}),checkedIcon:d.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:m}),ownerState:b,ref:r,className:$e(g.root,h)},x,{classes:g}))}),od=f2e;function p2e(e){return Ve("MuiCircularProgress",e)}He("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const v2e=["className","color","disableShrink","size","style","thickness","value","variant"];let Y0=e=>e,lL,uL,cL,dL;const rs=44,m2e=Di(lL||(lL=Y0` 0% { transform: rotate(0deg); } @@ -215,7 +215,7 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu 100% { transform: rotate(360deg); } -`)),g2e=Di(uL||(uL=Y0` +`)),h2e=Di(uL||(uL=Y0` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -230,11 +230,11 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),y2e=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${xe(n)}`],svg:["svg"],circle:["circle",`circle${xe(r)}`,o&&"circleDisableShrink"]};return ze(a,v2e,t)},b2e=J("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${xe(r.color)}`]]}})(({ownerState:e,theme:t})=>j({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&cu(cL||(cL=Y0` +`)),g2e=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,`color${xe(n)}`],svg:["svg"],circle:["circle",`circle${xe(r)}`,o&&"circleDisableShrink"]};return ze(a,p2e,t)},y2e=J("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${xe(r.color)}`]]}})(({ownerState:e,theme:t})=>j({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&cu(cL||(cL=Y0` animation: ${0} 1.4s linear infinite; - `),h2e)),_2e=J("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),x2e=J("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${xe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>j({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&cu(dL||(dL=Y0` + `),m2e)),b2e=J("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),_2e=J("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${xe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>j({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&cu(dL||(dL=Y0` animation: ${0} 1.4s ease-in-out infinite; - `),g2e)),w2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:c,thickness:l=3.6,value:f=0,variant:v="indeterminate"}=n,m=we(n,m2e),h=j({},n,{color:a,disableShrink:i,size:s,thickness:l,value:f,variant:v}),x=y2e(h),w={},C={},b={};if(v==="determinate"){const g=2*Math.PI*((rs-l)/2);w.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*g).toFixed(3)}px`,C.transform="rotate(-90deg)"}return S.jsx(b2e,j({className:$e(x.root,o),style:j({width:s,height:s},C,c),ownerState:h,ref:r,role:"progressbar"},b,m,{children:S.jsx(_2e,{className:x.svg,ownerState:h,viewBox:`${rs/2} ${rs/2} ${rs} ${rs}`,children:S.jsx(x2e,{className:x.circle,style:w,ownerState:h,cx:rs,cy:rs,r:(rs-l)/2,fill:"none",strokeWidth:l})})}))}),Md=w2e,S2e=cSe({createStyledComponent:J("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ge({props:e,name:"MuiContainer"})}),Vu=S2e,C2e=(e,t)=>j({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),O2e=e=>j({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});function E2e(e){return Ve("MuiModal",e)}He("MuiModal",["root","hidden","backdrop"]);const P2e=["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"],$2e=e=>{const{open:t,exited:r,classes:n}=e;return ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},E2e,n)},R2e=J("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>j({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),T2e=J(t9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),k2e=d.forwardRef(function(t,r){var n,o,a,i,s,c;const l=Ge({name:"MuiModal",props:t}),{BackdropComponent:f=T2e,BackdropProps:v,className:m,closeAfterTransition:h=!1,children:x,container:w,component:C,components:b={},componentsProps:g={},disableAutoFocus:_=!1,disableEnforceFocus:$=!1,disableEscapeKeyDown:P=!1,disablePortal:E=!1,disableRestoreFocus:T=!1,disableScrollLock:R=!1,hideBackdrop:I=!1,keepMounted:A=!1,onBackdropClick:F,open:L,slotProps:D,slots:z}=l,H=we(l,P2e),G=j({},l,{closeAfterTransition:h,disableAutoFocus:_,disableEnforceFocus:$,disableEscapeKeyDown:P,disablePortal:E,disableRestoreFocus:T,disableScrollLock:R,hideBackdrop:I,keepMounted:A}),{getRootProps:q,getBackdropProps:U,getTransitionProps:W,portalRef:te,isTopModal:ne,exited:ee,hasTransition:Ce}=rEe(j({},G,{rootRef:r})),de=j({},G,{exited:ee}),oe=$2e(de),me={};if(x.props.tabIndex===void 0&&(me.tabIndex="-1"),Ce){const{onEnter:ae,onExited:Se}=W();me.onEnter=ae,me.onExited=Se}const Re=(n=(o=z==null?void 0:z.root)!=null?o:b.Root)!=null?n:R2e,ye=(a=(i=z==null?void 0:z.backdrop)!=null?i:b.Backdrop)!=null?a:f,fe=(s=D==null?void 0:D.root)!=null?s:g.root,ge=(c=D==null?void 0:D.backdrop)!=null?c:g.backdrop,ce=Go({elementType:Re,externalSlotProps:fe,externalForwardedProps:H,getSlotProps:q,additionalProps:{ref:r,as:C},ownerState:de,className:$e(m,fe==null?void 0:fe.className,oe==null?void 0:oe.root,!de.open&&de.exited&&(oe==null?void 0:oe.hidden))}),pe=Go({elementType:ye,externalSlotProps:ge,additionalProps:v,getSlotProps:ae=>U(j({},ae,{onClick:Se=>{F&&F(Se),ae!=null&&ae.onClick&&ae.onClick(Se)}})),className:$e(ge==null?void 0:ge.className,v==null?void 0:v.className,oe==null?void 0:oe.backdrop),ownerState:de});return!A&&!L&&(!Ce||ee)?null:S.jsx(D6,{ref:te,container:w,disablePortal:E,children:S.jsxs(Re,j({},ce,{children:[!I&&f?S.jsx(ye,j({},pe)):null,S.jsx(HOe,{disableEnforceFocus:$,disableAutoFocus:_,disableRestoreFocus:T,isEnabled:ne,open:L,children:d.cloneElement(x,me)})]}))})}),P$=k2e;function I2e(e){return Ve("MuiDialog",e)}const j2e=He("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cw=j2e,A2e=d.createContext({}),a9=A2e,M2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],F2e=J(t9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),L2e=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${xe(r)}`],paper:["paper",`paperScroll${xe(r)}`,`paperWidth${xe(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return ze(i,I2e,t)},N2e=J(P$,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),D2e=J("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${xe(r.scroll)}`]]}})(({ownerState:e})=>j({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),B2e=J(Ys,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${xe(r.scroll)}`],t[`paperWidth${xe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>j({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${cw.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}`,[`&.${cw.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,[`&.${cw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),z2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialog"}),o=ra(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:c,BackdropProps:l,children:f,className:v,disableEscapeKeyDown:m=!1,fullScreen:h=!1,fullWidth:x=!1,maxWidth:w="sm",onBackdropClick:C,onClose:b,open:g,PaperComponent:_=Ys,PaperProps:$={},scroll:P="paper",TransitionComponent:E=e9,transitionDuration:T=a,TransitionProps:R}=n,I=we(n,M2e),A=j({},n,{disableEscapeKeyDown:m,fullScreen:h,fullWidth:x,maxWidth:w,scroll:P}),F=L2e(A),L=d.useRef(),D=q=>{L.current=q.target===q.currentTarget},z=q=>{L.current&&(L.current=null,C&&C(q),b&&b(q,"backdropClick"))},H=ru(s),G=d.useMemo(()=>({titleId:H}),[H]);return S.jsx(N2e,j({className:$e(F.root,v),closeAfterTransition:!0,components:{Backdrop:F2e},componentsProps:{backdrop:j({transitionDuration:T,as:c},l)},disableEscapeKeyDown:m,onClose:b,open:g,ref:r,onClick:z,ownerState:A},I,{children:S.jsx(E,j({appear:!0,in:g,timeout:T,role:"presentation"},R,{children:S.jsx(D2e,{className:$e(F.container),onMouseDown:D,ownerState:A,children:S.jsx(B2e,j({as:_,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":H},$,{className:$e(F.paper,$.className),ownerState:A,children:S.jsx(a9.Provider,{value:G,children:f})}))})}))}))}),Fv=z2e;function U2e(e){return Ve("MuiDialogActions",e)}He("MuiDialogActions",["root","spacing"]);const V2e=["className","disableSpacing"],W2e=e=>{const{classes:t,disableSpacing:r}=e;return ze({root:["root",!r&&"spacing"]},U2e,t)},q2e=J("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>j({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),H2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=we(n,V2e),s=j({},n,{disableSpacing:a}),c=W2e(s);return S.jsx(q2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),$$=H2e;function G2e(e){return Ve("MuiDialogContent",e)}He("MuiDialogContent",["root","dividers"]);function K2e(e){return Ve("MuiDialogTitle",e)}const Q2e=He("MuiDialogTitle",["root"]),X2e=Q2e,Y2e=["className","dividers"],J2e=e=>{const{classes:t,dividers:r}=e;return ze({root:["root",r&&"dividers"]},G2e,t)},Z2e=J("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>j({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${X2e.root} + &`]:{paddingTop:0}})),eRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=we(n,Y2e),s=j({},n,{dividers:a}),c=J2e(s);return S.jsx(Z2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),Lv=eRe;function tRe(e){return Ve("MuiDialogContentText",e)}He("MuiDialogContentText",["root"]);const rRe=["children","className"],nRe=e=>{const{classes:t}=e,n=ze({root:["root"]},tRe,t);return j({},t,n)},oRe=J(it,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=we(n,rRe),i=nRe(a);return S.jsx(oRe,j({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:$e(i.root,o)},n,{classes:i}))}),J0=aRe,iRe=["className","id"],sRe=e=>{const{classes:t}=e;return ze({root:["root"]},K2e,t)},lRe=J(it,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),uRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=we(n,iRe),s=n,c=sRe(s),{titleId:l=a}=d.useContext(a9);return S.jsx(lRe,j({component:"h2",className:$e(c.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),Nv=uRe;function cRe(e){return Ve("MuiDivider",e)}const dRe=He("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fL=dRe,fRe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pRe=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:c}=e;return ze({root:["root",t&&"absolute",c,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},cRe,n)},vRe=J("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>j({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:It(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>j({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>j({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),mRe=J("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>j({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),i9=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:c=!1,light:l=!1,orientation:f="horizontal",role:v=s!=="hr"?"separator":void 0,textAlign:m="center",variant:h="fullWidth"}=n,x=we(n,fRe),w=j({},n,{absolute:o,component:s,flexItem:c,light:l,orientation:f,role:v,textAlign:m,variant:h}),C=pRe(w);return S.jsx(vRe,j({as:s,className:$e(C.root,i),role:v,ref:r,ownerState:w},x,{children:a?S.jsx(mRe,{className:C.wrapper,ownerState:w,children:a}):null}))});i9.muiSkipListHighlight=!0;const bC=i9,hRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gRe(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=qo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=a.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),c=parseInt(l[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+c-n.top}px)`:`translateY(${a.innerHeight+c-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function yRe(e){return typeof e=="function"?e():e}function xh(e,t,r){const n=yRe(r),o=gRe(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const bRe=d.forwardRef(function(t,r){const n=ra(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:c,container:l,direction:f="down",easing:v=o,in:m,onEnter:h,onEntered:x,onEntering:w,onExit:C,onExited:b,onExiting:g,style:_,timeout:$=a,TransitionComponent:P=m$}=t,E=we(t,hRe),T=d.useRef(null),R=sr(c.ref,T,r),I=U=>W=>{U&&(W===void 0?U(T.current):U(T.current,W))},A=I((U,W)=>{xh(f,U,l),y$(U),h&&h(U,W)}),F=I((U,W)=>{const te=Jc({timeout:$,style:_,easing:v},{mode:"enter"});U.style.webkitTransition=n.transitions.create("-webkit-transform",j({},te)),U.style.transition=n.transitions.create("transform",j({},te)),U.style.webkitTransform="none",U.style.transform="none",w&&w(U,W)}),L=I(x),D=I(g),z=I(U=>{const W=Jc({timeout:$,style:_,easing:v},{mode:"exit"});U.style.webkitTransition=n.transitions.create("-webkit-transform",W),U.style.transition=n.transitions.create("transform",W),xh(f,U,l),C&&C(U)}),H=I(U=>{U.style.webkitTransition="",U.style.transition="",b&&b(U)}),G=U=>{i&&i(T.current,U)},q=d.useCallback(()=>{T.current&&xh(f,T.current,l)},[f,l]);return d.useEffect(()=>{if(m||f==="down"||f==="right")return;const U=Id(()=>{T.current&&xh(f,T.current,l)}),W=qo(T.current);return W.addEventListener("resize",U),()=>{U.clear(),W.removeEventListener("resize",U)}},[f,m,l]),d.useEffect(()=>{m||q()},[m,q]),S.jsx(P,j({nodeRef:T,onEnter:A,onEntered:L,onEntering:F,onExit:z,onExited:H,onExiting:D,addEndListener:G,appear:s,in:m,timeout:$},E,{children:(U,W)=>d.cloneElement(c,j({ref:R,style:j({visibility:U==="exited"&&!m?"hidden":void 0},_,c.props.style)},W))}))}),s9=bRe;function _Re(e){return Ve("MuiDrawer",e)}He("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const xRe=["BackdropProps"],wRe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],l9=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},SRe=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${xe(r)}`,n!=="temporary"&&`paperAnchorDocked${xe(r)}`]};return ze(o,_Re,t)},CRe=J(P$,{name:"MuiDrawer",slot:"Root",overridesResolver:l9})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),pL=J("div",{shouldForwardProp:rn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:l9})({flex:"0 0 auto"}),ORe=J(Ys,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${xe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${xe(r.anchor)}`]]}})(({theme:e,ownerState:t})=>j({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),u9={left:"right",right:"left",top:"down",bottom:"up"};function ERe(e){return["left","right"].indexOf(e)!==-1}function PRe({direction:e},t){return e==="rtl"&&ERe(t)?u9[t]:t}const $Re=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDrawer"}),o=ra(),a=Xs(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:c,children:l,className:f,elevation:v=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:h}={},onClose:x,open:w=!1,PaperProps:C={},SlideProps:b,TransitionComponent:g=s9,transitionDuration:_=i,variant:$="temporary"}=n,P=we(n.ModalProps,xRe),E=we(n,wRe),T=d.useRef(!1);d.useEffect(()=>{T.current=!0},[]);const R=PRe({direction:a?"rtl":"ltr"},s),A=j({},n,{anchor:s,elevation:v,open:w,variant:$},E),F=SRe(A),L=S.jsx(ORe,j({elevation:$==="temporary"?v:0,square:!0},C,{className:$e(F.paper,C.className),ownerState:A,children:l}));if($==="permanent")return S.jsx(pL,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},E,{children:L}));const D=S.jsx(g,j({in:w,direction:u9[R],timeout:_,appear:T.current},b,{children:L}));return $==="persistent"?S.jsx(pL,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},E,{children:D})):S.jsx(CRe,j({BackdropProps:j({},c,h,{transitionDuration:_}),className:$e(F.root,F.modal,f),open:w,ownerState:A,onClose:x,hideBackdrop:m,ref:r},E,P,{children:D}))}),RRe=$Re;function TRe(e){return Ve("MuiFab",e)}const kRe=He("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),vL=kRe,IRe=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],jRe=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${xe(o)}`,t==="inherit"?"colorInherit":t]},i=ze(a,TRe,n);return j({},n,i)},ARe=J(zi,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>rn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,t[xe(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return j({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${vL.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>j({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${vL.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),MRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:c=!1,disableFocusRipple:l=!1,focusVisibleClassName:f,size:v="large",variant:m="circular"}=n,h=we(n,IRe),x=j({},n,{color:i,component:s,disabled:c,disableFocusRipple:l,size:v,variant:m}),w=jRe(x);return S.jsx(ARe,j({className:$e(w.root,a),component:s,disabled:c,focusRipple:!l,focusVisibleClassName:$e(w.focusVisible,f),ownerState:x,ref:r},h,{classes:w,children:o}))}),FRe=MRe,LRe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],NRe=e=>{const{classes:t,disableUnderline:r}=e,o=ze({root:["root",!r&&"underline"],input:["input"]},WPe,t);return j({},t,o)},DRe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...H0(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return j({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${pl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${pl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pl.disabled}, .${pl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${pl.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&j({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),BRe=J(Q0,{name:"MuiFilledInput",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>j({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),c9=d.forwardRef(function(t,r){var n,o,a,i;const s=Ge({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:l,fullWidth:f=!1,inputComponent:v="input",multiline:m=!1,slotProps:h,slots:x={},type:w="text"}=s,C=we(s,LRe),b=j({},s,{fullWidth:f,inputComponent:v,multiline:m,type:w}),g=NRe(s),_={root:{ownerState:b},input:{ownerState:b}},$=h??l?$n(_,h??l):_,P=(n=(o=x.root)!=null?o:c.Root)!=null?n:DRe,E=(a=(i=x.input)!=null?i:c.Input)!=null?a:BRe;return S.jsx(X0,j({slots:{root:P,input:E},componentsProps:$,fullWidth:f,inputComponent:v,multiline:m,ref:r,type:w},C,{classes:g}))});c9.muiName="Input";const d9=c9;function zRe(e){return Ve("MuiFormControl",e)}He("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const URe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],VRe=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return ze(o,zRe,t)},WRe=J("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>j({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),qRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:c=!1,error:l=!1,focused:f,fullWidth:v=!1,hiddenLabel:m=!1,margin:h="none",required:x=!1,size:w="medium",variant:C="outlined"}=n,b=we(n,URe),g=j({},n,{color:i,component:s,disabled:c,error:l,fullWidth:v,hiddenLabel:m,margin:h,required:x,size:w,variant:C}),_=VRe(g),[$,P]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,z=>{if(!ag(z,["Input","Select"]))return;const H=ag(z,["Select"])?z.props.input:z;H&&jPe(H.props)&&(D=!0)}),D}),[E,T]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,z=>{ag(z,["Input","Select"])&&(jy(z.props,!0)||jy(z.props.inputProps,!0))&&(D=!0)}),D}),[R,I]=d.useState(!1);c&&R&&I(!1);const A=f!==void 0&&!c?f:R;let F;const L=d.useMemo(()=>({adornedStart:$,setAdornedStart:P,color:i,disabled:c,error:l,filled:E,focused:A,fullWidth:v,hiddenLabel:m,size:w,onBlur:()=>{I(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:x,variant:C}),[$,i,c,l,E,A,v,m,F,x,w,C]);return S.jsx(q0.Provider,{value:L,children:S.jsx(WRe,j({as:s,ownerState:g,className:$e(_.root,a),ref:r},b,{children:o}))})}),f9=qRe,HRe=ySe({createStyledComponent:J("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ge({props:e,name:"MuiStack"})}),Dv=HRe;function GRe(e){return Ve("MuiFormControlLabel",e)}const KRe=He("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Lf=KRe,QRe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],XRe=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return ze(i,GRe,t)},YRe=J("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lf.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>j({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Lf.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},{[`& .${Lf.label}`]:{[`&.${Lf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),JRe=J("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lf.error}`]:{color:(e.vars||e).palette.error.main}})),ZRe=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:c,disabled:l,disableTypography:f,label:v,labelPlacement:m="end",required:h,slotProps:x={}}=a,w=we(a,QRe),C=Ea(),b=(n=l??c.props.disabled)!=null?n:C==null?void 0:C.disabled,g=h??c.props.required,_={disabled:b,required:g};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof c.props[I]>"u"&&typeof a[I]<"u"&&(_[I]=a[I])});const $=Ui({props:a,muiFormControl:C,states:["error"]}),P=j({},a,{disabled:b,labelPlacement:m,required:g,error:$.error}),E=XRe(P),T=(o=x.typography)!=null?o:s.typography;let R=v;return R!=null&&R.type!==it&&!f&&(R=S.jsx(it,j({component:"span"},T,{className:$e(E.label,T==null?void 0:T.className),children:R}))),S.jsxs(YRe,j({className:$e(E.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,_),g?S.jsxs(Dv,{display:"block",children:[R,S.jsxs(JRe,{ownerState:P,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):R]}))}),_C=ZRe;function eTe(e){return Ve("MuiFormGroup",e)}He("MuiFormGroup",["root","row","error"]);const tTe=["className","row"],rTe=e=>{const{classes:t,row:r,error:n}=e;return ze({root:["root",r&&"row",n&&"error"]},eTe,t)},nTe=J("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>j({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),oTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=n,i=we(n,tTe),s=Ea(),c=Ui({props:n,muiFormControl:s,states:["error"]}),l=j({},n,{row:a,error:c.error}),f=rTe(l);return S.jsx(nTe,j({className:$e(f.root,o),ownerState:l,ref:r},i))}),aTe=oTe;function iTe(e){return Ve("MuiFormHelperText",e)}const sTe=He("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),mL=sTe;var hL;const lTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],uTe=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:c}=e,l={root:["root",o&&"disabled",a&&"error",n&&`size${xe(n)}`,r&&"contained",s&&"focused",i&&"filled",c&&"required"]};return ze(l,iTe,t)},cTe=J("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mL.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),dTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=we(n,lTe),c=Ea(),l=Ui({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=j({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),v=uTe(f);return S.jsx(cTe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:o===" "?hL||(hL=S.jsx("span",{className:"notranslate",children:"​"})):o}))}),R$=dTe;function fTe(e){return Ve("MuiFormLabel",e)}const pTe=He("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ip=pTe,vTe=["children","className","color","component","disabled","error","filled","focused","required"],mTe=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,c={root:["root",`color${xe(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return ze(c,fTe,t)},hTe=J("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ip.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ip.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ip.error}`]:{color:(e.vars||e).palette.error.main}})),gTe=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ip.error}`]:{color:(e.vars||e).palette.error.main}})),yTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=we(n,vTe),c=Ea(),l=Ui({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=j({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),v=mTe(f);return S.jsxs(hTe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:[o,l.required&&S.jsxs(gTe,{ownerState:f,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),bTe=yTe,_Te=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xC(e){return`scale(${e}, ${e**2})`}const xTe={entering:{opacity:1,transform:xC(1)},entered:{opacity:1,transform:"none"}},dw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),p9=d.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:c,onEntered:l,onEntering:f,onExit:v,onExited:m,onExiting:h,style:x,timeout:w="auto",TransitionComponent:C=m$}=t,b=we(t,_Te),g=Rl(),_=d.useRef(),$=ra(),P=d.useRef(null),E=sr(P,a.ref,r),T=H=>G=>{if(H){const q=P.current;G===void 0?H(q):H(q,G)}},R=T(f),I=T((H,G)=>{y$(H);const{duration:q,delay:U,easing:W}=Jc({style:x,timeout:w,easing:i},{mode:"enter"});let te;w==="auto"?(te=$.transitions.getAutoHeightDuration(H.clientHeight),_.current=te):te=q,H.style.transition=[$.transitions.create("opacity",{duration:te,delay:U}),$.transitions.create("transform",{duration:dw?te:te*.666,delay:U,easing:W})].join(","),c&&c(H,G)}),A=T(l),F=T(h),L=T(H=>{const{duration:G,delay:q,easing:U}=Jc({style:x,timeout:w,easing:i},{mode:"exit"});let W;w==="auto"?(W=$.transitions.getAutoHeightDuration(H.clientHeight),_.current=W):W=G,H.style.transition=[$.transitions.create("opacity",{duration:W,delay:q}),$.transitions.create("transform",{duration:dw?W:W*.666,delay:dw?q:q||W*.333,easing:U})].join(","),H.style.opacity=0,H.style.transform=xC(.75),v&&v(H)}),D=T(m),z=H=>{w==="auto"&&g.start(_.current||0,H),n&&n(P.current,H)};return S.jsx(C,j({appear:o,in:s,nodeRef:P,onEnter:I,onEntered:A,onEntering:R,onExit:L,onExited:D,onExiting:F,addEndListener:z,timeout:w==="auto"?null:w},b,{children:(H,G)=>d.cloneElement(a,j({style:j({opacity:0,transform:xC(.75),visibility:H==="exited"&&!s?"hidden":void 0},xTe[H],x,a.props.style),ref:E},G))}))});p9.muiSupportAuto=!0;const Ay=p9,wTe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],STe=e=>{const{classes:t,disableUnderline:r}=e,o=ze({root:["root",!r&&"underline"],input:["input"]},BPe,t);return j({},t,o)},CTe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...H0(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),j({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wf.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(.${wf.disabled}, .${wf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),OTe=J(Q0,{name:"MuiInput",slot:"Input",overridesResolver:G0})({}),v9=d.forwardRef(function(t,r){var n,o,a,i;const s=Ge({props:t,name:"MuiInput"}),{disableUnderline:c,components:l={},componentsProps:f,fullWidth:v=!1,inputComponent:m="input",multiline:h=!1,slotProps:x,slots:w={},type:C="text"}=s,b=we(s,wTe),g=STe(s),$={root:{ownerState:{disableUnderline:c}}},P=x??f?$n(x??f,$):$,E=(n=(o=w.root)!=null?o:l.Root)!=null?n:CTe,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:OTe;return S.jsx(X0,j({slots:{root:E,input:T},slotProps:P,fullWidth:v,inputComponent:m,multiline:h,ref:r,type:C},b,{classes:g}))});v9.muiName="Input";const T$=v9;function ETe(e){return Ve("MuiInputAdornment",e)}const PTe=He("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gL=PTe;var yL;const $Te=["children","className","component","disablePointerEvents","disableTypography","position","variant"],RTe=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},TTe=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${xe(o)}`,i,n&&"hiddenLabel",a&&`size${xe(a)}`]};return ze(s,ETe,t)},kTe=J("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:RTe})(({theme:e,ownerState:t})=>j({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gL.positionStart}&:not(.${gL.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),ITe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:c=!1,position:l,variant:f}=n,v=we(n,$Te),m=Ea()||{};let h=f;f&&m.variant,m&&!h&&(h=m.variant);const x=j({},n,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:s,position:l,variant:h}),w=TTe(x);return S.jsx(q0.Provider,{value:null,children:S.jsx(kTe,j({as:i,ownerState:x,className:$e(w.root,a),ref:r},v,{children:typeof o=="string"&&!c?S.jsx(it,{color:"text.secondary",children:o}):S.jsxs(d.Fragment,{children:[l==="start"?yL||(yL=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Ec=ITe;function jTe(e){return Ve("MuiInputLabel",e)}He("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ATe=["disableAnimation","margin","shrink","variant","className"],MTe=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,c={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${xe(n)}`,i],asterisk:[s&&"asterisk"]},l=ze(c,jTe,t);return j({},t,l)},FTe=J(bTe,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ip.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>j({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&j({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&j({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&j({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),LTe=d.forwardRef(function(t,r){const n=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=we(n,ATe),c=Ea();let l=a;typeof l>"u"&&c&&(l=c.filled||c.focused||c.adornedStart);const f=Ui({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),v=j({},n,{disableAnimation:o,formControl:c,shrink:l,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),m=MTe(v);return S.jsx(FTe,j({"data-shrink":l,ownerState:v,ref:r,className:$e(m.root,i)},s,{classes:m}))}),m9=LTe;function NTe(e){return Ve("MuiLinearProgress",e)}He("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const DTe=["className","color","value","valueBuffer","variant"];let Fd=e=>e,bL,_L,xL,wL,SL,CL;const wC=4,BTe=Di(bL||(bL=Fd` + `),h2e)),x2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:c,thickness:l=3.6,value:f=0,variant:v="indeterminate"}=n,m=we(n,v2e),h=j({},n,{color:a,disableShrink:i,size:s,thickness:l,value:f,variant:v}),x=g2e(h),w={},C={},b={};if(v==="determinate"){const g=2*Math.PI*((rs-l)/2);w.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*g).toFixed(3)}px`,C.transform="rotate(-90deg)"}return S.jsx(y2e,j({className:$e(x.root,o),style:j({width:s,height:s},C,c),ownerState:h,ref:r,role:"progressbar"},b,m,{children:S.jsx(b2e,{className:x.svg,ownerState:h,viewBox:`${rs/2} ${rs/2} ${rs} ${rs}`,children:S.jsx(_2e,{className:x.circle,style:w,ownerState:h,cx:rs,cy:rs,r:(rs-l)/2,fill:"none",strokeWidth:l})})}))}),Md=x2e,w2e=uSe({createStyledComponent:J("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ge({props:e,name:"MuiContainer"})}),Vu=w2e,S2e=(e,t)=>j({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),C2e=e=>j({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});function O2e(e){return Ve("MuiModal",e)}He("MuiModal",["root","hidden","backdrop"]);const E2e=["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"],P2e=e=>{const{open:t,exited:r,classes:n}=e;return ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},O2e,n)},$2e=J("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>j({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),R2e=J(t9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),T2e=d.forwardRef(function(t,r){var n,o,a,i,s,c;const l=Ge({name:"MuiModal",props:t}),{BackdropComponent:f=R2e,BackdropProps:v,className:m,closeAfterTransition:h=!1,children:x,container:w,component:C,components:b={},componentsProps:g={},disableAutoFocus:_=!1,disableEnforceFocus:$=!1,disableEscapeKeyDown:P=!1,disablePortal:E=!1,disableRestoreFocus:T=!1,disableScrollLock:R=!1,hideBackdrop:I=!1,keepMounted:A=!1,onBackdropClick:F,open:L,slotProps:D,slots:z}=l,H=we(l,E2e),G=j({},l,{closeAfterTransition:h,disableAutoFocus:_,disableEnforceFocus:$,disableEscapeKeyDown:P,disablePortal:E,disableRestoreFocus:T,disableScrollLock:R,hideBackdrop:I,keepMounted:A}),{getRootProps:q,getBackdropProps:U,getTransitionProps:W,portalRef:te,isTopModal:ne,exited:ee,hasTransition:Ce}=tEe(j({},G,{rootRef:r})),de=j({},G,{exited:ee}),oe=P2e(de),me={};if(x.props.tabIndex===void 0&&(me.tabIndex="-1"),Ce){const{onEnter:ae,onExited:Se}=W();me.onEnter=ae,me.onExited=Se}const Re=(n=(o=z==null?void 0:z.root)!=null?o:b.Root)!=null?n:$2e,ye=(a=(i=z==null?void 0:z.backdrop)!=null?i:b.Backdrop)!=null?a:f,fe=(s=D==null?void 0:D.root)!=null?s:g.root,ge=(c=D==null?void 0:D.backdrop)!=null?c:g.backdrop,ce=Go({elementType:Re,externalSlotProps:fe,externalForwardedProps:H,getSlotProps:q,additionalProps:{ref:r,as:C},ownerState:de,className:$e(m,fe==null?void 0:fe.className,oe==null?void 0:oe.root,!de.open&&de.exited&&(oe==null?void 0:oe.hidden))}),pe=Go({elementType:ye,externalSlotProps:ge,additionalProps:v,getSlotProps:ae=>U(j({},ae,{onClick:Se=>{F&&F(Se),ae!=null&&ae.onClick&&ae.onClick(Se)}})),className:$e(ge==null?void 0:ge.className,v==null?void 0:v.className,oe==null?void 0:oe.backdrop),ownerState:de});return!A&&!L&&(!Ce||ee)?null:S.jsx(D6,{ref:te,container:w,disablePortal:E,children:S.jsxs(Re,j({},ce,{children:[!I&&f?S.jsx(ye,j({},pe)):null,S.jsx(qOe,{disableEnforceFocus:$,disableAutoFocus:_,disableRestoreFocus:T,isEnabled:ne,open:L,children:d.cloneElement(x,me)})]}))})}),P$=T2e;function k2e(e){return Ve("MuiDialog",e)}const I2e=He("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cw=I2e,j2e=d.createContext({}),a9=j2e,A2e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],M2e=J(t9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),F2e=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${xe(r)}`],paper:["paper",`paperScroll${xe(r)}`,`paperWidth${xe(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return ze(i,k2e,t)},L2e=J(P$,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),N2e=J("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${xe(r.scroll)}`]]}})(({ownerState:e})=>j({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),D2e=J(Ys,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${xe(r.scroll)}`],t[`paperWidth${xe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>j({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${cw.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}`,[`&.${cw.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,[`&.${cw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),B2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialog"}),o=ra(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:c,BackdropProps:l,children:f,className:v,disableEscapeKeyDown:m=!1,fullScreen:h=!1,fullWidth:x=!1,maxWidth:w="sm",onBackdropClick:C,onClose:b,open:g,PaperComponent:_=Ys,PaperProps:$={},scroll:P="paper",TransitionComponent:E=e9,transitionDuration:T=a,TransitionProps:R}=n,I=we(n,A2e),A=j({},n,{disableEscapeKeyDown:m,fullScreen:h,fullWidth:x,maxWidth:w,scroll:P}),F=F2e(A),L=d.useRef(),D=q=>{L.current=q.target===q.currentTarget},z=q=>{L.current&&(L.current=null,C&&C(q),b&&b(q,"backdropClick"))},H=ru(s),G=d.useMemo(()=>({titleId:H}),[H]);return S.jsx(L2e,j({className:$e(F.root,v),closeAfterTransition:!0,components:{Backdrop:M2e},componentsProps:{backdrop:j({transitionDuration:T,as:c},l)},disableEscapeKeyDown:m,onClose:b,open:g,ref:r,onClick:z,ownerState:A},I,{children:S.jsx(E,j({appear:!0,in:g,timeout:T,role:"presentation"},R,{children:S.jsx(N2e,{className:$e(F.container),onMouseDown:D,ownerState:A,children:S.jsx(D2e,j({as:_,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":H},$,{className:$e(F.paper,$.className),ownerState:A,children:S.jsx(a9.Provider,{value:G,children:f})}))})}))}))}),Fv=B2e;function z2e(e){return Ve("MuiDialogActions",e)}He("MuiDialogActions",["root","spacing"]);const U2e=["className","disableSpacing"],V2e=e=>{const{classes:t,disableSpacing:r}=e;return ze({root:["root",!r&&"spacing"]},z2e,t)},W2e=J("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>j({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),q2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=n,i=we(n,U2e),s=j({},n,{disableSpacing:a}),c=V2e(s);return S.jsx(W2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),$$=q2e;function H2e(e){return Ve("MuiDialogContent",e)}He("MuiDialogContent",["root","dividers"]);function G2e(e){return Ve("MuiDialogTitle",e)}const K2e=He("MuiDialogTitle",["root"]),Q2e=K2e,X2e=["className","dividers"],Y2e=e=>{const{classes:t,dividers:r}=e;return ze({root:["root",r&&"dividers"]},H2e,t)},J2e=J("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>j({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Q2e.root} + &`]:{paddingTop:0}})),Z2e=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=n,i=we(n,X2e),s=j({},n,{dividers:a}),c=Y2e(s);return S.jsx(J2e,j({className:$e(c.root,o),ownerState:s,ref:r},i))}),Lv=Z2e;function eRe(e){return Ve("MuiDialogContentText",e)}He("MuiDialogContentText",["root"]);const tRe=["children","className"],rRe=e=>{const{classes:t}=e,n=ze({root:["root"]},eRe,t);return j({},t,n)},nRe=J(it,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogContentText"}),{className:o}=n,a=we(n,tRe),i=rRe(a);return S.jsx(nRe,j({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:a,className:$e(i.root,o)},n,{classes:i}))}),J0=oRe,aRe=["className","id"],iRe=e=>{const{classes:t}=e;return ze({root:["root"]},G2e,t)},sRe=J(it,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),lRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=we(n,aRe),s=n,c=iRe(s),{titleId:l=a}=d.useContext(a9);return S.jsx(sRe,j({component:"h2",className:$e(c.root,o),ownerState:s,ref:r,variant:"h6",id:a??l},i))}),Nv=lRe;function uRe(e){return Ve("MuiDivider",e)}const cRe=He("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),fL=cRe,dRe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],fRe=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:c}=e;return ze({root:["root",t&&"absolute",c,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},uRe,n)},pRe=J("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>j({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:It(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>j({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>j({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>j({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),vRe=J("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>j({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),i9=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:s=a?"div":"hr",flexItem:c=!1,light:l=!1,orientation:f="horizontal",role:v=s!=="hr"?"separator":void 0,textAlign:m="center",variant:h="fullWidth"}=n,x=we(n,dRe),w=j({},n,{absolute:o,component:s,flexItem:c,light:l,orientation:f,role:v,textAlign:m,variant:h}),C=fRe(w);return S.jsx(pRe,j({as:s,className:$e(C.root,i),role:v,ref:r,ownerState:w},x,{children:a?S.jsx(vRe,{className:C.wrapper,ownerState:w,children:a}):null}))});i9.muiSkipListHighlight=!0;const bC=i9,mRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hRe(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=qo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=a.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),c=parseInt(l[5],10)}return e==="left"?o?`translateX(${o.right+s-n.left}px)`:`translateX(${a.innerWidth+s-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?o?`translateY(${o.bottom+c-n.top}px)`:`translateY(${a.innerHeight+c-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function gRe(e){return typeof e=="function"?e():e}function xh(e,t,r){const n=gRe(r),o=hRe(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const yRe=d.forwardRef(function(t,r){const n=ra(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:c,container:l,direction:f="down",easing:v=o,in:m,onEnter:h,onEntered:x,onEntering:w,onExit:C,onExited:b,onExiting:g,style:_,timeout:$=a,TransitionComponent:P=m$}=t,E=we(t,mRe),T=d.useRef(null),R=sr(c.ref,T,r),I=U=>W=>{U&&(W===void 0?U(T.current):U(T.current,W))},A=I((U,W)=>{xh(f,U,l),y$(U),h&&h(U,W)}),F=I((U,W)=>{const te=Jc({timeout:$,style:_,easing:v},{mode:"enter"});U.style.webkitTransition=n.transitions.create("-webkit-transform",j({},te)),U.style.transition=n.transitions.create("transform",j({},te)),U.style.webkitTransform="none",U.style.transform="none",w&&w(U,W)}),L=I(x),D=I(g),z=I(U=>{const W=Jc({timeout:$,style:_,easing:v},{mode:"exit"});U.style.webkitTransition=n.transitions.create("-webkit-transform",W),U.style.transition=n.transitions.create("transform",W),xh(f,U,l),C&&C(U)}),H=I(U=>{U.style.webkitTransition="",U.style.transition="",b&&b(U)}),G=U=>{i&&i(T.current,U)},q=d.useCallback(()=>{T.current&&xh(f,T.current,l)},[f,l]);return d.useEffect(()=>{if(m||f==="down"||f==="right")return;const U=Id(()=>{T.current&&xh(f,T.current,l)}),W=qo(T.current);return W.addEventListener("resize",U),()=>{U.clear(),W.removeEventListener("resize",U)}},[f,m,l]),d.useEffect(()=>{m||q()},[m,q]),S.jsx(P,j({nodeRef:T,onEnter:A,onEntered:L,onEntering:F,onExit:z,onExited:H,onExiting:D,addEndListener:G,appear:s,in:m,timeout:$},E,{children:(U,W)=>d.cloneElement(c,j({ref:R,style:j({visibility:U==="exited"&&!m?"hidden":void 0},_,c.props.style)},W))}))}),s9=yRe;function bRe(e){return Ve("MuiDrawer",e)}He("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const _Re=["BackdropProps"],xRe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],l9=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},wRe=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${xe(r)}`,n!=="temporary"&&`paperAnchorDocked${xe(r)}`]};return ze(o,bRe,t)},SRe=J(P$,{name:"MuiDrawer",slot:"Root",overridesResolver:l9})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),pL=J("div",{shouldForwardProp:rn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:l9})({flex:"0 0 auto"}),CRe=J(Ys,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${xe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${xe(r.anchor)}`]]}})(({theme:e,ownerState:t})=>j({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),u9={left:"right",right:"left",top:"down",bottom:"up"};function ORe(e){return["left","right"].indexOf(e)!==-1}function ERe({direction:e},t){return e==="rtl"&&ORe(t)?u9[t]:t}const PRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiDrawer"}),o=ra(),a=Xs(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:c,children:l,className:f,elevation:v=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:h}={},onClose:x,open:w=!1,PaperProps:C={},SlideProps:b,TransitionComponent:g=s9,transitionDuration:_=i,variant:$="temporary"}=n,P=we(n.ModalProps,_Re),E=we(n,xRe),T=d.useRef(!1);d.useEffect(()=>{T.current=!0},[]);const R=ERe({direction:a?"rtl":"ltr"},s),A=j({},n,{anchor:s,elevation:v,open:w,variant:$},E),F=wRe(A),L=S.jsx(CRe,j({elevation:$==="temporary"?v:0,square:!0},C,{className:$e(F.paper,C.className),ownerState:A,children:l}));if($==="permanent")return S.jsx(pL,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},E,{children:L}));const D=S.jsx(g,j({in:w,direction:u9[R],timeout:_,appear:T.current},b,{children:L}));return $==="persistent"?S.jsx(pL,j({className:$e(F.root,F.docked,f),ownerState:A,ref:r},E,{children:D})):S.jsx(SRe,j({BackdropProps:j({},c,h,{transitionDuration:_}),className:$e(F.root,F.modal,f),open:w,ownerState:A,onClose:x,hideBackdrop:m,ref:r},E,P,{children:D}))}),$Re=PRe;function RRe(e){return Ve("MuiFab",e)}const TRe=He("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),vL=TRe,kRe=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],IRe=e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,`size${xe(o)}`,t==="inherit"?"colorInherit":t]},i=ze(a,RRe,n);return j({},n,i)},jRe=J(zi,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>rn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,t[xe(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return j({},e.typography.button,{minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${vL.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>j({},t.color!=="inherit"&&t.color!=="default"&&(e.vars||e).palette[t.color]!=null&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}}),({theme:e})=>({[`&.${vL.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),ARe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFab"}),{children:o,className:a,color:i="default",component:s="button",disabled:c=!1,disableFocusRipple:l=!1,focusVisibleClassName:f,size:v="large",variant:m="circular"}=n,h=we(n,kRe),x=j({},n,{color:i,component:s,disabled:c,disableFocusRipple:l,size:v,variant:m}),w=IRe(x);return S.jsx(jRe,j({className:$e(w.root,a),component:s,disabled:c,focusRipple:!l,focusVisibleClassName:$e(w.focusVisible,f),ownerState:x,ref:r},h,{classes:w,children:o}))}),MRe=ARe,FRe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],LRe=e=>{const{classes:t,disableUnderline:r}=e,o=ze({root:["root",!r&&"underline"],input:["input"]},VPe,t);return j({},t,o)},NRe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...H0(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return j({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${pl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${pl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pl.disabled}, .${pl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${pl.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&j({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),DRe=J(Q0,{name:"MuiFilledInput",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>j({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),c9=d.forwardRef(function(t,r){var n,o,a,i;const s=Ge({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:l,fullWidth:f=!1,inputComponent:v="input",multiline:m=!1,slotProps:h,slots:x={},type:w="text"}=s,C=we(s,FRe),b=j({},s,{fullWidth:f,inputComponent:v,multiline:m,type:w}),g=LRe(s),_={root:{ownerState:b},input:{ownerState:b}},$=h??l?$n(_,h??l):_,P=(n=(o=x.root)!=null?o:c.Root)!=null?n:NRe,E=(a=(i=x.input)!=null?i:c.Input)!=null?a:DRe;return S.jsx(X0,j({slots:{root:P,input:E},componentsProps:$,fullWidth:f,inputComponent:v,multiline:m,ref:r,type:w},C,{classes:g}))});c9.muiName="Input";const d9=c9;function BRe(e){return Ve("MuiFormControl",e)}He("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const zRe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],URe=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return ze(o,BRe,t)},VRe=J("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>j({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),WRe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:c=!1,error:l=!1,focused:f,fullWidth:v=!1,hiddenLabel:m=!1,margin:h="none",required:x=!1,size:w="medium",variant:C="outlined"}=n,b=we(n,zRe),g=j({},n,{color:i,component:s,disabled:c,error:l,fullWidth:v,hiddenLabel:m,margin:h,required:x,size:w,variant:C}),_=URe(g),[$,P]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,z=>{if(!ag(z,["Input","Select"]))return;const H=ag(z,["Select"])?z.props.input:z;H&&IPe(H.props)&&(D=!0)}),D}),[E,T]=d.useState(()=>{let D=!1;return o&&d.Children.forEach(o,z=>{ag(z,["Input","Select"])&&(jy(z.props,!0)||jy(z.props.inputProps,!0))&&(D=!0)}),D}),[R,I]=d.useState(!1);c&&R&&I(!1);const A=f!==void 0&&!c?f:R;let F;const L=d.useMemo(()=>({adornedStart:$,setAdornedStart:P,color:i,disabled:c,error:l,filled:E,focused:A,fullWidth:v,hiddenLabel:m,size:w,onBlur:()=>{I(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{I(!0)},registerEffect:F,required:x,variant:C}),[$,i,c,l,E,A,v,m,F,x,w,C]);return S.jsx(q0.Provider,{value:L,children:S.jsx(VRe,j({as:s,ownerState:g,className:$e(_.root,a),ref:r},b,{children:o}))})}),f9=WRe,qRe=gSe({createStyledComponent:J("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ge({props:e,name:"MuiStack"})}),Dv=qRe;function HRe(e){return Ve("MuiFormControlLabel",e)}const GRe=He("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Lf=GRe,KRe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],QRe=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return ze(i,HRe,t)},XRe=J("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lf.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>j({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Lf.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},{[`& .${Lf.label}`]:{[`&.${Lf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),YRe=J("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lf.error}`]:{color:(e.vars||e).palette.error.main}})),JRe=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:c,disabled:l,disableTypography:f,label:v,labelPlacement:m="end",required:h,slotProps:x={}}=a,w=we(a,KRe),C=Ea(),b=(n=l??c.props.disabled)!=null?n:C==null?void 0:C.disabled,g=h??c.props.required,_={disabled:b,required:g};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof c.props[I]>"u"&&typeof a[I]<"u"&&(_[I]=a[I])});const $=Ui({props:a,muiFormControl:C,states:["error"]}),P=j({},a,{disabled:b,labelPlacement:m,required:g,error:$.error}),E=QRe(P),T=(o=x.typography)!=null?o:s.typography;let R=v;return R!=null&&R.type!==it&&!f&&(R=S.jsx(it,j({component:"span"},T,{className:$e(E.label,T==null?void 0:T.className),children:R}))),S.jsxs(XRe,j({className:$e(E.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,_),g?S.jsxs(Dv,{display:"block",children:[R,S.jsxs(YRe,{ownerState:P,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):R]}))}),_C=JRe;function ZRe(e){return Ve("MuiFormGroup",e)}He("MuiFormGroup",["root","row","error"]);const eTe=["className","row"],tTe=e=>{const{classes:t,row:r,error:n}=e;return ze({root:["root",r&&"row",n&&"error"]},ZRe,t)},rTe=J("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>j({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),nTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=n,i=we(n,eTe),s=Ea(),c=Ui({props:n,muiFormControl:s,states:["error"]}),l=j({},n,{row:a,error:c.error}),f=tTe(l);return S.jsx(rTe,j({className:$e(f.root,o),ownerState:l,ref:r},i))}),oTe=nTe;function aTe(e){return Ve("MuiFormHelperText",e)}const iTe=He("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),mL=iTe;var hL;const sTe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],lTe=e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:c}=e,l={root:["root",o&&"disabled",a&&"error",n&&`size${xe(n)}`,r&&"contained",s&&"focused",i&&"filled",c&&"required"]};return ze(l,aTe,t)},uTe=J("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mL.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=n,s=we(n,sTe),c=Ea(),l=Ui({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=j({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),v=lTe(f);return S.jsx(uTe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:o===" "?hL||(hL=S.jsx("span",{className:"notranslate",children:"​"})):o}))}),R$=cTe;function dTe(e){return Ve("MuiFormLabel",e)}const fTe=He("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ip=fTe,pTe=["children","className","color","component","disabled","error","filled","focused","required"],vTe=e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,c={root:["root",`color${xe(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return ze(c,dTe,t)},mTe=J("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>j({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>j({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ip.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ip.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ip.error}`]:{color:(e.vars||e).palette.error.main}})),hTe=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ip.error}`]:{color:(e.vars||e).palette.error.main}})),gTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=n,s=we(n,pTe),c=Ea(),l=Ui({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=j({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),v=vTe(f);return S.jsxs(mTe,j({as:i,ownerState:f,className:$e(v.root,a),ref:r},s,{children:[o,l.required&&S.jsxs(hTe,{ownerState:f,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),yTe=gTe,bTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xC(e){return`scale(${e}, ${e**2})`}const _Te={entering:{opacity:1,transform:xC(1)},entered:{opacity:1,transform:"none"}},dw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),p9=d.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:c,onEntered:l,onEntering:f,onExit:v,onExited:m,onExiting:h,style:x,timeout:w="auto",TransitionComponent:C=m$}=t,b=we(t,bTe),g=Rl(),_=d.useRef(),$=ra(),P=d.useRef(null),E=sr(P,a.ref,r),T=H=>G=>{if(H){const q=P.current;G===void 0?H(q):H(q,G)}},R=T(f),I=T((H,G)=>{y$(H);const{duration:q,delay:U,easing:W}=Jc({style:x,timeout:w,easing:i},{mode:"enter"});let te;w==="auto"?(te=$.transitions.getAutoHeightDuration(H.clientHeight),_.current=te):te=q,H.style.transition=[$.transitions.create("opacity",{duration:te,delay:U}),$.transitions.create("transform",{duration:dw?te:te*.666,delay:U,easing:W})].join(","),c&&c(H,G)}),A=T(l),F=T(h),L=T(H=>{const{duration:G,delay:q,easing:U}=Jc({style:x,timeout:w,easing:i},{mode:"exit"});let W;w==="auto"?(W=$.transitions.getAutoHeightDuration(H.clientHeight),_.current=W):W=G,H.style.transition=[$.transitions.create("opacity",{duration:W,delay:q}),$.transitions.create("transform",{duration:dw?W:W*.666,delay:dw?q:q||W*.333,easing:U})].join(","),H.style.opacity=0,H.style.transform=xC(.75),v&&v(H)}),D=T(m),z=H=>{w==="auto"&&g.start(_.current||0,H),n&&n(P.current,H)};return S.jsx(C,j({appear:o,in:s,nodeRef:P,onEnter:I,onEntered:A,onEntering:R,onExit:L,onExited:D,onExiting:F,addEndListener:z,timeout:w==="auto"?null:w},b,{children:(H,G)=>d.cloneElement(a,j({style:j({opacity:0,transform:xC(.75),visibility:H==="exited"&&!s?"hidden":void 0},_Te[H],x,a.props.style),ref:E},G))}))});p9.muiSupportAuto=!0;const Ay=p9,xTe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],wTe=e=>{const{classes:t,disableUnderline:r}=e,o=ze({root:["root",!r&&"underline"],input:["input"]},DPe,t);return j({},t,o)},STe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...H0(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),j({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wf.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(.${wf.disabled}, .${wf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),CTe=J(Q0,{name:"MuiInput",slot:"Input",overridesResolver:G0})({}),v9=d.forwardRef(function(t,r){var n,o,a,i;const s=Ge({props:t,name:"MuiInput"}),{disableUnderline:c,components:l={},componentsProps:f,fullWidth:v=!1,inputComponent:m="input",multiline:h=!1,slotProps:x,slots:w={},type:C="text"}=s,b=we(s,xTe),g=wTe(s),$={root:{ownerState:{disableUnderline:c}}},P=x??f?$n(x??f,$):$,E=(n=(o=w.root)!=null?o:l.Root)!=null?n:STe,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:CTe;return S.jsx(X0,j({slots:{root:E,input:T},slotProps:P,fullWidth:v,inputComponent:m,multiline:h,ref:r,type:C},b,{classes:g}))});v9.muiName="Input";const T$=v9;function OTe(e){return Ve("MuiInputAdornment",e)}const ETe=He("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gL=ETe;var yL;const PTe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$Te=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},RTe=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&`position${xe(o)}`,i,n&&"hiddenLabel",a&&`size${xe(a)}`]};return ze(s,OTe,t)},TTe=J("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:$Te})(({theme:e,ownerState:t})=>j({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gL.positionStart}&:not(.${gL.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),kTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:c=!1,position:l,variant:f}=n,v=we(n,PTe),m=Ea()||{};let h=f;f&&m.variant,m&&!h&&(h=m.variant);const x=j({},n,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:s,position:l,variant:h}),w=RTe(x);return S.jsx(q0.Provider,{value:null,children:S.jsx(TTe,j({as:i,ownerState:x,className:$e(w.root,a),ref:r},v,{children:typeof o=="string"&&!c?S.jsx(it,{color:"text.secondary",children:o}):S.jsxs(d.Fragment,{children:[l==="start"?yL||(yL=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Ec=kTe;function ITe(e){return Ve("MuiInputLabel",e)}He("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const jTe=["disableAnimation","margin","shrink","variant","className"],ATe=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,c={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="normal"&&`size${xe(n)}`,i],asterisk:[s&&"asterisk"]},l=ze(c,ITe,t);return j({},t,l)},MTe=J(yTe,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ip.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>j({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&j({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&j({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&j({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),FTe=d.forwardRef(function(t,r){const n=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=n,s=we(n,jTe),c=Ea();let l=a;typeof l>"u"&&c&&(l=c.filled||c.focused||c.adornedStart);const f=Ui({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),v=j({},n,{disableAnimation:o,formControl:c,shrink:l,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),m=ATe(v);return S.jsx(MTe,j({"data-shrink":l,ownerState:v,ref:r,className:$e(m.root,i)},s,{classes:m}))}),m9=FTe;function LTe(e){return Ve("MuiLinearProgress",e)}He("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const NTe=["className","color","value","valueBuffer","variant"];let Fd=e=>e,bL,_L,xL,wL,SL,CL;const wC=4,DTe=Di(bL||(bL=Fd` 0% { left: -35%; right: 100%; @@ -249,7 +249,7 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu left: 100%; right: -90%; } -`)),zTe=Di(_L||(_L=Fd` +`)),BTe=Di(_L||(_L=Fd` 0% { left: -200%; right: 100%; @@ -264,7 +264,7 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu left: 107%; right: -8%; } -`)),UTe=Di(xL||(xL=Fd` +`)),zTe=Di(xL||(xL=Fd` 0% { opacity: 1; background-position: 0 -23px; @@ -279,16 +279,16 @@ React-admin requires a valid dataProvider function to work.`);var v=d.useMemo(fu opacity: 1; background-position: -200px -23px; } -`)),VTe=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${xe(n)}`,r],dashed:["dashed",`dashedColor${xe(n)}`],bar1:["bar",`barColor${xe(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${xe(n)}`,r==="buffer"&&`color${xe(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return ze(o,NTe,t)},k$=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?z0(e.palette[t].main,.62):B0(e.palette[t].main,.5),WTe=J("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${xe(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>j({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:k$(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)"})),qTe=J("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${xe(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=k$(t,e.color);return j({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},cu(wL||(wL=Fd` +`)),UTe=e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${xe(n)}`,r],dashed:["dashed",`dashedColor${xe(n)}`],bar1:["bar",`barColor${xe(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${xe(n)}`,r==="buffer"&&`color${xe(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return ze(o,LTe,t)},k$=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?z0(e.palette[t].main,.62):B0(e.palette[t].main,.5),VTe=J("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${xe(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>j({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:k$(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)"})),WTe=J("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${xe(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=k$(t,e.color);return j({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},cu(wL||(wL=Fd` animation: ${0} 3s infinite linear; - `),UTe)),HTe=J("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${xe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>j({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${wC}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&cu(SL||(SL=Fd` + `),zTe)),qTe=J("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${xe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>j({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${wC}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&cu(SL||(SL=Fd` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),BTe)),GTe=J("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${xe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>j({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:k$(t,e.color),transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&cu(CL||(CL=Fd` + `),DTe)),HTe=J("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${xe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>j({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:k$(t,e.color),transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&cu(CL||(CL=Fd` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),zTe)),KTe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:s,variant:c="indeterminate"}=n,l=we(n,DTe),f=j({},n,{color:a,variant:c}),v=VTe(f),m=Xs(),h={},x={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let w=i-100;m&&(w=-w),x.bar1.transform=`translateX(${w}%)`}if(c==="buffer"&&s!==void 0){let w=(s||0)-100;m&&(w=-w),x.bar2.transform=`translateX(${w}%)`}return S.jsxs(WTe,j({className:$e(v.root,o),ownerState:f,role:"progressbar"},h,{ref:r},l,{children:[c==="buffer"?S.jsx(qTe,{className:v.dashed,ownerState:f}):null,S.jsx(HTe,{className:v.bar1,ownerState:f,style:x.bar1}),c==="determinate"?null:S.jsx(GTe,{className:v.bar2,ownerState:f,style:x.bar2})]}))}),QTe=KTe;function XTe(e){return Ve("MuiLink",e)}const YTe=He("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),JTe=YTe,h9={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ZTe=e=>h9[e]||e,eke=({theme:e,ownerState:t})=>{const r=ZTe(t.color),n=Qc(e,`palette.${r}`,!1)||t.color,o=Qc(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:It(n,.4)},tke=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rke=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${xe(o)}`,r==="button"&&"button",n&&"focusVisible"]};return ze(a,XTe,t)},nke=J(it,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>j({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&j({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:eke({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"},[`&.${JTe.focusVisible}`]:{outline:"auto"}})),oke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:c,TypographyClasses:l,underline:f="always",variant:v="inherit",sx:m}=n,h=we(n,tke),{isFocusVisibleRef:x,onBlur:w,onFocus:C,ref:b}=D0(),[g,_]=d.useState(!1),$=sr(r,b),P=I=>{w(I),x.current===!1&&_(!1),s&&s(I)},E=I=>{C(I),x.current===!0&&_(!0),c&&c(I)},T=j({},n,{color:a,component:i,focusVisible:g,underline:f,variant:v}),R=rke(T);return S.jsx(nke,j({color:a,className:$e(R.root,o),classes:l,component:i,onBlur:P,onFocus:E,ref:$,ownerState:T,variant:v,sx:[...Object.keys(h9).includes(a)?[]:[{color:a}],...Array.isArray(m)?m:[m]]},h))}),ake=oke,ike=d.createContext({}),Kp=ike;function ske(e){return Ve("MuiList",e)}He("MuiList",["root","padding","dense","subheader"]);const lke=["children","className","component","dense","disablePadding","subheader"],uke=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ze({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},ske,t)},cke=J("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>j({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),dke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:c=!1,subheader:l}=n,f=we(n,lke),v=d.useMemo(()=>({dense:s}),[s]),m=j({},n,{component:i,dense:s,disablePadding:c}),h=uke(m);return S.jsx(Kp.Provider,{value:v,children:S.jsxs(cke,j({as:i,className:$e(h.root,a),ref:r,ownerState:m},f,{children:[l,o]}))})}),fke=dke;function pke(e){return Ve("MuiListItemIcon",e)}const vke=He("MuiListItemIcon",["root","alignItemsFlexStart"]),OL=vke,mke=["className"],hke=e=>{const{alignItems:t,classes:r}=e;return ze({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},pke,r)},gke=J("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>j({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),yke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=we(n,mke),i=d.useContext(Kp),s=j({},n,{alignItems:i.alignItems}),c=hke(s);return S.jsx(gke,j({className:$e(c.root,o),ownerState:s,ref:r},a))}),g9=yke;function bke(e){return Ve("MuiListItemText",e)}const _ke=He("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),My=_ke,xke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],wke=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return ze({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},bke,t)},Ske=J("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${My.primary}`]:t.primary},{[`& .${My.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>j({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Cke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:c,primaryTypographyProps:l,secondary:f,secondaryTypographyProps:v}=n,m=we(n,xke),{dense:h}=d.useContext(Kp);let x=c??o,w=f;const C=j({},n,{disableTypography:i,inset:s,primary:!!x,secondary:!!w,dense:h}),b=wke(C);return x!=null&&x.type!==it&&!i&&(x=S.jsx(it,j({variant:h?"body2":"body1",className:b.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:x}))),w!=null&&w.type!==it&&!i&&(w=S.jsx(it,j({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},v,{children:w}))),S.jsxs(Ske,j({className:$e(b.root,a),ownerState:C,ref:r},m,{children:[x,w]}))}),Oke=Cke,Eke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function fw(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function EL(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function y9(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 Sf(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const c=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!y9(s,a)||c)s=o(e,s,r);else return s.focus(),!0}return!1}const Pke=d.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:c=!1,disableListWrap:l=!1,onKeyDown:f,variant:v="selectedMenu"}=t,m=we(t,Eke),h=d.useRef(null),x=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});po(()=>{o&&h.current.focus()},[o]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:$})=>{const P=!h.current.style.width;if(_.clientHeight{const $=h.current,P=_.key,E=Pr($).activeElement;if(P==="ArrowDown")_.preventDefault(),Sf($,E,l,c,fw);else if(P==="ArrowUp")_.preventDefault(),Sf($,E,l,c,EL);else if(P==="Home")_.preventDefault(),Sf($,null,l,c,fw);else if(P==="End")_.preventDefault(),Sf($,null,l,c,EL);else if(P.length===1){const T=x.current,R=P.toLowerCase(),I=performance.now();T.keys.length>0&&(I-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&R!==T.keys[0]&&(T.repeating=!1)),T.lastTime=I,T.keys.push(R);const A=E&&!T.repeating&&y9(E,T);T.previousKeyMatched&&(A||Sf($,E,!1,c,fw,T))?_.preventDefault():T.previousKeyMatched=!1}f&&f(_)},C=sr(h,r);let b=-1;d.Children.forEach(i,(_,$)=>{if(!d.isValidElement(_)){b===$&&(b+=1,b>=i.length&&(b=-1));return}_.props.disabled||(v==="selectedMenu"&&_.props.selected||b===-1)&&(b=$),b===$&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const g=d.Children.map(i,(_,$)=>{if($===b){const P={};return a&&(P.autoFocus=!0),_.props.tabIndex===void 0&&v==="selectedMenu"&&(P.tabIndex=0),d.cloneElement(_,P)}return _});return S.jsx(fke,j({role:"menu",ref:C,className:s,onKeyDown:w,tabIndex:o?0:-1},m,{children:g}))}),b9=Pke;function $ke(e){return Ve("MuiPopover",e)}He("MuiPopover",["root","paper"]);const Rke=["onEntering"],Tke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],kke=["slotProps"];function PL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function $L(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function RL(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pw(e){return typeof e=="function"?e():e}const Ike=e=>{const{classes:t}=e;return ze({root:["root"],paper:["paper"]},$ke,t)},jke=J(P$,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_9=J(Ys,{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}),Ake=d.forwardRef(function(t,r){var n,o,a;const i=Ge({props:t,name:"MuiPopover"}),{action:s,anchorEl:c,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:v="anchorEl",children:m,className:h,container:x,elevation:w=8,marginThreshold:C=16,open:b,PaperProps:g={},slots:_,slotProps:$,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:E=Ay,transitionDuration:T="auto",TransitionProps:{onEntering:R}={},disableScrollLock:I=!1}=i,A=we(i.TransitionProps,Rke),F=we(i,Tke),L=(n=$==null?void 0:$.paper)!=null?n:g,D=d.useRef(),z=sr(D,L.ref),H=j({},i,{anchorOrigin:l,anchorReference:v,elevation:w,marginThreshold:C,externalPaperSlotProps:L,transformOrigin:P,TransitionComponent:E,transitionDuration:T,TransitionProps:A}),G=Ike(H),q=d.useCallback(()=>{if(v==="anchorPosition")return f;const ae=pw(c),Oe=(ae&&ae.nodeType===1?ae:Pr(D.current).body).getBoundingClientRect();return{top:Oe.top+PL(Oe,l.vertical),left:Oe.left+$L(Oe,l.horizontal)}},[c,l.horizontal,l.vertical,f,v]),U=d.useCallback(ae=>({vertical:PL(ae,P.vertical),horizontal:$L(ae,P.horizontal)}),[P.horizontal,P.vertical]),W=d.useCallback(ae=>{const Se={width:ae.offsetWidth,height:ae.offsetHeight},Oe=U(Se);if(v==="none")return{top:null,left:null,transformOrigin:RL(Oe)};const Ne=q();let Xe=Ne.top-Oe.vertical,V=Ne.left-Oe.horizontal;const X=Xe+Se.height,Y=V+Se.width,ie=qo(pw(c)),se=ie.innerHeight-C,ue=ie.innerWidth-C;if(C!==null&&Xese){const Ee=X-se;Xe-=Ee,Oe.vertical+=Ee}if(C!==null&&Vue){const Ee=Y-ue;V-=Ee,Oe.horizontal+=Ee}return{top:`${Math.round(Xe)}px`,left:`${Math.round(V)}px`,transformOrigin:RL(Oe)}},[c,v,q,U,C]),[te,ne]=d.useState(b),ee=d.useCallback(()=>{const ae=D.current;if(!ae)return;const Se=W(ae);Se.top!==null&&(ae.style.top=Se.top),Se.left!==null&&(ae.style.left=Se.left),ae.style.transformOrigin=Se.transformOrigin,ne(!0)},[W]);d.useEffect(()=>(I&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[c,I,ee]);const Ce=(ae,Se)=>{R&&R(ae,Se),ee()},de=()=>{ne(!1)};d.useEffect(()=>{b&&ee()}),d.useImperativeHandle(s,()=>b?{updatePosition:()=>{ee()}}:null,[b,ee]),d.useEffect(()=>{if(!b)return;const ae=Id(()=>{ee()}),Se=qo(c);return Se.addEventListener("resize",ae),()=>{ae.clear(),Se.removeEventListener("resize",ae)}},[c,b,ee]);let oe=T;T==="auto"&&!E.muiSupportAuto&&(oe=void 0);const me=x||(c?Pr(pw(c)).body:void 0),Re=(o=_==null?void 0:_.root)!=null?o:jke,ye=(a=_==null?void 0:_.paper)!=null?a:_9,fe=Go({elementType:ye,externalSlotProps:j({},L,{style:te?L.style:j({},L.style,{opacity:0})}),additionalProps:{elevation:w,ref:z},ownerState:H,className:$e(G.paper,L==null?void 0:L.className)}),ge=Go({elementType:Re,externalSlotProps:($==null?void 0:$.root)||{},externalForwardedProps:F,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:me,open:b},ownerState:H,className:$e(G.root,h)}),{slotProps:ce}=ge,pe=we(ge,kke);return S.jsx(Re,j({},pe,!Wp(Re)&&{slotProps:ce,disableScrollLock:I},{children:S.jsx(E,j({appear:!0,in:b,onEntering:Ce,onExited:de,timeout:oe},A,{children:S.jsx(ye,j({},fe,{children:m}))}))}))}),I$=Ake;function Mke(e){return Ve("MuiMenu",e)}He("MuiMenu",["root","paper","list"]);const Fke=["onEntering"],Lke=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Nke={vertical:"top",horizontal:"right"},Dke={vertical:"top",horizontal:"left"},Bke=e=>{const{classes:t}=e;return ze({root:["root"],paper:["paper"],list:["list"]},Mke,t)},zke=J(I$,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Uke=J(_9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Vke=J(b9,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Wke=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:c,disableAutoFocusItem:l=!1,MenuListProps:f={},onClose:v,open:m,PaperProps:h={},PopoverClasses:x,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},variant:b="selectedMenu",slots:g={},slotProps:_={}}=a,$=we(a.TransitionProps,Fke),P=we(a,Lke),E=Xs(),T=j({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:f,onEntering:C,PaperProps:h,transitionDuration:w,TransitionProps:$,variant:b}),R=Bke(T),I=i&&!l&&m,A=d.useRef(null),F=(U,W)=>{A.current&&A.current.adjustStyleForScrollbar(U,{direction:E?"rtl":"ltr"}),C&&C(U,W)},L=U=>{U.key==="Tab"&&(U.preventDefault(),v&&v(U,"tabKeyDown"))};let D=-1;d.Children.map(s,(U,W)=>{d.isValidElement(U)&&(U.props.disabled||(b==="selectedMenu"&&U.props.selected||D===-1)&&(D=W))});const z=(n=g.paper)!=null?n:Uke,H=(o=_.paper)!=null?o:h,G=Go({elementType:g.root,externalSlotProps:_.root,ownerState:T,className:[R.root,c]}),q=Go({elementType:z,externalSlotProps:H,ownerState:T,className:R.paper});return S.jsx(zke,j({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Nke:Dke,slots:{paper:z,root:g.root},slotProps:{root:G,paper:q},open:m,ref:r,transitionDuration:w,TransitionProps:j({onEntering:F},$),ownerState:T},P,{classes:x,children:S.jsx(Vke,j({onKeyDown:L,actions:A,autoFocus:i&&(D===-1||l),autoFocusItem:I,variant:b},f,{className:$e(R.list,f.className),children:s}))}))}),Z0=Wke;function qke(e){return Ve("MuiMenuItem",e)}const Hke=He("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Cf=Hke,Gke=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Kke=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Qke=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,c=ze({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},qke,i);return j({},i,c)},Xke=J(zi,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Kke})(({theme:e,ownerState:t})=>j({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fL.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fL.inset}`]:{marginLeft:52},[`& .${My.root}`]:{marginTop:0,marginBottom:0},[`& .${My.inset}`]:{paddingLeft:36},[`& .${OL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${OL.root} svg`]:{fontSize:"1.25rem"}}))),Yke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:l,role:f="menuitem",tabIndex:v,className:m}=n,h=we(n,Gke),x=d.useContext(Kp),w=d.useMemo(()=>({dense:i||x.dense||!1,disableGutters:c}),[x.dense,i,c]),C=d.useRef(null);po(()=>{o&&C.current&&C.current.focus()},[o]);const b=j({},n,{dense:w.dense,divider:s,disableGutters:c}),g=Qke(n),_=sr(C,r);let $;return n.disabled||($=v!==void 0?v:-1),S.jsx(Kp.Provider,{value:w,children:S.jsx(Xke,j({ref:_,role:f,tabIndex:$,component:a,focusVisibleClassName:$e(g.focusVisible,l),className:$e(g.root,m)},h,{ownerState:b,classes:g}))})}),so=Yke;function x9(e){return Ve("MuiNativeSelect",e)}const Jke=He("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),j$=Jke,Zke=["className","disabled","error","IconComponent","inputRef","variant"],eIe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return ze(s,x9,t)},w9=({ownerState:e,theme:t})=>j({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":j({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${j$.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}}),tIe=J("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${j$.multiple}`]:t.multiple}]}})(w9),S9=({ownerState:e,theme:t})=>j({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${j$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),rIe=J("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(S9),nIe=d.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:c="standard"}=t,l=we(t,Zke),f=j({},t,{disabled:o,variant:c,error:a}),v=eIe(f);return S.jsxs(d.Fragment,{children:[S.jsx(tIe,j({ownerState:f,className:$e(v.select,n),disabled:o,ref:s||r},l)),t.multiple?null:S.jsx(rIe,{as:i,ownerState:f,className:v.icon})]})}),C9=nIe,oIe=["className","children","classes","IconComponent","input","inputProps","variant"],aIe=["root"],iIe=e=>{const{classes:t}=e;return ze({root:["root"]},x9,t)},sIe=S.jsx(T$,{}),O9=d.forwardRef(function(t,r){const n=Ge({name:"MuiNativeSelect",props:t}),{className:o,children:a,classes:i={},IconComponent:s=Z6,input:c=sIe,inputProps:l}=n,f=we(n,oIe),v=Ea(),m=Ui({props:n,muiFormControl:v,states:["variant"]}),h=j({},n,{classes:i}),x=iIe(h),w=we(i,aIe);return S.jsx(d.Fragment,{children:d.cloneElement(c,j({inputComponent:C9,inputProps:j({children:a,classes:w,IconComponent:s,variant:m.variant,type:void 0},l,c?c.props.inputProps:{}),ref:r},f,{className:$e(x.root,c.props.className,o)}))})});O9.muiName="Select";const TL=O9;var kL;const lIe=["children","classes","className","label","notched"],uIe=J("fieldset",{shouldForwardProp:rn})({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%"}),cIe=J("legend",{shouldForwardProp:rn})(({ownerState:e,theme:t})=>j({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&j({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function dIe(e){const{className:t,label:r,notched:n}=e,o=we(e,lIe),a=r!=null&&r!=="",i=j({},e,{notched:n,withLabel:a});return S.jsx(uIe,j({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(cIe,{ownerState:i,children:a?S.jsx("span",{children:r}):kL||(kL=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const fIe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pIe=e=>{const{classes:t}=e,n=ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},UPe,t);return j({},t,n)},vIe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:H0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return j({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ts.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ts.focused} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ts.error} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ts.disabled} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&j({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),mIe=J(dIe,{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}}),hIe=J(Q0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>j({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),E9=d.forwardRef(function(t,r){var n,o,a,i,s;const c=Ge({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:f=!1,inputComponent:v="input",label:m,multiline:h=!1,notched:x,slots:w={},type:C="text"}=c,b=we(c,fIe),g=pIe(c),_=Ea(),$=Ui({props:c,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=j({},c,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:_,fullWidth:f,hiddenLabel:$.hiddenLabel,multiline:h,size:$.size,type:C}),E=(n=(o=w.root)!=null?o:l.Root)!=null?n:vIe,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:hIe;return S.jsx(X0,j({slots:{root:E,input:T},renderSuffix:R=>S.jsx(mIe,{ownerState:P,className:g.notchedOutline,label:m!=null&&m!==""&&$.required?s||(s=S.jsxs(d.Fragment,{children:[m," ","*"]})):m,notched:typeof x<"u"?x:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:v,multiline:h,ref:r,type:C},b,{classes:j({},g,{notchedOutline:null})}))});E9.muiName="Input";const P9=E9;function gIe(e){return Ve("MuiPagination",e)}He("MuiPagination",["root","ul","outlined","text"]);const yIe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function bIe(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:c,page:l,showFirstButton:f=!1,showLastButton:v=!1,siblingCount:m=1}=e,h=we(e,yIe),[x,w]=Yc({controlled:l,default:o,name:r,state:"page"}),C=(I,A)=>{l||w(A),c&&c(I,A)},b=(I,A)=>{const F=A-I+1;return Array.from({length:F},(L,D)=>I+D)},g=b(1,Math.min(t,n)),_=b(Math.max(n-t+1,t+1),n),$=Math.max(Math.min(x-m,n-t-m*2-1),t+2),P=Math.min(Math.max(x+m,t+m*2+2),_.length>0?_[0]-2:n-1),E=[...f?["first"]:[],...s?[]:["previous"],...g,...$>t+2?["start-ellipsis"]:t+1t?[n-t]:[],..._,...i?[]:["next"],...v?["last"]:[]],T=I=>{switch(I){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return n;default:return null}},R=E.map(I=>typeof I=="number"?{onClick:A=>{C(A,I)},type:"page",page:I,selected:I===x,disabled:a,"aria-current":I===x?"true":void 0}:{onClick:A=>{C(A,T(I))},type:I,page:T(I),selected:!1,disabled:a||I.indexOf("ellipsis")===-1&&(I==="next"||I==="last"?x>=n:x<=1)});return j({items:R},h)}function _Ie(e){return Ve("MuiPaginationItem",e)}const xIe=He("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Ro=xIe,SC=yo(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),CC=yo(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),IL=yo(S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),jL=yo(S.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),wIe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],$9=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.variant==="text"&&t[`text${xe(r.color)}`],r.variant==="outlined"&&t[`outlined${xe(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},SIe=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:c}=e,l={root:["root",`size${xe(a)}`,c,i,r!=="standard"&&`color${xe(r)}`,r!=="standard"&&`${c}${xe(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return ze(l,_Ie,t)},CIe=J("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:$9})(({theme:e,ownerState:t})=>j({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Ro.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)})),OIe=J(zi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:$9})(({theme:e,ownerState:t})=>j({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Ro.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ro.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"}},[`&.${Ro.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ro.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Ro.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>j({},t.variant==="text"&&{[`&.${Ro.selected}`]:j({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Ro.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Ro.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)"}`,[`&.${Ro.selected}`]:j({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:It(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:It(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ro.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Ro.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),EIe=J("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>j({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),PIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:c=!1,page:l,selected:f=!1,shape:v="circular",size:m="medium",slots:h={},type:x="page",variant:w="text"}=n,C=we(n,wIe),b=j({},n,{color:a,disabled:c,selected:f,shape:v,size:m,type:x,variant:w}),g=Xs(),_=SIe(b),P=(g?{previous:h.next||s.next||jL,next:h.previous||s.previous||IL,last:h.first||s.first||SC,first:h.last||s.last||CC}:{previous:h.previous||s.previous||IL,next:h.next||s.next||jL,first:h.first||s.first||SC,last:h.last||s.last||CC})[x];return x==="start-ellipsis"||x==="end-ellipsis"?S.jsx(CIe,{ref:r,ownerState:b,className:$e(_.root,o),children:"…"}):S.jsxs(OIe,j({ref:r,ownerState:b,component:i,disabled:c,className:$e(_.root,o)},C,{children:[x==="page"&&l,P?S.jsx(EIe,{as:P,ownerState:b,className:_.icon}):null]}))}),$Ie=PIe,RIe=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],TIe=e=>{const{classes:t,variant:r}=e;return ze({root:["root",r],ul:["ul"]},gIe,t)},kIe=J("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),IIe=J("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function jIe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const AIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:c=1,disabled:l=!1,getItemAriaLabel:f=jIe,hideNextButton:v=!1,hidePrevButton:m=!1,renderItem:h=R=>S.jsx($Ie,j({},R)),shape:x="circular",showFirstButton:w=!1,showLastButton:C=!1,siblingCount:b=1,size:g="medium",variant:_="text"}=n,$=we(n,RIe),{items:P}=bIe(j({},n,{componentName:"Pagination"})),E=j({},n,{boundaryCount:o,color:i,count:s,defaultPage:c,disabled:l,getItemAriaLabel:f,hideNextButton:v,hidePrevButton:m,renderItem:h,shape:x,showFirstButton:w,showLastButton:C,siblingCount:b,size:g,variant:_}),T=TIe(E);return S.jsx(kIe,j({"aria-label":"pagination navigation",className:$e(T.root,a),ownerState:E,ref:r},$,{children:S.jsx(IIe,{className:T.ul,ownerState:E,children:P.map((R,I)=>S.jsx("li",{children:h(j({},R,{color:i,"aria-label":f(R.type,R.page,R.selected),shape:x,size:g,variant:_}))},I))})}))}),MIe=AIe;function FIe(e){return Ve("MuiScopedCssBaseline",e)}He("MuiScopedCssBaseline",["root"]);const LIe=["className","component","enableColorScheme"],NIe=e=>{const{classes:t}=e;return ze({root:["root"]},FIe,t)},DIe=J("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var a;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(a=o.palette)==null?void 0:a.mode}}),j({},C2e(e,t.enableColorScheme),O2e(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),BIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=we(n,LIe),s=j({},n,{component:a}),c=NIe(s);return S.jsx(DIe,j({as:a,className:$e(c.root,o),ref:r,ownerState:s},i))}),zIe=BIe;function UIe(e){return Ve("MuiSelect",e)}const Of=He("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var AL;const VIe=["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"],WIe=J("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Of.select}`]:t.select},{[`&.${Of.select}`]:t[r.variant]},{[`&.${Of.error}`]:t.error},{[`&.${Of.multiple}`]:t.multiple}]}})(w9,{[`&.${Of.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),qIe=J("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(S9),HIe=J("input",{shouldForwardProp:e=>j6(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 ML(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function GIe(e){return e==null||typeof e=="string"&&!e.trim()}const KIe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return ze(s,UIe,t)},QIe=d.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:c,className:l,defaultOpen:f,defaultValue:v,disabled:m,displayEmpty:h,error:x=!1,IconComponent:w,inputRef:C,labelId:b,MenuProps:g={},multiple:_,name:$,onBlur:P,onChange:E,onClose:T,onFocus:R,onOpen:I,open:A,readOnly:F,renderValue:L,SelectDisplayProps:D={},tabIndex:z,value:H,variant:G="standard"}=t,q=we(t,VIe),[U,W]=Yc({controlled:H,default:v,name:"Select"}),[te,ne]=Yc({controlled:A,default:f,name:"Select"}),ee=d.useRef(null),Ce=d.useRef(null),[de,oe]=d.useState(null),{current:me}=d.useRef(A!=null),[Re,ye]=d.useState(),fe=sr(r,C),ge=d.useCallback(Ue=>{Ce.current=Ue,Ue&&oe(Ue)},[]),ce=de==null?void 0:de.parentNode;d.useImperativeHandle(fe,()=>({focus:()=>{Ce.current.focus()},node:ee.current,value:U}),[U]),d.useEffect(()=>{f&&te&&de&&!me&&(ye(s?null:ce.clientWidth),Ce.current.focus())},[de,s]),d.useEffect(()=>{i&&Ce.current.focus()},[i]),d.useEffect(()=>{if(!b)return;const Ue=Pr(Ce.current).getElementById(b);if(Ue){const et=()=>{getSelection().isCollapsed&&Ce.current.focus()};return Ue.addEventListener("click",et),()=>{Ue.removeEventListener("click",et)}}},[b]);const pe=(Ue,et)=>{Ue?I&&I(et):T&&T(et),me||(ye(s?null:ce.clientWidth),ne(Ue))},ae=Ue=>{Ue.button===0&&(Ue.preventDefault(),Ce.current.focus(),pe(!0,Ue))},Se=Ue=>{pe(!1,Ue)},Oe=d.Children.toArray(c),Ne=Ue=>{const et=Oe.find(ke=>ke.props.value===Ue.target.value);et!==void 0&&(W(et.props.value),E&&E(Ue,et))},Xe=Ue=>et=>{let ke;if(et.currentTarget.hasAttribute("tabindex")){if(_){ke=Array.isArray(U)?U.slice():[];const Be=U.indexOf(Ue.props.value);Be===-1?ke.push(Ue.props.value):ke.splice(Be,1)}else ke=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(et),U!==ke&&(W(ke),E)){const Be=et.nativeEvent||et,ct=new Be.constructor(Be.type,Be);Object.defineProperty(ct,"target",{writable:!0,value:{value:ke,name:$}}),E(ct,Ue)}_||pe(!1,et)}},V=Ue=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ue.key)!==-1&&(Ue.preventDefault(),pe(!0,Ue))},X=de!==null&&te,Y=Ue=>{!X&&P&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:U,name:$}}),P(Ue))};delete q["aria-invalid"];let ie,se;const ue=[];let Ee=!1;(jy({value:U})||h)&&(L?ie=L(U):Ee=!0);const Ie=Oe.map(Ue=>{if(!d.isValidElement(Ue))return null;let et;if(_){if(!Array.isArray(U))throw new Error(Ri(2));et=U.some(ke=>ML(ke,Ue.props.value)),et&&Ee&&ue.push(Ue.props.children)}else et=ML(U,Ue.props.value),et&&Ee&&(se=Ue.props.children);return d.cloneElement(Ue,{"aria-selected":et?"true":"false",onClick:Xe(Ue),onKeyUp:ke=>{ke.key===" "&&ke.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(ke)},role:"option",selected:et,value:void 0,"data-value":Ue.props.value})});Ee&&(_?ue.length===0?ie=null:ie=ue.reduce((Ue,et,ke)=>(Ue.push(et),ke{const{classes:t}=e;return t},A$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>rn(e)&&e!=="variant",slot:"Root"},eje=J(T$,A$)(""),tje=J(P9,A$)(""),rje=J(d9,A$)(""),R9=d.forwardRef(function(t,r){const n=Ge({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:c=!1,displayEmpty:l=!1,IconComponent:f=Z6,id:v,input:m,inputProps:h,label:x,labelId:w,MenuProps:C,multiple:b=!1,native:g=!1,onClose:_,onOpen:$,open:P,renderValue:E,SelectDisplayProps:T,variant:R="outlined"}=n,I=we(n,YIe),A=g?C9:XIe,F=Ea(),L=Ui({props:n,muiFormControl:F,states:["variant","error"]}),D=L.variant||R,z=j({},n,{variant:D,classes:i}),H=ZIe(z),G=we(H,JIe),q=m||{standard:S.jsx(eje,{ownerState:z}),outlined:S.jsx(tje,{label:x,ownerState:z}),filled:S.jsx(rje,{ownerState:z})}[D],U=sr(r,q.ref);return S.jsx(d.Fragment,{children:d.cloneElement(q,j({inputComponent:A,inputProps:j({children:a,error:L.error,IconComponent:f,variant:D,type:void 0,multiple:b},g?{id:v}:{autoWidth:o,defaultOpen:c,displayEmpty:l,labelId:w,MenuProps:C,onClose:_,onOpen:$,open:P,renderValue:E,SelectDisplayProps:j({id:v},T)},h,{classes:h?$n(G,h.classes):G},m?m.props.inputProps:{})},(b&&g||l)&&D==="outlined"?{notched:!0}:{},{ref:U,className:$e(q.props.className,s,H.root)},!m&&{variant:D},I))})});R9.muiName="Select";const M$=R9;function nje(e){return Ve("MuiSnackbarContent",e)}He("MuiSnackbarContent",["root","message","action"]);const oje=["action","className","message","role"],aje=e=>{const{classes:t}=e;return ze({root:["root"],action:["action"],message:["message"]},nje,t)},ije=J(Ys,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=wSe(e.palette.background.default,t);return j({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),sje=J("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),lje=J("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),uje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,c=we(n,oje),l=n,f=aje(l);return S.jsxs(ije,j({role:s,square:!0,elevation:6,className:$e(f.root,a),ownerState:l,ref:r},c,{children:[S.jsx(sje,{className:f.message,ownerState:l,children:i}),o?S.jsx(lje,{className:f.action,ownerState:l,children:o}):null]}))}),cje=uje;function dje(e){return Ve("MuiSnackbar",e)}He("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const fje=["onEnter","onExited"],pje=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],vje=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${xe(r.vertical)}${xe(r.horizontal)}`]};return ze(n,dje,t)},FL=J("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${xe(r.anchorOrigin.vertical)}${xe(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return j({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:j({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),mje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbar"}),o=ra(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:f,className:v,ClickAwayListenerProps:m,ContentProps:h,disableWindowBlurListener:x=!1,message:w,open:C,TransitionComponent:b=Ay,transitionDuration:g=a,TransitionProps:{onEnter:_,onExited:$}={}}=n,P=we(n.TransitionProps,fje),E=we(n,pje),T=j({},n,{anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:l,disableWindowBlurListener:x,TransitionComponent:b,transitionDuration:g}),R=vje(T),{getRootProps:I,onClickAway:A}=yPe(j({},T)),[F,L]=d.useState(!0),D=Go({elementType:FL,getSlotProps:I,externalForwardedProps:E,ownerState:T,additionalProps:{ref:r},className:[R.root,v]}),z=G=>{L(!0),$&&$(G)},H=(G,q)=>{L(!1),_&&_(G,q)};return!C&&F?null:S.jsx(DOe,j({onClickAway:A},m,{children:S.jsx(FL,j({},D,{children:S.jsx(b,j({appear:!0,in:C,timeout:g,direction:s==="top"?"down":"up",onEnter:H,onExited:z},P,{children:f||S.jsx(cje,j({message:w,action:i},h))}))}))}))}),hje=mje;function gje(e){return Ve("MuiTooltip",e)}const yje=He("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bs=yje,bje=["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 _je(e){return Math.round(e*1e5)/1e5}const xje=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${xe(a.split("-")[0])}`],arrow:["arrow"]};return ze(i,gje,t)},wje=J(J6,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>j({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${bs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${bs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${bs.arrow}`]:j({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${bs.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Sje=J("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${xe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:It(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${_je(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${bs.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${bs.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${bs.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${bs.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Cje=J("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:It(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let wh=!1;const LL=new Iv;let Ef={x:0,y:0};function Sh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Oje=d.forwardRef(function(t,r){var n,o,a,i,s,c,l,f,v,m,h,x,w,C,b,g,_,$,P;const E=Ge({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:R,components:I={},componentsProps:A={},describeChild:F=!1,disableFocusListener:L=!1,disableHoverListener:D=!1,disableInteractive:z=!1,disableTouchListener:H=!1,enterDelay:G=100,enterNextDelay:q=0,enterTouchDelay:U=700,followCursor:W=!1,id:te,leaveDelay:ne=0,leaveTouchDelay:ee=1500,onClose:Ce,onOpen:de,open:oe,placement:me="bottom",PopperComponent:Re,PopperProps:ye={},slotProps:fe={},slots:ge={},title:ce,TransitionComponent:pe=Ay,TransitionProps:ae}=E,Se=we(E,bje),Oe=d.isValidElement(R)?R:S.jsx("span",{children:R}),Ne=ra(),Xe=Xs(),[V,X]=d.useState(),[Y,ie]=d.useState(null),se=d.useRef(!1),ue=z||W,Ee=Rl(),Ie=Rl(),at=Rl(),ot=Rl(),[Le,De]=Yc({controlled:oe,default:!1,name:"Tooltip",state:"open"});let ft=Le;const Et=ru(te),Ot=d.useRef(),Ue=En(()=>{Ot.current!==void 0&&(document.body.style.WebkitUserSelect=Ot.current,Ot.current=void 0),ot.clear()});d.useEffect(()=>Ue,[Ue]);const et=mt=>{LL.clear(),wh=!0,De(!0),de&&!ft&&de(mt)},ke=En(mt=>{LL.start(800+ne,()=>{wh=!1}),De(!1),Ce&&ft&&Ce(mt),Ee.start(Ne.transitions.duration.shortest,()=>{se.current=!1})}),Be=mt=>{se.current&&mt.type!=="touchstart"||(V&&V.removeAttribute("title"),Ie.clear(),at.clear(),G||wh&&q?Ie.start(wh?q:G,()=>{et(mt)}):et(mt))},ct=mt=>{Ie.clear(),at.start(ne,()=>{ke(mt)})},{isFocusVisibleRef:yt,onBlur:Jt,onFocus:Rr,ref:hn}=D0(),[,oa]=d.useState(!1),Qn=mt=>{Jt(mt),yt.current===!1&&(oa(!1),ct(mt))},Vi=mt=>{V||X(mt.currentTarget),Rr(mt),yt.current===!0&&(oa(!0),Be(mt))},Qv=mt=>{se.current=!0;const yn=Oe.props;yn.onTouchStart&&yn.onTouchStart(mt)},S1=mt=>{Qv(mt),at.clear(),Ee.clear(),Ue(),Ot.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ot.start(U,()=>{document.body.style.WebkitUserSelect=Ot.current,Be(mt)})},Xv=mt=>{Oe.props.onTouchEnd&&Oe.props.onTouchEnd(mt),Ue(),at.start(ee,()=>{ke(mt)})};d.useEffect(()=>{if(!ft)return;function mt(yn){(yn.key==="Escape"||yn.key==="Esc")&&ke(yn)}return document.addEventListener("keydown",mt),()=>{document.removeEventListener("keydown",mt)}},[ke,ft]);const C1=sr(Oe.ref,hn,X,r);!ce&&ce!==0&&(ft=!1);const Vd=d.useRef(),O1=mt=>{const yn=Oe.props;yn.onMouseMove&&yn.onMouseMove(mt),Ef={x:mt.clientX,y:mt.clientY},Vd.current&&Vd.current.update()},ri={},Wd=typeof ce=="string";F?(ri.title=!ft&&Wd&&!D?ce:null,ri["aria-describedby"]=ft?Et:null):(ri["aria-label"]=Wd?ce:null,ri["aria-labelledby"]=ft&&!Wd?Et:null);const gn=j({},ri,Se,Oe.props,{className:$e(Se.className,Oe.props.className),onTouchStart:Qv,ref:C1},W?{onMouseMove:O1}:{}),rl={};H||(gn.onTouchStart=S1,gn.onTouchEnd=Xv),D||(gn.onMouseOver=Sh(Be,gn.onMouseOver),gn.onMouseLeave=Sh(ct,gn.onMouseLeave),ue||(rl.onMouseOver=Be,rl.onMouseLeave=ct)),L||(gn.onFocus=Sh(Vi,gn.onFocus),gn.onBlur=Sh(Qn,gn.onBlur),ue||(rl.onFocus=Vi,rl.onBlur=Qn));const E1=d.useMemo(()=>{var mt;let yn=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(mt=ye.popperOptions)!=null&&mt.modifiers&&(yn=yn.concat(ye.popperOptions.modifiers)),j({},ye.popperOptions,{modifiers:yn})},[Y,ye]),nl=j({},E,{isRtl:Xe,arrow:T,disableInteractive:ue,placement:me,PopperComponentProp:Re,touch:se.current}),qd=xje(nl),Yv=(n=(o=ge.popper)!=null?o:I.Popper)!=null?n:wje,Jv=(a=(i=(s=ge.transition)!=null?s:I.Transition)!=null?i:pe)!=null?a:Ay,Zv=(c=(l=ge.tooltip)!=null?l:I.Tooltip)!=null?c:Sje,em=(f=(v=ge.arrow)!=null?v:I.Arrow)!=null?f:Cje,tm=mc(Yv,j({},ye,(m=fe.popper)!=null?m:A.popper,{className:$e(qd.popper,ye==null?void 0:ye.className,(h=(x=fe.popper)!=null?x:A.popper)==null?void 0:h.className)}),nl),P1=mc(Jv,j({},ae,(w=fe.transition)!=null?w:A.transition),nl),$1=mc(Zv,j({},(C=fe.tooltip)!=null?C:A.tooltip,{className:$e(qd.tooltip,(b=(g=fe.tooltip)!=null?g:A.tooltip)==null?void 0:b.className)}),nl),R1=mc(em,j({},(_=fe.arrow)!=null?_:A.arrow,{className:$e(qd.arrow,($=(P=fe.arrow)!=null?P:A.arrow)==null?void 0:$.className)}),nl);return S.jsxs(d.Fragment,{children:[d.cloneElement(Oe,gn),S.jsx(Yv,j({as:Re??J6,placement:me,anchorEl:W?{getBoundingClientRect:()=>({top:Ef.y,left:Ef.x,right:Ef.x,bottom:Ef.y,width:0,height:0})}:V,popperRef:Vd,open:V?ft:!1,id:Et,transition:!0},rl,tm,{popperOptions:E1,children:({TransitionProps:mt})=>S.jsx(Jv,j({timeout:Ne.transitions.duration.shorter},mt,P1,{children:S.jsxs(Zv,j({},$1,{children:[ce,T?S.jsx(em,j({},R1,{ref:ie})):null]}))}))}))]})}),Vr=Oje;function Eje(e){return Ve("MuiSwitch",e)}const wn=He("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Pje=["className","color","edge","size","sx"],$je=A6(),Rje=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=ze(s,Eje,t);return j({},t,c)},Tje=J("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${wn.thumb}`]:{width:16,height:16},[`& .${wn.switchBase}`]:{padding:4,[`&.${wn.checked}`]:{transform:"translateX(16px)"}}}}]}),kje=J(o9,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${wn.input}`]:t.input},r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${wn.checked}`]:{transform:"translateX(20px)"},[`&.${wn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${wn.checked} + .${wn.track}`]:{opacity:.5},[`&.${wn.disabled} + .${wn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${wn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${wn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?z0(e.palette[t].main,.62):B0(e.palette[t].main,.55)}`}},[`&.${wn.checked} + .${wn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Ije=J("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),jje=J("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Aje=d.forwardRef(function(t,r){const n=$je({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:c}=n,l=we(n,Pje),f=j({},n,{color:a,edge:i,size:s}),v=Rje(f),m=S.jsx(jje,{className:v.thumb,ownerState:f});return S.jsxs(Tje,{className:$e(v.root,o),sx:c,ownerState:f,children:[S.jsx(kje,j({type:"checkbox",icon:m,checkedIcon:m,ref:r,ownerState:f},l,{classes:j({},v,{root:v.switchBase})})),S.jsx(Ije,{className:v.track,ownerState:f})]})}),F$=Aje;function Mje(e){return Ve("MuiTab",e)}const Fje=He("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ml=Fje,Lje=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Nje=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:c}=e,l={root:["root",a&&i&&"labelIcon",`textColor${xe(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return ze(l,Mje,t)},Dje=J(zi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>j({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ml.iconWrapper}`]:j({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ml.selected}`]:{opacity:1},[`&.${ml.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ml.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ml.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ml.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ml.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)})),Bje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:c,iconPosition:l="top",indicator:f,label:v,onChange:m,onClick:h,onFocus:x,selected:w,selectionFollowsFocus:C,textColor:b="inherit",value:g,wrapped:_=!1}=n,$=we(n,Lje),P=j({},n,{disabled:a,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:l,label:!!v,fullWidth:s,textColor:b,wrapped:_}),E=Nje(P),T=c&&v&&d.isValidElement(c)?d.cloneElement(c,{className:$e(E.iconWrapper,c.props.className)}):c,R=A=>{!w&&m&&m(A,g),h&&h(A)},I=A=>{C&&!w&&m&&m(A,g),x&&x(A)};return S.jsxs(Dje,j({focusRipple:!i,className:$e(E.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:R,onFocus:I,ownerState:P,tabIndex:w?0:-1},$,{children:[l==="top"||l==="start"?S.jsxs(d.Fragment,{children:[T,v]}):S.jsxs(d.Fragment,{children:[v,T]}),f]}))}),T9=Bje,zje=d.createContext(),k9=zje;function Uje(e){return Ve("MuiTable",e)}He("MuiTable",["root","stickyHeader"]);const Vje=["className","component","padding","size","stickyHeader"],Wje=e=>{const{classes:t,stickyHeader:r}=e;return ze({root:["root",r&&"stickyHeader"]},Uje,t)},qje=J("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),NL="table",Hje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTable"}),{className:o,component:a=NL,padding:i="normal",size:s="medium",stickyHeader:c=!1}=n,l=we(n,Vje),f=j({},n,{component:a,padding:i,size:s,stickyHeader:c}),v=Wje(f),m=d.useMemo(()=>({padding:i,size:s,stickyHeader:c}),[i,s,c]);return S.jsx(k9.Provider,{value:m,children:S.jsx(qje,j({as:a,role:a===NL?null:"table",ref:r,className:$e(v.root,o),ownerState:f},l))})}),I9=Hje,Gje=d.createContext(),e1=Gje;function Kje(e){return Ve("MuiTableBody",e)}He("MuiTableBody",["root"]);const Qje=["className","component"],Xje=e=>{const{classes:t}=e;return ze({root:["root"]},Kje,t)},Yje=J("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Jje={variant:"body"},DL="tbody",Zje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableBody"}),{className:o,component:a=DL}=n,i=we(n,Qje),s=j({},n,{component:a}),c=Xje(s);return S.jsx(e1.Provider,{value:Jje,children:S.jsx(Yje,j({className:$e(c.root,o),as:a,ref:r,role:a===DL?null:"rowgroup",ownerState:s},i))})}),j9=Zje;function eAe(e){return Ve("MuiTableCell",e)}const tAe=He("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),rAe=tAe,nAe=["align","className","component","padding","scope","size","sortDirection","variant"],oAe=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,o!=="normal"&&`padding${xe(o)}`,`size${xe(a)}`]};return ze(s,eAe,t)},aAe=J("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?z0(It(e.palette.divider,1),.88):B0(It(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${rAe.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})),iAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:c,size:l,sortDirection:f,variant:v}=n,m=we(n,nAe),h=d.useContext(k9),x=d.useContext(e1),w=x&&x.variant==="head";let C;i?C=i:C=w?"th":"td";let b=c;C==="td"?b=void 0:!b&&w&&(b="col");const g=v||x&&x.variant,_=j({},n,{align:o,component:C,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:f,stickyHeader:g==="head"&&h&&h.stickyHeader,variant:g}),$=oAe(_);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),S.jsx(aAe,j({as:C,ref:r,className:$e($.root,a),"aria-sort":P,scope:b,ownerState:_},m))}),cn=iAe;function sAe(e){return Ve("MuiTableHead",e)}He("MuiTableHead",["root"]);const lAe=["className","component"],uAe=e=>{const{classes:t}=e;return ze({root:["root"]},sAe,t)},cAe=J("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),dAe={variant:"head"},BL="thead",fAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableHead"}),{className:o,component:a=BL}=n,i=we(n,lAe),s=j({},n,{component:a}),c=uAe(s);return S.jsx(e1.Provider,{value:dAe,children:S.jsx(cAe,j({as:a,className:$e(c.root,o),ref:r,role:a===BL?null:"rowgroup",ownerState:s},i))})}),A9=fAe;function pAe(e){return Ve("MuiToolbar",e)}He("MuiToolbar",["root","gutters","regular","dense"]);const vAe=["className","component","disableGutters","variant"],mAe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return ze({root:["root",!r&&"gutters",n]},pAe,t)},hAe=J("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>j({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),gAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,c=we(n,vAe),l=j({},n,{component:a,disableGutters:i,variant:s}),f=mAe(l);return S.jsx(hAe,j({as:a,className:$e(f.root,o),ref:r,ownerState:l},c))}),Ld=gAe,M9=yo(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),F9=yo(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),yAe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],bAe=d.forwardRef(function(t,r){var n,o,a,i,s,c,l,f;const{backIconButtonProps:v,count:m,disabled:h=!1,getItemAriaLabel:x,nextIconButtonProps:w,onPageChange:C,page:b,rowsPerPage:g,showFirstButton:_,showLastButton:$,slots:P={},slotProps:E={}}=t,T=we(t,yAe),R=Xs(),I=fe=>{C(fe,0)},A=fe=>{C(fe,b-1)},F=fe=>{C(fe,b+1)},L=fe=>{C(fe,Math.max(0,Math.ceil(m/g)-1))},D=(n=P.firstButton)!=null?n:or,z=(o=P.lastButton)!=null?o:or,H=(a=P.nextButton)!=null?a:or,G=(i=P.previousButton)!=null?i:or,q=(s=P.firstButtonIcon)!=null?s:SC,U=(c=P.lastButtonIcon)!=null?c:CC,W=(l=P.nextButtonIcon)!=null?l:F9,te=(f=P.previousButtonIcon)!=null?f:M9,ne=R?z:D,ee=R?H:G,Ce=R?G:H,de=R?D:z,oe=R?E.lastButton:E.firstButton,me=R?E.nextButton:E.previousButton,Re=R?E.previousButton:E.nextButton,ye=R?E.firstButton:E.lastButton;return S.jsxs("div",j({ref:r},T,{children:[_&&S.jsx(ne,j({onClick:I,disabled:h||b===0,"aria-label":x("first",b),title:x("first",b)},oe,{children:R?S.jsx(U,j({},E.lastButtonIcon)):S.jsx(q,j({},E.firstButtonIcon))})),S.jsx(ee,j({onClick:A,disabled:h||b===0,color:"inherit","aria-label":x("previous",b),title:x("previous",b)},me??v,{children:R?S.jsx(W,j({},E.nextButtonIcon)):S.jsx(te,j({},E.previousButtonIcon))})),S.jsx(Ce,j({onClick:F,disabled:h||(m!==-1?b>=Math.ceil(m/g)-1:!1),color:"inherit","aria-label":x("next",b),title:x("next",b)},Re??w,{children:R?S.jsx(te,j({},E.previousButtonIcon)):S.jsx(W,j({},E.nextButtonIcon))})),$&&S.jsx(de,j({onClick:L,disabled:h||b>=Math.ceil(m/g)-1,"aria-label":x("last",b),title:x("last",b)},ye,{children:R?S.jsx(q,j({},E.firstButtonIcon)):S.jsx(U,j({},E.lastButtonIcon))}))]}))}),_Ae=bAe;function xAe(e){return Ve("MuiTablePagination",e)}const wAe=He("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),sp=wAe;var zL;const SAe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],CAe=J(cn,{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}})),OAe=J(Ld,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>j({[`& .${sp.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},[`& .${sp.actions}`]:{flexShrink:0,marginLeft:20}})),EAe=J("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),PAe=J("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>j({},e.typography.body2,{flexShrink:0})),$Ae=J(M$,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>j({[`& .${sp.selectIcon}`]:t.selectIcon,[`& .${sp.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${sp.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),RAe=J(so,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),TAe=J("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>j({},e.typography.body2,{flexShrink:0}));function kAe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function IAe(e){return`Go to ${e} page`}const jAe=e=>{const{classes:t}=e;return ze({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},xAe,t)},AAe=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=_Ae,backIconButtonProps:i,className:s,colSpan:c,component:l=cn,count:f,disabled:v=!1,getItemAriaLabel:m=IAe,labelDisplayedRows:h=kAe,labelRowsPerPage:x="Rows per page:",nextIconButtonProps:w,onPageChange:C,onRowsPerPageChange:b,page:g,rowsPerPage:_,rowsPerPageOptions:$=[10,25,50,100],SelectProps:P={},showFirstButton:E=!1,showLastButton:T=!1,slotProps:R={},slots:I={}}=o,A=we(o,SAe),F=o,L=jAe(F),D=(n=R==null?void 0:R.select)!=null?n:P,z=D.native?"option":RAe;let H;(l===cn||l==="td")&&(H=c||1e3);const G=ru(D.id),q=ru(D.labelId),U=()=>f===-1?(g+1)*_:_===-1?f:Math.min(f,(g+1)*_);return S.jsx(CAe,j({colSpan:H,ref:r,as:l,ownerState:F,className:$e(L.root,s)},A,{children:S.jsxs(OAe,{className:L.toolbar,children:[S.jsx(EAe,{className:L.spacer}),$.length>1&&S.jsx(PAe,{className:L.selectLabel,id:q,children:x}),$.length>1&&S.jsx($Ae,j({variant:"standard"},!D.variant&&{input:zL||(zL=S.jsx(X0,{}))},{value:_,onChange:b,id:G,labelId:q},D,{classes:j({},D.classes,{root:$e(L.input,L.selectRoot,(D.classes||{}).root),select:$e(L.select,(D.classes||{}).select),icon:$e(L.selectIcon,(D.classes||{}).icon)}),disabled:v,children:$.map(W=>d.createElement(z,j({},!Wp(z)&&{ownerState:F},{className:L.menuItem,key:W.label?W.label:W,value:W.value?W.value:W}),W.label?W.label:W))})),S.jsx(TAe,{className:L.displayedRows,children:h({from:f===0?0:g*_+1,to:U(),count:f===-1?-1:f,page:g})}),S.jsx(a,{className:L.actions,backIconButtonProps:i,count:f,nextIconButtonProps:w,onPageChange:C,page:g,rowsPerPage:_,showFirstButton:E,showLastButton:T,slotProps:R.actions,slots:I.actions,getItemAriaLabel:m,disabled:v})]})}))}),UL=AAe;function MAe(e){return Ve("MuiTableRow",e)}const FAe=He("MuiTableRow",["root","selected","hover","head","footer"]),VL=FAe,LAe=["className","component","hover","selected"],NAe=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return ze({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},MAe,t)},DAe=J("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${VL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${VL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),WL="tr",BAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableRow"}),{className:o,component:a=WL,hover:i=!1,selected:s=!1}=n,c=we(n,LAe),l=d.useContext(e1),f=j({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),v=NAe(f);return S.jsx(DAe,j({as:a,ref:r,className:$e(v.root,o),role:a===WL?null:"row",ownerState:f},c))}),Qp=BAe,zAe=yo(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function UAe(e){return Ve("MuiTableSortLabel",e)}const VAe=He("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),vw=VAe,WAe=["active","children","className","direction","hideSortIcon","IconComponent"],qAe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${xe(r)}`]};return ze(o,UAe,t)},HAe=J(zi,{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,[`& .${vw.icon}`]:{opacity:.5}},[`&.${vw.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${vw.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),GAe=J("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${xe(r.direction)}`]]}})(({theme:e,ownerState:t})=>j({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),KAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:c=!1,IconComponent:l=zAe}=n,f=we(n,WAe),v=j({},n,{active:o,direction:s,hideSortIcon:c,IconComponent:l}),m=qAe(v);return S.jsxs(HAe,j({className:$e(m.root,i),component:"span",disableRipple:!0,ownerState:v,ref:r},f,{children:[a,c&&!o?null:S.jsx(GAe,{as:l,className:$e(m.icon),ownerState:v})]}))}),QAe=KAe;function XAe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function YAe(e,t,r,n={},o=()=>{}){const{ease:a=XAe,duration:i=300}=n;let s=null;const c=t[e];let l=!1;const f=()=>{l=!0},v=m=>{if(l){o(new Error("Animation cancelled"));return}s===null&&(s=m);const h=Math.min(1,(m-s)/i);if(t[e]=a(h)*(r-c)+c,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(v)};return c===r?(o(new Error("Element already at target position")),f):(requestAnimationFrame(v),f)}const JAe=["onChange"],ZAe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function eMe(e){const{onChange:t}=e,r=we(e,JAe),n=d.useRef(),o=d.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return po(()=>{const i=Id(()=>{const c=n.current;a(),c!==n.current&&t(n.current)}),s=qo(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{a(),t(n.current)},[t]),S.jsx("div",j({style:ZAe,ref:o},r))}function tMe(e){return Ve("MuiTabScrollButton",e)}const rMe=He("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),nMe=rMe,oMe=["className","slots","slotProps","direction","orientation","disabled"],aMe=e=>{const{classes:t,orientation:r,disabled:n}=e;return ze({root:["root",r,n&&"disabled"]},tMe,t)},iMe=J(zi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>j({width:40,flexShrink:0,opacity:.8,[`&.${nMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),sMe=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:c={},direction:l}=a,f=we(a,oMe),v=Xs(),m=j({isRtl:v},a),h=aMe(m),x=(n=s.StartScrollButtonIcon)!=null?n:M9,w=(o=s.EndScrollButtonIcon)!=null?o:F9,C=Go({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),b=Go({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return S.jsx(iMe,j({component:"div",className:$e(h.root,i),ref:r,role:null,ownerState:m,tabIndex:null},f,{children:l==="left"?S.jsx(x,j({},C)):S.jsx(w,j({},b))}))}),lMe=sMe;function uMe(e){return Ve("MuiTabs",e)}const cMe=He("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),mw=cMe,dMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,HL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ch=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},fMe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:c}=e;return ze({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},uMe,c)},pMe=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${mw.scrollButtons}`]:t.scrollButtons},{[`& .${mw.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>j({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${mw.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),vMe=J("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>j({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),mMe=J("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>j({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),hMe=J("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>j({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),gMe=J(eMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),GL={},yMe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTabs"}),o=ra(),a=Xs(),{"aria-label":i,"aria-labelledby":s,action:c,centered:l=!1,children:f,className:v,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:x="primary",onChange:w,orientation:C="horizontal",ScrollButtonComponent:b=lMe,scrollButtons:g="auto",selectionFollowsFocus:_,slots:$={},slotProps:P={},TabIndicatorProps:E={},TabScrollButtonProps:T={},textColor:R="primary",value:I,variant:A="standard",visibleScrollbar:F=!1}=n,L=we(n,dMe),D=A==="scrollable",z=C==="vertical",H=z?"scrollTop":"scrollLeft",G=z?"top":"left",q=z?"bottom":"right",U=z?"clientHeight":"clientWidth",W=z?"height":"width",te=j({},n,{component:m,allowScrollButtonsMobile:h,indicatorColor:x,orientation:C,vertical:z,scrollButtons:g,textColor:R,variant:A,visibleScrollbar:F,fixed:!D,hideScrollbar:D&&!F,scrollableX:D&&!z,scrollableY:D&&z,centered:l&&!D,scrollButtonsHideMobile:!h}),ne=fMe(te),ee=Go({elementType:$.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:te}),Ce=Go({elementType:$.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:te}),[de,oe]=d.useState(!1),[me,Re]=d.useState(GL),[ye,fe]=d.useState(!1),[ge,ce]=d.useState(!1),[pe,ae]=d.useState(!1),[Se,Oe]=d.useState({overflow:"hidden",scrollbarWidth:0}),Ne=new Map,Xe=d.useRef(null),V=d.useRef(null),X=()=>{const ke=Xe.current;let Be;if(ke){const yt=ke.getBoundingClientRect();Be={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollLeftNormalized:Xwe(ke,a?"rtl":"ltr"),scrollWidth:ke.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let ct;if(ke&&I!==!1){const yt=V.current.children;if(yt.length>0){const Jt=yt[Ne.get(I)];ct=Jt?Jt.getBoundingClientRect():null}}return{tabsMeta:Be,tabMeta:ct}},Y=En(()=>{const{tabsMeta:ke,tabMeta:Be}=X();let ct=0,yt;if(z)yt="top",Be&&ke&&(ct=Be.top-ke.top+ke.scrollTop);else if(yt=a?"right":"left",Be&&ke){const Rr=a?ke.scrollLeftNormalized+ke.clientWidth-ke.scrollWidth:ke.scrollLeft;ct=(a?-1:1)*(Be[yt]-ke[yt]+Rr)}const Jt={[yt]:ct,[W]:Be?Be[W]:0};if(isNaN(me[yt])||isNaN(me[W]))Re(Jt);else{const Rr=Math.abs(me[yt]-Jt[yt]),hn=Math.abs(me[W]-Jt[W]);(Rr>=1||hn>=1)&&Re(Jt)}}),ie=(ke,{animation:Be=!0}={})=>{Be?YAe(H,Xe.current,ke,{duration:o.transitions.duration.standard}):Xe.current[H]=ke},se=ke=>{let Be=Xe.current[H];z?Be+=ke:(Be+=ke*(a?-1:1),Be*=a&&_6()==="reverse"?-1:1),ie(Be)},ue=()=>{const ke=Xe.current[U];let Be=0;const ct=Array.from(V.current.children);for(let yt=0;ytke){yt===0&&(Be=ke);break}Be+=Jt[U]}return Be},Ee=()=>{se(-1*ue())},Ie=()=>{se(ue())},at=d.useCallback(ke=>{Oe({overflow:null,scrollbarWidth:ke})},[]),ot=()=>{const ke={};ke.scrollbarSizeListener=D?S.jsx(gMe,{onChange:at,className:$e(ne.scrollableX,ne.hideScrollbar)}):null;const ct=D&&(g==="auto"&&(ye||ge)||g===!0);return ke.scrollButtonStart=ct?S.jsx(b,j({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:C,direction:a?"right":"left",onClick:Ee,disabled:!ye},T,{className:$e(ne.scrollButtons,T.className)})):null,ke.scrollButtonEnd=ct?S.jsx(b,j({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ce},orientation:C,direction:a?"left":"right",onClick:Ie,disabled:!ge},T,{className:$e(ne.scrollButtons,T.className)})):null,ke},Le=En(ke=>{const{tabsMeta:Be,tabMeta:ct}=X();if(!(!ct||!Be)){if(ct[G]Be[q]){const yt=Be[H]+(ct[q]-Be[q]);ie(yt,{animation:ke})}}}),De=En(()=>{D&&g!==!1&&ae(!pe)});d.useEffect(()=>{const ke=Id(()=>{Xe.current&&Y()});let Be;const ct=Rr=>{Rr.forEach(hn=>{hn.removedNodes.forEach(oa=>{var Qn;(Qn=Be)==null||Qn.unobserve(oa)}),hn.addedNodes.forEach(oa=>{var Qn;(Qn=Be)==null||Qn.observe(oa)})}),ke(),De()},yt=qo(Xe.current);yt.addEventListener("resize",ke);let Jt;return typeof ResizeObserver<"u"&&(Be=new ResizeObserver(ke),Array.from(V.current.children).forEach(Rr=>{Be.observe(Rr)})),typeof MutationObserver<"u"&&(Jt=new MutationObserver(ct),Jt.observe(V.current,{childList:!0})),()=>{var Rr,hn;ke.clear(),yt.removeEventListener("resize",ke),(Rr=Jt)==null||Rr.disconnect(),(hn=Be)==null||hn.disconnect()}},[Y,De]),d.useEffect(()=>{const ke=Array.from(V.current.children),Be=ke.length;if(typeof IntersectionObserver<"u"&&Be>0&&D&&g!==!1){const ct=ke[0],yt=ke[Be-1],Jt={root:Xe.current,threshold:.99},Rr=Vi=>{fe(!Vi[0].isIntersecting)},hn=new IntersectionObserver(Rr,Jt);hn.observe(ct);const oa=Vi=>{ce(!Vi[0].isIntersecting)},Qn=new IntersectionObserver(oa,Jt);return Qn.observe(yt),()=>{hn.disconnect(),Qn.disconnect()}}},[D,g,pe,f==null?void 0:f.length]),d.useEffect(()=>{oe(!0)},[]),d.useEffect(()=>{Y()}),d.useEffect(()=>{Le(GL!==me)},[Le,me]),d.useImperativeHandle(c,()=>({updateIndicator:Y,updateScrollButtons:De}),[Y,De]);const ft=S.jsx(hMe,j({},E,{className:$e(ne.indicator,E.className),ownerState:te,style:j({},me,E.style)}));let Et=0;const Ot=d.Children.map(f,ke=>{if(!d.isValidElement(ke))return null;const Be=ke.props.value===void 0?Et:ke.props.value;Ne.set(Be,Et);const ct=Be===I;return Et+=1,d.cloneElement(ke,j({fullWidth:A==="fullWidth",indicator:ct&&!de&&ft,selected:ct,selectionFollowsFocus:_,onChange:w,textColor:R,value:Be},Et===1&&I===!1&&!ke.props.tabIndex?{tabIndex:0}:{}))}),Ue=ke=>{const Be=V.current,ct=Pr(Be).activeElement;if(ct.getAttribute("role")!=="tab")return;let Jt=C==="horizontal"?"ArrowLeft":"ArrowUp",Rr=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&a&&(Jt="ArrowRight",Rr="ArrowLeft"),ke.key){case Jt:ke.preventDefault(),Ch(Be,ct,HL);break;case Rr:ke.preventDefault(),Ch(Be,ct,qL);break;case"Home":ke.preventDefault(),Ch(Be,null,qL);break;case"End":ke.preventDefault(),Ch(Be,null,HL);break}},et=ot();return S.jsxs(pMe,j({className:$e(ne.root,v),ownerState:te,ref:r,as:m},L,{children:[et.scrollButtonStart,et.scrollbarSizeListener,S.jsxs(vMe,{className:ne.scroller,ownerState:te,style:{overflow:Se.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Se.scrollbarWidth},ref:Xe,children:[S.jsx(mMe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:ne.flexContainer,ownerState:te,onKeyDown:Ue,ref:V,role:"tablist",children:Ot}),de&&ft]}),et.scrollButtonEnd]}))}),L9=yMe;function bMe(e){return Ve("MuiTextField",e)}He("MuiTextField",["root"]);const _Me=["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"],xMe={standard:T$,filled:d9,outlined:P9},wMe=e=>{const{classes:t}=e;return ze({root:["root"]},bMe,t)},SMe=J(f9,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CMe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:c="primary",defaultValue:l,disabled:f=!1,error:v=!1,FormHelperTextProps:m,fullWidth:h=!1,helperText:x,id:w,InputLabelProps:C,inputProps:b,InputProps:g,inputRef:_,label:$,maxRows:P,minRows:E,multiline:T=!1,name:R,onBlur:I,onChange:A,onFocus:F,placeholder:L,required:D=!1,rows:z,select:H=!1,SelectProps:G,type:q,value:U,variant:W="outlined"}=n,te=we(n,_Me),ne=j({},n,{autoFocus:a,color:c,disabled:f,error:v,fullWidth:h,multiline:T,required:D,select:H,variant:W}),ee=wMe(ne),Ce={};W==="outlined"&&(C&&typeof C.shrink<"u"&&(Ce.notched=C.shrink),Ce.label=$),H&&((!G||!G.native)&&(Ce.id=void 0),Ce["aria-describedby"]=void 0);const de=ru(w),oe=x&&de?`${de}-helper-text`:void 0,me=$&&de?`${de}-label`:void 0,Re=xMe[W],ye=S.jsx(Re,j({"aria-describedby":oe,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:h,multiline:T,name:R,rows:z,maxRows:P,minRows:E,type:q,value:U,id:de,inputRef:_,onBlur:I,onChange:A,onFocus:F,placeholder:L,inputProps:b},Ce,g));return S.jsxs(SMe,j({className:$e(ee.root,s),disabled:f,error:v,fullWidth:h,ref:r,required:D,color:c,variant:W,ownerState:ne},te,{children:[$!=null&&$!==""&&S.jsx(m9,j({htmlFor:de,id:me},C,{children:$})),H?S.jsx(M$,j({"aria-describedby":oe,id:de,labelId:me,value:U,input:ye},G,{children:i})):ye,x&&S.jsx(R$,j({id:oe},m,{children:x}))]}))}),Bv=CMe,OMe=["getTrigger","target"];function EMe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const PMe=typeof window<"u"?window:null;function N9(e={}){const{getTrigger:t=EMe,target:r=PMe}=e,n=we(e,OMe),o=d.useRef(),[a,i]=d.useState(()=>t(o,n));return d.useEffect(()=>{const s=()=>{i(t(o,j({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var L$={},hw={};const $Me=Qa(jCe);var KL;function Qe(){return KL||(KL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=$Me}(hw)),hw}var RMe=We;Object.defineProperty(L$,"__esModule",{value:!0});var zv=L$.default=void 0,TMe=RMe(Qe()),kMe=S;zv=L$.default=(0,TMe.default)((0,kMe.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var lp=function(){return lp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(BNe,null):null,t&&d.createElement(IFe,null),d.createElement(G9,null))},MFe=d.createElement(AFe,null);t8.propTypes={alwaysOn:O.bool,children:O.node,className:O.string,color:O.oneOf(["default","inherit","primary","secondary","transparent"]),container:a0,open:O.bool,toolbar:O.element,userMenu:O.oneOfType([O.element,O.bool])};var FFe=d.createElement(q$,null),wl="RaAppBar",Il={appBar:"".concat(wl,"-appBar"),toolbar:"".concat(wl,"-toolbar"),menuButton:"".concat(wl,"-menuButton"),menuButtonIconClosed:"".concat(wl,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(wl,"-menuButtonIconOpen"),title:"".concat(wl,"-title")},LFe=J(AOe,{name:wl,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Il.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Il.menuButton)]={marginRight:"0.2em"},t["& .".concat(Il.title)]={},t}),Y$={},NFe=We;Object.defineProperty(Y$,"__esModule",{value:!0});var r8=Y$.default=void 0,DFe=NFe(Qe()),BFe=S;r8=Y$.default=(0,DFe.default)((0,BFe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var J$={},zFe=We;Object.defineProperty(J$,"__esModule",{value:!0});var n8=J$.default=void 0,UFe=zFe(Qe()),VFe=S;n8=J$.default=(0,UFe.default)((0,VFe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var cp=function(){return cp=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb.closest("ul").getBoundingClientRect().bottom?_=g.lastChild:_=g.firstChild),_&&g===_.closest("ul")?o(b.dataset.index,c.current):(C.preventDefault(),C.stopPropagation()),b.classList.remove("drag-active"),document.removeEventListener("dragover",v)},w=function(C){C.preventDefault(),C.dataTransfer.dropEffect="move"};return d.createElement(mLe,{key:a,draggable:o?"true":void 0,onDrag:o?h:void 0,onDragStart:o?m:void 0,onDragEnd:o?x:void 0,onDragOver:o?w:void 0,"data-index":i},d.createElement("label",{htmlFor:"switch_".concat(i)},d.createElement(F$,{checked:t,onChange:n,name:i,id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),d.createElement(it,{variant:"body2",component:"span"},d.createElement(Wo,{label:r,source:a,resource:s}))),o&&d.createElement(l8,{className:"dragIcon",color:"disabled",fontSize:"small"}))},mLe=J("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}}),ns=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n$?P=ns(ns(ns(ns([],s.slice(0,$),!0),[s[_]],!1),s.slice($,_),!0),s.slice(_+1),!0):P=ns(ns(ns(ns([],s.slice(0,_),!0),s.slice(_+1,$+1),!0),[s[_]],!1),s.slice($+1),!0),c(P),m(function(E){return P.filter(function(T){return E.includes(T.index)}).map(function(T){return T.index})})}},w=function(){m([])},C=function(){m(s.map(function(b){return b.index}))};return d.createElement(On,{pt:.5},d.createElement(On,{component:"ul",sx:{paddingInlineStart:0,m:0}},s.map(function(b){return d.createElement(u8,{key:b.index,source:b.source,label:b.label,index:b.index,selected:v.includes(b.index),onToggle:h,onMove:x})})),d.createElement(On,{onDrop:function(b){return b.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},d.createElement($r,{size:"small",onClick:w},a("ra.inspector.hideAll",{_:"Hide All"})),d.createElement($r,{size:"small",onClick:C},a("ra.inspector.showAll",{_:"Show All"}))))},s2={},gLe=We;Object.defineProperty(s2,"__esModule",{value:!0});var c8=s2.default=void 0,yLe=gLe(Qe()),bLe=S;c8=s2.default=(0,yLe.default)((0,bLe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var l2={},_Le=We;Object.defineProperty(l2,"__esModule",{value:!0});var d8=l2.default=void 0,xLe=_Le(Qe()),wLe=S;d8=l2.default=(0,xLe.default)((0,wLe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var SLe=function(){var e=je();return yz("ra.configurable.inspector.title",{_:"Inspector"}),d.createElement(it,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},f8=function(){var e=WP(),t=e.isEnabled,r=e.disable,n=e.title,o=e.titleOptions,a=e.editor,i=e.preferenceKey,s=d.useRef(!1),c=R0e(i),l=ra(),f=je(),v=d.useState(0),m=v[0],h=v[1],x=pn("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8,y:8}),w=x[0],C=x[1],b=d.useState(),g=b[0],_=b[1],$=function(T){var R=document==null?void 0:document.elementFromPoint(T.clientX,T.clientY);R.id==="inspector-dialog-title"&&(s.current=!0,T.dataTransfer.effectAllowed="move",T.dataTransfer.setData("inspector",""),setTimeout(function(){T.target.classList.add("hide")},0),_({x:T.clientX-w.x,y:T.clientY-w.y}))},P=function(T){s.current&&(C({x:T.clientX-g.x,y:T.clientY-g.y}),T.target.classList.remove("hide"),s.current=!1)};d.useEffect(function(){if(t){var T=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",T),function(){document==null||document.removeEventListener("dragover",T)}}},[t]),d.useEffect(function(){if(t){var T=function(){window==null||window.requestAnimationFrame(function(){C(function(R){return{x:Math.min(R.x,(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8),y:Math.min(R.y,(window==null?void 0:window.innerHeight)-50)}})})};return T(),window==null||window.addEventListener("resize",T),function(){window==null||window.removeEventListener("resize",T)}}},[t,C,l.breakpoints.values.sm]);var E=function(){c(),h(function(T){return T+1})};return t?d.createElement(CLe,{className:dp.modal,elevation:3,draggable:!0,onDragStart:$,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:dp.title},d.createElement(it,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&f(n,o)),d.createElement("span",{id:"inspector-toolbar"}),i&&d.createElement(or,{"aria-label":f("ra.action.remove"),onClick:E,size:"small"},d.createElement(d8,{fontSize:"inherit"})),d.createElement(or,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(c8,{fontSize:"inherit"}))),d.createElement("div",{className:dp.content,key:m},d.createElement(gz,{value:i},a||d.createElement(SLe,null)))):null},dg="RaInspector",dp={modal:"".concat(dg,"-modal"),title:"".concat(dg,"-title"),content:"".concat(dg,"-content")},CLe=J(Ys,{name:dg,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(dp.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(dp.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});f8.displayName="Inspector";var Cl=function(){return Cl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),Rb.createPortal(d.createElement(RLe,LC({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},o1=O.oneOfType([O.string,O.element]);Zs.propTypes={defaultTitle:O.string,className:O.string,record:O.any,title:o1};var kLe=function(e){var t=Lr().pathname,r=d.useRef(t);d.useEffect(function(){t!==r.current&&e()},[t,e])},NC=function(){return NC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0,A=iDe(C===!1||C===void 0?void 0:!C,l||!I||T||R);VP(v==="submit"&&(c&&(c.onSuccess||c.onError)||m),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var F=d.useCallback(function(z){return eN(void 0,void 0,void 0,function(){var H;return tN(this,function(G){switch(G.label){case 0:return $!=null&&$.save?[4,$.save(z,pp(pp({},c),{transform:m}))]:[3,2];case 1:H=G.sent(),G.label=2;case 2:return H!=null&&wz(H,_.setError),[2]}})})},[_.setError,$,c,m]),L=d.useCallback(function(z){return eN(void 0,void 0,void 0,function(){return tN(this,function(H){switch(H.label){case 0:return s&&s(z),z.defaultPrevented?[2]:v!=="button"?[3,2]:(z.stopPropagation(),[4,_.handleSubmit(F)(z)]);case 1:H.sent(),H.label=2;case 2:return[2]}})})},[s,v,_,F]),D=i&&g(i,{_:i});return d.createElement(aDe,pp({variant:x,type:v,color:r,"aria-label":D,disabled:A,onClick:L},b),R?d.createElement(Md,{sx:rDe,size:14,thickness:3,color:"inherit"}):o,D)},rDe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},nDe=d.createElement(I8,null);Hv.propTypes={className:O.string,invalid:O.bool,label:O.string,variant:O.oneOf(["text","outlined","contained"]),icon:O.element,alwaysEnable:O.bool};var oDe="RaSaveButton",aDe=J($r,{name:oDe,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}),iDe=function(e,t){return typeof e>"u"?t:e},sDe=function(){return ve.createElement(uDe,{onClick:cDe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},lDe="RaSkipNavigationButton",uDe=J(Nt,{name:lDe,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})}}}),cDe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},tO=function(){return tO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=o-1,color:"primary"},d.createElement(U8,{fontSize:"small"})))},P2={},BDe=We;Object.defineProperty(P2,"__esModule",{value:!0});var V8=P2.default=void 0,zDe=BDe(Qe()),UDe=S;V8=P2.default=(0,zDe.default)((0,UDe.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff");var uO=function(){return uO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var ee=D[0];ee.id;var Ce=WDe(ee,["id"]);te.current=Ce;for(var de in te.current)te.current[de]=null}var oe=d.useCallback(function(ce){ce===void 0&&(ce=void 0);var pe=ce;ce==null&&(pe=te.current,d.Children.count(s)===1&&d.isValidElement(d.Children.only(s))&&!d.Children.only(s).props.source&&d.Children.map(s,function(ae){return d.isValidElement(ae)&&ae.type!==eC}).some(Boolean)?pe="":(pe=pe||{},d.Children.forEach(s,function(ae){var Se;d.isValidElement(ae)&&ae.type!==eC&&ae.props.source&&(pe[ae.props.source]=(Se=ae.props.defaultValue)!==null&&Se!==void 0?Se:null)}))),L(pe),q("".concat(f,".").concat(D.length),{defaultValue:pe})},[L,s,q,f,D.length]),me=function(ce){return function(pe){oe(),ce&&ce(pe)}},Re=d.useCallback(function(ce,pe){z(ce,pe)},[z]),ye=d.useCallback(function(){G([]),A(!1)},[G]),fe=vt(W,f),ge=d.useMemo(function(){return{total:D.length,add:oe,remove:ne,reOrder:Re,source:f}},[oe,D.length,Re,ne,f]);return D?d.createElement(F8.Provider,{value:ge},d.createElement(qDe,{className:Je(c,E&&"fullwidth",(m||v)&&"disabled"),sx:T},d.createElement("ul",{className:Sr.list},D.map(function(ce,pe){return d.createElement(CDe,{key:ce.id,disabled:m||v,disableRemove:b,disableReordering:g,fields:D,getItemLabel:P,index:pe,member:"".concat(f,".").concat(pe),onRemoveField:ne,onReorder:Re,record:fe&&fe[pe]||{},removeButton:o,reOrderButtons:i,resource:l,source:f,inline:_},s)})),!(m||v)&&!(x&&(w||b))&&d.createElement("div",{className:Sr.buttons},!x&&d.createElement("div",{className:Sr.add},d.cloneElement(r,{className:Je("button-add","button-add-".concat(f)),onClick:me(r.props.onClick)})),D.length>0&&!w&&!b&&d.createElement("div",{className:Sr.clear},d.createElement(r1,{isOpen:I,title:U("ra.action.clear_array_input"),content:U("ra.message.clear_array_input"),onConfirm:ye,onClose:function(){return A(!1)}}),d.createElement(VDe,{onClick:function(){return A(!0)}}))))):null};Jp.propTypes={addButton:O.element,removeButton:O.element,children:O.node,className:O.string,field:O.object,fields:O.array,fieldState:O.object,formState:O.object,fullWidth:O.bool,inline:O.bool,record:O.object,source:O.string,resource:O.string,translate:O.func,readOnly:O.bool,disabled:O.bool,disableAdd:O.bool,disableRemove:O.oneOfType([O.func,O.bool]),TransitionProps:O.shape({})};var qDe=J("div",{name:ka,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,o=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(Sr.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)},r[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(Sr.index)]=(n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)},n[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(Sr.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(Sr.form)]={flex:2},t["& .".concat(Sr.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(Sr.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(Sr.buttons)]={display:"flex"},t["& .".concat(Sr.add)]={borderBottom:"none"},t["& .".concat(Sr.clear)]={borderBottom:"none"},t["& .".concat(Sr.line,":hover > .").concat(Sr.action)]={visibility:"visible"},t}),HDe=function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(f){try{l(n.next(f))}catch(v){i(v)}}function c(f){try{l(n.throw(f))}catch(v){i(v)}}function l(f){f.done?a(f.value):o(f.value).then(s,c)}l((n=n.apply(e,t||[])).next())})},GDe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]h9[e]||e,ZTe=({theme:e,ownerState:t})=>{const r=JTe(t.color),n=Qc(e,`palette.${r}`,!1)||t.color,o=Qc(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:It(n,.4)},eke=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],tke=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${xe(o)}`,r==="button"&&"button",n&&"focusVisible"]};return ze(a,QTe,t)},rke=J(it,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>j({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&j({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:ZTe({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"},[`&.${YTe.focusVisible}`]:{outline:"auto"}})),nke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:c,TypographyClasses:l,underline:f="always",variant:v="inherit",sx:m}=n,h=we(n,eke),{isFocusVisibleRef:x,onBlur:w,onFocus:C,ref:b}=D0(),[g,_]=d.useState(!1),$=sr(r,b),P=I=>{w(I),x.current===!1&&_(!1),s&&s(I)},E=I=>{C(I),x.current===!0&&_(!0),c&&c(I)},T=j({},n,{color:a,component:i,focusVisible:g,underline:f,variant:v}),R=tke(T);return S.jsx(rke,j({color:a,className:$e(R.root,o),classes:l,component:i,onBlur:P,onFocus:E,ref:$,ownerState:T,variant:v,sx:[...Object.keys(h9).includes(a)?[]:[{color:a}],...Array.isArray(m)?m:[m]]},h))}),oke=nke,ake=d.createContext({}),Kp=ake;function ike(e){return Ve("MuiList",e)}He("MuiList",["root","padding","dense","subheader"]);const ske=["children","className","component","dense","disablePadding","subheader"],lke=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ze({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},ike,t)},uke=J("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>j({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),cke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:c=!1,subheader:l}=n,f=we(n,ske),v=d.useMemo(()=>({dense:s}),[s]),m=j({},n,{component:i,dense:s,disablePadding:c}),h=lke(m);return S.jsx(Kp.Provider,{value:v,children:S.jsxs(uke,j({as:i,className:$e(h.root,a),ref:r,ownerState:m},f,{children:[l,o]}))})}),dke=cke;function fke(e){return Ve("MuiListItemIcon",e)}const pke=He("MuiListItemIcon",["root","alignItemsFlexStart"]),OL=pke,vke=["className"],mke=e=>{const{alignItems:t,classes:r}=e;return ze({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},fke,r)},hke=J("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>j({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),gke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemIcon"}),{className:o}=n,a=we(n,vke),i=d.useContext(Kp),s=j({},n,{alignItems:i.alignItems}),c=mke(s);return S.jsx(hke,j({className:$e(c.root,o),ownerState:s,ref:r},a))}),g9=gke;function yke(e){return Ve("MuiListItemText",e)}const bke=He("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),My=bke,_ke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],xke=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return ze({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},yke,t)},wke=J("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${My.primary}`]:t.primary},{[`& .${My.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>j({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Ske=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:c,primaryTypographyProps:l,secondary:f,secondaryTypographyProps:v}=n,m=we(n,_ke),{dense:h}=d.useContext(Kp);let x=c??o,w=f;const C=j({},n,{disableTypography:i,inset:s,primary:!!x,secondary:!!w,dense:h}),b=xke(C);return x!=null&&x.type!==it&&!i&&(x=S.jsx(it,j({variant:h?"body2":"body1",className:b.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:x}))),w!=null&&w.type!==it&&!i&&(w=S.jsx(it,j({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},v,{children:w}))),S.jsxs(wke,j({className:$e(b.root,a),ownerState:C,ref:r},m,{children:[x,w]}))}),Cke=Ske,Oke=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function fw(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function EL(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function y9(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 Sf(e,t,r,n,o,a){let i=!1,s=o(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const c=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!y9(s,a)||c)s=o(e,s,r);else return s.focus(),!0}return!1}const Eke=d.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:c=!1,disableListWrap:l=!1,onKeyDown:f,variant:v="selectedMenu"}=t,m=we(t,Oke),h=d.useRef(null),x=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});po(()=>{o&&h.current.focus()},[o]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:$})=>{const P=!h.current.style.width;if(_.clientHeight{const $=h.current,P=_.key,E=Pr($).activeElement;if(P==="ArrowDown")_.preventDefault(),Sf($,E,l,c,fw);else if(P==="ArrowUp")_.preventDefault(),Sf($,E,l,c,EL);else if(P==="Home")_.preventDefault(),Sf($,null,l,c,fw);else if(P==="End")_.preventDefault(),Sf($,null,l,c,EL);else if(P.length===1){const T=x.current,R=P.toLowerCase(),I=performance.now();T.keys.length>0&&(I-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&R!==T.keys[0]&&(T.repeating=!1)),T.lastTime=I,T.keys.push(R);const A=E&&!T.repeating&&y9(E,T);T.previousKeyMatched&&(A||Sf($,E,!1,c,fw,T))?_.preventDefault():T.previousKeyMatched=!1}f&&f(_)},C=sr(h,r);let b=-1;d.Children.forEach(i,(_,$)=>{if(!d.isValidElement(_)){b===$&&(b+=1,b>=i.length&&(b=-1));return}_.props.disabled||(v==="selectedMenu"&&_.props.selected||b===-1)&&(b=$),b===$&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))});const g=d.Children.map(i,(_,$)=>{if($===b){const P={};return a&&(P.autoFocus=!0),_.props.tabIndex===void 0&&v==="selectedMenu"&&(P.tabIndex=0),d.cloneElement(_,P)}return _});return S.jsx(dke,j({role:"menu",ref:C,className:s,onKeyDown:w,tabIndex:o?0:-1},m,{children:g}))}),b9=Eke;function Pke(e){return Ve("MuiPopover",e)}He("MuiPopover",["root","paper"]);const $ke=["onEntering"],Rke=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Tke=["slotProps"];function PL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function $L(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function RL(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pw(e){return typeof e=="function"?e():e}const kke=e=>{const{classes:t}=e;return ze({root:["root"],paper:["paper"]},Pke,t)},Ike=J(P$,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_9=J(Ys,{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}),jke=d.forwardRef(function(t,r){var n,o,a;const i=Ge({props:t,name:"MuiPopover"}),{action:s,anchorEl:c,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:v="anchorEl",children:m,className:h,container:x,elevation:w=8,marginThreshold:C=16,open:b,PaperProps:g={},slots:_,slotProps:$,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:E=Ay,transitionDuration:T="auto",TransitionProps:{onEntering:R}={},disableScrollLock:I=!1}=i,A=we(i.TransitionProps,$ke),F=we(i,Rke),L=(n=$==null?void 0:$.paper)!=null?n:g,D=d.useRef(),z=sr(D,L.ref),H=j({},i,{anchorOrigin:l,anchorReference:v,elevation:w,marginThreshold:C,externalPaperSlotProps:L,transformOrigin:P,TransitionComponent:E,transitionDuration:T,TransitionProps:A}),G=kke(H),q=d.useCallback(()=>{if(v==="anchorPosition")return f;const ae=pw(c),Oe=(ae&&ae.nodeType===1?ae:Pr(D.current).body).getBoundingClientRect();return{top:Oe.top+PL(Oe,l.vertical),left:Oe.left+$L(Oe,l.horizontal)}},[c,l.horizontal,l.vertical,f,v]),U=d.useCallback(ae=>({vertical:PL(ae,P.vertical),horizontal:$L(ae,P.horizontal)}),[P.horizontal,P.vertical]),W=d.useCallback(ae=>{const Se={width:ae.offsetWidth,height:ae.offsetHeight},Oe=U(Se);if(v==="none")return{top:null,left:null,transformOrigin:RL(Oe)};const Ne=q();let Xe=Ne.top-Oe.vertical,V=Ne.left-Oe.horizontal;const X=Xe+Se.height,Y=V+Se.width,ie=qo(pw(c)),se=ie.innerHeight-C,ue=ie.innerWidth-C;if(C!==null&&Xese){const Ee=X-se;Xe-=Ee,Oe.vertical+=Ee}if(C!==null&&Vue){const Ee=Y-ue;V-=Ee,Oe.horizontal+=Ee}return{top:`${Math.round(Xe)}px`,left:`${Math.round(V)}px`,transformOrigin:RL(Oe)}},[c,v,q,U,C]),[te,ne]=d.useState(b),ee=d.useCallback(()=>{const ae=D.current;if(!ae)return;const Se=W(ae);Se.top!==null&&(ae.style.top=Se.top),Se.left!==null&&(ae.style.left=Se.left),ae.style.transformOrigin=Se.transformOrigin,ne(!0)},[W]);d.useEffect(()=>(I&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[c,I,ee]);const Ce=(ae,Se)=>{R&&R(ae,Se),ee()},de=()=>{ne(!1)};d.useEffect(()=>{b&&ee()}),d.useImperativeHandle(s,()=>b?{updatePosition:()=>{ee()}}:null,[b,ee]),d.useEffect(()=>{if(!b)return;const ae=Id(()=>{ee()}),Se=qo(c);return Se.addEventListener("resize",ae),()=>{ae.clear(),Se.removeEventListener("resize",ae)}},[c,b,ee]);let oe=T;T==="auto"&&!E.muiSupportAuto&&(oe=void 0);const me=x||(c?Pr(pw(c)).body:void 0),Re=(o=_==null?void 0:_.root)!=null?o:Ike,ye=(a=_==null?void 0:_.paper)!=null?a:_9,fe=Go({elementType:ye,externalSlotProps:j({},L,{style:te?L.style:j({},L.style,{opacity:0})}),additionalProps:{elevation:w,ref:z},ownerState:H,className:$e(G.paper,L==null?void 0:L.className)}),ge=Go({elementType:Re,externalSlotProps:($==null?void 0:$.root)||{},externalForwardedProps:F,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:me,open:b},ownerState:H,className:$e(G.root,h)}),{slotProps:ce}=ge,pe=we(ge,Tke);return S.jsx(Re,j({},pe,!Wp(Re)&&{slotProps:ce,disableScrollLock:I},{children:S.jsx(E,j({appear:!0,in:b,onEntering:Ce,onExited:de,timeout:oe},A,{children:S.jsx(ye,j({},fe,{children:m}))}))}))}),I$=jke;function Ake(e){return Ve("MuiMenu",e)}He("MuiMenu",["root","paper","list"]);const Mke=["onEntering"],Fke=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Lke={vertical:"top",horizontal:"right"},Nke={vertical:"top",horizontal:"left"},Dke=e=>{const{classes:t}=e;return ze({root:["root"],paper:["paper"],list:["list"]},Ake,t)},Bke=J(I$,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zke=J(_9,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Uke=J(b9,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Vke=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:c,disableAutoFocusItem:l=!1,MenuListProps:f={},onClose:v,open:m,PaperProps:h={},PopoverClasses:x,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},variant:b="selectedMenu",slots:g={},slotProps:_={}}=a,$=we(a.TransitionProps,Mke),P=we(a,Fke),E=Xs(),T=j({},a,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:f,onEntering:C,PaperProps:h,transitionDuration:w,TransitionProps:$,variant:b}),R=Dke(T),I=i&&!l&&m,A=d.useRef(null),F=(U,W)=>{A.current&&A.current.adjustStyleForScrollbar(U,{direction:E?"rtl":"ltr"}),C&&C(U,W)},L=U=>{U.key==="Tab"&&(U.preventDefault(),v&&v(U,"tabKeyDown"))};let D=-1;d.Children.map(s,(U,W)=>{d.isValidElement(U)&&(U.props.disabled||(b==="selectedMenu"&&U.props.selected||D===-1)&&(D=W))});const z=(n=g.paper)!=null?n:zke,H=(o=_.paper)!=null?o:h,G=Go({elementType:g.root,externalSlotProps:_.root,ownerState:T,className:[R.root,c]}),q=Go({elementType:z,externalSlotProps:H,ownerState:T,className:R.paper});return S.jsx(Bke,j({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Lke:Nke,slots:{paper:z,root:g.root},slotProps:{root:G,paper:q},open:m,ref:r,transitionDuration:w,TransitionProps:j({onEntering:F},$),ownerState:T},P,{classes:x,children:S.jsx(Uke,j({onKeyDown:L,actions:A,autoFocus:i&&(D===-1||l),autoFocusItem:I,variant:b},f,{className:$e(R.list,f.className),children:s}))}))}),Z0=Vke;function Wke(e){return Ve("MuiMenuItem",e)}const qke=He("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Cf=qke,Hke=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Gke=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Kke=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,c=ze({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},Wke,i);return j({},i,c)},Qke=J(zi,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Gke})(({theme:e,ownerState:t})=>j({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fL.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fL.inset}`]:{marginLeft:52},[`& .${My.root}`]:{marginTop:0,marginBottom:0},[`& .${My.inset}`]:{paddingLeft:36},[`& .${OL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${OL.root} svg`]:{fontSize:"1.25rem"}}))),Xke=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:l,role:f="menuitem",tabIndex:v,className:m}=n,h=we(n,Hke),x=d.useContext(Kp),w=d.useMemo(()=>({dense:i||x.dense||!1,disableGutters:c}),[x.dense,i,c]),C=d.useRef(null);po(()=>{o&&C.current&&C.current.focus()},[o]);const b=j({},n,{dense:w.dense,divider:s,disableGutters:c}),g=Kke(n),_=sr(C,r);let $;return n.disabled||($=v!==void 0?v:-1),S.jsx(Kp.Provider,{value:w,children:S.jsx(Qke,j({ref:_,role:f,tabIndex:$,component:a,focusVisibleClassName:$e(g.focusVisible,l),className:$e(g.root,m)},h,{ownerState:b,classes:g}))})}),so=Xke;function x9(e){return Ve("MuiNativeSelect",e)}const Yke=He("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),j$=Yke,Jke=["className","disabled","error","IconComponent","inputRef","variant"],Zke=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return ze(s,x9,t)},w9=({ownerState:e,theme:t})=>j({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":j({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${j$.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}}),eIe=J("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${j$.multiple}`]:t.multiple}]}})(w9),S9=({ownerState:e,theme:t})=>j({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${j$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),tIe=J("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(S9),rIe=d.forwardRef(function(t,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:c="standard"}=t,l=we(t,Jke),f=j({},t,{disabled:o,variant:c,error:a}),v=Zke(f);return S.jsxs(d.Fragment,{children:[S.jsx(eIe,j({ownerState:f,className:$e(v.select,n),disabled:o,ref:s||r},l)),t.multiple?null:S.jsx(tIe,{as:i,ownerState:f,className:v.icon})]})}),C9=rIe,nIe=["className","children","classes","IconComponent","input","inputProps","variant"],oIe=["root"],aIe=e=>{const{classes:t}=e;return ze({root:["root"]},x9,t)},iIe=S.jsx(T$,{}),O9=d.forwardRef(function(t,r){const n=Ge({name:"MuiNativeSelect",props:t}),{className:o,children:a,classes:i={},IconComponent:s=Z6,input:c=iIe,inputProps:l}=n,f=we(n,nIe),v=Ea(),m=Ui({props:n,muiFormControl:v,states:["variant"]}),h=j({},n,{classes:i}),x=aIe(h),w=we(i,oIe);return S.jsx(d.Fragment,{children:d.cloneElement(c,j({inputComponent:C9,inputProps:j({children:a,classes:w,IconComponent:s,variant:m.variant,type:void 0},l,c?c.props.inputProps:{}),ref:r},f,{className:$e(x.root,c.props.className,o)}))})});O9.muiName="Select";const TL=O9;var kL;const sIe=["children","classes","className","label","notched"],lIe=J("fieldset",{shouldForwardProp:rn})({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%"}),uIe=J("legend",{shouldForwardProp:rn})(({ownerState:e,theme:t})=>j({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&j({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function cIe(e){const{className:t,label:r,notched:n}=e,o=we(e,sIe),a=r!=null&&r!=="",i=j({},e,{notched:n,withLabel:a});return S.jsx(lIe,j({"aria-hidden":!0,className:t,ownerState:i},o,{children:S.jsx(uIe,{ownerState:i,children:a?S.jsx("span",{children:r}):kL||(kL=S.jsx("span",{className:"notranslate",children:"​"}))})}))}const dIe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],fIe=e=>{const{classes:t}=e,n=ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zPe,t);return j({},t,n)},pIe=J(K0,{shouldForwardProp:e=>rn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:H0})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return j({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ts.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ts.focused} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ts.error} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ts.disabled} .${ts.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&j({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),vIe=J(cIe,{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}}),mIe=J(Q0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G0})(({theme:e,ownerState:t})=>j({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),E9=d.forwardRef(function(t,r){var n,o,a,i,s;const c=Ge({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:f=!1,inputComponent:v="input",label:m,multiline:h=!1,notched:x,slots:w={},type:C="text"}=c,b=we(c,dIe),g=fIe(c),_=Ea(),$=Ui({props:c,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=j({},c,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:_,fullWidth:f,hiddenLabel:$.hiddenLabel,multiline:h,size:$.size,type:C}),E=(n=(o=w.root)!=null?o:l.Root)!=null?n:pIe,T=(a=(i=w.input)!=null?i:l.Input)!=null?a:mIe;return S.jsx(X0,j({slots:{root:E,input:T},renderSuffix:R=>S.jsx(vIe,{ownerState:P,className:g.notchedOutline,label:m!=null&&m!==""&&$.required?s||(s=S.jsxs(d.Fragment,{children:[m," ","*"]})):m,notched:typeof x<"u"?x:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:v,multiline:h,ref:r,type:C},b,{classes:j({},g,{notchedOutline:null})}))});E9.muiName="Input";const P9=E9;function hIe(e){return Ve("MuiPagination",e)}He("MuiPagination",["root","ul","outlined","text"]);const gIe=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function yIe(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:c,page:l,showFirstButton:f=!1,showLastButton:v=!1,siblingCount:m=1}=e,h=we(e,gIe),[x,w]=Yc({controlled:l,default:o,name:r,state:"page"}),C=(I,A)=>{l||w(A),c&&c(I,A)},b=(I,A)=>{const F=A-I+1;return Array.from({length:F},(L,D)=>I+D)},g=b(1,Math.min(t,n)),_=b(Math.max(n-t+1,t+1),n),$=Math.max(Math.min(x-m,n-t-m*2-1),t+2),P=Math.min(Math.max(x+m,t+m*2+2),_.length>0?_[0]-2:n-1),E=[...f?["first"]:[],...s?[]:["previous"],...g,...$>t+2?["start-ellipsis"]:t+1t?[n-t]:[],..._,...i?[]:["next"],...v?["last"]:[]],T=I=>{switch(I){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return n;default:return null}},R=E.map(I=>typeof I=="number"?{onClick:A=>{C(A,I)},type:"page",page:I,selected:I===x,disabled:a,"aria-current":I===x?"true":void 0}:{onClick:A=>{C(A,T(I))},type:I,page:T(I),selected:!1,disabled:a||I.indexOf("ellipsis")===-1&&(I==="next"||I==="last"?x>=n:x<=1)});return j({items:R},h)}function bIe(e){return Ve("MuiPaginationItem",e)}const _Ie=He("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Ro=_Ie,SC=yo(S.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),CC=yo(S.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),IL=yo(S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),jL=yo(S.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),xIe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],$9=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.variant==="text"&&t[`text${xe(r.color)}`],r.variant==="outlined"&&t[`outlined${xe(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},wIe=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:c}=e,l={root:["root",`size${xe(a)}`,c,i,r!=="standard"&&`color${xe(r)}`,r!=="standard"&&`${c}${xe(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return ze(l,bIe,t)},SIe=J("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:$9})(({theme:e,ownerState:t})=>j({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Ro.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)})),CIe=J(zi,{name:"MuiPaginationItem",slot:"Root",overridesResolver:$9})(({theme:e,ownerState:t})=>j({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Ro.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ro.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"}},[`&.${Ro.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ro.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Ro.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>j({},t.variant==="text"&&{[`&.${Ro.selected}`]:j({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Ro.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Ro.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)"}`,[`&.${Ro.selected}`]:j({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:It(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:It(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ro.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Ro.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),OIe=J("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>j({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),EIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:i,components:s={},disabled:c=!1,page:l,selected:f=!1,shape:v="circular",size:m="medium",slots:h={},type:x="page",variant:w="text"}=n,C=we(n,xIe),b=j({},n,{color:a,disabled:c,selected:f,shape:v,size:m,type:x,variant:w}),g=Xs(),_=wIe(b),P=(g?{previous:h.next||s.next||jL,next:h.previous||s.previous||IL,last:h.first||s.first||SC,first:h.last||s.last||CC}:{previous:h.previous||s.previous||IL,next:h.next||s.next||jL,first:h.first||s.first||SC,last:h.last||s.last||CC})[x];return x==="start-ellipsis"||x==="end-ellipsis"?S.jsx(SIe,{ref:r,ownerState:b,className:$e(_.root,o),children:"…"}):S.jsxs(CIe,j({ref:r,ownerState:b,component:i,disabled:c,className:$e(_.root,o)},C,{children:[x==="page"&&l,P?S.jsx(OIe,{as:P,ownerState:b,className:_.icon}):null]}))}),PIe=EIe,$Ie=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],RIe=e=>{const{classes:t,variant:r}=e;return ze({root:["root",r],ul:["ul"]},hIe,t)},TIe=J("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),kIe=J("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function IIe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const jIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:i="standard",count:s=1,defaultPage:c=1,disabled:l=!1,getItemAriaLabel:f=IIe,hideNextButton:v=!1,hidePrevButton:m=!1,renderItem:h=R=>S.jsx(PIe,j({},R)),shape:x="circular",showFirstButton:w=!1,showLastButton:C=!1,siblingCount:b=1,size:g="medium",variant:_="text"}=n,$=we(n,$Ie),{items:P}=yIe(j({},n,{componentName:"Pagination"})),E=j({},n,{boundaryCount:o,color:i,count:s,defaultPage:c,disabled:l,getItemAriaLabel:f,hideNextButton:v,hidePrevButton:m,renderItem:h,shape:x,showFirstButton:w,showLastButton:C,siblingCount:b,size:g,variant:_}),T=RIe(E);return S.jsx(TIe,j({"aria-label":"pagination navigation",className:$e(T.root,a),ownerState:E,ref:r},$,{children:S.jsx(kIe,{className:T.ul,ownerState:E,children:P.map((R,I)=>S.jsx("li",{children:h(j({},R,{color:i,"aria-label":f(R.type,R.page,R.selected),shape:x,size:g,variant:_}))},I))})}))}),AIe=jIe;function MIe(e){return Ve("MuiScopedCssBaseline",e)}He("MuiScopedCssBaseline",["root"]);const FIe=["className","component","enableColorScheme"],LIe=e=>{const{classes:t}=e;return ze({root:["root"]},MIe,t)},NIe=J("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={};return t.enableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var a;r[`&${e.getColorSchemeSelector(n).replace(/\s*&/,"")}`]={colorScheme:(a=o.palette)==null?void 0:a.mode}}),j({},S2e(e,t.enableColorScheme),C2e(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}},r)}),DIe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:a="div"}=n,i=we(n,FIe),s=j({},n,{component:a}),c=LIe(s);return S.jsx(NIe,j({as:a,className:$e(c.root,o),ref:r,ownerState:s},i))}),BIe=DIe;function zIe(e){return Ve("MuiSelect",e)}const Of=He("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var AL;const UIe=["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"],VIe=J("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Of.select}`]:t.select},{[`&.${Of.select}`]:t[r.variant]},{[`&.${Of.error}`]:t.error},{[`&.${Of.multiple}`]:t.multiple}]}})(w9,{[`&.${Of.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),WIe=J("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(S9),qIe=J("input",{shouldForwardProp:e=>j6(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 ML(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function HIe(e){return e==null||typeof e=="string"&&!e.trim()}const GIe=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return ze(s,zIe,t)},KIe=d.forwardRef(function(t,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:c,className:l,defaultOpen:f,defaultValue:v,disabled:m,displayEmpty:h,error:x=!1,IconComponent:w,inputRef:C,labelId:b,MenuProps:g={},multiple:_,name:$,onBlur:P,onChange:E,onClose:T,onFocus:R,onOpen:I,open:A,readOnly:F,renderValue:L,SelectDisplayProps:D={},tabIndex:z,value:H,variant:G="standard"}=t,q=we(t,UIe),[U,W]=Yc({controlled:H,default:v,name:"Select"}),[te,ne]=Yc({controlled:A,default:f,name:"Select"}),ee=d.useRef(null),Ce=d.useRef(null),[de,oe]=d.useState(null),{current:me}=d.useRef(A!=null),[Re,ye]=d.useState(),fe=sr(r,C),ge=d.useCallback(Ue=>{Ce.current=Ue,Ue&&oe(Ue)},[]),ce=de==null?void 0:de.parentNode;d.useImperativeHandle(fe,()=>({focus:()=>{Ce.current.focus()},node:ee.current,value:U}),[U]),d.useEffect(()=>{f&&te&&de&&!me&&(ye(s?null:ce.clientWidth),Ce.current.focus())},[de,s]),d.useEffect(()=>{i&&Ce.current.focus()},[i]),d.useEffect(()=>{if(!b)return;const Ue=Pr(Ce.current).getElementById(b);if(Ue){const et=()=>{getSelection().isCollapsed&&Ce.current.focus()};return Ue.addEventListener("click",et),()=>{Ue.removeEventListener("click",et)}}},[b]);const pe=(Ue,et)=>{Ue?I&&I(et):T&&T(et),me||(ye(s?null:ce.clientWidth),ne(Ue))},ae=Ue=>{Ue.button===0&&(Ue.preventDefault(),Ce.current.focus(),pe(!0,Ue))},Se=Ue=>{pe(!1,Ue)},Oe=d.Children.toArray(c),Ne=Ue=>{const et=Oe.find(ke=>ke.props.value===Ue.target.value);et!==void 0&&(W(et.props.value),E&&E(Ue,et))},Xe=Ue=>et=>{let ke;if(et.currentTarget.hasAttribute("tabindex")){if(_){ke=Array.isArray(U)?U.slice():[];const Be=U.indexOf(Ue.props.value);Be===-1?ke.push(Ue.props.value):ke.splice(Be,1)}else ke=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(et),U!==ke&&(W(ke),E)){const Be=et.nativeEvent||et,ct=new Be.constructor(Be.type,Be);Object.defineProperty(ct,"target",{writable:!0,value:{value:ke,name:$}}),E(ct,Ue)}_||pe(!1,et)}},V=Ue=>{F||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ue.key)!==-1&&(Ue.preventDefault(),pe(!0,Ue))},X=de!==null&&te,Y=Ue=>{!X&&P&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:U,name:$}}),P(Ue))};delete q["aria-invalid"];let ie,se;const ue=[];let Ee=!1;(jy({value:U})||h)&&(L?ie=L(U):Ee=!0);const Ie=Oe.map(Ue=>{if(!d.isValidElement(Ue))return null;let et;if(_){if(!Array.isArray(U))throw new Error(Ri(2));et=U.some(ke=>ML(ke,Ue.props.value)),et&&Ee&&ue.push(Ue.props.children)}else et=ML(U,Ue.props.value),et&&Ee&&(se=Ue.props.children);return d.cloneElement(Ue,{"aria-selected":et?"true":"false",onClick:Xe(Ue),onKeyUp:ke=>{ke.key===" "&&ke.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(ke)},role:"option",selected:et,value:void 0,"data-value":Ue.props.value})});Ee&&(_?ue.length===0?ie=null:ie=ue.reduce((Ue,et,ke)=>(Ue.push(et),ke{const{classes:t}=e;return t},A$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>rn(e)&&e!=="variant",slot:"Root"},ZIe=J(T$,A$)(""),eje=J(P9,A$)(""),tje=J(d9,A$)(""),R9=d.forwardRef(function(t,r){const n=Ge({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:c=!1,displayEmpty:l=!1,IconComponent:f=Z6,id:v,input:m,inputProps:h,label:x,labelId:w,MenuProps:C,multiple:b=!1,native:g=!1,onClose:_,onOpen:$,open:P,renderValue:E,SelectDisplayProps:T,variant:R="outlined"}=n,I=we(n,XIe),A=g?C9:QIe,F=Ea(),L=Ui({props:n,muiFormControl:F,states:["variant","error"]}),D=L.variant||R,z=j({},n,{variant:D,classes:i}),H=JIe(z),G=we(H,YIe),q=m||{standard:S.jsx(ZIe,{ownerState:z}),outlined:S.jsx(eje,{label:x,ownerState:z}),filled:S.jsx(tje,{ownerState:z})}[D],U=sr(r,q.ref);return S.jsx(d.Fragment,{children:d.cloneElement(q,j({inputComponent:A,inputProps:j({children:a,error:L.error,IconComponent:f,variant:D,type:void 0,multiple:b},g?{id:v}:{autoWidth:o,defaultOpen:c,displayEmpty:l,labelId:w,MenuProps:C,onClose:_,onOpen:$,open:P,renderValue:E,SelectDisplayProps:j({id:v},T)},h,{classes:h?$n(G,h.classes):G},m?m.props.inputProps:{})},(b&&g||l)&&D==="outlined"?{notched:!0}:{},{ref:U,className:$e(q.props.className,s,H.root)},!m&&{variant:D},I))})});R9.muiName="Select";const M$=R9;function rje(e){return Ve("MuiSnackbarContent",e)}He("MuiSnackbarContent",["root","message","action"]);const nje=["action","className","message","role"],oje=e=>{const{classes:t}=e;return ze({root:["root"],action:["action"],message:["message"]},rje,t)},aje=J(Ys,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=xSe(e.palette.background.default,t);return j({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),ije=J("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),sje=J("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:s="alert"}=n,c=we(n,nje),l=n,f=oje(l);return S.jsxs(aje,j({role:s,square:!0,elevation:6,className:$e(f.root,a),ownerState:l,ref:r},c,{children:[S.jsx(ije,{className:f.message,ownerState:l,children:i}),o?S.jsx(sje,{className:f.action,ownerState:l,children:o}):null]}))}),uje=lje;function cje(e){return Ve("MuiSnackbar",e)}He("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const dje=["onEnter","onExited"],fje=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],pje=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${xe(r.vertical)}${xe(r.horizontal)}`]};return ze(n,cje,t)},FL=J("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${xe(r.anchorOrigin.vertical)}${xe(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return j({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:j({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&r,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),vje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiSnackbar"}),o=ra(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:f,className:v,ClickAwayListenerProps:m,ContentProps:h,disableWindowBlurListener:x=!1,message:w,open:C,TransitionComponent:b=Ay,transitionDuration:g=a,TransitionProps:{onEnter:_,onExited:$}={}}=n,P=we(n.TransitionProps,dje),E=we(n,fje),T=j({},n,{anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:l,disableWindowBlurListener:x,TransitionComponent:b,transitionDuration:g}),R=pje(T),{getRootProps:I,onClickAway:A}=gPe(j({},T)),[F,L]=d.useState(!0),D=Go({elementType:FL,getSlotProps:I,externalForwardedProps:E,ownerState:T,additionalProps:{ref:r},className:[R.root,v]}),z=G=>{L(!0),$&&$(G)},H=(G,q)=>{L(!1),_&&_(G,q)};return!C&&F?null:S.jsx(NOe,j({onClickAway:A},m,{children:S.jsx(FL,j({},D,{children:S.jsx(b,j({appear:!0,in:C,timeout:g,direction:s==="top"?"down":"up",onEnter:H,onExited:z},P,{children:f||S.jsx(uje,j({message:w,action:i},h))}))}))}))}),mje=vje;function hje(e){return Ve("MuiTooltip",e)}const gje=He("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),bs=gje,yje=["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 bje(e){return Math.round(e*1e5)/1e5}const _je=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${xe(a.split("-")[0])}`],arrow:["arrow"]};return ze(i,hje,t)},xje=J(J6,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>j({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${bs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${bs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${bs.arrow}`]:j({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${bs.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),wje=J("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${xe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:It(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bje(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${bs.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${bs.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${bs.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${bs.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Sje=J("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:It(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let wh=!1;const LL=new Iv;let Ef={x:0,y:0};function Sh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Cje=d.forwardRef(function(t,r){var n,o,a,i,s,c,l,f,v,m,h,x,w,C,b,g,_,$,P;const E=Ge({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:R,components:I={},componentsProps:A={},describeChild:F=!1,disableFocusListener:L=!1,disableHoverListener:D=!1,disableInteractive:z=!1,disableTouchListener:H=!1,enterDelay:G=100,enterNextDelay:q=0,enterTouchDelay:U=700,followCursor:W=!1,id:te,leaveDelay:ne=0,leaveTouchDelay:ee=1500,onClose:Ce,onOpen:de,open:oe,placement:me="bottom",PopperComponent:Re,PopperProps:ye={},slotProps:fe={},slots:ge={},title:ce,TransitionComponent:pe=Ay,TransitionProps:ae}=E,Se=we(E,yje),Oe=d.isValidElement(R)?R:S.jsx("span",{children:R}),Ne=ra(),Xe=Xs(),[V,X]=d.useState(),[Y,ie]=d.useState(null),se=d.useRef(!1),ue=z||W,Ee=Rl(),Ie=Rl(),at=Rl(),ot=Rl(),[Le,De]=Yc({controlled:oe,default:!1,name:"Tooltip",state:"open"});let ft=Le;const Et=ru(te),Ot=d.useRef(),Ue=En(()=>{Ot.current!==void 0&&(document.body.style.WebkitUserSelect=Ot.current,Ot.current=void 0),ot.clear()});d.useEffect(()=>Ue,[Ue]);const et=mt=>{LL.clear(),wh=!0,De(!0),de&&!ft&&de(mt)},ke=En(mt=>{LL.start(800+ne,()=>{wh=!1}),De(!1),Ce&&ft&&Ce(mt),Ee.start(Ne.transitions.duration.shortest,()=>{se.current=!1})}),Be=mt=>{se.current&&mt.type!=="touchstart"||(V&&V.removeAttribute("title"),Ie.clear(),at.clear(),G||wh&&q?Ie.start(wh?q:G,()=>{et(mt)}):et(mt))},ct=mt=>{Ie.clear(),at.start(ne,()=>{ke(mt)})},{isFocusVisibleRef:yt,onBlur:Jt,onFocus:Rr,ref:hn}=D0(),[,oa]=d.useState(!1),Qn=mt=>{Jt(mt),yt.current===!1&&(oa(!1),ct(mt))},Vi=mt=>{V||X(mt.currentTarget),Rr(mt),yt.current===!0&&(oa(!0),Be(mt))},Qv=mt=>{se.current=!0;const yn=Oe.props;yn.onTouchStart&&yn.onTouchStart(mt)},S1=mt=>{Qv(mt),at.clear(),Ee.clear(),Ue(),Ot.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ot.start(U,()=>{document.body.style.WebkitUserSelect=Ot.current,Be(mt)})},Xv=mt=>{Oe.props.onTouchEnd&&Oe.props.onTouchEnd(mt),Ue(),at.start(ee,()=>{ke(mt)})};d.useEffect(()=>{if(!ft)return;function mt(yn){(yn.key==="Escape"||yn.key==="Esc")&&ke(yn)}return document.addEventListener("keydown",mt),()=>{document.removeEventListener("keydown",mt)}},[ke,ft]);const C1=sr(Oe.ref,hn,X,r);!ce&&ce!==0&&(ft=!1);const Vd=d.useRef(),O1=mt=>{const yn=Oe.props;yn.onMouseMove&&yn.onMouseMove(mt),Ef={x:mt.clientX,y:mt.clientY},Vd.current&&Vd.current.update()},ri={},Wd=typeof ce=="string";F?(ri.title=!ft&&Wd&&!D?ce:null,ri["aria-describedby"]=ft?Et:null):(ri["aria-label"]=Wd?ce:null,ri["aria-labelledby"]=ft&&!Wd?Et:null);const gn=j({},ri,Se,Oe.props,{className:$e(Se.className,Oe.props.className),onTouchStart:Qv,ref:C1},W?{onMouseMove:O1}:{}),rl={};H||(gn.onTouchStart=S1,gn.onTouchEnd=Xv),D||(gn.onMouseOver=Sh(Be,gn.onMouseOver),gn.onMouseLeave=Sh(ct,gn.onMouseLeave),ue||(rl.onMouseOver=Be,rl.onMouseLeave=ct)),L||(gn.onFocus=Sh(Vi,gn.onFocus),gn.onBlur=Sh(Qn,gn.onBlur),ue||(rl.onFocus=Vi,rl.onBlur=Qn));const E1=d.useMemo(()=>{var mt;let yn=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(mt=ye.popperOptions)!=null&&mt.modifiers&&(yn=yn.concat(ye.popperOptions.modifiers)),j({},ye.popperOptions,{modifiers:yn})},[Y,ye]),nl=j({},E,{isRtl:Xe,arrow:T,disableInteractive:ue,placement:me,PopperComponentProp:Re,touch:se.current}),qd=_je(nl),Yv=(n=(o=ge.popper)!=null?o:I.Popper)!=null?n:xje,Jv=(a=(i=(s=ge.transition)!=null?s:I.Transition)!=null?i:pe)!=null?a:Ay,Zv=(c=(l=ge.tooltip)!=null?l:I.Tooltip)!=null?c:wje,em=(f=(v=ge.arrow)!=null?v:I.Arrow)!=null?f:Sje,tm=mc(Yv,j({},ye,(m=fe.popper)!=null?m:A.popper,{className:$e(qd.popper,ye==null?void 0:ye.className,(h=(x=fe.popper)!=null?x:A.popper)==null?void 0:h.className)}),nl),P1=mc(Jv,j({},ae,(w=fe.transition)!=null?w:A.transition),nl),$1=mc(Zv,j({},(C=fe.tooltip)!=null?C:A.tooltip,{className:$e(qd.tooltip,(b=(g=fe.tooltip)!=null?g:A.tooltip)==null?void 0:b.className)}),nl),R1=mc(em,j({},(_=fe.arrow)!=null?_:A.arrow,{className:$e(qd.arrow,($=(P=fe.arrow)!=null?P:A.arrow)==null?void 0:$.className)}),nl);return S.jsxs(d.Fragment,{children:[d.cloneElement(Oe,gn),S.jsx(Yv,j({as:Re??J6,placement:me,anchorEl:W?{getBoundingClientRect:()=>({top:Ef.y,left:Ef.x,right:Ef.x,bottom:Ef.y,width:0,height:0})}:V,popperRef:Vd,open:V?ft:!1,id:Et,transition:!0},rl,tm,{popperOptions:E1,children:({TransitionProps:mt})=>S.jsx(Jv,j({timeout:Ne.transitions.duration.shorter},mt,P1,{children:S.jsxs(Zv,j({},$1,{children:[ce,T?S.jsx(em,j({},R1,{ref:ie})):null]}))}))}))]})}),Vr=Cje;function Oje(e){return Ve("MuiSwitch",e)}const wn=He("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Eje=["className","color","edge","size","sx"],Pje=A6(),$je=e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=ze(s,Oje,t);return j({},t,c)},Rje=J("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${wn.thumb}`]:{width:16,height:16},[`& .${wn.switchBase}`]:{padding:4,[`&.${wn.checked}`]:{transform:"translateX(16px)"}}}}]}),Tje=J(o9,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${wn.input}`]:t.input},r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${wn.checked}`]:{transform:"translateX(20px)"},[`&.${wn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${wn.checked} + .${wn.track}`]:{opacity:.5},[`&.${wn.disabled} + .${wn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${wn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${wn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?z0(e.palette[t].main,.62):B0(e.palette[t].main,.55)}`}},[`&.${wn.checked} + .${wn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),kje=J("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Ije=J("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),jje=d.forwardRef(function(t,r){const n=Pje({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:s="medium",sx:c}=n,l=we(n,Eje),f=j({},n,{color:a,edge:i,size:s}),v=$je(f),m=S.jsx(Ije,{className:v.thumb,ownerState:f});return S.jsxs(Rje,{className:$e(v.root,o),sx:c,ownerState:f,children:[S.jsx(Tje,j({type:"checkbox",icon:m,checkedIcon:m,ref:r,ownerState:f},l,{classes:j({},v,{root:v.switchBase})})),S.jsx(kje,{className:v.track,ownerState:f})]})}),F$=jje;function Aje(e){return Ve("MuiTab",e)}const Mje=He("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ml=Mje,Fje=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Lje=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:c}=e,l={root:["root",a&&i&&"labelIcon",`textColor${xe(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return ze(l,Aje,t)},Nje=J(zi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>j({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ml.iconWrapper}`]:j({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ml.selected}`]:{opacity:1},[`&.${ml.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ml.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ml.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ml.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ml.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)})),Dje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:c,iconPosition:l="top",indicator:f,label:v,onChange:m,onClick:h,onFocus:x,selected:w,selectionFollowsFocus:C,textColor:b="inherit",value:g,wrapped:_=!1}=n,$=we(n,Fje),P=j({},n,{disabled:a,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:l,label:!!v,fullWidth:s,textColor:b,wrapped:_}),E=Lje(P),T=c&&v&&d.isValidElement(c)?d.cloneElement(c,{className:$e(E.iconWrapper,c.props.className)}):c,R=A=>{!w&&m&&m(A,g),h&&h(A)},I=A=>{C&&!w&&m&&m(A,g),x&&x(A)};return S.jsxs(Nje,j({focusRipple:!i,className:$e(E.root,o),ref:r,role:"tab","aria-selected":w,disabled:a,onClick:R,onFocus:I,ownerState:P,tabIndex:w?0:-1},$,{children:[l==="top"||l==="start"?S.jsxs(d.Fragment,{children:[T,v]}):S.jsxs(d.Fragment,{children:[v,T]}),f]}))}),T9=Dje,Bje=d.createContext(),k9=Bje;function zje(e){return Ve("MuiTable",e)}He("MuiTable",["root","stickyHeader"]);const Uje=["className","component","padding","size","stickyHeader"],Vje=e=>{const{classes:t,stickyHeader:r}=e;return ze({root:["root",r&&"stickyHeader"]},zje,t)},Wje=J("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),NL="table",qje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTable"}),{className:o,component:a=NL,padding:i="normal",size:s="medium",stickyHeader:c=!1}=n,l=we(n,Uje),f=j({},n,{component:a,padding:i,size:s,stickyHeader:c}),v=Vje(f),m=d.useMemo(()=>({padding:i,size:s,stickyHeader:c}),[i,s,c]);return S.jsx(k9.Provider,{value:m,children:S.jsx(Wje,j({as:a,role:a===NL?null:"table",ref:r,className:$e(v.root,o),ownerState:f},l))})}),I9=qje,Hje=d.createContext(),e1=Hje;function Gje(e){return Ve("MuiTableBody",e)}He("MuiTableBody",["root"]);const Kje=["className","component"],Qje=e=>{const{classes:t}=e;return ze({root:["root"]},Gje,t)},Xje=J("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Yje={variant:"body"},DL="tbody",Jje=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableBody"}),{className:o,component:a=DL}=n,i=we(n,Kje),s=j({},n,{component:a}),c=Qje(s);return S.jsx(e1.Provider,{value:Yje,children:S.jsx(Xje,j({className:$e(c.root,o),as:a,ref:r,role:a===DL?null:"rowgroup",ownerState:s},i))})}),j9=Jje;function Zje(e){return Ve("MuiTableCell",e)}const eAe=He("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),tAe=eAe,rAe=["align","className","component","padding","scope","size","sortDirection","variant"],nAe=e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,o!=="normal"&&`padding${xe(o)}`,`size${xe(a)}`]};return ze(s,Zje,t)},oAe=J("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>j({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?z0(It(e.palette.divider,1),.88):B0(It(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${tAe.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})),aAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:c,size:l,sortDirection:f,variant:v}=n,m=we(n,rAe),h=d.useContext(k9),x=d.useContext(e1),w=x&&x.variant==="head";let C;i?C=i:C=w?"th":"td";let b=c;C==="td"?b=void 0:!b&&w&&(b="col");const g=v||x&&x.variant,_=j({},n,{align:o,component:C,padding:s||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:f,stickyHeader:g==="head"&&h&&h.stickyHeader,variant:g}),$=nAe(_);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),S.jsx(oAe,j({as:C,ref:r,className:$e($.root,a),"aria-sort":P,scope:b,ownerState:_},m))}),cn=aAe;function iAe(e){return Ve("MuiTableHead",e)}He("MuiTableHead",["root"]);const sAe=["className","component"],lAe=e=>{const{classes:t}=e;return ze({root:["root"]},iAe,t)},uAe=J("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),cAe={variant:"head"},BL="thead",dAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableHead"}),{className:o,component:a=BL}=n,i=we(n,sAe),s=j({},n,{component:a}),c=lAe(s);return S.jsx(e1.Provider,{value:cAe,children:S.jsx(uAe,j({as:a,className:$e(c.root,o),ref:r,role:a===BL?null:"rowgroup",ownerState:s},i))})}),A9=dAe;function fAe(e){return Ve("MuiToolbar",e)}He("MuiToolbar",["root","gutters","regular","dense"]);const pAe=["className","component","disableGutters","variant"],vAe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return ze({root:["root",!r&&"gutters",n]},fAe,t)},mAe=J("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>j({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),hAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:i=!1,variant:s="regular"}=n,c=we(n,pAe),l=j({},n,{component:a,disableGutters:i,variant:s}),f=vAe(l);return S.jsx(mAe,j({as:a,className:$e(f.root,o),ref:r,ownerState:l},c))}),Ld=hAe,M9=yo(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),F9=yo(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),gAe=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],yAe=d.forwardRef(function(t,r){var n,o,a,i,s,c,l,f;const{backIconButtonProps:v,count:m,disabled:h=!1,getItemAriaLabel:x,nextIconButtonProps:w,onPageChange:C,page:b,rowsPerPage:g,showFirstButton:_,showLastButton:$,slots:P={},slotProps:E={}}=t,T=we(t,gAe),R=Xs(),I=fe=>{C(fe,0)},A=fe=>{C(fe,b-1)},F=fe=>{C(fe,b+1)},L=fe=>{C(fe,Math.max(0,Math.ceil(m/g)-1))},D=(n=P.firstButton)!=null?n:or,z=(o=P.lastButton)!=null?o:or,H=(a=P.nextButton)!=null?a:or,G=(i=P.previousButton)!=null?i:or,q=(s=P.firstButtonIcon)!=null?s:SC,U=(c=P.lastButtonIcon)!=null?c:CC,W=(l=P.nextButtonIcon)!=null?l:F9,te=(f=P.previousButtonIcon)!=null?f:M9,ne=R?z:D,ee=R?H:G,Ce=R?G:H,de=R?D:z,oe=R?E.lastButton:E.firstButton,me=R?E.nextButton:E.previousButton,Re=R?E.previousButton:E.nextButton,ye=R?E.firstButton:E.lastButton;return S.jsxs("div",j({ref:r},T,{children:[_&&S.jsx(ne,j({onClick:I,disabled:h||b===0,"aria-label":x("first",b),title:x("first",b)},oe,{children:R?S.jsx(U,j({},E.lastButtonIcon)):S.jsx(q,j({},E.firstButtonIcon))})),S.jsx(ee,j({onClick:A,disabled:h||b===0,color:"inherit","aria-label":x("previous",b),title:x("previous",b)},me??v,{children:R?S.jsx(W,j({},E.nextButtonIcon)):S.jsx(te,j({},E.previousButtonIcon))})),S.jsx(Ce,j({onClick:F,disabled:h||(m!==-1?b>=Math.ceil(m/g)-1:!1),color:"inherit","aria-label":x("next",b),title:x("next",b)},Re??w,{children:R?S.jsx(te,j({},E.previousButtonIcon)):S.jsx(W,j({},E.nextButtonIcon))})),$&&S.jsx(de,j({onClick:L,disabled:h||b>=Math.ceil(m/g)-1,"aria-label":x("last",b),title:x("last",b)},ye,{children:R?S.jsx(q,j({},E.firstButtonIcon)):S.jsx(U,j({},E.lastButtonIcon))}))]}))}),bAe=yAe;function _Ae(e){return Ve("MuiTablePagination",e)}const xAe=He("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),sp=xAe;var zL;const wAe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],SAe=J(cn,{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}})),CAe=J(Ld,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>j({[`& .${sp.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},[`& .${sp.actions}`]:{flexShrink:0,marginLeft:20}})),OAe=J("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),EAe=J("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>j({},e.typography.body2,{flexShrink:0})),PAe=J(M$,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>j({[`& .${sp.selectIcon}`]:t.selectIcon,[`& .${sp.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${sp.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),$Ae=J(so,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),RAe=J("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>j({},e.typography.body2,{flexShrink:0}));function TAe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function kAe(e){return`Go to ${e} page`}const IAe=e=>{const{classes:t}=e;return ze({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},_Ae,t)},jAe=d.forwardRef(function(t,r){var n;const o=Ge({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=bAe,backIconButtonProps:i,className:s,colSpan:c,component:l=cn,count:f,disabled:v=!1,getItemAriaLabel:m=kAe,labelDisplayedRows:h=TAe,labelRowsPerPage:x="Rows per page:",nextIconButtonProps:w,onPageChange:C,onRowsPerPageChange:b,page:g,rowsPerPage:_,rowsPerPageOptions:$=[10,25,50,100],SelectProps:P={},showFirstButton:E=!1,showLastButton:T=!1,slotProps:R={},slots:I={}}=o,A=we(o,wAe),F=o,L=IAe(F),D=(n=R==null?void 0:R.select)!=null?n:P,z=D.native?"option":$Ae;let H;(l===cn||l==="td")&&(H=c||1e3);const G=ru(D.id),q=ru(D.labelId),U=()=>f===-1?(g+1)*_:_===-1?f:Math.min(f,(g+1)*_);return S.jsx(SAe,j({colSpan:H,ref:r,as:l,ownerState:F,className:$e(L.root,s)},A,{children:S.jsxs(CAe,{className:L.toolbar,children:[S.jsx(OAe,{className:L.spacer}),$.length>1&&S.jsx(EAe,{className:L.selectLabel,id:q,children:x}),$.length>1&&S.jsx(PAe,j({variant:"standard"},!D.variant&&{input:zL||(zL=S.jsx(X0,{}))},{value:_,onChange:b,id:G,labelId:q},D,{classes:j({},D.classes,{root:$e(L.input,L.selectRoot,(D.classes||{}).root),select:$e(L.select,(D.classes||{}).select),icon:$e(L.selectIcon,(D.classes||{}).icon)}),disabled:v,children:$.map(W=>d.createElement(z,j({},!Wp(z)&&{ownerState:F},{className:L.menuItem,key:W.label?W.label:W,value:W.value?W.value:W}),W.label?W.label:W))})),S.jsx(RAe,{className:L.displayedRows,children:h({from:f===0?0:g*_+1,to:U(),count:f===-1?-1:f,page:g})}),S.jsx(a,{className:L.actions,backIconButtonProps:i,count:f,nextIconButtonProps:w,onPageChange:C,page:g,rowsPerPage:_,showFirstButton:E,showLastButton:T,slotProps:R.actions,slots:I.actions,getItemAriaLabel:m,disabled:v})]})}))}),UL=jAe;function AAe(e){return Ve("MuiTableRow",e)}const MAe=He("MuiTableRow",["root","selected","hover","head","footer"]),VL=MAe,FAe=["className","component","hover","selected"],LAe=e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e;return ze({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},AAe,t)},NAe=J("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${VL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${VL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:It(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),WL="tr",DAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableRow"}),{className:o,component:a=WL,hover:i=!1,selected:s=!1}=n,c=we(n,FAe),l=d.useContext(e1),f=j({},n,{component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),v=LAe(f);return S.jsx(NAe,j({as:a,ref:r,className:$e(v.root,o),role:a===WL?null:"row",ownerState:f},c))}),Qp=DAe,BAe=yo(S.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function zAe(e){return Ve("MuiTableSortLabel",e)}const UAe=He("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),vw=UAe,VAe=["active","children","className","direction","hideSortIcon","IconComponent"],WAe=e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon",`iconDirection${xe(r)}`]};return ze(o,zAe,t)},qAe=J(zi,{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,[`& .${vw.icon}`]:{opacity:.5}},[`&.${vw.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${vw.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),HAe=J("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${xe(r.direction)}`]]}})(({theme:e,ownerState:t})=>j({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),GAe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:s="asc",hideSortIcon:c=!1,IconComponent:l=BAe}=n,f=we(n,VAe),v=j({},n,{active:o,direction:s,hideSortIcon:c,IconComponent:l}),m=WAe(v);return S.jsxs(qAe,j({className:$e(m.root,i),component:"span",disableRipple:!0,ownerState:v,ref:r},f,{children:[a,c&&!o?null:S.jsx(HAe,{as:l,className:$e(m.icon),ownerState:v})]}))}),KAe=GAe;function QAe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function XAe(e,t,r,n={},o=()=>{}){const{ease:a=QAe,duration:i=300}=n;let s=null;const c=t[e];let l=!1;const f=()=>{l=!0},v=m=>{if(l){o(new Error("Animation cancelled"));return}s===null&&(s=m);const h=Math.min(1,(m-s)/i);if(t[e]=a(h)*(r-c)+c,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(v)};return c===r?(o(new Error("Element already at target position")),f):(requestAnimationFrame(v),f)}const YAe=["onChange"],JAe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ZAe(e){const{onChange:t}=e,r=we(e,YAe),n=d.useRef(),o=d.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return po(()=>{const i=Id(()=>{const c=n.current;a(),c!==n.current&&t(n.current)}),s=qo(o.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{a(),t(n.current)},[t]),S.jsx("div",j({style:JAe,ref:o},r))}function eMe(e){return Ve("MuiTabScrollButton",e)}const tMe=He("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),rMe=tMe,nMe=["className","slots","slotProps","direction","orientation","disabled"],oMe=e=>{const{classes:t,orientation:r,disabled:n}=e;return ze({root:["root",r,n&&"disabled"]},eMe,t)},aMe=J(zi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>j({width:40,flexShrink:0,opacity:.8,[`&.${rMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),iMe=d.forwardRef(function(t,r){var n,o;const a=Ge({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:c={},direction:l}=a,f=we(a,nMe),v=Xs(),m=j({isRtl:v},a),h=oMe(m),x=(n=s.StartScrollButtonIcon)!=null?n:M9,w=(o=s.EndScrollButtonIcon)!=null?o:F9,C=Go({elementType:x,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),b=Go({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return S.jsx(aMe,j({component:"div",className:$e(h.root,i),ref:r,role:null,ownerState:m,tabIndex:null},f,{children:l==="left"?S.jsx(x,j({},C)):S.jsx(w,j({},b))}))}),sMe=iMe;function lMe(e){return Ve("MuiTabs",e)}const uMe=He("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),mw=uMe,cMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,HL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ch=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(e,o);else{o.focus();return}}},dMe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:c}=e;return ze({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},lMe,c)},fMe=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${mw.scrollButtons}`]:t.scrollButtons},{[`& .${mw.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>j({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${mw.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),pMe=J("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>j({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),vMe=J("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>j({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),mMe=J("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>j({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),hMe=J(ZAe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),GL={},gMe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTabs"}),o=ra(),a=Xs(),{"aria-label":i,"aria-labelledby":s,action:c,centered:l=!1,children:f,className:v,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:x="primary",onChange:w,orientation:C="horizontal",ScrollButtonComponent:b=sMe,scrollButtons:g="auto",selectionFollowsFocus:_,slots:$={},slotProps:P={},TabIndicatorProps:E={},TabScrollButtonProps:T={},textColor:R="primary",value:I,variant:A="standard",visibleScrollbar:F=!1}=n,L=we(n,cMe),D=A==="scrollable",z=C==="vertical",H=z?"scrollTop":"scrollLeft",G=z?"top":"left",q=z?"bottom":"right",U=z?"clientHeight":"clientWidth",W=z?"height":"width",te=j({},n,{component:m,allowScrollButtonsMobile:h,indicatorColor:x,orientation:C,vertical:z,scrollButtons:g,textColor:R,variant:A,visibleScrollbar:F,fixed:!D,hideScrollbar:D&&!F,scrollableX:D&&!z,scrollableY:D&&z,centered:l&&!D,scrollButtonsHideMobile:!h}),ne=dMe(te),ee=Go({elementType:$.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:te}),Ce=Go({elementType:$.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:te}),[de,oe]=d.useState(!1),[me,Re]=d.useState(GL),[ye,fe]=d.useState(!1),[ge,ce]=d.useState(!1),[pe,ae]=d.useState(!1),[Se,Oe]=d.useState({overflow:"hidden",scrollbarWidth:0}),Ne=new Map,Xe=d.useRef(null),V=d.useRef(null),X=()=>{const ke=Xe.current;let Be;if(ke){const yt=ke.getBoundingClientRect();Be={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollLeftNormalized:Qwe(ke,a?"rtl":"ltr"),scrollWidth:ke.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let ct;if(ke&&I!==!1){const yt=V.current.children;if(yt.length>0){const Jt=yt[Ne.get(I)];ct=Jt?Jt.getBoundingClientRect():null}}return{tabsMeta:Be,tabMeta:ct}},Y=En(()=>{const{tabsMeta:ke,tabMeta:Be}=X();let ct=0,yt;if(z)yt="top",Be&&ke&&(ct=Be.top-ke.top+ke.scrollTop);else if(yt=a?"right":"left",Be&&ke){const Rr=a?ke.scrollLeftNormalized+ke.clientWidth-ke.scrollWidth:ke.scrollLeft;ct=(a?-1:1)*(Be[yt]-ke[yt]+Rr)}const Jt={[yt]:ct,[W]:Be?Be[W]:0};if(isNaN(me[yt])||isNaN(me[W]))Re(Jt);else{const Rr=Math.abs(me[yt]-Jt[yt]),hn=Math.abs(me[W]-Jt[W]);(Rr>=1||hn>=1)&&Re(Jt)}}),ie=(ke,{animation:Be=!0}={})=>{Be?XAe(H,Xe.current,ke,{duration:o.transitions.duration.standard}):Xe.current[H]=ke},se=ke=>{let Be=Xe.current[H];z?Be+=ke:(Be+=ke*(a?-1:1),Be*=a&&_6()==="reverse"?-1:1),ie(Be)},ue=()=>{const ke=Xe.current[U];let Be=0;const ct=Array.from(V.current.children);for(let yt=0;ytke){yt===0&&(Be=ke);break}Be+=Jt[U]}return Be},Ee=()=>{se(-1*ue())},Ie=()=>{se(ue())},at=d.useCallback(ke=>{Oe({overflow:null,scrollbarWidth:ke})},[]),ot=()=>{const ke={};ke.scrollbarSizeListener=D?S.jsx(hMe,{onChange:at,className:$e(ne.scrollableX,ne.hideScrollbar)}):null;const ct=D&&(g==="auto"&&(ye||ge)||g===!0);return ke.scrollButtonStart=ct?S.jsx(b,j({slots:{StartScrollButtonIcon:$.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:C,direction:a?"right":"left",onClick:Ee,disabled:!ye},T,{className:$e(ne.scrollButtons,T.className)})):null,ke.scrollButtonEnd=ct?S.jsx(b,j({slots:{EndScrollButtonIcon:$.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ce},orientation:C,direction:a?"left":"right",onClick:Ie,disabled:!ge},T,{className:$e(ne.scrollButtons,T.className)})):null,ke},Le=En(ke=>{const{tabsMeta:Be,tabMeta:ct}=X();if(!(!ct||!Be)){if(ct[G]Be[q]){const yt=Be[H]+(ct[q]-Be[q]);ie(yt,{animation:ke})}}}),De=En(()=>{D&&g!==!1&&ae(!pe)});d.useEffect(()=>{const ke=Id(()=>{Xe.current&&Y()});let Be;const ct=Rr=>{Rr.forEach(hn=>{hn.removedNodes.forEach(oa=>{var Qn;(Qn=Be)==null||Qn.unobserve(oa)}),hn.addedNodes.forEach(oa=>{var Qn;(Qn=Be)==null||Qn.observe(oa)})}),ke(),De()},yt=qo(Xe.current);yt.addEventListener("resize",ke);let Jt;return typeof ResizeObserver<"u"&&(Be=new ResizeObserver(ke),Array.from(V.current.children).forEach(Rr=>{Be.observe(Rr)})),typeof MutationObserver<"u"&&(Jt=new MutationObserver(ct),Jt.observe(V.current,{childList:!0})),()=>{var Rr,hn;ke.clear(),yt.removeEventListener("resize",ke),(Rr=Jt)==null||Rr.disconnect(),(hn=Be)==null||hn.disconnect()}},[Y,De]),d.useEffect(()=>{const ke=Array.from(V.current.children),Be=ke.length;if(typeof IntersectionObserver<"u"&&Be>0&&D&&g!==!1){const ct=ke[0],yt=ke[Be-1],Jt={root:Xe.current,threshold:.99},Rr=Vi=>{fe(!Vi[0].isIntersecting)},hn=new IntersectionObserver(Rr,Jt);hn.observe(ct);const oa=Vi=>{ce(!Vi[0].isIntersecting)},Qn=new IntersectionObserver(oa,Jt);return Qn.observe(yt),()=>{hn.disconnect(),Qn.disconnect()}}},[D,g,pe,f==null?void 0:f.length]),d.useEffect(()=>{oe(!0)},[]),d.useEffect(()=>{Y()}),d.useEffect(()=>{Le(GL!==me)},[Le,me]),d.useImperativeHandle(c,()=>({updateIndicator:Y,updateScrollButtons:De}),[Y,De]);const ft=S.jsx(mMe,j({},E,{className:$e(ne.indicator,E.className),ownerState:te,style:j({},me,E.style)}));let Et=0;const Ot=d.Children.map(f,ke=>{if(!d.isValidElement(ke))return null;const Be=ke.props.value===void 0?Et:ke.props.value;Ne.set(Be,Et);const ct=Be===I;return Et+=1,d.cloneElement(ke,j({fullWidth:A==="fullWidth",indicator:ct&&!de&&ft,selected:ct,selectionFollowsFocus:_,onChange:w,textColor:R,value:Be},Et===1&&I===!1&&!ke.props.tabIndex?{tabIndex:0}:{}))}),Ue=ke=>{const Be=V.current,ct=Pr(Be).activeElement;if(ct.getAttribute("role")!=="tab")return;let Jt=C==="horizontal"?"ArrowLeft":"ArrowUp",Rr=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&a&&(Jt="ArrowRight",Rr="ArrowLeft"),ke.key){case Jt:ke.preventDefault(),Ch(Be,ct,HL);break;case Rr:ke.preventDefault(),Ch(Be,ct,qL);break;case"Home":ke.preventDefault(),Ch(Be,null,qL);break;case"End":ke.preventDefault(),Ch(Be,null,HL);break}},et=ot();return S.jsxs(fMe,j({className:$e(ne.root,v),ownerState:te,ref:r,as:m},L,{children:[et.scrollButtonStart,et.scrollbarSizeListener,S.jsxs(pMe,{className:ne.scroller,ownerState:te,style:{overflow:Se.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:F?void 0:-Se.scrollbarWidth},ref:Xe,children:[S.jsx(vMe,{"aria-label":i,"aria-labelledby":s,"aria-orientation":C==="vertical"?"vertical":null,className:ne.flexContainer,ownerState:te,onKeyDown:Ue,ref:V,role:"tablist",children:Ot}),de&&ft]}),et.scrollButtonEnd]}))}),L9=gMe;function yMe(e){return Ve("MuiTextField",e)}He("MuiTextField",["root"]);const bMe=["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"],_Me={standard:T$,filled:d9,outlined:P9},xMe=e=>{const{classes:t}=e;return ze({root:["root"]},yMe,t)},wMe=J(f9,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SMe=d.forwardRef(function(t,r){const n=Ge({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:s,color:c="primary",defaultValue:l,disabled:f=!1,error:v=!1,FormHelperTextProps:m,fullWidth:h=!1,helperText:x,id:w,InputLabelProps:C,inputProps:b,InputProps:g,inputRef:_,label:$,maxRows:P,minRows:E,multiline:T=!1,name:R,onBlur:I,onChange:A,onFocus:F,placeholder:L,required:D=!1,rows:z,select:H=!1,SelectProps:G,type:q,value:U,variant:W="outlined"}=n,te=we(n,bMe),ne=j({},n,{autoFocus:a,color:c,disabled:f,error:v,fullWidth:h,multiline:T,required:D,select:H,variant:W}),ee=xMe(ne),Ce={};W==="outlined"&&(C&&typeof C.shrink<"u"&&(Ce.notched=C.shrink),Ce.label=$),H&&((!G||!G.native)&&(Ce.id=void 0),Ce["aria-describedby"]=void 0);const de=ru(w),oe=x&&de?`${de}-helper-text`:void 0,me=$&&de?`${de}-label`:void 0,Re=_Me[W],ye=S.jsx(Re,j({"aria-describedby":oe,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:h,multiline:T,name:R,rows:z,maxRows:P,minRows:E,type:q,value:U,id:de,inputRef:_,onBlur:I,onChange:A,onFocus:F,placeholder:L,inputProps:b},Ce,g));return S.jsxs(wMe,j({className:$e(ee.root,s),disabled:f,error:v,fullWidth:h,ref:r,required:D,color:c,variant:W,ownerState:ne},te,{children:[$!=null&&$!==""&&S.jsx(m9,j({htmlFor:de,id:me},C,{children:$})),H?S.jsx(M$,j({"aria-describedby":oe,id:de,labelId:me,value:U,input:ye},G,{children:i})):ye,x&&S.jsx(R$,j({id:oe},m,{children:x}))]}))}),Bv=SMe,CMe=["getTrigger","target"];function OMe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=o.pageYOffset!==void 0?o.pageYOffset:o.scrollTop),!r&&a!==void 0&&e.currentn}const EMe=typeof window<"u"?window:null;function N9(e={}){const{getTrigger:t=OMe,target:r=EMe}=e,n=we(e,CMe),o=d.useRef(),[a,i]=d.useState(()=>t(o,n));return d.useEffect(()=>{const s=()=>{i(t(o,j({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),a}var L$={},hw={};const PMe=Qa(ICe);var KL;function Qe(){return KL||(KL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=PMe}(hw)),hw}var $Me=We;Object.defineProperty(L$,"__esModule",{value:!0});var zv=L$.default=void 0,RMe=$Me(Qe()),TMe=S;zv=L$.default=(0,RMe.default)((0,TMe.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var lp=function(){return lp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(DNe,null):null,t&&d.createElement(kFe,null),d.createElement(G9,null))},AFe=d.createElement(jFe,null);t8.propTypes={alwaysOn:O.bool,children:O.node,className:O.string,color:O.oneOf(["default","inherit","primary","secondary","transparent"]),container:a0,open:O.bool,toolbar:O.element,userMenu:O.oneOfType([O.element,O.bool])};var MFe=d.createElement(q$,null),wl="RaAppBar",Il={appBar:"".concat(wl,"-appBar"),toolbar:"".concat(wl,"-toolbar"),menuButton:"".concat(wl,"-menuButton"),menuButtonIconClosed:"".concat(wl,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(wl,"-menuButtonIconOpen"),title:"".concat(wl,"-title")},FFe=J(jOe,{name:wl,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Il.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Il.menuButton)]={marginRight:"0.2em"},t["& .".concat(Il.title)]={},t}),Y$={},LFe=We;Object.defineProperty(Y$,"__esModule",{value:!0});var r8=Y$.default=void 0,NFe=LFe(Qe()),DFe=S;r8=Y$.default=(0,NFe.default)((0,DFe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var J$={},BFe=We;Object.defineProperty(J$,"__esModule",{value:!0});var n8=J$.default=void 0,zFe=BFe(Qe()),UFe=S;n8=J$.default=(0,zFe.default)((0,UFe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var cp=function(){return cp=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb.closest("ul").getBoundingClientRect().bottom?_=g.lastChild:_=g.firstChild),_&&g===_.closest("ul")?o(b.dataset.index,c.current):(C.preventDefault(),C.stopPropagation()),b.classList.remove("drag-active"),document.removeEventListener("dragover",v)},w=function(C){C.preventDefault(),C.dataTransfer.dropEffect="move"};return d.createElement(vLe,{key:a,draggable:o?"true":void 0,onDrag:o?h:void 0,onDragStart:o?m:void 0,onDragEnd:o?x:void 0,onDragOver:o?w:void 0,"data-index":i},d.createElement("label",{htmlFor:"switch_".concat(i)},d.createElement(F$,{checked:t,onChange:n,name:i,id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),d.createElement(it,{variant:"body2",component:"span"},d.createElement(Wo,{label:r,source:a,resource:s}))),o&&d.createElement(l8,{className:"dragIcon",color:"disabled",fontSize:"small"}))},vLe=J("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}}),ns=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n$?P=ns(ns(ns(ns([],s.slice(0,$),!0),[s[_]],!1),s.slice($,_),!0),s.slice(_+1),!0):P=ns(ns(ns(ns([],s.slice(0,_),!0),s.slice(_+1,$+1),!0),[s[_]],!1),s.slice($+1),!0),c(P),m(function(E){return P.filter(function(T){return E.includes(T.index)}).map(function(T){return T.index})})}},w=function(){m([])},C=function(){m(s.map(function(b){return b.index}))};return d.createElement(On,{pt:.5},d.createElement(On,{component:"ul",sx:{paddingInlineStart:0,m:0}},s.map(function(b){return d.createElement(u8,{key:b.index,source:b.source,label:b.label,index:b.index,selected:v.includes(b.index),onToggle:h,onMove:x})})),d.createElement(On,{onDrop:function(b){return b.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},d.createElement($r,{size:"small",onClick:w},a("ra.inspector.hideAll",{_:"Hide All"})),d.createElement($r,{size:"small",onClick:C},a("ra.inspector.showAll",{_:"Show All"}))))},s2={},hLe=We;Object.defineProperty(s2,"__esModule",{value:!0});var c8=s2.default=void 0,gLe=hLe(Qe()),yLe=S;c8=s2.default=(0,gLe.default)((0,yLe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var l2={},bLe=We;Object.defineProperty(l2,"__esModule",{value:!0});var d8=l2.default=void 0,_Le=bLe(Qe()),xLe=S;d8=l2.default=(0,_Le.default)((0,xLe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var wLe=function(){var e=je();return yz("ra.configurable.inspector.title",{_:"Inspector"}),d.createElement(it,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},f8=function(){var e=WP(),t=e.isEnabled,r=e.disable,n=e.title,o=e.titleOptions,a=e.editor,i=e.preferenceKey,s=d.useRef(!1),c=$0e(i),l=ra(),f=je(),v=d.useState(0),m=v[0],h=v[1],x=pn("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8,y:8}),w=x[0],C=x[1],b=d.useState(),g=b[0],_=b[1],$=function(T){var R=document==null?void 0:document.elementFromPoint(T.clientX,T.clientY);R.id==="inspector-dialog-title"&&(s.current=!0,T.dataTransfer.effectAllowed="move",T.dataTransfer.setData("inspector",""),setTimeout(function(){T.target.classList.add("hide")},0),_({x:T.clientX-w.x,y:T.clientY-w.y}))},P=function(T){s.current&&(C({x:T.clientX-g.x,y:T.clientY-g.y}),T.target.classList.remove("hide"),s.current=!1)};d.useEffect(function(){if(t){var T=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",T),function(){document==null||document.removeEventListener("dragover",T)}}},[t]),d.useEffect(function(){if(t){var T=function(){window==null||window.requestAnimationFrame(function(){C(function(R){return{x:Math.min(R.x,(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8),y:Math.min(R.y,(window==null?void 0:window.innerHeight)-50)}})})};return T(),window==null||window.addEventListener("resize",T),function(){window==null||window.removeEventListener("resize",T)}}},[t,C,l.breakpoints.values.sm]);var E=function(){c(),h(function(T){return T+1})};return t?d.createElement(SLe,{className:dp.modal,elevation:3,draggable:!0,onDragStart:$,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:dp.title},d.createElement(it,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&f(n,o)),d.createElement("span",{id:"inspector-toolbar"}),i&&d.createElement(or,{"aria-label":f("ra.action.remove"),onClick:E,size:"small"},d.createElement(d8,{fontSize:"inherit"})),d.createElement(or,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(c8,{fontSize:"inherit"}))),d.createElement("div",{className:dp.content,key:m},d.createElement(gz,{value:i},a||d.createElement(wLe,null)))):null},dg="RaInspector",dp={modal:"".concat(dg,"-modal"),title:"".concat(dg,"-title"),content:"".concat(dg,"-content")},SLe=J(Ys,{name:dg,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(dp.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(dp.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});f8.displayName="Inspector";var Cl=function(){return Cl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element"),Rb.createPortal(d.createElement($Le,LC({title:r,defaultTitle:t,preferenceKey:n},o)),i)):null},o1=O.oneOfType([O.string,O.element]);Zs.propTypes={defaultTitle:O.string,className:O.string,record:O.any,title:o1};var TLe=function(e){var t=Lr().pathname,r=d.useRef(t);d.useEffect(function(){t!==r.current&&e()},[t,e])},NC=function(){return NC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0,A=aDe(C===!1||C===void 0?void 0:!C,l||!I||T||R);VP(v==="submit"&&(c&&(c.onSuccess||c.onError)||m),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var F=d.useCallback(function(z){return eN(void 0,void 0,void 0,function(){var H;return tN(this,function(G){switch(G.label){case 0:return $!=null&&$.save?[4,$.save(z,pp(pp({},c),{transform:m}))]:[3,2];case 1:H=G.sent(),G.label=2;case 2:return H!=null&&wz(H,_.setError),[2]}})})},[_.setError,$,c,m]),L=d.useCallback(function(z){return eN(void 0,void 0,void 0,function(){return tN(this,function(H){switch(H.label){case 0:return s&&s(z),z.defaultPrevented?[2]:v!=="button"?[3,2]:(z.stopPropagation(),[4,_.handleSubmit(F)(z)]);case 1:H.sent(),H.label=2;case 2:return[2]}})})},[s,v,_,F]),D=i&&g(i,{_:i});return d.createElement(oDe,pp({variant:x,type:v,color:r,"aria-label":D,disabled:A,onClick:L},b),R?d.createElement(Md,{sx:tDe,size:14,thickness:3,color:"inherit"}):o,D)},tDe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},rDe=d.createElement(I8,null);Hv.propTypes={className:O.string,invalid:O.bool,label:O.string,variant:O.oneOf(["text","outlined","contained"]),icon:O.element,alwaysEnable:O.bool};var nDe="RaSaveButton",oDe=J($r,{name:nDe,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}),aDe=function(e,t){return typeof e>"u"?t:e},iDe=function(){return ve.createElement(lDe,{onClick:uDe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},sDe="RaSkipNavigationButton",lDe=J(Nt,{name:sDe,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})}}}),uDe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},tO=function(){return tO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=o-1,color:"primary"},d.createElement(U8,{fontSize:"small"})))},P2={},DDe=We;Object.defineProperty(P2,"__esModule",{value:!0});var V8=P2.default=void 0,BDe=DDe(Qe()),zDe=S;V8=P2.default=(0,BDe.default)((0,zDe.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff");var uO=function(){return uO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var ee=D[0];ee.id;var Ce=VDe(ee,["id"]);te.current=Ce;for(var de in te.current)te.current[de]=null}var oe=d.useCallback(function(ce){ce===void 0&&(ce=void 0);var pe=ce;ce==null&&(pe=te.current,d.Children.count(s)===1&&d.isValidElement(d.Children.only(s))&&!d.Children.only(s).props.source&&d.Children.map(s,function(ae){return d.isValidElement(ae)&&ae.type!==eC}).some(Boolean)?pe="":(pe=pe||{},d.Children.forEach(s,function(ae){var Se;d.isValidElement(ae)&&ae.type!==eC&&ae.props.source&&(pe[ae.props.source]=(Se=ae.props.defaultValue)!==null&&Se!==void 0?Se:null)}))),L(pe),q("".concat(f,".").concat(D.length),{defaultValue:pe})},[L,s,q,f,D.length]),me=function(ce){return function(pe){oe(),ce&&ce(pe)}},Re=d.useCallback(function(ce,pe){z(ce,pe)},[z]),ye=d.useCallback(function(){G([]),A(!1)},[G]),fe=vt(W,f),ge=d.useMemo(function(){return{total:D.length,add:oe,remove:ne,reOrder:Re,source:f}},[oe,D.length,Re,ne,f]);return D?d.createElement(F8.Provider,{value:ge},d.createElement(WDe,{className:Je(c,E&&"fullwidth",(m||v)&&"disabled"),sx:T},d.createElement("ul",{className:Sr.list},D.map(function(ce,pe){return d.createElement(SDe,{key:ce.id,disabled:m||v,disableRemove:b,disableReordering:g,fields:D,getItemLabel:P,index:pe,member:"".concat(f,".").concat(pe),onRemoveField:ne,onReorder:Re,record:fe&&fe[pe]||{},removeButton:o,reOrderButtons:i,resource:l,source:f,inline:_},s)})),!(m||v)&&!(x&&(w||b))&&d.createElement("div",{className:Sr.buttons},!x&&d.createElement("div",{className:Sr.add},d.cloneElement(r,{className:Je("button-add","button-add-".concat(f)),onClick:me(r.props.onClick)})),D.length>0&&!w&&!b&&d.createElement("div",{className:Sr.clear},d.createElement(r1,{isOpen:I,title:U("ra.action.clear_array_input"),content:U("ra.message.clear_array_input"),onConfirm:ye,onClose:function(){return A(!1)}}),d.createElement(UDe,{onClick:function(){return A(!0)}}))))):null};Jp.propTypes={addButton:O.element,removeButton:O.element,children:O.node,className:O.string,field:O.object,fields:O.array,fieldState:O.object,formState:O.object,fullWidth:O.bool,inline:O.bool,record:O.object,source:O.string,resource:O.string,translate:O.func,readOnly:O.bool,disabled:O.bool,disableAdd:O.bool,disableRemove:O.oneOfType([O.func,O.bool]),TransitionProps:O.shape({})};var WDe=J("div",{name:ka,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,o=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(Sr.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)},r[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(Sr.index)]=(n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)},n[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(Sr.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(Sr.form)]={flex:2},t["& .".concat(Sr.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(Sr.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(Sr.buttons)]={display:"flex"},t["& .".concat(Sr.add)]={borderBottom:"none"},t["& .".concat(Sr.clear)]={borderBottom:"none"},t["& .".concat(Sr.line,":hover > .").concat(Sr.action)]={visibility:"visible"},t}),qDe=function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(f){try{l(n.next(f))}catch(v){i(v)}}function c(f){try{l(n.throw(f))}catch(v){i(v)}}function l(f){f.done?a(f.value):o(f.value).then(s,c)}l((n=n.apply(e,t||[])).next())})},HDe=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=R3e&&(a=$3e,i=!1,t=new S3e(t));e:for(;++o0&&$.length>0&&$.every(function(P){return x.includes(P)}),onChange:_,onClick:function(P){return P.stopPropagation()}})),d.Children.map(t,function(P,E){return d.isValidElement(P)?d.createElement(g3e,{className:Je(Ze.headerCell,"column-".concat(P.props.source)),sort:v,field:P,isSorting:v.field===(P.props.sortBy||P.props.source),key:P.props.source||E,resource:c,updateSort:g}):null})))};j2.propTypes={children:O.node,className:O.string,sort:O.exact({field:O.string,order:O.oneOf(["ASC","DESC"])}),data:O.arrayOf(O.any),hasExpand:O.bool,hasBulkActions:O.bool,isRowSelectable:O.func,isRowExpandable:O.func,onSelect:O.func,onToggleItem:O.func,resource:O.string,selectedIds:O.arrayOf(O.any),setSort:O.func};j2.displayName="DatagridHeader";var B3e=function(e){var t=e.children,r=e.value;return ve.createElement(G8.Provider,{value:r},t)};const z3e=B3e;var A2={},U3e=We;Object.defineProperty(A2,"__esModule",{value:!0});var eU=A2.default=void 0,V3e=U3e(Qe()),W3e=S;eU=A2.default=(0,V3e.default)((0,W3e.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var mO=function(){return mO=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?I=os(os(os(os([],c.slice(0,R),!0),[c[T]],!1),c.slice(R,T),!0),c.slice(T+1),!0):I=os(os(os(os([],c.slice(0,T),!0),c.slice(T+1,R+1),!0),[c[T]],!1),c.slice(R+1),!0),l(I),h(function(A){return I.filter(function(F){return A.includes(F.index)}).map(function(F){return F.index})})}};return d.createElement(d.Fragment,null,w?d.createElement(Vr,{title:C},d.createElement(or,tb({"aria-label":C,color:"primary",onClick:b,size:"large"},sN(e)),d.createElement(hO,null))):d.createElement(o4e,tb({size:"small",onClick:b,startIcon:d.createElement(hO,null)},sN(e)),C),d.createElement(I$,{open:!!a,anchorEl:a,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d.createElement(On,{component:"ul",p:1,my:0},c.map(function(P){return d.createElement(u8,{key:P.index,source:P.source,label:P.label,index:P.index,selected:m.includes(P.index),onToggle:_,onMove:$})}))))},o4e=J($r,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),sN=function(e){e.resource,e.preferenceKey;var t=n4e(e,["resource","preferenceKey"]);return t};function a4e(e,t){for(var r=-1,n=e==null?0:e.length;++r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1] element instead.")})},[r]);var f=function(){var m=a.getValues();return r.filter(function(h){var x=vt(m,h.props.source);return h.props.alwaysOn||c[h.props.source]||x!==""&&typeof x<"u"})},v=d.useCallback(function(m){return l(m.currentTarget.dataset.key)},[l]);return d.createElement(dz,{prefix:"resources.".concat(o,".fields"),concatenate:!1},d.createElement(ABe,js({className:t},kBe(n),{onSubmit:TBe}),f().map(function(m){return d.createElement(lU,{key:m.key||m.props.source,filterElement:m,handleHide:v,resource:o,className:nb.filterFormInput})}),d.createElement("div",{className:nb.clearFix})))},TBe=function(e){return e.preventDefault(),!1};uU.propTypes={resource:O.string,filters:O.arrayOf(O.node).isRequired,displayedFilters:O.object,hideFilter:O.func,initialValues:O.object,className:O.string};var kBe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=L2(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},IBe=function(e,t){return js(js({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return zb(js({},r),n.props.source,n.props.defaultValue)},{})),e)},jBe=function(e){return e.preventDefault(),e.stopPropagation(),!1},yO="RaFilterForm",nb={clearFix:"".concat(yO,"-clearFix"),filterFormInput:"".concat(yO,"-filterFormInput")},ABe=J("form",{name:yO,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(nb.clearFix)]={clear:"right"},t["& .".concat(nb.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),MBe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=cU(e,o,t),n},(r=sU(t))!==null&&r!==void 0?r:{})},cU=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return vt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=cU(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return vt(r,t,"")},N2={},FBe=We;Object.defineProperty(N2,"__esModule",{value:!0});var dU=N2.default=void 0,LBe=FBe(Qe()),NBe=S;dU=N2.default=(0,LBe.default)((0,NBe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var fU=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=Ct(e),i=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return d.createElement(so,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},d.createElement(Wo,{label:r.props.label,source:r.props.source,resource:a}))});fU.propTypes={filter:O.element.isRequired,onShow:O.func.isRequired,resource:O.string,autoFocus:O.bool};var D2=function(e){return pn("".concat(e,".savedQueries"),[])},B2=function(e){return Array.isArray(e)?e.filter(function(t){return DBe(t)}):[]},DBe=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")},BBe=function(e){var t=e.open,r=e.onClose,n=je(),o=tn(),a=o.resource,i=o.filterValues,s=o.displayedFilters,c=o.sort,l=o.perPage,f=D2(a),v=f[0],m=f[1],h=d.useState(""),x=h[0],w=h[1],C=function(_){w(_.target.value)},b=function(_){_.preventDefault(),g()},g=function(){var _={label:x,value:{filter:i,sort:c,perPage:l,displayedFilters:s}},$=B2(v);m($.concat(_)),w(""),r()};return d.createElement(Fv,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(Nv,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(Lv,null,d.createElement("form",{onSubmit:b},d.createElement(Bv,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:x,onChange:C}))),d.createElement($$,null,d.createElement($r,{onClick:r},n("ra.action.cancel")),d.createElement($r,{onClick:g,color:"primary"},n("ra.action.save"))))},mN=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n component requires the prop to be set");var F=s.filter(function(oe){return!oe.props.alwaysOn&&!x[oe.props.source]&&typeof vt(w,oe.props.source)>"u"}),L=d.useCallback(function(oe){oe.preventDefault(),I(!0),A.current=oe.currentTarget},[A,I]),D=d.useCallback(function(){I(!1)},[I]),z=d.useCallback(function(oe){var me=oe.source,Re=oe.defaultValue;g(me,Re===""?void 0:Re),setTimeout(function(){var ye=document.querySelector("input[name='".concat(me,"']"));ye&&ye.focus()},50),I(!1)},[g,I]),H=d.useState(!1),G=H[0],q=H[1],U=function(){q(!1)},W=function(){I(!1),q(!0)},te=d.useState(!1),ne=te[0],ee=te[1],Ce=function(){ee(!1)},de=function(){I(!1),ee(!0)};return F.length===0&&P.length===0&&!$?null:d.createElement(WBe,bO({className:r},UBe(i)),d.createElement(Nt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:a,size:o},d.createElement(dU,null)),d.createElement(Z0,{open:R,anchorEl:A.current,onClose:D},F.map(function(oe,me){return d.createElement(fU,{key:oe.props.source,filter:oe,resource:c,onShow:z,autoFocus:me===0})}),P.map(function(oe,me){return Bo(oe.value,{filter:w,sort:_,perPage:C,displayedFilters:x})?d.createElement(so,{onClick:de,key:me},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:oe.label})):d.createElement(so,{onClick:function(){v({search:Yl.stringify({filter:JSON.stringify(oe.value.filter),sort:oe.value.sort.field,order:oe.value.sort.order,page:1,perPage:oe.value.perPage,displayedFilters:JSON.stringify(oe.value.displayedFilters)})}),I(!1)},key:me},oe.label)}),$&&!E&&!n&&d.createElement(so,{onClick:W},l("ra.saved_queries.new_label",{_:"Save current query..."})),$&&d.createElement(so,{onClick:function(){b({},{},!1),I(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&d.createElement(d.Fragment,null,d.createElement(BBe,{open:G,onClose:U}),d.createElement(zBe,{open:ne,onClose:Ce})))},UBe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=pU(e,["displayedFilters","filterValues","showFilter"]);return t};vU.propTypes={resource:O.string,filters:O.arrayOf(O.node),displayedFilters:O.object,filterValues:O.object,showFilter:O.func,className:O.string};var VBe="RaFilterButton",WBe=J("div",{name:VBe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),z2={},qBe=We;Object.defineProperty(z2,"__esModule",{value:!0});var mU=z2.default=void 0,HBe=qBe(Qe()),GBe=S;mU=z2.default=(0,HBe.default)((0,GBe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var _O=function(){return _O=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb-1)throw new Error(w("ra.navigation.page_out_of_boundaries",{page:R+1}));h(R+1)},[b,h,w]),_=d.useCallback(function(T){x(T.target.value)},[x]),$=d.useCallback(function(T){var R=T.from,I=T.to,A=T.count;return A===-1&&l?w("ra.navigation.partial_page_range_info",{offsetBegin:R,offsetEnd:I,_:"%{from}-%{to} of more than %{to}"}):w("ra.navigation.page_range_info",{offsetBegin:R,offsetEnd:I,total:A===-1?I:A,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[w,l]),P=d.useCallback(function(T){return w("ra.navigation.".concat(T),{_:"Go to ".concat(T," page")})},[w]);if(c)return d.createElement(Ld,{variant:"dense"});if(m===0||f<1||m!=null&&f>b)return a!=null,null;if(C)return d.createElement(UL,ob({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,rowsPerPageOptions:JBe,component:"span",labelDisplayedRows:$},Np(i)));var E=n||(!c&&m!=null?gU:void 0);return d.createElement(UL,ob({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,onRowsPerPageChange:_,ActionsComponent:E,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:w("ra.navigation.page_rows_per_page"),labelDisplayedRows:$,getItemAriaLabel:P,rowsPerPageOptions:r},Np(i)))});el.propTypes={actions:a0,limit:O.element,rowsPerPageOptions:O.arrayOf(O.oneOfType([O.number,O.exact({label:O.string.isRequired,value:O.number.isRequired})]))};var YBe=[5,10,25,50],JBe=[],ab=function(){return ab=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ge.target.value>"u")){var ce=ge.target;ee(ce.value);var pe=ce.valueAsNumber!==void 0&&ce.valueAsNumber!==null&&!isNaN(ce.valueAsNumber)?m?m(ce.valueAsNumber):ce.valueAsNumber:m?m(ce.value):pze(ce.value);A.onChange(pe)}},oe=function(ge){v&&v(ge),Ce.current=!0},me=function(){U&&U(),Ce.current=!1;var ge=a(A.value);ee(function(ce){return ce!==ge?ge:ce})},Re=i!==!1||(z||H)&&D,ye=A.ref,fe=bN(A,["ref"]);return d.createElement(Bv,cs({id:G},fe,{inputRef:ye,value:ne,onChange:de,onFocus:oe,onBlur:me,className:Je("ra-input","ra-input-".concat(x),t),type:"number",size:"small",variant:$,error:(z||H)&&D,disabled:E||T,readOnly:T,helperText:Re?d.createElement(ou,{touched:z||H,error:L==null?void 0:L.message,helperText:i}):null,label:d.createElement(Wo,{label:s,source:x,resource:h,isRequired:q}),margin:c,inputProps:cs(cs({},W),{readOnly:T})},Bd(R)))};zl.propTypes={label:O.oneOfType([O.string,O.bool,O.element]),resource:O.string,source:O.string,step:O.oneOfType([O.string,O.number])};var pze=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},vze=function(e){return e==null||isNaN(e)?"":e.toString()},V2={},mze=We;Object.defineProperty(V2,"__esModule",{value:!0});var W2=V2.default=void 0,hze=mze(Qe()),gze=S;W2=V2.default=(0,hze.default)((0,gze.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var q2={},yze=We;Object.defineProperty(q2,"__esModule",{value:!0});var _U=q2.default=void 0,bze=yze(Qe()),_ze=S;_U=q2.default=(0,bze.default)((0,_ze.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var sb=function(){return sb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r isn't designed to be used with a label prop. Use if you need a label.");return d.createElement(Oze,wO({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Ec,{position:"end"},d.createElement(mU,{color:"disabled"}))},size:"small"},r))},Cze="RaSearchInput",Oze=J(Er,{name:Cze,overridesResolver:function(e,t){return t.root}})({marginTop:0}),sd=function(){return sd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!v.message?"ra.auth.sign_in_error":v.message,{type:"error",messageArgs:{_:typeof v=="string"?v:v&&v.message?v.message:void 0}})})};return d.createElement(kze,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Io,{className:Tc.content},d.createElement(Er,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:uo(),fullWidth:!0}),d.createElement(Er,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:uo(),fullWidth:!0}),d.createElement($r,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:Tc.button},o?d.createElement(Md,{className:Tc.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},hg="RaLoginForm",Tc={content:"".concat(hg,"-content"),button:"".concat(hg,"-button"),icon:"".concat(hg,"-icon")},kze=J(i0,{name:hg,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Tc.content)]={width:300},t["& .".concat(Tc.button)]={marginTop:r.spacing(2)},t["& .".concat(Tc.icon)]={margin:r.spacing(.3)},t});wU.propTypes={redirectTo:O.string};var SO=function(){return SO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?d.createElement(PU,null):r;return o?d.createElement(Bze,PO({className:Je("edit-page",a)},Dze(l)),d.createElement(Zs,{title:c,defaultTitle:h,preferenceKey:"".concat(m,".edit.title")}),w,d.createElement("div",{className:Je(jc.main,(t={},t[jc.noActions]=!w,t))},d.createElement(s,{className:jc.card},x?o:d.createElement(Io,null," ")),n)):null};RU.propTypes={actions:O.oneOfType([O.element,O.bool]),aside:O.element,className:O.string,component:a0,defaultTitle:O.any,hasList:O.bool,hasShow:O.bool,mutationMode:O.oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:O.object,record:O.object,redirect:O.oneOfType([O.string,O.bool,O.func]),resource:O.string,save:O.func,title:O.node};var Dze=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isFetching,e.isLoading,e.location,e.match,e.options,e.queryOptions,e.mutationOptions,e.permissions,e.refetch,e.removeMiddleware,e.resource,e.save,e.saving,e.transform;var t=$U(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"]);return t},bg="RaEdit",jc={main:"".concat(bg,"-main"),noActions:"".concat(bg,"-noActions"),card:"".concat(bg,"-card")},Bze=J("div",{name:bg,overridesResolver:function(e,t){return t.root}})((Pf={},Pf["& .".concat(jc.main)]={display:"flex",alignItems:"flex-start"},Pf["& .".concat(jc.noActions)]={marginTop:"1em"},Pf["& .".concat(jc.card)]={flex:"1 1 auto"},Pf)),$O=function(){return $O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},kO=function(){return kO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&C?i6e:r;return!o||!w&&l?null:d.createElement(l6e,IO({className:Je("show-page",a)},s6e(v)),d.createElement(Zs,{title:f,defaultTitle:x,preferenceKey:"".concat(h,".show.title")}),b!==!1&&b,d.createElement("div",{className:Je(Mc.main,(t={},t[Mc.noActions]=!b,t))},d.createElement(s,{className:Mc.card},o),n))};zU.propTypes={actions:O.oneOfType([O.element,O.bool]),children:O.node,className:O.string,emptyWhileLoading:O.bool,title:O.any};var s6e=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;var t=BU(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},xg="RaShow",Mc={main:"".concat(xg,"-main"),noActions:"".concat(xg,"-noActions"),card:"".concat(xg,"-card")},l6e=J("div",{name:xg,overridesResolver:function(e,t){return t.root}})(($f={},$f["& .".concat(Mc.main)]={display:"flex"},$f["& .".concat(Mc.noActions)]={marginTop:"1em"},$f["& .".concat(Mc.card)]={flex:"1 1 auto"},$f)),jO=function(){return jO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var x=ht(e);if(!x)return null;var w=vt(x,l);if(w==null||w==="")return r?d.createElement(it,Vl({component:"span",variant:"body2",className:t},Ka(m)),r&&h(r,{_:r})):null;var C=v(w),b="";if(i&&c)b=_w?C.toLocaleString(n,o):C.toLocaleString();else if(c){var g=o??(typeof w=="string"&&w.length<=10?{timeZone:"UTC"}:void 0);b=_w?C.toLocaleDateString(n,g):C.toLocaleDateString()}else i&&(b=_w?C.toLocaleTimeString(n,o):C.toLocaleTimeString());return d.createElement(it,Vl({component:"span",variant:"body2",className:t},Ka(m)),b)};Z2.propTypes=Vl(Vl(Vl({},it.propTypes),wa),{locales:O.oneOfType([O.string,O.arrayOf(O.string)]),options:O.object,showTime:O.bool,showDate:O.bool});Z2.displayName="DateFieldImpl";var dn=vu(Z2),y6e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},_w=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Fc=function(){return Fc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),wi=function(e){var t=e.children,r=e.debounce,n=e.filter,o=n===void 0?T6e:n,a=e.page,i=a===void 0?1:a,s=e.pagination,c=s===void 0?null:s,l=e.perPage,f=l===void 0?25:l,v=e.reference,m=e.resource,h=e.sort,x=h===void 0?k6e:h,w=e.source,C=w===void 0?"id":w,b=e.target,g=ht(e),_=_be({debounce:r,filter:o,page:i,perPage:f,record:g,reference:v,resource:m,sort:x,source:C,target:b});return ve.createElement(uu,{value:v},ve.createElement(FP,{value:_},t,c))};wi.propTypes={children:O.node.isRequired,className:O.string,filter:O.object,label:wa.label,perPage:O.number,record:O.any,reference:O.string.isRequired,resource:O.string,sortBy:O.string,sortByOrder:wa.sortByOrder,source:O.string,sort:O.exact({field:O.string,order:O.oneOf(["ASC","DESC"])}),target:O.string.isRequired};O.element,O.string,O.exact({field:O.string,order:O.oneOf(["ASC","DESC"])}),O.any,O.bool,O.element,O.string,O.func;var T6e={},k6e={field:"id",order:"DESC"},ql=function(){return ql=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};QU.propTypes={children:O.node};var hp=function(){return hp=Object.assign||function(e){for(var t,r=1,n=arguments.length;rnew Date(e).getTime(),h9e=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),o=(r+(t.getMonth()+1).toString()).slice(-2),a=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),s=(r+t.getMinutes().toString()).slice(-2);return`${n}-${o}-${a}T${i}:${s}`};var sR={},g9e=We;Object.defineProperty(sR,"__esModule",{value:!0});var WO=sR.default=void 0,y9e=g9e(Qe()),b9e=S;WO=sR.default=(0,y9e.default)((0,b9e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var lR={},_9e=We;Object.defineProperty(lR,"__esModule",{value:!0});var uR=lR.default=void 0,x9e=_9e(Qe()),w9e=S;uR=lR.default=(0,x9e.default)((0,w9e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var cR={},S9e=We;Object.defineProperty(cR,"__esModule",{value:!0});var dR=cR.default=void 0,C9e=S9e(Qe()),O9e=S;dR=cR.default=(0,C9e.default)((0,O9e.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep");var fR={},E9e=We;Object.defineProperty(fR,"__esModule",{value:!0});var lV=fR.default=void 0,P9e=E9e(Qe()),$9e=S;lV=fR.default=(0,P9e.default)((0,$9e.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");var pR={},R9e=We;Object.defineProperty(pR,"__esModule",{value:!0});var uV=pR.default=void 0,T9e=R9e(Qe()),k9e=S;uV=pR.default=(0,T9e.default)((0,k9e.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");const I9e=e=>{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},j9e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),A9e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await Jl(t,{method:"GET"}))["m.homeserver"].base_url}catch{return`https://${e}`}},M9e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await Jl(t,{method:"GET"})).json.server_version},F9e=async e=>{const t=`${e}/_matrix/client/versions`;return(await Jl(t,{method:"GET"})).json},L9e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await Jl(t,{method:"GET"})).json.flows},N9e=e=>`${localStorage.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function CN(){const e=localStorage.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function D9e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const B9e=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(zd,{...a,children:[S.jsx(Hv,{label:"resources.delete_media.action.send",icon:S.jsx(dR,{})}),S.jsx(Nt,{label:"ra.action.cancel",onClick:t,children:S.jsx(uR,{})})]});return S.jsxs(Fv,{open:e,onClose:t,children:[S.jsx(Nv,{children:n("resources.delete_media.action.send")}),S.jsxs(Lv,{children:[S.jsx(J0,{children:n("resources.delete_media.helper.send")}),S.jsxs(Ud,{toolbar:S.jsx(o,{}),onSubmit:r,children:[S.jsx(b1,{fullWidth:!0,source:"before_ts",label:"resources.delete_media.fields.before_ts",defaultValue:0,parse:iR}),S.jsx(zl,{fullWidth:!0,source:"size_gt",label:"resources.delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),S.jsx(Ns,{fullWidth:!0,source:"keep_profiles",label:"resources.delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},z9e=e=>{const t=ra(),[r,n]=d.useState(!1),o=Ht(),[a,{isLoading:i}]=Pd(),s=()=>n(!0),c=()=>n(!1),l=f=>{a("delete_media",{meta:f},{onSuccess:()=>{o("resources.delete_media.action.send_success"),c()},onError:()=>o("resources.delete_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{...e,label:"resources.delete_media.action.send",onClick:s,disabled:i,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:Xc(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:S.jsx(dR,{})}),S.jsx(B9e,{open:r,onClose:c,onSubmit:l})]})},U9e=e=>{const t=ht(),r=je(),n=ei(),o=Ht(),[a,{isLoading:i}]=mv(),[s]=Pd();if(!t)return null;const c=()=>{a("protect_media",{data:t},{onSuccess:()=>{o("resources.protect_media.action.send_success"),n()},onError:()=>o("resources.protect_media.action.send_failure",{type:"error"})})},l=()=>{s("protect_media",{id:t.id},{onSuccess:()=>{o("resources.protect_media.action.send_success"),n()},onError:()=>o("resources.protect_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[t.quarantined_by&&S.jsx(Vr,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,disabled:!0,children:S.jsx(id,{})})})}),t.safe_from_quarantine&&S.jsx(Vr,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:l,disabled:i,children:S.jsx(zv,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Vr,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:c,disabled:i,children:S.jsx(uV,{})})})})]})},V9e=e=>{const t=ht(),r=je(),n=ei(),o=Ht(),[a,{isLoading:i}]=mv(),[s]=Pd();if(!t)return null;const c=()=>{a("quarantine_media",{data:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},l=()=>{s("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[t.safe_from_quarantine&&S.jsx(Vr,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,disabled:!0,children:S.jsx(id,{})})})}),t.quarantined_by&&S.jsx(Vr,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:l,disabled:i,children:S.jsx(WO,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Vr,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:c,disabled:i,children:S.jsx(WO,{})})})})]})},cV=({media_id:e,label:t})=>{const r=je(),n=N9e(e);return S.jsxs(On,{style:{whiteSpace:"pre"},children:[S.jsx(Vr,{title:r("resources.users_media.action.open"),children:S.jsx("span",{children:S.jsx(Nt,{component:_a,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:S.jsx(lV,{})})})}),t]})},W9e=({source:e})=>{var o;const t=localStorage.getItem("home_server"),r=ht();if(!r)return null;const n=(o=Tb.get(r,e))==null?void 0:o.toString();return n?S.jsx(cV,{media_id:`${t}/${n}`,label:n}):null},q9e=({source:e})=>{var o;const t=ht();if(!t)return null;const r=(o=Tb.get(t,e))==null?void 0:o.toString();if(!r)return null;const n=r.replace("mxc://","");return S.jsx(cV,{media_id:n,label:r})},H9e=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),G9e=e=>{const t=je();return S.jsx(x1,{...e,actions:S.jsx(K9e,{}),children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:S.jsx(fu,{}),children:[S.jsx(dn,{source:"received_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Ha,{source:"user_id",reference:"users",children:S.jsx(Me,{source:"id"})}),S.jsx(Ci,{source:"score"}),S.jsx(Me,{source:"reason"}),S.jsx(Me,{source:"name"}),S.jsx(Me,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),S.jsx(Ha,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:S.jsx(Me,{source:"id"})})]}),S.jsxs(Fo,{label:"synapseadmin.reports.tabs.detail",icon:S.jsx(oR,{}),path:"detail",children:[S.jsx(dn,{source:"event_json.origin_server_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Ha,{source:"sender",reference:"users",children:S.jsx(Me,{source:"id"})}),S.jsx(Me,{source:"sender",label:"Sender (raw user ID)"}),S.jsx(Me,{source:"event_id"}),S.jsx(Me,{source:"event_json.origin"}),S.jsx(Me,{source:"event_json.type"}),S.jsx(Me,{source:"event_json.content.msgtype"}),S.jsx(Me,{source:"event_json.content.body"}),S.jsx(Me,{source:"event_json.content.info.mimetype"}),S.jsx(q9e,{source:"event_json.content.url"}),S.jsx(Me,{source:"event_json.content.format"}),S.jsx(Me,{source:"event_json.content.formatted_body"}),S.jsx(Me,{source:"event_json.content.algorithm"}),S.jsx(Me,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},K9e=()=>{const e=ht();return S.jsx(bo,{children:S.jsx(pu,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},Q9e=e=>S.jsx(tl,{...e,pagination:S.jsx(H9e,{}),sort:{field:"received_ts",order:"DESC"},children:S.jsxs(zr,{rowClick:"show",bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1}),S.jsx(dn,{source:"received_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Me,{sortable:!1,source:"user_id"}),S.jsx(Me,{sortable:!1,source:"name"}),S.jsx(Me,{sortable:!1,source:"score"})]})}),X9e={name:"reports",icon:sV,list:Q9e,show:G9e};var dV={exports:{}};/* @license + */var $2=Symbol.for("react.element"),R2=Symbol.for("react.portal"),s1=Symbol.for("react.fragment"),l1=Symbol.for("react.strict_mode"),u1=Symbol.for("react.profiler"),c1=Symbol.for("react.provider"),d1=Symbol.for("react.context"),e3e=Symbol.for("react.server_context"),f1=Symbol.for("react.forward_ref"),p1=Symbol.for("react.suspense"),v1=Symbol.for("react.suspense_list"),m1=Symbol.for("react.memo"),h1=Symbol.for("react.lazy"),t3e=Symbol.for("react.offscreen"),q8;q8=Symbol.for("react.module.reference");function na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $2:switch(e=e.type,e){case s1:case u1:case l1:case p1:case v1:return e;default:switch(e=e&&e.$$typeof,e){case e3e:case d1:case f1:case h1:case m1:case c1:return e;default:return t}}case R2:return t}}}Ft.ContextConsumer=d1;Ft.ContextProvider=c1;Ft.Element=$2;Ft.ForwardRef=f1;Ft.Fragment=s1;Ft.Lazy=h1;Ft.Memo=m1;Ft.Portal=R2;Ft.Profiler=u1;Ft.StrictMode=l1;Ft.Suspense=p1;Ft.SuspenseList=v1;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return na(e)===d1};Ft.isContextProvider=function(e){return na(e)===c1};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$2};Ft.isForwardRef=function(e){return na(e)===f1};Ft.isFragment=function(e){return na(e)===s1};Ft.isLazy=function(e){return na(e)===h1};Ft.isMemo=function(e){return na(e)===m1};Ft.isPortal=function(e){return na(e)===R2};Ft.isProfiler=function(e){return na(e)===u1};Ft.isStrictMode=function(e){return na(e)===l1};Ft.isSuspense=function(e){return na(e)===p1};Ft.isSuspenseList=function(e){return na(e)===v1};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===s1||e===u1||e===l1||e===p1||e===v1||e===t3e||typeof e=="object"&&e!==null&&(e.$$typeof===h1||e.$$typeof===m1||e.$$typeof===c1||e.$$typeof===d1||e.$$typeof===f1||e.$$typeof===q8||e.getModuleId!==void 0)};Ft.typeOf=na;W8.exports=Ft;var T2=W8.exports,cO=function(){return cO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=$3e&&(a=P3e,i=!1,t=new w3e(t));e:for(;++o0&&$.length>0&&$.every(function(P){return x.includes(P)}),onChange:_,onClick:function(P){return P.stopPropagation()}})),d.Children.map(t,function(P,E){return d.isValidElement(P)?d.createElement(h3e,{className:Je(Ze.headerCell,"column-".concat(P.props.source)),sort:v,field:P,isSorting:v.field===(P.props.sortBy||P.props.source),key:P.props.source||E,resource:c,updateSort:g}):null})))};j2.propTypes={children:O.node,className:O.string,sort:O.exact({field:O.string,order:O.oneOf(["ASC","DESC"])}),data:O.arrayOf(O.any),hasExpand:O.bool,hasBulkActions:O.bool,isRowSelectable:O.func,isRowExpandable:O.func,onSelect:O.func,onToggleItem:O.func,resource:O.string,selectedIds:O.arrayOf(O.any),setSort:O.func};j2.displayName="DatagridHeader";var D3e=function(e){var t=e.children,r=e.value;return ve.createElement(G8.Provider,{value:r},t)};const B3e=D3e;var A2={},z3e=We;Object.defineProperty(A2,"__esModule",{value:!0});var eU=A2.default=void 0,U3e=z3e(Qe()),V3e=S;eU=A2.default=(0,U3e.default)((0,V3e.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var mO=function(){return mO=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?I=os(os(os(os([],c.slice(0,R),!0),[c[T]],!1),c.slice(R,T),!0),c.slice(T+1),!0):I=os(os(os(os([],c.slice(0,T),!0),c.slice(T+1,R+1),!0),[c[T]],!1),c.slice(R+1),!0),l(I),h(function(A){return I.filter(function(F){return A.includes(F.index)}).map(function(F){return F.index})})}};return d.createElement(d.Fragment,null,w?d.createElement(Vr,{title:C},d.createElement(or,tb({"aria-label":C,color:"primary",onClick:b,size:"large"},sN(e)),d.createElement(hO,null))):d.createElement(n4e,tb({size:"small",onClick:b,startIcon:d.createElement(hO,null)},sN(e)),C),d.createElement(I$,{open:!!a,anchorEl:a,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d.createElement(On,{component:"ul",p:1,my:0},c.map(function(P){return d.createElement(u8,{key:P.index,source:P.source,label:P.label,index:P.index,selected:m.includes(P.index),onToggle:_,onMove:$})}))))},n4e=J($r,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),sN=function(e){e.resource,e.preferenceKey;var t=r4e(e,["resource","preferenceKey"]);return t};function o4e(e,t){for(var r=-1,n=e==null?0:e.length;++r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1] element instead.")})},[r]);var f=function(){var m=a.getValues();return r.filter(function(h){var x=vt(m,h.props.source);return h.props.alwaysOn||c[h.props.source]||x!==""&&typeof x<"u"})},v=d.useCallback(function(m){return l(m.currentTarget.dataset.key)},[l]);return d.createElement(dz,{prefix:"resources.".concat(o,".fields"),concatenate:!1},d.createElement(jBe,js({className:t},TBe(n),{onSubmit:RBe}),f().map(function(m){return d.createElement(lU,{key:m.key||m.props.source,filterElement:m,handleHide:v,resource:o,className:nb.filterFormInput})}),d.createElement("div",{className:nb.clearFix})))},RBe=function(e){return e.preventDefault(),!1};uU.propTypes={resource:O.string,filters:O.arrayOf(O.node).isRequired,displayedFilters:O.object,hideFilter:O.func,initialValues:O.object,className:O.string};var TBe=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;var t=L2(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"]);return t},kBe=function(e,t){return js(js({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return zb(js({},r),n.props.source,n.props.defaultValue)},{})),e)},IBe=function(e){return e.preventDefault(),e.stopPropagation(),!1},yO="RaFilterForm",nb={clearFix:"".concat(yO,"-clearFix"),filterFormInput:"".concat(yO,"-filterFormInput")},jBe=J("form",{name:yO,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(nb.clearFix)]={clear:"right"},t["& .".concat(nb.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),ABe=function(e,t){var r;return Object.keys(e).reduce(function(n,o){return n[o]=cU(e,o,t),n},(r=sU(t))!==null&&r!==void 0?r:{})},cU=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return vt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(o,a){var i,s=cU(e[t],a,(i=(r||{})[t])!==null&&i!==void 0?i:{});return o[a]=s,o},{});return Object.keys(n).length?n:""}return vt(r,t,"")},N2={},MBe=We;Object.defineProperty(N2,"__esModule",{value:!0});var dU=N2.default=void 0,FBe=MBe(Qe()),LBe=S;dU=N2.default=(0,FBe.default)((0,LBe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var fU=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,o=e.autoFocus,a=Ct(e),i=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]);return d.createElement(so,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i,autoFocus:o,ref:t,disabled:r.props.disabled},d.createElement(Wo,{label:r.props.label,source:r.props.source,resource:a}))});fU.propTypes={filter:O.element.isRequired,onShow:O.func.isRequired,resource:O.string,autoFocus:O.bool};var D2=function(e){return pn("".concat(e,".savedQueries"),[])},B2=function(e){return Array.isArray(e)?e.filter(function(t){return NBe(t)}):[]},NBe=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},DBe=function(e){var t=e.open,r=e.onClose,n=je(),o=tn(),a=o.resource,i=o.filterValues,s=o.displayedFilters,c=o.sort,l=o.perPage,f=D2(a),v=f[0],m=f[1],h=d.useState(""),x=h[0],w=h[1],C=function(_){w(_.target.value)},b=function(_){_.preventDefault(),g()},g=function(){var _={label:x,value:{filter:i,sort:c,perPage:l,displayedFilters:s}},$=B2(v);m($.concat(_)),w(""),r()};return d.createElement(Fv,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(Nv,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(Lv,null,d.createElement("form",{onSubmit:b},d.createElement(Bv,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:x,onChange:C}))),d.createElement($$,null,d.createElement($r,{onClick:r},n("ra.action.cancel")),d.createElement($r,{onClick:g,color:"primary"},n("ra.action.save"))))},mN=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n component requires the prop to be set");var F=s.filter(function(oe){return!oe.props.alwaysOn&&!x[oe.props.source]&&typeof vt(w,oe.props.source)>"u"}),L=d.useCallback(function(oe){oe.preventDefault(),I(!0),A.current=oe.currentTarget},[A,I]),D=d.useCallback(function(){I(!1)},[I]),z=d.useCallback(function(oe){var me=oe.source,Re=oe.defaultValue;g(me,Re===""?void 0:Re),setTimeout(function(){var ye=document.querySelector("input[name='".concat(me,"']"));ye&&ye.focus()},50),I(!1)},[g,I]),H=d.useState(!1),G=H[0],q=H[1],U=function(){q(!1)},W=function(){I(!1),q(!0)},te=d.useState(!1),ne=te[0],ee=te[1],Ce=function(){ee(!1)},de=function(){I(!1),ee(!0)};return F.length===0&&P.length===0&&!$?null:d.createElement(VBe,bO({className:r},zBe(i)),d.createElement(Nt,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:a,size:o},d.createElement(dU,null)),d.createElement(Z0,{open:R,anchorEl:A.current,onClose:D},F.map(function(oe,me){return d.createElement(fU,{key:oe.props.source,filter:oe,resource:c,onShow:z,autoFocus:me===0})}),P.map(function(oe,me){return Bo(oe.value,{filter:w,sort:_,perPage:C,displayedFilters:x})?d.createElement(so,{onClick:de,key:me},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:oe.label})):d.createElement(so,{onClick:function(){v({search:Yl.stringify({filter:JSON.stringify(oe.value.filter),sort:oe.value.sort.field,order:oe.value.sort.order,page:1,perPage:oe.value.perPage,displayedFilters:JSON.stringify(oe.value.displayedFilters)})}),I(!1)},key:me},oe.label)}),$&&!E&&!n&&d.createElement(so,{onClick:W},l("ra.saved_queries.new_label",{_:"Save current query..."})),$&&d.createElement(so,{onClick:function(){b({},{},!1),I(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!n&&d.createElement(d.Fragment,null,d.createElement(DBe,{open:G,onClose:U}),d.createElement(BBe,{open:ne,onClose:Ce})))},zBe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=pU(e,["displayedFilters","filterValues","showFilter"]);return t};vU.propTypes={resource:O.string,filters:O.arrayOf(O.node),displayedFilters:O.object,filterValues:O.object,showFilter:O.func,className:O.string};var UBe="RaFilterButton",VBe=J("div",{name:UBe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),z2={},WBe=We;Object.defineProperty(z2,"__esModule",{value:!0});var mU=z2.default=void 0,qBe=WBe(Qe()),HBe=S;mU=z2.default=(0,qBe.default)((0,HBe.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");var _O=function(){return _O=Object.assign||function(e){for(var t,r=1,n=arguments.length;rb-1)throw new Error(w("ra.navigation.page_out_of_boundaries",{page:R+1}));h(R+1)},[b,h,w]),_=d.useCallback(function(T){x(T.target.value)},[x]),$=d.useCallback(function(T){var R=T.from,I=T.to,A=T.count;return A===-1&&l?w("ra.navigation.partial_page_range_info",{offsetBegin:R,offsetEnd:I,_:"%{from}-%{to} of more than %{to}"}):w("ra.navigation.page_range_info",{offsetBegin:R,offsetEnd:I,total:A===-1?I:A,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[w,l]),P=d.useCallback(function(T){return w("ra.navigation.".concat(T),{_:"Go to ".concat(T," page")})},[w]);if(c)return d.createElement(Ld,{variant:"dense"});if(m===0||f<1||m!=null&&f>b)return a!=null,null;if(C)return d.createElement(UL,ob({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,rowsPerPageOptions:YBe,component:"span",labelDisplayedRows:$},Np(i)));var E=n||(!c&&m!=null?gU:void 0);return d.createElement(UL,ob({count:m??-1,rowsPerPage:v,page:f-1,onPageChange:g,onRowsPerPageChange:_,ActionsComponent:E,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:w("ra.navigation.page_rows_per_page"),labelDisplayedRows:$,getItemAriaLabel:P,rowsPerPageOptions:r},Np(i)))});el.propTypes={actions:a0,limit:O.element,rowsPerPageOptions:O.arrayOf(O.oneOfType([O.number,O.exact({label:O.string.isRequired,value:O.number.isRequired})]))};var XBe=[5,10,25,50],YBe=[],ab=function(){return ab=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ge.target.value>"u")){var ce=ge.target;ee(ce.value);var pe=ce.valueAsNumber!==void 0&&ce.valueAsNumber!==null&&!isNaN(ce.valueAsNumber)?m?m(ce.valueAsNumber):ce.valueAsNumber:m?m(ce.value):fze(ce.value);A.onChange(pe)}},oe=function(ge){v&&v(ge),Ce.current=!0},me=function(){U&&U(),Ce.current=!1;var ge=a(A.value);ee(function(ce){return ce!==ge?ge:ce})},Re=i!==!1||(z||H)&&D,ye=A.ref,fe=bN(A,["ref"]);return d.createElement(Bv,cs({id:G},fe,{inputRef:ye,value:ne,onChange:de,onFocus:oe,onBlur:me,className:Je("ra-input","ra-input-".concat(x),t),type:"number",size:"small",variant:$,error:(z||H)&&D,disabled:E||T,readOnly:T,helperText:Re?d.createElement(ou,{touched:z||H,error:L==null?void 0:L.message,helperText:i}):null,label:d.createElement(Wo,{label:s,source:x,resource:h,isRequired:q}),margin:c,inputProps:cs(cs({},W),{readOnly:T})},Bd(R)))};zl.propTypes={label:O.oneOfType([O.string,O.bool,O.element]),resource:O.string,source:O.string,step:O.oneOfType([O.string,O.number])};var fze=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},pze=function(e){return e==null||isNaN(e)?"":e.toString()},V2={},vze=We;Object.defineProperty(V2,"__esModule",{value:!0});var W2=V2.default=void 0,mze=vze(Qe()),hze=S;W2=V2.default=(0,mze.default)((0,hze.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var q2={},gze=We;Object.defineProperty(q2,"__esModule",{value:!0});var _U=q2.default=void 0,yze=gze(Qe()),bze=S;_U=q2.default=(0,yze.default)((0,bze.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");var sb=function(){return sb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r isn't designed to be used with a label prop. Use if you need a label.");return d.createElement(Cze,wO({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Ec,{position:"end"},d.createElement(mU,{color:"disabled"}))},size:"small"},r))},Sze="RaSearchInput",Cze=J(Er,{name:Sze,overridesResolver:function(e,t){return t.root}})({marginTop:0}),sd=function(){return sd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]"u"||!v.message?"ra.auth.sign_in_error":v.message,{type:"error",messageArgs:{_:typeof v=="string"?v:v&&v.message?v.message:void 0}})})};return d.createElement(Tze,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Io,{className:Tc.content},d.createElement(Er,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:uo(),fullWidth:!0}),d.createElement(Er,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:uo(),fullWidth:!0}),d.createElement($r,{variant:"contained",type:"submit",color:"primary",disabled:o,fullWidth:!0,className:Tc.button},o?d.createElement(Md,{className:Tc.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},hg="RaLoginForm",Tc={content:"".concat(hg,"-content"),button:"".concat(hg,"-button"),icon:"".concat(hg,"-icon")},Tze=J(i0,{name:hg,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Tc.content)]={width:300},t["& .".concat(Tc.button)]={marginTop:r.spacing(2)},t["& .".concat(Tc.icon)]={margin:r.spacing(.3)},t});wU.propTypes={redirectTo:O.string};var SO=function(){return SO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?d.createElement(PU,null):r;return o?d.createElement(Dze,PO({className:Je("edit-page",a)},Nze(l)),d.createElement(Zs,{title:c,defaultTitle:h,preferenceKey:"".concat(m,".edit.title")}),w,d.createElement("div",{className:Je(jc.main,(t={},t[jc.noActions]=!w,t))},d.createElement(s,{className:jc.card},x?o:d.createElement(Io,null," ")),n)):null};RU.propTypes={actions:O.oneOfType([O.element,O.bool]),aside:O.element,className:O.string,component:a0,defaultTitle:O.any,hasList:O.bool,hasShow:O.bool,mutationMode:O.oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:O.object,record:O.object,redirect:O.oneOfType([O.string,O.bool,O.func]),resource:O.string,save:O.func,title:O.node};var Nze=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isFetching,e.isLoading,e.location,e.match,e.options,e.queryOptions,e.mutationOptions,e.permissions,e.refetch,e.removeMiddleware,e.resource,e.save,e.saving,e.transform;var t=$U(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"]);return t},bg="RaEdit",jc={main:"".concat(bg,"-main"),noActions:"".concat(bg,"-noActions"),card:"".concat(bg,"-card")},Dze=J("div",{name:bg,overridesResolver:function(e,t){return t.root}})((Pf={},Pf["& .".concat(jc.main)]={display:"flex",alignItems:"flex-start"},Pf["& .".concat(jc.noActions)]={marginTop:"1em"},Pf["& .".concat(jc.card)]={flex:"1 1 auto"},Pf)),$O=function(){return $O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},kO=function(){return kO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&C?a6e:r;return!o||!w&&l?null:d.createElement(s6e,IO({className:Je("show-page",a)},i6e(v)),d.createElement(Zs,{title:f,defaultTitle:x,preferenceKey:"".concat(h,".show.title")}),b!==!1&&b,d.createElement("div",{className:Je(Mc.main,(t={},t[Mc.noActions]=!b,t))},d.createElement(s,{className:Mc.card},o),n))};zU.propTypes={actions:O.oneOfType([O.element,O.bool]),children:O.node,className:O.string,emptyWhileLoading:O.bool,title:O.any};var i6e=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;var t=BU(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"]);return t},xg="RaShow",Mc={main:"".concat(xg,"-main"),noActions:"".concat(xg,"-noActions"),card:"".concat(xg,"-card")},s6e=J("div",{name:xg,overridesResolver:function(e,t){return t.root}})(($f={},$f["& .".concat(Mc.main)]={display:"flex"},$f["& .".concat(Mc.noActions)]={marginTop:"1em"},$f["& .".concat(Mc.card)]={flex:"1 1 auto"},$f)),jO=function(){return jO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var x=ht(e);if(!x)return null;var w=vt(x,l);if(w==null||w==="")return r?d.createElement(it,Vl({component:"span",variant:"body2",className:t},Ka(m)),r&&h(r,{_:r})):null;var C=v(w),b="";if(i&&c)b=_w?C.toLocaleString(n,o):C.toLocaleString();else if(c){var g=o??(typeof w=="string"&&w.length<=10?{timeZone:"UTC"}:void 0);b=_w?C.toLocaleDateString(n,g):C.toLocaleDateString()}else i&&(b=_w?C.toLocaleTimeString(n,o):C.toLocaleTimeString());return d.createElement(it,Vl({component:"span",variant:"body2",className:t},Ka(m)),b)};Z2.propTypes=Vl(Vl(Vl({},it.propTypes),wa),{locales:O.oneOfType([O.string,O.arrayOf(O.string)]),options:O.object,showTime:O.bool,showDate:O.bool});Z2.displayName="DateFieldImpl";var dn=vu(Z2),g6e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},_w=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Fc=function(){return Fc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),wi=function(e){var t=e.children,r=e.debounce,n=e.filter,o=n===void 0?R6e:n,a=e.page,i=a===void 0?1:a,s=e.pagination,c=s===void 0?null:s,l=e.perPage,f=l===void 0?25:l,v=e.reference,m=e.resource,h=e.sort,x=h===void 0?T6e:h,w=e.source,C=w===void 0?"id":w,b=e.target,g=ht(e),_=bbe({debounce:r,filter:o,page:i,perPage:f,record:g,reference:v,resource:m,sort:x,source:C,target:b});return ve.createElement(uu,{value:v},ve.createElement(FP,{value:_},t,c))};wi.propTypes={children:O.node.isRequired,className:O.string,filter:O.object,label:wa.label,perPage:O.number,record:O.any,reference:O.string.isRequired,resource:O.string,sortBy:O.string,sortByOrder:wa.sortByOrder,source:O.string,sort:O.exact({field:O.string,order:O.oneOf(["ASC","DESC"])}),target:O.string.isRequired};O.element,O.string,O.exact({field:O.string,order:O.oneOf(["ASC","DESC"])}),O.any,O.bool,O.element,O.string,O.func;var R6e={},T6e={field:"id",order:"DESC"},ql=function(){return ql=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")};QU.propTypes={children:O.node};var hp=function(){return hp=Object.assign||function(e){for(var t,r=1,n=arguments.length;rnew Date(e).getTime(),h9e=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),o=(r+(t.getMonth()+1).toString()).slice(-2),a=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),s=(r+t.getMinutes().toString()).slice(-2);return`${n}-${o}-${a}T${i}:${s}`};var sR={},g9e=We;Object.defineProperty(sR,"__esModule",{value:!0});var WO=sR.default=void 0,y9e=g9e(Qe()),b9e=S;WO=sR.default=(0,y9e.default)((0,b9e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var lR={},_9e=We;Object.defineProperty(lR,"__esModule",{value:!0});var uR=lR.default=void 0,x9e=_9e(Qe()),w9e=S;uR=lR.default=(0,x9e.default)((0,w9e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var cR={},S9e=We;Object.defineProperty(cR,"__esModule",{value:!0});var dR=cR.default=void 0,C9e=S9e(Qe()),O9e=S;dR=cR.default=(0,C9e.default)((0,O9e.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep");var fR={},E9e=We;Object.defineProperty(fR,"__esModule",{value:!0});var sV=fR.default=void 0,P9e=E9e(Qe()),$9e=S;sV=fR.default=(0,P9e.default)((0,$9e.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");var pR={},R9e=We;Object.defineProperty(pR,"__esModule",{value:!0});var lV=pR.default=void 0,T9e=R9e(Qe()),k9e=S;lV=pR.default=(0,T9e.default)((0,k9e.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");const I9e=e=>{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},j9e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),A9e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await Jl(t,{method:"GET"}))["m.homeserver"].base_url}catch{return`https://${e}`}},M9e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await Jl(t,{method:"GET"})).json.server_version},F9e=async e=>{const t=`${e}/_matrix/client/versions`;return(await Jl(t,{method:"GET"})).json},L9e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await Jl(t,{method:"GET"})).json.flows},N9e=e=>`${localStorage.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function CN(){const e=localStorage.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function D9e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const B9e=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(zd,{...a,children:[S.jsx(Hv,{label:"resources.delete_media.action.send",icon:S.jsx(dR,{})}),S.jsx(Nt,{label:"ra.action.cancel",onClick:t,children:S.jsx(uR,{})})]});return S.jsxs(Fv,{open:e,onClose:t,children:[S.jsx(Nv,{children:n("resources.delete_media.action.send")}),S.jsxs(Lv,{children:[S.jsx(J0,{children:n("resources.delete_media.helper.send")}),S.jsxs(Ud,{toolbar:S.jsx(o,{}),onSubmit:r,children:[S.jsx(b1,{fullWidth:!0,source:"before_ts",label:"resources.delete_media.fields.before_ts",defaultValue:0,parse:iR}),S.jsx(zl,{fullWidth:!0,source:"size_gt",label:"resources.delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),S.jsx(Ns,{fullWidth:!0,source:"keep_profiles",label:"resources.delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},z9e=e=>{const t=ra(),[r,n]=d.useState(!1),o=Ht(),[a,{isLoading:i}]=Pd(),s=()=>n(!0),c=()=>n(!1),l=f=>{a("delete_media",{meta:f},{onSuccess:()=>{o("resources.delete_media.action.send_success"),c()},onError:()=>o("resources.delete_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{...e,label:"resources.delete_media.action.send",onClick:s,disabled:i,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:Xc(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:S.jsx(dR,{})}),S.jsx(B9e,{open:r,onClose:c,onSubmit:l})]})},U9e=e=>{const t=ht(),r=je(),n=ei(),o=Ht(),[a,{isLoading:i}]=mv(),[s]=Pd();if(!t)return null;const c=()=>{a("protect_media",{data:t},{onSuccess:()=>{o("resources.protect_media.action.send_success"),n()},onError:()=>o("resources.protect_media.action.send_failure",{type:"error"})})},l=()=>{s("protect_media",{id:t.id},{onSuccess:()=>{o("resources.protect_media.action.send_success"),n()},onError:()=>o("resources.protect_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[t.quarantined_by&&S.jsx(Vr,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,disabled:!0,children:S.jsx(id,{})})})}),t.safe_from_quarantine&&S.jsx(Vr,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:l,disabled:i,children:S.jsx(zv,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Vr,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:c,disabled:i,children:S.jsx(lV,{})})})})]})},V9e=e=>{const t=ht(),r=je(),n=ei(),o=Ht(),[a,{isLoading:i}]=mv(),[s]=Pd();if(!t)return null;const c=()=>{a("quarantine_media",{data:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},l=()=>{s("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[t.safe_from_quarantine&&S.jsx(Vr,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,disabled:!0,children:S.jsx(id,{})})})}),t.quarantined_by&&S.jsx(Vr,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:l,disabled:i,children:S.jsx(WO,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&S.jsx(Vr,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:S.jsx("div",{children:S.jsx(Nt,{...e,onClick:c,disabled:i,children:S.jsx(WO,{})})})})]})},uV=({media_id:e,label:t})=>{const r=je(),n=N9e(e);return S.jsxs(On,{style:{whiteSpace:"pre"},children:[S.jsx(Vr,{title:r("resources.users_media.action.open"),children:S.jsx("span",{children:S.jsx(Nt,{component:_a,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:S.jsx(sV,{})})})}),t]})},W9e=({source:e})=>{var o;const t=localStorage.getItem("home_server"),r=ht();if(!r)return null;const n=(o=Tb.get(r,e))==null?void 0:o.toString();return n?S.jsx(uV,{media_id:`${t}/${n}`,label:n}):null},q9e=({source:e})=>{var o;const t=ht();if(!t)return null;const r=(o=Tb.get(t,e))==null?void 0:o.toString();if(!r)return null;const n=r.replace("mxc://","");return S.jsx(uV,{media_id:n,label:r})},H9e=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),G9e=e=>{const t=je();return S.jsx(x1,{...e,actions:S.jsx(K9e,{}),children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:S.jsx(fu,{}),children:[S.jsx(dn,{source:"received_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Ha,{source:"user_id",reference:"users",children:S.jsx(Me,{source:"id"})}),S.jsx(Ci,{source:"score"}),S.jsx(Me,{source:"reason"}),S.jsx(Me,{source:"name"}),S.jsx(Me,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),S.jsx(Ha,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:S.jsx(Me,{source:"id"})})]}),S.jsxs(Fo,{label:"synapseadmin.reports.tabs.detail",icon:S.jsx(oR,{}),path:"detail",children:[S.jsx(dn,{source:"event_json.origin_server_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Ha,{source:"sender",reference:"users",children:S.jsx(Me,{source:"id"})}),S.jsx(Me,{source:"sender",label:"Sender (raw user ID)"}),S.jsx(Me,{source:"event_id"}),S.jsx(Me,{source:"event_json.origin"}),S.jsx(Me,{source:"event_json.type"}),S.jsx(Me,{source:"event_json.content.msgtype"}),S.jsx(Me,{source:"event_json.content.body"}),S.jsx(Me,{source:"event_json.content.info.mimetype"}),S.jsx(q9e,{source:"event_json.content.url"}),S.jsx(Me,{source:"event_json.content.format"}),S.jsx(Me,{source:"event_json.content.formatted_body"}),S.jsx(Me,{source:"event_json.content.algorithm"}),S.jsx(Me,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},K9e=()=>{const e=ht();return S.jsx(bo,{children:S.jsx(pu,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},Q9e=e=>S.jsx(tl,{...e,pagination:S.jsx(H9e,{}),sort:{field:"received_ts",order:"DESC"},children:S.jsxs(zr,{rowClick:"show",bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1}),S.jsx(dn,{source:"received_ts",showTime:!0,options:fn,sortable:!0}),S.jsx(Me,{sortable:!1,source:"user_id"}),S.jsx(Me,{sortable:!1,source:"name"}),S.jsx(Me,{sortable:!1,source:"score"})]})}),X9e={name:"reports",icon:iV,list:Q9e,show:G9e};var cV={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse @@ -310,4 +310,4 @@ License: MIT `:"\r"}(fe,pe)),F=!1,R.delimiter)T(R.delimiter)&&(R.delimiter=R.delimiter(fe),ee.meta.delimiter=R.delimiter);else{var ae=function(Oe,Ne,Xe,V,X){var Y,ie,se,ue;X=X||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Ee=0;Ee=z)return Ot(!0)}else for(Ie=q,q++;;){if((Ie=W.indexOf(I,Ie+1))===-1)return ne||ye.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Re.length,index:q}),ft();if(Ie===ee-1)return ft(W.substring(q,Ie).replace(Ee,I));if(I!==G||W[Ie+1]!==G){if(I===G||Ie===0||W[Ie-1]!==G){se!==-1&&se=z)return Ot(!0);break}ye.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Re.length,index:q}),Ie++}}else Ie++}return ft();function Le(et){Re.push(et),ge=q}function De(et){var ke=0;if(et!==-1){var Be=W.substring(Ie+1,et);Be&&Be.trim()===""&&(ke=Be.length)}return ke}function ft(et){return ne||(et===void 0&&(et=W.substring(q)),fe.push(et),q=ee,Le(fe),me&&Ue()),Ot()}function Et(et){q=et,Le(fe),fe=[],ue=W.indexOf(F,q)}function Ot(et){return{data:Re,errors:ye,meta:{delimiter:A,linebreak:F,aborted:U,truncated:!!et,cursor:ge+(te||0)}}}function Ue(){D(Ot()),Re=[],ye=[]}},this.abort=function(){U=!0},this.getCharIndex=function(){return q}}function g(R){var I=R.data,A=i[I.workerId],F=!1;if(I.error)A.userError(I.error,I.file);else if(I.results&&I.results.data){var L={abort:function(){F=!0,_(I.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(T(A.userStep)){for(var D=0;D{const[e,t]=d.useState([]),[r,n]=d.useState(null),[o,a]=d.useState(null),[i,s]=d.useState(!0),[c,l]=d.useState(null),[f,v]=d.useState(null),[m,h]=d.useState(""),[x,w]=d.useState("stop"),[C,b]=d.useState(!0),[g,_]=d.useState("ignore"),$=je(),P=Ht(),E=Jo(),T=async de=>{if(c!==null)return;t([]),n(null),a(null),v(null);const oe=de.target.files?de.target.files[0]:null;if(oe){if(oe.size>1e8){const me=$("import_users.errors.unreasonably_big",{size:(oe.size/1048576).toFixed(2)});P(me),n(me);return}try{ON.parse(oe,{header:!0,skipEmptyLines:!0,complete:me=>{me.errors&&n(me.errors.map(Re=>Re.toString())),R(me,{setValues:t,setStats:a,setError:n})}})}catch{return n("Unknown error"),null}}},R=({data:de,meta:oe,errors:me},{setValues:Re,setStats:ye,setError:fe})=>{const ge=Y9e.filter(ae=>{var Se;return(Se=oe.fields)==null?void 0:Se.find(Oe=>ae===Oe)});if(ge.length>0)return fe($("import_users.error.required_field",{field:ge[0]})),!1;const ce={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:de.length},pe=me.map(ae=>ae.message);return de.forEach((ae,Se)=>{var Oe,Ne,Xe;ae.user_type===void 0||ae.user_type===""?ce.user_types.default++:ce.user_types[ae.user_type]+=1,(Oe=oe.fields)!=null&&Oe.includes("name")&&delete ae.name,(Ne=oe.fields)!=null&&Ne.includes("user_type")&&delete ae.user_type,(Xe=oe.fields)!=null&&Xe.includes("is_admin")&&delete ae.is_admin,["is_guest","admin","deactivated"].forEach(V=>{ae[V]==="true"?(ce[V]++,ae[V]=!0):(ae[V]!=="false"&&ae[V]!==""&&pe.push($("import_users.error.invalid_value",{field:V,row:Se})),ae[V]=!1)}),ae.password!==void 0&&ae.password!==""&&ce.password++,ae.avatar_url!==void 0&&ae.avatar_url!==""&&ce.avatar_url++,ae.id!==void 0&&ae.id!==""&&ce.id++}),pe.length>0&&fe(pe),ye(ce),Re(de),!0},I=async()=>{if(c!==null){P("import_users.errors.already_in_progress");return}const de=await A(E,e,x,C,g,i,l,n);v(de),h(ON.unparse(de.skippedRecords)),console.log("Skipped records:"),console.log(m)},A=async(de,oe,me,Re,ye,fe,ge,ce)=>{const pe=[],ae=[],Se=[],Oe={total:0,id:0,is_guest:0,admin:0,password:0};let Ne=0;const Xe=oe.length;try{ge({done:Ne,limit:Xe});for(const V of oe){const X={...V};(ye==="ignore"||X.id===void 0)&&(X.id=CN()),(Re===!1||V.password===void 0)&&(X.password=D9e()),ww&&console.log("will check for existence of record "+JSON.stringify(X));let Y=0;const ie=se=>de.getOne("users",{id:se.id}).then(async()=>{if(ww&&console.log("already existed"),ye==="update"||me==="skip")pe.push(se);else{if(me==="stop")throw new Error($("import_users.error.id_exits",{id:se.id}));{const ue=Object.assign({},se,{id:CN()});Y++,Y>512?(console.warn("retry loop got stuck? pathological situation?"),pe.push(se)):await ie(ue)}}},async()=>{ww&&console.log("OK to create record "+se.id+" ("+se.displayname+")."),fe||await de.create("users",{data:se}),Se.push(se)});await ie(X),Ne++,ge({done:Ne,limit:oe.length})}ge(null)}catch(V){ce($("import_users.error.at_entry",{entry:Ne+1,message:V instanceof Error?V.message:String(V)})),ge(null)}return{skippedRecords:pe,erroredRecords:ae,succeededRecords:Se,totalRecordCount:Xe,changeStats:Oe,wasDryRun:fe}},F=()=>{const de=document.createElement("a");console.log(m);const oe=new Blob([m],{type:"text/comma-separated-values"});de.href=URL.createObjectURL(oe),de.download="skippedRecords.csv",document.body.appendChild(de),de.click()},L=async de=>{if(c!==null)return;const oe=de.target.value;w(oe)},D=de=>{c===null&&b(de.target.checked)},z=async de=>{if(c!==null)return;const oe=de.target.value;_(oe)},H=de=>{c===null&&s(de.target.checked)},G=o&&!f&&[S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.importstats.header")}),S.jsxs(Io,{children:[S.jsx("div",{children:$("import_users.cards.importstats.users_total",o.total)}),S.jsx("div",{children:$("import_users.cards.importstats.guest_count",o.is_guest)}),S.jsx("div",{children:$("import_users.cards.importstats.admin_count",o.admin)})]})]}),S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.ids.header")}),S.jsxs(Io,{children:[S.jsx("div",{children:o.id===o.total?$("import_users.cards.ids.all_ids_present"):$("import_users.cards.ids.count_ids_present",o.id)}),o.id>0?S.jsx("div",{children:S.jsxs(TL,{onChange:z,value:g,disabled:c!==null,children:[S.jsx(Th,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),S.jsx(Th,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.passwords.header")}),S.jsxs(Io,{children:[S.jsx("div",{children:o.password===o.total?$("import_users.cards.passwords.all_passwords_present"):$("import_users.cards.passwords.count_passwords_present",o.password)}),o.password>0?S.jsx("div",{children:S.jsx(_C,{control:S.jsx(od,{checked:C,disabled:c!==null,onChange:D}),label:$("import_users.cards.passwords.use_passwords")})}):""]})]})],q=o&&!f&&S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.conflicts.header")}),S.jsx(Io,{children:S.jsx("div",{children:S.jsxs(TL,{onChange:L,value:x,disabled:c!==null,children:[S.jsx(Th,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),S.jsx(Th,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),U=r&&S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.error.error")}),S.jsx(Io,{children:(Array.isArray(r)?r:[r]).map(de=>S.jsx("div",{children:de}))})]}),W=!f&&S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.upload.header")}),S.jsxs(Io,{children:[$("import_users.cards.upload.explanation"),S.jsx("a",{href:"./data/example.csv",children:"example.csv"}),S.jsx("br",{}),S.jsx("br",{}),S.jsx("input",{type:"file",onChange:T,disabled:c!==null})]})]}),te=f&&S.jsxs(Io,{children:[S.jsx(vl,{title:$("import_users.cards.results.header")}),S.jsxs("div",{children:[$("import_users.cards.results.total",f.totalRecordCount),S.jsx("br",{}),$("import_users.cards.results.successful",f.succeededRecords.length),S.jsx("br",{}),f.skippedRecords.length?[$("import_users.cards.results.skipped",f.skippedRecords.length),S.jsx("div",{children:S.jsx("button",{onClick:F,children:$("import_users.cards.results.download_skipped")})}),S.jsx("br",{})]:"",f.erroredRecords.length?[$("import_users.cards.results.skipped",f.erroredRecords.length),S.jsx("br",{})]:"",S.jsx("br",{}),f.wasDryRun&&[$("import_users.cards.results.simulated_only"),S.jsx("br",{})]]})]}),ne=!e||e.length===0||f?void 0:S.jsxs(n9,{children:[S.jsx(_C,{control:S.jsx(od,{checked:i,onChange:H,disabled:c!==null}),label:$("import_users.cards.startImport.simulate_only")}),S.jsx($r,{size:"large",onClick:I,disabled:c!==null,children:$("import_users.cards.startImport.run_import")}),c!==null?S.jsxs("div",{children:[c.done," of ",c.limit," done"]}):null]}),ee=[];W&&ee.push(W),U&&ee.push(U),q&&ee.push(q),G&&ee.push(...G),ne&&ee.push(ne),te&&ee.push(te);const Ce=S.jsx(du,{children:ee});return[S.jsx(Zs,{defaultTitle:$("import_users.title")}),Ce]},Z9e=J9e,fV=d.createContext({}),e8e=()=>d.useContext(fV),t8e=J(On)(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1rem)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{width:"30rem",marginTop:"6rem",marginBottom:"6rem"},"& .avatar":{margin:"1rem",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:e.palette.grey[500]},"& .hint":{marginTop:"1em",marginBottom:"1em",display:"flex",justifyContent:"center",color:e.palette.grey[600]},"& .form":{padding:"0 1rem 1rem 1rem"},"& .select":{marginBottom:"2rem"},"& .actions":{padding:"0 1rem 1rem 1rem"},"& .serverVersion":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginLeft:"0.5rem"},"& .matrixVersions":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.8rem",marginBottom:"1rem",marginLeft:"0.5rem"}})),r8e=()=>{const e=vz(),t=Ht(),{restrictBaseUrl:r}=e8e(),n=typeof r=="string",o=Array.isArray(r),a=!(n||o),[i,s]=d.useState(!1),[c,l]=d.useState(!0),[f,v]=PP(),m=$P(),h=je(),x=n?r:localStorage.getItem("base_url"),[w,C]=d.useState(""),b=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(b){const E=b[1];console.log("SSO token is",E),window.history.replaceState({},"",window.location.href.replace(b[0],"#").split("#")[0]);const T=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),T){const R={base_url:T,username:null,password:null,loginToken:E};console.log("Base URL is:",T),console.log("SSO Token is:",E),console.log("Let's try token login..."),e(R).catch(I=>{alert(typeof I=="string"?I:typeof I>"u"||!I.message?"ra.auth.sign_in_error":I.message),console.error(I)})}}const g=E=>E.match(/^(http|https):\/\//)?E.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:h("synapseadmin.auth.url_error"):h("synapseadmin.auth.protocol_error"),_=E=>{s(!0),e(E).catch(T=>{s(!1),t(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.message,{type:"warning"})})},$=()=>{localStorage.setItem("sso_base_url",w);const E=`${w}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=E},P=({formData:E})=>{const T=Zo(),[R,I]=d.useState(""),[A,F]=d.useState(""),L=()=>{var z;if(E.base_url||n)return;const D=(z=I9e(E.username))==null?void 0:z.domain;D&&A9e(D).then(H=>{(a||o&&r.includes(H))&&T.setValue("base_url",H)})};return d.useEffect(()=>{E.base_url===""&&o&&T.setValue("base_url",r[0]),j9e(E.base_url)&&(M9e(E.base_url).then(D=>I(`${h("synapseadmin.auth.server_version")} ${D}`)).catch(()=>I("")),F9e(E.base_url).then(D=>F(`${h("synapseadmin.auth.supports_specs")} ${D.versions.join(", ")}`)).catch(()=>F("")),L9e(E.base_url).then(D=>{const z=D.find(G=>G.type==="m.login.password")!==void 0,H=D.find(G=>G.type==="m.login.sso")!==void 0;l(z),C(H?E.base_url:"")}).catch(()=>C("")))},[E.base_url,T]),S.jsxs(S.Fragment,{children:[S.jsx(On,{children:S.jsx(Er,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!c,onBlur:L,resettable:!0,fullWidth:!0,validate:uo()})}),S.jsx(On,{children:S.jsx(H2,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!c,resettable:!0,fullWidth:!0,validate:uo()})}),S.jsx(On,{children:S.jsx(Er,{source:"base_url",label:"synapseadmin.auth.base_url",select:o,autoComplete:"url",disabled:i,readOnly:n,resettable:a,fullWidth:!0,validate:[uo(),g],children:o&&r.map(D=>S.jsx(so,{value:D,children:D},D))})}),S.jsx(it,{className:"serverVersion",children:R}),S.jsx(it,{className:"matrixVersions",children:A})]})};return S.jsxs(i0,{defaultValues:{base_url:x},onSubmit:_,mode:"onTouched",children:[S.jsx(t8e,{children:S.jsxs(du,{className:"card",children:[S.jsx(On,{className:"avatar",children:i?S.jsx(Md,{size:25,thickness:2}):S.jsx(Gp,{className:"icon",children:S.jsx(zv,{})})}),S.jsx(On,{className:"hint",children:h("synapseadmin.auth.welcome")}),S.jsxs(On,{className:"form",children:[S.jsx(M$,{value:f,onChange:E=>v(E.target.value),fullWidth:!0,disabled:i,className:"select",children:m.map(E=>S.jsx(so,{value:E.locale,children:E.name},E.locale))}),S.jsx(eC,{children:E=>S.jsx(P,{...E})}),S.jsxs(n9,{className:"actions",children:[S.jsx($r,{variant:"contained",type:"submit",color:"primary",disabled:i||!c,fullWidth:!0,children:h("ra.auth.sign_in")}),S.jsx($r,{variant:"contained",color:"secondary",onClick:$,disabled:i||w==="",fullWidth:!0,children:h("synapseadmin.auth.sso_sign_in")})]})]})]})}),S.jsx(f2,{})]})};var vR={},n8e=We;Object.defineProperty(vR,"__esModule",{value:!0});var pV=vR.default=void 0,o8e=n8e(Qe()),a8e=S;pV=vR.default=(0,o8e.default)((0,a8e.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber");const i8e=[qP(/^[A-Za-z0-9._~-]{0,64}$/)],vV=[Cz()],s8e=[Cz(),I1e(64)],l8e=[S.jsx(Ns,{source:"valid",alwaysOn:!0})],u8e=e=>S.jsx(tl,{...e,filters:l8e,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:S.jsxs(zr,{rowClick:"edit",children:[S.jsx(Me,{source:"token",sortable:!1}),S.jsx(Ci,{source:"uses_allowed",sortable:!1}),S.jsx(Ci,{source:"pending",sortable:!1}),S.jsx(Ci,{source:"completed",sortable:!1}),S.jsx(dn,{source:"expiry_time",showTime:!0,options:fn,sortable:!1})]})}),c8e=e=>S.jsx(G2,{...e,redirect:"list",children:S.jsxs(Ud,{toolbar:S.jsx(zd,{children:S.jsx(Hv,{alwaysEnable:!0})}),children:[S.jsx(Er,{source:"token",autoComplete:"off",validate:i8e,resettable:!0}),S.jsx(zl,{source:"length",validate:s8e,helperText:"resources.registration_tokens.helper.length",step:1}),S.jsx(zl,{source:"uses_allowed",validate:vV,step:1}),S.jsx(b1,{source:"expiry_time",parse:iR})]})}),d8e=e=>S.jsx(K2,{...e,children:S.jsxs(Ud,{children:[S.jsx(Er,{source:"token",disabled:!0}),S.jsx(zl,{source:"pending",disabled:!0}),S.jsx(zl,{source:"completed",disabled:!0}),S.jsx(zl,{source:"uses_allowed",validate:vV,step:1}),S.jsx(b1,{source:"expiry_time",parse:iR,format:h9e})]})}),f8e={name:"registration_tokens",icon:pV,list:u8e,edit:d8e,create:c8e};var mR={},p8e=We;Object.defineProperty(mR,"__esModule",{value:!0});var mu=mR.default=void 0,v8e=p8e(Qe()),m8e=S;mu=mR.default=(0,v8e.default)((0,m8e.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"}),"FolderShared");const hR=({source:e,...t})=>{var l;const r=ht(t),n=(l=Tb.get(r,e))==null?void 0:l.toString(),{alt:o,classes:a,sizes:i,sx:s,variant:c}=t;return S.jsx(Gp,{alt:o,classes:a,sizes:i,src:n,sx:s,variant:c})},h8e=()=>S.jsx(el,{rowsPerPageOptions:[100,500,1e3,2e3]}),g8e=e=>{const t=je();return S.jsx(pu,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:S.jsx(mu,{})})},mV=e=>S.jsx(qv,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:S.jsx(mu,{})}),y8e=e=>{const{selectedIds:t}=tn(),r=Ht(),n=ei(),o=EB("rooms"),a=Jo(),{mutate:i,isLoading:s}=pd(()=>a.createMany("room_directory",{ids:t,data:{}}),{onSuccess:()=>{r("resources.room_directory.action.send_success"),o(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return S.jsx(Nt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:s,children:S.jsx(mu,{})})},b8e=e=>{const t=ht(),r=Ht(),n=ei(),[o,{isLoading:a}]=mv(),i=()=>{o("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return S.jsx(Nt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:a,children:S.jsx(mu,{})})},_8e=()=>S.jsxs(bo,{children:[S.jsx(nU,{}),S.jsx(Dd,{})]}),x8e=()=>S.jsx(tl,{pagination:S.jsx(h8e,{}),perPage:100,actions:S.jsx(_8e,{}),children:S.jsxs(M2,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:S.jsx(mV,{}),omit:["room_id","canonical_alias","topic"],children:[S.jsx(hR,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),S.jsx(Me,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),S.jsx(Me,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),S.jsx(Me,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),S.jsx(Me,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),S.jsx(Ci,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),S.jsx(qa,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),S.jsx(qa,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),w8e={name:"room_directory",icon:mu,list:x8e};var gR={},S8e=We;Object.defineProperty(gR,"__esModule",{value:!0});var hV=gR.default=void 0,C8e=S8e(Qe()),O8e=S;hV=gR.default=(0,C8e.default)((0,O8e.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var yR={},E8e=We;Object.defineProperty(yR,"__esModule",{value:!0});var gV=yR.default=void 0,P8e=E8e(Qe()),$8e=S;gV=yR.default=(0,P8e.default)((0,$8e.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue");const yV=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),R8e=e=>({backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}),T8e=[S.jsx(_1,{source:"destination",alwaysOn:!0})],bV=()=>{const e=ht(),t=ei(),r=Ht(),[n,{isLoading:o}]=Pd();if(!e||!e.failure_ts)return null;const a=i=>{i.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return S.jsx(Nt,{label:"resources.destinations.action.reconnect",onClick:a,disabled:o,children:S.jsx(hV,{})})},k8e=()=>S.jsx(bo,{children:S.jsx(bV,{})}),I8e=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.destinations.name",1)," ",e.destination]})},j8e=e=>S.jsx(tl,{...e,filters:T8e,pagination:S.jsx(yV,{}),sort:{field:"destination",order:"ASC"},children:S.jsxs(zr,{rowSx:R8e,rowClick:t=>`${t}/show/rooms`,bulkActionButtons:!1,children:[S.jsx(Me,{source:"destination"}),S.jsx(dn,{source:"failure_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"retry_last_ts",showTime:!0,options:fn}),S.jsx(Me,{source:"retry_interval"}),S.jsx(Me,{source:"last_successful_stream_ordering"}),S.jsx(bV,{})]})}),A8e=e=>{const t=je();return S.jsx(x1,{actions:S.jsx(k8e,{}),title:S.jsx(I8e,{}),...e,children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:"status",icon:S.jsx(fu,{}),children:[S.jsx(Me,{source:"destination"}),S.jsx(dn,{source:"failure_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"retry_last_ts",showTime:!0,options:fn}),S.jsx(Me,{source:"retry_interval"}),S.jsx(Me,{source:"last_successful_stream_ordering"})]}),S.jsx(Fo,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(mu,{}),path:"rooms",children:S.jsx(wi,{reference:"destination_rooms",target:"destination",label:!1,pagination:S.jsx(yV,{}),perPage:50,children:S.jsxs(zr,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[S.jsx(Me,{source:"room_id",label:"resources.rooms.fields.room_id"}),S.jsx(Me,{source:"stream_ordering",sortable:!1}),S.jsx(Ha,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Me,{source:"name",sortable:!1})})]})})})]})})},M8e={name:"destinations",icon:gV,list:j8e,show:A8e};var bR={},F8e=We;Object.defineProperty(bR,"__esModule",{value:!0});var _V=bR.default=void 0,L8e=F8e(Qe()),N8e=S;_V=bR.default=(0,L8e.default)((0,N8e.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event");var _R={},D8e=We;Object.defineProperty(_R,"__esModule",{value:!0});var xV=_R.default=void 0,B8e=D8e(Qe()),z8e=S;xV=_R.default=(0,B8e.default)((0,z8e.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var xR={},U8e=We;Object.defineProperty(xR,"__esModule",{value:!0});var wR=xR.default=void 0,V8e=U8e(Qe()),W8e=S;wR=xR.default=(0,V8e.default)((0,W8e.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");var SR={},q8e=We;Object.defineProperty(SR,"__esModule",{value:!0});var qO=SR.default=void 0,H8e=q8e(Qe()),G8e=S;qO=SR.default=(0,H8e.default)((0,G8e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https");var CR={},K8e=We;Object.defineProperty(CR,"__esModule",{value:!0});var wV=CR.default=void 0,Q8e=K8e(Qe()),X8e=S;wV=CR.default=(0,Q8e.default)((0,X8e.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");const Y8e=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),J8e=()=>{const e=ht(),t=je();let r="";return e&&(r=e.name!==""?e.name:e.id),S.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},Z8e=()=>{const t=ht().public?S.jsx(g8e,{}):S.jsx(b8e,{});return S.jsxs(bo,{children:[t,S.jsx(pu,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},eUe=e=>{const t=je();return S.jsx(x1,{...e,actions:S.jsx(Z8e,{}),title:S.jsx(J8e,{}),children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.basic",icon:S.jsx(fu,{}),children:[S.jsx(Me,{source:"room_id"}),S.jsx(Me,{source:"name"}),S.jsx(Me,{source:"topic"}),S.jsx(Me,{source:"canonical_alias"}),S.jsx(Ha,{source:"creator",reference:"users",children:S.jsx(Me,{source:"id"})})]}),S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.detail",icon:S.jsx(oR,{}),path:"detail",children:[S.jsx(Me,{source:"joined_members"}),S.jsx(Me,{source:"joined_local_members"}),S.jsx(Me,{source:"joined_local_devices"}),S.jsx(Me,{source:"state_events"}),S.jsx(Me,{source:"version"}),S.jsx(Me,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),S.jsx(Fo,{label:"synapseadmin.rooms.tabs.members",icon:S.jsx(wR,{}),path:"members",children:S.jsx(wi,{reference:"room_members",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1,label:"resources.users.fields.id"}),S.jsx(Ha,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:S.jsx(Me,{source:"displayname",sortable:!1})})]})})}),S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.permission",icon:S.jsx(W2,{}),path:"permission",children:[S.jsx(qa,{source:"federatable"}),S.jsx(qa,{source:"public"}),S.jsx(xw,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),S.jsx(xw,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),S.jsx(xw,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),S.jsx(Fo,{label:t("resources.room_state.name",{smart_count:2}),icon:S.jsx(_V,{}),path:"state",children:S.jsx(wi,{reference:"room_state",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"type",sortable:!1}),S.jsx(dn,{source:"origin_server_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Me,{source:"content",sortable:!1}),S.jsx(Ha,{source:"sender",reference:"users",sortable:!1,children:S.jsx(Me,{source:"id"})})]})})}),S.jsxs(Fo,{label:"resources.forward_extremities.name",icon:S.jsx(xV,{}),path:"forward_extremities",children:[S.jsx(On,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),S.jsx(wi,{reference:"forward_extremities",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1}),S.jsx(dn,{source:"received_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Ci,{source:"depth",sortable:!1}),S.jsx(Me,{source:"state_group",sortable:!1})]})})]})]})})},tUe=()=>S.jsxs(S.Fragment,{children:[S.jsx(y8e,{}),S.jsx(mV,{}),S.jsx(qv,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),rUe=[S.jsx(_1,{source:"search_term",alwaysOn:!0})],nUe=()=>S.jsxs(bo,{children:[S.jsx(nU,{}),S.jsx(Dd,{})]}),oUe=e=>{const t=ra();return S.jsx(tl,{...e,pagination:S.jsx(Y8e,{}),sort:{field:"name",order:"ASC"},filters:rUe,actions:S.jsx(nUe,{}),children:S.jsxs(M2,{rowClick:"show",bulkActionButtons:S.jsx(tUe,{}),omit:["joined_local_members","state_events","version","federatable"],children:[S.jsx(qa,{source:"is_encrypted",sortBy:"encryption",TrueIcon:qO,FalseIcon:wV,label:S.jsx(qO,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),S.jsx(VU,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),S.jsx(Me,{source:"joined_members"}),S.jsx(Me,{source:"joined_local_members"}),S.jsx(Me,{source:"state_events"}),S.jsx(Me,{source:"version"}),S.jsx(qa,{source:"federatable"}),S.jsx(qa,{source:"public"})]})})},aUe={name:"rooms",icon:fu,list:oUe,show:eUe};var OR={},iUe=We;Object.defineProperty(OR,"__esModule",{value:!0});var SV=OR.default=void 0,sUe=iUe(Qe()),lUe=S;SV=OR.default=(0,sUe.default)((0,lUe.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const uUe=()=>{const{isLoading:e,total:t}=tn();return S.jsxs(bo,{children:[S.jsx(z9e,{}),S.jsx(Dd,{disabled:e||t===0})]})},cUe=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),dUe=[S.jsx(_1,{source:"search_term",alwaysOn:!0})],fUe=e=>S.jsx(tl,{...e,actions:S.jsx(uUe,{}),filters:dUe,pagination:S.jsx(cUe,{}),sort:{field:"media_length",order:"DESC"},children:S.jsxs(zr,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[S.jsx(Me,{source:"user_id",label:"resources.users.fields.id"}),S.jsx(Me,{source:"displayname",label:"resources.users.fields.displayname"}),S.jsx(Ci,{source:"media_count"}),S.jsx(Ci,{source:"media_length"})]})}),pUe={name:"user_media_statistics",icon:SV,list:fUe};var ER={},vUe=We;Object.defineProperty(ER,"__esModule",{value:!0});var CV=ER.default=void 0,mUe=vUe(Qe()),hUe=S;CV=ER.default=(0,mUe.default)((0,hUe.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"}),"AssignmentInd");var PR={},gUe=We;Object.defineProperty(PR,"__esModule",{value:!0});var OV=PR.default=void 0,yUe=gUe(Qe()),bUe=S;OV=PR.default=(0,yUe.default)((0,bUe.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var $R={},_Ue=We;Object.defineProperty($R,"__esModule",{value:!0});var EV=$R.default=void 0,xUe=_Ue(Qe()),wUe=S;EV=$R.default=(0,xUe.default)((0,wUe.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices");var RR={},SUe=We;Object.defineProperty(RR,"__esModule",{value:!0});var PV=RR.default=void 0,CUe=SUe(Qe()),OUe=S;PV=RR.default=(0,CUe.default)((0,OUe.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var TR={},EUe=We;Object.defineProperty(TR,"__esModule",{value:!0});var $V=TR.default=void 0,PUe=EUe(Qe()),$Ue=S;$V=TR.default=(0,PUe.default)((0,$Ue.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"}),"PermMedia");var kR={},RUe=We;Object.defineProperty(kR,"__esModule",{value:!0});var RV=kR.default=void 0,TUe=RUe(Qe()),kUe=S;RV=kR.default=(0,TUe.default)((0,kUe.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"}),"PersonPin");var IR={},IUe=We;Object.defineProperty(IR,"__esModule",{value:!0});var TV=IR.default=void 0,jUe=IUe(Qe()),AUe=S;TV=IR.default=(0,jUe.default)((0,AUe.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent");var jR={},MUe=We;Object.defineProperty(jR,"__esModule",{value:!0});var AR=jR.default=void 0,FUe=MUe(Qe()),LUe=S;AR=jR.default=(0,FUe.default)((0,LUe.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");const kV=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(zd,{...a,children:[S.jsx(Hv,{label:"resources.servernotices.action.send",disabled:a.pristine}),S.jsx(Nt,{label:"ra.action.cancel",onClick:t,children:S.jsx(uR,{})})]});return S.jsxs(Fv,{open:e,onClose:t,children:[S.jsx(Nv,{children:n("resources.servernotices.action.send")}),S.jsxs(Lv,{children:[S.jsx(J0,{children:n("resources.servernotices.helper.send")}),S.jsx(Ud,{toolbar:S.jsx(o,{}),onSubmit:r,children:S.jsx(Er,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:uo()})})]})]})},NUe=()=>{const e=ht(),[t,r]=d.useState(!1),n=Ht(),[o,{isLoading:a}]=mv(),i=()=>r(!0),s=()=>r(!1),c=l=>{o("servernotices",{data:{id:e.id,...l}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),s()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{label:"resources.servernotices.send",onClick:i,disabled:a,children:S.jsx(AR,{})}),S.jsx(kV,{open:t,onClose:s,onSubmit:c})]})},DUe=()=>{const{selectedIds:e}=tn(),[t,r]=d.useState(!1),n=()=>r(!0),o=()=>r(!1),a=Ht(),i=EB("users"),s=Jo(),{mutate:c,isLoading:l}=pd(f=>s.createMany("servernotices",{ids:e,data:f}),{onSuccess:()=>{a("resources.servernotices.action.send_success"),i(),o()},onError:()=>a("resources.servernotices.action.send_failure",{type:"error"})});return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{label:"resources.servernotices.send",onClick:n,disabled:l,children:S.jsx(AR,{})}),S.jsx(kV,{open:t,onClose:o,onSubmit:c})]})},BUe=e=>{const t=ht();return t?S.jsx(m2,{...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},IV=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],jV=[{id:"bot",name:"bot"},{id:"support",name:"support"}],AV=()=>{const{isLoading:e,total:t}=tn();return S.jsxs(bo,{children:[S.jsx(D$,{}),S.jsx(Dd,{disabled:e||t===0,maxResults:1e4}),S.jsx(Nt,{component:_a,to:"/import_users",label:"CSV Import",children:S.jsx(v2,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};AV.defaultProps={selectedIds:[],onUnselectItems:()=>null};const MV=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),zUe=[S.jsx(_1,{source:"name",alwaysOn:!0}),S.jsx(Ns,{source:"guests",alwaysOn:!0}),S.jsx(Ns,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],UUe=()=>S.jsxs(S.Fragment,{children:[S.jsx(DUe,{}),S.jsx(qv,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),VUe=e=>S.jsx(tl,{...e,filters:zUe,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:S.jsx(AV,{}),pagination:S.jsx(MV,{}),children:S.jsxs(zr,{rowClick:"edit",bulkActionButtons:S.jsx(UUe,{}),children:[S.jsx(hR,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),S.jsx(Me,{source:"id",sortBy:"name"}),S.jsx(Me,{source:"displayname"}),S.jsx(qa,{source:"is_guest"}),S.jsx(qa,{source:"admin"}),S.jsx(qa,{source:"deactivated"}),S.jsx(dn,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:fn})]})}),WUe=[uo(),Cy(253),qP(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],qUe=[uo(),Cy(255)],HUe=()=>{const e=ht(),t=je();return S.jsxs(bo,{children:[!e.deactivated&&S.jsx(NUe,{}),S.jsx(pu,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},GUe=e=>S.jsx(G2,{...e,children:S.jsxs(Ud,{children:[S.jsx(Er,{source:"id",autoComplete:"off",validate:WUe}),S.jsx(Er,{source:"displayname",validate:Cy(256)}),S.jsx(H2,{source:"password",autoComplete:"new-password",validate:Cy(512)}),S.jsx(ev,{source:"user_type",choices:jV,translateChoice:!1,resettable:!0}),S.jsx(Ns,{source:"admin"}),S.jsx(Yy,{source:"threepids",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(ev,{source:"medium",choices:IV,validate:uo()}),S.jsx(Er,{source:"address",validate:qUe})]})}),S.jsx(Yy,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(Er,{source:"auth_provider",validate:uo()}),S.jsx(Er,{source:"external_id",label:"resources.users.fields.id",validate:uo()})]})})]})}),KUe=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},QUe=e=>{const t=je();return S.jsx(K2,{...e,title:S.jsx(KUe,{}),actions:S.jsx(HUe,{}),children:S.jsxs(Q2,{children:[S.jsxs(da,{label:t("resources.users.name",{smart_count:1}),icon:S.jsx(RV,{}),children:[S.jsx(hR,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),S.jsx(Er,{source:"id",disabled:!0}),S.jsx(Er,{source:"displayname"}),S.jsx(H2,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),S.jsx(ev,{source:"user_type",choices:jV,translateChoice:!1,resettable:!0}),S.jsx(Ns,{source:"admin"}),S.jsx(Ns,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),S.jsx(dn,{source:"creation_ts_ms",showTime:!0,options:fn}),S.jsx(Me,{source:"consent_version"})]}),S.jsx(da,{label:"resources.users.threepid",icon:S.jsx(OV,{}),path:"threepid",children:S.jsx(Yy,{source:"threepids",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(ev,{source:"medium",choices:IV}),S.jsx(Er,{source:"address"})]})})}),S.jsx(da,{label:"synapseadmin.users.tabs.sso",icon:S.jsx(CV,{}),path:"sso",children:S.jsx(Yy,{source:"external_ids",label:!1,children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(Er,{source:"auth_provider",validate:uo()}),S.jsx(Er,{source:"external_id",label:"resources.users.fields.id",validate:uo()})]})})}),S.jsx(da,{label:t("resources.devices.name",{smart_count:2}),icon:S.jsx(EV,{}),path:"devices",children:S.jsx(wi,{reference:"devices",target:"user_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},children:[S.jsx(Me,{source:"device_id",sortable:!1}),S.jsx(Me,{source:"display_name",sortable:!1}),S.jsx(Me,{source:"last_seen_ip",sortable:!1}),S.jsx(dn,{source:"last_seen_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(BUe,{})]})})}),S.jsx(da,{label:"resources.connections.name",icon:S.jsx(TV,{}),path:"connections",children:S.jsx(Ha,{reference:"connections",source:"id",label:!1,link:!1,children:S.jsx(c6e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"ip",sortable:!1}),S.jsx(dn,{source:"last_seen",showTime:!0,options:fn,sortable:!1}),S.jsx(Me,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),S.jsx(da,{label:t("resources.users_media.name",{smart_count:2}),icon:S.jsx($V,{}),path:"media",children:S.jsx(wi,{reference:"users_media",target:"user_id",label:!1,pagination:S.jsx(MV,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:S.jsxs(zr,{style:{width:"100%"},children:[S.jsx(W9e,{source:"media_id"}),S.jsx(dn,{source:"created_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"last_access_ts",showTime:!0,options:fn}),S.jsx(Ci,{source:"media_length"}),S.jsx(Me,{source:"media_type"}),S.jsx(Me,{source:"upload_name"}),S.jsx(Me,{source:"quarantined_by"}),S.jsx(V9e,{label:"resources.quarantine_media.action.name"}),S.jsx(U9e,{label:"resources.users_media.fields.safe_from_quarantine"}),S.jsx(pu,{mutationMode:"pessimistic",redirect:!1})]})})}),S.jsx(da,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(fu,{}),path:"rooms",children:S.jsx(wi,{reference:"joined_rooms",target:"user_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),S.jsx(Ha,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Me,{source:"name",sortable:!1})})]})})}),S.jsx(da,{label:t("resources.pushers.name",{smart_count:2}),icon:S.jsx(PV,{}),path:"pushers",children:S.jsx(wi,{reference:"pushers",target:"user_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"kind",sortable:!1}),S.jsx(Me,{source:"app_display_name",sortable:!1}),S.jsx(Me,{source:"app_id",sortable:!1}),S.jsx(Me,{source:"data.url",sortable:!1}),S.jsx(Me,{source:"device_display_name",sortable:!1}),S.jsx(Me,{source:"lang",sortable:!1}),S.jsx(Me,{source:"profile_tag",sortable:!1}),S.jsx(Me,{source:"pushkey",sortable:!1})]})})})]})})},XUe={name:"users",icon:wR,list:VUe,edit:QUe,create:GUe},FV={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"}}}},YUe={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"}}}};OP(FV,YUe);const JUe={...FV,synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",deactivated:"Deaktiviert",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"}}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}},ZUe={...iV,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors ||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",deactivated:"Deactivated",guests:"Show guests",show_deactivated:"Show deactivated users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var eVe={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const tVe={...eVe,synapseadmin:{auth:{base_url:"URL du serveur d’accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l’authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d’accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var rVe={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:" "},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra più disponibile.",single_missing:"Il riferimento associato non sembra più disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale è occorso e la tua richiesta non è stata completata.",invalid_form:"Il modulo non è valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} è fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} è fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"È necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione è stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}};const nVe=gr(rVe),oVe={...nVe,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}};var LV={};Object.defineProperty(LV,"__esModule",{value:!0});var aVe={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}"}}},iVe=LV.default=aVe;const sVe={...iVe,synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}},lVe={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const o={method:"POST",body:JSON.stringify(Object.assign({device_id:localStorage.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r}))};e=e.replace(/\/+$/g,""),localStorage.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:s}=await Jl(i,o);localStorage.setItem("home_server",s.home_server),localStorage.setItem("user_id",s.user_id),localStorage.setItem("access_token",s.access_token),localStorage.setItem("device_id",s.device_id)},logout:async()=>{console.log("logout");const e=localStorage.getItem("base_url")+"/_matrix/client/r0/logout",t=localStorage.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await Jl(e,r),localStorage.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=localStorage.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},$o=(e,t={})=>{const r=localStorage.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),Jl(e,t)},EN=e=>{const t=localStorage.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const o=n[1],a=n[2];return`${t}/_matrix/media/r0/thumbnail/${o}/${a}?width=24&height=24&method=scale`},_r={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?EN(e.avatar_url):void 0,is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:e.creation_ts*1e3}),data:"users",total:e=>e.total,create:e=>({endpoint:`/_synapse/admin/v2/users/@${encodeURIComponent(e.id)}:${localStorage.getItem("home_server")}`,body:e,method:"PUT"}),delete:e=>({endpoint:`/_synapse/admin/v1/deactivate/${encodeURIComponent(e.id)}`,body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:`/_synapse/admin/v2/rooms/${e.id}`,body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e)}/devices`}),delete:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e.previousData.user_id)}/devices/${e.id}`})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/members`}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/state`}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/pushers`}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/joined_rooms`}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/media`}),data:"media",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/media/${localStorage.getItem("home_server")}/${e.id}`})},delete_media:{delete:e=>({endpoint:`/_synapse/admin/v1/media/${localStorage.getItem("home_server")}/delete?before_ts=${e.meta.before_ts}&size_gt=${e.meta.size_gt}&keep_profiles=${e.meta.keep_profiles}`,method:"POST"})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${localStorage.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${localStorage.getItem("home_server")}/${e.id}`,method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/forward_extremities`}),data:"results",total:e=>e.count,delete:e=>({endpoint:`/_synapse/admin/v1/rooms/${e.id}/forward_extremities`})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:e.avatar_url?EN(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 Rf(e,t){if(!(t===null&&e!=="user_type"))return t}function PN(e){return e==="DESC"?"b":"f"}const uVe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,search_term:i,destination:s,valid:c}=t.filter,{page:l,perPage:f}=t.pagination,{field:v,order:m}=t.sort,h=(l-1)*f,x={from:h,limit:f,user_id:r,search_term:i,name:n,destination:s,guests:o,deactivated:a,valid:c,order_by:v,dir:PN(m)},w=localStorage.getItem("base_url");if(!w||!(e in _r))throw Error("Homeserver not set");const C=_r[e],g=`${w+C.path}?${Yl.stringify(x)}`,{json:_}=await $o(g);return{data:_[C.data].map(C.map),total:C.total(_,h,f)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path,{json:a}=await $o(`${o}/${encodeURIComponent(t.id)}`);return{data:n.map(a)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homerserver not set");const n=_r[e],o=r+n.path,a=await Promise.all(t.ids.map(i=>$o(`${o}/${encodeURIComponent(i)}`)));return{data:a.map(({json:i})=>n.map(i)),total:a.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i=(r-1)*n,s={from:i,limit:n,order_by:o,dir:PN(a)},c=localStorage.getItem("base_url");if(!c||!(e in _r))throw Error("Homeserver not set");const l=_r[e],f=l.reference(t.id),v=`${c}${f.endpoint}?${Yl.stringify(s)}`,{json:m}=await $o(v);return{data:m[l.data].map(l.map),total:l.total(m,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path,{json:a}=await $o(`${o}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,Rf)});return{data:n.map(a)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>$o(`${o}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,Rf)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if(!("create"in n))return Promise.reject();const o=n.create(t.data),a=r+o.endpoint,{json:i}=await $o(a,{method:o.method,body:JSON.stringify(o.body,Rf)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(a=>{t.data.id=a;const i=n.create(t.data),s=r+i.endpoint;return $o(s,{method:i.method,body:JSON.stringify(i.body,Rf)})}))).map(({json:a})=>a)}},delete:async(e,t)=>{console.log("delete "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if("delete"in n){const o=n.delete(t),a=r+o.endpoint,{json:i}=await $o(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null});return{data:i}}else{const o=r+n.path,{json:a}=await $o(`${o}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,Rf)});return{data:a}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(a=>{const i=n.delete({...t,id:a}),s=r+i.endpoint;return $o(s,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:a})=>a)};{const o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>$o(`${o}/${i}`,{method:"DELETE"})))).map(({json:i})=>i)}}}},kh={de:JUe,en:ZUe,fr:tVe,it:oVe,zh:sVe},cVe=A4(e=>kh[e]?Tb.merge({},kh.en,kh[e]):kh.en,Hpe(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"zh",name:"简体中文"}]),dVe=()=>S.jsxs(u9e,{disableTelemetry:!0,requireAuth:!0,loginPage:r8e,authProvider:lVe,dataProvider:uVe,i18nProvider:cVe,children:[S.jsx(YB,{children:S.jsx(Jr,{path:"/import_users",element:S.jsx(Z9e,{})})}),S.jsx(Ir,{...XUe}),S.jsx(Ir,{...aUe}),S.jsx(Ir,{...pUe}),S.jsx(Ir,{...X9e}),S.jsx(Ir,{...w8e}),S.jsx(Ir,{...M8e}),S.jsx(Ir,{...f8e}),S.jsx(Ir,{name:"connections"}),S.jsx(Ir,{name:"devices"}),S.jsx(Ir,{name:"room_members"}),S.jsx(Ir,{name:"users_media"}),S.jsx(Ir,{name:"joined_rooms"}),S.jsx(Ir,{name:"pushers"}),S.jsx(Ir,{name:"servernotices"}),S.jsx(Ir,{name:"forward_extremities"}),S.jsx(Ir,{name:"room_state"}),S.jsx(Ir,{name:"destination_rooms"})]});fetch("config.json").then(e=>e.json()).then(e=>z3(document.getElementById("root")).render(S.jsx(ve.StrictMode,{children:S.jsx(fV.Provider,{value:e,children:S.jsx(dVe,{})})}))); +`);var q=0,U=!1;this.parse=function(W,te,ne){if(typeof W!="string")throw new Error("Input must be a string");var ee=W.length,Ce=A.length,de=F.length,oe=L.length,me=T(D),Re=[],ye=[],fe=[],ge=q=0;if(!W)return Ot();if(R.header&&!te){var ce=W.split(F)[0].split(A),pe=[],ae={},Se=!1;for(var Oe in ce){var Ne=ce[Oe];T(R.transformHeader)&&(Ne=R.transformHeader(Ne,Oe));var Xe=Ne,V=ae[Ne]||0;for(0=z)return Ot(!0)}else for(Ie=q,q++;;){if((Ie=W.indexOf(I,Ie+1))===-1)return ne||ye.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Re.length,index:q}),ft();if(Ie===ee-1)return ft(W.substring(q,Ie).replace(Ee,I));if(I!==G||W[Ie+1]!==G){if(I===G||Ie===0||W[Ie-1]!==G){se!==-1&&se=z)return Ot(!0);break}ye.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Re.length,index:q}),Ie++}}else Ie++}return ft();function Le(et){Re.push(et),ge=q}function De(et){var ke=0;if(et!==-1){var Be=W.substring(Ie+1,et);Be&&Be.trim()===""&&(ke=Be.length)}return ke}function ft(et){return ne||(et===void 0&&(et=W.substring(q)),fe.push(et),q=ee,Le(fe),me&&Ue()),Ot()}function Et(et){q=et,Le(fe),fe=[],ue=W.indexOf(F,q)}function Ot(et){return{data:Re,errors:ye,meta:{delimiter:A,linebreak:F,aborted:U,truncated:!!et,cursor:ge+(te||0)}}}function Ue(){D(Ot()),Re=[],ye=[]}},this.abort=function(){U=!0},this.getCharIndex=function(){return q}}function g(R){var I=R.data,A=i[I.workerId],F=!1;if(I.error)A.userError(I.error,I.file);else if(I.results&&I.results.data){var L={abort:function(){F=!0,_(I.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(T(A.userStep)){for(var D=0;D{const[e,t]=d.useState([]),[r,n]=d.useState(null),[o,a]=d.useState(null),[i,s]=d.useState(!0),[c,l]=d.useState(null),[f,v]=d.useState(null),[m,h]=d.useState(""),[x,w]=d.useState("stop"),[C,b]=d.useState(!0),[g,_]=d.useState("ignore"),$=je(),P=Ht(),E=Jo(),T=async de=>{if(c!==null)return;t([]),n(null),a(null),v(null);const oe=de.target.files?de.target.files[0]:null;if(oe){if(oe.size>1e8){const me=$("import_users.errors.unreasonably_big",{size:(oe.size/1048576).toFixed(2)});P(me),n(me);return}try{ON.parse(oe,{header:!0,skipEmptyLines:!0,complete:me=>{me.errors&&n(me.errors.map(Re=>Re.toString())),R(me,{setValues:t,setStats:a,setError:n})}})}catch{return n("Unknown error"),null}}},R=({data:de,meta:oe,errors:me},{setValues:Re,setStats:ye,setError:fe})=>{const ge=Y9e.filter(ae=>{var Se;return(Se=oe.fields)==null?void 0:Se.find(Oe=>ae===Oe)});if(ge.length>0)return fe($("import_users.error.required_field",{field:ge[0]})),!1;const ce={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:de.length},pe=me.map(ae=>ae.message);return de.forEach((ae,Se)=>{var Oe,Ne,Xe;ae.user_type===void 0||ae.user_type===""?ce.user_types.default++:ce.user_types[ae.user_type]+=1,(Oe=oe.fields)!=null&&Oe.includes("name")&&delete ae.name,(Ne=oe.fields)!=null&&Ne.includes("user_type")&&delete ae.user_type,(Xe=oe.fields)!=null&&Xe.includes("is_admin")&&delete ae.is_admin,["is_guest","admin","deactivated"].forEach(V=>{ae[V]==="true"?(ce[V]++,ae[V]=!0):(ae[V]!=="false"&&ae[V]!==""&&pe.push($("import_users.error.invalid_value",{field:V,row:Se})),ae[V]=!1)}),ae.password!==void 0&&ae.password!==""&&ce.password++,ae.avatar_url!==void 0&&ae.avatar_url!==""&&ce.avatar_url++,ae.id!==void 0&&ae.id!==""&&ce.id++}),pe.length>0&&fe(pe),ye(ce),Re(de),!0},I=async()=>{if(c!==null){P("import_users.errors.already_in_progress");return}const de=await A(E,e,x,C,g,i,l,n);v(de),h(ON.unparse(de.skippedRecords)),console.log("Skipped records:"),console.log(m)},A=async(de,oe,me,Re,ye,fe,ge,ce)=>{const pe=[],ae=[],Se=[],Oe={total:0,id:0,is_guest:0,admin:0,password:0};let Ne=0;const Xe=oe.length;try{ge({done:Ne,limit:Xe});for(const V of oe){const X={...V};(ye==="ignore"||X.id===void 0)&&(X.id=CN()),(Re===!1||V.password===void 0)&&(X.password=D9e()),ww&&console.log("will check for existence of record "+JSON.stringify(X));let Y=0;const ie=se=>de.getOne("users",{id:se.id}).then(async()=>{if(ww&&console.log("already existed"),ye==="update"||me==="skip")pe.push(se);else{if(me==="stop")throw new Error($("import_users.error.id_exits",{id:se.id}));{const ue=Object.assign({},se,{id:CN()});Y++,Y>512?(console.warn("retry loop got stuck? pathological situation?"),pe.push(se)):await ie(ue)}}},async()=>{ww&&console.log("OK to create record "+se.id+" ("+se.displayname+")."),fe||await de.create("users",{data:se}),Se.push(se)});await ie(X),Ne++,ge({done:Ne,limit:oe.length})}ge(null)}catch(V){ce($("import_users.error.at_entry",{entry:Ne+1,message:V instanceof Error?V.message:String(V)})),ge(null)}return{skippedRecords:pe,erroredRecords:ae,succeededRecords:Se,totalRecordCount:Xe,changeStats:Oe,wasDryRun:fe}},F=()=>{const de=document.createElement("a");console.log(m);const oe=new Blob([m],{type:"text/comma-separated-values"});de.href=URL.createObjectURL(oe),de.download="skippedRecords.csv",document.body.appendChild(de),de.click()},L=async de=>{if(c!==null)return;const oe=de.target.value;w(oe)},D=de=>{c===null&&b(de.target.checked)},z=async de=>{if(c!==null)return;const oe=de.target.value;_(oe)},H=de=>{c===null&&s(de.target.checked)},G=o&&!f&&[S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.importstats.header")}),S.jsxs(Io,{children:[S.jsx("div",{children:$("import_users.cards.importstats.users_total",o.total)}),S.jsx("div",{children:$("import_users.cards.importstats.guest_count",o.is_guest)}),S.jsx("div",{children:$("import_users.cards.importstats.admin_count",o.admin)})]})]}),S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.ids.header")}),S.jsxs(Io,{children:[S.jsx("div",{children:o.id===o.total?$("import_users.cards.ids.all_ids_present"):$("import_users.cards.ids.count_ids_present",o.id)}),o.id>0?S.jsx("div",{children:S.jsxs(TL,{onChange:z,value:g,disabled:c!==null,children:[S.jsx(Th,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),S.jsx(Th,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.passwords.header")}),S.jsxs(Io,{children:[S.jsx("div",{children:o.password===o.total?$("import_users.cards.passwords.all_passwords_present"):$("import_users.cards.passwords.count_passwords_present",o.password)}),o.password>0?S.jsx("div",{children:S.jsx(_C,{control:S.jsx(od,{checked:C,disabled:c!==null,onChange:D}),label:$("import_users.cards.passwords.use_passwords")})}):""]})]})],q=o&&!f&&S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.conflicts.header")}),S.jsx(Io,{children:S.jsx("div",{children:S.jsxs(TL,{onChange:L,value:x,disabled:c!==null,children:[S.jsx(Th,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),S.jsx(Th,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),U=r&&S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.error.error")}),S.jsx(Io,{children:(Array.isArray(r)?r:[r]).map(de=>S.jsx("div",{children:de}))})]}),W=!f&&S.jsxs(Vu,{children:[S.jsx(vl,{title:$("import_users.cards.upload.header")}),S.jsxs(Io,{children:[$("import_users.cards.upload.explanation"),S.jsx("a",{href:"./data/example.csv",children:"example.csv"}),S.jsx("br",{}),S.jsx("br",{}),S.jsx("input",{type:"file",onChange:T,disabled:c!==null})]})]}),te=f&&S.jsxs(Io,{children:[S.jsx(vl,{title:$("import_users.cards.results.header")}),S.jsxs("div",{children:[$("import_users.cards.results.total",f.totalRecordCount),S.jsx("br",{}),$("import_users.cards.results.successful",f.succeededRecords.length),S.jsx("br",{}),f.skippedRecords.length?[$("import_users.cards.results.skipped",f.skippedRecords.length),S.jsx("div",{children:S.jsx("button",{onClick:F,children:$("import_users.cards.results.download_skipped")})}),S.jsx("br",{})]:"",f.erroredRecords.length?[$("import_users.cards.results.skipped",f.erroredRecords.length),S.jsx("br",{})]:"",S.jsx("br",{}),f.wasDryRun&&[$("import_users.cards.results.simulated_only"),S.jsx("br",{})]]})]}),ne=!e||e.length===0||f?void 0:S.jsxs(n9,{children:[S.jsx(_C,{control:S.jsx(od,{checked:i,onChange:H,disabled:c!==null}),label:$("import_users.cards.startImport.simulate_only")}),S.jsx($r,{size:"large",onClick:I,disabled:c!==null,children:$("import_users.cards.startImport.run_import")}),c!==null?S.jsxs("div",{children:[c.done," of ",c.limit," done"]}):null]}),ee=[];W&&ee.push(W),U&&ee.push(U),q&&ee.push(q),G&&ee.push(...G),ne&&ee.push(ne),te&&ee.push(te);const Ce=S.jsx(du,{children:ee});return[S.jsx(Zs,{defaultTitle:$("import_users.title")}),Ce]},Z9e=J9e,dV=d.createContext({}),e8e=()=>d.useContext(dV),t8e=J(On)(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1rem)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{width:"30rem",marginTop:"6rem",marginBottom:"6rem"},"& .avatar":{margin:"1rem",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:e.palette.grey[500]},"& .hint":{marginTop:"1em",marginBottom:"1em",display:"flex",justifyContent:"center",color:e.palette.grey[600]},"& .form":{padding:"0 1rem 1rem 1rem"},"& .select":{marginBottom:"2rem"},"& .actions":{padding:"0 1rem 1rem 1rem"},"& .serverVersion":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginLeft:"0.5rem"},"& .matrixVersions":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.8rem",marginBottom:"1rem",marginLeft:"0.5rem"}})),r8e=()=>{const e=vz(),t=Ht(),{restrictBaseUrl:r}=e8e(),n=typeof r=="string",o=Array.isArray(r),a=!(n||o),[i,s]=d.useState(!1),[c,l]=d.useState(!0),[f,v]=PP(),m=$P(),h=je(),x=n?r:localStorage.getItem("base_url"),[w,C]=d.useState(""),b=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(b){const E=b[1];console.log("SSO token is",E),window.history.replaceState({},"",window.location.href.replace(b[0],"#").split("#")[0]);const T=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),T){const R={base_url:T,username:null,password:null,loginToken:E};console.log("Base URL is:",T),console.log("SSO Token is:",E),console.log("Let's try token login..."),e(R).catch(I=>{alert(typeof I=="string"?I:typeof I>"u"||!I.message?"ra.auth.sign_in_error":I.message),console.error(I)})}}const g=E=>E.match(/^(http|https):\/\//)?E.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:h("synapseadmin.auth.url_error"):h("synapseadmin.auth.protocol_error"),_=E=>{s(!0),e(E).catch(T=>{s(!1),t(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.message,{type:"warning"})})},$=()=>{localStorage.setItem("sso_base_url",w);const E=`${w}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=E},P=({formData:E})=>{const T=Zo(),[R,I]=d.useState(""),[A,F]=d.useState(""),L=()=>{var z;if(E.base_url||n)return;const D=(z=I9e(E.username))==null?void 0:z.domain;D&&A9e(D).then(H=>{(a||o&&r.includes(H))&&T.setValue("base_url",H)})};return d.useEffect(()=>{E.base_url===""&&o&&T.setValue("base_url",r[0]),j9e(E.base_url)&&(M9e(E.base_url).then(D=>I(`${h("synapseadmin.auth.server_version")} ${D}`)).catch(()=>I("")),F9e(E.base_url).then(D=>F(`${h("synapseadmin.auth.supports_specs")} ${D.versions.join(", ")}`)).catch(()=>F("")),L9e(E.base_url).then(D=>{const z=D.find(G=>G.type==="m.login.password")!==void 0,H=D.find(G=>G.type==="m.login.sso")!==void 0;l(z),C(H?E.base_url:"")}).catch(()=>C("")))},[E.base_url,T]),S.jsxs(S.Fragment,{children:[S.jsx(On,{children:S.jsx(Er,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!c,onBlur:L,resettable:!0,fullWidth:!0,validate:uo()})}),S.jsx(On,{children:S.jsx(H2,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!c,resettable:!0,fullWidth:!0,validate:uo()})}),S.jsx(On,{children:S.jsx(Er,{source:"base_url",label:"synapseadmin.auth.base_url",select:o,autoComplete:"url",disabled:i,readOnly:n,resettable:a,fullWidth:!0,validate:[uo(),g],children:o&&r.map(D=>S.jsx(so,{value:D,children:D},D))})}),S.jsx(it,{className:"serverVersion",children:R}),S.jsx(it,{className:"matrixVersions",children:A})]})};return S.jsxs(i0,{defaultValues:{base_url:x},onSubmit:_,mode:"onTouched",children:[S.jsx(t8e,{children:S.jsxs(du,{className:"card",children:[S.jsx(On,{className:"avatar",children:i?S.jsx(Md,{size:25,thickness:2}):S.jsx(Gp,{className:"icon",children:S.jsx(zv,{})})}),S.jsx(On,{className:"hint",children:h("synapseadmin.auth.welcome")}),S.jsxs(On,{className:"form",children:[S.jsx(M$,{value:f,onChange:E=>v(E.target.value),fullWidth:!0,disabled:i,className:"select",children:m.map(E=>S.jsx(so,{value:E.locale,children:E.name},E.locale))}),S.jsx(eC,{children:E=>S.jsx(P,{...E})}),S.jsxs(n9,{className:"actions",children:[S.jsx($r,{variant:"contained",type:"submit",color:"primary",disabled:i||!c,fullWidth:!0,children:h("ra.auth.sign_in")}),S.jsx($r,{variant:"contained",color:"secondary",onClick:$,disabled:i||w==="",fullWidth:!0,children:h("synapseadmin.auth.sso_sign_in")})]})]})]})}),S.jsx(f2,{})]})};var vR={},n8e=We;Object.defineProperty(vR,"__esModule",{value:!0});var fV=vR.default=void 0,o8e=n8e(Qe()),a8e=S;fV=vR.default=(0,o8e.default)((0,a8e.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber");const i8e=[qP(/^[A-Za-z0-9._~-]{0,64}$/)],pV=[Cz()],s8e=[Cz(),k1e(64)],l8e=[S.jsx(Ns,{source:"valid",alwaysOn:!0})],u8e=e=>S.jsx(tl,{...e,filters:l8e,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:S.jsxs(zr,{rowClick:"edit",children:[S.jsx(Me,{source:"token",sortable:!1}),S.jsx(Ci,{source:"uses_allowed",sortable:!1}),S.jsx(Ci,{source:"pending",sortable:!1}),S.jsx(Ci,{source:"completed",sortable:!1}),S.jsx(dn,{source:"expiry_time",showTime:!0,options:fn,sortable:!1})]})}),c8e=e=>S.jsx(G2,{...e,redirect:"list",children:S.jsxs(Ud,{toolbar:S.jsx(zd,{children:S.jsx(Hv,{alwaysEnable:!0})}),children:[S.jsx(Er,{source:"token",autoComplete:"off",validate:i8e,resettable:!0}),S.jsx(zl,{source:"length",validate:s8e,helperText:"resources.registration_tokens.helper.length",step:1}),S.jsx(zl,{source:"uses_allowed",validate:pV,step:1}),S.jsx(b1,{source:"expiry_time",parse:iR})]})}),d8e=e=>S.jsx(K2,{...e,children:S.jsxs(Ud,{children:[S.jsx(Er,{source:"token",disabled:!0}),S.jsx(zl,{source:"pending",disabled:!0}),S.jsx(zl,{source:"completed",disabled:!0}),S.jsx(zl,{source:"uses_allowed",validate:pV,step:1}),S.jsx(b1,{source:"expiry_time",parse:iR,format:h9e})]})}),f8e={name:"registration_tokens",icon:fV,list:u8e,edit:d8e,create:c8e};var mR={},p8e=We;Object.defineProperty(mR,"__esModule",{value:!0});var mu=mR.default=void 0,v8e=p8e(Qe()),m8e=S;mu=mR.default=(0,v8e.default)((0,m8e.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"}),"FolderShared");const hR=({source:e,...t})=>{var l;const r=ht(t),n=(l=Tb.get(r,e))==null?void 0:l.toString(),{alt:o,classes:a,sizes:i,sx:s,variant:c}=t;return S.jsx(Gp,{alt:o,classes:a,sizes:i,src:n,sx:s,variant:c})},h8e=()=>S.jsx(el,{rowsPerPageOptions:[100,500,1e3,2e3]}),g8e=e=>{const t=je();return S.jsx(pu,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:S.jsx(mu,{})})},vV=e=>S.jsx(qv,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:S.jsx(mu,{})}),y8e=e=>{const{selectedIds:t}=tn(),r=Ht(),n=ei(),o=EB("rooms"),a=Jo(),{mutate:i,isLoading:s}=pd(()=>a.createMany("room_directory",{ids:t,data:{}}),{onSuccess:()=>{r("resources.room_directory.action.send_success"),o(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return S.jsx(Nt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:s,children:S.jsx(mu,{})})},b8e=e=>{const t=ht(),r=Ht(),n=ei(),[o,{isLoading:a}]=mv(),i=()=>{o("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return S.jsx(Nt,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:a,children:S.jsx(mu,{})})},_8e=()=>S.jsxs(bo,{children:[S.jsx(nU,{}),S.jsx(Dd,{})]}),x8e=()=>S.jsx(tl,{pagination:S.jsx(h8e,{}),perPage:100,actions:S.jsx(_8e,{}),children:S.jsxs(M2,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:S.jsx(vV,{}),omit:["room_id","canonical_alias","topic"],children:[S.jsx(hR,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),S.jsx(Me,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),S.jsx(Me,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),S.jsx(Me,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),S.jsx(Me,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),S.jsx(Ci,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),S.jsx(qa,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),S.jsx(qa,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),w8e={name:"room_directory",icon:mu,list:x8e};var gR={},S8e=We;Object.defineProperty(gR,"__esModule",{value:!0});var mV=gR.default=void 0,C8e=S8e(Qe()),O8e=S;mV=gR.default=(0,C8e.default)((0,O8e.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var yR={},E8e=We;Object.defineProperty(yR,"__esModule",{value:!0});var hV=yR.default=void 0,P8e=E8e(Qe()),$8e=S;hV=yR.default=(0,P8e.default)((0,$8e.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue");const gV=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),R8e=e=>({backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}),T8e=[S.jsx(_1,{source:"destination",alwaysOn:!0})],yV=()=>{const e=ht(),t=ei(),r=Ht(),[n,{isLoading:o}]=Pd();if(!e||!e.failure_ts)return null;const a=i=>{i.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return S.jsx(Nt,{label:"resources.destinations.action.reconnect",onClick:a,disabled:o,children:S.jsx(mV,{})})},k8e=()=>S.jsx(bo,{children:S.jsx(yV,{})}),I8e=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.destinations.name",1)," ",e.destination]})},j8e=e=>S.jsx(tl,{...e,filters:T8e,pagination:S.jsx(gV,{}),sort:{field:"destination",order:"ASC"},children:S.jsxs(zr,{rowSx:R8e,rowClick:t=>`${t}/show/rooms`,bulkActionButtons:!1,children:[S.jsx(Me,{source:"destination"}),S.jsx(dn,{source:"failure_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"retry_last_ts",showTime:!0,options:fn}),S.jsx(Me,{source:"retry_interval"}),S.jsx(Me,{source:"last_successful_stream_ordering"}),S.jsx(yV,{})]})}),A8e=e=>{const t=je();return S.jsx(x1,{actions:S.jsx(k8e,{}),title:S.jsx(I8e,{}),...e,children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:"status",icon:S.jsx(fu,{}),children:[S.jsx(Me,{source:"destination"}),S.jsx(dn,{source:"failure_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"retry_last_ts",showTime:!0,options:fn}),S.jsx(Me,{source:"retry_interval"}),S.jsx(Me,{source:"last_successful_stream_ordering"})]}),S.jsx(Fo,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(mu,{}),path:"rooms",children:S.jsx(wi,{reference:"destination_rooms",target:"destination",label:!1,pagination:S.jsx(gV,{}),perPage:50,children:S.jsxs(zr,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[S.jsx(Me,{source:"room_id",label:"resources.rooms.fields.room_id"}),S.jsx(Me,{source:"stream_ordering",sortable:!1}),S.jsx(Ha,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Me,{source:"name",sortable:!1})})]})})})]})})},M8e={name:"destinations",icon:hV,list:j8e,show:A8e};var bR={},F8e=We;Object.defineProperty(bR,"__esModule",{value:!0});var bV=bR.default=void 0,L8e=F8e(Qe()),N8e=S;bV=bR.default=(0,L8e.default)((0,N8e.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event");var _R={},D8e=We;Object.defineProperty(_R,"__esModule",{value:!0});var _V=_R.default=void 0,B8e=D8e(Qe()),z8e=S;_V=_R.default=(0,B8e.default)((0,z8e.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var xR={},U8e=We;Object.defineProperty(xR,"__esModule",{value:!0});var wR=xR.default=void 0,V8e=U8e(Qe()),W8e=S;wR=xR.default=(0,V8e.default)((0,W8e.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");var SR={},q8e=We;Object.defineProperty(SR,"__esModule",{value:!0});var qO=SR.default=void 0,H8e=q8e(Qe()),G8e=S;qO=SR.default=(0,H8e.default)((0,G8e.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https");var CR={},K8e=We;Object.defineProperty(CR,"__esModule",{value:!0});var xV=CR.default=void 0,Q8e=K8e(Qe()),X8e=S;xV=CR.default=(0,Q8e.default)((0,X8e.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");const Y8e=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),J8e=()=>{const e=ht(),t=je();let r="";return e&&(r=e.name!==""?e.name:e.id),S.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},Z8e=()=>{const t=ht().public?S.jsx(g8e,{}):S.jsx(b8e,{});return S.jsxs(bo,{children:[t,S.jsx(pu,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},eUe=e=>{const t=je();return S.jsx(x1,{...e,actions:S.jsx(Z8e,{}),title:S.jsx(J8e,{}),children:S.jsxs(Kv,{children:[S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.basic",icon:S.jsx(fu,{}),children:[S.jsx(Me,{source:"room_id"}),S.jsx(Me,{source:"name"}),S.jsx(Me,{source:"topic"}),S.jsx(Me,{source:"canonical_alias"}),S.jsx(Ha,{source:"creator",reference:"users",children:S.jsx(Me,{source:"id"})})]}),S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.detail",icon:S.jsx(oR,{}),path:"detail",children:[S.jsx(Me,{source:"joined_members"}),S.jsx(Me,{source:"joined_local_members"}),S.jsx(Me,{source:"joined_local_devices"}),S.jsx(Me,{source:"state_events"}),S.jsx(Me,{source:"version"}),S.jsx(Me,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),S.jsx(Fo,{label:"synapseadmin.rooms.tabs.members",icon:S.jsx(wR,{}),path:"members",children:S.jsx(wi,{reference:"room_members",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1,label:"resources.users.fields.id"}),S.jsx(Ha,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:S.jsx(Me,{source:"displayname",sortable:!1})})]})})}),S.jsxs(Fo,{label:"synapseadmin.rooms.tabs.permission",icon:S.jsx(W2,{}),path:"permission",children:[S.jsx(qa,{source:"federatable"}),S.jsx(qa,{source:"public"}),S.jsx(xw,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),S.jsx(xw,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),S.jsx(xw,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),S.jsx(Fo,{label:t("resources.room_state.name",{smart_count:2}),icon:S.jsx(bV,{}),path:"state",children:S.jsx(wi,{reference:"room_state",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"type",sortable:!1}),S.jsx(dn,{source:"origin_server_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Me,{source:"content",sortable:!1}),S.jsx(Ha,{source:"sender",reference:"users",sortable:!1,children:S.jsx(Me,{source:"id"})})]})})}),S.jsxs(Fo,{label:"resources.forward_extremities.name",icon:S.jsx(_V,{}),path:"forward_extremities",children:[S.jsx(On,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),S.jsx(wi,{reference:"forward_extremities",target:"room_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1}),S.jsx(dn,{source:"received_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(Ci,{source:"depth",sortable:!1}),S.jsx(Me,{source:"state_group",sortable:!1})]})})]})]})})},tUe=()=>S.jsxs(S.Fragment,{children:[S.jsx(y8e,{}),S.jsx(vV,{}),S.jsx(qv,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),rUe=[S.jsx(_1,{source:"search_term",alwaysOn:!0})],nUe=()=>S.jsxs(bo,{children:[S.jsx(nU,{}),S.jsx(Dd,{})]}),oUe=e=>{const t=ra();return S.jsx(tl,{...e,pagination:S.jsx(Y8e,{}),sort:{field:"name",order:"ASC"},filters:rUe,actions:S.jsx(nUe,{}),children:S.jsxs(M2,{rowClick:"show",bulkActionButtons:S.jsx(tUe,{}),omit:["joined_local_members","state_events","version","federatable"],children:[S.jsx(qa,{source:"is_encrypted",sortBy:"encryption",TrueIcon:qO,FalseIcon:xV,label:S.jsx(qO,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),S.jsx(VU,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),S.jsx(Me,{source:"joined_members"}),S.jsx(Me,{source:"joined_local_members"}),S.jsx(Me,{source:"state_events"}),S.jsx(Me,{source:"version"}),S.jsx(qa,{source:"federatable"}),S.jsx(qa,{source:"public"})]})})},aUe={name:"rooms",icon:fu,list:oUe,show:eUe};var OR={},iUe=We;Object.defineProperty(OR,"__esModule",{value:!0});var wV=OR.default=void 0,sUe=iUe(Qe()),lUe=S;wV=OR.default=(0,sUe.default)((0,lUe.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const uUe=()=>{const{isLoading:e,total:t}=tn();return S.jsxs(bo,{children:[S.jsx(z9e,{}),S.jsx(Dd,{disabled:e||t===0})]})},cUe=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),dUe=[S.jsx(_1,{source:"search_term",alwaysOn:!0})],fUe=e=>S.jsx(tl,{...e,actions:S.jsx(uUe,{}),filters:dUe,pagination:S.jsx(cUe,{}),sort:{field:"media_length",order:"DESC"},children:S.jsxs(zr,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[S.jsx(Me,{source:"user_id",label:"resources.users.fields.id"}),S.jsx(Me,{source:"displayname",label:"resources.users.fields.displayname"}),S.jsx(Ci,{source:"media_count"}),S.jsx(Ci,{source:"media_length"})]})}),pUe={name:"user_media_statistics",icon:wV,list:fUe};var ER={},vUe=We;Object.defineProperty(ER,"__esModule",{value:!0});var SV=ER.default=void 0,mUe=vUe(Qe()),hUe=S;SV=ER.default=(0,mUe.default)((0,hUe.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"}),"AssignmentInd");var PR={},gUe=We;Object.defineProperty(PR,"__esModule",{value:!0});var CV=PR.default=void 0,yUe=gUe(Qe()),bUe=S;CV=PR.default=(0,yUe.default)((0,bUe.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var $R={},_Ue=We;Object.defineProperty($R,"__esModule",{value:!0});var OV=$R.default=void 0,xUe=_Ue(Qe()),wUe=S;OV=$R.default=(0,xUe.default)((0,wUe.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices");var RR={},SUe=We;Object.defineProperty(RR,"__esModule",{value:!0});var EV=RR.default=void 0,CUe=SUe(Qe()),OUe=S;EV=RR.default=(0,CUe.default)((0,OUe.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var TR={},EUe=We;Object.defineProperty(TR,"__esModule",{value:!0});var PV=TR.default=void 0,PUe=EUe(Qe()),$Ue=S;PV=TR.default=(0,PUe.default)((0,$Ue.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"}),"PermMedia");var kR={},RUe=We;Object.defineProperty(kR,"__esModule",{value:!0});var $V=kR.default=void 0,TUe=RUe(Qe()),kUe=S;$V=kR.default=(0,TUe.default)((0,kUe.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"}),"PersonPin");var IR={},IUe=We;Object.defineProperty(IR,"__esModule",{value:!0});var RV=IR.default=void 0,jUe=IUe(Qe()),AUe=S;RV=IR.default=(0,jUe.default)((0,AUe.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent");var jR={},MUe=We;Object.defineProperty(jR,"__esModule",{value:!0});var AR=jR.default=void 0,FUe=MUe(Qe()),LUe=S;AR=jR.default=(0,FUe.default)((0,LUe.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");const TV=({open:e,onClose:t,onSubmit:r})=>{const n=je(),o=a=>S.jsxs(zd,{...a,children:[S.jsx(Hv,{label:"resources.servernotices.action.send",disabled:a.pristine}),S.jsx(Nt,{label:"ra.action.cancel",onClick:t,children:S.jsx(uR,{})})]});return S.jsxs(Fv,{open:e,onClose:t,children:[S.jsx(Nv,{children:n("resources.servernotices.action.send")}),S.jsxs(Lv,{children:[S.jsx(J0,{children:n("resources.servernotices.helper.send")}),S.jsx(Ud,{toolbar:S.jsx(o,{}),onSubmit:r,children:S.jsx(Er,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:uo()})})]})]})},NUe=()=>{const e=ht(),[t,r]=d.useState(!1),n=Ht(),[o,{isLoading:a}]=mv(),i=()=>r(!0),s=()=>r(!1),c=l=>{o("servernotices",{data:{id:e.id,...l}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),s()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{label:"resources.servernotices.send",onClick:i,disabled:a,children:S.jsx(AR,{})}),S.jsx(TV,{open:t,onClose:s,onSubmit:c})]})},DUe=()=>{const{selectedIds:e}=tn(),[t,r]=d.useState(!1),n=()=>r(!0),o=()=>r(!1),a=Ht(),i=EB("users"),s=Jo(),{mutate:c,isLoading:l}=pd(f=>s.createMany("servernotices",{ids:e,data:f}),{onSuccess:()=>{a("resources.servernotices.action.send_success"),i(),o()},onError:()=>a("resources.servernotices.action.send_failure",{type:"error"})});return S.jsxs(S.Fragment,{children:[S.jsx(Nt,{label:"resources.servernotices.send",onClick:n,disabled:l,children:S.jsx(AR,{})}),S.jsx(TV,{open:t,onClose:o,onSubmit:c})]})},BUe=e=>{const t=ht();return t?S.jsx(m2,{...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},kV=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],IV=[{id:"bot",name:"bot"},{id:"support",name:"support"}],jV=()=>{const{isLoading:e,total:t}=tn();return S.jsxs(bo,{children:[S.jsx(D$,{}),S.jsx(Dd,{disabled:e||t===0,maxResults:1e4}),S.jsx(Nt,{component:_a,to:"/import_users",label:"CSV Import",children:S.jsx(v2,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};jV.defaultProps={selectedIds:[],onUnselectItems:()=>null};const AV=()=>S.jsx(el,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),zUe=[S.jsx(_1,{source:"name",alwaysOn:!0}),S.jsx(Ns,{source:"guests",alwaysOn:!0}),S.jsx(Ns,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],UUe=()=>S.jsxs(S.Fragment,{children:[S.jsx(DUe,{}),S.jsx(qv,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),VUe=e=>S.jsx(tl,{...e,filters:zUe,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:S.jsx(jV,{}),pagination:S.jsx(AV,{}),children:S.jsxs(zr,{rowClick:"edit",bulkActionButtons:S.jsx(UUe,{}),children:[S.jsx(hR,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),S.jsx(Me,{source:"id",sortBy:"name"}),S.jsx(Me,{source:"displayname"}),S.jsx(qa,{source:"is_guest"}),S.jsx(qa,{source:"admin"}),S.jsx(qa,{source:"deactivated"}),S.jsx(dn,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:fn})]})}),WUe=[uo(),Cy(253),qP(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],qUe=[uo(),Cy(255)],HUe=()=>{const e=ht(),t=je();return S.jsxs(bo,{children:[!e.deactivated&&S.jsx(NUe,{}),S.jsx(pu,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},GUe=e=>S.jsx(G2,{...e,children:S.jsxs(Ud,{children:[S.jsx(Er,{source:"id",autoComplete:"off",validate:WUe}),S.jsx(Er,{source:"displayname",validate:Cy(256)}),S.jsx(H2,{source:"password",autoComplete:"new-password",validate:Cy(512)}),S.jsx(ev,{source:"user_type",choices:IV,translateChoice:!1,resettable:!0}),S.jsx(Ns,{source:"admin"}),S.jsx(Yy,{source:"threepids",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(ev,{source:"medium",choices:kV,validate:uo()}),S.jsx(Er,{source:"address",validate:qUe})]})}),S.jsx(Yy,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(Er,{source:"auth_provider",validate:uo()}),S.jsx(Er,{source:"external_id",label:"resources.users.fields.id",validate:uo()})]})})]})}),KUe=()=>{const e=ht(),t=je();return S.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},QUe=e=>{const t=je();return S.jsx(K2,{...e,title:S.jsx(KUe,{}),actions:S.jsx(HUe,{}),children:S.jsxs(Q2,{children:[S.jsxs(da,{label:t("resources.users.name",{smart_count:1}),icon:S.jsx($V,{}),children:[S.jsx(hR,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),S.jsx(Er,{source:"id",disabled:!0}),S.jsx(Er,{source:"displayname"}),S.jsx(H2,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),S.jsx(ev,{source:"user_type",choices:IV,translateChoice:!1,resettable:!0}),S.jsx(Ns,{source:"admin"}),S.jsx(Ns,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),S.jsx(dn,{source:"creation_ts_ms",showTime:!0,options:fn}),S.jsx(Me,{source:"consent_version"})]}),S.jsx(da,{label:"resources.users.threepid",icon:S.jsx(CV,{}),path:"threepid",children:S.jsx(Yy,{source:"threepids",children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(ev,{source:"medium",choices:kV}),S.jsx(Er,{source:"address"})]})})}),S.jsx(da,{label:"synapseadmin.users.tabs.sso",icon:S.jsx(SV,{}),path:"sso",children:S.jsx(Yy,{source:"external_ids",label:!1,children:S.jsxs(Jp,{disableReordering:!0,children:[S.jsx(Er,{source:"auth_provider",validate:uo()}),S.jsx(Er,{source:"external_id",label:"resources.users.fields.id",validate:uo()})]})})}),S.jsx(da,{label:t("resources.devices.name",{smart_count:2}),icon:S.jsx(OV,{}),path:"devices",children:S.jsx(wi,{reference:"devices",target:"user_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},children:[S.jsx(Me,{source:"device_id",sortable:!1}),S.jsx(Me,{source:"display_name",sortable:!1}),S.jsx(Me,{source:"last_seen_ip",sortable:!1}),S.jsx(dn,{source:"last_seen_ts",showTime:!0,options:fn,sortable:!1}),S.jsx(BUe,{})]})})}),S.jsx(da,{label:"resources.connections.name",icon:S.jsx(RV,{}),path:"connections",children:S.jsx(Ha,{reference:"connections",source:"id",label:!1,link:!1,children:S.jsx(u6e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"ip",sortable:!1}),S.jsx(dn,{source:"last_seen",showTime:!0,options:fn,sortable:!1}),S.jsx(Me,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),S.jsx(da,{label:t("resources.users_media.name",{smart_count:2}),icon:S.jsx(PV,{}),path:"media",children:S.jsx(wi,{reference:"users_media",target:"user_id",label:!1,pagination:S.jsx(AV,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:S.jsxs(zr,{style:{width:"100%"},children:[S.jsx(W9e,{source:"media_id"}),S.jsx(dn,{source:"created_ts",showTime:!0,options:fn}),S.jsx(dn,{source:"last_access_ts",showTime:!0,options:fn}),S.jsx(Ci,{source:"media_length"}),S.jsx(Me,{source:"media_type"}),S.jsx(Me,{source:"upload_name"}),S.jsx(Me,{source:"quarantined_by"}),S.jsx(V9e,{label:"resources.quarantine_media.action.name"}),S.jsx(U9e,{label:"resources.users_media.fields.safe_from_quarantine"}),S.jsx(pu,{mutationMode:"pessimistic",redirect:!1})]})})}),S.jsx(da,{label:t("resources.rooms.name",{smart_count:2}),icon:S.jsx(fu,{}),path:"rooms",children:S.jsx(wi,{reference:"joined_rooms",target:"user_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[S.jsx(Me,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),S.jsx(Ha,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:S.jsx(Me,{source:"name",sortable:!1})})]})})}),S.jsx(da,{label:t("resources.pushers.name",{smart_count:2}),icon:S.jsx(EV,{}),path:"pushers",children:S.jsx(wi,{reference:"pushers",target:"user_id",label:!1,children:S.jsxs(zr,{style:{width:"100%"},bulkActionButtons:!1,children:[S.jsx(Me,{source:"kind",sortable:!1}),S.jsx(Me,{source:"app_display_name",sortable:!1}),S.jsx(Me,{source:"app_id",sortable:!1}),S.jsx(Me,{source:"data.url",sortable:!1}),S.jsx(Me,{source:"device_display_name",sortable:!1}),S.jsx(Me,{source:"lang",sortable:!1}),S.jsx(Me,{source:"profile_tag",sortable:!1}),S.jsx(Me,{source:"pushkey",sortable:!1})]})})})]})})},XUe={name:"users",icon:wR,list:VUe,edit:QUe,create:GUe},MV={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"}}}},YUe={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"}}}};OP(MV,YUe);const JUe={...MV,synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",deactivated:"Deaktiviert",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"}}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}};var ZUe={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_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?"},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",are_you_sure:"Are you sure?",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 this %{name}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} |||| 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 item?",delete_title:"Delete %{name} #%{id}",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.",yes:"Yes",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?"},navigation:{no_results:"No results 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} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",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 eVe={...ZUe,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors ||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",deactivated:"Deactivated",guests:"Show guests",show_deactivated:"Show deactivated users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var tVe={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const rVe={...tVe,synapseadmin:{auth:{base_url:"URL du serveur d’accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l’authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d’accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var nVe={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:" "},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra più disponibile.",single_missing:"Il riferimento associato non sembra più disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale è occorso e la tua richiesta non è stata completata.",invalid_form:"Il modulo non è valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} è fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} è fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"È necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione è stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}};const oVe=gr(nVe),aVe={...oVe,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}};var FV={};Object.defineProperty(FV,"__esModule",{value:!0});var iVe={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}"}}},sVe=FV.default=iVe;const lVe={...sVe,synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}},uVe={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const o={method:"POST",body:JSON.stringify(Object.assign({device_id:localStorage.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r}))};e=e.replace(/\/+$/g,""),localStorage.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:s}=await Jl(i,o);localStorage.setItem("home_server",s.home_server),localStorage.setItem("user_id",s.user_id),localStorage.setItem("access_token",s.access_token),localStorage.setItem("device_id",s.device_id)},logout:async()=>{console.log("logout");const e=localStorage.getItem("base_url")+"/_matrix/client/r0/logout",t=localStorage.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await Jl(e,r),localStorage.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=localStorage.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},$o=(e,t={})=>{const r=localStorage.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),Jl(e,t)},EN=e=>{const t=localStorage.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const o=n[1],a=n[2];return`${t}/_matrix/media/r0/thumbnail/${o}/${a}?width=24&height=24&method=scale`},_r={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?EN(e.avatar_url):void 0,is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:e.creation_ts*1e3}),data:"users",total:e=>e.total,create:e=>({endpoint:`/_synapse/admin/v2/users/@${encodeURIComponent(e.id)}:${localStorage.getItem("home_server")}`,body:e,method:"PUT"}),delete:e=>({endpoint:`/_synapse/admin/v1/deactivate/${encodeURIComponent(e.id)}`,body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:`/_synapse/admin/v2/rooms/${e.id}`,body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e)}/devices`}),delete:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e.previousData.user_id)}/devices/${e.id}`})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/members`}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/state`}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/pushers`}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/joined_rooms`}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/media`}),data:"media",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/media/${localStorage.getItem("home_server")}/${e.id}`})},delete_media:{delete:e=>({endpoint:`/_synapse/admin/v1/media/${localStorage.getItem("home_server")}/delete?before_ts=${e.meta.before_ts}&size_gt=${e.meta.size_gt}&keep_profiles=${e.meta.keep_profiles}`,method:"POST"})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${localStorage.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${localStorage.getItem("home_server")}/${e.id}`,method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/forward_extremities`}),data:"results",total:e=>e.count,delete:e=>({endpoint:`/_synapse/admin/v1/rooms/${e.id}/forward_extremities`})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:e.avatar_url?EN(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 Rf(e,t){if(!(t===null&&e!=="user_type"))return t}function PN(e){return e==="DESC"?"b":"f"}const cVe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,search_term:i,destination:s,valid:c}=t.filter,{page:l,perPage:f}=t.pagination,{field:v,order:m}=t.sort,h=(l-1)*f,x={from:h,limit:f,user_id:r,search_term:i,name:n,destination:s,guests:o,deactivated:a,valid:c,order_by:v,dir:PN(m)},w=localStorage.getItem("base_url");if(!w||!(e in _r))throw Error("Homeserver not set");const C=_r[e],g=`${w+C.path}?${Yl.stringify(x)}`,{json:_}=await $o(g);return{data:_[C.data].map(C.map),total:C.total(_,h,f)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path,{json:a}=await $o(`${o}/${encodeURIComponent(t.id)}`);return{data:n.map(a)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homerserver not set");const n=_r[e],o=r+n.path,a=await Promise.all(t.ids.map(i=>$o(`${o}/${encodeURIComponent(i)}`)));return{data:a.map(({json:i})=>n.map(i)),total:a.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i=(r-1)*n,s={from:i,limit:n,order_by:o,dir:PN(a)},c=localStorage.getItem("base_url");if(!c||!(e in _r))throw Error("Homeserver not set");const l=_r[e],f=l.reference(t.id),v=`${c}${f.endpoint}?${Yl.stringify(s)}`,{json:m}=await $o(v);return{data:m[l.data].map(l.map),total:l.total(m,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path,{json:a}=await $o(`${o}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,Rf)});return{data:n.map(a)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e],o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>$o(`${o}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,Rf)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if(!("create"in n))return Promise.reject();const o=n.create(t.data),a=r+o.endpoint,{json:i}=await $o(a,{method:o.method,body:JSON.stringify(o.body,Rf)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(a=>{t.data.id=a;const i=n.create(t.data),s=r+i.endpoint;return $o(s,{method:i.method,body:JSON.stringify(i.body,Rf)})}))).map(({json:a})=>a)}},delete:async(e,t)=>{console.log("delete "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if("delete"in n){const o=n.delete(t),a=r+o.endpoint,{json:i}=await $o(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null});return{data:i}}else{const o=r+n.path,{json:a}=await $o(`${o}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,Rf)});return{data:a}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in _r))throw Error("Homeserver not set");const n=_r[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(a=>{const i=n.delete({...t,id:a}),s=r+i.endpoint;return $o(s,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:a})=>a)};{const o=r+n.path;return{data:(await Promise.all(t.ids.map(i=>$o(`${o}/${i}`,{method:"DELETE"})))).map(({json:i})=>i)}}}},kh={de:JUe,en:eVe,fr:rVe,it:aVe,zh:lVe},dVe=A4(e=>kh[e]?Tb.merge({},kh.en,kh[e]):kh.en,qpe(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"zh",name:"简体中文"}]),fVe=()=>S.jsxs(u9e,{disableTelemetry:!0,requireAuth:!0,loginPage:r8e,authProvider:uVe,dataProvider:cVe,i18nProvider:dVe,children:[S.jsx(YB,{children:S.jsx(Jr,{path:"/import_users",element:S.jsx(Z9e,{})})}),S.jsx(Ir,{...XUe}),S.jsx(Ir,{...aUe}),S.jsx(Ir,{...pUe}),S.jsx(Ir,{...X9e}),S.jsx(Ir,{...w8e}),S.jsx(Ir,{...M8e}),S.jsx(Ir,{...f8e}),S.jsx(Ir,{name:"connections"}),S.jsx(Ir,{name:"devices"}),S.jsx(Ir,{name:"room_members"}),S.jsx(Ir,{name:"users_media"}),S.jsx(Ir,{name:"joined_rooms"}),S.jsx(Ir,{name:"pushers"}),S.jsx(Ir,{name:"servernotices"}),S.jsx(Ir,{name:"forward_extremities"}),S.jsx(Ir,{name:"room_state"}),S.jsx(Ir,{name:"destination_rooms"})]});fetch("config.json").then(e=>e.json()).then(e=>z3(document.getElementById("root")).render(S.jsx(ve.StrictMode,{children:S.jsx(dV.Provider,{value:e,children:S.jsx(fVe,{})})}))); diff --git a/index.html b/index.html index 0427cdb..c491378 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 - - + +