diff --git a/assets/index-C-4Sen7v.js b/assets/index-BBRT9973.js similarity index 63% rename from assets/index-C-4Sen7v.js rename to assets/index-BBRT9973.js index 68c88c5..7ebc9bc 100644 --- a/assets/index-C-4Sen7v.js +++ b/assets/index-BBRT9973.js @@ -1,4 +1,4 @@ -var rT=e=>{throw TypeError(e)};var zx=(e,t,r)=>t.has(e)||rT("Cannot "+r);var Q=(e,t,r)=>(zx(e,t,"read from private field"),r?r.call(e):t.get(e)),ht=(e,t,r)=>t.has(e)?rT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Je=(e,t,r,n)=>(zx(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jt=(e,t,r)=>(zx(e,t,"access private method"),r);var og=(e,t,r,n)=>({set _(a){Je(e,t,a,r)},get _(){return Q(e,t,n)}});function ON(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Zo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ss(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var PN={exports:{}},jb={},RN={exports:{}},Mt={};/** +var rI=e=>{throw TypeError(e)};var zx=(e,t,r)=>t.has(e)||rI("Cannot "+r);var Q=(e,t,r)=>(zx(e,t,"read from private field"),r?r.call(e):t.get(e)),ht=(e,t,r)=>t.has(e)?rI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Je=(e,t,r,n)=>(zx(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jt=(e,t,r)=>(zx(e,t,"access private method"),r);var og=(e,t,r,n)=>({set _(a){Je(e,t,a,r)},get _(){return Q(e,t,n)}});function ON(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Zo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ss(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var PN={exports:{}},j0={},RN={exports:{}},Mt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var rT=e=>{throw TypeError(e)};var zx=(e,t,r)=>t.has(e)||rT("Cannot "+r);var Q=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jv=Symbol.for("react.element"),iX=Symbol.for("react.portal"),sX=Symbol.for("react.fragment"),lX=Symbol.for("react.strict_mode"),uX=Symbol.for("react.profiler"),cX=Symbol.for("react.provider"),dX=Symbol.for("react.context"),fX=Symbol.for("react.forward_ref"),pX=Symbol.for("react.suspense"),hX=Symbol.for("react.memo"),vX=Symbol.for("react.lazy"),nT=Symbol.iterator;function mX(e){return e===null||typeof e!="object"?null:(e=nT&&e[nT]||e["@@iterator"],typeof e=="function"?e:null)}var $N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kN=Object.assign,jN={};function Nf(e,t,r){this.props=e,this.context=t,this.refs=jN,this.updater=r||$N}Nf.prototype.isReactComponent={};Nf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Nf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function IN(){}IN.prototype=Nf.prototype;function XO(e,t,r){this.props=e,this.context=t,this.refs=jN,this.updater=r||$N}var YO=XO.prototype=new IN;YO.constructor=XO;kN(YO,Nf.prototype);YO.isPureReactComponent=!0;var aT=Array.isArray,TN=Object.prototype.hasOwnProperty,JO={current:null},AN={key:!0,ref:!0,__self:!0,__source:!0};function MN(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)TN.call(t,n)&&!AN.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1{throw TypeError(e)};var zx=(e,t,r)=>t.has(e)||rT("Cannot "+r);var Q=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xX=d,wX=Symbol.for("react.element"),SX=Symbol.for("react.fragment"),EX=Object.prototype.hasOwnProperty,CX=xX.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,OX={key:!0,ref:!0,__self:!0,__source:!0};function LN(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)EX.call(t,n)&&!OX.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:wX,type:e,key:o,ref:i,props:a,_owner:CX.current}}jb.Fragment=SX;jb.jsx=LN;jb.jsxs=LN;PN.exports=jb;var E=PN.exports,DN={exports:{}},Ka={},NN={exports:{}},BN={};/** + */var _X=d,xX=Symbol.for("react.element"),wX=Symbol.for("react.fragment"),SX=Object.prototype.hasOwnProperty,EX=_X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,CX={key:!0,ref:!0,__self:!0,__source:!0};function LN(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)SX.call(t,n)&&!CX.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:xX,type:e,key:o,ref:i,props:a,_owner:EX.current}}j0.Fragment=wX;j0.jsx=LN;j0.jsxs=LN;PN.exports=j0;var E=PN.exports,DN={exports:{}},Ka={},NN={exports:{}},BN={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var rT=e=>{throw TypeError(e)};var zx=(e,t,r)=>t.has(e)||rT("Cannot "+r);var Q=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(z,q){var ee=z.length;z.push(q);e:for(;0>>1,J=z[oe];if(0>>1;oea(ge,ee))pea(me,ge)?(z[oe]=me,z[pe]=ee,oe=pe):(z[oe]=ge,z[le]=ee,oe=le);else if(pea(me,ee))z[oe]=me,z[pe]=ee,oe=pe;else break e}}return q}function a(z,q){var ee=z.sortIndex-q.sortIndex;return ee!==0?ee:z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],s=[],f=1,h=null,v=3,m=!1,b=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(z){for(var q=r(s);q!==null;){if(q.callback===null)n(s);else if(q.startTime<=z)n(s),q.sortIndex=q.expirationTime,t(c,q);else break;q=r(s)}}function S(z){if(w=!1,x(z),!b)if(r(c)!==null)b=!0,H(P);else{var q=r(s);q!==null&&W(S,q.startTime-z)}}function P(z,q){b=!1,w&&(w=!1,_(R),R=-1),m=!0;var ee=v;try{for(x(q),h=r(c);h!==null&&(!(h.expirationTime>q)||z&&!M());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,v=h.priorityLevel;var J=oe(h.expirationTime<=q);q=e.unstable_now(),typeof J=="function"?h.callback=J:h===r(c)&&n(c),x(q)}else n(c);h=r(c)}if(h!==null)var we=!0;else{var le=r(s);le!==null&&W(S,le.startTime-q),we=!1}return we}finally{h=null,v=ee,m=!1}}var C=!1,$=null,R=-1,k=5,I=-1;function M(){return!(e.unstable_now()-Iz||125oe?(z.sortIndex=ee,t(s,z),r(c)===null&&z===r(s)&&(w?(_(R),R=-1):w=!0,W(S,ee-oe))):(z.sortIndex=J,t(c,z),b||m||(b=!0,H(P))),z},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(z){var q=v;return function(){var ee=v;v=q;try{return z.apply(this,arguments)}finally{v=ee}}}})(BN);NN.exports=BN;var PX=NN.exports;/** + */(function(e){function t(z,q){var ee=z.length;z.push(q);e:for(;0>>1,J=z[oe];if(0>>1;oea(ge,ee))pea(me,ge)?(z[oe]=me,z[pe]=ee,oe=pe):(z[oe]=ge,z[le]=ee,oe=le);else if(pea(me,ee))z[oe]=me,z[pe]=ee,oe=pe;else break e}}return q}function a(z,q){var ee=z.sortIndex-q.sortIndex;return ee!==0?ee:z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],s=[],f=1,h=null,v=3,m=!1,b=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(z){for(var q=r(s);q!==null;){if(q.callback===null)n(s);else if(q.startTime<=z)n(s),q.sortIndex=q.expirationTime,t(c,q);else break;q=r(s)}}function S(z){if(w=!1,x(z),!b)if(r(c)!==null)b=!0,H(P);else{var q=r(s);q!==null&&W(S,q.startTime-z)}}function P(z,q){b=!1,w&&(w=!1,_(R),R=-1),m=!0;var ee=v;try{for(x(q),h=r(c);h!==null&&(!(h.expirationTime>q)||z&&!M());){var oe=h.callback;if(typeof oe=="function"){h.callback=null,v=h.priorityLevel;var J=oe(h.expirationTime<=q);q=e.unstable_now(),typeof J=="function"?h.callback=J:h===r(c)&&n(c),x(q)}else n(c);h=r(c)}if(h!==null)var we=!0;else{var le=r(s);le!==null&&W(S,le.startTime-q),we=!1}return we}finally{h=null,v=ee,m=!1}}var C=!1,$=null,R=-1,k=5,T=-1;function M(){return!(e.unstable_now()-Tz||125oe?(z.sortIndex=ee,t(s,z),r(c)===null&&z===r(s)&&(w?(_(R),R=-1):w=!0,W(S,ee-oe))):(z.sortIndex=J,t(c,z),b||m||(b=!0,H(P))),z},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(z){var q=v;return function(){var ee=v;v=q;try{return z.apply(this,arguments)}finally{v=ee}}}})(BN);NN.exports=BN;var OX=NN.exports;/** * @license React * react-dom.production.min.js * @@ -30,40 +30,40 @@ var rT=e=>{throw TypeError(e)};var zx=(e,t,r)=>t.has(e)||rT("Cannot "+r);var Q=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var RX=d,Ha=PX;function Fe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wS=Object.prototype.hasOwnProperty,$X=/^[: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]*$/,iT={},sT={};function kX(e){return wS.call(sT,e)?!0:wS.call(iT,e)?!1:$X.test(e)?sT[e]=!0:(iT[e]=!0,!1)}function jX(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 IX(e,t,r,n){if(t===null||typeof t>"u"||jX(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 ua(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jn[e]=new ua(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jn[t]=new ua(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jn[e]=new ua(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jn[e]=new ua(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){jn[e]=new ua(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jn[e]=new ua(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jn[e]=new ua(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jn[e]=new ua(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jn[e]=new ua(e,5,!1,e.toLowerCase(),null,!1,!1)});var eP=/[\-:]([a-z])/g;function tP(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(eP,tP);jn[t]=new ua(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(eP,tP);jn[t]=new ua(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(eP,tP);jn[t]=new ua(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jn[e]=new ua(e,1,!1,e.toLowerCase(),null,!1,!1)});jn.xlinkHref=new ua("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jn[e]=new ua(e,1,!1,e.toLowerCase(),null,!0,!0)});function rP(e,t,r,n){var a=jn.hasOwnProperty(t)?jn[t]:null;(a!==null?a.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wS=Object.prototype.hasOwnProperty,RX=/^[: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]*$/,iI={},sI={};function $X(e){return wS.call(sI,e)?!0:wS.call(iI,e)?!1:RX.test(e)?sI[e]=!0:(iI[e]=!0,!1)}function kX(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 jX(e,t,r,n){if(t===null||typeof t>"u"||kX(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 ua(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jn[e]=new ua(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jn[t]=new ua(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jn[e]=new ua(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jn[e]=new ua(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){jn[e]=new ua(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jn[e]=new ua(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jn[e]=new ua(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jn[e]=new ua(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jn[e]=new ua(e,5,!1,e.toLowerCase(),null,!1,!1)});var eP=/[\-:]([a-z])/g;function tP(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(eP,tP);jn[t]=new ua(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(eP,tP);jn[t]=new ua(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(eP,tP);jn[t]=new ua(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jn[e]=new ua(e,1,!1,e.toLowerCase(),null,!1,!1)});jn.xlinkHref=new ua("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jn[e]=new ua(e,1,!1,e.toLowerCase(),null,!0,!0)});function rP(e,t,r,n){var a=jn.hasOwnProperty(t)?jn[t]:null;(a!==null?a.type!==0:n||!(2l||a[i]!==o[l]){var c=` -`+a[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Wx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?th(e):""}function TX(e){switch(e.tag){case 5:return th(e.type);case 16:return th("Lazy");case 13:return th("Suspense");case 19:return th("SuspenseList");case 0:case 2:case 15:return e=Hx(e.type,!1),e;case 11:return e=Hx(e.type.render,!1),e;case 1:return e=Hx(e.type,!0),e;default:return""}}function OS(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 gd:return"Fragment";case md:return"Portal";case SS:return"Profiler";case nP:return"StrictMode";case ES:return"Suspense";case CS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VN:return(e.displayName||"Context")+".Consumer";case UN:return(e._context.displayName||"Context")+".Provider";case aP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oP:return t=e.displayName||null,t!==null?t:OS(e.type)||"Memo";case el:t=e._payload,e=e._init;try{return OS(e(t))}catch{}}return null}function AX(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 OS(t);case 8:return t===nP?"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 Fl(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 MX(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 a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lg(e){e._valueTracker||(e._valueTracker=MX(e))}function qN(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 Ny(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 PS(e,t){var r=t.checked;return jr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function uT(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fl(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 GN(e,t){t=t.checked,t!=null&&rP(e,"checked",t,!1)}function RS(e,t){GN(e,t);var r=Fl(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")?$S(e,t.type,r):t.hasOwnProperty("defaultValue")&&$S(e,t.type,Fl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cT(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 $S(e,t,r){(t!=="number"||Ny(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rh=Array.isArray;function Ad(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ug.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fh={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},FX=["Webkit","ms","Moz","O"];Object.keys(fh).forEach(function(e){FX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fh[t]=fh[e]})});function YN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fh.hasOwnProperty(e)&&fh[e]?(""+t).trim():t+"px"}function JN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=YN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var LX=jr({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 IS(e,t){if(t){if(LX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Fe(62))}}function TS(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 AS=null;function iP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var MS=null,Md=null,Fd=null;function pT(e){if(e=Av(e)){if(typeof MS!="function")throw Error(Fe(280));var t=e.stateNode;t&&(t=Fb(t),MS(e.stateNode,e.type,t))}}function ZN(e){Md?Fd?Fd.push(e):Fd=[e]:Md=e}function e3(){if(Md){var e=Md,t=Fd;if(Fd=Md=null,pT(e),t)for(e=0;e>>=0,e===0?32:31-(KX(e)/QX|0)|0}var cg=64,dg=4194304;function nh(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 Vy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var l=i&~a;l!==0?n=nh(l):(o&=i,o!==0&&(n=nh(o)))}else i=r&~a,i!==0?n=nh(i):o!==0&&(n=nh(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Iv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ei(t),e[t]=r}function ZX(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=hh),wT=" ",ST=!1;function _3(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 x3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yd=!1;function $Y(e,t){switch(e){case"compositionend":return x3(t);case"keypress":return t.which!==32?null:(ST=!0,wT);case"textInput":return e=t.data,e===wT&&ST?null:e;default:return null}}function kY(e,t){if(yd)return e==="compositionend"||!hP&&_3(e,t)?(e=y3(),Jg=dP=yl=null,yd=!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=PT(r)}}function C3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function O3(){for(var e=window,t=Ny();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ny(e.document)}return t}function vP(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 NY(e){var t=O3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&C3(r.ownerDocument.documentElement,r)){if(n!==null&&vP(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=RT(r,o);var i=RT(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,bd=null,zS=null,mh=null,US=!1;function $T(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;US||bd==null||bd!==Ny(n)||(n=bd,"selectionStart"in n&&vP(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}),mh&&Qh(mh,n)||(mh=n,n=qy(zS,"onSelect"),0wd||(e.current=KS[wd],KS[wd]=null,wd--)}function mr(e,t){wd++,KS[wd]=e.current,e.current=t}var Ll={},Wn=Ul(Ll),Sa=Ul(!1),ic=Ll;function yf(e,t){var r=e.type.contextTypes;if(!r)return Ll;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ea(e){return e=e.childContextTypes,e!=null}function Ky(){wr(Sa),wr(Wn)}function FT(e,t,r){if(Wn.current!==Ll)throw Error(Fe(168));mr(Wn,t),mr(Sa,r)}function M3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Fe(108,AX(e)||"Unknown",a));return jr({},r,n)}function Qy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ll,ic=Wn.current,mr(Wn,e),mr(Sa,Sa.current),!0}function LT(e,t,r){var n=e.stateNode;if(!n)throw Error(Fe(169));r?(e=M3(e,t,ic),n.__reactInternalMemoizedMergedChildContext=e,wr(Sa),wr(Wn),mr(Wn,e)):wr(Sa),mr(Sa,r)}var ns=null,Lb=!1,ow=!1;function F3(e){ns===null?ns=[e]:ns.push(e)}function YY(e){Lb=!0,F3(e)}function Vl(){if(!ow&&ns!==null){ow=!0;var e=0,t=ar;try{var r=ns;for(ar=1;e>=i,a-=i,ls=1<<32-ei(t)+a|r<R?(k=$,$=null):k=$.sibling;var I=v(_,$,x[R],S);if(I===null){$===null&&($=k);break}e&&$&&I.alternate===null&&t(_,$),y=o(I,y,R),C===null?P=I:C.sibling=I,C=I,$=k}if(R===x.length)return r(_,$),Or&&xu(_,R),P;if($===null){for(;RR?(k=$,$=null):k=$.sibling;var M=v(_,$,I.value,S);if(M===null){$===null&&($=k);break}e&&$&&M.alternate===null&&t(_,$),y=o(M,y,R),C===null?P=M:C.sibling=M,C=M,$=k}if(I.done)return r(_,$),Or&&xu(_,R),P;if($===null){for(;!I.done;R++,I=x.next())I=h(_,I.value,S),I!==null&&(y=o(I,y,R),C===null?P=I:C.sibling=I,C=I);return Or&&xu(_,R),P}for($=n(_,$);!I.done;R++,I=x.next())I=m($,_,R,I.value,S),I!==null&&(e&&I.alternate!==null&&$.delete(I.key===null?R:I.key),y=o(I,y,R),C===null?P=I:C.sibling=I,C=I);return e&&$.forEach(function(F){return t(_,F)}),Or&&xu(_,R),P}function O(_,y,x,S){if(typeof x=="object"&&x!==null&&x.type===gd&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case sg:e:{for(var P=x.key,C=y;C!==null;){if(C.key===P){if(P=x.type,P===gd){if(C.tag===7){r(_,C.sibling),y=a(C,x.props.children),y.return=_,_=y;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===el&&BT(P)===C.type){r(_,C.sibling),y=a(C,x.props),y.ref=Fp(_,C,x),y.return=_,_=y;break e}r(_,C);break}else t(_,C);C=C.sibling}x.type===gd?(y=ec(x.props.children,_.mode,S,x.key),y.return=_,_=y):(S=iy(x.type,x.key,x.props,null,_.mode,S),S.ref=Fp(_,y,x),S.return=_,_=S)}return i(_);case md:e:{for(C=x.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(_,y.sibling),y=a(y,x.children||[]),y.return=_,_=y;break e}else{r(_,y);break}else t(_,y);y=y.sibling}y=pw(x,_.mode,S),y.return=_,_=y}return i(_);case el:return C=x._init,O(_,y,C(x._payload),S)}if(rh(x))return b(_,y,x,S);if(jp(x))return w(_,y,x,S);yg(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(_,y.sibling),y=a(y,x),y.return=_,_=y):(r(_,y),y=fw(x,_.mode,S),y.return=_,_=y),i(_)):r(_,y)}return O}var _f=B3(!0),z3=B3(!1),Jy=Ul(null),Zy=null,Cd=null,bP=null;function _P(){bP=Cd=Zy=null}function xP(e){var t=Jy.current;wr(Jy),e._currentValue=t}function YS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Dd(e,t){Zy=e,bP=Cd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xa=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(bP!==e)if(e={context:e,memoizedValue:t,next:null},Cd===null){if(Zy===null)throw Error(Fe(308));Cd=e,Zy.dependencies={lanes:0,firstContext:e}}else Cd=Cd.next=e;return t}var Du=null;function wP(e){Du===null?Du=[e]:Du.push(e)}function U3(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,wP(t)):(r.next=a.next,a.next=r),t.interleaved=r,ys(e,n)}function ys(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var tl=!1;function SP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function V3(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kl(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ht&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,ys(e,r)}return a=n.interleaved,a===null?(t.next=t,wP(n)):(t.next=a.next,a.next=t),n.interleaved=t,ys(e,r)}function ey(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lP(e,r)}}function zT(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function e0(e,t,r,n){var a=e.updateQueue;tl=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,s=c.next;c.next=null,i===null?o=s:i.next=s,i=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=c))}if(o!==null){var h=a.baseState;i=0,f=s=c=null,l=o;do{var v=l.lane,m=l.eventTime;if((n&v)===v){f!==null&&(f=f.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,w=l;switch(v=t,m=r,w.tag){case 1:if(b=w.payload,typeof b=="function"){h=b.call(m,h,v);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=w.payload,v=typeof b=="function"?b.call(m,h,v):b,v==null)break e;h=jr({},h,v);break e;case 2:tl=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=a.effects,v===null?a.effects=[l]:v.push(l))}else m={eventTime:m,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=m,c=h):f=f.next=m,i|=v;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;v=l,l=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(!0);if(f===null&&(c=h),a.baseState=c,a.firstBaseUpdate=s,a.lastBaseUpdate=f,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);uc|=i,e.lanes=i,e.memoizedState=h}}function UT(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=sw.transition;sw.transition={};try{e(!1),t()}finally{ar=r,sw.transition=n}}function i4(){return Po().memoizedState}function tJ(e,t,r){var n=Il(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},s4(e))l4(t,r);else if(r=U3(e,t,r,n),r!==null){var a=ia();ti(r,e,n,a),u4(r,t,n)}}function rJ(e,t,r){var n=Il(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(s4(e))l4(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,r);if(a.hasEagerState=!0,a.eagerState=l,ri(l,i)){var c=t.interleaved;c===null?(a.next=a,wP(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=U3(e,t,a,n),r!==null&&(a=ia(),ti(r,e,n,a),u4(r,t,n))}}function s4(e){var t=e.alternate;return e===kr||t!==null&&t===kr}function l4(e,t){gh=r0=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function u4(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lP(e,r)}}var n0={readContext:Oo,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useInsertionEffect:Fn,useLayoutEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useMutableSource:Fn,useSyncExternalStore:Fn,useId:Fn,unstable_isNewReconciler:!1},nJ={readContext:Oo,useCallback:function(e,t){return hi().memoizedState=[e,t===void 0?null:t],e},useContext:Oo,useEffect:WT,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ry(4194308,4,t4.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ry(4194308,4,e,t)},useInsertionEffect:function(e,t){return ry(4,2,e,t)},useMemo:function(e,t){var r=hi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=hi();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=tJ.bind(null,kr,e),[n.memoizedState,e]},useRef:function(e){var t=hi();return e={current:e},t.memoizedState=e},useState:VT,useDebugValue:jP,useDeferredValue:function(e){return hi().memoizedState=e},useTransition:function(){var e=VT(!1),t=e[0];return e=eJ.bind(null,e[1]),hi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=kr,a=hi();if(Or){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=t(),yn===null)throw Error(Fe(349));lc&30||G3(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,WT(Q3.bind(null,n,o,e),[e]),n.flags|=2048,nv(9,K3.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=hi(),t=yn.identifierPrefix;if(Or){var r=us,n=ls;r=(n&~(1<<32-ei(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=tv++,0")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Wx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?th(e):""}function TX(e){switch(e.tag){case 5:return th(e.type);case 16:return th("Lazy");case 13:return th("Suspense");case 19:return th("SuspenseList");case 0:case 2:case 15:return e=Hx(e.type,!1),e;case 11:return e=Hx(e.type.render,!1),e;case 1:return e=Hx(e.type,!0),e;default:return""}}function OS(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 gd:return"Fragment";case md:return"Portal";case SS:return"Profiler";case nP:return"StrictMode";case ES:return"Suspense";case CS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VN:return(e.displayName||"Context")+".Consumer";case UN:return(e._context.displayName||"Context")+".Provider";case aP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oP:return t=e.displayName||null,t!==null?t:OS(e.type)||"Memo";case el:t=e._payload,e=e._init;try{return OS(e(t))}catch{}}return null}function IX(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 OS(t);case 8:return t===nP?"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 Fl(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 AX(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 a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lg(e){e._valueTracker||(e._valueTracker=AX(e))}function qN(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 Ny(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 PS(e,t){var r=t.checked;return jr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function uI(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fl(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 GN(e,t){t=t.checked,t!=null&&rP(e,"checked",t,!1)}function RS(e,t){GN(e,t);var r=Fl(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")?$S(e,t.type,r):t.hasOwnProperty("defaultValue")&&$S(e,t.type,Fl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cI(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 $S(e,t,r){(t!=="number"||Ny(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rh=Array.isArray;function Ad(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=ug.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fh={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},MX=["Webkit","ms","Moz","O"];Object.keys(fh).forEach(function(e){MX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fh[t]=fh[e]})});function YN(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fh.hasOwnProperty(e)&&fh[e]?(""+t).trim():t+"px"}function JN(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=YN(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var FX=jr({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 TS(e,t){if(t){if(FX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Fe(62))}}function IS(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 AS=null;function iP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var MS=null,Md=null,Fd=null;function pI(e){if(e=Av(e)){if(typeof MS!="function")throw Error(Fe(280));var t=e.stateNode;t&&(t=F0(t),MS(e.stateNode,e.type,t))}}function ZN(e){Md?Fd?Fd.push(e):Fd=[e]:Md=e}function e3(){if(Md){var e=Md,t=Fd;if(Fd=Md=null,pI(e),t)for(e=0;e>>=0,e===0?32:31-(GX(e)/KX|0)|0}var cg=64,dg=4194304;function nh(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 Vy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var l=i&~a;l!==0?n=nh(l):(o&=i,o!==0&&(n=nh(o)))}else i=r&~a,i!==0?n=nh(i):o!==0&&(n=nh(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Tv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ei(t),e[t]=r}function JX(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=hh),wI=" ",SI=!1;function _3(e,t){switch(e){case"keyup":return OY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yd=!1;function RY(e,t){switch(e){case"compositionend":return x3(t);case"keypress":return t.which!==32?null:(SI=!0,wI);case"textInput":return e=t.data,e===wI&&SI?null:e;default:return null}}function $Y(e,t){if(yd)return e==="compositionend"||!hP&&_3(e,t)?(e=y3(),Jg=dP=yl=null,yd=!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=PI(r)}}function C3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function O3(){for(var e=window,t=Ny();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ny(e.document)}return t}function vP(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 DY(e){var t=O3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&C3(r.ownerDocument.documentElement,r)){if(n!==null&&vP(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=RI(r,o);var i=RI(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,bd=null,zS=null,mh=null,US=!1;function $I(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;US||bd==null||bd!==Ny(n)||(n=bd,"selectionStart"in n&&vP(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}),mh&&Qh(mh,n)||(mh=n,n=qy(zS,"onSelect"),0wd||(e.current=KS[wd],KS[wd]=null,wd--)}function mr(e,t){wd++,KS[wd]=e.current,e.current=t}var Ll={},Wn=Ul(Ll),Sa=Ul(!1),ic=Ll;function yf(e,t){var r=e.type.contextTypes;if(!r)return Ll;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ea(e){return e=e.childContextTypes,e!=null}function Ky(){wr(Sa),wr(Wn)}function FI(e,t,r){if(Wn.current!==Ll)throw Error(Fe(168));mr(Wn,t),mr(Sa,r)}function M3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(Fe(108,IX(e)||"Unknown",a));return jr({},r,n)}function Qy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ll,ic=Wn.current,mr(Wn,e),mr(Sa,Sa.current),!0}function LI(e,t,r){var n=e.stateNode;if(!n)throw Error(Fe(169));r?(e=M3(e,t,ic),n.__reactInternalMemoizedMergedChildContext=e,wr(Sa),wr(Wn),mr(Wn,e)):wr(Sa),mr(Sa,r)}var ns=null,L0=!1,ow=!1;function F3(e){ns===null?ns=[e]:ns.push(e)}function XY(e){L0=!0,F3(e)}function Vl(){if(!ow&&ns!==null){ow=!0;var e=0,t=ar;try{var r=ns;for(ar=1;e>=i,a-=i,ls=1<<32-ei(t)+a|r<R?(k=$,$=null):k=$.sibling;var T=v(_,$,x[R],S);if(T===null){$===null&&($=k);break}e&&$&&T.alternate===null&&t(_,$),y=o(T,y,R),C===null?P=T:C.sibling=T,C=T,$=k}if(R===x.length)return r(_,$),Or&&xu(_,R),P;if($===null){for(;RR?(k=$,$=null):k=$.sibling;var M=v(_,$,T.value,S);if(M===null){$===null&&($=k);break}e&&$&&M.alternate===null&&t(_,$),y=o(M,y,R),C===null?P=M:C.sibling=M,C=M,$=k}if(T.done)return r(_,$),Or&&xu(_,R),P;if($===null){for(;!T.done;R++,T=x.next())T=h(_,T.value,S),T!==null&&(y=o(T,y,R),C===null?P=T:C.sibling=T,C=T);return Or&&xu(_,R),P}for($=n(_,$);!T.done;R++,T=x.next())T=m($,_,R,T.value,S),T!==null&&(e&&T.alternate!==null&&$.delete(T.key===null?R:T.key),y=o(T,y,R),C===null?P=T:C.sibling=T,C=T);return e&&$.forEach(function(F){return t(_,F)}),Or&&xu(_,R),P}function O(_,y,x,S){if(typeof x=="object"&&x!==null&&x.type===gd&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case sg:e:{for(var P=x.key,C=y;C!==null;){if(C.key===P){if(P=x.type,P===gd){if(C.tag===7){r(_,C.sibling),y=a(C,x.props.children),y.return=_,_=y;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===el&&BI(P)===C.type){r(_,C.sibling),y=a(C,x.props),y.ref=Fp(_,C,x),y.return=_,_=y;break e}r(_,C);break}else t(_,C);C=C.sibling}x.type===gd?(y=ec(x.props.children,_.mode,S,x.key),y.return=_,_=y):(S=iy(x.type,x.key,x.props,null,_.mode,S),S.ref=Fp(_,y,x),S.return=_,_=S)}return i(_);case md:e:{for(C=x.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(_,y.sibling),y=a(y,x.children||[]),y.return=_,_=y;break e}else{r(_,y);break}else t(_,y);y=y.sibling}y=pw(x,_.mode,S),y.return=_,_=y}return i(_);case el:return C=x._init,O(_,y,C(x._payload),S)}if(rh(x))return b(_,y,x,S);if(jp(x))return w(_,y,x,S);yg(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(_,y.sibling),y=a(y,x),y.return=_,_=y):(r(_,y),y=fw(x,_.mode,S),y.return=_,_=y),i(_)):r(_,y)}return O}var _f=B3(!0),z3=B3(!1),Jy=Ul(null),Zy=null,Cd=null,bP=null;function _P(){bP=Cd=Zy=null}function xP(e){var t=Jy.current;wr(Jy),e._currentValue=t}function YS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Dd(e,t){Zy=e,bP=Cd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xa=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(bP!==e)if(e={context:e,memoizedValue:t,next:null},Cd===null){if(Zy===null)throw Error(Fe(308));Cd=e,Zy.dependencies={lanes:0,firstContext:e}}else Cd=Cd.next=e;return t}var Du=null;function wP(e){Du===null?Du=[e]:Du.push(e)}function U3(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,wP(t)):(r.next=a.next,a.next=r),t.interleaved=r,ys(e,n)}function ys(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var tl=!1;function SP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function V3(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kl(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ht&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,ys(e,r)}return a=n.interleaved,a===null?(t.next=t,wP(n)):(t.next=a.next,a.next=t),n.interleaved=t,ys(e,r)}function ey(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lP(e,r)}}function zI(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function eb(e,t,r,n){var a=e.updateQueue;tl=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,s=c.next;c.next=null,i===null?o=s:i.next=s,i=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=c))}if(o!==null){var h=a.baseState;i=0,f=s=c=null,l=o;do{var v=l.lane,m=l.eventTime;if((n&v)===v){f!==null&&(f=f.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,w=l;switch(v=t,m=r,w.tag){case 1:if(b=w.payload,typeof b=="function"){h=b.call(m,h,v);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=w.payload,v=typeof b=="function"?b.call(m,h,v):b,v==null)break e;h=jr({},h,v);break e;case 2:tl=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,v=a.effects,v===null?a.effects=[l]:v.push(l))}else m={eventTime:m,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=m,c=h):f=f.next=m,i|=v;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;v=l,l=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(!0);if(f===null&&(c=h),a.baseState=c,a.firstBaseUpdate=s,a.lastBaseUpdate=f,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);uc|=i,e.lanes=i,e.memoizedState=h}}function UI(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=sw.transition;sw.transition={};try{e(!1),t()}finally{ar=r,sw.transition=n}}function i4(){return Po().memoizedState}function eJ(e,t,r){var n=Tl(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},s4(e))l4(t,r);else if(r=U3(e,t,r,n),r!==null){var a=ia();ti(r,e,n,a),u4(r,t,n)}}function tJ(e,t,r){var n=Tl(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(s4(e))l4(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,r);if(a.hasEagerState=!0,a.eagerState=l,ri(l,i)){var c=t.interleaved;c===null?(a.next=a,wP(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}r=U3(e,t,a,n),r!==null&&(a=ia(),ti(r,e,n,a),u4(r,t,n))}}function s4(e){var t=e.alternate;return e===kr||t!==null&&t===kr}function l4(e,t){gh=rb=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function u4(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lP(e,r)}}var nb={readContext:Oo,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useInsertionEffect:Fn,useLayoutEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useMutableSource:Fn,useSyncExternalStore:Fn,useId:Fn,unstable_isNewReconciler:!1},rJ={readContext:Oo,useCallback:function(e,t){return hi().memoizedState=[e,t===void 0?null:t],e},useContext:Oo,useEffect:WI,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ry(4194308,4,t4.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ry(4194308,4,e,t)},useInsertionEffect:function(e,t){return ry(4,2,e,t)},useMemo:function(e,t){var r=hi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=hi();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=eJ.bind(null,kr,e),[n.memoizedState,e]},useRef:function(e){var t=hi();return e={current:e},t.memoizedState=e},useState:VI,useDebugValue:jP,useDeferredValue:function(e){return hi().memoizedState=e},useTransition:function(){var e=VI(!1),t=e[0];return e=ZY.bind(null,e[1]),hi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=kr,a=hi();if(Or){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=t(),yn===null)throw Error(Fe(349));lc&30||G3(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,WI(Q3.bind(null,n,o,e),[e]),n.flags|=2048,nv(9,K3.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=hi(),t=yn.identifierPrefix;if(Or){var r=us,n=ls;r=(n&~(1<<32-ei(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=tv++,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[Si]=t,e[Jh]=n,b4(e,t,!1,!1),t.stateNode=e;e:{switch(i=TS(r,n),r){case"dialog":_r("cancel",e),_r("close",e),a=n;break;case"iframe":case"object":case"embed":_r("load",e),a=n;break;case"video":case"audio":for(a=0;aSf&&(t.flags|=128,n=!0,Lp(o,!1),t.lanes=4194304)}else{if(!n)if(e=t0(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Lp(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Or)return Ln(t),null}else 2*qr()-o.renderingStartTime>Sf&&r!==1073741824&&(t.flags|=128,n=!0,Lp(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=qr(),t.sibling=null,r=$r.current,mr($r,n?r&1|2:r&1),t):(Ln(t),null);case 22:case 23:return LP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?La&1073741824&&(Ln(t),t.subtreeFlags&6&&(t.flags|=8192)):Ln(t),null;case 24:return null;case 25:return null}throw Error(Fe(156,t.tag))}function dJ(e,t){switch(gP(t),t.tag){case 1:return Ea(t.type)&&Ky(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xf(),wr(Sa),wr(Wn),OP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return CP(t),null;case 13:if(wr($r),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Fe(340));bf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wr($r),null;case 4:return xf(),null;case 10:return xP(t.type._context),null;case 22:case 23:return LP(),null;case 24:return null;default:return null}}var _g=!1,Bn=!1,fJ=typeof WeakSet=="function"?WeakSet:Set,it=null;function Od(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Nr(e,t,n)}else r.current=null}function iE(e,t,r){try{r()}catch(n){Nr(e,t,n)}}var tA=!1;function pJ(e,t){if(VS=Wy,e=O3(),vP(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,l=-1,c=-1,s=0,f=0,h=e,v=null;t:for(;;){for(var m;h!==r||a!==0&&h.nodeType!==3||(l=i+a),h!==o||n!==0&&h.nodeType!==3||(c=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(m=h.firstChild)!==null;)v=h,h=m;for(;;){if(h===e)break t;if(v===r&&++s===a&&(l=i),v===o&&++f===n&&(c=i),(m=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=m}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(WS={focusedElem:e,selectionRange:r},Wy=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){t=it;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,O=b.memoizedState,_=t.stateNode,y=_.getSnapshotBeforeUpdate(t.elementType===t.type?w:Wo(t.type,w),O);_.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(S){Nr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}return b=tA,tA=!1,b}function yh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&iE(t,r,o)}a=a.next}while(a!==n)}}function Bb(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 sE(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 w4(e){var t=e.alternate;t!==null&&(e.alternate=null,w4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Si],delete t[Jh],delete t[GS],delete t[QY],delete t[XY])),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 S4(e){return e.tag===5||e.tag===3||e.tag===4}function rA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S4(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 lE(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=Gy));else if(n!==4&&(e=e.child,e!==null))for(lE(e,t,r),e=e.sibling;e!==null;)lE(e,t,r),e=e.sibling}function uE(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(uE(e,t,r),e=e.sibling;e!==null;)uE(e,t,r),e=e.sibling}var En=null,Go=!1;function Hs(e,t,r){for(r=r.child;r!==null;)E4(e,t,r),r=r.sibling}function E4(e,t,r){if(Pi&&typeof Pi.onCommitFiberUnmount=="function")try{Pi.onCommitFiberUnmount(Ib,r)}catch{}switch(r.tag){case 5:Bn||Od(r,t);case 6:var n=En,a=Go;En=null,Hs(e,t,r),En=n,Go=a,En!==null&&(Go?(e=En,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):En.removeChild(r.stateNode));break;case 18:En!==null&&(Go?(e=En,r=r.stateNode,e.nodeType===8?aw(e.parentNode,r):e.nodeType===1&&aw(e,r),Gh(e)):aw(En,r.stateNode));break;case 4:n=En,a=Go,En=r.stateNode.containerInfo,Go=!0,Hs(e,t,r),En=n,Go=a;break;case 0:case 11:case 14:case 15:if(!Bn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&iE(r,t,i),a=a.next}while(a!==n)}Hs(e,t,r);break;case 1:if(!Bn&&(Od(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Nr(r,t,l)}Hs(e,t,r);break;case 21:Hs(e,t,r);break;case 22:r.mode&1?(Bn=(n=Bn)||r.memoizedState!==null,Hs(e,t,r),Bn=n):Hs(e,t,r);break;default:Hs(e,t,r)}}function nA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new fJ),t.forEach(function(n){var a=wJ.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Vo(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*vJ(n/1960))-n,10e?16:e,bl===null)var n=!1;else{if(e=bl,bl=null,i0=0,Ht&6)throw Error(Fe(331));var a=Ht;for(Ht|=4,it=e.current;it!==null;){var o=it,i=o.child;if(it.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cqr()-MP?Zu(e,0):AP|=r),Ca(e,t)}function I4(e,t){t===0&&(e.mode&1?(t=dg,dg<<=1,!(dg&130023424)&&(dg=4194304)):t=1);var r=ia();e=ys(e,t),e!==null&&(Iv(e,t,r),Ca(e,r))}function xJ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),I4(e,r)}function wJ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(t),I4(e,r)}var T4;T4=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Sa.current)xa=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return xa=!1,uJ(e,t,r);xa=!!(e.flags&131072)}else xa=!1,Or&&t.flags&1048576&&L3(t,Yy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ny(e,t),e=t.pendingProps;var a=yf(t,Wn.current);Dd(t,r),a=RP(null,t,n,e,a,r);var o=$P();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ea(n)?(o=!0,Qy(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,SP(t),a.updater=Nb,t.stateNode=a,a._reactInternals=t,ZS(t,n,e,r),t=rE(null,t,n,!0,o,r)):(t.tag=0,Or&&o&&mP(t),ta(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ny(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=EJ(n),e=Wo(n,e),a){case 0:t=tE(null,t,n,e,r);break e;case 1:t=JT(null,t,n,e,r);break e;case 11:t=XT(null,t,n,e,r);break e;case 14:t=YT(null,t,n,Wo(n.type,e),r);break e}throw Error(Fe(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),tE(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),JT(e,t,n,a,r);case 3:e:{if(m4(t),e===null)throw Error(Fe(387));n=t.pendingProps,o=t.memoizedState,a=o.element,V3(e,t),e0(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=wf(Error(Fe(423)),t),t=ZT(e,t,n,r,a);break e}else if(n!==a){a=wf(Error(Fe(424)),t),t=ZT(e,t,n,r,a);break e}else for(Ba=$l(t.stateNode.containerInfo.firstChild),Ua=t,Or=!0,Qo=null,r=z3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(bf(),n===a){t=bs(e,t,r);break e}ta(e,t,n,r)}t=t.child}return t;case 5:return W3(t),e===null&&XS(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,HS(n,a)?i=null:o!==null&&HS(n,o)&&(t.flags|=32),v4(e,t),ta(e,t,i,r),t.child;case 6:return e===null&&XS(t),null;case 13:return g4(e,t,r);case 4:return EP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=_f(t,null,n,r):ta(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),XT(e,t,n,a,r);case 7:return ta(e,t,t.pendingProps,r),t.child;case 8:return ta(e,t,t.pendingProps.children,r),t.child;case 12:return ta(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,mr(Jy,n._currentValue),n._currentValue=i,o!==null)if(ri(o.value,i)){if(o.children===a.children&&!Sa.current){t=bs(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(o.tag===1){c=fs(-1,r&-r),c.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?c.next=c:(c.next=f.next,f.next=c),s.pending=c}}o.lanes|=r,c=o.alternate,c!==null&&(c.lanes|=r),YS(o.return,r,t),l.lanes|=r;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Fe(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),YS(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ta(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Dd(t,r),a=Oo(a),n=n(a),t.flags|=1,ta(e,t,n,r),t.child;case 14:return n=t.type,a=Wo(n,t.pendingProps),a=Wo(n.type,a),YT(e,t,n,a,r);case 15:return p4(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),ny(e,t),t.tag=1,Ea(n)?(e=!0,Qy(t)):e=!1,Dd(t,r),c4(t,n,a),ZS(t,n,a,r),rE(null,t,n,!0,e,r);case 19:return y4(e,t,r);case 22:return h4(e,t,r)}throw Error(Fe(156,t.tag))};function A4(e,t){return s3(e,t)}function SJ(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 wo(e,t,r,n){return new SJ(e,t,r,n)}function NP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function EJ(e){if(typeof e=="function")return NP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===aP)return 11;if(e===oP)return 14}return 2}function Tl(e,t){var r=e.alternate;return r===null?(r=wo(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 iy(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")NP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case gd:return ec(r.children,a,o,t);case nP:i=8,a|=8;break;case SS:return e=wo(12,r,t,a|2),e.elementType=SS,e.lanes=o,e;case ES:return e=wo(13,r,t,a),e.elementType=ES,e.lanes=o,e;case CS:return e=wo(19,r,t,a),e.elementType=CS,e.lanes=o,e;case WN:return Ub(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case UN:i=10;break e;case VN:i=9;break e;case aP:i=11;break e;case oP:i=14;break e;case el:i=16,n=null;break e}throw Error(Fe(130,e==null?e:typeof e,""))}return t=wo(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function ec(e,t,r,n){return e=wo(7,e,n,t),e.lanes=r,e}function Ub(e,t,r,n){return e=wo(22,e,n,t),e.elementType=WN,e.lanes=r,e.stateNode={isHidden:!1},e}function fw(e,t,r){return e=wo(6,e,null,t),e.lanes=r,e}function pw(e,t,r){return t=wo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function CJ(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gx(0),this.expirationTimes=Gx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gx(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function BP(e,t,r,n,a,o,i,l,c){return e=new CJ(e,t,r,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=wo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},SP(o),e}function OJ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D4)}catch(e){console.error(e)}}D4(),DN.exports=Ka;var Fv=DN.exports;const oh=bn(Fv),jJ=ON({__proto__:null,default:oh},[Fv]);var N4,dA=Fv;N4=dA.createRoot,dA.hydrateRoot;var u0={exports:{}};/** +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function cw(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function eE(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var oJ=typeof WeakMap=="function"?WeakMap:Map;function d4(e,t,r){r=fs(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ob||(ob=!0,cE=n),eE(e,t)},r}function f4(e,t,r){r=fs(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){eE(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){eE(e,t),typeof n!="function"&&(jl===null?jl=new Set([this]):jl.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function GI(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new oJ;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=bJ.bind(null,e,t,r),t.then(e,e))}function KI(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 QI(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,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=fs(-1,1),t.tag=2,kl(r,t,1))),r.lanes|=1),e)}var iJ=Es.ReactCurrentOwner,xa=!1;function ta(e,t,r,n){t.child=e===null?z3(t,null,r,n):_f(t,e.child,r,n)}function XI(e,t,r,n,a){r=r.render;var o=t.ref;return Dd(t,a),n=RP(e,t,r,n,o,a),r=$P(),e!==null&&!xa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,bs(e,t,a)):(Or&&r&&mP(t),t.flags|=1,ta(e,t,n,a),t.child)}function YI(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!NP(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,p4(e,t,o,n,a)):(e=iy(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:Qh,r(i,n)&&e.ref===t.ref)return bs(e,t,a)}return t.flags|=1,e=Il(o,n),e.ref=t.ref,e.return=t,t.child=e}function p4(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(Qh(o,n)&&e.ref===t.ref)if(xa=!1,t.pendingProps=n=o,(e.lanes&a)!==0)e.flags&131072&&(xa=!0);else return t.lanes=e.lanes,bs(e,t,a)}return tE(e,t,r,n,a)}function h4(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},mr(Pd,La),La|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,mr(Pd,La),La|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,mr(Pd,La),La|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,mr(Pd,La),La|=n;return ta(e,t,a,r),t.child}function v4(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function tE(e,t,r,n,a){var o=Ea(r)?ic:Wn.current;return o=yf(t,o),Dd(t,a),r=RP(e,t,r,n,o,a),n=$P(),e!==null&&!xa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,bs(e,t,a)):(Or&&n&&mP(t),t.flags|=1,ta(e,t,r,a),t.child)}function JI(e,t,r,n,a){if(Ea(r)){var o=!0;Qy(t)}else o=!1;if(Dd(t,a),t.stateNode===null)ny(e,t),c4(t,r,n),ZS(t,r,n,a),n=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,s=r.contextType;typeof s=="object"&&s!==null?s=Oo(s):(s=Ea(r)?ic:Wn.current,s=yf(t,s));var f=r.getDerivedStateFromProps,h=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==n||c!==s)&&qI(t,i,n,s),tl=!1;var v=t.memoizedState;i.state=v,eb(t,n,i,a),c=t.memoizedState,l!==n||v!==c||Sa.current||tl?(typeof f=="function"&&(JS(t,r,f,n),c=t.memoizedState),(l=tl||HI(t,r,l,n,v,c,s))?(h||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=s,n=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,V3(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Wo(t.type,l),i.props=s,h=t.pendingProps,v=i.context,c=r.contextType,typeof c=="object"&&c!==null?c=Oo(c):(c=Ea(r)?ic:Wn.current,c=yf(t,c));var m=r.getDerivedStateFromProps;(f=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==h||v!==c)&&qI(t,i,n,c),tl=!1,v=t.memoizedState,i.state=v,eb(t,n,i,a);var b=t.memoizedState;l!==h||v!==b||Sa.current||tl?(typeof m=="function"&&(JS(t,r,m,n),b=t.memoizedState),(s=tl||HI(t,r,s,n,v,b,c)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,b,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,b,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=b),i.props=n,i.state=b,i.context=c,n=s):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),n=!1)}return rE(e,t,r,n,o,a)}function rE(e,t,r,n,a,o){v4(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return a&&LI(t,r,!1),bs(e,t,o);n=t.stateNode,iJ.current=t;var l=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=_f(t,e.child,null,o),t.child=_f(t,null,l,o)):ta(e,t,l,o),t.memoizedState=n.state,a&&LI(t,r,!0),t.child}function m4(e){var t=e.stateNode;t.pendingContext?FI(e,t.pendingContext,t.pendingContext!==t.context):t.context&&FI(e,t.context,!1),EP(e,t.containerInfo)}function ZI(e,t,r,n,a){return bf(),yP(a),t.flags|=256,ta(e,t,r,n),t.child}var nE={dehydrated:null,treeContext:null,retryLane:0};function aE(e){return{baseLanes:e,cachePool:null,transitions:null}}function g4(e,t,r){var n=t.pendingProps,a=$r.current,o=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),mr($r,a&1),e===null)return XS(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,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=U0(i,n,0,null),e=ec(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=aE(r),t.memoizedState=nE,e):TP(t,i));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return sJ(e,t,i,n,l,a,r);if(o){o=n.fallback,i=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:n.children};return!(i&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=c,t.deletions=null):(n=Il(a,c),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?o=Il(l,o):(o=ec(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?aE(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=nE,n}return o=e.child,e=o.sibling,n=Il(o,{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 TP(e,t){return t=U0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bg(e,t,r,n){return n!==null&&yP(n),_f(t,e.child,null,r),e=TP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sJ(e,t,r,n,a,o,i){if(r)return t.flags&256?(t.flags&=-257,n=cw(Error(Fe(422))),bg(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=U0({mode:"visible",children:n.children},a,0,null),o=ec(o,a,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&_f(t,e.child,null,i),t.child.memoizedState=aE(i),t.memoizedState=nE,o);if(!(t.mode&1))return bg(e,t,i,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,o=Error(Fe(419)),n=cw(o,n,void 0),bg(e,t,i,n)}if(l=(i&e.childLanes)!==0,xa||l){if(n=yn,n!==null){switch(i&-i){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,ys(e,a),ti(n,e,a,-1))}return DP(),n=cw(Error(Fe(421))),bg(e,t,i,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=_J.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ba=$l(a.nextSibling),Ua=t,Or=!0,Qo=null,e!==null&&(mo[go++]=ls,mo[go++]=us,mo[go++]=sc,ls=e.id,us=e.overflow,sc=t),t=TP(t,n.children),t.flags|=4096,t)}function eA(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),YS(e.return,t,r)}function dw(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function y4(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(ta(e,t,n.children,r),n=$r.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&&eA(e,r,t);else if(e.tag===19)eA(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(mr($r,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&tb(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),dw(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&tb(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}dw(t,!0,r,null,o);break;case"together":dw(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ny(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),uc|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Fe(153));if(t.child!==null){for(e=t.child,r=Il(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Il(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function lJ(e,t,r){switch(t.tag){case 3:m4(t),bf();break;case 5:W3(t);break;case 1:Ea(t.type)&&Qy(t);break;case 4:EP(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;mr(Jy,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(mr($r,$r.current&1),t.flags|=128,null):r&t.child.childLanes?g4(e,t,r):(mr($r,$r.current&1),e=bs(e,t,r),e!==null?e.sibling:null);mr($r,$r.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return y4(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),mr($r,$r.current),n)break;return null;case 22:case 23:return t.lanes=0,h4(e,t,r)}return bs(e,t,r)}var b4,oE,_4,x4;b4=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}};oE=function(){};_4=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Nu(Ri.current);var o=null;switch(r){case"input":a=PS(e,a),n=PS(e,n),o=[];break;case"select":a=jr({},a,{value:void 0}),n=jr({},n,{value:void 0}),o=[];break;case"textarea":a=kS(e,a),n=kS(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Gy)}TS(r,n);var i;r=null;for(s in a)if(!n.hasOwnProperty(s)&&a.hasOwnProperty(s)&&a[s]!=null)if(s==="style"){var l=a[s];for(i in l)l.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Uh.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in n){var c=n[s];if(l=a!=null?a[s]:void 0,n.hasOwnProperty(s)&&c!==l&&(c!=null||l!=null))if(s==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(r||(r={}),r[i]=c[i])}else r||(o||(o=[]),o.push(s,r)),r=c;else s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(s,c)):s==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(s,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Uh.hasOwnProperty(s)?(c!=null&&s==="onScroll"&&_r("scroll",e),o||l===c||(o=[])):(o=o||[]).push(s,c))}r&&(o=o||[]).push("style",r);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};x4=function(e,t,r,n){r!==n&&(t.flags|=4)};function Lp(e,t){if(!Or)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 Ln(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function uJ(e,t,r){var n=t.pendingProps;switch(gP(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ln(t),null;case 1:return Ea(t.type)&&Ky(),Ln(t),null;case 3:return n=t.stateNode,xf(),wr(Sa),wr(Wn),OP(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(gg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qo!==null&&(pE(Qo),Qo=null))),oE(e,t),Ln(t),null;case 5:CP(t);var a=Nu(ev.current);if(r=t.type,e!==null&&t.stateNode!=null)_4(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Fe(166));return Ln(t),null}if(e=Nu(Ri.current),gg(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Si]=t,n[Jh]=o,e=(t.mode&1)!==0,r){case"dialog":_r("cancel",n),_r("close",n);break;case"iframe":case"object":case"embed":_r("load",n);break;case"video":case"audio":for(a=0;a<\/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[Si]=t,e[Jh]=n,b4(e,t,!1,!1),t.stateNode=e;e:{switch(i=IS(r,n),r){case"dialog":_r("cancel",e),_r("close",e),a=n;break;case"iframe":case"object":case"embed":_r("load",e),a=n;break;case"video":case"audio":for(a=0;aSf&&(t.flags|=128,n=!0,Lp(o,!1),t.lanes=4194304)}else{if(!n)if(e=tb(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Lp(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Or)return Ln(t),null}else 2*qr()-o.renderingStartTime>Sf&&r!==1073741824&&(t.flags|=128,n=!0,Lp(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=qr(),t.sibling=null,r=$r.current,mr($r,n?r&1|2:r&1),t):(Ln(t),null);case 22:case 23:return LP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?La&1073741824&&(Ln(t),t.subtreeFlags&6&&(t.flags|=8192)):Ln(t),null;case 24:return null;case 25:return null}throw Error(Fe(156,t.tag))}function cJ(e,t){switch(gP(t),t.tag){case 1:return Ea(t.type)&&Ky(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xf(),wr(Sa),wr(Wn),OP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return CP(t),null;case 13:if(wr($r),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Fe(340));bf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return wr($r),null;case 4:return xf(),null;case 10:return xP(t.type._context),null;case 22:case 23:return LP(),null;case 24:return null;default:return null}}var _g=!1,Bn=!1,dJ=typeof WeakSet=="function"?WeakSet:Set,it=null;function Od(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Nr(e,t,n)}else r.current=null}function iE(e,t,r){try{r()}catch(n){Nr(e,t,n)}}var tA=!1;function fJ(e,t){if(VS=Wy,e=O3(),vP(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,l=-1,c=-1,s=0,f=0,h=e,v=null;t:for(;;){for(var m;h!==r||a!==0&&h.nodeType!==3||(l=i+a),h!==o||n!==0&&h.nodeType!==3||(c=i+n),h.nodeType===3&&(i+=h.nodeValue.length),(m=h.firstChild)!==null;)v=h,h=m;for(;;){if(h===e)break t;if(v===r&&++s===a&&(l=i),v===o&&++f===n&&(c=i),(m=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=m}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(WS={focusedElem:e,selectionRange:r},Wy=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){t=it;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var w=b.memoizedProps,O=b.memoizedState,_=t.stateNode,y=_.getSnapshotBeforeUpdate(t.elementType===t.type?w:Wo(t.type,w),O);_.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(S){Nr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}return b=tA,tA=!1,b}function yh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&iE(t,r,o)}a=a.next}while(a!==n)}}function B0(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 sE(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 w4(e){var t=e.alternate;t!==null&&(e.alternate=null,w4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Si],delete t[Jh],delete t[GS],delete t[KY],delete t[QY])),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 S4(e){return e.tag===5||e.tag===3||e.tag===4}function rA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S4(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 lE(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=Gy));else if(n!==4&&(e=e.child,e!==null))for(lE(e,t,r),e=e.sibling;e!==null;)lE(e,t,r),e=e.sibling}function uE(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(uE(e,t,r),e=e.sibling;e!==null;)uE(e,t,r),e=e.sibling}var En=null,Go=!1;function Hs(e,t,r){for(r=r.child;r!==null;)E4(e,t,r),r=r.sibling}function E4(e,t,r){if(Pi&&typeof Pi.onCommitFiberUnmount=="function")try{Pi.onCommitFiberUnmount(T0,r)}catch{}switch(r.tag){case 5:Bn||Od(r,t);case 6:var n=En,a=Go;En=null,Hs(e,t,r),En=n,Go=a,En!==null&&(Go?(e=En,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):En.removeChild(r.stateNode));break;case 18:En!==null&&(Go?(e=En,r=r.stateNode,e.nodeType===8?aw(e.parentNode,r):e.nodeType===1&&aw(e,r),Gh(e)):aw(En,r.stateNode));break;case 4:n=En,a=Go,En=r.stateNode.containerInfo,Go=!0,Hs(e,t,r),En=n,Go=a;break;case 0:case 11:case 14:case 15:if(!Bn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&iE(r,t,i),a=a.next}while(a!==n)}Hs(e,t,r);break;case 1:if(!Bn&&(Od(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Nr(r,t,l)}Hs(e,t,r);break;case 21:Hs(e,t,r);break;case 22:r.mode&1?(Bn=(n=Bn)||r.memoizedState!==null,Hs(e,t,r),Bn=n):Hs(e,t,r);break;default:Hs(e,t,r)}}function nA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new dJ),t.forEach(function(n){var a=xJ.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Vo(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*hJ(n/1960))-n,10e?16:e,bl===null)var n=!1;else{if(e=bl,bl=null,ib=0,Ht&6)throw Error(Fe(331));var a=Ht;for(Ht|=4,it=e.current;it!==null;){var o=it,i=o.child;if(it.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cqr()-MP?Zu(e,0):AP|=r),Ca(e,t)}function T4(e,t){t===0&&(e.mode&1?(t=dg,dg<<=1,!(dg&130023424)&&(dg=4194304)):t=1);var r=ia();e=ys(e,t),e!==null&&(Tv(e,t,r),Ca(e,r))}function _J(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),T4(e,r)}function xJ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(t),T4(e,r)}var I4;I4=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Sa.current)xa=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return xa=!1,lJ(e,t,r);xa=!!(e.flags&131072)}else xa=!1,Or&&t.flags&1048576&&L3(t,Yy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ny(e,t),e=t.pendingProps;var a=yf(t,Wn.current);Dd(t,r),a=RP(null,t,n,e,a,r);var o=$P();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ea(n)?(o=!0,Qy(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,SP(t),a.updater=N0,t.stateNode=a,a._reactInternals=t,ZS(t,n,e,r),t=rE(null,t,n,!0,o,r)):(t.tag=0,Or&&o&&mP(t),ta(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ny(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=SJ(n),e=Wo(n,e),a){case 0:t=tE(null,t,n,e,r);break e;case 1:t=JI(null,t,n,e,r);break e;case 11:t=XI(null,t,n,e,r);break e;case 14:t=YI(null,t,n,Wo(n.type,e),r);break e}throw Error(Fe(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),tE(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),JI(e,t,n,a,r);case 3:e:{if(m4(t),e===null)throw Error(Fe(387));n=t.pendingProps,o=t.memoizedState,a=o.element,V3(e,t),eb(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=wf(Error(Fe(423)),t),t=ZI(e,t,n,r,a);break e}else if(n!==a){a=wf(Error(Fe(424)),t),t=ZI(e,t,n,r,a);break e}else for(Ba=$l(t.stateNode.containerInfo.firstChild),Ua=t,Or=!0,Qo=null,r=z3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(bf(),n===a){t=bs(e,t,r);break e}ta(e,t,n,r)}t=t.child}return t;case 5:return W3(t),e===null&&XS(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,HS(n,a)?i=null:o!==null&&HS(n,o)&&(t.flags|=32),v4(e,t),ta(e,t,i,r),t.child;case 6:return e===null&&XS(t),null;case 13:return g4(e,t,r);case 4:return EP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=_f(t,null,n,r):ta(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),XI(e,t,n,a,r);case 7:return ta(e,t,t.pendingProps,r),t.child;case 8:return ta(e,t,t.pendingProps.children,r),t.child;case 12:return ta(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,mr(Jy,n._currentValue),n._currentValue=i,o!==null)if(ri(o.value,i)){if(o.children===a.children&&!Sa.current){t=bs(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(o.tag===1){c=fs(-1,r&-r),c.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?c.next=c:(c.next=f.next,f.next=c),s.pending=c}}o.lanes|=r,c=o.alternate,c!==null&&(c.lanes|=r),YS(o.return,r,t),l.lanes|=r;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Fe(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),YS(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ta(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Dd(t,r),a=Oo(a),n=n(a),t.flags|=1,ta(e,t,n,r),t.child;case 14:return n=t.type,a=Wo(n,t.pendingProps),a=Wo(n.type,a),YI(e,t,n,a,r);case 15:return p4(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Wo(n,a),ny(e,t),t.tag=1,Ea(n)?(e=!0,Qy(t)):e=!1,Dd(t,r),c4(t,n,a),ZS(t,n,a,r),rE(null,t,n,!0,e,r);case 19:return y4(e,t,r);case 22:return h4(e,t,r)}throw Error(Fe(156,t.tag))};function A4(e,t){return s3(e,t)}function wJ(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 wo(e,t,r,n){return new wJ(e,t,r,n)}function NP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function SJ(e){if(typeof e=="function")return NP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===aP)return 11;if(e===oP)return 14}return 2}function Il(e,t){var r=e.alternate;return r===null?(r=wo(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 iy(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")NP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case gd:return ec(r.children,a,o,t);case nP:i=8,a|=8;break;case SS:return e=wo(12,r,t,a|2),e.elementType=SS,e.lanes=o,e;case ES:return e=wo(13,r,t,a),e.elementType=ES,e.lanes=o,e;case CS:return e=wo(19,r,t,a),e.elementType=CS,e.lanes=o,e;case WN:return U0(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case UN:i=10;break e;case VN:i=9;break e;case aP:i=11;break e;case oP:i=14;break e;case el:i=16,n=null;break e}throw Error(Fe(130,e==null?e:typeof e,""))}return t=wo(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function ec(e,t,r,n){return e=wo(7,e,n,t),e.lanes=r,e}function U0(e,t,r,n){return e=wo(22,e,n,t),e.elementType=WN,e.lanes=r,e.stateNode={isHidden:!1},e}function fw(e,t,r){return e=wo(6,e,null,t),e.lanes=r,e}function pw(e,t,r){return t=wo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function EJ(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gx(0),this.expirationTimes=Gx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gx(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function BP(e,t,r,n,a,o,i,l,c){return e=new EJ(e,t,r,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=wo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},SP(o),e}function CJ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D4)}catch(e){console.error(e)}}D4(),DN.exports=Ka;var Fv=DN.exports;const oh=bn(Fv),kJ=ON({__proto__:null,default:oh},[Fv]);var N4,dA=Fv;N4=dA.createRoot,dA.hydrateRoot;var ub={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 - */u0.exports;(function(e,t){(function(){var r,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",s=500,f="__lodash_placeholder__",h=1,v=2,m=4,b=1,w=2,O=1,_=2,y=4,x=8,S=16,P=32,C=64,$=128,R=256,k=512,I=30,M="...",F=800,L=16,B=1,V=2,H=3,W=1/0,z=9007199254740991,q=17976931348623157e292,ee=NaN,oe=4294967295,J=oe-1,we=oe>>>1,le=[["ary",$],["bind",O],["bindKey",_],["curry",x],["curryRight",S],["flip",k],["partial",P],["partialRight",C],["rearg",R]],ge="[object Arguments]",pe="[object Array]",me="[object AsyncFunction]",xe="[object Boolean]",ne="[object Date]",Te="[object DOMException]",ve="[object Error]",$e="[object Function]",ye="[object GeneratorFunction]",je="[object Map]",Le="[object Number]",st="[object Null]",Xe="[object Object]",U="[object Promise]",K="[object Proxy]",Z="[object RegExp]",ie="[object Set]",ue="[object String]",ce="[object Symbol]",Ee="[object Undefined]",Ae="[object WeakMap]",ft="[object WeakSet]",De="[object ArrayBuffer]",Ze="[object DataView]",Ve="[object Float32Array]",_t="[object Float64Array]",Wt="[object Int8Array]",Ct="[object Int16Array]",qe="[object Int32Array]",pt="[object Uint8Array]",Me="[object Uint8ClampedArray]",Ge="[object Uint16Array]",wt="[object Uint32Array]",Ot=/\b__p \+= '';/g,dr=/\b(__p \+=) '' \+/g,Pr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,an=/&(?:amp|lt|gt|quot|#39);/g,$a=/[&<>"']/g,Tn=RegExp(an.source),li=RegExp($a.source),nu=/<%-([\s\S]+?)%>/g,Is=/<%([\s\S]+?)%>/g,zi=/<%=([\s\S]+?)%>/g,hp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,au=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,fe=RegExp(ae.source),Se=/^\s+/,We=/\s/,dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ye=/,? & /,nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qe=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,Pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tt=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,Zt=/^0b[01]+$/i,Dt=/^\[object .+?Constructor\]$/,lt=/^0o[0-7]+$/i,Tr=/^(?:0|[1-9]\d*)$/,ou=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,eo=/['\n\r\u2028\u2029\\]/g,Ts="\\ud800-\\udfff",iu="\\u0300-\\u036f",Ui="\\ufe20-\\ufe2f",Fc="\\u20d0-\\u20ff",su=iu+Ui+Fc,Nt="\\u2700-\\u27bf",yr="a-z\\xdf-\\xf6\\xf8-\\xff",As="\\xac\\xb1\\xd7\\xf7",lu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ar="\\u2000-\\u206f",Ms=" \\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",vp="A-Z\\xc0-\\xd6\\xd8-\\xde",ym="\\ufe0e\\ufe0f",Fk=As+lu+Ar+Ms,j1="['’]",iW="["+Ts+"]",Lk="["+Fk+"]",bm="["+su+"]",Dk="\\d+",sW="["+Nt+"]",Nk="["+yr+"]",Bk="[^"+Ts+Fk+Dk+Nt+yr+vp+"]",I1="\\ud83c[\\udffb-\\udfff]",lW="(?:"+bm+"|"+I1+")",zk="[^"+Ts+"]",T1="(?:\\ud83c[\\udde6-\\uddff]){2}",A1="[\\ud800-\\udbff][\\udc00-\\udfff]",Lc="["+vp+"]",Uk="\\u200d",Vk="(?:"+Nk+"|"+Bk+")",uW="(?:"+Lc+"|"+Bk+")",Wk="(?:"+j1+"(?:d|ll|m|re|s|t|ve))?",Hk="(?:"+j1+"(?:D|LL|M|RE|S|T|VE))?",qk=lW+"?",Gk="["+ym+"]?",cW="(?:"+Uk+"(?:"+[zk,T1,A1].join("|")+")"+Gk+qk+")*",dW="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fW="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kk=Gk+qk+cW,pW="(?:"+[sW,T1,A1].join("|")+")"+Kk,hW="(?:"+[zk+bm+"?",bm,T1,A1,iW].join("|")+")",vW=RegExp(j1,"g"),mW=RegExp(bm,"g"),M1=RegExp(I1+"(?="+I1+")|"+hW+Kk,"g"),gW=RegExp([Lc+"?"+Nk+"+"+Wk+"(?="+[Lk,Lc,"$"].join("|")+")",uW+"+"+Hk+"(?="+[Lk,Lc+Vk,"$"].join("|")+")",Lc+"?"+Vk+"+"+Wk,Lc+"+"+Hk,fW,dW,Dk,pW].join("|"),"g"),yW=RegExp("["+Uk+Ts+su+ym+"]"),bW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_W=["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"],xW=-1,br={};br[Ve]=br[_t]=br[Wt]=br[Ct]=br[qe]=br[pt]=br[Me]=br[Ge]=br[wt]=!0,br[ge]=br[pe]=br[De]=br[xe]=br[Ze]=br[ne]=br[ve]=br[$e]=br[je]=br[Le]=br[Xe]=br[Z]=br[ie]=br[ue]=br[Ae]=!1;var pr={};pr[ge]=pr[pe]=pr[De]=pr[Ze]=pr[xe]=pr[ne]=pr[Ve]=pr[_t]=pr[Wt]=pr[Ct]=pr[qe]=pr[je]=pr[Le]=pr[Xe]=pr[Z]=pr[ie]=pr[ue]=pr[ce]=pr[pt]=pr[Me]=pr[Ge]=pr[wt]=!0,pr[ve]=pr[$e]=pr[Ae]=!1;var wW={À:"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"},SW={"&":"&","<":"<",">":">",'"':""","'":"'"},EW={"&":"&","<":"<",">":">",""":'"',"'":"'"},CW={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},OW=parseFloat,PW=parseInt,Qk=typeof Zo=="object"&&Zo&&Zo.Object===Object&&Zo,RW=typeof self=="object"&&self&&self.Object===Object&&self,xn=Qk||RW||Function("return this")(),F1=t&&!t.nodeType&&t,uu=F1&&!0&&e&&!e.nodeType&&e,Xk=uu&&uu.exports===F1,L1=Xk&&Qk.process,to=function(){try{var re=uu&&uu.require&&uu.require("util").types;return re||L1&&L1.binding&&L1.binding("util")}catch{}}(),Yk=to&&to.isArrayBuffer,Jk=to&&to.isDate,Zk=to&&to.isMap,ej=to&&to.isRegExp,tj=to&&to.isSet,rj=to&&to.isTypedArray;function ka(re,be,he){switch(he.length){case 0:return re.call(be);case 1:return re.call(be,he[0]);case 2:return re.call(be,he[0],he[1]);case 3:return re.call(be,he[0],he[1],he[2])}return re.apply(be,he)}function $W(re,be,he,at){for(var xt=-1,Qt=re==null?0:re.length;++xt-1}function D1(re,be,he){for(var at=-1,xt=re==null?0:re.length;++at-1;);return he}function cj(re,be){for(var he=re.length;he--&&Dc(be,re[he],0)>-1;);return he}function DW(re,be){for(var he=re.length,at=0;he--;)re[he]===be&&++at;return at}var NW=U1(wW),BW=U1(SW);function zW(re){return"\\"+CW[re]}function UW(re,be){return re==null?r:re[be]}function Nc(re){return yW.test(re)}function VW(re){return bW.test(re)}function WW(re){for(var be,he=[];!(be=re.next()).done;)he.push(be.value);return he}function q1(re){var be=-1,he=Array(re.size);return re.forEach(function(at,xt){he[++be]=[xt,at]}),he}function dj(re,be){return function(he){return re(be(he))}}function Ds(re,be){for(var he=-1,at=re.length,xt=0,Qt=[];++he-1}function j7(u,p){var g=this.__data__,j=Lm(g,u);return j<0?(++this.size,g.push([u,p])):g[j][1]=p,this}Vi.prototype.clear=P7,Vi.prototype.delete=R7,Vi.prototype.get=$7,Vi.prototype.has=k7,Vi.prototype.set=j7;function Wi(u){var p=-1,g=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function oo(u,p,g,j,A,N){var G,Y=p&h,se=p&v,Ce=p&m;if(g&&(G=A?g(u,j,A,N):g(u)),G!==r)return G;if(!Rr(u))return u;var Oe=St(u);if(Oe){if(G=MH(u),!Y)return fa(u,G)}else{var Ie=Mn(u),Ue=Ie==$e||Ie==ye;if(Ws(u))return Gj(u,Y);if(Ie==Xe||Ie==ge||Ue&&!A){if(G=se||Ue?{}:fI(u),!Y)return se?EH(u,G7(G,u)):SH(u,Sj(G,u))}else{if(!pr[Ie])return A?u:{};G=FH(u,Ie,Y)}}N||(N=new Bo);var ct=N.get(u);if(ct)return ct;N.set(u,G),zI(u)?u.forEach(function(bt){G.add(oo(bt,p,g,bt,u,N))}):NI(u)&&u.forEach(function(bt,At){G.set(At,oo(bt,p,g,At,u,N))});var yt=Ce?se?yx:gx:se?ha:vn,kt=Oe?r:yt(u);return ro(kt||u,function(bt,At){kt&&(At=bt,bt=u[At]),wp(G,At,oo(bt,p,g,At,u,N))}),G}function K7(u){var p=vn(u);return function(g){return Ej(g,u,p)}}function Ej(u,p,g){var j=g.length;if(u==null)return!j;for(u=fr(u);j--;){var A=g[j],N=p[A],G=u[A];if(G===r&&!(A in u)||!N(G))return!1}return!0}function Cj(u,p,g){if(typeof u!="function")throw new no(i);return $p(function(){u.apply(r,g)},p)}function Sp(u,p,g,j){var A=-1,N=_m,G=!0,Y=u.length,se=[],Ce=p.length;if(!Y)return se;g&&(p=Sr(p,ja(g))),j?(N=D1,G=!1):p.length>=a&&(N=mp,G=!1,p=new fu(p));e:for(;++AA?0:A+g),j=j===r||j>A?A:Rt(j),j<0&&(j+=A),j=g>j?0:VI(j);g0&&g(Y)?p>1?wn(Y,p-1,g,j,A):Ls(A,Y):j||(A[A.length]=Y)}return A}var Z1=Zj(),Rj=Zj(!0);function ui(u,p){return u&&Z1(u,p,vn)}function ex(u,p){return u&&Rj(u,p,vn)}function Nm(u,p){return Fs(p,function(g){return Qi(u[g])})}function hu(u,p){p=Us(p,u);for(var g=0,j=p.length;u!=null&&gp}function Y7(u,p){return u!=null&&rr.call(u,p)}function J7(u,p){return u!=null&&p in fr(u)}function Z7(u,p,g){return u>=An(p,g)&&u=120&&Oe.length>=120)?new fu(G&&Oe):r}Oe=u[0];var Ie=-1,Ue=Y[0];e:for(;++Ie-1;)Y!==u&&km.call(Y,se,1),km.call(u,se,1);return u}function Nj(u,p){for(var g=u?p.length:0,j=g-1;g--;){var A=p[g];if(g==j||A!==N){var N=A;Ki(A)?km.call(u,A,1):cx(u,A)}}return u}function sx(u,p){return u+Tm(bj()*(p-u+1))}function fH(u,p,g,j){for(var A=-1,N=sn(Im((p-u)/(g||1)),0),G=he(N);N--;)G[j?N:++A]=u,u+=g;return G}function lx(u,p){var g="";if(!u||p<1||p>z)return g;do p%2&&(g+=u),p=Tm(p/2),p&&(u+=u);while(p);return g}function It(u,p){return Cx(vI(u,p,va),u+"")}function pH(u){return wj(Xc(u))}function hH(u,p){var g=Xc(u);return Xm(g,pu(p,0,g.length))}function Op(u,p,g,j){if(!Rr(u))return u;p=Us(p,u);for(var A=-1,N=p.length,G=N-1,Y=u;Y!=null&&++AA?0:A+p),g=g>A?A:g,g<0&&(g+=A),A=p>g?0:g-p>>>0,p>>>=0;for(var N=he(A);++j>>1,G=u[N];G!==null&&!Ta(G)&&(g?G<=p:G=a){var Ce=p?null:RH(u);if(Ce)return wm(Ce);G=!1,A=mp,se=new fu}else se=p?[]:Y;e:for(;++j=j?u:io(u,p,g)}var qj=o7||function(u){return xn.clearTimeout(u)};function Gj(u,p){if(p)return u.slice();var g=u.length,j=hj?hj(g):new u.constructor(g);return u.copy(j),j}function hx(u){var p=new u.constructor(u.byteLength);return new Rm(p).set(new Rm(u)),p}function bH(u,p){var g=p?hx(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.byteLength)}function _H(u){var p=new u.constructor(u.source,Tt.exec(u));return p.lastIndex=u.lastIndex,p}function xH(u){return xp?fr(xp.call(u)):{}}function Kj(u,p){var g=p?hx(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.length)}function Qj(u,p){if(u!==p){var g=u!==r,j=u===null,A=u===u,N=Ta(u),G=p!==r,Y=p===null,se=p===p,Ce=Ta(p);if(!Y&&!Ce&&!N&&u>p||N&&G&&se&&!Y&&!Ce||j&&G&&se||!g&&se||!A)return 1;if(!j&&!N&&!Ce&&u=Y)return se;var Ce=g[j];return se*(Ce=="desc"?-1:1)}}return u.index-p.index}function Xj(u,p,g,j){for(var A=-1,N=u.length,G=g.length,Y=-1,se=p.length,Ce=sn(N-G,0),Oe=he(se+Ce),Ie=!j;++Y1?g[A-1]:r,G=A>2?g[2]:r;for(N=u.length>3&&typeof N=="function"?(A--,N):r,G&&Gn(g[0],g[1],G)&&(N=A<3?r:N,A=1),p=fr(p);++j-1?A[N?p[G]:G]:r}}function rI(u){return Gi(function(p){var g=p.length,j=g,A=ao.prototype.thru;for(u&&p.reverse();j--;){var N=p[j];if(typeof N!="function")throw new no(i);if(A&&!G&&Km(N)=="wrapper")var G=new ao([],!0)}for(j=G?j:g;++j1&&Bt.reverse(),Oe&&seY))return!1;var Ce=N.get(u),Oe=N.get(p);if(Ce&&Oe)return Ce==p&&Oe==u;var Ie=-1,Ue=!0,ct=g&w?new fu:r;for(N.set(u,p),N.set(p,u);++Ie1?"& ":"")+p[j],p=p.join(g>2?", ":" "),u.replace(dt,`{ + */ub.exports;(function(e,t){(function(){var r,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",s=500,f="__lodash_placeholder__",h=1,v=2,m=4,b=1,w=2,O=1,_=2,y=4,x=8,S=16,P=32,C=64,$=128,R=256,k=512,T=30,M="...",F=800,L=16,B=1,V=2,H=3,W=1/0,z=9007199254740991,q=17976931348623157e292,ee=NaN,oe=4294967295,J=oe-1,we=oe>>>1,le=[["ary",$],["bind",O],["bindKey",_],["curry",x],["curryRight",S],["flip",k],["partial",P],["partialRight",C],["rearg",R]],ge="[object Arguments]",pe="[object Array]",me="[object AsyncFunction]",xe="[object Boolean]",ne="[object Date]",Ie="[object DOMException]",ve="[object Error]",$e="[object Function]",ye="[object GeneratorFunction]",je="[object Map]",Le="[object Number]",st="[object Null]",Xe="[object Object]",U="[object Promise]",K="[object Proxy]",Z="[object RegExp]",ie="[object Set]",ue="[object String]",ce="[object Symbol]",Ee="[object Undefined]",Ae="[object WeakMap]",ft="[object WeakSet]",De="[object ArrayBuffer]",Ze="[object DataView]",Ve="[object Float32Array]",_t="[object Float64Array]",Wt="[object Int8Array]",Ct="[object Int16Array]",qe="[object Int32Array]",pt="[object Uint8Array]",Me="[object Uint8ClampedArray]",Ge="[object Uint16Array]",wt="[object Uint32Array]",Ot=/\b__p \+= '';/g,dr=/\b(__p \+=) '' \+/g,Pr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,an=/&(?:amp|lt|gt|quot|#39);/g,$a=/[&<>"']/g,In=RegExp(an.source),li=RegExp($a.source),nu=/<%-([\s\S]+?)%>/g,Ts=/<%([\s\S]+?)%>/g,zi=/<%=([\s\S]+?)%>/g,hp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,au=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,fe=RegExp(ae.source),Se=/^\s+/,We=/\s/,dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ye=/,? & /,nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qe=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,Pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,It=/\w*$/,zr=/^[-+]0x[0-9a-f]+$/i,Zt=/^0b[01]+$/i,Dt=/^\[object .+?Constructor\]$/,lt=/^0o[0-7]+$/i,Ir=/^(?:0|[1-9]\d*)$/,ou=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,eo=/['\n\r\u2028\u2029\\]/g,Is="\\ud800-\\udfff",iu="\\u0300-\\u036f",Ui="\\ufe20-\\ufe2f",Fc="\\u20d0-\\u20ff",su=iu+Ui+Fc,Nt="\\u2700-\\u27bf",yr="a-z\\xdf-\\xf6\\xf8-\\xff",As="\\xac\\xb1\\xd7\\xf7",lu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ar="\\u2000-\\u206f",Ms=" \\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",vp="A-Z\\xc0-\\xd6\\xd8-\\xde",ym="\\ufe0e\\ufe0f",Fk=As+lu+Ar+Ms,j1="['’]",oW="["+Is+"]",Lk="["+Fk+"]",bm="["+su+"]",Dk="\\d+",iW="["+Nt+"]",Nk="["+yr+"]",Bk="[^"+Is+Fk+Dk+Nt+yr+vp+"]",T1="\\ud83c[\\udffb-\\udfff]",sW="(?:"+bm+"|"+T1+")",zk="[^"+Is+"]",I1="(?:\\ud83c[\\udde6-\\uddff]){2}",A1="[\\ud800-\\udbff][\\udc00-\\udfff]",Lc="["+vp+"]",Uk="\\u200d",Vk="(?:"+Nk+"|"+Bk+")",lW="(?:"+Lc+"|"+Bk+")",Wk="(?:"+j1+"(?:d|ll|m|re|s|t|ve))?",Hk="(?:"+j1+"(?:D|LL|M|RE|S|T|VE))?",qk=sW+"?",Gk="["+ym+"]?",uW="(?:"+Uk+"(?:"+[zk,I1,A1].join("|")+")"+Gk+qk+")*",cW="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dW="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kk=Gk+qk+uW,fW="(?:"+[iW,I1,A1].join("|")+")"+Kk,pW="(?:"+[zk+bm+"?",bm,I1,A1,oW].join("|")+")",hW=RegExp(j1,"g"),vW=RegExp(bm,"g"),M1=RegExp(T1+"(?="+T1+")|"+pW+Kk,"g"),mW=RegExp([Lc+"?"+Nk+"+"+Wk+"(?="+[Lk,Lc,"$"].join("|")+")",lW+"+"+Hk+"(?="+[Lk,Lc+Vk,"$"].join("|")+")",Lc+"?"+Vk+"+"+Wk,Lc+"+"+Hk,dW,cW,Dk,fW].join("|"),"g"),gW=RegExp("["+Uk+Is+su+ym+"]"),yW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bW=["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"],_W=-1,br={};br[Ve]=br[_t]=br[Wt]=br[Ct]=br[qe]=br[pt]=br[Me]=br[Ge]=br[wt]=!0,br[ge]=br[pe]=br[De]=br[xe]=br[Ze]=br[ne]=br[ve]=br[$e]=br[je]=br[Le]=br[Xe]=br[Z]=br[ie]=br[ue]=br[Ae]=!1;var pr={};pr[ge]=pr[pe]=pr[De]=pr[Ze]=pr[xe]=pr[ne]=pr[Ve]=pr[_t]=pr[Wt]=pr[Ct]=pr[qe]=pr[je]=pr[Le]=pr[Xe]=pr[Z]=pr[ie]=pr[ue]=pr[ce]=pr[pt]=pr[Me]=pr[Ge]=pr[wt]=!0,pr[ve]=pr[$e]=pr[Ae]=!1;var xW={À:"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"},wW={"&":"&","<":"<",">":">",'"':""","'":"'"},SW={"&":"&","<":"<",">":">",""":'"',"'":"'"},EW={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},CW=parseFloat,OW=parseInt,Qk=typeof Zo=="object"&&Zo&&Zo.Object===Object&&Zo,PW=typeof self=="object"&&self&&self.Object===Object&&self,xn=Qk||PW||Function("return this")(),F1=t&&!t.nodeType&&t,uu=F1&&!0&&e&&!e.nodeType&&e,Xk=uu&&uu.exports===F1,L1=Xk&&Qk.process,to=function(){try{var re=uu&&uu.require&&uu.require("util").types;return re||L1&&L1.binding&&L1.binding("util")}catch{}}(),Yk=to&&to.isArrayBuffer,Jk=to&&to.isDate,Zk=to&&to.isMap,ej=to&&to.isRegExp,tj=to&&to.isSet,rj=to&&to.isTypedArray;function ka(re,be,he){switch(he.length){case 0:return re.call(be);case 1:return re.call(be,he[0]);case 2:return re.call(be,he[0],he[1]);case 3:return re.call(be,he[0],he[1],he[2])}return re.apply(be,he)}function RW(re,be,he,at){for(var xt=-1,Qt=re==null?0:re.length;++xt-1}function D1(re,be,he){for(var at=-1,xt=re==null?0:re.length;++at-1;);return he}function cj(re,be){for(var he=re.length;he--&&Dc(be,re[he],0)>-1;);return he}function LW(re,be){for(var he=re.length,at=0;he--;)re[he]===be&&++at;return at}var DW=U1(xW),NW=U1(wW);function BW(re){return"\\"+EW[re]}function zW(re,be){return re==null?r:re[be]}function Nc(re){return gW.test(re)}function UW(re){return yW.test(re)}function VW(re){for(var be,he=[];!(be=re.next()).done;)he.push(be.value);return he}function q1(re){var be=-1,he=Array(re.size);return re.forEach(function(at,xt){he[++be]=[xt,at]}),he}function dj(re,be){return function(he){return re(be(he))}}function Ds(re,be){for(var he=-1,at=re.length,xt=0,Qt=[];++he-1}function k7(u,p){var g=this.__data__,j=Lm(g,u);return j<0?(++this.size,g.push([u,p])):g[j][1]=p,this}Vi.prototype.clear=O7,Vi.prototype.delete=P7,Vi.prototype.get=R7,Vi.prototype.has=$7,Vi.prototype.set=k7;function Wi(u){var p=-1,g=u==null?0:u.length;for(this.clear();++p=p?u:p)),u}function oo(u,p,g,j,A,N){var G,Y=p&h,se=p&v,Ce=p&m;if(g&&(G=A?g(u,j,A,N):g(u)),G!==r)return G;if(!Rr(u))return u;var Oe=St(u);if(Oe){if(G=AH(u),!Y)return fa(u,G)}else{var Te=Mn(u),Ue=Te==$e||Te==ye;if(Ws(u))return Gj(u,Y);if(Te==Xe||Te==ge||Ue&&!A){if(G=se||Ue?{}:fT(u),!Y)return se?SH(u,q7(G,u)):wH(u,Sj(G,u))}else{if(!pr[Te])return A?u:{};G=MH(u,Te,Y)}}N||(N=new Bo);var ct=N.get(u);if(ct)return ct;N.set(u,G),zT(u)?u.forEach(function(bt){G.add(oo(bt,p,g,bt,u,N))}):NT(u)&&u.forEach(function(bt,At){G.set(At,oo(bt,p,g,At,u,N))});var yt=Ce?se?yx:gx:se?ha:vn,kt=Oe?r:yt(u);return ro(kt||u,function(bt,At){kt&&(At=bt,bt=u[At]),wp(G,At,oo(bt,p,g,At,u,N))}),G}function G7(u){var p=vn(u);return function(g){return Ej(g,u,p)}}function Ej(u,p,g){var j=g.length;if(u==null)return!j;for(u=fr(u);j--;){var A=g[j],N=p[A],G=u[A];if(G===r&&!(A in u)||!N(G))return!1}return!0}function Cj(u,p,g){if(typeof u!="function")throw new no(i);return $p(function(){u.apply(r,g)},p)}function Sp(u,p,g,j){var A=-1,N=_m,G=!0,Y=u.length,se=[],Ce=p.length;if(!Y)return se;g&&(p=Sr(p,ja(g))),j?(N=D1,G=!1):p.length>=a&&(N=mp,G=!1,p=new fu(p));e:for(;++AA?0:A+g),j=j===r||j>A?A:Rt(j),j<0&&(j+=A),j=g>j?0:VT(j);g0&&g(Y)?p>1?wn(Y,p-1,g,j,A):Ls(A,Y):j||(A[A.length]=Y)}return A}var Z1=Zj(),Rj=Zj(!0);function ui(u,p){return u&&Z1(u,p,vn)}function ex(u,p){return u&&Rj(u,p,vn)}function Nm(u,p){return Fs(p,function(g){return Qi(u[g])})}function hu(u,p){p=Us(p,u);for(var g=0,j=p.length;u!=null&&gp}function X7(u,p){return u!=null&&rr.call(u,p)}function Y7(u,p){return u!=null&&p in fr(u)}function J7(u,p,g){return u>=An(p,g)&&u=120&&Oe.length>=120)?new fu(G&&Oe):r}Oe=u[0];var Te=-1,Ue=Y[0];e:for(;++Te-1;)Y!==u&&km.call(Y,se,1),km.call(u,se,1);return u}function Nj(u,p){for(var g=u?p.length:0,j=g-1;g--;){var A=p[g];if(g==j||A!==N){var N=A;Ki(A)?km.call(u,A,1):cx(u,A)}}return u}function sx(u,p){return u+Im(bj()*(p-u+1))}function dH(u,p,g,j){for(var A=-1,N=sn(Tm((p-u)/(g||1)),0),G=he(N);N--;)G[j?N:++A]=u,u+=g;return G}function lx(u,p){var g="";if(!u||p<1||p>z)return g;do p%2&&(g+=u),p=Im(p/2),p&&(u+=u);while(p);return g}function Tt(u,p){return Cx(vT(u,p,va),u+"")}function fH(u){return wj(Xc(u))}function pH(u,p){var g=Xc(u);return Xm(g,pu(p,0,g.length))}function Op(u,p,g,j){if(!Rr(u))return u;p=Us(p,u);for(var A=-1,N=p.length,G=N-1,Y=u;Y!=null&&++AA?0:A+p),g=g>A?A:g,g<0&&(g+=A),A=p>g?0:g-p>>>0,p>>>=0;for(var N=he(A);++j>>1,G=u[N];G!==null&&!Ia(G)&&(g?G<=p:G=a){var Ce=p?null:PH(u);if(Ce)return wm(Ce);G=!1,A=mp,se=new fu}else se=p?[]:Y;e:for(;++j=j?u:io(u,p,g)}var qj=a7||function(u){return xn.clearTimeout(u)};function Gj(u,p){if(p)return u.slice();var g=u.length,j=hj?hj(g):new u.constructor(g);return u.copy(j),j}function hx(u){var p=new u.constructor(u.byteLength);return new Rm(p).set(new Rm(u)),p}function yH(u,p){var g=p?hx(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.byteLength)}function bH(u){var p=new u.constructor(u.source,It.exec(u));return p.lastIndex=u.lastIndex,p}function _H(u){return xp?fr(xp.call(u)):{}}function Kj(u,p){var g=p?hx(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.length)}function Qj(u,p){if(u!==p){var g=u!==r,j=u===null,A=u===u,N=Ia(u),G=p!==r,Y=p===null,se=p===p,Ce=Ia(p);if(!Y&&!Ce&&!N&&u>p||N&&G&&se&&!Y&&!Ce||j&&G&&se||!g&&se||!A)return 1;if(!j&&!N&&!Ce&&u=Y)return se;var Ce=g[j];return se*(Ce=="desc"?-1:1)}}return u.index-p.index}function Xj(u,p,g,j){for(var A=-1,N=u.length,G=g.length,Y=-1,se=p.length,Ce=sn(N-G,0),Oe=he(se+Ce),Te=!j;++Y1?g[A-1]:r,G=A>2?g[2]:r;for(N=u.length>3&&typeof N=="function"?(A--,N):r,G&&Gn(g[0],g[1],G)&&(N=A<3?r:N,A=1),p=fr(p);++j-1?A[N?p[G]:G]:r}}function rT(u){return Gi(function(p){var g=p.length,j=g,A=ao.prototype.thru;for(u&&p.reverse();j--;){var N=p[j];if(typeof N!="function")throw new no(i);if(A&&!G&&Km(N)=="wrapper")var G=new ao([],!0)}for(j=G?j:g;++j1&&Bt.reverse(),Oe&&seY))return!1;var Ce=N.get(u),Oe=N.get(p);if(Ce&&Oe)return Ce==p&&Oe==u;var Te=-1,Ue=!0,ct=g&w?new fu:r;for(N.set(u,p),N.set(p,u);++Te1?"& ":"")+p[j],p=p.join(g>2?", ":" "),u.replace(dt,`{ /* [wrapped with `+p+`] */ -`)}function DH(u){return St(u)||gu(u)||!!(gj&&u&&u[gj])}function Ki(u,p){var g=typeof u;return p=p??z,!!p&&(g=="number"||g!="symbol"&&Tr.test(u))&&u>-1&&u%1==0&&u0){if(++p>=F)return arguments[0]}else p=0;return u.apply(r,arguments)}}function Xm(u,p){var g=-1,j=u.length,A=j-1;for(p=p===r?j:p;++g1?u[p-1]:r;return g=typeof g=="function"?(u.pop(),g):r,PI(u,g)});function RI(u){var p=D(u);return p.__chain__=!0,p}function Qq(u,p){return p(u),u}function Ym(u,p){return p(u)}var Xq=Gi(function(u){var p=u.length,g=p?u[0]:0,j=this.__wrapped__,A=function(N){return J1(N,u)};return p>1||this.__actions__.length||!(j instanceof Ft)||!Ki(g)?this.thru(A):(j=j.slice(g,+g+(p?1:0)),j.__actions__.push({func:Ym,args:[A],thisArg:r}),new ao(j,this.__chain__).thru(function(N){return p&&!N.length&&N.push(r),N}))});function Yq(){return RI(this)}function Jq(){return new ao(this.value(),this.__chain__)}function Zq(){this.__values__===r&&(this.__values__=UI(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function eG(){return this}function tG(u){for(var p,g=this;g instanceof Fm;){var j=xI(g);j.__index__=0,j.__values__=r,p?A.__wrapped__=j:p=j;var A=j;g=g.__wrapped__}return A.__wrapped__=u,p}function rG(){var u=this.__wrapped__;if(u instanceof Ft){var p=u;return this.__actions__.length&&(p=new Ft(this)),p=p.reverse(),p.__actions__.push({func:Ym,args:[Ox],thisArg:r}),new ao(p,this.__chain__)}return this.thru(Ox)}function nG(){return Wj(this.__wrapped__,this.__actions__)}var aG=Vm(function(u,p,g){rr.call(u,g)?++u[g]:Hi(u,g,1)});function oG(u,p,g){var j=St(u)?nj:Q7;return g&&Gn(u,p,g)&&(p=r),j(u,gt(p,3))}function iG(u,p){var g=St(u)?Fs:Pj;return g(u,gt(p,3))}var sG=tI(wI),lG=tI(SI);function uG(u,p){return wn(Jm(u,p),1)}function cG(u,p){return wn(Jm(u,p),W)}function dG(u,p,g){return g=g===r?1:Rt(g),wn(Jm(u,p),g)}function $I(u,p){var g=St(u)?ro:Bs;return g(u,gt(p,3))}function kI(u,p){var g=St(u)?kW:Oj;return g(u,gt(p,3))}var fG=Vm(function(u,p,g){rr.call(u,g)?u[g].push(p):Hi(u,g,[p])});function pG(u,p,g,j){u=pa(u)?u:Xc(u),g=g&&!j?Rt(g):0;var A=u.length;return g<0&&(g=sn(A+g,0)),ng(u)?g<=A&&u.indexOf(p,g)>-1:!!A&&Dc(u,p,g)>-1}var hG=It(function(u,p,g){var j=-1,A=typeof p=="function",N=pa(u)?he(u.length):[];return Bs(u,function(G){N[++j]=A?ka(p,G,g):Ep(G,p,g)}),N}),vG=Vm(function(u,p,g){Hi(u,g,p)});function Jm(u,p){var g=St(u)?Sr:Tj;return g(u,gt(p,3))}function mG(u,p,g,j){return u==null?[]:(St(p)||(p=p==null?[]:[p]),g=j?r:g,St(g)||(g=g==null?[]:[g]),Lj(u,p,g))}var gG=Vm(function(u,p,g){u[g?0:1].push(p)},function(){return[[],[]]});function yG(u,p,g){var j=St(u)?N1:sj,A=arguments.length<3;return j(u,gt(p,4),g,A,Bs)}function bG(u,p,g){var j=St(u)?jW:sj,A=arguments.length<3;return j(u,gt(p,4),g,A,Oj)}function _G(u,p){var g=St(u)?Fs:Pj;return g(u,tg(gt(p,3)))}function xG(u){var p=St(u)?wj:pH;return p(u)}function wG(u,p,g){(g?Gn(u,p,g):p===r)?p=1:p=Rt(p);var j=St(u)?W7:hH;return j(u,p)}function SG(u){var p=St(u)?H7:mH;return p(u)}function EG(u){if(u==null)return 0;if(pa(u))return ng(u)?Bc(u):u.length;var p=Mn(u);return p==je||p==ie?u.size:ax(u).length}function CG(u,p,g){var j=St(u)?B1:gH;return g&&Gn(u,p,g)&&(p=r),j(u,gt(p,3))}var OG=It(function(u,p){if(u==null)return[];var g=p.length;return g>1&&Gn(u,p[0],p[1])?p=[]:g>2&&Gn(p[0],p[1],p[2])&&(p=[p[0]]),Lj(u,wn(p,1),[])}),Zm=i7||function(){return xn.Date.now()};function PG(u,p){if(typeof p!="function")throw new no(i);return u=Rt(u),function(){if(--u<1)return p.apply(this,arguments)}}function jI(u,p,g){return p=g?r:p,p=u&&p==null?u.length:p,qi(u,$,r,r,r,r,p)}function II(u,p){var g;if(typeof p!="function")throw new no(i);return u=Rt(u),function(){return--u>0&&(g=p.apply(this,arguments)),u<=1&&(p=r),g}}var Rx=It(function(u,p,g){var j=O;if(g.length){var A=Ds(g,Kc(Rx));j|=P}return qi(u,j,p,g,A)}),TI=It(function(u,p,g){var j=O|_;if(g.length){var A=Ds(g,Kc(TI));j|=P}return qi(p,j,u,g,A)});function AI(u,p,g){p=g?r:p;var j=qi(u,x,r,r,r,r,r,p);return j.placeholder=AI.placeholder,j}function MI(u,p,g){p=g?r:p;var j=qi(u,S,r,r,r,r,r,p);return j.placeholder=MI.placeholder,j}function FI(u,p,g){var j,A,N,G,Y,se,Ce=0,Oe=!1,Ie=!1,Ue=!0;if(typeof u!="function")throw new no(i);p=lo(p)||0,Rr(g)&&(Oe=!!g.leading,Ie="maxWait"in g,N=Ie?sn(lo(g.maxWait)||0,p):N,Ue="trailing"in g?!!g.trailing:Ue);function ct(Vr){var Uo=j,Yi=A;return j=A=r,Ce=Vr,G=u.apply(Yi,Uo),G}function yt(Vr){return Ce=Vr,Y=$p(At,p),Oe?ct(Vr):G}function kt(Vr){var Uo=Vr-se,Yi=Vr-Ce,tT=p-Uo;return Ie?An(tT,N-Yi):tT}function bt(Vr){var Uo=Vr-se,Yi=Vr-Ce;return se===r||Uo>=p||Uo<0||Ie&&Yi>=N}function At(){var Vr=Zm();if(bt(Vr))return Bt(Vr);Y=$p(At,kt(Vr))}function Bt(Vr){return Y=r,Ue&&j?ct(Vr):(j=A=r,G)}function Aa(){Y!==r&&qj(Y),Ce=0,j=se=A=Y=r}function Kn(){return Y===r?G:Bt(Zm())}function Ma(){var Vr=Zm(),Uo=bt(Vr);if(j=arguments,A=this,se=Vr,Uo){if(Y===r)return yt(se);if(Ie)return qj(Y),Y=$p(At,p),ct(se)}return Y===r&&(Y=$p(At,p)),G}return Ma.cancel=Aa,Ma.flush=Kn,Ma}var RG=It(function(u,p){return Cj(u,1,p)}),$G=It(function(u,p,g){return Cj(u,lo(p)||0,g)});function kG(u){return qi(u,k)}function eg(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new no(i);var g=function(){var j=arguments,A=p?p.apply(this,j):j[0],N=g.cache;if(N.has(A))return N.get(A);var G=u.apply(this,j);return g.cache=N.set(A,G)||N,G};return g.cache=new(eg.Cache||Wi),g}eg.Cache=Wi;function tg(u){if(typeof u!="function")throw new no(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 jG(u){return II(2,u)}var IG=yH(function(u,p){p=p.length==1&&St(p[0])?Sr(p[0],ja(gt())):Sr(wn(p,1),ja(gt()));var g=p.length;return It(function(j){for(var A=-1,N=An(j.length,g);++A=p}),gu=kj(function(){return arguments}())?kj:function(u){return Mr(u)&&rr.call(u,"callee")&&!mj.call(u,"callee")},St=he.isArray,GG=Yk?ja(Yk):tH;function pa(u){return u!=null&&rg(u.length)&&!Qi(u)}function Ur(u){return Mr(u)&&pa(u)}function KG(u){return u===!0||u===!1||Mr(u)&&qn(u)==xe}var Ws=l7||Bx,QG=Jk?ja(Jk):rH;function XG(u){return Mr(u)&&u.nodeType===1&&!kp(u)}function YG(u){if(u==null)return!0;if(pa(u)&&(St(u)||typeof u=="string"||typeof u.splice=="function"||Ws(u)||Qc(u)||gu(u)))return!u.length;var p=Mn(u);if(p==je||p==ie)return!u.size;if(Rp(u))return!ax(u).length;for(var g in u)if(rr.call(u,g))return!1;return!0}function JG(u,p){return Cp(u,p)}function ZG(u,p,g){g=typeof g=="function"?g:r;var j=g?g(u,p):r;return j===r?Cp(u,p,r,g):!!j}function kx(u){if(!Mr(u))return!1;var p=qn(u);return p==ve||p==Te||typeof u.message=="string"&&typeof u.name=="string"&&!kp(u)}function eK(u){return typeof u=="number"&&yj(u)}function Qi(u){if(!Rr(u))return!1;var p=qn(u);return p==$e||p==ye||p==me||p==K}function DI(u){return typeof u=="number"&&u==Rt(u)}function rg(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=z}function Rr(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function Mr(u){return u!=null&&typeof u=="object"}var NI=Zk?ja(Zk):aH;function tK(u,p){return u===p||nx(u,p,_x(p))}function rK(u,p,g){return g=typeof g=="function"?g:r,nx(u,p,_x(p),g)}function nK(u){return BI(u)&&u!=+u}function aK(u){if(zH(u))throw new xt(o);return jj(u)}function oK(u){return u===null}function iK(u){return u==null}function BI(u){return typeof u=="number"||Mr(u)&&qn(u)==Le}function kp(u){if(!Mr(u)||qn(u)!=Xe)return!1;var p=$m(u);if(p===null)return!0;var g=rr.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&Cm.call(g)==r7}var jx=ej?ja(ej):oH;function sK(u){return DI(u)&&u>=-z&&u<=z}var zI=tj?ja(tj):iH;function ng(u){return typeof u=="string"||!St(u)&&Mr(u)&&qn(u)==ue}function Ta(u){return typeof u=="symbol"||Mr(u)&&qn(u)==ce}var Qc=rj?ja(rj):sH;function lK(u){return u===r}function uK(u){return Mr(u)&&Mn(u)==Ae}function cK(u){return Mr(u)&&qn(u)==ft}var dK=Gm(ox),fK=Gm(function(u,p){return u<=p});function UI(u){if(!u)return[];if(pa(u))return ng(u)?No(u):fa(u);if(gp&&u[gp])return WW(u[gp]());var p=Mn(u),g=p==je?q1:p==ie?wm:Xc;return g(u)}function Xi(u){if(!u)return u===0?u:0;if(u=lo(u),u===W||u===-W){var p=u<0?-1:1;return p*q}return u===u?u:0}function Rt(u){var p=Xi(u),g=p%1;return p===p?g?p-g:p:0}function VI(u){return u?pu(Rt(u),0,oe):0}function lo(u){if(typeof u=="number")return u;if(Ta(u))return ee;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=lj(u);var g=Zt.test(u);return g||lt.test(u)?PW(u.slice(2),g?2:8):zr.test(u)?ee:+u}function WI(u){return ci(u,ha(u))}function pK(u){return u?pu(Rt(u),-z,z):u===0?u:0}function er(u){return u==null?"":Ia(u)}var hK=qc(function(u,p){if(Rp(p)||pa(p)){ci(p,vn(p),u);return}for(var g in p)rr.call(p,g)&&wp(u,g,p[g])}),HI=qc(function(u,p){ci(p,ha(p),u)}),ag=qc(function(u,p,g,j){ci(p,ha(p),u,j)}),vK=qc(function(u,p,g,j){ci(p,vn(p),u,j)}),mK=Gi(J1);function gK(u,p){var g=Hc(u);return p==null?g:Sj(g,p)}var yK=It(function(u,p){u=fr(u);var g=-1,j=p.length,A=j>2?p[2]:r;for(A&&Gn(p[0],p[1],A)&&(j=1);++g1),N}),ci(u,yx(u),g),j&&(g=oo(g,h|v|m,$H));for(var A=p.length;A--;)cx(g,p[A]);return g});function FK(u,p){return GI(u,tg(gt(p)))}var LK=Gi(function(u,p){return u==null?{}:cH(u,p)});function GI(u,p){if(u==null)return{};var g=Sr(yx(u),function(j){return[j]});return p=gt(p),Dj(u,g,function(j,A){return p(j,A[0])})}function DK(u,p,g){p=Us(p,u);var j=-1,A=p.length;for(A||(A=1,u=r);++jp){var j=u;u=p,p=j}if(g||u%1||p%1){var A=bj();return An(u+A*(p-u+OW("1e-"+((A+"").length-1))),p)}return sx(u,p)}var QK=Gc(function(u,p,g){return p=p.toLowerCase(),u+(g?XI(p):p)});function XI(u){return Ax(er(u).toLowerCase())}function YI(u){return u=er(u),u&&u.replace(ou,NW).replace(mW,"")}function XK(u,p,g){u=er(u),p=Ia(p);var j=u.length;g=g===r?j:pu(Rt(g),0,j);var A=g;return g-=p.length,g>=0&&u.slice(g,A)==p}function YK(u){return u=er(u),u&&li.test(u)?u.replace($a,BW):u}function JK(u){return u=er(u),u&&fe.test(u)?u.replace(ae,"\\$&"):u}var ZK=Gc(function(u,p,g){return u+(g?"-":"")+p.toLowerCase()}),eQ=Gc(function(u,p,g){return u+(g?" ":"")+p.toLowerCase()}),tQ=eI("toLowerCase");function rQ(u,p,g){u=er(u),p=Rt(p);var j=p?Bc(u):0;if(!p||j>=p)return u;var A=(p-j)/2;return qm(Tm(A),g)+u+qm(Im(A),g)}function nQ(u,p,g){u=er(u),p=Rt(p);var j=p?Bc(u):0;return p&&j>>0,g?(u=er(u),u&&(typeof p=="string"||p!=null&&!jx(p))&&(p=Ia(p),!p&&Nc(u))?Vs(No(u),0,g):u.split(p,g)):[]}var cQ=Gc(function(u,p,g){return u+(g?" ":"")+Ax(p)});function dQ(u,p,g){return u=er(u),g=g==null?0:pu(Rt(g),0,u.length),p=Ia(p),u.slice(g,g+p.length)==p}function fQ(u,p,g){var j=D.templateSettings;g&&Gn(u,p,g)&&(p=r),u=er(u),p=ag({},p,j,sI);var A=ag({},p.imports,j.imports,sI),N=vn(A),G=H1(A,N),Y,se,Ce=0,Oe=p.interpolate||da,Ie="__p += '",Ue=G1((p.escape||da).source+"|"+Oe.source+"|"+(Oe===zi?Pt:da).source+"|"+(p.evaluate||da).source+"|$","g"),ct="//# sourceURL="+(rr.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xW+"]")+` -`;u.replace(Ue,function(bt,At,Bt,Aa,Kn,Ma){return Bt||(Bt=Aa),Ie+=u.slice(Ce,Ma).replace(eo,zW),At&&(Y=!0,Ie+=`' + +`)}function LH(u){return St(u)||gu(u)||!!(gj&&u&&u[gj])}function Ki(u,p){var g=typeof u;return p=p??z,!!p&&(g=="number"||g!="symbol"&&Ir.test(u))&&u>-1&&u%1==0&&u0){if(++p>=F)return arguments[0]}else p=0;return u.apply(r,arguments)}}function Xm(u,p){var g=-1,j=u.length,A=j-1;for(p=p===r?j:p;++g1?u[p-1]:r;return g=typeof g=="function"?(u.pop(),g):r,PT(u,g)});function RT(u){var p=D(u);return p.__chain__=!0,p}function Kq(u,p){return p(u),u}function Ym(u,p){return p(u)}var Qq=Gi(function(u){var p=u.length,g=p?u[0]:0,j=this.__wrapped__,A=function(N){return J1(N,u)};return p>1||this.__actions__.length||!(j instanceof Ft)||!Ki(g)?this.thru(A):(j=j.slice(g,+g+(p?1:0)),j.__actions__.push({func:Ym,args:[A],thisArg:r}),new ao(j,this.__chain__).thru(function(N){return p&&!N.length&&N.push(r),N}))});function Xq(){return RT(this)}function Yq(){return new ao(this.value(),this.__chain__)}function Jq(){this.__values__===r&&(this.__values__=UT(this.value()));var u=this.__index__>=this.__values__.length,p=u?r:this.__values__[this.__index__++];return{done:u,value:p}}function Zq(){return this}function eG(u){for(var p,g=this;g instanceof Fm;){var j=xT(g);j.__index__=0,j.__values__=r,p?A.__wrapped__=j:p=j;var A=j;g=g.__wrapped__}return A.__wrapped__=u,p}function tG(){var u=this.__wrapped__;if(u instanceof Ft){var p=u;return this.__actions__.length&&(p=new Ft(this)),p=p.reverse(),p.__actions__.push({func:Ym,args:[Ox],thisArg:r}),new ao(p,this.__chain__)}return this.thru(Ox)}function rG(){return Wj(this.__wrapped__,this.__actions__)}var nG=Vm(function(u,p,g){rr.call(u,g)?++u[g]:Hi(u,g,1)});function aG(u,p,g){var j=St(u)?nj:K7;return g&&Gn(u,p,g)&&(p=r),j(u,gt(p,3))}function oG(u,p){var g=St(u)?Fs:Pj;return g(u,gt(p,3))}var iG=tT(wT),sG=tT(ST);function lG(u,p){return wn(Jm(u,p),1)}function uG(u,p){return wn(Jm(u,p),W)}function cG(u,p,g){return g=g===r?1:Rt(g),wn(Jm(u,p),g)}function $T(u,p){var g=St(u)?ro:Bs;return g(u,gt(p,3))}function kT(u,p){var g=St(u)?$W:Oj;return g(u,gt(p,3))}var dG=Vm(function(u,p,g){rr.call(u,g)?u[g].push(p):Hi(u,g,[p])});function fG(u,p,g,j){u=pa(u)?u:Xc(u),g=g&&!j?Rt(g):0;var A=u.length;return g<0&&(g=sn(A+g,0)),ng(u)?g<=A&&u.indexOf(p,g)>-1:!!A&&Dc(u,p,g)>-1}var pG=Tt(function(u,p,g){var j=-1,A=typeof p=="function",N=pa(u)?he(u.length):[];return Bs(u,function(G){N[++j]=A?ka(p,G,g):Ep(G,p,g)}),N}),hG=Vm(function(u,p,g){Hi(u,g,p)});function Jm(u,p){var g=St(u)?Sr:Ij;return g(u,gt(p,3))}function vG(u,p,g,j){return u==null?[]:(St(p)||(p=p==null?[]:[p]),g=j?r:g,St(g)||(g=g==null?[]:[g]),Lj(u,p,g))}var mG=Vm(function(u,p,g){u[g?0:1].push(p)},function(){return[[],[]]});function gG(u,p,g){var j=St(u)?N1:sj,A=arguments.length<3;return j(u,gt(p,4),g,A,Bs)}function yG(u,p,g){var j=St(u)?kW:sj,A=arguments.length<3;return j(u,gt(p,4),g,A,Oj)}function bG(u,p){var g=St(u)?Fs:Pj;return g(u,tg(gt(p,3)))}function _G(u){var p=St(u)?wj:fH;return p(u)}function xG(u,p,g){(g?Gn(u,p,g):p===r)?p=1:p=Rt(p);var j=St(u)?V7:pH;return j(u,p)}function wG(u){var p=St(u)?W7:vH;return p(u)}function SG(u){if(u==null)return 0;if(pa(u))return ng(u)?Bc(u):u.length;var p=Mn(u);return p==je||p==ie?u.size:ax(u).length}function EG(u,p,g){var j=St(u)?B1:mH;return g&&Gn(u,p,g)&&(p=r),j(u,gt(p,3))}var CG=Tt(function(u,p){if(u==null)return[];var g=p.length;return g>1&&Gn(u,p[0],p[1])?p=[]:g>2&&Gn(p[0],p[1],p[2])&&(p=[p[0]]),Lj(u,wn(p,1),[])}),Zm=o7||function(){return xn.Date.now()};function OG(u,p){if(typeof p!="function")throw new no(i);return u=Rt(u),function(){if(--u<1)return p.apply(this,arguments)}}function jT(u,p,g){return p=g?r:p,p=u&&p==null?u.length:p,qi(u,$,r,r,r,r,p)}function TT(u,p){var g;if(typeof p!="function")throw new no(i);return u=Rt(u),function(){return--u>0&&(g=p.apply(this,arguments)),u<=1&&(p=r),g}}var Rx=Tt(function(u,p,g){var j=O;if(g.length){var A=Ds(g,Kc(Rx));j|=P}return qi(u,j,p,g,A)}),IT=Tt(function(u,p,g){var j=O|_;if(g.length){var A=Ds(g,Kc(IT));j|=P}return qi(p,j,u,g,A)});function AT(u,p,g){p=g?r:p;var j=qi(u,x,r,r,r,r,r,p);return j.placeholder=AT.placeholder,j}function MT(u,p,g){p=g?r:p;var j=qi(u,S,r,r,r,r,r,p);return j.placeholder=MT.placeholder,j}function FT(u,p,g){var j,A,N,G,Y,se,Ce=0,Oe=!1,Te=!1,Ue=!0;if(typeof u!="function")throw new no(i);p=lo(p)||0,Rr(g)&&(Oe=!!g.leading,Te="maxWait"in g,N=Te?sn(lo(g.maxWait)||0,p):N,Ue="trailing"in g?!!g.trailing:Ue);function ct(Vr){var Uo=j,Yi=A;return j=A=r,Ce=Vr,G=u.apply(Yi,Uo),G}function yt(Vr){return Ce=Vr,Y=$p(At,p),Oe?ct(Vr):G}function kt(Vr){var Uo=Vr-se,Yi=Vr-Ce,tI=p-Uo;return Te?An(tI,N-Yi):tI}function bt(Vr){var Uo=Vr-se,Yi=Vr-Ce;return se===r||Uo>=p||Uo<0||Te&&Yi>=N}function At(){var Vr=Zm();if(bt(Vr))return Bt(Vr);Y=$p(At,kt(Vr))}function Bt(Vr){return Y=r,Ue&&j?ct(Vr):(j=A=r,G)}function Aa(){Y!==r&&qj(Y),Ce=0,j=se=A=Y=r}function Kn(){return Y===r?G:Bt(Zm())}function Ma(){var Vr=Zm(),Uo=bt(Vr);if(j=arguments,A=this,se=Vr,Uo){if(Y===r)return yt(se);if(Te)return qj(Y),Y=$p(At,p),ct(se)}return Y===r&&(Y=$p(At,p)),G}return Ma.cancel=Aa,Ma.flush=Kn,Ma}var PG=Tt(function(u,p){return Cj(u,1,p)}),RG=Tt(function(u,p,g){return Cj(u,lo(p)||0,g)});function $G(u){return qi(u,k)}function eg(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new no(i);var g=function(){var j=arguments,A=p?p.apply(this,j):j[0],N=g.cache;if(N.has(A))return N.get(A);var G=u.apply(this,j);return g.cache=N.set(A,G)||N,G};return g.cache=new(eg.Cache||Wi),g}eg.Cache=Wi;function tg(u){if(typeof u!="function")throw new no(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 kG(u){return TT(2,u)}var jG=gH(function(u,p){p=p.length==1&&St(p[0])?Sr(p[0],ja(gt())):Sr(wn(p,1),ja(gt()));var g=p.length;return Tt(function(j){for(var A=-1,N=An(j.length,g);++A=p}),gu=kj(function(){return arguments}())?kj:function(u){return Mr(u)&&rr.call(u,"callee")&&!mj.call(u,"callee")},St=he.isArray,qG=Yk?ja(Yk):eH;function pa(u){return u!=null&&rg(u.length)&&!Qi(u)}function Ur(u){return Mr(u)&&pa(u)}function GG(u){return u===!0||u===!1||Mr(u)&&qn(u)==xe}var Ws=s7||Bx,KG=Jk?ja(Jk):tH;function QG(u){return Mr(u)&&u.nodeType===1&&!kp(u)}function XG(u){if(u==null)return!0;if(pa(u)&&(St(u)||typeof u=="string"||typeof u.splice=="function"||Ws(u)||Qc(u)||gu(u)))return!u.length;var p=Mn(u);if(p==je||p==ie)return!u.size;if(Rp(u))return!ax(u).length;for(var g in u)if(rr.call(u,g))return!1;return!0}function YG(u,p){return Cp(u,p)}function JG(u,p,g){g=typeof g=="function"?g:r;var j=g?g(u,p):r;return j===r?Cp(u,p,r,g):!!j}function kx(u){if(!Mr(u))return!1;var p=qn(u);return p==ve||p==Ie||typeof u.message=="string"&&typeof u.name=="string"&&!kp(u)}function ZG(u){return typeof u=="number"&&yj(u)}function Qi(u){if(!Rr(u))return!1;var p=qn(u);return p==$e||p==ye||p==me||p==K}function DT(u){return typeof u=="number"&&u==Rt(u)}function rg(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=z}function Rr(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function Mr(u){return u!=null&&typeof u=="object"}var NT=Zk?ja(Zk):nH;function eK(u,p){return u===p||nx(u,p,_x(p))}function tK(u,p,g){return g=typeof g=="function"?g:r,nx(u,p,_x(p),g)}function rK(u){return BT(u)&&u!=+u}function nK(u){if(BH(u))throw new xt(o);return jj(u)}function aK(u){return u===null}function oK(u){return u==null}function BT(u){return typeof u=="number"||Mr(u)&&qn(u)==Le}function kp(u){if(!Mr(u)||qn(u)!=Xe)return!1;var p=$m(u);if(p===null)return!0;var g=rr.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&Cm.call(g)==t7}var jx=ej?ja(ej):aH;function iK(u){return DT(u)&&u>=-z&&u<=z}var zT=tj?ja(tj):oH;function ng(u){return typeof u=="string"||!St(u)&&Mr(u)&&qn(u)==ue}function Ia(u){return typeof u=="symbol"||Mr(u)&&qn(u)==ce}var Qc=rj?ja(rj):iH;function sK(u){return u===r}function lK(u){return Mr(u)&&Mn(u)==Ae}function uK(u){return Mr(u)&&qn(u)==ft}var cK=Gm(ox),dK=Gm(function(u,p){return u<=p});function UT(u){if(!u)return[];if(pa(u))return ng(u)?No(u):fa(u);if(gp&&u[gp])return VW(u[gp]());var p=Mn(u),g=p==je?q1:p==ie?wm:Xc;return g(u)}function Xi(u){if(!u)return u===0?u:0;if(u=lo(u),u===W||u===-W){var p=u<0?-1:1;return p*q}return u===u?u:0}function Rt(u){var p=Xi(u),g=p%1;return p===p?g?p-g:p:0}function VT(u){return u?pu(Rt(u),0,oe):0}function lo(u){if(typeof u=="number")return u;if(Ia(u))return ee;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=lj(u);var g=Zt.test(u);return g||lt.test(u)?OW(u.slice(2),g?2:8):zr.test(u)?ee:+u}function WT(u){return ci(u,ha(u))}function fK(u){return u?pu(Rt(u),-z,z):u===0?u:0}function er(u){return u==null?"":Ta(u)}var pK=qc(function(u,p){if(Rp(p)||pa(p)){ci(p,vn(p),u);return}for(var g in p)rr.call(p,g)&&wp(u,g,p[g])}),HT=qc(function(u,p){ci(p,ha(p),u)}),ag=qc(function(u,p,g,j){ci(p,ha(p),u,j)}),hK=qc(function(u,p,g,j){ci(p,vn(p),u,j)}),vK=Gi(J1);function mK(u,p){var g=Hc(u);return p==null?g:Sj(g,p)}var gK=Tt(function(u,p){u=fr(u);var g=-1,j=p.length,A=j>2?p[2]:r;for(A&&Gn(p[0],p[1],A)&&(j=1);++g1),N}),ci(u,yx(u),g),j&&(g=oo(g,h|v|m,RH));for(var A=p.length;A--;)cx(g,p[A]);return g});function MK(u,p){return GT(u,tg(gt(p)))}var FK=Gi(function(u,p){return u==null?{}:uH(u,p)});function GT(u,p){if(u==null)return{};var g=Sr(yx(u),function(j){return[j]});return p=gt(p),Dj(u,g,function(j,A){return p(j,A[0])})}function LK(u,p,g){p=Us(p,u);var j=-1,A=p.length;for(A||(A=1,u=r);++jp){var j=u;u=p,p=j}if(g||u%1||p%1){var A=bj();return An(u+A*(p-u+CW("1e-"+((A+"").length-1))),p)}return sx(u,p)}var KK=Gc(function(u,p,g){return p=p.toLowerCase(),u+(g?XT(p):p)});function XT(u){return Ax(er(u).toLowerCase())}function YT(u){return u=er(u),u&&u.replace(ou,DW).replace(vW,"")}function QK(u,p,g){u=er(u),p=Ta(p);var j=u.length;g=g===r?j:pu(Rt(g),0,j);var A=g;return g-=p.length,g>=0&&u.slice(g,A)==p}function XK(u){return u=er(u),u&&li.test(u)?u.replace($a,NW):u}function YK(u){return u=er(u),u&&fe.test(u)?u.replace(ae,"\\$&"):u}var JK=Gc(function(u,p,g){return u+(g?"-":"")+p.toLowerCase()}),ZK=Gc(function(u,p,g){return u+(g?" ":"")+p.toLowerCase()}),eQ=eT("toLowerCase");function tQ(u,p,g){u=er(u),p=Rt(p);var j=p?Bc(u):0;if(!p||j>=p)return u;var A=(p-j)/2;return qm(Im(A),g)+u+qm(Tm(A),g)}function rQ(u,p,g){u=er(u),p=Rt(p);var j=p?Bc(u):0;return p&&j>>0,g?(u=er(u),u&&(typeof p=="string"||p!=null&&!jx(p))&&(p=Ta(p),!p&&Nc(u))?Vs(No(u),0,g):u.split(p,g)):[]}var uQ=Gc(function(u,p,g){return u+(g?" ":"")+Ax(p)});function cQ(u,p,g){return u=er(u),g=g==null?0:pu(Rt(g),0,u.length),p=Ta(p),u.slice(g,g+p.length)==p}function dQ(u,p,g){var j=D.templateSettings;g&&Gn(u,p,g)&&(p=r),u=er(u),p=ag({},p,j,sT);var A=ag({},p.imports,j.imports,sT),N=vn(A),G=H1(A,N),Y,se,Ce=0,Oe=p.interpolate||da,Te="__p += '",Ue=G1((p.escape||da).source+"|"+Oe.source+"|"+(Oe===zi?Pt:da).source+"|"+(p.evaluate||da).source+"|$","g"),ct="//# sourceURL="+(rr.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_W+"]")+` +`;u.replace(Ue,function(bt,At,Bt,Aa,Kn,Ma){return Bt||(Bt=Aa),Te+=u.slice(Ce,Ma).replace(eo,BW),At&&(Y=!0,Te+=`' + __e(`+At+`) + -'`),Kn&&(se=!0,Ie+=`'; +'`),Kn&&(se=!0,Te+=`'; `+Kn+`; -__p += '`),Bt&&(Ie+=`' + +__p += '`),Bt&&(Te+=`' + ((__t = (`+Bt+`)) == null ? '' : __t) + -'`),Ce=Ma+bt.length,bt}),Ie+=`'; -`;var yt=rr.call(p,"variable")&&p.variable;if(!yt)Ie=`with (obj) { -`+Ie+` +'`),Ce=Ma+bt.length,bt}),Te+=`'; +`;var yt=rr.call(p,"variable")&&p.variable;if(!yt)Te=`with (obj) { +`+Te+` } -`;else if(Qe.test(yt))throw new xt(l);Ie=(se?Ie.replace(Ot,""):Ie).replace(dr,"$1").replace(Pr,"$1;"),Ie="function("+(yt||"obj")+`) { +`;else if(Qe.test(yt))throw new xt(l);Te=(se?Te.replace(Ot,""):Te).replace(dr,"$1").replace(Pr,"$1;"),Te="function("+(yt||"obj")+`) { `+(yt?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(se?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Ie+`return __p -}`;var kt=ZI(function(){return Qt(N,ct+"return "+Ie).apply(r,G)});if(kt.source=Ie,kx(kt))throw kt;return kt}function pQ(u){return er(u).toLowerCase()}function hQ(u){return er(u).toUpperCase()}function vQ(u,p,g){if(u=er(u),u&&(g||p===r))return lj(u);if(!u||!(p=Ia(p)))return u;var j=No(u),A=No(p),N=uj(j,A),G=cj(j,A)+1;return Vs(j,N,G).join("")}function mQ(u,p,g){if(u=er(u),u&&(g||p===r))return u.slice(0,fj(u)+1);if(!u||!(p=Ia(p)))return u;var j=No(u),A=cj(j,No(p))+1;return Vs(j,0,A).join("")}function gQ(u,p,g){if(u=er(u),u&&(g||p===r))return u.replace(Se,"");if(!u||!(p=Ia(p)))return u;var j=No(u),A=uj(j,No(p));return Vs(j,A).join("")}function yQ(u,p){var g=I,j=M;if(Rr(p)){var A="separator"in p?p.separator:A;g="length"in p?Rt(p.length):g,j="omission"in p?Ia(p.omission):j}u=er(u);var N=u.length;if(Nc(u)){var G=No(u);N=G.length}if(g>=N)return u;var Y=g-Bc(j);if(Y<1)return j;var se=G?Vs(G,0,Y).join(""):u.slice(0,Y);if(A===r)return se+j;if(G&&(Y+=se.length-Y),jx(A)){if(u.slice(Y).search(A)){var Ce,Oe=se;for(A.global||(A=G1(A.source,er(Tt.exec(A))+"g")),A.lastIndex=0;Ce=A.exec(Oe);)var Ie=Ce.index;se=se.slice(0,Ie===r?Y:Ie)}}else if(u.indexOf(Ia(A),Y)!=Y){var Ue=se.lastIndexOf(A);Ue>-1&&(se=se.slice(0,Ue))}return se+j}function bQ(u){return u=er(u),u&&Tn.test(u)?u.replace(an,KW):u}var _Q=Gc(function(u,p,g){return u+(g?" ":"")+p.toUpperCase()}),Ax=eI("toUpperCase");function JI(u,p,g){return u=er(u),p=g?r:p,p===r?VW(u)?YW(u):AW(u):u.match(p)||[]}var ZI=It(function(u,p){try{return ka(u,r,p)}catch(g){return kx(g)?g:new xt(g)}}),xQ=Gi(function(u,p){return ro(p,function(g){g=di(g),Hi(u,g,Rx(u[g],u))}),u});function wQ(u){var p=u==null?0:u.length,g=gt();return u=p?Sr(u,function(j){if(typeof j[1]!="function")throw new no(i);return[g(j[0]),j[1]]}):[],It(function(j){for(var A=-1;++Az)return[];var g=oe,j=An(u,oe);p=gt(p),u-=oe;for(var A=W1(j,p);++g0||p<0)?new Ft(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),p!==r&&(p=Rt(p),g=p<0?g.dropRight(-p):g.take(p-u)),g)},Ft.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ft.prototype.toArray=function(){return this.take(oe)},ui(Ft.prototype,function(u,p){var g=/^(?:filter|find|map|reject)|While$/.test(p),j=/^(?:head|last)$/.test(p),A=D[j?"take"+(p=="last"?"Right":""):p],N=j||/^find/.test(p);A&&(D.prototype[p]=function(){var G=this.__wrapped__,Y=j?[1]:arguments,se=G instanceof Ft,Ce=Y[0],Oe=se||St(G),Ie=function(At){var Bt=A.apply(D,Ls([At],Y));return j&&Ue?Bt[0]:Bt};Oe&&g&&typeof Ce=="function"&&Ce.length!=1&&(se=Oe=!1);var Ue=this.__chain__,ct=!!this.__actions__.length,yt=N&&!Ue,kt=se&&!ct;if(!N&&Oe){G=kt?G:new Ft(this);var bt=u.apply(G,Y);return bt.__actions__.push({func:Ym,args:[Ie],thisArg:r}),new ao(bt,Ue)}return yt&&kt?u.apply(this,Y):(bt=this.thru(Ie),yt?j?bt.value()[0]:bt.value():bt)})}),ro(["pop","push","shift","sort","splice","unshift"],function(u){var p=Sm[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",j=/^(?:pop|shift)$/.test(u);D.prototype[u]=function(){var A=arguments;if(j&&!this.__chain__){var N=this.value();return p.apply(St(N)?N:[],A)}return this[g](function(G){return p.apply(St(G)?G:[],A)})}}),ui(Ft.prototype,function(u,p){var g=D[p];if(g){var j=g.name+"";rr.call(Wc,j)||(Wc[j]=[]),Wc[j].push({name:p,func:g})}}),Wc[Wm(r,_).name]=[{name:"wrapper",func:r}],Ft.prototype.clone=b7,Ft.prototype.reverse=_7,Ft.prototype.value=x7,D.prototype.at=Xq,D.prototype.chain=Yq,D.prototype.commit=Jq,D.prototype.next=Zq,D.prototype.plant=tG,D.prototype.reverse=rG,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=nG,D.prototype.first=D.prototype.head,gp&&(D.prototype[gp]=eG),D},zc=JW();uu?((uu.exports=zc)._=zc,F1._=zc):xn._=zc}).call(Zo)})(u0,u0.exports);var Lv=u0.exports,fA=Object.prototype.toString,B4=function(t){var r=fA.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&fA.call(t.callee)==="[object Function]"),n},hw,pA;function IJ(){if(pA)return hw;pA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=B4,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(v){var m=v.constructor;return m&&m.prototype===v},s={$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 v in window)try{if(!s["$"+v]&&t.call(window,v)&&window[v]!==null&&typeof window[v]=="object")try{c(window[v])}catch{return!0}}catch{return!0}return!1}(),h=function(v){if(typeof window>"u"||!f)return c(v);try{return c(v)}catch{return!1}};e=function(m){var b=m!==null&&typeof m=="object",w=r.call(m)==="[object Function]",O=n(m),_=b&&r.call(m)==="[object String]",y=[];if(!b&&!w&&!O)throw new TypeError("Object.keys called on a non-object");var x=i&&w;if(_&&m.length>0&&!t.call(m,0))for(var S=0;S0)for(var P=0;P"u"||!mn?Lt:mn(Uint8Array),rc={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Lt:ArrayBuffer,"%ArrayIteratorPrototype%":Jc&&mn?mn([][Symbol.iterator]()):Lt,"%AsyncFromSyncIteratorPrototype%":Lt,"%AsyncFunction%":cd,"%AsyncGenerator%":cd,"%AsyncGeneratorFunction%":cd,"%AsyncIteratorPrototype%":cd,"%Atomics%":typeof Atomics>"u"?Lt:Atomics,"%BigInt%":typeof BigInt>"u"?Lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nZ,"%eval%":eval,"%EvalError%":aZ,"%Float32Array%":typeof Float32Array>"u"?Lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Lt:FinalizationRegistry,"%Function%":V4,"%GeneratorFunction%":cd,"%Int8Array%":typeof Int8Array>"u"?Lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Jc&&mn?mn(mn([][Symbol.iterator]())):Lt,"%JSON%":typeof JSON=="object"?JSON:Lt,"%Map%":typeof Map>"u"?Lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Jc||!mn?Lt:mn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Lt:Promise,"%Proxy%":typeof Proxy>"u"?Lt:Proxy,"%RangeError%":oZ,"%ReferenceError%":iZ,"%Reflect%":typeof Reflect>"u"?Lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Jc||!mn?Lt:mn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Jc&&mn?mn(""[Symbol.iterator]()):Lt,"%Symbol%":Jc?Symbol:Lt,"%SyntaxError%":Ef,"%ThrowTypeError%":lZ,"%TypedArray%":cZ,"%TypeError%":Bd,"%Uint8Array%":typeof Uint8Array>"u"?Lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Lt:Uint32Array,"%URIError%":sZ,"%WeakMap%":typeof WeakMap>"u"?Lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Lt:WeakSet};if(mn)try{null.error}catch(e){var dZ=mn(mn(e));rc["%Error.prototype%"]=dZ}var fZ=function e(t){var r;if(t==="%AsyncFunction%")r=mw("async function () {}");else if(t==="%GeneratorFunction%")r=mw("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=mw("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&mn&&(r=mn(a.prototype))}return rc[t]=r,r},yA={__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"]},Nv=WP,c0=U4,pZ=Nv.call(Function.call,Array.prototype.concat),hZ=Nv.call(Function.apply,Array.prototype.splice),bA=Nv.call(Function.call,String.prototype.replace),d0=Nv.call(Function.call,String.prototype.slice),vZ=Nv.call(Function.call,RegExp.prototype.exec),mZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gZ=/\\(\\)?/g,yZ=function(t){var r=d0(t,0,1),n=d0(t,-1);if(r==="%"&&n!=="%")throw new Ef("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ef("invalid intrinsic syntax, expected opening `%`");var a=[];return bA(t,mZ,function(o,i,l,c){a[a.length]=l?bA(c,gZ,"$1"):i||o}),a},bZ=function(t,r){var n=t,a;if(c0(yA,n)&&(a=yA[n],n="%"+a[0]+"%"),c0(rc,n)){var o=rc[n];if(o===cd&&(o=fZ(n)),typeof o>"u"&&!r)throw new Bd("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Ef("intrinsic "+t+" does not exist!")},Bv=function(t,r){if(typeof t!="string"||t.length===0)throw new Bd("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Bd('"allowMissing" argument must be a boolean');if(vZ(/^%?[^%]*%?$/,t)===null)throw new Ef("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=yZ(t),a=n.length>0?n[0]:"",o=bZ("%"+a+"%",r),i=o.name,l=o.value,c=!1,s=o.alias;s&&(a=s[0],hZ(n,pZ([0,1],s)));for(var f=1,h=!0;f=n.length){var w=tc(l,v);h=!!w,h&&"get"in w&&!("originalValue"in w.get)?l=w.get:l=l[v]}else h=c0(l,v),l=l[v];h&&!c&&(rc[i]=l)}}return l},_Z=Bv,ly=_Z("%Object.defineProperty%",!0)||!1;if(ly)try{ly({},"a",{value:1})}catch{ly=!1}var HP=ly,xZ=Bv,uy=xZ("%Object.getOwnPropertyDescriptor%",!0);if(uy)try{uy([],"length")}catch{uy=null}var W4=uy,_A=HP,wZ=z4,Zc=Dv,xA=W4,H4=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Zc("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Zc("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Zc("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Zc("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Zc("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Zc("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!xA&&xA(t,r);if(_A)_A(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:a===null&&c?c.enumerable:!a,value:n,writable:o===null&&c?c.writable:!o});else if(l||!a&&!o&&!i)t[r]=n;else throw new wZ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},hE=HP,q4=function(){return!!hE};q4.hasArrayLengthDefineBug=function(){if(!hE)return null;try{return hE([],"length",{value:1}).length!==1}catch{return!0}};var G4=q4,SZ=MJ,EZ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",CZ=Object.prototype.toString,OZ=Array.prototype.concat,wA=H4,PZ=function(e){return typeof e=="function"&&CZ.call(e)==="[object Function]"},K4=G4(),RZ=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!PZ(n)||!n())return}K4?wA(e,t,r,!0):wA(e,t,r)},Q4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=SZ(t);EZ&&(n=OZ.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||jZ(r)!==r)throw new CA("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&EA){var i=EA(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(kZ?SA(t,"length",r,!0,!0):SA(t,"length",r)),t};(function(e){var t=WP,r=Bv,n=IZ,a=Dv,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(i,o),c=HP,s=r("%Math.max%");e.exports=function(v){if(typeof v!="function")throw new a("a function is required");var m=l(t,i,arguments);return n(m,1+s(0,v.length-(arguments.length-1)),!0)};var f=function(){return l(t,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f})(Y4);var J4=Y4.exports,TZ=Dv,AZ=function(t){if(t==null)throw new TZ(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},Z4=Bv,e5=J4,MZ=e5(Z4("String.prototype.indexOf")),FZ=function(t,r){var n=Z4(t,!!r);return typeof n=="function"&&MZ(t,".prototype.")>-1?e5(n):n},LZ=AZ,t5=FZ,DZ=t5("Object.prototype.propertyIsEnumerable"),NZ=t5("Array.prototype.push"),r5=function(t){var r=LZ(t),n=[];for(var a in r)DZ(r,a)&&NZ(n,[a,r[a]]);return n},BZ=r5,n5=function(){return typeof Object.entries=="function"?Object.entries:BZ},zZ=n5,UZ=X4,VZ=function(){var t=zZ();return UZ(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},WZ=X4,HZ=J4,qZ=r5,a5=n5,GZ=VZ,o5=HZ(a5(),Object);WZ(o5,{getPolyfill:a5,implementation:qZ,shim:GZ});var KZ=o5,qP=KZ,i5=U4,QZ=function(t){},vE=String.prototype.replace,s5=String.prototype.split,cy="||||",Sg=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},l5={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:Sg,chinese:function(){return 0},croatian:Sg,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Sg,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},ukrainian:Sg},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function XZ(e){for(var t={},r=qP(e),n=0;n{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dc=typeof window>"u"||"Deno"in globalThis;function ra(){}function aee(e,t){return typeof e=="function"?e(t):e}function mE(e){return typeof e=="number"&&e>=0&&e!==1/0}function c5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zd(e,t){return typeof e=="function"?e(t):e}function Xo(e,t){return typeof e=="function"?e(t):e}function RA(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:l}=e;if(i){if(n){if(t.queryHash!==QP(i,t.options))return!1}else if(!ov(t.queryKey,i))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||o&&!o(t))}function $A(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Dl(t.options.mutationKey)!==Dl(o))return!1}else if(!ov(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function QP(e,t){return((t==null?void 0:t.queryKeyHashFn)||Dl)(e)}function Dl(e){return JSON.stringify(e,(t,r)=>gE(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function ov(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ov(e[r],t[r])):!1}function d5(e,t){if(e===t)return e;const r=kA(e)&&kA(t);if(r||gE(e)&&gE(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,l=r?[]:{};let c=0;for(let s=0;s{setTimeout(t,e)})}function yE(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?d5(e,t):t}function iee(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function see(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var XP=Symbol();function f5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===XP?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function p5(e,t){return typeof e=="function"?e(...t):!!e}var Hu,ll,nf,mN,lee=(mN=class extends Uf{constructor(){super();ht(this,Hu);ht(this,ll);ht(this,nf);Je(this,nf,t=>{if(!dc&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Q(this,ll)||this.setEventListener(Q(this,nf))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,ll))==null||t.call(this),Je(this,ll,void 0))}setEventListener(t){var r;Je(this,nf,t),(r=Q(this,ll))==null||r.call(this),Je(this,ll,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Q(this,Hu)!==t&&(Je(this,Hu,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Q(this,Hu)=="boolean"?Q(this,Hu):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Hu=new WeakMap,ll=new WeakMap,nf=new WeakMap,mN),YP=new lee,af,ul,of,gN,uee=(gN=class extends Uf{constructor(){super();ht(this,af,!0);ht(this,ul);ht(this,of);Je(this,of,t=>{if(!dc&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Q(this,ul)||this.setEventListener(Q(this,of))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,ul))==null||t.call(this),Je(this,ul,void 0))}setEventListener(t){var r;Je(this,of,t),(r=Q(this,ul))==null||r.call(this),Je(this,ul,t(this.setOnline.bind(this)))}setOnline(t){Q(this,af)!==t&&(Je(this,af,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Q(this,af)}},af=new WeakMap,ul=new WeakMap,of=new WeakMap,gN),p0=new uee;function bE(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function cee(e){return Math.min(1e3*2**e,3e4)}function h5(e){return(e??"online")==="online"?p0.isOnline():!0}var v5=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yw(e){return e instanceof v5}function m5(e){let t=!1,r=0,n=!1,a;const o=bE(),i=w=>{var O;n||(v(new v5(w)),(O=e.abort)==null||O.call(e))},l=()=>{t=!0},c=()=>{t=!1},s=()=>YP.isFocused()&&(e.networkMode==="always"||p0.isOnline())&&e.canRun(),f=()=>h5(e.networkMode)&&e.canRun(),h=w=>{var O;n||(n=!0,(O=e.onSuccess)==null||O.call(e,w),a==null||a(),o.resolve(w))},v=w=>{var O;n||(n=!0,(O=e.onError)==null||O.call(e,w),a==null||a(),o.reject(w))},m=()=>new Promise(w=>{var O;a=_=>{(n||s())&&w(_)},(O=e.onPause)==null||O.call(e)}).then(()=>{var w;a=void 0,n||(w=e.onContinue)==null||w.call(e)}),b=()=>{if(n)return;let w;const O=r===0?e.initialPromise:void 0;try{w=O??e.fn()}catch(_){w=Promise.reject(_)}Promise.resolve(w).then(h).catch(_=>{var C;if(n)return;const y=e.retry??(dc?0:3),x=e.retryDelay??cee,S=typeof x=="function"?x(r,_):x,P=y===!0||typeof y=="number"&&rs()?void 0:m()).then(()=>{t?v(_):b()})})};return{promise:o,cancel:i,continue:()=>(a==null||a(),o),cancelRetry:l,continueRetry:c,canStart:f,start:()=>(f()?b():m().then(b),o)}}var dee=e=>setTimeout(e,0);function fee(){let e=[],t=0,r=l=>{l()},n=l=>{l()},a=dee;const o=l=>{t?e.push(l):a(()=>{r(l)})},i=()=>{const l=e;e=[],l.length&&a(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{a=l}}}var Gr=fee(),qu,yN,g5=(yN=class{constructor(){ht(this,qu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mE(this.gcTime)&&Je(this,qu,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(dc?1/0:5*60*1e3))}clearGcTimeout(){Q(this,qu)&&(clearTimeout(Q(this,qu)),Je(this,qu,void 0))}},qu=new WeakMap,yN),sf,lf,co,Gu,Nn,Pv,Ku,Ho,es,bN,pee=(bN=class extends g5{constructor(t){super();ht(this,Ho);ht(this,sf);ht(this,lf);ht(this,co);ht(this,Gu);ht(this,Nn);ht(this,Pv);ht(this,Ku);Je(this,Ku,!1),Je(this,Pv,t.defaultOptions),this.setOptions(t.options),this.observers=[],Je(this,Gu,t.client),Je(this,co,Q(this,Gu).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Je(this,sf,hee(this.options)),this.state=t.state??Q(this,sf),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Q(this,Nn))==null?void 0:t.promise}setOptions(t){this.options={...Q(this,Pv),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Q(this,co).remove(this)}setData(t,r){const n=yE(this.state.data,t,this.options);return jt(this,Ho,es).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){jt(this,Ho,es).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=Q(this,Nn))==null?void 0:n.promise;return(a=Q(this,Nn))==null||a.cancel(t),r?r.then(ra).catch(ra):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Q(this,sf))}isActive(){return this.observers.some(t=>Xo(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===XP||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!c5(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Q(this,Nn))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Q(this,Nn))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Q(this,co).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Q(this,Nn)&&(Q(this,Ku)?Q(this,Nn).cancel({revert:!0}):Q(this,Nn).cancelRetry()),this.scheduleGc()),Q(this,co).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jt(this,Ho,es).call(this,{type:"invalidate"})}fetch(t,r){var c,s,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Q(this,Nn))return Q(this,Nn).continueRetry(),Q(this,Nn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Je(this,Ku,!0),n.signal)})},o=()=>{const h=f5(this.options,r),v={client:Q(this,Gu),queryKey:this.queryKey,meta:this.meta};return a(v),Je(this,Ku,!1),this.options.persister?this.options.persister(h,v,this):h(v)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Q(this,Gu),state:this.state,fetchFn:o};a(i),(c=this.options.behavior)==null||c.onFetch(i,this),Je(this,lf,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=i.fetchOptions)==null?void 0:s.meta))&&jt(this,Ho,es).call(this,{type:"fetch",meta:(f=i.fetchOptions)==null?void 0:f.meta});const l=h=>{var v,m,b,w;yw(h)&&h.silent||jt(this,Ho,es).call(this,{type:"error",error:h}),yw(h)||((m=(v=Q(this,co).config).onError)==null||m.call(v,h,this),(w=(b=Q(this,co).config).onSettled)==null||w.call(b,this.state.data,h,this)),this.scheduleGc()};return Je(this,Nn,m5({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var v,m,b,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(O){l(O);return}(m=(v=Q(this,co).config).onSuccess)==null||m.call(v,h,this),(w=(b=Q(this,co).config).onSettled)==null||w.call(b,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,v)=>{jt(this,Ho,es).call(this,{type:"failed",failureCount:h,error:v})},onPause:()=>{jt(this,Ho,es).call(this,{type:"pause"})},onContinue:()=>{jt(this,Ho,es).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),Q(this,Nn).start()}},sf=new WeakMap,lf=new WeakMap,co=new WeakMap,Gu=new WeakMap,Nn=new WeakMap,Pv=new WeakMap,Ku=new WeakMap,Ho=new WeakSet,es=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...y5(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return yw(a)&&a.revert&&Q(this,lf)?{...Q(this,lf),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Gr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Q(this,co).notify({query:this,type:"updated",action:t})})},bN);function y5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:h5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hee(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var gi,_N,vee=(_N=class extends Uf{constructor(t={}){super();ht(this,gi);this.config=t,Je(this,gi,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??QP(a,r);let i=this.get(o);return i||(i=new pee({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){Q(this,gi).has(t.queryHash)||(Q(this,gi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Q(this,gi).get(t.queryHash);r&&(t.destroy(),r===t&&Q(this,gi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Gr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Q(this,gi).get(t)}getAll(){return[...Q(this,gi).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>RA(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>RA(t,n)):r}notify(t){Gr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Gr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Gr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},gi=new WeakMap,_N),yi,Jn,Qu,bi,Js,xN,mee=(xN=class extends g5{constructor(t){super();ht(this,bi);ht(this,yi);ht(this,Jn);ht(this,Qu);this.mutationId=t.mutationId,Je(this,Jn,t.mutationCache),Je(this,yi,[]),this.state=t.state||b5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Q(this,yi).includes(t)||(Q(this,yi).push(t),this.clearGcTimeout(),Q(this,Jn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Je(this,yi,Q(this,yi).filter(r=>r!==t)),this.scheduleGc(),Q(this,Jn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Q(this,yi).length||(this.state.status==="pending"?this.scheduleGc():Q(this,Jn).remove(this))}continue(){var t;return((t=Q(this,Qu))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,l,c,s,f,h,v,m,b,w,O,_,y,x,S,P,C,$,R;const r=()=>{jt(this,bi,Js).call(this,{type:"continue"})};Je(this,Qu,m5({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,I)=>{jt(this,bi,Js).call(this,{type:"failed",failureCount:k,error:I})},onPause:()=>{jt(this,bi,Js).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Q(this,Jn).canRun(this)}));const n=this.state.status==="pending",a=!Q(this,Qu).canStart();try{if(n)r();else{jt(this,bi,Js).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(o=Q(this,Jn).config).onMutate)==null?void 0:i.call(o,t,this));const I=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));I!==this.state.context&&jt(this,bi,Js).call(this,{type:"pending",context:I,variables:t,isPaused:a})}const k=await Q(this,Qu).start();return await((f=(s=Q(this,Jn).config).onSuccess)==null?void 0:f.call(s,k,t,this.state.context,this)),await((v=(h=this.options).onSuccess)==null?void 0:v.call(h,k,t,this.state.context)),await((b=(m=Q(this,Jn).config).onSettled)==null?void 0:b.call(m,k,null,this.state.variables,this.state.context,this)),await((O=(w=this.options).onSettled)==null?void 0:O.call(w,k,null,t,this.state.context)),jt(this,bi,Js).call(this,{type:"success",data:k}),k}catch(k){try{throw await((y=(_=Q(this,Jn).config).onError)==null?void 0:y.call(_,k,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,k,t,this.state.context)),await((C=(P=Q(this,Jn).config).onSettled)==null?void 0:C.call(P,void 0,k,this.state.variables,this.state.context,this)),await((R=($=this.options).onSettled)==null?void 0:R.call($,void 0,k,t,this.state.context)),k}finally{jt(this,bi,Js).call(this,{type:"error",error:k})}}finally{Q(this,Jn).runNext(this)}}},yi=new WeakMap,Jn=new WeakMap,Qu=new WeakMap,bi=new WeakSet,Js=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Gr.batch(()=>{Q(this,yi).forEach(n=>{n.onMutationUpdate(t)}),Q(this,Jn).notify({mutation:this,type:"updated",action:t})})},xN);function b5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var os,qo,Rv,wN,gee=(wN=class extends Uf{constructor(t={}){super();ht(this,os);ht(this,qo);ht(this,Rv);this.config=t,Je(this,os,new Set),Je(this,qo,new Map),Je(this,Rv,0)}build(t,r,n){const a=new mee({mutationCache:this,mutationId:++og(this,Rv)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){Q(this,os).add(t);const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r);n?n.push(t):Q(this,qo).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Q(this,os).delete(t)){const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&Q(this,qo).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=Eg(t);if(typeof r=="string"){const a=(n=Q(this,qo).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Gr.batch(()=>{Q(this,os).forEach(t=>{this.notify({type:"removed",mutation:t})}),Q(this,os).clear(),Q(this,qo).clear()})}getAll(){return Array.from(Q(this,os))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>$A(r,n))}findAll(t={}){return this.getAll().filter(r=>$A(t,r))}notify(t){Gr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Gr.batch(()=>Promise.all(t.map(r=>r.continue().catch(ra))))}},os=new WeakMap,qo=new WeakMap,Rv=new WeakMap,wN);function Eg(e){var t;return(t=e.options.scope)==null?void 0:t.id}function IA(e){return{onFetch:(t,r)=>{var f,h,v,m,b;const n=t.options,a=(v=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:v.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const s=async()=>{let w=!1;const O=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},_=f5(t.options,t.fetchOptions),y=async(x,S,P)=>{if(w)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const C={client:t.client,queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};O(C);const $=await _(C),{maxPages:R}=t.options,k=P?see:iee;return{pages:k(x.pages,$,R),pageParams:k(x.pageParams,S,R)}};if(a&&o.length){const x=a==="backward",S=x?yee:TA,P={pages:o,pageParams:i},C=S(n,P);l=await y(P,C,x)}else{const x=e??o.length;do{const S=c===0?i[0]??n.initialPageParam:TA(n,l);if(c>0&&S==null)break;l=await y(l,S),c++}while(c{var w,O;return(O=(w=t.options).persister)==null?void 0:O.call(w,s,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=s}}}function TA(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function yee(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Dr,cl,dl,uf,cf,fl,df,ff,SN,bee=(SN=class{constructor(e={}){ht(this,Dr);ht(this,cl);ht(this,dl);ht(this,uf);ht(this,cf);ht(this,fl);ht(this,df);ht(this,ff);Je(this,Dr,e.queryCache||new vee),Je(this,cl,e.mutationCache||new gee),Je(this,dl,e.defaultOptions||{}),Je(this,uf,new Map),Je(this,cf,new Map),Je(this,fl,0)}mount(){og(this,fl)._++,Q(this,fl)===1&&(Je(this,df,YP.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,Dr).onFocus())})),Je(this,ff,p0.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,Dr).onOnline())})))}unmount(){var e,t;og(this,fl)._--,Q(this,fl)===0&&((e=Q(this,df))==null||e.call(this),Je(this,df,void 0),(t=Q(this,ff))==null||t.call(this),Je(this,ff,void 0))}isFetching(e){return Q(this,Dr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Q(this,cl).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Q(this,Dr).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Q(this,Dr).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(zd(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Q(this,Dr).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=Q(this,Dr).get(n.queryHash),o=a==null?void 0:a.state.data,i=aee(t,o);if(i!==void 0)return Q(this,Dr).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Gr.batch(()=>Q(this,Dr).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Q(this,Dr).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Q(this,Dr);Gr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Q(this,Dr);return Gr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Gr.batch(()=>Q(this,Dr).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(ra).catch(ra)}invalidateQueries(e,t={}){return Gr.batch(()=>(Q(this,Dr).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Gr.batch(()=>Q(this,Dr).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(ra)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(ra)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Q(this,Dr).build(this,t);return r.isStaleByTime(zd(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ra).catch(ra)}fetchInfiniteQuery(e){return e.behavior=IA(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ra).catch(ra)}ensureInfiniteQueryData(e){return e.behavior=IA(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return p0.isOnline()?Q(this,cl).resumePausedMutations():Promise.resolve()}getQueryCache(){return Q(this,Dr)}getMutationCache(){return Q(this,cl)}getDefaultOptions(){return Q(this,dl)}setDefaultOptions(e){Je(this,dl,e)}setQueryDefaults(e,t){Q(this,uf).set(Dl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Q(this,uf).values()],r={};return t.forEach(n=>{ov(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Q(this,cf).set(Dl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Q(this,cf).values()],r={};return t.forEach(n=>{ov(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Q(this,dl).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=QP(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===XP&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Q(this,dl).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Q(this,Dr).clear(),Q(this,cl).clear()}},Dr=new WeakMap,cl=new WeakMap,dl=new WeakMap,uf=new WeakMap,cf=new WeakMap,fl=new WeakMap,df=new WeakMap,ff=new WeakMap,SN),ga,zt,$v,Zn,Xu,pf,pl,hl,kv,hf,vf,Yu,Ju,vl,mf,tr,ih,_E,xE,wE,SE,EE,CE,OE,_5,EN,_ee=(EN=class extends Uf{constructor(t,r){super();ht(this,tr);ht(this,ga);ht(this,zt);ht(this,$v);ht(this,Zn);ht(this,Xu);ht(this,pf);ht(this,pl);ht(this,hl);ht(this,kv);ht(this,hf);ht(this,vf);ht(this,Yu);ht(this,Ju);ht(this,vl);ht(this,mf,new Set);this.options=r,Je(this,ga,t),Je(this,hl,null),Je(this,pl,bE()),this.options.experimental_prefetchInRender||Q(this,pl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Q(this,zt).addObserver(this),AA(Q(this,zt),this.options)?jt(this,tr,ih).call(this):this.updateResult(),jt(this,tr,SE).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return PE(Q(this,zt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return PE(Q(this,zt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,jt(this,tr,EE).call(this),jt(this,tr,CE).call(this),Q(this,zt).removeObserver(this)}setOptions(t){const r=this.options,n=Q(this,zt);if(this.options=Q(this,ga).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xo(this.options.enabled,Q(this,zt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");jt(this,tr,OE).call(this),Q(this,zt).setOptions(this.options),r._defaulted&&!f0(this.options,r)&&Q(this,ga).getQueryCache().notify({type:"observerOptionsUpdated",query:Q(this,zt),observer:this});const a=this.hasListeners();a&&MA(Q(this,zt),n,this.options,r)&&jt(this,tr,ih).call(this),this.updateResult(),a&&(Q(this,zt)!==n||Xo(this.options.enabled,Q(this,zt))!==Xo(r.enabled,Q(this,zt))||zd(this.options.staleTime,Q(this,zt))!==zd(r.staleTime,Q(this,zt)))&&jt(this,tr,_E).call(this);const o=jt(this,tr,xE).call(this);a&&(Q(this,zt)!==n||Xo(this.options.enabled,Q(this,zt))!==Xo(r.enabled,Q(this,zt))||o!==Q(this,vl))&&jt(this,tr,wE).call(this,o)}getOptimisticResult(t){const r=Q(this,ga).getQueryCache().build(Q(this,ga),t),n=this.createResult(r,t);return wee(this,n)&&(Je(this,Zn,n),Je(this,pf,this.options),Je(this,Xu,Q(this,zt).state)),n}getCurrentResult(){return Q(this,Zn)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){Q(this,mf).add(t)}getCurrentQuery(){return Q(this,zt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=Q(this,ga).defaultQueryOptions(t),n=Q(this,ga).getQueryCache().build(Q(this,ga),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return jt(this,tr,ih).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Q(this,Zn)))}createResult(t,r){var k;const n=Q(this,zt),a=this.options,o=Q(this,Zn),i=Q(this,Xu),l=Q(this,pf),s=t!==n?t.state:Q(this,$v),{state:f}=t;let h={...f},v=!1,m;if(r._optimisticResults){const I=this.hasListeners(),M=!I&&AA(t,r),F=I&&MA(t,n,r,a);(M||F)&&(h={...h,...y5(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:b,errorUpdatedAt:w,status:O}=h;m=h.data;let _=!1;if(r.placeholderData!==void 0&&m===void 0&&O==="pending"){let I;o!=null&&o.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData)?(I=o.data,_=!0):I=typeof r.placeholderData=="function"?r.placeholderData((k=Q(this,vf))==null?void 0:k.state.data,Q(this,vf)):r.placeholderData,I!==void 0&&(O="success",m=yE(o==null?void 0:o.data,I,r),v=!0)}if(r.select&&m!==void 0&&!_)if(o&&m===(i==null?void 0:i.data)&&r.select===Q(this,kv))m=Q(this,hf);else try{Je(this,kv,r.select),m=r.select(m),m=yE(o==null?void 0:o.data,m,r),Je(this,hf,m),Je(this,hl,null)}catch(I){Je(this,hl,I)}Q(this,hl)&&(b=Q(this,hl),m=Q(this,hf),w=Date.now(),O="error");const y=h.fetchStatus==="fetching",x=O==="pending",S=O==="error",P=x&&y,C=m!==void 0,R={status:O,fetchStatus:h.fetchStatus,isPending:x,isSuccess:O==="success",isError:S,isInitialLoading:P,isLoading:P,data:m,dataUpdatedAt:h.dataUpdatedAt,error:b,errorUpdatedAt:w,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>s.dataUpdateCount||h.errorUpdateCount>s.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:S&&!C,isPaused:h.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:S&&C,isStale:JP(t,r),refetch:this.refetch,promise:Q(this,pl)};if(this.options.experimental_prefetchInRender){const I=L=>{R.status==="error"?L.reject(R.error):R.data!==void 0&&L.resolve(R.data)},M=()=>{const L=Je(this,pl,R.promise=bE());I(L)},F=Q(this,pl);switch(F.status){case"pending":t.queryHash===n.queryHash&&I(F);break;case"fulfilled":(R.status==="error"||R.data!==F.value)&&M();break;case"rejected":(R.status!=="error"||R.error!==F.reason)&&M();break}}return R}updateResult(){const t=Q(this,Zn),r=this.createResult(Q(this,zt),this.options);if(Je(this,Xu,Q(this,zt).state),Je(this,pf,this.options),Q(this,Xu).data!==void 0&&Je(this,vf,Q(this,zt)),f0(r,t))return;Je(this,Zn,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!Q(this,mf).size)return!0;const i=new Set(o??Q(this,mf));return this.options.throwOnError&&i.add("error"),Object.keys(Q(this,Zn)).some(l=>{const c=l;return Q(this,Zn)[c]!==t[c]&&i.has(c)})};jt(this,tr,_5).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&jt(this,tr,SE).call(this)}},ga=new WeakMap,zt=new WeakMap,$v=new WeakMap,Zn=new WeakMap,Xu=new WeakMap,pf=new WeakMap,pl=new WeakMap,hl=new WeakMap,kv=new WeakMap,hf=new WeakMap,vf=new WeakMap,Yu=new WeakMap,Ju=new WeakMap,vl=new WeakMap,mf=new WeakMap,tr=new WeakSet,ih=function(t){jt(this,tr,OE).call(this);let r=Q(this,zt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ra)),r},_E=function(){jt(this,tr,EE).call(this);const t=zd(this.options.staleTime,Q(this,zt));if(dc||Q(this,Zn).isStale||!mE(t))return;const n=c5(Q(this,Zn).dataUpdatedAt,t)+1;Je(this,Yu,setTimeout(()=>{Q(this,Zn).isStale||this.updateResult()},n))},xE=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Q(this,zt)):this.options.refetchInterval)??!1},wE=function(t){jt(this,tr,CE).call(this),Je(this,vl,t),!(dc||Xo(this.options.enabled,Q(this,zt))===!1||!mE(Q(this,vl))||Q(this,vl)===0)&&Je(this,Ju,setInterval(()=>{(this.options.refetchIntervalInBackground||YP.isFocused())&&jt(this,tr,ih).call(this)},Q(this,vl)))},SE=function(){jt(this,tr,_E).call(this),jt(this,tr,wE).call(this,jt(this,tr,xE).call(this))},EE=function(){Q(this,Yu)&&(clearTimeout(Q(this,Yu)),Je(this,Yu,void 0))},CE=function(){Q(this,Ju)&&(clearInterval(Q(this,Ju)),Je(this,Ju,void 0))},OE=function(){const t=Q(this,ga).getQueryCache().build(Q(this,ga),this.options);if(t===Q(this,zt))return;const r=Q(this,zt);Je(this,zt,t),Je(this,$v,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},_5=function(t){Gr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(Q(this,Zn))}),Q(this,ga).getQueryCache().notify({query:Q(this,zt),type:"observerResultsUpdated"})})},EN);function xee(e,t){return Xo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function AA(e,t){return xee(e,t)||e.state.data!==void 0&&PE(e,t,t.refetchOnMount)}function PE(e,t,r){if(Xo(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&JP(e,t)}return!1}function MA(e,t,r,n){return(e!==t||Xo(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&JP(e,r)}function JP(e,t){return Xo(t.enabled,e)!==!1&&e.isStaleByTime(zd(t.staleTime,e))}function wee(e,t){return!f0(e.getCurrentResult(),t)}var ml,gl,ya,is,vs,dy,RE,CN,See=(CN=class extends Uf{constructor(r,n){super();ht(this,vs);ht(this,ml);ht(this,gl);ht(this,ya);ht(this,is);Je(this,ml,r),this.setOptions(n),this.bindMethods(),jt(this,vs,dy).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=Q(this,ml).defaultMutationOptions(r),f0(this.options,n)||Q(this,ml).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Q(this,ya),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Dl(n.mutationKey)!==Dl(this.options.mutationKey)?this.reset():((a=Q(this,ya))==null?void 0:a.state.status)==="pending"&&Q(this,ya).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=Q(this,ya))==null||r.removeObserver(this)}onMutationUpdate(r){jt(this,vs,dy).call(this),jt(this,vs,RE).call(this,r)}getCurrentResult(){return Q(this,gl)}reset(){var r;(r=Q(this,ya))==null||r.removeObserver(this),Je(this,ya,void 0),jt(this,vs,dy).call(this),jt(this,vs,RE).call(this)}mutate(r,n){var a;return Je(this,is,n),(a=Q(this,ya))==null||a.removeObserver(this),Je(this,ya,Q(this,ml).getMutationCache().build(Q(this,ml),this.options)),Q(this,ya).addObserver(this),Q(this,ya).execute(r)}},ml=new WeakMap,gl=new WeakMap,ya=new WeakMap,is=new WeakMap,vs=new WeakSet,dy=function(){var n;const r=((n=Q(this,ya))==null?void 0:n.state)??b5();Je(this,gl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},RE=function(r){Gr.batch(()=>{var n,a,o,i,l,c,s,f;if(Q(this,is)&&this.hasListeners()){const h=Q(this,gl).variables,v=Q(this,gl).context;(r==null?void 0:r.type)==="success"?((a=(n=Q(this,is)).onSuccess)==null||a.call(n,r.data,h,v),(i=(o=Q(this,is)).onSettled)==null||i.call(o,r.data,null,h,v)):(r==null?void 0:r.type)==="error"&&((c=(l=Q(this,is)).onError)==null||c.call(l,r.error,h,v),(f=(s=Q(this,is)).onSettled)==null||f.call(s,void 0,r.error,h,v))}this.listeners.forEach(h=>{h(Q(this,gl))})})},CN),x5=d.createContext(void 0),Ao=e=>{const t=d.useContext(x5);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Eee=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(x5.Provider,{value:e,children:t})),w5=d.createContext(!1),Cee=()=>d.useContext(w5);w5.Provider;function Oee(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Pee=d.createContext(Oee()),Ree=()=>d.useContext(Pee),$ee=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},kee=e=>{d.useEffect(()=>{e.clearReset()},[e])},jee=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||p5(r,[e.error,n])),Iee=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Tee=(e,t)=>e.isLoading&&e.isFetching&&!t,Aee=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,FA=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Mee(e,t,r){var h,v,m,b,w;const n=Ao(),a=Cee(),o=Ree(),i=n.defaultQueryOptions(e);(v=(h=n.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||v.call(h,i),i._optimisticResults=a?"isRestoring":"optimistic",Iee(i),$ee(i,o),kee(o);const l=!n.getQueryCache().get(i.queryHash),[c]=d.useState(()=>new t(n,i)),s=c.getOptimisticResult(i),f=!a&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(O=>{const _=f?c.subscribe(Gr.batchCalls(O)):ra;return c.updateResult(),_},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(i)},[i,c]),Aee(i,s))throw FA(i,c,o);if(jee({result:s,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw s.error;if((b=(m=n.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||b.call(m,i,s),i.experimental_prefetchInRender&&!dc&&Tee(s,a)){const O=l?FA(i,c,o):(w=n.getQueryCache().get(i.queryHash))==null?void 0:w.promise;O==null||O.catch(ra).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?s:c.trackResult(s)}function Wl(e,t){return Mee(e,_ee)}function Cc(e,t){const r=Ao(),[n]=d.useState(()=>new See(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(Gr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,l)=>{n.mutate(i,l).catch(ra)},[n]);if(a.error&&p5(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** +`)+Te+`return __p +}`;var kt=ZT(function(){return Qt(N,ct+"return "+Te).apply(r,G)});if(kt.source=Te,kx(kt))throw kt;return kt}function fQ(u){return er(u).toLowerCase()}function pQ(u){return er(u).toUpperCase()}function hQ(u,p,g){if(u=er(u),u&&(g||p===r))return lj(u);if(!u||!(p=Ta(p)))return u;var j=No(u),A=No(p),N=uj(j,A),G=cj(j,A)+1;return Vs(j,N,G).join("")}function vQ(u,p,g){if(u=er(u),u&&(g||p===r))return u.slice(0,fj(u)+1);if(!u||!(p=Ta(p)))return u;var j=No(u),A=cj(j,No(p))+1;return Vs(j,0,A).join("")}function mQ(u,p,g){if(u=er(u),u&&(g||p===r))return u.replace(Se,"");if(!u||!(p=Ta(p)))return u;var j=No(u),A=uj(j,No(p));return Vs(j,A).join("")}function gQ(u,p){var g=T,j=M;if(Rr(p)){var A="separator"in p?p.separator:A;g="length"in p?Rt(p.length):g,j="omission"in p?Ta(p.omission):j}u=er(u);var N=u.length;if(Nc(u)){var G=No(u);N=G.length}if(g>=N)return u;var Y=g-Bc(j);if(Y<1)return j;var se=G?Vs(G,0,Y).join(""):u.slice(0,Y);if(A===r)return se+j;if(G&&(Y+=se.length-Y),jx(A)){if(u.slice(Y).search(A)){var Ce,Oe=se;for(A.global||(A=G1(A.source,er(It.exec(A))+"g")),A.lastIndex=0;Ce=A.exec(Oe);)var Te=Ce.index;se=se.slice(0,Te===r?Y:Te)}}else if(u.indexOf(Ta(A),Y)!=Y){var Ue=se.lastIndexOf(A);Ue>-1&&(se=se.slice(0,Ue))}return se+j}function yQ(u){return u=er(u),u&&In.test(u)?u.replace(an,GW):u}var bQ=Gc(function(u,p,g){return u+(g?" ":"")+p.toUpperCase()}),Ax=eT("toUpperCase");function JT(u,p,g){return u=er(u),p=g?r:p,p===r?UW(u)?XW(u):IW(u):u.match(p)||[]}var ZT=Tt(function(u,p){try{return ka(u,r,p)}catch(g){return kx(g)?g:new xt(g)}}),_Q=Gi(function(u,p){return ro(p,function(g){g=di(g),Hi(u,g,Rx(u[g],u))}),u});function xQ(u){var p=u==null?0:u.length,g=gt();return u=p?Sr(u,function(j){if(typeof j[1]!="function")throw new no(i);return[g(j[0]),j[1]]}):[],Tt(function(j){for(var A=-1;++Az)return[];var g=oe,j=An(u,oe);p=gt(p),u-=oe;for(var A=W1(j,p);++g0||p<0)?new Ft(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),p!==r&&(p=Rt(p),g=p<0?g.dropRight(-p):g.take(p-u)),g)},Ft.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ft.prototype.toArray=function(){return this.take(oe)},ui(Ft.prototype,function(u,p){var g=/^(?:filter|find|map|reject)|While$/.test(p),j=/^(?:head|last)$/.test(p),A=D[j?"take"+(p=="last"?"Right":""):p],N=j||/^find/.test(p);A&&(D.prototype[p]=function(){var G=this.__wrapped__,Y=j?[1]:arguments,se=G instanceof Ft,Ce=Y[0],Oe=se||St(G),Te=function(At){var Bt=A.apply(D,Ls([At],Y));return j&&Ue?Bt[0]:Bt};Oe&&g&&typeof Ce=="function"&&Ce.length!=1&&(se=Oe=!1);var Ue=this.__chain__,ct=!!this.__actions__.length,yt=N&&!Ue,kt=se&&!ct;if(!N&&Oe){G=kt?G:new Ft(this);var bt=u.apply(G,Y);return bt.__actions__.push({func:Ym,args:[Te],thisArg:r}),new ao(bt,Ue)}return yt&&kt?u.apply(this,Y):(bt=this.thru(Te),yt?j?bt.value()[0]:bt.value():bt)})}),ro(["pop","push","shift","sort","splice","unshift"],function(u){var p=Sm[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",j=/^(?:pop|shift)$/.test(u);D.prototype[u]=function(){var A=arguments;if(j&&!this.__chain__){var N=this.value();return p.apply(St(N)?N:[],A)}return this[g](function(G){return p.apply(St(G)?G:[],A)})}}),ui(Ft.prototype,function(u,p){var g=D[p];if(g){var j=g.name+"";rr.call(Wc,j)||(Wc[j]=[]),Wc[j].push({name:p,func:g})}}),Wc[Wm(r,_).name]=[{name:"wrapper",func:r}],Ft.prototype.clone=y7,Ft.prototype.reverse=b7,Ft.prototype.value=_7,D.prototype.at=Qq,D.prototype.chain=Xq,D.prototype.commit=Yq,D.prototype.next=Jq,D.prototype.plant=eG,D.prototype.reverse=tG,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=rG,D.prototype.first=D.prototype.head,gp&&(D.prototype[gp]=Zq),D},zc=YW();uu?((uu.exports=zc)._=zc,F1._=zc):xn._=zc}).call(Zo)})(ub,ub.exports);var Lv=ub.exports,fA=Object.prototype.toString,B4=function(t){var r=fA.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&fA.call(t.callee)==="[object Function]"),n},hw,pA;function jJ(){if(pA)return hw;pA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=B4,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(v){var m=v.constructor;return m&&m.prototype===v},s={$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 v in window)try{if(!s["$"+v]&&t.call(window,v)&&window[v]!==null&&typeof window[v]=="object")try{c(window[v])}catch{return!0}}catch{return!0}return!1}(),h=function(v){if(typeof window>"u"||!f)return c(v);try{return c(v)}catch{return!1}};e=function(m){var b=m!==null&&typeof m=="object",w=r.call(m)==="[object Function]",O=n(m),_=b&&r.call(m)==="[object String]",y=[];if(!b&&!w&&!O)throw new TypeError("Object.keys called on a non-object");var x=i&&w;if(_&&m.length>0&&!t.call(m,0))for(var S=0;S0)for(var P=0;P"u"||!mn?Lt:mn(Uint8Array),rc={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Lt:ArrayBuffer,"%ArrayIteratorPrototype%":Jc&&mn?mn([][Symbol.iterator]()):Lt,"%AsyncFromSyncIteratorPrototype%":Lt,"%AsyncFunction%":cd,"%AsyncGenerator%":cd,"%AsyncGeneratorFunction%":cd,"%AsyncIteratorPrototype%":cd,"%Atomics%":typeof Atomics>"u"?Lt:Atomics,"%BigInt%":typeof BigInt>"u"?Lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":rZ,"%eval%":eval,"%EvalError%":nZ,"%Float32Array%":typeof Float32Array>"u"?Lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Lt:FinalizationRegistry,"%Function%":V4,"%GeneratorFunction%":cd,"%Int8Array%":typeof Int8Array>"u"?Lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Jc&&mn?mn(mn([][Symbol.iterator]())):Lt,"%JSON%":typeof JSON=="object"?JSON:Lt,"%Map%":typeof Map>"u"?Lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Jc||!mn?Lt:mn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Lt:Promise,"%Proxy%":typeof Proxy>"u"?Lt:Proxy,"%RangeError%":aZ,"%ReferenceError%":oZ,"%Reflect%":typeof Reflect>"u"?Lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Jc||!mn?Lt:mn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Jc&&mn?mn(""[Symbol.iterator]()):Lt,"%Symbol%":Jc?Symbol:Lt,"%SyntaxError%":Ef,"%ThrowTypeError%":sZ,"%TypedArray%":uZ,"%TypeError%":Bd,"%Uint8Array%":typeof Uint8Array>"u"?Lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Lt:Uint32Array,"%URIError%":iZ,"%WeakMap%":typeof WeakMap>"u"?Lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Lt:WeakSet};if(mn)try{null.error}catch(e){var cZ=mn(mn(e));rc["%Error.prototype%"]=cZ}var dZ=function e(t){var r;if(t==="%AsyncFunction%")r=mw("async function () {}");else if(t==="%GeneratorFunction%")r=mw("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=mw("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&mn&&(r=mn(a.prototype))}return rc[t]=r,r},yA={__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"]},Nv=WP,cb=U4,fZ=Nv.call(Function.call,Array.prototype.concat),pZ=Nv.call(Function.apply,Array.prototype.splice),bA=Nv.call(Function.call,String.prototype.replace),db=Nv.call(Function.call,String.prototype.slice),hZ=Nv.call(Function.call,RegExp.prototype.exec),vZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mZ=/\\(\\)?/g,gZ=function(t){var r=db(t,0,1),n=db(t,-1);if(r==="%"&&n!=="%")throw new Ef("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ef("invalid intrinsic syntax, expected opening `%`");var a=[];return bA(t,vZ,function(o,i,l,c){a[a.length]=l?bA(c,mZ,"$1"):i||o}),a},yZ=function(t,r){var n=t,a;if(cb(yA,n)&&(a=yA[n],n="%"+a[0]+"%"),cb(rc,n)){var o=rc[n];if(o===cd&&(o=dZ(n)),typeof o>"u"&&!r)throw new Bd("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Ef("intrinsic "+t+" does not exist!")},Bv=function(t,r){if(typeof t!="string"||t.length===0)throw new Bd("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Bd('"allowMissing" argument must be a boolean');if(hZ(/^%?[^%]*%?$/,t)===null)throw new Ef("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=gZ(t),a=n.length>0?n[0]:"",o=yZ("%"+a+"%",r),i=o.name,l=o.value,c=!1,s=o.alias;s&&(a=s[0],pZ(n,fZ([0,1],s)));for(var f=1,h=!0;f=n.length){var w=tc(l,v);h=!!w,h&&"get"in w&&!("originalValue"in w.get)?l=w.get:l=l[v]}else h=cb(l,v),l=l[v];h&&!c&&(rc[i]=l)}}return l},bZ=Bv,ly=bZ("%Object.defineProperty%",!0)||!1;if(ly)try{ly({},"a",{value:1})}catch{ly=!1}var HP=ly,_Z=Bv,uy=_Z("%Object.getOwnPropertyDescriptor%",!0);if(uy)try{uy([],"length")}catch{uy=null}var W4=uy,_A=HP,xZ=z4,Zc=Dv,xA=W4,H4=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Zc("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Zc("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Zc("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Zc("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Zc("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Zc("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,c=!!xA&&xA(t,r);if(_A)_A(t,r,{configurable:i===null&&c?c.configurable:!i,enumerable:a===null&&c?c.enumerable:!a,value:n,writable:o===null&&c?c.writable:!o});else if(l||!a&&!o&&!i)t[r]=n;else throw new xZ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},hE=HP,q4=function(){return!!hE};q4.hasArrayLengthDefineBug=function(){if(!hE)return null;try{return hE([],"length",{value:1}).length!==1}catch{return!0}};var G4=q4,wZ=AJ,SZ=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",EZ=Object.prototype.toString,CZ=Array.prototype.concat,wA=H4,OZ=function(e){return typeof e=="function"&&EZ.call(e)==="[object Function]"},K4=G4(),PZ=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!OZ(n)||!n())return}K4?wA(e,t,r,!0):wA(e,t,r)},Q4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=wZ(t);SZ&&(n=CZ.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||kZ(r)!==r)throw new CA("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&EA){var i=EA(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&($Z?SA(t,"length",r,!0,!0):SA(t,"length",r)),t};(function(e){var t=WP,r=Bv,n=jZ,a=Dv,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(i,o),c=HP,s=r("%Math.max%");e.exports=function(v){if(typeof v!="function")throw new a("a function is required");var m=l(t,i,arguments);return n(m,1+s(0,v.length-(arguments.length-1)),!0)};var f=function(){return l(t,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f})(Y4);var J4=Y4.exports,TZ=Dv,IZ=function(t){if(t==null)throw new TZ(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},Z4=Bv,e5=J4,AZ=e5(Z4("String.prototype.indexOf")),MZ=function(t,r){var n=Z4(t,!!r);return typeof n=="function"&&AZ(t,".prototype.")>-1?e5(n):n},FZ=IZ,t5=MZ,LZ=t5("Object.prototype.propertyIsEnumerable"),DZ=t5("Array.prototype.push"),r5=function(t){var r=FZ(t),n=[];for(var a in r)LZ(r,a)&&DZ(n,[a,r[a]]);return n},NZ=r5,n5=function(){return typeof Object.entries=="function"?Object.entries:NZ},BZ=n5,zZ=X4,UZ=function(){var t=BZ();return zZ(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},VZ=X4,WZ=J4,HZ=r5,a5=n5,qZ=UZ,o5=WZ(a5(),Object);VZ(o5,{getPolyfill:a5,implementation:HZ,shim:qZ});var GZ=o5,qP=GZ,i5=U4,KZ=function(t){},vE=String.prototype.replace,s5=String.prototype.split,cy="||||",Sg=function(e){var t=e%100,r=t%10;return t!==11&&r===1?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},l5={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:Sg,chinese:function(){return 0},croatian:Sg,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:Sg,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},ukrainian:Sg},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function QZ(e){for(var t={},r=qP(e),n=0;n{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dc=typeof window>"u"||"Deno"in globalThis;function ra(){}function nee(e,t){return typeof e=="function"?e(t):e}function mE(e){return typeof e=="number"&&e>=0&&e!==1/0}function c5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zd(e,t){return typeof e=="function"?e(t):e}function Xo(e,t){return typeof e=="function"?e(t):e}function RA(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:l}=e;if(i){if(n){if(t.queryHash!==QP(i,t.options))return!1}else if(!ov(t.queryKey,i))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||o&&!o(t))}function $A(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Dl(t.options.mutationKey)!==Dl(o))return!1}else if(!ov(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function QP(e,t){return((t==null?void 0:t.queryKeyHashFn)||Dl)(e)}function Dl(e){return JSON.stringify(e,(t,r)=>gE(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function ov(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ov(e[r],t[r])):!1}function d5(e,t){if(e===t)return e;const r=kA(e)&&kA(t);if(r||gE(e)&&gE(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,l=r?[]:{};let c=0;for(let s=0;s{setTimeout(t,e)})}function yE(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?d5(e,t):t}function oee(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function iee(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var XP=Symbol();function f5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===XP?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function p5(e,t){return typeof e=="function"?e(...t):!!e}var Hu,ll,nf,mN,see=(mN=class extends Uf{constructor(){super();ht(this,Hu);ht(this,ll);ht(this,nf);Je(this,nf,t=>{if(!dc&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Q(this,ll)||this.setEventListener(Q(this,nf))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,ll))==null||t.call(this),Je(this,ll,void 0))}setEventListener(t){var r;Je(this,nf,t),(r=Q(this,ll))==null||r.call(this),Je(this,ll,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Q(this,Hu)!==t&&(Je(this,Hu,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Q(this,Hu)=="boolean"?Q(this,Hu):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Hu=new WeakMap,ll=new WeakMap,nf=new WeakMap,mN),YP=new see,af,ul,of,gN,lee=(gN=class extends Uf{constructor(){super();ht(this,af,!0);ht(this,ul);ht(this,of);Je(this,of,t=>{if(!dc&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Q(this,ul)||this.setEventListener(Q(this,of))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,ul))==null||t.call(this),Je(this,ul,void 0))}setEventListener(t){var r;Je(this,of,t),(r=Q(this,ul))==null||r.call(this),Je(this,ul,t(this.setOnline.bind(this)))}setOnline(t){Q(this,af)!==t&&(Je(this,af,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Q(this,af)}},af=new WeakMap,ul=new WeakMap,of=new WeakMap,gN),pb=new lee;function bE(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function uee(e){return Math.min(1e3*2**e,3e4)}function h5(e){return(e??"online")==="online"?pb.isOnline():!0}var v5=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function yw(e){return e instanceof v5}function m5(e){let t=!1,r=0,n=!1,a;const o=bE(),i=w=>{var O;n||(v(new v5(w)),(O=e.abort)==null||O.call(e))},l=()=>{t=!0},c=()=>{t=!1},s=()=>YP.isFocused()&&(e.networkMode==="always"||pb.isOnline())&&e.canRun(),f=()=>h5(e.networkMode)&&e.canRun(),h=w=>{var O;n||(n=!0,(O=e.onSuccess)==null||O.call(e,w),a==null||a(),o.resolve(w))},v=w=>{var O;n||(n=!0,(O=e.onError)==null||O.call(e,w),a==null||a(),o.reject(w))},m=()=>new Promise(w=>{var O;a=_=>{(n||s())&&w(_)},(O=e.onPause)==null||O.call(e)}).then(()=>{var w;a=void 0,n||(w=e.onContinue)==null||w.call(e)}),b=()=>{if(n)return;let w;const O=r===0?e.initialPromise:void 0;try{w=O??e.fn()}catch(_){w=Promise.reject(_)}Promise.resolve(w).then(h).catch(_=>{var C;if(n)return;const y=e.retry??(dc?0:3),x=e.retryDelay??uee,S=typeof x=="function"?x(r,_):x,P=y===!0||typeof y=="number"&&rs()?void 0:m()).then(()=>{t?v(_):b()})})};return{promise:o,cancel:i,continue:()=>(a==null||a(),o),cancelRetry:l,continueRetry:c,canStart:f,start:()=>(f()?b():m().then(b),o)}}var cee=e=>setTimeout(e,0);function dee(){let e=[],t=0,r=l=>{l()},n=l=>{l()},a=cee;const o=l=>{t?e.push(l):a(()=>{r(l)})},i=()=>{const l=e;e=[],l.length&&a(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{a=l}}}var Gr=dee(),qu,yN,g5=(yN=class{constructor(){ht(this,qu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mE(this.gcTime)&&Je(this,qu,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(dc?1/0:5*60*1e3))}clearGcTimeout(){Q(this,qu)&&(clearTimeout(Q(this,qu)),Je(this,qu,void 0))}},qu=new WeakMap,yN),sf,lf,co,Gu,Nn,Pv,Ku,Ho,es,bN,fee=(bN=class extends g5{constructor(t){super();ht(this,Ho);ht(this,sf);ht(this,lf);ht(this,co);ht(this,Gu);ht(this,Nn);ht(this,Pv);ht(this,Ku);Je(this,Ku,!1),Je(this,Pv,t.defaultOptions),this.setOptions(t.options),this.observers=[],Je(this,Gu,t.client),Je(this,co,Q(this,Gu).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Je(this,sf,pee(this.options)),this.state=t.state??Q(this,sf),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Q(this,Nn))==null?void 0:t.promise}setOptions(t){this.options={...Q(this,Pv),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Q(this,co).remove(this)}setData(t,r){const n=yE(this.state.data,t,this.options);return jt(this,Ho,es).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){jt(this,Ho,es).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=Q(this,Nn))==null?void 0:n.promise;return(a=Q(this,Nn))==null||a.cancel(t),r?r.then(ra).catch(ra):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Q(this,sf))}isActive(){return this.observers.some(t=>Xo(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===XP||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!c5(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Q(this,Nn))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Q(this,Nn))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Q(this,co).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Q(this,Nn)&&(Q(this,Ku)?Q(this,Nn).cancel({revert:!0}):Q(this,Nn).cancelRetry()),this.scheduleGc()),Q(this,co).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jt(this,Ho,es).call(this,{type:"invalidate"})}fetch(t,r){var c,s,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Q(this,Nn))return Q(this,Nn).continueRetry(),Q(this,Nn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Je(this,Ku,!0),n.signal)})},o=()=>{const h=f5(this.options,r),v={client:Q(this,Gu),queryKey:this.queryKey,meta:this.meta};return a(v),Je(this,Ku,!1),this.options.persister?this.options.persister(h,v,this):h(v)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Q(this,Gu),state:this.state,fetchFn:o};a(i),(c=this.options.behavior)==null||c.onFetch(i,this),Je(this,lf,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=i.fetchOptions)==null?void 0:s.meta))&&jt(this,Ho,es).call(this,{type:"fetch",meta:(f=i.fetchOptions)==null?void 0:f.meta});const l=h=>{var v,m,b,w;yw(h)&&h.silent||jt(this,Ho,es).call(this,{type:"error",error:h}),yw(h)||((m=(v=Q(this,co).config).onError)==null||m.call(v,h,this),(w=(b=Q(this,co).config).onSettled)==null||w.call(b,this.state.data,h,this)),this.scheduleGc()};return Je(this,Nn,m5({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var v,m,b,w;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(O){l(O);return}(m=(v=Q(this,co).config).onSuccess)==null||m.call(v,h,this),(w=(b=Q(this,co).config).onSettled)==null||w.call(b,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,v)=>{jt(this,Ho,es).call(this,{type:"failed",failureCount:h,error:v})},onPause:()=>{jt(this,Ho,es).call(this,{type:"pause"})},onContinue:()=>{jt(this,Ho,es).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),Q(this,Nn).start()}},sf=new WeakMap,lf=new WeakMap,co=new WeakMap,Gu=new WeakMap,Nn=new WeakMap,Pv=new WeakMap,Ku=new WeakMap,Ho=new WeakSet,es=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...y5(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return yw(a)&&a.revert&&Q(this,lf)?{...Q(this,lf),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Gr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Q(this,co).notify({query:this,type:"updated",action:t})})},bN);function y5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:h5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function pee(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var gi,_N,hee=(_N=class extends Uf{constructor(t={}){super();ht(this,gi);this.config=t,Je(this,gi,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??QP(a,r);let i=this.get(o);return i||(i=new fee({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){Q(this,gi).has(t.queryHash)||(Q(this,gi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Q(this,gi).get(t.queryHash);r&&(t.destroy(),r===t&&Q(this,gi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Gr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Q(this,gi).get(t)}getAll(){return[...Q(this,gi).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>RA(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>RA(t,n)):r}notify(t){Gr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Gr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Gr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},gi=new WeakMap,_N),yi,Jn,Qu,bi,Js,xN,vee=(xN=class extends g5{constructor(t){super();ht(this,bi);ht(this,yi);ht(this,Jn);ht(this,Qu);this.mutationId=t.mutationId,Je(this,Jn,t.mutationCache),Je(this,yi,[]),this.state=t.state||b5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Q(this,yi).includes(t)||(Q(this,yi).push(t),this.clearGcTimeout(),Q(this,Jn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Je(this,yi,Q(this,yi).filter(r=>r!==t)),this.scheduleGc(),Q(this,Jn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Q(this,yi).length||(this.state.status==="pending"?this.scheduleGc():Q(this,Jn).remove(this))}continue(){var t;return((t=Q(this,Qu))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,l,c,s,f,h,v,m,b,w,O,_,y,x,S,P,C,$,R;const r=()=>{jt(this,bi,Js).call(this,{type:"continue"})};Je(this,Qu,m5({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,T)=>{jt(this,bi,Js).call(this,{type:"failed",failureCount:k,error:T})},onPause:()=>{jt(this,bi,Js).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Q(this,Jn).canRun(this)}));const n=this.state.status==="pending",a=!Q(this,Qu).canStart();try{if(n)r();else{jt(this,bi,Js).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(o=Q(this,Jn).config).onMutate)==null?void 0:i.call(o,t,this));const T=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));T!==this.state.context&&jt(this,bi,Js).call(this,{type:"pending",context:T,variables:t,isPaused:a})}const k=await Q(this,Qu).start();return await((f=(s=Q(this,Jn).config).onSuccess)==null?void 0:f.call(s,k,t,this.state.context,this)),await((v=(h=this.options).onSuccess)==null?void 0:v.call(h,k,t,this.state.context)),await((b=(m=Q(this,Jn).config).onSettled)==null?void 0:b.call(m,k,null,this.state.variables,this.state.context,this)),await((O=(w=this.options).onSettled)==null?void 0:O.call(w,k,null,t,this.state.context)),jt(this,bi,Js).call(this,{type:"success",data:k}),k}catch(k){try{throw await((y=(_=Q(this,Jn).config).onError)==null?void 0:y.call(_,k,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,k,t,this.state.context)),await((C=(P=Q(this,Jn).config).onSettled)==null?void 0:C.call(P,void 0,k,this.state.variables,this.state.context,this)),await((R=($=this.options).onSettled)==null?void 0:R.call($,void 0,k,t,this.state.context)),k}finally{jt(this,bi,Js).call(this,{type:"error",error:k})}}finally{Q(this,Jn).runNext(this)}}},yi=new WeakMap,Jn=new WeakMap,Qu=new WeakMap,bi=new WeakSet,Js=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Gr.batch(()=>{Q(this,yi).forEach(n=>{n.onMutationUpdate(t)}),Q(this,Jn).notify({mutation:this,type:"updated",action:t})})},xN);function b5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var os,qo,Rv,wN,mee=(wN=class extends Uf{constructor(t={}){super();ht(this,os);ht(this,qo);ht(this,Rv);this.config=t,Je(this,os,new Set),Je(this,qo,new Map),Je(this,Rv,0)}build(t,r,n){const a=new vee({mutationCache:this,mutationId:++og(this,Rv)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){Q(this,os).add(t);const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r);n?n.push(t):Q(this,qo).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Q(this,os).delete(t)){const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&Q(this,qo).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Eg(t);if(typeof r=="string"){const n=Q(this,qo).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=Eg(t);if(typeof r=="string"){const a=(n=Q(this,qo).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Gr.batch(()=>{Q(this,os).forEach(t=>{this.notify({type:"removed",mutation:t})}),Q(this,os).clear(),Q(this,qo).clear()})}getAll(){return Array.from(Q(this,os))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>$A(r,n))}findAll(t={}){return this.getAll().filter(r=>$A(t,r))}notify(t){Gr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Gr.batch(()=>Promise.all(t.map(r=>r.continue().catch(ra))))}},os=new WeakMap,qo=new WeakMap,Rv=new WeakMap,wN);function Eg(e){var t;return(t=e.options.scope)==null?void 0:t.id}function TA(e){return{onFetch:(t,r)=>{var f,h,v,m,b;const n=t.options,a=(v=(h=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:h.fetchMore)==null?void 0:v.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const s=async()=>{let w=!1;const O=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},_=f5(t.options,t.fetchOptions),y=async(x,S,P)=>{if(w)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const C={client:t.client,queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};O(C);const $=await _(C),{maxPages:R}=t.options,k=P?iee:oee;return{pages:k(x.pages,$,R),pageParams:k(x.pageParams,S,R)}};if(a&&o.length){const x=a==="backward",S=x?gee:IA,P={pages:o,pageParams:i},C=S(n,P);l=await y(P,C,x)}else{const x=e??o.length;do{const S=c===0?i[0]??n.initialPageParam:IA(n,l);if(c>0&&S==null)break;l=await y(l,S),c++}while(c{var w,O;return(O=(w=t.options).persister)==null?void 0:O.call(w,s,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=s}}}function IA(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function gee(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var Dr,cl,dl,uf,cf,fl,df,ff,SN,yee=(SN=class{constructor(e={}){ht(this,Dr);ht(this,cl);ht(this,dl);ht(this,uf);ht(this,cf);ht(this,fl);ht(this,df);ht(this,ff);Je(this,Dr,e.queryCache||new hee),Je(this,cl,e.mutationCache||new mee),Je(this,dl,e.defaultOptions||{}),Je(this,uf,new Map),Je(this,cf,new Map),Je(this,fl,0)}mount(){og(this,fl)._++,Q(this,fl)===1&&(Je(this,df,YP.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,Dr).onFocus())})),Je(this,ff,pb.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,Dr).onOnline())})))}unmount(){var e,t;og(this,fl)._--,Q(this,fl)===0&&((e=Q(this,df))==null||e.call(this),Je(this,df,void 0),(t=Q(this,ff))==null||t.call(this),Je(this,ff,void 0))}isFetching(e){return Q(this,Dr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Q(this,cl).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Q(this,Dr).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Q(this,Dr).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(zd(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Q(this,Dr).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=Q(this,Dr).get(n.queryHash),o=a==null?void 0:a.state.data,i=nee(t,o);if(i!==void 0)return Q(this,Dr).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return Gr.batch(()=>Q(this,Dr).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Q(this,Dr).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Q(this,Dr);Gr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Q(this,Dr);return Gr.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Gr.batch(()=>Q(this,Dr).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(ra).catch(ra)}invalidateQueries(e,t={}){return Gr.batch(()=>(Q(this,Dr).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Gr.batch(()=>Q(this,Dr).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(ra)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(ra)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Q(this,Dr).build(this,t);return r.isStaleByTime(zd(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ra).catch(ra)}fetchInfiniteQuery(e){return e.behavior=TA(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ra).catch(ra)}ensureInfiniteQueryData(e){return e.behavior=TA(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return pb.isOnline()?Q(this,cl).resumePausedMutations():Promise.resolve()}getQueryCache(){return Q(this,Dr)}getMutationCache(){return Q(this,cl)}getDefaultOptions(){return Q(this,dl)}setDefaultOptions(e){Je(this,dl,e)}setQueryDefaults(e,t){Q(this,uf).set(Dl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Q(this,uf).values()],r={};return t.forEach(n=>{ov(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Q(this,cf).set(Dl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Q(this,cf).values()],r={};return t.forEach(n=>{ov(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Q(this,dl).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=QP(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===XP&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Q(this,dl).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Q(this,Dr).clear(),Q(this,cl).clear()}},Dr=new WeakMap,cl=new WeakMap,dl=new WeakMap,uf=new WeakMap,cf=new WeakMap,fl=new WeakMap,df=new WeakMap,ff=new WeakMap,SN),ga,zt,$v,Zn,Xu,pf,pl,hl,kv,hf,vf,Yu,Ju,vl,mf,tr,ih,_E,xE,wE,SE,EE,CE,OE,_5,EN,bee=(EN=class extends Uf{constructor(t,r){super();ht(this,tr);ht(this,ga);ht(this,zt);ht(this,$v);ht(this,Zn);ht(this,Xu);ht(this,pf);ht(this,pl);ht(this,hl);ht(this,kv);ht(this,hf);ht(this,vf);ht(this,Yu);ht(this,Ju);ht(this,vl);ht(this,mf,new Set);this.options=r,Je(this,ga,t),Je(this,hl,null),Je(this,pl,bE()),this.options.experimental_prefetchInRender||Q(this,pl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Q(this,zt).addObserver(this),AA(Q(this,zt),this.options)?jt(this,tr,ih).call(this):this.updateResult(),jt(this,tr,SE).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return PE(Q(this,zt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return PE(Q(this,zt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,jt(this,tr,EE).call(this),jt(this,tr,CE).call(this),Q(this,zt).removeObserver(this)}setOptions(t){const r=this.options,n=Q(this,zt);if(this.options=Q(this,ga).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xo(this.options.enabled,Q(this,zt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");jt(this,tr,OE).call(this),Q(this,zt).setOptions(this.options),r._defaulted&&!fb(this.options,r)&&Q(this,ga).getQueryCache().notify({type:"observerOptionsUpdated",query:Q(this,zt),observer:this});const a=this.hasListeners();a&&MA(Q(this,zt),n,this.options,r)&&jt(this,tr,ih).call(this),this.updateResult(),a&&(Q(this,zt)!==n||Xo(this.options.enabled,Q(this,zt))!==Xo(r.enabled,Q(this,zt))||zd(this.options.staleTime,Q(this,zt))!==zd(r.staleTime,Q(this,zt)))&&jt(this,tr,_E).call(this);const o=jt(this,tr,xE).call(this);a&&(Q(this,zt)!==n||Xo(this.options.enabled,Q(this,zt))!==Xo(r.enabled,Q(this,zt))||o!==Q(this,vl))&&jt(this,tr,wE).call(this,o)}getOptimisticResult(t){const r=Q(this,ga).getQueryCache().build(Q(this,ga),t),n=this.createResult(r,t);return xee(this,n)&&(Je(this,Zn,n),Je(this,pf,this.options),Je(this,Xu,Q(this,zt).state)),n}getCurrentResult(){return Q(this,Zn)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){Q(this,mf).add(t)}getCurrentQuery(){return Q(this,zt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=Q(this,ga).defaultQueryOptions(t),n=Q(this,ga).getQueryCache().build(Q(this,ga),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return jt(this,tr,ih).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Q(this,Zn)))}createResult(t,r){var k;const n=Q(this,zt),a=this.options,o=Q(this,Zn),i=Q(this,Xu),l=Q(this,pf),s=t!==n?t.state:Q(this,$v),{state:f}=t;let h={...f},v=!1,m;if(r._optimisticResults){const T=this.hasListeners(),M=!T&&AA(t,r),F=T&&MA(t,n,r,a);(M||F)&&(h={...h,...y5(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:b,errorUpdatedAt:w,status:O}=h;m=h.data;let _=!1;if(r.placeholderData!==void 0&&m===void 0&&O==="pending"){let T;o!=null&&o.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData)?(T=o.data,_=!0):T=typeof r.placeholderData=="function"?r.placeholderData((k=Q(this,vf))==null?void 0:k.state.data,Q(this,vf)):r.placeholderData,T!==void 0&&(O="success",m=yE(o==null?void 0:o.data,T,r),v=!0)}if(r.select&&m!==void 0&&!_)if(o&&m===(i==null?void 0:i.data)&&r.select===Q(this,kv))m=Q(this,hf);else try{Je(this,kv,r.select),m=r.select(m),m=yE(o==null?void 0:o.data,m,r),Je(this,hf,m),Je(this,hl,null)}catch(T){Je(this,hl,T)}Q(this,hl)&&(b=Q(this,hl),m=Q(this,hf),w=Date.now(),O="error");const y=h.fetchStatus==="fetching",x=O==="pending",S=O==="error",P=x&&y,C=m!==void 0,R={status:O,fetchStatus:h.fetchStatus,isPending:x,isSuccess:O==="success",isError:S,isInitialLoading:P,isLoading:P,data:m,dataUpdatedAt:h.dataUpdatedAt,error:b,errorUpdatedAt:w,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>s.dataUpdateCount||h.errorUpdateCount>s.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:S&&!C,isPaused:h.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:S&&C,isStale:JP(t,r),refetch:this.refetch,promise:Q(this,pl)};if(this.options.experimental_prefetchInRender){const T=L=>{R.status==="error"?L.reject(R.error):R.data!==void 0&&L.resolve(R.data)},M=()=>{const L=Je(this,pl,R.promise=bE());T(L)},F=Q(this,pl);switch(F.status){case"pending":t.queryHash===n.queryHash&&T(F);break;case"fulfilled":(R.status==="error"||R.data!==F.value)&&M();break;case"rejected":(R.status!=="error"||R.error!==F.reason)&&M();break}}return R}updateResult(){const t=Q(this,Zn),r=this.createResult(Q(this,zt),this.options);if(Je(this,Xu,Q(this,zt).state),Je(this,pf,this.options),Q(this,Xu).data!==void 0&&Je(this,vf,Q(this,zt)),fb(r,t))return;Je(this,Zn,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!Q(this,mf).size)return!0;const i=new Set(o??Q(this,mf));return this.options.throwOnError&&i.add("error"),Object.keys(Q(this,Zn)).some(l=>{const c=l;return Q(this,Zn)[c]!==t[c]&&i.has(c)})};jt(this,tr,_5).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&jt(this,tr,SE).call(this)}},ga=new WeakMap,zt=new WeakMap,$v=new WeakMap,Zn=new WeakMap,Xu=new WeakMap,pf=new WeakMap,pl=new WeakMap,hl=new WeakMap,kv=new WeakMap,hf=new WeakMap,vf=new WeakMap,Yu=new WeakMap,Ju=new WeakMap,vl=new WeakMap,mf=new WeakMap,tr=new WeakSet,ih=function(t){jt(this,tr,OE).call(this);let r=Q(this,zt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ra)),r},_E=function(){jt(this,tr,EE).call(this);const t=zd(this.options.staleTime,Q(this,zt));if(dc||Q(this,Zn).isStale||!mE(t))return;const n=c5(Q(this,Zn).dataUpdatedAt,t)+1;Je(this,Yu,setTimeout(()=>{Q(this,Zn).isStale||this.updateResult()},n))},xE=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Q(this,zt)):this.options.refetchInterval)??!1},wE=function(t){jt(this,tr,CE).call(this),Je(this,vl,t),!(dc||Xo(this.options.enabled,Q(this,zt))===!1||!mE(Q(this,vl))||Q(this,vl)===0)&&Je(this,Ju,setInterval(()=>{(this.options.refetchIntervalInBackground||YP.isFocused())&&jt(this,tr,ih).call(this)},Q(this,vl)))},SE=function(){jt(this,tr,_E).call(this),jt(this,tr,wE).call(this,jt(this,tr,xE).call(this))},EE=function(){Q(this,Yu)&&(clearTimeout(Q(this,Yu)),Je(this,Yu,void 0))},CE=function(){Q(this,Ju)&&(clearInterval(Q(this,Ju)),Je(this,Ju,void 0))},OE=function(){const t=Q(this,ga).getQueryCache().build(Q(this,ga),this.options);if(t===Q(this,zt))return;const r=Q(this,zt);Je(this,zt,t),Je(this,$v,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},_5=function(t){Gr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(Q(this,Zn))}),Q(this,ga).getQueryCache().notify({query:Q(this,zt),type:"observerResultsUpdated"})})},EN);function _ee(e,t){return Xo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function AA(e,t){return _ee(e,t)||e.state.data!==void 0&&PE(e,t,t.refetchOnMount)}function PE(e,t,r){if(Xo(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&JP(e,t)}return!1}function MA(e,t,r,n){return(e!==t||Xo(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&JP(e,r)}function JP(e,t){return Xo(t.enabled,e)!==!1&&e.isStaleByTime(zd(t.staleTime,e))}function xee(e,t){return!fb(e.getCurrentResult(),t)}var ml,gl,ya,is,vs,dy,RE,CN,wee=(CN=class extends Uf{constructor(r,n){super();ht(this,vs);ht(this,ml);ht(this,gl);ht(this,ya);ht(this,is);Je(this,ml,r),this.setOptions(n),this.bindMethods(),jt(this,vs,dy).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=Q(this,ml).defaultMutationOptions(r),fb(this.options,n)||Q(this,ml).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Q(this,ya),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Dl(n.mutationKey)!==Dl(this.options.mutationKey)?this.reset():((a=Q(this,ya))==null?void 0:a.state.status)==="pending"&&Q(this,ya).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=Q(this,ya))==null||r.removeObserver(this)}onMutationUpdate(r){jt(this,vs,dy).call(this),jt(this,vs,RE).call(this,r)}getCurrentResult(){return Q(this,gl)}reset(){var r;(r=Q(this,ya))==null||r.removeObserver(this),Je(this,ya,void 0),jt(this,vs,dy).call(this),jt(this,vs,RE).call(this)}mutate(r,n){var a;return Je(this,is,n),(a=Q(this,ya))==null||a.removeObserver(this),Je(this,ya,Q(this,ml).getMutationCache().build(Q(this,ml),this.options)),Q(this,ya).addObserver(this),Q(this,ya).execute(r)}},ml=new WeakMap,gl=new WeakMap,ya=new WeakMap,is=new WeakMap,vs=new WeakSet,dy=function(){var n;const r=((n=Q(this,ya))==null?void 0:n.state)??b5();Je(this,gl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},RE=function(r){Gr.batch(()=>{var n,a,o,i,l,c,s,f;if(Q(this,is)&&this.hasListeners()){const h=Q(this,gl).variables,v=Q(this,gl).context;(r==null?void 0:r.type)==="success"?((a=(n=Q(this,is)).onSuccess)==null||a.call(n,r.data,h,v),(i=(o=Q(this,is)).onSettled)==null||i.call(o,r.data,null,h,v)):(r==null?void 0:r.type)==="error"&&((c=(l=Q(this,is)).onError)==null||c.call(l,r.error,h,v),(f=(s=Q(this,is)).onSettled)==null||f.call(s,void 0,r.error,h,v))}this.listeners.forEach(h=>{h(Q(this,gl))})})},CN),x5=d.createContext(void 0),Ao=e=>{const t=d.useContext(x5);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},See=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(x5.Provider,{value:e,children:t})),w5=d.createContext(!1),Eee=()=>d.useContext(w5);w5.Provider;function Cee(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Oee=d.createContext(Cee()),Pee=()=>d.useContext(Oee),Ree=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},$ee=e=>{d.useEffect(()=>{e.clearReset()},[e])},kee=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||p5(r,[e.error,n])),jee=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Tee=(e,t)=>e.isLoading&&e.isFetching&&!t,Iee=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,FA=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Aee(e,t,r){var h,v,m,b,w;const n=Ao(),a=Eee(),o=Pee(),i=n.defaultQueryOptions(e);(v=(h=n.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||v.call(h,i),i._optimisticResults=a?"isRestoring":"optimistic",jee(i),Ree(i,o),$ee(o);const l=!n.getQueryCache().get(i.queryHash),[c]=d.useState(()=>new t(n,i)),s=c.getOptimisticResult(i),f=!a&&e.subscribed!==!1;if(d.useSyncExternalStore(d.useCallback(O=>{const _=f?c.subscribe(Gr.batchCalls(O)):ra;return c.updateResult(),_},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d.useEffect(()=>{c.setOptions(i)},[i,c]),Iee(i,s))throw FA(i,c,o);if(kee({result:s,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw s.error;if((b=(m=n.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||b.call(m,i,s),i.experimental_prefetchInRender&&!dc&&Tee(s,a)){const O=l?FA(i,c,o):(w=n.getQueryCache().get(i.queryHash))==null?void 0:w.promise;O==null||O.catch(ra).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?s:c.trackResult(s)}function Wl(e,t){return Aee(e,bee)}function Cc(e,t){const r=Ao(),[n]=d.useState(()=>new wee(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(Gr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,l)=>{n.mutate(i,l).catch(ra)},[n]);if(a.error&&p5(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** * @remix-run/router v1.20.0 * * Copyright (c) Remix Software Inc. @@ -72,8 +72,8 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function fc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Lee(){return Math.random().toString(36).substr(2,8)}function DA(e,t){return{usr:e.state,key:e.key,idx:t}}function iv(e,t,r,n){return r===void 0&&(r=null),Cr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mi(t):t,{state:r,key:t&&t.key||n||Lee()})}function pc(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 Mi(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Dee(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=Hr.Pop,c=null,s=f();s==null&&(s=0,i.replaceState(Cr({},i.state,{idx:s}),""));function f(){return(i.state||{idx:null}).idx}function h(){l=Hr.Pop;let O=f(),_=O==null?null:O-s;s=O,c&&c({action:l,location:w.location,delta:_})}function v(O,_){l=Hr.Push;let y=iv(w.location,O,_);r&&r(y,O),s=f()+1;let x=DA(y,s),S=w.createHref(y);try{i.pushState(x,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(S)}o&&c&&c({action:l,location:w.location,delta:1})}function m(O,_){l=Hr.Replace;let y=iv(w.location,O,_);r&&r(y,O),s=f();let x=DA(y,s),S=w.createHref(y);i.replaceState(x,"",S),o&&c&&c({action:l,location:w.location,delta:0})}function b(O){let _=a.location.origin!=="null"?a.location.origin:a.location.href,y=typeof O=="string"?O:pc(O);return y=y.replace(/ $/,"%20"),Et(_,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,_)}let w={get action(){return l},get location(){return e(a,i)},listen(O){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(LA,h),c=O,()=>{a.removeEventListener(LA,h),c=null}},createHref(O){return t(a,O)},createURL:b,encodeLocation(O){let _=b(O);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:m,go(O){return i.go(O)}};return w}var ur;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ur||(ur={}));const Nee=new Set(["lazy","caseSensitive","path","id","index","children"]);function Bee(e){return e.index===!0}function h0(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],l=typeof a.id=="string"?a.id:i.join("-");if(Et(a.index!==!0||!a.children,"Cannot specify children on an index route"),Et(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Bee(a)){let c=Cr({},a,t(a),{id:l});return n[l]=c,c}else{let c=Cr({},a,t(a),{id:l,children:void 0});return n[l]=c,a.children&&(c.children=h0(a.children,t,i,n)),c}})}function $u(e,t,r){return r===void 0&&(r="/"),fy(e,t,r,!1)}function fy(e,t,r,n){let a=typeof t=="string"?Mi(t):t,o=Nl(a.pathname||"/",r);if(o==null)return null;let i=S5(e);Uee(i);let l=null;for(let c=0;l==null&&c{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(Et(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 s=ps([n,c.relativePath]),f=r.concat(c);o.children&&o.children.length>0&&(Et(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),S5(o.children,t,f,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Qee(s,o.index),routesMeta:f})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let c of E5(o.path))a(o,i,c)}),t}function E5(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=E5(n.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Uee(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Xee(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Vee=/^:[\w-]+$/,Wee=3,Hee=2,qee=1,Gee=10,Kee=-2,NA=e=>e==="*";function Qee(e,t){let r=e.split("/"),n=r.length;return r.some(NA)&&(n+=Kee),t&&(n+=Hee),r.filter(a=>!NA(a)).reduce((a,o)=>a+(Vee.test(o)?Wee:o===""?qee:Gee),n)}function Xee(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Yee(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let l=0;l{let{paramName:v,isOptional:m}=f;if(v==="*"){let w=l[h]||"";i=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const b=l[h];return m&&!b?s[v]=void 0:s[v]=(b||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Jee(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),fc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function C5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fc(!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 Nl(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 Zee(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Mi(e):e;return{pathname:r?r.startsWith("/")?r:ete(r,t):t,search:rte(n),hash:nte(a)}}function ete(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function bw(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 O5(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Kb(e,t){let r=O5(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Qb(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Mi(e):(a=Cr({},e),Et(!a.pathname||!a.pathname.includes("?"),bw("?","pathname","search",a)),Et(!a.pathname||!a.pathname.includes("#"),bw("#","pathname","hash",a)),Et(!a.search||!a.search.includes("#"),bw("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),h-=1;a.pathname=v.join("/")}l=h>=0?t[h]:"/"}let c=Zee(a,l),s=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(s||f)&&(c.pathname+="/"),c}const ps=e=>e.join("/").replace(/\/\/+/g,"/"),tte=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rte=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nte=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class v0{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Xb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const P5=["post","put","patch","delete"],ate=new Set(P5),ote=["get",...P5],ite=new Set(ote),ste=new Set([301,302,303,307,308]),lte=new Set([307,308]),_w={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ute={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ZP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cte=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),R5="remix-router-transitions";function dte(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Et(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;a=ae=>({hasErrorBoundary:X(ae)})}else a=cte;let o={},i=h0(e.routes,a,void 0,o),l,c=e.basename||"/",s=e.dataStrategy||vte,f=e.patchRoutesOnNavigation,h=Cr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,m=new Set,b=null,w=null,O=null,_=e.hydrationData!=null,y=$u(i,e.history.location,c),x=null;if(y==null&&!f){let X=ba(404,{pathname:e.history.location.pathname}),{matches:ae,route:fe}=XA(i);y=ae,x={[fe.id]:X}}y&&!e.hydrationData&&Is(y,i,e.history.location.pathname).active&&(y=null);let S;if(y)if(y.some(X=>X.route.lazy))S=!1;else if(!y.some(X=>X.route.loader))S=!0;else if(h.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ae=e.hydrationData?e.hydrationData.errors:null;if(ae){let fe=y.findIndex(Se=>ae[Se.route.id]!==void 0);S=y.slice(0,fe+1).every(Se=>!kE(Se.route,X,ae))}else S=y.every(fe=>!kE(fe.route,X,ae))}else S=e.hydrationData!=null;else if(S=!1,y=[],h.v7_partialHydration){let X=Is(null,i,e.history.location.pathname);X.active&&X.matches&&(y=X.matches)}let P,C={historyAction:e.history.action,location:e.history.location,matches:y,initialized:S,navigation:_w,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},$=Hr.Pop,R=!1,k,I=!1,M=new Map,F=null,L=!1,B=!1,V=[],H=new Set,W=new Map,z=0,q=-1,ee=new Map,oe=new Set,J=new Map,we=new Map,le=new Set,ge=new Map,pe=new Map,me;function xe(){if(v=e.history.listen(X=>{let{action:ae,location:fe,delta:Se}=X;if(me){me(),me=void 0;return}fc(pe.size===0||Se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let We=dr({currentLocation:C.location,nextLocation:fe,historyAction:ae});if(We&&Se!=null){let dt=new Promise(mt=>{me=mt});e.history.go(Se*-1),Ot(We,{state:"blocked",location:fe,proceed(){Ot(We,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),dt.then(()=>e.history.go(Se))},reset(){let mt=new Map(C.blockers);mt.set(We,dd),ve({blockers:mt})}});return}return Le(ae,fe)}),r){$te(t,M);let X=()=>kte(t,M);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return C.initialized||Le(Hr.Pop,C.location,{initialHydration:!0}),P}function ne(){v&&v(),F&&F(),m.clear(),k&&k.abort(),C.fetchers.forEach((X,ae)=>_t(ae)),C.blockers.forEach((X,ae)=>wt(ae))}function Te(X){return m.add(X),()=>m.delete(X)}function ve(X,ae){ae===void 0&&(ae={}),C=Cr({},C,X);let fe=[],Se=[];h.v7_fetcherPersist&&C.fetchers.forEach((We,dt)=>{We.state==="idle"&&(le.has(dt)?Se.push(dt):fe.push(dt))}),[...m].forEach(We=>We(C,{deletedFetchers:Se,viewTransitionOpts:ae.viewTransitionOpts,flushSync:ae.flushSync===!0})),h.v7_fetcherPersist&&(fe.forEach(We=>C.fetchers.delete(We)),Se.forEach(We=>_t(We)))}function $e(X,ae,fe){var Se,We;let{flushSync:dt}=fe===void 0?{}:fe,mt=C.actionData!=null&&C.navigation.formMethod!=null&&Ko(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Se=X.state)==null?void 0:Se._isRedirect)!==!0,Ye;ae.actionData?Object.keys(ae.actionData).length>0?Ye=ae.actionData:Ye=null:mt?Ye=C.actionData:Ye=null;let nt=ae.loaderData?KA(C.loaderData,ae.loaderData,ae.matches||[],ae.errors):C.loaderData,Qe=C.blockers;Qe.size>0&&(Qe=new Map(Qe),Qe.forEach((Tt,zr)=>Qe.set(zr,dd)));let ut=R===!0||C.navigation.formMethod!=null&&Ko(C.navigation.formMethod)&&((We=X.state)==null?void 0:We._isRedirect)!==!0;l&&(i=l,l=void 0),L||$===Hr.Pop||($===Hr.Push?e.history.push(X,X.state):$===Hr.Replace&&e.history.replace(X,X.state));let Pt;if($===Hr.Pop){let Tt=M.get(C.location.pathname);Tt&&Tt.has(X.pathname)?Pt={currentLocation:C.location,nextLocation:X}:M.has(X.pathname)&&(Pt={currentLocation:X,nextLocation:C.location})}else if(I){let Tt=M.get(C.location.pathname);Tt?Tt.add(X.pathname):(Tt=new Set([X.pathname]),M.set(C.location.pathname,Tt)),Pt={currentLocation:C.location,nextLocation:X}}ve(Cr({},ae,{actionData:Ye,loaderData:nt,historyAction:$,location:X,initialized:!0,navigation:_w,revalidation:"idle",restoreScrollPosition:nu(X,ae.matches||C.matches),preventScrollReset:ut,blockers:Qe}),{viewTransitionOpts:Pt,flushSync:dt===!0}),$=Hr.Pop,R=!1,I=!1,L=!1,B=!1,V=[]}async function ye(X,ae){if(typeof X=="number"){e.history.go(X);return}let fe=$E(C.location,C.matches,c,h.v7_prependBasename,X,h.v7_relativeSplatPath,ae==null?void 0:ae.fromRouteId,ae==null?void 0:ae.relative),{path:Se,submission:We,error:dt}=BA(h.v7_normalizeFormMethod,!1,fe,ae),mt=C.location,Ye=iv(C.location,Se,ae&&ae.state);Ye=Cr({},Ye,e.history.encodeLocation(Ye));let nt=ae&&ae.replace!=null?ae.replace:void 0,Qe=Hr.Push;nt===!0?Qe=Hr.Replace:nt===!1||We!=null&&Ko(We.formMethod)&&We.formAction===C.location.pathname+C.location.search&&(Qe=Hr.Replace);let ut=ae&&"preventScrollReset"in ae?ae.preventScrollReset===!0:void 0,Pt=(ae&&ae.flushSync)===!0,Tt=dr({currentLocation:mt,nextLocation:Ye,historyAction:Qe});if(Tt){Ot(Tt,{state:"blocked",location:Ye,proceed(){Ot(Tt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ye}),ye(X,ae)},reset(){let zr=new Map(C.blockers);zr.set(Tt,dd),ve({blockers:zr})}});return}return await Le(Qe,Ye,{submission:We,pendingError:dt,preventScrollReset:ut,replace:ae&&ae.replace,enableViewTransition:ae&&ae.viewTransition,flushSync:Pt})}function je(){if(ft(),ve({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){Le(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}Le($||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:I===!0})}}async function Le(X,ae,fe){k&&k.abort(),k=null,$=X,L=(fe&&fe.startUninterruptedRevalidation)===!0,li(C.location,C.matches),R=(fe&&fe.preventScrollReset)===!0,I=(fe&&fe.enableViewTransition)===!0;let Se=l||i,We=fe&&fe.overrideNavigation,dt=$u(Se,ae,c),mt=(fe&&fe.flushSync)===!0,Ye=Is(dt,Se,ae.pathname);if(Ye.active&&Ye.matches&&(dt=Ye.matches),!dt){let{error:Zt,notFoundMatches:Dt,route:lt}=Pr(ae.pathname);$e(ae,{matches:Dt,loaderData:{},errors:{[lt.id]:Zt}},{flushSync:mt});return}if(C.initialized&&!B&&xte(C.location,ae)&&!(fe&&fe.submission&&Ko(fe.submission.formMethod))){$e(ae,{matches:dt},{flushSync:mt});return}k=new AbortController;let nt=ed(e.history,ae,k.signal,fe&&fe.submission),Qe;if(fe&&fe.pendingError)Qe=[ku(dt).route.id,{type:ur.error,error:fe.pendingError}];else if(fe&&fe.submission&&Ko(fe.submission.formMethod)){let Zt=await st(nt,ae,fe.submission,dt,Ye.active,{replace:fe.replace,flushSync:mt});if(Zt.shortCircuited)return;if(Zt.pendingActionResult){let[Dt,lt]=Zt.pendingActionResult;if(Da(lt)&&Xb(lt.error)&<.error.status===404){k=null,$e(ae,{matches:Zt.matches,loaderData:{},errors:{[Dt]:lt.error}});return}}dt=Zt.matches||dt,Qe=Zt.pendingActionResult,We=xw(ae,fe.submission),mt=!1,Ye.active=!1,nt=ed(e.history,nt.url,nt.signal)}let{shortCircuited:ut,matches:Pt,loaderData:Tt,errors:zr}=await Xe(nt,ae,dt,Ye.active,We,fe&&fe.submission,fe&&fe.fetcherSubmission,fe&&fe.replace,fe&&fe.initialHydration===!0,mt,Qe);ut||(k=null,$e(ae,Cr({matches:Pt||dt},QA(Qe),{loaderData:Tt,errors:zr})))}async function st(X,ae,fe,Se,We,dt){dt===void 0&&(dt={}),ft();let mt=Pte(ae,fe);if(ve({navigation:mt},{flushSync:dt.flushSync===!0}),We){let Qe=await zi(Se,ae.pathname,X.signal);if(Qe.type==="aborted")return{shortCircuited:!0};if(Qe.type==="error"){let ut=ku(Qe.partialMatches).route.id;return{matches:Qe.partialMatches,pendingActionResult:[ut,{type:ur.error,error:Qe.error}]}}else if(Qe.matches)Se=Qe.matches;else{let{notFoundMatches:ut,error:Pt,route:Tt}=Pr(ae.pathname);return{matches:ut,pendingActionResult:[Tt.id,{type:ur.error,error:Pt}]}}}let Ye,nt=sh(Se,ae);if(!nt.route.action&&!nt.route.lazy)Ye={type:ur.error,error:ba(405,{method:X.method,pathname:ae.pathname,routeId:nt.route.id})};else if(Ye=(await Ee("action",C,X,[nt],Se,null))[nt.route.id],X.signal.aborted)return{shortCircuited:!0};if(Bu(Ye)){let Qe;return dt&&dt.replace!=null?Qe=dt.replace:Qe=HA(Ye.response.headers.get("Location"),new URL(X.url),c)===C.location.pathname+C.location.search,await ce(X,Ye,!0,{submission:fe,replace:Qe}),{shortCircuited:!0}}if(_l(Ye))throw ba(400,{type:"defer-action"});if(Da(Ye)){let Qe=ku(Se,nt.route.id);return(dt&&dt.replace)!==!0&&($=Hr.Push),{matches:Se,pendingActionResult:[Qe.route.id,Ye]}}return{matches:Se,pendingActionResult:[nt.route.id,Ye]}}async function Xe(X,ae,fe,Se,We,dt,mt,Ye,nt,Qe,ut){let Pt=We||xw(ae,dt),Tt=dt||mt||JA(Pt),zr=!L&&(!h.v7_partialHydration||!nt);if(Se){if(zr){let yr=U(ut);ve(Cr({navigation:Pt},yr!==void 0?{actionData:yr}:{}),{flushSync:Qe})}let Nt=await zi(fe,ae.pathname,X.signal);if(Nt.type==="aborted")return{shortCircuited:!0};if(Nt.type==="error"){let yr=ku(Nt.partialMatches).route.id;return{matches:Nt.partialMatches,loaderData:{},errors:{[yr]:Nt.error}}}else if(Nt.matches)fe=Nt.matches;else{let{error:yr,notFoundMatches:As,route:lu}=Pr(ae.pathname);return{matches:As,loaderData:{},errors:{[lu.id]:yr}}}}let Zt=l||i,[Dt,lt]=UA(e.history,C,fe,Tt,ae,h.v7_partialHydration&&nt===!0,h.v7_skipActionErrorRevalidation,B,V,H,le,J,oe,Zt,c,ut);if(an(Nt=>!(fe&&fe.some(yr=>yr.route.id===Nt))||Dt&&Dt.some(yr=>yr.route.id===Nt)),q=++z,Dt.length===0&<.length===0){let Nt=pt();return $e(ae,Cr({matches:fe,loaderData:{},errors:ut&&Da(ut[1])?{[ut[0]]:ut[1].error}:null},QA(ut),Nt?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Qe}),{shortCircuited:!0}}if(zr){let Nt={};if(!Se){Nt.navigation=Pt;let yr=U(ut);yr!==void 0&&(Nt.actionData=yr)}lt.length>0&&(Nt.fetchers=K(lt)),ve(Nt,{flushSync:Qe})}lt.forEach(Nt=>{Ct(Nt.key),Nt.controller&&W.set(Nt.key,Nt.controller)});let Tr=()=>lt.forEach(Nt=>Ct(Nt.key));k&&k.signal.addEventListener("abort",Tr);let{loaderResults:ou,fetcherResults:da}=await Ae(C,fe,Dt,lt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Tr),lt.forEach(Nt=>W.delete(Nt.key));let eo=Cg(ou);if(eo)return await ce(X,eo.result,!0,{replace:Ye}),{shortCircuited:!0};if(eo=Cg(da),eo)return oe.add(eo.key),await ce(X,eo.result,!0,{replace:Ye}),{shortCircuited:!0};let{loaderData:Ts,errors:iu}=GA(C,fe,ou,ut,lt,da,ge);ge.forEach((Nt,yr)=>{Nt.subscribe(As=>{(As||Nt.done)&&ge.delete(yr)})}),h.v7_partialHydration&&nt&&C.errors&&(iu=Cr({},C.errors,iu));let Ui=pt(),Fc=Me(q),su=Ui||Fc||lt.length>0;return Cr({matches:fe,loaderData:Ts,errors:iu},su?{fetchers:new Map(C.fetchers)}:{})}function U(X){if(X&&!Da(X[1]))return{[X[0]]:X[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function K(X){return X.forEach(ae=>{let fe=C.fetchers.get(ae.key),Se=Np(void 0,fe?fe.data:void 0);C.fetchers.set(ae.key,Se)}),new Map(C.fetchers)}function Z(X,ae,fe,Se){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ct(X);let We=(Se&&Se.flushSync)===!0,dt=l||i,mt=$E(C.location,C.matches,c,h.v7_prependBasename,fe,h.v7_relativeSplatPath,ae,Se==null?void 0:Se.relative),Ye=$u(dt,mt,c),nt=Is(Ye,dt,mt);if(nt.active&&nt.matches&&(Ye=nt.matches),!Ye){Ze(X,ae,ba(404,{pathname:mt}),{flushSync:We});return}let{path:Qe,submission:ut,error:Pt}=BA(h.v7_normalizeFormMethod,!0,mt,Se);if(Pt){Ze(X,ae,Pt,{flushSync:We});return}let Tt=sh(Ye,Qe),zr=(Se&&Se.preventScrollReset)===!0;if(ut&&Ko(ut.formMethod)){ie(X,ae,Qe,Tt,Ye,nt.active,We,zr,ut);return}J.set(X,{routeId:ae,path:Qe}),ue(X,ae,Qe,Tt,Ye,nt.active,We,zr,ut)}async function ie(X,ae,fe,Se,We,dt,mt,Ye,nt){ft(),J.delete(X);function Qe(Ar){if(!Ar.route.action&&!Ar.route.lazy){let Ms=ba(405,{method:nt.formMethod,pathname:fe,routeId:ae});return Ze(X,ae,Ms,{flushSync:mt}),!0}return!1}if(!dt&&Qe(Se))return;let ut=C.fetchers.get(X);De(X,Rte(nt,ut),{flushSync:mt});let Pt=new AbortController,Tt=ed(e.history,fe,Pt.signal,nt);if(dt){let Ar=await zi(We,fe,Tt.signal);if(Ar.type==="aborted")return;if(Ar.type==="error"){Ze(X,ae,Ar.error,{flushSync:mt});return}else if(Ar.matches){if(We=Ar.matches,Se=sh(We,fe),Qe(Se))return}else{Ze(X,ae,ba(404,{pathname:fe}),{flushSync:mt});return}}W.set(X,Pt);let zr=z,Dt=(await Ee("action",C,Tt,[Se],We,X))[Se.route.id];if(Tt.signal.aborted){W.get(X)===Pt&&W.delete(X);return}if(h.v7_fetcherPersist&&le.has(X)){if(Bu(Dt)||Da(Dt)){De(X,Zs(void 0));return}}else{if(Bu(Dt))if(W.delete(X),q>zr){De(X,Zs(void 0));return}else return oe.add(X),De(X,Np(nt)),ce(Tt,Dt,!1,{fetcherSubmission:nt,preventScrollReset:Ye});if(Da(Dt)){Ze(X,ae,Dt.error);return}}if(_l(Dt))throw ba(400,{type:"defer-action"});let lt=C.navigation.location||C.location,Tr=ed(e.history,lt,Pt.signal),ou=l||i,da=C.navigation.state!=="idle"?$u(ou,C.navigation.location,c):C.matches;Et(da,"Didn't find any matches after fetcher action");let eo=++z;ee.set(X,eo);let Ts=Np(nt,Dt.data);C.fetchers.set(X,Ts);let[iu,Ui]=UA(e.history,C,da,nt,lt,!1,h.v7_skipActionErrorRevalidation,B,V,H,le,J,oe,ou,c,[Se.route.id,Dt]);Ui.filter(Ar=>Ar.key!==X).forEach(Ar=>{let Ms=Ar.key,vp=C.fetchers.get(Ms),ym=Np(void 0,vp?vp.data:void 0);C.fetchers.set(Ms,ym),Ct(Ms),Ar.controller&&W.set(Ms,Ar.controller)}),ve({fetchers:new Map(C.fetchers)});let Fc=()=>Ui.forEach(Ar=>Ct(Ar.key));Pt.signal.addEventListener("abort",Fc);let{loaderResults:su,fetcherResults:Nt}=await Ae(C,da,iu,Ui,Tr);if(Pt.signal.aborted)return;Pt.signal.removeEventListener("abort",Fc),ee.delete(X),W.delete(X),Ui.forEach(Ar=>W.delete(Ar.key));let yr=Cg(su);if(yr)return ce(Tr,yr.result,!1,{preventScrollReset:Ye});if(yr=Cg(Nt),yr)return oe.add(yr.key),ce(Tr,yr.result,!1,{preventScrollReset:Ye});let{loaderData:As,errors:lu}=GA(C,da,su,void 0,Ui,Nt,ge);if(C.fetchers.has(X)){let Ar=Zs(Dt.data);C.fetchers.set(X,Ar)}Me(eo),C.navigation.state==="loading"&&eo>q?(Et($,"Expected pending action"),k&&k.abort(),$e(C.navigation.location,{matches:da,loaderData:As,errors:lu,fetchers:new Map(C.fetchers)})):(ve({errors:lu,loaderData:KA(C.loaderData,As,da,lu),fetchers:new Map(C.fetchers)}),B=!1)}async function ue(X,ae,fe,Se,We,dt,mt,Ye,nt){let Qe=C.fetchers.get(X);De(X,Np(nt,Qe?Qe.data:void 0),{flushSync:mt});let ut=new AbortController,Pt=ed(e.history,fe,ut.signal);if(dt){let Dt=await zi(We,fe,Pt.signal);if(Dt.type==="aborted")return;if(Dt.type==="error"){Ze(X,ae,Dt.error,{flushSync:mt});return}else if(Dt.matches)We=Dt.matches,Se=sh(We,fe);else{Ze(X,ae,ba(404,{pathname:fe}),{flushSync:mt});return}}W.set(X,ut);let Tt=z,Zt=(await Ee("loader",C,Pt,[Se],We,X))[Se.route.id];if(_l(Zt)&&(Zt=await eR(Zt,Pt.signal,!0)||Zt),W.get(X)===ut&&W.delete(X),!Pt.signal.aborted){if(le.has(X)){De(X,Zs(void 0));return}if(Bu(Zt))if(q>Tt){De(X,Zs(void 0));return}else{oe.add(X),await ce(Pt,Zt,!1,{preventScrollReset:Ye});return}if(Da(Zt)){Ze(X,ae,Zt.error);return}Et(!_l(Zt),"Unhandled fetcher deferred data"),De(X,Zs(Zt.data))}}async function ce(X,ae,fe,Se){let{submission:We,fetcherSubmission:dt,preventScrollReset:mt,replace:Ye}=Se===void 0?{}:Se;ae.response.headers.has("X-Remix-Revalidate")&&(B=!0);let nt=ae.response.headers.get("Location");Et(nt,"Expected a Location header on the redirect Response"),nt=HA(nt,new URL(X.url),c);let Qe=iv(C.location,nt,{_isRedirect:!0});if(r){let Dt=!1;if(ae.response.headers.has("X-Remix-Reload-Document"))Dt=!0;else if(ZP.test(nt)){const lt=e.history.createURL(nt);Dt=lt.origin!==t.location.origin||Nl(lt.pathname,c)==null}if(Dt){Ye?t.location.replace(nt):t.location.assign(nt);return}}k=null;let ut=Ye===!0||ae.response.headers.has("X-Remix-Replace")?Hr.Replace:Hr.Push,{formMethod:Pt,formAction:Tt,formEncType:zr}=C.navigation;!We&&!dt&&Pt&&Tt&&zr&&(We=JA(C.navigation));let Zt=We||dt;if(lte.has(ae.response.status)&&Zt&&Ko(Zt.formMethod))await Le(ut,Qe,{submission:Cr({},Zt,{formAction:nt}),preventScrollReset:mt||R,enableViewTransition:fe?I:void 0});else{let Dt=xw(Qe,We);await Le(ut,Qe,{overrideNavigation:Dt,fetcherSubmission:dt,preventScrollReset:mt||R,enableViewTransition:fe?I:void 0})}}async function Ee(X,ae,fe,Se,We,dt){let mt,Ye={};try{mt=await mte(s,X,ae,fe,Se,We,dt,o,a)}catch(nt){return Se.forEach(Qe=>{Ye[Qe.route.id]={type:ur.error,error:nt}}),Ye}for(let[nt,Qe]of Object.entries(mt))if(wte(Qe)){let ut=Qe.result;Ye[nt]={type:ur.redirect,response:bte(ut,fe,nt,We,c,h.v7_relativeSplatPath)}}else Ye[nt]=await yte(Qe);return Ye}async function Ae(X,ae,fe,Se,We){let dt=X.matches,mt=Ee("loader",X,We,fe,ae,null),Ye=Promise.all(Se.map(async ut=>{if(ut.matches&&ut.match&&ut.controller){let Tt=(await Ee("loader",X,ed(e.history,ut.path,ut.controller.signal),[ut.match],ut.matches,ut.key))[ut.match.route.id];return{[ut.key]:Tt}}else return Promise.resolve({[ut.key]:{type:ur.error,error:ba(404,{pathname:ut.path})}})})),nt=await mt,Qe=(await Ye).reduce((ut,Pt)=>Object.assign(ut,Pt),{});return await Promise.all([Cte(ae,nt,We.signal,dt,X.loaderData),Ote(ae,Qe,Se)]),{loaderResults:nt,fetcherResults:Qe}}function ft(){B=!0,V.push(...an()),J.forEach((X,ae)=>{W.has(ae)&&H.add(ae),Ct(ae)})}function De(X,ae,fe){fe===void 0&&(fe={}),C.fetchers.set(X,ae),ve({fetchers:new Map(C.fetchers)},{flushSync:(fe&&fe.flushSync)===!0})}function Ze(X,ae,fe,Se){Se===void 0&&(Se={});let We=ku(C.matches,ae);_t(X),ve({errors:{[We.route.id]:fe},fetchers:new Map(C.fetchers)},{flushSync:(Se&&Se.flushSync)===!0})}function Ve(X){return h.v7_fetcherPersist&&(we.set(X,(we.get(X)||0)+1),le.has(X)&&le.delete(X)),C.fetchers.get(X)||ute}function _t(X){let ae=C.fetchers.get(X);W.has(X)&&!(ae&&ae.state==="loading"&&ee.has(X))&&Ct(X),J.delete(X),ee.delete(X),oe.delete(X),le.delete(X),H.delete(X),C.fetchers.delete(X)}function Wt(X){if(h.v7_fetcherPersist){let ae=(we.get(X)||0)-1;ae<=0?(we.delete(X),le.add(X)):we.set(X,ae)}else _t(X);ve({fetchers:new Map(C.fetchers)})}function Ct(X){let ae=W.get(X);ae&&(ae.abort(),W.delete(X))}function qe(X){for(let ae of X){let fe=Ve(ae),Se=Zs(fe.data);C.fetchers.set(ae,Se)}}function pt(){let X=[],ae=!1;for(let fe of oe){let Se=C.fetchers.get(fe);Et(Se,"Expected fetcher: "+fe),Se.state==="loading"&&(oe.delete(fe),X.push(fe),ae=!0)}return qe(X),ae}function Me(X){let ae=[];for(let[fe,Se]of ee)if(Se0}function Ge(X,ae){let fe=C.blockers.get(X)||dd;return pe.get(X)!==ae&&pe.set(X,ae),fe}function wt(X){C.blockers.delete(X),pe.delete(X)}function Ot(X,ae){let fe=C.blockers.get(X)||dd;Et(fe.state==="unblocked"&&ae.state==="blocked"||fe.state==="blocked"&&ae.state==="blocked"||fe.state==="blocked"&&ae.state==="proceeding"||fe.state==="blocked"&&ae.state==="unblocked"||fe.state==="proceeding"&&ae.state==="unblocked","Invalid blocker state transition: "+fe.state+" -> "+ae.state);let Se=new Map(C.blockers);Se.set(X,ae),ve({blockers:Se})}function dr(X){let{currentLocation:ae,nextLocation:fe,historyAction:Se}=X;if(pe.size===0)return;pe.size>1&&fc(!1,"A router only supports one blocker at a time");let We=Array.from(pe.entries()),[dt,mt]=We[We.length-1],Ye=C.blockers.get(dt);if(!(Ye&&Ye.state==="proceeding")&&mt({currentLocation:ae,nextLocation:fe,historyAction:Se}))return dt}function Pr(X){let ae=ba(404,{pathname:X}),fe=l||i,{matches:Se,route:We}=XA(fe);return an(),{notFoundMatches:Se,route:We,error:ae}}function an(X){let ae=[];return ge.forEach((fe,Se)=>{(!X||X(Se))&&(fe.cancel(),ae.push(Se),ge.delete(Se))}),ae}function $a(X,ae,fe){if(b=X,O=ae,w=fe||null,!_&&C.navigation===_w){_=!0;let Se=nu(C.location,C.matches);Se!=null&&ve({restoreScrollPosition:Se})}return()=>{b=null,O=null,w=null}}function Tn(X,ae){return w&&w(X,ae.map(Se=>zee(Se,C.loaderData)))||X.key}function li(X,ae){if(b&&O){let fe=Tn(X,ae);b[fe]=O()}}function nu(X,ae){if(b){let fe=Tn(X,ae),Se=b[fe];if(typeof Se=="number")return Se}return null}function Is(X,ae,fe){if(f)if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:fy(ae,fe,c,!0)}}else return{active:!0,matches:fy(ae,fe,c,!0)||[]};return{active:!1,matches:null}}async function zi(X,ae,fe){if(!f)return{type:"success",matches:X};let Se=X;for(;;){let We=l==null,dt=l||i,mt=o;try{await f({path:ae,matches:Se,patch:(Qe,ut)=>{fe.aborted||WA(Qe,ut,dt,mt,a)}})}catch(Qe){return{type:"error",error:Qe,partialMatches:Se}}finally{We&&!fe.aborted&&(i=[...i])}if(fe.aborted)return{type:"aborted"};let Ye=$u(dt,ae,c);if(Ye)return{type:"success",matches:Ye};let nt=fy(dt,ae,c,!0);if(!nt||Se.length===nt.length&&Se.every((Qe,ut)=>Qe.route.id===nt[ut].route.id))return{type:"success",matches:null};Se=nt}}function hp(X){o={},l=h0(X,a,void 0,o)}function au(X,ae){let fe=l==null;WA(X,ae,l||i,o,a),fe&&(i=[...i],ve({}))}return P={get basename(){return c},get future(){return h},get state(){return C},get routes(){return i},get window(){return t},initialize:xe,subscribe:Te,enableScrollRestoration:$a,navigate:ye,fetch:Z,revalidate:je,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ve,deleteFetcher:Wt,dispose:ne,getBlocker:Ge,deleteBlocker:wt,patchRoutes:au,_internalFetchControllers:W,_internalActiveDeferreds:ge,_internalSetRoutes:hp},P}function fte(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $E(e,t,r,n,a,o,i,l){let c,s;if(i){c=[];for(let h of t)if(c.push(h),h.route.id===i){s=h;break}}else c=t,s=t[t.length-1];let f=Qb(a||".",Kb(c,o),Nl(e.pathname,r)||e.pathname,l==="path");if(a==null&&(f.search=e.search,f.hash=e.hash),(a==null||a===""||a===".")&&s){let h=tR(f.search);if(s.route.index&&!h)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&h){let v=new URLSearchParams(f.search),m=v.getAll("index");v.delete("index"),m.filter(w=>w).forEach(w=>v.append("index",w));let b=v.toString();f.search=b?"?"+b:""}}return n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:ps([r,f.pathname])),pc(f)}function BA(e,t,r,n){if(!n||!fte(n))return{path:r};if(n.formMethod&&!Ete(n.formMethod))return{path:r,error:ba(405,{method:n.formMethod})};let a=()=>({path:r,error:ba(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),l=j5(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ko(i))return a();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((m,b)=>{let[w,O]=b;return""+m+w+"="+O+` -`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!Ko(i))return a();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:l,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return a()}}}Et(typeof FormData=="function","FormData is not available in this environment");let c,s;if(n.formData)c=jE(n.formData),s=n.formData;else if(n.body instanceof FormData)c=jE(n.body),s=n.body;else if(n.body instanceof URLSearchParams)c=n.body,s=qA(c);else if(n.body==null)c=new URLSearchParams,s=new FormData;else try{c=new URLSearchParams(n.body),s=qA(c)}catch{return a()}let f={formMethod:i,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ko(f.formMethod))return{path:r,submission:f};let h=Mi(r);return t&&h.search&&tR(h.search)&&c.append("index",""),h.search="?"+c,{path:pc(h),submission:f}}function zA(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function UA(e,t,r,n,a,o,i,l,c,s,f,h,v,m,b,w){let O=w?Da(w[1])?w[1].error:w[1].data:void 0,_=e.createURL(t.location),y=e.createURL(a),x=r;o&&t.errors?x=zA(r,Object.keys(t.errors)[0],!0):w&&Da(w[1])&&(x=zA(r,w[0]));let S=w?w[1].statusCode:void 0,P=i&&S&&S>=400,C=x.filter((R,k)=>{let{route:I}=R;if(I.lazy)return!0;if(I.loader==null)return!1;if(o)return kE(I,t.loaderData,t.errors);if(pte(t.loaderData,t.matches[k],R)||c.some(L=>L===R.route.id))return!0;let M=t.matches[k],F=R;return VA(R,Cr({currentUrl:_,currentParams:M.params,nextUrl:y,nextParams:F.params},n,{actionResult:O,actionStatus:S,defaultShouldRevalidate:P?!1:l||_.pathname+_.search===y.pathname+y.search||_.search!==y.search||$5(M,F)}))}),$=[];return h.forEach((R,k)=>{if(o||!r.some(B=>B.route.id===R.routeId)||f.has(k))return;let I=$u(m,R.path,b);if(!I){$.push({key:k,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(k),F=sh(I,R.path),L=!1;v.has(k)?L=!1:s.has(k)?(s.delete(k),L=!0):M&&M.state!=="idle"&&M.data===void 0?L=l:L=VA(F,Cr({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:O,actionStatus:S,defaultShouldRevalidate:P?!1:l})),L&&$.push({key:k,routeId:R.routeId,path:R.path,matches:I,match:F,controller:new AbortController})}),[C,$]}function kE(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function pte(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function $5(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function VA(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function WA(e,t,r,n,a){var o;let i;if(e){let s=n[e];Et(s,"No route found to patch children into: routeId = "+e),s.children||(s.children=[]),i=s.children}else i=r;let l=t.filter(s=>!i.some(f=>k5(s,f))),c=h0(l,a,[e||"_","patch",String(((o=i)==null?void 0:o.length)||"0")],n);i.push(...c)}function k5(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>k5(r,o))}):!1}async function hte(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];Et(a,"No route found in manifest");let o={};for(let i in n){let c=a[i]!==void 0&&i!=="hasErrorBoundary";fc(!c,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Nee.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Cr({},t(a),{lazy:void 0}))}async function vte(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function mte(e,t,r,n,a,o,i,l,c,s){let f=o.map(m=>m.route.lazy?hte(m.route,c,l):void 0),h=o.map((m,b)=>{let w=f[b],O=a.some(y=>y.route.id===m.route.id);return Cr({},m,{shouldLoad:O,resolve:async y=>(y&&n.method==="GET"&&(m.route.lazy||m.route.loader)&&(O=!0),O?gte(t,n,m,w,y,s):Promise.resolve({type:ur.data,result:void 0}))})}),v=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:s});try{await Promise.all(f)}catch{}return v}async function gte(e,t,r,n,a,o){let i,l,c=s=>{let f,h=new Promise((b,w)=>f=w);l=()=>f(),t.signal.addEventListener("abort",l);let v=b=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):s({request:t,params:r.params,context:o},...b!==void 0?[b]:[]),m=(async()=>{try{return{type:"data",result:await(a?a(w=>v(w)):v())}}catch(b){return{type:"error",result:b}}})();return Promise.race([m,h])};try{let s=r.route[e];if(n)if(s){let f,[h]=await Promise.all([c(s).catch(v=>{f=v}),n]);if(f!==void 0)throw f;i=h}else if(await n,s=r.route[e],s)i=await c(s);else if(e==="action"){let f=new URL(t.url),h=f.pathname+f.search;throw ba(405,{method:t.method,pathname:h,routeId:r.route.id})}else return{type:ur.data,result:void 0};else if(s)i=await c(s);else{let f=new URL(t.url),h=f.pathname+f.search;throw ba(404,{pathname:h})}Et(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(s){return{type:ur.error,result:s}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function yte(e){let{result:t,type:r}=e;if(I5(t)){let s;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(f){return{type:ur.error,error:f}}return r===ur.error?{type:ur.error,error:new v0(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:ur.data,data:s,statusCode:t.status,headers:t.headers}}if(r===ur.error){if(YA(t)){var n;if(t.data instanceof Error){var a;return{type:ur.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new v0(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:ur.error,error:t,statusCode:Xb(t)?t.status:void 0}}if(Ste(t)){var o,i;return{type:ur.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(YA(t)){var l,c;return{type:ur.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:ur.data,data:t}}function bte(e,t,r,n,a,o){let i=e.headers.get("Location");if(Et(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ZP.test(i)){let l=n.slice(0,n.findIndex(c=>c.route.id===r)+1);i=$E(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}function HA(e,t,r){if(ZP.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Nl(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function ed(e,t,r,n){let a=e.createURL(j5(t)).toString(),o={signal:r};if(n&&Ko(n.formMethod)){let{formMethod:i,formEncType:l}=n;o.method=i.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(n.json)):l==="text/plain"?o.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?o.body=jE(n.formData):o.body=n.formData}return new Request(a,o)}function jE(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function qA(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function _te(e,t,r,n,a){let o={},i=null,l,c=!1,s={},f=r&&Da(r[1])?r[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let v=h.route.id,m=t[v];if(Et(!Bu(m),"Cannot handle redirect results in processLoaderData"),Da(m)){let b=m.error;f!==void 0&&(b=f,f=void 0),i=i||{};{let w=ku(e,v);i[w.route.id]==null&&(i[w.route.id]=b)}o[v]=void 0,c||(c=!0,l=Xb(m.error)?m.error.status:500),m.headers&&(s[v]=m.headers)}else _l(m)?(n.set(v,m.deferredData),o[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!c&&(l=m.statusCode),m.headers&&(s[v]=m.headers)):(o[v]=m.data,m.statusCode&&m.statusCode!==200&&!c&&(l=m.statusCode),m.headers&&(s[v]=m.headers))}),f!==void 0&&r&&(i={[r[0]]:f},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:l||200,loaderHeaders:s}}function GA(e,t,r,n,a,o,i){let{loaderData:l,errors:c}=_te(t,r,n,i);return a.forEach(s=>{let{key:f,match:h,controller:v}=s,m=o[f];if(Et(m,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Da(m)){let b=ku(e.matches,h==null?void 0:h.route.id);c&&c[b.route.id]||(c=Cr({},c,{[b.route.id]:m.error})),e.fetchers.delete(f)}else if(Bu(m))Et(!1,"Unhandled fetcher revalidation redirect");else if(_l(m))Et(!1,"Unhandled fetcher deferred data");else{let b=Zs(m.data);e.fetchers.set(f,b)}}),{loaderData:l,errors:c}}function KA(e,t,r,n){let a=Cr({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function QA(e){return e?Da(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ku(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function XA(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ba(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",a&&r&&n?c="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",c='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",a&&r&&n?c="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(c='Invalid request method "'+a.toUpperCase()+'"')),new v0(e||500,l,new Error(c),!0)}function Cg(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Bu(a))return{key:n,result:a}}}function j5(e){let t=typeof e=="string"?Mi(e):e;return pc(Cr({},t,{hash:""}))}function xte(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function wte(e){return I5(e.result)&&ste.has(e.result.status)}function _l(e){return e.type===ur.deferred}function Da(e){return e.type===ur.error}function Bu(e){return(e&&e.type)===ur.redirect}function YA(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Ste(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function I5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ete(e){return ite.has(e.toLowerCase())}function Ko(e){return ate.has(e.toLowerCase())}async function Cte(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(v==null?void 0:v.route.id)===l);if(!s)continue;let f=n.find(v=>v.route.id===s.route.id),h=f!=null&&!$5(f,s)&&(a&&a[s.route.id])!==void 0;_l(c)&&h&&await eR(c,r,!1).then(v=>{v&&(t[l]=v)})}}async function Ote(e,t,r){for(let n=0;n(s==null?void 0:s.route.id)===o)&&_l(l)&&(Et(i,"Expected an AbortController for revalidating fetcher deferred result"),await eR(l,i.signal,!0).then(s=>{s&&(t[a]=s)}))}}async function eR(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:ur.data,data:e.deferredData.unwrappedData}}catch(a){return{type:ur.error,error:a}}return{type:ur.data,data:e.deferredData.data}}}function tR(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sh(e,t){let r=typeof t=="string"?Mi(t).search:t.search;if(e[e.length-1].route.index&&tR(r||""))return e[e.length-1];let n=O5(e);return n[n.length-1]}function JA(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function xw(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Pte(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Np(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Rte(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Zs(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $te(e,t){try{let r=e.sessionStorage.getItem(R5);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function kte(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(R5,JSON.stringify(r))}catch(n){fc(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function fc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fee(){return Math.random().toString(36).substr(2,8)}function DA(e,t){return{usr:e.state,key:e.key,idx:t}}function iv(e,t,r,n){return r===void 0&&(r=null),Cr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mi(t):t,{state:r,key:t&&t.key||n||Fee()})}function pc(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 Mi(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Lee(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=Hr.Pop,c=null,s=f();s==null&&(s=0,i.replaceState(Cr({},i.state,{idx:s}),""));function f(){return(i.state||{idx:null}).idx}function h(){l=Hr.Pop;let O=f(),_=O==null?null:O-s;s=O,c&&c({action:l,location:w.location,delta:_})}function v(O,_){l=Hr.Push;let y=iv(w.location,O,_);r&&r(y,O),s=f()+1;let x=DA(y,s),S=w.createHref(y);try{i.pushState(x,"",S)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(S)}o&&c&&c({action:l,location:w.location,delta:1})}function m(O,_){l=Hr.Replace;let y=iv(w.location,O,_);r&&r(y,O),s=f();let x=DA(y,s),S=w.createHref(y);i.replaceState(x,"",S),o&&c&&c({action:l,location:w.location,delta:0})}function b(O){let _=a.location.origin!=="null"?a.location.origin:a.location.href,y=typeof O=="string"?O:pc(O);return y=y.replace(/ $/,"%20"),Et(_,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,_)}let w={get action(){return l},get location(){return e(a,i)},listen(O){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(LA,h),c=O,()=>{a.removeEventListener(LA,h),c=null}},createHref(O){return t(a,O)},createURL:b,encodeLocation(O){let _=b(O);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:v,replace:m,go(O){return i.go(O)}};return w}var ur;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ur||(ur={}));const Dee=new Set(["lazy","caseSensitive","path","id","index","children"]);function Nee(e){return e.index===!0}function hb(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],l=typeof a.id=="string"?a.id:i.join("-");if(Et(a.index!==!0||!a.children,"Cannot specify children on an index route"),Et(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Nee(a)){let c=Cr({},a,t(a),{id:l});return n[l]=c,c}else{let c=Cr({},a,t(a),{id:l,children:void 0});return n[l]=c,a.children&&(c.children=hb(a.children,t,i,n)),c}})}function $u(e,t,r){return r===void 0&&(r="/"),fy(e,t,r,!1)}function fy(e,t,r,n){let a=typeof t=="string"?Mi(t):t,o=Nl(a.pathname||"/",r);if(o==null)return null;let i=S5(e);zee(i);let l=null;for(let c=0;l==null&&c{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(Et(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 s=ps([n,c.relativePath]),f=r.concat(c);o.children&&o.children.length>0&&(Et(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),S5(o.children,t,f,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:Kee(s,o.index),routesMeta:f})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let c of E5(o.path))a(o,i,c)}),t}function E5(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=E5(n.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function zee(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Qee(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Uee=/^:[\w-]+$/,Vee=3,Wee=2,Hee=1,qee=10,Gee=-2,NA=e=>e==="*";function Kee(e,t){let r=e.split("/"),n=r.length;return r.some(NA)&&(n+=Gee),t&&(n+=Wee),r.filter(a=>!NA(a)).reduce((a,o)=>a+(Uee.test(o)?Vee:o===""?Hee:qee),n)}function Qee(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Xee(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let l=0;l{let{paramName:v,isOptional:m}=f;if(v==="*"){let w=l[h]||"";i=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const b=l[h];return m&&!b?s[v]=void 0:s[v]=(b||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:i,pattern:e}}function Yee(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),fc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function C5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fc(!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 Nl(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 Jee(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Mi(e):e;return{pathname:r?r.startsWith("/")?r:Zee(r,t):t,search:tte(n),hash:rte(a)}}function Zee(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function bw(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 O5(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function K0(e,t){let r=O5(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Q0(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Mi(e):(a=Cr({},e),Et(!a.pathname||!a.pathname.includes("?"),bw("?","pathname","search",a)),Et(!a.pathname||!a.pathname.includes("#"),bw("#","pathname","hash",a)),Et(!a.search||!a.search.includes("#"),bw("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),h-=1;a.pathname=v.join("/")}l=h>=0?t[h]:"/"}let c=Jee(a,l),s=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(s||f)&&(c.pathname+="/"),c}const ps=e=>e.join("/").replace(/\/\/+/g,"/"),ete=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tte=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rte=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class vb{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function X0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const P5=["post","put","patch","delete"],nte=new Set(P5),ate=["get",...P5],ote=new Set(ate),ite=new Set([301,302,303,307,308]),ste=new Set([307,308]),_w={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lte={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ZP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ute=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),R5="remix-router-transitions";function cte(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Et(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;a=ae=>({hasErrorBoundary:X(ae)})}else a=ute;let o={},i=hb(e.routes,a,void 0,o),l,c=e.basename||"/",s=e.dataStrategy||hte,f=e.patchRoutesOnNavigation,h=Cr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,m=new Set,b=null,w=null,O=null,_=e.hydrationData!=null,y=$u(i,e.history.location,c),x=null;if(y==null&&!f){let X=ba(404,{pathname:e.history.location.pathname}),{matches:ae,route:fe}=XA(i);y=ae,x={[fe.id]:X}}y&&!e.hydrationData&&Ts(y,i,e.history.location.pathname).active&&(y=null);let S;if(y)if(y.some(X=>X.route.lazy))S=!1;else if(!y.some(X=>X.route.loader))S=!0;else if(h.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ae=e.hydrationData?e.hydrationData.errors:null;if(ae){let fe=y.findIndex(Se=>ae[Se.route.id]!==void 0);S=y.slice(0,fe+1).every(Se=>!kE(Se.route,X,ae))}else S=y.every(fe=>!kE(fe.route,X,ae))}else S=e.hydrationData!=null;else if(S=!1,y=[],h.v7_partialHydration){let X=Ts(null,i,e.history.location.pathname);X.active&&X.matches&&(y=X.matches)}let P,C={historyAction:e.history.action,location:e.history.location,matches:y,initialized:S,navigation:_w,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},$=Hr.Pop,R=!1,k,T=!1,M=new Map,F=null,L=!1,B=!1,V=[],H=new Set,W=new Map,z=0,q=-1,ee=new Map,oe=new Set,J=new Map,we=new Map,le=new Set,ge=new Map,pe=new Map,me;function xe(){if(v=e.history.listen(X=>{let{action:ae,location:fe,delta:Se}=X;if(me){me(),me=void 0;return}fc(pe.size===0||Se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let We=dr({currentLocation:C.location,nextLocation:fe,historyAction:ae});if(We&&Se!=null){let dt=new Promise(mt=>{me=mt});e.history.go(Se*-1),Ot(We,{state:"blocked",location:fe,proceed(){Ot(We,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),dt.then(()=>e.history.go(Se))},reset(){let mt=new Map(C.blockers);mt.set(We,dd),ve({blockers:mt})}});return}return Le(ae,fe)}),r){Rte(t,M);let X=()=>$te(t,M);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return C.initialized||Le(Hr.Pop,C.location,{initialHydration:!0}),P}function ne(){v&&v(),F&&F(),m.clear(),k&&k.abort(),C.fetchers.forEach((X,ae)=>_t(ae)),C.blockers.forEach((X,ae)=>wt(ae))}function Ie(X){return m.add(X),()=>m.delete(X)}function ve(X,ae){ae===void 0&&(ae={}),C=Cr({},C,X);let fe=[],Se=[];h.v7_fetcherPersist&&C.fetchers.forEach((We,dt)=>{We.state==="idle"&&(le.has(dt)?Se.push(dt):fe.push(dt))}),[...m].forEach(We=>We(C,{deletedFetchers:Se,viewTransitionOpts:ae.viewTransitionOpts,flushSync:ae.flushSync===!0})),h.v7_fetcherPersist&&(fe.forEach(We=>C.fetchers.delete(We)),Se.forEach(We=>_t(We)))}function $e(X,ae,fe){var Se,We;let{flushSync:dt}=fe===void 0?{}:fe,mt=C.actionData!=null&&C.navigation.formMethod!=null&&Ko(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Se=X.state)==null?void 0:Se._isRedirect)!==!0,Ye;ae.actionData?Object.keys(ae.actionData).length>0?Ye=ae.actionData:Ye=null:mt?Ye=C.actionData:Ye=null;let nt=ae.loaderData?KA(C.loaderData,ae.loaderData,ae.matches||[],ae.errors):C.loaderData,Qe=C.blockers;Qe.size>0&&(Qe=new Map(Qe),Qe.forEach((It,zr)=>Qe.set(zr,dd)));let ut=R===!0||C.navigation.formMethod!=null&&Ko(C.navigation.formMethod)&&((We=X.state)==null?void 0:We._isRedirect)!==!0;l&&(i=l,l=void 0),L||$===Hr.Pop||($===Hr.Push?e.history.push(X,X.state):$===Hr.Replace&&e.history.replace(X,X.state));let Pt;if($===Hr.Pop){let It=M.get(C.location.pathname);It&&It.has(X.pathname)?Pt={currentLocation:C.location,nextLocation:X}:M.has(X.pathname)&&(Pt={currentLocation:X,nextLocation:C.location})}else if(T){let It=M.get(C.location.pathname);It?It.add(X.pathname):(It=new Set([X.pathname]),M.set(C.location.pathname,It)),Pt={currentLocation:C.location,nextLocation:X}}ve(Cr({},ae,{actionData:Ye,loaderData:nt,historyAction:$,location:X,initialized:!0,navigation:_w,revalidation:"idle",restoreScrollPosition:nu(X,ae.matches||C.matches),preventScrollReset:ut,blockers:Qe}),{viewTransitionOpts:Pt,flushSync:dt===!0}),$=Hr.Pop,R=!1,T=!1,L=!1,B=!1,V=[]}async function ye(X,ae){if(typeof X=="number"){e.history.go(X);return}let fe=$E(C.location,C.matches,c,h.v7_prependBasename,X,h.v7_relativeSplatPath,ae==null?void 0:ae.fromRouteId,ae==null?void 0:ae.relative),{path:Se,submission:We,error:dt}=BA(h.v7_normalizeFormMethod,!1,fe,ae),mt=C.location,Ye=iv(C.location,Se,ae&&ae.state);Ye=Cr({},Ye,e.history.encodeLocation(Ye));let nt=ae&&ae.replace!=null?ae.replace:void 0,Qe=Hr.Push;nt===!0?Qe=Hr.Replace:nt===!1||We!=null&&Ko(We.formMethod)&&We.formAction===C.location.pathname+C.location.search&&(Qe=Hr.Replace);let ut=ae&&"preventScrollReset"in ae?ae.preventScrollReset===!0:void 0,Pt=(ae&&ae.flushSync)===!0,It=dr({currentLocation:mt,nextLocation:Ye,historyAction:Qe});if(It){Ot(It,{state:"blocked",location:Ye,proceed(){Ot(It,{state:"proceeding",proceed:void 0,reset:void 0,location:Ye}),ye(X,ae)},reset(){let zr=new Map(C.blockers);zr.set(It,dd),ve({blockers:zr})}});return}return await Le(Qe,Ye,{submission:We,pendingError:dt,preventScrollReset:ut,replace:ae&&ae.replace,enableViewTransition:ae&&ae.viewTransition,flushSync:Pt})}function je(){if(ft(),ve({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){Le(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}Le($||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:T===!0})}}async function Le(X,ae,fe){k&&k.abort(),k=null,$=X,L=(fe&&fe.startUninterruptedRevalidation)===!0,li(C.location,C.matches),R=(fe&&fe.preventScrollReset)===!0,T=(fe&&fe.enableViewTransition)===!0;let Se=l||i,We=fe&&fe.overrideNavigation,dt=$u(Se,ae,c),mt=(fe&&fe.flushSync)===!0,Ye=Ts(dt,Se,ae.pathname);if(Ye.active&&Ye.matches&&(dt=Ye.matches),!dt){let{error:Zt,notFoundMatches:Dt,route:lt}=Pr(ae.pathname);$e(ae,{matches:Dt,loaderData:{},errors:{[lt.id]:Zt}},{flushSync:mt});return}if(C.initialized&&!B&&_te(C.location,ae)&&!(fe&&fe.submission&&Ko(fe.submission.formMethod))){$e(ae,{matches:dt},{flushSync:mt});return}k=new AbortController;let nt=ed(e.history,ae,k.signal,fe&&fe.submission),Qe;if(fe&&fe.pendingError)Qe=[ku(dt).route.id,{type:ur.error,error:fe.pendingError}];else if(fe&&fe.submission&&Ko(fe.submission.formMethod)){let Zt=await st(nt,ae,fe.submission,dt,Ye.active,{replace:fe.replace,flushSync:mt});if(Zt.shortCircuited)return;if(Zt.pendingActionResult){let[Dt,lt]=Zt.pendingActionResult;if(Da(lt)&&X0(lt.error)&<.error.status===404){k=null,$e(ae,{matches:Zt.matches,loaderData:{},errors:{[Dt]:lt.error}});return}}dt=Zt.matches||dt,Qe=Zt.pendingActionResult,We=xw(ae,fe.submission),mt=!1,Ye.active=!1,nt=ed(e.history,nt.url,nt.signal)}let{shortCircuited:ut,matches:Pt,loaderData:It,errors:zr}=await Xe(nt,ae,dt,Ye.active,We,fe&&fe.submission,fe&&fe.fetcherSubmission,fe&&fe.replace,fe&&fe.initialHydration===!0,mt,Qe);ut||(k=null,$e(ae,Cr({matches:Pt||dt},QA(Qe),{loaderData:It,errors:zr})))}async function st(X,ae,fe,Se,We,dt){dt===void 0&&(dt={}),ft();let mt=Ote(ae,fe);if(ve({navigation:mt},{flushSync:dt.flushSync===!0}),We){let Qe=await zi(Se,ae.pathname,X.signal);if(Qe.type==="aborted")return{shortCircuited:!0};if(Qe.type==="error"){let ut=ku(Qe.partialMatches).route.id;return{matches:Qe.partialMatches,pendingActionResult:[ut,{type:ur.error,error:Qe.error}]}}else if(Qe.matches)Se=Qe.matches;else{let{notFoundMatches:ut,error:Pt,route:It}=Pr(ae.pathname);return{matches:ut,pendingActionResult:[It.id,{type:ur.error,error:Pt}]}}}let Ye,nt=sh(Se,ae);if(!nt.route.action&&!nt.route.lazy)Ye={type:ur.error,error:ba(405,{method:X.method,pathname:ae.pathname,routeId:nt.route.id})};else if(Ye=(await Ee("action",C,X,[nt],Se,null))[nt.route.id],X.signal.aborted)return{shortCircuited:!0};if(Bu(Ye)){let Qe;return dt&&dt.replace!=null?Qe=dt.replace:Qe=HA(Ye.response.headers.get("Location"),new URL(X.url),c)===C.location.pathname+C.location.search,await ce(X,Ye,!0,{submission:fe,replace:Qe}),{shortCircuited:!0}}if(_l(Ye))throw ba(400,{type:"defer-action"});if(Da(Ye)){let Qe=ku(Se,nt.route.id);return(dt&&dt.replace)!==!0&&($=Hr.Push),{matches:Se,pendingActionResult:[Qe.route.id,Ye]}}return{matches:Se,pendingActionResult:[nt.route.id,Ye]}}async function Xe(X,ae,fe,Se,We,dt,mt,Ye,nt,Qe,ut){let Pt=We||xw(ae,dt),It=dt||mt||JA(Pt),zr=!L&&(!h.v7_partialHydration||!nt);if(Se){if(zr){let yr=U(ut);ve(Cr({navigation:Pt},yr!==void 0?{actionData:yr}:{}),{flushSync:Qe})}let Nt=await zi(fe,ae.pathname,X.signal);if(Nt.type==="aborted")return{shortCircuited:!0};if(Nt.type==="error"){let yr=ku(Nt.partialMatches).route.id;return{matches:Nt.partialMatches,loaderData:{},errors:{[yr]:Nt.error}}}else if(Nt.matches)fe=Nt.matches;else{let{error:yr,notFoundMatches:As,route:lu}=Pr(ae.pathname);return{matches:As,loaderData:{},errors:{[lu.id]:yr}}}}let Zt=l||i,[Dt,lt]=UA(e.history,C,fe,It,ae,h.v7_partialHydration&&nt===!0,h.v7_skipActionErrorRevalidation,B,V,H,le,J,oe,Zt,c,ut);if(an(Nt=>!(fe&&fe.some(yr=>yr.route.id===Nt))||Dt&&Dt.some(yr=>yr.route.id===Nt)),q=++z,Dt.length===0&<.length===0){let Nt=pt();return $e(ae,Cr({matches:fe,loaderData:{},errors:ut&&Da(ut[1])?{[ut[0]]:ut[1].error}:null},QA(ut),Nt?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Qe}),{shortCircuited:!0}}if(zr){let Nt={};if(!Se){Nt.navigation=Pt;let yr=U(ut);yr!==void 0&&(Nt.actionData=yr)}lt.length>0&&(Nt.fetchers=K(lt)),ve(Nt,{flushSync:Qe})}lt.forEach(Nt=>{Ct(Nt.key),Nt.controller&&W.set(Nt.key,Nt.controller)});let Ir=()=>lt.forEach(Nt=>Ct(Nt.key));k&&k.signal.addEventListener("abort",Ir);let{loaderResults:ou,fetcherResults:da}=await Ae(C,fe,Dt,lt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Ir),lt.forEach(Nt=>W.delete(Nt.key));let eo=Cg(ou);if(eo)return await ce(X,eo.result,!0,{replace:Ye}),{shortCircuited:!0};if(eo=Cg(da),eo)return oe.add(eo.key),await ce(X,eo.result,!0,{replace:Ye}),{shortCircuited:!0};let{loaderData:Is,errors:iu}=GA(C,fe,ou,ut,lt,da,ge);ge.forEach((Nt,yr)=>{Nt.subscribe(As=>{(As||Nt.done)&&ge.delete(yr)})}),h.v7_partialHydration&&nt&&C.errors&&(iu=Cr({},C.errors,iu));let Ui=pt(),Fc=Me(q),su=Ui||Fc||lt.length>0;return Cr({matches:fe,loaderData:Is,errors:iu},su?{fetchers:new Map(C.fetchers)}:{})}function U(X){if(X&&!Da(X[1]))return{[X[0]]:X[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function K(X){return X.forEach(ae=>{let fe=C.fetchers.get(ae.key),Se=Np(void 0,fe?fe.data:void 0);C.fetchers.set(ae.key,Se)}),new Map(C.fetchers)}function Z(X,ae,fe,Se){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ct(X);let We=(Se&&Se.flushSync)===!0,dt=l||i,mt=$E(C.location,C.matches,c,h.v7_prependBasename,fe,h.v7_relativeSplatPath,ae,Se==null?void 0:Se.relative),Ye=$u(dt,mt,c),nt=Ts(Ye,dt,mt);if(nt.active&&nt.matches&&(Ye=nt.matches),!Ye){Ze(X,ae,ba(404,{pathname:mt}),{flushSync:We});return}let{path:Qe,submission:ut,error:Pt}=BA(h.v7_normalizeFormMethod,!0,mt,Se);if(Pt){Ze(X,ae,Pt,{flushSync:We});return}let It=sh(Ye,Qe),zr=(Se&&Se.preventScrollReset)===!0;if(ut&&Ko(ut.formMethod)){ie(X,ae,Qe,It,Ye,nt.active,We,zr,ut);return}J.set(X,{routeId:ae,path:Qe}),ue(X,ae,Qe,It,Ye,nt.active,We,zr,ut)}async function ie(X,ae,fe,Se,We,dt,mt,Ye,nt){ft(),J.delete(X);function Qe(Ar){if(!Ar.route.action&&!Ar.route.lazy){let Ms=ba(405,{method:nt.formMethod,pathname:fe,routeId:ae});return Ze(X,ae,Ms,{flushSync:mt}),!0}return!1}if(!dt&&Qe(Se))return;let ut=C.fetchers.get(X);De(X,Pte(nt,ut),{flushSync:mt});let Pt=new AbortController,It=ed(e.history,fe,Pt.signal,nt);if(dt){let Ar=await zi(We,fe,It.signal);if(Ar.type==="aborted")return;if(Ar.type==="error"){Ze(X,ae,Ar.error,{flushSync:mt});return}else if(Ar.matches){if(We=Ar.matches,Se=sh(We,fe),Qe(Se))return}else{Ze(X,ae,ba(404,{pathname:fe}),{flushSync:mt});return}}W.set(X,Pt);let zr=z,Dt=(await Ee("action",C,It,[Se],We,X))[Se.route.id];if(It.signal.aborted){W.get(X)===Pt&&W.delete(X);return}if(h.v7_fetcherPersist&&le.has(X)){if(Bu(Dt)||Da(Dt)){De(X,Zs(void 0));return}}else{if(Bu(Dt))if(W.delete(X),q>zr){De(X,Zs(void 0));return}else return oe.add(X),De(X,Np(nt)),ce(It,Dt,!1,{fetcherSubmission:nt,preventScrollReset:Ye});if(Da(Dt)){Ze(X,ae,Dt.error);return}}if(_l(Dt))throw ba(400,{type:"defer-action"});let lt=C.navigation.location||C.location,Ir=ed(e.history,lt,Pt.signal),ou=l||i,da=C.navigation.state!=="idle"?$u(ou,C.navigation.location,c):C.matches;Et(da,"Didn't find any matches after fetcher action");let eo=++z;ee.set(X,eo);let Is=Np(nt,Dt.data);C.fetchers.set(X,Is);let[iu,Ui]=UA(e.history,C,da,nt,lt,!1,h.v7_skipActionErrorRevalidation,B,V,H,le,J,oe,ou,c,[Se.route.id,Dt]);Ui.filter(Ar=>Ar.key!==X).forEach(Ar=>{let Ms=Ar.key,vp=C.fetchers.get(Ms),ym=Np(void 0,vp?vp.data:void 0);C.fetchers.set(Ms,ym),Ct(Ms),Ar.controller&&W.set(Ms,Ar.controller)}),ve({fetchers:new Map(C.fetchers)});let Fc=()=>Ui.forEach(Ar=>Ct(Ar.key));Pt.signal.addEventListener("abort",Fc);let{loaderResults:su,fetcherResults:Nt}=await Ae(C,da,iu,Ui,Ir);if(Pt.signal.aborted)return;Pt.signal.removeEventListener("abort",Fc),ee.delete(X),W.delete(X),Ui.forEach(Ar=>W.delete(Ar.key));let yr=Cg(su);if(yr)return ce(Ir,yr.result,!1,{preventScrollReset:Ye});if(yr=Cg(Nt),yr)return oe.add(yr.key),ce(Ir,yr.result,!1,{preventScrollReset:Ye});let{loaderData:As,errors:lu}=GA(C,da,su,void 0,Ui,Nt,ge);if(C.fetchers.has(X)){let Ar=Zs(Dt.data);C.fetchers.set(X,Ar)}Me(eo),C.navigation.state==="loading"&&eo>q?(Et($,"Expected pending action"),k&&k.abort(),$e(C.navigation.location,{matches:da,loaderData:As,errors:lu,fetchers:new Map(C.fetchers)})):(ve({errors:lu,loaderData:KA(C.loaderData,As,da,lu),fetchers:new Map(C.fetchers)}),B=!1)}async function ue(X,ae,fe,Se,We,dt,mt,Ye,nt){let Qe=C.fetchers.get(X);De(X,Np(nt,Qe?Qe.data:void 0),{flushSync:mt});let ut=new AbortController,Pt=ed(e.history,fe,ut.signal);if(dt){let Dt=await zi(We,fe,Pt.signal);if(Dt.type==="aborted")return;if(Dt.type==="error"){Ze(X,ae,Dt.error,{flushSync:mt});return}else if(Dt.matches)We=Dt.matches,Se=sh(We,fe);else{Ze(X,ae,ba(404,{pathname:fe}),{flushSync:mt});return}}W.set(X,ut);let It=z,Zt=(await Ee("loader",C,Pt,[Se],We,X))[Se.route.id];if(_l(Zt)&&(Zt=await eR(Zt,Pt.signal,!0)||Zt),W.get(X)===ut&&W.delete(X),!Pt.signal.aborted){if(le.has(X)){De(X,Zs(void 0));return}if(Bu(Zt))if(q>It){De(X,Zs(void 0));return}else{oe.add(X),await ce(Pt,Zt,!1,{preventScrollReset:Ye});return}if(Da(Zt)){Ze(X,ae,Zt.error);return}Et(!_l(Zt),"Unhandled fetcher deferred data"),De(X,Zs(Zt.data))}}async function ce(X,ae,fe,Se){let{submission:We,fetcherSubmission:dt,preventScrollReset:mt,replace:Ye}=Se===void 0?{}:Se;ae.response.headers.has("X-Remix-Revalidate")&&(B=!0);let nt=ae.response.headers.get("Location");Et(nt,"Expected a Location header on the redirect Response"),nt=HA(nt,new URL(X.url),c);let Qe=iv(C.location,nt,{_isRedirect:!0});if(r){let Dt=!1;if(ae.response.headers.has("X-Remix-Reload-Document"))Dt=!0;else if(ZP.test(nt)){const lt=e.history.createURL(nt);Dt=lt.origin!==t.location.origin||Nl(lt.pathname,c)==null}if(Dt){Ye?t.location.replace(nt):t.location.assign(nt);return}}k=null;let ut=Ye===!0||ae.response.headers.has("X-Remix-Replace")?Hr.Replace:Hr.Push,{formMethod:Pt,formAction:It,formEncType:zr}=C.navigation;!We&&!dt&&Pt&&It&&zr&&(We=JA(C.navigation));let Zt=We||dt;if(ste.has(ae.response.status)&&Zt&&Ko(Zt.formMethod))await Le(ut,Qe,{submission:Cr({},Zt,{formAction:nt}),preventScrollReset:mt||R,enableViewTransition:fe?T:void 0});else{let Dt=xw(Qe,We);await Le(ut,Qe,{overrideNavigation:Dt,fetcherSubmission:dt,preventScrollReset:mt||R,enableViewTransition:fe?T:void 0})}}async function Ee(X,ae,fe,Se,We,dt){let mt,Ye={};try{mt=await vte(s,X,ae,fe,Se,We,dt,o,a)}catch(nt){return Se.forEach(Qe=>{Ye[Qe.route.id]={type:ur.error,error:nt}}),Ye}for(let[nt,Qe]of Object.entries(mt))if(xte(Qe)){let ut=Qe.result;Ye[nt]={type:ur.redirect,response:yte(ut,fe,nt,We,c,h.v7_relativeSplatPath)}}else Ye[nt]=await gte(Qe);return Ye}async function Ae(X,ae,fe,Se,We){let dt=X.matches,mt=Ee("loader",X,We,fe,ae,null),Ye=Promise.all(Se.map(async ut=>{if(ut.matches&&ut.match&&ut.controller){let It=(await Ee("loader",X,ed(e.history,ut.path,ut.controller.signal),[ut.match],ut.matches,ut.key))[ut.match.route.id];return{[ut.key]:It}}else return Promise.resolve({[ut.key]:{type:ur.error,error:ba(404,{pathname:ut.path})}})})),nt=await mt,Qe=(await Ye).reduce((ut,Pt)=>Object.assign(ut,Pt),{});return await Promise.all([Ete(ae,nt,We.signal,dt,X.loaderData),Cte(ae,Qe,Se)]),{loaderResults:nt,fetcherResults:Qe}}function ft(){B=!0,V.push(...an()),J.forEach((X,ae)=>{W.has(ae)&&H.add(ae),Ct(ae)})}function De(X,ae,fe){fe===void 0&&(fe={}),C.fetchers.set(X,ae),ve({fetchers:new Map(C.fetchers)},{flushSync:(fe&&fe.flushSync)===!0})}function Ze(X,ae,fe,Se){Se===void 0&&(Se={});let We=ku(C.matches,ae);_t(X),ve({errors:{[We.route.id]:fe},fetchers:new Map(C.fetchers)},{flushSync:(Se&&Se.flushSync)===!0})}function Ve(X){return h.v7_fetcherPersist&&(we.set(X,(we.get(X)||0)+1),le.has(X)&&le.delete(X)),C.fetchers.get(X)||lte}function _t(X){let ae=C.fetchers.get(X);W.has(X)&&!(ae&&ae.state==="loading"&&ee.has(X))&&Ct(X),J.delete(X),ee.delete(X),oe.delete(X),le.delete(X),H.delete(X),C.fetchers.delete(X)}function Wt(X){if(h.v7_fetcherPersist){let ae=(we.get(X)||0)-1;ae<=0?(we.delete(X),le.add(X)):we.set(X,ae)}else _t(X);ve({fetchers:new Map(C.fetchers)})}function Ct(X){let ae=W.get(X);ae&&(ae.abort(),W.delete(X))}function qe(X){for(let ae of X){let fe=Ve(ae),Se=Zs(fe.data);C.fetchers.set(ae,Se)}}function pt(){let X=[],ae=!1;for(let fe of oe){let Se=C.fetchers.get(fe);Et(Se,"Expected fetcher: "+fe),Se.state==="loading"&&(oe.delete(fe),X.push(fe),ae=!0)}return qe(X),ae}function Me(X){let ae=[];for(let[fe,Se]of ee)if(Se0}function Ge(X,ae){let fe=C.blockers.get(X)||dd;return pe.get(X)!==ae&&pe.set(X,ae),fe}function wt(X){C.blockers.delete(X),pe.delete(X)}function Ot(X,ae){let fe=C.blockers.get(X)||dd;Et(fe.state==="unblocked"&&ae.state==="blocked"||fe.state==="blocked"&&ae.state==="blocked"||fe.state==="blocked"&&ae.state==="proceeding"||fe.state==="blocked"&&ae.state==="unblocked"||fe.state==="proceeding"&&ae.state==="unblocked","Invalid blocker state transition: "+fe.state+" -> "+ae.state);let Se=new Map(C.blockers);Se.set(X,ae),ve({blockers:Se})}function dr(X){let{currentLocation:ae,nextLocation:fe,historyAction:Se}=X;if(pe.size===0)return;pe.size>1&&fc(!1,"A router only supports one blocker at a time");let We=Array.from(pe.entries()),[dt,mt]=We[We.length-1],Ye=C.blockers.get(dt);if(!(Ye&&Ye.state==="proceeding")&&mt({currentLocation:ae,nextLocation:fe,historyAction:Se}))return dt}function Pr(X){let ae=ba(404,{pathname:X}),fe=l||i,{matches:Se,route:We}=XA(fe);return an(),{notFoundMatches:Se,route:We,error:ae}}function an(X){let ae=[];return ge.forEach((fe,Se)=>{(!X||X(Se))&&(fe.cancel(),ae.push(Se),ge.delete(Se))}),ae}function $a(X,ae,fe){if(b=X,O=ae,w=fe||null,!_&&C.navigation===_w){_=!0;let Se=nu(C.location,C.matches);Se!=null&&ve({restoreScrollPosition:Se})}return()=>{b=null,O=null,w=null}}function In(X,ae){return w&&w(X,ae.map(Se=>Bee(Se,C.loaderData)))||X.key}function li(X,ae){if(b&&O){let fe=In(X,ae);b[fe]=O()}}function nu(X,ae){if(b){let fe=In(X,ae),Se=b[fe];if(typeof Se=="number")return Se}return null}function Ts(X,ae,fe){if(f)if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:fy(ae,fe,c,!0)}}else return{active:!0,matches:fy(ae,fe,c,!0)||[]};return{active:!1,matches:null}}async function zi(X,ae,fe){if(!f)return{type:"success",matches:X};let Se=X;for(;;){let We=l==null,dt=l||i,mt=o;try{await f({path:ae,matches:Se,patch:(Qe,ut)=>{fe.aborted||WA(Qe,ut,dt,mt,a)}})}catch(Qe){return{type:"error",error:Qe,partialMatches:Se}}finally{We&&!fe.aborted&&(i=[...i])}if(fe.aborted)return{type:"aborted"};let Ye=$u(dt,ae,c);if(Ye)return{type:"success",matches:Ye};let nt=fy(dt,ae,c,!0);if(!nt||Se.length===nt.length&&Se.every((Qe,ut)=>Qe.route.id===nt[ut].route.id))return{type:"success",matches:null};Se=nt}}function hp(X){o={},l=hb(X,a,void 0,o)}function au(X,ae){let fe=l==null;WA(X,ae,l||i,o,a),fe&&(i=[...i],ve({}))}return P={get basename(){return c},get future(){return h},get state(){return C},get routes(){return i},get window(){return t},initialize:xe,subscribe:Ie,enableScrollRestoration:$a,navigate:ye,fetch:Z,revalidate:je,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ve,deleteFetcher:Wt,dispose:ne,getBlocker:Ge,deleteBlocker:wt,patchRoutes:au,_internalFetchControllers:W,_internalActiveDeferreds:ge,_internalSetRoutes:hp},P}function dte(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $E(e,t,r,n,a,o,i,l){let c,s;if(i){c=[];for(let h of t)if(c.push(h),h.route.id===i){s=h;break}}else c=t,s=t[t.length-1];let f=Q0(a||".",K0(c,o),Nl(e.pathname,r)||e.pathname,l==="path");if(a==null&&(f.search=e.search,f.hash=e.hash),(a==null||a===""||a===".")&&s){let h=tR(f.search);if(s.route.index&&!h)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&h){let v=new URLSearchParams(f.search),m=v.getAll("index");v.delete("index"),m.filter(w=>w).forEach(w=>v.append("index",w));let b=v.toString();f.search=b?"?"+b:""}}return n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:ps([r,f.pathname])),pc(f)}function BA(e,t,r,n){if(!n||!dte(n))return{path:r};if(n.formMethod&&!Ste(n.formMethod))return{path:r,error:ba(405,{method:n.formMethod})};let a=()=>({path:r,error:ba(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),l=j5(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ko(i))return a();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((m,b)=>{let[w,O]=b;return""+m+w+"="+O+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!Ko(i))return a();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:l,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return a()}}}Et(typeof FormData=="function","FormData is not available in this environment");let c,s;if(n.formData)c=jE(n.formData),s=n.formData;else if(n.body instanceof FormData)c=jE(n.body),s=n.body;else if(n.body instanceof URLSearchParams)c=n.body,s=qA(c);else if(n.body==null)c=new URLSearchParams,s=new FormData;else try{c=new URLSearchParams(n.body),s=qA(c)}catch{return a()}let f={formMethod:i,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ko(f.formMethod))return{path:r,submission:f};let h=Mi(r);return t&&h.search&&tR(h.search)&&c.append("index",""),h.search="?"+c,{path:pc(h),submission:f}}function zA(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function UA(e,t,r,n,a,o,i,l,c,s,f,h,v,m,b,w){let O=w?Da(w[1])?w[1].error:w[1].data:void 0,_=e.createURL(t.location),y=e.createURL(a),x=r;o&&t.errors?x=zA(r,Object.keys(t.errors)[0],!0):w&&Da(w[1])&&(x=zA(r,w[0]));let S=w?w[1].statusCode:void 0,P=i&&S&&S>=400,C=x.filter((R,k)=>{let{route:T}=R;if(T.lazy)return!0;if(T.loader==null)return!1;if(o)return kE(T,t.loaderData,t.errors);if(fte(t.loaderData,t.matches[k],R)||c.some(L=>L===R.route.id))return!0;let M=t.matches[k],F=R;return VA(R,Cr({currentUrl:_,currentParams:M.params,nextUrl:y,nextParams:F.params},n,{actionResult:O,actionStatus:S,defaultShouldRevalidate:P?!1:l||_.pathname+_.search===y.pathname+y.search||_.search!==y.search||$5(M,F)}))}),$=[];return h.forEach((R,k)=>{if(o||!r.some(B=>B.route.id===R.routeId)||f.has(k))return;let T=$u(m,R.path,b);if(!T){$.push({key:k,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(k),F=sh(T,R.path),L=!1;v.has(k)?L=!1:s.has(k)?(s.delete(k),L=!0):M&&M.state!=="idle"&&M.data===void 0?L=l:L=VA(F,Cr({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:O,actionStatus:S,defaultShouldRevalidate:P?!1:l})),L&&$.push({key:k,routeId:R.routeId,path:R.path,matches:T,match:F,controller:new AbortController})}),[C,$]}function kE(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function fte(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function $5(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function VA(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function WA(e,t,r,n,a){var o;let i;if(e){let s=n[e];Et(s,"No route found to patch children into: routeId = "+e),s.children||(s.children=[]),i=s.children}else i=r;let l=t.filter(s=>!i.some(f=>k5(s,f))),c=hb(l,a,[e||"_","patch",String(((o=i)==null?void 0:o.length)||"0")],n);i.push(...c)}function k5(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>k5(r,o))}):!1}async function pte(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];Et(a,"No route found in manifest");let o={};for(let i in n){let c=a[i]!==void 0&&i!=="hasErrorBoundary";fc(!c,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!c&&!Dee.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Cr({},t(a),{lazy:void 0}))}async function hte(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function vte(e,t,r,n,a,o,i,l,c,s){let f=o.map(m=>m.route.lazy?pte(m.route,c,l):void 0),h=o.map((m,b)=>{let w=f[b],O=a.some(y=>y.route.id===m.route.id);return Cr({},m,{shouldLoad:O,resolve:async y=>(y&&n.method==="GET"&&(m.route.lazy||m.route.loader)&&(O=!0),O?mte(t,n,m,w,y,s):Promise.resolve({type:ur.data,result:void 0}))})}),v=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:s});try{await Promise.all(f)}catch{}return v}async function mte(e,t,r,n,a,o){let i,l,c=s=>{let f,h=new Promise((b,w)=>f=w);l=()=>f(),t.signal.addEventListener("abort",l);let v=b=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):s({request:t,params:r.params,context:o},...b!==void 0?[b]:[]),m=(async()=>{try{return{type:"data",result:await(a?a(w=>v(w)):v())}}catch(b){return{type:"error",result:b}}})();return Promise.race([m,h])};try{let s=r.route[e];if(n)if(s){let f,[h]=await Promise.all([c(s).catch(v=>{f=v}),n]);if(f!==void 0)throw f;i=h}else if(await n,s=r.route[e],s)i=await c(s);else if(e==="action"){let f=new URL(t.url),h=f.pathname+f.search;throw ba(405,{method:t.method,pathname:h,routeId:r.route.id})}else return{type:ur.data,result:void 0};else if(s)i=await c(s);else{let f=new URL(t.url),h=f.pathname+f.search;throw ba(404,{pathname:h})}Et(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(s){return{type:ur.error,result:s}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function gte(e){let{result:t,type:r}=e;if(T5(t)){let s;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(f){return{type:ur.error,error:f}}return r===ur.error?{type:ur.error,error:new vb(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:ur.data,data:s,statusCode:t.status,headers:t.headers}}if(r===ur.error){if(YA(t)){var n;if(t.data instanceof Error){var a;return{type:ur.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new vb(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:ur.error,error:t,statusCode:X0(t)?t.status:void 0}}if(wte(t)){var o,i;return{type:ur.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(YA(t)){var l,c;return{type:ur.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:ur.data,data:t}}function yte(e,t,r,n,a,o){let i=e.headers.get("Location");if(Et(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ZP.test(i)){let l=n.slice(0,n.findIndex(c=>c.route.id===r)+1);i=$E(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}function HA(e,t,r){if(ZP.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Nl(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function ed(e,t,r,n){let a=e.createURL(j5(t)).toString(),o={signal:r};if(n&&Ko(n.formMethod)){let{formMethod:i,formEncType:l}=n;o.method=i.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(n.json)):l==="text/plain"?o.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?o.body=jE(n.formData):o.body=n.formData}return new Request(a,o)}function jE(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function qA(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function bte(e,t,r,n,a){let o={},i=null,l,c=!1,s={},f=r&&Da(r[1])?r[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let v=h.route.id,m=t[v];if(Et(!Bu(m),"Cannot handle redirect results in processLoaderData"),Da(m)){let b=m.error;f!==void 0&&(b=f,f=void 0),i=i||{};{let w=ku(e,v);i[w.route.id]==null&&(i[w.route.id]=b)}o[v]=void 0,c||(c=!0,l=X0(m.error)?m.error.status:500),m.headers&&(s[v]=m.headers)}else _l(m)?(n.set(v,m.deferredData),o[v]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!c&&(l=m.statusCode),m.headers&&(s[v]=m.headers)):(o[v]=m.data,m.statusCode&&m.statusCode!==200&&!c&&(l=m.statusCode),m.headers&&(s[v]=m.headers))}),f!==void 0&&r&&(i={[r[0]]:f},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:l||200,loaderHeaders:s}}function GA(e,t,r,n,a,o,i){let{loaderData:l,errors:c}=bte(t,r,n,i);return a.forEach(s=>{let{key:f,match:h,controller:v}=s,m=o[f];if(Et(m,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Da(m)){let b=ku(e.matches,h==null?void 0:h.route.id);c&&c[b.route.id]||(c=Cr({},c,{[b.route.id]:m.error})),e.fetchers.delete(f)}else if(Bu(m))Et(!1,"Unhandled fetcher revalidation redirect");else if(_l(m))Et(!1,"Unhandled fetcher deferred data");else{let b=Zs(m.data);e.fetchers.set(f,b)}}),{loaderData:l,errors:c}}function KA(e,t,r,n){let a=Cr({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function QA(e){return e?Da(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ku(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function XA(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ba(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",a&&r&&n?c="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",c='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",a&&r&&n?c="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(c='Invalid request method "'+a.toUpperCase()+'"')),new vb(e||500,l,new Error(c),!0)}function Cg(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Bu(a))return{key:n,result:a}}}function j5(e){let t=typeof e=="string"?Mi(e):e;return pc(Cr({},t,{hash:""}))}function _te(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function xte(e){return T5(e.result)&&ite.has(e.result.status)}function _l(e){return e.type===ur.deferred}function Da(e){return e.type===ur.error}function Bu(e){return(e&&e.type)===ur.redirect}function YA(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function wte(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function T5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ste(e){return ote.has(e.toLowerCase())}function Ko(e){return nte.has(e.toLowerCase())}async function Ete(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(v==null?void 0:v.route.id)===l);if(!s)continue;let f=n.find(v=>v.route.id===s.route.id),h=f!=null&&!$5(f,s)&&(a&&a[s.route.id])!==void 0;_l(c)&&h&&await eR(c,r,!1).then(v=>{v&&(t[l]=v)})}}async function Cte(e,t,r){for(let n=0;n(s==null?void 0:s.route.id)===o)&&_l(l)&&(Et(i,"Expected an AbortController for revalidating fetcher deferred result"),await eR(l,i.signal,!0).then(s=>{s&&(t[a]=s)}))}}async function eR(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:ur.data,data:e.deferredData.unwrappedData}}catch(a){return{type:ur.error,error:a}}return{type:ur.data,data:e.deferredData.data}}}function tR(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sh(e,t){let r=typeof t=="string"?Mi(t).search:t.search;if(e[e.length-1].route.index&&tR(r||""))return e[e.length-1];let n=O5(e);return n[n.length-1]}function JA(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function xw(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ote(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Np(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Pte(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Zs(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Rte(e,t){try{let r=e.sessionStorage.getItem(R5);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function $te(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(R5,JSON.stringify(r))}catch(n){fc(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.27.0 * * Copyright (c) Remix Software Inc. @@ -82,7 +82,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var t=1;tCf(e,C5(t)),[t,e])}function A5(e){d.useContext(Hl).static||d.useLayoutEffect(e)}function Li(){let{isDataRoute:e}=d.useContext(Fi);return e?qte():Tte()}function Tte(){ql()||Et(!1);let e=d.useContext(zv),{basename:t,future:r,navigator:n}=d.useContext(Hl),{matches:a}=d.useContext(Fi),{pathname:o}=hn(),i=JSON.stringify(Kb(a,r.v7_relativeSplatPath)),l=d.useRef(!1);return A5(()=>{l.current=!0}),d.useCallback(function(s,f){if(f===void 0&&(f={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let h=Qb(s,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ps([t,h.pathname])),(f.replace?n.replace:n.push)(h,f.state,f)},[t,n,i,o,e])}const Ate=d.createContext(null);function Mte(e){let t=d.useContext(Fi).outlet;return t&&d.createElement(Ate.Provider,{value:e},t)}function Jb(){let{matches:e}=d.useContext(Fi),t=e[e.length-1];return t?t.params:{}}function nR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Hl),{matches:a}=d.useContext(Fi),{pathname:o}=hn(),i=JSON.stringify(Kb(a,n.v7_relativeSplatPath));return d.useMemo(()=>Qb(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function Fte(e,t){return M5(e,t)}function M5(e,t,r,n){ql()||Et(!1);let{navigator:a}=d.useContext(Hl),{matches:o}=d.useContext(Fi),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let s=hn(),f;if(t){var h;let O=typeof t=="string"?Mi(t):t;c==="/"||(h=O.pathname)!=null&&h.startsWith(c)||Et(!1),f=O}else f=s;let v=f.pathname||"/",m=v;if(c!=="/"){let O=c.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(O.length).join("/")}let b=$u(e,{pathname:m}),w=zte(b&&b.map(O=>Object.assign({},O,{params:Object.assign({},l,O.params),pathname:ps([c,a.encodeLocation?a.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?c:ps([c,a.encodeLocation?a.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,r,n);return t&&w?d.createElement(Yb.Provider,{value:{location:hc({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Hr.Pop}},w):w}function Lte(){let e=Vte(),t=Xb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,null)}const Dte=d.createElement(Lte,null);class Nte 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(Fi.Provider,{value:this.props.routeContext},d.createElement(T5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Bte(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(zv);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Fi.Provider,{value:t},n)}function zte(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=(a=r)==null?void 0:a.errors;if(l!=null){let f=i.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);f>=0||Et(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,s=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((f,h,v)=>{let m,b=!1,w=null,O=null;r&&(m=l&&h.route.id?l[h.route.id]:void 0,w=h.route.errorElement||Dte,c&&(s<0&&v===0?(b=!0,O=null):s===v&&(b=!0,O=h.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,v+1)),y=()=>{let x;return m?x=w:b?x=O:h.route.Component?x=d.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=f,d.createElement(Bte,{match:h,routeContext:{outlet:f,matches:_,isDataRoute:r!=null},children:x})};return r&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?d.createElement(Nte,{location:r.location,revalidation:r.revalidation,component:w,error:m,children:y(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):y()},null)}var aR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(aR||{}),sv=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}(sv||{});function F5(e){let t=d.useContext(zv);return t||Et(!1),t}function L5(e){let t=d.useContext(rR);return t||Et(!1),t}function Ute(e){let t=d.useContext(Fi);return t||Et(!1),t}function D5(e){let t=Ute(),r=t.matches[t.matches.length-1];return r.route.id||Et(!1),r.route.id}function Vte(){var e;let t=d.useContext(T5),r=L5(sv.UseRouteError),n=D5(sv.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let Wte=0;function Hte(e){let{router:t,basename:r}=F5(aR.UseBlocker),n=L5(sv.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(l=>{if(typeof e!="function")return!!e;if(r==="/")return e(l);let{currentLocation:c,nextLocation:s,historyAction:f}=l;return e({currentLocation:hc({},c,{pathname:Nl(c.pathname,r)||c.pathname}),nextLocation:hc({},s,{pathname:Nl(s.pathname,r)||s.pathname}),historyAction:f})},[r,e]);return d.useEffect(()=>{let l=String(++Wte);return o(l),()=>t.deleteBlocker(l)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):dd}function qte(){let{router:e}=F5(aR.UseNavigateStable),t=D5(sv.UseNavigateStable),r=d.useRef(!1);return A5(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,hc({fromRouteId:t},o)))},[e,t])}function Gte(e){let{to:t,replace:r,state:n,relative:a}=e;ql()||Et(!1);let{future:o,static:i}=d.useContext(Hl),{matches:l}=d.useContext(Fi),{pathname:c}=hn(),s=Li(),f=Qb(t,Kb(l,o.v7_relativeSplatPath),c,a==="path"),h=JSON.stringify(f);return d.useEffect(()=>s(JSON.parse(h),{replace:r,state:n,relative:a}),[s,h,a,r,n]),null}function Kte(e){return Mte(e.context)}function On(e){Et(!1)}function Qte(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Hr.Pop,navigator:o,static:i=!1,future:l}=e;ql()&&Et(!1);let c=t.replace(/^\/*/,"/"),s=d.useMemo(()=>({basename:c,navigator:o,static:i,future:hc({v7_relativeSplatPath:!1},l)}),[c,l,o,i]);typeof n=="string"&&(n=Mi(n));let{pathname:f="/",search:h="",hash:v="",state:m=null,key:b="default"}=n,w=d.useMemo(()=>{let O=Nl(f,c);return O==null?null:{location:{pathname:O,search:h,hash:v,state:m,key:b},navigationType:a}},[c,f,h,v,m,b,a]);return w==null?null:d.createElement(Hl.Provider,{value:s},d.createElement(Yb.Provider,{children:r,value:w}))}function xl(e){let{children:t,location:r}=e;return Fte(IE(t),r)}new Promise(()=>{});function IE(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,IE(n.props.children,o));return}n.type!==On&&Et(!1),!n.props.index||!n.props.children||Et(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=IE(n.props.children,o)),r.push(i)}),r}function Xte(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var t=1;tCf(e,C5(t)),[t,e])}function A5(e){d.useContext(Hl).static||d.useLayoutEffect(e)}function Li(){let{isDataRoute:e}=d.useContext(Fi);return e?Hte():Tte()}function Tte(){ql()||Et(!1);let e=d.useContext(zv),{basename:t,future:r,navigator:n}=d.useContext(Hl),{matches:a}=d.useContext(Fi),{pathname:o}=hn(),i=JSON.stringify(K0(a,r.v7_relativeSplatPath)),l=d.useRef(!1);return A5(()=>{l.current=!0}),d.useCallback(function(s,f){if(f===void 0&&(f={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let h=Q0(s,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ps([t,h.pathname])),(f.replace?n.replace:n.push)(h,f.state,f)},[t,n,i,o,e])}const Ite=d.createContext(null);function Ate(e){let t=d.useContext(Fi).outlet;return t&&d.createElement(Ite.Provider,{value:e},t)}function J0(){let{matches:e}=d.useContext(Fi),t=e[e.length-1];return t?t.params:{}}function nR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Hl),{matches:a}=d.useContext(Fi),{pathname:o}=hn(),i=JSON.stringify(K0(a,n.v7_relativeSplatPath));return d.useMemo(()=>Q0(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function Mte(e,t){return M5(e,t)}function M5(e,t,r,n){ql()||Et(!1);let{navigator:a}=d.useContext(Hl),{matches:o}=d.useContext(Fi),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let s=hn(),f;if(t){var h;let O=typeof t=="string"?Mi(t):t;c==="/"||(h=O.pathname)!=null&&h.startsWith(c)||Et(!1),f=O}else f=s;let v=f.pathname||"/",m=v;if(c!=="/"){let O=c.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(O.length).join("/")}let b=$u(e,{pathname:m}),w=Bte(b&&b.map(O=>Object.assign({},O,{params:Object.assign({},l,O.params),pathname:ps([c,a.encodeLocation?a.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?c:ps([c,a.encodeLocation?a.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,r,n);return t&&w?d.createElement(Y0.Provider,{value:{location:hc({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Hr.Pop}},w):w}function Fte(){let e=Ute(),t=X0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,null)}const Lte=d.createElement(Fte,null);class Dte 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(Fi.Provider,{value:this.props.routeContext},d.createElement(I5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nte(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(zv);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(Fi.Provider,{value:t},n)}function Bte(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=(a=r)==null?void 0:a.errors;if(l!=null){let f=i.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);f>=0||Et(!1),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,s=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((f,h,v)=>{let m,b=!1,w=null,O=null;r&&(m=l&&h.route.id?l[h.route.id]:void 0,w=h.route.errorElement||Lte,c&&(s<0&&v===0?(b=!0,O=null):s===v&&(b=!0,O=h.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,v+1)),y=()=>{let x;return m?x=w:b?x=O:h.route.Component?x=d.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=f,d.createElement(Nte,{match:h,routeContext:{outlet:f,matches:_,isDataRoute:r!=null},children:x})};return r&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?d.createElement(Dte,{location:r.location,revalidation:r.revalidation,component:w,error:m,children:y(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):y()},null)}var aR=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(aR||{}),sv=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}(sv||{});function F5(e){let t=d.useContext(zv);return t||Et(!1),t}function L5(e){let t=d.useContext(rR);return t||Et(!1),t}function zte(e){let t=d.useContext(Fi);return t||Et(!1),t}function D5(e){let t=zte(),r=t.matches[t.matches.length-1];return r.route.id||Et(!1),r.route.id}function Ute(){var e;let t=d.useContext(I5),r=L5(sv.UseRouteError),n=D5(sv.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let Vte=0;function Wte(e){let{router:t,basename:r}=F5(aR.UseBlocker),n=L5(sv.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(l=>{if(typeof e!="function")return!!e;if(r==="/")return e(l);let{currentLocation:c,nextLocation:s,historyAction:f}=l;return e({currentLocation:hc({},c,{pathname:Nl(c.pathname,r)||c.pathname}),nextLocation:hc({},s,{pathname:Nl(s.pathname,r)||s.pathname}),historyAction:f})},[r,e]);return d.useEffect(()=>{let l=String(++Vte);return o(l),()=>t.deleteBlocker(l)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):dd}function Hte(){let{router:e}=F5(aR.UseNavigateStable),t=D5(sv.UseNavigateStable),r=d.useRef(!1);return A5(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,hc({fromRouteId:t},o)))},[e,t])}function qte(e){let{to:t,replace:r,state:n,relative:a}=e;ql()||Et(!1);let{future:o,static:i}=d.useContext(Hl),{matches:l}=d.useContext(Fi),{pathname:c}=hn(),s=Li(),f=Q0(t,K0(l,o.v7_relativeSplatPath),c,a==="path"),h=JSON.stringify(f);return d.useEffect(()=>s(JSON.parse(h),{replace:r,state:n,relative:a}),[s,h,a,r,n]),null}function Gte(e){return Ate(e.context)}function On(e){Et(!1)}function Kte(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Hr.Pop,navigator:o,static:i=!1,future:l}=e;ql()&&Et(!1);let c=t.replace(/^\/*/,"/"),s=d.useMemo(()=>({basename:c,navigator:o,static:i,future:hc({v7_relativeSplatPath:!1},l)}),[c,l,o,i]);typeof n=="string"&&(n=Mi(n));let{pathname:f="/",search:h="",hash:v="",state:m=null,key:b="default"}=n,w=d.useMemo(()=>{let O=Nl(f,c);return O==null?null:{location:{pathname:O,search:h,hash:v,state:m,key:b},navigationType:a}},[c,f,h,v,m,b,a]);return w==null?null:d.createElement(Hl.Provider,{value:s},d.createElement(Y0.Provider,{children:r,value:w}))}function xl(e){let{children:t,location:r}=e;return Mte(TE(t),r)}new Promise(()=>{});function TE(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,TE(n.props.children,o));return}n.type!==On&&Et(!1),!n.props.index||!n.props.children||Et(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=TE(n.props.children,o)),r.push(i)}),r}function Qte(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.27.0 * * Copyright (c) Remix Software Inc. @@ -91,18 +91,18 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function Jte(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zte(e,t){return e.button===0&&(!t||t==="_self")&&!Jte(e)}const ere=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],tre="6";try{window.__reactRouterVersion=tre}catch{}function rre(e,t){return dte({basename:t==null?void 0:t.basename,future:lv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Fee({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||nre(),routes:e,mapRouteProperties:Xte,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function nre(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=lv({},t,{errors:are(t.errors)})),t}function are(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new v0(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const ore=d.createContext({isTransitioning:!1}),ire=d.createContext(new Map),sre="startTransition",ZA=Dy[sre],lre="flushSync",eM=jJ[lre];function ure(e){ZA?ZA(e):e()}function Bp(e){eM?eM(e):e()}class cre{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function dre(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,l]=d.useState(),[c,s]=d.useState({isTransitioning:!1}),[f,h]=d.useState(),[v,m]=d.useState(),[b,w]=d.useState(),O=d.useRef(new Map),{v7_startTransition:_}=n||{},y=d.useCallback(R=>{_?ure(R):R()},[_]),x=d.useCallback((R,k)=>{let{deletedFetchers:I,flushSync:M,viewTransitionOpts:F}=k;I.forEach(B=>O.current.delete(B)),R.fetchers.forEach((B,V)=>{B.data!==void 0&&O.current.set(V,B.data)});let L=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||L){M?Bp(()=>o(R)):y(()=>o(R));return}if(M){Bp(()=>{v&&(f&&f.resolve(),v.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{Bp(()=>o(R))});B.finished.finally(()=>{Bp(()=>{h(void 0),m(void 0),l(void 0),s({isTransitioning:!1})})}),Bp(()=>m(B));return}v?(f&&f.resolve(),v.skipTransition(),w({state:R,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(R),s({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,v,f,O,y]);d.useLayoutEffect(()=>r.subscribe(x),[r,x]),d.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new cre)},[c]),d.useEffect(()=>{if(f&&i&&r.window){let R=i,k=f.promise,I=r.window.document.startViewTransition(async()=>{y(()=>o(R)),await k});I.finished.finally(()=>{h(void 0),m(void 0),l(void 0),s({isTransitioning:!1})}),m(I)}},[y,i,f,r.window]),d.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,v,a.location,i]),d.useEffect(()=>{!c.isTransitioning&&b&&(l(b.state),s({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))},[c.isTransitioning,b]),d.useEffect(()=>{},[]);let S=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:R=>r.navigate(R),push:(R,k,I)=>r.navigate(R,{state:k,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(R,k,I)=>r.navigate(R,{replace:!0,state:k,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[r]),P=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:S,static:!1,basename:P}),[r,S,P]),$=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(zv.Provider,{value:C},d.createElement(rR.Provider,{value:a},d.createElement(ire.Provider,{value:O.current},d.createElement(ore.Provider,{value:c},d.createElement(Qte,{basename:P,location:a.location,navigationType:a.historyAction,navigator:S,future:$},a.initialized||r.future.v7_partialHydration?d.createElement(fre,{routes:r.routes,future:r.future,state:a}):t))))),null)}const fre=d.memo(pre);function pre(e){let{routes:t,future:r,state:n}=e;return M5(t,void 0,n,r)}const hre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_s=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:c,to:s,preventScrollReset:f,viewTransition:h}=t,v=Yte(t,ere),{basename:m}=d.useContext(Hl),b,w=!1;if(typeof s=="string"&&vre.test(s)&&(b=s,hre))try{let x=new URL(window.location.href),S=s.startsWith("//")?new URL(x.protocol+s):new URL(s),P=Nl(S.pathname,m);S.origin===x.origin&&P!=null?s=P+S.search+S.hash:w=!0}catch{}let O=jte(s,{relative:a}),_=mre(s,{replace:i,state:l,target:c,preventScrollReset:f,relative:a,viewTransition:h});function y(x){n&&n(x),x.defaultPrevented||_(x)}return d.createElement("a",lv({},v,{href:b||O,onClick:w||o?n:y,ref:r,target:c}))});var tM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(tM||(tM={}));var rM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rM||(rM={}));function mre(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,c=Li(),s=hn(),f=nR(e,{relative:i});return d.useCallback(h=>{if(Zte(h,r)){h.preventDefault();let v=n!==void 0?n:pc(s)===pc(f);c(e,{replace:v,state:a,preventScrollReset:o,relative:i,viewTransition:l})}},[s,c,f,n,a,r,e,o,i,l])}var gre="RaStore",yre=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}},TE=yre(),bre=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(gre).concat(t),n=r.length,a={},o=function(l,c){Object.keys(a).forEach(function(s){a[s]&&a[s].key===l&&a[s].callback(c)})},i=function(l){var c;if(((c=l.key)===null||c===void 0?void 0:c.substring(0,n))===r){var s=l.key.substring(n+1),f=l.newValue?nM(l.newValue):void 0;Object.keys(a).forEach(function(h){a[h]&&a[h].key===s&&(f===null?a[h].callback(void 0):a[h].callback(f??void 0))})}};return{setup:function(){if(TE){var l=Ji().getItem("".concat(r,".version"));if(l&&l!==e){var c=Ji();Object.keys(c).forEach(function(s){s.startsWith(r)&&c.removeItem(s)})}Ji().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){TE&&window.removeEventListener("storage",i)},getItem:function(l,c){var s=Ji().getItem("".concat(r,".").concat(l));return s==null?c:nM(s)},setItem:function(l,c){c===void 0?Ji().removeItem("".concat(r,".").concat(l)):Ji().setItem("".concat(r,".").concat(l),JSON.stringify(c)),o(l,c)},removeItem:function(l){Ji().removeItem("".concat(r,".").concat(l)),o(l,void 0)},removeItems:function(l){var c=Ji();Object.keys(c).forEach(function(s){if(s.startsWith("".concat(r,".").concat(l))){c.removeItem(s);var f=s.substring(n+1);o(f,void 0)}})},reset:function(){var l=Ji();Object.keys(l).forEach(function(c){if(c.startsWith(r)){l.removeItem(c);var s=c.substring(n+1);o(s,void 0)}})},subscribe:function(l,c){var s=Math.random().toString();return a[s]={key:l,callback:c},function(){delete a[s]}}}},nM=function(e){try{return JSON.parse(e)}catch{return e}},_re=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),xre=new _re,Ji=function(){return TE?window.localStorage:xre},wre=typeof Zo=="object"&&Zo&&Zo.Object===Object&&Zo,N5=wre,Sre=N5,Ere=typeof self=="object"&&self&&self.Object===Object&&self,Cre=Sre||Ere||Function("return this")(),ai=Cre,Ore=ai,Pre=Ore.Symbol,Vf=Pre,aM=Vf,B5=Object.prototype,Rre=B5.hasOwnProperty,$re=B5.toString,zp=aM?aM.toStringTag:void 0;function kre(e){var t=Rre.call(e,zp),r=e[zp];try{e[zp]=void 0;var n=!0}catch{}var a=$re.call(e);return n&&(t?e[zp]=r:delete e[zp]),a}var jre=kre,Ire=Object.prototype,Tre=Ire.toString;function Are(e){return Tre.call(e)}var Mre=Are,oM=Vf,Fre=jre,Lre=Mre,Dre="[object Null]",Nre="[object Undefined]",iM=oM?oM.toStringTag:void 0;function Bre(e){return e==null?e===void 0?Nre:Dre:iM&&iM in Object(e)?Fre(e):Lre(e)}var Wf=Bre;function zre(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var oi=zre,Ure=Wf,Vre=oi,Wre="[object AsyncFunction]",Hre="[object Function]",qre="[object GeneratorFunction]",Gre="[object Proxy]";function Kre(e){if(!Vre(e))return!1;var t=Ure(e);return t==Hre||t==qre||t==Wre||t==Gre}var oR=Kre,Qre=ai,Xre=Qre["__core-js_shared__"],Yre=Xre,ww=Yre,sM=function(){var e=/[^.]+$/.exec(ww&&ww.keys&&ww.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jre(e){return!!sM&&sM in e}var Zre=Jre,ene=Function.prototype,tne=ene.toString;function rne(e){if(e!=null){try{return tne.call(e)}catch{}try{return e+""}catch{}}return""}var z5=rne,nne=oR,ane=Zre,one=oi,ine=z5,sne=/[\\^$.*+?()[\]{}|]/g,lne=/^\[object .+?Constructor\]$/,une=Function.prototype,cne=Object.prototype,dne=une.toString,fne=cne.hasOwnProperty,pne=RegExp("^"+dne.call(fne).replace(sne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hne(e){if(!one(e)||ane(e))return!1;var t=nne(e)?pne:lne;return t.test(ine(e))}var vne=hne;function mne(e,t){return e==null?void 0:e[t]}var gne=mne,yne=vne,bne=gne;function _ne(e,t){var r=bne(e,t);return yne(r)?r:void 0}var Oc=_ne,xne=Oc,wne=function(){try{var e=xne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),U5=wne,lM=U5;function Sne(e,t,r){t=="__proto__"&&lM?lM(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var iR=Sne;function Ene(e,t){return e===t||e!==e&&t!==t}var Hf=Ene,Cne=iR,One=Hf,Pne=Object.prototype,Rne=Pne.hasOwnProperty;function $ne(e,t,r){var n=e[t];(!(Rne.call(e,t)&&One(n,r))||r===void 0&&!(t in e))&&Cne(e,t,r)}var sR=$ne,kne=Array.isArray,Di=kne;function jne(e){return e!=null&&typeof e=="object"}var Ps=jne,Ine=Wf,Tne=Ps,Ane="[object Symbol]";function Mne(e){return typeof e=="symbol"||Tne(e)&&Ine(e)==Ane}var Zb=Mne,Fne=Di,Lne=Zb,Dne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nne=/^\w*$/;function Bne(e,t){if(Fne(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Lne(e)?!0:Nne.test(e)||!Dne.test(e)||t!=null&&e in Object(t)}var zne=Bne,Une=Oc,Vne=Une(Object,"create"),e_=Vne,uM=e_;function Wne(){this.__data__=uM?uM(null):{},this.size=0}var Hne=Wne;function qne(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gne=qne,Kne=e_,Qne="__lodash_hash_undefined__",Xne=Object.prototype,Yne=Xne.hasOwnProperty;function Jne(e){var t=this.__data__;if(Kne){var r=t[e];return r===Qne?void 0:r}return Yne.call(t,e)?t[e]:void 0}var Zne=Jne,eae=e_,tae=Object.prototype,rae=tae.hasOwnProperty;function nae(e){var t=this.__data__;return eae?t[e]!==void 0:rae.call(t,e)}var aae=nae,oae=e_,iae="__lodash_hash_undefined__";function sae(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oae&&t===void 0?iae:t,this}var lae=sae,uae=Hne,cae=Gne,dae=Zne,fae=aae,pae=lae;function qf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var $ae=Rae,kae=t_;function jae(e,t){var r=this.__data__,n=kae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Iae=jae,Tae=mae,Aae=Sae,Mae=Oae,Fae=$ae,Lae=Iae;function Gf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++nl))return!1;var s=o.get(e),f=o.get(t);if(s&&f)return s==t&&f==e;var h=-1,v=!0,m=r&nse?new Zie:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e<=ele}var yR=tle,rle=Wf,nle=yR,ale=Ps,ole="[object Arguments]",ile="[object Array]",sle="[object Boolean]",lle="[object Date]",ule="[object Error]",cle="[object Function]",dle="[object Map]",fle="[object Number]",ple="[object Object]",hle="[object RegExp]",vle="[object Set]",mle="[object String]",gle="[object WeakMap]",yle="[object ArrayBuffer]",ble="[object DataView]",_le="[object Float32Array]",xle="[object Float64Array]",wle="[object Int8Array]",Sle="[object Int16Array]",Ele="[object Int32Array]",Cle="[object Uint8Array]",Ole="[object Uint8ClampedArray]",Ple="[object Uint16Array]",Rle="[object Uint32Array]",xr={};xr[_le]=xr[xle]=xr[wle]=xr[Sle]=xr[Ele]=xr[Cle]=xr[Ole]=xr[Ple]=xr[Rle]=!0;xr[ole]=xr[ile]=xr[yle]=xr[sle]=xr[ble]=xr[lle]=xr[ule]=xr[cle]=xr[dle]=xr[fle]=xr[ple]=xr[hle]=xr[vle]=xr[mle]=xr[gle]=!1;function $le(e){return ale(e)&&nle(e.length)&&!!xr[rle(e)]}var kle=$le;function jle(e){return function(t){return e(t)}}var c_=jle,y0={exports:{}};y0.exports;(function(e,t){var r=N5,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l})(y0,y0.exports);var bR=y0.exports,Ile=kle,Tle=c_,xM=bR,wM=xM&&xM.isTypedArray,Ale=wM?Tle(wM):Ile,_R=Ale,Mle=Use,Fle=l_,Lle=Di,Dle=u_,Nle=a_,Ble=_R,zle=Object.prototype,Ule=zle.hasOwnProperty;function Vle(e,t){var r=Lle(e),n=!r&&Fle(e),a=!r&&!n&&Dle(e),o=!r&&!n&&!a&&Ble(e),i=r||n||a||o,l=i?Mle(e.length,String):[],c=l.length;for(var s in e)(t||Ule.call(e,s))&&!(i&&(s=="length"||a&&(s=="offset"||s=="parent")||o&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||Nle(s,c)))&&l.push(s);return l}var rB=Vle,Wle=Object.prototype;function Hle(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Wle;return e===r}var xR=Hle;function qle(e,t){return function(r){return e(t(r))}}var nB=qle,Gle=nB,Kle=Gle(Object.keys,Object),Qle=Kle,Xle=xR,Yle=Qle,Jle=Object.prototype,Zle=Jle.hasOwnProperty;function eue(e){if(!Xle(e))return Yle(e);var t=[];for(var r in Object(e))Zle.call(e,r)&&r!="constructor"&&t.push(r);return t}var tue=eue,rue=oR,nue=yR;function aue(e){return e!=null&&nue(e.length)&&!rue(e)}var d_=aue,oue=rB,iue=tue,sue=d_;function lue(e){return sue(e)?oue(e):iue(e)}var wR=lue,uue=Z5,cue=gR,due=wR;function fue(e){return uue(e,due,cue)}var aB=fue,SM=aB,pue=1,hue=Object.prototype,vue=hue.hasOwnProperty;function mue(e,t,r,n,a,o){var i=r&pue,l=SM(e),c=l.length,s=SM(t),f=s.length;if(c!=f&&!i)return!1;for(var h=c;h--;){var v=l[h];if(!(i?v in t:vue.call(t,v)))return!1}var m=o.get(e),b=o.get(t);if(m&&b)return m==t&&b==e;var w=!0;o.set(e,t),o.set(t,e);for(var O=i;++h0){if(++t>=Dde)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ude=zde,Vde=Lde,Wde=Ude,Hde=Wde(Vde),xB=Hde,qde=bB,Gde=_B,Kde=xB;function Qde(e,t){return Kde(Gde(e,t,qde),e+"")}var p_=Qde,Xde=Hf,Yde=d_,Jde=a_,Zde=oi;function efe(e,t,r){if(!Zde(r))return!1;var n=typeof t;return(n=="number"?Yde(r)&&Jde(t,r.length):n=="string"&&t in r)?Xde(r[t],e):!1}var wB=efe,tfe=p_,rfe=wB;function nfe(e){return tfe(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&rfe(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||$<0||h&&R>=o}function _(){var C=Cw();if(O(C))return y(C);l=setTimeout(_,w(C))}function y(C){return l=void 0,v&&n?m(C):(n=a=void 0,i)}function x(){l!==void 0&&clearTimeout(l),s=0,n=c=a=l=void 0}function S(){return l===void 0?i:y(Cw())}function P(){var C=Cw(),$=O(C);if(n=arguments,a=this,c=C,$){if(l===void 0)return b(c);if(h)return clearTimeout(l),l=setTimeout(_,t),m(c)}return l===void 0&&(l=setTimeout(_,t)),i}return P.cancel=x,P.flush=S,P}var mve=vve;const jR=bn(mve);var gve=function(e,t){t===void 0&&(t=250);var r=yve(e,t),n=r[0],a=r[1],o=hn();d.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},yve=function(e,t){t===void 0&&(t=250);var r=$n(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=jR(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},bve=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return gve(r,a),t},Gl=function(){return d.useContext(RB)},Pc=function(){var e=Gl();return d.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return _i("".concat(e,"/").concat(r));case"create":return _i("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?_i("".concat(e,"/").concat(r)):_i("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?_i("".concat(e,"/").concat(r)):_i("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},_i=function(e){return e.replace("//","/")};function rF(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var $B=function(e,t){if(rF(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. + */function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function Yte(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jte(e,t){return e.button===0&&(!t||t==="_self")&&!Yte(e)}const Zte=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],ere="6";try{window.__reactRouterVersion=ere}catch{}function tre(e,t){return cte({basename:t==null?void 0:t.basename,future:lv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Mee({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||rre(),routes:e,mapRouteProperties:Qte,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function rre(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=lv({},t,{errors:nre(t.errors)})),t}function nre(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new vb(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const are=d.createContext({isTransitioning:!1}),ore=d.createContext(new Map),ire="startTransition",ZA=Dy[ire],sre="flushSync",eM=kJ[sre];function lre(e){ZA?ZA(e):e()}function Bp(e){eM?eM(e):e()}class ure{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function cre(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,l]=d.useState(),[c,s]=d.useState({isTransitioning:!1}),[f,h]=d.useState(),[v,m]=d.useState(),[b,w]=d.useState(),O=d.useRef(new Map),{v7_startTransition:_}=n||{},y=d.useCallback(R=>{_?lre(R):R()},[_]),x=d.useCallback((R,k)=>{let{deletedFetchers:T,flushSync:M,viewTransitionOpts:F}=k;T.forEach(B=>O.current.delete(B)),R.fetchers.forEach((B,V)=>{B.data!==void 0&&O.current.set(V,B.data)});let L=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||L){M?Bp(()=>o(R)):y(()=>o(R));return}if(M){Bp(()=>{v&&(f&&f.resolve(),v.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{Bp(()=>o(R))});B.finished.finally(()=>{Bp(()=>{h(void 0),m(void 0),l(void 0),s({isTransitioning:!1})})}),Bp(()=>m(B));return}v?(f&&f.resolve(),v.skipTransition(),w({state:R,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(R),s({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,v,f,O,y]);d.useLayoutEffect(()=>r.subscribe(x),[r,x]),d.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new ure)},[c]),d.useEffect(()=>{if(f&&i&&r.window){let R=i,k=f.promise,T=r.window.document.startViewTransition(async()=>{y(()=>o(R)),await k});T.finished.finally(()=>{h(void 0),m(void 0),l(void 0),s({isTransitioning:!1})}),m(T)}},[y,i,f,r.window]),d.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,v,a.location,i]),d.useEffect(()=>{!c.isTransitioning&&b&&(l(b.state),s({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))},[c.isTransitioning,b]),d.useEffect(()=>{},[]);let S=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:R=>r.navigate(R),push:(R,k,T)=>r.navigate(R,{state:k,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(R,k,T)=>r.navigate(R,{replace:!0,state:k,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[r]),P=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:S,static:!1,basename:P}),[r,S,P]),$=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(zv.Provider,{value:C},d.createElement(rR.Provider,{value:a},d.createElement(ore.Provider,{value:O.current},d.createElement(are.Provider,{value:c},d.createElement(Kte,{basename:P,location:a.location,navigationType:a.historyAction,navigator:S,future:$},a.initialized||r.future.v7_partialHydration?d.createElement(dre,{routes:r.routes,future:r.future,state:a}):t))))),null)}const dre=d.memo(fre);function fre(e){let{routes:t,future:r,state:n}=e;return M5(t,void 0,n,r)}const pre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_s=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:c,to:s,preventScrollReset:f,viewTransition:h}=t,v=Xte(t,Zte),{basename:m}=d.useContext(Hl),b,w=!1;if(typeof s=="string"&&hre.test(s)&&(b=s,pre))try{let x=new URL(window.location.href),S=s.startsWith("//")?new URL(x.protocol+s):new URL(s),P=Nl(S.pathname,m);S.origin===x.origin&&P!=null?s=P+S.search+S.hash:w=!0}catch{}let O=kte(s,{relative:a}),_=vre(s,{replace:i,state:l,target:c,preventScrollReset:f,relative:a,viewTransition:h});function y(x){n&&n(x),x.defaultPrevented||_(x)}return d.createElement("a",lv({},v,{href:b||O,onClick:w||o?n:y,ref:r,target:c}))});var tM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(tM||(tM={}));var rM;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rM||(rM={}));function vre(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,c=Li(),s=hn(),f=nR(e,{relative:i});return d.useCallback(h=>{if(Jte(h,r)){h.preventDefault();let v=n!==void 0?n:pc(s)===pc(f);c(e,{replace:v,state:a,preventScrollReset:o,relative:i,viewTransition:l})}},[s,c,f,n,a,r,e,o,i,l])}var mre="RaStore",gre=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}},IE=gre(),yre=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(mre).concat(t),n=r.length,a={},o=function(l,c){Object.keys(a).forEach(function(s){a[s]&&a[s].key===l&&a[s].callback(c)})},i=function(l){var c;if(((c=l.key)===null||c===void 0?void 0:c.substring(0,n))===r){var s=l.key.substring(n+1),f=l.newValue?nM(l.newValue):void 0;Object.keys(a).forEach(function(h){a[h]&&a[h].key===s&&(f===null?a[h].callback(void 0):a[h].callback(f??void 0))})}};return{setup:function(){if(IE){var l=Ji().getItem("".concat(r,".version"));if(l&&l!==e){var c=Ji();Object.keys(c).forEach(function(s){s.startsWith(r)&&c.removeItem(s)})}Ji().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){IE&&window.removeEventListener("storage",i)},getItem:function(l,c){var s=Ji().getItem("".concat(r,".").concat(l));return s==null?c:nM(s)},setItem:function(l,c){c===void 0?Ji().removeItem("".concat(r,".").concat(l)):Ji().setItem("".concat(r,".").concat(l),JSON.stringify(c)),o(l,c)},removeItem:function(l){Ji().removeItem("".concat(r,".").concat(l)),o(l,void 0)},removeItems:function(l){var c=Ji();Object.keys(c).forEach(function(s){if(s.startsWith("".concat(r,".").concat(l))){c.removeItem(s);var f=s.substring(n+1);o(f,void 0)}})},reset:function(){var l=Ji();Object.keys(l).forEach(function(c){if(c.startsWith(r)){l.removeItem(c);var s=c.substring(n+1);o(s,void 0)}})},subscribe:function(l,c){var s=Math.random().toString();return a[s]={key:l,callback:c},function(){delete a[s]}}}},nM=function(e){try{return JSON.parse(e)}catch{return e}},bre=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),_re=new bre,Ji=function(){return IE?window.localStorage:_re},xre=typeof Zo=="object"&&Zo&&Zo.Object===Object&&Zo,N5=xre,wre=N5,Sre=typeof self=="object"&&self&&self.Object===Object&&self,Ere=wre||Sre||Function("return this")(),ai=Ere,Cre=ai,Ore=Cre.Symbol,Vf=Ore,aM=Vf,B5=Object.prototype,Pre=B5.hasOwnProperty,Rre=B5.toString,zp=aM?aM.toStringTag:void 0;function $re(e){var t=Pre.call(e,zp),r=e[zp];try{e[zp]=void 0;var n=!0}catch{}var a=Rre.call(e);return n&&(t?e[zp]=r:delete e[zp]),a}var kre=$re,jre=Object.prototype,Tre=jre.toString;function Ire(e){return Tre.call(e)}var Are=Ire,oM=Vf,Mre=kre,Fre=Are,Lre="[object Null]",Dre="[object Undefined]",iM=oM?oM.toStringTag:void 0;function Nre(e){return e==null?e===void 0?Dre:Lre:iM&&iM in Object(e)?Mre(e):Fre(e)}var Wf=Nre;function Bre(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var oi=Bre,zre=Wf,Ure=oi,Vre="[object AsyncFunction]",Wre="[object Function]",Hre="[object GeneratorFunction]",qre="[object Proxy]";function Gre(e){if(!Ure(e))return!1;var t=zre(e);return t==Wre||t==Hre||t==Vre||t==qre}var oR=Gre,Kre=ai,Qre=Kre["__core-js_shared__"],Xre=Qre,ww=Xre,sM=function(){var e=/[^.]+$/.exec(ww&&ww.keys&&ww.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yre(e){return!!sM&&sM in e}var Jre=Yre,Zre=Function.prototype,ene=Zre.toString;function tne(e){if(e!=null){try{return ene.call(e)}catch{}try{return e+""}catch{}}return""}var z5=tne,rne=oR,nne=Jre,ane=oi,one=z5,ine=/[\\^$.*+?()[\]{}|]/g,sne=/^\[object .+?Constructor\]$/,lne=Function.prototype,une=Object.prototype,cne=lne.toString,dne=une.hasOwnProperty,fne=RegExp("^"+cne.call(dne).replace(ine,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pne(e){if(!ane(e)||nne(e))return!1;var t=rne(e)?fne:sne;return t.test(one(e))}var hne=pne;function vne(e,t){return e==null?void 0:e[t]}var mne=vne,gne=hne,yne=mne;function bne(e,t){var r=yne(e,t);return gne(r)?r:void 0}var Oc=bne,_ne=Oc,xne=function(){try{var e=_ne(Object,"defineProperty");return e({},"",{}),e}catch{}}(),U5=xne,lM=U5;function wne(e,t,r){t=="__proto__"&&lM?lM(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var iR=wne;function Sne(e,t){return e===t||e!==e&&t!==t}var Hf=Sne,Ene=iR,Cne=Hf,One=Object.prototype,Pne=One.hasOwnProperty;function Rne(e,t,r){var n=e[t];(!(Pne.call(e,t)&&Cne(n,r))||r===void 0&&!(t in e))&&Ene(e,t,r)}var sR=Rne,$ne=Array.isArray,Di=$ne;function kne(e){return e!=null&&typeof e=="object"}var Ps=kne,jne=Wf,Tne=Ps,Ine="[object Symbol]";function Ane(e){return typeof e=="symbol"||Tne(e)&&jne(e)==Ine}var Z0=Ane,Mne=Di,Fne=Z0,Lne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dne=/^\w*$/;function Nne(e,t){if(Mne(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Fne(e)?!0:Dne.test(e)||!Lne.test(e)||t!=null&&e in Object(t)}var Bne=Nne,zne=Oc,Une=zne(Object,"create"),e_=Une,uM=e_;function Vne(){this.__data__=uM?uM(null):{},this.size=0}var Wne=Vne;function Hne(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qne=Hne,Gne=e_,Kne="__lodash_hash_undefined__",Qne=Object.prototype,Xne=Qne.hasOwnProperty;function Yne(e){var t=this.__data__;if(Gne){var r=t[e];return r===Kne?void 0:r}return Xne.call(t,e)?t[e]:void 0}var Jne=Yne,Zne=e_,eae=Object.prototype,tae=eae.hasOwnProperty;function rae(e){var t=this.__data__;return Zne?t[e]!==void 0:tae.call(t,e)}var nae=rae,aae=e_,oae="__lodash_hash_undefined__";function iae(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=aae&&t===void 0?oae:t,this}var sae=iae,lae=Wne,uae=qne,cae=Jne,dae=nae,fae=sae;function qf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var Rae=Pae,$ae=t_;function kae(e,t){var r=this.__data__,n=$ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var jae=kae,Tae=vae,Iae=wae,Aae=Cae,Mae=Rae,Fae=jae;function Gf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++nl))return!1;var s=o.get(e),f=o.get(t);if(s&&f)return s==t&&f==e;var h=-1,v=!0,m=r&rse?new Jie:void 0;for(o.set(e,t),o.set(t,e);++h-1&&e%1==0&&e<=Zse}var yR=ele,tle=Wf,rle=yR,nle=Ps,ale="[object Arguments]",ole="[object Array]",ile="[object Boolean]",sle="[object Date]",lle="[object Error]",ule="[object Function]",cle="[object Map]",dle="[object Number]",fle="[object Object]",ple="[object RegExp]",hle="[object Set]",vle="[object String]",mle="[object WeakMap]",gle="[object ArrayBuffer]",yle="[object DataView]",ble="[object Float32Array]",_le="[object Float64Array]",xle="[object Int8Array]",wle="[object Int16Array]",Sle="[object Int32Array]",Ele="[object Uint8Array]",Cle="[object Uint8ClampedArray]",Ole="[object Uint16Array]",Ple="[object Uint32Array]",xr={};xr[ble]=xr[_le]=xr[xle]=xr[wle]=xr[Sle]=xr[Ele]=xr[Cle]=xr[Ole]=xr[Ple]=!0;xr[ale]=xr[ole]=xr[gle]=xr[ile]=xr[yle]=xr[sle]=xr[lle]=xr[ule]=xr[cle]=xr[dle]=xr[fle]=xr[ple]=xr[hle]=xr[vle]=xr[mle]=!1;function Rle(e){return nle(e)&&rle(e.length)&&!!xr[tle(e)]}var $le=Rle;function kle(e){return function(t){return e(t)}}var c_=kle,yb={exports:{}};yb.exports;(function(e,t){var r=N5,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=l})(yb,yb.exports);var bR=yb.exports,jle=$le,Tle=c_,xM=bR,wM=xM&&xM.isTypedArray,Ile=wM?Tle(wM):jle,_R=Ile,Ale=zse,Mle=l_,Fle=Di,Lle=u_,Dle=a_,Nle=_R,Ble=Object.prototype,zle=Ble.hasOwnProperty;function Ule(e,t){var r=Fle(e),n=!r&&Mle(e),a=!r&&!n&&Lle(e),o=!r&&!n&&!a&&Nle(e),i=r||n||a||o,l=i?Ale(e.length,String):[],c=l.length;for(var s in e)(t||zle.call(e,s))&&!(i&&(s=="length"||a&&(s=="offset"||s=="parent")||o&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||Dle(s,c)))&&l.push(s);return l}var rB=Ule,Vle=Object.prototype;function Wle(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vle;return e===r}var xR=Wle;function Hle(e,t){return function(r){return e(t(r))}}var nB=Hle,qle=nB,Gle=qle(Object.keys,Object),Kle=Gle,Qle=xR,Xle=Kle,Yle=Object.prototype,Jle=Yle.hasOwnProperty;function Zle(e){if(!Qle(e))return Xle(e);var t=[];for(var r in Object(e))Jle.call(e,r)&&r!="constructor"&&t.push(r);return t}var eue=Zle,tue=oR,rue=yR;function nue(e){return e!=null&&rue(e.length)&&!tue(e)}var d_=nue,aue=rB,oue=eue,iue=d_;function sue(e){return iue(e)?aue(e):oue(e)}var wR=sue,lue=Z5,uue=gR,cue=wR;function due(e){return lue(e,cue,uue)}var aB=due,SM=aB,fue=1,pue=Object.prototype,hue=pue.hasOwnProperty;function vue(e,t,r,n,a,o){var i=r&fue,l=SM(e),c=l.length,s=SM(t),f=s.length;if(c!=f&&!i)return!1;for(var h=c;h--;){var v=l[h];if(!(i?v in t:hue.call(t,v)))return!1}var m=o.get(e),b=o.get(t);if(m&&b)return m==t&&b==e;var w=!0;o.set(e,t),o.set(t,e);for(var O=i;++h0){if(++t>=Lde)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zde=Bde,Ude=Fde,Vde=zde,Wde=Vde(Ude),xB=Wde,Hde=bB,qde=_B,Gde=xB;function Kde(e,t){return Gde(qde(e,t,Hde),e+"")}var p_=Kde,Qde=Hf,Xde=d_,Yde=a_,Jde=oi;function Zde(e,t,r){if(!Jde(r))return!1;var n=typeof t;return(n=="number"?Xde(r)&&Yde(t,r.length):n=="string"&&t in r)?Qde(r[t],e):!1}var wB=Zde,efe=p_,tfe=wB;function rfe(e){return efe(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,i=a>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&tfe(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||$<0||h&&R>=o}function _(){var C=Cw();if(O(C))return y(C);l=setTimeout(_,w(C))}function y(C){return l=void 0,v&&n?m(C):(n=a=void 0,i)}function x(){l!==void 0&&clearTimeout(l),s=0,n=c=a=l=void 0}function S(){return l===void 0?i:y(Cw())}function P(){var C=Cw(),$=O(C);if(n=arguments,a=this,c=C,$){if(l===void 0)return b(c);if(h)return clearTimeout(l),l=setTimeout(_,t),m(c)}return l===void 0&&(l=setTimeout(_,t)),i}return P.cancel=x,P.flush=S,P}var vve=hve;const jR=bn(vve);var mve=function(e,t){t===void 0&&(t=250);var r=gve(e,t),n=r[0],a=r[1],o=hn();d.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},gve=function(e,t){t===void 0&&(t=250);var r=$n(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=jR(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},yve=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return mve(r,a),t},Gl=function(){return d.useContext(RB)},Pc=function(){var e=Gl();return d.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return _i("".concat(e,"/").concat(r));case"create":return _i("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?_i("".concat(e,"/").concat(r)):_i("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?_i("".concat(e,"/").concat(r)):_i("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},_i=function(e){return e.replace("//","/")};function rF(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var $B=function(e,t){if(rF(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing. Be sure to pass the props from the parent. Example: const My`).concat(e,` = props => ( <`).concat(e," {...props}> ); -The missing props are: `).concat(a.join(", ")))},x0=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),NB="%[a-f0-9]{2}",iF=new RegExp("("+NB+")|([^%]+?)","gi"),sF=new RegExp("("+NB+")+","gi");function UE(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([],UE(r),UE(n))}function Uve(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(iF)||[],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)]},qve=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;oy==null,i=Symbol("encodeFragmentIdentifier");function l(y){switch(y.arrayFormat){case"index":return x=>(S,P)=>{const C=S.length;return P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),"[",C,"]"].join("")]:[...S,[f(x,y),"[",f(C,y),"]=",f(P,y)].join("")]};case"bracket":return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),"[]"].join("")]:[...S,[f(x,y),"[]=",f(P,y)].join("")];case"colon-list-separator":return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),":list="].join("")]:[...S,[f(x,y),":list=",f(P,y)].join("")];case"comma":case"separator":case"bracket-separator":{const x=y.arrayFormat==="bracket-separator"?"[]=":"=";return S=>(P,C)=>C===void 0||y.skipNull&&C===null||y.skipEmptyString&&C===""?P:(C=C===null?"":C,P.length===0?[[f(S,y),x,f(C,y)].join("")]:[[P,f(C,y)].join(y.arrayFormatSeparator)])}default:return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,f(x,y)]:[...S,[f(x,y),"=",f(P,y)].join("")]}}function c(y){let x;switch(y.arrayFormat){case"index":return(S,P,C)=>{if(x=/\[(\d*)\]$/.exec(S),S=S.replace(/\[\d*\]$/,""),!x){C[S]=P;return}C[S]===void 0&&(C[S]={}),C[S][x[1]]=P};case"bracket":return(S,P,C)=>{if(x=/(\[\])$/.exec(S),S=S.replace(/\[\]$/,""),!x){C[S]=P;return}if(C[S]===void 0){C[S]=[P];return}C[S]=[].concat(C[S],P)};case"colon-list-separator":return(S,P,C)=>{if(x=/(:list)$/.exec(S),S=S.replace(/:list$/,""),!x){C[S]=P;return}if(C[S]===void 0){C[S]=[P];return}C[S]=[].concat(C[S],P)};case"comma":case"separator":return(S,P,C)=>{const $=typeof P=="string"&&P.includes(y.arrayFormatSeparator),R=typeof P=="string"&&!$&&h(P,y).includes(y.arrayFormatSeparator);P=R?h(P,y):P;const k=$||R?P.split(y.arrayFormatSeparator).map(I=>h(I,y)):P===null?P:h(P,y);C[S]=k};case"bracket-separator":return(S,P,C)=>{const $=/(\[\])$/.test(S);if(S=S.replace(/\[\]$/,""),!$){C[S]=P&&h(P,y);return}const R=P===null?[]:P.split(y.arrayFormatSeparator).map(k=>h(k,y));if(C[S]===void 0){C[S]=R;return}C[S]=[].concat(C[S],R)};default:return(S,P,C)=>{if(C[S]===void 0){C[S]=P;return}C[S]=[].concat(C[S],P)}}}function s(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(y,x){return x.encode?x.strict?t(y):encodeURIComponent(y):y}function h(y,x){return x.decode?r(y):y}function v(y){return Array.isArray(y)?y.sort():typeof y=="object"?v(Object.keys(y)).sort((x,S)=>Number(x)-Number(S)).map(x=>y[x]):y}function m(y){const x=y.indexOf("#");return x!==-1&&(y=y.slice(0,x)),y}function b(y){let x="";const S=y.indexOf("#");return S!==-1&&(x=y.slice(S)),x}function w(y){y=m(y);const x=y.indexOf("?");return x===-1?"":y.slice(x+1)}function O(y,x){return x.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):x.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function _(y,x){x=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},x),s(x.arrayFormatSeparator);const S=c(x),P=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return P;for(const C of y.split("&")){if(C==="")continue;let[$,R]=n(x.decode?C.replace(/\+/g," "):C,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(x.arrayFormat)?R:h(R,x),S(h($,x),R,P)}for(const C of Object.keys(P)){const $=P[C];if(typeof $=="object"&&$!==null)for(const R of Object.keys($))$[R]=O($[R],x);else P[C]=O($,x)}return x.sort===!1?P:(x.sort===!0?Object.keys(P).sort():Object.keys(P).sort(x.sort)).reduce((C,$)=>{const R=P[$];return R&&typeof R=="object"&&!Array.isArray(R)?C[$]=v(R):C[$]=R,C},Object.create(null))}e.extract=w,e.parse=_,e.stringify=(y,x)=>{if(!y)return"";x=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},x),s(x.arrayFormatSeparator);const S=R=>x.skipNull&&o(y[R])||x.skipEmptyString&&y[R]==="",P=l(x),C={};for(const R of Object.keys(y))S(R)||(C[R]=y[R]);const $=Object.keys(C);return x.sort!==!1&&$.sort(x.sort),$.map(R=>{const k=y[R];return k===void 0?"":k===null?f(R,x):Array.isArray(k)?k.length===0&&x.arrayFormat==="bracket-separator"?f(R,x)+"[]":k.reduce(P(R),[]).join("&"):f(R,x)+"="+f(k,x)}).filter(R=>R.length>0).join("&")},e.parseUrl=(y,x)=>{x=Object.assign({decode:!0},x);const[S,P]=n(y,"#");return Object.assign({url:S.split("?")[0]||"",query:_(w(y),x)},x&&x.parseFragmentIdentifier&&P?{fragmentIdentifier:h(P,x)}:{})},e.stringifyUrl=(y,x)=>{x=Object.assign({encode:!0,strict:!0,[i]:!0},x);const S=m(y.url).split("?")[0]||"",P=e.extract(y.url),C=e.parse(P,{sort:!1}),$=Object.assign(C,y.query);let R=e.stringify($,x);R&&(R=`?${R}`);let k=b(y.url);return y.fragmentIdentifier&&(k=`#${x[i]?f(y.fragmentIdentifier,x):y.fragmentIdentifier}`),`${S}${R}${k}`},e.pick=(y,x,S)=>{S=Object.assign({parseFragmentIdentifier:!0,[i]:!1},S);const{url:P,query:C,fragmentIdentifier:$}=e.parseUrl(y,S);return e.stringifyUrl({url:P,query:a(C,x),fragmentIdentifier:$},S)},e.exclude=(y,x,S)=>{const P=Array.isArray(x)?C=>!x.includes(C):(C,$)=>!x(C,$);return e.pick(y,P,S)}})(vc);var w0=function(){return w0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new DB(c&&c.message||o,a,c)):Promise.resolve({status:a,headers:i,body:l,json:c})})},Qve=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},BB=function(e,t){var r;return t===void 0&&(t=[]),Qve(e)?Object.assign.apply(Object,Gve([{}],Object.keys(e).map(function(n){return BB(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},zB={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function o(c,s,f,h,v){if(typeof f!="function")throw new TypeError("The listener must be a function");var m=new a(f,h||c,v),b=r?r+s:s;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],m]:c._events[b].push(m):(c._events[b]=m,c._eventsCount++),c}function i(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var s=[],f,h;if(this._eventsCount===0)return s;for(h in f=this._events)t.call(f,h)&&s.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},l.prototype.listeners=function(s){var f=r?r+s:s,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var v=0,m=h.length,b=new Array(m);v0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!e.message?t:e.message},tme=["getList","getMany","getManyReference"],Xa=function(){var e=d.useContext(TR)||IR,t=UB(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=ke.useRef(e.isMutating()>0),a=ke.useState(r.current||n.current),o=a[0],i=a[1];return ke.useEffect(function(){t.current=!0;var l=e.getQueryCache().subscribe(Gr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),c=e.getMutationCache().subscribe(Gr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,l(),c()}},[e]),o},Ni=function(){var e=Ao();return d.useCallback(function(){e.invalidateQueries()},[e])},VE=function(){return VE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(l)?t>1?WB(l,t-1,r,n,a):dme(a,l):n||(a[a.length]=l)}return a}var AR=WB;function pme(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var HB=Cme;function Ome(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=Bme){var s=t?null:Dme(e);if(s)return Nme(s);i=!1,a=Lme,c=new Ame}else c=t?[]:l;e:for(;++n0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?B(V):V},{updatedAt:F}),a.setQueriesData({queryKey:[R,"getManyReference"]},function(V){return V&&V.data?{data:B(V.data),total:V.total}:V},{updatedAt:F})},S=Cc(sr(sr({mutationFn:function($){var R=$===void 0?{}:$,k=R.resource,I=k===void 0?e:k,M=R.id,F=M===void 0?m.current.id:M,L=R.data,B=L===void 0?m.current.data:L,V=R.meta,H=V===void 0?m.current.meta:V,W=R.previousData,z=W===void 0?m.current.previousData:W;if(!I)throw new Error("useUpdate mutation requires a non-empty resource");if(F==null)throw new Error("useUpdate mutation requires a non-empty id");if(!B)throw new Error("useUpdate mutation requires a non-empty data object");return w.current(I,{id:F,data:B,previousData:z,meta:H}).then(function(q){var ee=q.data;return ee})}},h),{onMutate:function($){return fF(void 0,void 0,void 0,function(){var R;return pF(this,function(k){switch(k.label){case 0:return h.onMutate?[4,h.onMutate($)]:[3,2];case 1:return R=k.sent()||{},[2,sr({snapshot:b.current},R)];case 2:return[2,{snapshot:b.current}]}})})},onError:function($,R,k){if(R===void 0&&(R={}),(v.current==="optimistic"||v.current==="undoable")&&k.snapshot.forEach(function(I){var M=I[0],F=I[1];a.setQueryData(M,F)}),O.current)return O.current($,R,k);if(h.onError)return h.onError($,R,k)},onSuccess:function($,R,k){if(R===void 0&&(R={}),v.current==="pessimistic"){var I=R.resource,M=I===void 0?e:I,F=R.id,L=F===void 0?o:F;x({resource:M,id:L,data:$}),h.onSuccess&&!y.current&&h.onSuccess($,R,k)}},onSettled:function($,R,k,I){if(k===void 0&&(k={}),(v.current==="optimistic"||v.current==="undoable")&&I.snapshot.forEach(function(M){var F=M[0];a.invalidateQueries({queryKey:F})}),_.current)return _.current($,R,k,I);if(h.onSettled)return h.onSettled($,R,k,I)}})),P=function($,R,k){return $===void 0&&($=e),R===void 0&&(R={}),k===void 0&&(k={}),fF(void 0,void 0,void 0,function(){var I,M,F,L,B,V,H,W,z,q,ee,oe,J,we,le;return pF(this,function(ge){switch(ge.label){case 0:return I=k.mutationMode,M=k.returnPromise,F=M===void 0?h.returnPromise:M,L=k.onError,B=k.onSettled,V=k.onSuccess,H=hF(k,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),f?w.current=f(n.update.bind(n)):w.current=n.update,y.current=!!V,O.current=L,_.current=B,m.current=t,I&&(v.current=I),F&&v.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),v.current==="pessimistic"?F?[2,S.mutateAsync(sr({resource:$},R),sr({onSuccess:V},H))]:[2,S.mutate(sr({resource:$},R),sr({onSuccess:V},H))]:(W=R.id,z=W===void 0?o:W,q=R.data,ee=q===void 0?i:q,oe=R.meta,J=oe===void 0?l:oe,we=a.getQueryData([$,"getOne",{id:String(z),meta:J}]),le=[[$,"getOne",{id:String(z),meta:J}],[$,"getList"],[$,"getInfiniteList"],[$,"getMany"],[$,"getManyReference"]],b.current=le.reduce(function(pe,me){return pe.concat(a.getQueriesData({queryKey:me}))},[]),[4,Promise.all(b.current.map(function(pe){var me=pe[0];return a.cancelQueries({queryKey:me})}))]);case 1:return ge.sent(),x({resource:$,id:z,data:ee}),setTimeout(function(){V?V(sr(sr({},we),ee),sr({resource:$},R),{snapshot:b.current}):h.onSuccess&&!y.current&&h.onSuccess(sr(sr({},we),ee),sr({resource:$},R),{snapshot:b.current})},0),v.current==="optimistic"?[2,S.mutate(sr({resource:$},R))]:(uv.once("end",function(pe){var me=pe.isUndo;me?b.current.forEach(function(xe){var ne=xe[0],Te=xe[1];a.setQueryData(ne,Te)}):S.mutate(sr({resource:$},R))}),[2])}})})},C=d.useMemo(function(){return sr({isLoading:S.isPending},S)},[S]);return[Gt(P),C]},Qn=function(){return Qn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?k(I):I},{updatedAt:R}),a.setQueriesData({queryKey:[P,"getManyReference"]},function(I){if(!I||!I.data)return I;var M=k(I.data),F=M.length0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?R(k):k},{updatedAt:$}),a.setQueriesData({queryKey:[S,"getManyReference"]},function(k){if(!k||!k.data)return k;var I=R(k.data),M=I.length=0?i[s].apply(i,Up(Up([],h,!1),[f],!1)):o.apply(void 0,h)};return i.length>0?i[s].apply(i,Up(Up([],l,!1),[f],!1)):o.apply(void 0,l)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},S0=function(){return S0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;oe||w(typeof H=="string"?H:H.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof H=="string"?H:H instanceof Error||typeof H=="object"&&H!==null&&H.hasOwnProperty("message")?H.message:void 0}})}},P),{returnPromise:!0,getMutateWithMiddlewares:R})),M=I[0],F=I[1].isPending,L=d.useCallback(function(H,W){W===void 0&&(W={});var z=W.transform,q=W.meta,ee=EF(W,["transform","meta"]);return Promise.resolve(z?z(H):o?o(H):H).then(function(oe){return wF(void 0,void 0,void 0,function(){var J,we;return SF(this,function(le){switch(le.label){case 0:return le.trys.push([0,2,,3]),[4,M(c,{data:oe,meta:q??S},ee)];case 1:return le.sent(),[3,3];case 2:return J=le.sent(),(J instanceof DB||typeof J=="object"&&J!==null&&J.hasOwnProperty("body"))&&((we=J.body)===null||we===void 0?void 0:we.errors)!=null?[2,J.body.errors]:[3,3];case 3:return[2]}})})})},[M,S,c,o]),B=Zf(),V=b("ra.page.create",{name:B(c,1)});return{isFetching:!1,isLoading:!1,isPending:F,saving:F,defaultTitle:V,save:L,resource:c,record:_,redirect:v,registerMutationMiddleware:$,unregisterMutationMiddleware:k}},Vge=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=vc.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},Wge=function(e,t){return t?"edit":e?"show":"list"},FR=d.createContext(void 0);FR.displayName="RecordContext";var Kl=function(e){var t=e.children,r=e.value;return d.createElement(FR.Provider,{value:r},t)},LR=d.createContext(null);LR.displayName="CreateContext";var E0=function(){return E0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;(!je||a!=="pessimistic")&&w(typeof ne=="string"?ne:ne.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ne=="string"?ne:ne instanceof Error||typeof ne=="object"&&ne!==null&&ne.hasOwnProperty("message")?ne.message:void 0}})}},k),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:F})),pe=ge[0],me=ge[1].isPending,xe=d.useCallback(function(ne,Te){var ve=Te===void 0?{}:Te,$e=ve.onSuccess,ye=ve.onError,je=ve.transform,Le=ve.meta;return Promise.resolve(je?je(ne,{previousData:le.previousData}):h?h(ne,{previousData:le.previousData}):ne).then(function(st){return CF(void 0,void 0,void 0,function(){var Xe,U;return OF(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,pe(v,{id:x,data:st,meta:Le??C},{onError:ye,onSuccess:$e})];case 1:return K.sent(),[3,3];case 2:return Xe=K.sent(),((U=Xe.body)===null||U===void 0?void 0:U.errors)!=null?[2,Xe.body.errors]:[3,3];case 3:return[2]}})})})},[x,C,v,h,pe,le.previousData]);return{defaultTitle:we,error:H,isFetching:z,isLoading:W,isPending:q,mutationMode:a,record:V,redirect:f,refetch:ee,registerMutationMiddleware:M,resource:v,save:xe,saving:me,unregisterMutationMiddleware:L}},Xge="list",Kt=function(e){var t=d.useContext(FR);return e&&e.record||t},ZB=function(e){var t=e.value,r=e.children;return t?d.createElement(Kl,{value:t},r):r},DR=d.createContext(null);DR.displayName="EditContext";var Yge=function(e){var t=e.children,r=e.value;return d.createElement(DR.Provider,{value:r},d.createElement(XB,{value:YB(r)},d.createElement(Kl,{value:r&&r.record},t)))},Jge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":rz(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!s.item&&o===void 0&&(o=s);a=a.concat(c)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),pye=fye,hye=typeof window>"u"?Zo:window;function vye(e,t){if(e instanceof hye[t])return!0;switch(typeof e>"u"?"undefined":rz(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Mw,RF;function mye(){return RF||(RF=1,Mw=function(t,r,n){var a=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,l=t==='"'?function(c){return c.indexOf(r)>=0||c.indexOf(a)>=0||c.indexOf('"')>=0}:function(c){return c.indexOf(r)>=0||c.indexOf(a)>=0};return function(c){return n&&(c=""+c),c.replace&&(c=c.replace(o,i),(n||l(c))&&(c=t+c+t)),c}}),Mw}var gye=function(){function e(t,r){for(var n=0;n0&&(h=h.concat(Array(v).join(".").split("."))),n&&this._options.fillGaps&&(h=h.map(o)),a.push(h.join(this._options.rowDelimiter)),n=h}}catch(m){l=!0,c=m}finally{try{!i&&s.return&&s.return()}finally{if(l)throw c}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,l=function(O){var _=a._headers.indexOf(O);return _===-1&&(a._headers.push(O),_=a._headers.indexOf(O)),_};i=function(O){var _=[],y=function(B){return _.push(B.map(function(V){return V??""}))},x=function(){return new Array(a._headers.length).fill(null)},S={},P=x(),C=!0,$=!1,R=void 0;try{for(var k=O[Symbol.iterator](),I;!(C=(I=k.next()).done);C=!0){var M=I.value,F=l(M.item);if(P[F]!=null&&(y(P),P=x()),S[F]=S[F]||0,a._options.fillTopRow&&S[F]<_.length){_[S[F]][F]=a._escape(M.value),S[F]+=1;continue}P[F]=a._escape(M.value),S[F]+=1}}catch(L){$=!0,R=L}finally{try{!C&&k.return&&k.return()}finally{if($)throw R}}P.length>0&&y(P),o=o.concat(a._checkRows(_))};var c=!0,s=!1,f=void 0;try{for(var h=r[Symbol.iterator](),v;!(c=(v=h.next()).done);c=!0){var m=v.value,b=a._handler.check(m,a._options.mainPathItem,m,r);i(b)}}catch(w){s=!0,f=w}finally{try{!c&&h.return&&h.return()}finally{if(s)throw f}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),$F(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,l=[[],[]];i=function(h){var v=h.value||h.value===0?h.value.toString():n._options.undefinedString;if(v=n._escape(v),n._options.verticalOutput){var m=[h.item,v];a.push(m.join(n._options.rowDelimiter))}else l[0].push(h.item),l[1].push(v)};for(var c in r){var s="";this._options.mainPathItem&&(s=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[c],s+c,c,r),o.forEach(i)}return this._options.verticalOutput||(a.push(l[0].join(this._options.rowDelimiter)),a.push(l[1].join(this._options.rowDelimiter))),$F(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),xye=_ye,wye=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Sye=wye,jF=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},IF=xye,TF=Sye,Eye=tz,Cye=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:Eye,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":jF(o))==="object"&&(r=o)}else if(arguments.length===1){var l=Array.prototype.slice.call(arguments),c=l[0];if((typeof c>"u"?"undefined":jF(c))==="object"){var s=Object.keys(e),f=Object.keys(c),h=f.every(function(b){return s.includes(b)});f.length>0&&h?r=c:t=c}else t=c}else return new TF(new IF(e));var v=Object.assign({},e,r),m=new IF(v);return t?new Promise(function(b,w){m.parse(t,function(O,_){if(n)return n(O,_);if(O)return w(O);if(w)return b(_)})}):new TF};const Oye=bn(Cye);var Pye=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},Rye=function(e,t,r,n){return Oye(e,function(a,o){return Pye(o,n)})},$ye=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)},[])))},kye=function(e){return function(t,r,n){return e.getMany(n,{ids:$ye(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,l){return i[l.id]=l,i},{})})}},td=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||b(function(y){if(!Array.isArray(y))return td([],y,!0);var x=y.indexOf(_);return x>-1?td(td([],y.slice(0,x),!0),y.slice(x+1),!0):td(td([],y,!0),[_],!1)})},clearSelection:function(){w()}}},[b,w]);return[m,O]},Fw=[];function yo(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useRef(!1);d.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=d.useCallback(function(i){if(a.current)return n(i)},[a,n]);return[r,o]}function v_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=yo(!1),n=r[0],a=r[1];return d.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function jye(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var cs=function(){return cs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&S(k)},[m.search]);var I=d.useCallback(function(ee){C.current&&(P.current?P.current=aF(P.current,ee):(P.current=aF(k,ee),setTimeout(function(){P.current&&(a&&!v?_(P.current):a&&v?S(P.current):b({search:"?".concat(vc.stringify(cs(cs({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ee.type===BE}}),P.current=void 0)},0)))},AF(AF([],$,!0),[b],!1)),M=d.useCallback(function(ee){return I({type:jB,payload:ee})},[I]),F=d.useCallback(function(ee){return I({type:BE,payload:ee})},[I]),L=d.useCallback(function(ee){return I({type:IB,payload:ee})},[I]),B=k.filter||LF,V=k.displayedFilters||LF,H=jR(function(ee,oe){I({type:zE,payload:{filter:Bl(ee),displayedFilters:oe}})},r),W=d.useCallback(function(ee,oe,J){return oe===void 0&&(oe=void 0),J===void 0&&(J=!1),J?H(ee,oe):I({type:zE,payload:{filter:Bl(ee),displayedFilters:oe}})},[I]),z=d.useCallback(function(ee){I({type:AB,payload:ee})},[I]),q=d.useCallback(function(ee,oe){I({type:TB,payload:{filterName:ee,defaultValue:oe}})},[I]);return[cs(cs({filterValues:B,requestSignature:$},k),{displayedFilters:V}),{changeParams:I,setPage:F,setPerPage:L,setSort:M,setFilters:W,hideFilter:z,showFilter:q}]},MF=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Tye=function(e){var t=e.search,r=vc.parse(t);return MF(r,"filter"),MF(r,"displayedFilters"),r},Aye=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Mye=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:Aye(r)?cs({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),cs(cs({},i),{page:FF(i.page,1),perPage:FF(i.perPage,10)})},FF=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},LF={},Fye={field:"id",order:nc},DF={},m_=d.createContext(null);m_.displayName="ListContext";var nz=d.createContext(void 0),Lye=function(e){return d.useMemo(function(){return h_(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};nz.displayName="ListFilterContext";var az=d.createContext(void 0),Dye=function(e){return d.useMemo(function(){return h_(e,["sort","setSort","resource"])},[e.sort,e.setSort])};az.displayName="ListSortContext";var NR=d.createContext(void 0);NR.displayName="ListPaginationContext";var Nye=function(e){return d.useMemo(function(){return h_(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},BR=function(e){var t=e.value,r=e.children;return d.createElement(m_.Provider,{value:t},d.createElement(nz.Provider,{value:Lye(t)},d.createElement(az.Provider,{value:Dye(t)},d.createElement(NR.Provider,{value:Nye(t)},r))))},ac=function(){return ac=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(F==null||(F==null?void 0:F.length)===0)){$.setPage(1);return}if(B!=null){var le=Math.ceil(B/C.perPage)||1;!z&&C.page>le&&$.setPage(le)}},[z,C.page,C.perPage,F,$,B]);var oe=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),J=Zf(),we=x("ra.page.list",{name:J(O,2)});return{sort:oe,data:F,meta:V,defaultTitle:we,displayedFilters:C.displayedFilters,error:H,exporter:i,filter:l,filterValues:C.filterValues,hideFilter:$.hideFilter,isFetching:z,isLoading:W,isPending:q,onSelect:I.select,onToggleItem:I.toggle,onUnselectItems:I.clearSelection,page:C.page,perPage:C.perPage,refetch:ee,resource:O,selectedIds:k,setFilters:$.setFilters,setPage:$.setPage,setPerPage:$.setPerPage,setSort:$.setSort,showFilter:$.showFilter,total:B,hasNextPage:L?L.hasNextPage:B!=null?C.page*C.perPage1}},Uye={field:"id",order:nc},Vye=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],cv=function(e){return Object.keys(e).filter(function(t){return!Vye.includes(t)}).reduce(function(t,r){var n;return ac(ac({},t),(n={},n[r]=e[r],n))},{})},Wye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Pg(Pg([],c.slice(0,s),!0),c.slice(s+1),!0):r?[t]:Pg(Pg([],c,!0),[t],!1)})},[o,t,r]);return[i,l]},Gye=function(e,t){var r=$n("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(l){return t.some(function(c){return c==l})}):!1,i=d.useCallback(function(){var l=n.filter(function(c){return!t.some(function(s){return s==c})});a(o?l:l.concat(t))},[n,a,o,t]);return[o,i]},kd=function(){return kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(ue,J.field)?J.order==="ASC"?1:-1:qt(ie,J.field)1,hideFilter:Le,isFetching:P,isLoading:R,isPending:M,onSelect:me.select,onToggleItem:me.toggle,onUnselectItems:me.clearSelection,page:W,perPage:q,resource:"",refetch:Kye,selectedIds:pe,setFilters:Xe,setPage:z,setPerPage:ee,setSort:le,showFilter:st,total:B==null?void 0:B.total}},Qye={},Hn=function(){var e=d.useContext(m_);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},Xye=p_,Yye=Hf,Jye=wB,Zye=Yf,iz=Object.prototype,e0e=iz.hasOwnProperty,t0e=Xye(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Jye(t[0],t[1],a)&&(n=1);++r1,setSort:B,showFilter:pe,total:ve}},i0e={},Gv=e=>e.type==="checkbox",jd=e=>e instanceof Date,na=e=>e==null;const cz=e=>typeof e=="object";var rn=e=>!na(e)&&!Array.isArray(e)&&cz(e)&&!jd(e),dz=e=>rn(e)&&e.target?Gv(e.target)?e.target.checked:e.target.value:e,s0e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,fz=(e,t)=>e.has(s0e(t)),l0e=e=>{const t=e.constructor&&e.constructor.prototype;return rn(t)&&t.hasOwnProperty("isPrototypeOf")},UR=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function un(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(!(UR&&(e instanceof Blob||e instanceof FileList))&&(r||rn(e)))if(t=r?[]:{},!r&&!l0e(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=un(e[n]));else return e;return t}var Kv=e=>Array.isArray(e)?e.filter(Boolean):[],vr=e=>e===void 0,Ne=(e,t,r)=>{if(!t||!rn(e))return r;const n=Kv(t.split(/[,[\].]+?/)).reduce((a,o)=>na(a)?a:a[o],e);return vr(n)||n===e?vr(e[t])?r:e[t]:n},po=e=>typeof e=="boolean",VR=e=>/^\w*$/.test(e),pz=e=>Kv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),lr=(e,t,r)=>{let n=-1;const a=VR(t)?[t]:pz(t),o=a.length,i=o-1;for(;++nke.useContext(hz),vz=e=>{const{children:t,...r}=e;return ke.createElement(hz.Provider,{value:r},t)};var mz=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==_o.all&&(t._proxyFormState[i]=!n||_o.all),r&&(r[i]=!0),e[i]}});return a},ea=e=>rn(e)&&!Object.keys(e).length,gz=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return ea(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||_o.all))},wa=e=>Array.isArray(e)?e:[e],yz=(e,t,r)=>!e||!t||e===t||wa(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function g_(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Qv(e){const t=Mo(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,l]=ke.useState(r._formState),c=ke.useRef(!0),s=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=ke.useRef(a);return f.current=a,g_({disabled:n,next:h=>c.current&&yz(f.current,h.name,o)&&gz(h,s.current,r._updateFormState)&&l({...r._formState,...h}),subject:r._subjects.state}),ke.useEffect(()=>(c.current=!0,s.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),mz(i,r,s.current,!1)}var Ci=e=>typeof e=="string",bz=(e,t,r,n,a)=>Ci(e)?(n&&t.watch.add(e),Ne(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Ne(r,o))):(n&&(t.watchAll=!0),r);function _z(e){const t=Mo(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},l=ke.useRef(n);l.current=n,g_({disabled:o,subject:r._subjects.values,next:f=>{yz(l.current,f.name,i)&&s(un(bz(l.current,r._names,f.values||r._formValues,!1,a)))}});const[c,s]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),c}function u0e(e){const t=Mo(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=fz(a._names.array,r),l=_z({control:a,name:r,defaultValue:Ne(a._formValues,r,Ne(a._defaultValues,r,e.defaultValue)),exact:!0}),c=Qv({control:a,name:r,exact:!0}),s=ke.useRef(a.register(r,{...e.rules,value:l,...po(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const f=a._options.shouldUnregister||o,h=(v,m)=>{const b=Ne(a._fields,v);b&&b._f&&(b._f.mount=m)};if(h(r,!0),f){const v=un(Ne(a._options.defaultValues,r));lr(a._defaultValues,r,v),vr(Ne(a._formValues,r))&&lr(a._formValues,r,v)}return()=>{(i?f&&!a._state.action:f)?a.unregister(r):h(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Ne(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Ne(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:l,...po(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:ke.useCallback(f=>s.current.onChange({target:{value:dz(f),name:r},type:C0.CHANGE}),[r]),onBlur:ke.useCallback(()=>s.current.onBlur({target:{value:Ne(a._formValues,r),name:r},type:C0.BLUR}),[r,a]),ref:ke.useCallback(f=>{const h=Ne(a._fields,r);h&&f&&(h._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:v=>f.setCustomValidity(v),reportValidity:()=>f.reportValidity()})},[a._fields,r])},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ne(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ne(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ne(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ne(c.validatingFields,r)},error:{enumerable:!0,get:()=>Ne(c.errors,r)}})}}var c0e=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},qs=()=>{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)})},Dw=(e,t,r={})=>r.shouldFocus||vr(r.shouldFocus)?r.focusName||`${e}.${vr(r.focusIndex)?t:r.focusIndex}.`:"",Eh=e=>({isOnSubmit:!e||e===_o.onSubmit,isOnBlur:e===_o.onBlur,isOnChange:e===_o.onChange,isOnAll:e===_o.all,isOnTouch:e===_o.onTouched}),GE=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ud=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Ne(e,a);if(o){const{_f:i,...l}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if(Ud(l,t))break}else if(rn(l)&&Ud(l,t))break}}};var xz=(e,t,r)=>{const n=wa(Ne(e,r));return lr(n,"root",t[r]),lr(e,r,n),e},WR=e=>e.type==="file",ds=e=>typeof e=="function",O0=e=>{if(!UR)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},vy=e=>Ci(e),HR=e=>e.type==="radio",P0=e=>e instanceof RegExp;const BF={value:!1,isValid:!1},zF={value:!0,isValid:!0};var wz=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&&!vr(e[0].attributes.value)?vr(e[0].value)||e[0].value===""?zF:{value:e[0].value,isValid:!0}:zF:BF}return BF};const UF={isValid:!1,value:null};var Sz=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,UF):UF;function VF(e,t,r="validate"){if(vy(e)||Array.isArray(e)&&e.every(vy)||po(e)&&!e)return{type:r,message:vy(e)?e:"",ref:t}}var rd=e=>rn(e)&&!P0(e)?e:{value:e,message:""},KE=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:l,maxLength:c,minLength:s,min:f,max:h,pattern:v,validate:m,name:b,valueAsNumber:w,mount:O,disabled:_}=e._f,y=Ne(t,b);if(!O||_)return{};const x=i?i[0]:o,S=F=>{n&&x.reportValidity&&(x.setCustomValidity(po(F)?"":F||""),x.reportValidity())},P={},C=HR(o),$=Gv(o),R=C||$,k=(w||WR(o))&&vr(o.value)&&vr(y)||O0(o)&&o.value===""||y===""||Array.isArray(y)&&!y.length,I=c0e.bind(null,b,r,P),M=(F,L,B,V=Zi.maxLength,H=Zi.minLength)=>{const W=F?L:B;P[b]={type:F?V:H,message:W,ref:o,...I(F?V:H,W)}};if(a?!Array.isArray(y)||!y.length:l&&(!R&&(k||na(y))||po(y)&&!y||$&&!wz(i).isValid||C&&!Sz(i).isValid)){const{value:F,message:L}=vy(l)?{value:!!l,message:l}:rd(l);if(F&&(P[b]={type:Zi.required,message:L,ref:x,...I(Zi.required,L)},!r))return S(L),P}if(!k&&(!na(f)||!na(h))){let F,L;const B=rd(h),V=rd(f);if(!na(y)&&!isNaN(y)){const H=o.valueAsNumber||y&&+y;na(B.value)||(F=H>B.value),na(V.value)||(L=Hnew Date(new Date().toDateString()+" "+ee),z=o.type=="time",q=o.type=="week";Ci(B.value)&&y&&(F=z?W(y)>W(B.value):q?y>B.value:H>new Date(B.value)),Ci(V.value)&&y&&(L=z?W(y)+F.value,V=!na(L.value)&&y.length<+L.value;if((B||V)&&(M(B,F.message,L.message),!r))return S(P[b].message),P}if(v&&!k&&Ci(y)){const{value:F,message:L}=rd(v);if(P0(F)&&!y.match(F)&&(P[b]={type:Zi.pattern,message:L,ref:o,...I(Zi.pattern,L)},!r))return S(L),P}if(m){if(ds(m)){const F=await m(y,t),L=VF(F,x);if(L&&(P[b]={...L,...I(Zi.validate,L.message)},!r))return S(L.message),P}else if(rn(m)){let F={};for(const L in m){if(!ea(F)&&!r)break;const B=VF(await m[L](y,t),x,L);B&&(F={...B,...I(L,B.message)},S(B.message),r&&(P[b]=F))}if(!ea(F)&&(P[b]={ref:x,...F},!r))return P}}return S(!0),P},Nw=(e,t)=>[...e,...wa(t)],Bw=e=>Array.isArray(e)?e.map(()=>{}):void 0;function zw(e,t,r){return[...e.slice(0,t),...wa(r),...e.slice(t)]}var Uw=(e,t,r)=>Array.isArray(e)?(vr(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Vw=(e,t)=>[...wa(t),...wa(e)];function d0e(e,t){let r=0;const n=[...e];for(const a of t)n.splice(a-r,1),r++;return Kv(n).length?n:[]}var Ww=(e,t)=>vr(t)?[]:d0e(e,wa(t).sort((r,n)=>r-n)),Hw=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function f0e(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function h0e(e){const t=Mo(),{control:r=t.control,name:n,keyName:a="id",shouldUnregister:o}=e,[i,l]=ke.useState(r._getFieldArray(n)),c=ke.useRef(r._getFieldArray(n).map(qs)),s=ke.useRef(i),f=ke.useRef(n),h=ke.useRef(!1);f.current=n,s.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),g_({next:({values:P,name:C})=>{if(C===f.current||!C){const $=Ne(P,f.current);Array.isArray($)&&(l($),c.current=$.map(qs))}},subject:r._subjects.array});const v=ke.useCallback(P=>{h.current=!0,r._updateFieldArray(n,P)},[r,n]),m=(P,C)=>{const $=wa(un(P)),R=Nw(r._getFieldArray(n),$);r._names.focus=Dw(n,R.length-1,C),c.current=Nw(c.current,$.map(qs)),v(R),l(R),r._updateFieldArray(n,R,Nw,{argA:Bw(P)})},b=(P,C)=>{const $=wa(un(P)),R=Vw(r._getFieldArray(n),$);r._names.focus=Dw(n,0,C),c.current=Vw(c.current,$.map(qs)),v(R),l(R),r._updateFieldArray(n,R,Vw,{argA:Bw(P)})},w=P=>{const C=Ww(r._getFieldArray(n),P);c.current=Ww(c.current,P),v(C),l(C),r._updateFieldArray(n,C,Ww,{argA:P})},O=(P,C,$)=>{const R=wa(un(C)),k=zw(r._getFieldArray(n),P,R);r._names.focus=Dw(n,P,$),c.current=zw(c.current,P,R.map(qs)),v(k),l(k),r._updateFieldArray(n,k,zw,{argA:P,argB:Bw(C)})},_=(P,C)=>{const $=r._getFieldArray(n);Hw($,P,C),Hw(c.current,P,C),v($),l($),r._updateFieldArray(n,$,Hw,{argA:P,argB:C},!1)},y=(P,C)=>{const $=r._getFieldArray(n);Uw($,P,C),Uw(c.current,P,C),v($),l($),r._updateFieldArray(n,$,Uw,{argA:P,argB:C},!1)},x=(P,C)=>{const $=un(C),R=WF(r._getFieldArray(n),P,$);c.current=[...R].map((k,I)=>!k||I===P?qs():c.current[I]),v(R),l([...R]),r._updateFieldArray(n,R,WF,{argA:P,argB:$},!0,!1)},S=P=>{const C=wa(un(P));c.current=C.map(qs),v([...C]),l([...C]),r._updateFieldArray(n,[...C],$=>$,{},!0,!1)};return ke.useEffect(()=>{if(r._state.action=!1,GE(n,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!Eh(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const C=Ne(P.errors,n),$=Ne(r._formState.errors,n);($?!C&&$.type||C&&($.type!==C.type||$.message!==C.message):C&&C.type)&&(C?lr(r._formState.errors,n,C):Jr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=Ne(r._fields,n);P&&P._f&&!(Eh(r._options.reValidateMode).isOnSubmit&&Eh(r._options.mode).isOnSubmit)&&KE(P,r._formValues,r._options.criteriaMode===_o.all,r._options.shouldUseNativeValidation,!0).then(C=>!ea(C)&&r._subjects.state.next({errors:xz(r._formState.errors,C,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Ud(r._fields,(P,C)=>{if(r._names.focus&&C.startsWith(r._names.focus)&&P.focus)return P.focus(),1}),r._names.focus="",r._updateValid(),h.current=!1},[i,n,r]),ke.useEffect(()=>(!Ne(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)}),[n,r,a,o]),{swap:ke.useCallback(_,[v,n,r]),move:ke.useCallback(y,[v,n,r]),prepend:ke.useCallback(b,[v,n,r]),append:ke.useCallback(m,[v,n,r]),remove:ke.useCallback(w,[v,n,r]),insert:ke.useCallback(O,[v,n,r]),update:ke.useCallback(x,[v,n,r]),replace:ke.useCallback(S,[v,n,r]),fields:ke.useMemo(()=>i.map((P,C)=>({...P,[a]:c.current[C]||qs()})),[i,a])}}var qw=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},R0=e=>na(e)||!cz(e);function il(e,t){if(R0(e)||R0(t))return e===t;if(jd(e)&&jd(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(jd(o)&&jd(i)||rn(o)&&rn(i)||Array.isArray(o)&&Array.isArray(i)?!il(o,i):o!==i)return!1}}return!0}var Ez=e=>e.type==="select-multiple",v0e=e=>HR(e)||Gv(e),Gw=e=>O0(e)&&e.isConnected,Cz=e=>{for(const t in e)if(ds(e[t]))return!0;return!1};function $0(e,t={}){const r=Array.isArray(e);if(rn(e)||r)for(const n in e)Array.isArray(e[n])||rn(e[n])&&!Cz(e[n])?(t[n]=Array.isArray(e[n])?[]:{},$0(e[n],t[n])):na(e[n])||(t[n]=!0);return t}function Oz(e,t,r){const n=Array.isArray(e);if(rn(e)||n)for(const a in e)Array.isArray(e[a])||rn(e[a])&&!Cz(e[a])?vr(t)||R0(r[a])?r[a]=Array.isArray(e[a])?$0(e[a],[]):{...$0(e[a])}:Oz(e[a],na(t)?{}:t[a],r[a]):r[a]=!il(e[a],t[a]);return r}var Rg=(e,t)=>Oz(e,t,$0(t)),Pz=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>vr(e)?e:t?e===""?NaN:e&&+e:r&&Ci(e)?new Date(e):n?n(e):e;function Kw(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return WR(t)?t.files:HR(t)?Sz(e.refs).value:Ez(t)?[...t.selectedOptions].map(({value:r})=>r):Gv(t)?wz(e.refs).value:Pz(vr(t.value)?e.ref.value:t.value,e)}var m0e=(e,t,r,n)=>{const a={};for(const o of e){const i=Ne(t,o);i&&lr(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},Vp=e=>vr(e)?e:P0(e)?e.source:rn(e)?P0(e.value)?e.value.source:e.value:e;const HF="AsyncFunction";var g0e=e=>(!e||!e.validate)&&!!(ds(e.validate)&&e.validate.constructor.name===HF||rn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===HF)),y0e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function qF(e,t,r){const n=Ne(e,r);if(n||VR(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Ne(t,o),l=Ne(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(l&&l.type)return{name:o,error:l};a.pop()}return{name:r}}var b0e=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,_0e=(e,t)=>!Kv(Ne(e,t)).length&&Jr(e,t);const x0e={mode:_o.onSubmit,reValidateMode:_o.onChange,shouldFocusError:!0};function w0e(e={}){let t={...x0e,...e},r={submitCount:0,isDirty:!1,isLoading:ds(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=rn(t.defaultValues)||rn(t.values)?un(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:un(a),i={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,s=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:qw(),array:qw(),state:qw()},v=Eh(t.mode),m=Eh(t.reValidateMode),b=t.criteriaMode===_o.all,w=U=>K=>{clearTimeout(s),s=setTimeout(U,K)},O=async U=>{if(f.isValid||U){const K=t.resolver?ea((await R()).errors):await I(n,!0);K!==r.isValid&&h.state.next({isValid:K})}},_=(U,K)=>{(f.isValidating||f.validatingFields)&&((U||Array.from(l.mount)).forEach(Z=>{Z&&(K?lr(r.validatingFields,Z,K):Jr(r.validatingFields,Z))}),h.state.next({validatingFields:r.validatingFields,isValidating:!ea(r.validatingFields)}))},y=(U,K=[],Z,ie,ue=!0,ce=!0)=>{if(ie&&Z){if(i.action=!0,ce&&Array.isArray(Ne(n,U))){const Ee=Z(Ne(n,U),ie.argA,ie.argB);ue&&lr(n,U,Ee)}if(ce&&Array.isArray(Ne(r.errors,U))){const Ee=Z(Ne(r.errors,U),ie.argA,ie.argB);ue&&lr(r.errors,U,Ee),_0e(r.errors,U)}if(f.touchedFields&&ce&&Array.isArray(Ne(r.touchedFields,U))){const Ee=Z(Ne(r.touchedFields,U),ie.argA,ie.argB);ue&&lr(r.touchedFields,U,Ee)}f.dirtyFields&&(r.dirtyFields=Rg(a,o)),h.state.next({name:U,isDirty:F(U,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else lr(o,U,K)},x=(U,K)=>{lr(r.errors,U,K),h.state.next({errors:r.errors})},S=U=>{r.errors=U,h.state.next({errors:r.errors,isValid:!1})},P=(U,K,Z,ie)=>{const ue=Ne(n,U);if(ue){const ce=Ne(o,U,vr(Z)?Ne(a,U):Z);vr(ce)||ie&&ie.defaultChecked||K?lr(o,U,K?ce:Kw(ue._f)):V(U,ce),i.mount&&O()}},C=(U,K,Z,ie,ue)=>{let ce=!1,Ee=!1;const Ae={name:U},ft=!!(Ne(n,U)&&Ne(n,U)._f&&Ne(n,U)._f.disabled);if(!Z||ie){f.isDirty&&(Ee=r.isDirty,r.isDirty=Ae.isDirty=F(),ce=Ee!==Ae.isDirty);const De=ft||il(Ne(a,U),K);Ee=!!(!ft&&Ne(r.dirtyFields,U)),De||ft?Jr(r.dirtyFields,U):lr(r.dirtyFields,U,!0),Ae.dirtyFields=r.dirtyFields,ce=ce||f.dirtyFields&&Ee!==!De}if(Z){const De=Ne(r.touchedFields,U);De||(lr(r.touchedFields,U,Z),Ae.touchedFields=r.touchedFields,ce=ce||f.touchedFields&&De!==Z)}return ce&&ue&&h.state.next(Ae),ce?Ae:{}},$=(U,K,Z,ie)=>{const ue=Ne(r.errors,U),ce=f.isValid&&po(K)&&r.isValid!==K;if(e.delayError&&Z?(c=w(()=>x(U,Z)),c(e.delayError)):(clearTimeout(s),c=null,Z?lr(r.errors,U,Z):Jr(r.errors,U)),(Z?!il(ue,Z):ue)||!ea(ie)||ce){const Ee={...ie,...ce&&po(K)?{isValid:K}:{},errors:r.errors,name:U};r={...r,...Ee},h.state.next(Ee)}},R=async U=>{_(U,!0);const K=await t.resolver(o,t.context,m0e(U||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return _(U),K},k=async U=>{const{errors:K}=await R(U);if(U)for(const Z of U){const ie=Ne(K,Z);ie?lr(r.errors,Z,ie):Jr(r.errors,Z)}else r.errors=K;return K},I=async(U,K,Z={valid:!0})=>{for(const ie in U){const ue=U[ie];if(ue){const{_f:ce,...Ee}=ue;if(ce){const Ae=l.array.has(ce.name),ft=ue._f&&g0e(ue._f);ft&&f.validatingFields&&_([ie],!0);const De=await KE(ue,o,b,t.shouldUseNativeValidation&&!K,Ae);if(ft&&f.validatingFields&&_([ie]),De[ce.name]&&(Z.valid=!1,K))break;!K&&(Ne(De,ce.name)?Ae?xz(r.errors,De,ce.name):lr(r.errors,ce.name,De[ce.name]):Jr(r.errors,ce.name))}!ea(Ee)&&await I(Ee,K,Z)}}return Z.valid},M=()=>{for(const U of l.unMount){const K=Ne(n,U);K&&(K._f.refs?K._f.refs.every(Z=>!Gw(Z)):!Gw(K._f.ref))&&pe(U)}l.unMount=new Set},F=(U,K)=>(U&&K&&lr(o,U,K),!il(oe(),a)),L=(U,K,Z)=>bz(U,l,{...i.mount?o:vr(K)?a:Ci(U)?{[U]:K}:K},Z,K),B=U=>Kv(Ne(i.mount?o:a,U,e.shouldUnregister?Ne(a,U,[]):[])),V=(U,K,Z={})=>{const ie=Ne(n,U);let ue=K;if(ie){const ce=ie._f;ce&&(!ce.disabled&&lr(o,U,Pz(K,ce)),ue=O0(ce.ref)&&na(K)?"":K,Ez(ce.ref)?[...ce.ref.options].forEach(Ee=>Ee.selected=ue.includes(Ee.value)):ce.refs?Gv(ce.ref)?ce.refs.length>1?ce.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(ue)?!!ue.find(Ae=>Ae===Ee.value):ue===Ee.value)):ce.refs[0]&&(ce.refs[0].checked=!!ue):ce.refs.forEach(Ee=>Ee.checked=Ee.value===ue):WR(ce.ref)?ce.ref.value="":(ce.ref.value=ue,ce.ref.type||h.values.next({name:U,values:{...o}})))}(Z.shouldDirty||Z.shouldTouch)&&C(U,ue,Z.shouldTouch,Z.shouldDirty,!0),Z.shouldValidate&&ee(U)},H=(U,K,Z)=>{for(const ie in K){const ue=K[ie],ce=`${U}.${ie}`,Ee=Ne(n,ce);(l.array.has(U)||!R0(ue)||Ee&&!Ee._f)&&!jd(ue)?H(ce,ue,Z):V(ce,ue,Z)}},W=(U,K,Z={})=>{const ie=Ne(n,U),ue=l.array.has(U),ce=un(K);lr(o,U,ce),ue?(h.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&Z.shouldDirty&&h.state.next({name:U,dirtyFields:Rg(a,o),isDirty:F(U,ce)})):ie&&!ie._f&&!na(ce)?H(U,ce,Z):V(U,ce,Z),GE(U,l)&&h.state.next({...r}),h.values.next({name:i.mount?U:void 0,values:{...o}})},z=async U=>{i.mount=!0;const K=U.target;let Z=K.name,ie=!0;const ue=Ne(n,Z),ce=()=>K.type?Kw(ue._f):dz(U),Ee=Ae=>{ie=Number.isNaN(Ae)||il(Ae,Ne(o,Z,Ae))};if(ue){let Ae,ft;const De=ce(),Ze=U.type===C0.BLUR||U.type===C0.FOCUS_OUT,Ve=!y0e(ue._f)&&!t.resolver&&!Ne(r.errors,Z)&&!ue._f.deps||b0e(Ze,Ne(r.touchedFields,Z),r.isSubmitted,m,v),_t=GE(Z,l,Ze);lr(o,Z,De),Ze?(ue._f.onBlur&&ue._f.onBlur(U),c&&c(0)):ue._f.onChange&&ue._f.onChange(U);const Wt=C(Z,De,Ze,!1),Ct=!ea(Wt)||_t;if(!Ze&&h.values.next({name:Z,type:U.type,values:{...o}}),Ve)return f.isValid&&(e.mode==="onBlur"?Ze&&O():O()),Ct&&h.state.next({name:Z,..._t?{}:Wt});if(!Ze&&_t&&h.state.next({...r}),t.resolver){const{errors:qe}=await R([Z]);if(Ee(De),ie){const pt=qF(r.errors,n,Z),Me=qF(qe,n,pt.name||Z);Ae=Me.error,Z=Me.name,ft=ea(qe)}}else _([Z],!0),Ae=(await KE(ue,o,b,t.shouldUseNativeValidation))[Z],_([Z]),Ee(De),ie&&(Ae?ft=!1:f.isValid&&(ft=await I(n,!0)));ie&&(ue._f.deps&&ee(ue._f.deps),$(Z,ft,Ae,Wt))}},q=(U,K)=>{if(Ne(r.errors,K)&&U.focus)return U.focus(),1},ee=async(U,K={})=>{let Z,ie;const ue=wa(U);if(t.resolver){const ce=await k(vr(U)?U:ue);Z=ea(ce),ie=U?!ue.some(Ee=>Ne(ce,Ee)):Z}else U?(ie=(await Promise.all(ue.map(async ce=>{const Ee=Ne(n,ce);return await I(Ee&&Ee._f?{[ce]:Ee}:Ee)}))).every(Boolean),!(!ie&&!r.isValid)&&O()):ie=Z=await I(n);return h.state.next({...!Ci(U)||f.isValid&&Z!==r.isValid?{}:{name:U},...t.resolver||!U?{isValid:Z}:{},errors:r.errors}),K.shouldFocus&&!ie&&Ud(n,q,U?ue:l.mount),ie},oe=U=>{const K={...i.mount?o:a};return vr(U)?K:Ci(U)?Ne(K,U):U.map(Z=>Ne(K,Z))},J=(U,K)=>({invalid:!!Ne((K||r).errors,U),isDirty:!!Ne((K||r).dirtyFields,U),error:Ne((K||r).errors,U),isValidating:!!Ne(r.validatingFields,U),isTouched:!!Ne((K||r).touchedFields,U)}),we=U=>{U&&wa(U).forEach(K=>Jr(r.errors,K)),h.state.next({errors:U?r.errors:{}})},le=(U,K,Z)=>{const ie=(Ne(n,U,{_f:{}})._f||{}).ref,ue=Ne(r.errors,U)||{},{ref:ce,message:Ee,type:Ae,...ft}=ue;lr(r.errors,U,{...ft,...K,ref:ie}),h.state.next({name:U,errors:r.errors,isValid:!1}),Z&&Z.shouldFocus&&ie&&ie.focus&&ie.focus()},ge=(U,K)=>ds(U)?h.values.subscribe({next:Z=>U(L(void 0,K),Z)}):L(U,K,!0),pe=(U,K={})=>{for(const Z of U?wa(U):l.mount)l.mount.delete(Z),l.array.delete(Z),K.keepValue||(Jr(n,Z),Jr(o,Z)),!K.keepError&&Jr(r.errors,Z),!K.keepDirty&&Jr(r.dirtyFields,Z),!K.keepTouched&&Jr(r.touchedFields,Z),!K.keepIsValidating&&Jr(r.validatingFields,Z),!t.shouldUnregister&&!K.keepDefaultValue&&Jr(a,Z);h.values.next({values:{...o}}),h.state.next({...r,...K.keepDirty?{isDirty:F()}:{}}),!K.keepIsValid&&O()},me=({disabled:U,name:K,field:Z,fields:ie,value:ue})=>{if(po(U)&&i.mount||U){const ce=U?void 0:vr(ue)?Kw(Z?Z._f:Ne(ie,K)._f):ue;lr(o,K,ce),C(K,ce,!1,!1,!0)}},xe=(U,K={})=>{let Z=Ne(n,U);const ie=po(K.disabled)||po(e.disabled);return lr(n,U,{...Z||{},_f:{...Z&&Z._f?Z._f:{ref:{name:U}},name:U,mount:!0,...K}}),l.mount.add(U),Z?me({field:Z,disabled:po(K.disabled)?K.disabled:e.disabled,name:U,value:K.value}):P(U,!0,K.value),{...ie?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:Vp(K.min),max:Vp(K.max),minLength:Vp(K.minLength),maxLength:Vp(K.maxLength),pattern:Vp(K.pattern)}:{},name:U,onChange:z,onBlur:z,ref:ue=>{if(ue){xe(U,K),Z=Ne(n,U);const ce=vr(ue.value)&&ue.querySelectorAll&&ue.querySelectorAll("input,select,textarea")[0]||ue,Ee=v0e(ce),Ae=Z._f.refs||[];if(Ee?Ae.find(ft=>ft===ce):ce===Z._f.ref)return;lr(n,U,{_f:{...Z._f,...Ee?{refs:[...Ae.filter(Gw),ce,...Array.isArray(Ne(a,U))?[{}]:[]],ref:{type:ce.type,name:U}}:{ref:ce}}}),P(U,!1,void 0,ce)}else Z=Ne(n,U,{}),Z._f&&(Z._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(fz(l.array,U)&&i.action)&&l.unMount.add(U)}}},ne=()=>t.shouldFocusError&&Ud(n,q,l.mount),Te=U=>{po(U)&&(h.state.next({disabled:U}),Ud(n,(K,Z)=>{const ie=Ne(n,Z);ie&&(K.disabled=ie._f.disabled||U,Array.isArray(ie._f.refs)&&ie._f.refs.forEach(ue=>{ue.disabled=ie._f.disabled||U}))},0,!1))},ve=(U,K)=>async Z=>{let ie;Z&&(Z.preventDefault&&Z.preventDefault(),Z.persist&&Z.persist());let ue=un(o);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:ce,values:Ee}=await R();r.errors=ce,ue=Ee}else await I(n);if(Jr(r.errors,"root"),ea(r.errors)){h.state.next({errors:{}});try{await U(ue,Z)}catch(ce){ie=ce}}else K&&await K({...r.errors},Z),ne(),setTimeout(ne);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ea(r.errors)&&!ie,submitCount:r.submitCount+1,errors:r.errors}),ie)throw ie},$e=(U,K={})=>{Ne(n,U)&&(vr(K.defaultValue)?W(U,un(Ne(a,U))):(W(U,K.defaultValue),lr(a,U,un(K.defaultValue))),K.keepTouched||Jr(r.touchedFields,U),K.keepDirty||(Jr(r.dirtyFields,U),r.isDirty=K.defaultValue?F(U,un(Ne(a,U))):F()),K.keepError||(Jr(r.errors,U),f.isValid&&O()),h.state.next({...r}))},ye=(U,K={})=>{const Z=U?un(U):a,ie=un(Z),ue=ea(U),ce=ue?a:ie;if(K.keepDefaultValues||(a=Z),!K.keepValues){if(K.keepDirtyValues)for(const Ee of l.mount)Ne(r.dirtyFields,Ee)?lr(ce,Ee,Ne(o,Ee)):W(Ee,Ne(ce,Ee));else{if(UR&&vr(U))for(const Ee of l.mount){const Ae=Ne(n,Ee);if(Ae&&Ae._f){const ft=Array.isArray(Ae._f.refs)?Ae._f.refs[0]:Ae._f.ref;if(O0(ft)){const De=ft.closest("form");if(De){De.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?un(a):{}:un(ce),h.array.next({values:{...ce}}),h.values.next({values:{...ce}})}l={mount:K.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,h.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:ue?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!il(U,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ue?{}:K.keepDirtyValues?K.keepDefaultValues&&o?Rg(a,o):r.dirtyFields:K.keepDefaultValues&&U?Rg(a,U):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},je=(U,K)=>ye(ds(U)?U(o):U,K);return{control:{register:xe,unregister:pe,getFieldState:J,handleSubmit:ve,setError:le,_executeSchema:R,_getWatch:L,_getDirty:F,_updateValid:O,_removeUnmounted:M,_updateFieldArray:y,_updateDisabledField:me,_getFieldArray:B,_reset:ye,_resetDefaultValues:()=>ds(t.defaultValues)&&t.defaultValues().then(U=>{je(U,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_disableForm:Te,_subjects:h,_proxyFormState:f,_setErrors:S,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(U){i=U},get _defaultValues(){return a},get _names(){return l},set _names(U){l=U},get _formState(){return r},set _formState(U){r=U},get _options(){return t},set _options(U){t={...t,...U}}},trigger:ee,register:xe,handleSubmit:ve,watch:ge,setValue:W,getValues:oe,reset:je,resetField:$e,clearErrors:we,unregister:pe,setError:le,setFocus:(U,K={})=>{const Z=Ne(n,U),ie=Z&&Z._f;if(ie){const ue=ie.refs?ie.refs[0]:ie.ref;ue.focus&&(ue.focus(),K.shouldSelect&&ue.select())}},getFieldState:J}}function Rz(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:ds(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ds(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...w0e(e),formState:n});const o=t.current.control;return o._options=e,g_({subject:o._subjects.state,next:i=>{gz(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ke.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),ke.useEffect(()=>{e.values&&!il(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=mz(n,o),t.current}var k0=function(){return k0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0,c=d.useState(!1),s=c[0],f=c[1],h=!e||!l||o,v=Hte(function(m){var b=m.currentLocation,w=m.nextLocation;if(h)return!1;var O=t||b.pathname,_=w.pathname.startsWith(O),y=w.pathname.startsWith("".concat(O,"/show")),x=_&&!y;return!x});d.useEffect(function(){if(v.state==="blocked"){if(h){v.proceed();return}f(!0)}},[v.state]),d.useEffect(function(){if(s){var m=window.confirm(n("ra.message.unsaved_changes"));m?v.proceed&&v.proceed():v.reset&&v.reset()}f(!1)},[s,n]),d.useEffect(function(){var m=function(b){b.preventDefault(),b.returnValue=!0};if(!h)return window.addEventListener("beforeunload",m),function(){window.removeEventListener("beforeunload",m)}},[h])},L0e=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return F0e(r,n,a),null};function D0e(e,t){var r=PR({},N0e(e,t),t);return r}function N0e(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var Iz=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],l=o[1];if(typeof l=="object"){r(l,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:l.toString()})})};r(e,"")},B0e=function(e,t){t===void 0&&(t=!0);var r=Qv(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=gr();d.useEffect(function(){var l,c;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var s=typeof((c=(l=a.root)===null||l===void 0?void 0:l.serverError)===null||c===void 0?void 0:c.message)=="string"?a.root.serverError.message:void 0;i(s||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},z0e=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},ZE=function(){return ZE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[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,}))$/,Ql=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function G0e(e){return e?e.hasOwnProperty("message"):!1}var Xl=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Yl=function(e){return H5(e,function(){for(var t=[],r=0;re?Xl(t,{max:e},r,n):void 0}});Yl(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Ql(r)&&re?Xl(t,{max:e},r,n):void 0}}),Az=Yl(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Ql(t)&&isNaN(Number(t))?Xl(e,void 0,t,r):void 0}}),qR=H5(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Ql(r)&&typeof r=="string"&&!e.test(r)?Xl(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Yl(function(e){return e===void 0&&(e="ra.validation.email"),qR(q0e,e)});var J0e=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Yl(function(e,t){return t===void 0&&(t=J0e),function(r,n){return!Ql(r)&&e.indexOf(r)===-1?Xl(t,{list:e},r,n):void 0}});var Z0e=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},Mz=d.createContext(null),b_=function(){var e=d.useContext($z);return e},ebe=function(e){var t=e.children,r=e.name,n=b_();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(Mz.Provider,{value:r},t)},Fz=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=M_(o),l=Kt(t),c=Mo(),s=c.getValues,f=c.resetField,h=c.formState,v=c.reset,m=qt(l,i),b=qt(s(),i),w=h.dirtyFields,O=Object.keys(w).includes(i);d.useEffect(function(){if(!(a==null||b!=null||m!=null||O)){var _=i.split(".").some(function(S){return tbe.test(S)});if(_){var y=i.split(".").slice(0,-1).join("."),x=qt(s(),y);if(x==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),v({},{keepValues:!0});return}f(i,{defaultValue:a})}})},tbe=/^\d+$/,Lz=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,l=e.translateChoice,c=l===void 0?!0:l,s=Be(),f=d.useCallback(function(m){if(d.isValidElement(r))return d.createElement(Kl,{value:m},r);var b=typeof r=="function"?r(m):qt(m,r);return d.isValidElement(b)?b:c?s(String(b),{_:b}):String(b)},[r,s,c]),h=d.useCallback(function(m){return qt(m,a)},[a]),v=d.useCallback(function(m){return qt(m,i)},[i]);return{getChoiceText:f,getChoiceValue:h,getDisableValue:v}},rbe=function(e){var t=Qv(),r=t.dirtyFields,n=t.touchedFields,a=t.validatingFields,o=t.errors,i=Object.keys(r),l=Object.keys(n),c=Object.keys(a),s=Object.keys(o),f=b_(),h=d.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0,isValidating:!0}),v=h[0],m=h[1],b=Gt(function(){if(f){var w=f.getGroupFields(e),O=w.map(function(y){return{name:y,error:qt(o,y,void 0),isDirty:qt(r,y,!1)!==!1,isValid:qt(o,y,void 0)==null,isValidating:qt(a,y,void 0)==null,isTouched:qt(n,y,!1)!==!1}}).filter(function(y){return y!=null}),_=nbe(O);m(function(y){return Eo(y,_)?y:_})}});return d.useEffect(function(){b()},[JSON.stringify(i),JSON.stringify(s),JSON.stringify(l),JSON.stringify(c),b,e,f]),d.useEffect(function(){if(f){var w=f.subscribe(e,function(){b()});return w}},[f,e,b]),v},nbe=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var a={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid,isValidating:t.isValidating&&r.isValidating};return a},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1,isValidating:!1})},Dz=function(){var e=d.useContext(Mz);return e},tC=function(){return tC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var Wz=function(){return d.useContext(Uz)},nC=function(){return nC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0||b.customRoutesWithLayout.length>0||b.customRoutesWithoutLayout.length>0?"ready":"empty"),m&&h(m),[2]})})};r||v()},[e,n,r,l,t,i,f]),[o,s]},jbe=function(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},Ibe=function(e,t){var r=Wz(),n=r.register,a=r.unregister;d.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},Tbe=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return Hz(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},Hz=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]},lh=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(d.Children.forEach(e,function(a){if(d.isValidElement(a)){if(a.type===d.Fragment){var o=lh(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},qz=d.createContext(!1),Abe=qz.Provider,Mbe=function(){return d.useContext(qz)},Fbe=function(e){xbe();var t=Pc(),r=$be(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,l=e.layout,c=e.catchAll,s=e.dashboard,f=e.loading,h=e.requireAuth,v=e.ready,m=d.useState(h),b=m[0],w=m[1],O=d.useState(h),_=O[0],y=O[1],x=y6();if(d.useEffect(function(){h&&x(void 0,!1).then(function(){w(!1)}).catch(function(){}).finally(function(){y(!1)})},[x,h]),o==="empty"){if(!v)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(v,null)}return o==="loading"||_?d.createElement(xl,null,a,d.createElement(On,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(f,null))})):b?d.createElement(xl,null,a,d.createElement(On,{path:"*",element:d.createElement(O_e,null)})):d.createElement(xl,null,a,d.createElement(On,{path:"/*",element:d.createElement(Abe,{value:!!s},d.createElement(l,null,d.createElement(xl,null,n,d.Children.map(i,function(S){return d.createElement(On,{key:S.props.name,path:"".concat(S.props.name,"/*"),element:S})}),d.createElement(On,{path:"/",element:s?d.createElement(b_e,{authParams:Lbe,component:s}):i.length>0?d.createElement(Gte,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(On,{path:"*",element:d.createElement(c,null)}))))}))},Lbe={params:{route:"dashboard"}},Gz=d.createContext("React Admin"),Dbe=Gz.Provider,Kz=function(){return d.useContext(Gz)},Nbe=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},Bbe=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return Bz(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},zbe=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,l=i===void 0?JF:i,c=e.children,s=e.dashboard,f=e.disableTelemetry,h=f===void 0?!1:f,v=e.error,m=v===void 0?Bbe:v,b=e.layout,w=b===void 0?Nbe:b,O=e.loading,_=O===void 0?JF:O,y=e.loginPage,x=y===void 0?!1:y,S=e.ready,P=S===void 0?t_e:S,C=e.requireAuth,$=C===void 0?!1:C,R=e.title,k=R===void 0?"React Admin":R;d.useEffect(function(){if(!(h||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var M=new Image;M.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[h]);var I=function(M,F){return n(F)};return d.createElement(Dbe,{value:k},d.createElement(Vz,{onError:I,fallbackRender:function(M){var F=M.error,L=M.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(m,{error:F,errorInfo:r,resetErrorBoundary:L}))}},d.createElement(xl,null,x!==!1&&x!==!0?d.createElement(On,{path:"/login",element:YF(x)}):null,o!==!1&&o!==!0?d.createElement(On,{path:"/auth-callback",element:YF(o)}):null,d.createElement(On,{path:"/*",element:d.createElement(Fbe,{catchAll:l,dashboard:s,layout:w,loading:_,requireAuth:$,ready:P},c)}))))},YF=function(e){return d.isValidElement(e)?e:d.createElement(e)},JF=function(){return null},Qz=function(e){return null};Qz.raName="CustomRoutes";var Xz=d.createContext(void 0),Jl=function(e){var t=e.children,r=e.value;return r?d.createElement(Xz.Provider,{value:r},t):t},Yz=function(e){var t=e.value,r=e.children;return t?d.createElement(Jl,{value:t},r):r},Jz={exports:{}},or={};/** +The missing props are: `).concat(a.join(", ")))},xb=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nencodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),NB="%[a-f0-9]{2}",iF=new RegExp("("+NB+")|([^%]+?)","gi"),sF=new RegExp("("+NB+")+","gi");function UE(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([],UE(r),UE(n))}function zve(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(iF)||[],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)]},Hve=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;oy==null,i=Symbol("encodeFragmentIdentifier");function l(y){switch(y.arrayFormat){case"index":return x=>(S,P)=>{const C=S.length;return P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),"[",C,"]"].join("")]:[...S,[f(x,y),"[",f(C,y),"]=",f(P,y)].join("")]};case"bracket":return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),"[]"].join("")]:[...S,[f(x,y),"[]=",f(P,y)].join("")];case"colon-list-separator":return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,[f(x,y),":list="].join("")]:[...S,[f(x,y),":list=",f(P,y)].join("")];case"comma":case"separator":case"bracket-separator":{const x=y.arrayFormat==="bracket-separator"?"[]=":"=";return S=>(P,C)=>C===void 0||y.skipNull&&C===null||y.skipEmptyString&&C===""?P:(C=C===null?"":C,P.length===0?[[f(S,y),x,f(C,y)].join("")]:[[P,f(C,y)].join(y.arrayFormatSeparator)])}default:return x=>(S,P)=>P===void 0||y.skipNull&&P===null||y.skipEmptyString&&P===""?S:P===null?[...S,f(x,y)]:[...S,[f(x,y),"=",f(P,y)].join("")]}}function c(y){let x;switch(y.arrayFormat){case"index":return(S,P,C)=>{if(x=/\[(\d*)\]$/.exec(S),S=S.replace(/\[\d*\]$/,""),!x){C[S]=P;return}C[S]===void 0&&(C[S]={}),C[S][x[1]]=P};case"bracket":return(S,P,C)=>{if(x=/(\[\])$/.exec(S),S=S.replace(/\[\]$/,""),!x){C[S]=P;return}if(C[S]===void 0){C[S]=[P];return}C[S]=[].concat(C[S],P)};case"colon-list-separator":return(S,P,C)=>{if(x=/(:list)$/.exec(S),S=S.replace(/:list$/,""),!x){C[S]=P;return}if(C[S]===void 0){C[S]=[P];return}C[S]=[].concat(C[S],P)};case"comma":case"separator":return(S,P,C)=>{const $=typeof P=="string"&&P.includes(y.arrayFormatSeparator),R=typeof P=="string"&&!$&&h(P,y).includes(y.arrayFormatSeparator);P=R?h(P,y):P;const k=$||R?P.split(y.arrayFormatSeparator).map(T=>h(T,y)):P===null?P:h(P,y);C[S]=k};case"bracket-separator":return(S,P,C)=>{const $=/(\[\])$/.test(S);if(S=S.replace(/\[\]$/,""),!$){C[S]=P&&h(P,y);return}const R=P===null?[]:P.split(y.arrayFormatSeparator).map(k=>h(k,y));if(C[S]===void 0){C[S]=R;return}C[S]=[].concat(C[S],R)};default:return(S,P,C)=>{if(C[S]===void 0){C[S]=P;return}C[S]=[].concat(C[S],P)}}}function s(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function f(y,x){return x.encode?x.strict?t(y):encodeURIComponent(y):y}function h(y,x){return x.decode?r(y):y}function v(y){return Array.isArray(y)?y.sort():typeof y=="object"?v(Object.keys(y)).sort((x,S)=>Number(x)-Number(S)).map(x=>y[x]):y}function m(y){const x=y.indexOf("#");return x!==-1&&(y=y.slice(0,x)),y}function b(y){let x="";const S=y.indexOf("#");return S!==-1&&(x=y.slice(S)),x}function w(y){y=m(y);const x=y.indexOf("?");return x===-1?"":y.slice(x+1)}function O(y,x){return x.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):x.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function _(y,x){x=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},x),s(x.arrayFormatSeparator);const S=c(x),P=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return P;for(const C of y.split("&")){if(C==="")continue;let[$,R]=n(x.decode?C.replace(/\+/g," "):C,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(x.arrayFormat)?R:h(R,x),S(h($,x),R,P)}for(const C of Object.keys(P)){const $=P[C];if(typeof $=="object"&&$!==null)for(const R of Object.keys($))$[R]=O($[R],x);else P[C]=O($,x)}return x.sort===!1?P:(x.sort===!0?Object.keys(P).sort():Object.keys(P).sort(x.sort)).reduce((C,$)=>{const R=P[$];return R&&typeof R=="object"&&!Array.isArray(R)?C[$]=v(R):C[$]=R,C},Object.create(null))}e.extract=w,e.parse=_,e.stringify=(y,x)=>{if(!y)return"";x=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},x),s(x.arrayFormatSeparator);const S=R=>x.skipNull&&o(y[R])||x.skipEmptyString&&y[R]==="",P=l(x),C={};for(const R of Object.keys(y))S(R)||(C[R]=y[R]);const $=Object.keys(C);return x.sort!==!1&&$.sort(x.sort),$.map(R=>{const k=y[R];return k===void 0?"":k===null?f(R,x):Array.isArray(k)?k.length===0&&x.arrayFormat==="bracket-separator"?f(R,x)+"[]":k.reduce(P(R),[]).join("&"):f(R,x)+"="+f(k,x)}).filter(R=>R.length>0).join("&")},e.parseUrl=(y,x)=>{x=Object.assign({decode:!0},x);const[S,P]=n(y,"#");return Object.assign({url:S.split("?")[0]||"",query:_(w(y),x)},x&&x.parseFragmentIdentifier&&P?{fragmentIdentifier:h(P,x)}:{})},e.stringifyUrl=(y,x)=>{x=Object.assign({encode:!0,strict:!0,[i]:!0},x);const S=m(y.url).split("?")[0]||"",P=e.extract(y.url),C=e.parse(P,{sort:!1}),$=Object.assign(C,y.query);let R=e.stringify($,x);R&&(R=`?${R}`);let k=b(y.url);return y.fragmentIdentifier&&(k=`#${x[i]?f(y.fragmentIdentifier,x):y.fragmentIdentifier}`),`${S}${R}${k}`},e.pick=(y,x,S)=>{S=Object.assign({parseFragmentIdentifier:!0,[i]:!1},S);const{url:P,query:C,fragmentIdentifier:$}=e.parseUrl(y,S);return e.stringifyUrl({url:P,query:a(C,x),fragmentIdentifier:$},S)},e.exclude=(y,x,S)=>{const P=Array.isArray(x)?C=>!x.includes(C):(C,$)=>!x(C,$);return e.pick(y,P,S)}})(vc);var wb=function(){return wb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new DB(c&&c.message||o,a,c)):Promise.resolve({status:a,headers:i,body:l,json:c})})},Kve=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},BB=function(e,t){var r;return t===void 0&&(t=[]),Kve(e)?Object.assign.apply(Object,qve([{}],Object.keys(e).map(function(n){return BB(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},zB={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function o(c,s,f,h,v){if(typeof f!="function")throw new TypeError("The listener must be a function");var m=new a(f,h||c,v),b=r?r+s:s;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],m]:c._events[b].push(m):(c._events[b]=m,c._eventsCount++),c}function i(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var s=[],f,h;if(this._eventsCount===0)return s;for(h in f=this._events)t.call(f,h)&&s.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},l.prototype.listeners=function(s){var f=r?r+s:s,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var v=0,m=h.length,b=new Array(m);v0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!e.message?t:e.message},eme=["getList","getMany","getManyReference"],Xa=function(){var e=d.useContext(IR)||TR,t=UB(),r=d.useMemo(function(){return new Proxy(e,{get:function(n,a){if(!(typeof a=="symbol"||a==="then"))return a==="supportAbortSignal"?e.supportAbortSignal:function(){for(var o=[],i=0;i0),n=ke.useRef(e.isMutating()>0),a=ke.useState(r.current||n.current),o=a[0],i=a[1];return ke.useEffect(function(){t.current=!0;var l=e.getQueryCache().subscribe(Gr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),c=e.getMutationCache().subscribe(Gr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,l(),c()}},[e]),o},Ni=function(){var e=Ao();return d.useCallback(function(){e.invalidateQueries()},[e])},VE=function(){return VE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(l)?t>1?WB(l,t-1,r,n,a):cme(a,l):n||(a[a.length]=l)}return a}var AR=WB;function fme(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var HB=Eme;function Cme(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=Nme){var s=t?null:Lme(e);if(s)return Dme(s);i=!1,a=Fme,c=new Ime}else c=t?[]:l;e:for(;++n0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?B(V):V},{updatedAt:F}),a.setQueriesData({queryKey:[R,"getManyReference"]},function(V){return V&&V.data?{data:B(V.data),total:V.total}:V},{updatedAt:F})},S=Cc(sr(sr({mutationFn:function($){var R=$===void 0?{}:$,k=R.resource,T=k===void 0?e:k,M=R.id,F=M===void 0?m.current.id:M,L=R.data,B=L===void 0?m.current.data:L,V=R.meta,H=V===void 0?m.current.meta:V,W=R.previousData,z=W===void 0?m.current.previousData:W;if(!T)throw new Error("useUpdate mutation requires a non-empty resource");if(F==null)throw new Error("useUpdate mutation requires a non-empty id");if(!B)throw new Error("useUpdate mutation requires a non-empty data object");return w.current(T,{id:F,data:B,previousData:z,meta:H}).then(function(q){var ee=q.data;return ee})}},h),{onMutate:function($){return fF(void 0,void 0,void 0,function(){var R;return pF(this,function(k){switch(k.label){case 0:return h.onMutate?[4,h.onMutate($)]:[3,2];case 1:return R=k.sent()||{},[2,sr({snapshot:b.current},R)];case 2:return[2,{snapshot:b.current}]}})})},onError:function($,R,k){if(R===void 0&&(R={}),(v.current==="optimistic"||v.current==="undoable")&&k.snapshot.forEach(function(T){var M=T[0],F=T[1];a.setQueryData(M,F)}),O.current)return O.current($,R,k);if(h.onError)return h.onError($,R,k)},onSuccess:function($,R,k){if(R===void 0&&(R={}),v.current==="pessimistic"){var T=R.resource,M=T===void 0?e:T,F=R.id,L=F===void 0?o:F;x({resource:M,id:L,data:$}),h.onSuccess&&!y.current&&h.onSuccess($,R,k)}},onSettled:function($,R,k,T){if(k===void 0&&(k={}),(v.current==="optimistic"||v.current==="undoable")&&T.snapshot.forEach(function(M){var F=M[0];a.invalidateQueries({queryKey:F})}),_.current)return _.current($,R,k,T);if(h.onSettled)return h.onSettled($,R,k,T)}})),P=function($,R,k){return $===void 0&&($=e),R===void 0&&(R={}),k===void 0&&(k={}),fF(void 0,void 0,void 0,function(){var T,M,F,L,B,V,H,W,z,q,ee,oe,J,we,le;return pF(this,function(ge){switch(ge.label){case 0:return T=k.mutationMode,M=k.returnPromise,F=M===void 0?h.returnPromise:M,L=k.onError,B=k.onSettled,V=k.onSuccess,H=hF(k,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),f?w.current=f(n.update.bind(n)):w.current=n.update,y.current=!!V,O.current=L,_.current=B,m.current=t,T&&(v.current=T),F&&v.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),v.current==="pessimistic"?F?[2,S.mutateAsync(sr({resource:$},R),sr({onSuccess:V},H))]:[2,S.mutate(sr({resource:$},R),sr({onSuccess:V},H))]:(W=R.id,z=W===void 0?o:W,q=R.data,ee=q===void 0?i:q,oe=R.meta,J=oe===void 0?l:oe,we=a.getQueryData([$,"getOne",{id:String(z),meta:J}]),le=[[$,"getOne",{id:String(z),meta:J}],[$,"getList"],[$,"getInfiniteList"],[$,"getMany"],[$,"getManyReference"]],b.current=le.reduce(function(pe,me){return pe.concat(a.getQueriesData({queryKey:me}))},[]),[4,Promise.all(b.current.map(function(pe){var me=pe[0];return a.cancelQueries({queryKey:me})}))]);case 1:return ge.sent(),x({resource:$,id:z,data:ee}),setTimeout(function(){V?V(sr(sr({},we),ee),sr({resource:$},R),{snapshot:b.current}):h.onSuccess&&!y.current&&h.onSuccess(sr(sr({},we),ee),sr({resource:$},R),{snapshot:b.current})},0),v.current==="optimistic"?[2,S.mutate(sr({resource:$},R))]:(uv.once("end",function(pe){var me=pe.isUndo;me?b.current.forEach(function(xe){var ne=xe[0],Ie=xe[1];a.setQueryData(ne,Ie)}):S.mutate(sr({resource:$},R))}),[2])}})})},C=d.useMemo(function(){return sr({isLoading:S.isPending},S)},[S]);return[Gt(P),C]},Qn=function(){return Qn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?k(T):T},{updatedAt:R}),a.setQueriesData({queryKey:[P,"getManyReference"]},function(T){if(!T||!T.data)return T;var M=k(T.data),F=M.length0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0?R(k):k},{updatedAt:$}),a.setQueriesData({queryKey:[S,"getManyReference"]},function(k){if(!k||!k.data)return k;var T=R(k.data),M=T.length=0?i[s].apply(i,Up(Up([],h,!1),[f],!1)):o.apply(void 0,h)};return i.length>0?i[s].apply(i,Up(Up([],l,!1),[f],!1)):o.apply(void 0,l)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Sb=function(){return Sb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;oe||w(typeof H=="string"?H:H.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof H=="string"?H:H instanceof Error||typeof H=="object"&&H!==null&&H.hasOwnProperty("message")?H.message:void 0}})}},P),{returnPromise:!0,getMutateWithMiddlewares:R})),M=T[0],F=T[1].isPending,L=d.useCallback(function(H,W){W===void 0&&(W={});var z=W.transform,q=W.meta,ee=EF(W,["transform","meta"]);return Promise.resolve(z?z(H):o?o(H):H).then(function(oe){return wF(void 0,void 0,void 0,function(){var J,we;return SF(this,function(le){switch(le.label){case 0:return le.trys.push([0,2,,3]),[4,M(c,{data:oe,meta:q??S},ee)];case 1:return le.sent(),[3,3];case 2:return J=le.sent(),(J instanceof DB||typeof J=="object"&&J!==null&&J.hasOwnProperty("body"))&&((we=J.body)===null||we===void 0?void 0:we.errors)!=null?[2,J.body.errors]:[3,3];case 3:return[2]}})})})},[M,S,c,o]),B=Zf(),V=b("ra.page.create",{name:B(c,1)});return{isFetching:!1,isLoading:!1,isPending:F,saving:F,defaultTitle:V,save:L,resource:c,record:_,redirect:v,registerMutationMiddleware:$,unregisterMutationMiddleware:k}},Uge=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=vc.parse(r);if(n.source){if(Array.isArray(n.source)){console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`));return}return JSON.parse(n.source)}}catch{console.error("Failed to parse location search parameter '".concat(r,`'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. '?source={"title":"foo"}')`))}return null},Vge=function(e,t){return t?"edit":e?"show":"list"},FR=d.createContext(void 0);FR.displayName="RecordContext";var Kl=function(e){var t=e.children,r=e.value;return d.createElement(FR.Provider,{value:r},t)},LR=d.createContext(null);LR.displayName="CreateContext";var Eb=function(){return Eb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0;(!je||a!=="pessimistic")&&w(typeof ne=="string"?ne:ne.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ne=="string"?ne:ne instanceof Error||typeof ne=="object"&&ne!==null&&ne.hasOwnProperty("message")?ne.message:void 0}})}},k),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:F})),pe=ge[0],me=ge[1].isPending,xe=d.useCallback(function(ne,Ie){var ve=Ie===void 0?{}:Ie,$e=ve.onSuccess,ye=ve.onError,je=ve.transform,Le=ve.meta;return Promise.resolve(je?je(ne,{previousData:le.previousData}):h?h(ne,{previousData:le.previousData}):ne).then(function(st){return CF(void 0,void 0,void 0,function(){var Xe,U;return OF(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,pe(v,{id:x,data:st,meta:Le??C},{onError:ye,onSuccess:$e})];case 1:return K.sent(),[3,3];case 2:return Xe=K.sent(),((U=Xe.body)===null||U===void 0?void 0:U.errors)!=null?[2,Xe.body.errors]:[3,3];case 3:return[2]}})})})},[x,C,v,h,pe,le.previousData]);return{defaultTitle:we,error:H,isFetching:z,isLoading:W,isPending:q,mutationMode:a,record:V,redirect:f,refetch:ee,registerMutationMiddleware:M,resource:v,save:xe,saving:me,unregisterMutationMiddleware:L}},Qge="list",Kt=function(e){var t=d.useContext(FR);return e&&e.record||t},ZB=function(e){var t=e.value,r=e.children;return t?d.createElement(Kl,{value:t},r):r},DR=d.createContext(null);DR.displayName="EditContext";var Xge=function(e){var t=e.children,r=e.value;return d.createElement(DR.Provider,{value:r},d.createElement(XB,{value:YB(r)},d.createElement(Kl,{value:r&&r.record},t)))},Yge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a"u"?"undefined":rz(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!s.item&&o===void 0&&(o=s);a=a.concat(c)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),fye=dye,pye=typeof window>"u"?Zo:window;function hye(e,t){if(e instanceof pye[t])return!0;switch(typeof e>"u"?"undefined":rz(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Mw,RF;function vye(){return RF||(RF=1,Mw=function(t,r,n){var a=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,l=t==='"'?function(c){return c.indexOf(r)>=0||c.indexOf(a)>=0||c.indexOf('"')>=0}:function(c){return c.indexOf(r)>=0||c.indexOf(a)>=0};return function(c){return n&&(c=""+c),c.replace&&(c=c.replace(o,i),(n||l(c))&&(c=t+c+t)),c}}),Mw}var mye=function(){function e(t,r){for(var n=0;n0&&(h=h.concat(Array(v).join(".").split("."))),n&&this._options.fillGaps&&(h=h.map(o)),a.push(h.join(this._options.rowDelimiter)),n=h}}catch(m){l=!0,c=m}finally{try{!i&&s.return&&s.return()}finally{if(l)throw c}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,l=function(O){var _=a._headers.indexOf(O);return _===-1&&(a._headers.push(O),_=a._headers.indexOf(O)),_};i=function(O){var _=[],y=function(B){return _.push(B.map(function(V){return V??""}))},x=function(){return new Array(a._headers.length).fill(null)},S={},P=x(),C=!0,$=!1,R=void 0;try{for(var k=O[Symbol.iterator](),T;!(C=(T=k.next()).done);C=!0){var M=T.value,F=l(M.item);if(P[F]!=null&&(y(P),P=x()),S[F]=S[F]||0,a._options.fillTopRow&&S[F]<_.length){_[S[F]][F]=a._escape(M.value),S[F]+=1;continue}P[F]=a._escape(M.value),S[F]+=1}}catch(L){$=!0,R=L}finally{try{!C&&k.return&&k.return()}finally{if($)throw R}}P.length>0&&y(P),o=o.concat(a._checkRows(_))};var c=!0,s=!1,f=void 0;try{for(var h=r[Symbol.iterator](),v;!(c=(v=h.next()).done);c=!0){var m=v.value,b=a._handler.check(m,a._options.mainPathItem,m,r);i(b)}}catch(w){s=!0,f=w}finally{try{!c&&h.return&&h.return()}finally{if(s)throw f}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),$F(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,l=[[],[]];i=function(h){var v=h.value||h.value===0?h.value.toString():n._options.undefinedString;if(v=n._escape(v),n._options.verticalOutput){var m=[h.item,v];a.push(m.join(n._options.rowDelimiter))}else l[0].push(h.item),l[1].push(v)};for(var c in r){var s="";this._options.mainPathItem&&(s=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[c],s+c,c,r),o.forEach(i)}return this._options.verticalOutput||(a.push(l[0].join(this._options.rowDelimiter)),a.push(l[1].join(this._options.rowDelimiter))),$F(a,this._options.endOfLine)}},{key:"headers",get:function(){var r=this,n=this._headers;return this._options.rename&&this._options.rename.length>0&&(n=n.map(function(a){return r._options.rename[r._options.headers.indexOf(a)]||a})),this._options.forceTextDelimiter&&(n=n.map(function(a){return""+r._options.textDelimiter+a+r._options.textDelimiter})),this._options.mapHeaders&&(n=n.map(this._options.mapHeaders)),n.join(this._options.rowDelimiter)}}]),e}(),_ye=bye,xye=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},wye=xye,jF=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},TF=_ye,IF=wye,Sye=tz,Eye=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:Sye,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,n=void 0;if(arguments.length===3){var a=Array.prototype.slice.call(arguments);t=a[0],r=a[1],n=a[2]}else if(arguments.length===2){var o=void 0,i=Array.prototype.slice.call(arguments);t=i[0],o=i[1],typeof o=="function"?n=o:(typeof o>"u"?"undefined":jF(o))==="object"&&(r=o)}else if(arguments.length===1){var l=Array.prototype.slice.call(arguments),c=l[0];if((typeof c>"u"?"undefined":jF(c))==="object"){var s=Object.keys(e),f=Object.keys(c),h=f.every(function(b){return s.includes(b)});f.length>0&&h?r=c:t=c}else t=c}else return new IF(new TF(e));var v=Object.assign({},e,r),m=new TF(v);return t?new Promise(function(b,w){m.parse(t,function(O,_){if(n)return n(O,_);if(O)return w(O);if(w)return b(_)})}):new IF};const Cye=bn(Eye);var Oye=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},Pye=function(e,t,r,n){return Cye(e,function(a,o){return Oye(o,n)})},Rye=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)},[])))},$ye=function(e){return function(t,r,n){return e.getMany(n,{ids:Rye(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,l){return i[l.id]=l,i},{})})}},td=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||b(function(y){if(!Array.isArray(y))return td([],y,!0);var x=y.indexOf(_);return x>-1?td(td([],y.slice(0,x),!0),y.slice(x+1),!0):td(td([],y,!0),[_],!1)})},clearSelection:function(){w()}}},[b,w]);return[m,O]},Fw=[];function yo(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useRef(!1);d.useEffect(function(){return a.current=!0,function(){a.current=!1}},[]);var o=d.useCallback(function(i){if(a.current)return n(i)},[a,n]);return[r,o]}function v_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=yo(!1),n=r[0],a=r[1];return d.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function kye(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var cs=function(){return cs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&S(k)},[m.search]);var T=d.useCallback(function(ee){C.current&&(P.current?P.current=aF(P.current,ee):(P.current=aF(k,ee),setTimeout(function(){P.current&&(a&&!v?_(P.current):a&&v?S(P.current):b({search:"?".concat(vc.stringify(cs(cs({},P.current),{filter:JSON.stringify(P.current.filter),displayedFilters:JSON.stringify(P.current.displayedFilters)})))},{state:{_scrollToTop:ee.type===BE}}),P.current=void 0)},0)))},AF(AF([],$,!0),[b],!1)),M=d.useCallback(function(ee){return T({type:jB,payload:ee})},[T]),F=d.useCallback(function(ee){return T({type:BE,payload:ee})},[T]),L=d.useCallback(function(ee){return T({type:TB,payload:ee})},[T]),B=k.filter||LF,V=k.displayedFilters||LF,H=jR(function(ee,oe){T({type:zE,payload:{filter:Bl(ee),displayedFilters:oe}})},r),W=d.useCallback(function(ee,oe,J){return oe===void 0&&(oe=void 0),J===void 0&&(J=!1),J?H(ee,oe):T({type:zE,payload:{filter:Bl(ee),displayedFilters:oe}})},[T]),z=d.useCallback(function(ee){T({type:AB,payload:ee})},[T]),q=d.useCallback(function(ee,oe){T({type:IB,payload:{filterName:ee,defaultValue:oe}})},[T]);return[cs(cs({filterValues:B,requestSignature:$},k),{displayedFilters:V}),{changeParams:T,setPage:F,setPerPage:L,setSort:M,setFilters:W,hideFilter:z,showFilter:q}]},MF=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Tye=function(e){var t=e.search,r=vc.parse(t);return MF(r,"filter"),MF(r,"displayedFilters"),r},Iye=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},Aye=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:Iye(r)?cs({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),cs(cs({},i),{page:FF(i.page,1),perPage:FF(i.perPage,10)})},FF=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},LF={},Mye={field:"id",order:nc},DF={},m_=d.createContext(null);m_.displayName="ListContext";var nz=d.createContext(void 0),Fye=function(e){return d.useMemo(function(){return h_(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};nz.displayName="ListFilterContext";var az=d.createContext(void 0),Lye=function(e){return d.useMemo(function(){return h_(e,["sort","setSort","resource"])},[e.sort,e.setSort])};az.displayName="ListSortContext";var NR=d.createContext(void 0);NR.displayName="ListPaginationContext";var Dye=function(e){return d.useMemo(function(){return h_(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},BR=function(e){var t=e.value,r=e.children;return d.createElement(m_.Provider,{value:t},d.createElement(nz.Provider,{value:Fye(t)},d.createElement(az.Provider,{value:Lye(t)},d.createElement(NR.Provider,{value:Dye(t)},r))))},ac=function(){return ac=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(F==null||(F==null?void 0:F.length)===0)){$.setPage(1);return}if(B!=null){var le=Math.ceil(B/C.perPage)||1;!z&&C.page>le&&$.setPage(le)}},[z,C.page,C.perPage,F,$,B]);var oe=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),J=Zf(),we=x("ra.page.list",{name:J(O,2)});return{sort:oe,data:F,meta:V,defaultTitle:we,displayedFilters:C.displayedFilters,error:H,exporter:i,filter:l,filterValues:C.filterValues,hideFilter:$.hideFilter,isFetching:z,isLoading:W,isPending:q,onSelect:T.select,onToggleItem:T.toggle,onUnselectItems:T.clearSelection,page:C.page,perPage:C.perPage,refetch:ee,resource:O,selectedIds:k,setFilters:$.setFilters,setPage:$.setPage,setPerPage:$.setPerPage,setSort:$.setSort,showFilter:$.showFilter,total:B,hasNextPage:L?L.hasNextPage:B!=null?C.page*C.perPage1}},zye={field:"id",order:nc},Uye=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],cv=function(e){return Object.keys(e).filter(function(t){return!Uye.includes(t)}).reduce(function(t,r){var n;return ac(ac({},t),(n={},n[r]=e[r],n))},{})},Vye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a-1?r?[]:Pg(Pg([],c.slice(0,s),!0),c.slice(s+1),!0):r?[t]:Pg(Pg([],c,!0),[t],!1)})},[o,t,r]);return[i,l]},qye=function(e,t){var r=$n("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(l){return t.some(function(c){return c==l})}):!1,i=d.useCallback(function(){var l=n.filter(function(c){return!t.some(function(s){return s==c})});a(o?l:l.concat(t))},[n,a,o,t]);return[o,i]},kd=function(){return kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(ue,J.field)?J.order==="ASC"?1:-1:qt(ie,J.field)1,hideFilter:Le,isFetching:P,isLoading:R,isPending:M,onSelect:me.select,onToggleItem:me.toggle,onUnselectItems:me.clearSelection,page:W,perPage:q,resource:"",refetch:Gye,selectedIds:pe,setFilters:Xe,setPage:z,setPerPage:ee,setSort:le,showFilter:st,total:B==null?void 0:B.total}},Kye={},Hn=function(){var e=d.useContext(m_);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},Qye=p_,Xye=Hf,Yye=wB,Jye=Yf,iz=Object.prototype,Zye=iz.hasOwnProperty,ebe=Qye(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&Yye(t[0],t[1],a)&&(n=1);++r1,setSort:B,showFilter:pe,total:ve}},obe={},Gv=e=>e.type==="checkbox",jd=e=>e instanceof Date,na=e=>e==null;const cz=e=>typeof e=="object";var rn=e=>!na(e)&&!Array.isArray(e)&&cz(e)&&!jd(e),dz=e=>rn(e)&&e.target?Gv(e.target)?e.target.checked:e.target.value:e,ibe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,fz=(e,t)=>e.has(ibe(t)),sbe=e=>{const t=e.constructor&&e.constructor.prototype;return rn(t)&&t.hasOwnProperty("isPrototypeOf")},UR=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function un(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(!(UR&&(e instanceof Blob||e instanceof FileList))&&(r||rn(e)))if(t=r?[]:{},!r&&!sbe(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=un(e[n]));else return e;return t}var Kv=e=>Array.isArray(e)?e.filter(Boolean):[],vr=e=>e===void 0,Ne=(e,t,r)=>{if(!t||!rn(e))return r;const n=Kv(t.split(/[,[\].]+?/)).reduce((a,o)=>na(a)?a:a[o],e);return vr(n)||n===e?vr(e[t])?r:e[t]:n},po=e=>typeof e=="boolean",VR=e=>/^\w*$/.test(e),pz=e=>Kv(e.replace(/["|']|\]/g,"").split(/\.|\[/)),lr=(e,t,r)=>{let n=-1;const a=VR(t)?[t]:pz(t),o=a.length,i=o-1;for(;++nke.useContext(hz),vz=e=>{const{children:t,...r}=e;return ke.createElement(hz.Provider,{value:r},t)};var mz=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==_o.all&&(t._proxyFormState[i]=!n||_o.all),r&&(r[i]=!0),e[i]}});return a},ea=e=>rn(e)&&!Object.keys(e).length,gz=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return ea(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||_o.all))},wa=e=>Array.isArray(e)?e:[e],yz=(e,t,r)=>!e||!t||e===t||wa(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function g_(e){const t=ke.useRef(e);t.current=e,ke.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Qv(e){const t=Mo(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,l]=ke.useState(r._formState),c=ke.useRef(!0),s=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=ke.useRef(a);return f.current=a,g_({disabled:n,next:h=>c.current&&yz(f.current,h.name,o)&&gz(h,s.current,r._updateFormState)&&l({...r._formState,...h}),subject:r._subjects.state}),ke.useEffect(()=>(c.current=!0,s.current.isValid&&r._updateValid(!0),()=>{c.current=!1}),[r]),mz(i,r,s.current,!1)}var Ci=e=>typeof e=="string",bz=(e,t,r,n,a)=>Ci(e)?(n&&t.watch.add(e),Ne(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Ne(r,o))):(n&&(t.watchAll=!0),r);function _z(e){const t=Mo(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},l=ke.useRef(n);l.current=n,g_({disabled:o,subject:r._subjects.values,next:f=>{yz(l.current,f.name,i)&&s(un(bz(l.current,r._names,f.values||r._formValues,!1,a)))}});const[c,s]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),c}function lbe(e){const t=Mo(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=fz(a._names.array,r),l=_z({control:a,name:r,defaultValue:Ne(a._formValues,r,Ne(a._defaultValues,r,e.defaultValue)),exact:!0}),c=Qv({control:a,name:r,exact:!0}),s=ke.useRef(a.register(r,{...e.rules,value:l,...po(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const f=a._options.shouldUnregister||o,h=(v,m)=>{const b=Ne(a._fields,v);b&&b._f&&(b._f.mount=m)};if(h(r,!0),f){const v=un(Ne(a._options.defaultValues,r));lr(a._defaultValues,r,v),vr(Ne(a._formValues,r))&&lr(a._formValues,r,v)}return()=>{(i?f&&!a._state.action:f)?a.unregister(r):h(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Ne(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Ne(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:l,...po(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:ke.useCallback(f=>s.current.onChange({target:{value:dz(f),name:r},type:Cb.CHANGE}),[r]),onBlur:ke.useCallback(()=>s.current.onBlur({target:{value:Ne(a._formValues,r),name:r},type:Cb.BLUR}),[r,a]),ref:ke.useCallback(f=>{const h=Ne(a._fields,r);h&&f&&(h._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:v=>f.setCustomValidity(v),reportValidity:()=>f.reportValidity()})},[a._fields,r])},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ne(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ne(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ne(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ne(c.validatingFields,r)},error:{enumerable:!0,get:()=>Ne(c.errors,r)}})}}var ube=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},qs=()=>{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)})},Dw=(e,t,r={})=>r.shouldFocus||vr(r.shouldFocus)?r.focusName||`${e}.${vr(r.focusIndex)?t:r.focusIndex}.`:"",Eh=e=>({isOnSubmit:!e||e===_o.onSubmit,isOnBlur:e===_o.onBlur,isOnChange:e===_o.onChange,isOnAll:e===_o.all,isOnTouch:e===_o.onTouched}),GE=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ud=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Ne(e,a);if(o){const{_f:i,...l}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if(Ud(l,t))break}else if(rn(l)&&Ud(l,t))break}}};var xz=(e,t,r)=>{const n=wa(Ne(e,r));return lr(n,"root",t[r]),lr(e,r,n),e},WR=e=>e.type==="file",ds=e=>typeof e=="function",Ob=e=>{if(!UR)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},vy=e=>Ci(e),HR=e=>e.type==="radio",Pb=e=>e instanceof RegExp;const BF={value:!1,isValid:!1},zF={value:!0,isValid:!0};var wz=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&&!vr(e[0].attributes.value)?vr(e[0].value)||e[0].value===""?zF:{value:e[0].value,isValid:!0}:zF:BF}return BF};const UF={isValid:!1,value:null};var Sz=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,UF):UF;function VF(e,t,r="validate"){if(vy(e)||Array.isArray(e)&&e.every(vy)||po(e)&&!e)return{type:r,message:vy(e)?e:"",ref:t}}var rd=e=>rn(e)&&!Pb(e)?e:{value:e,message:""},KE=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:l,maxLength:c,minLength:s,min:f,max:h,pattern:v,validate:m,name:b,valueAsNumber:w,mount:O,disabled:_}=e._f,y=Ne(t,b);if(!O||_)return{};const x=i?i[0]:o,S=F=>{n&&x.reportValidity&&(x.setCustomValidity(po(F)?"":F||""),x.reportValidity())},P={},C=HR(o),$=Gv(o),R=C||$,k=(w||WR(o))&&vr(o.value)&&vr(y)||Ob(o)&&o.value===""||y===""||Array.isArray(y)&&!y.length,T=ube.bind(null,b,r,P),M=(F,L,B,V=Zi.maxLength,H=Zi.minLength)=>{const W=F?L:B;P[b]={type:F?V:H,message:W,ref:o,...T(F?V:H,W)}};if(a?!Array.isArray(y)||!y.length:l&&(!R&&(k||na(y))||po(y)&&!y||$&&!wz(i).isValid||C&&!Sz(i).isValid)){const{value:F,message:L}=vy(l)?{value:!!l,message:l}:rd(l);if(F&&(P[b]={type:Zi.required,message:L,ref:x,...T(Zi.required,L)},!r))return S(L),P}if(!k&&(!na(f)||!na(h))){let F,L;const B=rd(h),V=rd(f);if(!na(y)&&!isNaN(y)){const H=o.valueAsNumber||y&&+y;na(B.value)||(F=H>B.value),na(V.value)||(L=Hnew Date(new Date().toDateString()+" "+ee),z=o.type=="time",q=o.type=="week";Ci(B.value)&&y&&(F=z?W(y)>W(B.value):q?y>B.value:H>new Date(B.value)),Ci(V.value)&&y&&(L=z?W(y)+F.value,V=!na(L.value)&&y.length<+L.value;if((B||V)&&(M(B,F.message,L.message),!r))return S(P[b].message),P}if(v&&!k&&Ci(y)){const{value:F,message:L}=rd(v);if(Pb(F)&&!y.match(F)&&(P[b]={type:Zi.pattern,message:L,ref:o,...T(Zi.pattern,L)},!r))return S(L),P}if(m){if(ds(m)){const F=await m(y,t),L=VF(F,x);if(L&&(P[b]={...L,...T(Zi.validate,L.message)},!r))return S(L.message),P}else if(rn(m)){let F={};for(const L in m){if(!ea(F)&&!r)break;const B=VF(await m[L](y,t),x,L);B&&(F={...B,...T(L,B.message)},S(B.message),r&&(P[b]=F))}if(!ea(F)&&(P[b]={ref:x,...F},!r))return P}}return S(!0),P},Nw=(e,t)=>[...e,...wa(t)],Bw=e=>Array.isArray(e)?e.map(()=>{}):void 0;function zw(e,t,r){return[...e.slice(0,t),...wa(r),...e.slice(t)]}var Uw=(e,t,r)=>Array.isArray(e)?(vr(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Vw=(e,t)=>[...wa(t),...wa(e)];function cbe(e,t){let r=0;const n=[...e];for(const a of t)n.splice(a-r,1),r++;return Kv(n).length?n:[]}var Ww=(e,t)=>vr(t)?[]:cbe(e,wa(t).sort((r,n)=>r-n)),Hw=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function dbe(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function pbe(e){const t=Mo(),{control:r=t.control,name:n,keyName:a="id",shouldUnregister:o}=e,[i,l]=ke.useState(r._getFieldArray(n)),c=ke.useRef(r._getFieldArray(n).map(qs)),s=ke.useRef(i),f=ke.useRef(n),h=ke.useRef(!1);f.current=n,s.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),g_({next:({values:P,name:C})=>{if(C===f.current||!C){const $=Ne(P,f.current);Array.isArray($)&&(l($),c.current=$.map(qs))}},subject:r._subjects.array});const v=ke.useCallback(P=>{h.current=!0,r._updateFieldArray(n,P)},[r,n]),m=(P,C)=>{const $=wa(un(P)),R=Nw(r._getFieldArray(n),$);r._names.focus=Dw(n,R.length-1,C),c.current=Nw(c.current,$.map(qs)),v(R),l(R),r._updateFieldArray(n,R,Nw,{argA:Bw(P)})},b=(P,C)=>{const $=wa(un(P)),R=Vw(r._getFieldArray(n),$);r._names.focus=Dw(n,0,C),c.current=Vw(c.current,$.map(qs)),v(R),l(R),r._updateFieldArray(n,R,Vw,{argA:Bw(P)})},w=P=>{const C=Ww(r._getFieldArray(n),P);c.current=Ww(c.current,P),v(C),l(C),r._updateFieldArray(n,C,Ww,{argA:P})},O=(P,C,$)=>{const R=wa(un(C)),k=zw(r._getFieldArray(n),P,R);r._names.focus=Dw(n,P,$),c.current=zw(c.current,P,R.map(qs)),v(k),l(k),r._updateFieldArray(n,k,zw,{argA:P,argB:Bw(C)})},_=(P,C)=>{const $=r._getFieldArray(n);Hw($,P,C),Hw(c.current,P,C),v($),l($),r._updateFieldArray(n,$,Hw,{argA:P,argB:C},!1)},y=(P,C)=>{const $=r._getFieldArray(n);Uw($,P,C),Uw(c.current,P,C),v($),l($),r._updateFieldArray(n,$,Uw,{argA:P,argB:C},!1)},x=(P,C)=>{const $=un(C),R=WF(r._getFieldArray(n),P,$);c.current=[...R].map((k,T)=>!k||T===P?qs():c.current[T]),v(R),l([...R]),r._updateFieldArray(n,R,WF,{argA:P,argB:$},!0,!1)},S=P=>{const C=wa(un(P));c.current=C.map(qs),v([...C]),l([...C]),r._updateFieldArray(n,[...C],$=>$,{},!0,!1)};return ke.useEffect(()=>{if(r._state.action=!1,GE(n,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!Eh(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(P=>{const C=Ne(P.errors,n),$=Ne(r._formState.errors,n);($?!C&&$.type||C&&($.type!==C.type||$.message!==C.message):C&&C.type)&&(C?lr(r._formState.errors,n,C):Jr(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const P=Ne(r._fields,n);P&&P._f&&!(Eh(r._options.reValidateMode).isOnSubmit&&Eh(r._options.mode).isOnSubmit)&&KE(P,r._formValues,r._options.criteriaMode===_o.all,r._options.shouldUseNativeValidation,!0).then(C=>!ea(C)&&r._subjects.state.next({errors:xz(r._formState.errors,C,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&Ud(r._fields,(P,C)=>{if(r._names.focus&&C.startsWith(r._names.focus)&&P.focus)return P.focus(),1}),r._names.focus="",r._updateValid(),h.current=!1},[i,n,r]),ke.useEffect(()=>(!Ne(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)}),[n,r,a,o]),{swap:ke.useCallback(_,[v,n,r]),move:ke.useCallback(y,[v,n,r]),prepend:ke.useCallback(b,[v,n,r]),append:ke.useCallback(m,[v,n,r]),remove:ke.useCallback(w,[v,n,r]),insert:ke.useCallback(O,[v,n,r]),update:ke.useCallback(x,[v,n,r]),replace:ke.useCallback(S,[v,n,r]),fields:ke.useMemo(()=>i.map((P,C)=>({...P,[a]:c.current[C]||qs()})),[i,a])}}var qw=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Rb=e=>na(e)||!cz(e);function il(e,t){if(Rb(e)||Rb(t))return e===t;if(jd(e)&&jd(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(jd(o)&&jd(i)||rn(o)&&rn(i)||Array.isArray(o)&&Array.isArray(i)?!il(o,i):o!==i)return!1}}return!0}var Ez=e=>e.type==="select-multiple",hbe=e=>HR(e)||Gv(e),Gw=e=>Ob(e)&&e.isConnected,Cz=e=>{for(const t in e)if(ds(e[t]))return!0;return!1};function $b(e,t={}){const r=Array.isArray(e);if(rn(e)||r)for(const n in e)Array.isArray(e[n])||rn(e[n])&&!Cz(e[n])?(t[n]=Array.isArray(e[n])?[]:{},$b(e[n],t[n])):na(e[n])||(t[n]=!0);return t}function Oz(e,t,r){const n=Array.isArray(e);if(rn(e)||n)for(const a in e)Array.isArray(e[a])||rn(e[a])&&!Cz(e[a])?vr(t)||Rb(r[a])?r[a]=Array.isArray(e[a])?$b(e[a],[]):{...$b(e[a])}:Oz(e[a],na(t)?{}:t[a],r[a]):r[a]=!il(e[a],t[a]);return r}var Rg=(e,t)=>Oz(e,t,$b(t)),Pz=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>vr(e)?e:t?e===""?NaN:e&&+e:r&&Ci(e)?new Date(e):n?n(e):e;function Kw(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return WR(t)?t.files:HR(t)?Sz(e.refs).value:Ez(t)?[...t.selectedOptions].map(({value:r})=>r):Gv(t)?wz(e.refs).value:Pz(vr(t.value)?e.ref.value:t.value,e)}var vbe=(e,t,r,n)=>{const a={};for(const o of e){const i=Ne(t,o);i&&lr(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},Vp=e=>vr(e)?e:Pb(e)?e.source:rn(e)?Pb(e.value)?e.value.source:e.value:e;const HF="AsyncFunction";var mbe=e=>(!e||!e.validate)&&!!(ds(e.validate)&&e.validate.constructor.name===HF||rn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===HF)),gbe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function qF(e,t,r){const n=Ne(e,r);if(n||VR(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Ne(t,o),l=Ne(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(l&&l.type)return{name:o,error:l};a.pop()}return{name:r}}var ybe=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,bbe=(e,t)=>!Kv(Ne(e,t)).length&&Jr(e,t);const _be={mode:_o.onSubmit,reValidateMode:_o.onChange,shouldFocusError:!0};function xbe(e={}){let t={..._be,...e},r={submitCount:0,isDirty:!1,isLoading:ds(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=rn(t.defaultValues)||rn(t.values)?un(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:un(a),i={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,s=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:qw(),array:qw(),state:qw()},v=Eh(t.mode),m=Eh(t.reValidateMode),b=t.criteriaMode===_o.all,w=U=>K=>{clearTimeout(s),s=setTimeout(U,K)},O=async U=>{if(f.isValid||U){const K=t.resolver?ea((await R()).errors):await T(n,!0);K!==r.isValid&&h.state.next({isValid:K})}},_=(U,K)=>{(f.isValidating||f.validatingFields)&&((U||Array.from(l.mount)).forEach(Z=>{Z&&(K?lr(r.validatingFields,Z,K):Jr(r.validatingFields,Z))}),h.state.next({validatingFields:r.validatingFields,isValidating:!ea(r.validatingFields)}))},y=(U,K=[],Z,ie,ue=!0,ce=!0)=>{if(ie&&Z){if(i.action=!0,ce&&Array.isArray(Ne(n,U))){const Ee=Z(Ne(n,U),ie.argA,ie.argB);ue&&lr(n,U,Ee)}if(ce&&Array.isArray(Ne(r.errors,U))){const Ee=Z(Ne(r.errors,U),ie.argA,ie.argB);ue&&lr(r.errors,U,Ee),bbe(r.errors,U)}if(f.touchedFields&&ce&&Array.isArray(Ne(r.touchedFields,U))){const Ee=Z(Ne(r.touchedFields,U),ie.argA,ie.argB);ue&&lr(r.touchedFields,U,Ee)}f.dirtyFields&&(r.dirtyFields=Rg(a,o)),h.state.next({name:U,isDirty:F(U,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else lr(o,U,K)},x=(U,K)=>{lr(r.errors,U,K),h.state.next({errors:r.errors})},S=U=>{r.errors=U,h.state.next({errors:r.errors,isValid:!1})},P=(U,K,Z,ie)=>{const ue=Ne(n,U);if(ue){const ce=Ne(o,U,vr(Z)?Ne(a,U):Z);vr(ce)||ie&&ie.defaultChecked||K?lr(o,U,K?ce:Kw(ue._f)):V(U,ce),i.mount&&O()}},C=(U,K,Z,ie,ue)=>{let ce=!1,Ee=!1;const Ae={name:U},ft=!!(Ne(n,U)&&Ne(n,U)._f&&Ne(n,U)._f.disabled);if(!Z||ie){f.isDirty&&(Ee=r.isDirty,r.isDirty=Ae.isDirty=F(),ce=Ee!==Ae.isDirty);const De=ft||il(Ne(a,U),K);Ee=!!(!ft&&Ne(r.dirtyFields,U)),De||ft?Jr(r.dirtyFields,U):lr(r.dirtyFields,U,!0),Ae.dirtyFields=r.dirtyFields,ce=ce||f.dirtyFields&&Ee!==!De}if(Z){const De=Ne(r.touchedFields,U);De||(lr(r.touchedFields,U,Z),Ae.touchedFields=r.touchedFields,ce=ce||f.touchedFields&&De!==Z)}return ce&&ue&&h.state.next(Ae),ce?Ae:{}},$=(U,K,Z,ie)=>{const ue=Ne(r.errors,U),ce=f.isValid&&po(K)&&r.isValid!==K;if(e.delayError&&Z?(c=w(()=>x(U,Z)),c(e.delayError)):(clearTimeout(s),c=null,Z?lr(r.errors,U,Z):Jr(r.errors,U)),(Z?!il(ue,Z):ue)||!ea(ie)||ce){const Ee={...ie,...ce&&po(K)?{isValid:K}:{},errors:r.errors,name:U};r={...r,...Ee},h.state.next(Ee)}},R=async U=>{_(U,!0);const K=await t.resolver(o,t.context,vbe(U||l.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return _(U),K},k=async U=>{const{errors:K}=await R(U);if(U)for(const Z of U){const ie=Ne(K,Z);ie?lr(r.errors,Z,ie):Jr(r.errors,Z)}else r.errors=K;return K},T=async(U,K,Z={valid:!0})=>{for(const ie in U){const ue=U[ie];if(ue){const{_f:ce,...Ee}=ue;if(ce){const Ae=l.array.has(ce.name),ft=ue._f&&mbe(ue._f);ft&&f.validatingFields&&_([ie],!0);const De=await KE(ue,o,b,t.shouldUseNativeValidation&&!K,Ae);if(ft&&f.validatingFields&&_([ie]),De[ce.name]&&(Z.valid=!1,K))break;!K&&(Ne(De,ce.name)?Ae?xz(r.errors,De,ce.name):lr(r.errors,ce.name,De[ce.name]):Jr(r.errors,ce.name))}!ea(Ee)&&await T(Ee,K,Z)}}return Z.valid},M=()=>{for(const U of l.unMount){const K=Ne(n,U);K&&(K._f.refs?K._f.refs.every(Z=>!Gw(Z)):!Gw(K._f.ref))&&pe(U)}l.unMount=new Set},F=(U,K)=>(U&&K&&lr(o,U,K),!il(oe(),a)),L=(U,K,Z)=>bz(U,l,{...i.mount?o:vr(K)?a:Ci(U)?{[U]:K}:K},Z,K),B=U=>Kv(Ne(i.mount?o:a,U,e.shouldUnregister?Ne(a,U,[]):[])),V=(U,K,Z={})=>{const ie=Ne(n,U);let ue=K;if(ie){const ce=ie._f;ce&&(!ce.disabled&&lr(o,U,Pz(K,ce)),ue=Ob(ce.ref)&&na(K)?"":K,Ez(ce.ref)?[...ce.ref.options].forEach(Ee=>Ee.selected=ue.includes(Ee.value)):ce.refs?Gv(ce.ref)?ce.refs.length>1?ce.refs.forEach(Ee=>(!Ee.defaultChecked||!Ee.disabled)&&(Ee.checked=Array.isArray(ue)?!!ue.find(Ae=>Ae===Ee.value):ue===Ee.value)):ce.refs[0]&&(ce.refs[0].checked=!!ue):ce.refs.forEach(Ee=>Ee.checked=Ee.value===ue):WR(ce.ref)?ce.ref.value="":(ce.ref.value=ue,ce.ref.type||h.values.next({name:U,values:{...o}})))}(Z.shouldDirty||Z.shouldTouch)&&C(U,ue,Z.shouldTouch,Z.shouldDirty,!0),Z.shouldValidate&&ee(U)},H=(U,K,Z)=>{for(const ie in K){const ue=K[ie],ce=`${U}.${ie}`,Ee=Ne(n,ce);(l.array.has(U)||!Rb(ue)||Ee&&!Ee._f)&&!jd(ue)?H(ce,ue,Z):V(ce,ue,Z)}},W=(U,K,Z={})=>{const ie=Ne(n,U),ue=l.array.has(U),ce=un(K);lr(o,U,ce),ue?(h.array.next({name:U,values:{...o}}),(f.isDirty||f.dirtyFields)&&Z.shouldDirty&&h.state.next({name:U,dirtyFields:Rg(a,o),isDirty:F(U,ce)})):ie&&!ie._f&&!na(ce)?H(U,ce,Z):V(U,ce,Z),GE(U,l)&&h.state.next({...r}),h.values.next({name:i.mount?U:void 0,values:{...o}})},z=async U=>{i.mount=!0;const K=U.target;let Z=K.name,ie=!0;const ue=Ne(n,Z),ce=()=>K.type?Kw(ue._f):dz(U),Ee=Ae=>{ie=Number.isNaN(Ae)||il(Ae,Ne(o,Z,Ae))};if(ue){let Ae,ft;const De=ce(),Ze=U.type===Cb.BLUR||U.type===Cb.FOCUS_OUT,Ve=!gbe(ue._f)&&!t.resolver&&!Ne(r.errors,Z)&&!ue._f.deps||ybe(Ze,Ne(r.touchedFields,Z),r.isSubmitted,m,v),_t=GE(Z,l,Ze);lr(o,Z,De),Ze?(ue._f.onBlur&&ue._f.onBlur(U),c&&c(0)):ue._f.onChange&&ue._f.onChange(U);const Wt=C(Z,De,Ze,!1),Ct=!ea(Wt)||_t;if(!Ze&&h.values.next({name:Z,type:U.type,values:{...o}}),Ve)return f.isValid&&(e.mode==="onBlur"?Ze&&O():O()),Ct&&h.state.next({name:Z,..._t?{}:Wt});if(!Ze&&_t&&h.state.next({...r}),t.resolver){const{errors:qe}=await R([Z]);if(Ee(De),ie){const pt=qF(r.errors,n,Z),Me=qF(qe,n,pt.name||Z);Ae=Me.error,Z=Me.name,ft=ea(qe)}}else _([Z],!0),Ae=(await KE(ue,o,b,t.shouldUseNativeValidation))[Z],_([Z]),Ee(De),ie&&(Ae?ft=!1:f.isValid&&(ft=await T(n,!0)));ie&&(ue._f.deps&&ee(ue._f.deps),$(Z,ft,Ae,Wt))}},q=(U,K)=>{if(Ne(r.errors,K)&&U.focus)return U.focus(),1},ee=async(U,K={})=>{let Z,ie;const ue=wa(U);if(t.resolver){const ce=await k(vr(U)?U:ue);Z=ea(ce),ie=U?!ue.some(Ee=>Ne(ce,Ee)):Z}else U?(ie=(await Promise.all(ue.map(async ce=>{const Ee=Ne(n,ce);return await T(Ee&&Ee._f?{[ce]:Ee}:Ee)}))).every(Boolean),!(!ie&&!r.isValid)&&O()):ie=Z=await T(n);return h.state.next({...!Ci(U)||f.isValid&&Z!==r.isValid?{}:{name:U},...t.resolver||!U?{isValid:Z}:{},errors:r.errors}),K.shouldFocus&&!ie&&Ud(n,q,U?ue:l.mount),ie},oe=U=>{const K={...i.mount?o:a};return vr(U)?K:Ci(U)?Ne(K,U):U.map(Z=>Ne(K,Z))},J=(U,K)=>({invalid:!!Ne((K||r).errors,U),isDirty:!!Ne((K||r).dirtyFields,U),error:Ne((K||r).errors,U),isValidating:!!Ne(r.validatingFields,U),isTouched:!!Ne((K||r).touchedFields,U)}),we=U=>{U&&wa(U).forEach(K=>Jr(r.errors,K)),h.state.next({errors:U?r.errors:{}})},le=(U,K,Z)=>{const ie=(Ne(n,U,{_f:{}})._f||{}).ref,ue=Ne(r.errors,U)||{},{ref:ce,message:Ee,type:Ae,...ft}=ue;lr(r.errors,U,{...ft,...K,ref:ie}),h.state.next({name:U,errors:r.errors,isValid:!1}),Z&&Z.shouldFocus&&ie&&ie.focus&&ie.focus()},ge=(U,K)=>ds(U)?h.values.subscribe({next:Z=>U(L(void 0,K),Z)}):L(U,K,!0),pe=(U,K={})=>{for(const Z of U?wa(U):l.mount)l.mount.delete(Z),l.array.delete(Z),K.keepValue||(Jr(n,Z),Jr(o,Z)),!K.keepError&&Jr(r.errors,Z),!K.keepDirty&&Jr(r.dirtyFields,Z),!K.keepTouched&&Jr(r.touchedFields,Z),!K.keepIsValidating&&Jr(r.validatingFields,Z),!t.shouldUnregister&&!K.keepDefaultValue&&Jr(a,Z);h.values.next({values:{...o}}),h.state.next({...r,...K.keepDirty?{isDirty:F()}:{}}),!K.keepIsValid&&O()},me=({disabled:U,name:K,field:Z,fields:ie,value:ue})=>{if(po(U)&&i.mount||U){const ce=U?void 0:vr(ue)?Kw(Z?Z._f:Ne(ie,K)._f):ue;lr(o,K,ce),C(K,ce,!1,!1,!0)}},xe=(U,K={})=>{let Z=Ne(n,U);const ie=po(K.disabled)||po(e.disabled);return lr(n,U,{...Z||{},_f:{...Z&&Z._f?Z._f:{ref:{name:U}},name:U,mount:!0,...K}}),l.mount.add(U),Z?me({field:Z,disabled:po(K.disabled)?K.disabled:e.disabled,name:U,value:K.value}):P(U,!0,K.value),{...ie?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:Vp(K.min),max:Vp(K.max),minLength:Vp(K.minLength),maxLength:Vp(K.maxLength),pattern:Vp(K.pattern)}:{},name:U,onChange:z,onBlur:z,ref:ue=>{if(ue){xe(U,K),Z=Ne(n,U);const ce=vr(ue.value)&&ue.querySelectorAll&&ue.querySelectorAll("input,select,textarea")[0]||ue,Ee=hbe(ce),Ae=Z._f.refs||[];if(Ee?Ae.find(ft=>ft===ce):ce===Z._f.ref)return;lr(n,U,{_f:{...Z._f,...Ee?{refs:[...Ae.filter(Gw),ce,...Array.isArray(Ne(a,U))?[{}]:[]],ref:{type:ce.type,name:U}}:{ref:ce}}}),P(U,!1,void 0,ce)}else Z=Ne(n,U,{}),Z._f&&(Z._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(fz(l.array,U)&&i.action)&&l.unMount.add(U)}}},ne=()=>t.shouldFocusError&&Ud(n,q,l.mount),Ie=U=>{po(U)&&(h.state.next({disabled:U}),Ud(n,(K,Z)=>{const ie=Ne(n,Z);ie&&(K.disabled=ie._f.disabled||U,Array.isArray(ie._f.refs)&&ie._f.refs.forEach(ue=>{ue.disabled=ie._f.disabled||U}))},0,!1))},ve=(U,K)=>async Z=>{let ie;Z&&(Z.preventDefault&&Z.preventDefault(),Z.persist&&Z.persist());let ue=un(o);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:ce,values:Ee}=await R();r.errors=ce,ue=Ee}else await T(n);if(Jr(r.errors,"root"),ea(r.errors)){h.state.next({errors:{}});try{await U(ue,Z)}catch(ce){ie=ce}}else K&&await K({...r.errors},Z),ne(),setTimeout(ne);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ea(r.errors)&&!ie,submitCount:r.submitCount+1,errors:r.errors}),ie)throw ie},$e=(U,K={})=>{Ne(n,U)&&(vr(K.defaultValue)?W(U,un(Ne(a,U))):(W(U,K.defaultValue),lr(a,U,un(K.defaultValue))),K.keepTouched||Jr(r.touchedFields,U),K.keepDirty||(Jr(r.dirtyFields,U),r.isDirty=K.defaultValue?F(U,un(Ne(a,U))):F()),K.keepError||(Jr(r.errors,U),f.isValid&&O()),h.state.next({...r}))},ye=(U,K={})=>{const Z=U?un(U):a,ie=un(Z),ue=ea(U),ce=ue?a:ie;if(K.keepDefaultValues||(a=Z),!K.keepValues){if(K.keepDirtyValues)for(const Ee of l.mount)Ne(r.dirtyFields,Ee)?lr(ce,Ee,Ne(o,Ee)):W(Ee,Ne(ce,Ee));else{if(UR&&vr(U))for(const Ee of l.mount){const Ae=Ne(n,Ee);if(Ae&&Ae._f){const ft=Array.isArray(Ae._f.refs)?Ae._f.refs[0]:Ae._f.ref;if(Ob(ft)){const De=ft.closest("form");if(De){De.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?un(a):{}:un(ce),h.array.next({values:{...ce}}),h.values.next({values:{...ce}})}l={mount:K.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,h.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:ue?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!il(U,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ue?{}:K.keepDirtyValues?K.keepDefaultValues&&o?Rg(a,o):r.dirtyFields:K.keepDefaultValues&&U?Rg(a,U):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},je=(U,K)=>ye(ds(U)?U(o):U,K);return{control:{register:xe,unregister:pe,getFieldState:J,handleSubmit:ve,setError:le,_executeSchema:R,_getWatch:L,_getDirty:F,_updateValid:O,_removeUnmounted:M,_updateFieldArray:y,_updateDisabledField:me,_getFieldArray:B,_reset:ye,_resetDefaultValues:()=>ds(t.defaultValues)&&t.defaultValues().then(U=>{je(U,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:U=>{r={...r,...U}},_disableForm:Ie,_subjects:h,_proxyFormState:f,_setErrors:S,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(U){i=U},get _defaultValues(){return a},get _names(){return l},set _names(U){l=U},get _formState(){return r},set _formState(U){r=U},get _options(){return t},set _options(U){t={...t,...U}}},trigger:ee,register:xe,handleSubmit:ve,watch:ge,setValue:W,getValues:oe,reset:je,resetField:$e,clearErrors:we,unregister:pe,setError:le,setFocus:(U,K={})=>{const Z=Ne(n,U),ie=Z&&Z._f;if(ie){const ue=ie.refs?ie.refs[0]:ie.ref;ue.focus&&(ue.focus(),K.shouldSelect&&ue.select())}},getFieldState:J}}function Rz(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:ds(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ds(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...xbe(e),formState:n});const o=t.current.control;return o._options=e,g_({subject:o._subjects.state,next:i=>{gz(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),ke.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),ke.useEffect(()=>{e.values&&!il(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),ke.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=mz(n,o),t.current}var kb=function(){return kb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0,c=d.useState(!1),s=c[0],f=c[1],h=!e||!l||o,v=Wte(function(m){var b=m.currentLocation,w=m.nextLocation;if(h)return!1;var O=t||b.pathname,_=w.pathname.startsWith(O),y=w.pathname.startsWith("".concat(O,"/show")),x=_&&!y;return!x});d.useEffect(function(){if(v.state==="blocked"){if(h){v.proceed();return}f(!0)}},[v.state]),d.useEffect(function(){if(s){var m=window.confirm(n("ra.message.unsaved_changes"));m?v.proceed&&v.proceed():v.reset&&v.reset()}f(!1)},[s,n]),d.useEffect(function(){var m=function(b){b.preventDefault(),b.returnValue=!0};if(!h)return window.addEventListener("beforeunload",m),function(){window.removeEventListener("beforeunload",m)}},[h])},Fbe=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return Mbe(r,n,a),null};function Lbe(e,t){var r=PR({},Dbe(e,t),t);return r}function Dbe(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var Tz=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],l=o[1];if(typeof l=="object"){r(l,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:l.toString()})})};r(e,"")},Nbe=function(e,t){t===void 0&&(t=!0);var r=Qv(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=gr();d.useEffect(function(){var l,c;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var s=typeof((c=(l=a.root)===null||l===void 0?void 0:l.serverError)===null||c===void 0?void 0:c.message)=="string"?a.root.serverError.message:void 0;i(s||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},Bbe=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},ZE=function(){return ZE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[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,}))$/,Ql=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function qbe(e){return e?e.hasOwnProperty("message"):!1}var Xl=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Yl=function(e){return H5(e,function(){for(var t=[],r=0;re?Xl(t,{max:e},r,n):void 0}});Yl(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Ql(r)&&re?Xl(t,{max:e},r,n):void 0}}),Az=Yl(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Ql(t)&&isNaN(Number(t))?Xl(e,void 0,t,r):void 0}}),qR=H5(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Ql(r)&&typeof r=="string"&&!e.test(r)?Xl(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Yl(function(e){return e===void 0&&(e="ra.validation.email"),qR(Hbe,e)});var Ybe=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Yl(function(e,t){return t===void 0&&(t=Ybe),function(r,n){return!Ql(r)&&e.indexOf(r)===-1?Xl(t,{list:e},r,n):void 0}});var Jbe=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},Mz=d.createContext(null),b_=function(){var e=d.useContext($z);return e},Zbe=function(e){var t=e.children,r=e.name,n=b_();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(Mz.Provider,{value:r},t)},Fz=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=M_(o),l=Kt(t),c=Mo(),s=c.getValues,f=c.resetField,h=c.formState,v=c.reset,m=qt(l,i),b=qt(s(),i),w=h.dirtyFields,O=Object.keys(w).includes(i);d.useEffect(function(){if(!(a==null||b!=null||m!=null||O)){var _=i.split(".").some(function(S){return e0e.test(S)});if(_){var y=i.split(".").slice(0,-1).join("."),x=qt(s(),y);if(x==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),v({},{keepValues:!0});return}f(i,{defaultValue:a})}})},e0e=/^\d+$/,Lz=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,l=e.translateChoice,c=l===void 0?!0:l,s=Be(),f=d.useCallback(function(m){if(d.isValidElement(r))return d.createElement(Kl,{value:m},r);var b=typeof r=="function"?r(m):qt(m,r);return d.isValidElement(b)?b:c?s(String(b),{_:b}):String(b)},[r,s,c]),h=d.useCallback(function(m){return qt(m,a)},[a]),v=d.useCallback(function(m){return qt(m,i)},[i]);return{getChoiceText:f,getChoiceValue:h,getDisableValue:v}},t0e=function(e){var t=Qv(),r=t.dirtyFields,n=t.touchedFields,a=t.validatingFields,o=t.errors,i=Object.keys(r),l=Object.keys(n),c=Object.keys(a),s=Object.keys(o),f=b_(),h=d.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0,isValidating:!0}),v=h[0],m=h[1],b=Gt(function(){if(f){var w=f.getGroupFields(e),O=w.map(function(y){return{name:y,error:qt(o,y,void 0),isDirty:qt(r,y,!1)!==!1,isValid:qt(o,y,void 0)==null,isValidating:qt(a,y,void 0)==null,isTouched:qt(n,y,!1)!==!1}}).filter(function(y){return y!=null}),_=r0e(O);m(function(y){return Eo(y,_)?y:_})}});return d.useEffect(function(){b()},[JSON.stringify(i),JSON.stringify(s),JSON.stringify(l),JSON.stringify(c),b,e,f]),d.useEffect(function(){if(f){var w=f.subscribe(e,function(){b()});return w}},[f,e,b]),v},r0e=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var a={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid,isValidating:t.isValidating&&r.isValidating};return a},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1,isValidating:!1})},Dz=function(){var e=d.useContext(Mz);return e},tC=function(){return tC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var Wz=function(){return d.useContext(Uz)},nC=function(){return nC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0||b.customRoutesWithLayout.length>0||b.customRoutesWithoutLayout.length>0?"ready":"empty"),m&&h(m),[2]})})};r||v()},[e,n,r,l,t,i,f]),[o,s]},k0e=function(e){var t=d.useState(e),r=t[0],n=t[1],a=d.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},j0e=function(e,t){var r=Wz(),n=r.register,a=r.unregister;d.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},T0e=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return Hz(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},Hz=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]},lh=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(d.Children.forEach(e,function(a){if(d.isValidElement(a)){if(a.type===d.Fragment){var o=lh(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},qz=d.createContext(!1),I0e=qz.Provider,A0e=function(){return d.useContext(qz)},M0e=function(e){_0e();var t=Pc(),r=R0e(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,l=e.layout,c=e.catchAll,s=e.dashboard,f=e.loading,h=e.requireAuth,v=e.ready,m=d.useState(h),b=m[0],w=m[1],O=d.useState(h),_=O[0],y=O[1],x=y6();if(d.useEffect(function(){h&&x(void 0,!1).then(function(){w(!1)}).catch(function(){}).finally(function(){y(!1)})},[x,h]),o==="empty"){if(!v)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(v,null)}return o==="loading"||_?d.createElement(xl,null,a,d.createElement(On,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(f,null))})):b?d.createElement(xl,null,a,d.createElement(On,{path:"*",element:d.createElement(C_e,null)})):d.createElement(xl,null,a,d.createElement(On,{path:"/*",element:d.createElement(I0e,{value:!!s},d.createElement(l,null,d.createElement(xl,null,n,d.Children.map(i,function(S){return d.createElement(On,{key:S.props.name,path:"".concat(S.props.name,"/*"),element:S})}),d.createElement(On,{path:"/",element:s?d.createElement(y_e,{authParams:F0e,component:s}):i.length>0?d.createElement(qte,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(On,{path:"*",element:d.createElement(c,null)}))))}))},F0e={params:{route:"dashboard"}},Gz=d.createContext("React Admin"),L0e=Gz.Provider,Kz=function(){return d.useContext(Gz)},D0e=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},N0e=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return Bz(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},B0e=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,l=i===void 0?JF:i,c=e.children,s=e.dashboard,f=e.disableTelemetry,h=f===void 0?!1:f,v=e.error,m=v===void 0?N0e:v,b=e.layout,w=b===void 0?D0e:b,O=e.loading,_=O===void 0?JF:O,y=e.loginPage,x=y===void 0?!1:y,S=e.ready,P=S===void 0?e_e:S,C=e.requireAuth,$=C===void 0?!1:C,R=e.title,k=R===void 0?"React Admin":R;d.useEffect(function(){if(!(h||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var M=new Image;M.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[h]);var T=function(M,F){return n(F)};return d.createElement(L0e,{value:k},d.createElement(Vz,{onError:T,fallbackRender:function(M){var F=M.error,L=M.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(m,{error:F,errorInfo:r,resetErrorBoundary:L}))}},d.createElement(xl,null,x!==!1&&x!==!0?d.createElement(On,{path:"/login",element:YF(x)}):null,o!==!1&&o!==!0?d.createElement(On,{path:"/auth-callback",element:YF(o)}):null,d.createElement(On,{path:"/*",element:d.createElement(M0e,{catchAll:l,dashboard:s,layout:w,loading:_,requireAuth:$,ready:P},c)}))))},YF=function(e){return d.isValidElement(e)?e:d.createElement(e)},JF=function(){return null},Qz=function(e){return null};Qz.raName="CustomRoutes";var Xz=d.createContext(void 0),Jl=function(e){var t=e.children,r=e.value;return r?d.createElement(Xz.Provider,{value:r},t):t},Yz=function(e){var t=e.value,r=e.children;return t?d.createElement(Jl,{value:t},r):r},Jz={exports:{}},or={};/** * @license React * react-is.production.min.js * @@ -110,21 +110,21 @@ React-admin requires a valid dataProvider function to work.`);var f=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 KR=Symbol.for("react.element"),QR=Symbol.for("react.portal"),__=Symbol.for("react.fragment"),x_=Symbol.for("react.strict_mode"),w_=Symbol.for("react.profiler"),S_=Symbol.for("react.provider"),E_=Symbol.for("react.context"),Ube=Symbol.for("react.server_context"),C_=Symbol.for("react.forward_ref"),O_=Symbol.for("react.suspense"),P_=Symbol.for("react.suspense_list"),R_=Symbol.for("react.memo"),$_=Symbol.for("react.lazy"),Vbe=Symbol.for("react.offscreen"),Zz;Zz=Symbol.for("react.module.reference");function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case KR:switch(e=e.type,e){case __:case w_:case x_:case O_:case P_:return e;default:switch(e=e&&e.$$typeof,e){case Ube:case E_:case C_:case $_:case R_:case S_:return e;default:return t}}case QR:return t}}}or.ContextConsumer=E_;or.ContextProvider=S_;or.Element=KR;or.ForwardRef=C_;or.Fragment=__;or.Lazy=$_;or.Memo=R_;or.Portal=QR;or.Profiler=w_;or.StrictMode=x_;or.Suspense=O_;or.SuspenseList=P_;or.isAsyncMode=function(){return!1};or.isConcurrentMode=function(){return!1};or.isContextConsumer=function(e){return Fo(e)===E_};or.isContextProvider=function(e){return Fo(e)===S_};or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===KR};or.isForwardRef=function(e){return Fo(e)===C_};or.isFragment=function(e){return Fo(e)===__};or.isLazy=function(e){return Fo(e)===$_};or.isMemo=function(e){return Fo(e)===R_};or.isPortal=function(e){return Fo(e)===QR};or.isProfiler=function(e){return Fo(e)===w_};or.isStrictMode=function(e){return Fo(e)===x_};or.isSuspense=function(e){return Fo(e)===O_};or.isSuspenseList=function(e){return Fo(e)===P_};or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===__||e===w_||e===x_||e===O_||e===P_||e===Vbe||typeof e=="object"&&e!==null&&(e.$$typeof===$_||e.$$typeof===R_||e.$$typeof===S_||e.$$typeof===E_||e.$$typeof===C_||e.$$typeof===Zz||e.getModuleId!==void 0)};or.typeOf=Fo;Jz.exports=or;var aC=Jz.exports,ln=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(Jl,{value:a},d.createElement(xl,null,t&&d.createElement(On,{path:"create/*",element:$g(t)}),o&&d.createElement(On,{path:":id/show/*",element:$g(o)}),r&&d.createElement(On,{path:":id/*",element:$g(r)}),n&&d.createElement(On,{path:"/*",element:d.createElement(bve,{storeKey:"".concat(a,".list.scrollPosition")},$g(n))}),e.children))},$g=function(e){if(d.isValidElement(e))return e;if(aC.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};ln.raName="Resource";ln.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,l=e.show,c=e.recordRepresentation,s=e.hasCreate,f=e.hasEdit,h=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!s,hasEdit:!!r||!!f,hasShow:!!l||!!h,icon:n,recordRepresentation:c}};var XR=d.createContext(void 0),Wbe={getSource:function(e){return e},getLabel:function(e){return e}},k_=XR.Provider,YR=function(){var e=d.useContext(XR);return e||Wbe},Hbe=function(){return d.useContext(XR)},Yv=function(){return Wz().definitions},Jt={};/*! + */var KR=Symbol.for("react.element"),QR=Symbol.for("react.portal"),__=Symbol.for("react.fragment"),x_=Symbol.for("react.strict_mode"),w_=Symbol.for("react.profiler"),S_=Symbol.for("react.provider"),E_=Symbol.for("react.context"),z0e=Symbol.for("react.server_context"),C_=Symbol.for("react.forward_ref"),O_=Symbol.for("react.suspense"),P_=Symbol.for("react.suspense_list"),R_=Symbol.for("react.memo"),$_=Symbol.for("react.lazy"),U0e=Symbol.for("react.offscreen"),Zz;Zz=Symbol.for("react.module.reference");function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case KR:switch(e=e.type,e){case __:case w_:case x_:case O_:case P_:return e;default:switch(e=e&&e.$$typeof,e){case z0e:case E_:case C_:case $_:case R_:case S_:return e;default:return t}}case QR:return t}}}or.ContextConsumer=E_;or.ContextProvider=S_;or.Element=KR;or.ForwardRef=C_;or.Fragment=__;or.Lazy=$_;or.Memo=R_;or.Portal=QR;or.Profiler=w_;or.StrictMode=x_;or.Suspense=O_;or.SuspenseList=P_;or.isAsyncMode=function(){return!1};or.isConcurrentMode=function(){return!1};or.isContextConsumer=function(e){return Fo(e)===E_};or.isContextProvider=function(e){return Fo(e)===S_};or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===KR};or.isForwardRef=function(e){return Fo(e)===C_};or.isFragment=function(e){return Fo(e)===__};or.isLazy=function(e){return Fo(e)===$_};or.isMemo=function(e){return Fo(e)===R_};or.isPortal=function(e){return Fo(e)===QR};or.isProfiler=function(e){return Fo(e)===w_};or.isStrictMode=function(e){return Fo(e)===x_};or.isSuspense=function(e){return Fo(e)===O_};or.isSuspenseList=function(e){return Fo(e)===P_};or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===__||e===w_||e===x_||e===O_||e===P_||e===U0e||typeof e=="object"&&e!==null&&(e.$$typeof===$_||e.$$typeof===R_||e.$$typeof===S_||e.$$typeof===E_||e.$$typeof===C_||e.$$typeof===Zz||e.getModuleId!==void 0)};or.typeOf=Fo;Jz.exports=or;var aC=Jz.exports,ln=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(Jl,{value:a},d.createElement(xl,null,t&&d.createElement(On,{path:"create/*",element:$g(t)}),o&&d.createElement(On,{path:":id/show/*",element:$g(o)}),r&&d.createElement(On,{path:":id/*",element:$g(r)}),n&&d.createElement(On,{path:"/*",element:d.createElement(yve,{storeKey:"".concat(a,".list.scrollPosition")},$g(n))}),e.children))},$g=function(e){if(d.isValidElement(e))return e;if(aC.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};ln.raName="Resource";ln.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,l=e.show,c=e.recordRepresentation,s=e.hasCreate,f=e.hasEdit,h=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!s,hasEdit:!!r||!!f,hasShow:!!l||!!h,icon:n,recordRepresentation:c}};var XR=d.createContext(void 0),V0e={getSource:function(e){return e},getLabel:function(e){return e}},k_=XR.Provider,YR=function(){var e=d.useContext(XR);return e||V0e},W0e=function(){return d.useContext(XR)},Yv=function(){return Wz().definitions},Jt={};/*! * inflection * Copyright(c) 2011 Ben Lin * MIT Licensed * * @fileoverview * A port of inflection-js to node.js module. - */Object.defineProperty(Jt,"__esModule",{value:!0});var e6=Jt.transform=Jt.ordinalize=Jt.foreignKey=Jt.classify=Jt.tableize=Jt.demodulize=Jt.titleize=Jt.dasherize=Jt.capitalize=I_=Jt.humanize=Jt.underscore=Jt.camelize=o6=Jt.inflect=e2=Jt.singularize=a6=Jt.pluralize=void 0;const A0=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],_e={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},t6=[[_e.plural.men],[_e.plural.people],[_e.plural.children],[_e.plural.tia],[_e.plural.analyses],[_e.plural.databases],[_e.plural.drives],[_e.plural.hives],[_e.plural.curves],[_e.plural.lrves],[_e.plural.foves],[_e.plural.aeiouyies],[_e.plural.series],[_e.plural.movies],[_e.plural.xes],[_e.plural.mice],[_e.plural.buses],[_e.plural.oes],[_e.plural.shoes],[_e.plural.crises],[_e.plural.octopuses],[_e.plural.aliases],[_e.plural.summonses],[_e.plural.oxen],[_e.plural.matrices],[_e.plural.feet],[_e.plural.teeth],[_e.plural.geese],[_e.plural.quizzes],[_e.plural.whereases],[_e.plural.criteria],[_e.plural.genera],[_e.singular.man,"$1en"],[_e.singular.person,"$1ople"],[_e.singular.child,"$1ren"],[_e.singular.drive,"$1s"],[_e.singular.ox,"$1en"],[_e.singular.axis,"$1es"],[_e.singular.octopus,"$1uses"],[_e.singular.alias,"$1es"],[_e.singular.summons,"$1es"],[_e.singular.bus,"$1ses"],[_e.singular.buffalo,"$1oes"],[_e.singular.tium,"$1a"],[_e.singular.sis,"ses"],[_e.singular.ffe,"$1$2ves"],[_e.singular.hive,"$1ves"],[_e.singular.aeiouyy,"$1ies"],[_e.singular.matrix,"$1ices"],[_e.singular.vertex,"$1ices"],[_e.singular.x,"$1es"],[_e.singular.mouse,"$1ice"],[_e.singular.foot,"feet"],[_e.singular.tooth,"teeth"],[_e.singular.goose,"geese"],[_e.singular.quiz,"$1zes"],[_e.singular.whereas,"$1es"],[_e.singular.criterion,"$1a"],[_e.singular.genus,"genera"],[_e.singular.s,"s"],[_e.singular.common,"s"]],r6=[[_e.singular.man],[_e.singular.person],[_e.singular.child],[_e.singular.drive],[_e.singular.ox],[_e.singular.axis],[_e.singular.octopus],[_e.singular.alias],[_e.singular.summons],[_e.singular.bus],[_e.singular.buffalo],[_e.singular.tium],[_e.singular.sis],[_e.singular.ffe],[_e.singular.hive],[_e.singular.aeiouyy],[_e.singular.x],[_e.singular.matrix],[_e.singular.mouse],[_e.singular.foot],[_e.singular.tooth],[_e.singular.goose],[_e.singular.quiz],[_e.singular.whereas],[_e.singular.criterion],[_e.singular.genus],[_e.plural.men,"$1an"],[_e.plural.people,"$1rson"],[_e.plural.children,"$1"],[_e.plural.databases,"$1"],[_e.plural.drives,"$1"],[_e.plural.genera,"genus"],[_e.plural.criteria,"$1on"],[_e.plural.tia,"$1um"],[_e.plural.analyses,"$1$2sis"],[_e.plural.hives,"$1ve"],[_e.plural.curves,"$1"],[_e.plural.lrves,"$1f"],[_e.plural.aves,"$1ve"],[_e.plural.foves,"$1fe"],[_e.plural.movies,"$1ovie"],[_e.plural.aeiouyies,"$1y"],[_e.plural.series,"$1eries"],[_e.plural.xes,"$1"],[_e.plural.mice,"$1ouse"],[_e.plural.buses,"$1"],[_e.plural.oes,"$1"],[_e.plural.shoes,"$1"],[_e.plural.crises,"$1is"],[_e.plural.octopuses,"$1us"],[_e.plural.aliases,"$1"],[_e.plural.summonses,"$1"],[_e.plural.oxen,"$1"],[_e.plural.matrices,"$1ix"],[_e.plural.vertices,"$1ex"],[_e.plural.feet,"foot"],[_e.plural.teeth,"tooth"],[_e.plural.geese,"goose"],[_e.plural.quizzes,"$1"],[_e.plural.whereases,"$1"],[_e.plural.ss,"ss"],[_e.plural.s,""]],qbe=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],Gbe=new RegExp("(_ids|_id)$","g"),n6=new RegExp("_","g"),Kbe=new RegExp("[ _]","g"),Qbe=new RegExp("([A-Z])","g"),Xbe=new RegExp("^_");function M0(e,t,r,n){if(n)return n;if(r.includes(e.toLocaleLowerCase()))return e;for(const a of t)if(e.match(a[0]))return a[1]!==void 0?e.replace(a[0],a[1]):e;return e}function JR(e,t){return M0(e,t6,A0,t)}var a6=Jt.pluralize=JR;function ZR(e,t){return M0(e,r6,A0,t)}var e2=Jt.singularize=ZR;function Ybe(e,t,r,n){return isNaN(t)?e:t===1?M0(e,r6,A0,r):M0(e,t6,A0,n)}var o6=Jt.inflect=Ybe;function t2(e,t){const r=e.split("/"),n=r.length;let a,o,i,l;for(let c=0;c1?a6(r):e2(r))});return o}},Vt=function(e){var t=d.useContext(Xz);return e&&e.resource||t},Rs=function(e){var t=Vt(e),r=Yv(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,l=n.hasShow,c=n.recordRepresentation,s=d.useMemo(function(){return zR({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:l,recordRepresentation:c},t?r[t]:{})},[t,r,a,o,i,l,c]);return s},A_=function(e){var t=Rs({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?qt(r,t):d.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},M_=function(e){var t=YR();return t.getSource(e)},p6=function(){var e=Be(),t=Vt(),r=Hbe();return d.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,r_e({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},e_e="en",h6=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=p6();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,o({label:r,resource:n,source:t}),a&&d.createElement("span",{"aria-hidden":"true"}," *"))};h6.displayName="FieldTitle";const Ro=d.memo(h6),t_e=function(){return d.createElement("span",null)},n2=function(e,t){};var r_e=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var i=n_e(o),l=i.sourceWithoutDigits,c=i.sourceSuffix,s=e6(c.replace(/\./g," "),["underscore","humanize"]);return n?[ZF(n,l),{_:s}]:r?[r,{_:s}]:[ZF(a||"undefined",l),{_:s}]},ZF=function(e,t){return"resources.".concat(e,".fields.").concat(t)},n_e=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){a_e(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},a_e=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function o_e(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var i_e=typeof window<"u"?d.useLayoutEffect:d.useEffect,Gt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return i_e(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:v)});return function(){return h()}},[e,o,t,n,l]);var s=Gt(function(f,h){var v=typeof f=="function"?f(l):f;a(e,typeof v>"u"?typeof h>"u"?t:h:v)});return[l,s]},s_e=function(e){var t=s_().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])},l_e=function(e){var t=s_().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])},u_e=function(){var e=s_().reset;return e},ep=function(){var e=Os(),t=Ao(),r=u_e(),n=Li(),a=d.useRef(n),o=hn(),i=d.useRef(o),l=Gl(),c=_i("".concat(l,"/").concat(Gb.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var s=d.useCallback(function(f,h,v){return f===void 0&&(f={}),h===void 0&&(h=c),v===void 0&&(v=!0),e?e.logout(f).then(function(m){if(m===!1||h===!1){r(),t.clear();return}var b=m||h;if(b!=null&&b.startsWith("http"))return r(),t.clear(),window.location.href=b,b;var w=b.split("?"),O={pathname:w[0]},_={};return v&&i.current&&i.current.pathname&&(_={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),w[1]&&(O.search=w[1]),a.current(O,_),r(),t.clear(),m}):(a.current({pathname:c},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,c,t]);return s},Au=function(){return Au=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},tL=function(){},Mu=function(){return Mu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"),tp(t);var i=m6(t).permissions;if(a)return d.createElement(a,Oh({permissions:i},o));if(n)return n(Oh({permissions:i},o));if(r)return r(Oh({permissions:i},o))},g6=function(){var e=Os(),t=hn(),r=t.state,n=Li(),a=Gl(),o=cB().resetNotifications,i=r&&r.nextPathname,l=r&&r.nextSearch,c=_i("".concat(a,"/").concat(Gb.afterLoginUrl)),s=d.useCallback(function(f,h){return f===void 0&&(f={}),e?e.login(f).then(function(v){if(o(),v&&v.hasOwnProperty("redirectTo"))v&&n(v.redirectTo);else{var m=h||i+l||c;n(m)}return v}):(o(),n(c),Promise.resolve())},[e,n,i,l,o,c]);return s},__e="AUTH_LOGIN",x_e="AUTH_CHECK",w_e="AUTH_ERROR",S_e="AUTH_LOGOUT",E_e="AUTH_GET_PERMISSIONS";const C_e=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Ph=function(){return Ph=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return $n(r&&e?"".concat(r,".").concat(e):r??e,t)},a2=function(){var e=d.useContext(zz);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},N_e=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Cn(rp,--Ra):0,Pf--,Zr===10&&(Pf=1,L_--),Zr}function Wa(){return Zr=Ra2||pv(Zr)>3?"":" "}function o1e(e,t){for(;--t&&Wa()&&!(Zr<48||Zr>102||Zr>57&&Zr<65||Zr>70&&Zr<97););return Jv(e,my()+(t<6&&$i()==32&&Wa()==32))}function sC(e){for(;Wa();)switch(Zr){case e:return Ra;case 34:case 39:e!==34&&e!==39&&sC(Zr);break;case 40:e===41&&sC(e);break;case 92:Wa();break}return Ra}function i1e(e,t){for(;Wa()&&e+Zr!==57;)if(e+Zr===84&&$i()===47)break;return"/*"+Jv(t,Ra-1)+"*"+F_(e===47?e:Wa())}function s1e(e){for(;!pv($i());)Wa();return Jv(e,Ra)}function l1e(e){return R6(yy("",null,null,null,[""],e=P6(e),0,[0],e))}function yy(e,t,r,n,a,o,i,l,c){for(var s=0,f=0,h=i,v=0,m=0,b=0,w=1,O=1,_=1,y=0,x="",S=a,P=o,C=n,$=x;O;)switch(b=y,y=Wa()){case 40:if(b!=108&&Cn($,h-1)==58){iC($+=Yt(gy(y),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:$+=gy(y);break;case 9:case 10:case 13:case 32:$+=a1e(b);break;case 92:$+=o1e(my()-1,7);continue;case 47:switch($i()){case 42:case 47:kg(u1e(i1e(Wa(),my()),t,r),c);break;default:$+="/"}break;case 123*w:l[s++]=xi($)*_;case 125*w:case 59:case 0:switch(y){case 0:case 125:O=0;case 59+f:_==-1&&($=Yt($,/\f/g,"")),m>0&&xi($)-h&&kg(m>32?iL($+";",n,r,h-1):iL(Yt($," ","")+";",n,r,h-2),c);break;case 59:$+=";";default:if(kg(C=oL($,t,r,s,f,a,l,x,S=[],P=[],h),o),y===123)if(f===0)yy($,t,C,C,S,o,h,l,P);else switch(v===99&&Cn($,3)===110?100:v){case 100:case 108:case 109:case 115:yy(e,C,C,n&&kg(oL(e,C,C,0,0,a,l,x,a,S=[],h),P),a,P,h,l,n?S:P);break;default:yy($,C,C,C,[""],P,0,l,P)}}s=f=m=0,w=_=1,x=$="",h=i;break;case 58:h=1+xi($),m=b;default:if(w<1){if(y==123)--w;else if(y==125&&w++==0&&n1e()==125)continue}switch($+=F_(y),y*w){case 38:_=f>0?1:($+="\f",-1);break;case 44:l[s++]=(xi($)-1)*_,_=1;break;case 64:$i()===45&&($+=gy(Wa())),v=$i(),f=h=xi(x=$+=s1e(my())),y++;break;case 45:b===45&&xi($)==2&&(w=0)}}return o}function oL(e,t,r,n,a,o,i,l,c,s,f){for(var h=a-1,v=a===0?o:[""],m=s2(v),b=0,w=0,O=0;b0?v[_]+" "+y:Yt(y,/&\f/g,v[_])))&&(c[O++]=x);return D_(e,t,r,a===0?o2:l,c,s,f)}function u1e(e,t,r){return D_(e,t,r,S6,F_(r1e()),fv(e,2,-2),0)}function iL(e,t,r,n){return D_(e,t,r,i2,fv(e,0,n),fv(e,n+1,-1),n)}function Vd(e,t){for(var r="",n=s2(e),a=0;a6)switch(Cn(e,t+1)){case 109:if(Cn(e,t+4)!==45)break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Xt+"$2-$3$1"+F0+(Cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~iC(e,"stretch")?$6(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Cn(e,t+1)!==115)break;case 6444:switch(Cn(e,xi(e)-3-(~iC(e,"!important")&&10))){case 107:return Yt(e,":",":"+Xt)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xt+(Cn(e,14)===45?"inline-":"")+"box$3$1"+Xt+"$2$3$1"+Dn+"$2box$3")+e}break;case 5936:switch(Cn(e,t+11)){case 114:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xt+e+Dn+e+e}return e}var y1e=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case i2:t.return=$6(t.value,t.length);break;case E6:return Vd([Hp(t,{value:Yt(t.value,"@","@"+Xt)})],a);case o2:if(t.length)return t1e(t.props,function(o){switch(e1e(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vd([Hp(t,{props:[Yt(o,/:(read-\w+)/,":"+F0+"$1")]})],a);case"::placeholder":return Vd([Hp(t,{props:[Yt(o,/:(plac\w+)/,":"+Xt+"input-$1")]}),Hp(t,{props:[Yt(o,/:(plac\w+)/,":"+F0+"$1")]}),Hp(t,{props:[Yt(o,/:(plac\w+)/,Dn+"input-$1")]})],a)}return""})}},b1e=[y1e],k6=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var O=w.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var a=t.stylisPlugins||b1e,o={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var O=w.getAttribute("data-emotion").split(" "),_=1;_1?a6(r):e2(r))});return o}},Vt=function(e){var t=d.useContext(Xz);return e&&e.resource||t},Rs=function(e){var t=Vt(e),r=Yv(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,l=n.hasShow,c=n.recordRepresentation,s=d.useMemo(function(){return zR({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:l,recordRepresentation:c},t?r[t]:{})},[t,r,a,o,i,l,c]);return s},A_=function(e){var t=Rs({resource:e}).recordRepresentation;return d.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?qt(r,t):d.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},M_=function(e){var t=YR();return t.getSource(e)},p6=function(){var e=Be(),t=Vt(),r=W0e();return d.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,t_e({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},Z0e="en",h6=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=p6();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,o({label:r,resource:n,source:t}),a&&d.createElement("span",{"aria-hidden":"true"}," *"))};h6.displayName="FieldTitle";const Ro=d.memo(h6),e_e=function(){return d.createElement("span",null)},n2=function(e,t){};var t_e=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var i=r_e(o),l=i.sourceWithoutDigits,c=i.sourceSuffix,s=e6(c.replace(/\./g," "),["underscore","humanize"]);return n?[ZF(n,l),{_:s}]:r?[r,{_:s}]:[ZF(a||"undefined",l),{_:s}]},ZF=function(e,t){return"resources.".concat(e,".fields.").concat(t)},r_e=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){n_e(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},n_e=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0};function a_e(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var o_e=typeof window<"u"?d.useLayoutEffect:d.useEffect,Gt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return o_e(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:v)});return function(){return h()}},[e,o,t,n,l]);var s=Gt(function(f,h){var v=typeof f=="function"?f(l):f;a(e,typeof v>"u"?typeof h>"u"?t:h:v)});return[l,s]},i_e=function(e){var t=s_().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])},s_e=function(e){var t=s_().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])},l_e=function(){var e=s_().reset;return e},ep=function(){var e=Os(),t=Ao(),r=l_e(),n=Li(),a=d.useRef(n),o=hn(),i=d.useRef(o),l=Gl(),c=_i("".concat(l,"/").concat(G0.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var s=d.useCallback(function(f,h,v){return f===void 0&&(f={}),h===void 0&&(h=c),v===void 0&&(v=!0),e?e.logout(f).then(function(m){if(m===!1||h===!1){r(),t.clear();return}var b=m||h;if(b!=null&&b.startsWith("http"))return r(),t.clear(),window.location.href=b,b;var w=b.split("?"),O={pathname:w[0]},_={};return v&&i.current&&i.current.pathname&&(_={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),w[1]&&(O.search=w[1]),a.current(O,_),r(),t.clear(),m}):(a.current({pathname:c},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,c,t]);return s},Au=function(){return Au=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},tL=function(){},Mu=function(){return Mu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"),tp(t);var i=m6(t).permissions;if(a)return d.createElement(a,Oh({permissions:i},o));if(n)return n(Oh({permissions:i},o));if(r)return r(Oh({permissions:i},o))},g6=function(){var e=Os(),t=hn(),r=t.state,n=Li(),a=Gl(),o=cB().resetNotifications,i=r&&r.nextPathname,l=r&&r.nextSearch,c=_i("".concat(a,"/").concat(G0.afterLoginUrl)),s=d.useCallback(function(f,h){return f===void 0&&(f={}),e?e.login(f).then(function(v){if(o(),v&&v.hasOwnProperty("redirectTo"))v&&n(v.redirectTo);else{var m=h||i+l||c;n(m)}return v}):(o(),n(c),Promise.resolve())},[e,n,i,l,o,c]);return s},b_e="AUTH_LOGIN",__e="AUTH_CHECK",x_e="AUTH_ERROR",w_e="AUTH_LOGOUT",S_e="AUTH_GET_PERMISSIONS";const E_e=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Ph=function(){return Ph=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return $n(r&&e?"".concat(r,".").concat(e):r??e,t)},a2=function(){var e=d.useContext(zz);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},D_e=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Cn(rp,--Ra):0,Pf--,Zr===10&&(Pf=1,L_--),Zr}function Wa(){return Zr=Ra2||pv(Zr)>3?"":" "}function a1e(e,t){for(;--t&&Wa()&&!(Zr<48||Zr>102||Zr>57&&Zr<65||Zr>70&&Zr<97););return Jv(e,my()+(t<6&&$i()==32&&Wa()==32))}function sC(e){for(;Wa();)switch(Zr){case e:return Ra;case 34:case 39:e!==34&&e!==39&&sC(Zr);break;case 40:e===41&&sC(e);break;case 92:Wa();break}return Ra}function o1e(e,t){for(;Wa()&&e+Zr!==57;)if(e+Zr===84&&$i()===47)break;return"/*"+Jv(t,Ra-1)+"*"+F_(e===47?e:Wa())}function i1e(e){for(;!pv($i());)Wa();return Jv(e,Ra)}function s1e(e){return R6(yy("",null,null,null,[""],e=P6(e),0,[0],e))}function yy(e,t,r,n,a,o,i,l,c){for(var s=0,f=0,h=i,v=0,m=0,b=0,w=1,O=1,_=1,y=0,x="",S=a,P=o,C=n,$=x;O;)switch(b=y,y=Wa()){case 40:if(b!=108&&Cn($,h-1)==58){iC($+=Yt(gy(y),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:$+=gy(y);break;case 9:case 10:case 13:case 32:$+=n1e(b);break;case 92:$+=a1e(my()-1,7);continue;case 47:switch($i()){case 42:case 47:kg(l1e(o1e(Wa(),my()),t,r),c);break;default:$+="/"}break;case 123*w:l[s++]=xi($)*_;case 125*w:case 59:case 0:switch(y){case 0:case 125:O=0;case 59+f:_==-1&&($=Yt($,/\f/g,"")),m>0&&xi($)-h&&kg(m>32?iL($+";",n,r,h-1):iL(Yt($," ","")+";",n,r,h-2),c);break;case 59:$+=";";default:if(kg(C=oL($,t,r,s,f,a,l,x,S=[],P=[],h),o),y===123)if(f===0)yy($,t,C,C,S,o,h,l,P);else switch(v===99&&Cn($,3)===110?100:v){case 100:case 108:case 109:case 115:yy(e,C,C,n&&kg(oL(e,C,C,0,0,a,l,x,a,S=[],h),P),a,P,h,l,n?S:P);break;default:yy($,C,C,C,[""],P,0,l,P)}}s=f=m=0,w=_=1,x=$="",h=i;break;case 58:h=1+xi($),m=b;default:if(w<1){if(y==123)--w;else if(y==125&&w++==0&&r1e()==125)continue}switch($+=F_(y),y*w){case 38:_=f>0?1:($+="\f",-1);break;case 44:l[s++]=(xi($)-1)*_,_=1;break;case 64:$i()===45&&($+=gy(Wa())),v=$i(),f=h=xi(x=$+=i1e(my())),y++;break;case 45:b===45&&xi($)==2&&(w=0)}}return o}function oL(e,t,r,n,a,o,i,l,c,s,f){for(var h=a-1,v=a===0?o:[""],m=s2(v),b=0,w=0,O=0;b0?v[_]+" "+y:Yt(y,/&\f/g,v[_])))&&(c[O++]=x);return D_(e,t,r,a===0?o2:l,c,s,f)}function l1e(e,t,r){return D_(e,t,r,S6,F_(t1e()),fv(e,2,-2),0)}function iL(e,t,r,n){return D_(e,t,r,i2,fv(e,0,n),fv(e,n+1,-1),n)}function Vd(e,t){for(var r="",n=s2(e),a=0;a6)switch(Cn(e,t+1)){case 109:if(Cn(e,t+4)!==45)break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Xt+"$2-$3$1"+Fb+(Cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~iC(e,"stretch")?$6(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Cn(e,t+1)!==115)break;case 6444:switch(Cn(e,xi(e)-3-(~iC(e,"!important")&&10))){case 107:return Yt(e,":",":"+Xt)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xt+(Cn(e,14)===45?"inline-":"")+"box$3$1"+Xt+"$2$3$1"+Dn+"$2box$3")+e}break;case 5936:switch(Cn(e,t+11)){case 114:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xt+e+Dn+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xt+e+Dn+e+e}return e}var g1e=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case i2:t.return=$6(t.value,t.length);break;case E6:return Vd([Hp(t,{value:Yt(t.value,"@","@"+Xt)})],a);case o2:if(t.length)return e1e(t.props,function(o){switch(Z_e(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vd([Hp(t,{props:[Yt(o,/:(read-\w+)/,":"+Fb+"$1")]})],a);case"::placeholder":return Vd([Hp(t,{props:[Yt(o,/:(plac\w+)/,":"+Xt+"input-$1")]}),Hp(t,{props:[Yt(o,/:(plac\w+)/,":"+Fb+"$1")]}),Hp(t,{props:[Yt(o,/:(plac\w+)/,Dn+"input-$1")]})],a)}return""})}},y1e=[g1e],k6=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var O=w.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var a=t.stylisPlugins||y1e,o={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var O=w.getAttribute("data-emotion").split(" "),_=1;_=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var j1e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},I1e=!1,T1e=/[A-Z]|^ms/g,A1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L6=function(t){return t.charCodeAt(1)===45},lL=function(t){return t!=null&&typeof t!="boolean"},Yw=w6(function(e){return L6(e)?e:e.replace(T1e,"-$&").toLowerCase()}),uL=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(A1e,function(n,a,o){return wi={name:a,styles:o,next:wi},a})}return j1e[t]!==1&&!L6(t)&&typeof r=="number"&&r!==0?r+"px":r},M1e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function hv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return wi={name:a.name,styles:a.styles,next:wi},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)wi={name:i.name,styles:i.styles,next:wi},i=i.next;var l=o.styles+";";return l}return F1e(e,t,r)}case"function":{if(e!==void 0){var c=wi,s=r(e);return wi=c,hv(e,t,s)}break}}var f=r;if(t==null)return f;var h=t[f];return h!==void 0?h:f}function F1e(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?z1e:U1e},pL=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},V1e=!1,W1e=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return M6(r,n,a),D1e(function(){return F6(r,n,a)}),null},H1e=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var l=pL(t,r,n),c=l||fL(a),s=!c("as");return function(){var f=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var v=f.length,m=1;mt(K1e(a)?r:a):t;return E.jsx(B1e,{styles:n})}function f2(e,t){return lC(e,t)}const U6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Q1e=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:z6,StyledEngineProvider:G1e,ThemeContext:Zv,css:Rc,default:f2,internal_processStyles:U6,keyframes:$s},Symbol.toStringTag,{value:"Module"}));function ss(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 V6(e){if(!ss(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=V6(e[r])}),t}function sa(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return ss(e)&&ss(t)&&Object.keys(t).forEach(a=>{ss(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ss(e[a])?n[a]=sa(e[a],t[a],r):r.clone?n[a]=ss(t[a])?V6(t[a]):t[a]:n[a]=t[a]}),n}const X1e=Object.freeze(Object.defineProperty({__proto__:null,default:sa,isPlainObject:ss},Symbol.toStringTag,{value:"Module"})),Y1e=["values","unit","step"],J1e=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)=>T({},r,{[n.key]:n.val}),{})};function W6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Re(e,Y1e),o=J1e(t),i=Object.keys(o);function l(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r})`}function c(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-n/100}${r})`}function s(v,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-n/100}${r})`}function f(v){return i.indexOf(v)+1`@media (min-width:${p2[e]}px)`};function ni(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||hL;return t.reduce((i,l,c)=>(i[o.up(o.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const o=n.breakpoints||hL;return Object.keys(t).reduce((i,l)=>{if(Object.keys(o.values||p2).indexOf(l)!==-1){const c=o.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function H6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function q6(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function exe(e,...t){const r=H6(e),n=[r,...t].reduce((a,o)=>sa(a,o),{});return q6(Object.keys(r),n)}function txe(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function Jw({values:e,breakpoints:t,base:r}){const n=r||txe(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[o],o=l):i[l]=e,i),{})}function Pe(e){if(typeof e!="string")throw new Error(xs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const rxe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"}));function Rf(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function L0(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Rf(e,r)||n,t&&(a=t(a,n,e)),a}function Kr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,s=Rf(c,n)||{};return ni(i,l,h=>{let v=L0(s,a,h);return h===v&&typeof h=="string"&&(v=L0(s,a,`${t}${h==="default"?"":Pe(h)}`,h)),r===!1?v:{[r]:v}})};return o.propTypes={},o.filterProps=[t],o}function nxe(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const axe={m:"margin",p:"padding"},oxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vL={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ixe=nxe(e=>{if(e.length>2)if(vL[e])e=vL[e];else return[e];const[t,r]=e.split(""),n=axe[t],a=oxe[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),h2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],v2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...h2,...v2];function em(e,t,r,n){var a;const o=(a=Rf(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function m2(e){return em(e,"spacing",8)}function yc(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,a)=>(n[a]=yc(t,r),n),{})}function lxe(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=ixe(r),o=sxe(a,n),i=e[r];return ni(e,i,o)}function G6(e,t){const r=m2(e.theme);return Object.keys(e).map(n=>lxe(e,t,n,r)).reduce(Rh,{})}function Fr(e){return G6(e,h2)}Fr.propTypes={};Fr.filterProps=h2;function Lr(e){return G6(e,v2)}Lr.propTypes={};Lr.filterProps=v2;function uxe(e=8){if(e.mui)return e;const t=m2({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Q_(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Rh(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function bo(e){return typeof e!="number"?e:`${e}px solid`}function Lo(e,t){return Kr({prop:e,themeKey:"borders",transform:t})}const cxe=Lo("border",bo),dxe=Lo("borderTop",bo),fxe=Lo("borderRight",bo),pxe=Lo("borderBottom",bo),hxe=Lo("borderLeft",bo),vxe=Lo("borderColor"),mxe=Lo("borderTopColor"),gxe=Lo("borderRightColor"),yxe=Lo("borderBottomColor"),bxe=Lo("borderLeftColor"),_xe=Lo("outline",bo),xxe=Lo("outlineColor"),X_=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=em(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:yc(t,n)});return ni(e,e.borderRadius,r)}return null};X_.propTypes={};X_.filterProps=["borderRadius"];Q_(cxe,dxe,fxe,pxe,hxe,vxe,mxe,gxe,yxe,bxe,X_,_xe,xxe);const Y_=e=>{if(e.gap!==void 0&&e.gap!==null){const t=em(e.theme,"spacing",8),r=n=>({gap:yc(t,n)});return ni(e,e.gap,r)}return null};Y_.propTypes={};Y_.filterProps=["gap"];const J_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=em(e.theme,"spacing",8),r=n=>({columnGap:yc(t,n)});return ni(e,e.columnGap,r)}return null};J_.propTypes={};J_.filterProps=["columnGap"];const Z_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=em(e.theme,"spacing",8),r=n=>({rowGap:yc(t,n)});return ni(e,e.rowGap,r)}return null};Z_.propTypes={};Z_.filterProps=["rowGap"];const wxe=Kr({prop:"gridColumn"}),Sxe=Kr({prop:"gridRow"}),Exe=Kr({prop:"gridAutoFlow"}),Cxe=Kr({prop:"gridAutoColumns"}),Oxe=Kr({prop:"gridAutoRows"}),Pxe=Kr({prop:"gridTemplateColumns"}),Rxe=Kr({prop:"gridTemplateRows"}),$xe=Kr({prop:"gridTemplateAreas"}),kxe=Kr({prop:"gridArea"});Q_(Y_,J_,Z_,wxe,Sxe,Exe,Cxe,Oxe,Pxe,Rxe,$xe,kxe);function Wd(e,t){return t==="grey"?t:e}const jxe=Kr({prop:"color",themeKey:"palette",transform:Wd}),Ixe=Kr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wd}),Txe=Kr({prop:"backgroundColor",themeKey:"palette",transform:Wd});Q_(jxe,Ixe,Txe);function Na(e){return e<=1&&e!==0?`${e*100}%`:e}const Axe=Kr({prop:"width",transform:Na}),g2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||p2[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Na(r)}};return ni(e,e.maxWidth,t)}return null};g2.filterProps=["maxWidth"];const Mxe=Kr({prop:"minWidth",transform:Na}),Fxe=Kr({prop:"height",transform:Na}),Lxe=Kr({prop:"maxHeight",transform:Na}),Dxe=Kr({prop:"minHeight",transform:Na});Kr({prop:"size",cssProperty:"width",transform:Na});Kr({prop:"size",cssProperty:"height",transform:Na});const Nxe=Kr({prop:"boxSizing"});Q_(Axe,g2,Mxe,Fxe,Lxe,Dxe,Nxe);const tm={border:{themeKey:"borders",transform:bo},borderTop:{themeKey:"borders",transform:bo},borderRight:{themeKey:"borders",transform:bo},borderBottom:{themeKey:"borders",transform:bo},borderLeft:{themeKey:"borders",transform:bo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:X_},color:{themeKey:"palette",transform:Wd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wd},backgroundColor:{themeKey:"palette",transform:Wd},p:{style:Lr},pt:{style:Lr},pr:{style:Lr},pb:{style:Lr},pl:{style:Lr},px:{style:Lr},py:{style:Lr},padding:{style:Lr},paddingTop:{style:Lr},paddingRight:{style:Lr},paddingBottom:{style:Lr},paddingLeft:{style:Lr},paddingX:{style:Lr},paddingY:{style:Lr},paddingInline:{style:Lr},paddingInlineStart:{style:Lr},paddingInlineEnd:{style:Lr},paddingBlock:{style:Lr},paddingBlockStart:{style:Lr},paddingBlockEnd:{style:Lr},m:{style:Fr},mt:{style:Fr},mr:{style:Fr},mb:{style:Fr},ml:{style:Fr},mx:{style:Fr},my:{style:Fr},margin:{style:Fr},marginTop:{style:Fr},marginRight:{style:Fr},marginBottom:{style:Fr},marginLeft:{style:Fr},marginX:{style:Fr},marginY:{style:Fr},marginInline:{style:Fr},marginInlineStart:{style:Fr},marginInlineEnd:{style:Fr},marginBlock:{style:Fr},marginBlockStart:{style:Fr},marginBlockEnd:{style:Fr},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:Y_},rowGap:{style:Z_},columnGap:{style:J_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Na},maxWidth:{style:g2},minWidth:{transform:Na},height:{transform:Na},maxHeight:{transform:Na},minHeight:{transform:Na},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Bxe(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function zxe(e,t){return typeof e=="function"?e(t):e}function K6(){function e(r,n,a,o){const i={[r]:n,theme:a},l=o[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:s,transform:f,style:h}=l;if(n==null)return null;if(s==="typography"&&n==="inherit")return{[r]:n};const v=Rf(a,s)||{};return h?h(i):ni(i,n,b=>{let w=L0(v,f,b);return b===w&&typeof b=="string"&&(w=L0(v,f,`${r}${b==="default"?"":Pe(b)}`,b)),c===!1?w:{[c]:w}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:tm;function l(c){let s=c;if(typeof c=="function")s=c(o);else if(typeof c!="object")return c;if(!s)return null;const f=H6(o.breakpoints),h=Object.keys(f);let v=f;return Object.keys(s).forEach(m=>{const b=zxe(s[m],o);if(b!=null)if(typeof b=="object")if(i[m])v=Rh(v,e(m,b,o,i));else{const w=ni({theme:o},b,O=>({[m]:O}));Bxe(w,b)?v[m]=t({sx:b,theme:o}):v=Rh(v,w)}else v=Rh(v,e(m,b,o,i))}),q6(h,v)}return Array.isArray(a)?a.map(l):l(a)}return t}const np=K6();np.filterProps=["sx"];function Q6(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 Uxe=["breakpoints","palette","spacing","shape"];function ap(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Re(e,Uxe),l=W6(r),c=uxe(a);let s=sa({breakpoints:l,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:c,shape:T({},Z1e,o)},i);return s.applyStyles=Q6,s=t.reduce((f,h)=>sa(f,h),s),s.unstable_sxConfig=T({},tm,i==null?void 0:i.unstable_sxConfig),s.unstable_sx=function(h){return np({sx:h,theme:this})},s}const Vxe=Object.freeze(Object.defineProperty({__proto__:null,default:ap,private_createBreakpoints:W6,unstable_applyStyles:Q6},Symbol.toStringTag,{value:"Module"}));function Wxe(e){return Object.keys(e).length===0}function y2(e=null){const t=d.useContext(Zv);return!t||Wxe(t)?e:t}const Hxe=ap();function e1(e=Hxe){return y2(e)}function qxe({styles:e,themeId:t,defaultTheme:r={}}){const n=e1(r),a=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(z6,{styles:a})}const Gxe=["sx"],Kxe=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:tm;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function t1(e){const{sx:t}=e,r=Re(e,Gxe),{systemProps:n,otherProps:a}=Kxe(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const l=t(...i);return ss(l)?T({},n,l):n}:o=T({},n,t),T({},a,{sx:o})}const Qxe=Object.freeze(Object.defineProperty({__proto__:null,default:np,extendSxProp:t1,unstable_createStyleFunctionSx:K6,unstable_defaultSxConfig:tm},Symbol.toStringTag,{value:"Module"})),mL=e=>e,Xxe=()=>{let e=mL;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mL}}},b2=Xxe();function X6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(np);return d.forwardRef(function(c,s){const f=e1(r),h=t1(c),{className:v,component:m="div"}=h,b=Re(h,Yxe);return E.jsx(o,T({as:m,ref:s,className:de(v,a?a(n):n),theme:t&&f[t]||f},b))})}const Zxe={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 et(e,t,r="Mui"){const n=Zxe[t];return n?`${r}-${n}`:`${b2.generate(e)}-${t}`}function ot(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=et(e,a,r)}),n}const ewe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Y6(e){const t=`${e}`.match(ewe);return t&&t[1]||""}function J6(e,t=""){return e.displayName||e.name||Y6(e)||t}function gL(e,t,r){const n=J6(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function twe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return J6(e,"Component");if(typeof e=="object")switch(e.$$typeof){case aC.ForwardRef:return gL(e,e.render,"ForwardRef");case aC.Memo:return gL(e,e.type,"memo");default:return}}}const rwe=Object.freeze(Object.defineProperty({__proto__:null,default:twe,getFunctionName:Y6},Symbol.toStringTag,{value:"Module"})),nwe=["ownerState"],awe=["variants"],owe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iwe(e){return Object.keys(e).length===0}function swe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lwe=ap(),uwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function jg({defaultTheme:e,theme:t,themeId:r}){return iwe(t)?e:t[r]||t}function cwe(e){return e?(t,r)=>r[e]:null}function by(e,t){let{ownerState:r}=t,n=Re(t,nwe);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>by(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=Re(a,awe);return o.forEach(c=>{let s=!0;typeof c.props=="function"?s=c.props(T({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(s=!1)}),s&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(T({ownerState:r},n,r)):c.style))}),l}return a}function dwe(e={}){const{themeId:t,defaultTheme:r=lwe,rootShouldForwardProp:n=Zw,slotShouldForwardProp:a=Zw}=e,o=i=>np(T({},i,{theme:jg(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,l={})=>{U6(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:s,skipVariantsResolver:f,skipSx:h,overridesResolver:v=cwe(uwe(s))}=l,m=Re(l,owe),b=f!==void 0?f:s&&s!=="Root"&&s!=="root"||!1,w=h||!1;let O,_=Zw;s==="Root"||s==="root"?_=n:s?_=a:swe(i)&&(_=void 0);const y=f2(i,T({shouldForwardProp:_,label:O},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||ss(P)?C=>by(P,T({},C,{theme:jg({theme:C.theme,defaultTheme:r,themeId:t})})):P,S=(P,...C)=>{let $=x(P);const R=C?C.map(x):[];c&&v&&R.push(M=>{const F=jg(T({},M,{defaultTheme:r,themeId:t}));if(!F.components||!F.components[c]||!F.components[c].styleOverrides)return null;const L=F.components[c].styleOverrides,B={};return Object.entries(L).forEach(([V,H])=>{B[V]=by(H,T({},M,{theme:F}))}),v(M,B)}),c&&!b&&R.push(M=>{var F;const L=jg(T({},M,{defaultTheme:r,themeId:t})),B=L==null||(F=L.components)==null||(F=F[c])==null?void 0:F.variants;return by({variants:B},T({},M,{theme:L}))}),w||R.push(o);const k=R.length-C.length;if(Array.isArray(P)&&k>0){const M=new Array(k).fill("");$=[...P,...M],$.raw=[...P.raw,...M]}const I=y($,...R);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(S.withConfig=y.withConfig),S}}const Z6=dwe();function vv(e,t){const r=T({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=T({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=T({},o),Object.keys(a).forEach(i=>{r[n][i]=vv(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function e9(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:vv(t.components[r].defaultProps,n)}function _2({props:e,name:t,defaultTheme:r,themeId:n}){let a=e1(r);return n&&(a=a[n]||a),e9({theme:a,name:t,props:e})}const qa=typeof window<"u"?d.useLayoutEffect:d.useEffect;function fwe(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qa(()=>{let l=!0;if(!r)return;const c=r(e),s=()=>{l&&i(c.matches)};return s(),c.addListener(s),()=>{l=!1,c.removeListener(s)}},[e,r]),o}const t9=d.useSyncExternalStore;function pwe(e,t,r,n,a){const o=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:f}=n(e);return()=>f}return o},[o,e,n,a,r]),[l,c]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const f=r(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,r,e]);return t9(c,l,i)}function ca(e,t={}){const r=y2(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=e9({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(t9!==void 0?pwe:fwe)(c,a,o,i,l)}function r9(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const hwe=Object.freeze(Object.defineProperty({__proto__:null,default:r9},Symbol.toStringTag,{value:"Module"}));function n9(e,t=0,r=1){return r9(e,t,r)}function vwe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function x2(e){if(e.type)return e;if(e.charAt(0)==="#")return x2(vwe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(xs(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(xs(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function a9(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function $f(e,t){return e=x2(e),t=n9(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,a9(e)}function o9(e,t){if(e=x2(e),t=n9(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 a9(e)}function cC(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function op(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function mwe(e,t){return()=>null}function _y(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 tn(e){return e&&e.ownerDocument||document}function $o(e){return tn(e).defaultView||window}function gwe(e,t){return()=>null}function D0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let yL=0;function ywe(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(yL+=1,r(`mui-${yL}`))},[t]),n}const bL=Dy.useId;function bc(e){if(bL!==void 0){const t=bL();return e??t}return ywe(e)}function bwe(e,t,r,n,a){return null}function kf({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),l=a?e:o,c=d.useCallback(s=>{a||i(s)},[]);return[l,c]}function oa(e){const t=d.useRef(e);return qa(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Ir(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{D0(r,t)})},e)}const _L={};function _we(e,t){const r=d.useRef(_L);return r.current===_L&&(r.current=e(t)),r}const xwe=[];function wwe(e){d.useEffect(e,xwe)}class rm{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new rm}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function zu(){const e=_we(rm.create).current;return wwe(e.disposeEffect),e}let r1=!0,dC=!1;const Swe=new rm,Ewe={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 Cwe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Ewe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Owe(e){e.metaKey||e.altKey||e.ctrlKey||(r1=!0)}function eS(){r1=!1}function Pwe(){this.visibilityState==="hidden"&&dC&&(r1=!0)}function Rwe(e){e.addEventListener("keydown",Owe,!0),e.addEventListener("mousedown",eS,!0),e.addEventListener("pointerdown",eS,!0),e.addEventListener("touchstart",eS,!0),e.addEventListener("visibilitychange",Pwe,!0)}function $we(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return r1||Cwe(t)}function n1(){const e=d.useCallback(a=>{a!=null&&Rwe(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(dC=!0,Swe.start(100,()=>{dC=!1}),t.current=!1,!0):!1}function n(a){return $we(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function i9(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let sd;function s9(){if(sd)return sd;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),sd="reverse",e.scrollLeft>0?sd="default":(e.scrollLeft=1,e.scrollLeft===0&&(sd="negative")),document.body.removeChild(e),sd}function kwe(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(s9()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function tt(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const l=t(i);l!==""&&o.push(l),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function mv(e){return typeof e=="string"}function Id(e,t,r){return e===void 0||mv(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function N0(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 xL(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 l9(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const m=de(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),b=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),w=T({},r,a,n);return m.length>0&&(w.className=m),Object.keys(b).length>0&&(w.style=b),{props:w,internalRef:void 0}}const i=N0(T({},a,n)),l=xL(n),c=xL(a),s=t(i),f=de(s==null?void 0:s.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),h=T({},s==null?void 0:s.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),v=T({},s,r,c,l);return f.length>0&&(v.className=f),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:s.ref}}function u9(e,t,r){return typeof e=="function"?e(t,r):e}const jwe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ko(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Re(e,jwe),l=o?{}:u9(n,a),{props:c,internalRef:s}=l9(T({},i,{externalSlotProps:l})),f=Ir(s,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Id(r,T({},c,{ref:f}),a)}const c9=d.createContext(null);function d9(){return d.useContext(c9)}const Iwe=typeof Symbol=="function"&&Symbol.for,Twe=Iwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Awe(e,t){return typeof t=="function"?t(e):T({},e,t)}function Mwe(e){const{children:t,theme:r}=e,n=d9(),a=d.useMemo(()=>{const o=n===null?r:Awe(n,r);return o!=null&&(o[Twe]=n!==null),o},[r,n]);return E.jsx(c9.Provider,{value:a,children:t})}const Fwe=["value"],f9=d.createContext();function Lwe(e){let{value:t}=e,r=Re(e,Fwe);return E.jsx(f9.Provider,T({value:t??!0},r))}const eu=()=>{const e=d.useContext(f9);return e??!1},p9=d.createContext(void 0);function Dwe({value:e,children:t}){return E.jsx(p9.Provider,{value:e,children:t})}function Nwe(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?vv(a.defaultProps,n):!a.styleOverrides&&!a.variants?vv(a,n):n}function Bwe({props:e,name:t}){const r=d.useContext(p9);return Nwe({props:e,name:t,theme:{components:r}})}const wL={};function SL(e,t,r,n=!1){return d.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?T({},t,{[e]:o}):o;return n?()=>i:i}return e?T({},t,{[e]:r}):T({},t,r)},[e,t,r,n])}function zwe(e){const{children:t,theme:r,themeId:n}=e,a=y2(wL),o=d9()||wL,i=SL(n,a,r),l=SL(n,o,r,!0),c=i.direction==="rtl";return E.jsx(Mwe,{theme:l,children:E.jsx(Zv.Provider,{value:i,children:E.jsx(Lwe,{value:c,children:E.jsx(Dwe,{value:i==null?void 0:i.components,children:t})})})})}const Uwe=["className","component","disableGutters","fixed","maxWidth","classes"],Vwe=ap(),Wwe=Z6("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Pe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Hwe=e=>_2({props:e,name:"MuiContainer",defaultTheme:Vwe}),qwe=(e,t)=>{const r=c=>et(t,c),{classes:n,fixed:a,disableGutters:o,maxWidth:i}=e,l={root:["root",i&&`maxWidth${Pe(String(i))}`,a&&"fixed",o&&"disableGutters"]};return tt(l,r,n)};function Gwe(e={}){const{createStyledComponent:t=Wwe,useThemeProps:r=Hwe,componentName:n="MuiContainer"}=e,a=t(({theme:i,ownerState:l})=>T({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!l.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:l})=>l.fixed&&Object.keys(i.breakpoints.values).reduce((c,s)=>{const f=s,h=i.breakpoints.values[f];return h!==0&&(c[i.breakpoints.up(f)]={maxWidth:`${h}${i.breakpoints.unit}`}),c},{}),({theme:i,ownerState:l})=>T({},l.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},l.maxWidth&&l.maxWidth!=="xs"&&{[i.breakpoints.up(l.maxWidth)]:{maxWidth:`${i.breakpoints.values[l.maxWidth]}${i.breakpoints.unit}`}}));return d.forwardRef(function(l,c){const s=r(l),{className:f,component:h="div",disableGutters:v=!1,fixed:m=!1,maxWidth:b="lg"}=s,w=Re(s,Uwe),O=T({},s,{component:h,disableGutters:v,fixed:m,maxWidth:b}),_=qwe(O,n);return E.jsx(a,T({as:h,ownerState:O,className:de(_.root,f),ref:c},w))})}const Kwe=["component","direction","spacing","divider","children","className","useFlexGap"],Qwe=ap(),Xwe=Z6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ywe(e){return _2({props:e,name:"MuiStack",defaultTheme:Qwe})}function Jwe(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],eSe=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},ni({theme:t},Jw({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=m2(t),a=Object.keys(t.breakpoints.values).reduce((c,s)=>((typeof e.spacing=="object"&&e.spacing[s]!=null||typeof e.direction=="object"&&e.direction[s]!=null)&&(c[s]=!0),c),{}),o=Jw({values:e.direction,base:a}),i=Jw({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((c,s,f)=>{if(!o[c]){const v=s>0?o[f[s-1]]:"column";o[c]=v}}),r=sa(r,ni({theme:t},i,(c,s)=>e.useFlexGap?{gap:yc(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Zwe(s?o[s]:e.direction)}`]:yc(n,c)}}))}return r=exe(t.breakpoints,r),r};function tSe(e={}){const{createStyledComponent:t=Xwe,useThemeProps:r=Ywe,componentName:n="MuiStack"}=e,a=()=>tt({root:["root"]},c=>et(n,c),{}),o=t(eSe);return d.forwardRef(function(c,s){const f=r(c),h=t1(f),{component:v="div",direction:m="column",spacing:b=0,divider:w,children:O,className:_,useFlexGap:y=!1}=h,x=Re(h,Kwe),S={direction:m,spacing:b,useFlexGap:y},P=a();return E.jsx(o,T({as:v,ownerState:S,ref:s,className:de(P.root,_)},x,{children:w?Jwe(O,w):O}))})}function rSe(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Qr={},h9={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})(h9);var He=h9.exports;const nSe=Ss(U_e),aSe=Ss(hwe);var v9=He;Object.defineProperty(Qr,"__esModule",{value:!0});var nr=Qr.alpha=b9;Qr.blend=mSe;Qr.colorChannel=void 0;var a1=Qr.darken=S2;Qr.decomposeColor=jo;var oSe=Qr.emphasize=_9,iSe=Qr.getContrastRatio=dSe;Qr.getLuminance=B0;Qr.hexToRgb=m9;Qr.hslToRgb=y9;var o1=Qr.lighten=E2;Qr.private_safeAlpha=fSe;Qr.private_safeColorChannel=void 0;Qr.private_safeDarken=pSe;Qr.private_safeEmphasize=vSe;Qr.private_safeLighten=hSe;Qr.recomposeColor=ip;Qr.rgbToHex=cSe;var EL=v9(nSe),sSe=v9(aSe);function w2(e,t=0,r=1){return(0,sSe.default)(e,t,r)}function m9(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function lSe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function jo(e){if(e.type)return e;if(e.charAt(0)==="#")return jo(m9(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,EL.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,EL.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const g9=e=>{const t=jo(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Qr.colorChannel=g9;const uSe=(e,t)=>{try{return g9(e)}catch{return e}};Qr.private_safeColorChannel=uSe;function ip(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function cSe(e){if(e.indexOf("#")===0)return e;const{values:t}=jo(e);return`#${t.map((r,n)=>lSe(n===3?Math.round(255*r):r)).join("")}`}function y9(e){e=jo(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(s,f=(s+r/30)%12)=>a-o*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ip({type:l,values:c})}function B0(e){e=jo(e);let t=e.type==="hsl"||e.type==="hsla"?jo(y9(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 dSe(e,t){const r=B0(e),n=B0(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function b9(e,t){return e=jo(e),t=w2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ip(e)}function fSe(e,t,r){try{return b9(e,t)}catch{return e}}function S2(e,t){if(e=jo(e),t=w2(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 ip(e)}function pSe(e,t,r){try{return S2(e,t)}catch{return e}}function E2(e,t){if(e=jo(e),t=w2(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 ip(e)}function hSe(e,t,r){try{return E2(e,t)}catch{return e}}function _9(e,t=.15){return B0(e)>.5?S2(e,t):E2(e,t)}function vSe(e,t,r){try{return _9(e,t)}catch{return e}}function mSe(e,t,r,n=1){const a=(c,s)=>Math.round((c**(1/n)*(1-r)+s**(1/n)*r)**n),o=jo(e),i=jo(t),l=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return ip({type:"rgb",values:l})}const gSe=["mode","contrastThreshold","tonalOffset"],CL={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:dv.white,default:dv.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}},tS={text:{primary:dv.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:dv.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 OL(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=o1(e.main,a):t==="dark"&&(e.dark=a1(e.main,o)))}function ySe(e="light"){return e==="dark"?{main:Eu[200],light:Eu[50],dark:Eu[400]}:{main:Eu[700],light:Eu[400],dark:Eu[800]}}function bSe(e="light"){return e==="dark"?{main:ad[200],light:ad[50],dark:ad[400]}:{main:ad[500],light:ad[300],dark:ad[700]}}function _Se(e="light"){return e==="dark"?{main:nd[500],light:nd[300],dark:nd[700]}:{main:nd[700],light:nd[400],dark:nd[800]}}function xSe(e="light"){return e==="dark"?{main:od[400],light:od[300],dark:od[700]}:{main:od[700],light:od[500],dark:od[900]}}function wSe(e="light"){return e==="dark"?{main:id[400],light:id[300],dark:id[700]}:{main:id[800],light:id[500],dark:id[900]}}function SSe(e="light"){return e==="dark"?{main:Wp[400],light:Wp[300],dark:Wp[700]}:{main:"#ed6c02",light:Wp[500],dark:Wp[900]}}function ESe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Re(e,gSe),o=e.primary||ySe(t),i=e.secondary||bSe(t),l=e.error||_Se(t),c=e.info||xSe(t),s=e.success||wSe(t),f=e.warning||SSe(t);function h(w){return iSe(w,tS.text.primary)>=r?tS.text.primary:CL.text.primary}const v=({color:w,name:O,mainShade:_=500,lightShade:y=300,darkShade:x=700})=>{if(w=T({},w),!w.main&&w[_]&&(w.main=w[_]),!w.hasOwnProperty("main"))throw new Error(xs(11,O?` (${O})`:"",_));if(typeof w.main!="string")throw new Error(xs(12,O?` (${O})`:"",JSON.stringify(w.main)));return OL(w,"light",y,n),OL(w,"dark",x,n),w.contrastText||(w.contrastText=h(w.main)),w},m={dark:tS,light:CL};return sa(T({common:T({},dv),mode:t,primary:v({color:o,name:"primary"}),secondary:v({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:l,name:"error"}),warning:v({color:f,name:"warning"}),info:v({color:c,name:"info"}),success:v({color:s,name:"success"}),grey:z_e,contrastThreshold:r,getContrastText:h,augmentColor:v,tonalOffset:n},m[t]),a)}const CSe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function OSe(e){return Math.round(e*1e5)/1e5}const PL={textTransform:"uppercase"},RL='"Roboto", "Helvetica", "Arial", sans-serif';function PSe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=RL,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:s=16,allVariants:f,pxToRem:h}=r,v=Re(r,CSe),m=a/14,b=h||(_=>`${_/s*m}rem`),w=(_,y,x,S,P)=>T({fontFamily:n,fontWeight:_,fontSize:b(y),lineHeight:x},n===RL?{letterSpacing:`${OSe(S/y)}em`}:{},P,f),O={h1:w(o,96,1.167,-1.5),h2:w(o,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(l,20,1.6,.15),subtitle1:w(i,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(i,16,1.5,.15),body2:w(i,14,1.43,.15),button:w(l,14,1.75,.4,PL),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,PL),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sa(T({htmlFontSize:s,pxToRem:b,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},O),v,{clone:!1})}const RSe=.2,$Se=.14,kSe=.12;function Er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${RSe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$Se})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kSe})`].join(",")}const jSe=["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)],ISe=["duration","easing","delay"],TSe={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)"},ASe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $L(e){return`${Math.round(e)}ms`}function MSe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function FSe(e){const t=T({},TSe,e.easing),r=T({},ASe,e.duration);return T({getAutoHeightDuration:MSe,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=o;return Re(o,ISe),(Array.isArray(a)?a:[a]).map(s=>`${s} ${typeof i=="string"?i:$L(i)} ${l} ${typeof c=="string"?c:$L(c)}`).join(",")}},e,{easing:t,duration:r})}const LSe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},DSe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function z0(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Re(e,DSe);if(e.vars)throw new Error(xs(18));const l=ESe(n),c=ap(e);let s=sa(c,{mixins:rSe(c.breakpoints,r),palette:l,shadows:jSe.slice(),typography:PSe(l,o),transitions:FSe(a),zIndex:T({},LSe)});return s=sa(s,i),s=t.reduce((f,h)=>sa(f,h),s),s.unstable_sxConfig=T({},tm,i==null?void 0:i.unstable_sxConfig),s.unstable_sx=function(h){return np({sx:h,theme:this})},s}const i1=z0();function Ja(){const e=e1(i1);return e[gc]||e}function x9({props:e,name:t}){return _2({props:e,name:t,defaultTheme:i1,themeId:gc})}var nm={},rS={exports:{}},kL;function NSe(){return kL||(kL=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n96}function xy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rEe=nm.systemDefaultTheme=(0,KSe.default)(),nEe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ig({defaultTheme:e,theme:t,themeId:r}){return eEe(t)?e:t[r]||t}function aEe(e){return e?(t,r)=>r[e]:null}function wy(e,t){let{ownerState:r}=t,n=(0,fC.default)(t,XSe);const a=typeof e=="function"?e((0,fo.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>wy(o,(0,fo.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=(0,fC.default)(a,YSe);return o.forEach(c=>{let s=!0;typeof c.props=="function"?s=c.props((0,fo.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]&&(s=!1)}),s&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,fo.default)({ownerState:r},n,r)):c.style))}),l}return a}function oEe(e={}){const{themeId:t,defaultTheme:r=rEe,rootShouldForwardProp:n=xy,slotShouldForwardProp:a=xy}=e,o=i=>(0,QSe.default)((0,fo.default)({},i,{theme:Ig((0,fo.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,l={})=>{(0,IL.internal_processStyles)(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:s,skipVariantsResolver:f,skipSx:h,overridesResolver:v=aEe(nEe(s))}=l,m=(0,fC.default)(l,JSe),b=f!==void 0?f:s&&s!=="Root"&&s!=="root"||!1,w=h||!1;let O,_=xy;s==="Root"||s==="root"?_=n:s?_=a:tEe(i)&&(_=void 0);const y=(0,IL.default)(i,(0,fo.default)({shouldForwardProp:_,label:O},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||(0,GSe.isPlainObject)(P)?C=>wy(P,(0,fo.default)({},C,{theme:Ig({theme:C.theme,defaultTheme:r,themeId:t})})):P,S=(P,...C)=>{let $=x(P);const R=C?C.map(x):[];c&&v&&R.push(M=>{const F=Ig((0,fo.default)({},M,{defaultTheme:r,themeId:t}));if(!F.components||!F.components[c]||!F.components[c].styleOverrides)return null;const L=F.components[c].styleOverrides,B={};return Object.entries(L).forEach(([V,H])=>{B[V]=wy(H,(0,fo.default)({},M,{theme:F}))}),v(M,B)}),c&&!b&&R.push(M=>{var F;const L=Ig((0,fo.default)({},M,{defaultTheme:r,themeId:t})),B=L==null||(F=L.components)==null||(F=F[c])==null?void 0:F.variants;return wy({variants:B},(0,fo.default)({},M,{theme:L}))}),w||R.push(o);const k=R.length-C.length;if(Array.isArray(P)&&k>0){const M=new Array(k).fill("");$=[...P,...M],$.raw=[...P.raw,...M]}const I=y($,...R);return i.muiName&&(I.muiName=i.muiName),I};return y.withConfig&&(S.withConfig=y.withConfig),S}}function E9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const In=e=>E9(e)&&e!=="classes",te=qSe({themeId:gc,defaultTheme:i1,rootShouldForwardProp:In}),iEe=["theme"];function sEe(e){let{theme:t}=e,r=Re(e,iEe);const n=t[gc];return E.jsx(zwe,T({},r,{themeId:n?gc:void 0,theme:n||t}))}const TL=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function rt(e){return Bwe(e)}function lEe(e){return et("MuiSvgIcon",e)}ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uEe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cEe=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(r)}`]};return tt(a,lEe,n)},dEe=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Pe(r.color)}`],t[`fontSize${Pe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,l,c,s,f,h,v,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((s=e.typography)==null||(f=s.pxToRem)==null?void 0:f.call(s,35))||"2.1875rem"}[t.fontSize],color:(h=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?h:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),pC=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:s,inheritViewBox:f=!1,titleAccess:h,viewBox:v="0 0 24 24"}=n,m=Re(n,uEe),b=d.isValidElement(a)&&a.type==="svg",w=T({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:v,hasSvgAsChild:b}),O={};f||(O.viewBox=v);const _=cEe(w);return E.jsxs(dEe,T({as:l,className:de(_.root,o),focusable:"false",color:s,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},O,m,b&&a.props,{ownerState:w,children:[b?a.props.children:a,h?E.jsx("title",{children:h}):null]}))});pC.muiName="SvgIcon";function Za(e,t){function r(n,a){return E.jsx(pC,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=pC.muiName,d.memo(d.forwardRef(r))}const fEe={configure:e=>{b2.configure(e)}},pEe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:cC,createSvgIcon:Za,debounce:op,deprecatedPropType:mwe,isMuiElement:_y,ownerDocument:tn,ownerWindow:$o,requirePropFactory:gwe,setRef:D0,unstable_ClassNameGenerator:fEe,unstable_useEnhancedEffect:qa,unstable_useId:bc,unsupportedProp:bwe,useControlled:kf,useEventCallback:oa,useForkRef:Ir,useIsFocusVisible:n1},Symbol.toStringTag,{value:"Module"}));function hC(e,t){return hC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},hC(e,t)}function C9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hC(e,t)}const AL={disabled:!1},U0=ke.createContext(null);var hEe=function(t){return t.scrollTop},uh="unmounted",Cu="exited",Ou="entering",fd="entered",vC="exiting",ii=function(e){C9(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,l=i&&!i.isMounting?n.enter:n.appear,c;return o.appearStatus=null,n.in?l?(c=Cu,o.appearStatus=Ou):c=fd:n.unmountOnExit||n.mountOnEnter?c=uh:c=Cu,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===uh?{status:Cu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==Ou&&i!==fd&&(o=Ou):(i===Ou||i===fd)&&(o=vC)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,l;return o=i=l=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,l=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:l}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===Ou){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:oh.findDOMNode(this);i&&hEe(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cu&&this.setState({status:uh})},r.performEnter=function(a){var o=this,i=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[oh.findDOMNode(this),l],s=c[0],f=c[1],h=this.getTimeouts(),v=l?h.appear:h.enter;if(!a&&!i||AL.disabled){this.safeSetState({status:fd},function(){o.props.onEntered(s)});return}this.props.onEnter(s,f),this.safeSetState({status:Ou},function(){o.props.onEntering(s,f),o.onTransitionEnd(v,function(){o.safeSetState({status:fd},function(){o.props.onEntered(s,f)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:oh.findDOMNode(this);if(!o||AL.disabled){this.safeSetState({status:Cu},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:vC},function(){a.props.onExiting(l),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:Cu},function(){a.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,o.nextCallback=null,a(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:oh.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],s=c[0],f=c[1];this.props.addEndListener(s,f)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===uh)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Re(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(U0.Provider,{value:null},typeof i=="function"?i(a,l):ke.cloneElement(ke.Children.only(i),l))},t}(ke.Component);ii.contextType=U0;ii.propTypes={};function ld(){}ii.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ld,onEntering:ld,onEntered:ld,onExit:ld,onExiting:ld,onExited:ld};ii.UNMOUNTED=uh;ii.EXITED=Cu;ii.ENTERING=Ou;ii.ENTERED=fd;ii.EXITING=vC;function vEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C2(e,t){var r=function(o){return t&&d.isValidElement(o)?t(o):o},n=Object.create(null);return e&&d.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function mEe(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,l={};for(var c in t){if(n[c])for(i=0;ie.scrollTop;function jf(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function xEe(e){return et("MuiPaper",e)}ot("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const wEe=["className","component","elevation","square","variant"],SEe=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return tt(o,xEe,a)},EEe=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return T({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"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${nr("#fff",TL(t.elevation))}, ${nr("#fff",TL(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:l=!1,variant:c="elevation"}=n,s=Re(n,wEe),f=T({},n,{component:o,elevation:i,square:l,variant:c}),h=SEe(f);return E.jsx(EEe,T({as:o,ownerState:f,className:de(h.root,a),ref:r},s))}),CEe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],OEe=["component","slots","slotProps"],PEe=["component"];function REe(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:l}=t,c=Re(t,CEe),{component:s,slots:f={[e]:void 0},slotProps:h={[e]:void 0}}=o;Re(o,OEe);const v=f[e]||n,m=u9(h[e],a),b=l9(T({className:r},c,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:w},internalRef:O}=b,_=Re(b.props,PEe),y=Ir(O,m==null?void 0:m.ref,t.ref),x=i?i(_):{},S=T({},a,x),P=w,C=Id(v,T({},e==="root",!f[e]&&l,_,P&&{as:P},{ref:y}),S);return Object.keys(x).forEach($=>{delete C[$]}),[v,C]}function $Ee(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:l,onExited:c,timeout:s}=e,[f,h]=d.useState(!1),v=de(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},b=de(r.child,f&&r.childLeaving,n&&r.childPulsate);return!l&&!f&&h(!0),d.useEffect(()=>{if(!l&&c!=null){const w=setTimeout(c,s);return()=>{clearTimeout(w)}}},[c,l,s]),E.jsx("span",{className:v,style:m,children:E.jsx("span",{className:b})})}const ho=ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),kEe=["center","classes","className"];let s1=e=>e,ML,FL,LL,DL;const mC=550,jEe=80,IEe=$s(ML||(ML=s1` + */var _n=typeof Symbol=="function"&&Symbol.for,l2=_n?Symbol.for("react.element"):60103,u2=_n?Symbol.for("react.portal"):60106,N_=_n?Symbol.for("react.fragment"):60107,B_=_n?Symbol.for("react.strict_mode"):60108,z_=_n?Symbol.for("react.profiler"):60114,U_=_n?Symbol.for("react.provider"):60109,V_=_n?Symbol.for("react.context"):60110,c2=_n?Symbol.for("react.async_mode"):60111,W_=_n?Symbol.for("react.concurrent_mode"):60111,H_=_n?Symbol.for("react.forward_ref"):60112,q_=_n?Symbol.for("react.suspense"):60113,b1e=_n?Symbol.for("react.suspense_list"):60120,G_=_n?Symbol.for("react.memo"):60115,K_=_n?Symbol.for("react.lazy"):60116,_1e=_n?Symbol.for("react.block"):60121,x1e=_n?Symbol.for("react.fundamental"):60117,w1e=_n?Symbol.for("react.responder"):60118,S1e=_n?Symbol.for("react.scope"):60119;function Ya(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case l2:switch(e=e.type,e){case c2:case W_:case N_:case z_:case B_:case q_:return e;default:switch(e=e&&e.$$typeof,e){case V_:case H_:case K_:case G_:case U_:return e;default:return t}}case u2:return t}}}function T6(e){return Ya(e)===W_}ir.AsyncMode=c2;ir.ConcurrentMode=W_;ir.ContextConsumer=V_;ir.ContextProvider=U_;ir.Element=l2;ir.ForwardRef=H_;ir.Fragment=N_;ir.Lazy=K_;ir.Memo=G_;ir.Portal=u2;ir.Profiler=z_;ir.StrictMode=B_;ir.Suspense=q_;ir.isAsyncMode=function(e){return T6(e)||Ya(e)===c2};ir.isConcurrentMode=T6;ir.isContextConsumer=function(e){return Ya(e)===V_};ir.isContextProvider=function(e){return Ya(e)===U_};ir.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===l2};ir.isForwardRef=function(e){return Ya(e)===H_};ir.isFragment=function(e){return Ya(e)===N_};ir.isLazy=function(e){return Ya(e)===K_};ir.isMemo=function(e){return Ya(e)===G_};ir.isPortal=function(e){return Ya(e)===u2};ir.isProfiler=function(e){return Ya(e)===z_};ir.isStrictMode=function(e){return Ya(e)===B_};ir.isSuspense=function(e){return Ya(e)===q_};ir.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===N_||e===W_||e===z_||e===B_||e===q_||e===b1e||typeof e=="object"&&e!==null&&(e.$$typeof===K_||e.$$typeof===G_||e.$$typeof===U_||e.$$typeof===V_||e.$$typeof===H_||e.$$typeof===x1e||e.$$typeof===w1e||e.$$typeof===S1e||e.$$typeof===_1e)};ir.typeOf=Ya;j6.exports=ir;var E1e=j6.exports,I6=E1e,C1e={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O1e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},A6={};A6[I6.ForwardRef]=C1e;A6[I6.Memo]=O1e;var P1e=!0;function R1e(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var M6=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||P1e===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},F6=function(t,r,n){M6(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function $1e(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var k1e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},j1e=!1,T1e=/[A-Z]|^ms/g,I1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L6=function(t){return t.charCodeAt(1)===45},lL=function(t){return t!=null&&typeof t!="boolean"},Yw=w6(function(e){return L6(e)?e:e.replace(T1e,"-$&").toLowerCase()}),uL=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(I1e,function(n,a,o){return wi={name:a,styles:o,next:wi},a})}return k1e[t]!==1&&!L6(t)&&typeof r=="number"&&r!==0?r+"px":r},A1e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function hv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return wi={name:a.name,styles:a.styles,next:wi},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)wi={name:i.name,styles:i.styles,next:wi},i=i.next;var l=o.styles+";";return l}return M1e(e,t,r)}case"function":{if(e!==void 0){var c=wi,s=r(e);return wi=c,hv(e,t,s)}break}}var f=r;if(t==null)return f;var h=t[f];return h!==void 0?h:f}function M1e(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?B1e:z1e},pL=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},U1e=!1,V1e=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return M6(r,n,a),L1e(function(){return F6(r,n,a)}),null},W1e=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var l=pL(t,r,n),c=l||fL(a),s=!c("as");return function(){var f=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var v=f.length,m=1;mt(G1e(a)?r:a):t;return E.jsx(N1e,{styles:n})}function f2(e,t){return lC(e,t)}const U6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},K1e=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:z6,StyledEngineProvider:q1e,ThemeContext:Zv,css:Rc,default:f2,internal_processStyles:U6,keyframes:$s},Symbol.toStringTag,{value:"Module"}));function ss(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 V6(e){if(!ss(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=V6(e[r])}),t}function sa(e,t,r={clone:!0}){const n=r.clone?I({},e):e;return ss(e)&&ss(t)&&Object.keys(t).forEach(a=>{ss(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ss(e[a])?n[a]=sa(e[a],t[a],r):r.clone?n[a]=ss(t[a])?V6(t[a]):t[a]:n[a]=t[a]}),n}const Q1e=Object.freeze(Object.defineProperty({__proto__:null,default:sa,isPlainObject:ss},Symbol.toStringTag,{value:"Module"})),X1e=["values","unit","step"],Y1e=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)=>I({},r,{[n.key]:n.val}),{})};function W6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Re(e,X1e),o=Y1e(t),i=Object.keys(o);function l(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r})`}function c(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-n/100}${r})`}function s(v,m){const b=i.indexOf(m);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:m)-n/100}${r})`}function f(v){return i.indexOf(v)+1`@media (min-width:${p2[e]}px)`};function ni(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||hL;return t.reduce((i,l,c)=>(i[o.up(o.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const o=n.breakpoints||hL;return Object.keys(t).reduce((i,l)=>{if(Object.keys(o.values||p2).indexOf(l)!==-1){const c=o.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function H6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function q6(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Z1e(e,...t){const r=H6(e),n=[r,...t].reduce((a,o)=>sa(a,o),{});return q6(Object.keys(r),n)}function exe(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function Jw({values:e,breakpoints:t,base:r}){const n=r||exe(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[o],o=l):i[l]=e,i),{})}function Pe(e){if(typeof e!="string")throw new Error(xs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const txe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"}));function Rf(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Lb(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Rf(e,r)||n,t&&(a=t(a,n,e)),a}function Kr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,s=Rf(c,n)||{};return ni(i,l,h=>{let v=Lb(s,a,h);return h===v&&typeof h=="string"&&(v=Lb(s,a,`${t}${h==="default"?"":Pe(h)}`,h)),r===!1?v:{[r]:v}})};return o.propTypes={},o.filterProps=[t],o}function rxe(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const nxe={m:"margin",p:"padding"},axe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vL={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oxe=rxe(e=>{if(e.length>2)if(vL[e])e=vL[e];else return[e];const[t,r]=e.split(""),n=nxe[t],a=axe[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),h2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],v2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...h2,...v2];function em(e,t,r,n){var a;const o=(a=Rf(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function m2(e){return em(e,"spacing",8)}function yc(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 ixe(e,t){return r=>e.reduce((n,a)=>(n[a]=yc(t,r),n),{})}function sxe(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=oxe(r),o=ixe(a,n),i=e[r];return ni(e,i,o)}function G6(e,t){const r=m2(e.theme);return Object.keys(e).map(n=>sxe(e,t,n,r)).reduce(Rh,{})}function Fr(e){return G6(e,h2)}Fr.propTypes={};Fr.filterProps=h2;function Lr(e){return G6(e,v2)}Lr.propTypes={};Lr.filterProps=v2;function lxe(e=8){if(e.mui)return e;const t=m2({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Q_(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Rh(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function bo(e){return typeof e!="number"?e:`${e}px solid`}function Lo(e,t){return Kr({prop:e,themeKey:"borders",transform:t})}const uxe=Lo("border",bo),cxe=Lo("borderTop",bo),dxe=Lo("borderRight",bo),fxe=Lo("borderBottom",bo),pxe=Lo("borderLeft",bo),hxe=Lo("borderColor"),vxe=Lo("borderTopColor"),mxe=Lo("borderRightColor"),gxe=Lo("borderBottomColor"),yxe=Lo("borderLeftColor"),bxe=Lo("outline",bo),_xe=Lo("outlineColor"),X_=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=em(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:yc(t,n)});return ni(e,e.borderRadius,r)}return null};X_.propTypes={};X_.filterProps=["borderRadius"];Q_(uxe,cxe,dxe,fxe,pxe,hxe,vxe,mxe,gxe,yxe,X_,bxe,_xe);const Y_=e=>{if(e.gap!==void 0&&e.gap!==null){const t=em(e.theme,"spacing",8),r=n=>({gap:yc(t,n)});return ni(e,e.gap,r)}return null};Y_.propTypes={};Y_.filterProps=["gap"];const J_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=em(e.theme,"spacing",8),r=n=>({columnGap:yc(t,n)});return ni(e,e.columnGap,r)}return null};J_.propTypes={};J_.filterProps=["columnGap"];const Z_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=em(e.theme,"spacing",8),r=n=>({rowGap:yc(t,n)});return ni(e,e.rowGap,r)}return null};Z_.propTypes={};Z_.filterProps=["rowGap"];const xxe=Kr({prop:"gridColumn"}),wxe=Kr({prop:"gridRow"}),Sxe=Kr({prop:"gridAutoFlow"}),Exe=Kr({prop:"gridAutoColumns"}),Cxe=Kr({prop:"gridAutoRows"}),Oxe=Kr({prop:"gridTemplateColumns"}),Pxe=Kr({prop:"gridTemplateRows"}),Rxe=Kr({prop:"gridTemplateAreas"}),$xe=Kr({prop:"gridArea"});Q_(Y_,J_,Z_,xxe,wxe,Sxe,Exe,Cxe,Oxe,Pxe,Rxe,$xe);function Wd(e,t){return t==="grey"?t:e}const kxe=Kr({prop:"color",themeKey:"palette",transform:Wd}),jxe=Kr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wd}),Txe=Kr({prop:"backgroundColor",themeKey:"palette",transform:Wd});Q_(kxe,jxe,Txe);function Na(e){return e<=1&&e!==0?`${e*100}%`:e}const Ixe=Kr({prop:"width",transform:Na}),g2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||p2[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Na(r)}};return ni(e,e.maxWidth,t)}return null};g2.filterProps=["maxWidth"];const Axe=Kr({prop:"minWidth",transform:Na}),Mxe=Kr({prop:"height",transform:Na}),Fxe=Kr({prop:"maxHeight",transform:Na}),Lxe=Kr({prop:"minHeight",transform:Na});Kr({prop:"size",cssProperty:"width",transform:Na});Kr({prop:"size",cssProperty:"height",transform:Na});const Dxe=Kr({prop:"boxSizing"});Q_(Ixe,g2,Axe,Mxe,Fxe,Lxe,Dxe);const tm={border:{themeKey:"borders",transform:bo},borderTop:{themeKey:"borders",transform:bo},borderRight:{themeKey:"borders",transform:bo},borderBottom:{themeKey:"borders",transform:bo},borderLeft:{themeKey:"borders",transform:bo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:X_},color:{themeKey:"palette",transform:Wd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wd},backgroundColor:{themeKey:"palette",transform:Wd},p:{style:Lr},pt:{style:Lr},pr:{style:Lr},pb:{style:Lr},pl:{style:Lr},px:{style:Lr},py:{style:Lr},padding:{style:Lr},paddingTop:{style:Lr},paddingRight:{style:Lr},paddingBottom:{style:Lr},paddingLeft:{style:Lr},paddingX:{style:Lr},paddingY:{style:Lr},paddingInline:{style:Lr},paddingInlineStart:{style:Lr},paddingInlineEnd:{style:Lr},paddingBlock:{style:Lr},paddingBlockStart:{style:Lr},paddingBlockEnd:{style:Lr},m:{style:Fr},mt:{style:Fr},mr:{style:Fr},mb:{style:Fr},ml:{style:Fr},mx:{style:Fr},my:{style:Fr},margin:{style:Fr},marginTop:{style:Fr},marginRight:{style:Fr},marginBottom:{style:Fr},marginLeft:{style:Fr},marginX:{style:Fr},marginY:{style:Fr},marginInline:{style:Fr},marginInlineStart:{style:Fr},marginInlineEnd:{style:Fr},marginBlock:{style:Fr},marginBlockStart:{style:Fr},marginBlockEnd:{style:Fr},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:Y_},rowGap:{style:Z_},columnGap:{style:J_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Na},maxWidth:{style:g2},minWidth:{transform:Na},height:{transform:Na},maxHeight:{transform:Na},minHeight:{transform:Na},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Nxe(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Bxe(e,t){return typeof e=="function"?e(t):e}function K6(){function e(r,n,a,o){const i={[r]:n,theme:a},l=o[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:s,transform:f,style:h}=l;if(n==null)return null;if(s==="typography"&&n==="inherit")return{[r]:n};const v=Rf(a,s)||{};return h?h(i):ni(i,n,b=>{let w=Lb(v,f,b);return b===w&&typeof b=="string"&&(w=Lb(v,f,`${r}${b==="default"?"":Pe(b)}`,b)),c===!1?w:{[c]:w}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:tm;function l(c){let s=c;if(typeof c=="function")s=c(o);else if(typeof c!="object")return c;if(!s)return null;const f=H6(o.breakpoints),h=Object.keys(f);let v=f;return Object.keys(s).forEach(m=>{const b=Bxe(s[m],o);if(b!=null)if(typeof b=="object")if(i[m])v=Rh(v,e(m,b,o,i));else{const w=ni({theme:o},b,O=>({[m]:O}));Nxe(w,b)?v[m]=t({sx:b,theme:o}):v=Rh(v,w)}else v=Rh(v,e(m,b,o,i))}),q6(h,v)}return Array.isArray(a)?a.map(l):l(a)}return t}const np=K6();np.filterProps=["sx"];function Q6(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 zxe=["breakpoints","palette","spacing","shape"];function ap(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Re(e,zxe),l=W6(r),c=lxe(a);let s=sa({breakpoints:l,direction:"ltr",components:{},palette:I({mode:"light"},n),spacing:c,shape:I({},J1e,o)},i);return s.applyStyles=Q6,s=t.reduce((f,h)=>sa(f,h),s),s.unstable_sxConfig=I({},tm,i==null?void 0:i.unstable_sxConfig),s.unstable_sx=function(h){return np({sx:h,theme:this})},s}const Uxe=Object.freeze(Object.defineProperty({__proto__:null,default:ap,private_createBreakpoints:W6,unstable_applyStyles:Q6},Symbol.toStringTag,{value:"Module"}));function Vxe(e){return Object.keys(e).length===0}function y2(e=null){const t=d.useContext(Zv);return!t||Vxe(t)?e:t}const Wxe=ap();function e1(e=Wxe){return y2(e)}function Hxe({styles:e,themeId:t,defaultTheme:r={}}){const n=e1(r),a=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(z6,{styles:a})}const qxe=["sx"],Gxe=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:tm;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function t1(e){const{sx:t}=e,r=Re(e,qxe),{systemProps:n,otherProps:a}=Gxe(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const l=t(...i);return ss(l)?I({},n,l):n}:o=I({},n,t),I({},a,{sx:o})}const Kxe=Object.freeze(Object.defineProperty({__proto__:null,default:np,extendSxProp:t1,unstable_createStyleFunctionSx:K6,unstable_defaultSxConfig:tm},Symbol.toStringTag,{value:"Module"})),mL=e=>e,Qxe=()=>{let e=mL;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mL}}},b2=Qxe();function X6(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(np);return d.forwardRef(function(c,s){const f=e1(r),h=t1(c),{className:v,component:m="div"}=h,b=Re(h,Xxe);return E.jsx(o,I({as:m,ref:s,className:de(v,a?a(n):n),theme:t&&f[t]||f},b))})}const Jxe={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 et(e,t,r="Mui"){const n=Jxe[t];return n?`${r}-${n}`:`${b2.generate(e)}-${t}`}function ot(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=et(e,a,r)}),n}const Zxe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Y6(e){const t=`${e}`.match(Zxe);return t&&t[1]||""}function J6(e,t=""){return e.displayName||e.name||Y6(e)||t}function gL(e,t,r){const n=J6(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function ewe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return J6(e,"Component");if(typeof e=="object")switch(e.$$typeof){case aC.ForwardRef:return gL(e,e.render,"ForwardRef");case aC.Memo:return gL(e,e.type,"memo");default:return}}}const twe=Object.freeze(Object.defineProperty({__proto__:null,default:ewe,getFunctionName:Y6},Symbol.toStringTag,{value:"Module"})),rwe=["ownerState"],nwe=["variants"],awe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function owe(e){return Object.keys(e).length===0}function iwe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const swe=ap(),lwe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function jg({defaultTheme:e,theme:t,themeId:r}){return owe(t)?e:t[r]||t}function uwe(e){return e?(t,r)=>r[e]:null}function by(e,t){let{ownerState:r}=t,n=Re(t,rwe);const a=typeof e=="function"?e(I({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>by(o,I({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=Re(a,nwe);return o.forEach(c=>{let s=!0;typeof c.props=="function"?s=c.props(I({ownerState:r},n,r)):Object.keys(c.props).forEach(f=>{(r==null?void 0:r[f])!==c.props[f]&&n[f]!==c.props[f]&&(s=!1)}),s&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(I({ownerState:r},n,r)):c.style))}),l}return a}function cwe(e={}){const{themeId:t,defaultTheme:r=swe,rootShouldForwardProp:n=Zw,slotShouldForwardProp:a=Zw}=e,o=i=>np(I({},i,{theme:jg(I({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,l={})=>{U6(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:s,skipVariantsResolver:f,skipSx:h,overridesResolver:v=uwe(lwe(s))}=l,m=Re(l,awe),b=f!==void 0?f:s&&s!=="Root"&&s!=="root"||!1,w=h||!1;let O,_=Zw;s==="Root"||s==="root"?_=n:s?_=a:iwe(i)&&(_=void 0);const y=f2(i,I({shouldForwardProp:_,label:O},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||ss(P)?C=>by(P,I({},C,{theme:jg({theme:C.theme,defaultTheme:r,themeId:t})})):P,S=(P,...C)=>{let $=x(P);const R=C?C.map(x):[];c&&v&&R.push(M=>{const F=jg(I({},M,{defaultTheme:r,themeId:t}));if(!F.components||!F.components[c]||!F.components[c].styleOverrides)return null;const L=F.components[c].styleOverrides,B={};return Object.entries(L).forEach(([V,H])=>{B[V]=by(H,I({},M,{theme:F}))}),v(M,B)}),c&&!b&&R.push(M=>{var F;const L=jg(I({},M,{defaultTheme:r,themeId:t})),B=L==null||(F=L.components)==null||(F=F[c])==null?void 0:F.variants;return by({variants:B},I({},M,{theme:L}))}),w||R.push(o);const k=R.length-C.length;if(Array.isArray(P)&&k>0){const M=new Array(k).fill("");$=[...P,...M],$.raw=[...P.raw,...M]}const T=y($,...R);return i.muiName&&(T.muiName=i.muiName),T};return y.withConfig&&(S.withConfig=y.withConfig),S}}const Z6=cwe();function vv(e,t){const r=I({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=I({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=I({},o),Object.keys(a).forEach(i=>{r[n][i]=vv(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function e9(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:vv(t.components[r].defaultProps,n)}function _2({props:e,name:t,defaultTheme:r,themeId:n}){let a=e1(r);return n&&(a=a[n]||a),e9({theme:a,name:t,props:e})}const qa=typeof window<"u"?d.useLayoutEffect:d.useEffect;function dwe(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qa(()=>{let l=!0;if(!r)return;const c=r(e),s=()=>{l&&i(c.matches)};return s(),c.addListener(s),()=>{l=!1,c.removeListener(s)}},[e,r]),o}const t9=d.useSyncExternalStore;function fwe(e,t,r,n,a){const o=d.useCallback(()=>t,[t]),i=d.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:f}=n(e);return()=>f}return o},[o,e,n,a,r]),[l,c]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const f=r(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,r,e]);return t9(c,l,i)}function ca(e,t={}){const r=y2(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=e9({name:"MuiUseMediaQuery",props:t,theme:r});let c=typeof e=="function"?e(r):e;return c=c.replace(/^@media( ?)/m,""),(t9!==void 0?fwe:dwe)(c,a,o,i,l)}function r9(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const pwe=Object.freeze(Object.defineProperty({__proto__:null,default:r9},Symbol.toStringTag,{value:"Module"}));function n9(e,t=0,r=1){return r9(e,t,r)}function hwe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function x2(e){if(e.type)return e;if(e.charAt(0)==="#")return x2(hwe(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(xs(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(xs(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function a9(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function $f(e,t){return e=x2(e),t=n9(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,a9(e)}function o9(e,t){if(e=x2(e),t=n9(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 a9(e)}function cC(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function op(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function vwe(e,t){return()=>null}function _y(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 tn(e){return e&&e.ownerDocument||document}function $o(e){return tn(e).defaultView||window}function mwe(e,t){return()=>null}function Db(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let yL=0;function gwe(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(yL+=1,r(`mui-${yL}`))},[t]),n}const bL=Dy.useId;function bc(e){if(bL!==void 0){const t=bL();return e??t}return gwe(e)}function ywe(e,t,r,n,a){return null}function kf({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),l=a?e:o,c=d.useCallback(s=>{a||i(s)},[]);return[l,c]}function oa(e){const t=d.useRef(e);return qa(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Tr(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Db(r,t)})},e)}const _L={};function bwe(e,t){const r=d.useRef(_L);return r.current===_L&&(r.current=e(t)),r}const _we=[];function xwe(e){d.useEffect(e,_we)}class rm{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new rm}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function zu(){const e=bwe(rm.create).current;return xwe(e.disposeEffect),e}let r1=!0,dC=!1;const wwe=new rm,Swe={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 Ewe(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Swe[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Cwe(e){e.metaKey||e.altKey||e.ctrlKey||(r1=!0)}function eS(){r1=!1}function Owe(){this.visibilityState==="hidden"&&dC&&(r1=!0)}function Pwe(e){e.addEventListener("keydown",Cwe,!0),e.addEventListener("mousedown",eS,!0),e.addEventListener("pointerdown",eS,!0),e.addEventListener("touchstart",eS,!0),e.addEventListener("visibilitychange",Owe,!0)}function Rwe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return r1||Ewe(t)}function n1(){const e=d.useCallback(a=>{a!=null&&Pwe(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(dC=!0,wwe.start(100,()=>{dC=!1}),t.current=!1,!0):!1}function n(a){return Rwe(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function i9(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let sd;function s9(){if(sd)return sd;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),sd="reverse",e.scrollLeft>0?sd="default":(e.scrollLeft=1,e.scrollLeft===0&&(sd="negative")),document.body.removeChild(e),sd}function $we(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(s9()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function tt(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const l=t(i);l!==""&&o.push(l),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function mv(e){return typeof e=="string"}function Td(e,t,r){return e===void 0||mv(e)?t:I({},t,{ownerState:I({},t.ownerState,r)})}function Nb(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 xL(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 l9(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const m=de(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),b=I({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),w=I({},r,a,n);return m.length>0&&(w.className=m),Object.keys(b).length>0&&(w.style=b),{props:w,internalRef:void 0}}const i=Nb(I({},a,n)),l=xL(n),c=xL(a),s=t(i),f=de(s==null?void 0:s.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),h=I({},s==null?void 0:s.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),v=I({},s,r,c,l);return f.length>0&&(v.className=f),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:s.ref}}function u9(e,t,r){return typeof e=="function"?e(t,r):e}const kwe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ko(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Re(e,kwe),l=o?{}:u9(n,a),{props:c,internalRef:s}=l9(I({},i,{externalSlotProps:l})),f=Tr(s,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Td(r,I({},c,{ref:f}),a)}const c9=d.createContext(null);function d9(){return d.useContext(c9)}const jwe=typeof Symbol=="function"&&Symbol.for,Twe=jwe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Iwe(e,t){return typeof t=="function"?t(e):I({},e,t)}function Awe(e){const{children:t,theme:r}=e,n=d9(),a=d.useMemo(()=>{const o=n===null?r:Iwe(n,r);return o!=null&&(o[Twe]=n!==null),o},[r,n]);return E.jsx(c9.Provider,{value:a,children:t})}const Mwe=["value"],f9=d.createContext();function Fwe(e){let{value:t}=e,r=Re(e,Mwe);return E.jsx(f9.Provider,I({value:t??!0},r))}const eu=()=>{const e=d.useContext(f9);return e??!1},p9=d.createContext(void 0);function Lwe({value:e,children:t}){return E.jsx(p9.Provider,{value:e,children:t})}function Dwe(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?vv(a.defaultProps,n):!a.styleOverrides&&!a.variants?vv(a,n):n}function Nwe({props:e,name:t}){const r=d.useContext(p9);return Dwe({props:e,name:t,theme:{components:r}})}const wL={};function SL(e,t,r,n=!1){return d.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?I({},t,{[e]:o}):o;return n?()=>i:i}return e?I({},t,{[e]:r}):I({},t,r)},[e,t,r,n])}function Bwe(e){const{children:t,theme:r,themeId:n}=e,a=y2(wL),o=d9()||wL,i=SL(n,a,r),l=SL(n,o,r,!0),c=i.direction==="rtl";return E.jsx(Awe,{theme:l,children:E.jsx(Zv.Provider,{value:i,children:E.jsx(Fwe,{value:c,children:E.jsx(Lwe,{value:i==null?void 0:i.components,children:t})})})})}const zwe=["className","component","disableGutters","fixed","maxWidth","classes"],Uwe=ap(),Vwe=Z6("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Pe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Wwe=e=>_2({props:e,name:"MuiContainer",defaultTheme:Uwe}),Hwe=(e,t)=>{const r=c=>et(t,c),{classes:n,fixed:a,disableGutters:o,maxWidth:i}=e,l={root:["root",i&&`maxWidth${Pe(String(i))}`,a&&"fixed",o&&"disableGutters"]};return tt(l,r,n)};function qwe(e={}){const{createStyledComponent:t=Vwe,useThemeProps:r=Wwe,componentName:n="MuiContainer"}=e,a=t(({theme:i,ownerState:l})=>I({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!l.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:l})=>l.fixed&&Object.keys(i.breakpoints.values).reduce((c,s)=>{const f=s,h=i.breakpoints.values[f];return h!==0&&(c[i.breakpoints.up(f)]={maxWidth:`${h}${i.breakpoints.unit}`}),c},{}),({theme:i,ownerState:l})=>I({},l.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},l.maxWidth&&l.maxWidth!=="xs"&&{[i.breakpoints.up(l.maxWidth)]:{maxWidth:`${i.breakpoints.values[l.maxWidth]}${i.breakpoints.unit}`}}));return d.forwardRef(function(l,c){const s=r(l),{className:f,component:h="div",disableGutters:v=!1,fixed:m=!1,maxWidth:b="lg"}=s,w=Re(s,zwe),O=I({},s,{component:h,disableGutters:v,fixed:m,maxWidth:b}),_=Hwe(O,n);return E.jsx(a,I({as:h,ownerState:O,className:de(_.root,f),ref:c},w))})}const Gwe=["component","direction","spacing","divider","children","className","useFlexGap"],Kwe=ap(),Qwe=Z6("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Xwe(e){return _2({props:e,name:"MuiStack",defaultTheme:Kwe})}function Ywe(e,t){const r=d.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Zwe=({ownerState:e,theme:t})=>{let r=I({display:"flex",flexDirection:"column"},ni({theme:t},Jw({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=m2(t),a=Object.keys(t.breakpoints.values).reduce((c,s)=>((typeof e.spacing=="object"&&e.spacing[s]!=null||typeof e.direction=="object"&&e.direction[s]!=null)&&(c[s]=!0),c),{}),o=Jw({values:e.direction,base:a}),i=Jw({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((c,s,f)=>{if(!o[c]){const v=s>0?o[f[s-1]]:"column";o[c]=v}}),r=sa(r,ni({theme:t},i,(c,s)=>e.useFlexGap?{gap:yc(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Jwe(s?o[s]:e.direction)}`]:yc(n,c)}}))}return r=Z1e(t.breakpoints,r),r};function eSe(e={}){const{createStyledComponent:t=Qwe,useThemeProps:r=Xwe,componentName:n="MuiStack"}=e,a=()=>tt({root:["root"]},c=>et(n,c),{}),o=t(Zwe);return d.forwardRef(function(c,s){const f=r(c),h=t1(f),{component:v="div",direction:m="column",spacing:b=0,divider:w,children:O,className:_,useFlexGap:y=!1}=h,x=Re(h,Gwe),S={direction:m,spacing:b,useFlexGap:y},P=a();return E.jsx(o,I({as:v,ownerState:S,ref:s,className:de(P.root,_)},x,{children:w?Ywe(O,w):O}))})}function tSe(e,t){return I({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Qr={},h9={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})(h9);var He=h9.exports;const rSe=Ss(z_e),nSe=Ss(pwe);var v9=He;Object.defineProperty(Qr,"__esModule",{value:!0});var nr=Qr.alpha=b9;Qr.blend=vSe;Qr.colorChannel=void 0;var a1=Qr.darken=S2;Qr.decomposeColor=jo;var aSe=Qr.emphasize=_9,oSe=Qr.getContrastRatio=cSe;Qr.getLuminance=Bb;Qr.hexToRgb=m9;Qr.hslToRgb=y9;var o1=Qr.lighten=E2;Qr.private_safeAlpha=dSe;Qr.private_safeColorChannel=void 0;Qr.private_safeDarken=fSe;Qr.private_safeEmphasize=hSe;Qr.private_safeLighten=pSe;Qr.recomposeColor=ip;Qr.rgbToHex=uSe;var EL=v9(rSe),iSe=v9(nSe);function w2(e,t=0,r=1){return(0,iSe.default)(e,t,r)}function m9(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function sSe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function jo(e){if(e.type)return e;if(e.charAt(0)==="#")return jo(m9(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,EL.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,EL.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const g9=e=>{const t=jo(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};Qr.colorChannel=g9;const lSe=(e,t)=>{try{return g9(e)}catch{return e}};Qr.private_safeColorChannel=lSe;function ip(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function uSe(e){if(e.indexOf("#")===0)return e;const{values:t}=jo(e);return`#${t.map((r,n)=>sSe(n===3?Math.round(255*r):r)).join("")}`}function y9(e){e=jo(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(s,f=(s+r/30)%12)=>a-o*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ip({type:l,values:c})}function Bb(e){e=jo(e);let t=e.type==="hsl"||e.type==="hsla"?jo(y9(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 cSe(e,t){const r=Bb(e),n=Bb(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function b9(e,t){return e=jo(e),t=w2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ip(e)}function dSe(e,t,r){try{return b9(e,t)}catch{return e}}function S2(e,t){if(e=jo(e),t=w2(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 ip(e)}function fSe(e,t,r){try{return S2(e,t)}catch{return e}}function E2(e,t){if(e=jo(e),t=w2(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 ip(e)}function pSe(e,t,r){try{return E2(e,t)}catch{return e}}function _9(e,t=.15){return Bb(e)>.5?S2(e,t):E2(e,t)}function hSe(e,t,r){try{return _9(e,t)}catch{return e}}function vSe(e,t,r,n=1){const a=(c,s)=>Math.round((c**(1/n)*(1-r)+s**(1/n)*r)**n),o=jo(e),i=jo(t),l=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return ip({type:"rgb",values:l})}const mSe=["mode","contrastThreshold","tonalOffset"],CL={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:dv.white,default:dv.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}},tS={text:{primary:dv.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:dv.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 OL(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=o1(e.main,a):t==="dark"&&(e.dark=a1(e.main,o)))}function gSe(e="light"){return e==="dark"?{main:Eu[200],light:Eu[50],dark:Eu[400]}:{main:Eu[700],light:Eu[400],dark:Eu[800]}}function ySe(e="light"){return e==="dark"?{main:ad[200],light:ad[50],dark:ad[400]}:{main:ad[500],light:ad[300],dark:ad[700]}}function bSe(e="light"){return e==="dark"?{main:nd[500],light:nd[300],dark:nd[700]}:{main:nd[700],light:nd[400],dark:nd[800]}}function _Se(e="light"){return e==="dark"?{main:od[400],light:od[300],dark:od[700]}:{main:od[700],light:od[500],dark:od[900]}}function xSe(e="light"){return e==="dark"?{main:id[400],light:id[300],dark:id[700]}:{main:id[800],light:id[500],dark:id[900]}}function wSe(e="light"){return e==="dark"?{main:Wp[400],light:Wp[300],dark:Wp[700]}:{main:"#ed6c02",light:Wp[500],dark:Wp[900]}}function SSe(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Re(e,mSe),o=e.primary||gSe(t),i=e.secondary||ySe(t),l=e.error||bSe(t),c=e.info||_Se(t),s=e.success||xSe(t),f=e.warning||wSe(t);function h(w){return oSe(w,tS.text.primary)>=r?tS.text.primary:CL.text.primary}const v=({color:w,name:O,mainShade:_=500,lightShade:y=300,darkShade:x=700})=>{if(w=I({},w),!w.main&&w[_]&&(w.main=w[_]),!w.hasOwnProperty("main"))throw new Error(xs(11,O?` (${O})`:"",_));if(typeof w.main!="string")throw new Error(xs(12,O?` (${O})`:"",JSON.stringify(w.main)));return OL(w,"light",y,n),OL(w,"dark",x,n),w.contrastText||(w.contrastText=h(w.main)),w},m={dark:tS,light:CL};return sa(I({common:I({},dv),mode:t,primary:v({color:o,name:"primary"}),secondary:v({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:l,name:"error"}),warning:v({color:f,name:"warning"}),info:v({color:c,name:"info"}),success:v({color:s,name:"success"}),grey:B_e,contrastThreshold:r,getContrastText:h,augmentColor:v,tonalOffset:n},m[t]),a)}const ESe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function CSe(e){return Math.round(e*1e5)/1e5}const PL={textTransform:"uppercase"},RL='"Roboto", "Helvetica", "Arial", sans-serif';function OSe(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=RL,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:s=16,allVariants:f,pxToRem:h}=r,v=Re(r,ESe),m=a/14,b=h||(_=>`${_/s*m}rem`),w=(_,y,x,S,P)=>I({fontFamily:n,fontWeight:_,fontSize:b(y),lineHeight:x},n===RL?{letterSpacing:`${CSe(S/y)}em`}:{},P,f),O={h1:w(o,96,1.167,-1.5),h2:w(o,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(l,20,1.6,.15),subtitle1:w(i,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(i,16,1.5,.15),body2:w(i,14,1.43,.15),button:w(l,14,1.75,.4,PL),caption:w(i,12,1.66,.4),overline:w(i,12,2.66,1,PL),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sa(I({htmlFontSize:s,pxToRem:b,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},O),v,{clone:!1})}const PSe=.2,RSe=.14,$Se=.12;function Er(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${PSe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${RSe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${$Se})`].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)],jSe=["duration","easing","delay"],TSe={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)"},ISe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $L(e){return`${Math.round(e)}ms`}function ASe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function MSe(e){const t=I({},TSe,e.easing),r=I({},ISe,e.duration);return I({getAutoHeightDuration:ASe,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=o;return Re(o,jSe),(Array.isArray(a)?a:[a]).map(s=>`${s} ${typeof i=="string"?i:$L(i)} ${l} ${typeof c=="string"?c:$L(c)}`).join(",")}},e,{easing:t,duration:r})}const FSe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},LSe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zb(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Re(e,LSe);if(e.vars)throw new Error(xs(18));const l=SSe(n),c=ap(e);let s=sa(c,{mixins:tSe(c.breakpoints,r),palette:l,shadows:kSe.slice(),typography:OSe(l,o),transitions:MSe(a),zIndex:I({},FSe)});return s=sa(s,i),s=t.reduce((f,h)=>sa(f,h),s),s.unstable_sxConfig=I({},tm,i==null?void 0:i.unstable_sxConfig),s.unstable_sx=function(h){return np({sx:h,theme:this})},s}const i1=zb();function Ja(){const e=e1(i1);return e[gc]||e}function x9({props:e,name:t}){return _2({props:e,name:t,defaultTheme:i1,themeId:gc})}var nm={},rS={exports:{}},kL;function DSe(){return kL||(kL=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n96}function xy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const tEe=nm.systemDefaultTheme=(0,GSe.default)(),rEe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Tg({defaultTheme:e,theme:t,themeId:r}){return ZSe(t)?e:t[r]||t}function nEe(e){return e?(t,r)=>r[e]:null}function wy(e,t){let{ownerState:r}=t,n=(0,fC.default)(t,QSe);const a=typeof e=="function"?e((0,fo.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>wy(o,(0,fo.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let l=(0,fC.default)(a,XSe);return o.forEach(c=>{let s=!0;typeof c.props=="function"?s=c.props((0,fo.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]&&(s=!1)}),s&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,fo.default)({ownerState:r},n,r)):c.style))}),l}return a}function aEe(e={}){const{themeId:t,defaultTheme:r=tEe,rootShouldForwardProp:n=xy,slotShouldForwardProp:a=xy}=e,o=i=>(0,KSe.default)((0,fo.default)({},i,{theme:Tg((0,fo.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,l={})=>{(0,TL.internal_processStyles)(i,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:c,slot:s,skipVariantsResolver:f,skipSx:h,overridesResolver:v=nEe(rEe(s))}=l,m=(0,fC.default)(l,YSe),b=f!==void 0?f:s&&s!=="Root"&&s!=="root"||!1,w=h||!1;let O,_=xy;s==="Root"||s==="root"?_=n:s?_=a:eEe(i)&&(_=void 0);const y=(0,TL.default)(i,(0,fo.default)({shouldForwardProp:_,label:O},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||(0,qSe.isPlainObject)(P)?C=>wy(P,(0,fo.default)({},C,{theme:Tg({theme:C.theme,defaultTheme:r,themeId:t})})):P,S=(P,...C)=>{let $=x(P);const R=C?C.map(x):[];c&&v&&R.push(M=>{const F=Tg((0,fo.default)({},M,{defaultTheme:r,themeId:t}));if(!F.components||!F.components[c]||!F.components[c].styleOverrides)return null;const L=F.components[c].styleOverrides,B={};return Object.entries(L).forEach(([V,H])=>{B[V]=wy(H,(0,fo.default)({},M,{theme:F}))}),v(M,B)}),c&&!b&&R.push(M=>{var F;const L=Tg((0,fo.default)({},M,{defaultTheme:r,themeId:t})),B=L==null||(F=L.components)==null||(F=F[c])==null?void 0:F.variants;return wy({variants:B},(0,fo.default)({},M,{theme:L}))}),w||R.push(o);const k=R.length-C.length;if(Array.isArray(P)&&k>0){const M=new Array(k).fill("");$=[...P,...M],$.raw=[...P.raw,...M]}const T=y($,...R);return i.muiName&&(T.muiName=i.muiName),T};return y.withConfig&&(S.withConfig=y.withConfig),S}}function E9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>E9(e)&&e!=="classes",te=HSe({themeId:gc,defaultTheme:i1,rootShouldForwardProp:Tn}),oEe=["theme"];function iEe(e){let{theme:t}=e,r=Re(e,oEe);const n=t[gc];return E.jsx(Bwe,I({},r,{themeId:n?gc:void 0,theme:n||t}))}const IL=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function rt(e){return Nwe(e)}function sEe(e){return et("MuiSvgIcon",e)}ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lEe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],uEe=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(r)}`]};return tt(a,sEe,n)},cEe=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Pe(r.color)}`],t[`fontSize${Pe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,l,c,s,f,h,v,m,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((s=e.typography)==null||(f=s.pxToRem)==null?void 0:f.call(s,35))||"2.1875rem"}[t.fontSize],color:(h=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?h:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),pC=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:s,inheritViewBox:f=!1,titleAccess:h,viewBox:v="0 0 24 24"}=n,m=Re(n,lEe),b=d.isValidElement(a)&&a.type==="svg",w=I({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:v,hasSvgAsChild:b}),O={};f||(O.viewBox=v);const _=uEe(w);return E.jsxs(cEe,I({as:l,className:de(_.root,o),focusable:"false",color:s,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},O,m,b&&a.props,{ownerState:w,children:[b?a.props.children:a,h?E.jsx("title",{children:h}):null]}))});pC.muiName="SvgIcon";function Za(e,t){function r(n,a){return E.jsx(pC,I({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=pC.muiName,d.memo(d.forwardRef(r))}const dEe={configure:e=>{b2.configure(e)}},fEe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:cC,createSvgIcon:Za,debounce:op,deprecatedPropType:vwe,isMuiElement:_y,ownerDocument:tn,ownerWindow:$o,requirePropFactory:mwe,setRef:Db,unstable_ClassNameGenerator:dEe,unstable_useEnhancedEffect:qa,unstable_useId:bc,unsupportedProp:ywe,useControlled:kf,useEventCallback:oa,useForkRef:Tr,useIsFocusVisible:n1},Symbol.toStringTag,{value:"Module"}));function hC(e,t){return hC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},hC(e,t)}function C9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hC(e,t)}const AL={disabled:!1},Ub=ke.createContext(null);var pEe=function(t){return t.scrollTop},uh="unmounted",Cu="exited",Ou="entering",fd="entered",vC="exiting",ii=function(e){C9(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,l=i&&!i.isMounting?n.enter:n.appear,c;return o.appearStatus=null,n.in?l?(c=Cu,o.appearStatus=Ou):c=fd:n.unmountOnExit||n.mountOnEnter?c=uh:c=Cu,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===uh?{status:Cu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==Ou&&i!==fd&&(o=Ou):(i===Ou||i===fd)&&(o=vC)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,l;return o=i=l=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,l=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:l}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===Ou){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:oh.findDOMNode(this);i&&pEe(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cu&&this.setState({status:uh})},r.performEnter=function(a){var o=this,i=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[oh.findDOMNode(this),l],s=c[0],f=c[1],h=this.getTimeouts(),v=l?h.appear:h.enter;if(!a&&!i||AL.disabled){this.safeSetState({status:fd},function(){o.props.onEntered(s)});return}this.props.onEnter(s,f),this.safeSetState({status:Ou},function(){o.props.onEntering(s,f),o.onTransitionEnd(v,function(){o.safeSetState({status:fd},function(){o.props.onEntered(s,f)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:oh.findDOMNode(this);if(!o||AL.disabled){this.safeSetState({status:Cu},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:vC},function(){a.props.onExiting(l),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:Cu},function(){a.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,o.nextCallback=null,a(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:oh.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],s=c[0],f=c[1];this.props.addEndListener(s,f)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===uh)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Re(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(Ub.Provider,{value:null},typeof i=="function"?i(a,l):ke.cloneElement(ke.Children.only(i),l))},t}(ke.Component);ii.contextType=Ub;ii.propTypes={};function ld(){}ii.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ld,onEntering:ld,onEntered:ld,onExit:ld,onExiting:ld,onExited:ld};ii.UNMOUNTED=uh;ii.EXITED=Cu;ii.ENTERING=Ou;ii.ENTERED=fd;ii.EXITING=vC;function hEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C2(e,t){var r=function(o){return t&&d.isValidElement(o)?t(o):o},n=Object.create(null);return e&&d.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function vEe(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,l={};for(var c in t){if(n[c])for(i=0;ie.scrollTop;function jf(e,t){var r,n;const{timeout:a,easing:o,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=i.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:i.transitionDelay}}function _Ee(e){return et("MuiPaper",e)}ot("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const xEe=["className","component","elevation","square","variant"],wEe=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return tt(o,_Ee,a)},SEe=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return I({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"&&I({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${nr("#fff",IL(t.elevation))}, ${nr("#fff",IL(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:l=!1,variant:c="elevation"}=n,s=Re(n,xEe),f=I({},n,{component:o,elevation:i,square:l,variant:c}),h=wEe(f);return E.jsx(SEe,I({as:o,ownerState:f,className:de(h.root,a),ref:r},s))}),EEe=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],CEe=["component","slots","slotProps"],OEe=["component"];function PEe(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:l}=t,c=Re(t,EEe),{component:s,slots:f={[e]:void 0},slotProps:h={[e]:void 0}}=o;Re(o,CEe);const v=f[e]||n,m=u9(h[e],a),b=l9(I({className:r},c,{externalForwardedProps:void 0,externalSlotProps:m})),{props:{component:w},internalRef:O}=b,_=Re(b.props,OEe),y=Tr(O,m==null?void 0:m.ref,t.ref),x=i?i(_):{},S=I({},a,x),P=w,C=Td(v,I({},e==="root",!f[e]&&l,_,P&&{as:P},{ref:y}),S);return Object.keys(x).forEach($=>{delete C[$]}),[v,C]}function REe(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:l,onExited:c,timeout:s}=e,[f,h]=d.useState(!1),v=de(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},b=de(r.child,f&&r.childLeaving,n&&r.childPulsate);return!l&&!f&&h(!0),d.useEffect(()=>{if(!l&&c!=null){const w=setTimeout(c,s);return()=>{clearTimeout(w)}}},[c,l,s]),E.jsx("span",{className:v,style:m,children:E.jsx("span",{className:b})})}const ho=ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$Ee=["center","classes","className"];let s1=e=>e,ML,FL,LL,DL;const mC=550,kEe=80,jEe=$s(ML||(ML=s1` 0% { transform: scale(0); opacity: 0.1; @@ -142,7 +142,7 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu 100% { opacity: 0; } -`)),AEe=$s(LL||(LL=s1` +`)),IEe=$s(LL||(LL=s1` 0% { transform: scale(1); } @@ -154,7 +154,7 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu 100% { transform: scale(1); } -`)),MEe=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),FEe=te($Ee,{name:"MuiTouchRipple",slot:"Ripple"})(DL||(DL=s1` +`)),AEe=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),MEe=te(REe,{name:"MuiTouchRipple",slot:"Ripple"})(DL||(DL=s1` opacity: 0; position: absolute; @@ -197,8 +197,8 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu animation-iteration-count: infinite; animation-delay: 200ms; } -`),ho.rippleVisible,IEe,mC,({theme:e})=>e.transitions.easing.easeInOut,ho.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ho.child,ho.childLeaving,TEe,mC,({theme:e})=>e.transitions.easing.easeInOut,ho.childPulsate,AEe,({theme:e})=>e.transitions.easing.easeInOut),LEe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,l=Re(n,kEe),[c,s]=d.useState([]),f=d.useRef(0),h=d.useRef(null);d.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const v=d.useRef(!1),m=zu(),b=d.useRef(null),w=d.useRef(null),O=d.useCallback(S=>{const{pulsate:P,rippleX:C,rippleY:$,rippleSize:R,cb:k}=S;s(I=>[...I,E.jsx(FEe,{classes:{ripple:de(o.ripple,ho.ripple),rippleVisible:de(o.rippleVisible,ho.rippleVisible),ripplePulsate:de(o.ripplePulsate,ho.ripplePulsate),child:de(o.child,ho.child),childLeaving:de(o.childLeaving,ho.childLeaving),childPulsate:de(o.childPulsate,ho.childPulsate)},timeout:mC,pulsate:P,rippleX:C,rippleY:$,rippleSize:R},f.current)]),f.current+=1,h.current=k},[o]),_=d.useCallback((S={},P={},C=()=>{})=>{const{pulsate:$=!1,center:R=a||P.pulsate,fakeElement:k=!1}=P;if((S==null?void 0:S.type)==="mousedown"&&v.current){v.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(v.current=!0);const I=k?null:w.current,M=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,L,B;if(R||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)F=Math.round(M.width/2),L=Math.round(M.height/2);else{const{clientX:V,clientY:H}=S.touches&&S.touches.length>0?S.touches[0]:S;F=Math.round(V-M.left),L=Math.round(H-M.top)}if(R)B=Math.sqrt((2*M.width**2+M.height**2)/3),B%2===0&&(B+=1);else{const V=Math.max(Math.abs((I?I.clientWidth:0)-F),F)*2+2,H=Math.max(Math.abs((I?I.clientHeight:0)-L),L)*2+2;B=Math.sqrt(V**2+H**2)}S!=null&&S.touches?b.current===null&&(b.current=()=>{O({pulsate:$,rippleX:F,rippleY:L,rippleSize:B,cb:C})},m.start(jEe,()=>{b.current&&(b.current(),b.current=null)})):O({pulsate:$,rippleX:F,rippleY:L,rippleSize:B,cb:C})},[a,O,m]),y=d.useCallback(()=>{_({},{pulsate:!0})},[_]),x=d.useCallback((S,P)=>{if(m.clear(),(S==null?void 0:S.type)==="touchend"&&b.current){b.current(),b.current=null,m.start(0,()=>{x(S,P)});return}b.current=null,s(C=>C.length>0?C.slice(1):C),h.current=P},[m]);return d.useImperativeHandle(r,()=>({pulsate:y,start:_,stop:x}),[y,_,x]),E.jsx(MEe,T({className:de(ho.root,o.root,i),ref:w},l,{children:E.jsx(O2,{component:null,exit:!0,children:c})}))});function DEe(e){return et("MuiButtonBase",e)}const NEe=ot("MuiButtonBase",["root","disabled","focusVisible"]),BEe=["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"],zEe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=tt({root:["root",t&&"disabled",r&&"focusVisible"]},DEe,a);return r&&n&&(i.root+=` ${n}`),i},UEe=te("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NEe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ks=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:l,component:c="button",disabled:s=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:v=!1,LinkComponent:m="a",onBlur:b,onClick:w,onContextMenu:O,onDragLeave:_,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:P,onMouseDown:C,onMouseLeave:$,onMouseUp:R,onTouchEnd:k,onTouchMove:I,onTouchStart:M,tabIndex:F=0,TouchRippleProps:L,touchRippleRef:B,type:V}=n,H=Re(n,BEe),W=d.useRef(null),z=d.useRef(null),q=Ir(z,B),{isFocusVisibleRef:ee,onFocus:oe,onBlur:J,ref:we}=n1(),[le,ge]=d.useState(!1);s&&le&&ge(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{ge(!0),W.current.focus()}}),[]);const[pe,me]=d.useState(!1);d.useEffect(()=>{me(!0)},[]);const xe=pe&&!f&&!s;d.useEffect(()=>{le&&v&&!f&&pe&&z.current.pulsate()},[f,v,le,pe]);function ne(Ve,_t,Wt=h){return oa(Ct=>(_t&&_t(Ct),!Wt&&z.current&&z.current[Ve](Ct),!0))}const Te=ne("start",C),ve=ne("stop",O),$e=ne("stop",_),ye=ne("stop",R),je=ne("stop",Ve=>{le&&Ve.preventDefault(),$&&$(Ve)}),Le=ne("start",M),st=ne("stop",k),Xe=ne("stop",I),U=ne("stop",Ve=>{J(Ve),ee.current===!1&&ge(!1),b&&b(Ve)},!1),K=oa(Ve=>{W.current||(W.current=Ve.currentTarget),oe(Ve),ee.current===!0&&(ge(!0),x&&x(Ve)),y&&y(Ve)}),Z=()=>{const Ve=W.current;return c&&c!=="button"&&!(Ve.tagName==="A"&&Ve.href)},ie=d.useRef(!1),ue=oa(Ve=>{v&&!ie.current&&le&&z.current&&Ve.key===" "&&(ie.current=!0,z.current.stop(Ve,()=>{z.current.start(Ve)})),Ve.target===Ve.currentTarget&&Z()&&Ve.key===" "&&Ve.preventDefault(),S&&S(Ve),Ve.target===Ve.currentTarget&&Z()&&Ve.key==="Enter"&&!s&&(Ve.preventDefault(),w&&w(Ve))}),ce=oa(Ve=>{v&&Ve.key===" "&&z.current&&le&&!Ve.defaultPrevented&&(ie.current=!1,z.current.stop(Ve,()=>{z.current.pulsate(Ve)})),P&&P(Ve),w&&Ve.target===Ve.currentTarget&&Z()&&Ve.key===" "&&!Ve.defaultPrevented&&w(Ve)});let Ee=c;Ee==="button"&&(H.href||H.to)&&(Ee=m);const Ae={};Ee==="button"?(Ae.type=V===void 0?"button":V,Ae.disabled=s):(!H.href&&!H.to&&(Ae.role="button"),s&&(Ae["aria-disabled"]=s));const ft=Ir(r,we,W),De=T({},n,{centerRipple:o,component:c,disabled:s,disableRipple:f,disableTouchRipple:h,focusRipple:v,tabIndex:F,focusVisible:le}),Ze=zEe(De);return E.jsxs(UEe,T({as:Ee,className:de(Ze.root,l),ownerState:De,onBlur:U,onClick:w,onContextMenu:ve,onFocus:K,onKeyDown:ue,onKeyUp:ce,onMouseDown:Te,onMouseLeave:je,onMouseUp:ye,onDragLeave:$e,onTouchEnd:st,onTouchMove:Xe,onTouchStart:Le,ref:ft,tabIndex:s?-1:F,type:V},Ae,H,{children:[i,xe?E.jsx(LEe,T({ref:q,center:o},L)):null]}))});function VEe(e){return et("MuiIconButton",e)}const WEe=ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),HEe=["edge","children","className","color","disabled","disableFocusRipple","size"],qEe=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${Pe(n)}`,a&&`edge${Pe(a)}`,`size${Pe(o)}`]};return tt(i,VEe,t)},GEe=te(ks,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Pe(r.color)}`],r.edge&&t[`edge${Pe(r.edge)}`],t[`size${Pe(r.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":T({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(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)},{[`&.${WEe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Br=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:l="default",disabled:c=!1,disableFocusRipple:s=!1,size:f="medium"}=n,h=Re(n,HEe),v=T({},n,{edge:a,color:l,disabled:c,disableFocusRipple:s,size:f}),m=qEe(v);return E.jsx(GEe,T({className:de(m.root,i),centerRipple:!0,focusRipple:!s,disabled:c,ref:r},h,{ownerState:v,children:o}))});function KEe(e){return et("MuiTypography",e)}ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const QEe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],XEe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,l={root:["root",o,e.align!=="inherit"&&`align${Pe(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return tt(l,KEe,i)},YEe=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Pe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),NL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},JEe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ZEe=e=>JEe[e]||e,$t=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTypography"}),a=ZEe(n.color),o=t1(T({},n,{color:a})),{align:i="inherit",className:l,component:c,gutterBottom:s=!1,noWrap:f=!1,paragraph:h=!1,variant:v="body1",variantMapping:m=NL}=o,b=Re(o,QEe),w=T({},o,{align:i,color:a,className:l,component:c,gutterBottom:s,noWrap:f,paragraph:h,variant:v,variantMapping:m}),O=c||(h?"p":m[v]||NL[v])||"span",_=XEe(w);return E.jsx(YEe,T({as:O,ref:r,ownerState:w,className:de(_.root,l)},b))});function eCe(e){return et("MuiAppBar",e)}ot("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const tCe=["className","color","enableColorOnDark","position"],rCe=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${Pe(t)}`,`position${Pe(r)}`]};return tt(a,eCe,n)},Tg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,nCe=te(tu,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Pe(r.position)}`],t[`color${Pe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},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"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Tg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Tg(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:Tg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Tg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),aCe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:l="fixed"}=n,c=Re(n,tCe),s=T({},n,{color:o,position:l,enableColorOnDark:i}),f=rCe(s);return E.jsx(nCe,T({square:!0,component:"header",ownerState:s,elevation:4,className:de(f.root,a,l==="fixed"&&"mui-fixed"),ref:r},c))});var R2={};Object.defineProperty(R2,"__esModule",{value:!0});var O9=R2.default=void 0,oCe=sCe(d),iCe=w9;function P9(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(P9=function(n){return n?r:t})(e)}function sCe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=P9(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function lCe(e){return Object.keys(e).length===0}function uCe(e=null){const t=oCe.useContext(iCe.ThemeContext);return!t||lCe(t)?e:t}O9=R2.default=uCe;var Oa="top",Io="bottom",To="right",Pa="left",$2="auto",am=[Oa,Io,To,Pa],If="start",gv="end",cCe="clippingParents",R9="viewport",qp="popper",dCe="reference",BL=am.reduce(function(e,t){return e.concat([t+"-"+If,t+"-"+gv])},[]),$9=[].concat(am,[$2]).reduce(function(e,t){return e.concat([t,t+"-"+If,t+"-"+gv])},[]),fCe="beforeRead",pCe="read",hCe="afterRead",vCe="beforeMain",mCe="main",gCe="afterMain",yCe="beforeWrite",bCe="write",_Ce="afterWrite",xCe=[fCe,pCe,hCe,vCe,mCe,gCe,yCe,bCe,_Ce];function Ti(e){return e?(e.nodeName||"").toLowerCase():null}function Ga(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _c(e){var t=Ga(e).Element;return e instanceof t||e instanceof Element}function Co(e){var t=Ga(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function k2(e){if(typeof ShadowRoot>"u")return!1;var t=Ga(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wCe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Co(o)||!Ti(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function SCe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(c,s){return c[s]="",c},{});!Co(a)||!Ti(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(c){a.removeAttribute(c)}))})}}const ECe={name:"applyStyles",enabled:!0,phase:"write",fn:wCe,effect:SCe,requires:["computeStyles"]};function ki(e){return e.split("-")[0]}var oc=Math.max,V0=Math.min,Tf=Math.round;function gC(){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 k9(){return!/^((?!chrome|android).)*safari/i.test(gC())}function Af(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Co(e)&&(a=e.offsetWidth>0&&Tf(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Tf(n.height)/e.offsetHeight||1);var i=_c(e)?Ga(e):window,l=i.visualViewport,c=!k9()&&r,s=(n.left+(c&&l?l.offsetLeft:0))/a,f=(n.top+(c&&l?l.offsetTop:0))/o,h=n.width/a,v=n.height/o;return{width:h,height:v,top:f,right:s+h,bottom:f+v,left:s,x:s,y:f}}function j2(e){var t=Af(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 j9(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&k2(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ws(e){return Ga(e).getComputedStyle(e)}function CCe(e){return["table","td","th"].indexOf(Ti(e))>=0}function ru(e){return((_c(e)?e.ownerDocument:e.document)||window.document).documentElement}function l1(e){return Ti(e)==="html"?e:e.assignedSlot||e.parentNode||(k2(e)?e.host:null)||ru(e)}function zL(e){return!Co(e)||ws(e).position==="fixed"?null:e.offsetParent}function OCe(e){var t=/firefox/i.test(gC()),r=/Trident/i.test(gC());if(r&&Co(e)){var n=ws(e);if(n.position==="fixed")return null}var a=l1(e);for(k2(a)&&(a=a.host);Co(a)&&["html","body"].indexOf(Ti(a))<0;){var o=ws(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function om(e){for(var t=Ga(e),r=zL(e);r&&CCe(r)&&ws(r).position==="static";)r=zL(r);return r&&(Ti(r)==="html"||Ti(r)==="body"&&ws(r).position==="static")?t:r||OCe(e)||t}function I2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $h(e,t,r){return oc(e,V0(t,r))}function PCe(e,t,r){var n=$h(e,t,r);return n>r?r:n}function I9(){return{top:0,right:0,bottom:0,left:0}}function T9(e){return Object.assign({},I9(),e)}function A9(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var RCe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,T9(typeof t!="number"?t:A9(t,am))};function $Ce(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,l=ki(r.placement),c=I2(l),s=[Pa,To].indexOf(l)>=0,f=s?"height":"width";if(!(!o||!i)){var h=RCe(a.padding,r),v=j2(o),m=c==="y"?Oa:Pa,b=c==="y"?Io:To,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],O=i[c]-r.rects.reference[c],_=om(o),y=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,x=w/2-O/2,S=h[m],P=y-v[f]-h[b],C=y/2-v[f]/2+x,$=$h(S,C,P),R=c;r.modifiersData[n]=(t={},t[R]=$,t.centerOffset=$-C,t)}}function kCe(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||j9(t.elements.popper,a)&&(t.elements.arrow=a))}const jCe={name:"arrow",enabled:!0,phase:"main",fn:$Ce,effect:kCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mf(e){return e.split("-")[1]}var ICe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function TCe(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:Tf(r*a)/a||0,y:Tf(n*a)/a||0}}function UL(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,s=e.adaptive,f=e.roundOffsets,h=e.isFixed,v=i.x,m=v===void 0?0:v,b=i.y,w=b===void 0?0:b,O=typeof f=="function"?f({x:m,y:w}):{x:m,y:w};m=O.x,w=O.y;var _=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),x=Pa,S=Oa,P=window;if(s){var C=om(r),$="clientHeight",R="clientWidth";if(C===Ga(r)&&(C=ru(r),ws(C).position!=="static"&&l==="absolute"&&($="scrollHeight",R="scrollWidth")),C=C,a===Oa||(a===Pa||a===To)&&o===gv){S=Io;var k=h&&C===P&&P.visualViewport?P.visualViewport.height:C[$];w-=k-n.height,w*=c?1:-1}if(a===Pa||(a===Oa||a===Io)&&o===gv){x=To;var I=h&&C===P&&P.visualViewport?P.visualViewport.width:C[R];m-=I-n.width,m*=c?1:-1}}var M=Object.assign({position:l},s&&ICe),F=f===!0?TCe({x:m,y:w},Ga(r)):{x:m,y:w};if(m=F.x,w=F.y,c){var L;return Object.assign({},M,(L={},L[S]=y?"0":"",L[x]=_?"0":"",L.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+w+"px)":"translate3d("+m+"px, "+w+"px, 0)",L))}return Object.assign({},M,(t={},t[S]=y?w+"px":"",t[x]=_?m+"px":"",t.transform="",t))}function ACe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,l=r.roundOffsets,c=l===void 0?!0:l,s={placement:ki(t.placement),variation:Mf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,UL(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,UL(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const MCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ACe,data:{}};var Ag={passive:!0};function FCe(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,l=i===void 0?!0:i,c=Ga(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&s.forEach(function(f){f.addEventListener("scroll",r.update,Ag)}),l&&c.addEventListener("resize",r.update,Ag),function(){o&&s.forEach(function(f){f.removeEventListener("scroll",r.update,Ag)}),l&&c.removeEventListener("resize",r.update,Ag)}}const LCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:FCe,data:{}};var DCe={left:"right",right:"left",bottom:"top",top:"bottom"};function Sy(e){return e.replace(/left|right|bottom|top/g,function(t){return DCe[t]})}var NCe={start:"end",end:"start"};function VL(e){return e.replace(/start|end/g,function(t){return NCe[t]})}function T2(e){var t=Ga(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function A2(e){return Af(ru(e)).left+T2(e).scrollLeft}function BCe(e,t){var r=Ga(e),n=ru(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,c=0;if(a){o=a.width,i=a.height;var s=k9();(s||!s&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:l+A2(e),y:c}}function zCe(e){var t,r=ru(e),n=T2(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=oc(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=oc(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+A2(e),c=-n.scrollTop;return ws(a||r).direction==="rtl"&&(l+=oc(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:c}}function M2(e){var t=ws(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function M9(e){return["html","body","#document"].indexOf(Ti(e))>=0?e.ownerDocument.body:Co(e)&&M2(e)?e:M9(l1(e))}function kh(e,t){var r;t===void 0&&(t=[]);var n=M9(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Ga(n),i=a?[o].concat(o.visualViewport||[],M2(n)?n:[]):n,l=t.concat(i);return a?l:l.concat(kh(l1(i)))}function yC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function UCe(e,t){var r=Af(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 WL(e,t,r){return t===R9?yC(BCe(e,r)):_c(t)?UCe(t,r):yC(zCe(ru(e)))}function VCe(e){var t=kh(l1(e)),r=["absolute","fixed"].indexOf(ws(e).position)>=0,n=r&&Co(e)?om(e):e;return _c(n)?t.filter(function(a){return _c(a)&&j9(a,n)&&Ti(a)!=="body"}):[]}function WCe(e,t,r,n){var a=t==="clippingParents"?VCe(e):[].concat(t),o=[].concat(a,[r]),i=o[0],l=o.reduce(function(c,s){var f=WL(e,s,n);return c.top=oc(f.top,c.top),c.right=V0(f.right,c.right),c.bottom=V0(f.bottom,c.bottom),c.left=oc(f.left,c.left),c},WL(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function F9(e){var t=e.reference,r=e.element,n=e.placement,a=n?ki(n):null,o=n?Mf(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(a){case Oa:c={x:i,y:t.y-r.height};break;case Io:c={x:i,y:t.y+t.height};break;case To:c={x:t.x+t.width,y:l};break;case Pa:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var s=a?I2(a):null;if(s!=null){var f=s==="y"?"height":"width";switch(o){case If:c[s]=c[s]-(t[f]/2-r[f]/2);break;case gv:c[s]=c[s]+(t[f]/2-r[f]/2);break}}return c}function yv(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,l=r.boundary,c=l===void 0?cCe:l,s=r.rootBoundary,f=s===void 0?R9:s,h=r.elementContext,v=h===void 0?qp:h,m=r.altBoundary,b=m===void 0?!1:m,w=r.padding,O=w===void 0?0:w,_=T9(typeof O!="number"?O:A9(O,am)),y=v===qp?dCe:qp,x=e.rects.popper,S=e.elements[b?y:v],P=WCe(_c(S)?S:S.contextElement||ru(e.elements.popper),c,f,i),C=Af(e.elements.reference),$=F9({reference:C,element:x,strategy:"absolute",placement:a}),R=yC(Object.assign({},x,$)),k=v===qp?R:C,I={top:P.top-k.top+_.top,bottom:k.bottom-P.bottom+_.bottom,left:P.left-k.left+_.left,right:k.right-P.right+_.right},M=e.modifiersData.offset;if(v===qp&&M){var F=M[a];Object.keys(I).forEach(function(L){var B=[To,Io].indexOf(L)>=0?1:-1,V=[Oa,Io].indexOf(L)>=0?"y":"x";I[L]+=F[V]*B})}return I}function HCe(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,s=c===void 0?$9:c,f=Mf(n),h=f?l?BL:BL.filter(function(b){return Mf(b)===f}):am,v=h.filter(function(b){return s.indexOf(b)>=0});v.length===0&&(v=h);var m=v.reduce(function(b,w){return b[w]=yv(e,{placement:w,boundary:a,rootBoundary:o,padding:i})[ki(w)],b},{});return Object.keys(m).sort(function(b,w){return m[b]-m[w]})}function qCe(e){if(ki(e)===$2)return[];var t=Sy(e);return[VL(e),t,VL(t)]}function GCe(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,l=i===void 0?!0:i,c=r.fallbackPlacements,s=r.padding,f=r.boundary,h=r.rootBoundary,v=r.altBoundary,m=r.flipVariations,b=m===void 0?!0:m,w=r.allowedAutoPlacements,O=t.options.placement,_=ki(O),y=_===O,x=c||(y||!b?[Sy(O)]:qCe(O)),S=[O].concat(x).reduce(function(le,ge){return le.concat(ki(ge)===$2?HCe(t,{placement:ge,boundary:f,rootBoundary:h,padding:s,flipVariations:b,allowedAutoPlacements:w}):ge)},[]),P=t.rects.reference,C=t.rects.popper,$=new Map,R=!0,k=S[0],I=0;I=0,V=B?"width":"height",H=yv(t,{placement:M,boundary:f,rootBoundary:h,altBoundary:v,padding:s}),W=B?L?To:Pa:L?Io:Oa;P[V]>C[V]&&(W=Sy(W));var z=Sy(W),q=[];if(o&&q.push(H[F]<=0),l&&q.push(H[W]<=0,H[z]<=0),q.every(function(le){return le})){k=M,R=!1;break}$.set(M,q)}if(R)for(var ee=b?3:1,oe=function(ge){var pe=S.find(function(me){var xe=$.get(me);if(xe)return xe.slice(0,ge).every(function(ne){return ne})});if(pe)return k=pe,"break"},J=ee;J>0;J--){var we=oe(J);if(we==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const KCe={name:"flip",enabled:!0,phase:"main",fn:GCe,requiresIfExists:["offset"],data:{_skip:!1}};function HL(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 qL(e){return[Oa,To,Io,Pa].some(function(t){return e[t]>=0})}function QCe(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=yv(t,{elementContext:"reference"}),l=yv(t,{altBoundary:!0}),c=HL(i,n),s=HL(l,a,o),f=qL(c),h=qL(s);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const XCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QCe};function YCe(e,t,r){var n=ki(e),a=[Pa,Oa].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Pa,To].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function JCe(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=$9.reduce(function(f,h){return f[h]=YCe(h,t.rects,o),f},{}),l=i[t.placement],c=l.x,s=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=i}const ZCe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JCe};function eOe(e){var t=e.state,r=e.name;t.modifiersData[r]=F9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const tOe={name:"popperOffsets",enabled:!0,phase:"read",fn:eOe,data:{}};function rOe(e){return e==="x"?"y":"x"}function nOe(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,l=i===void 0?!1:i,c=r.boundary,s=r.rootBoundary,f=r.altBoundary,h=r.padding,v=r.tether,m=v===void 0?!0:v,b=r.tetherOffset,w=b===void 0?0:b,O=yv(t,{boundary:c,rootBoundary:s,padding:h,altBoundary:f}),_=ki(t.placement),y=Mf(t.placement),x=!y,S=I2(_),P=rOe(S),C=t.modifiersData.popperOffsets,$=t.rects.reference,R=t.rects.popper,k=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,I=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(C){if(o){var L,B=S==="y"?Oa:Pa,V=S==="y"?Io:To,H=S==="y"?"height":"width",W=C[S],z=W+O[B],q=W-O[V],ee=m?-R[H]/2:0,oe=y===If?$[H]:R[H],J=y===If?-R[H]:-$[H],we=t.elements.arrow,le=m&&we?j2(we):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I9(),pe=ge[B],me=ge[V],xe=$h(0,$[H],le[H]),ne=x?$[H]/2-ee-xe-pe-I.mainAxis:oe-xe-pe-I.mainAxis,Te=x?-$[H]/2+ee+xe+me+I.mainAxis:J+xe+me+I.mainAxis,ve=t.elements.arrow&&om(t.elements.arrow),$e=ve?S==="y"?ve.clientTop||0:ve.clientLeft||0:0,ye=(L=M==null?void 0:M[S])!=null?L:0,je=W+ne-ye-$e,Le=W+Te-ye,st=$h(m?V0(z,je):z,W,m?oc(q,Le):q);C[S]=st,F[S]=st-W}if(l){var Xe,U=S==="x"?Oa:Pa,K=S==="x"?Io:To,Z=C[P],ie=P==="y"?"height":"width",ue=Z+O[U],ce=Z-O[K],Ee=[Oa,Pa].indexOf(_)!==-1,Ae=(Xe=M==null?void 0:M[P])!=null?Xe:0,ft=Ee?ue:Z-$[ie]-R[ie]-Ae+I.altAxis,De=Ee?Z+$[ie]+R[ie]-Ae-I.altAxis:ce,Ze=m&&Ee?PCe(ft,Z,De):$h(m?ft:ue,Z,m?De:ce);C[P]=Ze,F[P]=Ze-Z}t.modifiersData[n]=F}}const aOe={name:"preventOverflow",enabled:!0,phase:"main",fn:nOe,requiresIfExists:["offset"]};function oOe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iOe(e){return e===Ga(e)||!Co(e)?T2(e):oOe(e)}function sOe(e){var t=e.getBoundingClientRect(),r=Tf(t.width)/e.offsetWidth||1,n=Tf(t.height)/e.offsetHeight||1;return r!==1||n!==1}function lOe(e,t,r){r===void 0&&(r=!1);var n=Co(t),a=Co(t)&&sOe(t),o=ru(t),i=Af(e,a,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ti(t)!=="body"||M2(o))&&(l=iOe(t)),Co(t)?(c=Af(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=A2(o))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function uOe(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&a(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function cOe(e){var t=uOe(e);return xCe.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function dOe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fOe(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var GL={placement:"bottom",modifiers:[],strategy:"absolute"};function KL(){for(var e=arguments.length,t=new Array(e),r=0;r{o||l(mOe(a)||document.body)},[a,o]),qa(()=>{if(i&&!o)return D0(r,i),()=>{D0(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const s={ref:c};return d.cloneElement(n,s)}return E.jsx(d.Fragment,{children:n})}return E.jsx(d.Fragment,{children:i&&Fv.createPortal(n,i)})});function gOe(e){return et("MuiPopper",e)}ot("MuiPopper",["root"]);const yOe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],bOe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _Oe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function bC(e){return typeof e=="function"?e():e}function xOe(e){return e.nodeType!==void 0}const wOe=e=>{const{classes:t}=e;return tt({root:["root"]},gOe,t)},SOe={},EOe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:l,modifiers:c,open:s,placement:f,popperOptions:h,popperRef:v,slotProps:m={},slots:b={},TransitionProps:w}=t,O=Re(t,yOe),_=d.useRef(null),y=Ir(_,r),x=d.useRef(null),S=Ir(x,v),P=d.useRef(S);qa(()=>{P.current=S},[S]),d.useImperativeHandle(v,()=>x.current,[]);const C=_Oe(f,i),[$,R]=d.useState(C),[k,I]=d.useState(bC(a));d.useEffect(()=>{x.current&&x.current.forceUpdate()}),d.useEffect(()=>{a&&I(bC(a))},[a]),qa(()=>{if(!k||!s)return;const V=z=>{R(z.placement)};let H=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];c!=null&&(H=H.concat(c)),h&&h.modifiers!=null&&(H=H.concat(h.modifiers));const W=vOe(k,_.current,T({placement:C},h,{modifiers:H}));return P.current(W),()=>{W.destroy(),P.current(null)}},[k,l,c,s,h,C]);const M={placement:$};w!==null&&(M.TransitionProps=w);const F=wOe(t),L=(n=b.root)!=null?n:"div",B=ko({elementType:L,externalSlotProps:m.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:F.root});return E.jsx(L,T({},B,{children:typeof o=="function"?o(M):o}))}),COe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:s,open:f,placement:h="bottom",popperOptions:v=SOe,popperRef:m,style:b,transition:w=!1,slotProps:O={},slots:_={}}=t,y=Re(t,bOe),[x,S]=d.useState(!0),P=()=>{S(!1)},C=()=>{S(!0)};if(!c&&!f&&(!w||x))return null;let $;if(o)$=o;else if(n){const I=bC(n);$=I&&xOe(I)?tn(I).body:tn(null).body}const R=!f&&c&&(!w||x)?"none":void 0,k=w?{in:f,onEnter:P,onExited:C}:void 0;return E.jsx(L9,{disablePortal:l,container:$,children:E.jsx(EOe,T({anchorEl:n,direction:i,disablePortal:l,modifiers:s,ref:r,open:w?!x:f,placement:h,popperOptions:v,popperRef:m,slotProps:O,slots:_},y,{style:T({position:"fixed",top:0,left:0,display:R},b),TransitionProps:k,children:a}))})}),OOe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],POe=te(COe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D9=d.forwardRef(function(t,r){var n;const a=O9(),o=rt({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:s,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:b,placement:w,popperOptions:O,popperRef:_,transition:y,slots:x,slotProps:S}=o,P=Re(o,OOe),C=(n=x==null?void 0:x.root)!=null?n:c==null?void 0:c.Root,$=T({anchorEl:i,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:b,placement:w,popperOptions:O,popperRef:_,transition:y},P);return E.jsx(POe,T({as:l,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:S??s},$,{ref:r}))}),ROe=["onChange","maxRows","minRows","style","value"];function Mg(e){return parseInt(e,10)||0}const $Oe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function kOe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const jOe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:l}=t,c=Re(t,ROe),{current:s}=d.useRef(l!=null),f=d.useRef(null),h=Ir(r,f),v=d.useRef(null),m=d.useRef(null),b=d.useCallback(()=>{const _=f.current,x=$o(_).getComputedStyle(_);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=m.current;S.style.width=x.width,S.value=_.value||t.placeholder||"x",S.value.slice(-1)===` -`&&(S.value+=" ");const P=x.boxSizing,C=Mg(x.paddingBottom)+Mg(x.paddingTop),$=Mg(x.borderBottomWidth)+Mg(x.borderTopWidth),R=S.scrollHeight;S.value="x";const k=S.scrollHeight;let I=R;o&&(I=Math.max(Number(o)*k,I)),a&&(I=Math.min(Number(a)*k,I)),I=Math.max(I,k);const M=I+(P==="border-box"?C+$:0),F=Math.abs(I-R)<=1;return{outerHeightStyle:M,overflowing:F}},[a,o,t.placeholder]),w=d.useCallback(()=>{const _=b();if(kOe(_))return;const y=_.outerHeightStyle,x=f.current;v.current!==y&&(v.current=y,x.style.height=`${y}px`),x.style.overflow=_.overflowing?"hidden":""},[b]);qa(()=>{const _=()=>{w()};let y;const x=op(_),S=f.current,P=$o(S);P.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(_),C.observe(S)),()=>{x.clear(),cancelAnimationFrame(y),P.removeEventListener("resize",x),C&&C.disconnect()}},[b,w]),qa(()=>{w()});const O=_=>{s||w(),n&&n(_)};return E.jsxs(d.Fragment,{children:[E.jsx("textarea",T({value:l,onChange:O,ref:h,rows:o,style:i},c)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:T({},$Oe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function js({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const u1=d.createContext(void 0);function si(){return d.useContext(u1)}function N9(e){return E.jsx(qxe,T({},e,{defaultTheme:i1,themeId:gc}))}function QL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function W0(e,t=!1){return e&&(QL(e.value)&&e.value!==""||t&&QL(e.defaultValue)&&e.defaultValue!=="")}function IOe(e){return e.startAdornment}function TOe(e){return et("MuiInputBase",e)}const Ff=ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),AOe=["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"],c1=(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${Pe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},d1=(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]},MOe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:l,fullWidth:c,hiddenLabel:s,multiline:f,readOnly:h,size:v,startAdornment:m,type:b}=e,w={root:["root",`color${Pe(r)}`,n&&"disabled",a&&"error",c&&"fullWidth",i&&"focused",l&&"formControl",v&&v!=="medium"&&`size${Pe(v)}`,f&&"multiline",m&&"adornedStart",o&&"adornedEnd",s&&"hiddenLabel",h&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",v==="small"&&"inputSizeSmall",s&&"inputHiddenLabel",m&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return tt(w,TOe,t)},f1=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:c1})(({theme:e,ownerState:t})=>T({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ff.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&T({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),p1=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return T({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] + .${Ff.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ff.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"})}),FOe=E.jsx(N9,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),h1=d.forwardRef(function(t,r){var n;const a=rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:l,className:c,components:s={},componentsProps:f={},defaultValue:h,disabled:v,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:w=!1,id:O,inputComponent:_="input",inputProps:y={},inputRef:x,maxRows:S,minRows:P,multiline:C=!1,name:$,onBlur:R,onChange:k,onClick:I,onFocus:M,onKeyDown:F,onKeyUp:L,placeholder:B,readOnly:V,renderSuffix:H,rows:W,slotProps:z={},slots:q={},startAdornment:ee,type:oe="text",value:J}=a,we=Re(a,AOe),le=y.value!=null?y.value:J,{current:ge}=d.useRef(le!=null),pe=d.useRef(),me=d.useCallback(Ze=>{},[]),xe=Ir(pe,x,y.ref,me),[ne,Te]=d.useState(!1),ve=si(),$e=js({props:a,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=ve?ve.focused:ne,d.useEffect(()=>{!ve&&v&&ne&&(Te(!1),R&&R())},[ve,v,ne,R]);const ye=ve&&ve.onFilled,je=ve&&ve.onEmpty,Le=d.useCallback(Ze=>{W0(Ze)?ye&&ye():je&&je()},[ye,je]);qa(()=>{ge&&Le({value:le})},[le,Le,ge]);const st=Ze=>{if($e.disabled){Ze.stopPropagation();return}M&&M(Ze),y.onFocus&&y.onFocus(Ze),ve&&ve.onFocus?ve.onFocus(Ze):Te(!0)},Xe=Ze=>{R&&R(Ze),y.onBlur&&y.onBlur(Ze),ve&&ve.onBlur?ve.onBlur(Ze):Te(!1)},U=(Ze,...Ve)=>{if(!ge){const _t=Ze.target||pe.current;if(_t==null)throw new Error(xs(1));Le({value:_t.value})}y.onChange&&y.onChange(Ze,...Ve),k&&k(Ze,...Ve)};d.useEffect(()=>{Le(pe.current)},[]);const K=Ze=>{pe.current&&Ze.currentTarget===Ze.target&&pe.current.focus(),I&&I(Ze)};let Z=_,ie=y;C&&Z==="input"&&(W?ie=T({type:void 0,minRows:W,maxRows:W},ie):ie=T({type:void 0,maxRows:S,minRows:P},ie),Z=jOe);const ue=Ze=>{Le(Ze.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};d.useEffect(()=>{ve&&ve.setAdornedStart(!!ee)},[ve,ee]);const ce=T({},a,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:ve,fullWidth:w,hiddenLabel:$e.hiddenLabel,multiline:C,size:$e.size,startAdornment:ee,type:oe}),Ee=MOe(ce),Ae=q.root||s.Root||f1,ft=z.root||f.root||{},De=q.input||s.Input||p1;return ie=T({},ie,(n=z.input)!=null?n:f.input),E.jsxs(d.Fragment,{children:[!m&&FOe,E.jsxs(Ae,T({},ft,!mv(Ae)&&{ownerState:T({},ce,ft.ownerState)},{ref:r,onClick:K},we,{className:de(Ee.root,ft.className,c,V&&"MuiInputBase-readOnly"),children:[ee,E.jsx(u1.Provider,{value:null,children:E.jsx(De,T({ownerState:ce,"aria-invalid":$e.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:h,disabled:$e.disabled,id:O,onAnimationStart:ue,name:$,placeholder:B,readOnly:V,required:$e.required,rows:W,value:le,onKeyDown:F,onKeyUp:L,type:oe},ie,!mv(De)&&{as:Z,ownerState:T({},ce,ie.ownerState)},{ref:xe,className:de(Ee.input,ie.className,V&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:U,onFocus:st}))}),b,H?H(T({},$e,{startAdornment:ee})):null]}))]})});function LOe(e){return et("MuiInput",e)}const Gp=T({},Ff,ot("MuiInput",["root","underline","input"]));function DOe(e){return et("MuiOutlinedInput",e)}const Gs=T({},Ff,ot("MuiOutlinedInput",["root","notchedOutline","input"]));function NOe(e){return et("MuiFilledInput",e)}const yu=T({},Ff,ot("MuiFilledInput",["root","underline","input"])),B9=Za(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),BOe=Za(E.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 zOe(e){return et("MuiAvatar",e)}ot("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const UOe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],VOe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return tt({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},zOe,t)},WOe=te("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:T({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:T({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),HOe=te("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qOe=te(BOe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GOe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const l=new Image;return l.onload=()=>{i&&o("loaded")},l.onerror=()=>{i&&o("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const bv=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:l="div",slots:c={},slotProps:s={},imgProps:f,sizes:h,src:v,srcSet:m,variant:b="circular"}=n,w=Re(n,UOe);let O=null;const _=GOe(T({},f,{src:v,srcSet:m})),y=v||m,x=y&&_!=="error",S=T({},n,{colorDefault:!x,component:l,variant:b}),P=VOe(S),[C,$]=REe("img",{className:P.img,elementType:HOe,externalForwardedProps:{slots:c,slotProps:{img:T({},f,s.img)}},additionalProps:{alt:a,src:v,srcSet:m,sizes:h},ownerState:S});return x?O=E.jsx(C,T({},$)):o||o===0?O=o:y&&a?O=a[0]:O=E.jsx(qOe,{ownerState:S,className:P.fallback}),E.jsx(WOe,T({as:l,ownerState:S,className:de(P.root,i),ref:r},w,{children:O}))}),KOe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],QOe={entering:{opacity:1},entered:{opacity:1}},z9=d.forwardRef(function(t,r){const n=Ja(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:l,easing:c,in:s,onEnter:f,onEntered:h,onEntering:v,onExit:m,onExited:b,onExiting:w,style:O,timeout:_=a,TransitionComponent:y=ii}=t,x=Re(t,KOe),S=d.useRef(null),P=Ir(S,l.ref,r),C=B=>V=>{if(B){const H=S.current;V===void 0?B(H):B(H,V)}},$=C(v),R=C((B,V)=>{P2(B);const H=jf({style:O,timeout:_,easing:c},{mode:"enter"});B.style.webkitTransition=n.transitions.create("opacity",H),B.style.transition=n.transitions.create("opacity",H),f&&f(B,V)}),k=C(h),I=C(w),M=C(B=>{const V=jf({style:O,timeout:_,easing:c},{mode:"exit"});B.style.webkitTransition=n.transitions.create("opacity",V),B.style.transition=n.transitions.create("opacity",V),m&&m(B)}),F=C(b),L=B=>{o&&o(S.current,B)};return E.jsx(y,T({appear:i,in:s,nodeRef:S,onEnter:R,onEntered:k,onEntering:$,onExit:M,onExited:F,onExiting:I,addEndListener:L,timeout:_},x,{children:(B,V)=>d.cloneElement(l,T({style:T({opacity:0,visibility:B==="exited"&&!s?"hidden":void 0},QOe[B],O,l.props.style),ref:P},V))}))});function XOe(e){return et("MuiBackdrop",e)}ot("MuiBackdrop",["root","invisible"]);const YOe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],JOe=e=>{const{classes:t,invisible:r}=e;return tt({root:["root",r&&"invisible"]},XOe,t)},ZOe=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>T({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"})),U9=d.forwardRef(function(t,r){var n,a,o;const i=rt({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:s="div",components:f={},componentsProps:h={},invisible:v=!1,open:m,slotProps:b={},slots:w={},TransitionComponent:O=z9,transitionDuration:_}=i,y=Re(i,YOe),x=T({},i,{component:s,invisible:v}),S=JOe(x),P=(n=b.root)!=null?n:h.root;return E.jsx(O,T({in:m,timeout:_},y,{children:E.jsx(ZOe,T({"aria-hidden":!0},P,{as:(a=(o=w.root)!=null?o:f.Root)!=null?a:s,className:de(S.root,c,P==null?void 0:P.className),ownerState:T({},x,P==null?void 0:P.ownerState),classes:S,ref:r,children:l}))}))}),ePe=ot("MuiBox",["root"]),tPe=z0(),aa=Jxe({themeId:gc,defaultTheme:tPe,defaultClassName:ePe.root,generateClassName:b2.generate});function rPe(e){return et("MuiButton",e)}const Fg=ot("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),nPe=d.createContext({}),aPe=d.createContext(void 0),oPe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],iPe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,l={root:["root",o,`${o}${Pe(t)}`,`size${Pe(a)}`,`${o}Size${Pe(a)}`,`color${Pe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Pe(a)}`],endIcon:["icon","endIcon",`iconSize${Pe(a)}`]},c=tt(l,rPe,i);return T({},i,c)},V9=e=>T({},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}}),sPe=te(ks,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Pe(r.color)}`],t[`size${Pe(r.size)}`],t[`${r.variant}Size${Pe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},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":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(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})`:nr(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})`:nr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Fg.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Fg.disabled}`]:T({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 ${nr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fg.disabled}`]:{boxShadow:"none"}}),lPe=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Pe(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},V9(e))),uPe=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Pe(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},V9(e))),nn=d.forwardRef(function(t,r){const n=d.useContext(nPe),a=d.useContext(aPe),o=vv(n,t),i=rt({props:o,name:"MuiButton"}),{children:l,color:c="primary",component:s="button",className:f,disabled:h=!1,disableElevation:v=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:w,fullWidth:O=!1,size:_="medium",startIcon:y,type:x,variant:S="text"}=i,P=Re(i,oPe),C=T({},i,{color:c,component:s,disabled:h,disableElevation:v,disableFocusRipple:m,fullWidth:O,size:_,type:x,variant:S}),$=iPe(C),R=y&&E.jsx(lPe,{className:$.startIcon,ownerState:C,children:y}),k=b&&E.jsx(uPe,{className:$.endIcon,ownerState:C,children:b}),I=a||"";return E.jsxs(sPe,T({ownerState:C,className:de(n.className,$.root,f,I),component:s,disabled:h,focusRipple:!m,focusVisibleClassName:de($.focusVisible,w),ref:r,type:x},P,{classes:$,children:[R,l,k]}))});function cPe(e){return et("MuiCard",e)}ot("MuiCard",["root"]);const dPe=["className","raised"],fPe=e=>{const{classes:t}=e;return tt({root:["root"]},cPe,t)},pPe=te(tu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),$c=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Re(n,dPe),l=T({},n,{raised:o}),c=fPe(l);return E.jsx(pPe,T({className:de(c.root,a),elevation:o?8:void 0,ref:r,ownerState:l},i))});function hPe(e){return et("MuiCardActions",e)}ot("MuiCardActions",["root","spacing"]);const vPe=["disableSpacing","className"],mPe=e=>{const{classes:t,disableSpacing:r}=e;return tt({root:["root",!r&&"spacing"]},hPe,t)},gPe=te("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),W9=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardActions"}),{disableSpacing:a=!1,className:o}=n,i=Re(n,vPe),l=T({},n,{disableSpacing:a}),c=mPe(l);return E.jsx(gPe,T({className:de(c.root,o),ownerState:l,ref:r},i))});function yPe(e){return et("MuiCardContent",e)}ot("MuiCardContent",["root"]);const bPe=["className","component"],_Pe=e=>{const{classes:t}=e;return tt({root:["root"]},yPe,t)},xPe=te("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),vo=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Re(n,bPe),l=T({},n,{component:o}),c=_Pe(l);return E.jsx(xPe,T({as:o,className:de(c.root,a),ownerState:l,ref:r},i))});function wPe(e){return et("MuiCardHeader",e)}const XL=ot("MuiCardHeader",["root","avatar","action","content","title","subheader"]),SPe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],EPe=e=>{const{classes:t}=e;return tt({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},wPe,t)},CPe=te("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${XL.title}`]:t.title,[`& .${XL.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),OPe=te("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),PPe=te("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),RPe=te("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),bu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:l="div",disableTypography:c=!1,subheader:s,subheaderTypographyProps:f,title:h,titleTypographyProps:v}=n,m=Re(n,SPe),b=T({},n,{component:l,disableTypography:c}),w=EPe(b);let O=h;O!=null&&O.type!==$t&&!c&&(O=E.jsx($t,T({variant:o?"body2":"h5",className:w.title,component:"span",display:"block"},v,{children:O})));let _=s;return _!=null&&_.type!==$t&&!c&&(_=E.jsx($t,T({variant:o?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:_}))),E.jsxs(CPe,T({className:de(w.root,i),as:l,ref:r,ownerState:b},m,{children:[o&&E.jsx(OPe,{className:w.avatar,ownerState:b,children:o}),E.jsxs(RPe,{className:w.content,ownerState:b,children:[O,_]}),a&&E.jsx(PPe,{className:w.action,ownerState:b,children:a})]}))});function $Pe(e){return et("PrivateSwitchBase",e)}ot("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kPe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jPe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${Pe(a)}`],input:["input"]};return tt(o,$Pe,t)},IPe=te(ks)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),TPe=te("input",{shouldForwardProp:In})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),H9=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:l,disabled:c,disableFocusRipple:s=!1,edge:f=!1,icon:h,id:v,inputProps:m,inputRef:b,name:w,onBlur:O,onChange:_,onFocus:y,readOnly:x,required:S=!1,tabIndex:P,type:C,value:$}=t,R=Re(t,kPe),[k,I]=kf({controlled:a,default:!!l,name:"SwitchBase",state:"checked"}),M=si(),F=q=>{y&&y(q),M&&M.onFocus&&M.onFocus(q)},L=q=>{O&&O(q),M&&M.onBlur&&M.onBlur(q)},B=q=>{if(q.nativeEvent.defaultPrevented)return;const ee=q.target.checked;I(ee),_&&_(q,ee)};let V=c;M&&typeof V>"u"&&(V=M.disabled);const H=C==="checkbox"||C==="radio",W=T({},t,{checked:k,disabled:V,disableFocusRipple:s,edge:f}),z=jPe(W);return E.jsxs(IPe,T({component:"span",className:de(z.root,i),centerRipple:!0,focusRipple:!s,disabled:V,tabIndex:null,role:void 0,onFocus:F,onBlur:L,ownerState:W,ref:r},R,{children:[E.jsx(TPe,T({autoFocus:n,checked:a,defaultChecked:l,className:z.input,disabled:V,id:H?v:void 0,name:w,onChange:B,readOnly:x,ref:b,required:S,ownerState:W,tabIndex:P,type:C},C==="checkbox"&&$===void 0?{}:{value:$},m)),k?o:h]}))}),APe=Za(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),MPe=Za(E.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"),FPe=Za(E.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 LPe(e){return et("MuiCheckbox",e)}const aS=ot("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),DPe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],NPe=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${Pe(n)}`,`size${Pe(a)}`]},i=tt(o,LPe,t);return T({},t,i)},BPe=te(H9,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Pe(r.size)}`],r.color!=="default"&&t[`color${Pe(r.color)}`]]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${aS.checked}, &.${aS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${aS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zPe=E.jsx(MPe,{}),UPe=E.jsx(APe,{}),VPe=E.jsx(FPe,{}),Lf=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiCheckbox"}),{checkedIcon:i=zPe,color:l="primary",icon:c=UPe,indeterminate:s=!1,indeterminateIcon:f=VPe,inputProps:h,size:v="medium",className:m}=o,b=Re(o,DPe),w=s?f:c,O=s?f:i,_=T({},o,{color:l,indeterminate:s,size:v}),y=NPe(_);return E.jsx(BPe,T({type:"checkbox",inputProps:T({"data-indeterminate":s},h),icon:d.cloneElement(w,{fontSize:(n=w.props.fontSize)!=null?n:v}),checkedIcon:d.cloneElement(O,{fontSize:(a=O.props.fontSize)!=null?a:v}),ownerState:_,ref:r,className:de(y.root,m)},b,{classes:y}))});function WPe(e){return et("MuiCircularProgress",e)}ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const HPe=["className","color","disableShrink","size","style","thickness","value","variant"];let v1=e=>e,YL,JL,ZL,eD;const Ks=44,qPe=$s(YL||(YL=v1` +`),ho.rippleVisible,jEe,mC,({theme:e})=>e.transitions.easing.easeInOut,ho.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ho.child,ho.childLeaving,TEe,mC,({theme:e})=>e.transitions.easing.easeInOut,ho.childPulsate,IEe,({theme:e})=>e.transitions.easing.easeInOut),FEe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,l=Re(n,$Ee),[c,s]=d.useState([]),f=d.useRef(0),h=d.useRef(null);d.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const v=d.useRef(!1),m=zu(),b=d.useRef(null),w=d.useRef(null),O=d.useCallback(S=>{const{pulsate:P,rippleX:C,rippleY:$,rippleSize:R,cb:k}=S;s(T=>[...T,E.jsx(MEe,{classes:{ripple:de(o.ripple,ho.ripple),rippleVisible:de(o.rippleVisible,ho.rippleVisible),ripplePulsate:de(o.ripplePulsate,ho.ripplePulsate),child:de(o.child,ho.child),childLeaving:de(o.childLeaving,ho.childLeaving),childPulsate:de(o.childPulsate,ho.childPulsate)},timeout:mC,pulsate:P,rippleX:C,rippleY:$,rippleSize:R},f.current)]),f.current+=1,h.current=k},[o]),_=d.useCallback((S={},P={},C=()=>{})=>{const{pulsate:$=!1,center:R=a||P.pulsate,fakeElement:k=!1}=P;if((S==null?void 0:S.type)==="mousedown"&&v.current){v.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(v.current=!0);const T=k?null:w.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,L,B;if(R||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)F=Math.round(M.width/2),L=Math.round(M.height/2);else{const{clientX:V,clientY:H}=S.touches&&S.touches.length>0?S.touches[0]:S;F=Math.round(V-M.left),L=Math.round(H-M.top)}if(R)B=Math.sqrt((2*M.width**2+M.height**2)/3),B%2===0&&(B+=1);else{const V=Math.max(Math.abs((T?T.clientWidth:0)-F),F)*2+2,H=Math.max(Math.abs((T?T.clientHeight:0)-L),L)*2+2;B=Math.sqrt(V**2+H**2)}S!=null&&S.touches?b.current===null&&(b.current=()=>{O({pulsate:$,rippleX:F,rippleY:L,rippleSize:B,cb:C})},m.start(kEe,()=>{b.current&&(b.current(),b.current=null)})):O({pulsate:$,rippleX:F,rippleY:L,rippleSize:B,cb:C})},[a,O,m]),y=d.useCallback(()=>{_({},{pulsate:!0})},[_]),x=d.useCallback((S,P)=>{if(m.clear(),(S==null?void 0:S.type)==="touchend"&&b.current){b.current(),b.current=null,m.start(0,()=>{x(S,P)});return}b.current=null,s(C=>C.length>0?C.slice(1):C),h.current=P},[m]);return d.useImperativeHandle(r,()=>({pulsate:y,start:_,stop:x}),[y,_,x]),E.jsx(AEe,I({className:de(ho.root,o.root,i),ref:w},l,{children:E.jsx(O2,{component:null,exit:!0,children:c})}))});function LEe(e){return et("MuiButtonBase",e)}const DEe=ot("MuiButtonBase",["root","disabled","focusVisible"]),NEe=["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"],BEe=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=tt({root:["root",t&&"disabled",r&&"focusVisible"]},LEe,a);return r&&n&&(i.root+=` ${n}`),i},zEe=te("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${DEe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ks=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:l,component:c="button",disabled:s=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:v=!1,LinkComponent:m="a",onBlur:b,onClick:w,onContextMenu:O,onDragLeave:_,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:P,onMouseDown:C,onMouseLeave:$,onMouseUp:R,onTouchEnd:k,onTouchMove:T,onTouchStart:M,tabIndex:F=0,TouchRippleProps:L,touchRippleRef:B,type:V}=n,H=Re(n,NEe),W=d.useRef(null),z=d.useRef(null),q=Tr(z,B),{isFocusVisibleRef:ee,onFocus:oe,onBlur:J,ref:we}=n1(),[le,ge]=d.useState(!1);s&&le&&ge(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{ge(!0),W.current.focus()}}),[]);const[pe,me]=d.useState(!1);d.useEffect(()=>{me(!0)},[]);const xe=pe&&!f&&!s;d.useEffect(()=>{le&&v&&!f&&pe&&z.current.pulsate()},[f,v,le,pe]);function ne(Ve,_t,Wt=h){return oa(Ct=>(_t&&_t(Ct),!Wt&&z.current&&z.current[Ve](Ct),!0))}const Ie=ne("start",C),ve=ne("stop",O),$e=ne("stop",_),ye=ne("stop",R),je=ne("stop",Ve=>{le&&Ve.preventDefault(),$&&$(Ve)}),Le=ne("start",M),st=ne("stop",k),Xe=ne("stop",T),U=ne("stop",Ve=>{J(Ve),ee.current===!1&&ge(!1),b&&b(Ve)},!1),K=oa(Ve=>{W.current||(W.current=Ve.currentTarget),oe(Ve),ee.current===!0&&(ge(!0),x&&x(Ve)),y&&y(Ve)}),Z=()=>{const Ve=W.current;return c&&c!=="button"&&!(Ve.tagName==="A"&&Ve.href)},ie=d.useRef(!1),ue=oa(Ve=>{v&&!ie.current&&le&&z.current&&Ve.key===" "&&(ie.current=!0,z.current.stop(Ve,()=>{z.current.start(Ve)})),Ve.target===Ve.currentTarget&&Z()&&Ve.key===" "&&Ve.preventDefault(),S&&S(Ve),Ve.target===Ve.currentTarget&&Z()&&Ve.key==="Enter"&&!s&&(Ve.preventDefault(),w&&w(Ve))}),ce=oa(Ve=>{v&&Ve.key===" "&&z.current&&le&&!Ve.defaultPrevented&&(ie.current=!1,z.current.stop(Ve,()=>{z.current.pulsate(Ve)})),P&&P(Ve),w&&Ve.target===Ve.currentTarget&&Z()&&Ve.key===" "&&!Ve.defaultPrevented&&w(Ve)});let Ee=c;Ee==="button"&&(H.href||H.to)&&(Ee=m);const Ae={};Ee==="button"?(Ae.type=V===void 0?"button":V,Ae.disabled=s):(!H.href&&!H.to&&(Ae.role="button"),s&&(Ae["aria-disabled"]=s));const ft=Tr(r,we,W),De=I({},n,{centerRipple:o,component:c,disabled:s,disableRipple:f,disableTouchRipple:h,focusRipple:v,tabIndex:F,focusVisible:le}),Ze=BEe(De);return E.jsxs(zEe,I({as:Ee,className:de(Ze.root,l),ownerState:De,onBlur:U,onClick:w,onContextMenu:ve,onFocus:K,onKeyDown:ue,onKeyUp:ce,onMouseDown:Ie,onMouseLeave:je,onMouseUp:ye,onDragLeave:$e,onTouchEnd:st,onTouchMove:Xe,onTouchStart:Le,ref:ft,tabIndex:s?-1:F,type:V},Ae,H,{children:[i,xe?E.jsx(FEe,I({ref:q,center:o},L)):null]}))});function UEe(e){return et("MuiIconButton",e)}const VEe=ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),WEe=["edge","children","className","color","disabled","disableFocusRipple","size"],HEe=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${Pe(n)}`,a&&`edge${Pe(a)}`,`size${Pe(o)}`]};return tt(i,UEe,t)},qEe=te(ks,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Pe(r.color)}`],r.edge&&t[`edge${Pe(r.edge)}`],t[`size${Pe(r.size)}`]]}})(({theme:e,ownerState:t})=>I({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})`:nr(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 I({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&I({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":I({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(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)},{[`&.${VEe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Br=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:l="default",disabled:c=!1,disableFocusRipple:s=!1,size:f="medium"}=n,h=Re(n,WEe),v=I({},n,{edge:a,color:l,disabled:c,disableFocusRipple:s,size:f}),m=HEe(v);return E.jsx(qEe,I({className:de(m.root,i),centerRipple:!0,focusRipple:!s,disabled:c,ref:r},h,{ownerState:v,children:o}))});function GEe(e){return et("MuiTypography",e)}ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const KEe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],QEe=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,l={root:["root",o,e.align!=="inherit"&&`align${Pe(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return tt(l,GEe,i)},XEe=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Pe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>I({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})),NL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},YEe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},JEe=e=>YEe[e]||e,$t=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTypography"}),a=JEe(n.color),o=t1(I({},n,{color:a})),{align:i="inherit",className:l,component:c,gutterBottom:s=!1,noWrap:f=!1,paragraph:h=!1,variant:v="body1",variantMapping:m=NL}=o,b=Re(o,KEe),w=I({},o,{align:i,color:a,className:l,component:c,gutterBottom:s,noWrap:f,paragraph:h,variant:v,variantMapping:m}),O=c||(h?"p":m[v]||NL[v])||"span",_=QEe(w);return E.jsx(XEe,I({as:O,ref:r,ownerState:w,className:de(_.root,l)},b))});function ZEe(e){return et("MuiAppBar",e)}ot("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const eCe=["className","color","enableColorOnDark","position"],tCe=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${Pe(t)}`,`position${Pe(r)}`]};return tt(a,ZEe,n)},Ig=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,rCe=te(tu,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Pe(r.position)}`],t[`color${Pe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return I({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&&I({},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"&&I({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&I({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ig(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ig(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:Ig(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ig(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),nCe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:l="fixed"}=n,c=Re(n,eCe),s=I({},n,{color:o,position:l,enableColorOnDark:i}),f=tCe(s);return E.jsx(rCe,I({square:!0,component:"header",ownerState:s,elevation:4,className:de(f.root,a,l==="fixed"&&"mui-fixed"),ref:r},c))});var R2={};Object.defineProperty(R2,"__esModule",{value:!0});var O9=R2.default=void 0,aCe=iCe(d),oCe=w9;function P9(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(P9=function(n){return n?r:t})(e)}function iCe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=P9(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function sCe(e){return Object.keys(e).length===0}function lCe(e=null){const t=aCe.useContext(oCe.ThemeContext);return!t||sCe(t)?e:t}O9=R2.default=lCe;var Oa="top",To="bottom",Io="right",Pa="left",$2="auto",am=[Oa,To,Io,Pa],Tf="start",gv="end",uCe="clippingParents",R9="viewport",qp="popper",cCe="reference",BL=am.reduce(function(e,t){return e.concat([t+"-"+Tf,t+"-"+gv])},[]),$9=[].concat(am,[$2]).reduce(function(e,t){return e.concat([t,t+"-"+Tf,t+"-"+gv])},[]),dCe="beforeRead",fCe="read",pCe="afterRead",hCe="beforeMain",vCe="main",mCe="afterMain",gCe="beforeWrite",yCe="write",bCe="afterWrite",_Ce=[dCe,fCe,pCe,hCe,vCe,mCe,gCe,yCe,bCe];function Ii(e){return e?(e.nodeName||"").toLowerCase():null}function Ga(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _c(e){var t=Ga(e).Element;return e instanceof t||e instanceof Element}function Co(e){var t=Ga(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function k2(e){if(typeof ShadowRoot>"u")return!1;var t=Ga(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xCe(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Co(o)||!Ii(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function wCe(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(c,s){return c[s]="",c},{});!Co(a)||!Ii(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(c){a.removeAttribute(c)}))})}}const SCe={name:"applyStyles",enabled:!0,phase:"write",fn:xCe,effect:wCe,requires:["computeStyles"]};function ki(e){return e.split("-")[0]}var oc=Math.max,Vb=Math.min,If=Math.round;function gC(){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 k9(){return!/^((?!chrome|android).)*safari/i.test(gC())}function Af(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Co(e)&&(a=e.offsetWidth>0&&If(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&If(n.height)/e.offsetHeight||1);var i=_c(e)?Ga(e):window,l=i.visualViewport,c=!k9()&&r,s=(n.left+(c&&l?l.offsetLeft:0))/a,f=(n.top+(c&&l?l.offsetTop:0))/o,h=n.width/a,v=n.height/o;return{width:h,height:v,top:f,right:s+h,bottom:f+v,left:s,x:s,y:f}}function j2(e){var t=Af(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 j9(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&k2(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ws(e){return Ga(e).getComputedStyle(e)}function ECe(e){return["table","td","th"].indexOf(Ii(e))>=0}function ru(e){return((_c(e)?e.ownerDocument:e.document)||window.document).documentElement}function l1(e){return Ii(e)==="html"?e:e.assignedSlot||e.parentNode||(k2(e)?e.host:null)||ru(e)}function zL(e){return!Co(e)||ws(e).position==="fixed"?null:e.offsetParent}function CCe(e){var t=/firefox/i.test(gC()),r=/Trident/i.test(gC());if(r&&Co(e)){var n=ws(e);if(n.position==="fixed")return null}var a=l1(e);for(k2(a)&&(a=a.host);Co(a)&&["html","body"].indexOf(Ii(a))<0;){var o=ws(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function om(e){for(var t=Ga(e),r=zL(e);r&&ECe(r)&&ws(r).position==="static";)r=zL(r);return r&&(Ii(r)==="html"||Ii(r)==="body"&&ws(r).position==="static")?t:r||CCe(e)||t}function T2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $h(e,t,r){return oc(e,Vb(t,r))}function OCe(e,t,r){var n=$h(e,t,r);return n>r?r:n}function T9(){return{top:0,right:0,bottom:0,left:0}}function I9(e){return Object.assign({},T9(),e)}function A9(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var PCe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,I9(typeof t!="number"?t:A9(t,am))};function RCe(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,l=ki(r.placement),c=T2(l),s=[Pa,Io].indexOf(l)>=0,f=s?"height":"width";if(!(!o||!i)){var h=PCe(a.padding,r),v=j2(o),m=c==="y"?Oa:Pa,b=c==="y"?To:Io,w=r.rects.reference[f]+r.rects.reference[c]-i[c]-r.rects.popper[f],O=i[c]-r.rects.reference[c],_=om(o),y=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,x=w/2-O/2,S=h[m],P=y-v[f]-h[b],C=y/2-v[f]/2+x,$=$h(S,C,P),R=c;r.modifiersData[n]=(t={},t[R]=$,t.centerOffset=$-C,t)}}function $Ce(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||j9(t.elements.popper,a)&&(t.elements.arrow=a))}const kCe={name:"arrow",enabled:!0,phase:"main",fn:RCe,effect:$Ce,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mf(e){return e.split("-")[1]}var jCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function TCe(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:If(r*a)/a||0,y:If(n*a)/a||0}}function UL(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,s=e.adaptive,f=e.roundOffsets,h=e.isFixed,v=i.x,m=v===void 0?0:v,b=i.y,w=b===void 0?0:b,O=typeof f=="function"?f({x:m,y:w}):{x:m,y:w};m=O.x,w=O.y;var _=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),x=Pa,S=Oa,P=window;if(s){var C=om(r),$="clientHeight",R="clientWidth";if(C===Ga(r)&&(C=ru(r),ws(C).position!=="static"&&l==="absolute"&&($="scrollHeight",R="scrollWidth")),C=C,a===Oa||(a===Pa||a===Io)&&o===gv){S=To;var k=h&&C===P&&P.visualViewport?P.visualViewport.height:C[$];w-=k-n.height,w*=c?1:-1}if(a===Pa||(a===Oa||a===To)&&o===gv){x=Io;var T=h&&C===P&&P.visualViewport?P.visualViewport.width:C[R];m-=T-n.width,m*=c?1:-1}}var M=Object.assign({position:l},s&&jCe),F=f===!0?TCe({x:m,y:w},Ga(r)):{x:m,y:w};if(m=F.x,w=F.y,c){var L;return Object.assign({},M,(L={},L[S]=y?"0":"",L[x]=_?"0":"",L.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+w+"px)":"translate3d("+m+"px, "+w+"px, 0)",L))}return Object.assign({},M,(t={},t[S]=y?w+"px":"",t[x]=_?m+"px":"",t.transform="",t))}function ICe(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,l=r.roundOffsets,c=l===void 0?!0:l,s={placement:ki(t.placement),variation:Mf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,UL(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,UL(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ACe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ICe,data:{}};var Ag={passive:!0};function MCe(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,l=i===void 0?!0:i,c=Ga(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&s.forEach(function(f){f.addEventListener("scroll",r.update,Ag)}),l&&c.addEventListener("resize",r.update,Ag),function(){o&&s.forEach(function(f){f.removeEventListener("scroll",r.update,Ag)}),l&&c.removeEventListener("resize",r.update,Ag)}}const FCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MCe,data:{}};var LCe={left:"right",right:"left",bottom:"top",top:"bottom"};function Sy(e){return e.replace(/left|right|bottom|top/g,function(t){return LCe[t]})}var DCe={start:"end",end:"start"};function VL(e){return e.replace(/start|end/g,function(t){return DCe[t]})}function I2(e){var t=Ga(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function A2(e){return Af(ru(e)).left+I2(e).scrollLeft}function NCe(e,t){var r=Ga(e),n=ru(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,c=0;if(a){o=a.width,i=a.height;var s=k9();(s||!s&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:o,height:i,x:l+A2(e),y:c}}function BCe(e){var t,r=ru(e),n=I2(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=oc(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=oc(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+A2(e),c=-n.scrollTop;return ws(a||r).direction==="rtl"&&(l+=oc(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:c}}function M2(e){var t=ws(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function M9(e){return["html","body","#document"].indexOf(Ii(e))>=0?e.ownerDocument.body:Co(e)&&M2(e)?e:M9(l1(e))}function kh(e,t){var r;t===void 0&&(t=[]);var n=M9(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Ga(n),i=a?[o].concat(o.visualViewport||[],M2(n)?n:[]):n,l=t.concat(i);return a?l:l.concat(kh(l1(i)))}function yC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zCe(e,t){var r=Af(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 WL(e,t,r){return t===R9?yC(NCe(e,r)):_c(t)?zCe(t,r):yC(BCe(ru(e)))}function UCe(e){var t=kh(l1(e)),r=["absolute","fixed"].indexOf(ws(e).position)>=0,n=r&&Co(e)?om(e):e;return _c(n)?t.filter(function(a){return _c(a)&&j9(a,n)&&Ii(a)!=="body"}):[]}function VCe(e,t,r,n){var a=t==="clippingParents"?UCe(e):[].concat(t),o=[].concat(a,[r]),i=o[0],l=o.reduce(function(c,s){var f=WL(e,s,n);return c.top=oc(f.top,c.top),c.right=Vb(f.right,c.right),c.bottom=Vb(f.bottom,c.bottom),c.left=oc(f.left,c.left),c},WL(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function F9(e){var t=e.reference,r=e.element,n=e.placement,a=n?ki(n):null,o=n?Mf(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(a){case Oa:c={x:i,y:t.y-r.height};break;case To:c={x:i,y:t.y+t.height};break;case Io:c={x:t.x+t.width,y:l};break;case Pa:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var s=a?T2(a):null;if(s!=null){var f=s==="y"?"height":"width";switch(o){case Tf:c[s]=c[s]-(t[f]/2-r[f]/2);break;case gv:c[s]=c[s]+(t[f]/2-r[f]/2);break}}return c}function yv(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,l=r.boundary,c=l===void 0?uCe:l,s=r.rootBoundary,f=s===void 0?R9:s,h=r.elementContext,v=h===void 0?qp:h,m=r.altBoundary,b=m===void 0?!1:m,w=r.padding,O=w===void 0?0:w,_=I9(typeof O!="number"?O:A9(O,am)),y=v===qp?cCe:qp,x=e.rects.popper,S=e.elements[b?y:v],P=VCe(_c(S)?S:S.contextElement||ru(e.elements.popper),c,f,i),C=Af(e.elements.reference),$=F9({reference:C,element:x,strategy:"absolute",placement:a}),R=yC(Object.assign({},x,$)),k=v===qp?R:C,T={top:P.top-k.top+_.top,bottom:k.bottom-P.bottom+_.bottom,left:P.left-k.left+_.left,right:k.right-P.right+_.right},M=e.modifiersData.offset;if(v===qp&&M){var F=M[a];Object.keys(T).forEach(function(L){var B=[Io,To].indexOf(L)>=0?1:-1,V=[Oa,To].indexOf(L)>=0?"y":"x";T[L]+=F[V]*B})}return T}function WCe(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,s=c===void 0?$9:c,f=Mf(n),h=f?l?BL:BL.filter(function(b){return Mf(b)===f}):am,v=h.filter(function(b){return s.indexOf(b)>=0});v.length===0&&(v=h);var m=v.reduce(function(b,w){return b[w]=yv(e,{placement:w,boundary:a,rootBoundary:o,padding:i})[ki(w)],b},{});return Object.keys(m).sort(function(b,w){return m[b]-m[w]})}function HCe(e){if(ki(e)===$2)return[];var t=Sy(e);return[VL(e),t,VL(t)]}function qCe(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,l=i===void 0?!0:i,c=r.fallbackPlacements,s=r.padding,f=r.boundary,h=r.rootBoundary,v=r.altBoundary,m=r.flipVariations,b=m===void 0?!0:m,w=r.allowedAutoPlacements,O=t.options.placement,_=ki(O),y=_===O,x=c||(y||!b?[Sy(O)]:HCe(O)),S=[O].concat(x).reduce(function(le,ge){return le.concat(ki(ge)===$2?WCe(t,{placement:ge,boundary:f,rootBoundary:h,padding:s,flipVariations:b,allowedAutoPlacements:w}):ge)},[]),P=t.rects.reference,C=t.rects.popper,$=new Map,R=!0,k=S[0],T=0;T=0,V=B?"width":"height",H=yv(t,{placement:M,boundary:f,rootBoundary:h,altBoundary:v,padding:s}),W=B?L?Io:Pa:L?To:Oa;P[V]>C[V]&&(W=Sy(W));var z=Sy(W),q=[];if(o&&q.push(H[F]<=0),l&&q.push(H[W]<=0,H[z]<=0),q.every(function(le){return le})){k=M,R=!1;break}$.set(M,q)}if(R)for(var ee=b?3:1,oe=function(ge){var pe=S.find(function(me){var xe=$.get(me);if(xe)return xe.slice(0,ge).every(function(ne){return ne})});if(pe)return k=pe,"break"},J=ee;J>0;J--){var we=oe(J);if(we==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const GCe={name:"flip",enabled:!0,phase:"main",fn:qCe,requiresIfExists:["offset"],data:{_skip:!1}};function HL(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 qL(e){return[Oa,Io,To,Pa].some(function(t){return e[t]>=0})}function KCe(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=yv(t,{elementContext:"reference"}),l=yv(t,{altBoundary:!0}),c=HL(i,n),s=HL(l,a,o),f=qL(c),h=qL(s);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const QCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KCe};function XCe(e,t,r){var n=ki(e),a=[Pa,Oa].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Pa,Io].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function YCe(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=$9.reduce(function(f,h){return f[h]=XCe(h,t.rects,o),f},{}),l=i[t.placement],c=l.x,s=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=i}const JCe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:YCe};function ZCe(e){var t=e.state,r=e.name;t.modifiersData[r]=F9({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const eOe={name:"popperOffsets",enabled:!0,phase:"read",fn:ZCe,data:{}};function tOe(e){return e==="x"?"y":"x"}function rOe(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,l=i===void 0?!1:i,c=r.boundary,s=r.rootBoundary,f=r.altBoundary,h=r.padding,v=r.tether,m=v===void 0?!0:v,b=r.tetherOffset,w=b===void 0?0:b,O=yv(t,{boundary:c,rootBoundary:s,padding:h,altBoundary:f}),_=ki(t.placement),y=Mf(t.placement),x=!y,S=T2(_),P=tOe(S),C=t.modifiersData.popperOffsets,$=t.rects.reference,R=t.rects.popper,k=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,T=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(C){if(o){var L,B=S==="y"?Oa:Pa,V=S==="y"?To:Io,H=S==="y"?"height":"width",W=C[S],z=W+O[B],q=W-O[V],ee=m?-R[H]/2:0,oe=y===Tf?$[H]:R[H],J=y===Tf?-R[H]:-$[H],we=t.elements.arrow,le=m&&we?j2(we):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:T9(),pe=ge[B],me=ge[V],xe=$h(0,$[H],le[H]),ne=x?$[H]/2-ee-xe-pe-T.mainAxis:oe-xe-pe-T.mainAxis,Ie=x?-$[H]/2+ee+xe+me+T.mainAxis:J+xe+me+T.mainAxis,ve=t.elements.arrow&&om(t.elements.arrow),$e=ve?S==="y"?ve.clientTop||0:ve.clientLeft||0:0,ye=(L=M==null?void 0:M[S])!=null?L:0,je=W+ne-ye-$e,Le=W+Ie-ye,st=$h(m?Vb(z,je):z,W,m?oc(q,Le):q);C[S]=st,F[S]=st-W}if(l){var Xe,U=S==="x"?Oa:Pa,K=S==="x"?To:Io,Z=C[P],ie=P==="y"?"height":"width",ue=Z+O[U],ce=Z-O[K],Ee=[Oa,Pa].indexOf(_)!==-1,Ae=(Xe=M==null?void 0:M[P])!=null?Xe:0,ft=Ee?ue:Z-$[ie]-R[ie]-Ae+T.altAxis,De=Ee?Z+$[ie]+R[ie]-Ae-T.altAxis:ce,Ze=m&&Ee?OCe(ft,Z,De):$h(m?ft:ue,Z,m?De:ce);C[P]=Ze,F[P]=Ze-Z}t.modifiersData[n]=F}}const nOe={name:"preventOverflow",enabled:!0,phase:"main",fn:rOe,requiresIfExists:["offset"]};function aOe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function oOe(e){return e===Ga(e)||!Co(e)?I2(e):aOe(e)}function iOe(e){var t=e.getBoundingClientRect(),r=If(t.width)/e.offsetWidth||1,n=If(t.height)/e.offsetHeight||1;return r!==1||n!==1}function sOe(e,t,r){r===void 0&&(r=!1);var n=Co(t),a=Co(t)&&iOe(t),o=ru(t),i=Af(e,a,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Ii(t)!=="body"||M2(o))&&(l=oOe(t)),Co(t)?(c=Af(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=A2(o))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function lOe(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&a(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function uOe(e){var t=lOe(e);return _Ce.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function cOe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function dOe(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var GL={placement:"bottom",modifiers:[],strategy:"absolute"};function KL(){for(var e=arguments.length,t=new Array(e),r=0;r{o||l(vOe(a)||document.body)},[a,o]),qa(()=>{if(i&&!o)return Db(r,i),()=>{Db(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const s={ref:c};return d.cloneElement(n,s)}return E.jsx(d.Fragment,{children:n})}return E.jsx(d.Fragment,{children:i&&Fv.createPortal(n,i)})});function mOe(e){return et("MuiPopper",e)}ot("MuiPopper",["root"]);const gOe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],yOe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function bOe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function bC(e){return typeof e=="function"?e():e}function _Oe(e){return e.nodeType!==void 0}const xOe=e=>{const{classes:t}=e;return tt({root:["root"]},mOe,t)},wOe={},SOe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:l,modifiers:c,open:s,placement:f,popperOptions:h,popperRef:v,slotProps:m={},slots:b={},TransitionProps:w}=t,O=Re(t,gOe),_=d.useRef(null),y=Tr(_,r),x=d.useRef(null),S=Tr(x,v),P=d.useRef(S);qa(()=>{P.current=S},[S]),d.useImperativeHandle(v,()=>x.current,[]);const C=bOe(f,i),[$,R]=d.useState(C),[k,T]=d.useState(bC(a));d.useEffect(()=>{x.current&&x.current.forceUpdate()}),d.useEffect(()=>{a&&T(bC(a))},[a]),qa(()=>{if(!k||!s)return;const V=z=>{R(z.placement)};let H=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];c!=null&&(H=H.concat(c)),h&&h.modifiers!=null&&(H=H.concat(h.modifiers));const W=hOe(k,_.current,I({placement:C},h,{modifiers:H}));return P.current(W),()=>{W.destroy(),P.current(null)}},[k,l,c,s,h,C]);const M={placement:$};w!==null&&(M.TransitionProps=w);const F=xOe(t),L=(n=b.root)!=null?n:"div",B=ko({elementType:L,externalSlotProps:m.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:F.root});return E.jsx(L,I({},B,{children:typeof o=="function"?o(M):o}))}),EOe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:s,open:f,placement:h="bottom",popperOptions:v=wOe,popperRef:m,style:b,transition:w=!1,slotProps:O={},slots:_={}}=t,y=Re(t,yOe),[x,S]=d.useState(!0),P=()=>{S(!1)},C=()=>{S(!0)};if(!c&&!f&&(!w||x))return null;let $;if(o)$=o;else if(n){const T=bC(n);$=T&&_Oe(T)?tn(T).body:tn(null).body}const R=!f&&c&&(!w||x)?"none":void 0,k=w?{in:f,onEnter:P,onExited:C}:void 0;return E.jsx(L9,{disablePortal:l,container:$,children:E.jsx(SOe,I({anchorEl:n,direction:i,disablePortal:l,modifiers:s,ref:r,open:w?!x:f,placement:h,popperOptions:v,popperRef:m,slotProps:O,slots:_},y,{style:I({position:"fixed",top:0,left:0,display:R},b),TransitionProps:k,children:a}))})}),COe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],OOe=te(EOe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D9=d.forwardRef(function(t,r){var n;const a=O9(),o=rt({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:s,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:b,placement:w,popperOptions:O,popperRef:_,transition:y,slots:x,slotProps:S}=o,P=Re(o,COe),C=(n=x==null?void 0:x.root)!=null?n:c==null?void 0:c.Root,$=I({anchorEl:i,container:f,disablePortal:h,keepMounted:v,modifiers:m,open:b,placement:w,popperOptions:O,popperRef:_,transition:y},P);return E.jsx(OOe,I({as:l,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:S??s},$,{ref:r}))}),POe=["onChange","maxRows","minRows","style","value"];function Mg(e){return parseInt(e,10)||0}const ROe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $Oe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const kOe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:l}=t,c=Re(t,POe),{current:s}=d.useRef(l!=null),f=d.useRef(null),h=Tr(r,f),v=d.useRef(null),m=d.useRef(null),b=d.useCallback(()=>{const _=f.current,x=$o(_).getComputedStyle(_);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=m.current;S.style.width=x.width,S.value=_.value||t.placeholder||"x",S.value.slice(-1)===` +`&&(S.value+=" ");const P=x.boxSizing,C=Mg(x.paddingBottom)+Mg(x.paddingTop),$=Mg(x.borderBottomWidth)+Mg(x.borderTopWidth),R=S.scrollHeight;S.value="x";const k=S.scrollHeight;let T=R;o&&(T=Math.max(Number(o)*k,T)),a&&(T=Math.min(Number(a)*k,T)),T=Math.max(T,k);const M=T+(P==="border-box"?C+$:0),F=Math.abs(T-R)<=1;return{outerHeightStyle:M,overflowing:F}},[a,o,t.placeholder]),w=d.useCallback(()=>{const _=b();if($Oe(_))return;const y=_.outerHeightStyle,x=f.current;v.current!==y&&(v.current=y,x.style.height=`${y}px`),x.style.overflow=_.overflowing?"hidden":""},[b]);qa(()=>{const _=()=>{w()};let y;const x=op(_),S=f.current,P=$o(S);P.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(_),C.observe(S)),()=>{x.clear(),cancelAnimationFrame(y),P.removeEventListener("resize",x),C&&C.disconnect()}},[b,w]),qa(()=>{w()});const O=_=>{s||w(),n&&n(_)};return E.jsxs(d.Fragment,{children:[E.jsx("textarea",I({value:l,onChange:O,ref:h,rows:o,style:i},c)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:I({},ROe.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function js({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const u1=d.createContext(void 0);function si(){return d.useContext(u1)}function N9(e){return E.jsx(Hxe,I({},e,{defaultTheme:i1,themeId:gc}))}function QL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Wb(e,t=!1){return e&&(QL(e.value)&&e.value!==""||t&&QL(e.defaultValue)&&e.defaultValue!=="")}function jOe(e){return e.startAdornment}function TOe(e){return et("MuiInputBase",e)}const Ff=ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),IOe=["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"],c1=(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${Pe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},d1=(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]},AOe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:l,fullWidth:c,hiddenLabel:s,multiline:f,readOnly:h,size:v,startAdornment:m,type:b}=e,w={root:["root",`color${Pe(r)}`,n&&"disabled",a&&"error",c&&"fullWidth",i&&"focused",l&&"formControl",v&&v!=="medium"&&`size${Pe(v)}`,f&&"multiline",m&&"adornedStart",o&&"adornedEnd",s&&"hiddenLabel",h&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",v==="small"&&"inputSizeSmall",s&&"inputHiddenLabel",m&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return tt(w,TOe,t)},f1=te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:c1})(({theme:e,ownerState:t})=>I({},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",[`&.${Ff.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&I({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),p1=te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=I({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return I({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] + .${Ff.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ff.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"})}),MOe=E.jsx(N9,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),h1=d.forwardRef(function(t,r){var n;const a=rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:l,className:c,components:s={},componentsProps:f={},defaultValue:h,disabled:v,disableInjectingGlobalStyles:m,endAdornment:b,fullWidth:w=!1,id:O,inputComponent:_="input",inputProps:y={},inputRef:x,maxRows:S,minRows:P,multiline:C=!1,name:$,onBlur:R,onChange:k,onClick:T,onFocus:M,onKeyDown:F,onKeyUp:L,placeholder:B,readOnly:V,renderSuffix:H,rows:W,slotProps:z={},slots:q={},startAdornment:ee,type:oe="text",value:J}=a,we=Re(a,IOe),le=y.value!=null?y.value:J,{current:ge}=d.useRef(le!=null),pe=d.useRef(),me=d.useCallback(Ze=>{},[]),xe=Tr(pe,x,y.ref,me),[ne,Ie]=d.useState(!1),ve=si(),$e=js({props:a,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=ve?ve.focused:ne,d.useEffect(()=>{!ve&&v&&ne&&(Ie(!1),R&&R())},[ve,v,ne,R]);const ye=ve&&ve.onFilled,je=ve&&ve.onEmpty,Le=d.useCallback(Ze=>{Wb(Ze)?ye&&ye():je&&je()},[ye,je]);qa(()=>{ge&&Le({value:le})},[le,Le,ge]);const st=Ze=>{if($e.disabled){Ze.stopPropagation();return}M&&M(Ze),y.onFocus&&y.onFocus(Ze),ve&&ve.onFocus?ve.onFocus(Ze):Ie(!0)},Xe=Ze=>{R&&R(Ze),y.onBlur&&y.onBlur(Ze),ve&&ve.onBlur?ve.onBlur(Ze):Ie(!1)},U=(Ze,...Ve)=>{if(!ge){const _t=Ze.target||pe.current;if(_t==null)throw new Error(xs(1));Le({value:_t.value})}y.onChange&&y.onChange(Ze,...Ve),k&&k(Ze,...Ve)};d.useEffect(()=>{Le(pe.current)},[]);const K=Ze=>{pe.current&&Ze.currentTarget===Ze.target&&pe.current.focus(),T&&T(Ze)};let Z=_,ie=y;C&&Z==="input"&&(W?ie=I({type:void 0,minRows:W,maxRows:W},ie):ie=I({type:void 0,maxRows:S,minRows:P},ie),Z=kOe);const ue=Ze=>{Le(Ze.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};d.useEffect(()=>{ve&&ve.setAdornedStart(!!ee)},[ve,ee]);const ce=I({},a,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:ve,fullWidth:w,hiddenLabel:$e.hiddenLabel,multiline:C,size:$e.size,startAdornment:ee,type:oe}),Ee=AOe(ce),Ae=q.root||s.Root||f1,ft=z.root||f.root||{},De=q.input||s.Input||p1;return ie=I({},ie,(n=z.input)!=null?n:f.input),E.jsxs(d.Fragment,{children:[!m&&MOe,E.jsxs(Ae,I({},ft,!mv(Ae)&&{ownerState:I({},ce,ft.ownerState)},{ref:r,onClick:K},we,{className:de(Ee.root,ft.className,c,V&&"MuiInputBase-readOnly"),children:[ee,E.jsx(u1.Provider,{value:null,children:E.jsx(De,I({ownerState:ce,"aria-invalid":$e.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:h,disabled:$e.disabled,id:O,onAnimationStart:ue,name:$,placeholder:B,readOnly:V,required:$e.required,rows:W,value:le,onKeyDown:F,onKeyUp:L,type:oe},ie,!mv(De)&&{as:Z,ownerState:I({},ce,ie.ownerState)},{ref:xe,className:de(Ee.input,ie.className,V&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:U,onFocus:st}))}),b,H?H(I({},$e,{startAdornment:ee})):null]}))]})});function FOe(e){return et("MuiInput",e)}const Gp=I({},Ff,ot("MuiInput",["root","underline","input"]));function LOe(e){return et("MuiOutlinedInput",e)}const Gs=I({},Ff,ot("MuiOutlinedInput",["root","notchedOutline","input"]));function DOe(e){return et("MuiFilledInput",e)}const yu=I({},Ff,ot("MuiFilledInput",["root","underline","input"])),B9=Za(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),NOe=Za(E.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 BOe(e){return et("MuiAvatar",e)}ot("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const zOe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],UOe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return tt({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},BOe,t)},VOe=te("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:I({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:I({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),WOe=te("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),HOe=te(NOe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function qOe({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=d.useState(!1);return d.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const l=new Image;return l.onload=()=>{i&&o("loaded")},l.onerror=()=>{i&&o("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const bv=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:l="div",slots:c={},slotProps:s={},imgProps:f,sizes:h,src:v,srcSet:m,variant:b="circular"}=n,w=Re(n,zOe);let O=null;const _=qOe(I({},f,{src:v,srcSet:m})),y=v||m,x=y&&_!=="error",S=I({},n,{colorDefault:!x,component:l,variant:b}),P=UOe(S),[C,$]=PEe("img",{className:P.img,elementType:WOe,externalForwardedProps:{slots:c,slotProps:{img:I({},f,s.img)}},additionalProps:{alt:a,src:v,srcSet:m,sizes:h},ownerState:S});return x?O=E.jsx(C,I({},$)):o||o===0?O=o:y&&a?O=a[0]:O=E.jsx(HOe,{ownerState:S,className:P.fallback}),E.jsx(VOe,I({as:l,ownerState:S,className:de(P.root,i),ref:r},w,{children:O}))}),GOe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],KOe={entering:{opacity:1},entered:{opacity:1}},z9=d.forwardRef(function(t,r){const n=Ja(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:l,easing:c,in:s,onEnter:f,onEntered:h,onEntering:v,onExit:m,onExited:b,onExiting:w,style:O,timeout:_=a,TransitionComponent:y=ii}=t,x=Re(t,GOe),S=d.useRef(null),P=Tr(S,l.ref,r),C=B=>V=>{if(B){const H=S.current;V===void 0?B(H):B(H,V)}},$=C(v),R=C((B,V)=>{P2(B);const H=jf({style:O,timeout:_,easing:c},{mode:"enter"});B.style.webkitTransition=n.transitions.create("opacity",H),B.style.transition=n.transitions.create("opacity",H),f&&f(B,V)}),k=C(h),T=C(w),M=C(B=>{const V=jf({style:O,timeout:_,easing:c},{mode:"exit"});B.style.webkitTransition=n.transitions.create("opacity",V),B.style.transition=n.transitions.create("opacity",V),m&&m(B)}),F=C(b),L=B=>{o&&o(S.current,B)};return E.jsx(y,I({appear:i,in:s,nodeRef:S,onEnter:R,onEntered:k,onEntering:$,onExit:M,onExited:F,onExiting:T,addEndListener:L,timeout:_},x,{children:(B,V)=>d.cloneElement(l,I({style:I({opacity:0,visibility:B==="exited"&&!s?"hidden":void 0},KOe[B],O,l.props.style),ref:P},V))}))});function QOe(e){return et("MuiBackdrop",e)}ot("MuiBackdrop",["root","invisible"]);const XOe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],YOe=e=>{const{classes:t,invisible:r}=e;return tt({root:["root",r&&"invisible"]},QOe,t)},JOe=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>I({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"})),U9=d.forwardRef(function(t,r){var n,a,o;const i=rt({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:s="div",components:f={},componentsProps:h={},invisible:v=!1,open:m,slotProps:b={},slots:w={},TransitionComponent:O=z9,transitionDuration:_}=i,y=Re(i,XOe),x=I({},i,{component:s,invisible:v}),S=YOe(x),P=(n=b.root)!=null?n:h.root;return E.jsx(O,I({in:m,timeout:_},y,{children:E.jsx(JOe,I({"aria-hidden":!0},P,{as:(a=(o=w.root)!=null?o:f.Root)!=null?a:s,className:de(S.root,c,P==null?void 0:P.className),ownerState:I({},x,P==null?void 0:P.ownerState),classes:S,ref:r,children:l}))}))}),ZOe=ot("MuiBox",["root"]),ePe=zb(),aa=Yxe({themeId:gc,defaultTheme:ePe,defaultClassName:ZOe.root,generateClassName:b2.generate});function tPe(e){return et("MuiButton",e)}const Fg=ot("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),rPe=d.createContext({}),nPe=d.createContext(void 0),aPe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],oPe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,l={root:["root",o,`${o}${Pe(t)}`,`size${Pe(a)}`,`${o}Size${Pe(a)}`,`color${Pe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Pe(a)}`],endIcon:["icon","endIcon",`iconSize${Pe(a)}`]},c=tt(l,tPe,i);return I({},i,c)},V9=e=>I({},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}}),iPe=te(ks,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Pe(r.color)}`],t[`size${Pe(r.size)}`],t[`${r.variant}Size${Pe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return I({},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":I({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(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})`:nr(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})`:nr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Fg.focusVisible}`]:I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Fg.disabled}`]:I({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 ${nr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fg.disabled}`]:{boxShadow:"none"}}),sPe=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Pe(r.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},V9(e))),lPe=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Pe(r.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},V9(e))),nn=d.forwardRef(function(t,r){const n=d.useContext(rPe),a=d.useContext(nPe),o=vv(n,t),i=rt({props:o,name:"MuiButton"}),{children:l,color:c="primary",component:s="button",className:f,disabled:h=!1,disableElevation:v=!1,disableFocusRipple:m=!1,endIcon:b,focusVisibleClassName:w,fullWidth:O=!1,size:_="medium",startIcon:y,type:x,variant:S="text"}=i,P=Re(i,aPe),C=I({},i,{color:c,component:s,disabled:h,disableElevation:v,disableFocusRipple:m,fullWidth:O,size:_,type:x,variant:S}),$=oPe(C),R=y&&E.jsx(sPe,{className:$.startIcon,ownerState:C,children:y}),k=b&&E.jsx(lPe,{className:$.endIcon,ownerState:C,children:b}),T=a||"";return E.jsxs(iPe,I({ownerState:C,className:de(n.className,$.root,f,T),component:s,disabled:h,focusRipple:!m,focusVisibleClassName:de($.focusVisible,w),ref:r,type:x},P,{classes:$,children:[R,l,k]}))});function uPe(e){return et("MuiCard",e)}ot("MuiCard",["root"]);const cPe=["className","raised"],dPe=e=>{const{classes:t}=e;return tt({root:["root"]},uPe,t)},fPe=te(tu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),$c=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Re(n,cPe),l=I({},n,{raised:o}),c=dPe(l);return E.jsx(fPe,I({className:de(c.root,a),elevation:o?8:void 0,ref:r,ownerState:l},i))});function pPe(e){return et("MuiCardActions",e)}ot("MuiCardActions",["root","spacing"]);const hPe=["disableSpacing","className"],vPe=e=>{const{classes:t,disableSpacing:r}=e;return tt({root:["root",!r&&"spacing"]},pPe,t)},mPe=te("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>I({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),W9=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardActions"}),{disableSpacing:a=!1,className:o}=n,i=Re(n,hPe),l=I({},n,{disableSpacing:a}),c=vPe(l);return E.jsx(mPe,I({className:de(c.root,o),ownerState:l,ref:r},i))});function gPe(e){return et("MuiCardContent",e)}ot("MuiCardContent",["root"]);const yPe=["className","component"],bPe=e=>{const{classes:t}=e;return tt({root:["root"]},gPe,t)},_Pe=te("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),vo=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Re(n,yPe),l=I({},n,{component:o}),c=bPe(l);return E.jsx(_Pe,I({as:o,className:de(c.root,a),ownerState:l,ref:r},i))});function xPe(e){return et("MuiCardHeader",e)}const XL=ot("MuiCardHeader",["root","avatar","action","content","title","subheader"]),wPe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],SPe=e=>{const{classes:t}=e;return tt({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},xPe,t)},EPe=te("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>I({[`& .${XL.title}`]:t.title,[`& .${XL.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),CPe=te("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),OPe=te("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),PPe=te("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),bu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:l="div",disableTypography:c=!1,subheader:s,subheaderTypographyProps:f,title:h,titleTypographyProps:v}=n,m=Re(n,wPe),b=I({},n,{component:l,disableTypography:c}),w=SPe(b);let O=h;O!=null&&O.type!==$t&&!c&&(O=E.jsx($t,I({variant:o?"body2":"h5",className:w.title,component:"span",display:"block"},v,{children:O})));let _=s;return _!=null&&_.type!==$t&&!c&&(_=E.jsx($t,I({variant:o?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:_}))),E.jsxs(EPe,I({className:de(w.root,i),as:l,ref:r,ownerState:b},m,{children:[o&&E.jsx(CPe,{className:w.avatar,ownerState:b,children:o}),E.jsxs(PPe,{className:w.content,ownerState:b,children:[O,_]}),a&&E.jsx(OPe,{className:w.action,ownerState:b,children:a})]}))});function RPe(e){return et("PrivateSwitchBase",e)}ot("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $Pe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kPe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${Pe(a)}`],input:["input"]};return tt(o,RPe,t)},jPe=te(ks)(({ownerState:e})=>I({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),TPe=te("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),H9=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:l,disabled:c,disableFocusRipple:s=!1,edge:f=!1,icon:h,id:v,inputProps:m,inputRef:b,name:w,onBlur:O,onChange:_,onFocus:y,readOnly:x,required:S=!1,tabIndex:P,type:C,value:$}=t,R=Re(t,$Pe),[k,T]=kf({controlled:a,default:!!l,name:"SwitchBase",state:"checked"}),M=si(),F=q=>{y&&y(q),M&&M.onFocus&&M.onFocus(q)},L=q=>{O&&O(q),M&&M.onBlur&&M.onBlur(q)},B=q=>{if(q.nativeEvent.defaultPrevented)return;const ee=q.target.checked;T(ee),_&&_(q,ee)};let V=c;M&&typeof V>"u"&&(V=M.disabled);const H=C==="checkbox"||C==="radio",W=I({},t,{checked:k,disabled:V,disableFocusRipple:s,edge:f}),z=kPe(W);return E.jsxs(jPe,I({component:"span",className:de(z.root,i),centerRipple:!0,focusRipple:!s,disabled:V,tabIndex:null,role:void 0,onFocus:F,onBlur:L,ownerState:W,ref:r},R,{children:[E.jsx(TPe,I({autoFocus:n,checked:a,defaultChecked:l,className:z.input,disabled:V,id:H?v:void 0,name:w,onChange:B,readOnly:x,ref:b,required:S,ownerState:W,tabIndex:P,type:C},C==="checkbox"&&$===void 0?{}:{value:$},m)),k?o:h]}))}),IPe=Za(E.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"),APe=Za(E.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"),MPe=Za(E.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 FPe(e){return et("MuiCheckbox",e)}const aS=ot("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),LPe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],DPe=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${Pe(n)}`,`size${Pe(a)}`]},i=tt(o,FPe,t);return I({},t,i)},NPe=te(H9,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Pe(r.size)}`],r.color!=="default"&&t[`color${Pe(r.color)}`]]}})(({theme:e,ownerState:t})=>I({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})`:nr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${aS.checked}, &.${aS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${aS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),BPe=E.jsx(APe,{}),zPe=E.jsx(IPe,{}),UPe=E.jsx(MPe,{}),Lf=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiCheckbox"}),{checkedIcon:i=BPe,color:l="primary",icon:c=zPe,indeterminate:s=!1,indeterminateIcon:f=UPe,inputProps:h,size:v="medium",className:m}=o,b=Re(o,LPe),w=s?f:c,O=s?f:i,_=I({},o,{color:l,indeterminate:s,size:v}),y=DPe(_);return E.jsx(NPe,I({type:"checkbox",inputProps:I({"data-indeterminate":s},h),icon:d.cloneElement(w,{fontSize:(n=w.props.fontSize)!=null?n:v}),checkedIcon:d.cloneElement(O,{fontSize:(a=O.props.fontSize)!=null?a:v}),ownerState:_,ref:r,className:de(y.root,m)},b,{classes:y}))});function VPe(e){return et("MuiCircularProgress",e)}ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const WPe=["className","color","disableShrink","size","style","thickness","value","variant"];let v1=e=>e,YL,JL,ZL,eD;const Ks=44,HPe=$s(YL||(YL=v1` 0% { transform: rotate(0deg); } @@ -206,7 +206,7 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu 100% { transform: rotate(360deg); } -`)),GPe=$s(JL||(JL=v1` +`)),qPe=$s(JL||(JL=v1` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -221,11 +221,11 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),KPe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${Pe(n)}`],svg:["svg"],circle:["circle",`circle${Pe(r)}`,a&&"circleDisableShrink"]};return tt(o,WPe,t)},QPe=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Pe(r.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Rc(ZL||(ZL=v1` +`)),GPe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${Pe(n)}`],svg:["svg"],circle:["circle",`circle${Pe(r)}`,a&&"circleDisableShrink"]};return tt(o,VPe,t)},KPe=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Pe(r.color)}`]]}})(({ownerState:e,theme:t})=>I({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"&&Rc(ZL||(ZL=v1` animation: ${0} 1.4s linear infinite; - `),qPe)),XPe=te("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),YPe=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Pe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Rc(eD||(eD=v1` + `),HPe)),QPe=te("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),XPe=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Pe(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({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&&Rc(eD||(eD=v1` animation: ${0} 1.4s ease-in-out infinite; - `),GPe)),lp=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:l=40,style:c,thickness:s=3.6,value:f=0,variant:h="indeterminate"}=n,v=Re(n,HPe),m=T({},n,{color:o,disableShrink:i,size:l,thickness:s,value:f,variant:h}),b=KPe(m),w={},O={},_={};if(h==="determinate"){const y=2*Math.PI*((Ks-s)/2);w.strokeDasharray=y.toFixed(3),_["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*y).toFixed(3)}px`,O.transform="rotate(-90deg)"}return E.jsx(QPe,T({className:de(b.root,a),style:T({width:l,height:l},O,c),ownerState:m,ref:r,role:"progressbar"},_,v,{children:E.jsx(XPe,{className:b.svg,ownerState:m,viewBox:`${Ks/2} ${Ks/2} ${Ks} ${Ks}`,children:E.jsx(YPe,{className:b.circle,style:w,ownerState:m,cx:Ks,cy:Ks,r:(Ks-s)/2,fill:"none",strokeWidth:s})})}))});function tD(e){return e.substring(2).toLowerCase()}function JPe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Ir(t.ref,l),h=oa(b=>{const w=s.current;s.current=!1;const O=tn(l.current);if(!c.current||!l.current||"clientX"in b&&JPe(b,O))return;if(i.current){i.current=!1;return}let _;b.composedPath?_=b.composedPath().indexOf(l.current)>-1:_=!O.documentElement.contains(b.target)||l.current.contains(b.target),!_&&(r||!w)&&a(b)}),v=b=>w=>{s.current=!0;const O=t.props[b];O&&O(w)},m={ref:f};return o!==!1&&(m[o]=v(o)),d.useEffect(()=>{if(o!==!1){const b=tD(o),w=tn(l.current),O=()=>{i.current=!0};return w.addEventListener(b,h),w.addEventListener("touchmove",O),()=>{w.removeEventListener(b,h),w.removeEventListener("touchmove",O)}}},[h,o]),n!==!1&&(m[n]=v(n)),d.useEffect(()=>{if(n!==!1){const b=tD(n),w=tn(l.current);return w.addEventListener(b,h),()=>{w.removeEventListener(b,h)}}},[h,n]),E.jsx(d.Fragment,{children:d.cloneElement(t,m)})}const ud=Gwe({createStyledComponent:te("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Pe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>rt({props:e,name:"MuiContainer"})}),eRe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),tRe=e=>T({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}}),rRe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,l])=>{var c;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(c=l.palette)==null?void 0:c.mode}});let a=T({html:eRe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},tRe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function nRe(e){const t=rt({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(d.Fragment,{children:[E.jsx(N9,{styles:a=>rRe(a,n)}),r]})}function aRe(e){const t=tn(e);return t.body===e?$o(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function jh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rD(e){return parseInt($o(e).getComputedStyle(e).paddingRight,10)||0}function oRe(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 nD(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const l=o.indexOf(i)===-1,c=!oRe(i);l&&c&&jh(i,a)})}function oS(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function iRe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(aRe(n)){const i=i9(tn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${rD(n)+i}px`;const l=tn(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${rD(c)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=tn(n).body;else{const i=n.parentElement,l=$o(n);o=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:l})=>{o?i.style.setProperty(l,o):i.style.removeProperty(l)})}}function sRe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class lRe{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&&jh(t.modalRef,!1);const a=sRe(r);nD(r,t.mount,t.modalRef,a,!0);const o=oS(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=oS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=iRe(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=oS(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&jh(t.modalRef,r),nD(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&jh(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const uRe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cRe(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 dRe(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 fRe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||dRe(e))}function pRe(e){const t=[],r=[];return Array.from(e.querySelectorAll(uRe)).forEach((n,a)=>{const o=cRe(n);o===-1||!fRe(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function hRe(){return!0}function vRe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=pRe,isEnabled:i=hRe,open:l}=e,c=d.useRef(!1),s=d.useRef(null),f=d.useRef(null),h=d.useRef(null),v=d.useRef(null),m=d.useRef(!1),b=d.useRef(null),w=Ir(t.ref,b),O=d.useRef(null);d.useEffect(()=>{!l||!b.current||(m.current=!r)},[r,l]),d.useEffect(()=>{if(!l||!b.current)return;const x=tn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{a||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),d.useEffect(()=>{if(!l||!b.current)return;const x=tn(b.current),S=$=>{O.current=$,!(n||!i()||$.key!=="Tab")&&x.activeElement===b.current&&$.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const $=b.current;if($===null)return;if(!x.hasFocus()||!i()||c.current){c.current=!1;return}if($.contains(x.activeElement)||n&&x.activeElement!==s.current&&x.activeElement!==f.current)return;if(x.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!m.current)return;let R=[];if((x.activeElement===s.current||x.activeElement===f.current)&&(R=o(b.current)),R.length>0){var k,I;const M=!!((k=O.current)!=null&&k.shiftKey&&((I=O.current)==null?void 0:I.key)==="Tab"),F=R[0],L=R[R.length-1];typeof F!="string"&&typeof L!="string"&&(M?L.focus():F.focus())}else $.focus()};x.addEventListener("focusin",P),x.addEventListener("keydown",S,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",P),x.removeEventListener("keydown",S,!0)}},[r,n,a,i,l,o]);const _=x=>{h.current===null&&(h.current=x.relatedTarget),m.current=!0,v.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{h.current===null&&(h.current=x.relatedTarget),m.current=!0};return E.jsxs(d.Fragment,{children:[E.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:s,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:w,onFocus:_}),E.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:f,"data-testid":"sentinelEnd"})]})}function mRe(e){return typeof e=="function"?e():e}function gRe(e){return e?e.props.hasOwnProperty("in"):!1}const yRe=new lRe;function bRe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=yRe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:l,children:c,onClose:s,open:f,rootRef:h}=e,v=d.useRef({}),m=d.useRef(null),b=d.useRef(null),w=Ir(b,h),[O,_]=d.useState(!f),y=gRe(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>tn(m.current),P=()=>(v.current.modalRef=b.current,v.current.mount=m.current,v.current),C=()=>{a.mount(P(),{disableScrollLock:n}),b.current&&(b.current.scrollTop=0)},$=oa(()=>{const H=mRe(t)||S().body;a.add(P(),H),b.current&&C()}),R=d.useCallback(()=>a.isTopModal(P()),[a]),k=oa(H=>{m.current=H,H&&(f&&R()?C():b.current&&jh(b.current,x))}),I=d.useCallback(()=>{a.remove(P(),x)},[x,a]);d.useEffect(()=>()=>{I()},[I]),d.useEffect(()=>{f?$():(!y||!o)&&I()},[f,I,y,o,$]);const M=H=>W=>{var z;(z=H.onKeyDown)==null||z.call(H,W),!(W.key!=="Escape"||W.which===229||!R())&&(r||(W.stopPropagation(),s&&s(W,"escapeKeyDown")))},F=H=>W=>{var z;(z=H.onClick)==null||z.call(H,W),W.target===W.currentTarget&&s&&s(W,"backdropClick")};return{getRootProps:(H={})=>{const W=N0(e);delete W.onTransitionEnter,delete W.onTransitionExited;const z=T({},W,H);return T({role:"presentation"},z,{onKeyDown:M(z),ref:w})},getBackdropProps:(H={})=>{const W=H;return T({"aria-hidden":!0},W,{onClick:F(W),open:f})},getTransitionProps:()=>{const H=()=>{_(!1),i&&i()},W=()=>{_(!0),l&&l(),o&&I()};return{onEnter:cC(H,c==null?void 0:c.props.onEnter),onExited:cC(W,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:k,isTopModal:R,exited:O,hasTransition:y}}function _Re(e){return et("MuiModal",e)}ot("MuiModal",["root","hidden","backdrop"]);const xRe=["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"],wRe=e=>{const{open:t,exited:r,classes:n}=e;return tt({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},_Re,n)},SRe=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ERe=te(U9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),F2=d.forwardRef(function(t,r){var n,a,o,i,l,c;const s=rt({name:"MuiModal",props:t}),{BackdropComponent:f=ERe,BackdropProps:h,className:v,closeAfterTransition:m=!1,children:b,container:w,component:O,components:_={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:P=!1,disablePortal:C=!1,disableRestoreFocus:$=!1,disableScrollLock:R=!1,hideBackdrop:k=!1,keepMounted:I=!1,onBackdropClick:M,open:F,slotProps:L,slots:B}=s,V=Re(s,xRe),H=T({},s,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:$,disableScrollLock:R,hideBackdrop:k,keepMounted:I}),{getRootProps:W,getBackdropProps:z,getTransitionProps:q,portalRef:ee,isTopModal:oe,exited:J,hasTransition:we}=bRe(T({},H,{rootRef:r})),le=T({},H,{exited:J}),ge=wRe(le),pe={};if(b.props.tabIndex===void 0&&(pe.tabIndex="-1"),we){const{onEnter:ye,onExited:je}=q();pe.onEnter=ye,pe.onExited=je}const me=(n=(a=B==null?void 0:B.root)!=null?a:_.Root)!=null?n:SRe,xe=(o=(i=B==null?void 0:B.backdrop)!=null?i:_.Backdrop)!=null?o:f,ne=(l=L==null?void 0:L.root)!=null?l:y.root,Te=(c=L==null?void 0:L.backdrop)!=null?c:y.backdrop,ve=ko({elementType:me,externalSlotProps:ne,externalForwardedProps:V,getSlotProps:W,additionalProps:{ref:r,as:O},ownerState:le,className:de(v,ne==null?void 0:ne.className,ge==null?void 0:ge.root,!le.open&&le.exited&&(ge==null?void 0:ge.hidden))}),$e=ko({elementType:xe,externalSlotProps:Te,additionalProps:h,getSlotProps:ye=>z(T({},ye,{onClick:je=>{M&&M(je),ye!=null&&ye.onClick&&ye.onClick(je)}})),className:de(Te==null?void 0:Te.className,h==null?void 0:h.className,ge==null?void 0:ge.backdrop),ownerState:le});return!I&&!F&&(!we||J)?null:E.jsx(L9,{ref:ee,container:w,disablePortal:C,children:E.jsxs(me,T({},ve,{children:[!k&&f?E.jsx(xe,T({},$e)):null,E.jsx(vRe,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:$,isEnabled:oe,open:F,children:d.cloneElement(b,pe)})]}))})});function CRe(e){return et("MuiDialog",e)}const iS=ot("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),q9=d.createContext({}),ORe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],PRe=te(U9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),RRe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${Pe(r)}`],paper:["paper",`paperScroll${Pe(r)}`,`paperWidth${Pe(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return tt(i,CRe,t)},$Re=te(F2,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),kRe=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Pe(r.scroll)}`]]}})(({ownerState:e})=>T({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"}})),jRe=te(tu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Pe(r.scroll)}`],t[`paperWidth${Pe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>T({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${iS.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}`,[`&.${iS.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,[`&.${iS.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),im=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialog"}),a=Ja(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:c,BackdropProps:s,children:f,className:h,disableEscapeKeyDown:v=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:w="sm",onBackdropClick:O,onClick:_,onClose:y,open:x,PaperComponent:S=tu,PaperProps:P={},scroll:C="paper",TransitionComponent:$=z9,transitionDuration:R=o,TransitionProps:k}=n,I=Re(n,ORe),M=T({},n,{disableEscapeKeyDown:v,fullScreen:m,fullWidth:b,maxWidth:w,scroll:C}),F=RRe(M),L=d.useRef(),B=z=>{L.current=z.target===z.currentTarget},V=z=>{_&&_(z),L.current&&(L.current=null,O&&O(z),y&&y(z,"backdropClick"))},H=bc(l),W=d.useMemo(()=>({titleId:H}),[H]);return E.jsx($Re,T({className:de(F.root,h),closeAfterTransition:!0,components:{Backdrop:PRe},componentsProps:{backdrop:T({transitionDuration:R,as:c},s)},disableEscapeKeyDown:v,onClose:y,open:x,ref:r,onClick:V,ownerState:M},I,{children:E.jsx($,T({appear:!0,in:x,timeout:R,role:"presentation"},k,{children:E.jsx(kRe,{className:de(F.container),onMouseDown:B,ownerState:M,children:E.jsx(jRe,T({as:S,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":H},P,{className:de(F.paper,P.className),ownerState:M,children:E.jsx(q9.Provider,{value:W,children:f})}))})}))}))});function IRe(e){return et("MuiDialogActions",e)}ot("MuiDialogActions",["root","spacing"]);const TRe=["className","disableSpacing"],ARe=e=>{const{classes:t,disableSpacing:r}=e;return tt({root:["root",!r&&"spacing"]},IRe,t)},MRe=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>T({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),L2=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Re(n,TRe),l=T({},n,{disableSpacing:o}),c=ARe(l);return E.jsx(MRe,T({className:de(c.root,a),ownerState:l,ref:r},i))});function FRe(e){return et("MuiDialogContent",e)}ot("MuiDialogContent",["root","dividers"]);function LRe(e){return et("MuiDialogTitle",e)}const DRe=ot("MuiDialogTitle",["root"]),NRe=["className","dividers"],BRe=e=>{const{classes:t,dividers:r}=e;return tt({root:["root",r&&"dividers"]},FRe,t)},zRe=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>T({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${DRe.root} + &`]:{paddingTop:0}})),sm=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Re(n,NRe),l=T({},n,{dividers:o}),c=BRe(l);return E.jsx(zRe,T({className:de(c.root,a),ownerState:l,ref:r},i))});function URe(e){return et("MuiDialogContentText",e)}ot("MuiDialogContentText",["root"]);const VRe=["children","className"],WRe=e=>{const{classes:t}=e,n=tt({root:["root"]},URe,t);return T({},t,n)},HRe=te($t,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),m1=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Re(n,VRe),i=WRe(o);return E.jsx(HRe,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:de(i.root,a)},n,{classes:i}))}),qRe=["className","id"],GRe=e=>{const{classes:t}=e;return tt({root:["root"]},LRe,t)},KRe=te($t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),lm=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Re(n,qRe),l=n,c=GRe(l),{titleId:s=o}=d.useContext(q9);return E.jsx(KRe,T({component:"h2",className:de(c.root,a),ownerState:l,ref:r,variant:"h6",id:o??s},i))});function QRe(e){return et("MuiDivider",e)}const aD=ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),XRe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],YRe=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:l,variant:c}=e;return tt({root:["root",t&&"absolute",c,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},QRe,n)},JRe=te("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})=>T({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)`:nr(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})=>T({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>T({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>T({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ZRe=te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>T({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)`})),_v=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:l=o?"div":"hr",flexItem:c=!1,light:s=!1,orientation:f="horizontal",role:h=l!=="hr"?"separator":void 0,textAlign:v="center",variant:m="fullWidth"}=n,b=Re(n,XRe),w=T({},n,{absolute:a,component:l,flexItem:c,light:s,orientation:f,role:h,textAlign:v,variant:m}),O=YRe(w);return E.jsx(JRe,T({as:l,className:de(O.root,i),role:h,ref:r,ownerState:w},b,{children:o?E.jsx(ZRe,{className:O.wrapper,ownerState:w,children:o}):null}))});_v.muiSkipListHighlight=!0;const e2e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function t2e(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=$o(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const s=o.getComputedStyle(t);i=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}let l=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const s=i.split("(")[1].split(")")[0].split(",");l=parseInt(s[4],10),c=parseInt(s[5],10)}return e==="left"?a?`translateX(${a.right+l-n.left}px)`:`translateX(${o.innerWidth+l-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-l}px)`:`translateX(-${n.left+n.width-l}px)`:e==="up"?a?`translateY(${a.bottom+c-n.top}px)`:`translateY(${o.innerHeight+c-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function r2e(e){return typeof e=="function"?e():e}function Lg(e,t,r){const n=r2e(r),a=t2e(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const G9=d.forwardRef(function(t,r){const n=Ja(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:c,container:s,direction:f="down",easing:h=a,in:v,onEnter:m,onEntered:b,onEntering:w,onExit:O,onExited:_,onExiting:y,style:x,timeout:S=o,TransitionComponent:P=ii}=t,C=Re(t,e2e),$=d.useRef(null),R=Ir(c.ref,$,r),k=z=>q=>{z&&(q===void 0?z($.current):z($.current,q))},I=k((z,q)=>{Lg(f,z,s),P2(z),m&&m(z,q)}),M=k((z,q)=>{const ee=jf({timeout:S,style:x,easing:h},{mode:"enter"});z.style.webkitTransition=n.transitions.create("-webkit-transform",T({},ee)),z.style.transition=n.transitions.create("transform",T({},ee)),z.style.webkitTransform="none",z.style.transform="none",w&&w(z,q)}),F=k(b),L=k(y),B=k(z=>{const q=jf({timeout:S,style:x,easing:h},{mode:"exit"});z.style.webkitTransition=n.transitions.create("-webkit-transform",q),z.style.transition=n.transitions.create("transform",q),Lg(f,z,s),O&&O(z)}),V=k(z=>{z.style.webkitTransition="",z.style.transition="",_&&_(z)}),H=z=>{i&&i($.current,z)},W=d.useCallback(()=>{$.current&&Lg(f,$.current,s)},[f,s]);return d.useEffect(()=>{if(v||f==="down"||f==="right")return;const z=op(()=>{$.current&&Lg(f,$.current,s)}),q=$o($.current);return q.addEventListener("resize",z),()=>{z.clear(),q.removeEventListener("resize",z)}},[f,v,s]),d.useEffect(()=>{v||W()},[v,W]),E.jsx(P,T({nodeRef:$,onEnter:I,onEntered:F,onEntering:M,onExit:B,onExited:V,onExiting:L,addEndListener:H,appear:l,in:v,timeout:S},C,{children:(z,q)=>d.cloneElement(c,T({ref:R,style:T({visibility:z==="exited"&&!v?"hidden":void 0},x,c.props.style)},q))}))});function n2e(e){return et("MuiDrawer",e)}ot("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const a2e=["BackdropProps"],o2e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],K9=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},i2e=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Pe(r)}`,n!=="temporary"&&`paperAnchorDocked${Pe(r)}`]};return tt(a,n2e,t)},s2e=te(F2,{name:"MuiDrawer",slot:"Root",overridesResolver:K9})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),oD=te("div",{shouldForwardProp:In,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:K9})({flex:"0 0 auto"}),l2e=te(tu,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Pe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Pe(r.anchor)}`]]}})(({theme:e,ownerState:t})=>T({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Q9={left:"right",right:"left",top:"down",bottom:"up"};function u2e(e){return["left","right"].indexOf(e)!==-1}function c2e({direction:e},t){return e==="rtl"&&u2e(t)?Q9[t]:t}const d2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDrawer"}),a=Ja(),o=eu(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:c,children:s,className:f,elevation:h=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:m}={},onClose:b,open:w=!1,PaperProps:O={},SlideProps:_,TransitionComponent:y=G9,transitionDuration:x=i,variant:S="temporary"}=n,P=Re(n.ModalProps,a2e),C=Re(n,o2e),$=d.useRef(!1);d.useEffect(()=>{$.current=!0},[]);const R=c2e({direction:o?"rtl":"ltr"},l),I=T({},n,{anchor:l,elevation:h,open:w,variant:S},C),M=i2e(I),F=E.jsx(l2e,T({elevation:S==="temporary"?h:0,square:!0},O,{className:de(M.paper,O.className),ownerState:I,children:s}));if(S==="permanent")return E.jsx(oD,T({className:de(M.root,M.docked,f),ownerState:I,ref:r},C,{children:F}));const L=E.jsx(y,T({in:w,direction:Q9[R],timeout:x,appear:$.current},_,{children:F}));return S==="persistent"?E.jsx(oD,T({className:de(M.root,M.docked,f),ownerState:I,ref:r},C,{children:L})):E.jsx(s2e,T({BackdropProps:T({},c,m,{transitionDuration:x}),className:de(M.root,M.modal,f),open:w,ownerState:I,onClose:b,hideBackdrop:v,ref:r},C,P,{children:L}))});function f2e(e){return et("MuiFab",e)}const iD=ot("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),p2e=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],h2e=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${Pe(a)}`,t==="inherit"?"colorInherit":t]},i=tt(o,f2e,n);return T({},n,i)},v2e=te(ks,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>In(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Pe(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return T({},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"},[`&.${iD.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]}},t.size==="small"&&{width:40,height:40},t.size==="medium"&&{width:48,height:48},t.variant==="extended"&&{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},t.variant==="extended"&&t.size==="small"&&{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34},t.variant==="extended"&&t.size==="medium"&&{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40},t.color==="inherit"&&{color:"inherit"})},({theme:e,ownerState:t})=>T({},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})=>({[`&.${iD.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),m2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:l="button",disabled:c=!1,disableFocusRipple:s=!1,focusVisibleClassName:f,size:h="large",variant:v="circular"}=n,m=Re(n,p2e),b=T({},n,{color:i,component:l,disabled:c,disableFocusRipple:s,size:h,variant:v}),w=h2e(b);return E.jsx(v2e,T({className:de(w.root,o),component:l,disabled:c,focusRipple:!s,focusVisibleClassName:de(w.focusVisible,f),ownerState:b,ref:r},m,{classes:w,children:a}))}),g2e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],y2e=e=>{const{classes:t,disableUnderline:r}=e,a=tt({root:["root",!r&&"underline"],input:["input"]},NOe,t);return T({},t,a)},b2e=te(f1,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...c1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return T({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${yu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${yu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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"},[`&.${yu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yu.disabled}, .${yu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&T({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}))}),_2e=te(p1,{name:"MuiFilledInput",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>T({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),D2=d.forwardRef(function(t,r){var n,a,o,i;const l=rt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:s,fullWidth:f=!1,inputComponent:h="input",multiline:v=!1,slotProps:m,slots:b={},type:w="text"}=l,O=Re(l,g2e),_=T({},l,{fullWidth:f,inputComponent:h,multiline:v,type:w}),y=y2e(l),x={root:{ownerState:_},input:{ownerState:_}},S=m??s?sa(x,m??s):x,P=(n=(a=b.root)!=null?a:c.Root)!=null?n:b2e,C=(o=(i=b.input)!=null?i:c.Input)!=null?o:_2e;return E.jsx(h1,T({slots:{root:P,input:C},componentsProps:S,fullWidth:f,inputComponent:h,multiline:v,ref:r,type:w},O,{classes:y}))});D2.muiName="Input";function x2e(e){return et("MuiFormControl",e)}ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const w2e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],S2e=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${Pe(r)}`,n&&"fullWidth"]};return tt(a,x2e,t)},E2e=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${Pe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({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%"})),X9=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:l="div",disabled:c=!1,error:s=!1,focused:f,fullWidth:h=!1,hiddenLabel:v=!1,margin:m="none",required:b=!1,size:w="medium",variant:O="outlined"}=n,_=Re(n,w2e),y=T({},n,{color:i,component:l,disabled:c,error:s,fullWidth:h,hiddenLabel:v,margin:m,required:b,size:w,variant:O}),x=S2e(y),[S,P]=d.useState(()=>{let L=!1;return a&&d.Children.forEach(a,B=>{if(!_y(B,["Input","Select"]))return;const V=_y(B,["Select"])?B.props.input:B;V&&IOe(V.props)&&(L=!0)}),L}),[C,$]=d.useState(()=>{let L=!1;return a&&d.Children.forEach(a,B=>{_y(B,["Input","Select"])&&(W0(B.props,!0)||W0(B.props.inputProps,!0))&&(L=!0)}),L}),[R,k]=d.useState(!1);c&&R&&k(!1);const I=f!==void 0&&!c?f:R;let M;const F=d.useMemo(()=>({adornedStart:S,setAdornedStart:P,color:i,disabled:c,error:s,filled:C,focused:I,fullWidth:h,hiddenLabel:v,size:w,onBlur:()=>{k(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{k(!0)},registerEffect:M,required:b,variant:O}),[S,i,c,s,C,I,h,v,M,b,w,O]);return E.jsx(u1.Provider,{value:F,children:E.jsx(E2e,T({as:l,ownerState:y,className:de(x.root,o),ref:r},_,{children:a}))})}),up=tSe({createStyledComponent:te("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>rt({props:e,name:"MuiStack"})});function C2e(e){return et("MuiFormControlLabel",e)}const ch=ot("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),O2e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],P2e=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${Pe(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return tt(i,C2e,t)},R2e=te("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ch.label}`]:t.label},t.root,t[`labelPlacement${Pe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ch.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},{[`& .${ch.label}`]:{[`&.${ch.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),$2e=te("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ch.error}`]:{color:(e.vars||e).palette.error.main}})),_C=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:l={},control:c,disabled:s,disableTypography:f,label:h,labelPlacement:v="end",required:m,slotProps:b={}}=o,w=Re(o,O2e),O=si(),_=(n=s??c.props.disabled)!=null?n:O==null?void 0:O.disabled,y=m??c.props.required,x={disabled:_,required:y};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof c.props[k]>"u"&&typeof o[k]<"u"&&(x[k]=o[k])});const S=js({props:o,muiFormControl:O,states:["error"]}),P=T({},o,{disabled:_,labelPlacement:v,required:y,error:S.error}),C=P2e(P),$=(a=b.typography)!=null?a:l.typography;let R=h;return R!=null&&R.type!==$t&&!f&&(R=E.jsx($t,T({component:"span"},$,{className:de(C.label,$==null?void 0:$.className),children:R}))),E.jsxs(R2e,T({className:de(C.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,x),y?E.jsxs(up,{display:"block",children:[R,E.jsxs($2e,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):R]}))});function k2e(e){return et("MuiFormGroup",e)}ot("MuiFormGroup",["root","row","error"]);const j2e=["className","row"],I2e=e=>{const{classes:t,row:r,error:n}=e;return tt({root:["root",r&&"row",n&&"error"]},k2e,t)},T2e=te("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>T({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),A2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Re(n,j2e),l=si(),c=js({props:n,muiFormControl:l,states:["error"]}),s=T({},n,{row:o,error:c.error}),f=I2e(s);return E.jsx(T2e,T({className:de(f.root,a),ownerState:s,ref:r},i))});function M2e(e){return et("MuiFormHelperText",e)}const sD=ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var lD;const F2e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],L2e=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:l,required:c}=e,s={root:["root",a&&"disabled",o&&"error",n&&`size${Pe(n)}`,r&&"contained",l&&"focused",i&&"filled",c&&"required"]};return tt(s,M2e,t)},D2e=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Pe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${sD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),N2=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,l=Re(n,F2e),c=si(),s=js({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=T({},n,{component:i,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),h=L2e(f);return E.jsx(D2e,T({as:i,ownerState:f,className:de(h.root,o),ref:r},l,{children:a===" "?lD||(lD=E.jsx("span",{className:"notranslate",children:"​"})):a}))});function N2e(e){return et("MuiFormLabel",e)}const Ih=ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),B2e=["children","className","color","component","disabled","error","filled","focused","required"],z2e=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:l}=e,c={root:["root",`color${Pe(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return tt(c,N2e,t)},U2e=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>T({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ih.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),V2e=te("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),W2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,l=Re(n,B2e),c=si(),s=js({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=T({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),h=z2e(f);return E.jsxs(U2e,T({as:i,ownerState:f,className:de(h.root,o),ref:r},l,{children:[a,s.required&&E.jsxs(V2e,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),H2e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xC(e){return`scale(${e}, ${e**2})`}const q2e={entering:{opacity:1,transform:xC(1)},entered:{opacity:1,transform:"none"}},sS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xv=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:l,onEnter:c,onEntered:s,onEntering:f,onExit:h,onExited:v,onExiting:m,style:b,timeout:w="auto",TransitionComponent:O=ii}=t,_=Re(t,H2e),y=zu(),x=d.useRef(),S=Ja(),P=d.useRef(null),C=Ir(P,o.ref,r),$=V=>H=>{if(V){const W=P.current;H===void 0?V(W):V(W,H)}},R=$(f),k=$((V,H)=>{P2(V);const{duration:W,delay:z,easing:q}=jf({style:b,timeout:w,easing:i},{mode:"enter"});let ee;w==="auto"?(ee=S.transitions.getAutoHeightDuration(V.clientHeight),x.current=ee):ee=W,V.style.transition=[S.transitions.create("opacity",{duration:ee,delay:z}),S.transitions.create("transform",{duration:sS?ee:ee*.666,delay:z,easing:q})].join(","),c&&c(V,H)}),I=$(s),M=$(m),F=$(V=>{const{duration:H,delay:W,easing:z}=jf({style:b,timeout:w,easing:i},{mode:"exit"});let q;w==="auto"?(q=S.transitions.getAutoHeightDuration(V.clientHeight),x.current=q):q=H,V.style.transition=[S.transitions.create("opacity",{duration:q,delay:W}),S.transitions.create("transform",{duration:sS?q:q*.666,delay:sS?W:W||q*.333,easing:z})].join(","),V.style.opacity=0,V.style.transform=xC(.75),h&&h(V)}),L=$(v),B=V=>{w==="auto"&&y.start(x.current||0,V),n&&n(P.current,V)};return E.jsx(O,T({appear:a,in:l,nodeRef:P,onEnter:k,onEntered:I,onEntering:R,onExit:F,onExited:L,onExiting:M,addEndListener:B,timeout:w==="auto"?null:w},_,{children:(V,H)=>d.cloneElement(o,T({style:T({opacity:0,transform:xC(.75),visibility:V==="exited"&&!l?"hidden":void 0},q2e[V],b,o.props.style),ref:C},H))}))});xv.muiSupportAuto=!0;const G2e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],K2e=e=>{const{classes:t,disableUnderline:r}=e,a=tt({root:["root",!r&&"underline"],input:["input"]},LOe,t);return T({},t,a)},Q2e=te(f1,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...c1(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})`),T({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"},[`&.${Gp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gp.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(.${Gp.disabled}, .${Gp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gp.disabled}:before`]:{borderBottomStyle:"dotted"}})}),X2e=te(p1,{name:"MuiInput",slot:"Input",overridesResolver:d1})({}),g1=d.forwardRef(function(t,r){var n,a,o,i;const l=rt({props:t,name:"MuiInput"}),{disableUnderline:c,components:s={},componentsProps:f,fullWidth:h=!1,inputComponent:v="input",multiline:m=!1,slotProps:b,slots:w={},type:O="text"}=l,_=Re(l,G2e),y=K2e(l),S={root:{ownerState:{disableUnderline:c}}},P=b??f?sa(b??f,S):S,C=(n=(a=w.root)!=null?a:s.Root)!=null?n:Q2e,$=(o=(i=w.input)!=null?i:s.Input)!=null?o:X2e;return E.jsx(h1,T({slots:{root:C,input:$},slotProps:P,fullWidth:h,inputComponent:v,multiline:m,ref:r,type:O},_,{classes:y}))});g1.muiName="Input";function Y2e(e){return et("MuiInputAdornment",e)}const uD=ot("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cD;const J2e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Z2e=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Pe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},e$e=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,l={root:["root",r&&"disablePointerEvents",a&&`position${Pe(a)}`,i,n&&"hiddenLabel",o&&`size${Pe(o)}`]};return tt(l,Y2e,t)},t$e=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Z2e})(({theme:e,ownerState:t})=>T({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${uD.positionStart}&:not(.${uD.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Hd=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:s,variant:f}=n,h=Re(n,J2e),v=si()||{};let m=f;f&&v.variant,v&&!m&&(m=v.variant);const b=T({},n,{hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:l,position:s,variant:m}),w=e$e(b);return E.jsx(u1.Provider,{value:null,children:E.jsx(t$e,T({as:i,ownerState:b,className:de(w.root,o),ref:r},h,{children:typeof a=="string"&&!c?E.jsx($t,{color:"text.secondary",children:a}):E.jsxs(d.Fragment,{children:[s==="start"?cD||(cD=E.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function r$e(e){return et("MuiInputLabel",e)}ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const n$e=["disableAnimation","margin","shrink","variant","className"],a$e=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:l}=e,c={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${Pe(n)}`,i],asterisk:[l&&"asterisk"]},s=tt(c,r$e,t);return T({},t,s)},o$e=te(W2e,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ih.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})=>T({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&T({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&&T({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"&&T({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)"}))),Y9=d.forwardRef(function(t,r){const n=rt({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,l=Re(n,n$e),c=si();let s=o;typeof s>"u"&&c&&(s=c.filled||c.focused||c.adornedStart);const f=js({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),h=T({},n,{disableAnimation:a,formControl:c,shrink:s,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),v=a$e(h);return E.jsx(o$e,T({"data-shrink":s,ownerState:h,ref:r,className:de(v.root,i)},l,{classes:v}))});function i$e(e){return et("MuiLinearProgress",e)}ot("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const s$e=["className","color","value","valueBuffer","variant"];let cp=e=>e,dD,fD,pD,hD,vD,mD;const wC=4,l$e=$s(dD||(dD=cp` + `),qPe)),lp=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:l=40,style:c,thickness:s=3.6,value:f=0,variant:h="indeterminate"}=n,v=Re(n,WPe),m=I({},n,{color:o,disableShrink:i,size:l,thickness:s,value:f,variant:h}),b=GPe(m),w={},O={},_={};if(h==="determinate"){const y=2*Math.PI*((Ks-s)/2);w.strokeDasharray=y.toFixed(3),_["aria-valuenow"]=Math.round(f),w.strokeDashoffset=`${((100-f)/100*y).toFixed(3)}px`,O.transform="rotate(-90deg)"}return E.jsx(KPe,I({className:de(b.root,a),style:I({width:l,height:l},O,c),ownerState:m,ref:r,role:"progressbar"},_,v,{children:E.jsx(QPe,{className:b.svg,ownerState:m,viewBox:`${Ks/2} ${Ks/2} ${Ks} ${Ks}`,children:E.jsx(XPe,{className:b.circle,style:w,ownerState:m,cx:Ks,cy:Ks,r:(Ks-s)/2,fill:"none",strokeWidth:s})})}))});function tD(e){return e.substring(2).toLowerCase()}function YPe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Tr(t.ref,l),h=oa(b=>{const w=s.current;s.current=!1;const O=tn(l.current);if(!c.current||!l.current||"clientX"in b&&YPe(b,O))return;if(i.current){i.current=!1;return}let _;b.composedPath?_=b.composedPath().indexOf(l.current)>-1:_=!O.documentElement.contains(b.target)||l.current.contains(b.target),!_&&(r||!w)&&a(b)}),v=b=>w=>{s.current=!0;const O=t.props[b];O&&O(w)},m={ref:f};return o!==!1&&(m[o]=v(o)),d.useEffect(()=>{if(o!==!1){const b=tD(o),w=tn(l.current),O=()=>{i.current=!0};return w.addEventListener(b,h),w.addEventListener("touchmove",O),()=>{w.removeEventListener(b,h),w.removeEventListener("touchmove",O)}}},[h,o]),n!==!1&&(m[n]=v(n)),d.useEffect(()=>{if(n!==!1){const b=tD(n),w=tn(l.current);return w.addEventListener(b,h),()=>{w.removeEventListener(b,h)}}},[h,n]),E.jsx(d.Fragment,{children:d.cloneElement(t,m)})}const ud=qwe({createStyledComponent:te("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Pe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>rt({props:e,name:"MuiContainer"})}),ZPe=(e,t)=>I({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),eRe=e=>I({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}}),tRe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,l])=>{var c;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(c=l.palette)==null?void 0:c.mode}});let a=I({html:ZPe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:I({margin:0},eRe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(a=[a,o]),a};function rRe(e){const t=rt({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(d.Fragment,{children:[E.jsx(N9,{styles:a=>tRe(a,n)}),r]})}function nRe(e){const t=tn(e);return t.body===e?$o(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function jh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rD(e){return parseInt($o(e).getComputedStyle(e).paddingRight,10)||0}function aRe(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 nD(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const l=o.indexOf(i)===-1,c=!aRe(i);l&&c&&jh(i,a)})}function oS(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function oRe(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(nRe(n)){const i=i9(tn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${rD(n)+i}px`;const l=tn(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${rD(c)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=tn(n).body;else{const i=n.parentElement,l=$o(n);o=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:l})=>{o?i.style.setProperty(l,o):i.style.removeProperty(l)})}}function iRe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class sRe{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&&jh(t.modalRef,!1);const a=iRe(r);nD(r,t.mount,t.modalRef,a,!0);const o=oS(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=oS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=oRe(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=oS(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&jh(t.modalRef,r),nD(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&jh(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const lRe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uRe(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 cRe(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 dRe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||cRe(e))}function fRe(e){const t=[],r=[];return Array.from(e.querySelectorAll(lRe)).forEach((n,a)=>{const o=uRe(n);o===-1||!dRe(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function pRe(){return!0}function hRe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=fRe,isEnabled:i=pRe,open:l}=e,c=d.useRef(!1),s=d.useRef(null),f=d.useRef(null),h=d.useRef(null),v=d.useRef(null),m=d.useRef(!1),b=d.useRef(null),w=Tr(t.ref,b),O=d.useRef(null);d.useEffect(()=>{!l||!b.current||(m.current=!r)},[r,l]),d.useEffect(()=>{if(!l||!b.current)return;const x=tn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),m.current&&b.current.focus()),()=>{a||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),d.useEffect(()=>{if(!l||!b.current)return;const x=tn(b.current),S=$=>{O.current=$,!(n||!i()||$.key!=="Tab")&&x.activeElement===b.current&&$.shiftKey&&(c.current=!0,f.current&&f.current.focus())},P=()=>{const $=b.current;if($===null)return;if(!x.hasFocus()||!i()||c.current){c.current=!1;return}if($.contains(x.activeElement)||n&&x.activeElement!==s.current&&x.activeElement!==f.current)return;if(x.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!m.current)return;let R=[];if((x.activeElement===s.current||x.activeElement===f.current)&&(R=o(b.current)),R.length>0){var k,T;const M=!!((k=O.current)!=null&&k.shiftKey&&((T=O.current)==null?void 0:T.key)==="Tab"),F=R[0],L=R[R.length-1];typeof F!="string"&&typeof L!="string"&&(M?L.focus():F.focus())}else $.focus()};x.addEventListener("focusin",P),x.addEventListener("keydown",S,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",P),x.removeEventListener("keydown",S,!0)}},[r,n,a,i,l,o]);const _=x=>{h.current===null&&(h.current=x.relatedTarget),m.current=!0,v.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{h.current===null&&(h.current=x.relatedTarget),m.current=!0};return E.jsxs(d.Fragment,{children:[E.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:s,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:w,onFocus:_}),E.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:f,"data-testid":"sentinelEnd"})]})}function vRe(e){return typeof e=="function"?e():e}function mRe(e){return e?e.props.hasOwnProperty("in"):!1}const gRe=new sRe;function yRe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=gRe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:l,children:c,onClose:s,open:f,rootRef:h}=e,v=d.useRef({}),m=d.useRef(null),b=d.useRef(null),w=Tr(b,h),[O,_]=d.useState(!f),y=mRe(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>tn(m.current),P=()=>(v.current.modalRef=b.current,v.current.mount=m.current,v.current),C=()=>{a.mount(P(),{disableScrollLock:n}),b.current&&(b.current.scrollTop=0)},$=oa(()=>{const H=vRe(t)||S().body;a.add(P(),H),b.current&&C()}),R=d.useCallback(()=>a.isTopModal(P()),[a]),k=oa(H=>{m.current=H,H&&(f&&R()?C():b.current&&jh(b.current,x))}),T=d.useCallback(()=>{a.remove(P(),x)},[x,a]);d.useEffect(()=>()=>{T()},[T]),d.useEffect(()=>{f?$():(!y||!o)&&T()},[f,T,y,o,$]);const M=H=>W=>{var z;(z=H.onKeyDown)==null||z.call(H,W),!(W.key!=="Escape"||W.which===229||!R())&&(r||(W.stopPropagation(),s&&s(W,"escapeKeyDown")))},F=H=>W=>{var z;(z=H.onClick)==null||z.call(H,W),W.target===W.currentTarget&&s&&s(W,"backdropClick")};return{getRootProps:(H={})=>{const W=Nb(e);delete W.onTransitionEnter,delete W.onTransitionExited;const z=I({},W,H);return I({role:"presentation"},z,{onKeyDown:M(z),ref:w})},getBackdropProps:(H={})=>{const W=H;return I({"aria-hidden":!0},W,{onClick:F(W),open:f})},getTransitionProps:()=>{const H=()=>{_(!1),i&&i()},W=()=>{_(!0),l&&l(),o&&T()};return{onEnter:cC(H,c==null?void 0:c.props.onEnter),onExited:cC(W,c==null?void 0:c.props.onExited)}},rootRef:w,portalRef:k,isTopModal:R,exited:O,hasTransition:y}}function bRe(e){return et("MuiModal",e)}ot("MuiModal",["root","hidden","backdrop"]);const _Re=["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"],xRe=e=>{const{open:t,exited:r,classes:n}=e;return tt({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},bRe,n)},wRe=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>I({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),SRe=te(U9,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),F2=d.forwardRef(function(t,r){var n,a,o,i,l,c;const s=rt({name:"MuiModal",props:t}),{BackdropComponent:f=SRe,BackdropProps:h,className:v,closeAfterTransition:m=!1,children:b,container:w,component:O,components:_={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:P=!1,disablePortal:C=!1,disableRestoreFocus:$=!1,disableScrollLock:R=!1,hideBackdrop:k=!1,keepMounted:T=!1,onBackdropClick:M,open:F,slotProps:L,slots:B}=s,V=Re(s,_Re),H=I({},s,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:$,disableScrollLock:R,hideBackdrop:k,keepMounted:T}),{getRootProps:W,getBackdropProps:z,getTransitionProps:q,portalRef:ee,isTopModal:oe,exited:J,hasTransition:we}=yRe(I({},H,{rootRef:r})),le=I({},H,{exited:J}),ge=xRe(le),pe={};if(b.props.tabIndex===void 0&&(pe.tabIndex="-1"),we){const{onEnter:ye,onExited:je}=q();pe.onEnter=ye,pe.onExited=je}const me=(n=(a=B==null?void 0:B.root)!=null?a:_.Root)!=null?n:wRe,xe=(o=(i=B==null?void 0:B.backdrop)!=null?i:_.Backdrop)!=null?o:f,ne=(l=L==null?void 0:L.root)!=null?l:y.root,Ie=(c=L==null?void 0:L.backdrop)!=null?c:y.backdrop,ve=ko({elementType:me,externalSlotProps:ne,externalForwardedProps:V,getSlotProps:W,additionalProps:{ref:r,as:O},ownerState:le,className:de(v,ne==null?void 0:ne.className,ge==null?void 0:ge.root,!le.open&&le.exited&&(ge==null?void 0:ge.hidden))}),$e=ko({elementType:xe,externalSlotProps:Ie,additionalProps:h,getSlotProps:ye=>z(I({},ye,{onClick:je=>{M&&M(je),ye!=null&&ye.onClick&&ye.onClick(je)}})),className:de(Ie==null?void 0:Ie.className,h==null?void 0:h.className,ge==null?void 0:ge.backdrop),ownerState:le});return!T&&!F&&(!we||J)?null:E.jsx(L9,{ref:ee,container:w,disablePortal:C,children:E.jsxs(me,I({},ve,{children:[!k&&f?E.jsx(xe,I({},$e)):null,E.jsx(hRe,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:$,isEnabled:oe,open:F,children:d.cloneElement(b,pe)})]}))})});function ERe(e){return et("MuiDialog",e)}const iS=ot("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),q9=d.createContext({}),CRe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ORe=te(U9,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),PRe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${Pe(r)}`],paper:["paper",`paperScroll${Pe(r)}`,`paperWidth${Pe(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return tt(i,ERe,t)},RRe=te(F2,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),$Re=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Pe(r.scroll)}`]]}})(({ownerState:e})=>I({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"}})),kRe=te(tu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Pe(r.scroll)}`],t[`paperWidth${Pe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>I({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)`,[`&.${iS.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}`,[`&.${iS.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,[`&.${iS.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),im=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialog"}),a=Ja(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:c,BackdropProps:s,children:f,className:h,disableEscapeKeyDown:v=!1,fullScreen:m=!1,fullWidth:b=!1,maxWidth:w="sm",onBackdropClick:O,onClick:_,onClose:y,open:x,PaperComponent:S=tu,PaperProps:P={},scroll:C="paper",TransitionComponent:$=z9,transitionDuration:R=o,TransitionProps:k}=n,T=Re(n,CRe),M=I({},n,{disableEscapeKeyDown:v,fullScreen:m,fullWidth:b,maxWidth:w,scroll:C}),F=PRe(M),L=d.useRef(),B=z=>{L.current=z.target===z.currentTarget},V=z=>{_&&_(z),L.current&&(L.current=null,O&&O(z),y&&y(z,"backdropClick"))},H=bc(l),W=d.useMemo(()=>({titleId:H}),[H]);return E.jsx(RRe,I({className:de(F.root,h),closeAfterTransition:!0,components:{Backdrop:ORe},componentsProps:{backdrop:I({transitionDuration:R,as:c},s)},disableEscapeKeyDown:v,onClose:y,open:x,ref:r,onClick:V,ownerState:M},T,{children:E.jsx($,I({appear:!0,in:x,timeout:R,role:"presentation"},k,{children:E.jsx($Re,{className:de(F.container),onMouseDown:B,ownerState:M,children:E.jsx(kRe,I({as:S,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":H},P,{className:de(F.paper,P.className),ownerState:M,children:E.jsx(q9.Provider,{value:W,children:f})}))})}))}))});function jRe(e){return et("MuiDialogActions",e)}ot("MuiDialogActions",["root","spacing"]);const TRe=["className","disableSpacing"],IRe=e=>{const{classes:t,disableSpacing:r}=e;return tt({root:["root",!r&&"spacing"]},jRe,t)},ARe=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>I({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),L2=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Re(n,TRe),l=I({},n,{disableSpacing:o}),c=IRe(l);return E.jsx(ARe,I({className:de(c.root,a),ownerState:l,ref:r},i))});function MRe(e){return et("MuiDialogContent",e)}ot("MuiDialogContent",["root","dividers"]);function FRe(e){return et("MuiDialogTitle",e)}const LRe=ot("MuiDialogTitle",["root"]),DRe=["className","dividers"],NRe=e=>{const{classes:t,dividers:r}=e;return tt({root:["root",r&&"dividers"]},MRe,t)},BRe=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>I({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}`}:{[`.${LRe.root} + &`]:{paddingTop:0}})),sm=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Re(n,DRe),l=I({},n,{dividers:o}),c=NRe(l);return E.jsx(BRe,I({className:de(c.root,a),ownerState:l,ref:r},i))});function zRe(e){return et("MuiDialogContentText",e)}ot("MuiDialogContentText",["root"]);const URe=["children","className"],VRe=e=>{const{classes:t}=e,n=tt({root:["root"]},zRe,t);return I({},t,n)},WRe=te($t,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),m1=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Re(n,URe),i=VRe(o);return E.jsx(WRe,I({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:de(i.root,a)},n,{classes:i}))}),HRe=["className","id"],qRe=e=>{const{classes:t}=e;return tt({root:["root"]},FRe,t)},GRe=te($t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),lm=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Re(n,HRe),l=n,c=qRe(l),{titleId:s=o}=d.useContext(q9);return E.jsx(GRe,I({component:"h2",className:de(c.root,a),ownerState:l,ref:r,variant:"h6",id:o??s},i))});function KRe(e){return et("MuiDivider",e)}const aD=ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),QRe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],XRe=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:l,variant:c}=e;return tt({root:["root",t&&"absolute",c,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},KRe,n)},YRe=te("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})=>I({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)`:nr(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})=>I({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>I({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),JRe=te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>I({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)`})),_v=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:l=o?"div":"hr",flexItem:c=!1,light:s=!1,orientation:f="horizontal",role:h=l!=="hr"?"separator":void 0,textAlign:v="center",variant:m="fullWidth"}=n,b=Re(n,QRe),w=I({},n,{absolute:a,component:l,flexItem:c,light:s,orientation:f,role:h,textAlign:v,variant:m}),O=XRe(w);return E.jsx(YRe,I({as:l,className:de(O.root,i),role:h,ref:r,ownerState:w},b,{children:o?E.jsx(JRe,{className:O.wrapper,ownerState:w,children:o}):null}))});_v.muiSkipListHighlight=!0;const ZRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function e2e(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=$o(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const s=o.getComputedStyle(t);i=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}let l=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const s=i.split("(")[1].split(")")[0].split(",");l=parseInt(s[4],10),c=parseInt(s[5],10)}return e==="left"?a?`translateX(${a.right+l-n.left}px)`:`translateX(${o.innerWidth+l-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-l}px)`:`translateX(-${n.left+n.width-l}px)`:e==="up"?a?`translateY(${a.bottom+c-n.top}px)`:`translateY(${o.innerHeight+c-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function t2e(e){return typeof e=="function"?e():e}function Lg(e,t,r){const n=t2e(r),a=e2e(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const G9=d.forwardRef(function(t,r){const n=Ja(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:c,container:s,direction:f="down",easing:h=a,in:v,onEnter:m,onEntered:b,onEntering:w,onExit:O,onExited:_,onExiting:y,style:x,timeout:S=o,TransitionComponent:P=ii}=t,C=Re(t,ZRe),$=d.useRef(null),R=Tr(c.ref,$,r),k=z=>q=>{z&&(q===void 0?z($.current):z($.current,q))},T=k((z,q)=>{Lg(f,z,s),P2(z),m&&m(z,q)}),M=k((z,q)=>{const ee=jf({timeout:S,style:x,easing:h},{mode:"enter"});z.style.webkitTransition=n.transitions.create("-webkit-transform",I({},ee)),z.style.transition=n.transitions.create("transform",I({},ee)),z.style.webkitTransform="none",z.style.transform="none",w&&w(z,q)}),F=k(b),L=k(y),B=k(z=>{const q=jf({timeout:S,style:x,easing:h},{mode:"exit"});z.style.webkitTransition=n.transitions.create("-webkit-transform",q),z.style.transition=n.transitions.create("transform",q),Lg(f,z,s),O&&O(z)}),V=k(z=>{z.style.webkitTransition="",z.style.transition="",_&&_(z)}),H=z=>{i&&i($.current,z)},W=d.useCallback(()=>{$.current&&Lg(f,$.current,s)},[f,s]);return d.useEffect(()=>{if(v||f==="down"||f==="right")return;const z=op(()=>{$.current&&Lg(f,$.current,s)}),q=$o($.current);return q.addEventListener("resize",z),()=>{z.clear(),q.removeEventListener("resize",z)}},[f,v,s]),d.useEffect(()=>{v||W()},[v,W]),E.jsx(P,I({nodeRef:$,onEnter:T,onEntered:F,onEntering:M,onExit:B,onExited:V,onExiting:L,addEndListener:H,appear:l,in:v,timeout:S},C,{children:(z,q)=>d.cloneElement(c,I({ref:R,style:I({visibility:z==="exited"&&!v?"hidden":void 0},x,c.props.style)},q))}))});function r2e(e){return et("MuiDrawer",e)}ot("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const n2e=["BackdropProps"],a2e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],K9=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},o2e=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Pe(r)}`,n!=="temporary"&&`paperAnchorDocked${Pe(r)}`]};return tt(a,r2e,t)},i2e=te(F2,{name:"MuiDrawer",slot:"Root",overridesResolver:K9})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),oD=te("div",{shouldForwardProp:Tn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:K9})({flex:"0 0 auto"}),s2e=te(tu,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Pe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Pe(r.anchor)}`]]}})(({theme:e,ownerState:t})=>I({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}`})),Q9={left:"right",right:"left",top:"down",bottom:"up"};function l2e(e){return["left","right"].indexOf(e)!==-1}function u2e({direction:e},t){return e==="rtl"&&l2e(t)?Q9[t]:t}const c2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDrawer"}),a=Ja(),o=eu(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:c,children:s,className:f,elevation:h=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:m}={},onClose:b,open:w=!1,PaperProps:O={},SlideProps:_,TransitionComponent:y=G9,transitionDuration:x=i,variant:S="temporary"}=n,P=Re(n.ModalProps,n2e),C=Re(n,a2e),$=d.useRef(!1);d.useEffect(()=>{$.current=!0},[]);const R=u2e({direction:o?"rtl":"ltr"},l),T=I({},n,{anchor:l,elevation:h,open:w,variant:S},C),M=o2e(T),F=E.jsx(s2e,I({elevation:S==="temporary"?h:0,square:!0},O,{className:de(M.paper,O.className),ownerState:T,children:s}));if(S==="permanent")return E.jsx(oD,I({className:de(M.root,M.docked,f),ownerState:T,ref:r},C,{children:F}));const L=E.jsx(y,I({in:w,direction:Q9[R],timeout:x,appear:$.current},_,{children:F}));return S==="persistent"?E.jsx(oD,I({className:de(M.root,M.docked,f),ownerState:T,ref:r},C,{children:L})):E.jsx(i2e,I({BackdropProps:I({},c,m,{transitionDuration:x}),className:de(M.root,M.modal,f),open:w,ownerState:T,onClose:b,hideBackdrop:v,ref:r},C,P,{children:L}))});function d2e(e){return et("MuiFab",e)}const iD=ot("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),f2e=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],p2e=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${Pe(a)}`,t==="inherit"?"colorInherit":t]},i=tt(o,d2e,n);return I({},n,i)},h2e=te(ks,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Tn(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Pe(r.size)],t[r.color]]}})(({theme:e,ownerState:t})=>{var r,n;return I({},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"},[`&.${iD.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})=>I({},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})=>({[`&.${iD.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),v2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:l="button",disabled:c=!1,disableFocusRipple:s=!1,focusVisibleClassName:f,size:h="large",variant:v="circular"}=n,m=Re(n,f2e),b=I({},n,{color:i,component:l,disabled:c,disableFocusRipple:s,size:h,variant:v}),w=p2e(b);return E.jsx(h2e,I({className:de(w.root,o),component:l,disabled:c,focusRipple:!s,focusVisibleClassName:de(w.focusVisible,f),ownerState:b,ref:r},m,{classes:w,children:a}))}),m2e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],g2e=e=>{const{classes:t,disableUnderline:r}=e,a=tt({root:["root",!r&&"underline"],input:["input"]},DOe,t);return I({},t,a)},y2e=te(f1,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...c1(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return I({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${yu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${yu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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"},[`&.${yu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yu.disabled}, .${yu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&I({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}))}),b2e=te(p1,{name:"MuiFilledInput",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>I({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})),D2=d.forwardRef(function(t,r){var n,a,o,i;const l=rt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:s,fullWidth:f=!1,inputComponent:h="input",multiline:v=!1,slotProps:m,slots:b={},type:w="text"}=l,O=Re(l,m2e),_=I({},l,{fullWidth:f,inputComponent:h,multiline:v,type:w}),y=g2e(l),x={root:{ownerState:_},input:{ownerState:_}},S=m??s?sa(x,m??s):x,P=(n=(a=b.root)!=null?a:c.Root)!=null?n:y2e,C=(o=(i=b.input)!=null?i:c.Input)!=null?o:b2e;return E.jsx(h1,I({slots:{root:P,input:C},componentsProps:S,fullWidth:f,inputComponent:h,multiline:v,ref:r,type:w},O,{classes:y}))});D2.muiName="Input";function _2e(e){return et("MuiFormControl",e)}ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const x2e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],w2e=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${Pe(r)}`,n&&"fullWidth"]};return tt(a,_2e,t)},S2e=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,t[`margin${Pe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>I({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%"})),X9=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:l="div",disabled:c=!1,error:s=!1,focused:f,fullWidth:h=!1,hiddenLabel:v=!1,margin:m="none",required:b=!1,size:w="medium",variant:O="outlined"}=n,_=Re(n,x2e),y=I({},n,{color:i,component:l,disabled:c,error:s,fullWidth:h,hiddenLabel:v,margin:m,required:b,size:w,variant:O}),x=w2e(y),[S,P]=d.useState(()=>{let L=!1;return a&&d.Children.forEach(a,B=>{if(!_y(B,["Input","Select"]))return;const V=_y(B,["Select"])?B.props.input:B;V&&jOe(V.props)&&(L=!0)}),L}),[C,$]=d.useState(()=>{let L=!1;return a&&d.Children.forEach(a,B=>{_y(B,["Input","Select"])&&(Wb(B.props,!0)||Wb(B.props.inputProps,!0))&&(L=!0)}),L}),[R,k]=d.useState(!1);c&&R&&k(!1);const T=f!==void 0&&!c?f:R;let M;const F=d.useMemo(()=>({adornedStart:S,setAdornedStart:P,color:i,disabled:c,error:s,filled:C,focused:T,fullWidth:h,hiddenLabel:v,size:w,onBlur:()=>{k(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{k(!0)},registerEffect:M,required:b,variant:O}),[S,i,c,s,C,T,h,v,M,b,w,O]);return E.jsx(u1.Provider,{value:F,children:E.jsx(S2e,I({as:l,ownerState:y,className:de(x.root,o),ref:r},_,{children:a}))})}),up=eSe({createStyledComponent:te("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>rt({props:e,name:"MuiStack"})});function E2e(e){return et("MuiFormControlLabel",e)}const ch=ot("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),C2e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],O2e=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${Pe(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return tt(i,E2e,t)},P2e=te("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ch.label}`]:t.label},t.root,t[`labelPlacement${Pe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>I({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ch.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},{[`& .${ch.label}`]:{[`&.${ch.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),R2e=te("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ch.error}`]:{color:(e.vars||e).palette.error.main}})),_C=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:l={},control:c,disabled:s,disableTypography:f,label:h,labelPlacement:v="end",required:m,slotProps:b={}}=o,w=Re(o,C2e),O=si(),_=(n=s??c.props.disabled)!=null?n:O==null?void 0:O.disabled,y=m??c.props.required,x={disabled:_,required:y};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof c.props[k]>"u"&&typeof o[k]<"u"&&(x[k]=o[k])});const S=js({props:o,muiFormControl:O,states:["error"]}),P=I({},o,{disabled:_,labelPlacement:v,required:y,error:S.error}),C=O2e(P),$=(a=b.typography)!=null?a:l.typography;let R=h;return R!=null&&R.type!==$t&&!f&&(R=E.jsx($t,I({component:"span"},$,{className:de(C.label,$==null?void 0:$.className),children:R}))),E.jsxs(P2e,I({className:de(C.root,i),ownerState:P,ref:r},w,{children:[d.cloneElement(c,x),y?E.jsxs(up,{display:"block",children:[R,E.jsxs(R2e,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):R]}))});function $2e(e){return et("MuiFormGroup",e)}ot("MuiFormGroup",["root","row","error"]);const k2e=["className","row"],j2e=e=>{const{classes:t,row:r,error:n}=e;return tt({root:["root",r&&"row",n&&"error"]},$2e,t)},T2e=te("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>I({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),I2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Re(n,k2e),l=si(),c=js({props:n,muiFormControl:l,states:["error"]}),s=I({},n,{row:o,error:c.error}),f=j2e(s);return E.jsx(T2e,I({className:de(f.root,a),ownerState:s,ref:r},i))});function A2e(e){return et("MuiFormHelperText",e)}const sD=ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var lD;const M2e=["children","className","component","disabled","error","filled","focused","margin","required","variant"],F2e=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:l,required:c}=e,s={root:["root",a&&"disabled",o&&"error",n&&`size${Pe(n)}`,r&&"contained",l&&"focused",i&&"filled",c&&"required"]};return tt(s,A2e,t)},L2e=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Pe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${sD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),N2=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,l=Re(n,M2e),c=si(),s=js({props:n,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=I({},n,{component:i,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),h=F2e(f);return E.jsx(L2e,I({as:i,ownerState:f,className:de(h.root,o),ref:r},l,{children:a===" "?lD||(lD=E.jsx("span",{className:"notranslate",children:"​"})):a}))});function D2e(e){return et("MuiFormLabel",e)}const Th=ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),N2e=["children","className","color","component","disabled","error","filled","focused","required"],B2e=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:l}=e,c={root:["root",`color${Pe(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return tt(c,D2e,t)},z2e=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Th.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Th.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Th.error}`]:{color:(e.vars||e).palette.error.main}})),U2e=te("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Th.error}`]:{color:(e.vars||e).palette.error.main}})),V2e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,l=Re(n,N2e),c=si(),s=js({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=I({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),h=B2e(f);return E.jsxs(z2e,I({as:i,ownerState:f,className:de(h.root,o),ref:r},l,{children:[a,s.required&&E.jsxs(U2e,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),W2e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xC(e){return`scale(${e}, ${e**2})`}const H2e={entering:{opacity:1,transform:xC(1)},entered:{opacity:1,transform:"none"}},sS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xv=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:l,onEnter:c,onEntered:s,onEntering:f,onExit:h,onExited:v,onExiting:m,style:b,timeout:w="auto",TransitionComponent:O=ii}=t,_=Re(t,W2e),y=zu(),x=d.useRef(),S=Ja(),P=d.useRef(null),C=Tr(P,o.ref,r),$=V=>H=>{if(V){const W=P.current;H===void 0?V(W):V(W,H)}},R=$(f),k=$((V,H)=>{P2(V);const{duration:W,delay:z,easing:q}=jf({style:b,timeout:w,easing:i},{mode:"enter"});let ee;w==="auto"?(ee=S.transitions.getAutoHeightDuration(V.clientHeight),x.current=ee):ee=W,V.style.transition=[S.transitions.create("opacity",{duration:ee,delay:z}),S.transitions.create("transform",{duration:sS?ee:ee*.666,delay:z,easing:q})].join(","),c&&c(V,H)}),T=$(s),M=$(m),F=$(V=>{const{duration:H,delay:W,easing:z}=jf({style:b,timeout:w,easing:i},{mode:"exit"});let q;w==="auto"?(q=S.transitions.getAutoHeightDuration(V.clientHeight),x.current=q):q=H,V.style.transition=[S.transitions.create("opacity",{duration:q,delay:W}),S.transitions.create("transform",{duration:sS?q:q*.666,delay:sS?W:W||q*.333,easing:z})].join(","),V.style.opacity=0,V.style.transform=xC(.75),h&&h(V)}),L=$(v),B=V=>{w==="auto"&&y.start(x.current||0,V),n&&n(P.current,V)};return E.jsx(O,I({appear:a,in:l,nodeRef:P,onEnter:k,onEntered:T,onEntering:R,onExit:F,onExited:L,onExiting:M,addEndListener:B,timeout:w==="auto"?null:w},_,{children:(V,H)=>d.cloneElement(o,I({style:I({opacity:0,transform:xC(.75),visibility:V==="exited"&&!l?"hidden":void 0},H2e[V],b,o.props.style),ref:C},H))}))});xv.muiSupportAuto=!0;const q2e=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],G2e=e=>{const{classes:t,disableUnderline:r}=e,a=tt({root:["root",!r&&"underline"],input:["input"]},FOe,t);return I({},t,a)},K2e=te(f1,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...c1(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})`),I({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"},[`&.${Gp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gp.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(.${Gp.disabled}, .${Gp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gp.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Q2e=te(p1,{name:"MuiInput",slot:"Input",overridesResolver:d1})({}),g1=d.forwardRef(function(t,r){var n,a,o,i;const l=rt({props:t,name:"MuiInput"}),{disableUnderline:c,components:s={},componentsProps:f,fullWidth:h=!1,inputComponent:v="input",multiline:m=!1,slotProps:b,slots:w={},type:O="text"}=l,_=Re(l,q2e),y=G2e(l),S={root:{ownerState:{disableUnderline:c}}},P=b??f?sa(b??f,S):S,C=(n=(a=w.root)!=null?a:s.Root)!=null?n:K2e,$=(o=(i=w.input)!=null?i:s.Input)!=null?o:Q2e;return E.jsx(h1,I({slots:{root:C,input:$},slotProps:P,fullWidth:h,inputComponent:v,multiline:m,ref:r,type:O},_,{classes:y}))});g1.muiName="Input";function X2e(e){return et("MuiInputAdornment",e)}const uD=ot("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var cD;const Y2e=["children","className","component","disablePointerEvents","disableTypography","position","variant"],J2e=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Pe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Z2e=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,l={root:["root",r&&"disablePointerEvents",a&&`position${Pe(a)}`,i,n&&"hiddenLabel",o&&`size${Pe(o)}`]};return tt(l,X2e,t)},e$e=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:J2e})(({theme:e,ownerState:t})=>I({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${uD.positionStart}&:not(.${uD.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Hd=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:s,variant:f}=n,h=Re(n,Y2e),v=si()||{};let m=f;f&&v.variant,v&&!m&&(m=v.variant);const b=I({},n,{hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:l,position:s,variant:m}),w=Z2e(b);return E.jsx(u1.Provider,{value:null,children:E.jsx(e$e,I({as:i,ownerState:b,className:de(w.root,o),ref:r},h,{children:typeof a=="string"&&!c?E.jsx($t,{color:"text.secondary",children:a}):E.jsxs(d.Fragment,{children:[s==="start"?cD||(cD=E.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})});function t$e(e){return et("MuiInputLabel",e)}ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const r$e=["disableAnimation","margin","shrink","variant","className"],n$e=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:l}=e,c={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${Pe(n)}`,i],asterisk:[l&&"asterisk"]},s=tt(c,t$e,t);return I({},t,s)},a$e=te(V2e,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Th.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})=>I({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"&&I({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&&I({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"&&I({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)"}))),Y9=d.forwardRef(function(t,r){const n=rt({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,l=Re(n,r$e),c=si();let s=o;typeof s>"u"&&c&&(s=c.filled||c.focused||c.adornedStart);const f=js({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),h=I({},n,{disableAnimation:a,formControl:c,shrink:s,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),v=n$e(h);return E.jsx(a$e,I({"data-shrink":s,ownerState:h,ref:r,className:de(v.root,i)},l,{classes:v}))});function o$e(e){return et("MuiLinearProgress",e)}ot("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const i$e=["className","color","value","valueBuffer","variant"];let cp=e=>e,dD,fD,pD,hD,vD,mD;const wC=4,s$e=$s(dD||(dD=cp` 0% { left: -35%; right: 100%; @@ -240,7 +240,7 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu left: 100%; right: -90%; } -`)),u$e=$s(fD||(fD=cp` +`)),l$e=$s(fD||(fD=cp` 0% { left: -200%; right: 100%; @@ -255,7 +255,7 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu left: 107%; right: -8%; } -`)),c$e=$s(pD||(pD=cp` +`)),u$e=$s(pD||(pD=cp` 0% { opacity: 1; background-position: 0 -23px; @@ -270,16 +270,16 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu opacity: 1; background-position: -200px -23px; } -`)),d$e=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${Pe(n)}`,r],dashed:["dashed",`dashedColor${Pe(n)}`],bar1:["bar",`barColor${Pe(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Pe(n)}`,r==="buffer"&&`color${Pe(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return tt(a,i$e,t)},B2=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?o1(e.palette[t].main,.62):a1(e.palette[t].main,.5),f$e=te("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Pe(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>T({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:B2(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)"})),p$e=te("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Pe(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=B2(t,e.color);return T({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"})},Rc(hD||(hD=cp` +`)),c$e=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${Pe(n)}`,r],dashed:["dashed",`dashedColor${Pe(n)}`],bar1:["bar",`barColor${Pe(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${Pe(n)}`,r==="buffer"&&`color${Pe(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return tt(a,o$e,t)},B2=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?o1(e.palette[t].main,.62):a1(e.palette[t].main,.5),d$e=te("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Pe(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>I({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:B2(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)"})),f$e=te("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Pe(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=B2(t,e.color);return I({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"})},Rc(hD||(hD=cp` animation: ${0} 3s infinite linear; - `),c$e)),h$e=te("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Pe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>T({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${wC}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Rc(vD||(vD=cp` + `),u$e)),p$e=te("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Pe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>I({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")&&Rc(vD||(vD=cp` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),l$e)),v$e=te("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Pe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>T({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:B2(t,e.color),transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Rc(mD||(mD=cp` + `),s$e)),h$e=te("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Pe(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>I({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:B2(t,e.color),transition:`transform .${wC}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Rc(mD||(mD=cp` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),u$e)),m$e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:i,valueBuffer:l,variant:c="indeterminate"}=n,s=Re(n,s$e),f=T({},n,{color:o,variant:c}),h=d$e(f),v=eu(),m={},b={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&i!==void 0){m["aria-valuenow"]=Math.round(i),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let w=i-100;v&&(w=-w),b.bar1.transform=`translateX(${w}%)`}if(c==="buffer"&&l!==void 0){let w=(l||0)-100;v&&(w=-w),b.bar2.transform=`translateX(${w}%)`}return E.jsxs(f$e,T({className:de(h.root,a),ownerState:f,role:"progressbar"},m,{ref:r},s,{children:[c==="buffer"?E.jsx(p$e,{className:h.dashed,ownerState:f}):null,E.jsx(h$e,{className:h.bar1,ownerState:f,style:b.bar1}),c==="determinate"?null:E.jsx(v$e,{className:h.bar2,ownerState:f,style:b.bar2})]}))});function g$e(e){return et("MuiLink",e)}const y$e=ot("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),J9={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},b$e=e=>J9[e]||e,_$e=({theme:e,ownerState:t})=>{const r=b$e(t.color),n=Rf(e,`palette.${r}`,!1)||t.color,a=Rf(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:nr(n,.4)},x$e=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],w$e=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${Pe(a)}`,r==="button"&&"button",n&&"focusVisible"]};return tt(o,g$e,t)},S$e=te($t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Pe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:_$e({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"},[`&.${y$e.focusVisible}`]:{outline:"auto"}})),E$e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:l,onFocus:c,TypographyClasses:s,underline:f="always",variant:h="inherit",sx:v}=n,m=Re(n,x$e),{isFocusVisibleRef:b,onBlur:w,onFocus:O,ref:_}=n1(),[y,x]=d.useState(!1),S=Ir(r,_),P=k=>{w(k),b.current===!1&&x(!1),l&&l(k)},C=k=>{O(k),b.current===!0&&x(!0),c&&c(k)},$=T({},n,{color:o,component:i,focusVisible:y,underline:f,variant:h}),R=w$e($);return E.jsx(S$e,T({color:o,className:de(R.root,a),classes:s,component:i,onBlur:P,onFocus:C,ref:S,ownerState:$,variant:h,sx:[...Object.keys(J9).includes(o)?[]:[{color:o}],...Array.isArray(v)?v:[v]]},m))}),wv=d.createContext({});function C$e(e){return et("MuiList",e)}ot("MuiList",["root","padding","dense","subheader"]);const O$e=["children","className","component","dense","disablePadding","subheader"],P$e=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return tt({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},C$e,t)},R$e=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>T({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),$$e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:s}=n,f=Re(n,O$e),h=d.useMemo(()=>({dense:l}),[l]),v=T({},n,{component:i,dense:l,disablePadding:c}),m=P$e(v);return E.jsx(wv.Provider,{value:h,children:E.jsxs(R$e,T({as:i,className:de(m.root,o),ref:r,ownerState:v},f,{children:[s,a]}))})});function k$e(e){return et("MuiListItemIcon",e)}const gD=ot("MuiListItemIcon",["root","alignItemsFlexStart"]),j$e=["className"],I$e=e=>{const{alignItems:t,classes:r}=e;return tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},k$e,r)},T$e=te("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>T({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Vu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Re(n,j$e),i=d.useContext(wv),l=T({},n,{alignItems:i.alignItems}),c=I$e(l);return E.jsx(T$e,T({className:de(c.root,a),ownerState:l,ref:r},o))});function A$e(e){return et("MuiListItemText",e)}const H0=ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),M$e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],F$e=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return tt({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},A$e,t)},L$e=te("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${H0.primary}`]:t.primary},{[`& .${H0.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>T({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Td=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:l=!1,primary:c,primaryTypographyProps:s,secondary:f,secondaryTypographyProps:h}=n,v=Re(n,M$e),{dense:m}=d.useContext(wv);let b=c??a,w=f;const O=T({},n,{disableTypography:i,inset:l,primary:!!b,secondary:!!w,dense:m}),_=F$e(O);return b!=null&&b.type!==$t&&!i&&(b=E.jsx($t,T({variant:m?"body2":"body1",className:_.primary,component:s!=null&&s.variant?void 0:"span",display:"block"},s,{children:b}))),w!=null&&w.type!==$t&&!i&&(w=E.jsx($t,T({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:w}))),E.jsxs(L$e,T({className:de(_.root,o),ownerState:O,ref:r},v,{children:[b,w]}))}),D$e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function yD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Z9(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 Kp(e,t,r,n,a,o){let i=!1,l=a(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const c=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Z9(l,o)||c)l=a(e,l,r);else return l.focus(),!0}return!1}const eU=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:l,disabledItemsFocusable:c=!1,disableListWrap:s=!1,onKeyDown:f,variant:h="selectedMenu"}=t,v=Re(t,D$e),m=d.useRef(null),b=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qa(()=>{a&&m.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const P=!m.current.style.width;if(x.clientHeight{const S=m.current,P=x.key,C=tn(S).activeElement;if(P==="ArrowDown")x.preventDefault(),Kp(S,C,s,c,lS);else if(P==="ArrowUp")x.preventDefault(),Kp(S,C,s,c,yD);else if(P==="Home")x.preventDefault(),Kp(S,null,s,c,lS);else if(P==="End")x.preventDefault(),Kp(S,null,s,c,yD);else if(P.length===1){const $=b.current,R=P.toLowerCase(),k=performance.now();$.keys.length>0&&(k-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&R!==$.keys[0]&&($.repeating=!1)),$.lastTime=k,$.keys.push(R);const I=C&&!$.repeating&&Z9(C,$);$.previousKeyMatched&&(I||Kp(S,C,!1,c,lS,$))?x.preventDefault():$.previousKeyMatched=!1}f&&f(x)},O=Ir(m,r);let _=-1;d.Children.forEach(i,(x,S)=>{if(!d.isValidElement(x)){_===S&&(_+=1,_>=i.length&&(_=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||_===-1)&&(_=S),_===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(_+=1,_>=i.length&&(_=-1))});const y=d.Children.map(i,(x,S)=>{if(S===_){const P={};return o&&(P.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(P.tabIndex=0),d.cloneElement(x,P)}return x});return E.jsx($$e,T({role:"menu",ref:O,className:l,onKeyDown:w,tabIndex:a?0:-1},v,{children:y}))});function N$e(e){return et("MuiPopover",e)}ot("MuiPopover",["root","paper"]);const B$e=["onEntering"],z$e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],U$e=["slotProps"];function bD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function _D(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function xD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function uS(e){return typeof e=="function"?e():e}const V$e=e=>{const{classes:t}=e;return tt({root:["root"],paper:["paper"]},N$e,t)},W$e=te(F2,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tU=te(tu,{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}),z2=d.forwardRef(function(t,r){var n,a,o;const i=rt({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:v,className:m,container:b,elevation:w=8,marginThreshold:O=16,open:_,PaperProps:y={},slots:x,slotProps:S,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:C=xv,transitionDuration:$="auto",TransitionProps:{onEntering:R}={},disableScrollLock:k=!1}=i,I=Re(i.TransitionProps,B$e),M=Re(i,z$e),F=(n=S==null?void 0:S.paper)!=null?n:y,L=d.useRef(),B=Ir(L,F.ref),V=T({},i,{anchorOrigin:s,anchorReference:h,elevation:w,marginThreshold:O,externalPaperSlotProps:F,transformOrigin:P,TransitionComponent:C,transitionDuration:$,TransitionProps:I}),H=V$e(V),W=d.useCallback(()=>{if(h==="anchorPosition")return f;const ye=uS(c),Le=(ye&&ye.nodeType===1?ye:tn(L.current).body).getBoundingClientRect();return{top:Le.top+bD(Le,s.vertical),left:Le.left+_D(Le,s.horizontal)}},[c,s.horizontal,s.vertical,f,h]),z=d.useCallback(ye=>({vertical:bD(ye,P.vertical),horizontal:_D(ye,P.horizontal)}),[P.horizontal,P.vertical]),q=d.useCallback(ye=>{const je={width:ye.offsetWidth,height:ye.offsetHeight},Le=z(je);if(h==="none")return{top:null,left:null,transformOrigin:xD(Le)};const st=W();let Xe=st.top-Le.vertical,U=st.left-Le.horizontal;const K=Xe+je.height,Z=U+je.width,ie=$o(uS(c)),ue=ie.innerHeight-O,ce=ie.innerWidth-O;if(O!==null&&Xeue){const Ee=K-ue;Xe-=Ee,Le.vertical+=Ee}if(O!==null&&Uce){const Ee=Z-ce;U-=Ee,Le.horizontal+=Ee}return{top:`${Math.round(Xe)}px`,left:`${Math.round(U)}px`,transformOrigin:xD(Le)}},[c,h,W,z,O]),[ee,oe]=d.useState(_),J=d.useCallback(()=>{const ye=L.current;if(!ye)return;const je=q(ye);je.top!==null&&(ye.style.top=je.top),je.left!==null&&(ye.style.left=je.left),ye.style.transformOrigin=je.transformOrigin,oe(!0)},[q]);d.useEffect(()=>(k&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[c,k,J]);const we=(ye,je)=>{R&&R(ye,je),J()},le=()=>{oe(!1)};d.useEffect(()=>{_&&J()}),d.useImperativeHandle(l,()=>_?{updatePosition:()=>{J()}}:null,[_,J]),d.useEffect(()=>{if(!_)return;const ye=op(()=>{J()}),je=$o(c);return je.addEventListener("resize",ye),()=>{ye.clear(),je.removeEventListener("resize",ye)}},[c,_,J]);let ge=$;$==="auto"&&!C.muiSupportAuto&&(ge=void 0);const pe=b||(c?tn(uS(c)).body:void 0),me=(a=x==null?void 0:x.root)!=null?a:W$e,xe=(o=x==null?void 0:x.paper)!=null?o:tU,ne=ko({elementType:xe,externalSlotProps:T({},F,{style:ee?F.style:T({},F.style,{opacity:0})}),additionalProps:{elevation:w,ref:B},ownerState:V,className:de(H.paper,F==null?void 0:F.className)}),Te=ko({elementType:me,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:pe,open:_},ownerState:V,className:de(H.root,m)}),{slotProps:ve}=Te,$e=Re(Te,U$e);return E.jsx(me,T({},$e,!mv(me)&&{slotProps:ve,disableScrollLock:k},{children:E.jsx(C,T({appear:!0,in:_,onEntering:we,onExited:le,timeout:ge},I,{children:E.jsx(xe,T({},ne,{children:v}))}))}))});function H$e(e){return et("MuiMenu",e)}ot("MuiMenu",["root","paper","list"]);const q$e=["onEntering"],G$e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],K$e={vertical:"top",horizontal:"right"},Q$e={vertical:"top",horizontal:"left"},X$e=e=>{const{classes:t}=e;return tt({root:["root"],paper:["paper"],list:["list"]},H$e,t)},Y$e=te(z2,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J$e=te(tU,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Z$e=te(eU,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),y1=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:c,disableAutoFocusItem:s=!1,MenuListProps:f={},onClose:h,open:v,PaperProps:m={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:O}={},variant:_="selectedMenu",slots:y={},slotProps:x={}}=o,S=Re(o.TransitionProps,q$e),P=Re(o,G$e),C=eu(),$=T({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:f,onEntering:O,PaperProps:m,transitionDuration:w,TransitionProps:S,variant:_}),R=X$e($),k=i&&!s&&v,I=d.useRef(null),M=(z,q)=>{I.current&&I.current.adjustStyleForScrollbar(z,{direction:C?"rtl":"ltr"}),O&&O(z,q)},F=z=>{z.key==="Tab"&&(z.preventDefault(),h&&h(z,"tabKeyDown"))};let L=-1;d.Children.map(l,(z,q)=>{d.isValidElement(z)&&(z.props.disabled||(_==="selectedMenu"&&z.props.selected||L===-1)&&(L=q))});const B=(n=y.paper)!=null?n:J$e,V=(a=x.paper)!=null?a:m,H=ko({elementType:y.root,externalSlotProps:x.root,ownerState:$,className:[R.root,c]}),W=ko({elementType:B,externalSlotProps:V,ownerState:$,className:R.paper});return E.jsx(Y$e,T({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?K$e:Q$e,slots:{paper:B,root:y.root},slotProps:{root:H,paper:W},open:v,ref:r,transitionDuration:w,TransitionProps:T({onEntering:M},S),ownerState:$},P,{classes:b,children:E.jsx(Z$e,T({onKeyDown:F,actions:I,autoFocus:i&&(L===-1||s),autoFocusItem:k,variant:_},f,{className:de(R.list,f.className),children:l}))}))});function eke(e){return et("MuiMenuItem",e)}const Qp=ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tke=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rke=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},nke=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,c=tt({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},eke,i);return T({},i,c)},ake=te(ks,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:rke})(({theme:e,ownerState:t})=>T({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nr(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})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aD.inset}`]:{marginLeft:52},[`& .${H0.root}`]:{marginTop:0,marginBottom:0},[`& .${H0.inset}`]:{paddingLeft:36},[`& .${gD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gD.root} svg`]:{fontSize:"1.25rem"}}))),za=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:s,role:f="menuitem",tabIndex:h,className:v}=n,m=Re(n,tke),b=d.useContext(wv),w=d.useMemo(()=>({dense:i||b.dense||!1,disableGutters:c}),[b.dense,i,c]),O=d.useRef(null);qa(()=>{a&&O.current&&O.current.focus()},[a]);const _=T({},n,{dense:w.dense,divider:l,disableGutters:c}),y=nke(n),x=Ir(O,r);let S;return n.disabled||(S=h!==void 0?h:-1),E.jsx(wv.Provider,{value:w,children:E.jsx(ake,T({ref:x,role:f,tabIndex:S,component:o,focusVisibleClassName:de(y.focusVisible,s),className:de(y.root,v)},m,{ownerState:_,classes:y}))})});function rU(e){return et("MuiNativeSelect",e)}const U2=ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),oke=["className","disabled","error","IconComponent","inputRef","variant"],ike=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,l={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Pe(r)}`,o&&"iconOpen",n&&"disabled"]};return tt(l,rU,t)},nU=({ownerState:e,theme:t})=>T({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":T({},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"},[`&.${U2.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}}),ske=te("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:In,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${U2.multiple}`]:t.multiple}]}})(nU),aU=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${U2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),lke=te("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Pe(r.variant)}`],r.open&&t.iconOpen]}})(aU),oU=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:l,variant:c="standard"}=t,s=Re(t,oke),f=T({},t,{disabled:a,variant:c,error:o}),h=ike(f);return E.jsxs(d.Fragment,{children:[E.jsx(ske,T({ownerState:f,className:de(h.select,n),disabled:a,ref:l||r},s)),t.multiple?null:E.jsx(lke,{as:i,ownerState:f,className:h.icon})]})}),uke=["className","children","classes","IconComponent","input","inputProps","variant"],cke=["root"],dke=e=>{const{classes:t}=e;return tt({root:["root"]},rU,t)},fke=E.jsx(g1,{}),SC=d.forwardRef(function(t,r){const n=rt({name:"MuiNativeSelect",props:t}),{className:a,children:o,classes:i={},IconComponent:l=B9,input:c=fke,inputProps:s}=n,f=Re(n,uke),h=si(),v=js({props:n,muiFormControl:h,states:["variant"]}),m=T({},n,{classes:i}),b=dke(m),w=Re(i,cke);return E.jsx(d.Fragment,{children:d.cloneElement(c,T({inputComponent:oU,inputProps:T({children:o,classes:w,IconComponent:l,variant:v.variant,type:void 0},s,c?c.props.inputProps:{}),ref:r},f,{className:de(b.root,c.props.className,a)}))})});SC.muiName="Select";var wD;const pke=["children","classes","className","label","notched"],hke=te("fieldset",{shouldForwardProp:In})({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%"}),vke=te("legend",{shouldForwardProp:In})(({ownerState:e,theme:t})=>T({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&T({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 mke(e){const{className:t,label:r,notched:n}=e,a=Re(e,pke),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return E.jsx(hke,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:E.jsx(vke,{ownerState:i,children:o?E.jsx("span",{children:r}):wD||(wD=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const gke=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yke=e=>{const{classes:t}=e,n=tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},DOe,t);return T({},t,n)},bke=te(f1,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:c1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return T({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Gs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Gs.focused} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Gs.error} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Gs.disabled} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&T({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),_ke=te(mke,{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}}),xke=te(p1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>T({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),V2=d.forwardRef(function(t,r){var n,a,o,i,l;const c=rt({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:f=!1,inputComponent:h="input",label:v,multiline:m=!1,notched:b,slots:w={},type:O="text"}=c,_=Re(c,gke),y=yke(c),x=si(),S=js({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=T({},c,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:f,hiddenLabel:S.hiddenLabel,multiline:m,size:S.size,type:O}),C=(n=(a=w.root)!=null?a:s.Root)!=null?n:bke,$=(o=(i=w.input)!=null?i:s.Input)!=null?o:xke;return E.jsx(h1,T({slots:{root:C,input:$},renderSuffix:R=>E.jsx(_ke,{ownerState:P,className:y.notchedOutline,label:v!=null&&v!==""&&S.required?l||(l=E.jsxs(d.Fragment,{children:[v," ","*"]})):v,notched:typeof b<"u"?b:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:h,multiline:m,ref:r,type:O},_,{classes:T({},y,{notchedOutline:null})}))});V2.muiName="Input";function wke(e){return et("MuiPagination",e)}ot("MuiPagination",["root","ul","outlined","text"]);const Ske=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Eke(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:l=!1,onChange:c,page:s,showFirstButton:f=!1,showLastButton:h=!1,siblingCount:v=1}=e,m=Re(e,Ske),[b,w]=kf({controlled:s,default:a,name:r,state:"page"}),O=(k,I)=>{s||w(I),c&&c(k,I)},_=(k,I)=>{const M=I-k+1;return Array.from({length:M},(F,L)=>k+L)},y=_(1,Math.min(t,n)),x=_(Math.max(n-t+1,t+1),n),S=Math.max(Math.min(b-v,n-t-v*2-1),t+2),P=Math.min(Math.max(b+v,t+v*2+2),x.length>0?x[0]-2:n-1),C=[...f?["first"]:[],...l?[]:["previous"],...y,...S>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...x,...i?[]:["next"],...h?["last"]:[]],$=k=>{switch(k){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return n;default:return null}},R=C.map(k=>typeof k=="number"?{onClick:I=>{O(I,k)},type:"page",page:k,selected:k===b,disabled:o,"aria-current":k===b?"true":void 0}:{onClick:I=>{O(I,$(k))},type:k,page:$(k),selected:!1,disabled:o||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?b>=n:b<=1)});return T({items:R},m)}function Cke(e){return et("MuiPaginationItem",e)}const uo=ot("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),EC=Za(E.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),CC=Za(E.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),SD=Za(E.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),ED=Za(E.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Oke=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],iU=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.variant==="text"&&t[`text${Pe(r.color)}`],r.variant==="outlined"&&t[`outlined${Pe(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]},Pke=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:l,variant:c}=e,s={root:["root",`size${Pe(o)}`,c,i,r!=="standard"&&`color${Pe(r)}`,r!=="standard"&&`${c}${Pe(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return tt(s,Cke,t)},Rke=te("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:iU})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${uo.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)})),$ke=te(ks,{name:"MuiPaginationItem",slot:"Root",overridesResolver:iU})(({theme:e,ownerState:t})=>T({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uo.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"}},[`&.${uo.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}))`:nr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${uo.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>T({},t.variant==="text"&&{[`&.${uo.selected}`]:T({},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}},[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${uo.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)"}`,[`&.${uo.selected}`]:T({},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)`:nr(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:nr(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}))`:nr(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${uo.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),kke=te("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>T({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),jke=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:l={},disabled:c=!1,page:s,selected:f=!1,shape:h="circular",size:v="medium",slots:m={},type:b="page",variant:w="text"}=n,O=Re(n,Oke),_=T({},n,{color:o,disabled:c,selected:f,shape:h,size:v,type:b,variant:w}),y=eu(),x=Pke(_),P=(y?{previous:m.next||l.next||ED,next:m.previous||l.previous||SD,last:m.first||l.first||EC,first:m.last||l.last||CC}:{previous:m.previous||l.previous||SD,next:m.next||l.next||ED,first:m.first||l.first||EC,last:m.last||l.last||CC})[b];return b==="start-ellipsis"||b==="end-ellipsis"?E.jsx(Rke,{ref:r,ownerState:_,className:de(x.root,a),children:"…"}):E.jsxs($ke,T({ref:r,ownerState:_,component:i,disabled:c,className:de(x.root,a)},O,{children:[b==="page"&&s,P?E.jsx(kke,{as:P,ownerState:_,className:x.icon}):null]}))}),Ike=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Tke=e=>{const{classes:t,variant:r}=e;return tt({root:["root",r],ul:["ul"]},wke,t)},Ake=te("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Mke=te("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Fke(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Lke=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:l=1,defaultPage:c=1,disabled:s=!1,getItemAriaLabel:f=Fke,hideNextButton:h=!1,hidePrevButton:v=!1,renderItem:m=R=>E.jsx(jke,T({},R)),shape:b="circular",showFirstButton:w=!1,showLastButton:O=!1,siblingCount:_=1,size:y="medium",variant:x="text"}=n,S=Re(n,Ike),{items:P}=Eke(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:l,defaultPage:c,disabled:s,getItemAriaLabel:f,hideNextButton:h,hidePrevButton:v,renderItem:m,shape:b,showFirstButton:w,showLastButton:O,siblingCount:_,size:y,variant:x}),$=Tke(C);return E.jsx(Ake,T({"aria-label":"pagination navigation",className:de($.root,o),ownerState:C,ref:r},S,{children:E.jsx(Mke,{className:$.ul,ownerState:C,children:P.map((R,k)=>E.jsx("li",{children:m(T({},R,{color:i,"aria-label":f(R.type,R.page,R.selected),shape:b,size:y,variant:x}))},k))})}))});function Dke(e){return et("MuiSelect",e)}const Xp=ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var CD;const Nke=["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"],Bke=te("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Xp.select}`]:t.select},{[`&.${Xp.select}`]:t[r.variant]},{[`&.${Xp.error}`]:t.error},{[`&.${Xp.multiple}`]:t.multiple}]}})(nU,{[`&.${Xp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zke=te("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Pe(r.variant)}`],r.open&&t.iconOpen]}})(aU),Uke=te("input",{shouldForwardProp:e=>E9(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 OD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Vke(e){return e==null||typeof e=="string"&&!e.trim()}const Wke=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,l={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Pe(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return tt(l,Dke,t)},Hke=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:l,children:c,className:s,defaultOpen:f,defaultValue:h,disabled:v,displayEmpty:m,error:b=!1,IconComponent:w,inputRef:O,labelId:_,MenuProps:y={},multiple:x,name:S,onBlur:P,onChange:C,onClose:$,onFocus:R,onOpen:k,open:I,readOnly:M,renderValue:F,SelectDisplayProps:L={},tabIndex:B,value:V,variant:H="standard"}=t,W=Re(t,Nke),[z,q]=kf({controlled:V,default:h,name:"Select"}),[ee,oe]=kf({controlled:I,default:f,name:"Select"}),J=d.useRef(null),we=d.useRef(null),[le,ge]=d.useState(null),{current:pe}=d.useRef(I!=null),[me,xe]=d.useState(),ne=Ir(r,O),Te=d.useCallback(qe=>{we.current=qe,qe&&ge(qe)},[]),ve=le==null?void 0:le.parentNode;d.useImperativeHandle(ne,()=>({focus:()=>{we.current.focus()},node:J.current,value:z}),[z]),d.useEffect(()=>{f&&ee&&le&&!pe&&(xe(l?null:ve.clientWidth),we.current.focus())},[le,l]),d.useEffect(()=>{i&&we.current.focus()},[i]),d.useEffect(()=>{if(!_)return;const qe=tn(we.current).getElementById(_);if(qe){const pt=()=>{getSelection().isCollapsed&&we.current.focus()};return qe.addEventListener("click",pt),()=>{qe.removeEventListener("click",pt)}}},[_]);const $e=(qe,pt)=>{qe?k&&k(pt):$&&$(pt),pe||(xe(l?null:ve.clientWidth),oe(qe))},ye=qe=>{qe.button===0&&(qe.preventDefault(),we.current.focus(),$e(!0,qe))},je=qe=>{$e(!1,qe)},Le=d.Children.toArray(c),st=qe=>{const pt=Le.find(Me=>Me.props.value===qe.target.value);pt!==void 0&&(q(pt.props.value),C&&C(qe,pt))},Xe=qe=>pt=>{let Me;if(pt.currentTarget.hasAttribute("tabindex")){if(x){Me=Array.isArray(z)?z.slice():[];const Ge=z.indexOf(qe.props.value);Ge===-1?Me.push(qe.props.value):Me.splice(Ge,1)}else Me=qe.props.value;if(qe.props.onClick&&qe.props.onClick(pt),z!==Me&&(q(Me),C)){const Ge=pt.nativeEvent||pt,wt=new Ge.constructor(Ge.type,Ge);Object.defineProperty(wt,"target",{writable:!0,value:{value:Me,name:S}}),C(wt,qe)}x||$e(!1,pt)}},U=qe=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(qe.key)!==-1&&(qe.preventDefault(),$e(!0,qe))},K=le!==null&&ee,Z=qe=>{!K&&P&&(Object.defineProperty(qe,"target",{writable:!0,value:{value:z,name:S}}),P(qe))};delete W["aria-invalid"];let ie,ue;const ce=[];let Ee=!1;(W0({value:z})||m)&&(F?ie=F(z):Ee=!0);const Ae=Le.map(qe=>{if(!d.isValidElement(qe))return null;let pt;if(x){if(!Array.isArray(z))throw new Error(xs(2));pt=z.some(Me=>OD(Me,qe.props.value)),pt&&Ee&&ce.push(qe.props.children)}else pt=OD(z,qe.props.value),pt&&Ee&&(ue=qe.props.children);return d.cloneElement(qe,{"aria-selected":pt?"true":"false",onClick:Xe(qe),onKeyUp:Me=>{Me.key===" "&&Me.preventDefault(),qe.props.onKeyUp&&qe.props.onKeyUp(Me)},role:"option",selected:pt,value:void 0,"data-value":qe.props.value})});Ee&&(x?ce.length===0?ie=null:ie=ce.reduce((qe,pt,Me)=>(qe.push(pt),Me{const{classes:t}=e;return t},W2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>In(e)&&e!=="variant",slot:"Root"},Qke=te(g1,W2)(""),Xke=te(V2,W2)(""),Yke=te(D2,W2)(""),b1=d.forwardRef(function(t,r){const n=rt({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:l,defaultOpen:c=!1,displayEmpty:s=!1,IconComponent:f=B9,id:h,input:v,inputProps:m,label:b,labelId:w,MenuProps:O,multiple:_=!1,native:y=!1,onClose:x,onOpen:S,open:P,renderValue:C,SelectDisplayProps:$,variant:R="outlined"}=n,k=Re(n,qke),I=y?oU:Hke,M=si(),F=js({props:n,muiFormControl:M,states:["variant","error"]}),L=F.variant||R,B=T({},n,{variant:L,classes:i}),V=Kke(B),H=Re(V,Gke),W=v||{standard:E.jsx(Qke,{ownerState:B}),outlined:E.jsx(Xke,{label:b,ownerState:B}),filled:E.jsx(Yke,{ownerState:B})}[L],z=Ir(r,W.ref);return E.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:I,inputProps:T({children:o,error:F.error,IconComponent:f,variant:L,type:void 0,multiple:_},y?{id:h}:{autoWidth:a,defaultOpen:c,displayEmpty:s,labelId:w,MenuProps:O,onClose:x,onOpen:S,open:P,renderValue:C,SelectDisplayProps:T({id:h},$)},m,{classes:m?sa(H,m.classes):H},v?v.props.inputProps:{})},(_&&y||s)&&L==="outlined"?{notched:!0}:{},{ref:z,className:de(W.props.className,l,V.root)},!v&&{variant:L},k))})});b1.muiName="Select";function Jke(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=zu();d.useEffect(()=>{if(!a)return;function _(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(n==null||n(y,"escapeKeyDown"))}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[a,n]);const l=oa((_,y)=>{n==null||n(_,y)}),c=oa(_=>{!n||_==null||i.start(_,()=>{l(null,"timeout")})});d.useEffect(()=>(a&&c(t),i.clear),[a,t,c,i]);const s=_=>{n==null||n(_,"clickaway")},f=i.clear,h=d.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),v=_=>y=>{const x=_.onBlur;x==null||x(y),h()},m=_=>y=>{const x=_.onFocus;x==null||x(y),f()},b=_=>y=>{const x=_.onMouseEnter;x==null||x(y),f()},w=_=>y=>{const x=_.onMouseLeave;x==null||x(y),h()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[r,a,h,f]),{getRootProps:(_={})=>{const y=T({},N0(e),N0(_));return T({role:"presentation"},_,y,{onBlur:v(y),onFocus:m(y),onMouseEnter:b(y),onMouseLeave:w(y)})},onClickAway:s}}function Zke(e){return et("MuiSnackbarContent",e)}ot("MuiSnackbarContent",["root","message","action"]);const eje=["action","className","message","role"],tje=e=>{const{classes:t}=e;return tt({root:["root"],action:["action"],message:["message"]},Zke,t)},rje=te(tu,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=oSe(e.palette.background.default,t);return T({},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}})}),nje=te("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),aje=te("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),oje=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:l="alert"}=n,c=Re(n,eje),s=n,f=tje(s);return E.jsxs(rje,T({role:l,square:!0,elevation:6,className:de(f.root,o),ownerState:s,ref:r},c,{children:[E.jsx(nje,{className:f.message,ownerState:s,children:i}),a?E.jsx(aje,{className:f.action,ownerState:s,children:a}):null]}))});function ije(e){return et("MuiSnackbar",e)}ot("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const sje=["onEnter","onExited"],lje=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],uje=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Pe(r.vertical)}${Pe(r.horizontal)}`]};return tt(n,ije,t)},PD=te("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Pe(r.anchorOrigin.vertical)}${Pe(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return T({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:T({},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"})})}),cje=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSnackbar"}),a=Ja(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:s=null,children:f,className:h,ClickAwayListenerProps:v,ContentProps:m,disableWindowBlurListener:b=!1,message:w,open:O,TransitionComponent:_=xv,transitionDuration:y=o,TransitionProps:{onEnter:x,onExited:S}={}}=n,P=Re(n.TransitionProps,sje),C=Re(n,lje),$=T({},n,{anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:s,disableWindowBlurListener:b,TransitionComponent:_,transitionDuration:y}),R=uje($),{getRootProps:k,onClickAway:I}=Jke(T({},$)),[M,F]=d.useState(!0),L=ko({elementType:PD,getSlotProps:k,externalForwardedProps:C,ownerState:$,additionalProps:{ref:r},className:[R.root,h]}),B=H=>{F(!0),S&&S(H)},V=(H,W)=>{F(!1),x&&x(H,W)};return!O&&M?null:E.jsx(ZPe,T({onClickAway:I},v,{children:E.jsx(PD,T({},L,{children:E.jsx(_,T({appear:!0,in:O,timeout:y,direction:l==="top"?"down":"up",onEnter:V,onExited:B},P,{children:f||E.jsx(oje,T({message:w,action:i},m))}))}))}))});function dje(e){return et("MuiTooltip",e)}const wl=ot("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),fje=["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 pje(e){return Math.round(e*1e5)/1e5}const hje=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Pe(o.split("-")[0])}`],arrow:["arrow"]};return tt(i,dje,t)},vje=te(D9,{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})=>T({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${wl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${wl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${wl.arrow}`]:T({},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"] .${wl.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),mje=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Pe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:nr(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:`${pje(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${wl.popper}[data-popper-placement*="left"] &`]:T({transformOrigin:"right center"},t.isRtl?T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):T({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${wl.popper}[data-popper-placement*="right"] &`]:T({transformOrigin:"left center"},t.isRtl?T({marginRight:"14px"},t.touch&&{marginRight:"24px"}):T({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${wl.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${wl.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),gje=te("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:nr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Dg=!1;const RD=new rm;let Yp={x:0,y:0};function Ng(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const kn=d.forwardRef(function(t,r){var n,a,o,i,l,c,s,f,h,v,m,b,w,O,_,y,x,S,P;const C=rt({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:R,components:k={},componentsProps:I={},describeChild:M=!1,disableFocusListener:F=!1,disableHoverListener:L=!1,disableInteractive:B=!1,disableTouchListener:V=!1,enterDelay:H=100,enterNextDelay:W=0,enterTouchDelay:z=700,followCursor:q=!1,id:ee,leaveDelay:oe=0,leaveTouchDelay:J=1500,onClose:we,onOpen:le,open:ge,placement:pe="bottom",PopperComponent:me,PopperProps:xe={},slotProps:ne={},slots:Te={},title:ve,TransitionComponent:$e=xv,TransitionProps:ye}=C,je=Re(C,fje),Le=d.isValidElement(R)?R:E.jsx("span",{children:R}),st=Ja(),Xe=eu(),[U,K]=d.useState(),[Z,ie]=d.useState(null),ue=d.useRef(!1),ce=B||q,Ee=zu(),Ae=zu(),ft=zu(),De=zu(),[Ze,Ve]=kf({controlled:ge,default:!1,name:"Tooltip",state:"open"});let _t=Ze;const Wt=bc(ee),Ct=d.useRef(),qe=oa(()=>{Ct.current!==void 0&&(document.body.style.WebkitUserSelect=Ct.current,Ct.current=void 0),De.clear()});d.useEffect(()=>qe,[qe]);const pt=lt=>{RD.clear(),Dg=!0,Ve(!0),le&&!_t&&le(lt)},Me=oa(lt=>{RD.start(800+oe,()=>{Dg=!1}),Ve(!1),we&&_t&&we(lt),Ee.start(st.transitions.duration.shortest,()=>{ue.current=!1})}),Ge=lt=>{ue.current&<.type!=="touchstart"||(U&&U.removeAttribute("title"),Ae.clear(),ft.clear(),H||Dg&&W?Ae.start(Dg?W:H,()=>{pt(lt)}):pt(lt))},wt=lt=>{Ae.clear(),ft.start(oe,()=>{Me(lt)})},{isFocusVisibleRef:Ot,onBlur:dr,onFocus:Pr,ref:an}=n1(),[,$a]=d.useState(!1),Tn=lt=>{dr(lt),Ot.current===!1&&($a(!1),wt(lt))},li=lt=>{U||K(lt.currentTarget),Pr(lt),Ot.current===!0&&($a(!0),Ge(lt))},nu=lt=>{ue.current=!0;const Tr=Le.props;Tr.onTouchStart&&Tr.onTouchStart(lt)},Is=lt=>{nu(lt),ft.clear(),Ee.clear(),qe(),Ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(z,()=>{document.body.style.WebkitUserSelect=Ct.current,Ge(lt)})},zi=lt=>{Le.props.onTouchEnd&&Le.props.onTouchEnd(lt),qe(),ft.start(J,()=>{Me(lt)})};d.useEffect(()=>{if(!_t)return;function lt(Tr){(Tr.key==="Escape"||Tr.key==="Esc")&&Me(Tr)}return document.addEventListener("keydown",lt),()=>{document.removeEventListener("keydown",lt)}},[Me,_t]);const hp=Ir(Le.ref,an,K,r);!ve&&ve!==0&&(_t=!1);const au=d.useRef(),X=lt=>{const Tr=Le.props;Tr.onMouseMove&&Tr.onMouseMove(lt),Yp={x:lt.clientX,y:lt.clientY},au.current&&au.current.update()},ae={},fe=typeof ve=="string";M?(ae.title=!_t&&fe&&!L?ve:null,ae["aria-describedby"]=_t?Wt:null):(ae["aria-label"]=fe?ve:null,ae["aria-labelledby"]=_t&&!fe?Wt:null);const Se=T({},ae,je,Le.props,{className:de(je.className,Le.props.className),onTouchStart:nu,ref:hp},q?{onMouseMove:X}:{}),We={};V||(Se.onTouchStart=Is,Se.onTouchEnd=zi),L||(Se.onMouseOver=Ng(Ge,Se.onMouseOver),Se.onMouseLeave=Ng(wt,Se.onMouseLeave),ce||(We.onMouseOver=Ge,We.onMouseLeave=wt)),F||(Se.onFocus=Ng(li,Se.onFocus),Se.onBlur=Ng(Tn,Se.onBlur),ce||(We.onFocus=li,We.onBlur=Tn));const dt=d.useMemo(()=>{var lt;let Tr=[{name:"arrow",enabled:!!Z,options:{element:Z,padding:4}}];return(lt=xe.popperOptions)!=null&<.modifiers&&(Tr=Tr.concat(xe.popperOptions.modifiers)),T({},xe.popperOptions,{modifiers:Tr})},[Z,xe]),mt=T({},C,{isRtl:Xe,arrow:$,disableInteractive:ce,placement:pe,PopperComponentProp:me,touch:ue.current}),Ye=hje(mt),nt=(n=(a=Te.popper)!=null?a:k.Popper)!=null?n:vje,Qe=(o=(i=(l=Te.transition)!=null?l:k.Transition)!=null?i:$e)!=null?o:xv,ut=(c=(s=Te.tooltip)!=null?s:k.Tooltip)!=null?c:mje,Pt=(f=(h=Te.arrow)!=null?h:k.Arrow)!=null?f:gje,Tt=Id(nt,T({},xe,(v=ne.popper)!=null?v:I.popper,{className:de(Ye.popper,xe==null?void 0:xe.className,(m=(b=ne.popper)!=null?b:I.popper)==null?void 0:m.className)}),mt),zr=Id(Qe,T({},ye,(w=ne.transition)!=null?w:I.transition),mt),Zt=Id(ut,T({},(O=ne.tooltip)!=null?O:I.tooltip,{className:de(Ye.tooltip,(_=(y=ne.tooltip)!=null?y:I.tooltip)==null?void 0:_.className)}),mt),Dt=Id(Pt,T({},(x=ne.arrow)!=null?x:I.arrow,{className:de(Ye.arrow,(S=(P=ne.arrow)!=null?P:I.arrow)==null?void 0:S.className)}),mt);return E.jsxs(d.Fragment,{children:[d.cloneElement(Le,Se),E.jsx(nt,T({as:me??D9,placement:pe,anchorEl:q?{getBoundingClientRect:()=>({top:Yp.y,left:Yp.x,right:Yp.x,bottom:Yp.y,width:0,height:0})}:U,popperRef:au,open:U?_t:!1,id:Wt,transition:!0},We,Tt,{popperOptions:dt,children:({TransitionProps:lt})=>E.jsx(Qe,T({timeout:st.transitions.duration.shorter},lt,zr,{children:E.jsxs(ut,T({},Zt,{children:[ve,$?E.jsx(Pt,T({},Dt,{ref:ie})):null]}))}))}))]})});function yje(e){return et("MuiSwitch",e)}const Yn=ot("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),bje=["className","color","edge","size","sx"],_je=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,l={root:["root",r&&`edge${Pe(r)}`,`size${Pe(n)}`],switchBase:["switchBase",`color${Pe(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=tt(l,yje,t);return T({},t,c)},xje=te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Pe(r.edge)}`],t[`size${Pe(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,[`& .${Yn.thumb}`]:{width:16,height:16},[`& .${Yn.switchBase}`]:{padding:4,[`&.${Yn.checked}`]:{transform:"translateX(16px)"}}}}]}),wje=te(H9,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Yn.input}`]:t.input},r.color!=="default"&&t[`color${Pe(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}),[`&.${Yn.checked}`]:{transform:"translateX(20px)"},[`&.${Yn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Yn.checked} + .${Yn.track}`]:{opacity:.5},[`&.${Yn.disabled} + .${Yn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Yn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(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:{[`&.${Yn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?o1(e.palette[t].main,.62):a1(e.palette[t].main,.55)}`}},[`&.${Yn.checked} + .${Yn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Sje=te("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}`})),Eje=te("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%"})),sU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:l="medium",sx:c}=n,s=Re(n,bje),f=T({},n,{color:o,edge:i,size:l}),h=_je(f),v=E.jsx(Eje,{className:h.thumb,ownerState:f});return E.jsxs(xje,{className:de(h.root,a),sx:c,ownerState:f,children:[E.jsx(wje,T({type:"checkbox",icon:v,checkedIcon:v,ref:r,ownerState:f},s,{classes:T({},h,{root:h.switchBase})})),E.jsx(Sje,{className:h.track,ownerState:f})]})});function Cje(e){return et("MuiTab",e)}const Qs=ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Oje=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Pje=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:l,disabled:c}=e,s={root:["root",o&&i&&"labelIcon",`textColor${Pe(r)}`,n&&"fullWidth",a&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return tt(s,Cje,t)},Rje=te(ks,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Pe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Qs.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>T({},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,[`& > .${Qs.iconWrapper}`]:T({},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,[`&.${Qs.selected}`]:{opacity:1},[`&.${Qs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Qs.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)})),lU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:l,icon:c,iconPosition:s="top",indicator:f,label:h,onChange:v,onClick:m,onFocus:b,selected:w,selectionFollowsFocus:O,textColor:_="inherit",value:y,wrapped:x=!1}=n,S=Re(n,Oje),P=T({},n,{disabled:o,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:s,label:!!h,fullWidth:l,textColor:_,wrapped:x}),C=Pje(P),$=c&&h&&d.isValidElement(c)?d.cloneElement(c,{className:de(C.iconWrapper,c.props.className)}):c,R=I=>{!w&&v&&v(I,y),m&&m(I)},k=I=>{O&&!w&&v&&v(I,y),b&&b(I)};return E.jsxs(Rje,T({focusRipple:!i,className:de(C.root,a),ref:r,role:"tab","aria-selected":w,disabled:o,onClick:R,onFocus:k,ownerState:P,tabIndex:w?0:-1},S,{children:[s==="top"||s==="start"?E.jsxs(d.Fragment,{children:[$,h]}):E.jsxs(d.Fragment,{children:[h,$]}),f]}))}),uU=d.createContext();function $je(e){return et("MuiTable",e)}ot("MuiTable",["root","stickyHeader"]);const kje=["className","component","padding","size","stickyHeader"],jje=e=>{const{classes:t,stickyHeader:r}=e;return tt({root:["root",r&&"stickyHeader"]},$je,t)},Ije=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),$D="table",cU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTable"}),{className:a,component:o=$D,padding:i="normal",size:l="medium",stickyHeader:c=!1}=n,s=Re(n,kje),f=T({},n,{component:o,padding:i,size:l,stickyHeader:c}),h=jje(f),v=d.useMemo(()=>({padding:i,size:l,stickyHeader:c}),[i,l,c]);return E.jsx(uU.Provider,{value:v,children:E.jsx(Ije,T({as:o,role:o===$D?null:"table",ref:r,className:de(h.root,a),ownerState:f},s))})}),_1=d.createContext();function Tje(e){return et("MuiTableBody",e)}ot("MuiTableBody",["root"]);const Aje=["className","component"],Mje=e=>{const{classes:t}=e;return tt({root:["root"]},Tje,t)},Fje=te("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Lje={variant:"body"},kD="tbody",dU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableBody"}),{className:a,component:o=kD}=n,i=Re(n,Aje),l=T({},n,{component:o}),c=Mje(l);return E.jsx(_1.Provider,{value:Lje,children:E.jsx(Fje,T({className:de(c.root,a),as:o,ref:r,role:o===kD?null:"rowgroup",ownerState:l},i))})});function Dje(e){return et("MuiTableCell",e)}const Nje=ot("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Bje=["align","className","component","padding","scope","size","sortDirection","variant"],zje=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,l={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Pe(n)}`,a!=="normal"&&`padding${Pe(a)}`,`size${Pe(o)}`]};return tt(l,Dje,t)},Uje=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.padding!=="normal"&&t[`padding${Pe(r.padding)}`],r.align!=="inherit"&&t[`align${Pe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?o1(nr(e.palette.divider,1),.88):a1(nr(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",[`&.${Nje.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})),zn=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:l,scope:c,size:s,sortDirection:f,variant:h}=n,v=Re(n,Bje),m=d.useContext(uU),b=d.useContext(_1),w=b&&b.variant==="head";let O;i?O=i:O=w?"th":"td";let _=c;O==="td"?_=void 0:!_&&w&&(_="col");const y=h||b&&b.variant,x=T({},n,{align:a,component:O,padding:l||(m&&m.padding?m.padding:"normal"),size:s||(m&&m.size?m.size:"medium"),sortDirection:f,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),S=zje(x);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),E.jsx(Uje,T({as:O,ref:r,className:de(S.root,o),"aria-sort":P,scope:_,ownerState:x},v))});function Vje(e){return et("MuiTableHead",e)}ot("MuiTableHead",["root"]);const Wje=["className","component"],Hje=e=>{const{classes:t}=e;return tt({root:["root"]},Vje,t)},qje=te("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Gje={variant:"head"},jD="thead",fU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableHead"}),{className:a,component:o=jD}=n,i=Re(n,Wje),l=T({},n,{component:o}),c=Hje(l);return E.jsx(_1.Provider,{value:Gje,children:E.jsx(qje,T({as:o,className:de(c.root,a),ref:r,role:o===jD?null:"rowgroup",ownerState:l},i))})});function Kje(e){return et("MuiToolbar",e)}ot("MuiToolbar",["root","gutters","regular","dense"]);const Qje=["className","component","disableGutters","variant"],Xje=e=>{const{classes:t,disableGutters:r,variant:n}=e;return tt({root:["root",!r&&"gutters",n]},Kje,t)},Yje=te("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),dp=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:l="regular"}=n,c=Re(n,Qje),s=T({},n,{component:o,disableGutters:i,variant:l}),f=Xje(s);return E.jsx(Yje,T({as:o,className:de(f.root,a),ref:r,ownerState:s},c))}),pU=Za(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hU=Za(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Jje=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Zje=d.forwardRef(function(t,r){var n,a,o,i,l,c,s,f;const{backIconButtonProps:h,count:v,disabled:m=!1,getItemAriaLabel:b,nextIconButtonProps:w,onPageChange:O,page:_,rowsPerPage:y,showFirstButton:x,showLastButton:S,slots:P={},slotProps:C={}}=t,$=Re(t,Jje),R=eu(),k=ne=>{O(ne,0)},I=ne=>{O(ne,_-1)},M=ne=>{O(ne,_+1)},F=ne=>{O(ne,Math.max(0,Math.ceil(v/y)-1))},L=(n=P.firstButton)!=null?n:Br,B=(a=P.lastButton)!=null?a:Br,V=(o=P.nextButton)!=null?o:Br,H=(i=P.previousButton)!=null?i:Br,W=(l=P.firstButtonIcon)!=null?l:EC,z=(c=P.lastButtonIcon)!=null?c:CC,q=(s=P.nextButtonIcon)!=null?s:hU,ee=(f=P.previousButtonIcon)!=null?f:pU,oe=R?B:L,J=R?V:H,we=R?H:V,le=R?L:B,ge=R?C.lastButton:C.firstButton,pe=R?C.nextButton:C.previousButton,me=R?C.previousButton:C.nextButton,xe=R?C.firstButton:C.lastButton;return E.jsxs("div",T({ref:r},$,{children:[x&&E.jsx(oe,T({onClick:k,disabled:m||_===0,"aria-label":b("first",_),title:b("first",_)},ge,{children:R?E.jsx(z,T({},C.lastButtonIcon)):E.jsx(W,T({},C.firstButtonIcon))})),E.jsx(J,T({onClick:I,disabled:m||_===0,color:"inherit","aria-label":b("previous",_),title:b("previous",_)},pe??h,{children:R?E.jsx(q,T({},C.nextButtonIcon)):E.jsx(ee,T({},C.previousButtonIcon))})),E.jsx(we,T({onClick:M,disabled:m||(v!==-1?_>=Math.ceil(v/y)-1:!1),color:"inherit","aria-label":b("next",_),title:b("next",_)},me??w,{children:R?E.jsx(ee,T({},C.previousButtonIcon)):E.jsx(q,T({},C.nextButtonIcon))})),S&&E.jsx(le,T({onClick:F,disabled:m||_>=Math.ceil(v/y)-1,"aria-label":b("last",_),title:b("last",_)},xe,{children:R?E.jsx(W,T({},C.firstButtonIcon)):E.jsx(z,T({},C.lastButtonIcon))}))]}))});function eIe(e){return et("MuiTablePagination",e)}const Th=ot("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var ID;const tIe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],rIe=te(zn,{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}})),nIe=te(dp,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Th.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},[`& .${Th.actions}`]:{flexShrink:0,marginLeft:20}})),aIe=te("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),oIe=te("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),iIe=te(b1,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Th.selectIcon}`]:t.selectIcon,[`& .${Th.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Th.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),sIe=te(za,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),lIe=te("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function uIe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function cIe(e){return`Go to ${e} page`}const dIe=e=>{const{classes:t}=e;return tt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},eIe,t)},TD=d.forwardRef(function(t,r){var n;const a=rt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Zje,backIconButtonProps:i,className:l,colSpan:c,component:s=zn,count:f,disabled:h=!1,getItemAriaLabel:v=cIe,labelDisplayedRows:m=uIe,labelRowsPerPage:b="Rows per page:",nextIconButtonProps:w,onPageChange:O,onRowsPerPageChange:_,page:y,rowsPerPage:x,rowsPerPageOptions:S=[10,25,50,100],SelectProps:P={},showFirstButton:C=!1,showLastButton:$=!1,slotProps:R={},slots:k={}}=a,I=Re(a,tIe),M=a,F=dIe(M),L=(n=R==null?void 0:R.select)!=null?n:P,B=L.native?"option":sIe;let V;(s===zn||s==="td")&&(V=c||1e3);const H=bc(L.id),W=bc(L.labelId),z=()=>f===-1?(y+1)*x:x===-1?f:Math.min(f,(y+1)*x);return E.jsx(rIe,T({colSpan:V,ref:r,as:s,ownerState:M,className:de(F.root,l)},I,{children:E.jsxs(nIe,{className:F.toolbar,children:[E.jsx(aIe,{className:F.spacer}),S.length>1&&E.jsx(oIe,{className:F.selectLabel,id:W,children:b}),S.length>1&&E.jsx(iIe,T({variant:"standard"},!L.variant&&{input:ID||(ID=E.jsx(h1,{}))},{value:x,onChange:_,id:H,labelId:W},L,{classes:T({},L.classes,{root:de(F.input,F.selectRoot,(L.classes||{}).root),select:de(F.select,(L.classes||{}).select),icon:de(F.selectIcon,(L.classes||{}).icon)}),disabled:h,children:S.map(q=>d.createElement(B,T({},!mv(B)&&{ownerState:M},{className:F.menuItem,key:q.label?q.label:q,value:q.value?q.value:q}),q.label?q.label:q))})),E.jsx(lIe,{className:F.displayedRows,children:m({from:f===0?0:y*x+1,to:z(),count:f===-1?-1:f,page:y})}),E.jsx(o,{className:F.actions,backIconButtonProps:i,count:f,nextIconButtonProps:w,onPageChange:O,page:y,rowsPerPage:x,showFirstButton:C,showLastButton:$,slotProps:R.actions,slots:k.actions,getItemAriaLabel:v,disabled:h})]})}))});function fIe(e){return et("MuiTableRow",e)}const AD=ot("MuiTableRow",["root","selected","hover","head","footer"]),pIe=["className","component","hover","selected"],hIe=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return tt({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},fIe,t)},vIe=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${AD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${AD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(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}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),MD="tr",Sv=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableRow"}),{className:a,component:o=MD,hover:i=!1,selected:l=!1}=n,c=Re(n,pIe),s=d.useContext(_1),f=T({},n,{component:o,hover:i,selected:l,head:s&&s.variant==="head",footer:s&&s.variant==="footer"}),h=hIe(f);return E.jsx(vIe,T({as:o,ref:r,className:de(h.root,a),role:o===MD?null:"row",ownerState:f},c))}),mIe=Za(E.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function gIe(e){return et("MuiTableSortLabel",e)}const cS=ot("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),yIe=["active","children","className","direction","hideSortIcon","IconComponent"],bIe=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${Pe(r)}`]};return tt(a,gIe,t)},_Ie=te(ks,{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,[`& .${cS.icon}`]:{opacity:.5}},[`&.${cS.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${cS.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),xIe=te("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Pe(r.direction)}`]]}})(({theme:e,ownerState:t})=>T({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),wIe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:l="asc",hideSortIcon:c=!1,IconComponent:s=mIe}=n,f=Re(n,yIe),h=T({},n,{active:a,direction:l,hideSortIcon:c,IconComponent:s}),v=bIe(h);return E.jsxs(_Ie,T({className:de(v.root,i),component:"span",disableRipple:!0,ownerState:h,ref:r},f,{children:[o,c&&!a?null:E.jsx(xIe,{as:s,className:de(v.icon),ownerState:h})]}))});function SIe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function EIe(e,t,r,n={},a=()=>{}){const{ease:o=SIe,duration:i=300}=n;let l=null;const c=t[e];let s=!1;const f=()=>{s=!0},h=v=>{if(s){a(new Error("Animation cancelled"));return}l===null&&(l=v);const m=Math.min(1,(v-l)/i);if(t[e]=o(m)*(r-c)+c,m>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(h)};return c===r?(a(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const CIe=["onChange"],OIe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function PIe(e){const{onChange:t}=e,r=Re(e,CIe),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qa(()=>{const i=op(()=>{const c=n.current;o(),c!==n.current&&t(n.current)}),l=$o(a.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),E.jsx("div",T({style:OIe,ref:a},r))}function RIe(e){return et("MuiTabScrollButton",e)}const $Ie=ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),kIe=["className","slots","slotProps","direction","orientation","disabled"],jIe=e=>{const{classes:t,orientation:r,disabled:n}=e;return tt({root:["root",r,n&&"disabled"]},RIe,t)},IIe=te(ks,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>T({width:40,flexShrink:0,opacity:.8,[`&.${$Ie.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),TIe=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiTabScrollButton"}),{className:i,slots:l={},slotProps:c={},direction:s}=o,f=Re(o,kIe),h=eu(),v=T({isRtl:h},o),m=jIe(v),b=(n=l.StartScrollButtonIcon)!=null?n:pU,w=(a=l.EndScrollButtonIcon)!=null?a:hU,O=ko({elementType:b,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),_=ko({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return E.jsx(IIe,T({component:"div",className:de(m.root,i),ref:r,role:null,ownerState:v,tabIndex:null},f,{children:s==="left"?E.jsx(b,T({},O)):E.jsx(w,T({},_))}))});function AIe(e){return et("MuiTabs",e)}const dS=ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),MIe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],FD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,LD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Bg=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},FIe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:l,classes:c}=e;return tt({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},AIe,c)},LIe=te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${dS.scrollButtons}`]:t.scrollButtons},{[`& .${dS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>T({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${dS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),DIe=te("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})=>T({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"})),NIe=te("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})=>T({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),BIe=te("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>T({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})),zIe=te(PIe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),DD={},vU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTabs"}),a=Ja(),o=eu(),{"aria-label":i,"aria-labelledby":l,action:c,centered:s=!1,children:f,className:h,component:v="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:w,orientation:O="horizontal",ScrollButtonComponent:_=TIe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:$={},textColor:R="primary",value:k,variant:I="standard",visibleScrollbar:M=!1}=n,F=Re(n,MIe),L=I==="scrollable",B=O==="vertical",V=B?"scrollTop":"scrollLeft",H=B?"top":"left",W=B?"bottom":"right",z=B?"clientHeight":"clientWidth",q=B?"height":"width",ee=T({},n,{component:v,allowScrollButtonsMobile:m,indicatorColor:b,orientation:O,vertical:B,scrollButtons:y,textColor:R,variant:I,visibleScrollbar:M,fixed:!L,hideScrollbar:L&&!M,scrollableX:L&&!B,scrollableY:L&&B,centered:s&&!L,scrollButtonsHideMobile:!m}),oe=FIe(ee),J=ko({elementType:S.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:ee}),we=ko({elementType:S.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:ee}),[le,ge]=d.useState(!1),[pe,me]=d.useState(DD),[xe,ne]=d.useState(!1),[Te,ve]=d.useState(!1),[$e,ye]=d.useState(!1),[je,Le]=d.useState({overflow:"hidden",scrollbarWidth:0}),st=new Map,Xe=d.useRef(null),U=d.useRef(null),K=()=>{const Me=Xe.current;let Ge;if(Me){const Ot=Me.getBoundingClientRect();Ge={clientWidth:Me.clientWidth,scrollLeft:Me.scrollLeft,scrollTop:Me.scrollTop,scrollLeftNormalized:kwe(Me,o?"rtl":"ltr"),scrollWidth:Me.scrollWidth,top:Ot.top,bottom:Ot.bottom,left:Ot.left,right:Ot.right}}let wt;if(Me&&k!==!1){const Ot=U.current.children;if(Ot.length>0){const dr=Ot[st.get(k)];wt=dr?dr.getBoundingClientRect():null}}return{tabsMeta:Ge,tabMeta:wt}},Z=oa(()=>{const{tabsMeta:Me,tabMeta:Ge}=K();let wt=0,Ot;if(B)Ot="top",Ge&&Me&&(wt=Ge.top-Me.top+Me.scrollTop);else if(Ot=o?"right":"left",Ge&&Me){const Pr=o?Me.scrollLeftNormalized+Me.clientWidth-Me.scrollWidth:Me.scrollLeft;wt=(o?-1:1)*(Ge[Ot]-Me[Ot]+Pr)}const dr={[Ot]:wt,[q]:Ge?Ge[q]:0};if(isNaN(pe[Ot])||isNaN(pe[q]))me(dr);else{const Pr=Math.abs(pe[Ot]-dr[Ot]),an=Math.abs(pe[q]-dr[q]);(Pr>=1||an>=1)&&me(dr)}}),ie=(Me,{animation:Ge=!0}={})=>{Ge?EIe(V,Xe.current,Me,{duration:a.transitions.duration.standard}):Xe.current[V]=Me},ue=Me=>{let Ge=Xe.current[V];B?Ge+=Me:(Ge+=Me*(o?-1:1),Ge*=o&&s9()==="reverse"?-1:1),ie(Ge)},ce=()=>{const Me=Xe.current[z];let Ge=0;const wt=Array.from(U.current.children);for(let Ot=0;OtMe){Ot===0&&(Ge=Me);break}Ge+=dr[z]}return Ge},Ee=()=>{ue(-1*ce())},Ae=()=>{ue(ce())},ft=d.useCallback(Me=>{Le({overflow:null,scrollbarWidth:Me})},[]),De=()=>{const Me={};Me.scrollbarSizeListener=L?E.jsx(zIe,{onChange:ft,className:de(oe.scrollableX,oe.hideScrollbar)}):null;const wt=L&&(y==="auto"&&(xe||Te)||y===!0);return Me.scrollButtonStart=wt?E.jsx(_,T({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:J},orientation:O,direction:o?"right":"left",onClick:Ee,disabled:!xe},$,{className:de(oe.scrollButtons,$.className)})):null,Me.scrollButtonEnd=wt?E.jsx(_,T({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:we},orientation:O,direction:o?"left":"right",onClick:Ae,disabled:!Te},$,{className:de(oe.scrollButtons,$.className)})):null,Me},Ze=oa(Me=>{const{tabsMeta:Ge,tabMeta:wt}=K();if(!(!wt||!Ge)){if(wt[H]Ge[W]){const Ot=Ge[V]+(wt[W]-Ge[W]);ie(Ot,{animation:Me})}}}),Ve=oa(()=>{L&&y!==!1&&ye(!$e)});d.useEffect(()=>{const Me=op(()=>{Xe.current&&Z()});let Ge;const wt=Pr=>{Pr.forEach(an=>{an.removedNodes.forEach($a=>{var Tn;(Tn=Ge)==null||Tn.unobserve($a)}),an.addedNodes.forEach($a=>{var Tn;(Tn=Ge)==null||Tn.observe($a)})}),Me(),Ve()},Ot=$o(Xe.current);Ot.addEventListener("resize",Me);let dr;return typeof ResizeObserver<"u"&&(Ge=new ResizeObserver(Me),Array.from(U.current.children).forEach(Pr=>{Ge.observe(Pr)})),typeof MutationObserver<"u"&&(dr=new MutationObserver(wt),dr.observe(U.current,{childList:!0})),()=>{var Pr,an;Me.clear(),Ot.removeEventListener("resize",Me),(Pr=dr)==null||Pr.disconnect(),(an=Ge)==null||an.disconnect()}},[Z,Ve]),d.useEffect(()=>{const Me=Array.from(U.current.children),Ge=Me.length;if(typeof IntersectionObserver<"u"&&Ge>0&&L&&y!==!1){const wt=Me[0],Ot=Me[Ge-1],dr={root:Xe.current,threshold:.99},Pr=li=>{ne(!li[0].isIntersecting)},an=new IntersectionObserver(Pr,dr);an.observe(wt);const $a=li=>{ve(!li[0].isIntersecting)},Tn=new IntersectionObserver($a,dr);return Tn.observe(Ot),()=>{an.disconnect(),Tn.disconnect()}}},[L,y,$e,f==null?void 0:f.length]),d.useEffect(()=>{ge(!0)},[]),d.useEffect(()=>{Z()}),d.useEffect(()=>{Ze(DD!==pe)},[Ze,pe]),d.useImperativeHandle(c,()=>({updateIndicator:Z,updateScrollButtons:Ve}),[Z,Ve]);const _t=E.jsx(BIe,T({},C,{className:de(oe.indicator,C.className),ownerState:ee,style:T({},pe,C.style)}));let Wt=0;const Ct=d.Children.map(f,Me=>{if(!d.isValidElement(Me))return null;const Ge=Me.props.value===void 0?Wt:Me.props.value;st.set(Ge,Wt);const wt=Ge===k;return Wt+=1,d.cloneElement(Me,T({fullWidth:I==="fullWidth",indicator:wt&&!le&&_t,selected:wt,selectionFollowsFocus:x,onChange:w,textColor:R,value:Ge},Wt===1&&k===!1&&!Me.props.tabIndex?{tabIndex:0}:{}))}),qe=Me=>{const Ge=U.current,wt=tn(Ge).activeElement;if(wt.getAttribute("role")!=="tab")return;let dr=O==="horizontal"?"ArrowLeft":"ArrowUp",Pr=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(dr="ArrowRight",Pr="ArrowLeft"),Me.key){case dr:Me.preventDefault(),Bg(Ge,wt,LD);break;case Pr:Me.preventDefault(),Bg(Ge,wt,FD);break;case"Home":Me.preventDefault(),Bg(Ge,null,FD);break;case"End":Me.preventDefault(),Bg(Ge,null,LD);break}},pt=De();return E.jsxs(LIe,T({className:de(oe.root,h),ownerState:ee,ref:r,as:v},F,{children:[pt.scrollButtonStart,pt.scrollbarSizeListener,E.jsxs(DIe,{className:oe.scroller,ownerState:ee,style:{overflow:je.overflow,[B?`margin${o?"Left":"Right"}`:"marginBottom"]:M?void 0:-je.scrollbarWidth},ref:Xe,children:[E.jsx(NIe,{"aria-label":i,"aria-labelledby":l,"aria-orientation":O==="vertical"?"vertical":null,className:oe.flexContainer,ownerState:ee,onKeyDown:qe,ref:U,role:"tablist",children:Ct}),le&&_t]}),pt.scrollButtonEnd]}))});function UIe(e){return et("MuiTextField",e)}ot("MuiTextField",["root"]);const VIe=["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"],WIe={standard:g1,filled:D2,outlined:V2},HIe=e=>{const{classes:t}=e;return tt({root:["root"]},UIe,t)},qIe=te(X9,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),um=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:l,color:c="primary",defaultValue:s,disabled:f=!1,error:h=!1,FormHelperTextProps:v,fullWidth:m=!1,helperText:b,id:w,InputLabelProps:O,inputProps:_,InputProps:y,inputRef:x,label:S,maxRows:P,minRows:C,multiline:$=!1,name:R,onBlur:k,onChange:I,onFocus:M,placeholder:F,required:L=!1,rows:B,select:V=!1,SelectProps:H,type:W,value:z,variant:q="outlined"}=n,ee=Re(n,VIe),oe=T({},n,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:m,multiline:$,required:L,select:V,variant:q}),J=HIe(oe),we={};q==="outlined"&&(O&&typeof O.shrink<"u"&&(we.notched=O.shrink),we.label=S),V&&((!H||!H.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const le=bc(w),ge=b&&le?`${le}-helper-text`:void 0,pe=S&&le?`${le}-label`:void 0,me=WIe[q],xe=E.jsx(me,T({"aria-describedby":ge,autoComplete:a,autoFocus:o,defaultValue:s,fullWidth:m,multiline:$,name:R,rows:B,maxRows:P,minRows:C,type:W,value:z,id:le,inputRef:x,onBlur:k,onChange:I,onFocus:M,placeholder:F,inputProps:_},we,y));return E.jsxs(qIe,T({className:de(J.root,l),disabled:f,error:h,fullWidth:m,ref:r,required:L,color:c,variant:q,ownerState:oe},ee,{children:[S!=null&&S!==""&&E.jsx(Y9,T({htmlFor:le,id:pe},O,{children:S})),V?E.jsx(b1,T({"aria-describedby":ge,id:le,labelId:pe,value:z,input:xe},H,{children:i})):xe,b&&E.jsx(N2,T({id:ge},v,{children:b}))]}))}),GIe=["getTrigger","target"];function KIe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const QIe=typeof window<"u"?window:null;function mU(e={}){const{getTrigger:t=KIe,target:r=QIe}=e,n=Re(e,GIe),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const l=()=>{i(t(a,T({target:r},n)))};return l(),r.addEventListener("scroll",l,{passive:!0}),()=>{r.removeEventListener("scroll",l,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var H2={},fS={};const XIe=Ss(pEe);var ND;function Ke(){return ND||(ND=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=XIe}(fS)),fS}var YIe=He;Object.defineProperty(H2,"__esModule",{value:!0});var cm=H2.default=void 0,JIe=YIe(Ke()),ZIe=E;cm=H2.default=(0,JIe.default)((0,ZIe.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 Ah=function(){return Ah=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{t[r]=jU(e[r])}),t}function t$(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return pd(e)&&pd(t)&&Object.keys(t).forEach(a=>{pd(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&pd(e[a])?n[a]=t$(e[a],t[a],r):r.clone?n[a]=pd(t[a])?jU(t[a]):t[a]:n[a]=t[a]}),n}var IU={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{defaultProps:{fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0}},RaSimpleFormIterator:{defaultProps:{fullWidth:!0}},RaTranslatableInputs:{defaultProps:{fullWidth:!0}}}},rAe=t$(IU,{palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}},components:{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}}}),nAe=t$(IU,{palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}}),aAe=function(){var e=Be(),t=w1(),r=t.darkTheme,n=t.defaultTheme,a=ca("(prefers-color-scheme: dark)",{noSsr:!0}),o=kU(n||(a&&r?"dark":"light")),i=o[0],l=o[1],c=function(){l(i==="dark"?"light":"dark")},s=e("ra.action.toggle_theme",{_:"Toggle Theme"});return ke.createElement(kn,{title:s,enterDelay:300},ke.createElement(Br,{color:"inherit",onClick:c,"aria-label":s},i==="dark"?ke.createElement($U,null):ke.createElement(RU,null)))},TC=function(){return TC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(mFe,null):null,t&&d.createElement(aAe,null),d.createElement(kTe,null))},lAe=d.createElement(sAe,null),uAe=d.createElement(OU,null),Pu="RaAppBar",Wu={appBar:"".concat(Pu,"-appBar"),toolbar:"".concat(Pu,"-toolbar"),menuButton:"".concat(Pu,"-menuButton"),menuButtonIconClosed:"".concat(Pu,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Pu,"-menuButtonIconOpen"),title:"".concat(Pu,"-title")},cAe=te(aCe,{name:Pu,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Wu.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Wu.menuButton)]={marginRight:"0.2em"},t["& .".concat(Wu.title)]={},t}),r$={},dAe=He;Object.defineProperty(r$,"__esModule",{value:!0});var TU=r$.default=void 0,fAe=dAe(Ke()),pAe=E;TU=r$.default=(0,fAe.default)((0,pAe.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 n$={},hAe=He;Object.defineProperty(n$,"__esModule",{value:!0});var AU=n$.default=void 0,vAe=hAe(Ke()),mAe=E;AU=n$.default=(0,vAe.default)((0,mAe.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 Fh=function(){return Fh=Object.assign||function(e){for(var t,r=1,n=arguments.length;rP.getBoundingClientRect().bottom?S=y.lastChild:S=y.firstChild}S&&y===S.closest("ul")?a(_.dataset.index,c.current):(O.preventDefault(),O.stopPropagation()),_.classList.remove("drag-active"),document.removeEventListener("dragover",h)},w=function(O){O.preventDefault(),O.dataTransfer.dropEffect="move"};return d.createElement(VAe,{key:o,draggable:a?"true":void 0,onDrag:a?m:void 0,onDragStart:a?v:void 0,onDragEnd:a?b:void 0,onDragOver:a?w:void 0,"data-index":i},d.createElement("label",{htmlFor:"switch_".concat(i)},d.createElement(sU,{checked:t,onChange:n,name:i,id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),d.createElement($t,{variant:"body2",component:"span"},d.createElement(Ro,{label:r,source:o,resource:l}))),a&&d.createElement(zU,{className:"dragIcon",color:"disabled",fontSize:"small"}))},VAe=te("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"}}}}),Xs=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nS?P=Xs(Xs(Xs(Xs([],l.slice(0,S),!0),[l[x]],!1),l.slice(S,x),!0),l.slice(x+1),!0):P=Xs(Xs(Xs(Xs([],l.slice(0,x),!0),l.slice(x+1,S+1),!0),[l[x]],!1),l.slice(S+1),!0),c(P),v(function(C){return P.filter(function($){return C.includes($.index)}).map(function($){return $.index})})}},w=function(){v([])},O=function(){v(l.map(function(_){return _.index}))};return d.createElement(aa,{pt:.5},d.createElement(aa,{component:"ul",sx:{paddingInlineStart:0,m:0}},l.map(function(_){return d.createElement(UU,{key:_.index,source:_.source,label:_.label,index:_.index,selected:h.includes(_.index),onToggle:m,onMove:b})})),d.createElement(aa,{onDrop:function(_){return _.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},d.createElement(nn,{size:"small",onClick:w},o("ra.inspector.hideAll",{_:"Hide All"})),d.createElement(nn,{size:"small",onClick:O},o("ra.inspector.showAll",{_:"Show All"}))))},p$={},HAe=He;Object.defineProperty(p$,"__esModule",{value:!0});var VU=p$.default=void 0,qAe=HAe(Ke()),GAe=E;VU=p$.default=(0,qAe.default)((0,GAe.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 h$={},KAe=He;Object.defineProperty(h$,"__esModule",{value:!0});var WU=h$.default=void 0,QAe=KAe(Ke()),XAe=E;WU=h$.default=(0,QAe.default)((0,XAe.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 YAe=function(){var e=Be();return x6("ra.configurable.inspector.title",{_:"Inspector"}),d.createElement($t,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},HU=function(){var e=a2(),t=e.isEnabled,r=e.disable,n=e.title,a=e.titleOptions,o=e.editor,i=e.preferenceKey,l=d.useRef(!1),c=l_e(i),s=Ja(),f=Be(),h=d.useState(0),v=h[0],m=h[1],b=$n("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-s.breakpoints.values.sm/2-8,y:8}),w=b[0],O=b[1],_=d.useState(),y=_[0],x=_[1],S=function($){var R=document==null?void 0:document.elementFromPoint($.clientX,$.clientY);(R==null?void 0:R.id)==="inspector-dialog-title"&&(l.current=!0,$.dataTransfer.effectAllowed="move",$.dataTransfer.setData("inspector",""),setTimeout(function(){$.target.classList.add("hide")},0),x({x:$.clientX-w.x,y:$.clientY-w.y}))},P=function($){l.current&&y&&(O({x:$.clientX-y.x,y:$.clientY-y.y}),$.target.classList.remove("hide"),l.current=!1)};d.useEffect(function(){if(t){var $=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",$),function(){document==null||document.removeEventListener("dragover",$)}}},[t]),d.useEffect(function(){if(t){var $=function(){window==null||window.requestAnimationFrame(function(){O(function(R){return{x:Math.min(R.x,(document==null?void 0:document.body.clientWidth)-s.breakpoints.values.sm/2-8),y:Math.min(R.y,(window==null?void 0:window.innerHeight)-50)}})})};return $(),window==null||window.addEventListener("resize",$),function(){window==null||window.removeEventListener("resize",$)}}},[t,O,s.breakpoints.values.sm]);var C=function(){c(),m(function($){return $+1})};return t?d.createElement(JAe,{className:Lh.modal,elevation:3,draggable:!0,onDragStart:S,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:Lh.title},d.createElement($t,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&f(n,a)),d.createElement("span",{id:"inspector-toolbar"}),i&&d.createElement(Br,{"aria-label":f("ra.action.remove"),onClick:C,size:"small"},d.createElement(WU,{fontSize:"inherit"})),d.createElement(Br,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(VU,{fontSize:"inherit"}))),d.createElement("div",{className:Lh.content,key:v},d.createElement(_6,{value:i},o||d.createElement(YAe,null)))):null},Oy="RaInspector",Lh={modal:"".concat(Oy,"-modal"),title:"".concat(Oy,"-title"),content:"".concat(Oy,"-content")},JAe=te(tu,{name:Oy,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(Lh.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(Lh.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});HU.displayName="Inspector";var Sl=function(){return Sl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var c=n===!1?d.createElement(DU,J0({title:r,defaultTitle:t},a)):d.createElement(eMe,J0({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,Fv.createPortal(c,i))},LC=function(){return LC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0,I=LFe(O===!1||O===void 0?void 0:!O,s||!k||$||R);n2(h==="submit"&&(c&&(c.onSuccess||c.onError)||v),'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 M=d.useCallback(function(B){return WD(void 0,void 0,void 0,function(){var V;return HD(this,function(H){switch(H.label){case 0:return S!=null&&S.save?[4,S.save(B,Nh(Nh({},c),{transform:v}))]:[3,2];case 1:V=H.sent(),H.label=2;case 2:return V!=null&&Iz(V,x.setError),[2]}})})},[x.setError,S,c,v]),F=d.useCallback(function(B){return WD(void 0,void 0,void 0,function(){return HD(this,function(V){switch(V.label){case 0:return l&&l(B),B.defaultPrevented?[2]:h!=="button"?[3,2]:(B.stopPropagation(),[4,x.handleSubmit(M)(B)]);case 1:V.sent(),V.label=2;case 2:return[2]}})})},[l,h,x,M]),L=i&&y(i,{_:i});return d.createElement(FFe,Nh({variant:b,type:h,color:r,"aria-label":L,disabled:I,onClick:F},_),R?d.createElement(lp,{sx:TFe,size:14,thickness:3,color:"inherit"}):a,L)},TFe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},AFe=d.createElement(l8,null),MFe="RaSaveButton",FFe=te(nn,{name:MFe,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}),LFe=function(e,t){return typeof e>"u"?t:e},DFe=function(){return ke.createElement(BFe,{onClick:zFe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},NFe="RaSkipNavigationButton",BFe=te(cr,{name:NFe,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})}}}),zFe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},ZC=function(){return ZC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]=a-1,color:"primary"},d.createElement(v8,{fontSize:"small"})))},pLe=d.forwardRef(function(e,t){var r=e.children,n=e.disabled,a=e.disableReordering,o=e.disableRemove,i=e.getItemLabel,l=e.index,c=e.inline,s=e.record,f=e.removeButton,h=f===void 0?d.createElement(oLe,null):f,v=e.reOrderButtons,m=v===void 0?d.createElement(fLe,null):v,b=Vt(e);if(!b)throw new Error("SimpleFormIteratorItem must be used in a ResourceContextProvider or be passed a resource prop.");var w=C1(),O=w.total,_=w.reOrder,y=w.remove,x=function(R){return typeof o=="boolean"?o:o&&o(R)},S=d.useMemo(function(){return{index:l,total:O,reOrder:function(R){return _(l,R)},remove:function(){return y(l)}}},[l,O,_,y]),P=typeof i=="function"?i(l):i,C=YR(),$=d.useMemo(function(){return{getSource:function(R){return R?C.getSource("".concat(l,".").concat(R)):C.getSource("".concat(l))},getLabel:function(R){return C.getLabel(R)}}},[l,C]);return d.createElement(f8.Provider,{value:S},d.createElement("li",{className:cn.line,ref:t},P!=null&&P!==!1&&d.createElement($t,{variant:"body2",className:cn.index},P),d.createElement(k_,{value:$},d.createElement(Kl,{value:s},d.createElement(up,{className:de(cn.form),direction:c?{xs:"column",sm:"row"}:"column",gap:c?2:0},r))),!n&&d.createElement("span",{className:cn.action},!a&&m,!x(s)&&h)))}),j$={},hLe=He;Object.defineProperty(j$,"__esModule",{value:!0});var m8=j$.default=void 0,vLe=hLe(Ke()),mLe=E;m8=j$.default=(0,vLe.default)((0,mLe.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var iO=function(){return iO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var we=M[0];we.id;var le=SLe(we,["id"]);oe.current=le;for(var ge in oe.current)oe.current[ge]=null}var pe=d.useCallback(function(ve){ve===void 0&&(ve=void 0);var $e=ve;ve==null&&($e=oe.current,d.Children.count(i)===1&&d.isValidElement(d.Children.only(i))&&!d.Children.only(i).props.source&&!d.Children.only(i).type!==XE?$e="":($e=$e||{},d.Children.forEach(i,function(ye){var je;d.isValidElement(ye)&&ye.type!==XE&&ye.props.source&&($e[ye.props.source]=(je=ye.props.defaultValue)!==null&&je!==void 0?je:null)}))),I($e),H("".concat(P,".").concat(M.length),{defaultValue:$e})},[I,i,H,P,M.length]),me=d.useCallback(function(ve,$e){F(ve,$e)},[F]),xe=d.useCallback(function(){B([]),R(!1)},[B]),ne=qt(ee,P),Te=d.useMemo(function(){return{total:M.length,add:pe,remove:J,reOrder:me,source:P}},[pe,M.length,me,J,P]);return M?d.createElement(d8.Provider,{value:Te},d.createElement(ELe,{className:de(l,x&&"fullwidth",s&&"disabled"),sx:S},d.createElement("ul",{className:cn.list},M.map(function(ve,$e){return d.createElement(pLe,{key:ve.id,disabled:s,disableRemove:b,disableReordering:w,fields:M,getItemLabel:y,index:$e,onRemoveField:J,onReorder:me,record:ne&&ne[$e]||{},removeButton:a,reOrderButtons:o,resource:c,inline:O},i)})),!s&&!(h&&(v||b))&&d.createElement("div",{className:cn.buttons},!h&&d.createElement("div",{className:cn.add},n),M.length>0&&!v&&!b&&d.createElement("div",{className:cn.clear},d.createElement(a$,{isOpen:$,title:q("ra.action.clear_array_input"),content:q("ra.message.clear_array_input"),onConfirm:xe,onClose:function(){return R(!1)}}),d.createElement(wLe,{onClick:function(){return R(!0)}}))))):null},ELe=te("div",{name:pi,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,a=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(cn.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(a.palette.divider)},r[a.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(cn.index)]=(n={display:"flex",alignItems:"top",marginRight:a.spacing(1),marginTop:a.spacing(1)},n[a.breakpoints.down("md")]={display:"none"},n),t["& .".concat(cn.form)]={},t["&.fullwidth > ul > li > .".concat(cn.form)]={flex:2},t["& .".concat(cn.inline)]={flexDirection:"row",columnGap:"1em"},t["& .".concat(cn.action)]={marginTop:a.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(cn.buttons)]={display:"flex"},t["& .".concat(cn.add)]={borderBottom:"none"},t["& .".concat(cn.clear)]={borderBottom:"none"},t["& .".concat(cn.line,":hover > .").concat(cn.action)]={visibility:"visible"},t}),CLe=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function l(f){try{s(n.next(f))}catch(h){i(h)}}function c(f){try{s(n.throw(f))}catch(h){i(h)}}function s(f){f.done?o(f.value):a(f.value).then(l,c)}s((n=n.apply(e,t||[])).next())})},OLe=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(s){return function(f){return c([s,f])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(r=0)),r;)try{if(n=1,a&&(o=s[0]&2?a.return:s[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;switch(a=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,a=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u")throw new Error("DatagridRow expects an id prop");var S=b8(),P=Be(),C=Kt(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var $=Vt(e),R=Rs(e),k=R.hasShow||R.hasEdit;if(!$)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var I=(!S||!S.isRowExpandable||S.isRowExpandable(C))&&i,M=qye($,h,S&&S.expandSingle),F=M[0],L=M[1],B=d.useState(function(){return qD(I,a,c)}),V=B[0],H=B[1];d.useEffect(function(){var J=qD(I,a,c);J!==V&&H(J)},[I,V,a,c]);var W=Li(),z=d.useCallback(function(J){L(),J.stopPropagation()},[L]),q=d.useCallback(function(J){!y||!v||(v(h,J),J.stopPropagation())},[h,v,y]),ee=Nz(),oe=d.useCallback(function(J){return LLe(void 0,void 0,void 0,function(){var we;return DLe(this,function(le){switch(le.label){case 0:return J.persist(),[4,ee({record:C,resource:$,link:typeof m=="function"?function(ge,pe){return m(ge.id,pe,ge)}:m})];case 1:return we=le.sent(),m==="expand"?(z(J),[2]):m==="toggleSelection"?(q(J),[2]):we===!1||we==null?[2]:(W(we,{state:{_scrollToTop:!0}}),[2])}})})},[C,$,m,W,z,q,ee]);return ke.createElement(ke.Fragment,null,ke.createElement(Sv,cO({ref:t,className:de(o,(r={},r[vt.expandable]=I,r[vt.selectable]=y,r[vt.clickableRow]=m??k,r)),key:h,style:O,hover:f,onClick:oe},x),i&&ke.createElement(zn,{padding:"none",className:vt.expandIconCell},I&&ke.createElement(FLe,{className:de(vt.expandIcon,(n={},n[vt.expanded]=F,n)),expanded:F,onClick:z,expandContentId:"".concat(h,"-expand")})),c&&ke.createElement(zn,{padding:"checkbox"},ke.createElement(Lf,{"aria-label":P("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(vt.checkbox),checked:y&&w,onClick:q,disabled:!y})),ke.Children.map(a,function(J,we){return d.isValidElement(J)?ke.createElement(y8,{key:"".concat(h,"-").concat(J.props.source||we),className:de("column-".concat(J.props.source),vt.rowCell),record:C,field:J,resource:$}):null})),I&&F&&ke.createElement(Sv,{key:"".concat(h,"-expand"),id:"".concat(h,"-expand"),className:vt.expandedPanel},ke.createElement(zn,{colSpan:V},d.isValidElement(i)?i:d.createElement(i))))}),NLe=function(e,t){e.children,e.expand;var r=dO(e,["children","expand"]);t.children,t.expand;var n=dO(t,["children","expand"]);return $B(r,n)},x8=d.memo(_8,NLe);x8.displayName="PureDatagridRow";var fb=function(){return fb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=aDe&&(o=nDe,i=!1,t=new JLe(t));e:for(;++a0&&x.length>0&&x.every(function(S){return m.includes(S)}),onChange:y,onClick:function(S){return S.stopPropagation()}})),d.Children.map(t,function(S,P){return d.isValidElement(S)?d.createElement(HLe,{className:de(vt.headerCell,"column-".concat(S.props.source)),sort:f,field:S,isSorting:(f==null?void 0:f.field)===(S.props.sortBy||S.props.source),key:S.props.source||P,updateSort:_||void 0}):null})))};E8.displayName="DatagridHeader";var vDe=function(e){var t=e.children,r=e.value;return ke.createElement(T$.Provider,{value:r},t)},M$={},mDe=He;Object.defineProperty(M$,"__esModule",{value:!0});var C8=M$.default=void 0,gDe=mDe(Ke()),yDe=E;C8=M$.default=(0,gDe.default)((0,yDe.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 pO=function(){return pO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?d.createElement(d.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",d.createElement(cr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Ov=function(){return Ov=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?k=Ys(Ys(Ys(Ys([],c.slice(0,R),!0),[c[$]],!1),c.slice(R,$),!0),c.slice($+1),!0):k=Ys(Ys(Ys(Ys([],c.slice(0,$),!0),c.slice($+1,R+1),!0),[c[$]],!1),c.slice(R+1),!0),s(k),m(function(I){return k.filter(function(M){return I.includes(M.index)}).map(function(M){return M.index})})}};return d.createElement(d.Fragment,null,w?d.createElement(kn,{title:O},d.createElement(Br,hb({"aria-label":O,color:"primary",onClick:_,size:"large"},YD(e)),d.createElement(hO,null))):d.createElement(TDe,hb({size:"small",onClick:_,startIcon:d.createElement(hO,null)},YD(e)),O),d.createElement(z2,{open:!!o,anchorEl:o,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d.createElement(aa,{component:"ul",p:1,my:0},c.map(function(P){return d.createElement(UU,{key:P.index,source:P.source,label:P.label,index:P.index,selected:v.includes(P.index),onToggle:x,onMove:S})}))))},TDe=te(nn,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),YD=function(e){e.resource,e.preferenceKey;var t=IDe(e,["resource","preferenceKey"]);return t},ADe=function(e){var t,r=e.filterElement,n=e.handleHide,a=e.className,o=Vt(e),i=Be();return d.createElement(MDe,{"data-source":r.props.source,className:de("filter-field",a)},d.cloneElement(r,{resource:o,record:FDe,size:(t=r.props.size)!==null&&t!==void 0?t:"small",helperText:!1,defaultValue:void 0}),!r.props.alwaysOn&&d.createElement(Br,{className:de("hide-filter",vb.hideButton),onClick:n,"data-key":r.props.source,title:i("ra.action.remove_filter"),size:"small"},d.createElement(R$,null)),d.createElement("div",{className:vb.spacer}," "))},vO="RaFilterFormInput",vb={spacer:"".concat(vO,"-spacer"),hideButton:"".concat(vO,"-hideButton")},MDe=te("div",{name:vO,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"},t[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(vb.spacer)]={width:r.spacing(2)},t["& .".concat(vb.hideButton)]={marginBottom:r.spacing(1)},t}),FDe={},O1=d.createContext(void 0),Ml=function(){return Ml=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1] element instead.")})},[r]);var f=function(){if(!r)return[];var m=o.getValues();return r.filter(function(b){var w=qt(m,b.props.source);return b.props.alwaysOn||c[b.props.source]||!k8(w)})},h=d.useCallback(function(m){return s(m.currentTarget.dataset.key)},[s]),v=d.useMemo(function(){return{getSource:function(m){return m},getLabel:function(m){return"resources.".concat(a,".fields.").concat(m)}}},[a]);return d.createElement(k_,{value:v},d.createElement(HDe,Ml({className:t},UDe(n),{onSubmit:zDe}),f().map(function(m){return d.createElement(ADe,{key:m.key||m.props.source,filterElement:m,handleHide:h,resource:a,className:mb.filterFormInput})}),d.createElement("div",{className:mb.clearFix})))},zDe=function(e){return e.preventDefault(),!1},UDe=function(e){e.hasCreate,e.resource;var t=L$(e,["hasCreate","resource"]);return t},VDe=function(e,t){return Ml(Ml({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return i_(Ml({},r),n.props.source,n.props.defaultValue)},{})),e)},WDe=function(e){return e.preventDefault(),e.stopPropagation(),!1},mO="RaFilterForm",mb={clearFix:"".concat(mO,"-clearFix"),filterFormInput:"".concat(mO,"-filterFormInput")},HDe=te("form",{name:mO,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(mb.clearFix)]={clear:"right"},t["& .".concat(mb.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),qDe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=$8(e,a,t),n},(r=PB(t))!==null&&r!==void 0?r:{})},$8=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return qt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,l=$8(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=l,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},k8=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return k8(e[t])}):!1},D$={},GDe=He;Object.defineProperty(D$,"__esModule",{value:!0});var wc=D$.default=void 0,KDe=GDe(Ke()),QDe=E;wc=D$.default=(0,KDe.default)((0,QDe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var N$={},XDe=He;Object.defineProperty(N$,"__esModule",{value:!0});var j8=N$.default=void 0,YDe=XDe(Ke()),JDe=E;j8=N$.default=(0,YDe.default)((0,JDe.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var B$={},ZDe=He;Object.defineProperty(B$,"__esModule",{value:!0});var I8=B$.default=void 0,eNe=ZDe(Ke()),tNe=E;I8=B$.default=(0,eNe.default)((0,tNe.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var z$={},rNe=He;Object.defineProperty(z$,"__esModule",{value:!0});var T8=z$.default=void 0,nNe=rNe(Ke()),aNe=E;T8=z$.default=(0,nNe.default)((0,aNe.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var U$={},oNe=He;Object.defineProperty(U$,"__esModule",{value:!0});var A8=U$.default=void 0,iNe=oNe(Ke()),sNe=E;A8=U$.default=(0,iNe.default)((0,sNe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var V$={},lNe=He;Object.defineProperty(V$,"__esModule",{value:!0});var M8=V$.default=void 0,uNe=lNe(Ke()),cNe=E;M8=V$.default=(0,uNe.default)((0,cNe.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var W$={},dNe=He;Object.defineProperty(W$,"__esModule",{value:!0});var F8=W$.default=void 0,fNe=dNe(Ke()),pNe=E;F8=W$.default=(0,fNe.default)((0,pNe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var hNe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,l=Vt(e),c=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),s=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(za,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?s:c,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Vu,null,i?d.createElement(F8,{fontSize:"small"}):d.createElement(M8,{fontSize:"small"})),d.createElement(Td,null,d.createElement(Ro,{label:r.props.label,source:r.props.source,resource:l})))}),H$=function(e){return $n("".concat(e,".savedQueries"),[])},q$=function(e){return Array.isArray(e)?e.filter(function(t){return vNe(t)}):[]},vNe=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")},mNe=function(e){var t=e.open,r=e.onClose,n=Be(),a=Hn(),o=a.resource,i=a.filterValues,l=a.displayedFilters,c=a.sort,s=a.perPage,f=H$(o),h=f[0],v=f[1],m=d.useState(""),b=m[0],w=m[1],O=function(x){w(x.target.value)},_=function(x){x.preventDefault(),y()},y=function(){var x={label:b,value:{filter:i,sort:c,perPage:s,displayedFilters:l}},S=q$(h);v(S.concat(x)),w(""),r()};return d.createElement(im,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(lm,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(sm,null,d.createElement("form",{onSubmit:_},d.createElement(um,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:b,onChange:O}))),d.createElement(L2,null,d.createElement(nn,{onClick:r},n("ra.action.cancel")),d.createElement(nn,{onClick:y,color:"primary"},n("ra.action.save"))))},JD=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var f=H$(c||"")[0],h=Li(),v=Hn(),m=v.displayedFilters,b=m===void 0?{}:m,w=v.filterValues,O=v.perPage,_=v.setFilters,y=v.showFilter,x=v.hideFilter,S=v.sort,P=!Eo(w,{}),C=q$(f),$=C.some(function(me){return Eo(me.value,{filter:w,sort:S,perPage:O,displayedFilters:b})}),R=d.useState(!1),k=R[0],I=R[1],M=d.useRef();if(l===void 0)throw new Error("The component requires the prop to be set");var F=l.filter(function(me){return!me.props.alwaysOn}),L=d.useCallback(function(me){me.preventDefault(),I(!0),M.current=me.currentTarget},[M,I]),B=d.useCallback(function(){I(!1)},[I]),V=d.useCallback(function(me){var xe=me.source,ne=me.defaultValue;y(xe,ne===""?void 0:ne),setTimeout(function(){var Te=document.querySelector("input[name='".concat(xe,"']"));Te&&Te.focus()},50),I(!1)},[y,I]),H=d.useCallback(function(me){var xe=me.source;x(xe),I(!1)},[x,I]),W=d.useState(!1),z=W[0],q=W[1],ee=function(){q(!1)},oe=function(){I(!1),q(!0)},J=d.useState(!1),we=J[0],le=J[1],ge=function(){le(!1)},pe=function(){I(!1),le(!0)};return F.length===0&&C.length===0&&!P?null:d.createElement(xNe,gO({className:r},bNe(i)),d.createElement(cr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:o,size:a},d.createElement(A8,null)),d.createElement(y1,{open:k,anchorEl:M.current,onClose:B},F.map(function(me,xe){return d.createElement(hNe,{key:me.props.source,filter:me,displayed:!!b[me.props.source],resource:c,onShow:V,onHide:H,autoFocus:xe===0})}),(P||C.length>0)&&d.createElement(_v,null),C.map(function(me,xe){return Eo(me.value,{filter:w,sort:S,perPage:O,displayedFilters:b})?d.createElement(za,{onClick:pe,key:xe},d.createElement(Vu,null,d.createElement(I8,{fontSize:"small"})),d.createElement(Td,null,s("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:me.label}))):d.createElement(za,{onClick:function(){var ne,Te;h({search:vc.stringify({filter:JSON.stringify(me.value.filter),sort:(ne=me.value.sort)===null||ne===void 0?void 0:ne.field,order:(Te=me.value.sort)===null||Te===void 0?void 0:Te.order,page:1,perPage:me.value.perPage,displayedFilters:JSON.stringify(me.value.displayedFilters)})}),I(!1)},key:xe},d.createElement(Vu,null,d.createElement(T8,{fontSize:"small"})),d.createElement(Td,null,me.label))}),P&&!$&&!n&&d.createElement(za,{onClick:oe},d.createElement(Vu,null,d.createElement(j8,{fontSize:"small"})),d.createElement(Td,null,s("ra.saved_queries.new_label",{_:"Save current query..."}))),P&&d.createElement(za,{onClick:function(){_({},{}),I(!1)}},d.createElement(Vu,null,d.createElement(wc,{fontSize:"small"})),d.createElement(Td,null,s("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(mNe,{open:z,onClose:ee}),d.createElement(gNe,{open:we,onClose:ge})))},bNe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=L8(e,["displayedFilters","filterValues","showFilter"]);return t},_Ne="RaFilterButton",xNe=te("div",{name:_Ne,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),G$={},wNe=He;Object.defineProperty(G$,"__esModule",{value:!0});var D8=G$.default=void 0,SNe=wNe(Ke()),ENe=E;D8=G$.default=(0,SNe.default)((0,ENe.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 yO=function(){return yO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r_-1)throw new Error(w("ra.navigation.page_out_of_boundaries",{page:R+1}));m(R+1)},[_,m,w]),x=d.useCallback(function($){b($.target.value)},[b]),S=d.useCallback(function($){var R=$.from,k=$.to,I=$.count;return I===-1&&s?w("ra.navigation.partial_page_range_info",{offsetBegin:R,offsetEnd:k,_:"%{from}-%{to} of more than %{to}"}):w("ra.navigation.page_range_info",{offsetBegin:R,offsetEnd:k,total:I===-1?k:I,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[w,s]),P=d.useCallback(function($){return w("ra.navigation.".concat($),{_:"Go to ".concat($," page")})},[w]);if(c)return d.createElement(dp,{variant:"dense"});if(v===0||f<1||v!=null&&f>_)return o!=null,null;if(O)return d.createElement(TD,gb({count:v??-1,rowsPerPage:h,page:f-1,onPageChange:y,rowsPerPageOptions:kNe,component:"span",labelDisplayedRows:S},cv(i)));var C=n||(!c&&v!=null?CNe:void 0);return d.createElement(TD,gb({count:v??-1,rowsPerPage:h,page:f-1,onPageChange:y,onRowsPerPageChange:x,ActionsComponent:C,nextIconButtonProps:{disabled:!s},component:"span",labelRowsPerPage:w("ra.navigation.page_rows_per_page"),labelDisplayedRows:S,getItemAriaLabel:P,rowsPerPageOptions:r},cv(i)))}),$Ne=[5,10,25,50],kNe=[],yb=function(){return yb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof pe.target.value>"u")){var me=pe.target,xe=me.valueAsDate!==void 0&&me.valueAsDate!==null&&!isNaN(new Date(me.valueAsDate).getTime())?b?b(me.valueAsDate):me.valueAsDate:b?b(me.value):Hg(me.value);xe!==""&&xe!=null&&(P.onChange(xe),F.current=!0)}},z=function(pe){f&&f(pe),H.current=!0},q=function(){if(H.current=!1,!!L.current){var pe=L.current.valueAsDate!==void 0&&L.current.valueAsDate!==null&&!isNaN(new Date(L.current.valueAsDate).getTime())?b?b(L.current.valueAsDate):Hg(L.current.valueAsDate):b?b(L.current.value):Hg(L.current.value);pe!==P.value&&P.onChange(pe??""),V&&V()}},ee=C.error,oe=C.invalid,J=i!==!1||oe,we=P.ref,le=P.name,ge=o_e([we,L]);return d.createElement(um,yb({id:$,inputRef:ge,name:le,defaultValue:a(B.current),key:I,type:"datetime-local",onChange:W,onFocus:z,onBlur:q,className:de("ra-input","ra-input-".concat(h),t),size:"small",variant:O,margin:l,error:oe,disabled:_||y,readOnly:y,helperText:J?d.createElement(xc,{error:ee==null?void 0:ee.message,helperText:i}):null,label:d.createElement(Ro,{label:o,source:h,resource:v,isRequired:R}),InputLabelProps:MNe},pp(x)))},B8=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},TNe=B8(4),Wg=B8(2),eN=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=TNe(e.getFullYear()),r=Wg(e.getMonth()+1),n=Wg(e.getDate()),a=Wg(e.getHours()),o=Wg(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},ANe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,MNe={shrink:!0},Hg=function(e){return e==null||e===""?"":e instanceof Date?eN(e):ANe.test(e)?e:eN(new Date(e))},bb=function(){return bb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof xe.target.value>"u")){var ne=xe.target;ee(ne.value);var Te=ne.valueAsNumber!==void 0&&ne.valueAsNumber!==null&&!isNaN(ne.valueAsNumber)?v?v(ne.valueAsNumber):ne.valueAsNumber:v?v(ne.value):zNe(ne.value);I.onChange(Te)}},we=function(xe){h&&h(xe),oe.current=!0},le=function(){H&&H(),oe.current=!1;var xe=o(I.value);ee(function(ne){return ne!==xe?xe:ne})},ge=i!==!1||L,pe=I.ref,me=rN(I,["ref"]);return d.createElement(um,nl({id:B},me,{inputRef:pe,value:q,onChange:J,onFocus:we,onBlur:le,className:de("ra-input","ra-input-".concat(b),t),type:"number",size:"small",variant:S,error:L,disabled:C||$,readOnly:$,helperText:ge?d.createElement(xc,{error:F==null?void 0:F.message,helperText:i}):null,label:d.createElement(Ro,{label:l,source:b,resource:m,isRequired:V}),margin:c,inputProps:nl(nl({},W),{readOnly:$})},pp(R)))},zNe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},UNe=function(e){return e==null||isNaN(e)?"":e.toString()},Q$={},VNe=He;Object.defineProperty(Q$,"__esModule",{value:!0});var X$=Q$.default=void 0,WNe=VNe(Ke()),HNe=E;X$=Q$.default=(0,WNe.default)((0,HNe.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 Y$={},qNe=He;Object.defineProperty(Y$,"__esModule",{value:!0});var U8=Y$.default=void 0,GNe=qNe(Ke()),KNe=E;U8=Y$.default=(0,GNe.default)((0,KNe.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 _b=function(){return _b=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(ZNe,_O({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Hd,{position:"end"},d.createElement(D8,{color:"disabled"}))},size:"small"},r))},JNe="RaSearchInput",ZNe=te(fn,{name:JNe,overridesResolver:function(e,t){return t.root}})({marginTop:0}),Df=function(){return Df=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!h.message?"ra.auth.sign_in_error":h.message,{type:"error",messageArgs:{_:typeof h=="string"?h:h&&h.message?h.message:void 0}})})};return d.createElement(i3e,{onSubmit:s,mode:"onChange",noValidate:!0,className:r},d.createElement(vo,{className:Xd.content},d.createElement(fn,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:Va()}),d.createElement(fn,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Va()}),d.createElement(nn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:Xd.button},a?d.createElement(lp,{className:Xd.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},ky="RaLoginForm",Xd={content:"".concat(ky,"-content"),button:"".concat(ky,"-button"),icon:"".concat(ky,"-icon")},i3e=te(y_,{name:ky,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Xd.content)]={width:300},t["& .".concat(Xd.button)]={marginTop:r.spacing(2)},t["& .".concat(Xd.icon)]={margin:r.spacing(.3)},t}),xO=function(){return xO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?_3e:r;return a?d.createElement(w3e,CO({className:de("edit-page",o)},s),c!==!1&&d.createElement(kc,{title:c,defaultTitle:m,preferenceKey:"".concat(v,".edit.title")}),w,d.createElement("div",{className:de(Zd.main,(t={},t[Zd.noActions]=!w,t))},d.createElement(l,{className:Zd.card},b?a:d.createElement(vo,null," ")),n)):null},Ty="RaEdit",Zd={main:"".concat(Ty,"-main"),noActions:"".concat(Ty,"-noActions"),card:"".concat(Ty,"-card")},w3e=te("div",{name:Ty,overridesResolver:function(e,t){return t.root}})((Jp={},Jp["& .".concat(Zd.main)]={display:"flex",alignItems:"flex-start"},Jp["& .".concat(Zd.noActions)]={marginTop:"1em"},Jp["& .".concat(Zd.card)]={flex:"1 1 auto"},Jp)),OO=function(){return OO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},$O=function(){return $O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error("the value prop is required at runtime");var m=function(){return d.createElement(L3e,wb({label:c,count:a,value:h,icon:i,className:r,syncWithLocation:f,onChange:s},N3e(v)))},b=function(){return d.createElement(ebe,{name:h.toString()},d.createElement(up,wb({alignItems:"flex-start",style:o?D3e:void 0,className:n,id:"tabpanel-".concat(h),"aria-labelledby":"tabheader-".concat(h),"aria-hidden":o||void 0},v),t))};return l==="header"?m():b()};vi.displayName="FormTab";var D3e={display:"none"},N3e=function(e){e.classes,e.ref,e.margin;var t=X8(e,["classes","ref","margin"]);return t},Sb=function(){return Sb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&O?X3e:r;return!a||!w&&s?null:d.createElement(J3e,jO({className:de("show-page",o)},h),f!==!1&&d.createElement(kc,{title:f,defaultTitle:b,preferenceKey:"".concat(m,".show.title")}),_!==!1&&_,d.createElement("div",{className:de(tf.main,(t={},t[tf.noActions]=!_,t))},d.createElement(l,{className:tf.card},a),n))},My="RaShow",tf={main:"".concat(My,"-main"),noActions:"".concat(My,"-noActions"),card:"".concat(My,"-card")},J3e=te("div",{name:My,overridesResolver:function(e,t){return t.root}})((Zp={},Zp["& .".concat(tf.main)]={display:"flex"},Zp["& .".concat(tf.noActions)]={marginTop:"1em"},Zp["& .".concat(tf.card)]={flex:"1 1 auto"},Zp)),IO=function(){return IO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var m=Zl(e);if(m==null||m==="")return r?d.createElement($t,Pb({component:"span",variant:"body2",className:t},Ai(h)),r&&v(r,{_:r})):null;var b=f(m),w="";if(b)if(i&&c)w=mS?b.toLocaleString(n,a):b.toLocaleString();else if(c){var O=a??(typeof m=="string"&&m.length<=10?{timeZone:"UTC"}:void 0);w=mS?b.toLocaleDateString(n,O):b.toLocaleDateString()}else i&&(w=mS?b.toLocaleTimeString(n,a):b.toLocaleTimeString());return d.createElement($t,Pb({component:"span",variant:"body2",className:t},Ai(h)),w)};rV.displayName="DateFieldImpl";var Pn=Tc(rV),u4e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},mS=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),AO=function(){return AO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),El=function(e){var t=e.children,r=e.debounce,n=e.filter,a=n===void 0?S4e:n,o=e.page,i=o===void 0?1:o,l=e.pagination,c=l===void 0?null:l,s=e.perPage,f=s===void 0?25:s,h=e.reference,v=e.resource,m=e.sort,b=m===void 0?E4e:m,w=e.source,O=w===void 0?"id":w,_=e.storeKey,y=e.target,x=e.queryOptions,S=Kt(e),P=o0e({debounce:r,filter:a,page:i,perPage:f,record:S,reference:h,resource:v,sort:b,source:O,storeKey:_,target:y,queryOptions:x});return ke.createElement(Jl,{value:h},ke.createElement(BR,{value:P},t,c))},S4e={},E4e={field:"id",order:"DESC"},kb=function(){return kb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},zh=function(){return zh=Object.assign||function(e){for(var t,r=1,n=arguments.length;rJ9[e]||e,b$e=({theme:e,ownerState:t})=>{const r=y$e(t.color),n=Rf(e,`palette.${r}`,!1)||t.color,a=Rf(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:nr(n,.4)},_$e=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],x$e=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${Pe(a)}`,r==="button"&&"button",n&&"focusVisible"]};return tt(o,m$e,t)},w$e=te($t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Pe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>I({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&I({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:b$e({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"},[`&.${g$e.focusVisible}`]:{outline:"auto"}})),S$e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:l,onFocus:c,TypographyClasses:s,underline:f="always",variant:h="inherit",sx:v}=n,m=Re(n,_$e),{isFocusVisibleRef:b,onBlur:w,onFocus:O,ref:_}=n1(),[y,x]=d.useState(!1),S=Tr(r,_),P=k=>{w(k),b.current===!1&&x(!1),l&&l(k)},C=k=>{O(k),b.current===!0&&x(!0),c&&c(k)},$=I({},n,{color:o,component:i,focusVisible:y,underline:f,variant:h}),R=x$e($);return E.jsx(w$e,I({color:o,className:de(R.root,a),classes:s,component:i,onBlur:P,onFocus:C,ref:S,ownerState:$,variant:h,sx:[...Object.keys(J9).includes(o)?[]:[{color:o}],...Array.isArray(v)?v:[v]]},m))}),wv=d.createContext({});function E$e(e){return et("MuiList",e)}ot("MuiList",["root","padding","dense","subheader"]);const C$e=["children","className","component","dense","disablePadding","subheader"],O$e=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return tt({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},E$e,t)},P$e=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>I({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),R$e=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:s}=n,f=Re(n,C$e),h=d.useMemo(()=>({dense:l}),[l]),v=I({},n,{component:i,dense:l,disablePadding:c}),m=O$e(v);return E.jsx(wv.Provider,{value:h,children:E.jsxs(P$e,I({as:i,className:de(m.root,o),ref:r,ownerState:v},f,{children:[s,a]}))})});function $$e(e){return et("MuiListItemIcon",e)}const gD=ot("MuiListItemIcon",["root","alignItemsFlexStart"]),k$e=["className"],j$e=e=>{const{alignItems:t,classes:r}=e;return tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},$$e,r)},T$e=te("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>I({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Vu=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Re(n,k$e),i=d.useContext(wv),l=I({},n,{alignItems:i.alignItems}),c=j$e(l);return E.jsx(T$e,I({className:de(c.root,a),ownerState:l,ref:r},o))});function I$e(e){return et("MuiListItemText",e)}const Hb=ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),A$e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],M$e=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return tt({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},I$e,t)},F$e=te("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Hb.primary}`]:t.primary},{[`& .${Hb.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>I({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Id=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:l=!1,primary:c,primaryTypographyProps:s,secondary:f,secondaryTypographyProps:h}=n,v=Re(n,A$e),{dense:m}=d.useContext(wv);let b=c??a,w=f;const O=I({},n,{disableTypography:i,inset:l,primary:!!b,secondary:!!w,dense:m}),_=M$e(O);return b!=null&&b.type!==$t&&!i&&(b=E.jsx($t,I({variant:m?"body2":"body1",className:_.primary,component:s!=null&&s.variant?void 0:"span",display:"block"},s,{children:b}))),w!=null&&w.type!==$t&&!i&&(w=E.jsx($t,I({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:w}))),E.jsxs(F$e,I({className:de(_.root,o),ownerState:O,ref:r},v,{children:[b,w]}))}),L$e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function yD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Z9(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 Kp(e,t,r,n,a,o){let i=!1,l=a(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const c=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Z9(l,o)||c)l=a(e,l,r);else return l.focus(),!0}return!1}const eU=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:l,disabledItemsFocusable:c=!1,disableListWrap:s=!1,onKeyDown:f,variant:h="selectedMenu"}=t,v=Re(t,L$e),m=d.useRef(null),b=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qa(()=>{a&&m.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const P=!m.current.style.width;if(x.clientHeight{const S=m.current,P=x.key,C=tn(S).activeElement;if(P==="ArrowDown")x.preventDefault(),Kp(S,C,s,c,lS);else if(P==="ArrowUp")x.preventDefault(),Kp(S,C,s,c,yD);else if(P==="Home")x.preventDefault(),Kp(S,null,s,c,lS);else if(P==="End")x.preventDefault(),Kp(S,null,s,c,yD);else if(P.length===1){const $=b.current,R=P.toLowerCase(),k=performance.now();$.keys.length>0&&(k-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&R!==$.keys[0]&&($.repeating=!1)),$.lastTime=k,$.keys.push(R);const T=C&&!$.repeating&&Z9(C,$);$.previousKeyMatched&&(T||Kp(S,C,!1,c,lS,$))?x.preventDefault():$.previousKeyMatched=!1}f&&f(x)},O=Tr(m,r);let _=-1;d.Children.forEach(i,(x,S)=>{if(!d.isValidElement(x)){_===S&&(_+=1,_>=i.length&&(_=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||_===-1)&&(_=S),_===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(_+=1,_>=i.length&&(_=-1))});const y=d.Children.map(i,(x,S)=>{if(S===_){const P={};return o&&(P.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(P.tabIndex=0),d.cloneElement(x,P)}return x});return E.jsx(R$e,I({role:"menu",ref:O,className:l,onKeyDown:w,tabIndex:a?0:-1},v,{children:y}))});function D$e(e){return et("MuiPopover",e)}ot("MuiPopover",["root","paper"]);const N$e=["onEntering"],B$e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],z$e=["slotProps"];function bD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function _D(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function xD(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function uS(e){return typeof e=="function"?e():e}const U$e=e=>{const{classes:t}=e;return tt({root:["root"],paper:["paper"]},D$e,t)},V$e=te(F2,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tU=te(tu,{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}),z2=d.forwardRef(function(t,r){var n,a,o;const i=rt({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:v,className:m,container:b,elevation:w=8,marginThreshold:O=16,open:_,PaperProps:y={},slots:x,slotProps:S,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:C=xv,transitionDuration:$="auto",TransitionProps:{onEntering:R}={},disableScrollLock:k=!1}=i,T=Re(i.TransitionProps,N$e),M=Re(i,B$e),F=(n=S==null?void 0:S.paper)!=null?n:y,L=d.useRef(),B=Tr(L,F.ref),V=I({},i,{anchorOrigin:s,anchorReference:h,elevation:w,marginThreshold:O,externalPaperSlotProps:F,transformOrigin:P,TransitionComponent:C,transitionDuration:$,TransitionProps:T}),H=U$e(V),W=d.useCallback(()=>{if(h==="anchorPosition")return f;const ye=uS(c),Le=(ye&&ye.nodeType===1?ye:tn(L.current).body).getBoundingClientRect();return{top:Le.top+bD(Le,s.vertical),left:Le.left+_D(Le,s.horizontal)}},[c,s.horizontal,s.vertical,f,h]),z=d.useCallback(ye=>({vertical:bD(ye,P.vertical),horizontal:_D(ye,P.horizontal)}),[P.horizontal,P.vertical]),q=d.useCallback(ye=>{const je={width:ye.offsetWidth,height:ye.offsetHeight},Le=z(je);if(h==="none")return{top:null,left:null,transformOrigin:xD(Le)};const st=W();let Xe=st.top-Le.vertical,U=st.left-Le.horizontal;const K=Xe+je.height,Z=U+je.width,ie=$o(uS(c)),ue=ie.innerHeight-O,ce=ie.innerWidth-O;if(O!==null&&Xeue){const Ee=K-ue;Xe-=Ee,Le.vertical+=Ee}if(O!==null&&Uce){const Ee=Z-ce;U-=Ee,Le.horizontal+=Ee}return{top:`${Math.round(Xe)}px`,left:`${Math.round(U)}px`,transformOrigin:xD(Le)}},[c,h,W,z,O]),[ee,oe]=d.useState(_),J=d.useCallback(()=>{const ye=L.current;if(!ye)return;const je=q(ye);je.top!==null&&(ye.style.top=je.top),je.left!==null&&(ye.style.left=je.left),ye.style.transformOrigin=je.transformOrigin,oe(!0)},[q]);d.useEffect(()=>(k&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[c,k,J]);const we=(ye,je)=>{R&&R(ye,je),J()},le=()=>{oe(!1)};d.useEffect(()=>{_&&J()}),d.useImperativeHandle(l,()=>_?{updatePosition:()=>{J()}}:null,[_,J]),d.useEffect(()=>{if(!_)return;const ye=op(()=>{J()}),je=$o(c);return je.addEventListener("resize",ye),()=>{ye.clear(),je.removeEventListener("resize",ye)}},[c,_,J]);let ge=$;$==="auto"&&!C.muiSupportAuto&&(ge=void 0);const pe=b||(c?tn(uS(c)).body:void 0),me=(a=x==null?void 0:x.root)!=null?a:V$e,xe=(o=x==null?void 0:x.paper)!=null?o:tU,ne=ko({elementType:xe,externalSlotProps:I({},F,{style:ee?F.style:I({},F.style,{opacity:0})}),additionalProps:{elevation:w,ref:B},ownerState:V,className:de(H.paper,F==null?void 0:F.className)}),Ie=ko({elementType:me,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:pe,open:_},ownerState:V,className:de(H.root,m)}),{slotProps:ve}=Ie,$e=Re(Ie,z$e);return E.jsx(me,I({},$e,!mv(me)&&{slotProps:ve,disableScrollLock:k},{children:E.jsx(C,I({appear:!0,in:_,onEntering:we,onExited:le,timeout:ge},T,{children:E.jsx(xe,I({},ne,{children:v}))}))}))});function W$e(e){return et("MuiMenu",e)}ot("MuiMenu",["root","paper","list"]);const H$e=["onEntering"],q$e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],G$e={vertical:"top",horizontal:"right"},K$e={vertical:"top",horizontal:"left"},Q$e=e=>{const{classes:t}=e;return tt({root:["root"],paper:["paper"],list:["list"]},W$e,t)},X$e=te(z2,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y$e=te(tU,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),J$e=te(eU,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),y1=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:c,disableAutoFocusItem:s=!1,MenuListProps:f={},onClose:h,open:v,PaperProps:m={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:O}={},variant:_="selectedMenu",slots:y={},slotProps:x={}}=o,S=Re(o.TransitionProps,H$e),P=Re(o,q$e),C=eu(),$=I({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:f,onEntering:O,PaperProps:m,transitionDuration:w,TransitionProps:S,variant:_}),R=Q$e($),k=i&&!s&&v,T=d.useRef(null),M=(z,q)=>{T.current&&T.current.adjustStyleForScrollbar(z,{direction:C?"rtl":"ltr"}),O&&O(z,q)},F=z=>{z.key==="Tab"&&(z.preventDefault(),h&&h(z,"tabKeyDown"))};let L=-1;d.Children.map(l,(z,q)=>{d.isValidElement(z)&&(z.props.disabled||(_==="selectedMenu"&&z.props.selected||L===-1)&&(L=q))});const B=(n=y.paper)!=null?n:Y$e,V=(a=x.paper)!=null?a:m,H=ko({elementType:y.root,externalSlotProps:x.root,ownerState:$,className:[R.root,c]}),W=ko({elementType:B,externalSlotProps:V,ownerState:$,className:R.paper});return E.jsx(X$e,I({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?G$e:K$e,slots:{paper:B,root:y.root},slotProps:{root:H,paper:W},open:v,ref:r,transitionDuration:w,TransitionProps:I({onEntering:M},S),ownerState:$},P,{classes:b,children:E.jsx(J$e,I({onKeyDown:F,actions:T,autoFocus:i&&(L===-1||s),autoFocusItem:k,variant:_},f,{className:de(R.list,f.className),children:l}))}))});function Z$e(e){return et("MuiMenuItem",e)}const Qp=ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eke=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tke=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},rke=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,c=tt({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Z$e,i);return I({},i,c)},nke=te(ks,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:tke})(({theme:e,ownerState:t})=>I({},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"}},[`&.${Qp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:nr(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})`:nr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aD.inset}`]:{marginLeft:52},[`& .${Hb.root}`]:{marginTop:0,marginBottom:0},[`& .${Hb.inset}`]:{paddingLeft:36},[`& .${gD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&I({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gD.root} svg`]:{fontSize:"1.25rem"}}))),za=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:s,role:f="menuitem",tabIndex:h,className:v}=n,m=Re(n,eke),b=d.useContext(wv),w=d.useMemo(()=>({dense:i||b.dense||!1,disableGutters:c}),[b.dense,i,c]),O=d.useRef(null);qa(()=>{a&&O.current&&O.current.focus()},[a]);const _=I({},n,{dense:w.dense,divider:l,disableGutters:c}),y=rke(n),x=Tr(O,r);let S;return n.disabled||(S=h!==void 0?h:-1),E.jsx(wv.Provider,{value:w,children:E.jsx(nke,I({ref:x,role:f,tabIndex:S,component:o,focusVisibleClassName:de(y.focusVisible,s),className:de(y.root,v)},m,{ownerState:_,classes:y}))})});function rU(e){return et("MuiNativeSelect",e)}const U2=ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ake=["className","disabled","error","IconComponent","inputRef","variant"],oke=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,l={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Pe(r)}`,o&&"iconOpen",n&&"disabled"]};return tt(l,rU,t)},nU=({ownerState:e,theme:t})=>I({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":I({},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"},[`&.${U2.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}}),ike=te("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${U2.multiple}`]:t.multiple}]}})(nU),aU=({ownerState:e,theme:t})=>I({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${U2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ske=te("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Pe(r.variant)}`],r.open&&t.iconOpen]}})(aU),oU=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:l,variant:c="standard"}=t,s=Re(t,ake),f=I({},t,{disabled:a,variant:c,error:o}),h=oke(f);return E.jsxs(d.Fragment,{children:[E.jsx(ike,I({ownerState:f,className:de(h.select,n),disabled:a,ref:l||r},s)),t.multiple?null:E.jsx(ske,{as:i,ownerState:f,className:h.icon})]})}),lke=["className","children","classes","IconComponent","input","inputProps","variant"],uke=["root"],cke=e=>{const{classes:t}=e;return tt({root:["root"]},rU,t)},dke=E.jsx(g1,{}),SC=d.forwardRef(function(t,r){const n=rt({name:"MuiNativeSelect",props:t}),{className:a,children:o,classes:i={},IconComponent:l=B9,input:c=dke,inputProps:s}=n,f=Re(n,lke),h=si(),v=js({props:n,muiFormControl:h,states:["variant"]}),m=I({},n,{classes:i}),b=cke(m),w=Re(i,uke);return E.jsx(d.Fragment,{children:d.cloneElement(c,I({inputComponent:oU,inputProps:I({children:o,classes:w,IconComponent:l,variant:v.variant,type:void 0},s,c?c.props.inputProps:{}),ref:r},f,{className:de(b.root,c.props.className,a)}))})});SC.muiName="Select";var wD;const fke=["children","classes","className","label","notched"],pke=te("fieldset",{shouldForwardProp:Tn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),hke=te("legend",{shouldForwardProp:Tn})(({ownerState:e,theme:t})=>I({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&&I({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 vke(e){const{className:t,label:r,notched:n}=e,a=Re(e,fke),o=r!=null&&r!=="",i=I({},e,{notched:n,withLabel:o});return E.jsx(pke,I({"aria-hidden":!0,className:t,ownerState:i},a,{children:E.jsx(hke,{ownerState:i,children:o?E.jsx("span",{children:r}):wD||(wD=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const mke=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gke=e=>{const{classes:t}=e,n=tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LOe,t);return I({},t,n)},yke=te(f1,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:c1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return I({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Gs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Gs.focused} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Gs.error} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Gs.disabled} .${Gs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&I({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bke=te(vke,{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}}),_ke=te(p1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:d1})(({theme:e,ownerState:t})=>I({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})),V2=d.forwardRef(function(t,r){var n,a,o,i,l;const c=rt({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:f=!1,inputComponent:h="input",label:v,multiline:m=!1,notched:b,slots:w={},type:O="text"}=c,_=Re(c,mke),y=gke(c),x=si(),S=js({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=I({},c,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:f,hiddenLabel:S.hiddenLabel,multiline:m,size:S.size,type:O}),C=(n=(a=w.root)!=null?a:s.Root)!=null?n:yke,$=(o=(i=w.input)!=null?i:s.Input)!=null?o:_ke;return E.jsx(h1,I({slots:{root:C,input:$},renderSuffix:R=>E.jsx(bke,{ownerState:P,className:y.notchedOutline,label:v!=null&&v!==""&&S.required?l||(l=E.jsxs(d.Fragment,{children:[v," ","*"]})):v,notched:typeof b<"u"?b:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:h,multiline:m,ref:r,type:O},_,{classes:I({},y,{notchedOutline:null})}))});V2.muiName="Input";function xke(e){return et("MuiPagination",e)}ot("MuiPagination",["root","ul","outlined","text"]);const wke=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Ske(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:l=!1,onChange:c,page:s,showFirstButton:f=!1,showLastButton:h=!1,siblingCount:v=1}=e,m=Re(e,wke),[b,w]=kf({controlled:s,default:a,name:r,state:"page"}),O=(k,T)=>{s||w(T),c&&c(k,T)},_=(k,T)=>{const M=T-k+1;return Array.from({length:M},(F,L)=>k+L)},y=_(1,Math.min(t,n)),x=_(Math.max(n-t+1,t+1),n),S=Math.max(Math.min(b-v,n-t-v*2-1),t+2),P=Math.min(Math.max(b+v,t+v*2+2),x.length>0?x[0]-2:n-1),C=[...f?["first"]:[],...l?[]:["previous"],...y,...S>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...x,...i?[]:["next"],...h?["last"]:[]],$=k=>{switch(k){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return n;default:return null}},R=C.map(k=>typeof k=="number"?{onClick:T=>{O(T,k)},type:"page",page:k,selected:k===b,disabled:o,"aria-current":k===b?"true":void 0}:{onClick:T=>{O(T,$(k))},type:k,page:$(k),selected:!1,disabled:o||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?b>=n:b<=1)});return I({items:R},m)}function Eke(e){return et("MuiPaginationItem",e)}const uo=ot("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),EC=Za(E.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),CC=Za(E.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),SD=Za(E.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),ED=Za(E.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Cke=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],iU=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.variant==="text"&&t[`text${Pe(r.color)}`],r.variant==="outlined"&&t[`outlined${Pe(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]},Oke=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:l,variant:c}=e,s={root:["root",`size${Pe(o)}`,c,i,r!=="standard"&&`color${Pe(r)}`,r!=="standard"&&`${c}${Pe(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return tt(s,Eke,t)},Pke=te("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:iU})(({theme:e,ownerState:t})=>I({},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",[`&.${uo.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)})),Rke=te(ks,{name:"MuiPaginationItem",slot:"Root",overridesResolver:iU})(({theme:e,ownerState:t})=>I({},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,[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uo.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"}},[`&.${uo.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}))`:nr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${uo.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})=>I({},t.variant==="text"&&{[`&.${uo.selected}`]:I({},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}},[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${uo.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)"}`,[`&.${uo.selected}`]:I({},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)`:nr(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:nr(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}))`:nr(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:nr(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${uo.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),$ke=te("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>I({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),kke=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:l={},disabled:c=!1,page:s,selected:f=!1,shape:h="circular",size:v="medium",slots:m={},type:b="page",variant:w="text"}=n,O=Re(n,Cke),_=I({},n,{color:o,disabled:c,selected:f,shape:h,size:v,type:b,variant:w}),y=eu(),x=Oke(_),P=(y?{previous:m.next||l.next||ED,next:m.previous||l.previous||SD,last:m.first||l.first||EC,first:m.last||l.last||CC}:{previous:m.previous||l.previous||SD,next:m.next||l.next||ED,first:m.first||l.first||EC,last:m.last||l.last||CC})[b];return b==="start-ellipsis"||b==="end-ellipsis"?E.jsx(Pke,{ref:r,ownerState:_,className:de(x.root,a),children:"…"}):E.jsxs(Rke,I({ref:r,ownerState:_,component:i,disabled:c,className:de(x.root,a)},O,{children:[b==="page"&&s,P?E.jsx($ke,{as:P,ownerState:_,className:x.icon}):null]}))}),jke=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Tke=e=>{const{classes:t,variant:r}=e;return tt({root:["root",r],ul:["ul"]},xke,t)},Ike=te("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Ake=te("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Mke(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Fke=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:l=1,defaultPage:c=1,disabled:s=!1,getItemAriaLabel:f=Mke,hideNextButton:h=!1,hidePrevButton:v=!1,renderItem:m=R=>E.jsx(kke,I({},R)),shape:b="circular",showFirstButton:w=!1,showLastButton:O=!1,siblingCount:_=1,size:y="medium",variant:x="text"}=n,S=Re(n,jke),{items:P}=Ske(I({},n,{componentName:"Pagination"})),C=I({},n,{boundaryCount:a,color:i,count:l,defaultPage:c,disabled:s,getItemAriaLabel:f,hideNextButton:h,hidePrevButton:v,renderItem:m,shape:b,showFirstButton:w,showLastButton:O,siblingCount:_,size:y,variant:x}),$=Tke(C);return E.jsx(Ike,I({"aria-label":"pagination navigation",className:de($.root,o),ownerState:C,ref:r},S,{children:E.jsx(Ake,{className:$.ul,ownerState:C,children:P.map((R,k)=>E.jsx("li",{children:m(I({},R,{color:i,"aria-label":f(R.type,R.page,R.selected),shape:b,size:y,variant:x}))},k))})}))});function Lke(e){return et("MuiSelect",e)}const Xp=ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var CD;const Dke=["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"],Nke=te("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Xp.select}`]:t.select},{[`&.${Xp.select}`]:t[r.variant]},{[`&.${Xp.error}`]:t.error},{[`&.${Xp.multiple}`]:t.multiple}]}})(nU,{[`&.${Xp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Bke=te("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Pe(r.variant)}`],r.open&&t.iconOpen]}})(aU),zke=te("input",{shouldForwardProp:e=>E9(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 OD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Uke(e){return e==null||typeof e=="string"&&!e.trim()}const Vke=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,l={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Pe(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return tt(l,Lke,t)},Wke=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:l,children:c,className:s,defaultOpen:f,defaultValue:h,disabled:v,displayEmpty:m,error:b=!1,IconComponent:w,inputRef:O,labelId:_,MenuProps:y={},multiple:x,name:S,onBlur:P,onChange:C,onClose:$,onFocus:R,onOpen:k,open:T,readOnly:M,renderValue:F,SelectDisplayProps:L={},tabIndex:B,value:V,variant:H="standard"}=t,W=Re(t,Dke),[z,q]=kf({controlled:V,default:h,name:"Select"}),[ee,oe]=kf({controlled:T,default:f,name:"Select"}),J=d.useRef(null),we=d.useRef(null),[le,ge]=d.useState(null),{current:pe}=d.useRef(T!=null),[me,xe]=d.useState(),ne=Tr(r,O),Ie=d.useCallback(qe=>{we.current=qe,qe&&ge(qe)},[]),ve=le==null?void 0:le.parentNode;d.useImperativeHandle(ne,()=>({focus:()=>{we.current.focus()},node:J.current,value:z}),[z]),d.useEffect(()=>{f&&ee&&le&&!pe&&(xe(l?null:ve.clientWidth),we.current.focus())},[le,l]),d.useEffect(()=>{i&&we.current.focus()},[i]),d.useEffect(()=>{if(!_)return;const qe=tn(we.current).getElementById(_);if(qe){const pt=()=>{getSelection().isCollapsed&&we.current.focus()};return qe.addEventListener("click",pt),()=>{qe.removeEventListener("click",pt)}}},[_]);const $e=(qe,pt)=>{qe?k&&k(pt):$&&$(pt),pe||(xe(l?null:ve.clientWidth),oe(qe))},ye=qe=>{qe.button===0&&(qe.preventDefault(),we.current.focus(),$e(!0,qe))},je=qe=>{$e(!1,qe)},Le=d.Children.toArray(c),st=qe=>{const pt=Le.find(Me=>Me.props.value===qe.target.value);pt!==void 0&&(q(pt.props.value),C&&C(qe,pt))},Xe=qe=>pt=>{let Me;if(pt.currentTarget.hasAttribute("tabindex")){if(x){Me=Array.isArray(z)?z.slice():[];const Ge=z.indexOf(qe.props.value);Ge===-1?Me.push(qe.props.value):Me.splice(Ge,1)}else Me=qe.props.value;if(qe.props.onClick&&qe.props.onClick(pt),z!==Me&&(q(Me),C)){const Ge=pt.nativeEvent||pt,wt=new Ge.constructor(Ge.type,Ge);Object.defineProperty(wt,"target",{writable:!0,value:{value:Me,name:S}}),C(wt,qe)}x||$e(!1,pt)}},U=qe=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(qe.key)!==-1&&(qe.preventDefault(),$e(!0,qe))},K=le!==null&&ee,Z=qe=>{!K&&P&&(Object.defineProperty(qe,"target",{writable:!0,value:{value:z,name:S}}),P(qe))};delete W["aria-invalid"];let ie,ue;const ce=[];let Ee=!1;(Wb({value:z})||m)&&(F?ie=F(z):Ee=!0);const Ae=Le.map(qe=>{if(!d.isValidElement(qe))return null;let pt;if(x){if(!Array.isArray(z))throw new Error(xs(2));pt=z.some(Me=>OD(Me,qe.props.value)),pt&&Ee&&ce.push(qe.props.children)}else pt=OD(z,qe.props.value),pt&&Ee&&(ue=qe.props.children);return d.cloneElement(qe,{"aria-selected":pt?"true":"false",onClick:Xe(qe),onKeyUp:Me=>{Me.key===" "&&Me.preventDefault(),qe.props.onKeyUp&&qe.props.onKeyUp(Me)},role:"option",selected:pt,value:void 0,"data-value":qe.props.value})});Ee&&(x?ce.length===0?ie=null:ie=ce.reduce((qe,pt,Me)=>(qe.push(pt),Me{const{classes:t}=e;return t},W2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tn(e)&&e!=="variant",slot:"Root"},Kke=te(g1,W2)(""),Qke=te(V2,W2)(""),Xke=te(D2,W2)(""),b1=d.forwardRef(function(t,r){const n=rt({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:l,defaultOpen:c=!1,displayEmpty:s=!1,IconComponent:f=B9,id:h,input:v,inputProps:m,label:b,labelId:w,MenuProps:O,multiple:_=!1,native:y=!1,onClose:x,onOpen:S,open:P,renderValue:C,SelectDisplayProps:$,variant:R="outlined"}=n,k=Re(n,Hke),T=y?oU:Wke,M=si(),F=js({props:n,muiFormControl:M,states:["variant","error"]}),L=F.variant||R,B=I({},n,{variant:L,classes:i}),V=Gke(B),H=Re(V,qke),W=v||{standard:E.jsx(Kke,{ownerState:B}),outlined:E.jsx(Qke,{label:b,ownerState:B}),filled:E.jsx(Xke,{ownerState:B})}[L],z=Tr(r,W.ref);return E.jsx(d.Fragment,{children:d.cloneElement(W,I({inputComponent:T,inputProps:I({children:o,error:F.error,IconComponent:f,variant:L,type:void 0,multiple:_},y?{id:h}:{autoWidth:a,defaultOpen:c,displayEmpty:s,labelId:w,MenuProps:O,onClose:x,onOpen:S,open:P,renderValue:C,SelectDisplayProps:I({id:h},$)},m,{classes:m?sa(H,m.classes):H},v?v.props.inputProps:{})},(_&&y||s)&&L==="outlined"?{notched:!0}:{},{ref:z,className:de(W.props.className,l,V.root)},!v&&{variant:L},k))})});b1.muiName="Select";function Yke(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=zu();d.useEffect(()=>{if(!a)return;function _(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&(n==null||n(y,"escapeKeyDown"))}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[a,n]);const l=oa((_,y)=>{n==null||n(_,y)}),c=oa(_=>{!n||_==null||i.start(_,()=>{l(null,"timeout")})});d.useEffect(()=>(a&&c(t),i.clear),[a,t,c,i]);const s=_=>{n==null||n(_,"clickaway")},f=i.clear,h=d.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),v=_=>y=>{const x=_.onBlur;x==null||x(y),h()},m=_=>y=>{const x=_.onFocus;x==null||x(y),f()},b=_=>y=>{const x=_.onMouseEnter;x==null||x(y),f()},w=_=>y=>{const x=_.onMouseLeave;x==null||x(y),h()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[r,a,h,f]),{getRootProps:(_={})=>{const y=I({},Nb(e),Nb(_));return I({role:"presentation"},_,y,{onBlur:v(y),onFocus:m(y),onMouseEnter:b(y),onMouseLeave:w(y)})},onClickAway:s}}function Jke(e){return et("MuiSnackbarContent",e)}ot("MuiSnackbarContent",["root","message","action"]);const Zke=["action","className","message","role"],eje=e=>{const{classes:t}=e;return tt({root:["root"],action:["action"],message:["message"]},Jke,t)},tje=te(tu,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=aSe(e.palette.background.default,t);return I({},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}})}),rje=te("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),nje=te("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),aje=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:l="alert"}=n,c=Re(n,Zke),s=n,f=eje(s);return E.jsxs(tje,I({role:l,square:!0,elevation:6,className:de(f.root,o),ownerState:s,ref:r},c,{children:[E.jsx(rje,{className:f.message,ownerState:s,children:i}),a?E.jsx(nje,{className:f.action,ownerState:s,children:a}):null]}))});function oje(e){return et("MuiSnackbar",e)}ot("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ije=["onEnter","onExited"],sje=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],lje=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Pe(r.vertical)}${Pe(r.horizontal)}`]};return tt(n,oje,t)},PD=te("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Pe(r.anchorOrigin.vertical)}${Pe(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const r={left:"50%",right:"auto",transform:"translateX(-50%)"};return I({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")]:I({},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"})})}),uje=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSnackbar"}),a=Ja(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:s=null,children:f,className:h,ClickAwayListenerProps:v,ContentProps:m,disableWindowBlurListener:b=!1,message:w,open:O,TransitionComponent:_=xv,transitionDuration:y=o,TransitionProps:{onEnter:x,onExited:S}={}}=n,P=Re(n.TransitionProps,ije),C=Re(n,sje),$=I({},n,{anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:s,disableWindowBlurListener:b,TransitionComponent:_,transitionDuration:y}),R=lje($),{getRootProps:k,onClickAway:T}=Yke(I({},$)),[M,F]=d.useState(!0),L=ko({elementType:PD,getSlotProps:k,externalForwardedProps:C,ownerState:$,additionalProps:{ref:r},className:[R.root,h]}),B=H=>{F(!0),S&&S(H)},V=(H,W)=>{F(!1),x&&x(H,W)};return!O&&M?null:E.jsx(JPe,I({onClickAway:T},v,{children:E.jsx(PD,I({},L,{children:E.jsx(_,I({appear:!0,in:O,timeout:y,direction:l==="top"?"down":"up",onEnter:V,onExited:B},P,{children:f||E.jsx(aje,I({message:w,action:i},m))}))}))}))});function cje(e){return et("MuiTooltip",e)}const wl=ot("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),dje=["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 fje(e){return Math.round(e*1e5)/1e5}const pje=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Pe(o.split("-")[0])}`],arrow:["arrow"]};return tt(i,cje,t)},hje=te(D9,{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})=>I({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${wl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${wl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${wl.arrow}`]:I({},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"] .${wl.arrow}`]:I({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),vje=te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Pe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>I({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:nr(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:`${fje(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${wl.popper}[data-popper-placement*="left"] &`]:I({transformOrigin:"right center"},t.isRtl?I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):I({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${wl.popper}[data-popper-placement*="right"] &`]:I({transformOrigin:"left center"},t.isRtl?I({marginRight:"14px"},t.touch&&{marginRight:"24px"}):I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${wl.popper}[data-popper-placement*="top"] &`]:I({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${wl.popper}[data-popper-placement*="bottom"] &`]:I({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),mje=te("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:nr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Dg=!1;const RD=new rm;let Yp={x:0,y:0};function Ng(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const kn=d.forwardRef(function(t,r){var n,a,o,i,l,c,s,f,h,v,m,b,w,O,_,y,x,S,P;const C=rt({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:R,components:k={},componentsProps:T={},describeChild:M=!1,disableFocusListener:F=!1,disableHoverListener:L=!1,disableInteractive:B=!1,disableTouchListener:V=!1,enterDelay:H=100,enterNextDelay:W=0,enterTouchDelay:z=700,followCursor:q=!1,id:ee,leaveDelay:oe=0,leaveTouchDelay:J=1500,onClose:we,onOpen:le,open:ge,placement:pe="bottom",PopperComponent:me,PopperProps:xe={},slotProps:ne={},slots:Ie={},title:ve,TransitionComponent:$e=xv,TransitionProps:ye}=C,je=Re(C,dje),Le=d.isValidElement(R)?R:E.jsx("span",{children:R}),st=Ja(),Xe=eu(),[U,K]=d.useState(),[Z,ie]=d.useState(null),ue=d.useRef(!1),ce=B||q,Ee=zu(),Ae=zu(),ft=zu(),De=zu(),[Ze,Ve]=kf({controlled:ge,default:!1,name:"Tooltip",state:"open"});let _t=Ze;const Wt=bc(ee),Ct=d.useRef(),qe=oa(()=>{Ct.current!==void 0&&(document.body.style.WebkitUserSelect=Ct.current,Ct.current=void 0),De.clear()});d.useEffect(()=>qe,[qe]);const pt=lt=>{RD.clear(),Dg=!0,Ve(!0),le&&!_t&&le(lt)},Me=oa(lt=>{RD.start(800+oe,()=>{Dg=!1}),Ve(!1),we&&_t&&we(lt),Ee.start(st.transitions.duration.shortest,()=>{ue.current=!1})}),Ge=lt=>{ue.current&<.type!=="touchstart"||(U&&U.removeAttribute("title"),Ae.clear(),ft.clear(),H||Dg&&W?Ae.start(Dg?W:H,()=>{pt(lt)}):pt(lt))},wt=lt=>{Ae.clear(),ft.start(oe,()=>{Me(lt)})},{isFocusVisibleRef:Ot,onBlur:dr,onFocus:Pr,ref:an}=n1(),[,$a]=d.useState(!1),In=lt=>{dr(lt),Ot.current===!1&&($a(!1),wt(lt))},li=lt=>{U||K(lt.currentTarget),Pr(lt),Ot.current===!0&&($a(!0),Ge(lt))},nu=lt=>{ue.current=!0;const Ir=Le.props;Ir.onTouchStart&&Ir.onTouchStart(lt)},Ts=lt=>{nu(lt),ft.clear(),Ee.clear(),qe(),Ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",De.start(z,()=>{document.body.style.WebkitUserSelect=Ct.current,Ge(lt)})},zi=lt=>{Le.props.onTouchEnd&&Le.props.onTouchEnd(lt),qe(),ft.start(J,()=>{Me(lt)})};d.useEffect(()=>{if(!_t)return;function lt(Ir){(Ir.key==="Escape"||Ir.key==="Esc")&&Me(Ir)}return document.addEventListener("keydown",lt),()=>{document.removeEventListener("keydown",lt)}},[Me,_t]);const hp=Tr(Le.ref,an,K,r);!ve&&ve!==0&&(_t=!1);const au=d.useRef(),X=lt=>{const Ir=Le.props;Ir.onMouseMove&&Ir.onMouseMove(lt),Yp={x:lt.clientX,y:lt.clientY},au.current&&au.current.update()},ae={},fe=typeof ve=="string";M?(ae.title=!_t&&fe&&!L?ve:null,ae["aria-describedby"]=_t?Wt:null):(ae["aria-label"]=fe?ve:null,ae["aria-labelledby"]=_t&&!fe?Wt:null);const Se=I({},ae,je,Le.props,{className:de(je.className,Le.props.className),onTouchStart:nu,ref:hp},q?{onMouseMove:X}:{}),We={};V||(Se.onTouchStart=Ts,Se.onTouchEnd=zi),L||(Se.onMouseOver=Ng(Ge,Se.onMouseOver),Se.onMouseLeave=Ng(wt,Se.onMouseLeave),ce||(We.onMouseOver=Ge,We.onMouseLeave=wt)),F||(Se.onFocus=Ng(li,Se.onFocus),Se.onBlur=Ng(In,Se.onBlur),ce||(We.onFocus=li,We.onBlur=In));const dt=d.useMemo(()=>{var lt;let Ir=[{name:"arrow",enabled:!!Z,options:{element:Z,padding:4}}];return(lt=xe.popperOptions)!=null&<.modifiers&&(Ir=Ir.concat(xe.popperOptions.modifiers)),I({},xe.popperOptions,{modifiers:Ir})},[Z,xe]),mt=I({},C,{isRtl:Xe,arrow:$,disableInteractive:ce,placement:pe,PopperComponentProp:me,touch:ue.current}),Ye=pje(mt),nt=(n=(a=Ie.popper)!=null?a:k.Popper)!=null?n:hje,Qe=(o=(i=(l=Ie.transition)!=null?l:k.Transition)!=null?i:$e)!=null?o:xv,ut=(c=(s=Ie.tooltip)!=null?s:k.Tooltip)!=null?c:vje,Pt=(f=(h=Ie.arrow)!=null?h:k.Arrow)!=null?f:mje,It=Td(nt,I({},xe,(v=ne.popper)!=null?v:T.popper,{className:de(Ye.popper,xe==null?void 0:xe.className,(m=(b=ne.popper)!=null?b:T.popper)==null?void 0:m.className)}),mt),zr=Td(Qe,I({},ye,(w=ne.transition)!=null?w:T.transition),mt),Zt=Td(ut,I({},(O=ne.tooltip)!=null?O:T.tooltip,{className:de(Ye.tooltip,(_=(y=ne.tooltip)!=null?y:T.tooltip)==null?void 0:_.className)}),mt),Dt=Td(Pt,I({},(x=ne.arrow)!=null?x:T.arrow,{className:de(Ye.arrow,(S=(P=ne.arrow)!=null?P:T.arrow)==null?void 0:S.className)}),mt);return E.jsxs(d.Fragment,{children:[d.cloneElement(Le,Se),E.jsx(nt,I({as:me??D9,placement:pe,anchorEl:q?{getBoundingClientRect:()=>({top:Yp.y,left:Yp.x,right:Yp.x,bottom:Yp.y,width:0,height:0})}:U,popperRef:au,open:U?_t:!1,id:Wt,transition:!0},We,It,{popperOptions:dt,children:({TransitionProps:lt})=>E.jsx(Qe,I({timeout:st.transitions.duration.shorter},lt,zr,{children:E.jsxs(ut,I({},Zt,{children:[ve,$?E.jsx(Pt,I({},Dt,{ref:ie})):null]}))}))}))]})});function gje(e){return et("MuiSwitch",e)}const Yn=ot("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),yje=["className","color","edge","size","sx"],bje=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,l={root:["root",r&&`edge${Pe(r)}`,`size${Pe(n)}`],switchBase:["switchBase",`color${Pe(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=tt(l,gje,t);return I({},t,c)},_je=te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Pe(r.edge)}`],t[`size${Pe(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,[`& .${Yn.thumb}`]:{width:16,height:16},[`& .${Yn.switchBase}`]:{padding:4,[`&.${Yn.checked}`]:{transform:"translateX(16px)"}}}}]}),xje=te(H9,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Yn.input}`]:t.input},r.color!=="default"&&t[`color${Pe(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}),[`&.${Yn.checked}`]:{transform:"translateX(20px)"},[`&.${Yn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Yn.checked} + .${Yn.track}`]:{opacity:.5},[`&.${Yn.disabled} + .${Yn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Yn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(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:{[`&.${Yn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nr(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?o1(e.palette[t].main,.62):a1(e.palette[t].main,.55)}`}},[`&.${Yn.checked} + .${Yn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),wje=te("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}`})),Sje=te("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%"})),sU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:l="medium",sx:c}=n,s=Re(n,yje),f=I({},n,{color:o,edge:i,size:l}),h=bje(f),v=E.jsx(Sje,{className:h.thumb,ownerState:f});return E.jsxs(_je,{className:de(h.root,a),sx:c,ownerState:f,children:[E.jsx(xje,I({type:"checkbox",icon:v,checkedIcon:v,ref:r,ownerState:f},s,{classes:I({},h,{root:h.switchBase})})),E.jsx(wje,{className:h.track,ownerState:f})]})});function Eje(e){return et("MuiTab",e)}const Qs=ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Cje=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Oje=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:l,disabled:c}=e,s={root:["root",o&&i&&"labelIcon",`textColor${Pe(r)}`,n&&"fullWidth",a&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return tt(s,Eje,t)},Pje=te(ks,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Pe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Qs.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>I({},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,[`& > .${Qs.iconWrapper}`]:I({},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,[`&.${Qs.selected}`]:{opacity:1},[`&.${Qs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Qs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Qs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Qs.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)})),lU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:l,icon:c,iconPosition:s="top",indicator:f,label:h,onChange:v,onClick:m,onFocus:b,selected:w,selectionFollowsFocus:O,textColor:_="inherit",value:y,wrapped:x=!1}=n,S=Re(n,Cje),P=I({},n,{disabled:o,disableFocusRipple:i,selected:w,icon:!!c,iconPosition:s,label:!!h,fullWidth:l,textColor:_,wrapped:x}),C=Oje(P),$=c&&h&&d.isValidElement(c)?d.cloneElement(c,{className:de(C.iconWrapper,c.props.className)}):c,R=T=>{!w&&v&&v(T,y),m&&m(T)},k=T=>{O&&!w&&v&&v(T,y),b&&b(T)};return E.jsxs(Pje,I({focusRipple:!i,className:de(C.root,a),ref:r,role:"tab","aria-selected":w,disabled:o,onClick:R,onFocus:k,ownerState:P,tabIndex:w?0:-1},S,{children:[s==="top"||s==="start"?E.jsxs(d.Fragment,{children:[$,h]}):E.jsxs(d.Fragment,{children:[h,$]}),f]}))}),uU=d.createContext();function Rje(e){return et("MuiTable",e)}ot("MuiTable",["root","stickyHeader"]);const $je=["className","component","padding","size","stickyHeader"],kje=e=>{const{classes:t,stickyHeader:r}=e;return tt({root:["root",r&&"stickyHeader"]},Rje,t)},jje=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),$D="table",cU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTable"}),{className:a,component:o=$D,padding:i="normal",size:l="medium",stickyHeader:c=!1}=n,s=Re(n,$je),f=I({},n,{component:o,padding:i,size:l,stickyHeader:c}),h=kje(f),v=d.useMemo(()=>({padding:i,size:l,stickyHeader:c}),[i,l,c]);return E.jsx(uU.Provider,{value:v,children:E.jsx(jje,I({as:o,role:o===$D?null:"table",ref:r,className:de(h.root,a),ownerState:f},s))})}),_1=d.createContext();function Tje(e){return et("MuiTableBody",e)}ot("MuiTableBody",["root"]);const Ije=["className","component"],Aje=e=>{const{classes:t}=e;return tt({root:["root"]},Tje,t)},Mje=te("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Fje={variant:"body"},kD="tbody",dU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableBody"}),{className:a,component:o=kD}=n,i=Re(n,Ije),l=I({},n,{component:o}),c=Aje(l);return E.jsx(_1.Provider,{value:Fje,children:E.jsx(Mje,I({className:de(c.root,a),as:o,ref:r,role:o===kD?null:"rowgroup",ownerState:l},i))})});function Lje(e){return et("MuiTableCell",e)}const Dje=ot("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Nje=["align","className","component","padding","scope","size","sortDirection","variant"],Bje=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,l={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Pe(n)}`,a!=="normal"&&`padding${Pe(a)}`,`size${Pe(o)}`]};return tt(l,Lje,t)},zje=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Pe(r.size)}`],r.padding!=="normal"&&t[`padding${Pe(r.padding)}`],r.align!=="inherit"&&t[`align${Pe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?o1(nr(e.palette.divider,1),.88):a1(nr(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",[`&.${Dje.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})),zn=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:l,scope:c,size:s,sortDirection:f,variant:h}=n,v=Re(n,Nje),m=d.useContext(uU),b=d.useContext(_1),w=b&&b.variant==="head";let O;i?O=i:O=w?"th":"td";let _=c;O==="td"?_=void 0:!_&&w&&(_="col");const y=h||b&&b.variant,x=I({},n,{align:a,component:O,padding:l||(m&&m.padding?m.padding:"normal"),size:s||(m&&m.size?m.size:"medium"),sortDirection:f,stickyHeader:y==="head"&&m&&m.stickyHeader,variant:y}),S=Bje(x);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),E.jsx(zje,I({as:O,ref:r,className:de(S.root,o),"aria-sort":P,scope:_,ownerState:x},v))});function Uje(e){return et("MuiTableHead",e)}ot("MuiTableHead",["root"]);const Vje=["className","component"],Wje=e=>{const{classes:t}=e;return tt({root:["root"]},Uje,t)},Hje=te("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),qje={variant:"head"},jD="thead",fU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableHead"}),{className:a,component:o=jD}=n,i=Re(n,Vje),l=I({},n,{component:o}),c=Wje(l);return E.jsx(_1.Provider,{value:qje,children:E.jsx(Hje,I({as:o,className:de(c.root,a),ref:r,role:o===jD?null:"rowgroup",ownerState:l},i))})});function Gje(e){return et("MuiToolbar",e)}ot("MuiToolbar",["root","gutters","regular","dense"]);const Kje=["className","component","disableGutters","variant"],Qje=e=>{const{classes:t,disableGutters:r,variant:n}=e;return tt({root:["root",!r&&"gutters",n]},Gje,t)},Xje=te("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>I({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),dp=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:l="regular"}=n,c=Re(n,Kje),s=I({},n,{component:o,disableGutters:i,variant:l}),f=Qje(s);return E.jsx(Xje,I({as:o,className:de(f.root,a),ref:r,ownerState:s},c))}),pU=Za(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hU=Za(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Yje=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],Jje=d.forwardRef(function(t,r){var n,a,o,i,l,c,s,f;const{backIconButtonProps:h,count:v,disabled:m=!1,getItemAriaLabel:b,nextIconButtonProps:w,onPageChange:O,page:_,rowsPerPage:y,showFirstButton:x,showLastButton:S,slots:P={},slotProps:C={}}=t,$=Re(t,Yje),R=eu(),k=ne=>{O(ne,0)},T=ne=>{O(ne,_-1)},M=ne=>{O(ne,_+1)},F=ne=>{O(ne,Math.max(0,Math.ceil(v/y)-1))},L=(n=P.firstButton)!=null?n:Br,B=(a=P.lastButton)!=null?a:Br,V=(o=P.nextButton)!=null?o:Br,H=(i=P.previousButton)!=null?i:Br,W=(l=P.firstButtonIcon)!=null?l:EC,z=(c=P.lastButtonIcon)!=null?c:CC,q=(s=P.nextButtonIcon)!=null?s:hU,ee=(f=P.previousButtonIcon)!=null?f:pU,oe=R?B:L,J=R?V:H,we=R?H:V,le=R?L:B,ge=R?C.lastButton:C.firstButton,pe=R?C.nextButton:C.previousButton,me=R?C.previousButton:C.nextButton,xe=R?C.firstButton:C.lastButton;return E.jsxs("div",I({ref:r},$,{children:[x&&E.jsx(oe,I({onClick:k,disabled:m||_===0,"aria-label":b("first",_),title:b("first",_)},ge,{children:R?E.jsx(z,I({},C.lastButtonIcon)):E.jsx(W,I({},C.firstButtonIcon))})),E.jsx(J,I({onClick:T,disabled:m||_===0,color:"inherit","aria-label":b("previous",_),title:b("previous",_)},pe??h,{children:R?E.jsx(q,I({},C.nextButtonIcon)):E.jsx(ee,I({},C.previousButtonIcon))})),E.jsx(we,I({onClick:M,disabled:m||(v!==-1?_>=Math.ceil(v/y)-1:!1),color:"inherit","aria-label":b("next",_),title:b("next",_)},me??w,{children:R?E.jsx(ee,I({},C.previousButtonIcon)):E.jsx(q,I({},C.nextButtonIcon))})),S&&E.jsx(le,I({onClick:F,disabled:m||_>=Math.ceil(v/y)-1,"aria-label":b("last",_),title:b("last",_)},xe,{children:R?E.jsx(W,I({},C.firstButtonIcon)):E.jsx(z,I({},C.lastButtonIcon))}))]}))});function Zje(e){return et("MuiTablePagination",e)}const Ih=ot("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var TD;const eTe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],tTe=te(zn,{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}})),rTe=te(dp,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>I({[`& .${Ih.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},[`& .${Ih.actions}`]:{flexShrink:0,marginLeft:20}})),nTe=te("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),aTe=te("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>I({},e.typography.body2,{flexShrink:0})),oTe=te(b1,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>I({[`& .${Ih.selectIcon}`]:t.selectIcon,[`& .${Ih.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ih.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),iTe=te(za,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),sTe=te("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>I({},e.typography.body2,{flexShrink:0}));function lTe({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function uTe(e){return`Go to ${e} page`}const cTe=e=>{const{classes:t}=e;return tt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Zje,t)},ID=d.forwardRef(function(t,r){var n;const a=rt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Jje,backIconButtonProps:i,className:l,colSpan:c,component:s=zn,count:f,disabled:h=!1,getItemAriaLabel:v=uTe,labelDisplayedRows:m=lTe,labelRowsPerPage:b="Rows per page:",nextIconButtonProps:w,onPageChange:O,onRowsPerPageChange:_,page:y,rowsPerPage:x,rowsPerPageOptions:S=[10,25,50,100],SelectProps:P={},showFirstButton:C=!1,showLastButton:$=!1,slotProps:R={},slots:k={}}=a,T=Re(a,eTe),M=a,F=cTe(M),L=(n=R==null?void 0:R.select)!=null?n:P,B=L.native?"option":iTe;let V;(s===zn||s==="td")&&(V=c||1e3);const H=bc(L.id),W=bc(L.labelId),z=()=>f===-1?(y+1)*x:x===-1?f:Math.min(f,(y+1)*x);return E.jsx(tTe,I({colSpan:V,ref:r,as:s,ownerState:M,className:de(F.root,l)},T,{children:E.jsxs(rTe,{className:F.toolbar,children:[E.jsx(nTe,{className:F.spacer}),S.length>1&&E.jsx(aTe,{className:F.selectLabel,id:W,children:b}),S.length>1&&E.jsx(oTe,I({variant:"standard"},!L.variant&&{input:TD||(TD=E.jsx(h1,{}))},{value:x,onChange:_,id:H,labelId:W},L,{classes:I({},L.classes,{root:de(F.input,F.selectRoot,(L.classes||{}).root),select:de(F.select,(L.classes||{}).select),icon:de(F.selectIcon,(L.classes||{}).icon)}),disabled:h,children:S.map(q=>d.createElement(B,I({},!mv(B)&&{ownerState:M},{className:F.menuItem,key:q.label?q.label:q,value:q.value?q.value:q}),q.label?q.label:q))})),E.jsx(sTe,{className:F.displayedRows,children:m({from:f===0?0:y*x+1,to:z(),count:f===-1?-1:f,page:y})}),E.jsx(o,{className:F.actions,backIconButtonProps:i,count:f,nextIconButtonProps:w,onPageChange:O,page:y,rowsPerPage:x,showFirstButton:C,showLastButton:$,slotProps:R.actions,slots:k.actions,getItemAriaLabel:v,disabled:h})]})}))});function dTe(e){return et("MuiTableRow",e)}const AD=ot("MuiTableRow",["root","selected","hover","head","footer"]),fTe=["className","component","hover","selected"],pTe=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return tt({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},dTe,t)},hTe=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${AD.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${AD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:nr(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}))`:nr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),MD="tr",Sv=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableRow"}),{className:a,component:o=MD,hover:i=!1,selected:l=!1}=n,c=Re(n,fTe),s=d.useContext(_1),f=I({},n,{component:o,hover:i,selected:l,head:s&&s.variant==="head",footer:s&&s.variant==="footer"}),h=pTe(f);return E.jsx(hTe,I({as:o,ref:r,className:de(h.root,a),role:o===MD?null:"row",ownerState:f},c))}),vTe=Za(E.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function mTe(e){return et("MuiTableSortLabel",e)}const cS=ot("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),gTe=["active","children","className","direction","hideSortIcon","IconComponent"],yTe=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${Pe(r)}`]};return tt(a,mTe,t)},bTe=te(ks,{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,[`& .${cS.icon}`]:{opacity:.5}},[`&.${cS.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${cS.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),_Te=te("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Pe(r.direction)}`]]}})(({theme:e,ownerState:t})=>I({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)"})),xTe=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:l="asc",hideSortIcon:c=!1,IconComponent:s=vTe}=n,f=Re(n,gTe),h=I({},n,{active:a,direction:l,hideSortIcon:c,IconComponent:s}),v=yTe(h);return E.jsxs(bTe,I({className:de(v.root,i),component:"span",disableRipple:!0,ownerState:h,ref:r},f,{children:[o,c&&!a?null:E.jsx(_Te,{as:s,className:de(v.icon),ownerState:h})]}))});function wTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function STe(e,t,r,n={},a=()=>{}){const{ease:o=wTe,duration:i=300}=n;let l=null;const c=t[e];let s=!1;const f=()=>{s=!0},h=v=>{if(s){a(new Error("Animation cancelled"));return}l===null&&(l=v);const m=Math.min(1,(v-l)/i);if(t[e]=o(m)*(r-c)+c,m>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(h)};return c===r?(a(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const ETe=["onChange"],CTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function OTe(e){const{onChange:t}=e,r=Re(e,ETe),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qa(()=>{const i=op(()=>{const c=n.current;o(),c!==n.current&&t(n.current)}),l=$o(a.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),E.jsx("div",I({style:CTe,ref:a},r))}function PTe(e){return et("MuiTabScrollButton",e)}const RTe=ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),$Te=["className","slots","slotProps","direction","orientation","disabled"],kTe=e=>{const{classes:t,orientation:r,disabled:n}=e;return tt({root:["root",r,n&&"disabled"]},PTe,t)},jTe=te(ks,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>I({width:40,flexShrink:0,opacity:.8,[`&.${RTe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),TTe=d.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiTabScrollButton"}),{className:i,slots:l={},slotProps:c={},direction:s}=o,f=Re(o,$Te),h=eu(),v=I({isRtl:h},o),m=kTe(v),b=(n=l.StartScrollButtonIcon)!=null?n:pU,w=(a=l.EndScrollButtonIcon)!=null?a:hU,O=ko({elementType:b,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),_=ko({elementType:w,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return E.jsx(jTe,I({component:"div",className:de(m.root,i),ref:r,role:null,ownerState:v,tabIndex:null},f,{children:s==="left"?E.jsx(b,I({},O)):E.jsx(w,I({},_))}))});function ITe(e){return et("MuiTabs",e)}const dS=ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ATe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],FD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,LD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Bg=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},MTe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:l,classes:c}=e;return tt({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},ITe,c)},FTe=te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${dS.scrollButtons}`]:t.scrollButtons},{[`& .${dS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>I({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${dS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),LTe=te("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})=>I({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"})),DTe=te("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})=>I({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),NTe=te("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>I({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})),BTe=te(OTe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),DD={},vU=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTabs"}),a=Ja(),o=eu(),{"aria-label":i,"aria-labelledby":l,action:c,centered:s=!1,children:f,className:h,component:v="div",allowScrollButtonsMobile:m=!1,indicatorColor:b="primary",onChange:w,orientation:O="horizontal",ScrollButtonComponent:_=TTe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:P={},TabIndicatorProps:C={},TabScrollButtonProps:$={},textColor:R="primary",value:k,variant:T="standard",visibleScrollbar:M=!1}=n,F=Re(n,ATe),L=T==="scrollable",B=O==="vertical",V=B?"scrollTop":"scrollLeft",H=B?"top":"left",W=B?"bottom":"right",z=B?"clientHeight":"clientWidth",q=B?"height":"width",ee=I({},n,{component:v,allowScrollButtonsMobile:m,indicatorColor:b,orientation:O,vertical:B,scrollButtons:y,textColor:R,variant:T,visibleScrollbar:M,fixed:!L,hideScrollbar:L&&!M,scrollableX:L&&!B,scrollableY:L&&B,centered:s&&!L,scrollButtonsHideMobile:!m}),oe=MTe(ee),J=ko({elementType:S.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:ee}),we=ko({elementType:S.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:ee}),[le,ge]=d.useState(!1),[pe,me]=d.useState(DD),[xe,ne]=d.useState(!1),[Ie,ve]=d.useState(!1),[$e,ye]=d.useState(!1),[je,Le]=d.useState({overflow:"hidden",scrollbarWidth:0}),st=new Map,Xe=d.useRef(null),U=d.useRef(null),K=()=>{const Me=Xe.current;let Ge;if(Me){const Ot=Me.getBoundingClientRect();Ge={clientWidth:Me.clientWidth,scrollLeft:Me.scrollLeft,scrollTop:Me.scrollTop,scrollLeftNormalized:$we(Me,o?"rtl":"ltr"),scrollWidth:Me.scrollWidth,top:Ot.top,bottom:Ot.bottom,left:Ot.left,right:Ot.right}}let wt;if(Me&&k!==!1){const Ot=U.current.children;if(Ot.length>0){const dr=Ot[st.get(k)];wt=dr?dr.getBoundingClientRect():null}}return{tabsMeta:Ge,tabMeta:wt}},Z=oa(()=>{const{tabsMeta:Me,tabMeta:Ge}=K();let wt=0,Ot;if(B)Ot="top",Ge&&Me&&(wt=Ge.top-Me.top+Me.scrollTop);else if(Ot=o?"right":"left",Ge&&Me){const Pr=o?Me.scrollLeftNormalized+Me.clientWidth-Me.scrollWidth:Me.scrollLeft;wt=(o?-1:1)*(Ge[Ot]-Me[Ot]+Pr)}const dr={[Ot]:wt,[q]:Ge?Ge[q]:0};if(isNaN(pe[Ot])||isNaN(pe[q]))me(dr);else{const Pr=Math.abs(pe[Ot]-dr[Ot]),an=Math.abs(pe[q]-dr[q]);(Pr>=1||an>=1)&&me(dr)}}),ie=(Me,{animation:Ge=!0}={})=>{Ge?STe(V,Xe.current,Me,{duration:a.transitions.duration.standard}):Xe.current[V]=Me},ue=Me=>{let Ge=Xe.current[V];B?Ge+=Me:(Ge+=Me*(o?-1:1),Ge*=o&&s9()==="reverse"?-1:1),ie(Ge)},ce=()=>{const Me=Xe.current[z];let Ge=0;const wt=Array.from(U.current.children);for(let Ot=0;OtMe){Ot===0&&(Ge=Me);break}Ge+=dr[z]}return Ge},Ee=()=>{ue(-1*ce())},Ae=()=>{ue(ce())},ft=d.useCallback(Me=>{Le({overflow:null,scrollbarWidth:Me})},[]),De=()=>{const Me={};Me.scrollbarSizeListener=L?E.jsx(BTe,{onChange:ft,className:de(oe.scrollableX,oe.hideScrollbar)}):null;const wt=L&&(y==="auto"&&(xe||Ie)||y===!0);return Me.scrollButtonStart=wt?E.jsx(_,I({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:J},orientation:O,direction:o?"right":"left",onClick:Ee,disabled:!xe},$,{className:de(oe.scrollButtons,$.className)})):null,Me.scrollButtonEnd=wt?E.jsx(_,I({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:we},orientation:O,direction:o?"left":"right",onClick:Ae,disabled:!Ie},$,{className:de(oe.scrollButtons,$.className)})):null,Me},Ze=oa(Me=>{const{tabsMeta:Ge,tabMeta:wt}=K();if(!(!wt||!Ge)){if(wt[H]Ge[W]){const Ot=Ge[V]+(wt[W]-Ge[W]);ie(Ot,{animation:Me})}}}),Ve=oa(()=>{L&&y!==!1&&ye(!$e)});d.useEffect(()=>{const Me=op(()=>{Xe.current&&Z()});let Ge;const wt=Pr=>{Pr.forEach(an=>{an.removedNodes.forEach($a=>{var In;(In=Ge)==null||In.unobserve($a)}),an.addedNodes.forEach($a=>{var In;(In=Ge)==null||In.observe($a)})}),Me(),Ve()},Ot=$o(Xe.current);Ot.addEventListener("resize",Me);let dr;return typeof ResizeObserver<"u"&&(Ge=new ResizeObserver(Me),Array.from(U.current.children).forEach(Pr=>{Ge.observe(Pr)})),typeof MutationObserver<"u"&&(dr=new MutationObserver(wt),dr.observe(U.current,{childList:!0})),()=>{var Pr,an;Me.clear(),Ot.removeEventListener("resize",Me),(Pr=dr)==null||Pr.disconnect(),(an=Ge)==null||an.disconnect()}},[Z,Ve]),d.useEffect(()=>{const Me=Array.from(U.current.children),Ge=Me.length;if(typeof IntersectionObserver<"u"&&Ge>0&&L&&y!==!1){const wt=Me[0],Ot=Me[Ge-1],dr={root:Xe.current,threshold:.99},Pr=li=>{ne(!li[0].isIntersecting)},an=new IntersectionObserver(Pr,dr);an.observe(wt);const $a=li=>{ve(!li[0].isIntersecting)},In=new IntersectionObserver($a,dr);return In.observe(Ot),()=>{an.disconnect(),In.disconnect()}}},[L,y,$e,f==null?void 0:f.length]),d.useEffect(()=>{ge(!0)},[]),d.useEffect(()=>{Z()}),d.useEffect(()=>{Ze(DD!==pe)},[Ze,pe]),d.useImperativeHandle(c,()=>({updateIndicator:Z,updateScrollButtons:Ve}),[Z,Ve]);const _t=E.jsx(NTe,I({},C,{className:de(oe.indicator,C.className),ownerState:ee,style:I({},pe,C.style)}));let Wt=0;const Ct=d.Children.map(f,Me=>{if(!d.isValidElement(Me))return null;const Ge=Me.props.value===void 0?Wt:Me.props.value;st.set(Ge,Wt);const wt=Ge===k;return Wt+=1,d.cloneElement(Me,I({fullWidth:T==="fullWidth",indicator:wt&&!le&&_t,selected:wt,selectionFollowsFocus:x,onChange:w,textColor:R,value:Ge},Wt===1&&k===!1&&!Me.props.tabIndex?{tabIndex:0}:{}))}),qe=Me=>{const Ge=U.current,wt=tn(Ge).activeElement;if(wt.getAttribute("role")!=="tab")return;let dr=O==="horizontal"?"ArrowLeft":"ArrowUp",Pr=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(dr="ArrowRight",Pr="ArrowLeft"),Me.key){case dr:Me.preventDefault(),Bg(Ge,wt,LD);break;case Pr:Me.preventDefault(),Bg(Ge,wt,FD);break;case"Home":Me.preventDefault(),Bg(Ge,null,FD);break;case"End":Me.preventDefault(),Bg(Ge,null,LD);break}},pt=De();return E.jsxs(FTe,I({className:de(oe.root,h),ownerState:ee,ref:r,as:v},F,{children:[pt.scrollButtonStart,pt.scrollbarSizeListener,E.jsxs(LTe,{className:oe.scroller,ownerState:ee,style:{overflow:je.overflow,[B?`margin${o?"Left":"Right"}`:"marginBottom"]:M?void 0:-je.scrollbarWidth},ref:Xe,children:[E.jsx(DTe,{"aria-label":i,"aria-labelledby":l,"aria-orientation":O==="vertical"?"vertical":null,className:oe.flexContainer,ownerState:ee,onKeyDown:qe,ref:U,role:"tablist",children:Ct}),le&&_t]}),pt.scrollButtonEnd]}))});function zTe(e){return et("MuiTextField",e)}ot("MuiTextField",["root"]);const UTe=["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"],VTe={standard:g1,filled:D2,outlined:V2},WTe=e=>{const{classes:t}=e;return tt({root:["root"]},zTe,t)},HTe=te(X9,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),um=d.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:l,color:c="primary",defaultValue:s,disabled:f=!1,error:h=!1,FormHelperTextProps:v,fullWidth:m=!1,helperText:b,id:w,InputLabelProps:O,inputProps:_,InputProps:y,inputRef:x,label:S,maxRows:P,minRows:C,multiline:$=!1,name:R,onBlur:k,onChange:T,onFocus:M,placeholder:F,required:L=!1,rows:B,select:V=!1,SelectProps:H,type:W,value:z,variant:q="outlined"}=n,ee=Re(n,UTe),oe=I({},n,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:m,multiline:$,required:L,select:V,variant:q}),J=WTe(oe),we={};q==="outlined"&&(O&&typeof O.shrink<"u"&&(we.notched=O.shrink),we.label=S),V&&((!H||!H.native)&&(we.id=void 0),we["aria-describedby"]=void 0);const le=bc(w),ge=b&&le?`${le}-helper-text`:void 0,pe=S&&le?`${le}-label`:void 0,me=VTe[q],xe=E.jsx(me,I({"aria-describedby":ge,autoComplete:a,autoFocus:o,defaultValue:s,fullWidth:m,multiline:$,name:R,rows:B,maxRows:P,minRows:C,type:W,value:z,id:le,inputRef:x,onBlur:k,onChange:T,onFocus:M,placeholder:F,inputProps:_},we,y));return E.jsxs(HTe,I({className:de(J.root,l),disabled:f,error:h,fullWidth:m,ref:r,required:L,color:c,variant:q,ownerState:oe},ee,{children:[S!=null&&S!==""&&E.jsx(Y9,I({htmlFor:le,id:pe},O,{children:S})),V?E.jsx(b1,I({"aria-describedby":ge,id:le,labelId:pe,value:z,input:xe},H,{children:i})):xe,b&&E.jsx(N2,I({id:ge},v,{children:b}))]}))}),qTe=["getTrigger","target"];function GTe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.currentn}const KTe=typeof window<"u"?window:null;function mU(e={}){const{getTrigger:t=GTe,target:r=KTe}=e,n=Re(e,qTe),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const l=()=>{i(t(a,I({target:r},n)))};return l(),r.addEventListener("scroll",l,{passive:!0}),()=>{r.removeEventListener("scroll",l,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var H2={},fS={};const QTe=Ss(fEe);var ND;function Ke(){return ND||(ND=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=QTe}(fS)),fS}var XTe=He;Object.defineProperty(H2,"__esModule",{value:!0});var cm=H2.default=void 0,YTe=XTe(Ke()),JTe=E;cm=H2.default=(0,YTe.default)((0,JTe.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 Ah=function(){return Ah=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{t[r]=jU(e[r])}),t}function t$(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return pd(e)&&pd(t)&&Object.keys(t).forEach(a=>{pd(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&pd(e[a])?n[a]=t$(e[a],t[a],r):r.clone?n[a]=pd(t[a])?jU(t[a]):t[a]:n[a]=t[a]}),n}var TU={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{defaultProps:{fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0}},RaSimpleFormIterator:{defaultProps:{fullWidth:!0}},RaTranslatableInputs:{defaultProps:{fullWidth:!0}}}},tAe=t$(TU,{palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}},components:{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}}}),rAe=t$(TU,{palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}}),nAe=function(){var e=Be(),t=w1(),r=t.darkTheme,n=t.defaultTheme,a=ca("(prefers-color-scheme: dark)",{noSsr:!0}),o=kU(n||(a&&r?"dark":"light")),i=o[0],l=o[1],c=function(){l(i==="dark"?"light":"dark")},s=e("ra.action.toggle_theme",{_:"Toggle Theme"});return ke.createElement(kn,{title:s,enterDelay:300},ke.createElement(Br,{color:"inherit",onClick:c,"aria-label":s},i==="dark"?ke.createElement($U,null):ke.createElement(RU,null)))},IC=function(){return IC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(vFe,null):null,t&&d.createElement(nAe,null),d.createElement($Ie,null))},sAe=d.createElement(iAe,null),lAe=d.createElement(OU,null),Pu="RaAppBar",Wu={appBar:"".concat(Pu,"-appBar"),toolbar:"".concat(Pu,"-toolbar"),menuButton:"".concat(Pu,"-menuButton"),menuButtonIconClosed:"".concat(Pu,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Pu,"-menuButtonIconOpen"),title:"".concat(Pu,"-title")},uAe=te(nCe,{name:Pu,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Wu.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Wu.menuButton)]={marginRight:"0.2em"},t["& .".concat(Wu.title)]={},t}),r$={},cAe=He;Object.defineProperty(r$,"__esModule",{value:!0});var IU=r$.default=void 0,dAe=cAe(Ke()),fAe=E;IU=r$.default=(0,dAe.default)((0,fAe.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 n$={},pAe=He;Object.defineProperty(n$,"__esModule",{value:!0});var AU=n$.default=void 0,hAe=pAe(Ke()),vAe=E;AU=n$.default=(0,hAe.default)((0,vAe.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 Fh=function(){return Fh=Object.assign||function(e){for(var t,r=1,n=arguments.length;rP.getBoundingClientRect().bottom?S=y.lastChild:S=y.firstChild}S&&y===S.closest("ul")?a(_.dataset.index,c.current):(O.preventDefault(),O.stopPropagation()),_.classList.remove("drag-active"),document.removeEventListener("dragover",h)},w=function(O){O.preventDefault(),O.dataTransfer.dropEffect="move"};return d.createElement(UAe,{key:o,draggable:a?"true":void 0,onDrag:a?m:void 0,onDragStart:a?v:void 0,onDragEnd:a?b:void 0,onDragOver:a?w:void 0,"data-index":i},d.createElement("label",{htmlFor:"switch_".concat(i)},d.createElement(sU,{checked:t,onChange:n,name:i,id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),d.createElement($t,{variant:"body2",component:"span"},d.createElement(Ro,{label:r,source:o,resource:l}))),a&&d.createElement(zU,{className:"dragIcon",color:"disabled",fontSize:"small"}))},UAe=te("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"}}}}),Xs=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;nS?P=Xs(Xs(Xs(Xs([],l.slice(0,S),!0),[l[x]],!1),l.slice(S,x),!0),l.slice(x+1),!0):P=Xs(Xs(Xs(Xs([],l.slice(0,x),!0),l.slice(x+1,S+1),!0),[l[x]],!1),l.slice(S+1),!0),c(P),v(function(C){return P.filter(function($){return C.includes($.index)}).map(function($){return $.index})})}},w=function(){v([])},O=function(){v(l.map(function(_){return _.index}))};return d.createElement(aa,{pt:.5},d.createElement(aa,{component:"ul",sx:{paddingInlineStart:0,m:0}},l.map(function(_){return d.createElement(UU,{key:_.index,source:_.source,label:_.label,index:_.index,selected:h.includes(_.index),onToggle:m,onMove:b})})),d.createElement(aa,{onDrop:function(_){return _.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},d.createElement(nn,{size:"small",onClick:w},o("ra.inspector.hideAll",{_:"Hide All"})),d.createElement(nn,{size:"small",onClick:O},o("ra.inspector.showAll",{_:"Show All"}))))},p$={},WAe=He;Object.defineProperty(p$,"__esModule",{value:!0});var VU=p$.default=void 0,HAe=WAe(Ke()),qAe=E;VU=p$.default=(0,HAe.default)((0,qAe.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 h$={},GAe=He;Object.defineProperty(h$,"__esModule",{value:!0});var WU=h$.default=void 0,KAe=GAe(Ke()),QAe=E;WU=h$.default=(0,KAe.default)((0,QAe.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 XAe=function(){var e=Be();return x6("ra.configurable.inspector.title",{_:"Inspector"}),d.createElement($t,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},HU=function(){var e=a2(),t=e.isEnabled,r=e.disable,n=e.title,a=e.titleOptions,o=e.editor,i=e.preferenceKey,l=d.useRef(!1),c=s_e(i),s=Ja(),f=Be(),h=d.useState(0),v=h[0],m=h[1],b=$n("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-s.breakpoints.values.sm/2-8,y:8}),w=b[0],O=b[1],_=d.useState(),y=_[0],x=_[1],S=function($){var R=document==null?void 0:document.elementFromPoint($.clientX,$.clientY);(R==null?void 0:R.id)==="inspector-dialog-title"&&(l.current=!0,$.dataTransfer.effectAllowed="move",$.dataTransfer.setData("inspector",""),setTimeout(function(){$.target.classList.add("hide")},0),x({x:$.clientX-w.x,y:$.clientY-w.y}))},P=function($){l.current&&y&&(O({x:$.clientX-y.x,y:$.clientY-y.y}),$.target.classList.remove("hide"),l.current=!1)};d.useEffect(function(){if(t){var $=function(R){R.dataTransfer.types.includes("inspector")&&R.preventDefault()};return document==null||document.addEventListener("dragover",$),function(){document==null||document.removeEventListener("dragover",$)}}},[t]),d.useEffect(function(){if(t){var $=function(){window==null||window.requestAnimationFrame(function(){O(function(R){return{x:Math.min(R.x,(document==null?void 0:document.body.clientWidth)-s.breakpoints.values.sm/2-8),y:Math.min(R.y,(window==null?void 0:window.innerHeight)-50)}})})};return $(),window==null||window.addEventListener("resize",$),function(){window==null||window.removeEventListener("resize",$)}}},[t,O,s.breakpoints.values.sm]);var C=function(){c(),m(function($){return $+1})};return t?d.createElement(YAe,{className:Lh.modal,elevation:3,draggable:!0,onDragStart:S,onDragEnd:P,sx:{left:w.x,top:w.y}},d.createElement("div",{className:Lh.title},d.createElement($t,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},n&&f(n,a)),d.createElement("span",{id:"inspector-toolbar"}),i&&d.createElement(Br,{"aria-label":f("ra.action.remove"),onClick:C,size:"small"},d.createElement(WU,{fontSize:"inherit"})),d.createElement(Br,{"aria-label":f("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},d.createElement(VU,{fontSize:"inherit"}))),d.createElement("div",{className:Lh.content,key:v},d.createElement(_6,{value:i},o||d.createElement(XAe,null)))):null},Oy="RaInspector",Lh={modal:"".concat(Oy,"-modal"),title:"".concat(Oy,"-title"),content:"".concat(Oy,"-content")},YAe=te(tu,{name:Oy,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(Lh.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(Lh.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});HU.displayName="Inspector";var Sl=function(){return Sl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var c=n===!1?d.createElement(DU,Jb({title:r,defaultTitle:t},a)):d.createElement(ZAe,Jb({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,Fv.createPortal(c,i))},LC=function(){return LC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0,T=FFe(O===!1||O===void 0?void 0:!O,s||!k||$||R);n2(h==="submit"&&(c&&(c.onSuccess||c.onError)||v),'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 M=d.useCallback(function(B){return WD(void 0,void 0,void 0,function(){var V;return HD(this,function(H){switch(H.label){case 0:return S!=null&&S.save?[4,S.save(B,Nh(Nh({},c),{transform:v}))]:[3,2];case 1:V=H.sent(),H.label=2;case 2:return V!=null&&Tz(V,x.setError),[2]}})})},[x.setError,S,c,v]),F=d.useCallback(function(B){return WD(void 0,void 0,void 0,function(){return HD(this,function(V){switch(V.label){case 0:return l&&l(B),B.defaultPrevented?[2]:h!=="button"?[3,2]:(B.stopPropagation(),[4,x.handleSubmit(M)(B)]);case 1:V.sent(),V.label=2;case 2:return[2]}})})},[l,h,x,M]),L=i&&y(i,{_:i});return d.createElement(MFe,Nh({variant:b,type:h,color:r,"aria-label":L,disabled:T,onClick:F},_),R?d.createElement(lp,{sx:TFe,size:14,thickness:3,color:"inherit"}):a,L)},TFe={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},IFe=d.createElement(l8,null),AFe="RaSaveButton",MFe=te(nn,{name:AFe,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}),FFe=function(e,t){return typeof e>"u"?t:e},LFe=function(){return ke.createElement(NFe,{onClick:BFe,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},DFe="RaSkipNavigationButton",NFe=te(cr,{name:DFe,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})}}}),BFe=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},ZC=function(){return ZC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]=a-1,color:"primary"},d.createElement(v8,{fontSize:"small"})))},fLe=d.forwardRef(function(e,t){var r=e.children,n=e.disabled,a=e.disableReordering,o=e.disableRemove,i=e.getItemLabel,l=e.index,c=e.inline,s=e.record,f=e.removeButton,h=f===void 0?d.createElement(aLe,null):f,v=e.reOrderButtons,m=v===void 0?d.createElement(dLe,null):v,b=Vt(e);if(!b)throw new Error("SimpleFormIteratorItem must be used in a ResourceContextProvider or be passed a resource prop.");var w=C1(),O=w.total,_=w.reOrder,y=w.remove,x=function(R){return typeof o=="boolean"?o:o&&o(R)},S=d.useMemo(function(){return{index:l,total:O,reOrder:function(R){return _(l,R)},remove:function(){return y(l)}}},[l,O,_,y]),P=typeof i=="function"?i(l):i,C=YR(),$=d.useMemo(function(){return{getSource:function(R){return R?C.getSource("".concat(l,".").concat(R)):C.getSource("".concat(l))},getLabel:function(R){return C.getLabel(R)}}},[l,C]);return d.createElement(f8.Provider,{value:S},d.createElement("li",{className:cn.line,ref:t},P!=null&&P!==!1&&d.createElement($t,{variant:"body2",className:cn.index},P),d.createElement(k_,{value:$},d.createElement(Kl,{value:s},d.createElement(up,{className:de(cn.form),direction:c?{xs:"column",sm:"row"}:"column",gap:c?2:0},r))),!n&&d.createElement("span",{className:cn.action},!a&&m,!x(s)&&h)))}),j$={},pLe=He;Object.defineProperty(j$,"__esModule",{value:!0});var m8=j$.default=void 0,hLe=pLe(Ke()),vLe=E;m8=j$.default=(0,hLe.default)((0,vLe.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var iO=function(){return iO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0){var we=M[0];we.id;var le=wLe(we,["id"]);oe.current=le;for(var ge in oe.current)oe.current[ge]=null}var pe=d.useCallback(function(ve){ve===void 0&&(ve=void 0);var $e=ve;ve==null&&($e=oe.current,d.Children.count(i)===1&&d.isValidElement(d.Children.only(i))&&!d.Children.only(i).props.source&&!d.Children.only(i).type!==XE?$e="":($e=$e||{},d.Children.forEach(i,function(ye){var je;d.isValidElement(ye)&&ye.type!==XE&&ye.props.source&&($e[ye.props.source]=(je=ye.props.defaultValue)!==null&&je!==void 0?je:null)}))),T($e),H("".concat(P,".").concat(M.length),{defaultValue:$e})},[T,i,H,P,M.length]),me=d.useCallback(function(ve,$e){F(ve,$e)},[F]),xe=d.useCallback(function(){B([]),R(!1)},[B]),ne=qt(ee,P),Ie=d.useMemo(function(){return{total:M.length,add:pe,remove:J,reOrder:me,source:P}},[pe,M.length,me,J,P]);return M?d.createElement(d8.Provider,{value:Ie},d.createElement(SLe,{className:de(l,x&&"fullwidth",s&&"disabled"),sx:S},d.createElement("ul",{className:cn.list},M.map(function(ve,$e){return d.createElement(fLe,{key:ve.id,disabled:s,disableRemove:b,disableReordering:w,fields:M,getItemLabel:y,index:$e,onRemoveField:J,onReorder:me,record:ne&&ne[$e]||{},removeButton:a,reOrderButtons:o,resource:c,inline:O},i)})),!s&&!(h&&(v||b))&&d.createElement("div",{className:cn.buttons},!h&&d.createElement("div",{className:cn.add},n),M.length>0&&!v&&!b&&d.createElement("div",{className:cn.clear},d.createElement(a$,{isOpen:$,title:q("ra.action.clear_array_input"),content:q("ra.message.clear_array_input"),onConfirm:xe,onClose:function(){return R(!1)}}),d.createElement(xLe,{onClick:function(){return R(!0)}}))))):null},SLe=te("div",{name:pi,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,a=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(cn.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(a.palette.divider)},r[a.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(cn.index)]=(n={display:"flex",alignItems:"top",marginRight:a.spacing(1),marginTop:a.spacing(1)},n[a.breakpoints.down("md")]={display:"none"},n),t["& .".concat(cn.form)]={},t["&.fullwidth > ul > li > .".concat(cn.form)]={flex:2},t["& .".concat(cn.inline)]={flexDirection:"row",columnGap:"1em"},t["& .".concat(cn.action)]={marginTop:a.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(cn.buttons)]={display:"flex"},t["& .".concat(cn.add)]={borderBottom:"none"},t["& .".concat(cn.clear)]={borderBottom:"none"},t["& .".concat(cn.line,":hover > .").concat(cn.action)]={visibility:"visible"},t}),ELe=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function l(f){try{s(n.next(f))}catch(h){i(h)}}function c(f){try{s(n.throw(f))}catch(h){i(h)}}function s(f){f.done?o(f.value):a(f.value).then(l,c)}s((n=n.apply(e,t||[])).next())})},CLe=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(s){return function(f){return c([s,f])}}function c(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(r=0)),r;)try{if(n=1,a&&(o=s[0]&2?a.return:s[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;switch(a=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,a=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u")throw new Error("DatagridRow expects an id prop");var S=b8(),P=Be(),C=Kt(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var $=Vt(e),R=Rs(e),k=R.hasShow||R.hasEdit;if(!$)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var T=(!S||!S.isRowExpandable||S.isRowExpandable(C))&&i,M=Hye($,h,S&&S.expandSingle),F=M[0],L=M[1],B=d.useState(function(){return qD(T,a,c)}),V=B[0],H=B[1];d.useEffect(function(){var J=qD(T,a,c);J!==V&&H(J)},[T,V,a,c]);var W=Li(),z=d.useCallback(function(J){L(),J.stopPropagation()},[L]),q=d.useCallback(function(J){!y||!v||(v(h,J),J.stopPropagation())},[h,v,y]),ee=Nz(),oe=d.useCallback(function(J){return FLe(void 0,void 0,void 0,function(){var we;return LLe(this,function(le){switch(le.label){case 0:return J.persist(),[4,ee({record:C,resource:$,link:typeof m=="function"?function(ge,pe){return m(ge.id,pe,ge)}:m})];case 1:return we=le.sent(),m==="expand"?(z(J),[2]):m==="toggleSelection"?(q(J),[2]):we===!1||we==null?[2]:(W(we,{state:{_scrollToTop:!0}}),[2])}})})},[C,$,m,W,z,q,ee]);return ke.createElement(ke.Fragment,null,ke.createElement(Sv,cO({ref:t,className:de(o,(r={},r[vt.expandable]=T,r[vt.selectable]=y,r[vt.clickableRow]=m??k,r)),key:h,style:O,hover:f,onClick:oe},x),i&&ke.createElement(zn,{padding:"none",className:vt.expandIconCell},T&&ke.createElement(MLe,{className:de(vt.expandIcon,(n={},n[vt.expanded]=F,n)),expanded:F,onClick:z,expandContentId:"".concat(h,"-expand")})),c&&ke.createElement(zn,{padding:"checkbox"},ke.createElement(Lf,{"aria-label":P("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(vt.checkbox),checked:y&&w,onClick:q,disabled:!y})),ke.Children.map(a,function(J,we){return d.isValidElement(J)?ke.createElement(y8,{key:"".concat(h,"-").concat(J.props.source||we),className:de("column-".concat(J.props.source),vt.rowCell),record:C,field:J,resource:$}):null})),T&&F&&ke.createElement(Sv,{key:"".concat(h,"-expand"),id:"".concat(h,"-expand"),className:vt.expandedPanel},ke.createElement(zn,{colSpan:V},d.isValidElement(i)?i:d.createElement(i))))}),DLe=function(e,t){e.children,e.expand;var r=dO(e,["children","expand"]);t.children,t.expand;var n=dO(t,["children","expand"]);return $B(r,n)},x8=d.memo(_8,DLe);x8.displayName="PureDatagridRow";var f0=function(){return f0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=nDe&&(o=rDe,i=!1,t=new YLe(t));e:for(;++a0&&x.length>0&&x.every(function(S){return m.includes(S)}),onChange:y,onClick:function(S){return S.stopPropagation()}})),d.Children.map(t,function(S,P){return d.isValidElement(S)?d.createElement(WLe,{className:de(vt.headerCell,"column-".concat(S.props.source)),sort:f,field:S,isSorting:(f==null?void 0:f.field)===(S.props.sortBy||S.props.source),key:S.props.source||P,updateSort:_||void 0}):null})))};E8.displayName="DatagridHeader";var hDe=function(e){var t=e.children,r=e.value;return ke.createElement(I$.Provider,{value:r},t)},M$={},vDe=He;Object.defineProperty(M$,"__esModule",{value:!0});var C8=M$.default=void 0,mDe=vDe(Ke()),gDe=E;C8=M$.default=(0,mDe.default)((0,gDe.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 pO=function(){return pO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?d.createElement(d.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,_:"No results found with the current filters."})," ",d.createElement(cr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Ov=function(){return Ov=Object.assign||function(e){for(var t,r=1,n=arguments.length;rR?k=Ys(Ys(Ys(Ys([],c.slice(0,R),!0),[c[$]],!1),c.slice(R,$),!0),c.slice($+1),!0):k=Ys(Ys(Ys(Ys([],c.slice(0,$),!0),c.slice($+1,R+1),!0),[c[$]],!1),c.slice(R+1),!0),s(k),m(function(T){return k.filter(function(M){return T.includes(M.index)}).map(function(M){return M.index})})}};return d.createElement(d.Fragment,null,w?d.createElement(kn,{title:O},d.createElement(Br,h0({"aria-label":O,color:"primary",onClick:_,size:"large"},YD(e)),d.createElement(hO,null))):d.createElement(TDe,h0({size:"small",onClick:_,startIcon:d.createElement(hO,null)},YD(e)),O),d.createElement(z2,{open:!!o,anchorEl:o,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d.createElement(aa,{component:"ul",p:1,my:0},c.map(function(P){return d.createElement(UU,{key:P.index,source:P.source,label:P.label,index:P.index,selected:v.includes(P.index),onToggle:x,onMove:S})}))))},TDe=te(nn,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),YD=function(e){e.resource,e.preferenceKey;var t=jDe(e,["resource","preferenceKey"]);return t},IDe=function(e){var t,r=e.filterElement,n=e.handleHide,a=e.className,o=Vt(e),i=Be();return d.createElement(ADe,{"data-source":r.props.source,className:de("filter-field",a)},d.cloneElement(r,{resource:o,record:MDe,size:(t=r.props.size)!==null&&t!==void 0?t:"small",helperText:!1,defaultValue:void 0}),!r.props.alwaysOn&&d.createElement(Br,{className:de("hide-filter",v0.hideButton),onClick:n,"data-key":r.props.source,title:i("ra.action.remove_filter"),size:"small"},d.createElement(R$,null)),d.createElement("div",{className:v0.spacer}," "))},vO="RaFilterFormInput",v0={spacer:"".concat(vO,"-spacer"),hideButton:"".concat(vO,"-hideButton")},ADe=te("div",{name:vO,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"},t[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(v0.spacer)]={width:r.spacing(2)},t["& .".concat(v0.hideButton)]={marginBottom:r.spacing(1)},t}),MDe={},O1=d.createContext(void 0),Ml=function(){return Ml=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1] element instead.")})},[r]);var f=function(){if(!r)return[];var m=o.getValues();return r.filter(function(b){var w=qt(m,b.props.source);return b.props.alwaysOn||c[b.props.source]||!k8(w)})},h=d.useCallback(function(m){return s(m.currentTarget.dataset.key)},[s]),v=d.useMemo(function(){return{getSource:function(m){return m},getLabel:function(m){return"resources.".concat(a,".fields.").concat(m)}}},[a]);return d.createElement(k_,{value:v},d.createElement(WDe,Ml({className:t},zDe(n),{onSubmit:BDe}),f().map(function(m){return d.createElement(IDe,{key:m.key||m.props.source,filterElement:m,handleHide:h,resource:a,className:m0.filterFormInput})}),d.createElement("div",{className:m0.clearFix})))},BDe=function(e){return e.preventDefault(),!1},zDe=function(e){e.hasCreate,e.resource;var t=L$(e,["hasCreate","resource"]);return t},UDe=function(e,t){return Ml(Ml({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return i_(Ml({},r),n.props.source,n.props.defaultValue)},{})),e)},VDe=function(e){return e.preventDefault(),e.stopPropagation(),!1},mO="RaFilterForm",m0={clearFix:"".concat(mO,"-clearFix"),filterFormInput:"".concat(mO,"-filterFormInput")},WDe=te("form",{name:mO,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(m0.clearFix)]={clear:"right"},t["& .".concat(m0.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),HDe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=$8(e,a,t),n},(r=PB(t))!==null&&r!==void 0?r:{})},$8=function(e,t,r){if(e[t]===void 0||e[t]===null)return"";if(Array.isArray(e[t])||e[t]instanceof Date)return qt(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,l=$8(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=l,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},k8=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return k8(e[t])}):!1},D$={},qDe=He;Object.defineProperty(D$,"__esModule",{value:!0});var wc=D$.default=void 0,GDe=qDe(Ke()),KDe=E;wc=D$.default=(0,GDe.default)((0,KDe.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var N$={},QDe=He;Object.defineProperty(N$,"__esModule",{value:!0});var j8=N$.default=void 0,XDe=QDe(Ke()),YDe=E;j8=N$.default=(0,XDe.default)((0,YDe.jsx)("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"}),"BookmarkAdd");var B$={},JDe=He;Object.defineProperty(B$,"__esModule",{value:!0});var T8=B$.default=void 0,ZDe=JDe(Ke()),eNe=E;T8=B$.default=(0,ZDe.default)((0,eNe.jsx)("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"}),"BookmarkRemove");var z$={},tNe=He;Object.defineProperty(z$,"__esModule",{value:!0});var I8=z$.default=void 0,rNe=tNe(Ke()),nNe=E;I8=z$.default=(0,rNe.default)((0,nNe.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"}),"BookmarkBorder");var U$={},aNe=He;Object.defineProperty(U$,"__esModule",{value:!0});var A8=U$.default=void 0,oNe=aNe(Ke()),iNe=E;A8=U$.default=(0,oNe.default)((0,iNe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var V$={},sNe=He;Object.defineProperty(V$,"__esModule",{value:!0});var M8=V$.default=void 0,lNe=sNe(Ke()),uNe=E;M8=V$.default=(0,lNe.default)((0,uNe.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank");var W$={},cNe=He;Object.defineProperty(W$,"__esModule",{value:!0});var F8=W$.default=void 0,dNe=cNe(Ke()),fNe=E;F8=W$.default=(0,dNe.default)((0,fNe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox");var pNe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,l=Vt(e),c=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),s=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(za,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?s:c,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Vu,null,i?d.createElement(F8,{fontSize:"small"}):d.createElement(M8,{fontSize:"small"})),d.createElement(Id,null,d.createElement(Ro,{label:r.props.label,source:r.props.source,resource:l})))}),H$=function(e){return $n("".concat(e,".savedQueries"),[])},q$=function(e){return Array.isArray(e)?e.filter(function(t){return hNe(t)}):[]},hNe=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")},vNe=function(e){var t=e.open,r=e.onClose,n=Be(),a=Hn(),o=a.resource,i=a.filterValues,l=a.displayedFilters,c=a.sort,s=a.perPage,f=H$(o),h=f[0],v=f[1],m=d.useState(""),b=m[0],w=m[1],O=function(x){w(x.target.value)},_=function(x){x.preventDefault(),y()},y=function(){var x={label:b,value:{filter:i,sort:c,perPage:s,displayedFilters:l}},S=q$(h);v(S.concat(x)),w(""),r()};return d.createElement(im,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(lm,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(sm,null,d.createElement("form",{onSubmit:_},d.createElement(um,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:b,onChange:O}))),d.createElement(L2,null,d.createElement(nn,{onClick:r},n("ra.action.cancel")),d.createElement(nn,{onClick:y,color:"primary"},n("ra.action.save"))))},JD=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var f=H$(c||"")[0],h=Li(),v=Hn(),m=v.displayedFilters,b=m===void 0?{}:m,w=v.filterValues,O=v.perPage,_=v.setFilters,y=v.showFilter,x=v.hideFilter,S=v.sort,P=!Eo(w,{}),C=q$(f),$=C.some(function(me){return Eo(me.value,{filter:w,sort:S,perPage:O,displayedFilters:b})}),R=d.useState(!1),k=R[0],T=R[1],M=d.useRef();if(l===void 0)throw new Error("The component requires the prop to be set");var F=l.filter(function(me){return!me.props.alwaysOn}),L=d.useCallback(function(me){me.preventDefault(),T(!0),M.current=me.currentTarget},[M,T]),B=d.useCallback(function(){T(!1)},[T]),V=d.useCallback(function(me){var xe=me.source,ne=me.defaultValue;y(xe,ne===""?void 0:ne),setTimeout(function(){var Ie=document.querySelector("input[name='".concat(xe,"']"));Ie&&Ie.focus()},50),T(!1)},[y,T]),H=d.useCallback(function(me){var xe=me.source;x(xe),T(!1)},[x,T]),W=d.useState(!1),z=W[0],q=W[1],ee=function(){q(!1)},oe=function(){T(!1),q(!0)},J=d.useState(!1),we=J[0],le=J[1],ge=function(){le(!1)},pe=function(){T(!1),le(!0)};return F.length===0&&C.length===0&&!P?null:d.createElement(_Ne,gO({className:r},yNe(i)),d.createElement(cr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:L,variant:o,size:a},d.createElement(A8,null)),d.createElement(y1,{open:k,anchorEl:M.current,onClose:B},F.map(function(me,xe){return d.createElement(pNe,{key:me.props.source,filter:me,displayed:!!b[me.props.source],resource:c,onShow:V,onHide:H,autoFocus:xe===0})}),(P||C.length>0)&&d.createElement(_v,null),C.map(function(me,xe){return Eo(me.value,{filter:w,sort:S,perPage:O,displayedFilters:b})?d.createElement(za,{onClick:pe,key:xe},d.createElement(Vu,null,d.createElement(T8,{fontSize:"small"})),d.createElement(Id,null,s("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:me.label}))):d.createElement(za,{onClick:function(){var ne,Ie;h({search:vc.stringify({filter:JSON.stringify(me.value.filter),sort:(ne=me.value.sort)===null||ne===void 0?void 0:ne.field,order:(Ie=me.value.sort)===null||Ie===void 0?void 0:Ie.order,page:1,perPage:me.value.perPage,displayedFilters:JSON.stringify(me.value.displayedFilters)})}),T(!1)},key:xe},d.createElement(Vu,null,d.createElement(I8,{fontSize:"small"})),d.createElement(Id,null,me.label))}),P&&!$&&!n&&d.createElement(za,{onClick:oe},d.createElement(Vu,null,d.createElement(j8,{fontSize:"small"})),d.createElement(Id,null,s("ra.saved_queries.new_label",{_:"Save current query..."}))),P&&d.createElement(za,{onClick:function(){_({},{}),T(!1)}},d.createElement(Vu,null,d.createElement(wc,{fontSize:"small"})),d.createElement(Id,null,s("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(vNe,{open:z,onClose:ee}),d.createElement(mNe,{open:we,onClose:ge})))},yNe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=L8(e,["displayedFilters","filterValues","showFilter"]);return t},bNe="RaFilterButton",_Ne=te("div",{name:bNe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),G$={},xNe=He;Object.defineProperty(G$,"__esModule",{value:!0});var D8=G$.default=void 0,wNe=xNe(Ke()),SNe=E;D8=G$.default=(0,wNe.default)((0,SNe.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 yO=function(){return yO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r_-1)throw new Error(w("ra.navigation.page_out_of_boundaries",{page:R+1}));m(R+1)},[_,m,w]),x=d.useCallback(function($){b($.target.value)},[b]),S=d.useCallback(function($){var R=$.from,k=$.to,T=$.count;return T===-1&&s?w("ra.navigation.partial_page_range_info",{offsetBegin:R,offsetEnd:k,_:"%{from}-%{to} of more than %{to}"}):w("ra.navigation.page_range_info",{offsetBegin:R,offsetEnd:k,total:T===-1?k:T,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[w,s]),P=d.useCallback(function($){return w("ra.navigation.".concat($),{_:"Go to ".concat($," page")})},[w]);if(c)return d.createElement(dp,{variant:"dense"});if(v===0||f<1||v!=null&&f>_)return o!=null,null;if(O)return d.createElement(ID,g0({count:v??-1,rowsPerPage:h,page:f-1,onPageChange:y,rowsPerPageOptions:$Ne,component:"span",labelDisplayedRows:S},cv(i)));var C=n||(!c&&v!=null?ENe:void 0);return d.createElement(ID,g0({count:v??-1,rowsPerPage:h,page:f-1,onPageChange:y,onRowsPerPageChange:x,ActionsComponent:C,nextIconButtonProps:{disabled:!s},component:"span",labelRowsPerPage:w("ra.navigation.page_rows_per_page"),labelDisplayedRows:S,getItemAriaLabel:P,rowsPerPageOptions:r},cv(i)))}),RNe=[5,10,25,50],$Ne=[],y0=function(){return y0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof pe.target.value>"u")){var me=pe.target,xe=me.valueAsDate!==void 0&&me.valueAsDate!==null&&!isNaN(new Date(me.valueAsDate).getTime())?b?b(me.valueAsDate):me.valueAsDate:b?b(me.value):Hg(me.value);xe!==""&&xe!=null&&(P.onChange(xe),F.current=!0)}},z=function(pe){f&&f(pe),H.current=!0},q=function(){if(H.current=!1,!!L.current){var pe=L.current.valueAsDate!==void 0&&L.current.valueAsDate!==null&&!isNaN(new Date(L.current.valueAsDate).getTime())?b?b(L.current.valueAsDate):Hg(L.current.valueAsDate):b?b(L.current.value):Hg(L.current.value);pe!==P.value&&P.onChange(pe??""),V&&V()}},ee=C.error,oe=C.invalid,J=i!==!1||oe,we=P.ref,le=P.name,ge=a_e([we,L]);return d.createElement(um,y0({id:$,inputRef:ge,name:le,defaultValue:a(B.current),key:T,type:"datetime-local",onChange:W,onFocus:z,onBlur:q,className:de("ra-input","ra-input-".concat(h),t),size:"small",variant:O,margin:l,error:oe,disabled:_||y,readOnly:y,helperText:J?d.createElement(xc,{error:ee==null?void 0:ee.message,helperText:i}):null,label:d.createElement(Ro,{label:o,source:h,resource:v,isRequired:R}),InputLabelProps:ANe},pp(x)))},B8=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},TNe=B8(4),Wg=B8(2),eN=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=TNe(e.getFullYear()),r=Wg(e.getMonth()+1),n=Wg(e.getDate()),a=Wg(e.getHours()),o=Wg(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},INe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,ANe={shrink:!0},Hg=function(e){return e==null||e===""?"":e instanceof Date?eN(e):INe.test(e)?e:eN(new Date(e))},b0=function(){return b0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof xe.target.value>"u")){var ne=xe.target;ee(ne.value);var Ie=ne.valueAsNumber!==void 0&&ne.valueAsNumber!==null&&!isNaN(ne.valueAsNumber)?v?v(ne.valueAsNumber):ne.valueAsNumber:v?v(ne.value):BNe(ne.value);T.onChange(Ie)}},we=function(xe){h&&h(xe),oe.current=!0},le=function(){H&&H(),oe.current=!1;var xe=o(T.value);ee(function(ne){return ne!==xe?xe:ne})},ge=i!==!1||L,pe=T.ref,me=rN(T,["ref"]);return d.createElement(um,nl({id:B},me,{inputRef:pe,value:q,onChange:J,onFocus:we,onBlur:le,className:de("ra-input","ra-input-".concat(b),t),type:"number",size:"small",variant:S,error:L,disabled:C||$,readOnly:$,helperText:ge?d.createElement(xc,{error:F==null?void 0:F.message,helperText:i}):null,label:d.createElement(Ro,{label:l,source:b,resource:m,isRequired:V}),margin:c,inputProps:nl(nl({},W),{readOnly:$})},pp(R)))},BNe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},zNe=function(e){return e==null||isNaN(e)?"":e.toString()},Q$={},UNe=He;Object.defineProperty(Q$,"__esModule",{value:!0});var X$=Q$.default=void 0,VNe=UNe(Ke()),WNe=E;X$=Q$.default=(0,VNe.default)((0,WNe.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 Y$={},HNe=He;Object.defineProperty(Y$,"__esModule",{value:!0});var U8=Y$.default=void 0,qNe=HNe(Ke()),GNe=E;U8=Y$.default=(0,qNe.default)((0,GNe.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 _0=function(){return _0=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(JNe,_O({hiddenLabel:!0,label:"",resettable:!0,placeholder:n("ra.action.search"),InputProps:{endAdornment:d.createElement(Hd,{position:"end"},d.createElement(D8,{color:"disabled"}))},size:"small"},r))},YNe="RaSearchInput",JNe=te(fn,{name:YNe,overridesResolver:function(e,t){return t.root}})({marginTop:0}),Df=function(){return Df=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]"u"||!h.message?"ra.auth.sign_in_error":h.message,{type:"error",messageArgs:{_:typeof h=="string"?h:h&&h.message?h.message:void 0}})})};return d.createElement(o3e,{onSubmit:s,mode:"onChange",noValidate:!0,className:r},d.createElement(vo,{className:Xd.content},d.createElement(fn,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:Va()}),d.createElement(fn,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Va()}),d.createElement(nn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:Xd.button},a?d.createElement(lp,{className:Xd.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},ky="RaLoginForm",Xd={content:"".concat(ky,"-content"),button:"".concat(ky,"-button"),icon:"".concat(ky,"-icon")},o3e=te(y_,{name:ky,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(Xd.content)]={width:300},t["& .".concat(Xd.button)]={marginTop:r.spacing(2)},t["& .".concat(Xd.icon)]={margin:r.spacing(.3)},t}),xO=function(){return xO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&f?b3e:r;return a?d.createElement(x3e,CO({className:de("edit-page",o)},s),c!==!1&&d.createElement(kc,{title:c,defaultTitle:m,preferenceKey:"".concat(v,".edit.title")}),w,d.createElement("div",{className:de(Zd.main,(t={},t[Zd.noActions]=!w,t))},d.createElement(l,{className:Zd.card},b?a:d.createElement(vo,null," ")),n)):null},Iy="RaEdit",Zd={main:"".concat(Iy,"-main"),noActions:"".concat(Iy,"-noActions"),card:"".concat(Iy,"-card")},x3e=te("div",{name:Iy,overridesResolver:function(e,t){return t.root}})((Jp={},Jp["& .".concat(Zd.main)]={display:"flex",alignItems:"flex-start"},Jp["& .".concat(Zd.noActions)]={marginTop:"1em"},Jp["& .".concat(Zd.card)]={flex:"1 1 auto"},Jp)),OO=function(){return OO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t.toString():""},$O=function(){return $O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error("the value prop is required at runtime");var m=function(){return d.createElement(F3e,w0({label:c,count:a,value:h,icon:i,className:r,syncWithLocation:f,onChange:s},D3e(v)))},b=function(){return d.createElement(Zbe,{name:h.toString()},d.createElement(up,w0({alignItems:"flex-start",style:o?L3e:void 0,className:n,id:"tabpanel-".concat(h),"aria-labelledby":"tabheader-".concat(h),"aria-hidden":o||void 0},v),t))};return l==="header"?m():b()};vi.displayName="FormTab";var L3e={display:"none"},D3e=function(e){e.classes,e.ref,e.margin;var t=X8(e,["classes","ref","margin"]);return t},S0=function(){return S0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&O?Q3e:r;return!a||!w&&s?null:d.createElement(Y3e,jO({className:de("show-page",o)},h),f!==!1&&d.createElement(kc,{title:f,defaultTitle:b,preferenceKey:"".concat(m,".show.title")}),_!==!1&&_,d.createElement("div",{className:de(tf.main,(t={},t[tf.noActions]=!_,t))},d.createElement(l,{className:tf.card},a),n))},My="RaShow",tf={main:"".concat(My,"-main"),noActions:"".concat(My,"-noActions"),card:"".concat(My,"-card")},Y3e=te("div",{name:My,overridesResolver:function(e,t){return t.root}})((Zp={},Zp["& .".concat(tf.main)]={display:"flex"},Zp["& .".concat(tf.noActions)]={marginTop:"1em"},Zp["& .".concat(tf.card)]={flex:"1 1 auto"},Zp)),TO=function(){return TO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var m=Zl(e);if(m==null||m==="")return r?d.createElement($t,P0({component:"span",variant:"body2",className:t},Ai(h)),r&&v(r,{_:r})):null;var b=f(m),w="";if(b)if(i&&c)w=mS?b.toLocaleString(n,a):b.toLocaleString();else if(c){var O=a??(typeof m=="string"&&m.length<=10?{timeZone:"UTC"}:void 0);w=mS?b.toLocaleDateString(n,O):b.toLocaleDateString()}else i&&(w=mS?b.toLocaleTimeString(n,a):b.toLocaleTimeString());return d.createElement($t,P0({component:"span",variant:"body2",className:t},Ai(h)),w)};rV.displayName="DateFieldImpl";var Pn=Ic(rV),l4e=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},mS=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),AO=function(){return AO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r *":{color:r.palette.primary.main}},t}),El=function(e){var t=e.children,r=e.debounce,n=e.filter,a=n===void 0?w4e:n,o=e.page,i=o===void 0?1:o,l=e.pagination,c=l===void 0?null:l,s=e.perPage,f=s===void 0?25:s,h=e.reference,v=e.resource,m=e.sort,b=m===void 0?S4e:m,w=e.source,O=w===void 0?"id":w,_=e.storeKey,y=e.target,x=e.queryOptions,S=Kt(e),P=abe({debounce:r,filter:a,page:i,perPage:f,record:S,reference:h,resource:v,sort:b,source:O,storeKey:_,target:y,queryOptions:x});return ke.createElement(Jl,{value:h},ke.createElement(BR,{value:P},t,c))},w4e={},S4e={field:"id",order:"DESC"},k0=function(){return k0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},zh=function(){return zh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")throw new Error(t)}function sN(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 mV(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 lN;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lN||(lN={}));function o5e(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 i5e(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?mV(e):e;return{pathname:r?r.startsWith("/")?r:s5e(r,t):t,search:u5e(n),hash:c5e(a)}}function s5e(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function yS(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 l5e(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function gV(e,t){let r=l5e(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function yV(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=mV(e):(a=HO({},e),Ii(!a.pathname||!a.pathname.includes("?"),yS("?","pathname","search",a)),Ii(!a.pathname||!a.pathname.includes("#"),yS("#","pathname","hash",a)),Ii(!a.search||!a.search.includes("#"),yS("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),h-=1;a.pathname=v.join("/")}l=h>=0?t[h]:"/"}let c=i5e(a,l),s=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(s||f)&&(c.pathname+="/"),c}const bV=e=>e.join("/").replace(/\/\/+/g,"/"),u5e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c5e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,_V=["post","put","patch","delete"];new Set(_V);const d5e=["get",..._V];new Set(d5e);/** + */function HO(){return HO=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sN(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 vV(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 lN;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lN||(lN={}));function o5e(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 i5e(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?vV(e):e;return{pathname:r?r.startsWith("/")?r:s5e(r,t):t,search:u5e(n),hash:c5e(a)}}function s5e(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function yS(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 l5e(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function mV(e,t){let r=l5e(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function gV(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=vV(e):(a=HO({},e),Ti(!a.pathname||!a.pathname.includes("?"),yS("?","pathname","search",a)),Ti(!a.pathname||!a.pathname.includes("#"),yS("#","pathname","hash",a)),Ti(!a.search||!a.search.includes("#"),yS("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=r;else{let h=t.length-1;if(!n&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),h-=1;a.pathname=v.join("/")}l=h>=0?t[h]:"/"}let c=i5e(a,l),s=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(s||f)&&(c.pathname+="/"),c}const yV=e=>e.join("/").replace(/\/\/+/g,"/"),u5e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,c5e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,bV=["post","put","patch","delete"];new Set(bV);const d5e=["get",...bV];new Set(d5e);/** * React Router v6.30.0 * * Copyright (c) Remix Software Inc. @@ -297,7 +297,7 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function qO(){return qO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),d.useCallback(function(s,f){if(f===void 0&&(f={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let h=yV(s,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:bV([t,h.pathname])),(f.replace?n.replace:n.push)(h,f.state,f)},[t,n,i,o,e])}function EV(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(gm),{matches:a}=d.useContext(k1),{pathname:o}=nk(),i=JSON.stringify(gV(a,n.v7_relativeSplatPath));return d.useMemo(()=>yV(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}var CV=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(CV||{}),OV=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}(OV||{});function v5e(e){let t=d.useContext(xV);return t||Ii(!1),t}function m5e(e){let t=d.useContext(k1);return t||Ii(!1),t}function g5e(e){let t=m5e(),r=t.matches[t.matches.length-1];return r.route.id||Ii(!1),r.route.id}function y5e(){let{router:e}=v5e(CV.UseNavigateStable),t=g5e(OV.UseNavigateStable),r=d.useRef(!1);return SV(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,qO({fromRouteId:t},o)))},[e,t])}function b5e(e){Ii(!1)}new Promise(()=>{});/** + */function qO(){return qO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),d.useCallback(function(s,f){if(f===void 0&&(f={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let h=gV(s,JSON.parse(i),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:yV([t,h.pathname])),(f.replace?n.replace:n.push)(h,f.state,f)},[t,n,i,o,e])}function SV(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(gm),{matches:a}=d.useContext(k1),{pathname:o}=nk(),i=JSON.stringify(mV(a,n.v7_relativeSplatPath));return d.useMemo(()=>gV(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}var EV=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(EV||{}),CV=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(CV||{});function v5e(e){let t=d.useContext(_V);return t||Ti(!1),t}function m5e(e){let t=d.useContext(k1);return t||Ti(!1),t}function g5e(e){let t=m5e(),r=t.matches[t.matches.length-1];return r.route.id||Ti(!1),r.route.id}function y5e(){let{router:e}=v5e(EV.UseNavigateStable),t=g5e(CV.UseNavigateStable),r=d.useRef(!1);return wV(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,qO({fromRouteId:t},o)))},[e,t])}function b5e(e){Ti(!1)}new Promise(()=>{});/** * React Router DOM v6.30.0 * * Copyright (c) Remix Software Inc. @@ -306,18 +306,18 @@ React-admin requires a valid dataProvider function to work.`);var f=d.useMemo(fu * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function GO(){return GO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function x5e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w5e(e,t){return e.button===0&&(!t||t==="_self")&&!x5e(e)}const S5e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],E5e="6";try{window.__reactRouterVersion=E5e}catch{}const C5e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",O5e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PV=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:c,to:s,preventScrollReset:f,viewTransition:h}=t,v=_5e(t,S5e),{basename:m}=d.useContext(gm),b,w=!1;if(typeof s=="string"&&O5e.test(s)&&(b=s,C5e))try{let x=new URL(window.location.href),S=s.startsWith("//")?new URL(x.protocol+s):new URL(s),P=o5e(S.pathname,m);S.origin===x.origin&&P!=null?s=P+S.search+S.hash:w=!0}catch{}let O=f5e(s,{relative:a}),_=P5e(s,{replace:i,state:l,target:c,preventScrollReset:f,relative:a,viewTransition:h});function y(x){n&&n(x),x.defaultPrevented||_(x)}return d.createElement("a",GO({},v,{href:b||O,onClick:w||o?n:y,ref:r,target:c}))});var uN;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uN||(uN={}));var cN;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cN||(cN={}));function P5e(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,c=p5e(),s=nk(),f=EV(e,{relative:i});return d.useCallback(h=>{if(w5e(h,r)){h.preventDefault();let v=n!==void 0?n:sN(s)===sN(f);c(e,{replace:v,state:a,preventScrollReset:o,relative:i,viewTransition:l})}},[s,c,f,n,a,r,e,o,i,l])}var RV={exports:{}};/* @license + */function GO(){return GO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function x5e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w5e(e,t){return e.button===0&&(!t||t==="_self")&&!x5e(e)}const S5e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],E5e="6";try{window.__reactRouterVersion=E5e}catch{}const C5e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",O5e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OV=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:c,to:s,preventScrollReset:f,viewTransition:h}=t,v=_5e(t,S5e),{basename:m}=d.useContext(gm),b,w=!1;if(typeof s=="string"&&O5e.test(s)&&(b=s,C5e))try{let x=new URL(window.location.href),S=s.startsWith("//")?new URL(x.protocol+s):new URL(s),P=o5e(S.pathname,m);S.origin===x.origin&&P!=null?s=P+S.search+S.hash:w=!0}catch{}let O=f5e(s,{relative:a}),_=P5e(s,{replace:i,state:l,target:c,preventScrollReset:f,relative:a,viewTransition:h});function y(x){n&&n(x),x.defaultPrevented||_(x)}return d.createElement("a",GO({},v,{href:b||O,onClick:w||o?n:y,ref:r,target:c}))});var uN;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uN||(uN={}));var cN;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cN||(cN={}));function P5e(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=t===void 0?{}:t,c=p5e(),s=nk(),f=SV(e,{relative:i});return d.useCallback(h=>{if(w5e(h,r)){h.preventDefault();let v=n!==void 0?n:sN(s)===sN(f);c(e,{replace:v,state:a,preventScrollReset:o,relative:i,viewTransition:l})}},[s,c,f,n,a,r,e,o,i,l])}var PV={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse License: MIT -*/(function(e,t){(function(r,n){e.exports=n()})(Zo,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},a=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,i={},l=0,c={parse:function(R,k){var I=(k=k||{}).dynamicTyping||!1;if($(I)&&(k.dynamicTypingFunction=I,I={}),k.dynamicTyping=I,k.transform=!!$(k.transform)&&k.transform,k.worker&&c.WORKERS_SUPPORTED){var M=function(){if(!c.WORKERS_SUPPORTED)return!1;var L=(V=n.URL||n.webkitURL||null,H=r.toString(),c.BLOB_URL||(c.BLOB_URL=V.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",H,")();"],{type:"text/javascript"})))),B=new n.Worker(L),V,H;return B.onmessage=y,B.id=l++,i[B.id]=B}();return M.userStep=k.step,M.userChunk=k.chunk,M.userComplete=k.complete,M.userError=k.error,k.step=$(k.step),k.chunk=$(k.chunk),k.complete=$(k.complete),k.error=$(k.error),delete k.worker,void M.postMessage({input:R,config:k,workerId:M.id})}var F=null;return c.NODE_STREAM_INPUT,typeof R=="string"?(R=function(L){return L.charCodeAt(0)===65279?L.slice(1):L}(R),F=k.download?new h(k):new m(k)):R.readable===!0&&$(R.read)&&$(R.on)?F=new b(k):(n.File&&R instanceof File||R instanceof Object)&&(F=new v(k)),F.stream(R)},unparse:function(R,k){var I=!1,M=!0,F=",",L=`\r -`,B='"',V=B+B,H=!1,W=null,z=!1;(function(){if(typeof k=="object"){if(typeof k.delimiter!="string"||c.BAD_DELIMITERS.filter(function(J){return k.delimiter.indexOf(J)!==-1}).length||(F=k.delimiter),(typeof k.quotes=="boolean"||typeof k.quotes=="function"||Array.isArray(k.quotes))&&(I=k.quotes),typeof k.skipEmptyLines!="boolean"&&typeof k.skipEmptyLines!="string"||(H=k.skipEmptyLines),typeof k.newline=="string"&&(L=k.newline),typeof k.quoteChar=="string"&&(B=k.quoteChar),typeof k.header=="boolean"&&(M=k.header),Array.isArray(k.columns)){if(k.columns.length===0)throw new Error("Option columns is empty");W=k.columns}k.escapeChar!==void 0&&(V=k.escapeChar+B),(typeof k.escapeFormulae=="boolean"||k.escapeFormulae instanceof RegExp)&&(z=k.escapeFormulae instanceof RegExp?k.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var q=new RegExp(O(B),"g");if(typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(R)){if(!R.length||Array.isArray(R[0]))return ee(null,R,H);if(typeof R[0]=="object")return ee(W||Object.keys(R[0]),R,H)}else if(typeof R=="object")return typeof R.data=="string"&&(R.data=JSON.parse(R.data)),Array.isArray(R.data)&&(R.fields||(R.fields=R.meta&&R.meta.fields||W),R.fields||(R.fields=Array.isArray(R.data[0])?R.fields:typeof R.data[0]=="object"?Object.keys(R.data[0]):[]),Array.isArray(R.data[0])||typeof R.data[0]=="object"||(R.data=[R.data])),ee(R.fields||[],R.data||[],H);throw new Error("Unable to serialize unrecognized input");function ee(J,we,le){var ge="";typeof J=="string"&&(J=JSON.parse(J)),typeof we=="string"&&(we=JSON.parse(we));var pe=Array.isArray(J)&&0=this._config.preview;if(o)n.postMessage({results:L,workerId:c.WORKER_ID,finished:V});else if($(this._config.chunk)&&!I){if(this._config.chunk(L,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);L=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(L.data),this._completeResults.errors=this._completeResults.errors.concat(L.errors),this._completeResults.meta=L.meta),this._completed||!V||!$(this._config.complete)||L&&L.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),V||L&&L.meta.paused||this._nextChunk(),L}this._halted=!0},this._sendError=function(k){$(this._config.error)?this._config.error(k):o&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:k,finished:!1})}}function h(R){var k;(R=R||{}).chunkSize||(R.chunkSize=c.RemoteChunkSize),f.call(this,R),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(I){this._input=I,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(k=new XMLHttpRequest,this._config.withCredentials&&(k.withCredentials=this._config.withCredentials),a||(k.onload=C(this._chunkLoaded,this),k.onerror=C(this._chunkError,this)),k.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var I=this._config.downloadRequestHeaders;for(var M in I)k.setRequestHeader(M,I[M])}if(this._config.chunkSize){var F=this._start+this._config.chunkSize-1;k.setRequestHeader("Range","bytes="+this._start+"-"+F)}try{k.send(this._config.downloadRequestBody)}catch(L){this._chunkError(L.message)}a&&k.status===0&&this._chunkError()}},this._chunkLoaded=function(){k.readyState===4&&(k.status<200||400<=k.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:k.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(I){var M=I.getResponseHeader("Content-Range");return M===null?-1:parseInt(M.substring(M.lastIndexOf("/")+1))}(k),this.parseChunk(k.responseText)))},this._chunkError=function(I){var M=k.statusText||I;this._sendError(new Error(M))}}function v(R){var k,I;(R=R||{}).chunkSize||(R.chunkSize=c.LocalChunkSize),f.call(this,R);var M=typeof FileReader<"u";this.stream=function(F){this._input=F,I=F.slice||F.webkitSlice||F.mozSlice,M?((k=new FileReader).onload=C(this._chunkLoaded,this),k.onerror=C(this._chunkError,this)):k=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(F.target.result)},this._chunkError=function(){this._sendError(k.error)}}function m(R){var k;f.call(this,R=R||{}),this.stream=function(I){return k=I,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var I,M=this._config.chunkSize;return M?(I=k.substring(0,M),k=k.substring(M)):(I=k,k=""),this._finished=!k,this.parseChunk(I)}}}function b(R){f.call(this,R=R||{});var k=[],I=!0,M=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(F){this._input=F,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&k.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),k.length?this.parseChunk(k.shift()):I=!0},this._streamData=C(function(F){try{k.push(typeof F=="string"?F:F.toString(this._config.encoding)),I&&(I=!1,this._checkIsFinished(),this.parseChunk(k.shift()))}catch(L){this._streamError(L)}},this),this._streamError=C(function(F){this._streamCleanUp(),this._sendError(F)},this),this._streamEnd=C(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function w(R){var k,I,M,F=Math.pow(2,53),L=-F,B=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,V=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,H=this,W=0,z=0,q=!1,ee=!1,oe=[],J={data:[],errors:[],meta:{}};if($(R.step)){var we=R.step;R.step=function(ne){if(J=ne,pe())ge();else{if(ge(),J.data.length===0)return;W+=ne.data.length,R.preview&&W>R.preview?I.abort():(J.data=J.data[0],we(J,H))}}}function le(ne){return R.skipEmptyLines==="greedy"?ne.join("").trim()==="":ne.length===1&&ne[0].length===0}function ge(){return J&&M&&(xe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),M=!1),R.skipEmptyLines&&(J.data=J.data.filter(function(ne){return!le(ne)})),pe()&&function(){if(!J)return;function ne(ve,$e){$(R.transformHeader)&&(ve=R.transformHeader(ve,$e)),oe.push(ve)}if(Array.isArray(J.data[0])){for(var Te=0;pe()&&Te=oe.length?"__parsed_extra":oe[ye]),R.transform&&(st=R.transform(st,Le)),st=me(Le,st),Le==="__parsed_extra"?(je[Le]=je[Le]||[],je[Le].push(st)):je[Le]=st}return R.header&&(ye>oe.length?xe("FieldMismatch","TooManyFields","Too many fields: expected "+oe.length+" fields but parsed "+ye,z+$e):ye=this._config.preview;if(o)n.postMessage({results:L,workerId:c.WORKER_ID,finished:V});else if($(this._config.chunk)&&!T){if(this._config.chunk(L,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);L=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(L.data),this._completeResults.errors=this._completeResults.errors.concat(L.errors),this._completeResults.meta=L.meta),this._completed||!V||!$(this._config.complete)||L&&L.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),V||L&&L.meta.paused||this._nextChunk(),L}this._halted=!0},this._sendError=function(k){$(this._config.error)?this._config.error(k):o&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:k,finished:!1})}}function h(R){var k;(R=R||{}).chunkSize||(R.chunkSize=c.RemoteChunkSize),f.call(this,R),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(T){this._input=T,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(k=new XMLHttpRequest,this._config.withCredentials&&(k.withCredentials=this._config.withCredentials),a||(k.onload=C(this._chunkLoaded,this),k.onerror=C(this._chunkError,this)),k.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var T=this._config.downloadRequestHeaders;for(var M in T)k.setRequestHeader(M,T[M])}if(this._config.chunkSize){var F=this._start+this._config.chunkSize-1;k.setRequestHeader("Range","bytes="+this._start+"-"+F)}try{k.send(this._config.downloadRequestBody)}catch(L){this._chunkError(L.message)}a&&k.status===0&&this._chunkError()}},this._chunkLoaded=function(){k.readyState===4&&(k.status<200||400<=k.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:k.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(T){var M=T.getResponseHeader("Content-Range");return M===null?-1:parseInt(M.substring(M.lastIndexOf("/")+1))}(k),this.parseChunk(k.responseText)))},this._chunkError=function(T){var M=k.statusText||T;this._sendError(new Error(M))}}function v(R){var k,T;(R=R||{}).chunkSize||(R.chunkSize=c.LocalChunkSize),f.call(this,R);var M=typeof FileReader<"u";this.stream=function(F){this._input=F,T=F.slice||F.webkitSlice||F.mozSlice,M?((k=new FileReader).onload=C(this._chunkLoaded,this),k.onerror=C(this._chunkError,this)):k=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(F.target.result)},this._chunkError=function(){this._sendError(k.error)}}function m(R){var k;f.call(this,R=R||{}),this.stream=function(T){return k=T,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var T,M=this._config.chunkSize;return M?(T=k.substring(0,M),k=k.substring(M)):(T=k,k=""),this._finished=!k,this.parseChunk(T)}}}function b(R){f.call(this,R=R||{});var k=[],T=!0,M=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(F){this._input=F,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&k.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),k.length?this.parseChunk(k.shift()):T=!0},this._streamData=C(function(F){try{k.push(typeof F=="string"?F:F.toString(this._config.encoding)),T&&(T=!1,this._checkIsFinished(),this.parseChunk(k.shift()))}catch(L){this._streamError(L)}},this),this._streamError=C(function(F){this._streamCleanUp(),this._sendError(F)},this),this._streamEnd=C(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function w(R){var k,T,M,F=Math.pow(2,53),L=-F,B=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,V=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,H=this,W=0,z=0,q=!1,ee=!1,oe=[],J={data:[],errors:[],meta:{}};if($(R.step)){var we=R.step;R.step=function(ne){if(J=ne,pe())ge();else{if(ge(),J.data.length===0)return;W+=ne.data.length,R.preview&&W>R.preview?T.abort():(J.data=J.data[0],we(J,H))}}}function le(ne){return R.skipEmptyLines==="greedy"?ne.join("").trim()==="":ne.length===1&&ne[0].length===0}function ge(){return J&&M&&(xe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),M=!1),R.skipEmptyLines&&(J.data=J.data.filter(function(ne){return!le(ne)})),pe()&&function(){if(!J)return;function ne(ve,$e){$(R.transformHeader)&&(ve=R.transformHeader(ve,$e)),oe.push(ve)}if(Array.isArray(J.data[0])){for(var Ie=0;pe()&&Ie=oe.length?"__parsed_extra":oe[ye]),R.transform&&(st=R.transform(st,Le)),st=me(Le,st),Le==="__parsed_extra"?(je[Le]=je[Le]||[],je[Le].push(st)):je[Le]=st}return R.header&&(ye>oe.length?xe("FieldMismatch","TooManyFields","Too many fields: expected "+oe.length+" fields but parsed "+ye,z+$e):ye=U.length/2?`\r -`:"\r"}(ne,$e)),M=!1,R.delimiter)$(R.delimiter)&&(R.delimiter=R.delimiter(ne),J.meta.delimiter=R.delimiter);else{var ye=function(Le,st,Xe,U,K){var Z,ie,ue,ce;K=K||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Ee=0;Ee=B)return Ct(!0)}else for(Ae=W,W++;;){if((Ae=q.indexOf(k,Ae+1))===-1)return oe||xe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:me.length,index:W}),_t();if(Ae===J-1)return _t(q.substring(W,Ae).replace(Ee,k));if(k!==H||q[Ae+1]!==H){if(k===H||Ae===0||q[Ae-1]!==H){ue!==-1&&ue=B)return Ct(!0);break}xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:me.length,index:W}),Ae++}}else Ae++}return _t();function Ze(pt){me.push(pt),Te=W}function Ve(pt){var Me=0;if(pt!==-1){var Ge=q.substring(Ae+1,pt);Ge&&Ge.trim()===""&&(Me=Ge.length)}return Me}function _t(pt){return oe||(pt===void 0&&(pt=q.substring(W)),ne.push(pt),W=J,Ze(ne),pe&&qe()),Ct()}function Wt(pt){W=pt,Ze(ne),ne=[],ce=q.indexOf(M,W)}function Ct(pt){return{data:me,errors:xe,meta:{delimiter:I,linebreak:M,aborted:z,truncated:!!pt,cursor:Te+(ee||0)}}}function qe(){L(Ct()),me=[],xe=[]}},this.abort=function(){z=!0},this.getCharIndex=function(){return W}}function y(R){var k=R.data,I=i[k.workerId],M=!1;if(k.error)I.userError(k.error,k.file);else if(k.results&&k.results.data){var F={abort:function(){M=!0,x(k.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if($(I.userStep)){for(var L=0;L{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},T5e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),A5e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await mc(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},M5e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await mc(t,{method:"GET"})).json.server_version},F5e=async e=>{const t=`${e}/_matrix/client/versions`;return(await mc(t,{method:"GET"})).json},L5e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await mc(t,{method:"GET"})).json.flows},D5e=e=>`${Ut.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function pN(){const e=Ut.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function N5e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const bS=!0,B5e=["id","displayname"].sort();function Gg({value:e,text:t}){const r=kV();return E.jsx("option",{value:e,children:r(t)})}const z5e=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(null),[a,o]=d.useState(null),[i,l]=d.useState(!0),[c,s]=d.useState(null),[f,h]=d.useState(null),[v,m]=d.useState(""),[b,w]=d.useState("stop"),[O,_]=d.useState(!0),[y,x]=d.useState("ignore"),S=kV(),P=gr(),C=Xa(),$=async le=>{if(c!==null)return;t([]),n(null),o(null),h(null);const ge=le.target.files?le.target.files[0]:null;if(ge){if(ge.size>1e8){const pe=S("import_users.errors.unreasonably_big",{size:(ge.size/1048576).toFixed(2)});P(pe),n(pe);return}try{dN.parse(ge,{header:!0,skipEmptyLines:!0,complete:pe=>{pe.errors&&n(pe.errors.map(me=>me.toString())),R(pe,{setValues:t,setStats:o,setError:n})}})}catch{return n("Unknown error"),null}}},R=({data:le,meta:ge,errors:pe},{setValues:me,setStats:xe,setError:ne})=>{const Te=B5e.filter(ye=>{var je;return!((je=ge.fields)!=null&&je.includes(ye))});if(Te.length>0)return ne(S("import_users.error.required_field",{field:Te[0]})),!1;const ve={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:le.length},$e=pe.map(ye=>ye.message);return le.forEach((ye,je)=>{var Le,st,Xe;ye.user_type===void 0||ye.user_type===""?ve.user_types.default++:ve.user_types[ye.user_type]+=1,(Le=ge.fields)!=null&&Le.includes("name")&&delete ye.name,(st=ge.fields)!=null&&st.includes("user_type")&&delete ye.user_type,(Xe=ge.fields)!=null&&Xe.includes("is_admin")&&delete ye.is_admin,["is_guest","admin","deactivated"].forEach(U=>{ye[U]==="true"?(ve[U]++,ye[U]=!0):(ye[U]!=="false"&&ye[U]!==""&&$e.push(S("import_users.error.invalid_value",{field:U,row:je})),ye[U]=!1)}),ye.password!==void 0&&ye.password!==""&&ve.password++,ye.avatar_url!==void 0&&ye.avatar_url!==""&&ve.avatar_url++,ye.id!==void 0&&ye.id!==""&&ve.id++}),$e.length>0&&ne($e),xe(ve),me(le),!0},k=async()=>{if(c!==null){P("import_users.errors.already_in_progress");return}const le=await I(C,e,b,O,y,i,s,n);h(le),m(dN.unparse(le.skippedRecords)),console.log("Skipped records:"),console.log(v)},I=async(le,ge,pe,me,xe,ne,Te,ve)=>{const $e=[],ye=[],je=[],Le={total:0,id:0,is_guest:0,admin:0,password:0};let st=0;const Xe=ge.length;try{Te({done:st,limit:Xe});for(const U of ge){const K={...U};(xe==="ignore"||K.id===void 0)&&(K.id=pN()),(me===!1||U.password===void 0)&&(K.password=N5e()),bS&&console.log("will check for existence of record "+JSON.stringify(K));let Z=0;const ie=ue=>le.getOne("users",{id:ue.id}).then(async()=>{if(bS&&console.log("already existed"),xe==="update"||pe==="skip")$e.push(ue);else{if(pe==="stop")throw new Error(S("import_users.error.id_exits",{id:ue.id}));{const ce=Object.assign({},ue,{id:pN()});Z++,Z>512?(console.warn("retry loop got stuck? pathological situation?"),$e.push(ue)):await ie(ce)}}},async()=>{bS&&console.log("OK to create record "+ue.id+" ("+ue.displayname+")."),ne||await le.create("users",{data:ue}),je.push(ue)});await ie(K),st++,Te({done:st,limit:ge.length})}Te(null)}catch(U){ve(S("import_users.error.at_entry",{entry:st+1,message:U instanceof Error?U.message:String(U)})),Te(null)}return{skippedRecords:$e,erroredRecords:ye,succeededRecords:je,totalRecordCount:Xe,changeStats:Le,wasDryRun:ne}},M=()=>{const le=document.createElement("a");console.log(v);const ge=new Blob([v],{type:"text/comma-separated-values"});le.href=URL.createObjectURL(ge),le.download="skippedRecords.csv",document.body.appendChild(le),le.click()},F=async le=>{if(c!==null)return;const ge=le.target.value;w(ge)},L=le=>{c===null&&_(le.target.checked)},B=async le=>{if(c!==null)return;const ge=le.target.value;x(ge)},V=le=>{c===null&&l(le.target.checked)},H=a&&!f&&[E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.importstats.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:S("import_users.cards.importstats.users_total",a.total)}),E.jsx("div",{children:S("import_users.cards.importstats.guest_count",a.is_guest)}),E.jsx("div",{children:S("import_users.cards.importstats.admin_count",a.admin)})]})]}),E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.ids.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:a.id===a.total?S("import_users.cards.ids.all_ids_present"):S("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?E.jsx("div",{children:E.jsxs(SC,{onChange:B,value:y,disabled:c!==null,children:[E.jsx(Gg,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),E.jsx(Gg,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.passwords.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:a.password===a.total?S("import_users.cards.passwords.all_passwords_present"):S("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?E.jsx("div",{children:E.jsx(_C,{control:E.jsx(Lf,{checked:O,disabled:c!==null,onChange:L}),label:S("import_users.cards.passwords.use_passwords")})}):""]})]})],W=a&&!f&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.conflicts.header")}),E.jsx(vo,{children:E.jsx("div",{children:E.jsxs(SC,{onChange:F,value:b,disabled:c!==null,children:[E.jsx(Gg,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),E.jsx(Gg,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),z=r&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.error.error")}),E.jsx(vo,{children:(Array.isArray(r)?r:[r]).map(le=>E.jsx("div",{children:le}))})]}),q=!f&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.upload.header")}),E.jsxs(vo,{children:[S("import_users.cards.upload.explanation"),E.jsx("a",{href:"./data/example.csv",children:"example.csv"}),E.jsx("br",{}),E.jsx("br",{}),E.jsx("input",{type:"file",onChange:$,disabled:c!==null})]})]}),ee=f&&E.jsxs(vo,{children:[E.jsx(bu,{title:S("import_users.cards.results.header")}),E.jsxs("div",{children:[S("import_users.cards.results.total",f.totalRecordCount),E.jsx("br",{}),S("import_users.cards.results.successful",f.succeededRecords.length),E.jsx("br",{}),f.skippedRecords.length?[S("import_users.cards.results.skipped",f.skippedRecords.length),E.jsx("div",{children:E.jsx("button",{onClick:M,children:S("import_users.cards.results.download_skipped")})}),E.jsx("br",{})]:"",f.erroredRecords.length?[S("import_users.cards.results.skipped",f.erroredRecords.length),E.jsx("br",{})]:"",E.jsx("br",{}),f.wasDryRun&&[S("import_users.cards.results.simulated_only"),E.jsx("br",{})]]})]}),oe=!e||e.length===0||f?void 0:E.jsxs(W9,{children:[E.jsx(_C,{control:E.jsx(Lf,{checked:i,onChange:V,disabled:c!==null}),label:S("import_users.cards.startImport.simulate_only")}),E.jsx(nn,{size:"large",onClick:k,disabled:c!==null,children:S("import_users.cards.startImport.run_import")}),c!==null?E.jsxs("div",{children:[c.done," of ",c.limit," done"]}):null]}),J=[];q&&J.push(q),z&&J.push(z),W&&J.push(W),H&&J.push(...H),oe&&J.push(oe),ee&&J.push(ee);const we=E.jsx($c,{children:J});return[E.jsx(kc,{defaultTitle:S("import_users.title")}),we]},U5e=z5e,Ly={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"}}}},V5e={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"}}}};PR(Ly,V5e);const W5e={...Ly,ra:{...Ly.ra,navigation:{...Ly.ra.navigation,no_filtered_results:"Keine Ergebnisse",clear_filters:"Alle Filter entfernen"}},synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",locked:"Gesperrt",deactivated:"Deaktiviert",erased:"Gelöscht",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"},url:"URL"}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}},H5e={...vV,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors |||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",locked:"Locked",deactivated:"Deactivated",erased:"Erased",guests:"Show guests",show_deactivated:"Show deactivated users",show_locked:"Show locked users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var q5e={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{clear_filters:"Effacer les filtres",no_filtered_results:"Aucun résultat trouvé avec les filtres actuels.",no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const G5e={...q5e,synapseadmin:{auth:{base_url:"URL du serveur d’accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l’authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d’accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",locked:"Verrouillé",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var K5e={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 Q5e=bn(K5e),X5e={...Q5e,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",locked:"Bloccato",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}},_S={ra:{action:{add_filter:"Добавить фильтр",add:"Добавить",back:"Назад",bulk_actions:"1 выбран |||| %{smart_count} выбрано |||| %{smart_count} выбрано",cancel:"Отмена",clear_array_input:"Очистить список",clear_input_value:"Очистить",clone:"Дублировать",confirm:"Подтвердить",create:"Создать",create_item:"Создать %{item}",delete:"Удалить",edit:"Редактировать",export:"Экспорт",list:"Список",refresh:"Обновить",remove_filter:"Убрать фильтр",remove_all_filters:"Убрать все фильтры",remove:"Удалить",save:"Сохранить",search:"Поиск",select_all:"Выбрать все",select_row:"Выбрать эту запись",show:"Просмотр",sort:"Сортировка",undo:"Отменить",unselect:"Не выбрано",expand:"Раскрыть",close:"Закрыть",open_menu:"Открыть меню",close_menu:"Закрыть меню",update:"Обновить",move_up:"Переместить вверх",move_down:"Переместить вниз",open:"Открыть",toggle_theme:"Переключить тему",select_columns:"Столбцы",update_application:"Обновить приложение"},boolean:{true:"Да",false:"Нет",null:" "},page:{create:"Создать %{name}",dashboard:"Главная",edit:"%{name} %{recordRepresentation}",error:"Что-то пошло не так",list:"%{name}",loading:"Загрузка",not_found:"Не найдено",show:"%{name} %{recordRepresentation}",empty:"Нет %{name}.",invite:"Вы хотите добавить еще одну?"},input:{file:{upload_several:"Перетащите файлы сюда или нажмите для выбора.",upload_single:"Перетащите файл сюда или нажмите для выбора."},image:{upload_several:"Перетащите изображения сюда или нажмите для выбора.",upload_single:"Перетащите изображение сюда или нажмите для выбора."},references:{all_missing:"Связанных данных не найдено",many_missing:"Некоторые из связанных данных недоступны",single_missing:"Связанный объект недоступен"},password:{toggle_visible:"Скрыть пароль",toggle_hidden:"Показать пароль"}},message:{about:"Справка",are_you_sure:"Вы уверены?",auth_error:"Произошла ошибка при валидации токена аутентификации",bulk_delete_content:"Вы уверены, что хотите удалить %{name}? |||| Вы уверены, что хотите удалить %{smart_count} объектов? |||| Вы уверены, что хотите удалить %{smart_count} объектов?",bulk_delete_title:"Удалить %{name} |||| Удалить %{smart_count} %{name} |||| Удалить %{smart_count} %{name}",bulk_update_content:"Вы уверены, что хотите обновить %{name}? |||| Вы уверены, что хотите обновить %{smart_count} объектов?",bulk_update_title:"Обновить %{name} |||| Обновить %{smart_count} %{name}",clear_array_input:"Вы уверены, что хотите очистить весь список?",delete_content:"Вы уверены что хотите удалить этот объект",delete_title:"Удалить %{name} #%{id}",details:"Описание",error:"В процессе запроса возникла ошибка, и он не может быть завершен",invalid_form:"Форма заполнена неверно, проверьте, пожалуйста, ошибки",loading:"Идет загрузка, пожалуйста, подождите...",no:"Нет",not_found:"Ошибка URL или вы следуете по неверной ссылке",yes:"Да",unsaved_changes:"Некоторые из ваших изменений не были сохранены. Вы уверены, что хотите их игнорировать?"},navigation:{no_results:"Результатов не найдено",no_more_results:"Страница %{page} выходит за пределы нумерации, попробуйте предыдущую",page_out_of_boundaries:"Страница %{page} вне границ",page_out_from_end:"Невозможно переместиться дальше последней страницы",page_out_from_begin:"Номер страницы не может быть меньше 1",page_range_info:"%{offsetBegin}-%{offsetEnd} из %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} из более %{offsetEnd}",current_page:"Страница %{page}",page:"На %{page} страницу",first:"На первую страницу",last:"На последнюю страницу",next:"Следующая",prev:"Предыдущая",previous:"Предыдущая",page_rows_per_page:"Строк на странице:",skip_nav:"Перейти к содержанию"},sort:{sort_by:"Сортировать по %{field} %{order}",ASC:"возрастанию",DESC:"убыванию"},auth:{auth_check_error:"Пожалуйста, авторизуйтесь для продолжения работы",user_menu:"Профиль",username:"Имя пользователя",password:"Пароль",sign_in:"Войти",sign_in_error:"Ошибка аутентификации, попробуйте снова",logout:"Выйти"},notification:{updated:"Элемент обновлен |||| %{smart_count} обновлено |||| %{smart_count} обновлено",created:"Элемент создан",deleted:"Элемент удален |||| %{smart_count} удалено |||| %{smart_count} удалено",bad_item:"Элемент не валиден",item_doesnt_exist:"Элемент не существует",http_error:"Ошибка сервера",data_provider_error:"Ошибка dataProvider, проверьте консоль",i18n_error:"Не удалось загрузить перевод для указанного языка",canceled:"Операция отменена",logged_out:"Ваша сессия завершена, попробуйте переподключиться/войти снова",not_authorized:"У вас нет доступа к этому ресурсу",application_update_available:"Имеется новая версия приложения."},validation:{required:"Обязательно для заполнения",minLength:"Минимальное кол-во символов %{min}",maxLength:"Максимальное кол-во символов %{max}",minValue:"Минимальное значение %{min}",maxValue:"Значение может быть %{max} или меньше",number:"Должно быть цифрой",email:"Некорректный email",oneOf:"Должно быть одним из: %{options}",regex:"Должно быть в формате (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Сохраненные запросы",query_name:"Имя запроса",new_label:"Сохранить текущий запрос...",new_dialog_title:"Сохранить текущий запрос как",remove_label:"Удалить сохраненный запрос",remove_label_with_name:'Удалить запрос "%{name}"',remove_dialog_title:"Удалить сохраненный запрос?",remove_message:"Вы уверены, что хотите удалить этот запрос из списка сохраненных запросов?",help:"Отфильтровать список и сохранить запрос на будущее"},configurable:{customize:"Настроить",configureMode:"Настроить эту страницу",inspector:{title:"Инспектор",content:"Наведите на UI-элементы приложения, чтобы настроить",reset:"Сбросить настройки",hideAll:"Скрыть все",showAll:"Показать все"},Datagrid:{title:"Таблица данных",unlabeled:"Безымянный столбец #%{column}"},SimpleForm:{title:"Форма",unlabeled:"Безымянное поле ввода #%{input}"},SimpleList:{title:"Список",primaryText:"Первичный текст",secondaryText:"Вторичный текст",tertiaryText:"Третичный текст"}}}},Y5e={..._S,ra:{..._S.ra,navigation:{..._S.ra.navigation,no_filtered_results:"Нет результатов",clear_filters:"Все фильтры сбросить"}},synapseadmin:{auth:{base_url:"Адрес домашнего сервера",welcome:"Добро пожаловать в Synapse-admin",server_version:"Версия Synapse",supports_specs:"поддерживает спецификации Matrix",username_error:"Пожалуйста, укажите полный ID пользователя: '@user:domain'",protocol_error:"Адрес должен начинаться с 'http://' или 'https://'",url_error:"Неверный адрес сервера Matrix",sso_sign_in:"Вход через SSO"},users:{invalid_user_id:"Локальная часть ID пользователя Matrix без адреса домашнего сервера.",tabs:{sso:"SSO"}},rooms:{details:"Данные комнаты",tabs:{basic:"Основные",members:"Участники",detail:"Подробности",permission:"Права доступа"}},reports:{tabs:{basic:"Основные",detail:"Подробности"}}},import_users:{error:{at_entry:"В записи %{entry}: %{message}",error:"Ошибка",required_field:"Отсутствует обязательное поле '%{field}'",invalid_value:"Неверное значение в строке %{row}. Поле '%{field}' может быть либо 'true', либо 'false'",unreasonably_big:"Отказано в загрузке слишком большого файла размером %{size} мегабайт",already_in_progress:"Импорт уже в процессе",id_exits:"ID %{id} уже существует"},title:"Импорт пользователей из CSV",goToPdf:"Перейти к PDF",cards:{importstats:{header:"Импорт пользователей",users_total:"%{smart_count} пользователь в CSV файле |||| %{smart_count} пользователя в CSV файле |||| %{smart_count} пользователей в CSV файле",guest_count:"%{smart_count} гость |||| %{smart_count} гостя |||| %{smart_count} гостей",admin_count:"%{smart_count} администратор |||| %{smart_count} администратора |||| %{smart_count} администраторов"},conflicts:{header:"Стратегия разрешения конфликтов",mode:{stop:"Остановка при конфликте",skip:"Показать ошибку и пропустить при конфликте"}},ids:{header:"Идентификаторы",all_ids_present:"Идентификаторы присутствуют в каждой записи",count_ids_present:"%{smart_count} запись с ID |||| %{smart_count} записи с ID |||| %{smart_count} записей с ID",mode:{ignore:"Игнорировать идентификаторы в CSV и создать новые",update:"Обновить существующие записи"}},passwords:{header:"Пароли",all_passwords_present:"Пароли присутствуют в каждой записи",count_passwords_present:"%{smart_count} запись с паролем |||| %{smart_count} записи с паролями |||| %{smart_count} записей с паролями",use_passwords:"Использовать пароли из CSV"},upload:{header:"Загрузить CSV файл",explanation:"Здесь вы можете загрузить файл со значениями, разделёнными запятыми, которые будут использованы для создания или обновления данных пользователей. В файле должны быть поля 'id' и 'displayname'. Вы можете скачать и изменить файл-образец отсюда: "},startImport:{simulate_only:"Только симулировать",run_import:"Импорт"},results:{header:"Результаты импорта",total:"%{smart_count} запись всего |||| %{smart_count} записи всего |||| %{smart_count} записей всего",successful:"%{smart_count} запись успешно импортирована |||| %{smart_count} записи успешно импортированы |||| %{smart_count} записей успешно импортированы",skipped:"%{smart_count} запись пропущена |||| %{smart_count} записи пропущены |||| %{smart_count} записей пропущено",download_skipped:"Скачать пропущенные записи",with_error:"%{smart_count} запись с ошибкой |||| %{smart_count} записи с ошибками |||| %{smart_count} записей с ошибками",simulated_only:"Импорт был симулирован"}}},delete_media:{name:"Файлы",fields:{before_ts:"Последнее обращение до",size_gt:"Более чем (в байтах)",keep_profiles:"Сохранить аватары"},action:{send:"Удалить файлы",send_success:"Запрос успешно отправлен.",send_failure:"Произошла ошибка."},helper:{send:"Это API удаляет локальные файлы с вашего собственного сервера, включая локальные миниатюры и копии скачанных файлов. Данный API не затрагивает файлы, загруженные во внешние хранилища."}},resources:{users:{name:"Пользователь |||| Пользователи",email:"Почта",msisdn:"Телефон",threepid:"Почта / Телефон",fields:{avatar:"Аватар",id:"ID пользователя",name:"Имя",is_guest:"Гость",admin:"Администратор сервера",locked:"Заблокирован",deactivated:"Деактивирован",erased:"Удалён",guests:"Показывать гостей",show_deactivated:"Показывать деактивированных",user_id:"Поиск пользователя",displayname:"Отображаемое имя",password:"Пароль",avatar_url:"Адрес аватары",avatar_src:"Аватар",medium:"Тип",threepids:"3PID'ы",address:"Адрес",creation_ts_ms:"Дата создания",consent_version:"Версия соглашения",auth_provider:"Провайдер",user_type:"Тип пользователя"},helper:{password:"Смена пароля завершит все сессии пользователя.",deactivate:"Вы должны предоставить пароль для реактивации учётной записи.",erase:"Пометить пользователя как удалённого в соответствии с GDPR"},action:{erase:"Удалить данные пользователя"}},rooms:{name:"Комната |||| Комнаты",fields:{room_id:"ID комнаты",name:"Название",canonical_alias:"Псевдоним",joined_members:"Участники",joined_local_members:"Локальные участники",joined_local_devices:"Локальные устройства",state_events:"События состояния / Сложность",version:"Версия",is_encrypted:"Зашифровано",encryption:"Шифрование",federatable:"Федерация",public:"Отображается в каталоге комнат",creator:"Создатель",join_rules:"Правила входа",guest_access:"Гостевой доступ",history_visibility:"Видимость истории",topic:"Тема",avatar:"Аватар"},helper:{forward_extremities:"Оконечности — это события-листья в конце ориентированного ациклического графа (DAG) в комнате, т.е. события без дочерних элементов. Чем больше их в комнате, тем больше Synapse работает над разрешением состояния (это дорогостоящая операция). Хотя Synapse старается не допускать существования слишком большого числа таких событий в комнате, из-за ошибок они иногда снова появляются. Если в комнате >10 оконечностей, стоит найти комнату-виновника и попробовать удалить их с помощью SQL-запросов из #1760."},enums:{join_rules:{public:"Для всех",knock:"Надо постучать",invite:"По приглашению",private:"Приватная"},guest_access:{can_join:"Гости могут войти",forbidden:"Гости не могут войти"},history_visibility:{invited:"С момента приглашения",joined:"С момента входа",shared:"С момента открытия доступа",world_readable:"Для всех"},unencrypted:"Без шифрования"},action:{erase:{title:"Удалить комнату",content:"Действительно удалить эту комнату? Это действие будет невозможно отменить. Все сообщения и файлы в комнате будут удалены с сервера!"}}},reports:{name:"Жалоба |||| Жалобы",fields:{id:"ID",received_ts:"Дата и время жалобы",user_id:"Автор жалобы",name:"Название комнаты",score:"Баллы",reason:"Причина",event_id:"ID события",event_json:{origin:"Исходнный сервер",origin_server_ts:"Дата и время отправки",type:"Тип события",content:{msgtype:"Тип содержимого",body:"Содержимое",format:"Формат",formatted_body:"Форматированное содержимое",algorithm:"Алгоритм",url:"Ссылка",info:{mimetype:"Тип"}}}},action:{erase:{title:"Удалить жалобу",content:"Действительно удалить жалобу? Это действие будет невозможно отменить."}}},connections:{name:"Подключения",fields:{last_seen:"Дата",ip:"IP адрес",user_agent:"Юзер-агент"}},devices:{name:"Устройство |||| Устройства",fields:{device_id:"ID устройства",display_name:"Название",last_seen_ts:"Дата и время",last_seen_ip:"IP адрес"},action:{erase:{title:"Удаление %{id}",content:'Действительно удалить устройство "%{name}"?',success:"Устройство успешно удалено.",failure:"Произошла ошибка."}}},users_media:{name:"Файлы",fields:{media_id:"ID файла",media_length:"Размер файла (в байтах)",media_type:"Тип",upload_name:"Имя файла",quarantined_by:"На карантине",safe_from_quarantine:"Защитить от карантина",created_ts:"Создано",last_access_ts:"Последний доступ"},action:{open:"Открыть файл в новом окне"}},protect_media:{action:{create:"Не защищён, установить защиту",delete:"Защищён, снять защиту",none:"На карантине",send_success:"Статус защиты успешно изменён.",send_failure:"Произошла ошибка."}},quarantine_media:{action:{name:"Карантин",create:"Поместить на карантин",delete:"На карантине, снять карантин",none:"Защищено от карантина",send_success:"Статус карантина успешно изменён.",send_failure:"Произошла ошибка."}},pushers:{name:"Пушер |||| Пушеры",fields:{app:"Приложение",app_display_name:"Название приложения",app_id:"ID приложения",device_display_name:"Название устройства",kind:"Вид",lang:"Язык",profile_tag:"Тег профиля",pushkey:"Ключ",data:{url:"URL"}}},servernotices:{name:"Серверные уведомления",send:"Отправить серверные уведомления",fields:{body:"Сообщение"},action:{send:"Отправить",send_success:"Серверное уведомление успешно отправлено.",send_failure:"Произошла ошибка."},helper:{send:'Отправить серверное уведомление выбранным пользователям. На сервере должна быть активна функция "Server Notices".'}},user_media_statistics:{name:"Файлы пользователей",fields:{media_count:"Количество файлов",media_length:"Размер файлов"}},forward_extremities:{name:"Оконечности",fields:{id:"ID события",received_ts:"Дата и время",depth:"Глубина",state_group:"Группа состояния"}},room_state:{name:"События состояния",fields:{type:"Тип",content:"Содержимое",origin_server_ts:"Дата отправки",sender:"Отправитель"}},room_directory:{name:"Каталог комнат",fields:{world_readable:"Гости могут просматривать без входа",guest_can_join:"Гости могут войти"},action:{title:"Удалить комнату из каталога |||| Удалить %{smart_count} комнаты из каталога |||| Удалить %{smart_count} комнат из каталога",content:"Действительно удалить комнату из каталога? |||| Действительно удалить %{smart_count} комнаты из каталога? |||| Действительно удалить %{smart_count} комнат из каталога?",erase:"Удалить из каталога комнат",create:"Опубликовать в каталоге комнат",send_success:"Комната успешно опубликована.",send_failure:"Произошла ошибка."}},destinations:{name:"Федерация",fields:{destination:"Назначение",failure_ts:"Дата и время ошибки",retry_last_ts:"Дата и время последней попытки",retry_interval:"Интервал между попытками",last_successful_stream_ordering:"Последний успешный поток",stream_ordering:"Поток"},action:{reconnect:"Переподключиться"}},registration_tokens:{name:"Токены регистрации",fields:{token:"Токен",valid:"Рабочий токен",uses_allowed:"Количество использований",pending:"Ожидает",completed:"Завершено",expiry_time:"Дата окончания",length:"Длина"},helper:{length:"Длина токена, если токен не задан."}}}};var jV={};Object.defineProperty(jV,"__esModule",{value:!0});var J5e={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}"}}},xS=jV.default=J5e;const Z5e={...xS,ra:{...xS.ra,navigation:{...xS.ra.navigation,no_filtered_results:"没有结果",clear_filters:"清除所有过滤器"}},synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}},IV=d.createContext({}),eBe=()=>d.useContext(IV),tBe=te(aa)(({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"}})),rBe=()=>{const e=g6(),t=gr(),{restrictBaseUrl:r}=eBe(),n=typeof r=="string",a=Array.isArray(r),o=!(n||a),[i,l]=d.useState(!1),[c,s]=d.useState(!0),[f,h]=$R(),v=kR(),m=Be(),b=n?r:Ut.getItem("base_url"),[w,O]=d.useState(""),_=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(_){const C=_[1];console.log("SSO token is",C),window.history.replaceState({},"",window.location.href.replace(_[0],"#").split("#")[0]);const $=Ut.getItem("sso_base_url");if(Ut.removeItem("sso_base_url"),$){const R={base_url:$,username:null,password:null,loginToken:C};console.log("Base URL is:",$),console.log("SSO Token is:",C),console.log("Let's try token login..."),e(R).catch(k=>{alert(typeof k=="string"?k:typeof k>"u"||!k.message?"ra.auth.sign_in_error":k.message),console.error(k)})}}const y=C=>C.match(/^(http|https):\/\//)?C.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:m("synapseadmin.auth.url_error"):m("synapseadmin.auth.protocol_error"),x=C=>{l(!0),e(C).catch($=>{l(!1),t(typeof $=="string"?$:typeof $>"u"||!$.message?"ra.auth.sign_in_error":$.message,{type:"warning"})})},S=()=>{Ut.setItem("sso_base_url",w);const C=`${w}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=C},P=({formData:C})=>{const $=Mo(),[R,k]=d.useState(""),[I,M]=d.useState(""),F=()=>{var B;if(C.base_url||n)return;const L=(B=I5e(C.username))==null?void 0:B.domain;L&&A5e(L).then(V=>{(o||a&&r.includes(V))&&$.setValue("base_url",V)})};return d.useEffect(()=>{C.base_url===""&&a&&$.setValue("base_url",r[0]),T5e(C.base_url)&&(M5e(C.base_url).then(L=>k(`${m("synapseadmin.auth.server_version")} ${L}`)).catch(()=>k("")),F5e(C.base_url).then(L=>M(`${m("synapseadmin.auth.supports_specs")} ${L.versions.join(", ")}`)).catch(()=>M("")),L5e(C.base_url).then(L=>{const B=L.find(H=>H.type==="m.login.password")!==void 0,V=L.find(H=>H.type==="m.login.sso")!==void 0;s(B),O(V?C.base_url:"")}).catch(()=>O("")))},[C.base_url,$]),E.jsxs(E.Fragment,{children:[E.jsx(aa,{children:E.jsx(fn,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!c,onBlur:F,resettable:!0,validate:Va()})}),E.jsx(aa,{children:E.jsx(J$,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!c,resettable:!0,validate:Va()})}),E.jsx(aa,{children:E.jsx(fn,{source:"base_url",label:"synapseadmin.auth.base_url",select:a,autoComplete:"url",disabled:i,readOnly:n,resettable:o,validate:[Va(),y],children:a&&r.map(L=>E.jsx(za,{value:L,children:L},L))})}),E.jsx($t,{className:"serverVersion",children:R}),E.jsx($t,{className:"matrixVersions",children:I})]})};return E.jsxs(y_,{defaultValues:{base_url:b},onSubmit:x,mode:"onTouched",children:[E.jsx(tBe,{children:E.jsxs($c,{className:"card",children:[E.jsx(aa,{className:"avatar",children:i?E.jsx(lp,{size:25,thickness:2}):E.jsx(bv,{className:"icon",children:E.jsx(cm,{})})}),E.jsx(aa,{className:"hint",children:m("synapseadmin.auth.welcome")}),E.jsxs(aa,{className:"form",children:[E.jsx(b1,{value:f,onChange:C=>h(C.target.value),fullWidth:!0,disabled:i,className:"select",children:v.map(C=>E.jsx(za,{value:C.locale,children:C.name},C.locale))}),E.jsx(XE,{children:C=>E.jsx(P,{...C})}),E.jsxs(W9,{className:"actions",children:[E.jsx(nn,{variant:"contained",type:"submit",color:"primary",disabled:i||!c,fullWidth:!0,children:m("ra.auth.sign_in")}),E.jsx(nn,{variant:"contained",color:"secondary",onClick:S,disabled:i||w==="",fullWidth:!0,children:m("synapseadmin.auth.sso_sign_in")})]})]})]})}),E.jsx(e8,{})]})};var ak={},nBe=He;Object.defineProperty(ak,"__esModule",{value:!0});var TV=ak.default=void 0,aBe=nBe(Ke()),oBe=E;TV=ak.default=(0,aBe.default)((0,oBe.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 ok={},iBe=He;Object.defineProperty(ok,"__esModule",{value:!0});var AV=ok.default=void 0,sBe=iBe(Ke()),lBe=E;AV=ok.default=(0,sBe.default)((0,lBe.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");var ik={},uBe=He;Object.defineProperty(ik,"__esModule",{value:!0});var Mc=ik.default=void 0,cBe=uBe(Ke()),dBe=E;Mc=ik.default=(0,cBe.default)((0,dBe.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 Vn={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},sk=e=>new Date(e).getTime(),fBe=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),a=(r+(t.getMonth()+1).toString()).slice(-2),o=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),l=(r+t.getMinutes().toString()).slice(-2);return`${n}-${a}-${o}T${i}:${l}`},MV=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),pBe=[E.jsx(R1,{source:"destination",alwaysOn:!0})],FV=()=>{const e=Kt(),t=Ni(),r=gr(),[n,{isLoading:a}]=Hv();if(!e||!e.failure_ts)return null;const o=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 E.jsx(cr,{label:"resources.destinations.action.reconnect",onClick:o,disabled:a,children:E.jsx(TV,{})})},hBe=()=>E.jsx(Do,{children:E.jsx(FV,{})}),vBe=()=>{const e=Kt(),t=Be();return E.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},mBe=e=>{const t=Kt(e);return e.source&&Lv.get(t,e.source)===0?E.jsx(Pn,{...e,record:{...t,[e.source]:null}}):E.jsx(Pn,{...e})},gBe=e=>{const{palette:{error:t,mode:r}}=Ja(),n=a=>({backgroundColor:a.retry_last_ts>0?o9(t[r],.5):void 0,"& > td":r==="dark"?{color:a.retry_last_ts>0?"black":"white","& > button":{color:Eu[700]}}:void 0});return E.jsx(Ac,{...e,filters:pBe,pagination:E.jsx(MV,{}),sort:{field:"destination",order:"ASC"},children:E.jsxs(Un,{rowSx:n,rowClick:a=>`${a}/show/rooms`,bulkActionButtons:!1,children:[E.jsx(ze,{source:"destination"}),E.jsx(Pn,{source:"failure_ts",showTime:!0,options:Vn}),E.jsx(mBe,{source:"retry_last_ts",showTime:!0,options:Vn}),E.jsx(ze,{source:"retry_interval"}),E.jsx(ze,{source:"last_successful_stream_ordering"}),E.jsx(FV,{})]})})},yBe=e=>{const t=Be();return E.jsx(Z$,{actions:E.jsx(hBe,{}),title:E.jsx(vBe,{}),...e,children:E.jsxs($1,{children:[E.jsxs(Jo,{label:"status",icon:E.jsx(jc,{}),children:[E.jsx(ze,{source:"destination"}),E.jsx(Pn,{source:"failure_ts",showTime:!0,options:Vn}),E.jsx(Pn,{source:"retry_last_ts",showTime:!0,options:Vn}),E.jsx(ze,{source:"retry_interval"}),E.jsx(ze,{source:"last_successful_stream_ordering"})]}),E.jsx(Jo,{label:t("resources.rooms.name",{smart_count:2}),icon:E.jsx(Mc,{}),path:"rooms",children:E.jsx(El,{reference:"destination_rooms",target:"destination",label:!1,pagination:E.jsx(MV,{}),perPage:50,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[E.jsx(ze,{source:"room_id",label:"resources.rooms.fields.room_id"}),E.jsx(ze,{source:"stream_ordering",sortable:!1}),E.jsx(hs,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:E.jsx(ze,{source:"name",sortable:!1})})]})})})]})})},bBe={name:"destinations",icon:AV,list:gBe,show:yBe};var lk={},_Be=He;Object.defineProperty(lk,"__esModule",{value:!0});var LV=lk.default=void 0,xBe=_Be(Ke()),wBe=E;LV=lk.default=(0,xBe.default)((0,wBe.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 SBe=[qR(/^[A-Za-z0-9._~-]{0,64}$/)],DV=[Az()],EBe=[Az(),Y0e(64)],CBe=[E.jsx(Oi,{source:"valid",alwaysOn:!0})],OBe=e=>E.jsx(Ac,{...e,filters:CBe,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:E.jsxs(Un,{rowClick:"edit",children:[E.jsx(ze,{source:"token",sortable:!1}),E.jsx(ji,{source:"uses_allowed",sortable:!1}),E.jsx(ji,{source:"pending",sortable:!1}),E.jsx(ji,{source:"completed",sortable:!1}),E.jsx(Pn,{source:"expiry_time",showTime:!0,options:Vn,sortable:!1})]})}),PBe=e=>E.jsx(W8,{...e,redirect:"list",children:E.jsxs(mm,{toolbar:E.jsx(vm,{children:E.jsx(E1,{alwaysEnable:!0})}),children:[E.jsx(fn,{source:"token",autoComplete:"off",validate:SBe,resettable:!0}),E.jsx(Qd,{source:"length",validate:EBe,helperText:"resources.registration_tokens.helper.length",step:1}),E.jsx(Qd,{source:"uses_allowed",validate:DV,step:1}),E.jsx(K$,{source:"expiry_time",parse:sk})]})}),RBe=e=>E.jsx(H8,{...e,children:E.jsxs(mm,{children:[E.jsx(fn,{source:"token",disabled:!0}),E.jsx(Qd,{source:"pending",disabled:!0}),E.jsx(Qd,{source:"completed",disabled:!0}),E.jsx(Qd,{source:"uses_allowed",validate:DV,step:1}),E.jsx(K$,{source:"expiry_time",parse:sk,format:fBe})]})}),$Be={name:"registration_tokens",icon:LV,list:OBe,edit:RBe,create:PBe};var uk={},kBe=He;Object.defineProperty(uk,"__esModule",{value:!0});var ck=uk.default=void 0,jBe=kBe(Ke()),IBe=E;ck=uk.default=(0,jBe.default)((0,IBe.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview");var dk={},TBe=He;Object.defineProperty(dk,"__esModule",{value:!0});var NV=dk.default=void 0,ABe=TBe(Ke()),MBe=E;NV=dk.default=(0,ABe.default)((0,MBe.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var fk={},FBe=He;Object.defineProperty(fk,"__esModule",{value:!0});var KO=fk.default=void 0,LBe=FBe(Ke()),DBe=E;KO=fk.default=(0,LBe.default)((0,DBe.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 pk={},NBe=He;Object.defineProperty(pk,"__esModule",{value:!0});var hk=pk.default=void 0,BBe=NBe(Ke()),zBe=E;hk=pk.default=(0,BBe.default)((0,zBe.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 vk={},UBe=He;Object.defineProperty(vk,"__esModule",{value:!0});var mk=vk.default=void 0,VBe=UBe(Ke()),WBe=E;mk=vk.default=(0,VBe.default)((0,WBe.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 gk={},HBe=He;Object.defineProperty(gk,"__esModule",{value:!0});var BV=gk.default=void 0,qBe=HBe(Ke()),GBe=E;BV=gk.default=(0,qBe.default)((0,GBe.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 yk={},KBe=He;Object.defineProperty(yk,"__esModule",{value:!0});var zV=yk.default=void 0,QBe=KBe(Ke()),XBe=E;zV=yk.default=(0,QBe.default)((0,XBe.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 YBe=({open:e,onClose:t,onSubmit:r})=>{const n=Be(),a=o=>E.jsxs(vm,{...o,children:[E.jsx(E1,{label:"delete_media.action.send",icon:E.jsx(mk,{})}),E.jsx(cr,{label:"ra.action.cancel",onClick:t,children:E.jsx(hk,{})})]});return E.jsxs(im,{open:e,onClose:t,children:[E.jsx(lm,{children:n("delete_media.action.send")}),E.jsxs(sm,{children:[E.jsx(m1,{children:n("delete_media.helper.send")}),E.jsxs(mm,{toolbar:E.jsx(a,{}),onSubmit:r,children:[E.jsx(K$,{source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:sk}),E.jsx(Qd,{source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),E.jsx(Oi,{source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},JBe=e=>{const t=Ja(),[r,n]=d.useState(!1),a=gr(),o=Xa(),{mutate:i,isPending:l}=Cc({mutationFn:f=>o.deleteMedia(f),onSuccess:()=>{a("delete_media.action.send_success"),s()},onError:()=>{a("delete_media.action.send_failure",{type:"error"})}}),c=()=>n(!0),s=()=>n(!1);return E.jsxs(E.Fragment,{children:[E.jsx(cr,{...e,label:"delete_media.action.send",onClick:c,disabled:l,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:$f(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:E.jsx(mk,{})}),E.jsx(YBe,{open:r,onClose:s,onSubmit:i})]})},ZBe=e=>{const t=Kt(),r=Be(),n=Ni(),a=gr(),[o,{isLoading:i}]=Wv(),[l]=Hv();if(!t)return null;const c=()=>{o("protect_media",{data:t},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})},s=()=>{l("protect_media",{id:t.id},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[t.quarantined_by&&E.jsx(kn,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:E.jsx("div",{children:E.jsx(cr,{...e,disabled:!0,children:E.jsx(wc,{})})})}),t.safe_from_quarantine&&E.jsx(kn,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:s,disabled:i,children:E.jsx(cm,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&E.jsx(kn,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:c,disabled:i,children:E.jsx(zV,{})})})})]})},eze=e=>{const t=Kt(),r=Be(),n=Ni(),a=gr(),[o,{isLoading:i}]=Wv(),[l]=Hv();if(!t)return null;const c=()=>{o("quarantine_media",{data:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})},s=()=>{l("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[t.safe_from_quarantine&&E.jsx(kn,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:E.jsx("div",{children:E.jsx(cr,{...e,disabled:!0,children:E.jsx(wc,{})})})}),t.quarantined_by&&E.jsx(kn,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:s,disabled:i,children:E.jsx(KO,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&E.jsx(kn,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:c,disabled:i,children:E.jsx(KO,{})})})})]})},UV=({media_id:e,label:t})=>{const r=Be(),n=D5e(e);return E.jsxs(aa,{style:{whiteSpace:"pre"},children:[E.jsx(kn,{title:r("resources.users_media.action.open"),children:E.jsx("span",{children:E.jsx(cr,{component:PV,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:E.jsx(BV,{})})})}),t]})},tze=({source:e})=>{var a;const t=Ut.getItem("home_server"),r=Kt();if(!r)return null;const n=(a=Lv.get(r,e))==null?void 0:a.toString();return n?E.jsx(UV,{media_id:`${t}/${n}`,label:n}):null},rze=({source:e})=>{var a;const t=Kt();if(!t)return null;const r=(a=Lv.get(t,e))==null?void 0:a.toString();if(!r)return null;const n=r.replace("mxc://","");return E.jsx(UV,{media_id:n,label:r})},nze=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),aze=e=>{const t=Be();return E.jsx(Z$,{...e,actions:E.jsx(oze,{}),children:E.jsxs($1,{children:[E.jsxs(Jo,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:E.jsx(jc,{}),children:[E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(hs,{source:"user_id",reference:"users",children:E.jsx(ze,{source:"id"})}),E.jsx(ji,{source:"score"}),E.jsx(ze,{source:"reason"}),E.jsx(ze,{source:"name"}),E.jsx(ze,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),E.jsx(hs,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:E.jsx(ze,{source:"id"})})]}),E.jsxs(Jo,{label:"synapseadmin.reports.tabs.detail",icon:E.jsx(ck,{}),path:"detail",children:[E.jsx(Pn,{source:"event_json.origin_server_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(hs,{source:"sender",reference:"users",children:E.jsx(ze,{source:"id"})}),E.jsx(ze,{source:"sender",label:"Sender (raw user ID)"}),E.jsx(ze,{source:"event_id"}),E.jsx(ze,{source:"event_json.origin"}),E.jsx(ze,{source:"event_json.type"}),E.jsx(ze,{source:"event_json.content.msgtype"}),E.jsx(ze,{source:"event_json.content.body"}),E.jsx(ze,{source:"event_json.content.info.mimetype"}),E.jsx(rze,{source:"event_json.content.url"}),E.jsx(ze,{source:"event_json.content.format"}),E.jsx(ze,{source:"event_json.content.formatted_body"}),E.jsx(ze,{source:"event_json.content.algorithm"}),E.jsx(ze,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},oze=()=>{const e=Kt();return E.jsx(Do,{children:E.jsx(fp,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},ize=e=>E.jsx(Ac,{...e,pagination:E.jsx(nze,{}),sort:{field:"received_ts",order:"DESC"},children:E.jsxs(Un,{rowClick:"show",bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1}),E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(ze,{sortable:!1,source:"user_id"}),E.jsx(ze,{sortable:!1,source:"name"}),E.jsx(ze,{sortable:!1,source:"score"})]})}),sze={name:"reports",icon:NV,list:ize,show:aze},bk=({source:e,...t})=>{var s;const r=Kt(t),n=(s=Lv.get(r,e))==null?void 0:s.toString(),{alt:a,classes:o,sizes:i,sx:l,variant:c}=t;return E.jsx(bv,{alt:a,classes:o,sizes:i,src:n,sx:l,variant:c})},lze=()=>E.jsx(Ic,{rowsPerPageOptions:[100,500,1e3,2e3]}),uze=e=>{const t=Be();return E.jsx(fp,{...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:E.jsx(Mc,{})})},VV=e=>E.jsx(S1,{...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:E.jsx(Mc,{})}),cze=e=>{const{selectedIds:t}=Hn(),r=gr(),n=Ni(),a=uz("rooms"),o=Xa(),{mutate:i,isPending:l}=Cc({mutationFn:()=>o.createMany("room_directory",{ids:t,data:{}}),onSuccess:()=>{r("resources.room_directory.action.send_success"),a(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return E.jsx(cr,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:l,children:E.jsx(Mc,{})})},dze=e=>{const t=Kt(),r=gr(),n=Ni(),[a,{isLoading:o}]=Wv();if(!t)return;const i=()=>{a("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return E.jsx(cr,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:o,children:E.jsx(Mc,{})})},fze=()=>E.jsxs(Do,{children:[E.jsx(R8,{}),E.jsx(hm,{})]}),pze=()=>E.jsx(Ac,{pagination:E.jsx(lze,{}),perPage:100,actions:E.jsx(fze,{}),children:E.jsxs(P8,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:E.jsx(VV,{}),omit:["room_id","canonical_alias","topic"],children:[E.jsx(bk,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),E.jsx(ze,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),E.jsx(ze,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),E.jsx(ze,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),E.jsx(ze,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),E.jsx(ji,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),E.jsx(xo,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),E.jsx(xo,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),hze={name:"room_directory",icon:Mc,list:pze};var _k={},vze=He;Object.defineProperty(_k,"__esModule",{value:!0});var WV=_k.default=void 0,mze=vze(Ke()),gze=E;WV=_k.default=(0,mze.default)((0,gze.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 xk={},yze=He;Object.defineProperty(xk,"__esModule",{value:!0});var HV=xk.default=void 0,bze=yze(Ke()),_ze=E;HV=xk.default=(0,bze.default)((0,_ze.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var wk={},xze=He;Object.defineProperty(wk,"__esModule",{value:!0});var Sk=wk.default=void 0,wze=xze(Ke()),Sze=E;Sk=wk.default=(0,wze.default)((0,Sze.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 Ek={},Eze=He;Object.defineProperty(Ek,"__esModule",{value:!0});var QO=Ek.default=void 0,Cze=Eze(Ke()),Oze=E;QO=Ek.default=(0,Cze.default)((0,Oze.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 Ck={},Pze=He;Object.defineProperty(Ck,"__esModule",{value:!0});var qV=Ck.default=void 0,Rze=Pze(Ke()),$ze=E;qV=Ck.default=(0,Rze.default)((0,$ze.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 kze=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),jze=()=>{const e=Kt(),t=Be();let r="";return e&&(r=e.name!==""?e.name:e.id),E.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},Ize=()=>{const e=Kt(),t=e!=null&&e.public?E.jsx(uze,{}):E.jsx(dze,{});return E.jsxs(Do,{children:[t,E.jsx(fp,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},Tze=e=>{const t=Be();return E.jsx(Z$,{...e,actions:E.jsx(Ize,{}),title:E.jsx(jze,{}),children:E.jsxs($1,{children:[E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.basic",icon:E.jsx(jc,{}),children:[E.jsx(ze,{source:"room_id"}),E.jsx(ze,{source:"name"}),E.jsx(ze,{source:"topic"}),E.jsx(ze,{source:"canonical_alias"}),E.jsx(hs,{source:"creator",reference:"users",children:E.jsx(ze,{source:"id"})})]}),E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.detail",icon:E.jsx(ck,{}),path:"detail",children:[E.jsx(ze,{source:"joined_members"}),E.jsx(ze,{source:"joined_local_members"}),E.jsx(ze,{source:"joined_local_devices"}),E.jsx(ze,{source:"state_events"}),E.jsx(ze,{source:"version"}),E.jsx(ze,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),E.jsx(Jo,{label:"synapseadmin.rooms.tabs.members",icon:E.jsx(Sk,{}),path:"members",children:E.jsx(El,{reference:"room_members",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1,label:"resources.users.fields.id"}),E.jsx(hs,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:E.jsx(ze,{source:"displayname",sortable:!1})})]})})}),E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.permission",icon:E.jsx(X$,{}),path:"permission",children:[E.jsx(xo,{source:"federatable"}),E.jsx(xo,{source:"public"}),E.jsx(gS,{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"}]}),E.jsx(gS,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),E.jsx(gS,{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"}]})]}),E.jsx(Jo,{label:t("resources.room_state.name",{smart_count:2}),icon:E.jsx(WV,{}),path:"state",children:E.jsx(El,{reference:"room_state",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"type",sortable:!1}),E.jsx(Pn,{source:"origin_server_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(ze,{source:"content",sortable:!1}),E.jsx(hs,{source:"sender",reference:"users",sortable:!1,children:E.jsx(ze,{source:"id"})})]})})}),E.jsxs(Jo,{label:"resources.forward_extremities.name",icon:E.jsx(HV,{}),path:"forward_extremities",children:[E.jsx(aa,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),E.jsx(El,{reference:"forward_extremities",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1}),E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(ji,{source:"depth",sortable:!1}),E.jsx(ze,{source:"state_group",sortable:!1})]})})]})]})})},Aze=()=>E.jsxs(E.Fragment,{children:[E.jsx(cze,{}),E.jsx(VV,{}),E.jsx(S1,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),Mze=[E.jsx(R1,{source:"search_term",alwaysOn:!0})],Fze=()=>E.jsxs(Do,{children:[E.jsx(R8,{}),E.jsx(hm,{})]}),Lze=e=>{const t=Ja();return E.jsx(Ac,{...e,pagination:E.jsx(kze,{}),sort:{field:"name",order:"ASC"},filters:Mze,actions:E.jsx(Fze,{}),children:E.jsxs(P8,{rowClick:"show",bulkActionButtons:E.jsx(Aze,{}),omit:["joined_local_members","state_events","version","federatable"],children:[E.jsx(xo,{source:"is_encrypted",sortBy:"encryption",TrueIcon:QO,FalseIcon:qV,label:E.jsx(QO,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),E.jsx(d4e,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),E.jsx(ze,{source:"joined_members"}),E.jsx(ze,{source:"joined_local_members"}),E.jsx(ze,{source:"state_events"}),E.jsx(ze,{source:"version"}),E.jsx(xo,{source:"federatable"}),E.jsx(xo,{source:"public"})]})})},Dze={name:"rooms",icon:jc,list:Lze,show:Tze};var Ok={},Nze=He;Object.defineProperty(Ok,"__esModule",{value:!0});var GV=Ok.default=void 0,Bze=Nze(Ke()),zze=E;GV=Ok.default=(0,Bze.default)((0,zze.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const Uze=()=>{const{isLoading:e,total:t}=Hn();return E.jsxs(Do,{children:[E.jsx(JBe,{}),E.jsx(hm,{disabled:e||t===0})]})},Vze=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Wze=[E.jsx(R1,{source:"search_term",alwaysOn:!0})],Hze=e=>E.jsx(Ac,{...e,actions:E.jsx(Uze,{}),filters:Wze,pagination:E.jsx(Vze,{}),sort:{field:"media_length",order:"DESC"},children:E.jsxs(Un,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[E.jsx(ze,{source:"user_id",label:"resources.users.fields.id"}),E.jsx(ze,{source:"displayname",label:"resources.users.fields.displayname"}),E.jsx(ji,{source:"media_count"}),E.jsx(ji,{source:"media_length"})]})}),qze={name:"user_media_statistics",icon:GV,list:Hze};var Pk={},Gze=He;Object.defineProperty(Pk,"__esModule",{value:!0});var KV=Pk.default=void 0,Kze=Gze(Ke()),Qze=E;KV=Pk.default=(0,Kze.default)((0,Qze.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 Rk={},Xze=He;Object.defineProperty(Rk,"__esModule",{value:!0});var QV=Rk.default=void 0,Yze=Xze(Ke()),Jze=E;QV=Rk.default=(0,Yze.default)((0,Jze.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 $k={},Zze=He;Object.defineProperty($k,"__esModule",{value:!0});var XV=$k.default=void 0,e6e=Zze(Ke()),t6e=E;XV=$k.default=(0,e6e.default)((0,t6e.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 kk={},r6e=He;Object.defineProperty(kk,"__esModule",{value:!0});var YV=kk.default=void 0,n6e=r6e(Ke()),a6e=E;YV=kk.default=(0,n6e.default)((0,a6e.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 jk={},o6e=He;Object.defineProperty(jk,"__esModule",{value:!0});var JV=jk.default=void 0,i6e=o6e(Ke()),s6e=E;JV=jk.default=(0,i6e.default)((0,s6e.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 Ik={},l6e=He;Object.defineProperty(Ik,"__esModule",{value:!0});var ZV=Ik.default=void 0,u6e=l6e(Ke()),c6e=E;ZV=Ik.default=(0,u6e.default)((0,c6e.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 Tk={},d6e=He;Object.defineProperty(Tk,"__esModule",{value:!0});var eW=Tk.default=void 0,f6e=d6e(Ke()),p6e=E;eW=Tk.default=(0,f6e.default)((0,p6e.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 Ak={},h6e=He;Object.defineProperty(Ak,"__esModule",{value:!0});var Mk=Ak.default=void 0,v6e=h6e(Ke()),m6e=E;Mk=Ak.default=(0,v6e.default)((0,m6e.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 tW=({open:e,onClose:t,onSubmit:r})=>{const n=Be(),a=o=>E.jsxs(vm,{...o,children:[E.jsx(E1,{label:"resources.servernotices.action.send",disabled:o.pristine}),E.jsx(cr,{label:"ra.action.cancel",onClick:t,children:E.jsx(hk,{})})]});return E.jsxs(im,{open:e,onClose:t,children:[E.jsx(lm,{children:n("resources.servernotices.action.send")}),E.jsxs(sm,{children:[E.jsx(m1,{children:n("resources.servernotices.helper.send")}),E.jsx(mm,{toolbar:E.jsx(a,{}),onSubmit:r,children:E.jsx(fn,{source:"body",label:"resources.servernotices.fields.body",multiline:!0,rows:"4",resettable:!0,validate:Va()})})]})]})},g6e=()=>{const e=Kt(),[t,r]=d.useState(!1),n=gr(),[a,{isLoading:o}]=Wv(),i=()=>r(!0),l=()=>r(!1);if(!e)return;const c=s=>{a("servernotices",{data:{id:e.id,...s}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),l()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[E.jsx(cr,{label:"resources.servernotices.send",onClick:i,disabled:o,children:E.jsx(Mk,{})}),E.jsx(tW,{open:t,onClose:l,onSubmit:c})]})},y6e=()=>{const{selectedIds:e}=Hn(),[t,r]=d.useState(!1),n=()=>r(!0),a=()=>r(!1),o=gr(),i=uz("users"),l=Xa(),{mutate:c,isPending:s}=Cc({mutationFn:f=>l.createMany("servernotices",{ids:e,data:f}),onSuccess:()=>{o("resources.servernotices.action.send_success"),i(),a()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})});return E.jsxs(E.Fragment,{children:[E.jsx(cr,{label:"resources.servernotices.send",onClick:n,disabled:s,children:E.jsx(Mk,{})}),E.jsx(tW,{open:t,onClose:a,onSubmit:c})]})},b6e=e=>{const t=Kt();return t?E.jsx(t8,{...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},rW=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],nW=[{id:"bot",name:"bot"},{id:"support",name:"support"}],aW=()=>{const{isLoading:e,total:t}=Hn();return E.jsxs(Do,{children:[E.jsx(G2,{}),E.jsx(hm,{disabled:e||t===0,maxResults:1e4}),E.jsx(cr,{component:PV,to:"/import_users",label:"CSV Import",children:E.jsx(_$,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};aW.defaultProps={selectedIds:[],onUnselectItems:()=>null};const oW=()=>E.jsx(Ic,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),_6e=[E.jsx(R1,{source:"name",alwaysOn:!0}),E.jsx(Oi,{source:"guests",alwaysOn:!0}),E.jsx(Oi,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0}),E.jsx(Oi,{label:"resources.users.fields.show_locked",source:"locked",alwaysOn:!0})],x6e=()=>E.jsxs(E.Fragment,{children:[E.jsx(y6e,{}),E.jsx(S1,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),w6e=e=>E.jsx(Ac,{...e,filters:_6e,filterDefaultValues:{guests:!0,deactivated:!1,locked:!1},sort:{field:"name",order:"ASC"},actions:E.jsx(aW,{}),pagination:E.jsx(oW,{}),children:E.jsxs(Un,{rowClick:(t,r)=>`/${r}/${t}`,bulkActionButtons:E.jsx(x6e,{}),children:[E.jsx(bk,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),E.jsx(ze,{source:"id",sortBy:"name"}),E.jsx(ze,{source:"displayname"}),E.jsx(xo,{source:"is_guest"}),E.jsx(xo,{source:"admin"}),E.jsx(xo,{source:"deactivated"}),E.jsx(xo,{source:"locked"}),E.jsx(xo,{source:"erased",sortable:!1}),E.jsx(Pn,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:Vn})]})}),S6e=[Va(),I0(253),qR(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],E6e=[Va(),I0(255)],C6e=()=>{const e=Kt(),t=Be();return E.jsxs(Do,{children:[!(e!=null&&e.deactivated)&&E.jsx(g6e,{}),E.jsx(fp,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},O6e=e=>E.jsx(W8,{...e,redirect:(t,r)=>`${t}/${r}`,children:E.jsxs(mm,{children:[E.jsx(fn,{source:"id",autoComplete:"off",validate:S6e}),E.jsx(fn,{source:"displayname",validate:I0(256)}),E.jsx(J$,{source:"password",autoComplete:"new-password",validate:I0(512)}),E.jsx(xb,{source:"user_type",choices:nW,translateChoice:!1,resettable:!0}),E.jsx(Oi,{source:"admin"}),E.jsx(lb,{source:"threepids",children:E.jsxs(cb,{disableReordering:!0,children:[E.jsx(xb,{source:"medium",choices:rW,validate:Va()}),E.jsx(fn,{source:"address",validate:E6e})]})}),E.jsx(lb,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:E.jsxs(cb,{disableReordering:!0,children:[E.jsx(fn,{source:"auth_provider",validate:Va()}),E.jsx(fn,{source:"external_id",label:"resources.users.fields.id",validate:Va()})]})})]})}),P6e=()=>{const e=Kt(),t=Be();return E.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},R6e=e=>{const t=Be();return E.jsx(H8,{...e,title:E.jsx(P6e,{}),actions:E.jsx(C6e,{}),children:E.jsxs(Y8,{children:[E.jsxs(vi,{label:t("resources.users.name",{smart_count:1}),icon:E.jsx(ZV,{}),children:[E.jsx(bk,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),E.jsx(fn,{source:"id",disabled:!0}),E.jsx(fn,{source:"displayname"}),E.jsx(J$,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),E.jsx(xb,{source:"user_type",choices:nW,translateChoice:!1,resettable:!0}),E.jsx(Oi,{source:"admin"}),E.jsx(Oi,{source:"locked"}),E.jsx(Oi,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),E.jsx(Oi,{source:"erased",disabled:!0}),E.jsx(Pn,{source:"creation_ts_ms",showTime:!0,options:Vn}),E.jsx(ze,{source:"consent_version"})]}),E.jsx(vi,{label:"resources.users.threepid",icon:E.jsx(QV,{}),path:"threepid",children:E.jsx(lb,{source:"threepids",children:E.jsxs(cb,{disableReordering:!0,children:[E.jsx(xb,{source:"medium",choices:rW}),E.jsx(fn,{source:"address"})]})})}),E.jsx(vi,{label:"synapseadmin.users.tabs.sso",icon:E.jsx(KV,{}),path:"sso",children:E.jsx(lb,{source:"external_ids",label:!1,children:E.jsxs(cb,{disableReordering:!0,children:[E.jsx(fn,{source:"auth_provider",validate:Va()}),E.jsx(fn,{source:"external_id",label:"resources.users.fields.id",validate:Va()})]})})}),E.jsx(vi,{label:t("resources.devices.name",{smart_count:2}),icon:E.jsx(XV,{}),path:"devices",children:E.jsx(El,{reference:"devices",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},children:[E.jsx(ze,{source:"device_id",sortable:!1}),E.jsx(ze,{source:"display_name",sortable:!1}),E.jsx(ze,{source:"last_seen_ip",sortable:!1}),E.jsx(Pn,{source:"last_seen_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(b6e,{})]})})}),E.jsx(vi,{label:"resources.connections.name",icon:E.jsx(eW,{}),path:"connections",children:E.jsx(hs,{reference:"connections",source:"id",label:!1,link:!1,children:E.jsx(e4e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"ip",sortable:!1}),E.jsx(Pn,{source:"last_seen",showTime:!0,options:Vn,sortable:!1}),E.jsx(ze,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),E.jsx(vi,{label:t("resources.users_media.name",{smart_count:2}),icon:E.jsx(JV,{}),path:"media",children:E.jsx(El,{reference:"users_media",target:"user_id",label:!1,pagination:E.jsx(oW,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:E.jsxs(Un,{style:{width:"100%"},children:[E.jsx(tze,{source:"media_id"}),E.jsx(Pn,{source:"created_ts",showTime:!0,options:Vn}),E.jsx(Pn,{source:"last_access_ts",showTime:!0,options:Vn}),E.jsx(ji,{source:"media_length"}),E.jsx(ze,{source:"media_type"}),E.jsx(ze,{source:"upload_name"}),E.jsx(ze,{source:"quarantined_by"}),E.jsx(eze,{label:"resources.quarantine_media.action.name"}),E.jsx(ZBe,{label:"resources.users_media.fields.safe_from_quarantine"}),E.jsx(fp,{mutationMode:"pessimistic",redirect:!1})]})})}),E.jsx(vi,{label:t("resources.rooms.name",{smart_count:2}),icon:E.jsx(jc,{}),path:"rooms",children:E.jsx(El,{reference:"joined_rooms",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),E.jsx(hs,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:E.jsx(ze,{source:"name",sortable:!1})})]})})}),E.jsx(vi,{label:t("resources.pushers.name",{smart_count:2}),icon:E.jsx(YV,{}),path:"pushers",children:E.jsx(El,{reference:"pushers",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"kind",sortable:!1}),E.jsx(ze,{source:"app_display_name",sortable:!1}),E.jsx(ze,{source:"app_id",sortable:!1}),E.jsx(ze,{source:"data.url",sortable:!1}),E.jsx(ze,{source:"device_display_name",sortable:!1}),E.jsx(ze,{source:"lang",sortable:!1}),E.jsx(ze,{source:"profile_tag",sortable:!1}),E.jsx(ze,{source:"pushkey",sortable:!1})]})})})]})})},$6e={name:"users",icon:Sk,list:w6e,edit:R6e,create:O6e},k6e={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:Ut.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r,identifier:{type:"m.id.user",user:t}}))};e=e.replace(/\/+$/g,""),Ut.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:l}=await mc(i,a);Ut.setItem("home_server",l.home_server),Ut.setItem("user_id",l.user_id),Ut.setItem("access_token",l.access_token),Ut.setItem("device_id",l.device_id)},logout:async()=>{console.log("logout");const e=Ut.getItem("base_url")+"/_matrix/client/r0/logout",t=Ut.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await mc(e,r),Ut.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=Ut.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},Fa=(e,t={})=>{const r=Ut.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),mc(e,t)},hN=e=>{const t=Ut.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const a=n[1],o=n[2];return`${t}/_matrix/media/r0/thumbnail/${a}/${o}?width=24&height=24&method=scale`},Xr={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?hN(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)}:${Ut.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/${Ut.getItem("home_server")}/${e.id}`})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${Ut.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${Ut.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?hN(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 eh(e,t){if(!(t===null&&e!=="user_type"))return t}function vN(e){return e==="DESC"?"b":"f"}const j6e={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:a,deactivated:o,locked:i,search_term:l,destination:c,valid:s}=t.filter,{page:f,perPage:h}=t.pagination,{field:v,order:m}=t.sort,b=(f-1)*h,w={from:b,limit:h,user_id:r,search_term:l,name:n,destination:c,guests:a,deactivated:o,locked:i,valid:s,order_by:v,dir:vN(m)},O=Ut.getItem("base_url");if(!O||!(e in Xr))throw Error("Homeserver not set");const _=Xr[e],x=`${O+_.path}?${vc.stringify(w)}`,{json:S}=await Fa(x);return{data:S[_.data].map(_.map),total:_.total(S,b,h)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path,{json:o}=await Fa(`${a}/${encodeURIComponent(t.id)}`);return{data:n.map(o)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homerserver not set");const n=Xr[e],a=r+n.path,o=await Promise.all(t.ids.map(i=>Fa(`${a}/${encodeURIComponent(i)}`)));return{data:o.map(({json:i})=>n.map(i)),total:o.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i=(r-1)*n,l={from:i,limit:n,order_by:a,dir:vN(o)},c=Ut.getItem("base_url");if(!c||!(e in Xr))throw Error("Homeserver not set");const s=Xr[e],f=s.reference(t.id),h=`${c}${f.endpoint}?${vc.stringify(l)}`,{json:v}=await Fa(h);return{data:v[s.data].map(s.map),total:s.total(v,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path,{json:o}=await Fa(`${a}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,eh)});return{data:n.map(o)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path;return{data:(await Promise.all(t.ids.map(i=>Fa(`${a}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,eh)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if(!("create"in n))return Promise.reject();const a=n.create(t.data),o=r+a.endpoint,{json:i}=await Fa(o,{method:a.method,body:JSON.stringify(a.body,eh)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(o=>{t.data.id=o;const i=n.create(t.data),l=r+i.endpoint;return Fa(l,{method:i.method,body:JSON.stringify(i.body,eh)})}))).map(({json:o})=>o)}},delete:async(e,t)=>{console.log("delete "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if("delete"in n){const a=n.delete(t),o=r+a.endpoint,{json:i}=await Fa(o,{method:"method"in a?a.method:"DELETE",body:"body"in a?JSON.stringify(a.body):null});return{data:i}}else{const a=r+n.path,{json:o}=await Fa(`${a}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,eh)});return{data:o}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(o=>{const i=n.delete({...t,id:o}),l=r+i.endpoint;return Fa(l,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:o})=>o)};{const a=r+n.path;return{data:(await Promise.all(t.ids.map(i=>Fa(`${a}/${i}`,{method:"DELETE"})))).map(({json:i})=>i)}}},deleteMedia:async({before_ts:e,size_gt:t=0,keep_profiles:r=!0})=>{const a=`/_synapse/admin/v1/media/${Ut.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,i=Ut.getItem("base_url")+a,{json:l}=await Fa(i,{method:"POST"});return l}},Kg={de:W5e,en:H5e,fr:G5e,it:X5e,ru:Y5e,zh:Z5e},I6e=u5(e=>Kg[e]?Lv.merge({},Kg.en,Kg[e]):Kg.en,ufe(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"ru",name:"Russian(Русский)"},{locale:"zh",name:"简体中文"}]),T6e=()=>E.jsxs(a5e,{disableTelemetry:!0,requireAuth:!0,loginPage:rBe,authProvider:k6e,dataProvider:j6e,i18nProvider:I6e,children:[E.jsx(Qz,{children:E.jsx(b5e,{path:"/import_users",element:E.jsx(U5e,{})})}),E.jsx(ln,{...$6e}),E.jsx(ln,{...Dze}),E.jsx(ln,{...qze}),E.jsx(ln,{...sze}),E.jsx(ln,{...hze}),E.jsx(ln,{...bBe}),E.jsx(ln,{...$Be}),E.jsx(ln,{name:"connections"}),E.jsx(ln,{name:"devices"}),E.jsx(ln,{name:"room_members"}),E.jsx(ln,{name:"users_media"}),E.jsx(ln,{name:"joined_rooms"}),E.jsx(ln,{name:"pushers"}),E.jsx(ln,{name:"servernotices"}),E.jsx(ln,{name:"forward_extremities"}),E.jsx(ln,{name:"room_state"}),E.jsx(ln,{name:"destination_rooms"})]});fetch("/synapse-admin/config.json").then(e=>e.json()).then(e=>N4(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(IV.Provider,{value:e,children:E.jsx(T6e,{})})}))); +`);var W=0,z=!1;this.parse=function(q,ee,oe){if(typeof q!="string")throw new Error("Input must be a string");var J=q.length,we=T.length,le=M.length,ge=F.length,pe=$(L),me=[],xe=[],ne=[],Ie=W=0;if(!q)return Ct();if(R.header&&!ee){var ve=q.split(M)[0].split(T),$e=[],ye={},je=!1;for(var Le in ve){var st=ve[Le];$(R.transformHeader)&&(st=R.transformHeader(st,Le));var Xe=st,U=ye[st]||0;for(0=B)return Ct(!0)}else for(Ae=W,W++;;){if((Ae=q.indexOf(k,Ae+1))===-1)return oe||xe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:me.length,index:W}),_t();if(Ae===J-1)return _t(q.substring(W,Ae).replace(Ee,k));if(k!==H||q[Ae+1]!==H){if(k===H||Ae===0||q[Ae-1]!==H){ue!==-1&&ue=B)return Ct(!0);break}xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:me.length,index:W}),Ae++}}else Ae++}return _t();function Ze(pt){me.push(pt),Ie=W}function Ve(pt){var Me=0;if(pt!==-1){var Ge=q.substring(Ae+1,pt);Ge&&Ge.trim()===""&&(Me=Ge.length)}return Me}function _t(pt){return oe||(pt===void 0&&(pt=q.substring(W)),ne.push(pt),W=J,Ze(ne),pe&&qe()),Ct()}function Wt(pt){W=pt,Ze(ne),ne=[],ce=q.indexOf(M,W)}function Ct(pt){return{data:me,errors:xe,meta:{delimiter:T,linebreak:M,aborted:z,truncated:!!pt,cursor:Ie+(ee||0)}}}function qe(){L(Ct()),me=[],xe=[]}},this.abort=function(){z=!0},this.getCharIndex=function(){return W}}function y(R){var k=R.data,T=i[k.workerId],M=!1;if(k.error)T.userError(k.error,k.file);else if(k.results&&k.results.data){var F={abort:function(){M=!0,x(k.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if($(T.userStep)){for(var L=0;L{var r;return(r=/^@(?[a-zA-Z0-9._=\-/]+):(?[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},I5e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),A5e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await mc(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},M5e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await mc(t,{method:"GET"})).json.server_version},F5e=async e=>{const t=`${e}/_matrix/client/versions`;return(await mc(t,{method:"GET"})).json},L5e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await mc(t,{method:"GET"})).json.flows},D5e=e=>`${Ut.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function pN(){const e=Ut.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function N5e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const bS=!0,B5e=["id","displayname"].sort();function Gg({value:e,text:t}){const r=$V();return E.jsx("option",{value:e,children:r(t)})}const z5e=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(null),[a,o]=d.useState(null),[i,l]=d.useState(!0),[c,s]=d.useState(null),[f,h]=d.useState(null),[v,m]=d.useState(""),[b,w]=d.useState("stop"),[O,_]=d.useState(!0),[y,x]=d.useState("ignore"),S=$V(),P=gr(),C=Xa(),$=async le=>{if(c!==null)return;t([]),n(null),o(null),h(null);const ge=le.target.files?le.target.files[0]:null;if(ge){if(ge.size>1e8){const pe=S("import_users.errors.unreasonably_big",{size:(ge.size/1048576).toFixed(2)});P(pe),n(pe);return}try{dN.parse(ge,{header:!0,skipEmptyLines:!0,complete:pe=>{pe.errors&&n(pe.errors.map(me=>me.toString())),R(pe,{setValues:t,setStats:o,setError:n})}})}catch{return n("Unknown error"),null}}},R=({data:le,meta:ge,errors:pe},{setValues:me,setStats:xe,setError:ne})=>{const Ie=B5e.filter(ye=>{var je;return!((je=ge.fields)!=null&&je.includes(ye))});if(Ie.length>0)return ne(S("import_users.error.required_field",{field:Ie[0]})),!1;const ve={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:le.length},$e=pe.map(ye=>ye.message);return le.forEach((ye,je)=>{var Le,st,Xe;ye.user_type===void 0||ye.user_type===""?ve.user_types.default++:ve.user_types[ye.user_type]+=1,(Le=ge.fields)!=null&&Le.includes("name")&&delete ye.name,(st=ge.fields)!=null&&st.includes("user_type")&&delete ye.user_type,(Xe=ge.fields)!=null&&Xe.includes("is_admin")&&delete ye.is_admin,["is_guest","admin","deactivated"].forEach(U=>{ye[U]==="true"?(ve[U]++,ye[U]=!0):(ye[U]!=="false"&&ye[U]!==""&&$e.push(S("import_users.error.invalid_value",{field:U,row:je})),ye[U]=!1)}),ye.password!==void 0&&ye.password!==""&&ve.password++,ye.avatar_url!==void 0&&ye.avatar_url!==""&&ve.avatar_url++,ye.id!==void 0&&ye.id!==""&&ve.id++}),$e.length>0&&ne($e),xe(ve),me(le),!0},k=async()=>{if(c!==null){P("import_users.errors.already_in_progress");return}const le=await T(C,e,b,O,y,i,s,n);h(le),m(dN.unparse(le.skippedRecords)),console.log("Skipped records:"),console.log(v)},T=async(le,ge,pe,me,xe,ne,Ie,ve)=>{const $e=[],ye=[],je=[],Le={total:0,id:0,is_guest:0,admin:0,password:0};let st=0;const Xe=ge.length;try{Ie({done:st,limit:Xe});for(const U of ge){const K={...U};(xe==="ignore"||K.id===void 0)&&(K.id=pN()),(me===!1||U.password===void 0)&&(K.password=N5e()),bS&&console.log("will check for existence of record "+JSON.stringify(K));let Z=0;const ie=ue=>le.getOne("users",{id:ue.id}).then(async()=>{if(bS&&console.log("already existed"),xe==="update"||pe==="skip")$e.push(ue);else{if(pe==="stop")throw new Error(S("import_users.error.id_exits",{id:ue.id}));{const ce=Object.assign({},ue,{id:pN()});Z++,Z>512?(console.warn("retry loop got stuck? pathological situation?"),$e.push(ue)):await ie(ce)}}},async()=>{bS&&console.log("OK to create record "+ue.id+" ("+ue.displayname+")."),ne||await le.create("users",{data:ue}),je.push(ue)});await ie(K),st++,Ie({done:st,limit:ge.length})}Ie(null)}catch(U){ve(S("import_users.error.at_entry",{entry:st+1,message:U instanceof Error?U.message:String(U)})),Ie(null)}return{skippedRecords:$e,erroredRecords:ye,succeededRecords:je,totalRecordCount:Xe,changeStats:Le,wasDryRun:ne}},M=()=>{const le=document.createElement("a");console.log(v);const ge=new Blob([v],{type:"text/comma-separated-values"});le.href=URL.createObjectURL(ge),le.download="skippedRecords.csv",document.body.appendChild(le),le.click()},F=async le=>{if(c!==null)return;const ge=le.target.value;w(ge)},L=le=>{c===null&&_(le.target.checked)},B=async le=>{if(c!==null)return;const ge=le.target.value;x(ge)},V=le=>{c===null&&l(le.target.checked)},H=a&&!f&&[E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.importstats.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:S("import_users.cards.importstats.users_total",a.total)}),E.jsx("div",{children:S("import_users.cards.importstats.guest_count",a.is_guest)}),E.jsx("div",{children:S("import_users.cards.importstats.admin_count",a.admin)})]})]}),E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.ids.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:a.id===a.total?S("import_users.cards.ids.all_ids_present"):S("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?E.jsx("div",{children:E.jsxs(SC,{onChange:B,value:y,disabled:c!==null,children:[E.jsx(Gg,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),E.jsx(Gg,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.passwords.header")}),E.jsxs(vo,{children:[E.jsx("div",{children:a.password===a.total?S("import_users.cards.passwords.all_passwords_present"):S("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?E.jsx("div",{children:E.jsx(_C,{control:E.jsx(Lf,{checked:O,disabled:c!==null,onChange:L}),label:S("import_users.cards.passwords.use_passwords")})}):""]})]})],W=a&&!f&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.conflicts.header")}),E.jsx(vo,{children:E.jsx("div",{children:E.jsxs(SC,{onChange:F,value:b,disabled:c!==null,children:[E.jsx(Gg,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),E.jsx(Gg,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),z=r&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.error.error")}),E.jsx(vo,{children:(Array.isArray(r)?r:[r]).map(le=>E.jsx("div",{children:le}))})]}),q=!f&&E.jsxs(ud,{children:[E.jsx(bu,{title:S("import_users.cards.upload.header")}),E.jsxs(vo,{children:[S("import_users.cards.upload.explanation"),E.jsx("a",{href:"./data/example.csv",children:"example.csv"}),E.jsx("br",{}),E.jsx("br",{}),E.jsx("input",{type:"file",onChange:$,disabled:c!==null})]})]}),ee=f&&E.jsxs(vo,{children:[E.jsx(bu,{title:S("import_users.cards.results.header")}),E.jsxs("div",{children:[S("import_users.cards.results.total",f.totalRecordCount),E.jsx("br",{}),S("import_users.cards.results.successful",f.succeededRecords.length),E.jsx("br",{}),f.skippedRecords.length?[S("import_users.cards.results.skipped",f.skippedRecords.length),E.jsx("div",{children:E.jsx("button",{onClick:M,children:S("import_users.cards.results.download_skipped")})}),E.jsx("br",{})]:"",f.erroredRecords.length?[S("import_users.cards.results.skipped",f.erroredRecords.length),E.jsx("br",{})]:"",E.jsx("br",{}),f.wasDryRun&&[S("import_users.cards.results.simulated_only"),E.jsx("br",{})]]})]}),oe=!e||e.length===0||f?void 0:E.jsxs(W9,{children:[E.jsx(_C,{control:E.jsx(Lf,{checked:i,onChange:V,disabled:c!==null}),label:S("import_users.cards.startImport.simulate_only")}),E.jsx(nn,{size:"large",onClick:k,disabled:c!==null,children:S("import_users.cards.startImport.run_import")}),c!==null?E.jsxs("div",{children:[c.done," of ",c.limit," done"]}):null]}),J=[];q&&J.push(q),z&&J.push(z),W&&J.push(W),H&&J.push(...H),oe&&J.push(oe),ee&&J.push(ee);const we=E.jsx($c,{children:J});return[E.jsx(kc,{defaultTitle:S("import_users.title")}),we]},U5e=z5e,Ly={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"}}}},V5e={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"}}}};PR(Ly,V5e);const W5e={...Ly,ra:{...Ly.ra,navigation:{...Ly.ra.navigation,no_filtered_results:"Keine Ergebnisse",clear_filters:"Alle Filter entfernen"}},synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",locked:"Gesperrt",deactivated:"Deaktiviert",erased:"Gelöscht",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"},url:"URL"}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}};var H5e={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_all_button:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:" "},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?",access_denied:"Access denied",authentication_error:"Authentication error"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",access_denied:"You don't have the right permissions to access this page",are_you_sure:"Are you sure?",authentication_error:"The authentication server returned an error and your credentials could not be checked.",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update %{name} %{recordRepresentation}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} %{recordRepresentation} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this %{name}?",delete_title:"Delete %{name} %{recordRepresentation}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",select_all_limit_reached:"There are too many elements to select them all. Only the first %{max} elements were selected.",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?",yes:"Yes",placeholder_data_warning:"Network issue: Data refresh failed."},navigation:{clear_filters:"Clear filters",no_filtered_results:"No %{name} found using the current filters.",no_results:"No %{name} found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field_lower_first} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",email:"Email",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}};const q5e={...H5e,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors |||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",locked:"Locked",deactivated:"Deactivated",erased:"Erased",guests:"Show guests",show_deactivated:"Show deactivated users",show_locked:"Show locked users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var G5e={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:" "},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"Êtes-vous sûr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} #%{id}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?"},navigation:{clear_filters:"Effacer les filtres",no_filtered_results:"Aucun résultat trouvé avec les filtres actuels.",no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const K5e={...G5e,synapseadmin:{auth:{base_url:"URL du serveur d’accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l’authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d’accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",locked:"Verrouillé",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var Q5e={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 X5e=bn(Q5e),Y5e={...X5e,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",locked:"Bloccato",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}},_S={ra:{action:{add_filter:"Добавить фильтр",add:"Добавить",back:"Назад",bulk_actions:"1 выбран |||| %{smart_count} выбрано |||| %{smart_count} выбрано",cancel:"Отмена",clear_array_input:"Очистить список",clear_input_value:"Очистить",clone:"Дублировать",confirm:"Подтвердить",create:"Создать",create_item:"Создать %{item}",delete:"Удалить",edit:"Редактировать",export:"Экспорт",list:"Список",refresh:"Обновить",remove_filter:"Убрать фильтр",remove_all_filters:"Убрать все фильтры",remove:"Удалить",save:"Сохранить",search:"Поиск",select_all:"Выбрать все",select_row:"Выбрать эту запись",show:"Просмотр",sort:"Сортировка",undo:"Отменить",unselect:"Не выбрано",expand:"Раскрыть",close:"Закрыть",open_menu:"Открыть меню",close_menu:"Закрыть меню",update:"Обновить",move_up:"Переместить вверх",move_down:"Переместить вниз",open:"Открыть",toggle_theme:"Переключить тему",select_columns:"Столбцы",update_application:"Обновить приложение"},boolean:{true:"Да",false:"Нет",null:" "},page:{create:"Создать %{name}",dashboard:"Главная",edit:"%{name} %{recordRepresentation}",error:"Что-то пошло не так",list:"%{name}",loading:"Загрузка",not_found:"Не найдено",show:"%{name} %{recordRepresentation}",empty:"Нет %{name}.",invite:"Вы хотите добавить еще одну?"},input:{file:{upload_several:"Перетащите файлы сюда или нажмите для выбора.",upload_single:"Перетащите файл сюда или нажмите для выбора."},image:{upload_several:"Перетащите изображения сюда или нажмите для выбора.",upload_single:"Перетащите изображение сюда или нажмите для выбора."},references:{all_missing:"Связанных данных не найдено",many_missing:"Некоторые из связанных данных недоступны",single_missing:"Связанный объект недоступен"},password:{toggle_visible:"Скрыть пароль",toggle_hidden:"Показать пароль"}},message:{about:"Справка",are_you_sure:"Вы уверены?",auth_error:"Произошла ошибка при валидации токена аутентификации",bulk_delete_content:"Вы уверены, что хотите удалить %{name}? |||| Вы уверены, что хотите удалить %{smart_count} объектов? |||| Вы уверены, что хотите удалить %{smart_count} объектов?",bulk_delete_title:"Удалить %{name} |||| Удалить %{smart_count} %{name} |||| Удалить %{smart_count} %{name}",bulk_update_content:"Вы уверены, что хотите обновить %{name}? |||| Вы уверены, что хотите обновить %{smart_count} объектов?",bulk_update_title:"Обновить %{name} |||| Обновить %{smart_count} %{name}",clear_array_input:"Вы уверены, что хотите очистить весь список?",delete_content:"Вы уверены что хотите удалить этот объект",delete_title:"Удалить %{name} #%{id}",details:"Описание",error:"В процессе запроса возникла ошибка, и он не может быть завершен",invalid_form:"Форма заполнена неверно, проверьте, пожалуйста, ошибки",loading:"Идет загрузка, пожалуйста, подождите...",no:"Нет",not_found:"Ошибка URL или вы следуете по неверной ссылке",yes:"Да",unsaved_changes:"Некоторые из ваших изменений не были сохранены. Вы уверены, что хотите их игнорировать?"},navigation:{no_results:"Результатов не найдено",no_more_results:"Страница %{page} выходит за пределы нумерации, попробуйте предыдущую",page_out_of_boundaries:"Страница %{page} вне границ",page_out_from_end:"Невозможно переместиться дальше последней страницы",page_out_from_begin:"Номер страницы не может быть меньше 1",page_range_info:"%{offsetBegin}-%{offsetEnd} из %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} из более %{offsetEnd}",current_page:"Страница %{page}",page:"На %{page} страницу",first:"На первую страницу",last:"На последнюю страницу",next:"Следующая",prev:"Предыдущая",previous:"Предыдущая",page_rows_per_page:"Строк на странице:",skip_nav:"Перейти к содержанию"},sort:{sort_by:"Сортировать по %{field} %{order}",ASC:"возрастанию",DESC:"убыванию"},auth:{auth_check_error:"Пожалуйста, авторизуйтесь для продолжения работы",user_menu:"Профиль",username:"Имя пользователя",password:"Пароль",sign_in:"Войти",sign_in_error:"Ошибка аутентификации, попробуйте снова",logout:"Выйти"},notification:{updated:"Элемент обновлен |||| %{smart_count} обновлено |||| %{smart_count} обновлено",created:"Элемент создан",deleted:"Элемент удален |||| %{smart_count} удалено |||| %{smart_count} удалено",bad_item:"Элемент не валиден",item_doesnt_exist:"Элемент не существует",http_error:"Ошибка сервера",data_provider_error:"Ошибка dataProvider, проверьте консоль",i18n_error:"Не удалось загрузить перевод для указанного языка",canceled:"Операция отменена",logged_out:"Ваша сессия завершена, попробуйте переподключиться/войти снова",not_authorized:"У вас нет доступа к этому ресурсу",application_update_available:"Имеется новая версия приложения."},validation:{required:"Обязательно для заполнения",minLength:"Минимальное кол-во символов %{min}",maxLength:"Максимальное кол-во символов %{max}",minValue:"Минимальное значение %{min}",maxValue:"Значение может быть %{max} или меньше",number:"Должно быть цифрой",email:"Некорректный email",oneOf:"Должно быть одним из: %{options}",regex:"Должно быть в формате (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Сохраненные запросы",query_name:"Имя запроса",new_label:"Сохранить текущий запрос...",new_dialog_title:"Сохранить текущий запрос как",remove_label:"Удалить сохраненный запрос",remove_label_with_name:'Удалить запрос "%{name}"',remove_dialog_title:"Удалить сохраненный запрос?",remove_message:"Вы уверены, что хотите удалить этот запрос из списка сохраненных запросов?",help:"Отфильтровать список и сохранить запрос на будущее"},configurable:{customize:"Настроить",configureMode:"Настроить эту страницу",inspector:{title:"Инспектор",content:"Наведите на UI-элементы приложения, чтобы настроить",reset:"Сбросить настройки",hideAll:"Скрыть все",showAll:"Показать все"},Datagrid:{title:"Таблица данных",unlabeled:"Безымянный столбец #%{column}"},SimpleForm:{title:"Форма",unlabeled:"Безымянное поле ввода #%{input}"},SimpleList:{title:"Список",primaryText:"Первичный текст",secondaryText:"Вторичный текст",tertiaryText:"Третичный текст"}}}},J5e={..._S,ra:{..._S.ra,navigation:{..._S.ra.navigation,no_filtered_results:"Нет результатов",clear_filters:"Все фильтры сбросить"}},synapseadmin:{auth:{base_url:"Адрес домашнего сервера",welcome:"Добро пожаловать в Synapse-admin",server_version:"Версия Synapse",supports_specs:"поддерживает спецификации Matrix",username_error:"Пожалуйста, укажите полный ID пользователя: '@user:domain'",protocol_error:"Адрес должен начинаться с 'http://' или 'https://'",url_error:"Неверный адрес сервера Matrix",sso_sign_in:"Вход через SSO"},users:{invalid_user_id:"Локальная часть ID пользователя Matrix без адреса домашнего сервера.",tabs:{sso:"SSO"}},rooms:{details:"Данные комнаты",tabs:{basic:"Основные",members:"Участники",detail:"Подробности",permission:"Права доступа"}},reports:{tabs:{basic:"Основные",detail:"Подробности"}}},import_users:{error:{at_entry:"В записи %{entry}: %{message}",error:"Ошибка",required_field:"Отсутствует обязательное поле '%{field}'",invalid_value:"Неверное значение в строке %{row}. Поле '%{field}' может быть либо 'true', либо 'false'",unreasonably_big:"Отказано в загрузке слишком большого файла размером %{size} мегабайт",already_in_progress:"Импорт уже в процессе",id_exits:"ID %{id} уже существует"},title:"Импорт пользователей из CSV",goToPdf:"Перейти к PDF",cards:{importstats:{header:"Импорт пользователей",users_total:"%{smart_count} пользователь в CSV файле |||| %{smart_count} пользователя в CSV файле |||| %{smart_count} пользователей в CSV файле",guest_count:"%{smart_count} гость |||| %{smart_count} гостя |||| %{smart_count} гостей",admin_count:"%{smart_count} администратор |||| %{smart_count} администратора |||| %{smart_count} администраторов"},conflicts:{header:"Стратегия разрешения конфликтов",mode:{stop:"Остановка при конфликте",skip:"Показать ошибку и пропустить при конфликте"}},ids:{header:"Идентификаторы",all_ids_present:"Идентификаторы присутствуют в каждой записи",count_ids_present:"%{smart_count} запись с ID |||| %{smart_count} записи с ID |||| %{smart_count} записей с ID",mode:{ignore:"Игнорировать идентификаторы в CSV и создать новые",update:"Обновить существующие записи"}},passwords:{header:"Пароли",all_passwords_present:"Пароли присутствуют в каждой записи",count_passwords_present:"%{smart_count} запись с паролем |||| %{smart_count} записи с паролями |||| %{smart_count} записей с паролями",use_passwords:"Использовать пароли из CSV"},upload:{header:"Загрузить CSV файл",explanation:"Здесь вы можете загрузить файл со значениями, разделёнными запятыми, которые будут использованы для создания или обновления данных пользователей. В файле должны быть поля 'id' и 'displayname'. Вы можете скачать и изменить файл-образец отсюда: "},startImport:{simulate_only:"Только симулировать",run_import:"Импорт"},results:{header:"Результаты импорта",total:"%{smart_count} запись всего |||| %{smart_count} записи всего |||| %{smart_count} записей всего",successful:"%{smart_count} запись успешно импортирована |||| %{smart_count} записи успешно импортированы |||| %{smart_count} записей успешно импортированы",skipped:"%{smart_count} запись пропущена |||| %{smart_count} записи пропущены |||| %{smart_count} записей пропущено",download_skipped:"Скачать пропущенные записи",with_error:"%{smart_count} запись с ошибкой |||| %{smart_count} записи с ошибками |||| %{smart_count} записей с ошибками",simulated_only:"Импорт был симулирован"}}},delete_media:{name:"Файлы",fields:{before_ts:"Последнее обращение до",size_gt:"Более чем (в байтах)",keep_profiles:"Сохранить аватары"},action:{send:"Удалить файлы",send_success:"Запрос успешно отправлен.",send_failure:"Произошла ошибка."},helper:{send:"Это API удаляет локальные файлы с вашего собственного сервера, включая локальные миниатюры и копии скачанных файлов. Данный API не затрагивает файлы, загруженные во внешние хранилища."}},resources:{users:{name:"Пользователь |||| Пользователи",email:"Почта",msisdn:"Телефон",threepid:"Почта / Телефон",fields:{avatar:"Аватар",id:"ID пользователя",name:"Имя",is_guest:"Гость",admin:"Администратор сервера",locked:"Заблокирован",deactivated:"Деактивирован",erased:"Удалён",guests:"Показывать гостей",show_deactivated:"Показывать деактивированных",user_id:"Поиск пользователя",displayname:"Отображаемое имя",password:"Пароль",avatar_url:"Адрес аватары",avatar_src:"Аватар",medium:"Тип",threepids:"3PID'ы",address:"Адрес",creation_ts_ms:"Дата создания",consent_version:"Версия соглашения",auth_provider:"Провайдер",user_type:"Тип пользователя"},helper:{password:"Смена пароля завершит все сессии пользователя.",deactivate:"Вы должны предоставить пароль для реактивации учётной записи.",erase:"Пометить пользователя как удалённого в соответствии с GDPR"},action:{erase:"Удалить данные пользователя"}},rooms:{name:"Комната |||| Комнаты",fields:{room_id:"ID комнаты",name:"Название",canonical_alias:"Псевдоним",joined_members:"Участники",joined_local_members:"Локальные участники",joined_local_devices:"Локальные устройства",state_events:"События состояния / Сложность",version:"Версия",is_encrypted:"Зашифровано",encryption:"Шифрование",federatable:"Федерация",public:"Отображается в каталоге комнат",creator:"Создатель",join_rules:"Правила входа",guest_access:"Гостевой доступ",history_visibility:"Видимость истории",topic:"Тема",avatar:"Аватар"},helper:{forward_extremities:"Оконечности — это события-листья в конце ориентированного ациклического графа (DAG) в комнате, т.е. события без дочерних элементов. Чем больше их в комнате, тем больше Synapse работает над разрешением состояния (это дорогостоящая операция). Хотя Synapse старается не допускать существования слишком большого числа таких событий в комнате, из-за ошибок они иногда снова появляются. Если в комнате >10 оконечностей, стоит найти комнату-виновника и попробовать удалить их с помощью SQL-запросов из #1760."},enums:{join_rules:{public:"Для всех",knock:"Надо постучать",invite:"По приглашению",private:"Приватная"},guest_access:{can_join:"Гости могут войти",forbidden:"Гости не могут войти"},history_visibility:{invited:"С момента приглашения",joined:"С момента входа",shared:"С момента открытия доступа",world_readable:"Для всех"},unencrypted:"Без шифрования"},action:{erase:{title:"Удалить комнату",content:"Действительно удалить эту комнату? Это действие будет невозможно отменить. Все сообщения и файлы в комнате будут удалены с сервера!"}}},reports:{name:"Жалоба |||| Жалобы",fields:{id:"ID",received_ts:"Дата и время жалобы",user_id:"Автор жалобы",name:"Название комнаты",score:"Баллы",reason:"Причина",event_id:"ID события",event_json:{origin:"Исходнный сервер",origin_server_ts:"Дата и время отправки",type:"Тип события",content:{msgtype:"Тип содержимого",body:"Содержимое",format:"Формат",formatted_body:"Форматированное содержимое",algorithm:"Алгоритм",url:"Ссылка",info:{mimetype:"Тип"}}}},action:{erase:{title:"Удалить жалобу",content:"Действительно удалить жалобу? Это действие будет невозможно отменить."}}},connections:{name:"Подключения",fields:{last_seen:"Дата",ip:"IP адрес",user_agent:"Юзер-агент"}},devices:{name:"Устройство |||| Устройства",fields:{device_id:"ID устройства",display_name:"Название",last_seen_ts:"Дата и время",last_seen_ip:"IP адрес"},action:{erase:{title:"Удаление %{id}",content:'Действительно удалить устройство "%{name}"?',success:"Устройство успешно удалено.",failure:"Произошла ошибка."}}},users_media:{name:"Файлы",fields:{media_id:"ID файла",media_length:"Размер файла (в байтах)",media_type:"Тип",upload_name:"Имя файла",quarantined_by:"На карантине",safe_from_quarantine:"Защитить от карантина",created_ts:"Создано",last_access_ts:"Последний доступ"},action:{open:"Открыть файл в новом окне"}},protect_media:{action:{create:"Не защищён, установить защиту",delete:"Защищён, снять защиту",none:"На карантине",send_success:"Статус защиты успешно изменён.",send_failure:"Произошла ошибка."}},quarantine_media:{action:{name:"Карантин",create:"Поместить на карантин",delete:"На карантине, снять карантин",none:"Защищено от карантина",send_success:"Статус карантина успешно изменён.",send_failure:"Произошла ошибка."}},pushers:{name:"Пушер |||| Пушеры",fields:{app:"Приложение",app_display_name:"Название приложения",app_id:"ID приложения",device_display_name:"Название устройства",kind:"Вид",lang:"Язык",profile_tag:"Тег профиля",pushkey:"Ключ",data:{url:"URL"}}},servernotices:{name:"Серверные уведомления",send:"Отправить серверные уведомления",fields:{body:"Сообщение"},action:{send:"Отправить",send_success:"Серверное уведомление успешно отправлено.",send_failure:"Произошла ошибка."},helper:{send:'Отправить серверное уведомление выбранным пользователям. На сервере должна быть активна функция "Server Notices".'}},user_media_statistics:{name:"Файлы пользователей",fields:{media_count:"Количество файлов",media_length:"Размер файлов"}},forward_extremities:{name:"Оконечности",fields:{id:"ID события",received_ts:"Дата и время",depth:"Глубина",state_group:"Группа состояния"}},room_state:{name:"События состояния",fields:{type:"Тип",content:"Содержимое",origin_server_ts:"Дата отправки",sender:"Отправитель"}},room_directory:{name:"Каталог комнат",fields:{world_readable:"Гости могут просматривать без входа",guest_can_join:"Гости могут войти"},action:{title:"Удалить комнату из каталога |||| Удалить %{smart_count} комнаты из каталога |||| Удалить %{smart_count} комнат из каталога",content:"Действительно удалить комнату из каталога? |||| Действительно удалить %{smart_count} комнаты из каталога? |||| Действительно удалить %{smart_count} комнат из каталога?",erase:"Удалить из каталога комнат",create:"Опубликовать в каталоге комнат",send_success:"Комната успешно опубликована.",send_failure:"Произошла ошибка."}},destinations:{name:"Федерация",fields:{destination:"Назначение",failure_ts:"Дата и время ошибки",retry_last_ts:"Дата и время последней попытки",retry_interval:"Интервал между попытками",last_successful_stream_ordering:"Последний успешный поток",stream_ordering:"Поток"},action:{reconnect:"Переподключиться"}},registration_tokens:{name:"Токены регистрации",fields:{token:"Токен",valid:"Рабочий токен",uses_allowed:"Количество использований",pending:"Ожидает",completed:"Завершено",expiry_time:"Дата окончания",length:"Длина"},helper:{length:"Длина токена, если токен не задан."}}}};var kV={};Object.defineProperty(kV,"__esModule",{value:!0});var Z5e={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}"}}},xS=kV.default=Z5e;const eBe={...xS,ra:{...xS.ra,navigation:{...xS.ra.navigation,no_filtered_results:"没有结果",clear_filters:"清除所有过滤器"}},synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}},jV=d.createContext({}),tBe=()=>d.useContext(jV),rBe=te(aa)(({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"}})),nBe=()=>{const e=g6(),t=gr(),{restrictBaseUrl:r}=tBe(),n=typeof r=="string",a=Array.isArray(r),o=!(n||a),[i,l]=d.useState(!1),[c,s]=d.useState(!0),[f,h]=$R(),v=kR(),m=Be(),b=n?r:Ut.getItem("base_url"),[w,O]=d.useState(""),_=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(_){const C=_[1];console.log("SSO token is",C),window.history.replaceState({},"",window.location.href.replace(_[0],"#").split("#")[0]);const $=Ut.getItem("sso_base_url");if(Ut.removeItem("sso_base_url"),$){const R={base_url:$,username:null,password:null,loginToken:C};console.log("Base URL is:",$),console.log("SSO Token is:",C),console.log("Let's try token login..."),e(R).catch(k=>{alert(typeof k=="string"?k:typeof k>"u"||!k.message?"ra.auth.sign_in_error":k.message),console.error(k)})}}const y=C=>C.match(/^(http|https):\/\//)?C.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:m("synapseadmin.auth.url_error"):m("synapseadmin.auth.protocol_error"),x=C=>{l(!0),e(C).catch($=>{l(!1),t(typeof $=="string"?$:typeof $>"u"||!$.message?"ra.auth.sign_in_error":$.message,{type:"warning"})})},S=()=>{Ut.setItem("sso_base_url",w);const C=`${w}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=C},P=({formData:C})=>{const $=Mo(),[R,k]=d.useState(""),[T,M]=d.useState(""),F=()=>{var B;if(C.base_url||n)return;const L=(B=T5e(C.username))==null?void 0:B.domain;L&&A5e(L).then(V=>{(o||a&&r.includes(V))&&$.setValue("base_url",V)})};return d.useEffect(()=>{C.base_url===""&&a&&$.setValue("base_url",r[0]),I5e(C.base_url)&&(M5e(C.base_url).then(L=>k(`${m("synapseadmin.auth.server_version")} ${L}`)).catch(()=>k("")),F5e(C.base_url).then(L=>M(`${m("synapseadmin.auth.supports_specs")} ${L.versions.join(", ")}`)).catch(()=>M("")),L5e(C.base_url).then(L=>{const B=L.find(H=>H.type==="m.login.password")!==void 0,V=L.find(H=>H.type==="m.login.sso")!==void 0;s(B),O(V?C.base_url:"")}).catch(()=>O("")))},[C.base_url,$]),E.jsxs(E.Fragment,{children:[E.jsx(aa,{children:E.jsx(fn,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!c,onBlur:F,resettable:!0,validate:Va()})}),E.jsx(aa,{children:E.jsx(J$,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!c,resettable:!0,validate:Va()})}),E.jsx(aa,{children:E.jsx(fn,{source:"base_url",label:"synapseadmin.auth.base_url",select:a,autoComplete:"url",disabled:i,readOnly:n,resettable:o,validate:[Va(),y],children:a&&r.map(L=>E.jsx(za,{value:L,children:L},L))})}),E.jsx($t,{className:"serverVersion",children:R}),E.jsx($t,{className:"matrixVersions",children:T})]})};return E.jsxs(y_,{defaultValues:{base_url:b},onSubmit:x,mode:"onTouched",children:[E.jsx(rBe,{children:E.jsxs($c,{className:"card",children:[E.jsx(aa,{className:"avatar",children:i?E.jsx(lp,{size:25,thickness:2}):E.jsx(bv,{className:"icon",children:E.jsx(cm,{})})}),E.jsx(aa,{className:"hint",children:m("synapseadmin.auth.welcome")}),E.jsxs(aa,{className:"form",children:[E.jsx(b1,{value:f,onChange:C=>h(C.target.value),fullWidth:!0,disabled:i,className:"select",children:v.map(C=>E.jsx(za,{value:C.locale,children:C.name},C.locale))}),E.jsx(XE,{children:C=>E.jsx(P,{...C})}),E.jsxs(W9,{className:"actions",children:[E.jsx(nn,{variant:"contained",type:"submit",color:"primary",disabled:i||!c,fullWidth:!0,children:m("ra.auth.sign_in")}),E.jsx(nn,{variant:"contained",color:"secondary",onClick:S,disabled:i||w==="",fullWidth:!0,children:m("synapseadmin.auth.sso_sign_in")})]})]})]})}),E.jsx(e8,{})]})};var ak={},aBe=He;Object.defineProperty(ak,"__esModule",{value:!0});var TV=ak.default=void 0,oBe=aBe(Ke()),iBe=E;TV=ak.default=(0,oBe.default)((0,iBe.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 ok={},sBe=He;Object.defineProperty(ok,"__esModule",{value:!0});var IV=ok.default=void 0,lBe=sBe(Ke()),uBe=E;IV=ok.default=(0,lBe.default)((0,uBe.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");var ik={},cBe=He;Object.defineProperty(ik,"__esModule",{value:!0});var Mc=ik.default=void 0,dBe=cBe(Ke()),fBe=E;Mc=ik.default=(0,dBe.default)((0,fBe.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 Vn={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},sk=e=>new Date(e).getTime(),pBe=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),a=(r+(t.getMonth()+1).toString()).slice(-2),o=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),l=(r+t.getMinutes().toString()).slice(-2);return`${n}-${a}-${o}T${i}:${l}`},AV=()=>E.jsx(Tc,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),hBe=[E.jsx(R1,{source:"destination",alwaysOn:!0})],MV=()=>{const e=Kt(),t=Ni(),r=gr(),[n,{isLoading:a}]=Hv();if(!e||!e.failure_ts)return null;const o=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 E.jsx(cr,{label:"resources.destinations.action.reconnect",onClick:o,disabled:a,children:E.jsx(TV,{})})},vBe=()=>E.jsx(Do,{children:E.jsx(MV,{})}),mBe=()=>{const e=Kt(),t=Be();return E.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},gBe=e=>{const t=Kt(e);return e.source&&Lv.get(t,e.source)===0?E.jsx(Pn,{...e,record:{...t,[e.source]:null}}):E.jsx(Pn,{...e})},yBe=e=>{const{palette:{error:t,mode:r}}=Ja(),n=a=>({backgroundColor:a.retry_last_ts>0?o9(t[r],.5):void 0,"& > td":r==="dark"?{color:a.retry_last_ts>0?"black":"white","& > button":{color:Eu[700]}}:void 0});return E.jsx(Ac,{...e,filters:hBe,pagination:E.jsx(AV,{}),sort:{field:"destination",order:"ASC"},children:E.jsxs(Un,{rowSx:n,rowClick:a=>`${a}/show/rooms`,bulkActionButtons:!1,children:[E.jsx(ze,{source:"destination"}),E.jsx(Pn,{source:"failure_ts",showTime:!0,options:Vn}),E.jsx(gBe,{source:"retry_last_ts",showTime:!0,options:Vn}),E.jsx(ze,{source:"retry_interval"}),E.jsx(ze,{source:"last_successful_stream_ordering"}),E.jsx(MV,{})]})})},bBe=e=>{const t=Be();return E.jsx(Z$,{actions:E.jsx(vBe,{}),title:E.jsx(mBe,{}),...e,children:E.jsxs($1,{children:[E.jsxs(Jo,{label:"status",icon:E.jsx(jc,{}),children:[E.jsx(ze,{source:"destination"}),E.jsx(Pn,{source:"failure_ts",showTime:!0,options:Vn}),E.jsx(Pn,{source:"retry_last_ts",showTime:!0,options:Vn}),E.jsx(ze,{source:"retry_interval"}),E.jsx(ze,{source:"last_successful_stream_ordering"})]}),E.jsx(Jo,{label:t("resources.rooms.name",{smart_count:2}),icon:E.jsx(Mc,{}),path:"rooms",children:E.jsx(El,{reference:"destination_rooms",target:"destination",label:!1,pagination:E.jsx(AV,{}),perPage:50,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[E.jsx(ze,{source:"room_id",label:"resources.rooms.fields.room_id"}),E.jsx(ze,{source:"stream_ordering",sortable:!1}),E.jsx(hs,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:E.jsx(ze,{source:"name",sortable:!1})})]})})})]})})},_Be={name:"destinations",icon:IV,list:yBe,show:bBe};var lk={},xBe=He;Object.defineProperty(lk,"__esModule",{value:!0});var FV=lk.default=void 0,wBe=xBe(Ke()),SBe=E;FV=lk.default=(0,wBe.default)((0,SBe.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 EBe=[qR(/^[A-Za-z0-9._~-]{0,64}$/)],LV=[Az()],CBe=[Az(),Xbe(64)],OBe=[E.jsx(Oi,{source:"valid",alwaysOn:!0})],PBe=e=>E.jsx(Ac,{...e,filters:OBe,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:E.jsxs(Un,{rowClick:"edit",children:[E.jsx(ze,{source:"token",sortable:!1}),E.jsx(ji,{source:"uses_allowed",sortable:!1}),E.jsx(ji,{source:"pending",sortable:!1}),E.jsx(ji,{source:"completed",sortable:!1}),E.jsx(Pn,{source:"expiry_time",showTime:!0,options:Vn,sortable:!1})]})}),RBe=e=>E.jsx(W8,{...e,redirect:"list",children:E.jsxs(mm,{toolbar:E.jsx(vm,{children:E.jsx(E1,{alwaysEnable:!0})}),children:[E.jsx(fn,{source:"token",autoComplete:"off",validate:EBe,resettable:!0}),E.jsx(Qd,{source:"length",validate:CBe,helperText:"resources.registration_tokens.helper.length",step:1}),E.jsx(Qd,{source:"uses_allowed",validate:LV,step:1}),E.jsx(K$,{source:"expiry_time",parse:sk})]})}),$Be=e=>E.jsx(H8,{...e,children:E.jsxs(mm,{children:[E.jsx(fn,{source:"token",disabled:!0}),E.jsx(Qd,{source:"pending",disabled:!0}),E.jsx(Qd,{source:"completed",disabled:!0}),E.jsx(Qd,{source:"uses_allowed",validate:LV,step:1}),E.jsx(K$,{source:"expiry_time",parse:sk,format:pBe})]})}),kBe={name:"registration_tokens",icon:FV,list:PBe,edit:$Be,create:RBe};var uk={},jBe=He;Object.defineProperty(uk,"__esModule",{value:!0});var ck=uk.default=void 0,TBe=jBe(Ke()),IBe=E;ck=uk.default=(0,TBe.default)((0,IBe.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview");var dk={},ABe=He;Object.defineProperty(dk,"__esModule",{value:!0});var DV=dk.default=void 0,MBe=ABe(Ke()),FBe=E;DV=dk.default=(0,MBe.default)((0,FBe.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var fk={},LBe=He;Object.defineProperty(fk,"__esModule",{value:!0});var KO=fk.default=void 0,DBe=LBe(Ke()),NBe=E;KO=fk.default=(0,DBe.default)((0,NBe.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 pk={},BBe=He;Object.defineProperty(pk,"__esModule",{value:!0});var hk=pk.default=void 0,zBe=BBe(Ke()),UBe=E;hk=pk.default=(0,zBe.default)((0,UBe.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 vk={},VBe=He;Object.defineProperty(vk,"__esModule",{value:!0});var mk=vk.default=void 0,WBe=VBe(Ke()),HBe=E;mk=vk.default=(0,WBe.default)((0,HBe.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 gk={},qBe=He;Object.defineProperty(gk,"__esModule",{value:!0});var NV=gk.default=void 0,GBe=qBe(Ke()),KBe=E;NV=gk.default=(0,GBe.default)((0,KBe.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 yk={},QBe=He;Object.defineProperty(yk,"__esModule",{value:!0});var BV=yk.default=void 0,XBe=QBe(Ke()),YBe=E;BV=yk.default=(0,XBe.default)((0,YBe.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 JBe=({open:e,onClose:t,onSubmit:r})=>{const n=Be(),a=o=>E.jsxs(vm,{...o,children:[E.jsx(E1,{label:"delete_media.action.send",icon:E.jsx(mk,{})}),E.jsx(cr,{label:"ra.action.cancel",onClick:t,children:E.jsx(hk,{})})]});return E.jsxs(im,{open:e,onClose:t,children:[E.jsx(lm,{children:n("delete_media.action.send")}),E.jsxs(sm,{children:[E.jsx(m1,{children:n("delete_media.helper.send")}),E.jsxs(mm,{toolbar:E.jsx(a,{}),onSubmit:r,children:[E.jsx(K$,{source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:sk}),E.jsx(Qd,{source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),E.jsx(Oi,{source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},ZBe=e=>{const t=Ja(),[r,n]=d.useState(!1),a=gr(),o=Xa(),{mutate:i,isPending:l}=Cc({mutationFn:f=>o.deleteMedia(f),onSuccess:()=>{a("delete_media.action.send_success"),s()},onError:()=>{a("delete_media.action.send_failure",{type:"error"})}}),c=()=>n(!0),s=()=>n(!1);return E.jsxs(E.Fragment,{children:[E.jsx(cr,{...e,label:"delete_media.action.send",onClick:c,disabled:l,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:$f(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:E.jsx(mk,{})}),E.jsx(JBe,{open:r,onClose:s,onSubmit:i})]})},eze=e=>{const t=Kt(),r=Be(),n=Ni(),a=gr(),[o,{isLoading:i}]=Wv(),[l]=Hv();if(!t)return null;const c=()=>{o("protect_media",{data:t},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})},s=()=>{l("protect_media",{id:t.id},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[t.quarantined_by&&E.jsx(kn,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:E.jsx("div",{children:E.jsx(cr,{...e,disabled:!0,children:E.jsx(wc,{})})})}),t.safe_from_quarantine&&E.jsx(kn,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:s,disabled:i,children:E.jsx(cm,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&E.jsx(kn,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:c,disabled:i,children:E.jsx(BV,{})})})})]})},tze=e=>{const t=Kt(),r=Be(),n=Ni(),a=gr(),[o,{isLoading:i}]=Wv(),[l]=Hv();if(!t)return null;const c=()=>{o("quarantine_media",{data:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})},s=()=>{l("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[t.safe_from_quarantine&&E.jsx(kn,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:E.jsx("div",{children:E.jsx(cr,{...e,disabled:!0,children:E.jsx(wc,{})})})}),t.quarantined_by&&E.jsx(kn,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:s,disabled:i,children:E.jsx(KO,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&E.jsx(kn,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:E.jsx("div",{children:E.jsx(cr,{...e,onClick:c,disabled:i,children:E.jsx(KO,{})})})})]})},zV=({media_id:e,label:t})=>{const r=Be(),n=D5e(e);return E.jsxs(aa,{style:{whiteSpace:"pre"},children:[E.jsx(kn,{title:r("resources.users_media.action.open"),children:E.jsx("span",{children:E.jsx(cr,{component:OV,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:E.jsx(NV,{})})})}),t]})},rze=({source:e})=>{var a;const t=Ut.getItem("home_server"),r=Kt();if(!r)return null;const n=(a=Lv.get(r,e))==null?void 0:a.toString();return n?E.jsx(zV,{media_id:`${t}/${n}`,label:n}):null},nze=({source:e})=>{var a;const t=Kt();if(!t)return null;const r=(a=Lv.get(t,e))==null?void 0:a.toString();if(!r)return null;const n=r.replace("mxc://","");return E.jsx(zV,{media_id:n,label:r})},aze=()=>E.jsx(Tc,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),oze=e=>{const t=Be();return E.jsx(Z$,{...e,actions:E.jsx(ize,{}),children:E.jsxs($1,{children:[E.jsxs(Jo,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:E.jsx(jc,{}),children:[E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(hs,{source:"user_id",reference:"users",children:E.jsx(ze,{source:"id"})}),E.jsx(ji,{source:"score"}),E.jsx(ze,{source:"reason"}),E.jsx(ze,{source:"name"}),E.jsx(ze,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),E.jsx(hs,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:E.jsx(ze,{source:"id"})})]}),E.jsxs(Jo,{label:"synapseadmin.reports.tabs.detail",icon:E.jsx(ck,{}),path:"detail",children:[E.jsx(Pn,{source:"event_json.origin_server_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(hs,{source:"sender",reference:"users",children:E.jsx(ze,{source:"id"})}),E.jsx(ze,{source:"sender",label:"Sender (raw user ID)"}),E.jsx(ze,{source:"event_id"}),E.jsx(ze,{source:"event_json.origin"}),E.jsx(ze,{source:"event_json.type"}),E.jsx(ze,{source:"event_json.content.msgtype"}),E.jsx(ze,{source:"event_json.content.body"}),E.jsx(ze,{source:"event_json.content.info.mimetype"}),E.jsx(nze,{source:"event_json.content.url"}),E.jsx(ze,{source:"event_json.content.format"}),E.jsx(ze,{source:"event_json.content.formatted_body"}),E.jsx(ze,{source:"event_json.content.algorithm"}),E.jsx(ze,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},ize=()=>{const e=Kt();return E.jsx(Do,{children:E.jsx(fp,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},sze=e=>E.jsx(Ac,{...e,pagination:E.jsx(aze,{}),sort:{field:"received_ts",order:"DESC"},children:E.jsxs(Un,{rowClick:"show",bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1}),E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!0}),E.jsx(ze,{sortable:!1,source:"user_id"}),E.jsx(ze,{sortable:!1,source:"name"}),E.jsx(ze,{sortable:!1,source:"score"})]})}),lze={name:"reports",icon:DV,list:sze,show:oze},bk=({source:e,...t})=>{var s;const r=Kt(t),n=(s=Lv.get(r,e))==null?void 0:s.toString(),{alt:a,classes:o,sizes:i,sx:l,variant:c}=t;return E.jsx(bv,{alt:a,classes:o,sizes:i,src:n,sx:l,variant:c})},uze=()=>E.jsx(Tc,{rowsPerPageOptions:[100,500,1e3,2e3]}),cze=e=>{const t=Be();return E.jsx(fp,{...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:E.jsx(Mc,{})})},UV=e=>E.jsx(S1,{...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:E.jsx(Mc,{})}),dze=e=>{const{selectedIds:t}=Hn(),r=gr(),n=Ni(),a=uz("rooms"),o=Xa(),{mutate:i,isPending:l}=Cc({mutationFn:()=>o.createMany("room_directory",{ids:t,data:{}}),onSuccess:()=>{r("resources.room_directory.action.send_success"),a(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return E.jsx(cr,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:l,children:E.jsx(Mc,{})})},fze=e=>{const t=Kt(),r=gr(),n=Ni(),[a,{isLoading:o}]=Wv();if(!t)return;const i=()=>{a("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return E.jsx(cr,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:o,children:E.jsx(Mc,{})})},pze=()=>E.jsxs(Do,{children:[E.jsx(R8,{}),E.jsx(hm,{})]}),hze=()=>E.jsx(Ac,{pagination:E.jsx(uze,{}),perPage:100,actions:E.jsx(pze,{}),children:E.jsxs(P8,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:E.jsx(UV,{}),omit:["room_id","canonical_alias","topic"],children:[E.jsx(bk,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),E.jsx(ze,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),E.jsx(ze,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),E.jsx(ze,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),E.jsx(ze,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),E.jsx(ji,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),E.jsx(xo,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),E.jsx(xo,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),vze={name:"room_directory",icon:Mc,list:hze};var _k={},mze=He;Object.defineProperty(_k,"__esModule",{value:!0});var VV=_k.default=void 0,gze=mze(Ke()),yze=E;VV=_k.default=(0,gze.default)((0,yze.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 xk={},bze=He;Object.defineProperty(xk,"__esModule",{value:!0});var WV=xk.default=void 0,_ze=bze(Ke()),xze=E;WV=xk.default=(0,_ze.default)((0,xze.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward");var wk={},wze=He;Object.defineProperty(wk,"__esModule",{value:!0});var Sk=wk.default=void 0,Sze=wze(Ke()),Eze=E;Sk=wk.default=(0,Sze.default)((0,Eze.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 Ek={},Cze=He;Object.defineProperty(Ek,"__esModule",{value:!0});var QO=Ek.default=void 0,Oze=Cze(Ke()),Pze=E;QO=Ek.default=(0,Oze.default)((0,Pze.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 Ck={},Rze=He;Object.defineProperty(Ck,"__esModule",{value:!0});var HV=Ck.default=void 0,$ze=Rze(Ke()),kze=E;HV=Ck.default=(0,$ze.default)((0,kze.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 jze=()=>E.jsx(Tc,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Tze=()=>{const e=Kt(),t=Be();let r="";return e&&(r=e.name!==""?e.name:e.id),E.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},Ize=()=>{const e=Kt(),t=e!=null&&e.public?E.jsx(cze,{}):E.jsx(fze,{});return E.jsxs(Do,{children:[t,E.jsx(fp,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},Aze=e=>{const t=Be();return E.jsx(Z$,{...e,actions:E.jsx(Ize,{}),title:E.jsx(Tze,{}),children:E.jsxs($1,{children:[E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.basic",icon:E.jsx(jc,{}),children:[E.jsx(ze,{source:"room_id"}),E.jsx(ze,{source:"name"}),E.jsx(ze,{source:"topic"}),E.jsx(ze,{source:"canonical_alias"}),E.jsx(hs,{source:"creator",reference:"users",children:E.jsx(ze,{source:"id"})})]}),E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.detail",icon:E.jsx(ck,{}),path:"detail",children:[E.jsx(ze,{source:"joined_members"}),E.jsx(ze,{source:"joined_local_members"}),E.jsx(ze,{source:"joined_local_devices"}),E.jsx(ze,{source:"state_events"}),E.jsx(ze,{source:"version"}),E.jsx(ze,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),E.jsx(Jo,{label:"synapseadmin.rooms.tabs.members",icon:E.jsx(Sk,{}),path:"members",children:E.jsx(El,{reference:"room_members",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1,label:"resources.users.fields.id"}),E.jsx(hs,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:E.jsx(ze,{source:"displayname",sortable:!1})})]})})}),E.jsxs(Jo,{label:"synapseadmin.rooms.tabs.permission",icon:E.jsx(X$,{}),path:"permission",children:[E.jsx(xo,{source:"federatable"}),E.jsx(xo,{source:"public"}),E.jsx(gS,{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"}]}),E.jsx(gS,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),E.jsx(gS,{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"}]})]}),E.jsx(Jo,{label:t("resources.room_state.name",{smart_count:2}),icon:E.jsx(VV,{}),path:"state",children:E.jsx(El,{reference:"room_state",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"type",sortable:!1}),E.jsx(Pn,{source:"origin_server_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(ze,{source:"content",sortable:!1}),E.jsx(hs,{source:"sender",reference:"users",sortable:!1,children:E.jsx(ze,{source:"id"})})]})})}),E.jsxs(Jo,{label:"resources.forward_extremities.name",icon:E.jsx(WV,{}),path:"forward_extremities",children:[E.jsx(aa,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),E.jsx(El,{reference:"forward_extremities",target:"room_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1}),E.jsx(Pn,{source:"received_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(ji,{source:"depth",sortable:!1}),E.jsx(ze,{source:"state_group",sortable:!1})]})})]})]})})},Mze=()=>E.jsxs(E.Fragment,{children:[E.jsx(dze,{}),E.jsx(UV,{}),E.jsx(S1,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),Fze=[E.jsx(R1,{source:"search_term",alwaysOn:!0})],Lze=()=>E.jsxs(Do,{children:[E.jsx(R8,{}),E.jsx(hm,{})]}),Dze=e=>{const t=Ja();return E.jsx(Ac,{...e,pagination:E.jsx(jze,{}),sort:{field:"name",order:"ASC"},filters:Fze,actions:E.jsx(Lze,{}),children:E.jsxs(P8,{rowClick:"show",bulkActionButtons:E.jsx(Mze,{}),omit:["joined_local_members","state_events","version","federatable"],children:[E.jsx(xo,{source:"is_encrypted",sortBy:"encryption",TrueIcon:QO,FalseIcon:HV,label:E.jsx(QO,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),E.jsx(c4e,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),E.jsx(ze,{source:"joined_members"}),E.jsx(ze,{source:"joined_local_members"}),E.jsx(ze,{source:"state_events"}),E.jsx(ze,{source:"version"}),E.jsx(xo,{source:"federatable"}),E.jsx(xo,{source:"public"})]})})},Nze={name:"rooms",icon:jc,list:Dze,show:Aze};var Ok={},Bze=He;Object.defineProperty(Ok,"__esModule",{value:!0});var qV=Ok.default=void 0,zze=Bze(Ke()),Uze=E;qV=Ok.default=(0,zze.default)((0,Uze.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer");const Vze=()=>{const{isLoading:e,total:t}=Hn();return E.jsxs(Do,{children:[E.jsx(ZBe,{}),E.jsx(hm,{disabled:e||t===0})]})},Wze=()=>E.jsx(Tc,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Hze=[E.jsx(R1,{source:"search_term",alwaysOn:!0})],qze=e=>E.jsx(Ac,{...e,actions:E.jsx(Vze,{}),filters:Hze,pagination:E.jsx(Wze,{}),sort:{field:"media_length",order:"DESC"},children:E.jsxs(Un,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[E.jsx(ze,{source:"user_id",label:"resources.users.fields.id"}),E.jsx(ze,{source:"displayname",label:"resources.users.fields.displayname"}),E.jsx(ji,{source:"media_count"}),E.jsx(ji,{source:"media_length"})]})}),Gze={name:"user_media_statistics",icon:qV,list:qze};var Pk={},Kze=He;Object.defineProperty(Pk,"__esModule",{value:!0});var GV=Pk.default=void 0,Qze=Kze(Ke()),Xze=E;GV=Pk.default=(0,Qze.default)((0,Xze.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 Rk={},Yze=He;Object.defineProperty(Rk,"__esModule",{value:!0});var KV=Rk.default=void 0,Jze=Yze(Ke()),Zze=E;KV=Rk.default=(0,Jze.default)((0,Zze.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 $k={},e6e=He;Object.defineProperty($k,"__esModule",{value:!0});var QV=$k.default=void 0,t6e=e6e(Ke()),r6e=E;QV=$k.default=(0,t6e.default)((0,r6e.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 kk={},n6e=He;Object.defineProperty(kk,"__esModule",{value:!0});var XV=kk.default=void 0,a6e=n6e(Ke()),o6e=E;XV=kk.default=(0,a6e.default)((0,o6e.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 jk={},i6e=He;Object.defineProperty(jk,"__esModule",{value:!0});var YV=jk.default=void 0,s6e=i6e(Ke()),l6e=E;YV=jk.default=(0,s6e.default)((0,l6e.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 Tk={},u6e=He;Object.defineProperty(Tk,"__esModule",{value:!0});var JV=Tk.default=void 0,c6e=u6e(Ke()),d6e=E;JV=Tk.default=(0,c6e.default)((0,d6e.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 Ik={},f6e=He;Object.defineProperty(Ik,"__esModule",{value:!0});var ZV=Ik.default=void 0,p6e=f6e(Ke()),h6e=E;ZV=Ik.default=(0,p6e.default)((0,h6e.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 Ak={},v6e=He;Object.defineProperty(Ak,"__esModule",{value:!0});var Mk=Ak.default=void 0,m6e=v6e(Ke()),g6e=E;Mk=Ak.default=(0,m6e.default)((0,g6e.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 eW=({open:e,onClose:t,onSubmit:r})=>{const n=Be(),a=o=>E.jsxs(vm,{...o,children:[E.jsx(E1,{label:"resources.servernotices.action.send",disabled:o.pristine}),E.jsx(cr,{label:"ra.action.cancel",onClick:t,children:E.jsx(hk,{})})]});return E.jsxs(im,{open:e,onClose:t,children:[E.jsx(lm,{children:n("resources.servernotices.action.send")}),E.jsxs(sm,{children:[E.jsx(m1,{children:n("resources.servernotices.helper.send")}),E.jsx(mm,{toolbar:E.jsx(a,{}),onSubmit:r,children:E.jsx(fn,{source:"body",label:"resources.servernotices.fields.body",multiline:!0,rows:"4",resettable:!0,validate:Va()})})]})]})},y6e=()=>{const e=Kt(),[t,r]=d.useState(!1),n=gr(),[a,{isLoading:o}]=Wv(),i=()=>r(!0),l=()=>r(!1);if(!e)return;const c=s=>{a("servernotices",{data:{id:e.id,...s}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),l()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return E.jsxs(E.Fragment,{children:[E.jsx(cr,{label:"resources.servernotices.send",onClick:i,disabled:o,children:E.jsx(Mk,{})}),E.jsx(eW,{open:t,onClose:l,onSubmit:c})]})},b6e=()=>{const{selectedIds:e}=Hn(),[t,r]=d.useState(!1),n=()=>r(!0),a=()=>r(!1),o=gr(),i=uz("users"),l=Xa(),{mutate:c,isPending:s}=Cc({mutationFn:f=>l.createMany("servernotices",{ids:e,data:f}),onSuccess:()=>{o("resources.servernotices.action.send_success"),i(),a()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})});return E.jsxs(E.Fragment,{children:[E.jsx(cr,{label:"resources.servernotices.send",onClick:n,disabled:s,children:E.jsx(Mk,{})}),E.jsx(eW,{open:t,onClose:a,onSubmit:c})]})},_6e=e=>{const t=Kt();return t?E.jsx(t8,{...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},tW=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],rW=[{id:"bot",name:"bot"},{id:"support",name:"support"}],nW=()=>{const{isLoading:e,total:t}=Hn();return E.jsxs(Do,{children:[E.jsx(G2,{}),E.jsx(hm,{disabled:e||t===0,maxResults:1e4}),E.jsx(cr,{component:OV,to:"/import_users",label:"CSV Import",children:E.jsx(_$,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};nW.defaultProps={selectedIds:[],onUnselectItems:()=>null};const aW=()=>E.jsx(Tc,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),x6e=[E.jsx(R1,{source:"name",alwaysOn:!0}),E.jsx(Oi,{source:"guests",alwaysOn:!0}),E.jsx(Oi,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0}),E.jsx(Oi,{label:"resources.users.fields.show_locked",source:"locked",alwaysOn:!0})],w6e=()=>E.jsxs(E.Fragment,{children:[E.jsx(b6e,{}),E.jsx(S1,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),S6e=e=>E.jsx(Ac,{...e,filters:x6e,filterDefaultValues:{guests:!0,deactivated:!1,locked:!1},sort:{field:"name",order:"ASC"},actions:E.jsx(nW,{}),pagination:E.jsx(aW,{}),children:E.jsxs(Un,{rowClick:(t,r)=>`/${r}/${t}`,bulkActionButtons:E.jsx(w6e,{}),children:[E.jsx(bk,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),E.jsx(ze,{source:"id",sortBy:"name"}),E.jsx(ze,{source:"displayname"}),E.jsx(xo,{source:"is_guest"}),E.jsx(xo,{source:"admin"}),E.jsx(xo,{source:"deactivated"}),E.jsx(xo,{source:"locked"}),E.jsx(xo,{source:"erased",sortable:!1}),E.jsx(Pn,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:Vn})]})}),E6e=[Va(),Tb(253),qR(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],C6e=[Va(),Tb(255)],O6e=()=>{const e=Kt(),t=Be();return E.jsxs(Do,{children:[!(e!=null&&e.deactivated)&&E.jsx(y6e,{}),E.jsx(fp,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},P6e=e=>E.jsx(W8,{...e,redirect:(t,r)=>`${t}/${r}`,children:E.jsxs(mm,{children:[E.jsx(fn,{source:"id",autoComplete:"off",validate:E6e}),E.jsx(fn,{source:"displayname",validate:Tb(256)}),E.jsx(J$,{source:"password",autoComplete:"new-password",validate:Tb(512)}),E.jsx(x0,{source:"user_type",choices:rW,translateChoice:!1,resettable:!0}),E.jsx(Oi,{source:"admin"}),E.jsx(l0,{source:"threepids",children:E.jsxs(c0,{disableReordering:!0,children:[E.jsx(x0,{source:"medium",choices:tW,validate:Va()}),E.jsx(fn,{source:"address",validate:C6e})]})}),E.jsx(l0,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:E.jsxs(c0,{disableReordering:!0,children:[E.jsx(fn,{source:"auth_provider",validate:Va()}),E.jsx(fn,{source:"external_id",label:"resources.users.fields.id",validate:Va()})]})})]})}),R6e=()=>{const e=Kt(),t=Be();return E.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},$6e=e=>{const t=Be();return E.jsx(H8,{...e,title:E.jsx(R6e,{}),actions:E.jsx(O6e,{}),children:E.jsxs(Y8,{children:[E.jsxs(vi,{label:t("resources.users.name",{smart_count:1}),icon:E.jsx(JV,{}),children:[E.jsx(bk,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),E.jsx(fn,{source:"id",disabled:!0}),E.jsx(fn,{source:"displayname"}),E.jsx(J$,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),E.jsx(x0,{source:"user_type",choices:rW,translateChoice:!1,resettable:!0}),E.jsx(Oi,{source:"admin"}),E.jsx(Oi,{source:"locked"}),E.jsx(Oi,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),E.jsx(Oi,{source:"erased",disabled:!0}),E.jsx(Pn,{source:"creation_ts_ms",showTime:!0,options:Vn}),E.jsx(ze,{source:"consent_version"})]}),E.jsx(vi,{label:"resources.users.threepid",icon:E.jsx(KV,{}),path:"threepid",children:E.jsx(l0,{source:"threepids",children:E.jsxs(c0,{disableReordering:!0,children:[E.jsx(x0,{source:"medium",choices:tW}),E.jsx(fn,{source:"address"})]})})}),E.jsx(vi,{label:"synapseadmin.users.tabs.sso",icon:E.jsx(GV,{}),path:"sso",children:E.jsx(l0,{source:"external_ids",label:!1,children:E.jsxs(c0,{disableReordering:!0,children:[E.jsx(fn,{source:"auth_provider",validate:Va()}),E.jsx(fn,{source:"external_id",label:"resources.users.fields.id",validate:Va()})]})})}),E.jsx(vi,{label:t("resources.devices.name",{smart_count:2}),icon:E.jsx(QV,{}),path:"devices",children:E.jsx(El,{reference:"devices",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},children:[E.jsx(ze,{source:"device_id",sortable:!1}),E.jsx(ze,{source:"display_name",sortable:!1}),E.jsx(ze,{source:"last_seen_ip",sortable:!1}),E.jsx(Pn,{source:"last_seen_ts",showTime:!0,options:Vn,sortable:!1}),E.jsx(_6e,{})]})})}),E.jsx(vi,{label:"resources.connections.name",icon:E.jsx(ZV,{}),path:"connections",children:E.jsx(hs,{reference:"connections",source:"id",label:!1,link:!1,children:E.jsx(Z3e,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"ip",sortable:!1}),E.jsx(Pn,{source:"last_seen",showTime:!0,options:Vn,sortable:!1}),E.jsx(ze,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),E.jsx(vi,{label:t("resources.users_media.name",{smart_count:2}),icon:E.jsx(YV,{}),path:"media",children:E.jsx(El,{reference:"users_media",target:"user_id",label:!1,pagination:E.jsx(aW,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:E.jsxs(Un,{style:{width:"100%"},children:[E.jsx(rze,{source:"media_id"}),E.jsx(Pn,{source:"created_ts",showTime:!0,options:Vn}),E.jsx(Pn,{source:"last_access_ts",showTime:!0,options:Vn}),E.jsx(ji,{source:"media_length"}),E.jsx(ze,{source:"media_type"}),E.jsx(ze,{source:"upload_name"}),E.jsx(ze,{source:"quarantined_by"}),E.jsx(tze,{label:"resources.quarantine_media.action.name"}),E.jsx(eze,{label:"resources.users_media.fields.safe_from_quarantine"}),E.jsx(fp,{mutationMode:"pessimistic",redirect:!1})]})})}),E.jsx(vi,{label:t("resources.rooms.name",{smart_count:2}),icon:E.jsx(jc,{}),path:"rooms",children:E.jsx(El,{reference:"joined_rooms",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[E.jsx(ze,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),E.jsx(hs,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:E.jsx(ze,{source:"name",sortable:!1})})]})})}),E.jsx(vi,{label:t("resources.pushers.name",{smart_count:2}),icon:E.jsx(XV,{}),path:"pushers",children:E.jsx(El,{reference:"pushers",target:"user_id",label:!1,children:E.jsxs(Un,{style:{width:"100%"},bulkActionButtons:!1,children:[E.jsx(ze,{source:"kind",sortable:!1}),E.jsx(ze,{source:"app_display_name",sortable:!1}),E.jsx(ze,{source:"app_id",sortable:!1}),E.jsx(ze,{source:"data.url",sortable:!1}),E.jsx(ze,{source:"device_display_name",sortable:!1}),E.jsx(ze,{source:"lang",sortable:!1}),E.jsx(ze,{source:"profile_tag",sortable:!1}),E.jsx(ze,{source:"pushkey",sortable:!1})]})})})]})})},k6e={name:"users",icon:Sk,list:S6e,edit:$6e,create:P6e},j6e={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:Ut.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r,identifier:{type:"m.id.user",user:t}}))};e=e.replace(/\/+$/g,""),Ut.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:l}=await mc(i,a);Ut.setItem("home_server",l.home_server),Ut.setItem("user_id",l.user_id),Ut.setItem("access_token",l.access_token),Ut.setItem("device_id",l.device_id)},logout:async()=>{console.log("logout");const e=Ut.getItem("base_url")+"/_matrix/client/r0/logout",t=Ut.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await mc(e,r),Ut.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=Ut.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},Fa=(e,t={})=>{const r=Ut.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),mc(e,t)},hN=e=>{const t=Ut.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const a=n[1],o=n[2];return`${t}/_matrix/media/r0/thumbnail/${a}/${o}?width=24&height=24&method=scale`},Xr={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?hN(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)}:${Ut.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/${Ut.getItem("home_server")}/${e.id}`})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${Ut.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${Ut.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?hN(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 eh(e,t){if(!(t===null&&e!=="user_type"))return t}function vN(e){return e==="DESC"?"b":"f"}const T6e={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:a,deactivated:o,locked:i,search_term:l,destination:c,valid:s}=t.filter,{page:f,perPage:h}=t.pagination,{field:v,order:m}=t.sort,b=(f-1)*h,w={from:b,limit:h,user_id:r,search_term:l,name:n,destination:c,guests:a,deactivated:o,locked:i,valid:s,order_by:v,dir:vN(m)},O=Ut.getItem("base_url");if(!O||!(e in Xr))throw Error("Homeserver not set");const _=Xr[e],x=`${O+_.path}?${vc.stringify(w)}`,{json:S}=await Fa(x);return{data:S[_.data].map(_.map),total:_.total(S,b,h)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path,{json:o}=await Fa(`${a}/${encodeURIComponent(t.id)}`);return{data:n.map(o)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homerserver not set");const n=Xr[e],a=r+n.path,o=await Promise.all(t.ids.map(i=>Fa(`${a}/${encodeURIComponent(i)}`)));return{data:o.map(({json:i})=>n.map(i)),total:o.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i=(r-1)*n,l={from:i,limit:n,order_by:a,dir:vN(o)},c=Ut.getItem("base_url");if(!c||!(e in Xr))throw Error("Homeserver not set");const s=Xr[e],f=s.reference(t.id),h=`${c}${f.endpoint}?${vc.stringify(l)}`,{json:v}=await Fa(h);return{data:v[s.data].map(s.map),total:s.total(v,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path,{json:o}=await Fa(`${a}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,eh)});return{data:n.map(o)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e],a=r+n.path;return{data:(await Promise.all(t.ids.map(i=>Fa(`${a}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,eh)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if(!("create"in n))return Promise.reject();const a=n.create(t.data),o=r+a.endpoint,{json:i}=await Fa(o,{method:a.method,body:JSON.stringify(a.body,eh)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(o=>{t.data.id=o;const i=n.create(t.data),l=r+i.endpoint;return Fa(l,{method:i.method,body:JSON.stringify(i.body,eh)})}))).map(({json:o})=>o)}},delete:async(e,t)=>{console.log("delete "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if("delete"in n){const a=n.delete(t),o=r+a.endpoint,{json:i}=await Fa(o,{method:"method"in a?a.method:"DELETE",body:"body"in a?JSON.stringify(a.body):null});return{data:i}}else{const a=r+n.path,{json:o}=await Fa(`${a}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,eh)});return{data:o}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=Ut.getItem("base_url");if(!r||!(e in Xr))throw Error("Homeserver not set");const n=Xr[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(o=>{const i=n.delete({...t,id:o}),l=r+i.endpoint;return Fa(l,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:o})=>o)};{const a=r+n.path;return{data:(await Promise.all(t.ids.map(i=>Fa(`${a}/${i}`,{method:"DELETE"})))).map(({json:i})=>i)}}},deleteMedia:async({before_ts:e,size_gt:t=0,keep_profiles:r=!0})=>{const a=`/_synapse/admin/v1/media/${Ut.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,i=Ut.getItem("base_url")+a,{json:l}=await Fa(i,{method:"POST"});return l}},Kg={de:W5e,en:q5e,fr:K5e,it:Y5e,ru:J5e,zh:eBe},I6e=u5(e=>Kg[e]?Lv.merge({},Kg.en,Kg[e]):Kg.en,lfe(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"ru",name:"Russian(Русский)"},{locale:"zh",name:"简体中文"}]),A6e=()=>E.jsxs(a5e,{disableTelemetry:!0,requireAuth:!0,loginPage:nBe,authProvider:j6e,dataProvider:T6e,i18nProvider:I6e,children:[E.jsx(Qz,{children:E.jsx(b5e,{path:"/import_users",element:E.jsx(U5e,{})})}),E.jsx(ln,{...k6e}),E.jsx(ln,{...Nze}),E.jsx(ln,{...Gze}),E.jsx(ln,{...lze}),E.jsx(ln,{...vze}),E.jsx(ln,{..._Be}),E.jsx(ln,{...kBe}),E.jsx(ln,{name:"connections"}),E.jsx(ln,{name:"devices"}),E.jsx(ln,{name:"room_members"}),E.jsx(ln,{name:"users_media"}),E.jsx(ln,{name:"joined_rooms"}),E.jsx(ln,{name:"pushers"}),E.jsx(ln,{name:"servernotices"}),E.jsx(ln,{name:"forward_extremities"}),E.jsx(ln,{name:"room_state"}),E.jsx(ln,{name:"destination_rooms"})]});fetch("/synapse-admin/config.json").then(e=>e.json()).then(e=>N4(document.getElementById("root")).render(E.jsx(ke.StrictMode,{children:E.jsx(jV.Provider,{value:e,children:E.jsx(A6e,{})})}))); diff --git a/index.html b/index.html index b7c3be0..de98675 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 - - + +