From faa15b0d1aa4fec00486b18c76bc29513f228803 Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Wed, 2 Oct 2024 16:19:50 +0200 Subject: [PATCH] feat: check for ACL --- .../{index-079c97c3.js => index-244e3810.js} | 80 +++++++++---------- dkron/ui-dist/index.html | 17 ++-- ui/index.html | 16 ++-- ui/src/App.tsx | 8 +- 4 files changed, 59 insertions(+), 62 deletions(-) rename dkron/ui-dist/assets/{index-079c97c3.js => index-244e3810.js} (85%) diff --git a/dkron/ui-dist/assets/index-079c97c3.js b/dkron/ui-dist/assets/index-244e3810.js similarity index 85% rename from dkron/ui-dist/assets/index-079c97c3.js rename to dkron/ui-dist/assets/index-244e3810.js index 98e338552..864cfbb34 100644 --- a/dkron/ui-dist/assets/index-079c97c3.js +++ b/dkron/ui-dist/assets/index-244e3810.js @@ -1,4 +1,4 @@ -var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e,t,"read from private field"),r?r.call(e):t.get(e)),Xe=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ze=(e,t,r,n)=>(eb(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var jp=(e,t,r,n)=>({set _(a){ze(e,t,a,r)},get _(){return J(e,t,n)}}),pt=(e,t,r)=>(eb(e,t,"access private method"),r);function jk(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 Al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Do(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 Ik={exports:{}},rm={},Ak={exports:{}},yt={};/** +var Zy=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(Zy(e,t,"read from private field"),r?r.call(e):t.get(e)),Xe=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ze=(e,t,r,n)=>(Zy(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var jp=(e,t,r,n)=>({set _(a){ze(e,t,a,r)},get _(){return J(e,t,n)}}),pt=(e,t,r)=>(Zy(e,t,"access private method"),r);function Ik(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 Al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Do(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 Ak={exports:{}},tm={},Mk={exports:{}},yt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xf=Symbol.for("react.element"),ML=Symbol.for("react.portal"),FL=Symbol.for("react.fragment"),NL=Symbol.for("react.strict_mode"),LL=Symbol.for("react.profiler"),DL=Symbol.for("react.provider"),BL=Symbol.for("react.context"),zL=Symbol.for("react.forward_ref"),VL=Symbol.for("react.suspense"),UL=Symbol.for("react.memo"),WL=Symbol.for("react.lazy"),ZE=Symbol.iterator;function HL(e){return e===null||typeof e!="object"?null:(e=ZE&&e[ZE]||e["@@iterator"],typeof e=="function"?e:null)}var Mk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fk=Object.assign,Nk={};function ic(e,t,r){this.props=e,this.context=t,this.refs=Nk,this.updater=r||Mk}ic.prototype.isReactComponent={};ic.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")};ic.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lk(){}Lk.prototype=ic.prototype;function Kw(e,t,r){this.props=e,this.context=t,this.refs=Nk,this.updater=r||Mk}var Gw=Kw.prototype=new Lk;Gw.constructor=Kw;Fk(Gw,ic.prototype);Gw.isPureReactComponent=!0;var eO=Array.isArray,Dk=Object.prototype.hasOwnProperty,Qw={current:null},Bk={key:!0,ref:!0,__self:!0,__source:!0};function zk(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)Dk.call(t,n)&&!Bk.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var XL=d,YL=Symbol.for("react.element"),JL=Symbol.for("react.fragment"),ZL=Object.prototype.hasOwnProperty,eD=XL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tD={key:!0,ref:!0,__self:!0,__source:!0};function Uk(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)ZL.call(t,n)&&!tD.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:YL,type:e,key:o,ref:i,props:a,_owner:eD.current}}rm.Fragment=JL;rm.jsx=Uk;rm.jsxs=Uk;Ik.exports=rm;var R=Ik.exports,A0={},Wk={exports:{}},Gn={},Hk={exports:{}},qk={};/** + */var XL=d,YL=Symbol.for("react.element"),JL=Symbol.for("react.fragment"),ZL=Object.prototype.hasOwnProperty,eD=XL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tD={key:!0,ref:!0,__self:!0,__source:!0};function Wk(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)ZL.call(t,n)&&!tD.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:YL,type:e,key:o,ref:i,props:a,_owner:eD.current}}tm.Fragment=JL;tm.jsx=Wk;tm.jsxs=Wk;Ak.exports=tm;var R=Ak.exports,A0={},Hk={exports:{}},Gn={},qk={exports:{}},Kk={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * 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(B,U){var q=B.length;B.push(U);e:for(;0>>1,oe=B[ie];if(0>>1;iea(Te,q))yea(be,Te)?(B[ie]=be,B[ye]=q,ie=ye):(B[ie]=Te,B[pe]=q,ie=pe);else if(yea(be,q))B[ie]=be,B[ye]=q,ie=ye;else break e}}return U}function a(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=B)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function h(B){if(y=!1,b(B),!g)if(r(u)!==null)g=!0,M(_);else{var U=r(l);U!==null&&W(h,U.startTime-B)}}function _(B,U){g=!1,y&&(y=!1,x(w),w=-1),v=!0;var q=p;try{for(b(U),f=r(u);f!==null&&(!(f.expirationTime>U)||B&&!k());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,p=f.priorityLevel;var oe=ie(f.expirationTime<=U);U=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===r(u)&&n(u),b(U)}else n(u);f=r(u)}if(f!==null)var Ee=!0;else{var pe=r(l);pe!==null&&W(h,pe.startTime-U),Ee=!1}return Ee}finally{f=null,p=q,v=!1}}var C=!1,E=null,w=-1,O=5,P=-1;function k(){return!(e.unstable_now()-PB||125ie?(B.sortIndex=q,t(l,B),r(u)===null&&B===r(l)&&(y?(x(w),w=-1):y=!0,W(h,q-ie))):(B.sortIndex=oe,t(u,B),g||v||(g=!0,M(_))),B},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(qk);Hk.exports=qk;var rD=Hk.exports;/** + */(function(e){function t(B,U){var q=B.length;B.push(U);e:for(;0>>1,oe=B[ie];if(0>>1;iea(Te,q))yea(be,Te)?(B[ie]=be,B[ye]=q,ie=ye):(B[ie]=Te,B[pe]=q,ie=pe);else if(yea(be,q))B[ie]=be,B[ye]=q,ie=ye;else break e}}return U}function a(B,U){var q=B.sortIndex-U.sortIndex;return q!==0?q:B.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],l=[],c=1,f=null,p=3,v=!1,g=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var U=r(l);U!==null;){if(U.callback===null)n(l);else if(U.startTime<=B)n(l),U.sortIndex=U.expirationTime,t(u,U);else break;U=r(l)}}function h(B){if(y=!1,b(B),!g)if(r(u)!==null)g=!0,M(_);else{var U=r(l);U!==null&&W(h,U.startTime-B)}}function _(B,U){g=!1,y&&(y=!1,x(w),w=-1),v=!0;var q=p;try{for(b(U),f=r(u);f!==null&&(!(f.expirationTime>U)||B&&!k());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,p=f.priorityLevel;var oe=ie(f.expirationTime<=U);U=e.unstable_now(),typeof oe=="function"?f.callback=oe:f===r(u)&&n(u),b(U)}else n(u);f=r(u)}if(f!==null)var Ee=!0;else{var pe=r(l);pe!==null&&W(h,pe.startTime-U),Ee=!1}return Ee}finally{f=null,p=q,v=!1}}var C=!1,E=null,w=-1,O=5,P=-1;function k(){return!(e.unstable_now()-PB||125ie?(B.sortIndex=q,t(l,B),r(u)===null&&B===r(l)&&(y?(x(w),w=-1):y=!0,W(h,q-ie))):(B.sortIndex=oe,t(u,B),g||v||(g=!0,M(_))),B},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(B){var U=p;return function(){var q=p;p=U;try{return B.apply(this,arguments)}finally{p=q}}}})(Kk);qk.exports=Kk;var rD=qk.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var eb=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var J=(e,t,r)=>(eb(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var nD=d,Hn=rD;function Ie(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"),M0=Object.prototype.hasOwnProperty,aD=/^[: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]*$/,rO={},nO={};function oD(e){return M0.call(nO,e)?!0:M0.call(rO,e)?!1:aD.test(e)?nO[e]=!0:(rO[e]=!0,!1)}function iD(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 sD(e,t,r,n){if(t===null||typeof t>"u"||iD(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 gn(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 Ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ur[e]=new gn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ur[t]=new gn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ur[e]=new gn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ur[e]=new gn(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){Ur[e]=new gn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ur[e]=new gn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ur[e]=new gn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ur[e]=new gn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ur[e]=new gn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yw=/[\-:]([a-z])/g;function Jw(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(Yw,Jw);Ur[t]=new gn(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(Yw,Jw);Ur[t]=new gn(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(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ur.xlinkHref=new gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zw(e,t,r,n){var a=Ur.hasOwnProperty(t)?Ur[t]:null;(a!==null?a.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M0=Object.prototype.hasOwnProperty,aD=/^[: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]*$/,rO={},nO={};function oD(e){return M0.call(nO,e)?!0:M0.call(rO,e)?!1:aD.test(e)?nO[e]=!0:(rO[e]=!0,!1)}function iD(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 sD(e,t,r,n){if(t===null||typeof t>"u"||iD(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 gn(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 Ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ur[e]=new gn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ur[t]=new gn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ur[e]=new gn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ur[e]=new gn(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){Ur[e]=new gn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ur[e]=new gn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ur[e]=new gn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ur[e]=new gn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ur[e]=new gn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yw=/[\-:]([a-z])/g;function Jw(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(Yw,Jw);Ur[t]=new gn(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(Yw,Jw);Ur[t]=new gn(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(Yw,Jw);Ur[t]=new gn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ur.xlinkHref=new gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ur[e]=new gn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zw(e,t,r,n){var a=Ur.hasOwnProperty(t)?Ur[t]:null;(a!==null?a.type!==0:n||!(2s||a[i]!==o[s]){var u=` -`+a[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{nb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ad(e):""}function lD(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=ab(e.type,!1),e;case 11:return e=ab(e.type.render,!1),e;case 1:return e=ab(e.type,!0),e;default:return""}}function D0(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 Fl:return"Fragment";case Ml:return"Portal";case F0:return"Profiler";case eS:return"StrictMode";case N0:return"Suspense";case L0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qk:return(e.displayName||"Context")+".Consumer";case Gk:return(e._context.displayName||"Context")+".Provider";case tS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rS:return t=e.displayName||null,t!==null?t:D0(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return D0(e(t))}catch{}}return null}function uD(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 D0(t);case 8:return t===eS?"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 Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cD(e){var t=Yk(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 Mp(e){e._valueTracker||(e._valueTracker=cD(e))}function Jk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Yk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gv(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 B0(e,t){var r=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function oO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fi(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 Zk(e,t){t=t.checked,t!=null&&Zw(e,"checked",t,!1)}function z0(e,t){Zk(e,t);var r=Fi(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")?V0(e,t.type,r):t.hasOwnProperty("defaultValue")&&V0(e,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iO(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 V0(e,t,r){(t!=="number"||gv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var od=Array.isArray;function nu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Fp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var md={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},dD=["Webkit","ms","Moz","O"];Object.keys(md).forEach(function(e){dD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),md[t]=md[e]})});function nj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||md.hasOwnProperty(e)&&md[e]?(""+t).trim():t+"px"}function aj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=nj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var fD=rr({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 H0(e,t){if(t){if(fD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function q0(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 K0=null;function nS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var G0=null,au=null,ou=null;function uO(e){if(e=Zf(e)){if(typeof G0!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=sm(t),G0(e.stateNode,e.type,t))}}function oj(e){au?ou?ou.push(e):ou=[e]:au=e}function ij(){if(au){var e=au,t=ou;if(ou=au=null,uO(e),t)for(e=0;e>>=0,e===0?32:31-(_D(e)/CD|0)|0}var Np=64,Lp=4194304;function id(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 xv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=id(s):(o&=i,o!==0&&(n=id(o)))}else i=r&~a,i!==0?n=id(i):o!==0&&(n=id(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 Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=r}function RD(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=bd),yO=String.fromCharCode(32),bO=!1;function Oj(e,t){switch(e){case"keyup":return r6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function a6(e,t){switch(e){case"compositionend":return Pj(t);case"keypress":return t.which!==32?null:(bO=!0,yO);case"textInput":return e=t.data,e===yO&&bO?null:e;default:return null}}function o6(e,t){if(Nl)return e==="compositionend"||!dS&&Oj(e,t)?(e=Cj(),Ph=lS=xi=null,Nl=!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=_O(r)}}function kj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jj(){for(var e=window,t=gv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gv(e.document)}return t}function fS(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 h6(e){var t=jj(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&kj(r.ownerDocument.documentElement,r)){if(n!==null&&fS(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=CO(r,o);var i=CO(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,Ll=null,e1=null,wd=null,t1=!1;function EO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t1||Ll==null||Ll!==gv(n)||(n=Ll,"selectionStart"in n&&fS(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}),wd&&af(wd,n)||(wd=n,n=_v(e1,"onSelect"),0zl||(e.current=s1[zl],s1[zl]=null,zl--)}function Ht(e,t){zl++,s1[zl]=e.current,e.current=t}var Ni={},tn=Vi(Ni),On=Vi(!1),Vs=Ni;function zu(e,t){var r=e.type.contextTypes;if(!r)return Ni;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 Pn(e){return e=e.childContextTypes,e!=null}function Ev(){Qt(On),Qt(tn)}function jO(e,t,r){if(tn.current!==Ni)throw Error(Ie(168));Ht(tn,t),Ht(On,r)}function zj(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(Ie(108,uD(e)||"Unknown",a));return rr({},r,n)}function Ov(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Vs=tn.current,Ht(tn,e),Ht(On,On.current),!0}function IO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=zj(e,t,Vs),n.__reactInternalMemoizedMergedChildContext=e,Qt(On),Qt(tn),Ht(tn,e)):Qt(On),Ht(On,r)}var wo=null,lm=!1,yb=!1;function Vj(e){wo===null?wo=[e]:wo.push(e)}function O6(e){lm=!0,Vj(e)}function Ui(){if(!yb&&wo!==null){yb=!0;var e=0,t=At;try{var r=wo;for(At=1;e>=i,a-=i,Eo=1<<32-$a(t)+a|r<w?(O=E,E=null):O=E.sibling;var P=p(x,E,b[w],h);if(P===null){E===null&&(E=O);break}e&&E&&P.alternate===null&&t(x,E),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P,E=O}if(w===b.length)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;ww?(O=E,E=null):O=E.sibling;var k=p(x,E,P.value,h);if(k===null){E===null&&(E=O);break}e&&E&&k.alternate===null&&t(x,E),m=o(k,m,w),C===null?_=k:C.sibling=k,C=k,E=O}if(P.done)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;!P.done;w++,P=b.next())P=f(x,P.value,h),P!==null&&(m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return Yt&&rs(x,w),_}for(E=n(x,E);!P.done;w++,P=b.next())P=v(E,x,w,P.value,h),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?w:P.key),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return e&&E.forEach(function(j){return t(x,j)}),Yt&&rs(x,w),_}function S(x,m,b,h){if(typeof b=="object"&&b!==null&&b.type===Fl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ap:e:{for(var _=b.key,C=m;C!==null;){if(C.key===_){if(_=b.type,_===Fl){if(C.tag===7){r(x,C.sibling),m=a(C,b.props.children),m.return=x,x=m;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ni&&FO(_)===C.type){r(x,C.sibling),m=a(C,b.props),m.ref=Dc(x,C,b),m.return=x,x=m;break e}r(x,C);break}else t(x,C);C=C.sibling}b.type===Fl?(m=Ms(b.props.children,x.mode,h,b.key),m.return=x,x=m):(h=Mh(b.type,b.key,b.props,null,x.mode,h),h.ref=Dc(x,m,b),h.return=x,x=h)}return i(x);case Ml:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(x,m.sibling),m=a(m,b.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Ob(b,x.mode,h),m.return=x,x=m}return i(x);case ni:return C=b._init,S(x,m,C(b._payload),h)}if(od(b))return g(x,m,b,h);if(Ac(b))return y(x,m,b,h);Hp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(x,m.sibling),m=a(m,b),m.return=x,x=m):(r(x,m),m=Eb(b,x.mode,h),m.return=x,x=m),i(x)):r(x,m)}return S}var Uu=qj(!0),Kj=qj(!1),Tv=Vi(null),$v=null,Wl=null,gS=null;function mS(){gS=Wl=$v=null}function yS(e){var t=Tv.current;Qt(Tv),e._currentValue=t}function c1(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 su(e,t){$v=e,gS=Wl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(En=!0),e.firstContext=null)}function ua(e){var t=e._currentValue;if(gS!==e)if(e={context:e,memoizedValue:t,next:null},Wl===null){if($v===null)throw Error(Ie(308));Wl=e,$v.dependencies={lanes:0,firstContext:e}}else Wl=Wl.next=e;return t}var ys=null;function bS(e){ys===null?ys=[e]:ys.push(e)}function Gj(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,bS(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ao(e,n)}function Ao(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 ai=!1;function xS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qj(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 To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ct&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ao(e,r)}return a=n.interleaved,a===null?(t.next=t,bS(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ao(e,r)}function Th(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,oS(e,r)}}function NO(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 kv(e,t,r,n){var a=e.updateQueue;ai=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,v=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,f,p):g,p==null)break e;f=rr({},f,p);break e;case 2:ai=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=v,u=f):c=c.next=v,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(c===null&&(u=f),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hs|=i,e.lanes=i,e.memoizedState=f}}function LO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=xb.transition;xb.transition={};try{e(!1),t()}finally{At=r,xb.transition=n}}function fI(){return ca().memoizedState}function $6(e,t,r){var n=ji(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pI(e))hI(t,r);else if(r=Gj(e,t,r,n),r!==null){var a=pn();ka(r,e,n,a),vI(r,t,n)}}function k6(e,t,r){var n=ji(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pI(e))hI(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,Ia(s,i)){var u=t.interleaved;u===null?(a.next=a,bS(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=Gj(e,t,a,n),r!==null&&(a=pn(),ka(r,e,n,a),vI(r,t,n))}}function pI(e){var t=e.alternate;return e===tr||t!==null&&t===tr}function hI(e,t){Sd=Iv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function vI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}var Av={readContext:ua,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},j6={readContext:ua,useCallback:function(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:BO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,kh(4194308,4,sI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return kh(4194308,4,e,t)},useInsertionEffect:function(e,t){return kh(4,2,e,t)},useMemo:function(e,t){var r=Ba();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ba();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=$6.bind(null,tr,e),[n.memoizedState,e]},useRef:function(e){var t=Ba();return e={current:e},t.memoizedState=e},useState:DO,useDebugValue:RS,useDeferredValue:function(e){return Ba().memoizedState=e},useTransition:function(){var e=DO(!1),t=e[0];return e=T6.bind(null,e[1]),Ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tr,a=Ba();if(Yt){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Ar===null)throw Error(Ie(349));Ws&30||Zj(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,BO(tI.bind(null,n,o,e),[e]),n.flags|=2048,pf(9,eI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ba(),t=Ar.identifierPrefix;if(Yt){var r=Oo,n=Eo;r=(n&~(1<<32-$a(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=df++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{rb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ad(e):""}function lD(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=nb(e.type,!1),e;case 11:return e=nb(e.type.render,!1),e;case 1:return e=nb(e.type,!0),e;default:return""}}function D0(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 Fl:return"Fragment";case Ml:return"Portal";case F0:return"Profiler";case eS:return"StrictMode";case N0:return"Suspense";case L0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xk:return(e.displayName||"Context")+".Consumer";case Qk:return(e._context.displayName||"Context")+".Provider";case tS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rS:return t=e.displayName||null,t!==null?t:D0(e.type)||"Memo";case ni:t=e._payload,e=e._init;try{return D0(e(t))}catch{}}return null}function uD(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 D0(t);case 8:return t===eS?"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 Fi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cD(e){var t=Jk(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 Mp(e){e._valueTracker||(e._valueTracker=cD(e))}function Zk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Jk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function vv(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 B0(e,t){var r=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function oO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Fi(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 ej(e,t){t=t.checked,t!=null&&Zw(e,"checked",t,!1)}function z0(e,t){ej(e,t);var r=Fi(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")?V0(e,t.type,r):t.hasOwnProperty("defaultValue")&&V0(e,t.type,Fi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iO(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 V0(e,t,r){(t!=="number"||vv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var od=Array.isArray;function nu(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Fp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var md={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},dD=["Webkit","ms","Moz","O"];Object.keys(md).forEach(function(e){dD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),md[t]=md[e]})});function aj(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||md.hasOwnProperty(e)&&md[e]?(""+t).trim():t+"px"}function oj(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=aj(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var fD=rr({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 H0(e,t){if(t){if(fD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function q0(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 K0=null;function nS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var G0=null,au=null,ou=null;function uO(e){if(e=Zf(e)){if(typeof G0!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=im(t),G0(e.stateNode,e.type,t))}}function ij(e){au?ou?ou.push(e):ou=[e]:au=e}function sj(){if(au){var e=au,t=ou;if(ou=au=null,uO(e),t)for(e=0;e>>=0,e===0?32:31-(_D(e)/CD|0)|0}var Np=64,Lp=4194304;function id(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 bv(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~a;s!==0?n=id(s):(o&=i,o!==0&&(n=id(o)))}else i=r&~a,i!==0?n=id(i):o!==0&&(n=id(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 Yf(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$a(t),e[t]=r}function RD(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=bd),yO=String.fromCharCode(32),bO=!1;function Pj(e,t){switch(e){case"keyup":return r6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function a6(e,t){switch(e){case"compositionend":return Rj(t);case"keypress":return t.which!==32?null:(bO=!0,yO);case"textInput":return e=t.data,e===yO&&bO?null:e;default:return null}}function o6(e,t){if(Nl)return e==="compositionend"||!dS&&Pj(e,t)?(e=Ej(),Ph=lS=xi=null,Nl=!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=_O(r)}}function jj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ij(){for(var e=window,t=vv();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=vv(e.document)}return t}function fS(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 h6(e){var t=Ij(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&jj(r.ownerDocument.documentElement,r)){if(n!==null&&fS(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=CO(r,o);var i=CO(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,Ll=null,e1=null,wd=null,t1=!1;function EO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;t1||Ll==null||Ll!==vv(n)||(n=Ll,"selectionStart"in n&&fS(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}),wd&&af(wd,n)||(wd=n,n=Sv(e1,"onSelect"),0zl||(e.current=s1[zl],s1[zl]=null,zl--)}function Ht(e,t){zl++,s1[zl]=e.current,e.current=t}var Ni={},tn=Vi(Ni),On=Vi(!1),Vs=Ni;function zu(e,t){var r=e.type.contextTypes;if(!r)return Ni;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 Pn(e){return e=e.childContextTypes,e!=null}function Cv(){Qt(On),Qt(tn)}function jO(e,t,r){if(tn.current!==Ni)throw Error(Ie(168));Ht(tn,t),Ht(On,r)}function Vj(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(Ie(108,uD(e)||"Unknown",a));return rr({},r,n)}function Ev(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ni,Vs=tn.current,Ht(tn,e),Ht(On,On.current),!0}function IO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=Vj(e,t,Vs),n.__reactInternalMemoizedMergedChildContext=e,Qt(On),Qt(tn),Ht(tn,e)):Qt(On),Ht(On,r)}var wo=null,sm=!1,mb=!1;function Uj(e){wo===null?wo=[e]:wo.push(e)}function O6(e){sm=!0,Uj(e)}function Ui(){if(!mb&&wo!==null){mb=!0;var e=0,t=At;try{var r=wo;for(At=1;e>=i,a-=i,Eo=1<<32-$a(t)+a|r<w?(O=E,E=null):O=E.sibling;var P=p(x,E,b[w],h);if(P===null){E===null&&(E=O);break}e&&E&&P.alternate===null&&t(x,E),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P,E=O}if(w===b.length)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;ww?(O=E,E=null):O=E.sibling;var k=p(x,E,P.value,h);if(k===null){E===null&&(E=O);break}e&&E&&k.alternate===null&&t(x,E),m=o(k,m,w),C===null?_=k:C.sibling=k,C=k,E=O}if(P.done)return r(x,E),Yt&&rs(x,w),_;if(E===null){for(;!P.done;w++,P=b.next())P=f(x,P.value,h),P!==null&&(m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return Yt&&rs(x,w),_}for(E=n(x,E);!P.done;w++,P=b.next())P=v(E,x,w,P.value,h),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?w:P.key),m=o(P,m,w),C===null?_=P:C.sibling=P,C=P);return e&&E.forEach(function(j){return t(x,j)}),Yt&&rs(x,w),_}function S(x,m,b,h){if(typeof b=="object"&&b!==null&&b.type===Fl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ap:e:{for(var _=b.key,C=m;C!==null;){if(C.key===_){if(_=b.type,_===Fl){if(C.tag===7){r(x,C.sibling),m=a(C,b.props.children),m.return=x,x=m;break e}}else if(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===ni&&FO(_)===C.type){r(x,C.sibling),m=a(C,b.props),m.ref=Dc(x,C,b),m.return=x,x=m;break e}r(x,C);break}else t(x,C);C=C.sibling}b.type===Fl?(m=Ms(b.props.children,x.mode,h,b.key),m.return=x,x=m):(h=Mh(b.type,b.key,b.props,null,x.mode,h),h.ref=Dc(x,m,b),h.return=x,x=h)}return i(x);case Ml:e:{for(C=b.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(x,m.sibling),m=a(m,b.children||[]),m.return=x,x=m;break e}else{r(x,m);break}else t(x,m);m=m.sibling}m=Eb(b,x.mode,h),m.return=x,x=m}return i(x);case ni:return C=b._init,S(x,m,C(b._payload),h)}if(od(b))return g(x,m,b,h);if(Ac(b))return y(x,m,b,h);Hp(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(x,m.sibling),m=a(m,b),m.return=x,x=m):(r(x,m),m=Cb(b,x.mode,h),m.return=x,x=m),i(x)):r(x,m)}return S}var Uu=Kj(!0),Gj=Kj(!1),Rv=Vi(null),Tv=null,Wl=null,gS=null;function mS(){gS=Wl=Tv=null}function yS(e){var t=Rv.current;Qt(Rv),e._currentValue=t}function c1(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 su(e,t){Tv=e,gS=Wl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(En=!0),e.firstContext=null)}function ua(e){var t=e._currentValue;if(gS!==e)if(e={context:e,memoizedValue:t,next:null},Wl===null){if(Tv===null)throw Error(Ie(308));Wl=e,Tv.dependencies={lanes:0,firstContext:e}}else Wl=Wl.next=e;return t}var ys=null;function bS(e){ys===null?ys=[e]:ys.push(e)}function Qj(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,bS(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ao(e,n)}function Ao(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 ai=!1;function xS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xj(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 To(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $i(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ct&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ao(e,r)}return a=n.interleaved,a===null?(t.next=t,bS(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ao(e,r)}function Th(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,oS(e,r)}}function NO(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 $v(e,t,r,n){var a=e.updateQueue;ai=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var u=s,l=u.next;u.next=null,i===null?o=l:i.next=l,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;i=0,c=l=u=null,s=o;do{var p=s.lane,v=s.eventTime;if((n&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(p=t,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(v,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(v,f,p):g,p==null)break e;f=rr({},f,p);break e;case 2:ai=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=v,u=f):c=c.next=v,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(c===null&&(u=f),a.baseState=u,a.firstBaseUpdate=l,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hs|=i,e.lanes=i,e.memoizedState=f}}function LO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=bb.transition;bb.transition={};try{e(!1),t()}finally{At=r,bb.transition=n}}function pI(){return ca().memoizedState}function $6(e,t,r){var n=ji(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},hI(e))vI(t,r);else if(r=Qj(e,t,r,n),r!==null){var a=pn();ka(r,e,n,a),gI(r,t,n)}}function k6(e,t,r){var n=ji(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(hI(e))vI(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(a.hasEagerState=!0,a.eagerState=s,Ia(s,i)){var u=t.interleaved;u===null?(a.next=a,bS(t)):(a.next=u.next,u.next=a),t.interleaved=a;return}}catch{}finally{}r=Qj(e,t,a,n),r!==null&&(a=pn(),ka(r,e,n,a),gI(r,t,n))}}function hI(e){var t=e.alternate;return e===tr||t!==null&&t===tr}function vI(e,t){Sd=jv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function gI(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,oS(e,r)}}var Iv={readContext:ua,useCallback:Qr,useContext:Qr,useEffect:Qr,useImperativeHandle:Qr,useInsertionEffect:Qr,useLayoutEffect:Qr,useMemo:Qr,useReducer:Qr,useRef:Qr,useState:Qr,useDebugValue:Qr,useDeferredValue:Qr,useTransition:Qr,useMutableSource:Qr,useSyncExternalStore:Qr,useId:Qr,unstable_isNewReconciler:!1},j6={readContext:ua,useCallback:function(e,t){return Ba().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:BO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,kh(4194308,4,lI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return kh(4194308,4,e,t)},useInsertionEffect:function(e,t){return kh(4,2,e,t)},useMemo:function(e,t){var r=Ba();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ba();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=$6.bind(null,tr,e),[n.memoizedState,e]},useRef:function(e){var t=Ba();return e={current:e},t.memoizedState=e},useState:DO,useDebugValue:RS,useDeferredValue:function(e){return Ba().memoizedState=e},useTransition:function(){var e=DO(!1),t=e[0];return e=T6.bind(null,e[1]),Ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=tr,a=Ba();if(Yt){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Ar===null)throw Error(Ie(349));Ws&30||eI(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,BO(rI.bind(null,n,o,e),[e]),n.flags|=2048,pf(9,tI.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ba(),t=Ar.identifierPrefix;if(Yt){var r=Oo,n=Eo;r=(n&~(1<<32-$a(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=df++,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[Qa]=t,e[lf]=n,EI(e,t,!1,!1),t.stateNode=e;e:{switch(i=q0(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),a=n;break;case"iframe":case"object":case"embed":Kt("load",e),a=n;break;case"video":case"audio":for(a=0;aqu&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304)}else{if(!n)if(e=jv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Yt)return Xr(t),null}else 2*pr()-o.renderingStartTime>qu&&r!==1073741824&&(t.flags|=128,n=!0,Bc(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=pr(),t.sibling=null,r=er.current,Ht(er,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return AS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function B6(e,t){switch(hS(t),t.tag){case 1:return Pn(t.type)&&Ev(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wu(),Qt(On),Qt(tn),_S(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return SS(t),null;case 13:if(Qt(er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(er),null;case 4:return Wu(),null;case 10:return yS(t.type._context),null;case 22:case 23:return AS(),null;case 24:return null;default:return null}}var Kp=!1,Zr=!1,z6=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Hl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){sr(e,t,n)}else r.current=null}function b1(e,t,r){try{r()}catch(n){sr(e,t,n)}}var YO=!1;function V6(e,t){if(r1=wv,e=jj(),fS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==r||a!==0&&f.nodeType!==3||(s=i+a),f!==o||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(n1={focusedElem:e,selectionRange:r},wv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:wa(t.type,y),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){sr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=YO,YO=!1,g}function _d(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&b1(t,r,o)}a=a.next}while(a!==n)}}function dm(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 x1(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 RI(e){var t=e.alternate;t!==null&&(e.alternate=null,RI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qa],delete t[lf],delete t[i1],delete t[C6],delete t[E6])),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 TI(e){return e.tag===5||e.tag===3||e.tag===4}function JO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TI(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 w1(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=Cv));else if(n!==4&&(e=e.child,e!==null))for(w1(e,t,r),e=e.sibling;e!==null;)w1(e,t,r),e=e.sibling}function S1(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(S1(e,t,r),e=e.sibling;e!==null;)S1(e,t,r),e=e.sibling}var Dr=null,_a=!1;function Xo(e,t,r){for(r=r.child;r!==null;)$I(e,t,r),r=r.sibling}function $I(e,t,r){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(nm,r)}catch{}switch(r.tag){case 5:Zr||Hl(r,t);case 6:var n=Dr,a=_a;Dr=null,Xo(e,t,r),Dr=n,_a=a,Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?mb(e.parentNode,r):e.nodeType===1&&mb(e,r),rf(e)):mb(Dr,r.stateNode));break;case 4:n=Dr,a=_a,Dr=r.stateNode.containerInfo,_a=!0,Xo(e,t,r),Dr=n,_a=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&b1(r,t,i),a=a.next}while(a!==n)}Xo(e,t,r);break;case 1:if(!Zr&&(Hl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){sr(r,t,s)}Xo(e,t,r);break;case 21:Xo(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Xo(e,t,r),Zr=n):Xo(e,t,r);break;default:Xo(e,t,r)}}function ZO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new z6),t.forEach(function(n){var a=Y6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=pr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*W6(n/1960))-n,10e?16:e,wi===null)var n=!1;else{if(e=wi,wi=null,Nv=0,Ct&6)throw Error(Ie(331));var a=Ct;for(Ct|=4,Ve=e.current;Ve!==null;){var o=Ve,i=o.child;if(Ve.flags&16){var s=o.deletions;if(s!==null){for(var u=0;upr()-jS?As(e,0):kS|=r),Rn(e,t)}function LI(e,t){t===0&&(e.mode&1?(t=Lp,Lp<<=1,!(Lp&130023424)&&(Lp=4194304)):t=1);var r=pn();e=Ao(e,t),e!==null&&(Yf(e,t,r),Rn(e,r))}function X6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),LI(e,r)}function Y6(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(Ie(314))}n!==null&&n.delete(t),LI(e,r)}var DI;DI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)En=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return En=!1,L6(e,t,r);En=!!(e.flags&131072)}else En=!1,Yt&&t.flags&1048576&&Uj(t,Rv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;jh(e,t),e=t.pendingProps;var a=zu(t,tn.current);su(t,r),a=ES(null,t,n,e,a,r);var o=OS();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,Pn(n)?(o=!0,Ov(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xS(t),a.updater=cm,t.stateNode=a,a._reactInternals=t,f1(t,n,e,r),t=v1(null,t,n,!0,o,r)):(t.tag=0,Yt&&o&&pS(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(jh(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Z6(n),e=wa(n,e),a){case 0:t=h1(null,t,n,e,r);break e;case 1:t=GO(null,t,n,e,r);break e;case 11:t=qO(null,t,n,e,r);break e;case 14:t=KO(null,t,n,wa(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),h1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),GO(e,t,n,a,r);case 3:e:{if(SI(t),e===null)throw Error(Ie(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Qj(e,t),kv(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=Hu(Error(Ie(423)),t),t=QO(e,t,n,r,a);break e}else if(n!==a){a=Hu(Error(Ie(424)),t),t=QO(e,t,n,r,a);break e}else for(Vn=Ti(t.stateNode.containerInfo.firstChild),Un=t,Yt=!0,Ea=null,r=Kj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vu(),n===a){t=Mo(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return Xj(t),e===null&&u1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,a1(n,a)?i=null:o!==null&&a1(n,o)&&(t.flags|=32),wI(e,t),cn(e,t,i,r),t.child;case 6:return e===null&&u1(t),null;case 13:return _I(e,t,r);case 4:return wS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Uu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),qO(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ht(Tv,n._currentValue),n._currentValue=i,o!==null)if(Ia(o.value,i)){if(o.children===a.children&&!On.current){t=Mo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=To(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),c1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ie(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),c1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,su(t,r),a=ua(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=wa(n,t.pendingProps),a=wa(n.type,a),KO(e,t,n,a,r);case 15:return bI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),jh(e,t),t.tag=1,Pn(n)?(e=!0,Ov(t)):e=!1,su(t,r),gI(t,n,a),f1(t,n,a,r),v1(null,t,n,!0,e,r);case 19:return CI(e,t,r);case 22:return xI(e,t,r)}throw Error(Ie(156,t.tag))};function BI(e,t){return pj(e,t)}function J6(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 ia(e,t,r,n){return new J6(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Z6(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tS)return 11;if(e===rS)return 14}return 2}function Ii(e,t){var r=e.alternate;return r===null?(r=ia(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 Mh(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")FS(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fl:return Ms(r.children,a,o,t);case eS:i=8,a|=8;break;case F0:return e=ia(12,r,t,a|2),e.elementType=F0,e.lanes=o,e;case N0:return e=ia(13,r,t,a),e.elementType=N0,e.lanes=o,e;case L0:return e=ia(19,r,t,a),e.elementType=L0,e.lanes=o,e;case Xk:return pm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gk:i=10;break e;case Qk:i=9;break e;case tS:i=11;break e;case rS:i=14;break e;case ni:i=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ia(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Ms(e,t,r,n){return e=ia(7,e,n,t),e.lanes=r,e}function pm(e,t,r,n){return e=ia(22,e,n,t),e.elementType=Xk,e.lanes=r,e.stateNode={isHidden:!1},e}function Eb(e,t,r){return e=ia(6,e,null,t),e.lanes=r,e}function Ob(e,t,r){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eB(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=ib(0),this.expirationTimes=ib(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ib(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function NS(e,t,r,n,a,o,i,s,u){return e=new eB(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ia(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},xS(o),e}function tB(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WI)}catch(e){console.error(e)}}WI(),Wk.exports=Gn;var tp=Wk.exports;const ld=Mr(tp),iB=jk({__proto__:null,default:ld},[tp]);var sP=tp;A0.createRoot=sP.createRoot,A0.hydrateRoot=sP.hydrateRoot;var zS=d.createContext(void 0);zS.displayName="AuthContext";var ym={loginUrl:"/login",afterLoginUrl:"/"},sB=function(){return d.useContext(zS)};const zo=sB;var uc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ku=typeof window>"u"||"Deno"in globalThis;function Zn(){}function lB(e,t){return typeof e=="function"?e(t):e}function P1(e){return typeof e=="number"&&e>=0&&e!==1/0}function HI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uu(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){return typeof e=="function"?e(t):e}function lP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==VS(i,t.options))return!1}else if(!vf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function uP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ks(t.options.mutationKey)!==Ks(o))return!1}else if(!vf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function VS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ks)(e)}function Ks(e){return JSON.stringify(e,(t,r)=>R1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function vf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!vf(e[r],t[r])):!1}function qI(e,t){if(e===t)return e;const r=cP(e)&&cP(t);if(r||R1(e)&&R1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function T1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?qI(e,t):t}function cB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function dB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var KI=Symbol();function GI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===KI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Os,fi,Ou,Sk,fB=(Sk=class extends uc{constructor(){super();Xe(this,Os,void 0);Xe(this,fi,void 0);Xe(this,Ou,void 0);ze(this,Ou,t=>{if(!Ku&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){J(this,fi)||this.setEventListener(J(this,Ou))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,fi))==null||t.call(this),ze(this,fi,void 0))}setEventListener(t){var r;ze(this,Ou,t),(r=J(this,fi))==null||r.call(this),ze(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){J(this,Os)!==t&&(ze(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof J(this,Os)=="boolean"?J(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,fi=new WeakMap,Ou=new WeakMap,Sk),US=new fB,Pu,pi,Ru,_k,pB=(_k=class extends uc{constructor(){super();Xe(this,Pu,!0);Xe(this,pi,void 0);Xe(this,Ru,void 0);ze(this,Ru,t=>{if(!Ku&&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(){J(this,pi)||this.setEventListener(J(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,pi))==null||t.call(this),ze(this,pi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=J(this,pi))==null||r.call(this),ze(this,pi,t(this.setOnline.bind(this)))}setOnline(t){J(this,Pu)!==t&&(ze(this,Pu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return J(this,Pu)}},Pu=new WeakMap,pi=new WeakMap,Ru=new WeakMap,_k),zv=new pB;function hB(e){return Math.min(1e3*2**e,3e4)}function QI(e){return(e??"online")==="online"?zv.isOnline():!0}var XI=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Pb(e){return e instanceof XI}function YI(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,m)=>{o=x,i=m}),u=x=>{var m;n||(g(new XI(x)),(m=e.abort)==null||m.call(e))},l=()=>{t=!0},c=()=>{t=!1},f=()=>US.isFocused()&&(e.networkMode==="always"||zv.isOnline())&&e.canRun(),p=()=>QI(e.networkMode)&&e.canRun(),v=x=>{var m;n||(n=!0,(m=e.onSuccess)==null||m.call(e,x),a==null||a(),o(x))},g=x=>{var m;n||(n=!0,(m=e.onError)==null||m.call(e,x),a==null||a(),i(x))},y=()=>new Promise(x=>{var m;a=b=>{(n||f())&&x(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),S=()=>{if(n)return;let x;const m=r===0?e.initialPromise:void 0;try{x=m??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(v).catch(b=>{var w;if(n)return;const h=e.retry??(Ku?0:3),_=e.retryDelay??hB,C=typeof _=="function"?_(r,b):_,E=h===!0||typeof h=="number"&&rf()?void 0:y()).then(()=>{t?g(b):S()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?S():y().then(S),s)}}function vB(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=s=>setTimeout(s,0);const o=s=>{t?e.push(s):a(()=>{r(s)})},i=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var hr=vB(),Ps,Ck,JI=(Ck=class{constructor(){Xe(this,Ps,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P1(this.gcTime)&&ze(this,Ps,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ku?1/0:5*60*1e3))}clearGcTimeout(){J(this,Ps)&&(clearTimeout(J(this,Ps)),ze(this,Ps,void 0))}},Ps=new WeakMap,Ck),Tu,$u,Jn,Jr,Lf,Rs,Sa,yo,Ek,gB=(Ek=class extends JI{constructor(t){super();Xe(this,Sa);Xe(this,Tu,void 0);Xe(this,$u,void 0);Xe(this,Jn,void 0);Xe(this,Jr,void 0);Xe(this,Lf,void 0);Xe(this,Rs,void 0);ze(this,Rs,!1),ze(this,Lf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Jn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Tu,mB(this.options)),this.state=t.state??J(this,Tu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...J(this,Lf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Jn).remove(this)}setData(t,r){const n=T1(this.state.data,t,this.options);return pt(this,Sa,yo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){pt(this,Sa,yo).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=J(this,Jr))==null?void 0:n.promise;return(a=J(this,Jr))==null||a.cancel(t),r?r.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Tu))}isActive(){return this.observers.some(t=>Oa(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!HI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(J(this,Jr)&&(J(this,Rs)?J(this,Jr).cancel({revert:!0}):J(this,Jr).cancelRetry()),this.scheduleGc()),J(this,Jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Sa,yo).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(J(this,Jr))return J(this,Jr).continueRetry(),J(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ze(this,Rs,!0),n.signal)})},o=()=>{const f=GI(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Rs,!1),this.options.persister?this.options.persister(f,p,this):f(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,$u,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&pt(this,Sa,yo).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=f=>{var p,v,g,y;Pb(f)&&f.silent||pt(this,Sa,yo).call(this,{type:"error",error:f}),Pb(f)||((v=(p=J(this,Jn).config).onError)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,YI({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,v,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){s(S);return}(v=(p=J(this,Jn).config).onSuccess)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,p)=>{pt(this,Sa,yo).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pt(this,Sa,yo).call(this,{type:"pause"})},onContinue:()=>{pt(this,Sa,yo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),J(this,Jr).start()}},Tu=new WeakMap,$u=new WeakMap,Jn=new WeakMap,Jr=new WeakMap,Lf=new WeakMap,Rs=new WeakMap,Sa=new WeakSet,yo=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,...ZI(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 Pb(a)&&a.revert&&J(this,$u)?{...J(this,$u),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),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),J(this,Jn).notify({query:this,type:"updated",action:t})})},Ek);function ZI(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mB(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 Va,Ok,yB=(Ok=class extends uc{constructor(t={}){super();Xe(this,Va,void 0);this.config=t,ze(this,Va,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??VS(a,r);let i=this.get(o);return i||(i=new gB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){J(this,Va).has(t.queryHash)||(J(this,Va).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=J(this,Va).get(t.queryHash);r&&(t.destroy(),r===t&&J(this,Va).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Va).get(t)}getAll(){return[...J(this,Va).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>lP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>lP(t,n)):r}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){hr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Va=new WeakMap,Ok),Ua,sn,Ts,Wa,ei,Pk,bB=(Pk=class extends JI{constructor(t){super();Xe(this,Wa);Xe(this,Ua,void 0);Xe(this,sn,void 0);Xe(this,Ts,void 0);this.mutationId=t.mutationId,ze(this,sn,t.mutationCache),ze(this,Ua,[]),this.state=t.state||eA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Ua).includes(t)||(J(this,Ua).push(t),this.clearGcTimeout(),J(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ua,J(this,Ua).filter(r=>r!==t)),this.scheduleGc(),J(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Ua).length||(this.state.status==="pending"?this.scheduleGc():J(this,sn).remove(this))}continue(){var t;return((t=J(this,Ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_,C,E;ze(this,Ts,YI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,O)=>{pt(this,Wa,ei).call(this,{type:"failed",failureCount:w,error:O})},onPause:()=>{pt(this,Wa,ei).call(this,{type:"pause"})},onContinue:()=>{pt(this,Wa,ei).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,sn).canRun(this)}));const r=this.state.status==="pending",n=!J(this,Ts).canStart();try{if(!r){pt(this,Wa,ei).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=J(this,sn).config).onMutate)==null?void 0:o.call(a,t,this));const O=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));O!==this.state.context&&pt(this,Wa,ei).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const w=await J(this,Ts).start();return await((l=(u=J(this,sn).config).onSuccess)==null?void 0:l.call(u,w,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,w,t,this.state.context)),await((v=(p=J(this,sn).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,w,null,t,this.state.context)),pt(this,Wa,ei).call(this,{type:"success",data:w}),w}catch(w){try{throw await((x=(S=J(this,sn).config).onError)==null?void 0:x.call(S,w,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,w,t,this.state.context)),await((_=(h=J(this,sn).config).onSettled)==null?void 0:_.call(h,void 0,w,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,w,t,this.state.context)),w}finally{pt(this,Wa,ei).call(this,{type:"error",error:w})}}finally{J(this,sn).runNext(this)}}},Ua=new WeakMap,sn=new WeakMap,Ts=new WeakMap,Wa=new WeakSet,ei=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),hr.batch(()=>{J(this,Ua).forEach(n=>{n.onMutationUpdate(t)}),J(this,sn).notify({mutation:this,type:"updated",action:t})})},Pk);function eA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,Df,Rk,xB=(Rk=class extends uc{constructor(t={}){super();Xe(this,Fn,void 0);Xe(this,Df,void 0);this.config=t,ze(this,Fn,new Map),ze(this,Df,Date.now())}build(t,r,n){const a=new bB({mutationCache:this,mutationId:++jp(this,Df)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Xp(t),n=J(this,Fn).get(r)??[];n.push(t),J(this,Fn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Xp(t);if(J(this,Fn).has(r)){const a=(n=J(this,Fn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?J(this,Fn).delete(r):J(this,Fn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...J(this,Fn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uP(r,n))}findAll(t={}){return this.getAll().filter(r=>uP(t,r))}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return hr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Zn))))}},Fn=new WeakMap,Df=new WeakMap,Rk);function Xp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fP(e){return{onFetch:(t,r)=>{var c,f,p,v,g;const n=t.options,a=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let y=!1;const S=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},x=GI(t.options,t.fetchOptions),m=async(b,h,_)=>{if(y)return Promise.reject();if(h==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:t.queryKey,pageParam:h,direction:_?"backward":"forward",meta:t.options.meta};S(C);const E=await x(C),{maxPages:w}=t.options,O=_?dB:cB;return{pages:O(b.pages,E,w),pageParams:O(b.pageParams,h,w)}};if(a&&o.length){const b=a==="backward",h=b?wB:pP,_={pages:o,pageParams:i},C=h(n,_);s=await m(_,C,b)}else{const b=e??o.length;do{const h=u===0?i[0]??n.initialPageParam:pP(n,s);if(u>0&&h==null)break;s=await m(s,h),u++}while(u{var y,S;return(S=(y=t.options).persister)==null?void 0:S.call(y,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function pP(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 wB(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 ir,hi,vi,ku,ju,gi,Iu,Au,Tk,SB=(Tk=class{constructor(e={}){Xe(this,ir,void 0);Xe(this,hi,void 0);Xe(this,vi,void 0);Xe(this,ku,void 0);Xe(this,ju,void 0);Xe(this,gi,void 0);Xe(this,Iu,void 0);Xe(this,Au,void 0);ze(this,ir,e.queryCache||new yB),ze(this,hi,e.mutationCache||new xB),ze(this,vi,e.defaultOptions||{}),ze(this,ku,new Map),ze(this,ju,new Map),ze(this,gi,0)}mount(){jp(this,gi)._++,J(this,gi)===1&&(ze(this,Iu,US.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onFocus())})),ze(this,Au,zv.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onOnline())})))}unmount(){var e,t;jp(this,gi)._--,J(this,gi)===0&&((e=J(this,Iu))==null||e.call(this),ze(this,Iu,void 0),(t=J(this,Au))==null||t.call(this),ze(this,Au,void 0))}isFetching(e){return J(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=J(this,ir).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(uu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return J(this,ir).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=J(this,ir).get(n.queryHash),o=a==null?void 0:a.state.data,i=lB(t,o);if(i!==void 0)return J(this,ir).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return hr.batch(()=>J(this,ir).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=J(this,ir);hr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=J(this,ir),n={type:"active",...e};return hr.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=hr.batch(()=>J(this,ir).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Zn).catch(Zn)}invalidateQueries(e={},t={}){return hr.batch(()=>{if(J(this,ir).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=hr.batch(()=>J(this,ir).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Zn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=J(this,ir).build(this,t);return r.isStaleByTime(uu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=fP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=fP(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zv.isOnline()?J(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,ir)}getMutationCache(){return J(this,hi)}getDefaultOptions(){return J(this,vi)}setDefaultOptions(e){ze(this,vi,e)}setQueryDefaults(e,t){J(this,ku).set(Ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ku).values()];let r={};return t.forEach(n=>{vf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){J(this,ju).set(Ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,ju).values()];let r={};return t.forEach(n=>{vf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===KI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,vi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,ir).clear(),J(this,hi).clear()}},ir=new WeakMap,hi=new WeakMap,vi=new WeakMap,ku=new WeakMap,ju=new WeakMap,gi=new WeakMap,Iu=new WeakMap,Au=new WeakMap,Tk),wn,wt,Bf,ln,$s,Mu,Ha,zf,Fu,Nu,ks,js,mi,Lu,Is,ud,Vf,$1,Uf,k1,Wf,j1,Hf,I1,qf,A1,Kf,M1,Gf,F1,tm,tA,$k,_B=($k=class extends uc{constructor(t,r){super();Xe(this,Is);Xe(this,Vf);Xe(this,Uf);Xe(this,Wf);Xe(this,Hf);Xe(this,qf);Xe(this,Kf);Xe(this,Gf);Xe(this,tm);Xe(this,wn,void 0);Xe(this,wt,void 0);Xe(this,Bf,void 0);Xe(this,ln,void 0);Xe(this,$s,void 0);Xe(this,Mu,void 0);Xe(this,Ha,void 0);Xe(this,zf,void 0);Xe(this,Fu,void 0);Xe(this,Nu,void 0);Xe(this,ks,void 0);Xe(this,js,void 0);Xe(this,mi,void 0);Xe(this,Lu,new Set);this.options=r,ze(this,wn,t),ze(this,Ha,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,wt).addObserver(this),hP(J(this,wt),this.options)?pt(this,Is,ud).call(this):this.updateResult(),pt(this,Hf,I1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return N1(J(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return N1(J(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,qf,A1).call(this),pt(this,Kf,M1).call(this),J(this,wt).removeObserver(this)}setOptions(t,r){const n=this.options,a=J(this,wt);if(this.options=J(this,wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oa(this.options.enabled,J(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Gf,F1).call(this),J(this,wt).setOptions(this.options),n._defaulted&&!Bv(this.options,n)&&J(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,wt),observer:this});const o=this.hasListeners();o&&vP(J(this,wt),a,this.options,n)&&pt(this,Is,ud).call(this),this.updateResult(r),o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||uu(this.options.staleTime,J(this,wt))!==uu(n.staleTime,J(this,wt)))&&pt(this,Vf,$1).call(this);const i=pt(this,Uf,k1).call(this);o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||i!==J(this,mi))&&pt(this,Wf,j1).call(this,i)}getOptimisticResult(t){const r=J(this,wn).getQueryCache().build(J(this,wn),t),n=this.createResult(r,t);return EB(this,n)&&(ze(this,ln,n),ze(this,Mu,this.options),ze(this,$s,J(this,wt).state)),n}getCurrentResult(){return J(this,ln)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){J(this,Lu).add(t)}getCurrentQuery(){return J(this,wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=J(this,wn).defaultQueryOptions(t),n=J(this,wn).getQueryCache().build(J(this,wn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return pt(this,Is,ud).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,ln)))}createResult(t,r){var E;const n=J(this,wt),a=this.options,o=J(this,ln),i=J(this,$s),s=J(this,Mu),l=t!==n?t.state:J(this,Bf),{state:c}=t;let f={...c},p=!1,v;if(r._optimisticResults){const w=this.hasListeners(),O=!w&&hP(t,r),P=w&&vP(t,n,r,a);(O||P)&&(f={...f,...ZI(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:S}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(i==null?void 0:i.data)&&r.select===J(this,zf))v=J(this,Fu);else try{ze(this,zf,r.select),v=r.select(f.data),v=T1(o==null?void 0:o.data,v,r),ze(this,Fu,v),ze(this,Ha,null)}catch(w){ze(this,Ha,w)}else v=f.data;if(r.placeholderData!==void 0&&v===void 0&&S==="pending"){let w;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))w=o.data;else if(w=typeof r.placeholderData=="function"?r.placeholderData((E=J(this,Nu))==null?void 0:E.state.data,J(this,Nu)):r.placeholderData,r.select&&w!==void 0)try{w=r.select(w),ze(this,Ha,null)}catch(O){ze(this,Ha,O)}w!==void 0&&(S="success",v=T1(o==null?void 0:o.data,w,r),p=!0)}J(this,Ha)&&(g=J(this,Ha),v=J(this,Fu),y=Date.now(),S="error");const x=f.fetchStatus==="fetching",m=S==="pending",b=S==="error",h=m&&x,_=v!==void 0;return{status:S,fetchStatus:f.fetchStatus,isPending:m,isSuccess:S==="success",isError:b,isInitialLoading:h,isLoading:h,data:v,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!m,isLoadingError:b&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&_,isStale:WS(t,r),refetch:this.refetch}}updateResult(t){const r=J(this,ln),n=this.createResult(J(this,wt),this.options);if(ze(this,$s,J(this,wt).state),ze(this,Mu,this.options),J(this,$s).data!==void 0&&ze(this,Nu,J(this,wt)),Bv(n,r))return;ze(this,ln,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!J(this,Lu).size)return!0;const u=new Set(s??J(this,Lu));return this.options.throwOnError&&u.add("error"),Object.keys(J(this,ln)).some(l=>{const c=l;return J(this,ln)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),pt(this,tm,tA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Hf,I1).call(this)}},wn=new WeakMap,wt=new WeakMap,Bf=new WeakMap,ln=new WeakMap,$s=new WeakMap,Mu=new WeakMap,Ha=new WeakMap,zf=new WeakMap,Fu=new WeakMap,Nu=new WeakMap,ks=new WeakMap,js=new WeakMap,mi=new WeakMap,Lu=new WeakMap,Is=new WeakSet,ud=function(t){pt(this,Gf,F1).call(this);let r=J(this,wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Zn)),r},Vf=new WeakSet,$1=function(){pt(this,qf,A1).call(this);const t=uu(this.options.staleTime,J(this,wt));if(Ku||J(this,ln).isStale||!P1(t))return;const n=HI(J(this,ln).dataUpdatedAt,t)+1;ze(this,ks,setTimeout(()=>{J(this,ln).isStale||this.updateResult()},n))},Uf=new WeakSet,k1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,wt)):this.options.refetchInterval)??!1},Wf=new WeakSet,j1=function(t){pt(this,Kf,M1).call(this),ze(this,mi,t),!(Ku||Oa(this.options.enabled,J(this,wt))===!1||!P1(J(this,mi))||J(this,mi)===0)&&ze(this,js,setInterval(()=>{(this.options.refetchIntervalInBackground||US.isFocused())&&pt(this,Is,ud).call(this)},J(this,mi)))},Hf=new WeakSet,I1=function(){pt(this,Vf,$1).call(this),pt(this,Wf,j1).call(this,pt(this,Uf,k1).call(this))},qf=new WeakSet,A1=function(){J(this,ks)&&(clearTimeout(J(this,ks)),ze(this,ks,void 0))},Kf=new WeakSet,M1=function(){J(this,js)&&(clearInterval(J(this,js)),ze(this,js,void 0))},Gf=new WeakSet,F1=function(){const t=J(this,wn).getQueryCache().build(J(this,wn),this.options);if(t===J(this,wt))return;const r=J(this,wt);ze(this,wt,t),ze(this,Bf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},tm=new WeakSet,tA=function(t){hr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(J(this,ln))}),J(this,wn).getQueryCache().notify({query:J(this,wt),type:"observerResultsUpdated"})})},$k);function CB(e,t){return Oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hP(e,t){return CB(e,t)||e.state.data!==void 0&&N1(e,t,t.refetchOnMount)}function N1(e,t,r){if(Oa(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&WS(e,t)}return!1}function vP(e,t,r,n){return(e!==t||Oa(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&WS(e,r)}function WS(e,t){return Oa(t.enabled,e)!==!1&&e.isStaleByTime(uu(t.staleTime,e))}function EB(e,t){return!Bv(e.getCurrentResult(),t)}var yi,bi,Sn,_o,Du,Fh,Qf,L1,kk,OB=(kk=class extends uc{constructor(r,n){super();Xe(this,Du);Xe(this,Qf);Xe(this,yi,void 0);Xe(this,bi,void 0);Xe(this,Sn,void 0);Xe(this,_o,void 0);ze(this,yi,r),this.setOptions(n),this.bindMethods(),pt(this,Du,Fh).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=J(this,yi).defaultMutationOptions(r),Bv(this.options,n)||J(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ks(n.mutationKey)!==Ks(this.options.mutationKey)?this.reset():((a=J(this,Sn))==null?void 0:a.state.status)==="pending"&&J(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=J(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this,r)}getCurrentResult(){return J(this,bi)}reset(){var r;(r=J(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this)}mutate(r,n){var a;return ze(this,_o,n),(a=J(this,Sn))==null||a.removeObserver(this),ze(this,Sn,J(this,yi).getMutationCache().build(J(this,yi),this.options)),J(this,Sn).addObserver(this),J(this,Sn).execute(r)}},yi=new WeakMap,bi=new WeakMap,Sn=new WeakMap,_o=new WeakMap,Du=new WeakSet,Fh=function(){var n;const r=((n=J(this,Sn))==null?void 0:n.state)??eA();ze(this,bi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Qf=new WeakSet,L1=function(r){hr.batch(()=>{var n,a,o,i,s,u,l,c;if(J(this,_o)&&this.hasListeners()){const f=J(this,bi).variables,p=J(this,bi).context;(r==null?void 0:r.type)==="success"?((a=(n=J(this,_o)).onSuccess)==null||a.call(n,r.data,f,p),(i=(o=J(this,_o)).onSettled)==null||i.call(o,r.data,null,f,p)):(r==null?void 0:r.type)==="error"&&((u=(s=J(this,_o)).onError)==null||u.call(s,r.error,f,p),(c=(l=J(this,_o)).onSettled)==null||c.call(l,void 0,r.error,f,p))}this.listeners.forEach(f=>{f(J(this,bi))})})},kk),rA=d.createContext(void 0),Fa=e=>{const t=d.useContext(rA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PB=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(rA.Provider,{value:e,children:t})),nA=d.createContext(!1),RB=()=>d.useContext(nA);nA.Provider;function TB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $B=d.createContext(TB()),kB=()=>d.useContext($B);function aA(e,t){return typeof e=="function"?e(...t):!!e}function jB(){}var IB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},AB=e=>{d.useEffect(()=>{e.clearReset()},[e])},MB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&aA(r,[e.error,n]),FB=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},NB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,LB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function DB(e,t,r){var l,c,f,p;const n=Fa(r),a=RB(),o=kB(),i=n.defaultQueryOptions(e);(c=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||c.call(l,i),i._optimisticResults=a?"isRestoring":"optimistic",FB(i),IB(i,o),AB(o);const[s]=d.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(d.useSyncExternalStore(d.useCallback(v=>{const g=a?()=>{}:s.subscribe(hr.batchCalls(v));return s.updateResult(),g},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),NB(i,u))throw LB(i,s,o);if(MB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return(p=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,i,u),i.notifyOnChangeProps?u:s.trackResult(u)}function il(e,t){return DB(e,_B,t)}function bm(e,t){const r=Fa(t),[n]=d.useState(()=>new OB(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(hr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,s)=>{n.mutate(i,s).catch(jB)},[n]);if(a.error&&aA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function Sb(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function p1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var M6=typeof WeakMap=="function"?WeakMap:Map;function yI(e,t,r){r=To(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Mv||(Mv=!0,_1=n),p1(e,t)},r}function bI(e,t,r){r=To(-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(){p1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){p1(e,t),typeof n!="function"&&(ki===null?ki=new Set([this]):ki.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function UO(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new M6;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=Q6.bind(null,e,t,r),t.then(e,e))}function WO(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 HO(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=To(-1,1),t.tag=2,$i(r,t,1))),r.lanes|=1),e)}var F6=Bo.ReactCurrentOwner,En=!1;function cn(e,t,r,n){t.child=e===null?Gj(t,null,r,n):Uu(t,e.child,r,n)}function qO(e,t,r,n,a){r=r.render;var o=t.ref;return su(t,a),n=ES(e,t,r,n,o,a),r=OS(),e!==null&&!En?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Mo(e,t,a)):(Yt&&r&&pS(t),t.flags|=1,cn(e,t,n,a),t.child)}function KO(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!FS(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,xI(e,t,o,n,a)):(e=Mh(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:af,r(i,n)&&e.ref===t.ref)return Mo(e,t,a)}return t.flags|=1,e=Ii(o,n),e.ref=t.ref,e.return=t,t.child=e}function xI(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(af(o,n)&&e.ref===t.ref)if(En=!1,t.pendingProps=n=o,(e.lanes&a)!==0)e.flags&131072&&(En=!0);else return t.lanes=e.lanes,Mo(e,t,a)}return h1(e,t,r,n,a)}function wI(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},Ht(ql,Ln),Ln|=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,Ht(ql,Ln),Ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Ht(ql,Ln),Ln|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ht(ql,Ln),Ln|=n;return cn(e,t,a,r),t.child}function SI(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function h1(e,t,r,n,a){var o=Pn(r)?Vs:tn.current;return o=zu(t,o),su(t,a),r=ES(e,t,r,n,o,a),n=OS(),e!==null&&!En?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Mo(e,t,a)):(Yt&&n&&pS(t),t.flags|=1,cn(e,t,r,a),t.child)}function GO(e,t,r,n,a){if(Pn(r)){var o=!0;Ev(t)}else o=!1;if(su(t,a),t.stateNode===null)jh(e,t),mI(t,r,n),f1(t,r,n,a),n=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,l=r.contextType;typeof l=="object"&&l!==null?l=ua(l):(l=Pn(r)?Vs:tn.current,l=zu(t,l));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==n||u!==l)&&VO(t,i,n,l),ai=!1;var p=t.memoizedState;i.state=p,$v(t,n,i,a),u=t.memoizedState,s!==n||p!==u||On.current||ai?(typeof c=="function"&&(d1(t,r,c,n),u=t.memoizedState),(s=ai||zO(t,r,s,n,p,u,l))?(f||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=u),i.props=n,i.state=u,i.context=l,n=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Xj(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:wa(t.type,s),i.props=l,f=t.pendingProps,p=i.context,u=r.contextType,typeof u=="object"&&u!==null?u=ua(u):(u=Pn(r)?Vs:tn.current,u=zu(t,u));var v=r.getDerivedStateFromProps;(c=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||p!==u)&&VO(t,i,n,u),ai=!1,p=t.memoizedState,i.state=p,$v(t,n,i,a);var g=t.memoizedState;s!==f||p!==g||On.current||ai?(typeof v=="function"&&(d1(t,r,v,n),g=t.memoizedState),(l=ai||zO(t,r,l,n,p,g,u)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,g,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,g,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),i.props=n,i.state=g,i.context=u,n=l):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return v1(e,t,r,n,o,a)}function v1(e,t,r,n,a,o){SI(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return a&&IO(t,r,!1),Mo(e,t,o);n=t.stateNode,F6.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Uu(t,e.child,null,o),t.child=Uu(t,null,s,o)):cn(e,t,s,o),t.memoizedState=n.state,a&&IO(t,r,!0),t.child}function _I(e){var t=e.stateNode;t.pendingContext?jO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jO(e,t.context,!1),wS(e,t.containerInfo)}function QO(e,t,r,n,a){return Vu(),vS(a),t.flags|=256,cn(e,t,r,n),t.child}var g1={dehydrated:null,treeContext:null,retryLane:0};function m1(e){return{baseLanes:e,cachePool:null,transitions:null}}function CI(e,t,r){var n=t.pendingProps,a=er.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ht(er,a&1),e===null)return u1(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=fm(i,n,0,null),e=Ms(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=m1(r),t.memoizedState=g1,e):TS(t,i));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return N6(e,t,i,n,s,a,r);if(o){o=n.fallback,i=t.mode,a=e.child,s=a.sibling;var u={mode:"hidden",children:n.children};return!(i&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Ii(a,u),n.subtreeFlags=a.subtreeFlags&14680064),s!==null?o=Ii(s,o):(o=Ms(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?m1(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=g1,n}return o=e.child,e=o.sibling,n=Ii(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 TS(e,t){return t=fm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qp(e,t,r,n){return n!==null&&vS(n),Uu(t,e.child,null,r),e=TS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function N6(e,t,r,n,a,o,i){if(r)return t.flags&256?(t.flags&=-257,n=Sb(Error(Ie(422))),qp(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=fm({mode:"visible",children:n.children},a,0,null),o=Ms(o,a,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Uu(t,e.child,null,i),t.child.memoizedState=m1(i),t.memoizedState=g1,o);if(!(t.mode&1))return qp(e,t,i,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(Ie(419)),n=Sb(o,n,void 0),qp(e,t,i,n)}if(s=(i&e.childLanes)!==0,En||s){if(n=Ar,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,Ao(e,a),ka(n,e,a,-1))}return MS(),n=Sb(Error(Ie(421))),qp(e,t,i,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=X6.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Vn=Ti(a.nextSibling),Un=t,Yt=!0,Ea=null,e!==null&&(na[aa++]=Eo,na[aa++]=Oo,na[aa++]=Us,Eo=e.id,Oo=e.overflow,Us=t),t=TS(t,n.children),t.flags|=4096,t)}function XO(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),c1(e.return,t,r)}function _b(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 EI(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(cn(e,t,n.children,r),n=er.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&&XO(e,r,t);else if(e.tag===19)XO(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(Ht(er,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&&kv(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),_b(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&&kv(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}_b(t,!0,r,null,o);break;case"together":_b(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Hs|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ie(153));if(t.child!==null){for(e=t.child,r=Ii(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ii(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function L6(e,t,r){switch(t.tag){case 3:_I(t),Vu();break;case 5:Yj(t);break;case 1:Pn(t.type)&&Ev(t);break;case 4:wS(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Ht(Rv,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ht(er,er.current&1),t.flags|=128,null):r&t.child.childLanes?CI(e,t,r):(Ht(er,er.current&1),e=Mo(e,t,r),e!==null?e.sibling:null);Ht(er,er.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return EI(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ht(er,er.current),n)break;return null;case 22:case 23:return t.lanes=0,wI(e,t,r)}return Mo(e,t,r)}var OI,y1,PI,RI;OI=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}};y1=function(){};PI=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,bs(eo.current);var o=null;switch(r){case"input":a=B0(e,a),n=B0(e,n),o=[];break;case"select":a=rr({},a,{value:void 0}),n=rr({},n,{value:void 0}),o=[];break;case"textarea":a=U0(e,a),n=U0(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=_v)}H0(r,n);var i;r=null;for(l in a)if(!n.hasOwnProperty(l)&&a.hasOwnProperty(l)&&a[l]!=null)if(l==="style"){var s=a[l];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Yd.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(s=a!=null?a[l]:void 0,n.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Yd.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Kt("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};RI=function(e,t,r,n){r!==n&&(t.flags|=4)};function Bc(e,t){if(!Yt)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 Xr(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 D6(e,t,r){var n=t.pendingProps;switch(hS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:return Pn(t.type)&&Cv(),Xr(t),null;case 3:return n=t.stateNode,Wu(),Qt(On),Qt(tn),_S(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ea!==null&&(O1(Ea),Ea=null))),y1(e,t),Xr(t),null;case 5:SS(t);var a=bs(cf.current);if(r=t.type,e!==null&&t.stateNode!=null)PI(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ie(166));return Xr(t),null}if(e=bs(eo.current),Wp(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Qa]=t,n[lf]=o,e=(t.mode&1)!==0,r){case"dialog":Kt("cancel",n),Kt("close",n);break;case"iframe":case"object":case"embed":Kt("load",n);break;case"video":case"audio":for(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[Qa]=t,e[lf]=n,OI(e,t,!1,!1),t.stateNode=e;e:{switch(i=q0(r,n),r){case"dialog":Kt("cancel",e),Kt("close",e),a=n;break;case"iframe":case"object":case"embed":Kt("load",e),a=n;break;case"video":case"audio":for(a=0;aqu&&(t.flags|=128,n=!0,Bc(o,!1),t.lanes=4194304)}else{if(!n)if(e=kv(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Bc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Yt)return Xr(t),null}else 2*pr()-o.renderingStartTime>qu&&r!==1073741824&&(t.flags|=128,n=!0,Bc(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=pr(),t.sibling=null,r=er.current,Ht(er,n?r&1|2:r&1),t):(Xr(t),null);case 22:case 23:return AS(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&1073741824&&(Xr(t),t.subtreeFlags&6&&(t.flags|=8192)):Xr(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function B6(e,t){switch(hS(t),t.tag){case 1:return Pn(t.type)&&Cv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wu(),Qt(On),Qt(tn),_S(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return SS(t),null;case 13:if(Qt(er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Vu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(er),null;case 4:return Wu(),null;case 10:return yS(t.type._context),null;case 22:case 23:return AS(),null;case 24:return null;default:return null}}var Kp=!1,Zr=!1,z6=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Hl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){sr(e,t,n)}else r.current=null}function b1(e,t,r){try{r()}catch(n){sr(e,t,n)}}var YO=!1;function V6(e,t){if(r1=xv,e=Ij(),fS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var v;f!==r||a!==0&&f.nodeType!==3||(s=i+a),f!==o||n!==0&&f.nodeType!==3||(u=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===r&&++l===a&&(s=i),p===o&&++c===n&&(u=i),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(n1={focusedElem:e,selectionRange:r},xv=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,S=g.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:wa(t.type,y),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){sr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return g=YO,YO=!1,g}function _d(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&b1(t,r,o)}a=a.next}while(a!==n)}}function cm(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 x1(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 TI(e){var t=e.alternate;t!==null&&(e.alternate=null,TI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qa],delete t[lf],delete t[i1],delete t[C6],delete t[E6])),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 $I(e){return e.tag===5||e.tag===3||e.tag===4}function JO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$I(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 w1(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=_v));else if(n!==4&&(e=e.child,e!==null))for(w1(e,t,r),e=e.sibling;e!==null;)w1(e,t,r),e=e.sibling}function S1(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(S1(e,t,r),e=e.sibling;e!==null;)S1(e,t,r),e=e.sibling}var Dr=null,_a=!1;function Xo(e,t,r){for(r=r.child;r!==null;)kI(e,t,r),r=r.sibling}function kI(e,t,r){if(Za&&typeof Za.onCommitFiberUnmount=="function")try{Za.onCommitFiberUnmount(rm,r)}catch{}switch(r.tag){case 5:Zr||Hl(r,t);case 6:var n=Dr,a=_a;Dr=null,Xo(e,t,r),Dr=n,_a=a,Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Dr.removeChild(r.stateNode));break;case 18:Dr!==null&&(_a?(e=Dr,r=r.stateNode,e.nodeType===8?gb(e.parentNode,r):e.nodeType===1&&gb(e,r),rf(e)):gb(Dr,r.stateNode));break;case 4:n=Dr,a=_a,Dr=r.stateNode.containerInfo,_a=!0,Xo(e,t,r),Dr=n,_a=a;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&b1(r,t,i),a=a.next}while(a!==n)}Xo(e,t,r);break;case 1:if(!Zr&&(Hl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){sr(r,t,s)}Xo(e,t,r);break;case 21:Xo(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Xo(e,t,r),Zr=n):Xo(e,t,r);break;default:Xo(e,t,r)}}function ZO(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new z6),t.forEach(function(n){var a=Y6.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=i),n&=~o}if(n=a,n=pr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*W6(n/1960))-n,10e?16:e,wi===null)var n=!1;else{if(e=wi,wi=null,Fv=0,Ct&6)throw Error(Ie(331));var a=Ct;for(Ct|=4,Ve=e.current;Ve!==null;){var o=Ve,i=o.child;if(Ve.flags&16){var s=o.deletions;if(s!==null){for(var u=0;upr()-jS?As(e,0):kS|=r),Rn(e,t)}function DI(e,t){t===0&&(e.mode&1?(t=Lp,Lp<<=1,!(Lp&130023424)&&(Lp=4194304)):t=1);var r=pn();e=Ao(e,t),e!==null&&(Yf(e,t,r),Rn(e,r))}function X6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),DI(e,r)}function Y6(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(Ie(314))}n!==null&&n.delete(t),DI(e,r)}var BI;BI=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)En=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return En=!1,L6(e,t,r);En=!!(e.flags&131072)}else En=!1,Yt&&t.flags&1048576&&Wj(t,Pv,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;jh(e,t),e=t.pendingProps;var a=zu(t,tn.current);su(t,r),a=ES(null,t,n,e,a,r);var o=OS();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,Pn(n)?(o=!0,Ev(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xS(t),a.updater=um,t.stateNode=a,a._reactInternals=t,f1(t,n,e,r),t=v1(null,t,n,!0,o,r)):(t.tag=0,Yt&&o&&pS(t),cn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(jh(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Z6(n),e=wa(n,e),a){case 0:t=h1(null,t,n,e,r);break e;case 1:t=GO(null,t,n,e,r);break e;case 11:t=qO(null,t,n,e,r);break e;case 14:t=KO(null,t,n,wa(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),h1(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),GO(e,t,n,a,r);case 3:e:{if(_I(t),e===null)throw Error(Ie(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Xj(e,t),$v(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=Hu(Error(Ie(423)),t),t=QO(e,t,n,r,a);break e}else if(n!==a){a=Hu(Error(Ie(424)),t),t=QO(e,t,n,r,a);break e}else for(Vn=Ti(t.stateNode.containerInfo.firstChild),Un=t,Yt=!0,Ea=null,r=Gj(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vu(),n===a){t=Mo(e,t,r);break e}cn(e,t,n,r)}t=t.child}return t;case 5:return Yj(t),e===null&&u1(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,a1(n,a)?i=null:o!==null&&a1(n,o)&&(t.flags|=32),SI(e,t),cn(e,t,i,r),t.child;case 6:return e===null&&u1(t),null;case 13:return CI(e,t,r);case 4:return wS(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Uu(t,null,n,r):cn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),qO(e,t,n,a,r);case 7:return cn(e,t,t.pendingProps,r),t.child;case 8:return cn(e,t,t.pendingProps.children,r),t.child;case 12:return cn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Ht(Rv,n._currentValue),n._currentValue=i,o!==null)if(Ia(o.value,i)){if(o.children===a.children&&!On.current){t=Mo(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=To(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),c1(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Ie(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),c1(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}cn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,su(t,r),a=ua(a),n=n(a),t.flags|=1,cn(e,t,n,r),t.child;case 14:return n=t.type,a=wa(n,t.pendingProps),a=wa(n.type,a),KO(e,t,n,a,r);case 15:return xI(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:wa(n,a),jh(e,t),t.tag=1,Pn(n)?(e=!0,Ev(t)):e=!1,su(t,r),mI(t,n,a),f1(t,n,a,r),v1(null,t,n,!0,e,r);case 19:return EI(e,t,r);case 22:return wI(e,t,r)}throw Error(Ie(156,t.tag))};function zI(e,t){return hj(e,t)}function J6(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 ia(e,t,r,n){return new J6(e,t,r,n)}function FS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Z6(e){if(typeof e=="function")return FS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tS)return 11;if(e===rS)return 14}return 2}function Ii(e,t){var r=e.alternate;return r===null?(r=ia(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 Mh(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")FS(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fl:return Ms(r.children,a,o,t);case eS:i=8,a|=8;break;case F0:return e=ia(12,r,t,a|2),e.elementType=F0,e.lanes=o,e;case N0:return e=ia(13,r,t,a),e.elementType=N0,e.lanes=o,e;case L0:return e=ia(19,r,t,a),e.elementType=L0,e.lanes=o,e;case Yk:return fm(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qk:i=10;break e;case Xk:i=9;break e;case tS:i=11;break e;case rS:i=14;break e;case ni:i=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ia(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Ms(e,t,r,n){return e=ia(7,e,n,t),e.lanes=r,e}function fm(e,t,r,n){return e=ia(22,e,n,t),e.elementType=Yk,e.lanes=r,e.stateNode={isHidden:!1},e}function Cb(e,t,r){return e=ia(6,e,null,t),e.lanes=r,e}function Eb(e,t,r){return t=ia(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eB(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=ob(0),this.expirationTimes=ob(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ob(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function NS(e,t,r,n,a,o,i,s,u){return e=new eB(e,t,r,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ia(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},xS(o),e}function tB(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HI)}catch(e){console.error(e)}}HI(),Hk.exports=Gn;var tp=Hk.exports;const ld=Mr(tp),iB=Ik({__proto__:null,default:ld},[tp]);var sP=tp;A0.createRoot=sP.createRoot,A0.hydrateRoot=sP.hydrateRoot;var zS=d.createContext(void 0);zS.displayName="AuthContext";var mm={loginUrl:"/login",afterLoginUrl:"/"},sB=function(){return d.useContext(zS)};const zo=sB;var uc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ku=typeof window>"u"||"Deno"in globalThis;function Zn(){}function lB(e,t){return typeof e=="function"?e(t):e}function P1(e){return typeof e=="number"&&e>=0&&e!==1/0}function qI(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uu(e,t){return typeof e=="function"?e(t):e}function Oa(e,t){return typeof e=="function"?e(t):e}function lP(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:s}=e;if(i){if(n){if(t.queryHash!==VS(i,t.options))return!1}else if(!vf(t.queryKey,i))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function uP(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Ks(t.options.mutationKey)!==Ks(o))return!1}else if(!vf(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function VS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ks)(e)}function Ks(e){return JSON.stringify(e,(t,r)=>R1(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function vf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!vf(e[r],t[r])):!1}function KI(e,t){if(e===t)return e;const r=cP(e)&&cP(t);if(r||R1(e)&&R1(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,s=r?[]:{};let u=0;for(let l=0;l{setTimeout(t,e)})}function T1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?KI(e,t):t}function cB(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function dB(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var GI=Symbol();function QI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===GI?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Os,fi,Ou,_k,fB=(_k=class extends uc{constructor(){super();Xe(this,Os,void 0);Xe(this,fi,void 0);Xe(this,Ou,void 0);ze(this,Ou,t=>{if(!Ku&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){J(this,fi)||this.setEventListener(J(this,Ou))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,fi))==null||t.call(this),ze(this,fi,void 0))}setEventListener(t){var r;ze(this,Ou,t),(r=J(this,fi))==null||r.call(this),ze(this,fi,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){J(this,Os)!==t&&(ze(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof J(this,Os)=="boolean"?J(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,fi=new WeakMap,Ou=new WeakMap,_k),US=new fB,Pu,pi,Ru,Ck,pB=(Ck=class extends uc{constructor(){super();Xe(this,Pu,!0);Xe(this,pi,void 0);Xe(this,Ru,void 0);ze(this,Ru,t=>{if(!Ku&&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(){J(this,pi)||this.setEventListener(J(this,Ru))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,pi))==null||t.call(this),ze(this,pi,void 0))}setEventListener(t){var r;ze(this,Ru,t),(r=J(this,pi))==null||r.call(this),ze(this,pi,t(this.setOnline.bind(this)))}setOnline(t){J(this,Pu)!==t&&(ze(this,Pu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return J(this,Pu)}},Pu=new WeakMap,pi=new WeakMap,Ru=new WeakMap,Ck),Bv=new pB;function hB(e){return Math.min(1e3*2**e,3e4)}function XI(e){return(e??"online")==="online"?Bv.isOnline():!0}var YI=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ob(e){return e instanceof YI}function JI(e){let t=!1,r=0,n=!1,a,o,i;const s=new Promise((x,m)=>{o=x,i=m}),u=x=>{var m;n||(g(new YI(x)),(m=e.abort)==null||m.call(e))},l=()=>{t=!0},c=()=>{t=!1},f=()=>US.isFocused()&&(e.networkMode==="always"||Bv.isOnline())&&e.canRun(),p=()=>XI(e.networkMode)&&e.canRun(),v=x=>{var m;n||(n=!0,(m=e.onSuccess)==null||m.call(e,x),a==null||a(),o(x))},g=x=>{var m;n||(n=!0,(m=e.onError)==null||m.call(e,x),a==null||a(),i(x))},y=()=>new Promise(x=>{var m;a=b=>{(n||f())&&x(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var x;a=void 0,n||(x=e.onContinue)==null||x.call(e)}),S=()=>{if(n)return;let x;const m=r===0?e.initialPromise:void 0;try{x=m??e.fn()}catch(b){x=Promise.reject(b)}Promise.resolve(x).then(v).catch(b=>{var w;if(n)return;const h=e.retry??(Ku?0:3),_=e.retryDelay??hB,C=typeof _=="function"?_(r,b):_,E=h===!0||typeof h=="number"&&rf()?void 0:y()).then(()=>{t?g(b):S()})})};return{promise:s,cancel:u,continue:()=>(a==null||a(),s),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?S():y().then(S),s)}}function vB(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=s=>setTimeout(s,0);const o=s=>{t?e.push(s):a(()=>{r(s)})},i=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(u=>{r(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||i()}return u},batchCalls:s=>(...u)=>{o(()=>{s(...u)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var hr=vB(),Ps,Ek,ZI=(Ek=class{constructor(){Xe(this,Ps,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),P1(this.gcTime)&&ze(this,Ps,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ku?1/0:5*60*1e3))}clearGcTimeout(){J(this,Ps)&&(clearTimeout(J(this,Ps)),ze(this,Ps,void 0))}},Ps=new WeakMap,Ek),Tu,$u,Jn,Jr,Lf,Rs,Sa,yo,Ok,gB=(Ok=class extends ZI{constructor(t){super();Xe(this,Sa);Xe(this,Tu,void 0);Xe(this,$u,void 0);Xe(this,Jn,void 0);Xe(this,Jr,void 0);Xe(this,Lf,void 0);Xe(this,Rs,void 0);ze(this,Rs,!1),ze(this,Lf,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Jn,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,Tu,mB(this.options)),this.state=t.state??J(this,Tu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,Jr))==null?void 0:t.promise}setOptions(t){this.options={...J(this,Lf),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Jn).remove(this)}setData(t,r){const n=T1(this.state.data,t,this.options);return pt(this,Sa,yo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){pt(this,Sa,yo).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=J(this,Jr))==null?void 0:n.promise;return(a=J(this,Jr))==null||a.cancel(t),r?r.then(Zn).catch(Zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,Tu))}isActive(){return this.observers.some(t=>Oa(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!qI(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=J(this,Jr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Jn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(J(this,Jr)&&(J(this,Rs)?J(this,Jr).cancel({revert:!0}):J(this,Jr).cancelRetry()),this.scheduleGc()),J(this,Jn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Sa,yo).call(this,{type:"invalidate"})}fetch(t,r){var u,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(J(this,Jr))return J(this,Jr).continueRetry(),J(this,Jr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ze(this,Rs,!0),n.signal)})},o=()=>{const f=QI(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Rs,!1),this.options.persister?this.options.persister(f,p,this):f(p)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};a(i),(u=this.options.behavior)==null||u.onFetch(i,this),ze(this,$u,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&pt(this,Sa,yo).call(this,{type:"fetch",meta:(c=i.fetchOptions)==null?void 0:c.meta});const s=f=>{var p,v,g,y;Ob(f)&&f.silent||pt(this,Sa,yo).call(this,{type:"error",error:f}),Ob(f)||((v=(p=J(this,Jn).config).onError)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ze(this,Jr,JI({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,v,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(S){s(S);return}(v=(p=J(this,Jn).config).onSuccess)==null||v.call(p,f,this),(y=(g=J(this,Jn).config).onSettled)==null||y.call(g,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(f,p)=>{pt(this,Sa,yo).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{pt(this,Sa,yo).call(this,{type:"pause"})},onContinue:()=>{pt(this,Sa,yo).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),J(this,Jr).start()}},Tu=new WeakMap,$u=new WeakMap,Jn=new WeakMap,Jr=new WeakMap,Lf=new WeakMap,Rs=new WeakMap,Sa=new WeakSet,yo=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,...eA(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 Ob(a)&&a.revert&&J(this,$u)?{...J(this,$u),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),hr.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),J(this,Jn).notify({query:this,type:"updated",action:t})})},Ok);function eA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:XI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function mB(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 Va,Pk,yB=(Pk=class extends uc{constructor(t={}){super();Xe(this,Va,void 0);this.config=t,ze(this,Va,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??VS(a,r);let i=this.get(o);return i||(i=new gB({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){J(this,Va).has(t.queryHash)||(J(this,Va).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=J(this,Va).get(t.queryHash);r&&(t.destroy(),r===t&&J(this,Va).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,Va).get(t)}getAll(){return[...J(this,Va).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>lP(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>lP(t,n)):r}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){hr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Va=new WeakMap,Pk),Ua,sn,Ts,Wa,ei,Rk,bB=(Rk=class extends ZI{constructor(t){super();Xe(this,Wa);Xe(this,Ua,void 0);Xe(this,sn,void 0);Xe(this,Ts,void 0);this.mutationId=t.mutationId,ze(this,sn,t.mutationCache),ze(this,Ua,[]),this.state=t.state||tA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Ua).includes(t)||(J(this,Ua).push(t),this.clearGcTimeout(),J(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Ua,J(this,Ua).filter(r=>r!==t)),this.scheduleGc(),J(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Ua).length||(this.state.status==="pending"?this.scheduleGc():J(this,sn).remove(this))}continue(){var t;return((t=J(this,Ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_,C,E;ze(this,Ts,JI({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,O)=>{pt(this,Wa,ei).call(this,{type:"failed",failureCount:w,error:O})},onPause:()=>{pt(this,Wa,ei).call(this,{type:"pause"})},onContinue:()=>{pt(this,Wa,ei).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,sn).canRun(this)}));const r=this.state.status==="pending",n=!J(this,Ts).canStart();try{if(!r){pt(this,Wa,ei).call(this,{type:"pending",variables:t,isPaused:n}),await((o=(a=J(this,sn).config).onMutate)==null?void 0:o.call(a,t,this));const O=await((s=(i=this.options).onMutate)==null?void 0:s.call(i,t));O!==this.state.context&&pt(this,Wa,ei).call(this,{type:"pending",context:O,variables:t,isPaused:n})}const w=await J(this,Ts).start();return await((l=(u=J(this,sn).config).onSuccess)==null?void 0:l.call(u,w,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,w,t,this.state.context)),await((v=(p=J(this,sn).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,w,null,t,this.state.context)),pt(this,Wa,ei).call(this,{type:"success",data:w}),w}catch(w){try{throw await((x=(S=J(this,sn).config).onError)==null?void 0:x.call(S,w,t,this.state.context,this)),await((b=(m=this.options).onError)==null?void 0:b.call(m,w,t,this.state.context)),await((_=(h=J(this,sn).config).onSettled)==null?void 0:_.call(h,void 0,w,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,w,t,this.state.context)),w}finally{pt(this,Wa,ei).call(this,{type:"error",error:w})}}finally{J(this,sn).runNext(this)}}},Ua=new WeakMap,sn=new WeakMap,Ts=new WeakMap,Wa=new WeakSet,ei=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),hr.batch(()=>{J(this,Ua).forEach(n=>{n.onMutationUpdate(t)}),J(this,sn).notify({mutation:this,type:"updated",action:t})})},Rk);function tA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,Df,Tk,xB=(Tk=class extends uc{constructor(t={}){super();Xe(this,Fn,void 0);Xe(this,Df,void 0);this.config=t,ze(this,Fn,new Map),ze(this,Df,Date.now())}build(t,r,n){const a=new bB({mutationCache:this,mutationId:++jp(this,Df)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){const r=Xp(t),n=J(this,Fn).get(r)??[];n.push(t),J(this,Fn).set(r,n),this.notify({type:"added",mutation:t})}remove(t){var n;const r=Xp(t);if(J(this,Fn).has(r)){const a=(n=J(this,Fn).get(r))==null?void 0:n.filter(o=>o!==t);a&&(a.length===0?J(this,Fn).delete(r):J(this,Fn).set(r,a))}this.notify({type:"removed",mutation:t})}canRun(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}runNext(t){var n;const r=(n=J(this,Fn).get(Xp(t)))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){hr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...J(this,Fn).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>uP(r,n))}findAll(t={}){return this.getAll().filter(r=>uP(t,r))}notify(t){hr.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return hr.batch(()=>Promise.all(t.map(r=>r.continue().catch(Zn))))}},Fn=new WeakMap,Df=new WeakMap,Tk);function Xp(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function fP(e){return{onFetch:(t,r)=>{var c,f,p,v,g;const n=t.options,a=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const l=async()=>{let y=!1;const S=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},x=QI(t.options,t.fetchOptions),m=async(b,h,_)=>{if(y)return Promise.reject();if(h==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:t.queryKey,pageParam:h,direction:_?"backward":"forward",meta:t.options.meta};S(C);const E=await x(C),{maxPages:w}=t.options,O=_?dB:cB;return{pages:O(b.pages,E,w),pageParams:O(b.pageParams,h,w)}};if(a&&o.length){const b=a==="backward",h=b?wB:pP,_={pages:o,pageParams:i},C=h(n,_);s=await m(_,C,b)}else{const b=e??o.length;do{const h=u===0?i[0]??n.initialPageParam:pP(n,s);if(u>0&&h==null)break;s=await m(s,h),u++}while(u{var y,S;return(S=(y=t.options).persister)==null?void 0:S.call(y,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function pP(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 wB(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 ir,hi,vi,ku,ju,gi,Iu,Au,$k,SB=($k=class{constructor(e={}){Xe(this,ir,void 0);Xe(this,hi,void 0);Xe(this,vi,void 0);Xe(this,ku,void 0);Xe(this,ju,void 0);Xe(this,gi,void 0);Xe(this,Iu,void 0);Xe(this,Au,void 0);ze(this,ir,e.queryCache||new yB),ze(this,hi,e.mutationCache||new xB),ze(this,vi,e.defaultOptions||{}),ze(this,ku,new Map),ze(this,ju,new Map),ze(this,gi,0)}mount(){jp(this,gi)._++,J(this,gi)===1&&(ze(this,Iu,US.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onFocus())})),ze(this,Au,Bv.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,ir).onOnline())})))}unmount(){var e,t;jp(this,gi)._--,J(this,gi)===0&&((e=J(this,Iu))==null||e.call(this),ze(this,Iu,void 0),(t=J(this,Au))==null||t.call(this),ze(this,Au,void 0))}isFetching(e){return J(this,ir).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,hi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=J(this,ir).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(uu(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return J(this,ir).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=J(this,ir).get(n.queryHash),o=a==null?void 0:a.state.data,i=lB(t,o);if(i!==void 0)return J(this,ir).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return hr.batch(()=>J(this,ir).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=J(this,ir).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=J(this,ir);hr.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=J(this,ir),n={type:"active",...e};return hr.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=hr.batch(()=>J(this,ir).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Zn).catch(Zn)}invalidateQueries(e={},t={}){return hr.batch(()=>{if(J(this,ir).findAll(e).forEach(n=>{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},n=hr.batch(()=>J(this,ir).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Zn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=J(this,ir).build(this,t);return r.isStaleByTime(uu(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zn).catch(Zn)}fetchInfiniteQuery(e){return e.behavior=fP(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zn).catch(Zn)}ensureInfiniteQueryData(e){return e.behavior=fP(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Bv.isOnline()?J(this,hi).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,ir)}getMutationCache(){return J(this,hi)}getDefaultOptions(){return J(this,vi)}setDefaultOptions(e){ze(this,vi,e)}setQueryDefaults(e,t){J(this,ku).set(Ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ku).values()];let r={};return t.forEach(n=>{vf(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){J(this,ju).set(Ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,ju).values()];let r={};return t.forEach(n=>{vf(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,vi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=VS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===GI&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,vi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,ir).clear(),J(this,hi).clear()}},ir=new WeakMap,hi=new WeakMap,vi=new WeakMap,ku=new WeakMap,ju=new WeakMap,gi=new WeakMap,Iu=new WeakMap,Au=new WeakMap,$k),wn,wt,Bf,ln,$s,Mu,Ha,zf,Fu,Nu,ks,js,mi,Lu,Is,ud,Vf,$1,Uf,k1,Wf,j1,Hf,I1,qf,A1,Kf,M1,Gf,F1,em,rA,kk,_B=(kk=class extends uc{constructor(t,r){super();Xe(this,Is);Xe(this,Vf);Xe(this,Uf);Xe(this,Wf);Xe(this,Hf);Xe(this,qf);Xe(this,Kf);Xe(this,Gf);Xe(this,em);Xe(this,wn,void 0);Xe(this,wt,void 0);Xe(this,Bf,void 0);Xe(this,ln,void 0);Xe(this,$s,void 0);Xe(this,Mu,void 0);Xe(this,Ha,void 0);Xe(this,zf,void 0);Xe(this,Fu,void 0);Xe(this,Nu,void 0);Xe(this,ks,void 0);Xe(this,js,void 0);Xe(this,mi,void 0);Xe(this,Lu,new Set);this.options=r,ze(this,wn,t),ze(this,Ha,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(J(this,wt).addObserver(this),hP(J(this,wt),this.options)?pt(this,Is,ud).call(this):this.updateResult(),pt(this,Hf,I1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return N1(J(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return N1(J(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,qf,A1).call(this),pt(this,Kf,M1).call(this),J(this,wt).removeObserver(this)}setOptions(t,r){const n=this.options,a=J(this,wt);if(this.options=J(this,wn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Oa(this.options.enabled,J(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Gf,F1).call(this),J(this,wt).setOptions(this.options),n._defaulted&&!Dv(this.options,n)&&J(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:J(this,wt),observer:this});const o=this.hasListeners();o&&vP(J(this,wt),a,this.options,n)&&pt(this,Is,ud).call(this),this.updateResult(r),o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||uu(this.options.staleTime,J(this,wt))!==uu(n.staleTime,J(this,wt)))&&pt(this,Vf,$1).call(this);const i=pt(this,Uf,k1).call(this);o&&(J(this,wt)!==a||Oa(this.options.enabled,J(this,wt))!==Oa(n.enabled,J(this,wt))||i!==J(this,mi))&&pt(this,Wf,j1).call(this,i)}getOptimisticResult(t){const r=J(this,wn).getQueryCache().build(J(this,wn),t),n=this.createResult(r,t);return EB(this,n)&&(ze(this,ln,n),ze(this,Mu,this.options),ze(this,$s,J(this,wt).state)),n}getCurrentResult(){return J(this,ln)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){J(this,Lu).add(t)}getCurrentQuery(){return J(this,wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=J(this,wn).defaultQueryOptions(t),n=J(this,wn).getQueryCache().build(J(this,wn),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){return pt(this,Is,ud).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),J(this,ln)))}createResult(t,r){var E;const n=J(this,wt),a=this.options,o=J(this,ln),i=J(this,$s),s=J(this,Mu),l=t!==n?t.state:J(this,Bf),{state:c}=t;let f={...c},p=!1,v;if(r._optimisticResults){const w=this.hasListeners(),O=!w&&hP(t,r),P=w&&vP(t,n,r,a);(O||P)&&(f={...f,...eA(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:S}=f;if(r.select&&f.data!==void 0)if(o&&f.data===(i==null?void 0:i.data)&&r.select===J(this,zf))v=J(this,Fu);else try{ze(this,zf,r.select),v=r.select(f.data),v=T1(o==null?void 0:o.data,v,r),ze(this,Fu,v),ze(this,Ha,null)}catch(w){ze(this,Ha,w)}else v=f.data;if(r.placeholderData!==void 0&&v===void 0&&S==="pending"){let w;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))w=o.data;else if(w=typeof r.placeholderData=="function"?r.placeholderData((E=J(this,Nu))==null?void 0:E.state.data,J(this,Nu)):r.placeholderData,r.select&&w!==void 0)try{w=r.select(w),ze(this,Ha,null)}catch(O){ze(this,Ha,O)}w!==void 0&&(S="success",v=T1(o==null?void 0:o.data,w,r),p=!0)}J(this,Ha)&&(g=J(this,Ha),v=J(this,Fu),y=Date.now(),S="error");const x=f.fetchStatus==="fetching",m=S==="pending",b=S==="error",h=m&&x,_=v!==void 0;return{status:S,fetchStatus:f.fetchStatus,isPending:m,isSuccess:S==="success",isError:b,isInitialLoading:h,isLoading:h,data:v,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!m,isLoadingError:b&&!_,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:b&&_,isStale:WS(t,r),refetch:this.refetch}}updateResult(t){const r=J(this,ln),n=this.createResult(J(this,wt),this.options);if(ze(this,$s,J(this,wt).state),ze(this,Mu,this.options),J(this,$s).data!==void 0&&ze(this,Nu,J(this,wt)),Dv(n,r))return;ze(this,ln,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!J(this,Lu).size)return!0;const u=new Set(s??J(this,Lu));return this.options.throwOnError&&u.add("error"),Object.keys(J(this,ln)).some(l=>{const c=l;return J(this,ln)[c]!==r[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),pt(this,em,rA).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Hf,I1).call(this)}},wn=new WeakMap,wt=new WeakMap,Bf=new WeakMap,ln=new WeakMap,$s=new WeakMap,Mu=new WeakMap,Ha=new WeakMap,zf=new WeakMap,Fu=new WeakMap,Nu=new WeakMap,ks=new WeakMap,js=new WeakMap,mi=new WeakMap,Lu=new WeakMap,Is=new WeakSet,ud=function(t){pt(this,Gf,F1).call(this);let r=J(this,wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Zn)),r},Vf=new WeakSet,$1=function(){pt(this,qf,A1).call(this);const t=uu(this.options.staleTime,J(this,wt));if(Ku||J(this,ln).isStale||!P1(t))return;const n=qI(J(this,ln).dataUpdatedAt,t)+1;ze(this,ks,setTimeout(()=>{J(this,ln).isStale||this.updateResult()},n))},Uf=new WeakSet,k1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(J(this,wt)):this.options.refetchInterval)??!1},Wf=new WeakSet,j1=function(t){pt(this,Kf,M1).call(this),ze(this,mi,t),!(Ku||Oa(this.options.enabled,J(this,wt))===!1||!P1(J(this,mi))||J(this,mi)===0)&&ze(this,js,setInterval(()=>{(this.options.refetchIntervalInBackground||US.isFocused())&&pt(this,Is,ud).call(this)},J(this,mi)))},Hf=new WeakSet,I1=function(){pt(this,Vf,$1).call(this),pt(this,Wf,j1).call(this,pt(this,Uf,k1).call(this))},qf=new WeakSet,A1=function(){J(this,ks)&&(clearTimeout(J(this,ks)),ze(this,ks,void 0))},Kf=new WeakSet,M1=function(){J(this,js)&&(clearInterval(J(this,js)),ze(this,js,void 0))},Gf=new WeakSet,F1=function(){const t=J(this,wn).getQueryCache().build(J(this,wn),this.options);if(t===J(this,wt))return;const r=J(this,wt);ze(this,wt,t),ze(this,Bf,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},em=new WeakSet,rA=function(t){hr.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(J(this,ln))}),J(this,wn).getQueryCache().notify({query:J(this,wt),type:"observerResultsUpdated"})})},kk);function CB(e,t){return Oa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function hP(e,t){return CB(e,t)||e.state.data!==void 0&&N1(e,t,t.refetchOnMount)}function N1(e,t,r){if(Oa(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&WS(e,t)}return!1}function vP(e,t,r,n){return(e!==t||Oa(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&WS(e,r)}function WS(e,t){return Oa(t.enabled,e)!==!1&&e.isStaleByTime(uu(t.staleTime,e))}function EB(e,t){return!Dv(e.getCurrentResult(),t)}var yi,bi,Sn,_o,Du,Fh,Qf,L1,jk,OB=(jk=class extends uc{constructor(r,n){super();Xe(this,Du);Xe(this,Qf);Xe(this,yi,void 0);Xe(this,bi,void 0);Xe(this,Sn,void 0);Xe(this,_o,void 0);ze(this,yi,r),this.setOptions(n),this.bindMethods(),pt(this,Du,Fh).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=J(this,yi).defaultMutationOptions(r),Dv(this.options,n)||J(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:J(this,Sn),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ks(n.mutationKey)!==Ks(this.options.mutationKey)?this.reset():((a=J(this,Sn))==null?void 0:a.state.status)==="pending"&&J(this,Sn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=J(this,Sn))==null||r.removeObserver(this)}onMutationUpdate(r){pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this,r)}getCurrentResult(){return J(this,bi)}reset(){var r;(r=J(this,Sn))==null||r.removeObserver(this),ze(this,Sn,void 0),pt(this,Du,Fh).call(this),pt(this,Qf,L1).call(this)}mutate(r,n){var a;return ze(this,_o,n),(a=J(this,Sn))==null||a.removeObserver(this),ze(this,Sn,J(this,yi).getMutationCache().build(J(this,yi),this.options)),J(this,Sn).addObserver(this),J(this,Sn).execute(r)}},yi=new WeakMap,bi=new WeakMap,Sn=new WeakMap,_o=new WeakMap,Du=new WeakSet,Fh=function(){var n;const r=((n=J(this,Sn))==null?void 0:n.state)??tA();ze(this,bi,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Qf=new WeakSet,L1=function(r){hr.batch(()=>{var n,a,o,i,s,u,l,c;if(J(this,_o)&&this.hasListeners()){const f=J(this,bi).variables,p=J(this,bi).context;(r==null?void 0:r.type)==="success"?((a=(n=J(this,_o)).onSuccess)==null||a.call(n,r.data,f,p),(i=(o=J(this,_o)).onSettled)==null||i.call(o,r.data,null,f,p)):(r==null?void 0:r.type)==="error"&&((u=(s=J(this,_o)).onError)==null||u.call(s,r.error,f,p),(c=(l=J(this,_o)).onSettled)==null||c.call(l,void 0,r.error,f,p))}this.listeners.forEach(f=>{f(J(this,bi))})})},jk),nA=d.createContext(void 0),Fa=e=>{const t=d.useContext(nA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PB=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(nA.Provider,{value:e,children:t})),aA=d.createContext(!1),RB=()=>d.useContext(aA);aA.Provider;function TB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $B=d.createContext(TB()),kB=()=>d.useContext($B);function oA(e,t){return typeof e=="function"?e(...t):!!e}function jB(){}var IB=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},AB=e=>{d.useEffect(()=>{e.clearReset()},[e])},MB=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&oA(r,[e.error,n]),FB=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},NB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,LB=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function DB(e,t,r){var l,c,f,p;const n=Fa(r),a=RB(),o=kB(),i=n.defaultQueryOptions(e);(c=(l=n.getDefaultOptions().queries)==null?void 0:l._experimental_beforeQuery)==null||c.call(l,i),i._optimisticResults=a?"isRestoring":"optimistic",FB(i),IB(i,o),AB(o);const[s]=d.useState(()=>new t(n,i)),u=s.getOptimisticResult(i);if(d.useSyncExternalStore(d.useCallback(v=>{const g=a?()=>{}:s.subscribe(hr.batchCalls(v));return s.updateResult(),g},[s,a]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d.useEffect(()=>{s.setOptions(i,{listeners:!1})},[i,s]),NB(i,u))throw LB(i,s,o);if(MB({result:u,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw u.error;return(p=(f=n.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,i,u),i.notifyOnChangeProps?u:s.trackResult(u)}function il(e,t){return DB(e,_B,t)}function ym(e,t){const r=Fa(t),[n]=d.useState(()=>new OB(r,e));d.useEffect(()=>{n.setOptions(e)},[n,e]);const a=d.useSyncExternalStore(d.useCallback(i=>n.subscribe(hr.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=d.useCallback((i,s)=>{n.mutate(i,s).catch(jB)},[n]);if(a.error&&oA(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -46,9 +46,9 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zB(){return Math.random().toString(36).substr(2,8)}function mP(e,t){return{usr:e.state,key:e.key,idx:t}}function gf(e,t,r,n){return r===void 0&&(r=null),Zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?io(t):t,{state:r,key:t&&t.key||n||zB()})}function Qs(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 io(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 VB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=dr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(Zt({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function f(){s=dr.Pop;let S=c(),x=S==null?null:S-l;l=S,u&&u({action:s,location:y.location,delta:x})}function p(S,x){s=dr.Push;let m=gf(y.location,S,x);r&&r(m,S),l=c()+1;let b=mP(m,l),h=y.createHref(m);try{i.pushState(b,"",h)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(h)}o&&u&&u({action:s,location:y.location,delta:1})}function v(S,x){s=dr.Replace;let m=gf(y.location,S,x);r&&r(m,S),l=c();let b=mP(m,l),h=y.createHref(m);i.replaceState(b,"",h),o&&u&&u({action:s,location:y.location,delta:0})}function g(S){let x=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof S=="string"?S:Qs(S);return m=m.replace(/ $/,"%20"),dt(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let y={get action(){return s},get location(){return e(a,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(gP,f),u=S,()=>{a.removeEventListener(gP,f),u=null}},createHref(S){return t(a,S)},createURL:g,encodeLocation(S){let x=g(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return i.go(S)}};return y}var zt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zt||(zt={}));const UB=new Set(["lazy","caseSensitive","path","id","index","children"]);function WB(e){return e.index===!0}function mf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(dt(a.index!==!0||!a.children,"Cannot specify children on an index route"),dt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),WB(a)){let u=Zt({},a,t(a),{id:s});return n[s]=u,u}else{let u=Zt({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=mf(a.children,t,i,n)),u}})}function us(e,t,r){return r===void 0&&(r="/"),Nh(e,t,r,!1)}function Nh(e,t,r,n){let a=typeof t=="string"?io(t):t,o=Li(a.pathname||"/",r);if(o==null)return null;let i=oA(e);qB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(dt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=$o([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),oA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:ZB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of iA(o.path))a(o,i,u)}),t}function iA(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=iA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function qB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:e8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const KB=/^:[\w-]+$/,GB=3,QB=2,XB=1,YB=10,JB=-2,yP=e=>e==="*";function ZB(e,t){let r=e.split("/"),n=r.length;return r.some(yP)&&(n+=JB),t&&(n+=QB),r.filter(a=>!yP(a)).reduce((a,o)=>a+(KB.test(o)?GB:o===""?XB:YB),n)}function e8(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 t8(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:v}=c;if(p==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function r8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function sA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gs(!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 Li(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 n8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?io(e):e;return{pathname:r?r.startsWith("/")?r:a8(r,t):t,search:i8(n),hash:s8(a)}}function a8(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 Rb(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 lA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function xm(e,t){let r=lA(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function wm(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=io(e):(a=Zt({},e),dt(!a.pathname||!a.pathname.includes("?"),Rb("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),Rb("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),Rb("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=n8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const $o=e=>e.join("/").replace(/\/\/+/g,"/"),o8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),i8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Vv{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 Sm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uA=["post","put","patch","delete"],l8=new Set(uA),u8=["get",...uA],c8=new Set(u8),d8=new Set([301,302,303,307,308]),f8=new Set([307,308]),Tb={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},p8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),cA="remix-router-transitions";function v8(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;dt(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=ee=>({hasErrorBoundary:X(ee)})}else a=h8;let o={},i=mf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||w8,c=e.unstable_patchRoutesOnNavigation,f=Zt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,g=1e3,y=new Set,S=null,x=null,m=null,b=e.hydrationData!=null,h=us(i,e.history.location,u),_=null;if(h==null&&!c){let X=un(404,{pathname:e.history.location.pathname}),{matches:ee,route:ce}=PP(i);h=ee,_={[ce.id]:X}}h&&!e.hydrationData&&Mn(h,i,e.history.location.pathname).active&&(h=null);let C;if(h)if(h.some(X=>X.route.lazy))C=!1;else if(!h.some(X=>X.route.loader))C=!0;else if(f.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null,ce=Ce=>Ce.route.loader?typeof Ce.route.loader=="function"&&Ce.route.loader.hydrate===!0?!1:X&&X[Ce.route.id]!==void 0||ee&&ee[Ce.route.id]!==void 0:!0;if(ee){let Ce=h.findIndex(N=>ee[N.route.id]!==void 0);C=h.slice(0,Ce+1).every(ce)}else C=h.every(ce)}else C=e.hydrationData!=null;else if(C=!1,h=[],f.v7_partialHydration){let X=Mn(null,i,e.history.location.pathname);X.active&&X.matches&&(h=X.matches)}let E,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:C,navigation:Tb,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||_,fetchers:new Map,blockers:new Map},O=dr.Pop,P=!1,k,j=!1,$=new Map,F=null,z=!1,M=!1,W=[],B=new Set,U=new Map,q=0,ie=-1,oe=new Map,Ee=new Set,pe=new Map,Te=new Map,ye=new Set,be=new Map,we=new Map,ve=new Map,De;function Me(){if(p=e.history.listen(X=>{let{action:ee,location:ce,delta:Ce}=X;if(De){De(),De=void 0;return}Gs(we.size===0||Ce!=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 N=Pt({currentLocation:w.location,nextLocation:ce,historyAction:ee});if(N&&Ce!=null){let D=new Promise(I=>{De=I});e.history.go(Ce*-1),kt(N,{state:"blocked",location:ce,proceed(){kt(N,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),D.then(()=>e.history.go(Ce))},reset(){let I=new Map(w.blockers);I.set(N,Tl),Ae({blockers:I})}});return}return V(ee,ce)}),r){F8(t,$);let X=()=>N8(t,$);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return w.initialized||V(dr.Pop,w.location,{initialHydration:!0}),E}function Qe(){p&&p(),F&&F(),v.clear(),k&&k.abort(),w.fetchers.forEach((X,ee)=>je(ee)),w.blockers.forEach((X,ee)=>Ot(ee))}function Ne(X){return v.add(X),()=>v.delete(X)}function Ae(X,ee){ee===void 0&&(ee={}),w=Zt({},w,X);let ce=[],Ce=[];f.v7_fetcherPersist&&w.fetchers.forEach((N,D)=>{N.state==="idle"&&(ye.has(D)?Ce.push(D):ce.push(D))}),[...v].forEach(N=>N(w,{deletedFetchers:Ce,unstable_viewTransitionOpts:ee.viewTransitionOpts,unstable_flushSync:ee.flushSync===!0})),f.v7_fetcherPersist&&(ce.forEach(N=>w.fetchers.delete(N)),Ce.forEach(N=>je(N)))}function He(X,ee,ce){var Ce,N;let{flushSync:D}=ce===void 0?{}:ce,I=w.actionData!=null&&w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&w.navigation.state==="loading"&&((Ce=X.state)==null?void 0:Ce._isRedirect)!==!0,A;ee.actionData?Object.keys(ee.actionData).length>0?A=ee.actionData:A=null:I?A=w.actionData:A=null;let L=ee.loaderData?EP(w.loaderData,ee.loaderData,ee.matches||[],ee.errors):w.loaderData,H=w.blockers;H.size>0&&(H=new Map(H),H.forEach((Q,me)=>H.set(me,Tl)));let re=P===!0||w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&((N=X.state)==null?void 0:N._isRedirect)!==!0;s&&(i=s,s=void 0),z||O===dr.Pop||(O===dr.Push?e.history.push(X,X.state):O===dr.Replace&&e.history.replace(X,X.state));let Y;if(O===dr.Pop){let Q=$.get(w.location.pathname);Q&&Q.has(X.pathname)?Y={currentLocation:w.location,nextLocation:X}:$.has(X.pathname)&&(Y={currentLocation:X,nextLocation:w.location})}else if(j){let Q=$.get(w.location.pathname);Q?Q.add(X.pathname):(Q=new Set([X.pathname]),$.set(w.location.pathname,Q)),Y={currentLocation:w.location,nextLocation:X}}Ae(Zt({},ee,{actionData:A,loaderData:L,historyAction:O,location:X,initialized:!0,navigation:Tb,revalidation:"idle",restoreScrollPosition:Tr(X,ee.matches||w.matches),preventScrollReset:re,blockers:H}),{viewTransitionOpts:Y,flushSync:D===!0}),O=dr.Pop,P=!1,j=!1,z=!1,M=!1,W=[]}async function ht(X,ee){if(typeof X=="number"){e.history.go(X);return}let ce=B1(w.location,w.matches,u,f.v7_prependBasename,X,f.v7_relativeSplatPath,ee==null?void 0:ee.fromRouteId,ee==null?void 0:ee.relative),{path:Ce,submission:N,error:D}=bP(f.v7_normalizeFormMethod,!1,ce,ee),I=w.location,A=gf(w.location,Ce,ee&&ee.state);A=Zt({},A,e.history.encodeLocation(A));let L=ee&&ee.replace!=null?ee.replace:void 0,H=dr.Push;L===!0?H=dr.Replace:L===!1||N!=null&&Ca(N.formMethod)&&N.formAction===w.location.pathname+w.location.search&&(H=dr.Replace);let re=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,Y=(ee&&ee.unstable_flushSync)===!0,Q=Pt({currentLocation:I,nextLocation:A,historyAction:H});if(Q){kt(Q,{state:"blocked",location:A,proceed(){kt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ht(X,ee)},reset(){let me=new Map(w.blockers);me.set(Q,Tl),Ae({blockers:me})}});return}return await V(H,A,{submission:N,pendingError:D,preventScrollReset:re,replace:ee&&ee.replace,enableViewTransition:ee&&ee.unstable_viewTransition,flushSync:Y})}function ut(){if(he(),Ae({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){V(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}V(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:j===!0})}}async function V(X,ee,ce){k&&k.abort(),k=null,O=X,z=(ce&&ce.startUninterruptedRevalidation)===!0,Nr(w.location,w.matches),P=(ce&&ce.preventScrollReset)===!0,j=(ce&&ce.enableViewTransition)===!0;let Ce=s||i,N=ce&&ce.overrideNavigation,D=us(Ce,ee,u),I=(ce&&ce.flushSync)===!0,A=Mn(D,Ce,ee.pathname);if(A.active&&A.matches&&(D=A.matches),!D){let{error:$e,notFoundMatches:Ze,route:tt}=at(ee.pathname);He(ee,{matches:Ze,loaderData:{},errors:{[tt.id]:$e}},{flushSync:I});return}if(w.initialized&&!M&&P8(w.location,ee)&&!(ce&&ce.submission&&Ca(ce.submission.formMethod))){He(ee,{matches:D},{flushSync:I});return}k=new AbortController;let L=vl(e.history,ee,k.signal,ce&&ce.submission),H;if(ce&&ce.pendingError)H=[Kl(D).route.id,{type:zt.error,error:ce.pendingError}];else if(ce&&ce.submission&&Ca(ce.submission.formMethod)){let $e=await K(L,ee,ce.submission,D,A.active,{replace:ce.replace,flushSync:I});if($e.shortCircuited)return;if($e.pendingActionResult){let[Ze,tt]=$e.pendingActionResult;if(Dn(tt)&&Sm(tt.error)&&tt.error.status===404){k=null,He(ee,{matches:$e.matches,loaderData:{},errors:{[Ze]:tt.error}});return}}D=$e.matches||D,H=$e.pendingActionResult,N=$b(ee,ce.submission),I=!1,A.active=!1,L=vl(e.history,L.url,L.signal)}let{shortCircuited:re,matches:Y,loaderData:Q,errors:me}=await te(L,ee,D,A.active,N,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,I,H);re||(k=null,He(ee,Zt({matches:Y||D},OP(H),{loaderData:Q,errors:me})))}async function K(X,ee,ce,Ce,N,D){D===void 0&&(D={}),he();let I=A8(ee,ce);if(Ae({navigation:I},{flushSync:D.flushSync===!0}),N){let H=await Kr(Ce,ee.pathname,X.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let{boundaryId:re,error:Y}=It(ee.pathname,H);return{matches:H.partialMatches,pendingActionResult:[re,{type:zt.error,error:Y}]}}else if(H.matches)Ce=H.matches;else{let{notFoundMatches:re,error:Y,route:Q}=at(ee.pathname);return{matches:re,pendingActionResult:[Q.id,{type:zt.error,error:Y}]}}}let A,L=cd(Ce,ee);if(!L.route.action&&!L.route.lazy)A={type:zt.error,error:un(405,{method:X.method,pathname:ee.pathname,routeId:L.route.id})};else if(A=(await G("action",w,X,[L],Ce,null))[L.route.id],X.signal.aborted)return{shortCircuited:!0};if(xs(A)){let H;return D&&D.replace!=null?H=D.replace:H=SP(A.response.headers.get("Location"),new URL(X.url),u)===w.location.pathname+w.location.search,await Z(X,A,!0,{submission:ce,replace:H}),{shortCircuited:!0}}if(Si(A))throw un(400,{type:"defer-action"});if(Dn(A)){let H=Kl(Ce,L.route.id);return(D&&D.replace)!==!0&&(O=dr.Push),{matches:Ce,pendingActionResult:[H.route.id,A]}}return{matches:Ce,pendingActionResult:[L.route.id,A]}}async function te(X,ee,ce,Ce,N,D,I,A,L,H,re){let Y=N||$b(ee,D),Q=D||I||TP(Y),me=!z&&(!f.v7_partialHydration||!L);if(Ce){if(me){let Vt=se(re);Ae(Zt({navigation:Y},Vt!==void 0?{actionData:Vt}:{}),{flushSync:H})}let ot=await Kr(ce,ee.pathname,X.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){let{boundaryId:Vt,error:mr}=It(ee.pathname,ot);return{matches:ot.partialMatches,loaderData:{},errors:{[Vt]:mr}}}else if(ot.matches)ce=ot.matches;else{let{error:Vt,notFoundMatches:mr,route:vt}=at(ee.pathname);return{matches:mr,loaderData:{},errors:{[vt.id]:Vt}}}}let $e=s||i,[Ze,tt]=xP(e.history,w,ce,Q,ee,f.v7_partialHydration&&L===!0,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,$e,u,re);if(nr(ot=>!(ce&&ce.some(Vt=>Vt.route.id===ot))||Ze&&Ze.some(Vt=>Vt.route.id===ot)),ie=++q,Ze.length===0&&tt.length===0){let ot=Ge();return He(ee,Zt({matches:ce,loaderData:{},errors:re&&Dn(re[1])?{[re[0]]:re[1].error}:null},OP(re),ot?{fetchers:new Map(w.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(me){let ot={};if(!Ce){ot.navigation=Y;let Vt=se(re);Vt!==void 0&&(ot.actionData=Vt)}tt.length>0&&(ot.fetchers=de(tt)),Ae(ot,{flushSync:H})}tt.forEach(ot=>{U.has(ot.key)&&_e(ot.key),ot.controller&&U.set(ot.key,ot.controller)});let St=()=>tt.forEach(ot=>_e(ot.key));k&&k.signal.addEventListener("abort",St);let{loaderResults:st,fetcherResults:xt}=await le(w,ce,Ze,tt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",St),tt.forEach(ot=>U.delete(ot.key));let jt=Yp(st);if(jt)return await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};if(jt=Yp(xt),jt)return Ee.add(jt.key),await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:lt,errors:Dt}=CP(w,ce,Ze,st,re,tt,xt,be);be.forEach((ot,Vt)=>{ot.subscribe(mr=>{(mr||ot.done)&&be.delete(Vt)})}),f.v7_partialHydration&&L&&w.errors&&Object.entries(w.errors).filter(ot=>{let[Vt]=ot;return!Ze.some(mr=>mr.route.id===Vt)}).forEach(ot=>{let[Vt,mr]=ot;Dt=Object.assign(Dt||{},{[Vt]:mr})});let kr=Ge(),yn=nt(ie),vo=kr||yn||tt.length>0;return Zt({matches:ce,loaderData:lt,errors:Dt},vo?{fetchers:new Map(w.fetchers)}:{})}function se(X){if(X&&!Dn(X[1]))return{[X[0]]:X[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function de(X){return X.forEach(ee=>{let ce=w.fetchers.get(ee.key),Ce=Vc(void 0,ce?ce.data:void 0);w.fetchers.set(ee.key,Ce)}),new Map(w.fetchers)}function fe(X,ee,ce,Ce){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.");U.has(X)&&_e(X);let N=(Ce&&Ce.unstable_flushSync)===!0,D=s||i,I=B1(w.location,w.matches,u,f.v7_prependBasename,ce,f.v7_relativeSplatPath,ee,Ce==null?void 0:Ce.relative),A=us(D,I,u),L=Mn(A,D,I);if(L.active&&L.matches&&(A=L.matches),!A){Be(X,ee,un(404,{pathname:I}),{flushSync:N});return}let{path:H,submission:re,error:Y}=bP(f.v7_normalizeFormMethod,!0,I,Ce);if(Y){Be(X,ee,Y,{flushSync:N});return}let Q=cd(A,H);if(P=(Ce&&Ce.preventScrollReset)===!0,re&&Ca(re.formMethod)){Oe(X,ee,H,Q,A,L.active,N,re);return}pe.set(X,{routeId:ee,path:H}),ae(X,ee,H,Q,A,L.active,N,re)}async function Oe(X,ee,ce,Ce,N,D,I,A){he(),pe.delete(X);function L(vt){if(!vt.route.action&&!vt.route.lazy){let Gr=un(405,{method:A.formMethod,pathname:ce,routeId:ee});return Be(X,ee,Gr,{flushSync:I}),!0}return!1}if(!D&&L(Ce))return;let H=w.fetchers.get(X);Re(X,M8(A,H),{flushSync:I});let re=new AbortController,Y=vl(e.history,ce,re.signal,A);if(D){let vt=await Kr(N,ce,Y.signal);if(vt.type==="aborted")return;if(vt.type==="error"){let{error:Gr}=It(ce,vt);Be(X,ee,Gr,{flushSync:I});return}else if(vt.matches){if(N=vt.matches,Ce=cd(N,ce),L(Ce))return}else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,re);let Q=q,$e=(await G("action",w,Y,[Ce],N,X))[Ce.route.id];if(Y.signal.aborted){U.get(X)===re&&U.delete(X);return}if(f.v7_fetcherPersist&&ye.has(X)){if(xs($e)||Dn($e)){Re(X,ti(void 0));return}}else{if(xs($e))if(U.delete(X),ie>Q){Re(X,ti(void 0));return}else return Ee.add(X),Re(X,Vc(A)),Z(Y,$e,!1,{fetcherSubmission:A});if(Dn($e)){Be(X,ee,$e.error);return}}if(Si($e))throw un(400,{type:"defer-action"});let Ze=w.navigation.location||w.location,tt=vl(e.history,Ze,re.signal),St=s||i,st=w.navigation.state!=="idle"?us(St,w.navigation.location,u):w.matches;dt(st,"Didn't find any matches after fetcher action");let xt=++q;oe.set(X,xt);let jt=Vc(A,$e.data);w.fetchers.set(X,jt);let[lt,Dt]=xP(e.history,w,st,A,Ze,!1,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,St,u,[Ce.route.id,$e]);Dt.filter(vt=>vt.key!==X).forEach(vt=>{let Gr=vt.key,Go=w.fetchers.get(Gr),Qo=Vc(void 0,Go?Go.data:void 0);w.fetchers.set(Gr,Qo),U.has(Gr)&&_e(Gr),vt.controller&&U.set(Gr,vt.controller)}),Ae({fetchers:new Map(w.fetchers)});let kr=()=>Dt.forEach(vt=>_e(vt.key));re.signal.addEventListener("abort",kr);let{loaderResults:yn,fetcherResults:vo}=await le(w,st,lt,Dt,tt);if(re.signal.aborted)return;re.signal.removeEventListener("abort",kr),oe.delete(X),U.delete(X),Dt.forEach(vt=>U.delete(vt.key));let ot=Yp(yn);if(ot)return Z(tt,ot.result,!1);if(ot=Yp(vo),ot)return Ee.add(ot.key),Z(tt,ot.result,!1);let{loaderData:Vt,errors:mr}=CP(w,st,lt,yn,void 0,Dt,vo,be);if(w.fetchers.has(X)){let vt=ti($e.data);w.fetchers.set(X,vt)}nt(xt),w.navigation.state==="loading"&&xt>ie?(dt(O,"Expected pending action"),k&&k.abort(),He(w.navigation.location,{matches:st,loaderData:Vt,errors:mr,fetchers:new Map(w.fetchers)})):(Ae({errors:mr,loaderData:EP(w.loaderData,Vt,st,mr),fetchers:new Map(w.fetchers)}),M=!1)}async function ae(X,ee,ce,Ce,N,D,I,A){let L=w.fetchers.get(X);Re(X,Vc(A,L?L.data:void 0),{flushSync:I});let H=new AbortController,re=vl(e.history,ce,H.signal);if(D){let $e=await Kr(N,ce,re.signal);if($e.type==="aborted")return;if($e.type==="error"){let{error:Ze}=It(ce,$e);Be(X,ee,Ze,{flushSync:I});return}else if($e.matches)N=$e.matches,Ce=cd(N,ce);else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,H);let Y=q,me=(await G("loader",w,re,[Ce],N,X))[Ce.route.id];if(Si(me)&&(me=await qS(me,re.signal,!0)||me),U.get(X)===H&&U.delete(X),!re.signal.aborted){if(ye.has(X)){Re(X,ti(void 0));return}if(xs(me))if(ie>Y){Re(X,ti(void 0));return}else{Ee.add(X),await Z(re,me,!1);return}if(Dn(me)){Be(X,ee,me.error);return}dt(!Si(me),"Unhandled fetcher deferred data"),Re(X,ti(me.data))}}async function Z(X,ee,ce,Ce){let{submission:N,fetcherSubmission:D,replace:I}=Ce===void 0?{}:Ce;ee.response.headers.has("X-Remix-Revalidate")&&(M=!0);let A=ee.response.headers.get("Location");dt(A,"Expected a Location header on the redirect Response"),A=SP(A,new URL(X.url),u);let L=gf(w.location,A,{_isRedirect:!0});if(r){let $e=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))$e=!0;else if(HS.test(A)){const Ze=e.history.createURL(A);$e=Ze.origin!==t.location.origin||Li(Ze.pathname,u)==null}if($e){I?t.location.replace(A):t.location.assign(A);return}}k=null;let H=I===!0||ee.response.headers.has("X-Remix-Replace")?dr.Replace:dr.Push,{formMethod:re,formAction:Y,formEncType:Q}=w.navigation;!N&&!D&&re&&Y&&Q&&(N=TP(w.navigation));let me=N||D;if(f8.has(ee.response.status)&&me&&Ca(me.formMethod))await V(H,L,{submission:Zt({},me,{formAction:A}),preventScrollReset:P,enableViewTransition:ce?j:void 0});else{let $e=$b(L,N);await V(H,L,{overrideNavigation:$e,fetcherSubmission:D,preventScrollReset:P,enableViewTransition:ce?j:void 0})}}async function G(X,ee,ce,Ce,N,D){let I,A={};try{I=await S8(l,X,ee,ce,Ce,N,D,o,a)}catch(L){return Ce.forEach(H=>{A[H.route.id]={type:zt.error,error:L}}),A}for(let[L,H]of Object.entries(I))if(T8(H)){let re=H.result;A[L]={type:zt.redirect,response:E8(re,ce,L,N,u,f.v7_relativeSplatPath)}}else A[L]=await C8(H);return A}async function le(X,ee,ce,Ce,N){let D=X.matches,I=G("loader",X,N,ce,ee,null),A=Promise.all(Ce.map(async re=>{if(re.matches&&re.match&&re.controller){let Q=(await G("loader",X,vl(e.history,re.path,re.controller.signal),[re.match],re.matches,re.key))[re.match.route.id];return{[re.key]:Q}}else return Promise.resolve({[re.key]:{type:zt.error,error:un(404,{pathname:re.path})}})})),L=await I,H=(await A).reduce((re,Y)=>Object.assign(re,Y),{});return await Promise.all([j8(ee,L,N.signal,D,X.loaderData),I8(ee,H,Ce)]),{loaderResults:L,fetcherResults:H}}function he(){M=!0,W.push(...nr()),pe.forEach((X,ee)=>{U.has(ee)&&(B.add(ee),_e(ee))})}function Re(X,ee,ce){ce===void 0&&(ce={}),w.fetchers.set(X,ee),Ae({fetchers:new Map(w.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Be(X,ee,ce,Ce){Ce===void 0&&(Ce={});let N=Kl(w.matches,ee);je(X),Ae({errors:{[N.route.id]:ce},fetchers:new Map(w.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function Ye(X){return f.v7_fetcherPersist&&(Te.set(X,(Te.get(X)||0)+1),ye.has(X)&&ye.delete(X)),w.fetchers.get(X)||p8}function je(X){let ee=w.fetchers.get(X);U.has(X)&&!(ee&&ee.state==="loading"&&oe.has(X))&&_e(X),pe.delete(X),oe.delete(X),Ee.delete(X),ye.delete(X),B.delete(X),w.fetchers.delete(X)}function Je(X){if(f.v7_fetcherPersist){let ee=(Te.get(X)||0)-1;ee<=0?(Te.delete(X),ye.add(X)):Te.set(X,ee)}else je(X);Ae({fetchers:new Map(w.fetchers)})}function _e(X){let ee=U.get(X);dt(ee,"Expected fetch controller: "+X),ee.abort(),U.delete(X)}function Fe(X){for(let ee of X){let ce=Ye(ee),Ce=ti(ce.data);w.fetchers.set(ee,Ce)}}function Ge(){let X=[],ee=!1;for(let ce of Ee){let Ce=w.fetchers.get(ce);dt(Ce,"Expected fetcher: "+ce),Ce.state==="loading"&&(Ee.delete(ce),X.push(ce),ee=!0)}return Fe(X),ee}function nt(X){let ee=[];for(let[ce,Ce]of oe)if(Ce0}function mt(X,ee){let ce=w.blockers.get(X)||Tl;return we.get(X)!==ee&&we.set(X,ee),ce}function Ot(X){w.blockers.delete(X),we.delete(X)}function kt(X,ee){let ce=w.blockers.get(X)||Tl;dt(ce.state==="unblocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="proceeding"||ce.state==="blocked"&&ee.state==="unblocked"||ce.state==="proceeding"&&ee.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+ee.state);let Ce=new Map(w.blockers);Ce.set(X,ee),Ae({blockers:Ce})}function Pt(X){let{currentLocation:ee,nextLocation:ce,historyAction:Ce}=X;if(we.size===0)return;we.size>1&&Gs(!1,"A router only supports one blocker at a time");let N=Array.from(we.entries()),[D,I]=N[N.length-1],A=w.blockers.get(D);if(!(A&&A.state==="proceeding")&&I({currentLocation:ee,nextLocation:ce,historyAction:Ce}))return D}function at(X){let ee=un(404,{pathname:X}),ce=s||i,{matches:Ce,route:N}=PP(ce);return nr(),{notFoundMatches:Ce,route:N,error:ee}}function It(X,ee){return{boundaryId:Kl(ee.partialMatches).route.id,error:un(400,{type:"route-discovery",pathname:X,message:ee.error!=null&&"message"in ee.error?ee.error:String(ee.error)})}}function nr(X){let ee=[];return be.forEach((ce,Ce)=>{(!X||X(Ce))&&(ce.cancel(),ee.push(Ce),be.delete(Ce))}),ee}function mn(X,ee,ce){if(S=X,m=ee,x=ce||null,!b&&w.navigation===Tb){b=!0;let Ce=Tr(w.location,w.matches);Ce!=null&&Ae({restoreScrollPosition:Ce})}return()=>{S=null,m=null,x=null}}function qr(X,ee){return x&&x(X,ee.map(Ce=>HB(Ce,w.loaderData)))||X.key}function Nr(X,ee){if(S&&m){let ce=qr(X,ee);S[ce]=m()}}function Tr(X,ee){if(S){let ce=qr(X,ee),Ce=S[ce];if(typeof Ce=="number")return Ce}return null}function Mn(X,ee,ce){if(c){if(y.has(ce))return{active:!1,matches:X};if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:Nh(ee,ce,u,!0)}}else return{active:!0,matches:Nh(ee,ce,u,!0)||[]}}return{active:!1,matches:null}}async function Kr(X,ee,ce){let Ce=X;for(;;){let N=s==null,D=s||i;try{await b8(c,ee,Ce,D,o,a,ve,ce)}catch(L){return{type:"error",error:L,partialMatches:Ce}}finally{N&&(i=[...i])}if(ce.aborted)return{type:"aborted"};let I=us(D,ee,u);if(I)return Ko(ee,y),{type:"success",matches:I};let A=Nh(D,ee,u,!0);if(!A||Ce.length===A.length&&Ce.every((L,H)=>L.route.id===A[H].route.id))return Ko(ee,y),{type:"success",matches:null};Ce=A}}function Ko(X,ee){if(ee.size>=g){let ce=ee.values().next().value;ee.delete(ce)}ee.add(X)}function $r(X){o={},s=mf(X,a,void 0,o)}function ho(X,ee){let ce=s==null;fA(X,ee,s||i,o,a),ce&&(i=[...i],Ae({}))}return E={get basename(){return u},get future(){return f},get state(){return w},get routes(){return i},get window(){return t},initialize:Me,subscribe:Ne,enableScrollRestoration:mn,navigate:ht,fetch:fe,revalidate:ut,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ye,deleteFetcher:Je,dispose:Qe,getBlocker:mt,deleteBlocker:Ot,patchRoutes:ho,_internalFetchControllers:U,_internalActiveDeferreds:be,_internalSetRoutes:$r},E}function g8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function B1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let f of t)if(u.push(f),f.route.id===i){l=f;break}}else u=t,l=t[t.length-1];let c=wm(a||".",xm(u,o),Li(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!KS(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:$o([r,c.pathname])),Qs(c)}function bP(e,t,r,n){if(!n||!g8(n))return{path:r};if(n.formMethod&&!k8(n.formMethod))return{path:r,error:un(405,{method:n.formMethod})};let a=()=>({path:r,error:un(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=pA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ca(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,S]=g;return""+v+y+"="+S+` -`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Ca(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}dt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=z1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=z1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=_P(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=_P(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Ca(c.formMethod))return{path:r,submission:c};let f=io(r);return t&&f.search&&KS(f.search)&&u.append("index",""),f.search="?"+u,{path:Qs(f),submission:c}}function m8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function xP(e,t,r,n,a,o,i,s,u,l,c,f,p,v,g,y){let S=y?Dn(y[1])?y[1].error:y[1].data:void 0,x=e.createURL(t.location),m=e.createURL(a),b=y&&Dn(y[1])?y[0]:void 0,h=b?m8(r,b):r,_=y?y[1].statusCode:void 0,C=i&&_&&_>=400,E=h.filter((O,P)=>{let{route:k}=O;if(k.lazy)return!0;if(k.loader==null)return!1;if(o)return typeof k.loader!="function"||k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(y8(t.loaderData,t.matches[P],O)||u.some(F=>F===O.route.id))return!0;let j=t.matches[P],$=O;return wP(O,Zt({currentUrl:x,currentParams:j.params,nextUrl:m,nextParams:$.params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s||x.pathname+x.search===m.pathname+m.search||x.search!==m.search||dA(j,$)}))}),w=[];return f.forEach((O,P)=>{if(o||!r.some(z=>z.route.id===O.routeId)||c.has(P))return;let k=us(v,O.path,g);if(!k){w.push({key:P,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(P),$=cd(k,O.path),F=!1;p.has(P)?F=!1:l.has(P)?(l.delete(P),F=!0):j&&j.state!=="idle"&&j.data===void 0?F=s:F=wP($,Zt({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s})),F&&w.push({key:P,routeId:O.routeId,path:O.path,matches:k,match:$,controller:new AbortController})}),[E,w]}function y8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function dA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function b8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,f)=>{s.aborted||fA(c,f,n,a,o)}}),i.set(u,l)),l&&R8(l)&&await l}finally{i.delete(u)}}function fA(e,t,r,n,a){if(e){var o;let i=n[e];dt(i,"No route found to patch children into: routeId = "+e);let s=mf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=mf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function x8(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];dt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";Gs(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!UB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Zt({},t(a),{lazy:void 0}))}async function w8(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 S8(e,t,r,n,a,o,i,s,u,l){let c=o.map(v=>v.route.lazy?x8(v.route,u,s):void 0),f=o.map((v,g)=>{let y=c[g],S=a.some(m=>m.route.id===v.route.id);return Zt({},v,{shouldLoad:S,resolve:async m=>(m&&n.method==="GET"&&(v.route.lazy||v.route.loader)&&(S=!0),S?_8(t,n,v,y,m,l):Promise.resolve({type:zt.data,result:void 0}))})}),p=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:l});try{await Promise.all(c)}catch{}return p}async function _8(e,t,r,n,a,o){let i,s,u=l=>{let c,f=new Promise((g,y)=>c=y);s=()=>c(),t.signal.addEventListener("abort",s);let p=g=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):l({request:t,params:r.params,context:o},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(y=>p(y)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,f])};try{let l=r.route[e];if(n)if(l){let c,[f]=await Promise.all([u(l).catch(p=>{c=p}),n]);if(c!==void 0)throw c;i=f}else if(await n,l=r.route[e],l)i=await u(l);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw un(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:zt.data,result:void 0};else if(l)i=await u(l);else{let c=new URL(t.url),f=c.pathname+c.search;throw un(404,{pathname:f})}dt(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(l){return{type:zt.error,result:l}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function C8(e){let{result:t,type:r}=e;if(hA(t)){let l;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(c){return{type:zt.error,error:c}}return r===zt.error?{type:zt.error,error:new Vv(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:zt.data,data:l,statusCode:t.status,headers:t.headers}}if(r===zt.error){if(RP(t)){var n;if(t.data instanceof Error){var a;return{type:zt.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new Vv(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zt.error,error:t,statusCode:Sm(t)?t.status:void 0}}if($8(t)){var o,i;return{type:zt.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(RP(t)){var s,u;return{type:zt.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:zt.data,data:t}}function E8(e,t,r,n,a,o){let i=e.headers.get("Location");if(dt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!HS.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=B1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function SP(e,t,r){if(HS.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Li(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function vl(e,t,r,n){let a=e.createURL(pA(t)).toString(),o={signal:r};if(n&&Ca(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=z1(n.formData):o.body=n.formData}return new Request(a,o)}function z1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function _P(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function O8(e,t,r,n,a){let o={},i=null,s,u=!1,l={},c=r&&Dn(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,v=t[p];if(dt(!xs(v),"Cannot handle redirect results in processLoaderData"),Dn(v)){let g=v.error;if(c!==void 0&&(g=c,c=void 0),i=i||{},a)i[p]=g;else{let y=Kl(e,p);i[y.route.id]==null&&(i[y.route.id]=g)}o[p]=void 0,u||(u=!0,s=Sm(v.error)?v.error.status:500),v.headers&&(l[p]=v.headers)}else Si(v)?(n.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers))}),c!==void 0&&r&&(i={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:l}}function CP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=O8(t,n,a,s,!1);return o.forEach(c=>{let{key:f,match:p,controller:v}=c,g=i[f];if(dt(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Dn(g)){let y=Kl(e.matches,p==null?void 0:p.route.id);l&&l[y.route.id]||(l=Zt({},l,{[y.route.id]:g.error})),e.fetchers.delete(f)}else if(xs(g))dt(!1,"Unhandled fetcher revalidation redirect");else if(Si(g))dt(!1,"Unhandled fetcher deferred data");else{let y=ti(g.data);e.fetchers.set(f,y)}}),{loaderData:u,errors:l}}function EP(e,t,r,n){let a=Zt({},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 OP(e){return e?Dn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kl(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 PP(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 un(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+i):a&&r&&n?u="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"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="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&&(u='Invalid request method "'+a.toUpperCase()+'"')),new Vv(e||500,s,new Error(u),!0)}function Yp(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(xs(a))return{key:n,result:a}}}function pA(e){let t=typeof e=="string"?io(e):e;return Qs(Zt({},t,{hash:""}))}function P8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function R8(e){return typeof e=="object"&&e!=null&&"then"in e}function T8(e){return hA(e.result)&&d8.has(e.result.status)}function Si(e){return e.type===zt.deferred}function Dn(e){return e.type===zt.error}function xs(e){return(e&&e.type)===zt.redirect}function RP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function $8(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 hA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function k8(e){return c8.has(e.toLowerCase())}function Ca(e){return l8.has(e.toLowerCase())}async function j8(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(p==null?void 0:p.route.id)===s);if(!l)continue;let c=n.find(p=>p.route.id===l.route.id),f=c!=null&&!dA(c,l)&&(a&&a[l.route.id])!==void 0;Si(u)&&f&&await qS(u,r,!1).then(p=>{p&&(t[s]=p)})}}async function I8(e,t,r){for(let n=0;n(l==null?void 0:l.route.id)===o)&&Si(s)&&(dt(i,"Expected an AbortController for revalidating fetcher deferred result"),await qS(s,i.signal,!0).then(l=>{l&&(t[a]=l)}))}}async function qS(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zt.error,error:a}}return{type:zt.data,data:e.deferredData.data}}}function KS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cd(e,t){let r=typeof t=="string"?io(t).search:t.search;if(e[e.length-1].route.index&&KS(r||""))return e[e.length-1];let n=lA(e);return n[n.length-1]}function TP(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 $b(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 A8(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 Vc(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 M8(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 ti(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 F8(e,t){try{let r=e.sessionStorage.getItem(cA);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 N8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(cA,JSON.stringify(r))}catch(n){Gs(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function Zt(){return Zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Gs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zB(){return Math.random().toString(36).substr(2,8)}function mP(e,t){return{usr:e.state,key:e.key,idx:t}}function gf(e,t,r,n){return r===void 0&&(r=null),Zt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?io(t):t,{state:r,key:t&&t.key||n||zB()})}function Qs(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 io(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 VB(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=dr.Pop,u=null,l=c();l==null&&(l=0,i.replaceState(Zt({},i.state,{idx:l}),""));function c(){return(i.state||{idx:null}).idx}function f(){s=dr.Pop;let S=c(),x=S==null?null:S-l;l=S,u&&u({action:s,location:y.location,delta:x})}function p(S,x){s=dr.Push;let m=gf(y.location,S,x);r&&r(m,S),l=c()+1;let b=mP(m,l),h=y.createHref(m);try{i.pushState(b,"",h)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(h)}o&&u&&u({action:s,location:y.location,delta:1})}function v(S,x){s=dr.Replace;let m=gf(y.location,S,x);r&&r(m,S),l=c();let b=mP(m,l),h=y.createHref(m);i.replaceState(b,"",h),o&&u&&u({action:s,location:y.location,delta:0})}function g(S){let x=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof S=="string"?S:Qs(S);return m=m.replace(/ $/,"%20"),dt(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let y={get action(){return s},get location(){return e(a,i)},listen(S){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(gP,f),u=S,()=>{a.removeEventListener(gP,f),u=null}},createHref(S){return t(a,S)},createURL:g,encodeLocation(S){let x=g(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return i.go(S)}};return y}var zt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zt||(zt={}));const UB=new Set(["lazy","caseSensitive","path","id","index","children"]);function WB(e){return e.index===!0}function mf(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(dt(a.index!==!0||!a.children,"Cannot specify children on an index route"),dt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),WB(a)){let u=Zt({},a,t(a),{id:s});return n[s]=u,u}else{let u=Zt({},a,t(a),{id:s,children:void 0});return n[s]=u,a.children&&(u.children=mf(a.children,t,i,n)),u}})}function us(e,t,r){return r===void 0&&(r="/"),Nh(e,t,r,!1)}function Nh(e,t,r,n){let a=typeof t=="string"?io(t):t,o=Li(a.pathname||"/",r);if(o==null)return null;let i=iA(e);qB(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(dt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=$o([n,u.relativePath]),c=r.concat(u);o.children&&o.children.length>0&&(dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),iA(o.children,t,c,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:ZB(l,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let u of sA(o.path))a(o,i,u)}),t}function sA(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=sA(n.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),a&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function qB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:e8(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const KB=/^:[\w-]+$/,GB=3,QB=2,XB=1,YB=10,JB=-2,yP=e=>e==="*";function ZB(e,t){let r=e.split("/"),n=r.length;return r.some(yP)&&(n+=JB),t&&(n+=QB),r.filter(a=>!yP(a)).reduce((a,o)=>a+(KB.test(o)?GB:o===""?XB:YB),n)}function e8(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 t8(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:v}=c;if(p==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return v&&!g?l[p]=void 0:l[p]=(g||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function r8(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Gs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(n.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function lA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gs(!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 Li(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 n8(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?io(e):e;return{pathname:r?r.startsWith("/")?r:a8(r,t):t,search:i8(n),hash:s8(a)}}function a8(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 Pb(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 uA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function bm(e,t){let r=uA(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function xm(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=io(e):(a=Zt({},e),dt(!a.pathname||!a.pathname.includes("?"),Pb("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),Pb("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),Pb("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let u=n8(a,s),l=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const $o=e=>e.join("/").replace(/\/\/+/g,"/"),o8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),i8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class zv{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 wm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cA=["post","put","patch","delete"],l8=new Set(cA),u8=["get",...cA],c8=new Set(u8),d8=new Set([301,302,303,307,308]),f8=new Set([307,308]),Rb={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},p8={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Tl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},HS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h8=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),dA="remix-router-transitions";function v8(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;dt(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=ee=>({hasErrorBoundary:X(ee)})}else a=h8;let o={},i=mf(e.routes,a,void 0,o),s,u=e.basename||"/",l=e.unstable_dataStrategy||w8,c=e.unstable_patchRoutesOnNavigation,f=Zt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,g=1e3,y=new Set,S=null,x=null,m=null,b=e.hydrationData!=null,h=us(i,e.history.location,u),_=null;if(h==null&&!c){let X=un(404,{pathname:e.history.location.pathname}),{matches:ee,route:ce}=PP(i);h=ee,_={[ce.id]:X}}h&&!e.hydrationData&&Mn(h,i,e.history.location.pathname).active&&(h=null);let C;if(h)if(h.some(X=>X.route.lazy))C=!1;else if(!h.some(X=>X.route.loader))C=!0;else if(f.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ee=e.hydrationData?e.hydrationData.errors:null,ce=Ce=>Ce.route.loader?typeof Ce.route.loader=="function"&&Ce.route.loader.hydrate===!0?!1:X&&X[Ce.route.id]!==void 0||ee&&ee[Ce.route.id]!==void 0:!0;if(ee){let Ce=h.findIndex(N=>ee[N.route.id]!==void 0);C=h.slice(0,Ce+1).every(ce)}else C=h.every(ce)}else C=e.hydrationData!=null;else if(C=!1,h=[],f.v7_partialHydration){let X=Mn(null,i,e.history.location.pathname);X.active&&X.matches&&(h=X.matches)}let E,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:C,navigation:Rb,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||_,fetchers:new Map,blockers:new Map},O=dr.Pop,P=!1,k,j=!1,$=new Map,F=null,z=!1,M=!1,W=[],B=new Set,U=new Map,q=0,ie=-1,oe=new Map,Ee=new Set,pe=new Map,Te=new Map,ye=new Set,be=new Map,we=new Map,ve=new Map,De;function Me(){if(p=e.history.listen(X=>{let{action:ee,location:ce,delta:Ce}=X;if(De){De(),De=void 0;return}Gs(we.size===0||Ce!=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 N=Pt({currentLocation:w.location,nextLocation:ce,historyAction:ee});if(N&&Ce!=null){let D=new Promise(I=>{De=I});e.history.go(Ce*-1),kt(N,{state:"blocked",location:ce,proceed(){kt(N,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),D.then(()=>e.history.go(Ce))},reset(){let I=new Map(w.blockers);I.set(N,Tl),Ae({blockers:I})}});return}return V(ee,ce)}),r){F8(t,$);let X=()=>N8(t,$);t.addEventListener("pagehide",X),F=()=>t.removeEventListener("pagehide",X)}return w.initialized||V(dr.Pop,w.location,{initialHydration:!0}),E}function Qe(){p&&p(),F&&F(),v.clear(),k&&k.abort(),w.fetchers.forEach((X,ee)=>je(ee)),w.blockers.forEach((X,ee)=>Ot(ee))}function Ne(X){return v.add(X),()=>v.delete(X)}function Ae(X,ee){ee===void 0&&(ee={}),w=Zt({},w,X);let ce=[],Ce=[];f.v7_fetcherPersist&&w.fetchers.forEach((N,D)=>{N.state==="idle"&&(ye.has(D)?Ce.push(D):ce.push(D))}),[...v].forEach(N=>N(w,{deletedFetchers:Ce,unstable_viewTransitionOpts:ee.viewTransitionOpts,unstable_flushSync:ee.flushSync===!0})),f.v7_fetcherPersist&&(ce.forEach(N=>w.fetchers.delete(N)),Ce.forEach(N=>je(N)))}function He(X,ee,ce){var Ce,N;let{flushSync:D}=ce===void 0?{}:ce,I=w.actionData!=null&&w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&w.navigation.state==="loading"&&((Ce=X.state)==null?void 0:Ce._isRedirect)!==!0,A;ee.actionData?Object.keys(ee.actionData).length>0?A=ee.actionData:A=null:I?A=w.actionData:A=null;let L=ee.loaderData?EP(w.loaderData,ee.loaderData,ee.matches||[],ee.errors):w.loaderData,H=w.blockers;H.size>0&&(H=new Map(H),H.forEach((Q,me)=>H.set(me,Tl)));let re=P===!0||w.navigation.formMethod!=null&&Ca(w.navigation.formMethod)&&((N=X.state)==null?void 0:N._isRedirect)!==!0;s&&(i=s,s=void 0),z||O===dr.Pop||(O===dr.Push?e.history.push(X,X.state):O===dr.Replace&&e.history.replace(X,X.state));let Y;if(O===dr.Pop){let Q=$.get(w.location.pathname);Q&&Q.has(X.pathname)?Y={currentLocation:w.location,nextLocation:X}:$.has(X.pathname)&&(Y={currentLocation:X,nextLocation:w.location})}else if(j){let Q=$.get(w.location.pathname);Q?Q.add(X.pathname):(Q=new Set([X.pathname]),$.set(w.location.pathname,Q)),Y={currentLocation:w.location,nextLocation:X}}Ae(Zt({},ee,{actionData:A,loaderData:L,historyAction:O,location:X,initialized:!0,navigation:Rb,revalidation:"idle",restoreScrollPosition:Tr(X,ee.matches||w.matches),preventScrollReset:re,blockers:H}),{viewTransitionOpts:Y,flushSync:D===!0}),O=dr.Pop,P=!1,j=!1,z=!1,M=!1,W=[]}async function ht(X,ee){if(typeof X=="number"){e.history.go(X);return}let ce=B1(w.location,w.matches,u,f.v7_prependBasename,X,f.v7_relativeSplatPath,ee==null?void 0:ee.fromRouteId,ee==null?void 0:ee.relative),{path:Ce,submission:N,error:D}=bP(f.v7_normalizeFormMethod,!1,ce,ee),I=w.location,A=gf(w.location,Ce,ee&&ee.state);A=Zt({},A,e.history.encodeLocation(A));let L=ee&&ee.replace!=null?ee.replace:void 0,H=dr.Push;L===!0?H=dr.Replace:L===!1||N!=null&&Ca(N.formMethod)&&N.formAction===w.location.pathname+w.location.search&&(H=dr.Replace);let re=ee&&"preventScrollReset"in ee?ee.preventScrollReset===!0:void 0,Y=(ee&&ee.unstable_flushSync)===!0,Q=Pt({currentLocation:I,nextLocation:A,historyAction:H});if(Q){kt(Q,{state:"blocked",location:A,proceed(){kt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ht(X,ee)},reset(){let me=new Map(w.blockers);me.set(Q,Tl),Ae({blockers:me})}});return}return await V(H,A,{submission:N,pendingError:D,preventScrollReset:re,replace:ee&&ee.replace,enableViewTransition:ee&&ee.unstable_viewTransition,flushSync:Y})}function ut(){if(he(),Ae({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){V(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}V(O||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:j===!0})}}async function V(X,ee,ce){k&&k.abort(),k=null,O=X,z=(ce&&ce.startUninterruptedRevalidation)===!0,Nr(w.location,w.matches),P=(ce&&ce.preventScrollReset)===!0,j=(ce&&ce.enableViewTransition)===!0;let Ce=s||i,N=ce&&ce.overrideNavigation,D=us(Ce,ee,u),I=(ce&&ce.flushSync)===!0,A=Mn(D,Ce,ee.pathname);if(A.active&&A.matches&&(D=A.matches),!D){let{error:$e,notFoundMatches:Ze,route:tt}=at(ee.pathname);He(ee,{matches:Ze,loaderData:{},errors:{[tt.id]:$e}},{flushSync:I});return}if(w.initialized&&!M&&P8(w.location,ee)&&!(ce&&ce.submission&&Ca(ce.submission.formMethod))){He(ee,{matches:D},{flushSync:I});return}k=new AbortController;let L=vl(e.history,ee,k.signal,ce&&ce.submission),H;if(ce&&ce.pendingError)H=[Kl(D).route.id,{type:zt.error,error:ce.pendingError}];else if(ce&&ce.submission&&Ca(ce.submission.formMethod)){let $e=await K(L,ee,ce.submission,D,A.active,{replace:ce.replace,flushSync:I});if($e.shortCircuited)return;if($e.pendingActionResult){let[Ze,tt]=$e.pendingActionResult;if(Dn(tt)&&wm(tt.error)&&tt.error.status===404){k=null,He(ee,{matches:$e.matches,loaderData:{},errors:{[Ze]:tt.error}});return}}D=$e.matches||D,H=$e.pendingActionResult,N=Tb(ee,ce.submission),I=!1,A.active=!1,L=vl(e.history,L.url,L.signal)}let{shortCircuited:re,matches:Y,loaderData:Q,errors:me}=await te(L,ee,D,A.active,N,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,I,H);re||(k=null,He(ee,Zt({matches:Y||D},OP(H),{loaderData:Q,errors:me})))}async function K(X,ee,ce,Ce,N,D){D===void 0&&(D={}),he();let I=A8(ee,ce);if(Ae({navigation:I},{flushSync:D.flushSync===!0}),N){let H=await Kr(Ce,ee.pathname,X.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let{boundaryId:re,error:Y}=It(ee.pathname,H);return{matches:H.partialMatches,pendingActionResult:[re,{type:zt.error,error:Y}]}}else if(H.matches)Ce=H.matches;else{let{notFoundMatches:re,error:Y,route:Q}=at(ee.pathname);return{matches:re,pendingActionResult:[Q.id,{type:zt.error,error:Y}]}}}let A,L=cd(Ce,ee);if(!L.route.action&&!L.route.lazy)A={type:zt.error,error:un(405,{method:X.method,pathname:ee.pathname,routeId:L.route.id})};else if(A=(await G("action",w,X,[L],Ce,null))[L.route.id],X.signal.aborted)return{shortCircuited:!0};if(xs(A)){let H;return D&&D.replace!=null?H=D.replace:H=SP(A.response.headers.get("Location"),new URL(X.url),u)===w.location.pathname+w.location.search,await Z(X,A,!0,{submission:ce,replace:H}),{shortCircuited:!0}}if(Si(A))throw un(400,{type:"defer-action"});if(Dn(A)){let H=Kl(Ce,L.route.id);return(D&&D.replace)!==!0&&(O=dr.Push),{matches:Ce,pendingActionResult:[H.route.id,A]}}return{matches:Ce,pendingActionResult:[L.route.id,A]}}async function te(X,ee,ce,Ce,N,D,I,A,L,H,re){let Y=N||Tb(ee,D),Q=D||I||TP(Y),me=!z&&(!f.v7_partialHydration||!L);if(Ce){if(me){let Vt=se(re);Ae(Zt({navigation:Y},Vt!==void 0?{actionData:Vt}:{}),{flushSync:H})}let ot=await Kr(ce,ee.pathname,X.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){let{boundaryId:Vt,error:mr}=It(ee.pathname,ot);return{matches:ot.partialMatches,loaderData:{},errors:{[Vt]:mr}}}else if(ot.matches)ce=ot.matches;else{let{error:Vt,notFoundMatches:mr,route:vt}=at(ee.pathname);return{matches:mr,loaderData:{},errors:{[vt.id]:Vt}}}}let $e=s||i,[Ze,tt]=xP(e.history,w,ce,Q,ee,f.v7_partialHydration&&L===!0,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,$e,u,re);if(nr(ot=>!(ce&&ce.some(Vt=>Vt.route.id===ot))||Ze&&Ze.some(Vt=>Vt.route.id===ot)),ie=++q,Ze.length===0&&tt.length===0){let ot=Ge();return He(ee,Zt({matches:ce,loaderData:{},errors:re&&Dn(re[1])?{[re[0]]:re[1].error}:null},OP(re),ot?{fetchers:new Map(w.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(me){let ot={};if(!Ce){ot.navigation=Y;let Vt=se(re);Vt!==void 0&&(ot.actionData=Vt)}tt.length>0&&(ot.fetchers=de(tt)),Ae(ot,{flushSync:H})}tt.forEach(ot=>{U.has(ot.key)&&_e(ot.key),ot.controller&&U.set(ot.key,ot.controller)});let St=()=>tt.forEach(ot=>_e(ot.key));k&&k.signal.addEventListener("abort",St);let{loaderResults:st,fetcherResults:xt}=await le(w,ce,Ze,tt,X);if(X.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",St),tt.forEach(ot=>U.delete(ot.key));let jt=Yp(st);if(jt)return await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};if(jt=Yp(xt),jt)return Ee.add(jt.key),await Z(X,jt.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:lt,errors:Dt}=CP(w,ce,Ze,st,re,tt,xt,be);be.forEach((ot,Vt)=>{ot.subscribe(mr=>{(mr||ot.done)&&be.delete(Vt)})}),f.v7_partialHydration&&L&&w.errors&&Object.entries(w.errors).filter(ot=>{let[Vt]=ot;return!Ze.some(mr=>mr.route.id===Vt)}).forEach(ot=>{let[Vt,mr]=ot;Dt=Object.assign(Dt||{},{[Vt]:mr})});let kr=Ge(),yn=nt(ie),vo=kr||yn||tt.length>0;return Zt({matches:ce,loaderData:lt,errors:Dt},vo?{fetchers:new Map(w.fetchers)}:{})}function se(X){if(X&&!Dn(X[1]))return{[X[0]]:X[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function de(X){return X.forEach(ee=>{let ce=w.fetchers.get(ee.key),Ce=Vc(void 0,ce?ce.data:void 0);w.fetchers.set(ee.key,Ce)}),new Map(w.fetchers)}function fe(X,ee,ce,Ce){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.");U.has(X)&&_e(X);let N=(Ce&&Ce.unstable_flushSync)===!0,D=s||i,I=B1(w.location,w.matches,u,f.v7_prependBasename,ce,f.v7_relativeSplatPath,ee,Ce==null?void 0:Ce.relative),A=us(D,I,u),L=Mn(A,D,I);if(L.active&&L.matches&&(A=L.matches),!A){Be(X,ee,un(404,{pathname:I}),{flushSync:N});return}let{path:H,submission:re,error:Y}=bP(f.v7_normalizeFormMethod,!0,I,Ce);if(Y){Be(X,ee,Y,{flushSync:N});return}let Q=cd(A,H);if(P=(Ce&&Ce.preventScrollReset)===!0,re&&Ca(re.formMethod)){Oe(X,ee,H,Q,A,L.active,N,re);return}pe.set(X,{routeId:ee,path:H}),ae(X,ee,H,Q,A,L.active,N,re)}async function Oe(X,ee,ce,Ce,N,D,I,A){he(),pe.delete(X);function L(vt){if(!vt.route.action&&!vt.route.lazy){let Gr=un(405,{method:A.formMethod,pathname:ce,routeId:ee});return Be(X,ee,Gr,{flushSync:I}),!0}return!1}if(!D&&L(Ce))return;let H=w.fetchers.get(X);Re(X,M8(A,H),{flushSync:I});let re=new AbortController,Y=vl(e.history,ce,re.signal,A);if(D){let vt=await Kr(N,ce,Y.signal);if(vt.type==="aborted")return;if(vt.type==="error"){let{error:Gr}=It(ce,vt);Be(X,ee,Gr,{flushSync:I});return}else if(vt.matches){if(N=vt.matches,Ce=cd(N,ce),L(Ce))return}else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,re);let Q=q,$e=(await G("action",w,Y,[Ce],N,X))[Ce.route.id];if(Y.signal.aborted){U.get(X)===re&&U.delete(X);return}if(f.v7_fetcherPersist&&ye.has(X)){if(xs($e)||Dn($e)){Re(X,ti(void 0));return}}else{if(xs($e))if(U.delete(X),ie>Q){Re(X,ti(void 0));return}else return Ee.add(X),Re(X,Vc(A)),Z(Y,$e,!1,{fetcherSubmission:A});if(Dn($e)){Be(X,ee,$e.error);return}}if(Si($e))throw un(400,{type:"defer-action"});let Ze=w.navigation.location||w.location,tt=vl(e.history,Ze,re.signal),St=s||i,st=w.navigation.state!=="idle"?us(St,w.navigation.location,u):w.matches;dt(st,"Didn't find any matches after fetcher action");let xt=++q;oe.set(X,xt);let jt=Vc(A,$e.data);w.fetchers.set(X,jt);let[lt,Dt]=xP(e.history,w,st,A,Ze,!1,f.v7_skipActionErrorRevalidation,M,W,B,ye,pe,Ee,St,u,[Ce.route.id,$e]);Dt.filter(vt=>vt.key!==X).forEach(vt=>{let Gr=vt.key,Go=w.fetchers.get(Gr),Qo=Vc(void 0,Go?Go.data:void 0);w.fetchers.set(Gr,Qo),U.has(Gr)&&_e(Gr),vt.controller&&U.set(Gr,vt.controller)}),Ae({fetchers:new Map(w.fetchers)});let kr=()=>Dt.forEach(vt=>_e(vt.key));re.signal.addEventListener("abort",kr);let{loaderResults:yn,fetcherResults:vo}=await le(w,st,lt,Dt,tt);if(re.signal.aborted)return;re.signal.removeEventListener("abort",kr),oe.delete(X),U.delete(X),Dt.forEach(vt=>U.delete(vt.key));let ot=Yp(yn);if(ot)return Z(tt,ot.result,!1);if(ot=Yp(vo),ot)return Ee.add(ot.key),Z(tt,ot.result,!1);let{loaderData:Vt,errors:mr}=CP(w,st,lt,yn,void 0,Dt,vo,be);if(w.fetchers.has(X)){let vt=ti($e.data);w.fetchers.set(X,vt)}nt(xt),w.navigation.state==="loading"&&xt>ie?(dt(O,"Expected pending action"),k&&k.abort(),He(w.navigation.location,{matches:st,loaderData:Vt,errors:mr,fetchers:new Map(w.fetchers)})):(Ae({errors:mr,loaderData:EP(w.loaderData,Vt,st,mr),fetchers:new Map(w.fetchers)}),M=!1)}async function ae(X,ee,ce,Ce,N,D,I,A){let L=w.fetchers.get(X);Re(X,Vc(A,L?L.data:void 0),{flushSync:I});let H=new AbortController,re=vl(e.history,ce,H.signal);if(D){let $e=await Kr(N,ce,re.signal);if($e.type==="aborted")return;if($e.type==="error"){let{error:Ze}=It(ce,$e);Be(X,ee,Ze,{flushSync:I});return}else if($e.matches)N=$e.matches,Ce=cd(N,ce);else{Be(X,ee,un(404,{pathname:ce}),{flushSync:I});return}}U.set(X,H);let Y=q,me=(await G("loader",w,re,[Ce],N,X))[Ce.route.id];if(Si(me)&&(me=await qS(me,re.signal,!0)||me),U.get(X)===H&&U.delete(X),!re.signal.aborted){if(ye.has(X)){Re(X,ti(void 0));return}if(xs(me))if(ie>Y){Re(X,ti(void 0));return}else{Ee.add(X),await Z(re,me,!1);return}if(Dn(me)){Be(X,ee,me.error);return}dt(!Si(me),"Unhandled fetcher deferred data"),Re(X,ti(me.data))}}async function Z(X,ee,ce,Ce){let{submission:N,fetcherSubmission:D,replace:I}=Ce===void 0?{}:Ce;ee.response.headers.has("X-Remix-Revalidate")&&(M=!0);let A=ee.response.headers.get("Location");dt(A,"Expected a Location header on the redirect Response"),A=SP(A,new URL(X.url),u);let L=gf(w.location,A,{_isRedirect:!0});if(r){let $e=!1;if(ee.response.headers.has("X-Remix-Reload-Document"))$e=!0;else if(HS.test(A)){const Ze=e.history.createURL(A);$e=Ze.origin!==t.location.origin||Li(Ze.pathname,u)==null}if($e){I?t.location.replace(A):t.location.assign(A);return}}k=null;let H=I===!0||ee.response.headers.has("X-Remix-Replace")?dr.Replace:dr.Push,{formMethod:re,formAction:Y,formEncType:Q}=w.navigation;!N&&!D&&re&&Y&&Q&&(N=TP(w.navigation));let me=N||D;if(f8.has(ee.response.status)&&me&&Ca(me.formMethod))await V(H,L,{submission:Zt({},me,{formAction:A}),preventScrollReset:P,enableViewTransition:ce?j:void 0});else{let $e=Tb(L,N);await V(H,L,{overrideNavigation:$e,fetcherSubmission:D,preventScrollReset:P,enableViewTransition:ce?j:void 0})}}async function G(X,ee,ce,Ce,N,D){let I,A={};try{I=await S8(l,X,ee,ce,Ce,N,D,o,a)}catch(L){return Ce.forEach(H=>{A[H.route.id]={type:zt.error,error:L}}),A}for(let[L,H]of Object.entries(I))if(T8(H)){let re=H.result;A[L]={type:zt.redirect,response:E8(re,ce,L,N,u,f.v7_relativeSplatPath)}}else A[L]=await C8(H);return A}async function le(X,ee,ce,Ce,N){let D=X.matches,I=G("loader",X,N,ce,ee,null),A=Promise.all(Ce.map(async re=>{if(re.matches&&re.match&&re.controller){let Q=(await G("loader",X,vl(e.history,re.path,re.controller.signal),[re.match],re.matches,re.key))[re.match.route.id];return{[re.key]:Q}}else return Promise.resolve({[re.key]:{type:zt.error,error:un(404,{pathname:re.path})}})})),L=await I,H=(await A).reduce((re,Y)=>Object.assign(re,Y),{});return await Promise.all([j8(ee,L,N.signal,D,X.loaderData),I8(ee,H,Ce)]),{loaderResults:L,fetcherResults:H}}function he(){M=!0,W.push(...nr()),pe.forEach((X,ee)=>{U.has(ee)&&(B.add(ee),_e(ee))})}function Re(X,ee,ce){ce===void 0&&(ce={}),w.fetchers.set(X,ee),Ae({fetchers:new Map(w.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Be(X,ee,ce,Ce){Ce===void 0&&(Ce={});let N=Kl(w.matches,ee);je(X),Ae({errors:{[N.route.id]:ce},fetchers:new Map(w.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function Ye(X){return f.v7_fetcherPersist&&(Te.set(X,(Te.get(X)||0)+1),ye.has(X)&&ye.delete(X)),w.fetchers.get(X)||p8}function je(X){let ee=w.fetchers.get(X);U.has(X)&&!(ee&&ee.state==="loading"&&oe.has(X))&&_e(X),pe.delete(X),oe.delete(X),Ee.delete(X),ye.delete(X),B.delete(X),w.fetchers.delete(X)}function Je(X){if(f.v7_fetcherPersist){let ee=(Te.get(X)||0)-1;ee<=0?(Te.delete(X),ye.add(X)):Te.set(X,ee)}else je(X);Ae({fetchers:new Map(w.fetchers)})}function _e(X){let ee=U.get(X);dt(ee,"Expected fetch controller: "+X),ee.abort(),U.delete(X)}function Fe(X){for(let ee of X){let ce=Ye(ee),Ce=ti(ce.data);w.fetchers.set(ee,Ce)}}function Ge(){let X=[],ee=!1;for(let ce of Ee){let Ce=w.fetchers.get(ce);dt(Ce,"Expected fetcher: "+ce),Ce.state==="loading"&&(Ee.delete(ce),X.push(ce),ee=!0)}return Fe(X),ee}function nt(X){let ee=[];for(let[ce,Ce]of oe)if(Ce0}function mt(X,ee){let ce=w.blockers.get(X)||Tl;return we.get(X)!==ee&&we.set(X,ee),ce}function Ot(X){w.blockers.delete(X),we.delete(X)}function kt(X,ee){let ce=w.blockers.get(X)||Tl;dt(ce.state==="unblocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="blocked"||ce.state==="blocked"&&ee.state==="proceeding"||ce.state==="blocked"&&ee.state==="unblocked"||ce.state==="proceeding"&&ee.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+ee.state);let Ce=new Map(w.blockers);Ce.set(X,ee),Ae({blockers:Ce})}function Pt(X){let{currentLocation:ee,nextLocation:ce,historyAction:Ce}=X;if(we.size===0)return;we.size>1&&Gs(!1,"A router only supports one blocker at a time");let N=Array.from(we.entries()),[D,I]=N[N.length-1],A=w.blockers.get(D);if(!(A&&A.state==="proceeding")&&I({currentLocation:ee,nextLocation:ce,historyAction:Ce}))return D}function at(X){let ee=un(404,{pathname:X}),ce=s||i,{matches:Ce,route:N}=PP(ce);return nr(),{notFoundMatches:Ce,route:N,error:ee}}function It(X,ee){return{boundaryId:Kl(ee.partialMatches).route.id,error:un(400,{type:"route-discovery",pathname:X,message:ee.error!=null&&"message"in ee.error?ee.error:String(ee.error)})}}function nr(X){let ee=[];return be.forEach((ce,Ce)=>{(!X||X(Ce))&&(ce.cancel(),ee.push(Ce),be.delete(Ce))}),ee}function mn(X,ee,ce){if(S=X,m=ee,x=ce||null,!b&&w.navigation===Rb){b=!0;let Ce=Tr(w.location,w.matches);Ce!=null&&Ae({restoreScrollPosition:Ce})}return()=>{S=null,m=null,x=null}}function qr(X,ee){return x&&x(X,ee.map(Ce=>HB(Ce,w.loaderData)))||X.key}function Nr(X,ee){if(S&&m){let ce=qr(X,ee);S[ce]=m()}}function Tr(X,ee){if(S){let ce=qr(X,ee),Ce=S[ce];if(typeof Ce=="number")return Ce}return null}function Mn(X,ee,ce){if(c){if(y.has(ce))return{active:!1,matches:X};if(X){if(Object.keys(X[0].params).length>0)return{active:!0,matches:Nh(ee,ce,u,!0)}}else return{active:!0,matches:Nh(ee,ce,u,!0)||[]}}return{active:!1,matches:null}}async function Kr(X,ee,ce){let Ce=X;for(;;){let N=s==null,D=s||i;try{await b8(c,ee,Ce,D,o,a,ve,ce)}catch(L){return{type:"error",error:L,partialMatches:Ce}}finally{N&&(i=[...i])}if(ce.aborted)return{type:"aborted"};let I=us(D,ee,u);if(I)return Ko(ee,y),{type:"success",matches:I};let A=Nh(D,ee,u,!0);if(!A||Ce.length===A.length&&Ce.every((L,H)=>L.route.id===A[H].route.id))return Ko(ee,y),{type:"success",matches:null};Ce=A}}function Ko(X,ee){if(ee.size>=g){let ce=ee.values().next().value;ee.delete(ce)}ee.add(X)}function $r(X){o={},s=mf(X,a,void 0,o)}function ho(X,ee){let ce=s==null;pA(X,ee,s||i,o,a),ce&&(i=[...i],Ae({}))}return E={get basename(){return u},get future(){return f},get state(){return w},get routes(){return i},get window(){return t},initialize:Me,subscribe:Ne,enableScrollRestoration:mn,navigate:ht,fetch:fe,revalidate:ut,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:Ye,deleteFetcher:Je,dispose:Qe,getBlocker:mt,deleteBlocker:Ot,patchRoutes:ho,_internalFetchControllers:U,_internalActiveDeferreds:be,_internalSetRoutes:$r},E}function g8(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function B1(e,t,r,n,a,o,i,s){let u,l;if(i){u=[];for(let f of t)if(u.push(f),f.route.id===i){l=f;break}}else u=t,l=t[t.length-1];let c=xm(a||".",bm(u,o),Li(e.pathname,r)||e.pathname,s==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&l&&l.route.index&&!KS(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:$o([r,c.pathname])),Qs(c)}function bP(e,t,r,n){if(!n||!g8(n))return{path:r};if(n.formMethod&&!k8(n.formMethod))return{path:r,error:un(405,{method:n.formMethod})};let a=()=>({path:r,error:un(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=hA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ca(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,S]=g;return""+v+y+"="+S+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!Ca(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}dt(typeof FormData=="function","FormData is not available in this environment");let u,l;if(n.formData)u=z1(n.formData),l=n.formData;else if(n.body instanceof FormData)u=z1(n.body),l=n.body;else if(n.body instanceof URLSearchParams)u=n.body,l=_P(u);else if(n.body==null)u=new URLSearchParams,l=new FormData;else try{u=new URLSearchParams(n.body),l=_P(u)}catch{return a()}let c={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Ca(c.formMethod))return{path:r,submission:c};let f=io(r);return t&&f.search&&KS(f.search)&&u.append("index",""),f.search="?"+u,{path:Qs(f),submission:c}}function m8(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function xP(e,t,r,n,a,o,i,s,u,l,c,f,p,v,g,y){let S=y?Dn(y[1])?y[1].error:y[1].data:void 0,x=e.createURL(t.location),m=e.createURL(a),b=y&&Dn(y[1])?y[0]:void 0,h=b?m8(r,b):r,_=y?y[1].statusCode:void 0,C=i&&_&&_>=400,E=h.filter((O,P)=>{let{route:k}=O;if(k.lazy)return!0;if(k.loader==null)return!1;if(o)return typeof k.loader!="function"||k.loader.hydrate?!0:t.loaderData[k.id]===void 0&&(!t.errors||t.errors[k.id]===void 0);if(y8(t.loaderData,t.matches[P],O)||u.some(F=>F===O.route.id))return!0;let j=t.matches[P],$=O;return wP(O,Zt({currentUrl:x,currentParams:j.params,nextUrl:m,nextParams:$.params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s||x.pathname+x.search===m.pathname+m.search||x.search!==m.search||fA(j,$)}))}),w=[];return f.forEach((O,P)=>{if(o||!r.some(z=>z.route.id===O.routeId)||c.has(P))return;let k=us(v,O.path,g);if(!k){w.push({key:P,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(P),$=cd(k,O.path),F=!1;p.has(P)?F=!1:l.has(P)?(l.delete(P),F=!0):j&&j.state!=="idle"&&j.data===void 0?F=s:F=wP($,Zt({currentUrl:x,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:_,defaultShouldRevalidate:C?!1:s})),F&&w.push({key:P,routeId:O.routeId,path:O.path,matches:k,match:$,controller:new AbortController})}),[E,w]}function y8(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function fA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function wP(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function b8(e,t,r,n,a,o,i,s){let u=[t,...r.map(l=>l.route.id)].join("-");try{let l=i.get(u);l||(l=e({path:t,matches:r,patch:(c,f)=>{s.aborted||pA(c,f,n,a,o)}}),i.set(u,l)),l&&R8(l)&&await l}finally{i.delete(u)}}function pA(e,t,r,n,a){if(e){var o;let i=n[e];dt(i,"No route found to patch children into: routeId = "+e);let s=mf(t,a,[e,"patch",String(((o=i.children)==null?void 0:o.length)||"0")],n);i.children?i.children.push(...s):i.children=s}else{let i=mf(t,a,["patch",String(r.length||"0")],n);r.push(...i)}}async function x8(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];dt(a,"No route found in manifest");let o={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";Gs(!u,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!UB.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Zt({},t(a),{lazy:void 0}))}async function w8(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 S8(e,t,r,n,a,o,i,s,u,l){let c=o.map(v=>v.route.lazy?x8(v.route,u,s):void 0),f=o.map((v,g)=>{let y=c[g],S=a.some(m=>m.route.id===v.route.id);return Zt({},v,{shouldLoad:S,resolve:async m=>(m&&n.method==="GET"&&(v.route.lazy||v.route.loader)&&(S=!0),S?_8(t,n,v,y,m,l):Promise.resolve({type:zt.data,result:void 0}))})}),p=await e({matches:f,request:n,params:o[0].params,fetcherKey:i,context:l});try{await Promise.all(c)}catch{}return p}async function _8(e,t,r,n,a,o){let i,s,u=l=>{let c,f=new Promise((g,y)=>c=y);s=()=>c(),t.signal.addEventListener("abort",s);let p=g=>typeof l!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):l({request:t,params:r.params,context:o},...g!==void 0?[g]:[]),v=(async()=>{try{return{type:"data",result:await(a?a(y=>p(y)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([v,f])};try{let l=r.route[e];if(n)if(l){let c,[f]=await Promise.all([u(l).catch(p=>{c=p}),n]);if(c!==void 0)throw c;i=f}else if(await n,l=r.route[e],l)i=await u(l);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw un(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:zt.data,result:void 0};else if(l)i=await u(l);else{let c=new URL(t.url),f=c.pathname+c.search;throw un(404,{pathname:f})}dt(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(l){return{type:zt.error,result:l}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function C8(e){let{result:t,type:r}=e;if(vA(t)){let l;try{let c=t.headers.get("Content-Type");c&&/\bapplication\/json\b/.test(c)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(c){return{type:zt.error,error:c}}return r===zt.error?{type:zt.error,error:new zv(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:zt.data,data:l,statusCode:t.status,headers:t.headers}}if(r===zt.error){if(RP(t)){var n;if(t.data instanceof Error){var a;return{type:zt.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new zv(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:zt.error,error:t,statusCode:wm(t)?t.status:void 0}}if($8(t)){var o,i;return{type:zt.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(RP(t)){var s,u;return{type:zt.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:zt.data,data:t}}function E8(e,t,r,n,a,o){let i=e.headers.get("Location");if(dt(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!HS.test(i)){let s=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=B1(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function SP(e,t,r){if(HS.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Li(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function vl(e,t,r,n){let a=e.createURL(hA(t)).toString(),o={signal:r};if(n&&Ca(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=z1(n.formData):o.body=n.formData}return new Request(a,o)}function z1(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function _P(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function O8(e,t,r,n,a){let o={},i=null,s,u=!1,l={},c=r&&Dn(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let p=f.route.id,v=t[p];if(dt(!xs(v),"Cannot handle redirect results in processLoaderData"),Dn(v)){let g=v.error;if(c!==void 0&&(g=c,c=void 0),i=i||{},a)i[p]=g;else{let y=Kl(e,p);i[y.route.id]==null&&(i[y.route.id]=g)}o[p]=void 0,u||(u=!0,s=wm(v.error)?v.error.status:500),v.headers&&(l[p]=v.headers)}else Si(v)?(n.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!u&&(s=v.statusCode),v.headers&&(l[p]=v.headers))}),c!==void 0&&r&&(i={[r[0]]:c},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:l}}function CP(e,t,r,n,a,o,i,s){let{loaderData:u,errors:l}=O8(t,n,a,s,!1);return o.forEach(c=>{let{key:f,match:p,controller:v}=c,g=i[f];if(dt(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Dn(g)){let y=Kl(e.matches,p==null?void 0:p.route.id);l&&l[y.route.id]||(l=Zt({},l,{[y.route.id]:g.error})),e.fetchers.delete(f)}else if(xs(g))dt(!1,"Unhandled fetcher revalidation redirect");else if(Si(g))dt(!1,"Unhandled fetcher deferred data");else{let y=ti(g.data);e.fetchers.set(f,y)}}),{loaderData:u,errors:l}}function EP(e,t,r,n){let a=Zt({},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 OP(e){return e?Dn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Kl(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 PP(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 un(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(s="Bad Request",o==="route-discovery"?u='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+i):a&&r&&n?u="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"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(s="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",u='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?u="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&&(u='Invalid request method "'+a.toUpperCase()+'"')),new zv(e||500,s,new Error(u),!0)}function Yp(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(xs(a))return{key:n,result:a}}}function hA(e){let t=typeof e=="string"?io(e):e;return Qs(Zt({},t,{hash:""}))}function P8(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function R8(e){return typeof e=="object"&&e!=null&&"then"in e}function T8(e){return vA(e.result)&&d8.has(e.result.status)}function Si(e){return e.type===zt.deferred}function Dn(e){return e.type===zt.error}function xs(e){return(e&&e.type)===zt.redirect}function RP(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function $8(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 vA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function k8(e){return c8.has(e.toLowerCase())}function Ca(e){return l8.has(e.toLowerCase())}async function j8(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i(p==null?void 0:p.route.id)===s);if(!l)continue;let c=n.find(p=>p.route.id===l.route.id),f=c!=null&&!fA(c,l)&&(a&&a[l.route.id])!==void 0;Si(u)&&f&&await qS(u,r,!1).then(p=>{p&&(t[s]=p)})}}async function I8(e,t,r){for(let n=0;n(l==null?void 0:l.route.id)===o)&&Si(s)&&(dt(i,"Expected an AbortController for revalidating fetcher deferred result"),await qS(s,i.signal,!0).then(l=>{l&&(t[a]=l)}))}}async function qS(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:zt.error,error:a}}return{type:zt.data,data:e.deferredData.data}}}function KS(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function cd(e,t){let r=typeof t=="string"?io(t).search:t.search;if(e[e.length-1].route.index&&KS(r||""))return e[e.length-1];let n=uA(e);return n[n.length-1]}function TP(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 Tb(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 A8(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 Vc(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 M8(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 ti(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 F8(e,t){try{let r=e.sessionStorage.getItem(dA);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 N8(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(dA,JSON.stringify(r))}catch(n){Gs(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;tD1(e,sA(t)),[t,e])}function gA(e){d.useContext(Wi).static||d.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=d.useContext(so);return e?Z8():B8()}function B8(){Hi()||dt(!1);let e=d.useContext(rp),{basename:t,future:r,navigator:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,r.v7_relativeSplatPath)),s=d.useRef(!1);return gA(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=wm(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$o([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,o,e])}const z8=d.createContext(null);function V8(e){let t=d.useContext(so).outlet;return t&&d.createElement(z8.Provider,{value:e},t)}function QS(){let{matches:e}=d.useContext(so),t=e[e.length-1];return t?t.params:{}}function mA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(xm(a,n.v7_relativeSplatPath));return d.useMemo(()=>wm(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function U8(e,t){return yA(e,t)}function yA(e,t,r,n){Hi()||dt(!1);let{navigator:a}=d.useContext(Wi),{matches:o}=d.useContext(so),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=rn(),c;if(t){var f;let S=typeof t=="string"?io(t):t;u==="/"||(f=S.pathname)!=null&&f.startsWith(u)||dt(!1),c=S}else c=l;let p=c.pathname||"/",v=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=us(e,{pathname:v}),y=G8(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$o([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$o([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&y?d.createElement(_m.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dr.Pop}},y):y}function W8(){let e=X8(),t=Sm(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)"},o=null;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,o)}const H8=d.createElement(W8,null);class q8 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(so.Provider,{value:this.props.routeContext},d.createElement(vA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function K8(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(rp);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(so.Provider,{value:t},n)}function G8(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,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||dt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let v,g=!1,y=null,S=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||H8,u&&(l<0&&p===0?(ez("route-fallback",!1),g=!0,S=null):l===p&&(g=!0,S=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let b;return v?b=y:g?b=S:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,d.createElement(K8,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(q8,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var XS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(XS||{}),yf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yf||{});function bA(e){let t=d.useContext(rp);return t||dt(!1),t}function xA(e){let t=d.useContext(GS);return t||dt(!1),t}function Q8(e){let t=d.useContext(so);return t||dt(!1),t}function wA(e){let t=Q8(),r=t.matches[t.matches.length-1];return r.route.id||dt(!1),r.route.id}function X8(){var e;let t=d.useContext(vA),r=xA(yf.UseRouteError),n=wA(yf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let Y8=0;function J8(e){let{router:t,basename:r}=bA(XS.UseBlocker),n=xA(yf.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:Xs({},u,{pathname:Li(u.pathname,r)||u.pathname}),nextLocation:Xs({},l,{pathname:Li(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return d.useEffect(()=>{let s=String(++Y8);return o(s),()=>t.deleteBlocker(s)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Tl}function Z8(){let{router:e}=bA(XS.UseNavigateStable),t=wA(yf.UseNavigateStable),r=d.useRef(!1);return gA(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Xs({fromRouteId:t},o)))},[e,t])}const $P={};function ez(e,t,r){!t&&!$P[e]&&($P[e]=!0)}function tz(e){let{to:t,replace:r,state:n,relative:a}=e;Hi()||dt(!1);let{future:o,static:i}=d.useContext(Wi),{matches:s}=d.useContext(so),{pathname:u}=rn(),l=lo(),c=wm(t,xm(s,o.v7_relativeSplatPath),u,a==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:a}),[l,f,a,r,n]),null}function rz(e){return V8(e.context)}function zr(e){dt(!1)}function nz(e){let{basename:t="/",children:r=null,location:n,navigationType:a=dr.Pop,navigator:o,static:i=!1,future:s}=e;Hi()&&dt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:o,static:i,future:Xs({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=io(n));let{pathname:c="/",search:f="",hash:p="",state:v=null,key:g="default"}=n,y=d.useMemo(()=>{let S=Li(c,u);return S==null?null:{location:{pathname:S,search:f,hash:p,state:v,key:g},navigationType:a}},[u,c,f,p,v,g,a]);return y==null?null:d.createElement(Wi.Provider,{value:l},d.createElement(_m.Provider,{children:r,value:y}))}function ws(e){let{children:t,location:r}=e;return U8(V1(t),r)}new Promise(()=>{});function V1(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,V1(n.props.children,o));return}n.type!==zr&&dt(!1),!n.props.index||!n.props.children||dt(!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=V1(n.props.children,o)),r.push(i)}),r}function az(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 Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;tD1(e,lA(t)),[t,e])}function mA(e){d.useContext(Wi).static||d.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=d.useContext(so);return e?Z8():B8()}function B8(){Hi()||dt(!1);let e=d.useContext(rp),{basename:t,future:r,navigator:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(bm(a,r.v7_relativeSplatPath)),s=d.useRef(!1);return mA(()=>{s.current=!0}),d.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=xm(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$o([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,o,e])}const z8=d.createContext(null);function V8(e){let t=d.useContext(so).outlet;return t&&d.createElement(z8.Provider,{value:e},t)}function QS(){let{matches:e}=d.useContext(so),t=e[e.length-1];return t?t.params:{}}function yA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=d.useContext(Wi),{matches:a}=d.useContext(so),{pathname:o}=rn(),i=JSON.stringify(bm(a,n.v7_relativeSplatPath));return d.useMemo(()=>xm(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function U8(e,t){return bA(e,t)}function bA(e,t,r,n){Hi()||dt(!1);let{navigator:a}=d.useContext(Wi),{matches:o}=d.useContext(so),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=rn(),c;if(t){var f;let S=typeof t=="string"?io(t):t;u==="/"||(f=S.pathname)!=null&&f.startsWith(u)||dt(!1),c=S}else c=l;let p=c.pathname||"/",v=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=us(e,{pathname:v}),y=G8(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$o([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$o([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&y?d.createElement(Sm.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:dr.Pop}},y):y}function W8(){let e=X8(),t=wm(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)"},o=null;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,o)}const H8=d.createElement(W8,null);class q8 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(so.Provider,{value:this.props.routeContext},d.createElement(gA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function K8(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(rp);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(so.Provider,{value:t},n)}function G8(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,s=(a=r)==null?void 0:a.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||dt(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,l=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((c,f,p)=>{let v,g=!1,y=null,S=null;r&&(v=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||H8,u&&(l<0&&p===0?(ez("route-fallback",!1),g=!0,S=null):l===p&&(g=!0,S=f.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,p+1)),m=()=>{let b;return v?b=y:g?b=S:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=c,d.createElement(K8,{match:f,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?d.createElement(q8,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var XS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(XS||{}),yf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yf||{});function xA(e){let t=d.useContext(rp);return t||dt(!1),t}function wA(e){let t=d.useContext(GS);return t||dt(!1),t}function Q8(e){let t=d.useContext(so);return t||dt(!1),t}function SA(e){let t=Q8(),r=t.matches[t.matches.length-1];return r.route.id||dt(!1),r.route.id}function X8(){var e;let t=d.useContext(gA),r=wA(yf.UseRouteError),n=SA(yf.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let Y8=0;function J8(e){let{router:t,basename:r}=xA(XS.UseBlocker),n=wA(yf.UseBlocker),[a,o]=d.useState(""),i=d.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:u,nextLocation:l,historyAction:c}=s;return e({currentLocation:Xs({},u,{pathname:Li(u.pathname,r)||u.pathname}),nextLocation:Xs({},l,{pathname:Li(l.pathname,r)||l.pathname}),historyAction:c})},[r,e]);return d.useEffect(()=>{let s=String(++Y8);return o(s),()=>t.deleteBlocker(s)},[t]),d.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Tl}function Z8(){let{router:e}=xA(XS.UseNavigateStable),t=SA(yf.UseNavigateStable),r=d.useRef(!1);return mA(()=>{r.current=!0}),d.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Xs({fromRouteId:t},o)))},[e,t])}const $P={};function ez(e,t,r){!t&&!$P[e]&&($P[e]=!0)}function tz(e){let{to:t,replace:r,state:n,relative:a}=e;Hi()||dt(!1);let{future:o,static:i}=d.useContext(Wi),{matches:s}=d.useContext(so),{pathname:u}=rn(),l=lo(),c=xm(t,bm(s,o.v7_relativeSplatPath),u,a==="path"),f=JSON.stringify(c);return d.useEffect(()=>l(JSON.parse(f),{replace:r,state:n,relative:a}),[l,f,a,r,n]),null}function rz(e){return V8(e.context)}function zr(e){dt(!1)}function nz(e){let{basename:t="/",children:r=null,location:n,navigationType:a=dr.Pop,navigator:o,static:i=!1,future:s}=e;Hi()&&dt(!1);let u=t.replace(/^\/*/,"/"),l=d.useMemo(()=>({basename:u,navigator:o,static:i,future:Xs({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof n=="string"&&(n=io(n));let{pathname:c="/",search:f="",hash:p="",state:v=null,key:g="default"}=n,y=d.useMemo(()=>{let S=Li(c,u);return S==null?null:{location:{pathname:S,search:f,hash:p,state:v,key:g},navigationType:a}},[u,c,f,p,v,g,a]);return y==null?null:d.createElement(Wi.Provider,{value:l},d.createElement(Sm.Provider,{children:r,value:y}))}function ws(e){let{children:t,location:r}=e;return U8(V1(t),r)}new Promise(()=>{});function V1(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,V1(n.props.children,o));return}n.type!==zr&&dt(!1),!n.props.index||!n.props.children||dt(!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=V1(n.props.children,o)),r.push(i)}),r}function az(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.26.2 * * Copyright (c) Remix Software Inc. @@ -66,18 +66,18 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function iz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sz(e,t){return e.button===0&&(!t||t==="_self")&&!iz(e)}const lz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],uz="6";try{window.__reactRouterVersion=uz}catch{}function cz(e,t){return v8({basename:t==null?void 0:t.basename,future:bf({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:BB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dz(),routes:e,mapRouteProperties:az,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function dz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bf({},t,{errors:fz(t.errors)})),t}function fz(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 Vv(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 pz=d.createContext({isTransitioning:!1}),hz=d.createContext(new Map),vz="startTransition",kP=Xd[vz],gz="flushSync",jP=iB[gz];function mz(e){kP?kP(e):e()}function Uc(e){jP?jP(e):e()}class yz{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 bz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,s]=d.useState(),[u,l]=d.useState({isTransitioning:!1}),[c,f]=d.useState(),[p,v]=d.useState(),[g,y]=d.useState(),S=d.useRef(new Map),{v7_startTransition:x}=n||{},m=d.useCallback(w=>{x?mz(w):w()},[x]),b=d.useCallback((w,O)=>{let{deletedFetchers:P,unstable_flushSync:k,unstable_viewTransitionOpts:j}=O;P.forEach(F=>S.current.delete(F)),w.fetchers.forEach((F,z)=>{F.data!==void 0&&S.current.set(z,F.data)});let $=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!j||$){k?Uc(()=>o(w)):m(()=>o(w));return}if(k){Uc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let F=r.window.document.startViewTransition(()=>{Uc(()=>o(w))});F.finished.finally(()=>{Uc(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})})}),Uc(()=>v(F));return}p?(c&&c.resolve(),p.skipTransition(),y({state:w,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(s(w),l({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[r.window,p,c,S,m]);d.useLayoutEffect(()=>r.subscribe(b),[r,b]),d.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new yz)},[u]),d.useEffect(()=>{if(c&&i&&r.window){let w=i,O=c.promise,P=r.window.document.startViewTransition(async()=>{m(()=>o(w)),await O});P.finished.finally(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})}),v(P)}},[m,i,c,r.window]),d.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),d.useEffect(()=>{!u.isTransitioning&&g&&(s(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[u.isTransitioning,g]),d.useEffect(()=>{},[]);let h=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:w=>r.navigate(w),push:(w,O,P)=>r.navigate(w,{state:O,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(w,O,P)=>r.navigate(w,{replace:!0,state:O,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[r]),_=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:h,static:!1,basename:_}),[r,h,_]),E=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(rp.Provider,{value:C},d.createElement(GS.Provider,{value:a},d.createElement(hz.Provider,{value:S.current},d.createElement(pz.Provider,{value:u},d.createElement(nz,{basename:_,location:a.location,navigationType:a.historyAction,navigator:h,future:E},a.initialized||r.future.v7_partialHydration?d.createElement(xz,{routes:r.routes,future:r.future,state:a}):t))))),null)}const xz=d.memo(wz);function wz(e){let{routes:t,future:r,state:n}=e;return yA(t,void 0,n,r)}const Sz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=oz(t,lz),{basename:v}=d.useContext(Wi),g,y=!1;if(typeof l=="string"&&_z.test(l)&&(g=l,Sz))try{let b=new URL(window.location.href),h=l.startsWith("//")?new URL(b.protocol+l):new URL(l),_=Li(h.pathname,v);h.origin===b.origin&&_!=null?l=_+h.search+h.hash:y=!0}catch{}let S=L8(l,{relative:a}),x=Cz(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||x(b)}return d.createElement("a",bf({},p,{href:g||S,onClick:y||o?n:m,ref:r,target:u}))});var IP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(IP||(IP={}));var AP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AP||(AP={}));function Cz(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lo(),l=rn(),c=mA(e,{relative:i});return d.useCallback(f=>{if(sz(f,r)){f.preventDefault();let p=n!==void 0?n:Qs(l)===Qs(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var Ez="RaStore",Oz=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}},U1=Oz(),Pz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Ez).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?MP(s.newValue):void 0;Object.keys(a).forEach(function(f){a[f]&&a[f].key===l&&(c===null?a[f].callback(void 0):a[f].callback(c??void 0))})}};return{setup:function(){if(U1){var s=go().getItem("".concat(r,".version"));if(s&&s!==e){var u=go();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}go().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){U1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=go().getItem("".concat(r,".").concat(s));return l==null?u:MP(l)},setItem:function(s,u){u===void 0?go().removeItem("".concat(r,".").concat(s)):go().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){go().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=go();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=go();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},MP=function(e){try{return JSON.parse(e)}catch{return e}},Rz=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}(),Tz=new Rz,go=function(){return U1?window.localStorage:Tz},$z=typeof Al=="object"&&Al&&Al.Object===Object&&Al,SA=$z,kz=SA,jz=typeof self=="object"&&self&&self.Object===Object&&self,Iz=kz||jz||Function("return this")(),Na=Iz,Az=Na,Mz=Az.Symbol,cc=Mz,FP=cc,_A=Object.prototype,Fz=_A.hasOwnProperty,Nz=_A.toString,Wc=FP?FP.toStringTag:void 0;function Lz(e){var t=Fz.call(e,Wc),r=e[Wc];try{e[Wc]=void 0;var n=!0}catch{}var a=Nz.call(e);return n&&(t?e[Wc]=r:delete e[Wc]),a}var Dz=Lz,Bz=Object.prototype,zz=Bz.toString;function Vz(e){return zz.call(e)}var Uz=Vz,NP=cc,Wz=Dz,Hz=Uz,qz="[object Null]",Kz="[object Undefined]",LP=NP?NP.toStringTag:void 0;function Gz(e){return e==null?e===void 0?Kz:qz:LP&&LP in Object(e)?Wz(e):Hz(e)}var dc=Gz;function Qz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var La=Qz,Xz=dc,Yz=La,Jz="[object AsyncFunction]",Zz="[object Function]",e9="[object GeneratorFunction]",t9="[object Proxy]";function r9(e){if(!Yz(e))return!1;var t=Xz(e);return t==Zz||t==e9||t==Jz||t==t9}var YS=r9,n9=Na,a9=n9["__core-js_shared__"],o9=a9,kb=o9,DP=function(){var e=/[^.]+$/.exec(kb&&kb.keys&&kb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i9(e){return!!DP&&DP in e}var s9=i9,l9=Function.prototype,u9=l9.toString;function c9(e){if(e!=null){try{return u9.call(e)}catch{}try{return e+""}catch{}}return""}var CA=c9,d9=YS,f9=s9,p9=La,h9=CA,v9=/[\\^$.*+?()[\]{}|]/g,g9=/^\[object .+?Constructor\]$/,m9=Function.prototype,y9=Object.prototype,b9=m9.toString,x9=y9.hasOwnProperty,w9=RegExp("^"+b9.call(x9).replace(v9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S9(e){if(!p9(e)||f9(e))return!1;var t=d9(e)?w9:g9;return t.test(h9(e))}var _9=S9;function C9(e,t){return e==null?void 0:e[t]}var E9=C9,O9=_9,P9=E9;function R9(e,t){var r=P9(e,t);return O9(r)?r:void 0}var sl=R9,T9=sl,$9=function(){try{var e=T9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),EA=$9,BP=EA;function k9(e,t,r){t=="__proto__"&&BP?BP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var JS=k9;function j9(e,t){return e===t||e!==e&&t!==t}var fc=j9,I9=JS,A9=fc,M9=Object.prototype,F9=M9.hasOwnProperty;function N9(e,t,r){var n=e[t];(!(F9.call(e,t)&&A9(n,r))||r===void 0&&!(t in e))&&I9(e,t,r)}var ZS=N9,L9=Array.isArray,uo=L9;function D9(e){return e!=null&&typeof e=="object"}var Vo=D9,B9=dc,z9=Vo,V9="[object Symbol]";function U9(e){return typeof e=="symbol"||z9(e)&&B9(e)==V9}var Cm=U9,W9=uo,H9=Cm,q9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K9=/^\w*$/;function G9(e,t){if(W9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||H9(e)?!0:K9.test(e)||!q9.test(e)||t!=null&&e in Object(t)}var Q9=G9,X9=sl,Y9=X9(Object,"create"),Em=Y9,zP=Em;function J9(){this.__data__=zP?zP(null):{},this.size=0}var Z9=J9;function e7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var t7=e7,r7=Em,n7="__lodash_hash_undefined__",a7=Object.prototype,o7=a7.hasOwnProperty;function i7(e){var t=this.__data__;if(r7){var r=t[e];return r===n7?void 0:r}return o7.call(t,e)?t[e]:void 0}var s7=i7,l7=Em,u7=Object.prototype,c7=u7.hasOwnProperty;function d7(e){var t=this.__data__;return l7?t[e]!==void 0:c7.call(t,e)}var f7=d7,p7=Em,h7="__lodash_hash_undefined__";function v7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=p7&&t===void 0?h7:t,this}var g7=v7,m7=Z9,y7=t7,b7=s7,x7=f7,w7=g7;function pc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var N7=F7,L7=Om;function D7(e,t){var r=this.__data__,n=L7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var B7=D7,z7=C7,V7=k7,U7=A7,W7=N7,H7=B7;function hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,v=r&dW?new sW:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e<=lH}var c_=uH,cH=dc,dH=c_,fH=Vo,pH="[object Arguments]",hH="[object Array]",vH="[object Boolean]",gH="[object Date]",mH="[object Error]",yH="[object Function]",bH="[object Map]",xH="[object Number]",wH="[object Object]",SH="[object RegExp]",_H="[object Set]",CH="[object String]",EH="[object WeakMap]",OH="[object ArrayBuffer]",PH="[object DataView]",RH="[object Float32Array]",TH="[object Float64Array]",$H="[object Int8Array]",kH="[object Int16Array]",jH="[object Int32Array]",IH="[object Uint8Array]",AH="[object Uint8ClampedArray]",MH="[object Uint16Array]",FH="[object Uint32Array]",Gt={};Gt[RH]=Gt[TH]=Gt[$H]=Gt[kH]=Gt[jH]=Gt[IH]=Gt[AH]=Gt[MH]=Gt[FH]=!0;Gt[pH]=Gt[hH]=Gt[OH]=Gt[vH]=Gt[PH]=Gt[gH]=Gt[mH]=Gt[yH]=Gt[bH]=Gt[xH]=Gt[wH]=Gt[SH]=Gt[_H]=Gt[CH]=Gt[EH]=!1;function NH(e){return fH(e)&&dH(e.length)&&!!Gt[cH(e)]}var LH=NH;function DH(e){return function(t){return e(t)}}var Mm=DH,Hv={exports:{}};Hv.exports;(function(e,t){var r=SA,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Hv,Hv.exports);var d_=Hv.exports,BH=LH,zH=Mm,ZP=d_,e2=ZP&&ZP.isTypedArray,VH=e2?zH(e2):BH,f_=VH,UH=XW,WH=Im,HH=uo,qH=Am,KH=Tm,GH=f_,QH=Object.prototype,XH=QH.hasOwnProperty;function YH(e,t){var r=HH(e),n=!r&&WH(e),a=!r&&!n&&qH(e),o=!r&&!n&&!a&&GH(e),i=r||n||a||o,s=i?UH(e.length,String):[],u=s.length;for(var l in e)(t||XH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||KH(l,u)))&&s.push(l);return s}var DA=YH,JH=Object.prototype;function ZH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||JH;return e===r}var p_=ZH;function eq(e,t){return function(r){return e(t(r))}}var BA=eq,tq=BA,rq=tq(Object.keys,Object),nq=rq,aq=p_,oq=nq,iq=Object.prototype,sq=iq.hasOwnProperty;function lq(e){if(!aq(e))return oq(e);var t=[];for(var r in Object(e))sq.call(e,r)&&r!="constructor"&&t.push(r);return t}var uq=lq,cq=YS,dq=c_;function fq(e){return e!=null&&dq(e.length)&&!cq(e)}var Fm=fq,pq=DA,hq=uq,vq=Fm;function gq(e){return vq(e)?pq(e):hq(e)}var h_=gq,mq=FA,yq=u_,bq=h_;function xq(e){return mq(e,bq,yq)}var zA=xq,t2=zA,wq=1,Sq=Object.prototype,_q=Sq.hasOwnProperty;function Cq(e,t,r,n,a,o){var i=r&wq,s=t2(e),u=s.length,l=t2(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:_q.call(t,p)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var S=i;++f0){if(++t>=qG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var XG=QG,YG=HG,JG=XG,ZG=JG(YG),aM=ZG,eQ=rM,tQ=nM,rQ=aM;function nQ(e,t){return rQ(tQ(e,t,eQ),e+"")}var Lm=nQ,aQ=fc,oQ=Fm,iQ=Tm,sQ=La;function lQ(e,t,r){if(!sQ(r))return!1;var n=typeof t;return(n=="number"?oQ(r)&&iQ(t,r.length):n=="string"&&t in r)?aQ(r[t],e):!1}var oM=lQ,uQ=Lm,cQ=oM;function dQ(e){return uQ(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&&cQ(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||E<0||f&&w>=o}function x(){var C=Ab();if(S(C))return m(C);s=setTimeout(x,y(C))}function m(C){return s=void 0,p&&n?v(C):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function h(){return s===void 0?i:m(Ab())}function _(){var C=Ab(),E=S(C);if(n=arguments,a=this,u=C,E){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),v(u)}return s===void 0&&(s=setTimeout(x,t)),i}return _.cancel=b,_.flush=h,_}var _J=SJ;const x_=Mr(_J);var CJ=function(e,t){t===void 0&&(t=250);var r=EJ(e,t),n=r[0],a=r[1],o=rn();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))},[])},EJ=function(e,t){t===void 0&&(t=250);var r=ya(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=x_(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},OJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return CJ(r,a),t},qi=function(){return d.useContext(hM)},ll=function(){var e=qi();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 qa("".concat(e,"/").concat(r));case"create":return qa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},qa=function(e){return e.replace("//","/")};function A2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var vM=function(e,t){if(A2(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 bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function iz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sz(e,t){return e.button===0&&(!t||t==="_self")&&!iz(e)}const lz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],uz="6";try{window.__reactRouterVersion=uz}catch{}function cz(e,t){return v8({basename:t==null?void 0:t.basename,future:bf({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:BB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||dz(),routes:e,mapRouteProperties:az,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function dz(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bf({},t,{errors:fz(t.errors)})),t}function fz(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 zv(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 pz=d.createContext({isTransitioning:!1}),hz=d.createContext(new Map),vz="startTransition",kP=Xd[vz],gz="flushSync",jP=iB[gz];function mz(e){kP?kP(e):e()}function Uc(e){jP?jP(e):e()}class yz{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 bz(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=d.useState(r.state),[i,s]=d.useState(),[u,l]=d.useState({isTransitioning:!1}),[c,f]=d.useState(),[p,v]=d.useState(),[g,y]=d.useState(),S=d.useRef(new Map),{v7_startTransition:x}=n||{},m=d.useCallback(w=>{x?mz(w):w()},[x]),b=d.useCallback((w,O)=>{let{deletedFetchers:P,unstable_flushSync:k,unstable_viewTransitionOpts:j}=O;P.forEach(F=>S.current.delete(F)),w.fetchers.forEach((F,z)=>{F.data!==void 0&&S.current.set(z,F.data)});let $=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!j||$){k?Uc(()=>o(w)):m(()=>o(w));return}if(k){Uc(()=>{p&&(c&&c.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let F=r.window.document.startViewTransition(()=>{Uc(()=>o(w))});F.finished.finally(()=>{Uc(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})})}),Uc(()=>v(F));return}p?(c&&c.resolve(),p.skipTransition(),y({state:w,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(s(w),l({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[r.window,p,c,S,m]);d.useLayoutEffect(()=>r.subscribe(b),[r,b]),d.useEffect(()=>{u.isTransitioning&&!u.flushSync&&f(new yz)},[u]),d.useEffect(()=>{if(c&&i&&r.window){let w=i,O=c.promise,P=r.window.document.startViewTransition(async()=>{m(()=>o(w)),await O});P.finished.finally(()=>{f(void 0),v(void 0),s(void 0),l({isTransitioning:!1})}),v(P)}},[m,i,c,r.window]),d.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),d.useEffect(()=>{!u.isTransitioning&&g&&(s(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[u.isTransitioning,g]),d.useEffect(()=>{},[]);let h=d.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:w=>r.navigate(w),push:(w,O,P)=>r.navigate(w,{state:O,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(w,O,P)=>r.navigate(w,{replace:!0,state:O,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[r]),_=r.basename||"/",C=d.useMemo(()=>({router:r,navigator:h,static:!1,basename:_}),[r,h,_]),E=d.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(rp.Provider,{value:C},d.createElement(GS.Provider,{value:a},d.createElement(hz.Provider,{value:S.current},d.createElement(pz.Provider,{value:u},d.createElement(nz,{basename:_,location:a.location,navigationType:a.historyAction,navigator:h,future:E},a.initialized||r.future.v7_partialHydration?d.createElement(xz,{routes:r.routes,future:r.future,state:a}):t))))),null)}const xz=d.memo(wz);function wz(e){let{routes:t,future:r,state:n}=e;return bA(t,void 0,n,r)}const Sz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=d.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:f}=t,p=oz(t,lz),{basename:v}=d.useContext(Wi),g,y=!1;if(typeof l=="string"&&_z.test(l)&&(g=l,Sz))try{let b=new URL(window.location.href),h=l.startsWith("//")?new URL(b.protocol+l):new URL(l),_=Li(h.pathname,v);h.origin===b.origin&&_!=null?l=_+h.search+h.hash:y=!0}catch{}let S=L8(l,{relative:a}),x=Cz(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:a,unstable_viewTransition:f});function m(b){n&&n(b),b.defaultPrevented||x(b)}return d.createElement("a",bf({},p,{href:g||S,onClick:y||o?n:m,ref:r,target:u}))});var IP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(IP||(IP={}));var AP;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AP||(AP={}));function Cz(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,u=lo(),l=rn(),c=yA(e,{relative:i});return d.useCallback(f=>{if(sz(f,r)){f.preventDefault();let p=n!==void 0?n:Qs(l)===Qs(c);u(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[l,u,c,n,a,r,e,o,i,s])}var Ez="RaStore",Oz=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}},U1=Oz(),Pz=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(Ez).concat(t),n=r.length,a={},o=function(s,u){Object.keys(a).forEach(function(l){a[l]&&a[l].key===s&&a[l].callback(u)})},i=function(s){var u;if(((u=s.key)===null||u===void 0?void 0:u.substring(0,n))===r){var l=s.key.substring(n+1),c=s.newValue?MP(s.newValue):void 0;Object.keys(a).forEach(function(f){a[f]&&a[f].key===l&&(c===null?a[f].callback(void 0):a[f].callback(c??void 0))})}};return{setup:function(){if(U1){var s=go().getItem("".concat(r,".version"));if(s&&s!==e){var u=go();Object.keys(u).forEach(function(l){l.startsWith(r)&&u.removeItem(l)})}go().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){U1&&window.removeEventListener("storage",i)},getItem:function(s,u){var l=go().getItem("".concat(r,".").concat(s));return l==null?u:MP(l)},setItem:function(s,u){u===void 0?go().removeItem("".concat(r,".").concat(s)):go().setItem("".concat(r,".").concat(s),JSON.stringify(u)),o(s,u)},removeItem:function(s){go().removeItem("".concat(r,".").concat(s)),o(s,void 0)},removeItems:function(s){var u=go();Object.keys(u).forEach(function(l){if(l.startsWith("".concat(r,".").concat(s))){u.removeItem(l);var c=l.substring(n+1);o(c,void 0)}})},reset:function(){var s=go();Object.keys(s).forEach(function(u){if(u.startsWith(r)){s.removeItem(u);var l=u.substring(n+1);o(l,void 0)}})},subscribe:function(s,u){var l=Math.random().toString();return a[l]={key:s,callback:u},function(){delete a[l]}}}},MP=function(e){try{return JSON.parse(e)}catch{return e}},Rz=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}(),Tz=new Rz,go=function(){return U1?window.localStorage:Tz},$z=typeof Al=="object"&&Al&&Al.Object===Object&&Al,_A=$z,kz=_A,jz=typeof self=="object"&&self&&self.Object===Object&&self,Iz=kz||jz||Function("return this")(),Na=Iz,Az=Na,Mz=Az.Symbol,cc=Mz,FP=cc,CA=Object.prototype,Fz=CA.hasOwnProperty,Nz=CA.toString,Wc=FP?FP.toStringTag:void 0;function Lz(e){var t=Fz.call(e,Wc),r=e[Wc];try{e[Wc]=void 0;var n=!0}catch{}var a=Nz.call(e);return n&&(t?e[Wc]=r:delete e[Wc]),a}var Dz=Lz,Bz=Object.prototype,zz=Bz.toString;function Vz(e){return zz.call(e)}var Uz=Vz,NP=cc,Wz=Dz,Hz=Uz,qz="[object Null]",Kz="[object Undefined]",LP=NP?NP.toStringTag:void 0;function Gz(e){return e==null?e===void 0?Kz:qz:LP&&LP in Object(e)?Wz(e):Hz(e)}var dc=Gz;function Qz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var La=Qz,Xz=dc,Yz=La,Jz="[object AsyncFunction]",Zz="[object Function]",e9="[object GeneratorFunction]",t9="[object Proxy]";function r9(e){if(!Yz(e))return!1;var t=Xz(e);return t==Zz||t==e9||t==Jz||t==t9}var YS=r9,n9=Na,a9=n9["__core-js_shared__"],o9=a9,$b=o9,DP=function(){var e=/[^.]+$/.exec($b&&$b.keys&&$b.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function i9(e){return!!DP&&DP in e}var s9=i9,l9=Function.prototype,u9=l9.toString;function c9(e){if(e!=null){try{return u9.call(e)}catch{}try{return e+""}catch{}}return""}var EA=c9,d9=YS,f9=s9,p9=La,h9=EA,v9=/[\\^$.*+?()[\]{}|]/g,g9=/^\[object .+?Constructor\]$/,m9=Function.prototype,y9=Object.prototype,b9=m9.toString,x9=y9.hasOwnProperty,w9=RegExp("^"+b9.call(x9).replace(v9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S9(e){if(!p9(e)||f9(e))return!1;var t=d9(e)?w9:g9;return t.test(h9(e))}var _9=S9;function C9(e,t){return e==null?void 0:e[t]}var E9=C9,O9=_9,P9=E9;function R9(e,t){var r=P9(e,t);return O9(r)?r:void 0}var sl=R9,T9=sl,$9=function(){try{var e=T9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),OA=$9,BP=OA;function k9(e,t,r){t=="__proto__"&&BP?BP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var JS=k9;function j9(e,t){return e===t||e!==e&&t!==t}var fc=j9,I9=JS,A9=fc,M9=Object.prototype,F9=M9.hasOwnProperty;function N9(e,t,r){var n=e[t];(!(F9.call(e,t)&&A9(n,r))||r===void 0&&!(t in e))&&I9(e,t,r)}var ZS=N9,L9=Array.isArray,uo=L9;function D9(e){return e!=null&&typeof e=="object"}var Vo=D9,B9=dc,z9=Vo,V9="[object Symbol]";function U9(e){return typeof e=="symbol"||z9(e)&&B9(e)==V9}var _m=U9,W9=uo,H9=_m,q9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K9=/^\w*$/;function G9(e,t){if(W9(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||H9(e)?!0:K9.test(e)||!q9.test(e)||t!=null&&e in Object(t)}var Q9=G9,X9=sl,Y9=X9(Object,"create"),Cm=Y9,zP=Cm;function J9(){this.__data__=zP?zP(null):{},this.size=0}var Z9=J9;function e7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var t7=e7,r7=Cm,n7="__lodash_hash_undefined__",a7=Object.prototype,o7=a7.hasOwnProperty;function i7(e){var t=this.__data__;if(r7){var r=t[e];return r===n7?void 0:r}return o7.call(t,e)?t[e]:void 0}var s7=i7,l7=Cm,u7=Object.prototype,c7=u7.hasOwnProperty;function d7(e){var t=this.__data__;return l7?t[e]!==void 0:c7.call(t,e)}var f7=d7,p7=Cm,h7="__lodash_hash_undefined__";function v7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=p7&&t===void 0?h7:t,this}var g7=v7,m7=Z9,y7=t7,b7=s7,x7=f7,w7=g7;function pc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var N7=F7,L7=Em;function D7(e,t){var r=this.__data__,n=L7(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var B7=D7,z7=C7,V7=k7,U7=A7,W7=N7,H7=B7;function hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&ea?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++ns))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,v=r&dW?new sW:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e<=lH}var c_=uH,cH=dc,dH=c_,fH=Vo,pH="[object Arguments]",hH="[object Array]",vH="[object Boolean]",gH="[object Date]",mH="[object Error]",yH="[object Function]",bH="[object Map]",xH="[object Number]",wH="[object Object]",SH="[object RegExp]",_H="[object Set]",CH="[object String]",EH="[object WeakMap]",OH="[object ArrayBuffer]",PH="[object DataView]",RH="[object Float32Array]",TH="[object Float64Array]",$H="[object Int8Array]",kH="[object Int16Array]",jH="[object Int32Array]",IH="[object Uint8Array]",AH="[object Uint8ClampedArray]",MH="[object Uint16Array]",FH="[object Uint32Array]",Gt={};Gt[RH]=Gt[TH]=Gt[$H]=Gt[kH]=Gt[jH]=Gt[IH]=Gt[AH]=Gt[MH]=Gt[FH]=!0;Gt[pH]=Gt[hH]=Gt[OH]=Gt[vH]=Gt[PH]=Gt[gH]=Gt[mH]=Gt[yH]=Gt[bH]=Gt[xH]=Gt[wH]=Gt[SH]=Gt[_H]=Gt[CH]=Gt[EH]=!1;function NH(e){return fH(e)&&dH(e.length)&&!!Gt[cH(e)]}var LH=NH;function DH(e){return function(t){return e(t)}}var Am=DH,Wv={exports:{}};Wv.exports;(function(e,t){var r=_A,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(Wv,Wv.exports);var d_=Wv.exports,BH=LH,zH=Am,ZP=d_,e2=ZP&&ZP.isTypedArray,VH=e2?zH(e2):BH,f_=VH,UH=XW,WH=jm,HH=uo,qH=Im,KH=Rm,GH=f_,QH=Object.prototype,XH=QH.hasOwnProperty;function YH(e,t){var r=HH(e),n=!r&&WH(e),a=!r&&!n&&qH(e),o=!r&&!n&&!a&&GH(e),i=r||n||a||o,s=i?UH(e.length,String):[],u=s.length;for(var l in e)(t||XH.call(e,l))&&!(i&&(l=="length"||a&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||KH(l,u)))&&s.push(l);return s}var BA=YH,JH=Object.prototype;function ZH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||JH;return e===r}var p_=ZH;function eq(e,t){return function(r){return e(t(r))}}var zA=eq,tq=zA,rq=tq(Object.keys,Object),nq=rq,aq=p_,oq=nq,iq=Object.prototype,sq=iq.hasOwnProperty;function lq(e){if(!aq(e))return oq(e);var t=[];for(var r in Object(e))sq.call(e,r)&&r!="constructor"&&t.push(r);return t}var uq=lq,cq=YS,dq=c_;function fq(e){return e!=null&&dq(e.length)&&!cq(e)}var Mm=fq,pq=BA,hq=uq,vq=Mm;function gq(e){return vq(e)?pq(e):hq(e)}var h_=gq,mq=NA,yq=u_,bq=h_;function xq(e){return mq(e,bq,yq)}var VA=xq,t2=VA,wq=1,Sq=Object.prototype,_q=Sq.hasOwnProperty;function Cq(e,t,r,n,a,o){var i=r&wq,s=t2(e),u=s.length,l=t2(t),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var p=s[f];if(!(i?p in t:_q.call(t,p)))return!1}var v=o.get(e),g=o.get(t);if(v&&g)return v==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var S=i;++f0){if(++t>=qG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var XG=QG,YG=HG,JG=XG,ZG=JG(YG),oM=ZG,eQ=nM,tQ=aM,rQ=oM;function nQ(e,t){return rQ(tQ(e,t,eQ),e+"")}var Nm=nQ,aQ=fc,oQ=Mm,iQ=Rm,sQ=La;function lQ(e,t,r){if(!sQ(r))return!1;var n=typeof t;return(n=="number"?oQ(r)&&iQ(t,r.length):n=="string"&&t in r)?aQ(r[t],e):!1}var iM=lQ,uQ=Nm,cQ=iM;function dQ(e){return uQ(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&&cQ(r[0],r[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++n=t||E<0||f&&w>=o}function x(){var C=Ib();if(S(C))return m(C);s=setTimeout(x,y(C))}function m(C){return s=void 0,p&&n?v(C):(n=a=void 0,i)}function b(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function h(){return s===void 0?i:m(Ib())}function _(){var C=Ib(),E=S(C);if(n=arguments,a=this,u=C,E){if(s===void 0)return g(u);if(f)return clearTimeout(s),s=setTimeout(x,t),v(u)}return s===void 0&&(s=setTimeout(x,t)),i}return _.cancel=b,_.flush=h,_}var _J=SJ;const x_=Mr(_J);var CJ=function(e,t){t===void 0&&(t=250);var r=EJ(e,t),n=r[0],a=r[1],o=rn();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))},[])},EJ=function(e,t){t===void 0&&(t=250);var r=ya(e),n=r[0],a=r[1];return d.useEffect(function(){if(!(typeof window>"u")){var o=x_(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},OJ=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return CJ(r,a),t},qi=function(){return d.useContext(vM)},ll=function(){var e=qi();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 qa("".concat(e,"/").concat(r));case"create":return qa("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?qa("".concat(e,"/").concat(r)):qa("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},qa=function(e){return e.replace("//","/")};function A2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var gM=function(e,t){if(A2(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(", ")))},Gv=globalThis&&globalThis.__spreadArray||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()}`),PM="%[a-f0-9]{2}",D2=new RegExp("("+PM+")|([^%]+?)","gi"),B2=new RegExp("("+PM+")+","gi");function J1(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([],J1(r),J1(n))}function tZ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(D2)||[],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)]},oZ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;om==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return b=>(h,_)=>{const C=h.length;return _===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[",C,"]"].join("")]:[...h,[c(b,m),"[",c(C,m),"]=",c(_,m)].join("")]};case"bracket":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[]"].join("")]:[...h,[c(b,m),"[]=",c(_,m)].join("")];case"colon-list-separator":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),":list="].join("")]:[...h,[c(b,m),":list=",c(_,m)].join("")];case"comma":case"separator":case"bracket-separator":{const b=m.arrayFormat==="bracket-separator"?"[]=":"=";return h=>(_,C)=>C===void 0||m.skipNull&&C===null||m.skipEmptyString&&C===""?_:(C=C===null?"":C,_.length===0?[[c(h,m),b,c(C,m)].join("")]:[[_,c(C,m)].join(m.arrayFormatSeparator)])}default:return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,c(b,m)]:[...h,[c(b,m),"=",c(_,m)].join("")]}}function u(m){let b;switch(m.arrayFormat){case"index":return(h,_,C)=>{if(b=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!b){C[h]=_;return}C[h]===void 0&&(C[h]={}),C[h][b[1]]=_};case"bracket":return(h,_,C)=>{if(b=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"colon-list-separator":return(h,_,C)=>{if(b=/(:list)$/.exec(h),h=h.replace(/:list$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"comma":case"separator":return(h,_,C)=>{const E=typeof _=="string"&&_.includes(m.arrayFormatSeparator),w=typeof _=="string"&&!E&&f(_,m).includes(m.arrayFormatSeparator);_=w?f(_,m):_;const O=E||w?_.split(m.arrayFormatSeparator).map(P=>f(P,m)):_===null?_:f(_,m);C[h]=O};case"bracket-separator":return(h,_,C)=>{const E=/(\[\])$/.test(h);if(h=h.replace(/\[\]$/,""),!E){C[h]=_&&f(_,m);return}const w=_===null?[]:_.split(m.arrayFormatSeparator).map(O=>f(O,m));if(C[h]===void 0){C[h]=w;return}C[h]=[].concat(C[h],w)};default:return(h,_,C)=>{if(C[h]===void 0){C[h]=_;return}C[h]=[].concat(C[h],_)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,b){return b.encode?b.strict?t(m):encodeURIComponent(m):m}function f(m,b){return b.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((b,h)=>Number(b)-Number(h)).map(b=>m[b]):m}function v(m){const b=m.indexOf("#");return b!==-1&&(m=m.slice(0,b)),m}function g(m){let b="";const h=m.indexOf("#");return h!==-1&&(b=m.slice(h)),b}function y(m){m=v(m);const b=m.indexOf("?");return b===-1?"":m.slice(b+1)}function S(m,b){return b.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):b.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const h=u(b),_=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return _;for(const C of m.split("&")){if(C==="")continue;let[E,w]=n(b.decode?C.replace(/\+/g," "):C,"=");w=w===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?w:f(w,b),h(f(E,b),w,_)}for(const C of Object.keys(_)){const E=_[C];if(typeof E=="object"&&E!==null)for(const w of Object.keys(E))E[w]=S(E[w],b);else _[C]=S(E,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((C,E)=>{const w=_[E];return w&&typeof w=="object"&&!Array.isArray(w)?C[E]=p(w):C[E]=w,C},Object.create(null))}e.extract=y,e.parse=x,e.stringify=(m,b)=>{if(!m)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const h=w=>b.skipNull&&o(m[w])||b.skipEmptyString&&m[w]==="",_=s(b),C={};for(const w of Object.keys(m))h(w)||(C[w]=m[w]);const E=Object.keys(C);return b.sort!==!1&&E.sort(b.sort),E.map(w=>{const O=m[w];return O===void 0?"":O===null?c(w,b):Array.isArray(O)?O.length===0&&b.arrayFormat==="bracket-separator"?c(w,b)+"[]":O.reduce(_(w),[]).join("&"):c(w,b)+"="+c(O,b)}).filter(w=>w.length>0).join("&")},e.parseUrl=(m,b)=>{b=Object.assign({decode:!0},b);const[h,_]=n(m,"#");return Object.assign({url:h.split("?")[0]||"",query:x(y(m),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:f(_,b)}:{})},e.stringifyUrl=(m,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const h=v(m.url).split("?")[0]||"",_=e.extract(m.url),C=e.parse(_,{sort:!1}),E=Object.assign(C,m.query);let w=e.stringify(E,b);w&&(w=`?${w}`);let O=g(m.url);return m.fragmentIdentifier&&(O=`#${b[i]?c(m.fragmentIdentifier,b):m.fragmentIdentifier}`),`${h}${w}${O}`},e.pick=(m,b,h)=>{h=Object.assign({parseFragmentIdentifier:!0,[i]:!1},h);const{url:_,query:C,fragmentIdentifier:E}=e.parseUrl(m,h);return e.stringifyUrl({url:_,query:a(C,b),fragmentIdentifier:E},h)},e.exclude=(m,b,h)=>{const _=Array.isArray(b)?C=>!b.includes(C):(C,E)=>!b(C,E);return e.pick(m,_,h)}})(ko);var z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message};const $M=fZ;var hZ=["getList","getMany","getManyReference"],Ki=function(){var e=d.useContext(OM)||w_,t=$M(),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 s=e.getQueryCache().subscribe(hr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(hr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},Uo=function(){var e=Fa();return d.useCallback(function(){e.invalidateQueries()},[e])},Z1=globalThis&&globalThis.__assign||function(){return Z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?jM(s,t-1,r,n,a):CZ(a,s):n||(a[a.length]=s)}return a}var S_=jM;function OZ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var IM=LZ;function DZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=ZZ){var l=t?null:YZ(e);if(l)return JZ(l);i=!1,a=XZ,u=new KZ}else u=t?[]:s;e:for(;++n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?$(F):F},{updatedAt:j}),a.setQueriesData({queryKey:[w,"getManyReference"]},function(F){return F&&F.data?{data:$(F.data),total:F.total}:F},{updatedAt:j})},h=bm(Bt(Bt({mutationFn:function(E){var w=E===void 0?{}:E,O=w.resource,P=O===void 0?e:O,k=w.id,j=k===void 0?v.current.id:k,$=w.data,F=$===void 0?v.current.data:$,z=w.meta,M=z===void 0?v.current.meta:z,W=w.previousData,B=W===void 0?v.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(j==null)throw new Error("useUpdate mutation requires a non-empty id");if(!F)throw new Error("useUpdate mutation requires a non-empty data object");return y.current(P,{id:j,data:F,previousData:B,meta:M}).then(function(U){var q=U.data;return q})}},f),{onMutate:function(E){return q2(void 0,void 0,void 0,function(){var w;return K2(this,function(O){switch(O.label){case 0:return f.onMutate?[4,f.onMutate(E)]:[3,2];case 1:return w=O.sent()||{},[2,Bt({snapshot:g.current},w)];case 2:return[2,{snapshot:g.current}]}})})},onError:function(E,w,O){if(w===void 0&&(w={}),(p.current==="optimistic"||p.current==="undoable")&&O.snapshot.forEach(function(P){var k=P[0],j=P[1];a.setQueryData(k,j)}),S.current)return S.current(E,w,O);if(f.onError)return f.onError(E,w,O)},onSuccess:function(E,w,O){if(w===void 0&&(w={}),p.current==="pessimistic"){var P=w.resource,k=P===void 0?e:P,j=w.id,$=j===void 0?o:j;b({resource:k,id:$,data:E}),f.onSuccess&&!m.current&&f.onSuccess(E,w,O)}},onSettled:function(E,w,O,P){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function(k){var j=k[0];a.invalidateQueries({queryKey:j})}),x.current)return x.current(E,w,O,P);if(f.onSettled)return f.onSettled(E,w,O,P)}})),_=function(E,w,O){return E===void 0&&(E=e),w===void 0&&(w={}),O===void 0&&(O={}),q2(void 0,void 0,void 0,function(){var P,k,j,$,F,z,M,W,B,U,q,ie,oe,Ee,pe;return K2(this,function(Te){switch(Te.label){case 0:return P=O.mutationMode,k=O.returnPromise,j=k===void 0?f.returnPromise:k,$=O.onError,F=O.onSettled,z=O.onSuccess,M=G2(O,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?y.current=c(n.update.bind(n)):y.current=n.update,m.current=!!z,S.current=$,x.current=F,v.current=t,P&&(p.current=P),j&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?j?[2,h.mutateAsync(Bt({resource:E},w),Bt({onSuccess:z},M))]:[2,h.mutate(Bt({resource:E},w),Bt({onSuccess:z},M))]:(W=w.id,B=W===void 0?o:W,U=w.data,q=U===void 0?i:U,ie=w.meta,oe=ie===void 0?s:ie,Ee=a.getQueryData([E,"getOne",{id:String(B),meta:oe}]),pe=[[E,"getOne",{id:String(B),meta:oe}],[E,"getList"],[E,"getInfiniteList"],[E,"getMany"],[E,"getManyReference"]],g.current=pe.reduce(function(ye,be){return ye.concat(a.getQueriesData({queryKey:be}))},[]),[4,Promise.all(g.current.map(function(ye){var be=ye[0];return a.cancelQueries({queryKey:be})}))]);case 1:return Te.sent(),b({resource:E,id:B,data:q}),setTimeout(function(){z?z(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current}):f.onSuccess&&!m.current&&f.onSuccess(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current})},0),p.current==="optimistic"?[2,h.mutate(Bt({resource:E},w))]:(xf.once("end",function(ye){var be=ye.isUndo;be?g.current.forEach(function(we){var ve=we[0],De=we[1];a.setQueryData(ve,De)}):h.mutate(Bt({resource:E},w))}),[2])}})})},C=d.useMemo(function(){return Bt({isLoading:h.isPending},h)},[h]);return[Mt(_),C]},nn=globalThis&&globalThis.__assign||function(){return nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(P):P},{updatedAt:w}),a.setQueriesData({queryKey:[_,"getManyReference"]},function(P){if(!P||!P.data)return P;var k=O(P.data),j=k.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?w(O):O},{updatedAt:E}),a.setQueriesData({queryKey:[h,"getManyReference"]},function(O){if(!O||!O.data)return O;var P=w(O.data),k=P.length=0?i[l].apply(i,Hc(Hc([],f,!1),[c],!1)):o.apply(void 0,f)};return i.length>0?i[l].apply(i,Hc(Hc([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Qv=globalThis&&globalThis.__assign||function(){return Qv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;ie||y(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M instanceof Error||typeof M=="object"&&M!==null&&M.hasOwnProperty("message")?M.message:void 0}})}},_),{returnPromise:!0,getMutateWithMiddlewares:w})),k=P[0],j=P[1].isPending,$=d.useCallback(function(M,W){W===void 0&&(W={});var B=W.transform,U=W.meta,q=aR(W,["transform","meta"]);return Promise.resolve(B?B(M):o?o(M):M).then(function(ie){return rR(void 0,void 0,void 0,function(){var oe,Ee;return nR(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,2,,3]),[4,k(u,{data:ie,meta:U??h},q)];case 1:return pe.sent(),[3,3];case 2:return oe=pe.sent(),(oe instanceof ZJ||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((Ee=oe.body)===null||Ee===void 0?void 0:Ee.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[k,h,u,o]),F=_c(),z=g("ra.page.create",{name:F(u,1)});return{isFetching:!1,isLoading:!1,isPending:j,saving:j,defaultTitle:z,save:$,resource:u,record:x,redirect:p,registerMutationMiddleware:E,unregisterMutationMiddleware:O}},tte=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ko.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},rte=function(e,t){return t?"edit":e?"show":"list"},C_=d.createContext(void 0);C_.displayName="RecordContext";var bc=function(e){var t=e.children,r=e.value;return d.createElement(C_.Provider,{value:r},t)},E_=d.createContext(null);E_.displayName="CreateContext";var Xv=globalThis&&globalThis.__assign||function(){return Xv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!Ae||a!=="pessimistic")&&y(typeof ve=="string"?ve:ve.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ve=="string"?ve:ve instanceof Error||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("message")?ve.message:void 0}})}},O),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:j})),ye=Te[0],be=Te[1].isPending,we=d.useCallback(function(ve,De){var Me=De===void 0?{}:De,Qe=Me.onSuccess,Ne=Me.onError,Ae=Me.transform,He=Me.meta;return Promise.resolve(Ae?Ae(ve,{previousData:pe.previousData}):f?f(ve,{previousData:pe.previousData}):ve).then(function(ht){return oR(void 0,void 0,void 0,function(){var ut,V;return iR(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,ye(p,{id:b,data:ht,meta:He??C},{onError:Ne,onSuccess:Qe})];case 1:return K.sent(),[3,3];case 2:return ut=K.sent(),((V=ut.body)===null||V===void 0?void 0:V.errors)!=null?[2,ut.body.errors]:[3,3];case 3:return[2]}})})})},[b,C,p,f,ye,pe.previousData]);return{defaultTitle:Ee,error:M,isFetching:B,isLoading:W,isPending:U,mutationMode:a,record:z,redirect:c,refetch:q,registerMutationMiddleware:k,resource:p,save:we,saving:be,unregisterMutationMiddleware:$}},lte="list",_r=function(e){var t=d.useContext(C_);return e&&e.record||t},zM=function(e){var t=e.value,r=e.children;return t?d.createElement(bc,{value:t},r):r},O_=d.createContext(null);O_.displayName="EditContext";var ute=function(e){var t=e.children,r=e.value;return d.createElement(O_.Provider,{value:r},d.createElement(LM,{value:DM(r)},d.createElement(bc,{value:r&&r.record},t)))},cte=globalThis&&globalThis.__rest||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":UM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),bte=yte,xte=typeof window>"u"?Al:window;function wte(e,t){if(e instanceof xte[t])return!0;switch(typeof e>"u"?"undefined":UM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Ub,lR;function Ste(){return lR||(lR=1,Ub=function(t,r,n){var a=` -`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),Ub}var _te=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(o)),a.push(f.join(this._options.rowDelimiter)),n=f}}catch(v){s=!0,u=v}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(S){var x=a._headers.indexOf(S);return x===-1&&(a._headers.push(S),x=a._headers.indexOf(S)),x};i=function(S){var x=[],m=function(F){return x.push(F.map(function(z){return z??""}))},b=function(){return new Array(a._headers.length).fill(null)},h={},_=b(),C=!0,E=!1,w=void 0;try{for(var O=S[Symbol.iterator](),P;!(C=(P=O.next()).done);C=!0){var k=P.value,j=s(k.item);if(_[j]!=null&&(m(_),_=b()),h[j]=h[j]||0,a._options.fillTopRow&&h[j]0&&m(_),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=a._handler.check(v,a._options.mainPathItem,v,r);i(g)}}catch(y){l=!0,c=y}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),uR(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var v=[f.item,p];a.push(v.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),uR(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}(),Pte=Ote,Rte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Tte=Rte,dR=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},fR=Pte,pR=Tte,$te=VM,kte=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:$te,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":dR(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":dR(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new pR(new fR(e));var p=Object.assign({},e,r),v=new fR(p);return t?new Promise(function(g,y){v.parse(t,function(S,x){if(n)return n(S,x);if(S)return y(S);if(y)return g(x)})}):new pR};const jte=Mr(kte);var Ite=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())},Ate=function(e,t,r,n){return jte(e,function(a,o){return Ite(o,n)})},Mte=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)},[])))},Fte=function(e){return function(t,r,n){return e.getMany(n,{ids:Mte(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},gl=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||g(function(m){if(!Array.isArray(m))return gl([],m,!0);var b=m.indexOf(x);return b>-1?gl(gl([],m.slice(0,b),!0),m.slice(b+1),!0):gl(gl([],m,!0),[x],!1)})},clearSelection:function(){y()}}},[g,y]);return[v,S]},Wb=[];function Bn(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 P_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Bn(!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 Nte(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Po=globalThis&&globalThis.__assign||function(){return Po=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&h(O)},[v.search]);var P=d.useCallback(function(q){C.current&&(_.current?_.current=F2(_.current,q):(_.current=F2(O,q),setTimeout(function(){_.current&&(a&&!p?x(_.current):a&&p?h(_.current):g({search:"?".concat(ko.stringify(Po(Po({},_.current),{filter:JSON.stringify(_.current.filter),displayedFilters:JSON.stringify(_.current.displayedFilters)})))},{state:{_scrollToTop:q.type===X1}}),_.current=void 0)},0)))},hR(hR([],E,!0),[g],!1)),k=d.useCallback(function(q){return P({type:yM,payload:q})},[P]),j=d.useCallback(function(q){return P({type:X1,payload:q})},[P]),$=d.useCallback(function(q){return P({type:bM,payload:q})},[P]),F=O.filter||mR,z=O.displayedFilters||mR,M=x_(function(q,ie){P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},r),W=d.useCallback(function(q,ie,oe){return ie===void 0&&(ie=void 0),oe===void 0&&(oe=!1),oe?M(q,ie):P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},[P]),B=d.useCallback(function(q){P({type:wM,payload:q})},[P]),U=d.useCallback(function(q,ie){P({type:xM,payload:{filterName:q,defaultValue:ie}})},[P]);return[Po(Po({filterValues:F,requestSignature:E},O),{displayedFilters:z}),{changeParams:P,setPage:j,setPerPage:$,setSort:k,setFilters:W,hideFilter:B,showFilter:U}]},vR=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Dte=function(e){var t=e.search,r=ko.parse(t);return vR(r,"filter"),vR(r,"displayedFilters"),r},Bte=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},zte=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:Bte(r)?Po({},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),Po(Po({},i),{page:gR(i.page,1),perPage:gR(i.perPage,10)})},gR=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},mR={},Vte={field:"id",order:Fs},yR={},Bm=d.createContext(null);Bm.displayName="ListContext";var WM=d.createContext(void 0),Ute=function(e){return d.useMemo(function(){return Dm(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};WM.displayName="ListFilterContext";var HM=d.createContext(void 0),Wte=function(e){return d.useMemo(function(){return Dm(e,["sort","setSort","resource"])},[e.sort,e.setSort])};HM.displayName="ListSortContext";var R_=d.createContext(void 0);R_.displayName="ListPaginationContext";var Hte=function(e){return d.useMemo(function(){return Dm(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])},qM=function(e){var t=e.value,r=e.children;return d.createElement(Bm.Provider,{value:t},d.createElement(WM.Provider,{value:Ute(t)},d.createElement(HM.Provider,{value:Wte(t)},d.createElement(R_.Provider,{value:Hte(t)},r))))},Ns=globalThis&&globalThis.__assign||function(){return Ns=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(j==null||(j==null?void 0:j.length)===0)){E.setPage(1);return}if(F!=null){var pe=Math.ceil(F/C.perPage)||1;!B&&C.page>pe&&E.setPage(pe)}},[B,C.page,C.perPage,j,E,F]);var ie=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),oe=_c(),Ee=b("ra.page.list",{name:oe(S,2)});return{sort:ie,data:j,meta:z,defaultTitle:Ee,displayedFilters:C.displayedFilters,error:M,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:E.hideFilter,isFetching:B,isLoading:W,isPending:U,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:C.page,perPage:C.perPage,refetch:q,resource:S,selectedIds:O,setFilters:E.setFilters,setPage:E.setPage,setPerPage:E.setPerPage,setSort:E.setSort,showFilter:E.showFilter,total:F,hasNextPage:$?$.hasNextPage:F!=null?C.page*C.perPage1}},Gte={field:"id",order:Fs},Qte=["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"],wf=function(e){return Object.keys(e).filter(function(t){return!Qte.includes(t)}).reduce(function(t,r){var n;return Ns(Ns({},t),(n={},n[r]=e[r],n))},{})},Xte=globalThis&&globalThis.__rest||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?[]:Zp(Zp([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Zp(Zp([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},Zte=function(e,t){var r=ya("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},Gl=globalThis&&globalThis.__assign||function(){return Gl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(de,oe.field)?oe.order==="ASC"?1:-1:qt(se,oe.field)1,hideFilter:He,isFetching:_,isLoading:w,isPending:k,onSelect:be.select,onToggleItem:be.toggle,onUnselectItems:be.clearSelection,page:W,perPage:U,resource:"",refetch:ere,selectedIds:ye,setFilters:ut,setPage:B,setPerPage:q,setSort:pe,showFilter:ht,total:F==null?void 0:F.total}},rre={},ga=function(){var e=d.useContext(Bm);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},nre=Lm,are=fc,ore=oM,ire=yc,KM=Object.prototype,sre=KM.hasOwnProperty,lre=nre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&ore(t[0],t[1],a)&&(n=1);++r1,setSort:F,showFilter:ye,total:Me}},pre={},ip=e=>e.type==="checkbox",Ql=e=>e instanceof Date,dn=e=>e==null;const YM=e=>typeof e=="object";var Sr=e=>!dn(e)&&!Array.isArray(e)&&YM(e)&&!Ql(e),JM=e=>Sr(e)&&e.target?ip(e.target)?e.target.checked:e.target.value:e,hre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ZM=(e,t)=>e.has(hre(t)),vre=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},$_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(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(!($_&&(e instanceof Blob||e instanceof FileList))&&(r||Sr(e)))if(t=r?[]:{},!r&&!vre(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=xn(e[n]));else return e;return t}var zm=e=>Array.isArray(e)?e.filter(Boolean):[],lr=e=>e===void 0,Le=(e,t,r)=>{if(!t||!Sr(e))return r;const n=zm(t.split(/[,[\].]+?/)).reduce((a,o)=>dn(a)?a:a[o],e);return lr(n)||n===e?lr(e[t])?r:e[t]:n},ta=e=>typeof e=="boolean",k_=e=>/^\w*$/.test(e),e3=e=>zm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ut=(e,t,r)=>{let n=-1;const a=k_(t)?[t]:e3(t),o=a.length,i=o-1;for(;++nke.useContext(t3),r3=e=>{const{children:t,...r}=e;return ke.createElement(t3.Provider,{value:r},t)};var n3=(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]!==Ra.all&&(t._proxyFormState[i]=!n||Ra.all),r&&(r[i]=!0),e[i]}});return a},_n=e=>Sr(e)&&!Object.keys(e).length,a3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return _n(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Ra.all))},Td=e=>Array.isArray(e)?e:[e],o3=(e,t,r)=>!e||!t||e===t||Td(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function j_(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 Vm(e){const t=xc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=ke.useState(r._formState),u=ke.useRef(!0),l=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ke.useRef(a);return c.current=a,j_({disabled:n,next:f=>u.current&&o3(c.current,f.name,o)&&a3(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),ke.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),n3(i,r,l.current,!1)}var Ja=e=>typeof e=="string",i3=(e,t,r,n,a)=>Ja(e)?(n&&t.watch.add(e),Le(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Le(r,o))):(n&&(t.watchAll=!0),r);function gre(e){const t=xc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=ke.useRef(n);s.current=n,j_({disabled:o,subject:r._subjects.values,next:c=>{o3(s.current,c.name,i)&&l(xn(i3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),u}function mre(e){const t=xc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=ZM(a._names.array,r),s=gre({control:a,name:r,defaultValue:Le(a._formValues,r,Le(a._defaultValues,r,e.defaultValue)),exact:!0}),u=Vm({control:a,name:r,exact:!0}),l=ke.useRef(a.register(r,{...e.rules,value:s,...ta(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const c=a._options.shouldUnregister||o,f=(p,v)=>{const g=Le(a._fields,p);g&&g._f&&(g._f.mount=v)};if(f(r,!0),c){const p=xn(Le(a._options.defaultValues,r));Ut(a._defaultValues,r,p),lr(Le(a._formValues,r))&&Ut(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):f(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Le(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Le(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ta(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:ke.useCallback(c=>l.current.onChange({target:{value:JM(c),name:r},type:Yv.CHANGE}),[r]),onBlur:ke.useCallback(()=>l.current.onBlur({target:{value:Le(a._formValues,r),name:r},type:Yv.BLUR}),[r,a]),ref:ke.useCallback(c=>{const f=Le(a._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})},[a._fields,r])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Le(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Le(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Le(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Le(u.validatingFields,r)},error:{enumerable:!0,get:()=>Le(u.errors,r)}})}}var yre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},xR=e=>({isOnSubmit:!e||e===Ra.onSubmit,isOnBlur:e===Ra.onBlur,isOnChange:e===Ra.onChange,isOnAll:e===Ra.all,isOnTouch:e===Ra.onTouched}),wR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const $d=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Le(e,a);if(o){const{_f:i,...s}=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($d(s,t))break}else if(Sr(s)&&$d(s,t))break}}};var bre=(e,t,r)=>{const n=Td(Le(e,r));return Ut(n,"root",t[r]),Ut(e,r,n),e},I_=e=>e.type==="file",Ro=e=>typeof e=="function",Jv=e=>{if(!$_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Bh=e=>Ja(e),A_=e=>e.type==="radio",Zv=e=>e instanceof RegExp;const SR={value:!1,isValid:!1},_R={value:!0,isValid:!0};var s3=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&&!lr(e[0].attributes.value)?lr(e[0].value)||e[0].value===""?_R:{value:e[0].value,isValid:!0}:_R:SR}return SR};const CR={isValid:!1,value:null};var l3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,CR):CR;function ER(e,t,r="validate"){if(Bh(e)||Array.isArray(e)&&e.every(Bh)||ta(e)&&!e)return{type:r,message:Bh(e)?e:"",ref:t}}var ml=e=>Sr(e)&&!Zv(e)?e:{value:e,message:""},OR=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:v,name:g,valueAsNumber:y,mount:S,disabled:x}=e._f,m=Le(t,g);if(!S||x)return{};const b=i?i[0]:o,h=j=>{n&&b.reportValidity&&(b.setCustomValidity(ta(j)?"":j||""),b.reportValidity())},_={},C=A_(o),E=ip(o),w=C||E,O=(y||I_(o))&&lr(o.value)&&lr(m)||Jv(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,P=yre.bind(null,g,r,_),k=(j,$,F,z=mo.maxLength,M=mo.minLength)=>{const W=j?$:F;_[g]={type:j?z:M,message:W,ref:o,...P(j?z:M,W)}};if(a?!Array.isArray(m)||!m.length:s&&(!w&&(O||dn(m))||ta(m)&&!m||E&&!s3(i).isValid||C&&!l3(i).isValid)){const{value:j,message:$}=Bh(s)?{value:!!s,message:s}:ml(s);if(j&&(_[g]={type:mo.required,message:$,ref:b,...P(mo.required,$)},!r))return h($),_}if(!O&&(!dn(c)||!dn(f))){let j,$;const F=ml(f),z=ml(c);if(!dn(m)&&!isNaN(m)){const M=o.valueAsNumber||m&&+m;dn(F.value)||(j=M>F.value),dn(z.value)||($=Mnew Date(new Date().toDateString()+" "+q),B=o.type=="time",U=o.type=="week";Ja(F.value)&&m&&(j=B?W(m)>W(F.value):U?m>F.value:M>new Date(F.value)),Ja(z.value)&&m&&($=B?W(m)+j.value,z=!dn($.value)&&m.length<+$.value;if((F||z)&&(k(F,j.message,$.message),!r))return h(_[g].message),_}if(p&&!O&&Ja(m)){const{value:j,message:$}=ml(p);if(Zv(j)&&!m.match(j)&&(_[g]={type:mo.pattern,message:$,ref:o,...P(mo.pattern,$)},!r))return h($),_}if(v){if(Ro(v)){const j=await v(m,t),$=ER(j,b);if($&&(_[g]={...$,...P(mo.validate,$.message)},!r))return h($.message),_}else if(Sr(v)){let j={};for(const $ in v){if(!_n(j)&&!r)break;const F=ER(await v[$](m,t),b,$);F&&(j={...F,...P($,F.message)},h(F.message),r&&(_[g]=j))}if(!_n(j)&&(_[g]={ref:b,...j},!r))return _}}return h(!0),_};function xre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},eg=e=>dn(e)||!YM(e);function ci(e,t){if(eg(e)||eg(t))return e===t;if(Ql(e)&&Ql(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(Ql(o)&&Ql(i)||Sr(o)&&Sr(i)||Array.isArray(o)&&Array.isArray(i)?!ci(o,i):o!==i)return!1}}return!0}var u3=e=>e.type==="select-multiple",Sre=e=>A_(e)||ip(e),Kb=e=>Jv(e)&&e.isConnected,c3=e=>{for(const t in e)if(Ro(e[t]))return!0;return!1};function tg(e,t={}){const r=Array.isArray(e);if(Sr(e)||r)for(const n in e)Array.isArray(e[n])||Sr(e[n])&&!c3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},tg(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function d3(e,t,r){const n=Array.isArray(e);if(Sr(e)||n)for(const a in e)Array.isArray(e[a])||Sr(e[a])&&!c3(e[a])?lr(t)||eg(r[a])?r[a]=Array.isArray(e[a])?tg(e[a],[]):{...tg(e[a])}:d3(e[a],dn(t)?{}:t[a],r[a]):r[a]=!ci(e[a],t[a]);return r}var eh=(e,t)=>d3(e,t,tg(t)),f3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>lr(e)?e:t?e===""?NaN:e&&+e:r&&Ja(e)?new Date(e):n?n(e):e;function Gb(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return I_(t)?t.files:A_(t)?l3(e.refs).value:u3(t)?[...t.selectedOptions].map(({value:r})=>r):ip(t)?s3(e.refs).value:f3(lr(t.value)?e.ref.value:t.value,e)}var _re=(e,t,r,n)=>{const a={};for(const o of e){const i=Le(t,o);i&&Ut(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},qc=e=>lr(e)?e:Zv(e)?e.source:Sr(e)?Zv(e.value)?e.value.source:e.value:e;const PR="AsyncFunction";var Cre=e=>(!e||!e.validate)&&!!(Ro(e.validate)&&e.validate.constructor.name===PR||Sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===PR)),Ere=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function RR(e,t,r){const n=Le(e,r);if(n||k_(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Le(t,o),s=Le(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Ore=(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,Pre=(e,t)=>!zm(Le(e,t)).length&&Cr(e,t);const Rre={mode:Ra.onSubmit,reValidateMode:Ra.onChange,shouldFocusError:!0};function Tre(e={}){let t={...Rre,...e},r={submitCount:0,isDirty:!1,isLoading:Ro(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Sr(t.defaultValues)||Sr(t.values)?xn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:xn(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:qb(),array:qb(),state:qb()},p=xR(t.mode),v=xR(t.reValidateMode),g=t.criteriaMode===Ra.all,y=V=>K=>{clearTimeout(l),l=setTimeout(V,K)},S=async V=>{if(c.isValid||V){const K=t.resolver?_n((await w()).errors):await P(n,!0);K!==r.isValid&&f.state.next({isValid:K})}},x=(V,K)=>{(c.isValidating||c.validatingFields)&&((V||Array.from(s.mount)).forEach(te=>{te&&(K?Ut(r.validatingFields,te,K):Cr(r.validatingFields,te))}),f.state.next({validatingFields:r.validatingFields,isValidating:!_n(r.validatingFields)}))},m=(V,K=[],te,se,de=!0,fe=!0)=>{if(se&&te){if(i.action=!0,fe&&Array.isArray(Le(n,V))){const Oe=te(Le(n,V),se.argA,se.argB);de&&Ut(n,V,Oe)}if(fe&&Array.isArray(Le(r.errors,V))){const Oe=te(Le(r.errors,V),se.argA,se.argB);de&&Ut(r.errors,V,Oe),Pre(r.errors,V)}if(c.touchedFields&&fe&&Array.isArray(Le(r.touchedFields,V))){const Oe=te(Le(r.touchedFields,V),se.argA,se.argB);de&&Ut(r.touchedFields,V,Oe)}c.dirtyFields&&(r.dirtyFields=eh(a,o)),f.state.next({name:V,isDirty:j(V,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ut(o,V,K)},b=(V,K)=>{Ut(r.errors,V,K),f.state.next({errors:r.errors})},h=V=>{r.errors=V,f.state.next({errors:r.errors,isValid:!1})},_=(V,K,te,se)=>{const de=Le(n,V);if(de){const fe=Le(o,V,lr(te)?Le(a,V):te);lr(fe)||se&&se.defaultChecked||K?Ut(o,V,K?fe:Gb(de._f)):z(V,fe),i.mount&&S()}},C=(V,K,te,se,de)=>{let fe=!1,Oe=!1;const ae={name:V},Z=!!(Le(n,V)&&Le(n,V)._f&&Le(n,V)._f.disabled);if(!te||se){c.isDirty&&(Oe=r.isDirty,r.isDirty=ae.isDirty=j(),fe=Oe!==ae.isDirty);const G=Z||ci(Le(a,V),K);Oe=!!(!Z&&Le(r.dirtyFields,V)),G||Z?Cr(r.dirtyFields,V):Ut(r.dirtyFields,V,!0),ae.dirtyFields=r.dirtyFields,fe=fe||c.dirtyFields&&Oe!==!G}if(te){const G=Le(r.touchedFields,V);G||(Ut(r.touchedFields,V,te),ae.touchedFields=r.touchedFields,fe=fe||c.touchedFields&&G!==te)}return fe&&de&&f.state.next(ae),fe?ae:{}},E=(V,K,te,se)=>{const de=Le(r.errors,V),fe=c.isValid&&ta(K)&&r.isValid!==K;if(e.delayError&&te?(u=y(()=>b(V,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Ut(r.errors,V,te):Cr(r.errors,V)),(te?!ci(de,te):de)||!_n(se)||fe){const Oe={...se,...fe&&ta(K)?{isValid:K}:{},errors:r.errors,name:V};r={...r,...Oe},f.state.next(Oe)}},w=async V=>{x(V,!0);const K=await t.resolver(o,t.context,_re(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(V),K},O=async V=>{const{errors:K}=await w(V);if(V)for(const te of V){const se=Le(K,te);se?Ut(r.errors,te,se):Cr(r.errors,te)}else r.errors=K;return K},P=async(V,K,te={valid:!0})=>{for(const se in V){const de=V[se];if(de){const{_f:fe,...Oe}=de;if(fe){const ae=s.array.has(fe.name),Z=de._f&&Cre(de._f);Z&&c.validatingFields&&x([se],!0);const G=await OR(de,o,g,t.shouldUseNativeValidation&&!K,ae);if(Z&&c.validatingFields&&x([se]),G[fe.name]&&(te.valid=!1,K))break;!K&&(Le(G,fe.name)?ae?bre(r.errors,G,fe.name):Ut(r.errors,fe.name,G[fe.name]):Cr(r.errors,fe.name))}!_n(Oe)&&await P(Oe,K,te)}}return te.valid},k=()=>{for(const V of s.unMount){const K=Le(n,V);K&&(K._f.refs?K._f.refs.every(te=>!Kb(te)):!Kb(K._f.ref))&&ye(V)}s.unMount=new Set},j=(V,K)=>(V&&K&&Ut(o,V,K),!ci(ie(),a)),$=(V,K,te)=>i3(V,s,{...i.mount?o:lr(K)?a:Ja(V)?{[V]:K}:K},te,K),F=V=>zm(Le(i.mount?o:a,V,e.shouldUnregister?Le(a,V,[]):[])),z=(V,K,te={})=>{const se=Le(n,V);let de=K;if(se){const fe=se._f;fe&&(!fe.disabled&&Ut(o,V,f3(K,fe)),de=Jv(fe.ref)&&dn(K)?"":K,u3(fe.ref)?[...fe.ref.options].forEach(Oe=>Oe.selected=de.includes(Oe.value)):fe.refs?ip(fe.ref)?fe.refs.length>1?fe.refs.forEach(Oe=>(!Oe.defaultChecked||!Oe.disabled)&&(Oe.checked=Array.isArray(de)?!!de.find(ae=>ae===Oe.value):de===Oe.value)):fe.refs[0]&&(fe.refs[0].checked=!!de):fe.refs.forEach(Oe=>Oe.checked=Oe.value===de):I_(fe.ref)?fe.ref.value="":(fe.ref.value=de,fe.ref.type||f.values.next({name:V,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&C(V,de,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&q(V)},M=(V,K,te)=>{for(const se in K){const de=K[se],fe=`${V}.${se}`,Oe=Le(n,fe);(s.array.has(V)||!eg(de)||Oe&&!Oe._f)&&!Ql(de)?M(fe,de,te):z(fe,de,te)}},W=(V,K,te={})=>{const se=Le(n,V),de=s.array.has(V),fe=xn(K);Ut(o,V,fe),de?(f.array.next({name:V,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&f.state.next({name:V,dirtyFields:eh(a,o),isDirty:j(V,fe)})):se&&!se._f&&!dn(fe)?M(V,fe,te):z(V,fe,te),wR(V,s)&&f.state.next({...r}),f.values.next({name:i.mount?V:void 0,values:{...o}})},B=async V=>{i.mount=!0;const K=V.target;let te=K.name,se=!0;const de=Le(n,te),fe=()=>K.type?Gb(de._f):JM(V),Oe=ae=>{se=Number.isNaN(ae)||ci(ae,Le(o,te,ae))};if(de){let ae,Z;const G=fe(),le=V.type===Yv.BLUR||V.type===Yv.FOCUS_OUT,he=!Ere(de._f)&&!t.resolver&&!Le(r.errors,te)&&!de._f.deps||Ore(le,Le(r.touchedFields,te),r.isSubmitted,v,p),Re=wR(te,s,le);Ut(o,te,G),le?(de._f.onBlur&&de._f.onBlur(V),u&&u(0)):de._f.onChange&&de._f.onChange(V);const Be=C(te,G,le,!1),Ye=!_n(Be)||Re;if(!le&&f.values.next({name:te,type:V.type,values:{...o}}),he)return c.isValid&&(e.mode==="onBlur"?le&&S():S()),Ye&&f.state.next({name:te,...Re?{}:Be});if(!le&&Re&&f.state.next({...r}),t.resolver){const{errors:je}=await w([te]);if(Oe(G),se){const Je=RR(r.errors,n,te),_e=RR(je,n,Je.name||te);ae=_e.error,te=_e.name,Z=_n(je)}}else x([te],!0),ae=(await OR(de,o,g,t.shouldUseNativeValidation))[te],x([te]),Oe(G),se&&(ae?Z=!1:c.isValid&&(Z=await P(n,!0)));se&&(de._f.deps&&q(de._f.deps),E(te,Z,ae,Be))}},U=(V,K)=>{if(Le(r.errors,K)&&V.focus)return V.focus(),1},q=async(V,K={})=>{let te,se;const de=Td(V);if(t.resolver){const fe=await O(lr(V)?V:de);te=_n(fe),se=V?!de.some(Oe=>Le(fe,Oe)):te}else V?(se=(await Promise.all(de.map(async fe=>{const Oe=Le(n,fe);return await P(Oe&&Oe._f?{[fe]:Oe}:Oe)}))).every(Boolean),!(!se&&!r.isValid)&&S()):se=te=await P(n);return f.state.next({...!Ja(V)||c.isValid&&te!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:te}:{},errors:r.errors}),K.shouldFocus&&!se&&$d(n,U,V?de:s.mount),se},ie=V=>{const K={...i.mount?o:a};return lr(V)?K:Ja(V)?Le(K,V):V.map(te=>Le(K,te))},oe=(V,K)=>({invalid:!!Le((K||r).errors,V),isDirty:!!Le((K||r).dirtyFields,V),error:Le((K||r).errors,V),isValidating:!!Le(r.validatingFields,V),isTouched:!!Le((K||r).touchedFields,V)}),Ee=V=>{V&&Td(V).forEach(K=>Cr(r.errors,K)),f.state.next({errors:V?r.errors:{}})},pe=(V,K,te)=>{const se=(Le(n,V,{_f:{}})._f||{}).ref,de=Le(r.errors,V)||{},{ref:fe,message:Oe,type:ae,...Z}=de;Ut(r.errors,V,{...Z,...K,ref:se}),f.state.next({name:V,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&se&&se.focus&&se.focus()},Te=(V,K)=>Ro(V)?f.values.subscribe({next:te=>V($(void 0,K),te)}):$(V,K,!0),ye=(V,K={})=>{for(const te of V?Td(V):s.mount)s.mount.delete(te),s.array.delete(te),K.keepValue||(Cr(n,te),Cr(o,te)),!K.keepError&&Cr(r.errors,te),!K.keepDirty&&Cr(r.dirtyFields,te),!K.keepTouched&&Cr(r.touchedFields,te),!K.keepIsValidating&&Cr(r.validatingFields,te),!t.shouldUnregister&&!K.keepDefaultValue&&Cr(a,te);f.values.next({values:{...o}}),f.state.next({...r,...K.keepDirty?{isDirty:j()}:{}}),!K.keepIsValid&&S()},be=({disabled:V,name:K,field:te,fields:se,value:de})=>{if(ta(V)&&i.mount||V){const fe=V?void 0:lr(de)?Gb(te?te._f:Le(se,K)._f):de;Ut(o,K,fe),C(K,fe,!1,!1,!0)}},we=(V,K={})=>{let te=Le(n,V);const se=ta(K.disabled)||ta(e.disabled);return Ut(n,V,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:V}},name:V,mount:!0,...K}}),s.mount.add(V),te?be({field:te,disabled:ta(K.disabled)?K.disabled:e.disabled,name:V,value:K.value}):_(V,!0,K.value),{...se?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:qc(K.min),max:qc(K.max),minLength:qc(K.minLength),maxLength:qc(K.maxLength),pattern:qc(K.pattern)}:{},name:V,onChange:B,onBlur:B,ref:de=>{if(de){we(V,K),te=Le(n,V);const fe=lr(de.value)&&de.querySelectorAll&&de.querySelectorAll("input,select,textarea")[0]||de,Oe=Sre(fe),ae=te._f.refs||[];if(Oe?ae.find(Z=>Z===fe):fe===te._f.ref)return;Ut(n,V,{_f:{...te._f,...Oe?{refs:[...ae.filter(Kb),fe,...Array.isArray(Le(a,V))?[{}]:[]],ref:{type:fe.type,name:V}}:{ref:fe}}}),_(V,!1,void 0,fe)}else te=Le(n,V,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(ZM(s.array,V)&&i.action)&&s.unMount.add(V)}}},ve=()=>t.shouldFocusError&&$d(n,U,s.mount),De=V=>{ta(V)&&(f.state.next({disabled:V}),$d(n,(K,te)=>{const se=Le(n,te);se&&(K.disabled=se._f.disabled||V,Array.isArray(se._f.refs)&&se._f.refs.forEach(de=>{de.disabled=se._f.disabled||V}))},0,!1))},Me=(V,K)=>async te=>{let se;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let de=xn(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:fe,values:Oe}=await w();r.errors=fe,de=Oe}else await P(n);if(Cr(r.errors,"root"),_n(r.errors)){f.state.next({errors:{}});try{await V(de,te)}catch(fe){se=fe}}else K&&await K({...r.errors},te),ve(),setTimeout(ve);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_n(r.errors)&&!se,submitCount:r.submitCount+1,errors:r.errors}),se)throw se},Qe=(V,K={})=>{Le(n,V)&&(lr(K.defaultValue)?W(V,xn(Le(a,V))):(W(V,K.defaultValue),Ut(a,V,xn(K.defaultValue))),K.keepTouched||Cr(r.touchedFields,V),K.keepDirty||(Cr(r.dirtyFields,V),r.isDirty=K.defaultValue?j(V,xn(Le(a,V))):j()),K.keepError||(Cr(r.errors,V),c.isValid&&S()),f.state.next({...r}))},Ne=(V,K={})=>{const te=V?xn(V):a,se=xn(te),de=_n(V),fe=de?a:se;if(K.keepDefaultValues||(a=te),!K.keepValues){if(K.keepDirtyValues)for(const Oe of s.mount)Le(r.dirtyFields,Oe)?Ut(fe,Oe,Le(o,Oe)):W(Oe,Le(fe,Oe));else{if($_&&lr(V))for(const Oe of s.mount){const ae=Le(n,Oe);if(ae&&ae._f){const Z=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Jv(Z)){const G=Z.closest("form");if(G){G.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?xn(a):{}:xn(fe),f.array.next({values:{...fe}}),f.values.next({values:{...fe}})}s={mount:K.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:de?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!ci(V,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:de?{}:K.keepDirtyValues?K.keepDefaultValues&&o?eh(a,o):r.dirtyFields:K.keepDefaultValues&&V?eh(a,V):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ae=(V,K)=>Ne(Ro(V)?V(o):V,K);return{control:{register:we,unregister:ye,getFieldState:oe,handleSubmit:Me,setError:pe,_executeSchema:w,_getWatch:$,_getDirty:j,_updateValid:S,_removeUnmounted:k,_updateFieldArray:m,_updateDisabledField:be,_getFieldArray:F,_reset:Ne,_resetDefaultValues:()=>Ro(t.defaultValues)&&t.defaultValues().then(V=>{Ae(V,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:De,_subjects:f,_proxyFormState:c,_setErrors:h,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(V){i=V},get _defaultValues(){return a},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:q,register:we,handleSubmit:Me,watch:Te,setValue:W,getValues:ie,reset:Ae,resetField:Qe,clearErrors:Ee,unregister:ye,setError:pe,setFocus:(V,K={})=>{const te=Le(n,V),se=te&&te._f;if(se){const de=se.refs?se.refs[0]:se.ref;de.focus&&(de.focus(),K.shouldSelect&&de.select())}},getFieldState:oe}}function p3(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:Ro(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ro(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Tre(e),formState:n});const o=t.current.control;return o._options=e,j_({subject:o._subjects.state,next:i=>{a3(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&&!ci(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=n3(n,o),t.current}var h3=d.createContext(void 0),rx=globalThis&&globalThis.__assign||function(){return rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=d.useState(!1),l=u[0],c=u[1],f=!e||!s||o,p=J8(function(v){var g=v.currentLocation,y=v.nextLocation;if(f)return!1;var S=t||g.pathname,x=y.pathname.startsWith(S),m=y.pathname.startsWith("".concat(S,"/show")),b=x&&!m;return!b});d.useEffect(function(){if(p.state==="blocked"){if(f){p.proceed();return}c(!0)}},[p.state]),d.useEffect(function(){if(l){var v=window.confirm(n("ra.message.unsaved_changes"));v?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),d.useEffect(function(){var v=function(g){g.preventDefault(),g.returnValue=!0};if(!f)return window.addEventListener("beforeunload",v),function(){window.removeEventListener("beforeunload",v)}},[f])},Vre=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return zre(r,n,a),null};function Ure(e,t){var r=iM({},Wre(e,t),t);return r}function Wre(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var m3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},Hre=function(e,t){t===void 0&&(t=!0);var r=Vm(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=ur();d.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},qre=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},ax=globalThis&&globalThis.__assign||function(){return ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Jre(e){return e?e.hasOwnProperty("message"):!1}var Qi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Xi=function(e){return RA(e,function(){for(var t=[],r=0;re?Qi(t,{max:e},r,n):void 0}});Xi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gi(r)&&re?Qi(t,{max:e},r,n):void 0}});Xi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gi(t)&&isNaN(Number(t))?Qi(e,void 0,t,r):void 0}});var rne=RA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gi(r)&&typeof r=="string"&&!e.test(r)?Qi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Xi(function(e){return e===void 0&&(e="ra.validation.email"),rne(Yre,e)});var nne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xi(function(e,t){return t===void 0&&(t=nne),function(r,n){return!Gi(r)&&e.indexOf(r)===-1?Qi(t,{list:e},r,n):void 0}});var ane=d.createContext(null),one=function(){var e=d.useContext(h3);return e},ine=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=H3(o),s=_r(t),u=xc(),l=u.getValues,c=u.resetField,f=u.formState,p=u.reset,v=qt(s,i),g=qt(l(),i),y=f.dirtyFields,S=Object.keys(y).includes(i);d.useEffect(function(){if(!(a==null||g!=null||v!=null||S)){var x=i.split(".").some(function(h){return sne.test(h)});if(x){var m=i.split(".").slice(0,-1).join("."),b=qt(l(),m);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},sne=/^\d+$/,lne=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,s=e.translateChoice,u=s===void 0?!0:s,l=et(),c=d.useCallback(function(v){if(d.isValidElement(r))return d.createElement(bc,{value:v},r);var g=typeof r=="function"?r(v):qt(v,r);return d.isValidElement(g)?g:u?l(String(g),{_:g}):String(g)},[r,l,u]),f=d.useCallback(function(v){return qt(v,a)},[a]),p=d.useCallback(function(v){return qt(v,i)},[i]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},une=function(){var e=d.useContext(ane);return e},cne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const dne=cne;var fs=globalThis&&globalThis.__assign||function(){return fs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var S3=function(){return d.useContext(x3)},sx=globalThis&&globalThis.__assign||function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Nne=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]},Lne=function(e,t){var r=S3(),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])},Dne=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return _3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},_3=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]},dd=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=dd(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})},C3=d.createContext(!1),Bne=C3.Provider,zne=function(){return d.useContext(C3)},Vne=function(e){Pne();var t=ll(),r=Mne(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.requireAuth,p=e.ready,v=d.useState(f),g=v[0],y=v[1],S=d.useState(f),x=S[0],m=S[1],b=Y3();if(d.useEffect(function(){f&&b(void 0,!1).then(function(){y(!1)}).catch(function(){}).finally(function(){m(!1)})},[b,f]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(p,null)}return o==="loading"||x?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):g?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement(Lae,null)})):d.createElement(ws,null,a,d.createElement(zr,{path:"/*",element:d.createElement(Bne,{value:!!l},d.createElement(s,null,d.createElement(ws,null,n,d.Children.map(i,function(h){return d.createElement(zr,{key:h.props.name,path:"".concat(h.props.name,"/*"),element:h})}),d.createElement(zr,{path:"/",element:l?d.createElement($ae,{authParams:Une,component:l}):i.length>0?d.createElement(tz,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(u,null)}))))}))},Une={params:{route:"dashboard"}},E3=d.createContext("React Admin"),Wne=E3.Provider,O3=function(){return d.useContext(E3)},Hne=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},qne=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return y3(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},Kne=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?AR:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,p=e.error,v=p===void 0?qne:p,g=e.layout,y=g===void 0?Hne:g,S=e.loading,x=S===void 0?AR:S,m=e.loginPage,b=m===void 0?!1:m,h=e.ready,_=h===void 0?lae:h,C=e.requireAuth,E=C===void 0?!1:C,w=e.title,O=w===void 0?"React Admin":w;d.useEffect(function(){if(!(f||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var k=new Image;k.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var P=function(k,j){return n(j)};return d.createElement(Wne,{value:O},d.createElement(w3,{onError:P,fallbackRender:function(k){var j=k.error,$=k.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(v,{error:j,errorInfo:r,resetErrorBoundary:$}))}},d.createElement(ws,null,b!==!1&&b!==!0?d.createElement(zr,{path:"/login",element:IR(b)}):null,o!==!1&&o!==!0?d.createElement(zr,{path:"/auth-callback",element:IR(o)}):null,d.createElement(zr,{path:"/*",element:d.createElement(Vne,{catchAll:s,dashboard:l,layout:y,loading:x,requireAuth:E,ready:_},u)}))))},IR=function(e){return d.isValidElement(e)?e:d.createElement(e)},AR=function(){return null},P3=function(e){return null};P3.raName="CustomRoutes";var R3=d.createContext(void 0),ul=function(e){var t=e.children,r=e.value;return r?d.createElement(R3.Provider,{value:r},t):t},Gne=function(e){var t=e.value,r=e.children;return t?d.createElement(ul,{value:t},r):r},T3={exports:{}},Ft={};/** +The missing props are: `).concat(a.join(", ")))},Kv=globalThis&&globalThis.__spreadArray||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()}`),RM="%[a-f0-9]{2}",D2=new RegExp("("+RM+")|([^%]+?)","gi"),B2=new RegExp("("+RM+")+","gi");function J1(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([],J1(r),J1(n))}function tZ(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(D2)||[],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)]},oZ=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;om==null,i=Symbol("encodeFragmentIdentifier");function s(m){switch(m.arrayFormat){case"index":return b=>(h,_)=>{const C=h.length;return _===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[",C,"]"].join("")]:[...h,[c(b,m),"[",c(C,m),"]=",c(_,m)].join("")]};case"bracket":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),"[]"].join("")]:[...h,[c(b,m),"[]=",c(_,m)].join("")];case"colon-list-separator":return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,[c(b,m),":list="].join("")]:[...h,[c(b,m),":list=",c(_,m)].join("")];case"comma":case"separator":case"bracket-separator":{const b=m.arrayFormat==="bracket-separator"?"[]=":"=";return h=>(_,C)=>C===void 0||m.skipNull&&C===null||m.skipEmptyString&&C===""?_:(C=C===null?"":C,_.length===0?[[c(h,m),b,c(C,m)].join("")]:[[_,c(C,m)].join(m.arrayFormatSeparator)])}default:return b=>(h,_)=>_===void 0||m.skipNull&&_===null||m.skipEmptyString&&_===""?h:_===null?[...h,c(b,m)]:[...h,[c(b,m),"=",c(_,m)].join("")]}}function u(m){let b;switch(m.arrayFormat){case"index":return(h,_,C)=>{if(b=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!b){C[h]=_;return}C[h]===void 0&&(C[h]={}),C[h][b[1]]=_};case"bracket":return(h,_,C)=>{if(b=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"colon-list-separator":return(h,_,C)=>{if(b=/(:list)$/.exec(h),h=h.replace(/:list$/,""),!b){C[h]=_;return}if(C[h]===void 0){C[h]=[_];return}C[h]=[].concat(C[h],_)};case"comma":case"separator":return(h,_,C)=>{const E=typeof _=="string"&&_.includes(m.arrayFormatSeparator),w=typeof _=="string"&&!E&&f(_,m).includes(m.arrayFormatSeparator);_=w?f(_,m):_;const O=E||w?_.split(m.arrayFormatSeparator).map(P=>f(P,m)):_===null?_:f(_,m);C[h]=O};case"bracket-separator":return(h,_,C)=>{const E=/(\[\])$/.test(h);if(h=h.replace(/\[\]$/,""),!E){C[h]=_&&f(_,m);return}const w=_===null?[]:_.split(m.arrayFormatSeparator).map(O=>f(O,m));if(C[h]===void 0){C[h]=w;return}C[h]=[].concat(C[h],w)};default:return(h,_,C)=>{if(C[h]===void 0){C[h]=_;return}C[h]=[].concat(C[h],_)}}}function l(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(m,b){return b.encode?b.strict?t(m):encodeURIComponent(m):m}function f(m,b){return b.decode?r(m):m}function p(m){return Array.isArray(m)?m.sort():typeof m=="object"?p(Object.keys(m)).sort((b,h)=>Number(b)-Number(h)).map(b=>m[b]):m}function v(m){const b=m.indexOf("#");return b!==-1&&(m=m.slice(0,b)),m}function g(m){let b="";const h=m.indexOf("#");return h!==-1&&(b=m.slice(h)),b}function y(m){m=v(m);const b=m.indexOf("?");return b===-1?"":m.slice(b+1)}function S(m,b){return b.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):b.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),l(b.arrayFormatSeparator);const h=u(b),_=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return _;for(const C of m.split("&")){if(C==="")continue;let[E,w]=n(b.decode?C.replace(/\+/g," "):C,"=");w=w===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?w:f(w,b),h(f(E,b),w,_)}for(const C of Object.keys(_)){const E=_[C];if(typeof E=="object"&&E!==null)for(const w of Object.keys(E))E[w]=S(E[w],b);else _[C]=S(E,b)}return b.sort===!1?_:(b.sort===!0?Object.keys(_).sort():Object.keys(_).sort(b.sort)).reduce((C,E)=>{const w=_[E];return w&&typeof w=="object"&&!Array.isArray(w)?C[E]=p(w):C[E]=w,C},Object.create(null))}e.extract=y,e.parse=x,e.stringify=(m,b)=>{if(!m)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),l(b.arrayFormatSeparator);const h=w=>b.skipNull&&o(m[w])||b.skipEmptyString&&m[w]==="",_=s(b),C={};for(const w of Object.keys(m))h(w)||(C[w]=m[w]);const E=Object.keys(C);return b.sort!==!1&&E.sort(b.sort),E.map(w=>{const O=m[w];return O===void 0?"":O===null?c(w,b):Array.isArray(O)?O.length===0&&b.arrayFormat==="bracket-separator"?c(w,b)+"[]":O.reduce(_(w),[]).join("&"):c(w,b)+"="+c(O,b)}).filter(w=>w.length>0).join("&")},e.parseUrl=(m,b)=>{b=Object.assign({decode:!0},b);const[h,_]=n(m,"#");return Object.assign({url:h.split("?")[0]||"",query:x(y(m),b)},b&&b.parseFragmentIdentifier&&_?{fragmentIdentifier:f(_,b)}:{})},e.stringifyUrl=(m,b)=>{b=Object.assign({encode:!0,strict:!0,[i]:!0},b);const h=v(m.url).split("?")[0]||"",_=e.extract(m.url),C=e.parse(_,{sort:!1}),E=Object.assign(C,m.query);let w=e.stringify(E,b);w&&(w=`?${w}`);let O=g(m.url);return m.fragmentIdentifier&&(O=`#${b[i]?c(m.fragmentIdentifier,b):m.fragmentIdentifier}`),`${h}${w}${O}`},e.pick=(m,b,h)=>{h=Object.assign({parseFragmentIdentifier:!0,[i]:!1},h);const{url:_,query:C,fragmentIdentifier:E}=e.parseUrl(m,h);return e.stringifyUrl({url:_,query:a(C,b),fragmentIdentifier:E},h)},e.exclude=(m,b,h)=>{const _=Array.isArray(b)?C=>!b.includes(C):(C,E)=>!b(C,E);return e.pick(m,_,h)}})(ko);var z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!e.message?t:e.message};const kM=fZ;var hZ=["getList","getMany","getManyReference"],Ki=function(){var e=d.useContext(PM)||w_,t=kM(),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 s=e.getQueryCache().subscribe(hr.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),u=e.getMutationCache().subscribe(hr.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,s(),u()}},[e]),o},Uo=function(){var e=Fa();return d.useCallback(function(){e.invalidateQueries()},[e])},Z1=globalThis&&globalThis.__assign||function(){return Z1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r(s)?t>1?IM(s,t-1,r,n,a):CZ(a,s):n||(a[a.length]=s)}return a}var S_=IM;function OZ(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var AM=LZ;function DZ(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=ZZ){var l=t?null:YZ(e);if(l)return JZ(l);i=!1,a=XZ,u=new KZ}else u=t?[]:s;e:for(;++n0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?$(F):F},{updatedAt:j}),a.setQueriesData({queryKey:[w,"getManyReference"]},function(F){return F&&F.data?{data:$(F.data),total:F.total}:F},{updatedAt:j})},h=ym(Bt(Bt({mutationFn:function(E){var w=E===void 0?{}:E,O=w.resource,P=O===void 0?e:O,k=w.id,j=k===void 0?v.current.id:k,$=w.data,F=$===void 0?v.current.data:$,z=w.meta,M=z===void 0?v.current.meta:z,W=w.previousData,B=W===void 0?v.current.previousData:W;if(!P)throw new Error("useUpdate mutation requires a non-empty resource");if(j==null)throw new Error("useUpdate mutation requires a non-empty id");if(!F)throw new Error("useUpdate mutation requires a non-empty data object");return y.current(P,{id:j,data:F,previousData:B,meta:M}).then(function(U){var q=U.data;return q})}},f),{onMutate:function(E){return q2(void 0,void 0,void 0,function(){var w;return K2(this,function(O){switch(O.label){case 0:return f.onMutate?[4,f.onMutate(E)]:[3,2];case 1:return w=O.sent()||{},[2,Bt({snapshot:g.current},w)];case 2:return[2,{snapshot:g.current}]}})})},onError:function(E,w,O){if(w===void 0&&(w={}),(p.current==="optimistic"||p.current==="undoable")&&O.snapshot.forEach(function(P){var k=P[0],j=P[1];a.setQueryData(k,j)}),S.current)return S.current(E,w,O);if(f.onError)return f.onError(E,w,O)},onSuccess:function(E,w,O){if(w===void 0&&(w={}),p.current==="pessimistic"){var P=w.resource,k=P===void 0?e:P,j=w.id,$=j===void 0?o:j;b({resource:k,id:$,data:E}),f.onSuccess&&!m.current&&f.onSuccess(E,w,O)}},onSettled:function(E,w,O,P){if(O===void 0&&(O={}),(p.current==="optimistic"||p.current==="undoable")&&P.snapshot.forEach(function(k){var j=k[0];a.invalidateQueries({queryKey:j})}),x.current)return x.current(E,w,O,P);if(f.onSettled)return f.onSettled(E,w,O,P)}})),_=function(E,w,O){return E===void 0&&(E=e),w===void 0&&(w={}),O===void 0&&(O={}),q2(void 0,void 0,void 0,function(){var P,k,j,$,F,z,M,W,B,U,q,ie,oe,Ee,pe;return K2(this,function(Te){switch(Te.label){case 0:return P=O.mutationMode,k=O.returnPromise,j=k===void 0?f.returnPromise:k,$=O.onError,F=O.onSettled,z=O.onSuccess,M=G2(O,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),c?y.current=c(n.update.bind(n)):y.current=n.update,m.current=!!z,S.current=$,x.current=F,v.current=t,P&&(p.current=P),j&&p.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),p.current==="pessimistic"?j?[2,h.mutateAsync(Bt({resource:E},w),Bt({onSuccess:z},M))]:[2,h.mutate(Bt({resource:E},w),Bt({onSuccess:z},M))]:(W=w.id,B=W===void 0?o:W,U=w.data,q=U===void 0?i:U,ie=w.meta,oe=ie===void 0?s:ie,Ee=a.getQueryData([E,"getOne",{id:String(B),meta:oe}]),pe=[[E,"getOne",{id:String(B),meta:oe}],[E,"getList"],[E,"getInfiniteList"],[E,"getMany"],[E,"getManyReference"]],g.current=pe.reduce(function(ye,be){return ye.concat(a.getQueriesData({queryKey:be}))},[]),[4,Promise.all(g.current.map(function(ye){var be=ye[0];return a.cancelQueries({queryKey:be})}))]);case 1:return Te.sent(),b({resource:E,id:B,data:q}),setTimeout(function(){z?z(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current}):f.onSuccess&&!m.current&&f.onSuccess(Bt(Bt({},Ee),q),Bt({resource:E},w),{snapshot:g.current})},0),p.current==="optimistic"?[2,h.mutate(Bt({resource:E},w))]:(xf.once("end",function(ye){var be=ye.isUndo;be?g.current.forEach(function(we){var ve=we[0],De=we[1];a.setQueryData(ve,De)}):h.mutate(Bt({resource:E},w))}),[2])}})})},C=d.useMemo(function(){return Bt({isLoading:h.isPending},h)},[h]);return[Mt(_),C]},nn=globalThis&&globalThis.__assign||function(){return nn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?O(P):P},{updatedAt:w}),a.setQueriesData({queryKey:[_,"getManyReference"]},function(P){if(!P||!P.data)return P;var k=O(P.data),j=k.length0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0?w(O):O},{updatedAt:E}),a.setQueriesData({queryKey:[h,"getManyReference"]},function(O){if(!O||!O.data)return O;var P=w(O.data),k=P.length=0?i[l].apply(i,Hc(Hc([],f,!1),[c],!1)):o.apply(void 0,f)};return i.length>0?i[l].apply(i,Hc(Hc([],s,!1),[c],!1)):o.apply(void 0,s)}},[]),a=d.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},Gv=globalThis&&globalThis.__assign||function(){return Gv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;ie||y(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M instanceof Error||typeof M=="object"&&M!==null&&M.hasOwnProperty("message")?M.message:void 0}})}},_),{returnPromise:!0,getMutateWithMiddlewares:w})),k=P[0],j=P[1].isPending,$=d.useCallback(function(M,W){W===void 0&&(W={});var B=W.transform,U=W.meta,q=aR(W,["transform","meta"]);return Promise.resolve(B?B(M):o?o(M):M).then(function(ie){return rR(void 0,void 0,void 0,function(){var oe,Ee;return nR(this,function(pe){switch(pe.label){case 0:return pe.trys.push([0,2,,3]),[4,k(u,{data:ie,meta:U??h},q)];case 1:return pe.sent(),[3,3];case 2:return oe=pe.sent(),(oe instanceof ZJ||typeof oe=="object"&&oe!==null&&oe.hasOwnProperty("body"))&&((Ee=oe.body)===null||Ee===void 0?void 0:Ee.errors)!=null?[2,oe.body.errors]:[3,3];case 3:return[2]}})})})},[k,h,u,o]),F=_c(),z=g("ra.page.create",{name:F(u,1)});return{isFetching:!1,isLoading:!1,isPending:j,saving:j,defaultTitle:z,save:$,resource:u,record:x,redirect:p,registerMutationMiddleware:E,unregisterMutationMiddleware:O}},tte=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=ko.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},rte=function(e,t){return t?"edit":e?"show":"list"},C_=d.createContext(void 0);C_.displayName="RecordContext";var bc=function(e){var t=e.children,r=e.value;return d.createElement(C_.Provider,{value:r},t)},E_=d.createContext(null);E_.displayName="CreateContext";var Qv=globalThis&&globalThis.__assign||function(){return Qv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0;(!Ae||a!=="pessimistic")&&y(typeof ve=="string"?ve:ve.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ve=="string"?ve:ve instanceof Error||typeof ve=="object"&&ve!==null&&ve.hasOwnProperty("message")?ve.message:void 0}})}},O),{mutationMode:a,returnPromise:a==="pessimistic",getMutateWithMiddlewares:j})),ye=Te[0],be=Te[1].isPending,we=d.useCallback(function(ve,De){var Me=De===void 0?{}:De,Qe=Me.onSuccess,Ne=Me.onError,Ae=Me.transform,He=Me.meta;return Promise.resolve(Ae?Ae(ve,{previousData:pe.previousData}):f?f(ve,{previousData:pe.previousData}):ve).then(function(ht){return oR(void 0,void 0,void 0,function(){var ut,V;return iR(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,,3]),[4,ye(p,{id:b,data:ht,meta:He??C},{onError:Ne,onSuccess:Qe})];case 1:return K.sent(),[3,3];case 2:return ut=K.sent(),((V=ut.body)===null||V===void 0?void 0:V.errors)!=null?[2,ut.body.errors]:[3,3];case 3:return[2]}})})})},[b,C,p,f,ye,pe.previousData]);return{defaultTitle:Ee,error:M,isFetching:B,isLoading:W,isPending:U,mutationMode:a,record:z,redirect:c,refetch:q,registerMutationMiddleware:k,resource:p,save:we,saving:be,unregisterMutationMiddleware:$}},lte="list",_r=function(e){var t=d.useContext(C_);return e&&e.record||t},VM=function(e){var t=e.value,r=e.children;return t?d.createElement(bc,{value:t},r):r},O_=d.createContext(null);O_.displayName="EditContext";var ute=function(e){var t=e.children,r=e.value;return d.createElement(O_.Provider,{value:r},d.createElement(DM,{value:BM(r)},d.createElement(bc,{value:r&&r.record},t)))},cte=globalThis&&globalThis.__rest||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":WM(r)){case"string":return[{item:n,value:this._handleString(r,n)}];case"number":return[{item:n,value:this._handleNumber(r,n)}];case"boolean":return[{item:n,value:this._handleBoolean.bind(this)(r,n)}]}return this.checkComplex(r,n)}},{key:"_handleObject",value:function(r){var n=[];for(var a in r){var o=r[a],i=this.check(o,a,a,r);n=n.concat(i)}return n}},{key:"_handleArray",value:function(r){for(var n=this,a=[],o,i=0;i0&&!l.item&&o===void 0&&(o=l);a=a.concat(u)}}return a}},{key:"_handleBoolean",value:function(r){var n;return r?n=this._options.booleanTrueString||"true":n=this._options.booleanFalseString||"false",n}},{key:"_handleString",value:function(r){return r}},{key:"_handleNumber",value:function(r){return r}},{key:"_handleDate",value:function(r){return r.toLocaleDateString()}}]),e}(),bte=yte,xte=typeof window>"u"?Al:window;function wte(e,t){if(e instanceof xte[t])return!0;switch(typeof e>"u"?"undefined":WM(e)){case"string":return t==="String";case"boolean":return t==="Boolean";case"number":return t==="Number"}return!1}var Vb,lR;function Ste(){return lR||(lR=1,Vb=function(t,r,n){var a=` +`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,s=t==='"'?function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0||u.indexOf('"')>=0}:function(u){return u.indexOf(r)>=0||u.indexOf(a)>=0};return function(u){return n&&(u=""+u),u.replace&&(u=u.replace(o,i),(n||s(u))&&(u=t+u+t)),u}}),Vb}var _te=function(){function e(t,r){for(var n=0;n0&&(f=f.concat(Array(p).join(".").split("."))),n&&this._options.fillGaps&&(f=f.map(o)),a.push(f.join(this._options.rowDelimiter)),n=f}}catch(v){s=!0,u=v}finally{try{!i&&l.return&&l.return()}finally{if(s)throw u}}return a}},{key:"_parseArray",value:function(r,n){var a=this;this._headers=this._headers||[];var o=[],i=void 0,s=function(S){var x=a._headers.indexOf(S);return x===-1&&(a._headers.push(S),x=a._headers.indexOf(S)),x};i=function(S){var x=[],m=function(F){return x.push(F.map(function(z){return z??""}))},b=function(){return new Array(a._headers.length).fill(null)},h={},_=b(),C=!0,E=!1,w=void 0;try{for(var O=S[Symbol.iterator](),P;!(C=(P=O.next()).done);C=!0){var k=P.value,j=s(k.item);if(_[j]!=null&&(m(_),_=b()),h[j]=h[j]||0,a._options.fillTopRow&&h[j]0&&m(_),o=o.concat(a._checkRows(x))};var u=!0,l=!1,c=void 0;try{for(var f=r[Symbol.iterator](),p;!(u=(p=f.next()).done);u=!0){var v=p.value,g=a._handler.check(v,a._options.mainPathItem,v,r);i(g)}}catch(y){l=!0,c=y}finally{try{!u&&f.return&&f.return()}finally{if(l)throw c}}return!n&&a._options.includeHeaders&&o.unshift(this.headers),uR(o,a._options.endOfLine)}},{key:"_parseObject",value:function(r){var n=this,a=[],o=[],i=void 0,s=[[],[]];i=function(f){var p=f.value||f.value===0?f.value.toString():n._options.undefinedString;if(p=n._escape(p),n._options.verticalOutput){var v=[f.item,p];a.push(v.join(n._options.rowDelimiter))}else s[0].push(f.item),s[1].push(p)};for(var u in r){var l="";this._options.mainPathItem&&(l=this._options.mainPathItem+this._options.headerPathString),o=this._handler.check(r[u],l+u,u,r),o.forEach(i)}return this._options.verticalOutput||(a.push(s[0].join(this._options.rowDelimiter)),a.push(s[1].join(this._options.rowDelimiter))),uR(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}(),Pte=Ote,Rte=function(e){throw new Error("jsonexport called without third argument as a callback and is required")},Tte=Rte,dR=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},fR=Pte,pR=Tte,$te=UM,kte=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:$te,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":dR(o))==="object"&&(r=o)}else if(arguments.length===1){var s=Array.prototype.slice.call(arguments),u=s[0];if((typeof u>"u"?"undefined":dR(u))==="object"){var l=Object.keys(e),c=Object.keys(u),f=c.every(function(g){return l.includes(g)});c.length>0&&f?r=u:t=u}else t=u}else return new pR(new fR(e));var p=Object.assign({},e,r),v=new fR(p);return t?new Promise(function(g,y){v.parse(t,function(S,x){if(n)return n(S,x);if(S)return y(S);if(y)return g(x)})}):new pR};const jte=Mr(kte);var Ite=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())},Ate=function(e,t,r,n){return jte(e,function(a,o){return Ite(o,n)})},Mte=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)},[])))},Fte=function(e){return function(t,r,n){return e.getMany(n,{ids:Mte(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,s){return i[s.id]=s,i},{})})}},gl=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n"u"||g(function(m){if(!Array.isArray(m))return gl([],m,!0);var b=m.indexOf(x);return b>-1?gl(gl([],m.slice(0,b),!0),m.slice(b+1),!0):gl(gl([],m,!0),[x],!1)})},clearSelection:function(){y()}}},[g,y]);return[v,S]},Ub=[];function Bn(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 P_(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=Bn(!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 Nte(){var e=d.useRef(!0);return d.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Po=globalThis&&globalThis.__assign||function(){return Po=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&h(O)},[v.search]);var P=d.useCallback(function(q){C.current&&(_.current?_.current=F2(_.current,q):(_.current=F2(O,q),setTimeout(function(){_.current&&(a&&!p?x(_.current):a&&p?h(_.current):g({search:"?".concat(ko.stringify(Po(Po({},_.current),{filter:JSON.stringify(_.current.filter),displayedFilters:JSON.stringify(_.current.displayedFilters)})))},{state:{_scrollToTop:q.type===X1}}),_.current=void 0)},0)))},hR(hR([],E,!0),[g],!1)),k=d.useCallback(function(q){return P({type:bM,payload:q})},[P]),j=d.useCallback(function(q){return P({type:X1,payload:q})},[P]),$=d.useCallback(function(q){return P({type:xM,payload:q})},[P]),F=O.filter||mR,z=O.displayedFilters||mR,M=x_(function(q,ie){P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},r),W=d.useCallback(function(q,ie,oe){return ie===void 0&&(ie=void 0),oe===void 0&&(oe=!1),oe?M(q,ie):P({type:Y1,payload:{filter:Ys(q),displayedFilters:ie}})},[P]),B=d.useCallback(function(q){P({type:SM,payload:q})},[P]),U=d.useCallback(function(q,ie){P({type:wM,payload:{filterName:q,defaultValue:ie}})},[P]);return[Po(Po({filterValues:F,requestSignature:E},O),{displayedFilters:z}),{changeParams:P,setPage:j,setPerPage:$,setSort:k,setFilters:W,hideFilter:B,showFilter:U}]},vR=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},Dte=function(e){var t=e.search,r=ko.parse(t);return vR(r,"filter"),vR(r,"displayedFilters"),r},Bte=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},zte=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:Bte(r)?Po({},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),Po(Po({},i),{page:gR(i.page,1),perPage:gR(i.perPage,10)})},gR=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},mR={},Vte={field:"id",order:Fs},yR={},Dm=d.createContext(null);Dm.displayName="ListContext";var HM=d.createContext(void 0),Ute=function(e){return d.useMemo(function(){return Lm(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};HM.displayName="ListFilterContext";var qM=d.createContext(void 0),Wte=function(e){return d.useMemo(function(){return Lm(e,["sort","setSort","resource"])},[e.sort,e.setSort])};qM.displayName="ListSortContext";var R_=d.createContext(void 0);R_.displayName="ListPaginationContext";var Hte=function(e){return d.useMemo(function(){return Lm(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])},KM=function(e){var t=e.value,r=e.children;return d.createElement(Dm.Provider,{value:t},d.createElement(HM.Provider,{value:Ute(t)},d.createElement(qM.Provider,{value:Wte(t)},d.createElement(R_.Provider,{value:Hte(t)},r))))},Ns=globalThis&&globalThis.__assign||function(){return Ns=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&(j==null||(j==null?void 0:j.length)===0)){E.setPage(1);return}if(F!=null){var pe=Math.ceil(F/C.perPage)||1;!B&&C.page>pe&&E.setPage(pe)}},[B,C.page,C.perPage,j,E,F]);var ie=d.useMemo(function(){return{field:C.sort,order:C.order}},[C.sort,C.order]),oe=_c(),Ee=b("ra.page.list",{name:oe(S,2)});return{sort:ie,data:j,meta:z,defaultTitle:Ee,displayedFilters:C.displayedFilters,error:M,exporter:i,filter:s,filterValues:C.filterValues,hideFilter:E.hideFilter,isFetching:B,isLoading:W,isPending:U,onSelect:P.select,onToggleItem:P.toggle,onUnselectItems:P.clearSelection,page:C.page,perPage:C.perPage,refetch:q,resource:S,selectedIds:O,setFilters:E.setFilters,setPage:E.setPage,setPerPage:E.setPerPage,setSort:E.setSort,showFilter:E.showFilter,total:F,hasNextPage:$?$.hasNextPage:F!=null?C.page*C.perPage1}},Gte={field:"id",order:Fs},Qte=["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"],wf=function(e){return Object.keys(e).filter(function(t){return!Qte.includes(t)}).reduce(function(t,r){var n;return Ns(Ns({},t),(n={},n[r]=e[r],n))},{})},Xte=globalThis&&globalThis.__rest||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?[]:Zp(Zp([],u.slice(0,l),!0),u.slice(l+1),!0):r?[t]:Zp(Zp([],u,!0),[t],!1)})},[o,t,r]);return[i,s]},Zte=function(e,t){var r=ya("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(s){return t.some(function(u){return u==s})}):!1,i=d.useCallback(function(){var s=n.filter(function(u){return!t.some(function(l){return l==u})});a(o?s:s.concat(t))},[n,a,o,t]);return[o,i]},Gl=globalThis&&globalThis.__assign||function(){return Gl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rqt(de,oe.field)?oe.order==="ASC"?1:-1:qt(se,oe.field)1,hideFilter:He,isFetching:_,isLoading:w,isPending:k,onSelect:be.select,onToggleItem:be.toggle,onUnselectItems:be.clearSelection,page:W,perPage:U,resource:"",refetch:ere,selectedIds:ye,setFilters:ut,setPage:B,setPerPage:q,setSort:pe,showFilter:ht,total:F==null?void 0:F.total}},rre={},ga=function(){var e=d.useContext(Dm);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},nre=Nm,are=fc,ore=iM,ire=yc,GM=Object.prototype,sre=GM.hasOwnProperty,lre=nre(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&ore(t[0],t[1],a)&&(n=1);++r1,setSort:F,showFilter:ye,total:Me}},pre={},ip=e=>e.type==="checkbox",Ql=e=>e instanceof Date,dn=e=>e==null;const JM=e=>typeof e=="object";var Sr=e=>!dn(e)&&!Array.isArray(e)&&JM(e)&&!Ql(e),ZM=e=>Sr(e)&&e.target?ip(e.target)?e.target.checked:e.target.value:e,hre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,e3=(e,t)=>e.has(hre(t)),vre=e=>{const t=e.constructor&&e.constructor.prototype;return Sr(t)&&t.hasOwnProperty("isPrototypeOf")},$_=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(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(!($_&&(e instanceof Blob||e instanceof FileList))&&(r||Sr(e)))if(t=r?[]:{},!r&&!vre(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=xn(e[n]));else return e;return t}var Bm=e=>Array.isArray(e)?e.filter(Boolean):[],lr=e=>e===void 0,Le=(e,t,r)=>{if(!t||!Sr(e))return r;const n=Bm(t.split(/[,[\].]+?/)).reduce((a,o)=>dn(a)?a:a[o],e);return lr(n)||n===e?lr(e[t])?r:e[t]:n},ta=e=>typeof e=="boolean",k_=e=>/^\w*$/.test(e),t3=e=>Bm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ut=(e,t,r)=>{let n=-1;const a=k_(t)?[t]:t3(t),o=a.length,i=o-1;for(;++nke.useContext(r3),n3=e=>{const{children:t,...r}=e;return ke.createElement(r3.Provider,{value:r},t)};var a3=(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]!==Ra.all&&(t._proxyFormState[i]=!n||Ra.all),r&&(r[i]=!0),e[i]}});return a},_n=e=>Sr(e)&&!Object.keys(e).length,o3=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return _n(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Ra.all))},Td=e=>Array.isArray(e)?e:[e],i3=(e,t,r)=>!e||!t||e===t||Td(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function j_(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 zm(e){const t=xc(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,s]=ke.useState(r._formState),u=ke.useRef(!0),l=ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ke.useRef(a);return c.current=a,j_({disabled:n,next:f=>u.current&&i3(c.current,f.name,o)&&o3(f,l.current,r._updateFormState)&&s({...r._formState,...f}),subject:r._subjects.state}),ke.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),a3(i,r,l.current,!1)}var Ja=e=>typeof e=="string",s3=(e,t,r,n,a)=>Ja(e)?(n&&t.watch.add(e),Le(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),Le(r,o))):(n&&(t.watchAll=!0),r);function gre(e){const t=xc(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},s=ke.useRef(n);s.current=n,j_({disabled:o,subject:r._subjects.values,next:c=>{i3(s.current,c.name,i)&&l(xn(s3(s.current,r._names,c.values||r._formValues,!1,a)))}});const[u,l]=ke.useState(r._getWatch(n,a));return ke.useEffect(()=>r._removeUnmounted()),u}function mre(e){const t=xc(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=e3(a._names.array,r),s=gre({control:a,name:r,defaultValue:Le(a._formValues,r,Le(a._defaultValues,r,e.defaultValue)),exact:!0}),u=zm({control:a,name:r,exact:!0}),l=ke.useRef(a.register(r,{...e.rules,value:s,...ta(e.disabled)?{disabled:e.disabled}:{}}));return ke.useEffect(()=>{const c=a._options.shouldUnregister||o,f=(p,v)=>{const g=Le(a._fields,p);g&&g._f&&(g._f.mount=v)};if(f(r,!0),c){const p=xn(Le(a._options.defaultValues,r));Ut(a._defaultValues,r,p),lr(Le(a._formValues,r))&&Ut(a._formValues,r,p)}return()=>{(i?c&&!a._state.action:c)?a.unregister(r):f(r,!1)}},[r,a,i,o]),ke.useEffect(()=>{Le(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:Le(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:s,...ta(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:ke.useCallback(c=>l.current.onChange({target:{value:ZM(c),name:r},type:Xv.CHANGE}),[r]),onBlur:ke.useCallback(()=>l.current.onBlur({target:{value:Le(a._formValues,r),name:r},type:Xv.BLUR}),[r,a]),ref:ke.useCallback(c=>{const f=Le(a._fields,r);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})},[a._fields,r])},formState:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Le(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!Le(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Le(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Le(u.validatingFields,r)},error:{enumerable:!0,get:()=>Le(u.errors,r)}})}}var yre=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},xR=e=>({isOnSubmit:!e||e===Ra.onSubmit,isOnBlur:e===Ra.onBlur,isOnChange:e===Ra.onChange,isOnAll:e===Ra.all,isOnTouch:e===Ra.onTouched}),wR=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const $d=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=Le(e,a);if(o){const{_f:i,...s}=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($d(s,t))break}else if(Sr(s)&&$d(s,t))break}}};var bre=(e,t,r)=>{const n=Td(Le(e,r));return Ut(n,"root",t[r]),Ut(e,r,n),e},I_=e=>e.type==="file",Ro=e=>typeof e=="function",Yv=e=>{if(!$_)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Bh=e=>Ja(e),A_=e=>e.type==="radio",Jv=e=>e instanceof RegExp;const SR={value:!1,isValid:!1},_R={value:!0,isValid:!0};var l3=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&&!lr(e[0].attributes.value)?lr(e[0].value)||e[0].value===""?_R:{value:e[0].value,isValid:!0}:_R:SR}return SR};const CR={isValid:!1,value:null};var u3=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,CR):CR;function ER(e,t,r="validate"){if(Bh(e)||Array.isArray(e)&&e.every(Bh)||ta(e)&&!e)return{type:r,message:Bh(e)?e:"",ref:t}}var ml=e=>Sr(e)&&!Jv(e)?e:{value:e,message:""},OR=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:s,maxLength:u,minLength:l,min:c,max:f,pattern:p,validate:v,name:g,valueAsNumber:y,mount:S,disabled:x}=e._f,m=Le(t,g);if(!S||x)return{};const b=i?i[0]:o,h=j=>{n&&b.reportValidity&&(b.setCustomValidity(ta(j)?"":j||""),b.reportValidity())},_={},C=A_(o),E=ip(o),w=C||E,O=(y||I_(o))&&lr(o.value)&&lr(m)||Yv(o)&&o.value===""||m===""||Array.isArray(m)&&!m.length,P=yre.bind(null,g,r,_),k=(j,$,F,z=mo.maxLength,M=mo.minLength)=>{const W=j?$:F;_[g]={type:j?z:M,message:W,ref:o,...P(j?z:M,W)}};if(a?!Array.isArray(m)||!m.length:s&&(!w&&(O||dn(m))||ta(m)&&!m||E&&!l3(i).isValid||C&&!u3(i).isValid)){const{value:j,message:$}=Bh(s)?{value:!!s,message:s}:ml(s);if(j&&(_[g]={type:mo.required,message:$,ref:b,...P(mo.required,$)},!r))return h($),_}if(!O&&(!dn(c)||!dn(f))){let j,$;const F=ml(f),z=ml(c);if(!dn(m)&&!isNaN(m)){const M=o.valueAsNumber||m&&+m;dn(F.value)||(j=M>F.value),dn(z.value)||($=Mnew Date(new Date().toDateString()+" "+q),B=o.type=="time",U=o.type=="week";Ja(F.value)&&m&&(j=B?W(m)>W(F.value):U?m>F.value:M>new Date(F.value)),Ja(z.value)&&m&&($=B?W(m)+j.value,z=!dn($.value)&&m.length<+$.value;if((F||z)&&(k(F,j.message,$.message),!r))return h(_[g].message),_}if(p&&!O&&Ja(m)){const{value:j,message:$}=ml(p);if(Jv(j)&&!m.match(j)&&(_[g]={type:mo.pattern,message:$,ref:o,...P(mo.pattern,$)},!r))return h($),_}if(v){if(Ro(v)){const j=await v(m,t),$=ER(j,b);if($&&(_[g]={...$,...P(mo.validate,$.message)},!r))return h($.message),_}else if(Sr(v)){let j={};for(const $ in v){if(!_n(j)&&!r)break;const F=ER(await v[$](m,t),b,$);F&&(j={...F,...P($,F.message)},h(F.message),r&&(_[g]=j))}if(!_n(j)&&(_[g]={ref:b,...j},!r))return _}}return h(!0),_};function xre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Zv=e=>dn(e)||!JM(e);function ci(e,t){if(Zv(e)||Zv(t))return e===t;if(Ql(e)&&Ql(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(Ql(o)&&Ql(i)||Sr(o)&&Sr(i)||Array.isArray(o)&&Array.isArray(i)?!ci(o,i):o!==i)return!1}}return!0}var c3=e=>e.type==="select-multiple",Sre=e=>A_(e)||ip(e),qb=e=>Yv(e)&&e.isConnected,d3=e=>{for(const t in e)if(Ro(e[t]))return!0;return!1};function eg(e,t={}){const r=Array.isArray(e);if(Sr(e)||r)for(const n in e)Array.isArray(e[n])||Sr(e[n])&&!d3(e[n])?(t[n]=Array.isArray(e[n])?[]:{},eg(e[n],t[n])):dn(e[n])||(t[n]=!0);return t}function f3(e,t,r){const n=Array.isArray(e);if(Sr(e)||n)for(const a in e)Array.isArray(e[a])||Sr(e[a])&&!d3(e[a])?lr(t)||Zv(r[a])?r[a]=Array.isArray(e[a])?eg(e[a],[]):{...eg(e[a])}:f3(e[a],dn(t)?{}:t[a],r[a]):r[a]=!ci(e[a],t[a]);return r}var eh=(e,t)=>f3(e,t,eg(t)),p3=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>lr(e)?e:t?e===""?NaN:e&&+e:r&&Ja(e)?new Date(e):n?n(e):e;function Kb(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return I_(t)?t.files:A_(t)?u3(e.refs).value:c3(t)?[...t.selectedOptions].map(({value:r})=>r):ip(t)?l3(e.refs).value:p3(lr(t.value)?e.ref.value:t.value,e)}var _re=(e,t,r,n)=>{const a={};for(const o of e){const i=Le(t,o);i&&Ut(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},qc=e=>lr(e)?e:Jv(e)?e.source:Sr(e)?Jv(e.value)?e.value.source:e.value:e;const PR="AsyncFunction";var Cre=e=>(!e||!e.validate)&&!!(Ro(e.validate)&&e.validate.constructor.name===PR||Sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===PR)),Ere=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function RR(e,t,r){const n=Le(e,r);if(n||k_(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=Le(t,o),s=Le(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(s&&s.type)return{name:o,error:s};a.pop()}return{name:r}}var Ore=(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,Pre=(e,t)=>!Bm(Le(e,t)).length&&Cr(e,t);const Rre={mode:Ra.onSubmit,reValidateMode:Ra.onChange,shouldFocusError:!0};function Tre(e={}){let t={...Rre,...e},r={submitCount:0,isDirty:!1,isLoading:Ro(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=Sr(t.defaultValues)||Sr(t.values)?xn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:xn(a),i={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Hb(),array:Hb(),state:Hb()},p=xR(t.mode),v=xR(t.reValidateMode),g=t.criteriaMode===Ra.all,y=V=>K=>{clearTimeout(l),l=setTimeout(V,K)},S=async V=>{if(c.isValid||V){const K=t.resolver?_n((await w()).errors):await P(n,!0);K!==r.isValid&&f.state.next({isValid:K})}},x=(V,K)=>{(c.isValidating||c.validatingFields)&&((V||Array.from(s.mount)).forEach(te=>{te&&(K?Ut(r.validatingFields,te,K):Cr(r.validatingFields,te))}),f.state.next({validatingFields:r.validatingFields,isValidating:!_n(r.validatingFields)}))},m=(V,K=[],te,se,de=!0,fe=!0)=>{if(se&&te){if(i.action=!0,fe&&Array.isArray(Le(n,V))){const Oe=te(Le(n,V),se.argA,se.argB);de&&Ut(n,V,Oe)}if(fe&&Array.isArray(Le(r.errors,V))){const Oe=te(Le(r.errors,V),se.argA,se.argB);de&&Ut(r.errors,V,Oe),Pre(r.errors,V)}if(c.touchedFields&&fe&&Array.isArray(Le(r.touchedFields,V))){const Oe=te(Le(r.touchedFields,V),se.argA,se.argB);de&&Ut(r.touchedFields,V,Oe)}c.dirtyFields&&(r.dirtyFields=eh(a,o)),f.state.next({name:V,isDirty:j(V,K),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ut(o,V,K)},b=(V,K)=>{Ut(r.errors,V,K),f.state.next({errors:r.errors})},h=V=>{r.errors=V,f.state.next({errors:r.errors,isValid:!1})},_=(V,K,te,se)=>{const de=Le(n,V);if(de){const fe=Le(o,V,lr(te)?Le(a,V):te);lr(fe)||se&&se.defaultChecked||K?Ut(o,V,K?fe:Kb(de._f)):z(V,fe),i.mount&&S()}},C=(V,K,te,se,de)=>{let fe=!1,Oe=!1;const ae={name:V},Z=!!(Le(n,V)&&Le(n,V)._f&&Le(n,V)._f.disabled);if(!te||se){c.isDirty&&(Oe=r.isDirty,r.isDirty=ae.isDirty=j(),fe=Oe!==ae.isDirty);const G=Z||ci(Le(a,V),K);Oe=!!(!Z&&Le(r.dirtyFields,V)),G||Z?Cr(r.dirtyFields,V):Ut(r.dirtyFields,V,!0),ae.dirtyFields=r.dirtyFields,fe=fe||c.dirtyFields&&Oe!==!G}if(te){const G=Le(r.touchedFields,V);G||(Ut(r.touchedFields,V,te),ae.touchedFields=r.touchedFields,fe=fe||c.touchedFields&&G!==te)}return fe&&de&&f.state.next(ae),fe?ae:{}},E=(V,K,te,se)=>{const de=Le(r.errors,V),fe=c.isValid&&ta(K)&&r.isValid!==K;if(e.delayError&&te?(u=y(()=>b(V,te)),u(e.delayError)):(clearTimeout(l),u=null,te?Ut(r.errors,V,te):Cr(r.errors,V)),(te?!ci(de,te):de)||!_n(se)||fe){const Oe={...se,...fe&&ta(K)?{isValid:K}:{},errors:r.errors,name:V};r={...r,...Oe},f.state.next(Oe)}},w=async V=>{x(V,!0);const K=await t.resolver(o,t.context,_re(V||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return x(V),K},O=async V=>{const{errors:K}=await w(V);if(V)for(const te of V){const se=Le(K,te);se?Ut(r.errors,te,se):Cr(r.errors,te)}else r.errors=K;return K},P=async(V,K,te={valid:!0})=>{for(const se in V){const de=V[se];if(de){const{_f:fe,...Oe}=de;if(fe){const ae=s.array.has(fe.name),Z=de._f&&Cre(de._f);Z&&c.validatingFields&&x([se],!0);const G=await OR(de,o,g,t.shouldUseNativeValidation&&!K,ae);if(Z&&c.validatingFields&&x([se]),G[fe.name]&&(te.valid=!1,K))break;!K&&(Le(G,fe.name)?ae?bre(r.errors,G,fe.name):Ut(r.errors,fe.name,G[fe.name]):Cr(r.errors,fe.name))}!_n(Oe)&&await P(Oe,K,te)}}return te.valid},k=()=>{for(const V of s.unMount){const K=Le(n,V);K&&(K._f.refs?K._f.refs.every(te=>!qb(te)):!qb(K._f.ref))&&ye(V)}s.unMount=new Set},j=(V,K)=>(V&&K&&Ut(o,V,K),!ci(ie(),a)),$=(V,K,te)=>s3(V,s,{...i.mount?o:lr(K)?a:Ja(V)?{[V]:K}:K},te,K),F=V=>Bm(Le(i.mount?o:a,V,e.shouldUnregister?Le(a,V,[]):[])),z=(V,K,te={})=>{const se=Le(n,V);let de=K;if(se){const fe=se._f;fe&&(!fe.disabled&&Ut(o,V,p3(K,fe)),de=Yv(fe.ref)&&dn(K)?"":K,c3(fe.ref)?[...fe.ref.options].forEach(Oe=>Oe.selected=de.includes(Oe.value)):fe.refs?ip(fe.ref)?fe.refs.length>1?fe.refs.forEach(Oe=>(!Oe.defaultChecked||!Oe.disabled)&&(Oe.checked=Array.isArray(de)?!!de.find(ae=>ae===Oe.value):de===Oe.value)):fe.refs[0]&&(fe.refs[0].checked=!!de):fe.refs.forEach(Oe=>Oe.checked=Oe.value===de):I_(fe.ref)?fe.ref.value="":(fe.ref.value=de,fe.ref.type||f.values.next({name:V,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&C(V,de,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&q(V)},M=(V,K,te)=>{for(const se in K){const de=K[se],fe=`${V}.${se}`,Oe=Le(n,fe);(s.array.has(V)||!Zv(de)||Oe&&!Oe._f)&&!Ql(de)?M(fe,de,te):z(fe,de,te)}},W=(V,K,te={})=>{const se=Le(n,V),de=s.array.has(V),fe=xn(K);Ut(o,V,fe),de?(f.array.next({name:V,values:{...o}}),(c.isDirty||c.dirtyFields)&&te.shouldDirty&&f.state.next({name:V,dirtyFields:eh(a,o),isDirty:j(V,fe)})):se&&!se._f&&!dn(fe)?M(V,fe,te):z(V,fe,te),wR(V,s)&&f.state.next({...r}),f.values.next({name:i.mount?V:void 0,values:{...o}})},B=async V=>{i.mount=!0;const K=V.target;let te=K.name,se=!0;const de=Le(n,te),fe=()=>K.type?Kb(de._f):ZM(V),Oe=ae=>{se=Number.isNaN(ae)||ci(ae,Le(o,te,ae))};if(de){let ae,Z;const G=fe(),le=V.type===Xv.BLUR||V.type===Xv.FOCUS_OUT,he=!Ere(de._f)&&!t.resolver&&!Le(r.errors,te)&&!de._f.deps||Ore(le,Le(r.touchedFields,te),r.isSubmitted,v,p),Re=wR(te,s,le);Ut(o,te,G),le?(de._f.onBlur&&de._f.onBlur(V),u&&u(0)):de._f.onChange&&de._f.onChange(V);const Be=C(te,G,le,!1),Ye=!_n(Be)||Re;if(!le&&f.values.next({name:te,type:V.type,values:{...o}}),he)return c.isValid&&(e.mode==="onBlur"?le&&S():S()),Ye&&f.state.next({name:te,...Re?{}:Be});if(!le&&Re&&f.state.next({...r}),t.resolver){const{errors:je}=await w([te]);if(Oe(G),se){const Je=RR(r.errors,n,te),_e=RR(je,n,Je.name||te);ae=_e.error,te=_e.name,Z=_n(je)}}else x([te],!0),ae=(await OR(de,o,g,t.shouldUseNativeValidation))[te],x([te]),Oe(G),se&&(ae?Z=!1:c.isValid&&(Z=await P(n,!0)));se&&(de._f.deps&&q(de._f.deps),E(te,Z,ae,Be))}},U=(V,K)=>{if(Le(r.errors,K)&&V.focus)return V.focus(),1},q=async(V,K={})=>{let te,se;const de=Td(V);if(t.resolver){const fe=await O(lr(V)?V:de);te=_n(fe),se=V?!de.some(Oe=>Le(fe,Oe)):te}else V?(se=(await Promise.all(de.map(async fe=>{const Oe=Le(n,fe);return await P(Oe&&Oe._f?{[fe]:Oe}:Oe)}))).every(Boolean),!(!se&&!r.isValid)&&S()):se=te=await P(n);return f.state.next({...!Ja(V)||c.isValid&&te!==r.isValid?{}:{name:V},...t.resolver||!V?{isValid:te}:{},errors:r.errors}),K.shouldFocus&&!se&&$d(n,U,V?de:s.mount),se},ie=V=>{const K={...i.mount?o:a};return lr(V)?K:Ja(V)?Le(K,V):V.map(te=>Le(K,te))},oe=(V,K)=>({invalid:!!Le((K||r).errors,V),isDirty:!!Le((K||r).dirtyFields,V),error:Le((K||r).errors,V),isValidating:!!Le(r.validatingFields,V),isTouched:!!Le((K||r).touchedFields,V)}),Ee=V=>{V&&Td(V).forEach(K=>Cr(r.errors,K)),f.state.next({errors:V?r.errors:{}})},pe=(V,K,te)=>{const se=(Le(n,V,{_f:{}})._f||{}).ref,de=Le(r.errors,V)||{},{ref:fe,message:Oe,type:ae,...Z}=de;Ut(r.errors,V,{...Z,...K,ref:se}),f.state.next({name:V,errors:r.errors,isValid:!1}),te&&te.shouldFocus&&se&&se.focus&&se.focus()},Te=(V,K)=>Ro(V)?f.values.subscribe({next:te=>V($(void 0,K),te)}):$(V,K,!0),ye=(V,K={})=>{for(const te of V?Td(V):s.mount)s.mount.delete(te),s.array.delete(te),K.keepValue||(Cr(n,te),Cr(o,te)),!K.keepError&&Cr(r.errors,te),!K.keepDirty&&Cr(r.dirtyFields,te),!K.keepTouched&&Cr(r.touchedFields,te),!K.keepIsValidating&&Cr(r.validatingFields,te),!t.shouldUnregister&&!K.keepDefaultValue&&Cr(a,te);f.values.next({values:{...o}}),f.state.next({...r,...K.keepDirty?{isDirty:j()}:{}}),!K.keepIsValid&&S()},be=({disabled:V,name:K,field:te,fields:se,value:de})=>{if(ta(V)&&i.mount||V){const fe=V?void 0:lr(de)?Kb(te?te._f:Le(se,K)._f):de;Ut(o,K,fe),C(K,fe,!1,!1,!0)}},we=(V,K={})=>{let te=Le(n,V);const se=ta(K.disabled)||ta(e.disabled);return Ut(n,V,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:V}},name:V,mount:!0,...K}}),s.mount.add(V),te?be({field:te,disabled:ta(K.disabled)?K.disabled:e.disabled,name:V,value:K.value}):_(V,!0,K.value),{...se?{disabled:K.disabled||e.disabled}:{},...t.progressive?{required:!!K.required,min:qc(K.min),max:qc(K.max),minLength:qc(K.minLength),maxLength:qc(K.maxLength),pattern:qc(K.pattern)}:{},name:V,onChange:B,onBlur:B,ref:de=>{if(de){we(V,K),te=Le(n,V);const fe=lr(de.value)&&de.querySelectorAll&&de.querySelectorAll("input,select,textarea")[0]||de,Oe=Sre(fe),ae=te._f.refs||[];if(Oe?ae.find(Z=>Z===fe):fe===te._f.ref)return;Ut(n,V,{_f:{...te._f,...Oe?{refs:[...ae.filter(qb),fe,...Array.isArray(Le(a,V))?[{}]:[]],ref:{type:fe.type,name:V}}:{ref:fe}}}),_(V,!1,void 0,fe)}else te=Le(n,V,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||K.shouldUnregister)&&!(e3(s.array,V)&&i.action)&&s.unMount.add(V)}}},ve=()=>t.shouldFocusError&&$d(n,U,s.mount),De=V=>{ta(V)&&(f.state.next({disabled:V}),$d(n,(K,te)=>{const se=Le(n,te);se&&(K.disabled=se._f.disabled||V,Array.isArray(se._f.refs)&&se._f.refs.forEach(de=>{de.disabled=se._f.disabled||V}))},0,!1))},Me=(V,K)=>async te=>{let se;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let de=xn(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:fe,values:Oe}=await w();r.errors=fe,de=Oe}else await P(n);if(Cr(r.errors,"root"),_n(r.errors)){f.state.next({errors:{}});try{await V(de,te)}catch(fe){se=fe}}else K&&await K({...r.errors},te),ve(),setTimeout(ve);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_n(r.errors)&&!se,submitCount:r.submitCount+1,errors:r.errors}),se)throw se},Qe=(V,K={})=>{Le(n,V)&&(lr(K.defaultValue)?W(V,xn(Le(a,V))):(W(V,K.defaultValue),Ut(a,V,xn(K.defaultValue))),K.keepTouched||Cr(r.touchedFields,V),K.keepDirty||(Cr(r.dirtyFields,V),r.isDirty=K.defaultValue?j(V,xn(Le(a,V))):j()),K.keepError||(Cr(r.errors,V),c.isValid&&S()),f.state.next({...r}))},Ne=(V,K={})=>{const te=V?xn(V):a,se=xn(te),de=_n(V),fe=de?a:se;if(K.keepDefaultValues||(a=te),!K.keepValues){if(K.keepDirtyValues)for(const Oe of s.mount)Le(r.dirtyFields,Oe)?Ut(fe,Oe,Le(o,Oe)):W(Oe,Le(fe,Oe));else{if($_&&lr(V))for(const Oe of s.mount){const ae=Le(n,Oe);if(ae&&ae._f){const Z=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(Yv(Z)){const G=Z.closest("form");if(G){G.reset();break}}}}n={}}o=e.shouldUnregister?K.keepDefaultValues?xn(a):{}:xn(fe),f.array.next({values:{...fe}}),f.values.next({values:{...fe}})}s={mount:K.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!c.isValid||!!K.keepIsValid||!!K.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:K.keepSubmitCount?r.submitCount:0,isDirty:de?!1:K.keepDirty?r.isDirty:!!(K.keepDefaultValues&&!ci(V,a)),isSubmitted:K.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:de?{}:K.keepDirtyValues?K.keepDefaultValues&&o?eh(a,o):r.dirtyFields:K.keepDefaultValues&&V?eh(a,V):K.keepDirty?r.dirtyFields:{},touchedFields:K.keepTouched?r.touchedFields:{},errors:K.keepErrors?r.errors:{},isSubmitSuccessful:K.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ae=(V,K)=>Ne(Ro(V)?V(o):V,K);return{control:{register:we,unregister:ye,getFieldState:oe,handleSubmit:Me,setError:pe,_executeSchema:w,_getWatch:$,_getDirty:j,_updateValid:S,_removeUnmounted:k,_updateFieldArray:m,_updateDisabledField:be,_getFieldArray:F,_reset:Ne,_resetDefaultValues:()=>Ro(t.defaultValues)&&t.defaultValues().then(V=>{Ae(V,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:V=>{r={...r,...V}},_disableForm:De,_subjects:f,_proxyFormState:c,_setErrors:h,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(V){i=V},get _defaultValues(){return a},get _names(){return s},set _names(V){s=V},get _formState(){return r},set _formState(V){r=V},get _options(){return t},set _options(V){t={...t,...V}}},trigger:q,register:we,handleSubmit:Me,watch:Te,setValue:W,getValues:ie,reset:Ae,resetField:Qe,clearErrors:Ee,unregister:ye,setError:pe,setFocus:(V,K={})=>{const te=Le(n,V),se=te&&te._f;if(se){const de=se.refs?se.refs[0]:se.ref;de.focus&&(de.focus(),K.shouldSelect&&de.select())}},getFieldState:oe}}function h3(e={}){const t=ke.useRef(),r=ke.useRef(),[n,a]=ke.useState({isDirty:!1,isValidating:!1,isLoading:Ro(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ro(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Tre(e),formState:n});const o=t.current.control;return o._options=e,j_({subject:o._subjects.state,next:i=>{o3(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&&!ci(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=a3(n,o),t.current}var v3=d.createContext(void 0),rx=globalThis&&globalThis.__assign||function(){return rx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,u=d.useState(!1),l=u[0],c=u[1],f=!e||!s||o,p=J8(function(v){var g=v.currentLocation,y=v.nextLocation;if(f)return!1;var S=t||g.pathname,x=y.pathname.startsWith(S),m=y.pathname.startsWith("".concat(S,"/show")),b=x&&!m;return!b});d.useEffect(function(){if(p.state==="blocked"){if(f){p.proceed();return}c(!0)}},[p.state]),d.useEffect(function(){if(l){var v=window.confirm(n("ra.message.unsaved_changes"));v?p.proceed&&p.proceed():p.reset&&p.reset()}c(!1)},[l,n]),d.useEffect(function(){var v=function(g){g.preventDefault(),g.returnValue=!0};if(!f)return window.addEventListener("beforeunload",v),function(){window.removeEventListener("beforeunload",v)}},[f])},Vre=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return zre(r,n,a),null};function Ure(e,t){var r=sM({},Wre(e,t),t);return r}function Wre(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var y3=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],s=o[1];if(typeof s=="object"){r(s,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:s.toString()})})};r(e,"")},Hre=function(e,t){t===void 0&&(t=!0);var r=zm(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=d.useRef(n),i=ur();d.useEffect(function(){var s,u;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((u=(s=a.root)===null||s===void 0?void 0:s.serverError)===null||u===void 0?void 0:u.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},qre=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},ax=globalThis&&globalThis.__assign||function(){return ax=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gi=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function Jre(e){return e?e.hasOwnProperty("message"):!1}var Qi=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},Xi=function(e){return TA(e,function(){for(var t=[],r=0;re?Qi(t,{max:e},r,n):void 0}});Xi(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!Gi(r)&&re?Qi(t,{max:e},r,n):void 0}});Xi(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!Gi(t)&&isNaN(Number(t))?Qi(e,void 0,t,r):void 0}});var rne=TA(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!Gi(r)&&typeof r=="string"&&!e.test(r)?Qi(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});Xi(function(e){return e===void 0&&(e="ra.validation.email"),rne(Yre,e)});var nne=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};Xi(function(e,t){return t===void 0&&(t=nne),function(r,n){return!Gi(r)&&e.indexOf(r)===-1?Qi(t,{list:e},r,n):void 0}});var ane=d.createContext(null),one=function(){var e=d.useContext(v3);return e},ine=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=q3(o),s=_r(t),u=xc(),l=u.getValues,c=u.resetField,f=u.formState,p=u.reset,v=qt(s,i),g=qt(l(),i),y=f.dirtyFields,S=Object.keys(y).includes(i);d.useEffect(function(){if(!(a==null||g!=null||v!=null||S)){var x=i.split(".").some(function(h){return sne.test(h)});if(x){var m=i.split(".").slice(0,-1).join("."),b=qt(l(),m);if(b==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),p({},{keepValues:!0});return}c(i,{defaultValue:a})}})},sne=/^\d+$/,lne=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,s=e.translateChoice,u=s===void 0?!0:s,l=et(),c=d.useCallback(function(v){if(d.isValidElement(r))return d.createElement(bc,{value:v},r);var g=typeof r=="function"?r(v):qt(v,r);return d.isValidElement(g)?g:u?l(String(g),{_:g}):String(g)},[r,l,u]),f=d.useCallback(function(v){return qt(v,a)},[a]),p=d.useCallback(function(v){return qt(v,i)},[i]);return{getChoiceText:c,getChoiceValue:f,getDisableValue:p}},une=function(){var e=d.useContext(ane);return e},cne=function(e){return e&&e.isRequired?!0:Array.isArray(e)?e.some(function(t){return t.isRequired}):!1};const dne=cne;var fs=globalThis&&globalThis.__assign||function(){return fs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var _3=function(){return d.useContext(w3)},sx=globalThis&&globalThis.__assign||function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0||g.customRoutesWithLayout.length>0||g.customRoutesWithoutLayout.length>0?"ready":"empty"),v&&f(v),[2]})})};r||p()},[e,n,r,s,t,i,c]),[o,l]},Nne=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]},Lne=function(e,t){var r=_3(),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])},Dne=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return C3(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},C3=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]},dd=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=dd(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})},E3=d.createContext(!1),Bne=E3.Provider,zne=function(){return d.useContext(E3)},Vne=function(e){Pne();var t=ll(),r=Mne(e.children),n=r.customRoutesWithLayout,a=r.customRoutesWithoutLayout,o=r.status,i=r.resources,s=e.layout,u=e.catchAll,l=e.dashboard,c=e.loading,f=e.requireAuth,p=e.ready,v=d.useState(f),g=v[0],y=v[1],S=d.useState(f),x=S[0],m=S[1],b=J3();if(d.useEffect(function(){f&&b(void 0,!1).then(function(){y(!1)}).catch(function(){}).finally(function(){m(!1)})},[b,f]),o==="empty"){if(!p)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return d.createElement(p,null)}return o==="loading"||x?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement("div",{style:{height:"100vh"}},d.createElement(c,null))})):g?d.createElement(ws,null,a,d.createElement(zr,{path:"*",element:d.createElement(Lae,null)})):d.createElement(ws,null,a,d.createElement(zr,{path:"/*",element:d.createElement(Bne,{value:!!l},d.createElement(s,null,d.createElement(ws,null,n,d.Children.map(i,function(h){return d.createElement(zr,{key:h.props.name,path:"".concat(h.props.name,"/*"),element:h})}),d.createElement(zr,{path:"/",element:l?d.createElement($ae,{authParams:Une,component:l}):i.length>0?d.createElement(tz,{to:t({resource:i[0].props.name,type:"list"})}):null}),d.createElement(zr,{path:"*",element:d.createElement(u,null)}))))}))},Une={params:{route:"dashboard"}},O3=d.createContext("React Admin"),Wne=O3.Provider,P3=function(){return d.useContext(O3)},Hne=function(e){var t=e.children;return d.createElement(d.Fragment,null,t)},qne=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return b3(n),d.createElement("div",null,d.createElement("h1",null,"Error"),d.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},Kne=function(e){var t=d.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,s=i===void 0?AR:i,u=e.children,l=e.dashboard,c=e.disableTelemetry,f=c===void 0?!1:c,p=e.error,v=p===void 0?qne:p,g=e.layout,y=g===void 0?Hne:g,S=e.loading,x=S===void 0?AR:S,m=e.loginPage,b=m===void 0?!1:m,h=e.ready,_=h===void 0?lae:h,C=e.requireAuth,E=C===void 0?!1:C,w=e.title,O=w===void 0?"React Admin":w;d.useEffect(function(){if(!(f||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var k=new Image;k.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[f]);var P=function(k,j){return n(j)};return d.createElement(Wne,{value:O},d.createElement(S3,{onError:P,fallbackRender:function(k){var j=k.error,$=k.resetErrorBoundary;return d.createElement("div",{style:{minHeight:"100vh"}},d.createElement(v,{error:j,errorInfo:r,resetErrorBoundary:$}))}},d.createElement(ws,null,b!==!1&&b!==!0?d.createElement(zr,{path:"/login",element:IR(b)}):null,o!==!1&&o!==!0?d.createElement(zr,{path:"/auth-callback",element:IR(o)}):null,d.createElement(zr,{path:"/*",element:d.createElement(Vne,{catchAll:s,dashboard:l,layout:y,loading:x,requireAuth:E,ready:_},u)}))))},IR=function(e){return d.isValidElement(e)?e:d.createElement(e)},AR=function(){return null},R3=function(e){return null};R3.raName="CustomRoutes";var T3=d.createContext(void 0),ul=function(e){var t=e.children,r=e.value;return r?d.createElement(T3.Provider,{value:r},t):t},Gne=function(e){var t=e.value,r=e.children;return t?d.createElement(ul,{value:t},r):r},$3={exports:{}},Ft={};/** * @license React * react-is.production.min.js * @@ -85,27 +85,27 @@ React-admin requires a valid dataProvider function to work.`);var c=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 N_=Symbol.for("react.element"),L_=Symbol.for("react.portal"),Um=Symbol.for("react.fragment"),Wm=Symbol.for("react.strict_mode"),Hm=Symbol.for("react.profiler"),qm=Symbol.for("react.provider"),Km=Symbol.for("react.context"),Qne=Symbol.for("react.server_context"),Gm=Symbol.for("react.forward_ref"),Qm=Symbol.for("react.suspense"),Xm=Symbol.for("react.suspense_list"),Ym=Symbol.for("react.memo"),Jm=Symbol.for("react.lazy"),Xne=Symbol.for("react.offscreen"),$3;$3=Symbol.for("react.module.reference");function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N_:switch(e=e.type,e){case Um:case Hm:case Wm:case Qm:case Xm:return e;default:switch(e=e&&e.$$typeof,e){case Qne:case Km:case Gm:case Jm:case Ym:case qm:return e;default:return t}}case L_:return t}}}Ft.ContextConsumer=Km;Ft.ContextProvider=qm;Ft.Element=N_;Ft.ForwardRef=Gm;Ft.Fragment=Um;Ft.Lazy=Jm;Ft.Memo=Ym;Ft.Portal=L_;Ft.Profiler=Hm;Ft.StrictMode=Wm;Ft.Suspense=Qm;Ft.SuspenseList=Xm;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return ma(e)===Km};Ft.isContextProvider=function(e){return ma(e)===qm};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N_};Ft.isForwardRef=function(e){return ma(e)===Gm};Ft.isFragment=function(e){return ma(e)===Um};Ft.isLazy=function(e){return ma(e)===Jm};Ft.isMemo=function(e){return ma(e)===Ym};Ft.isPortal=function(e){return ma(e)===L_};Ft.isProfiler=function(e){return ma(e)===Hm};Ft.isStrictMode=function(e){return ma(e)===Wm};Ft.isSuspense=function(e){return ma(e)===Qm};Ft.isSuspenseList=function(e){return ma(e)===Xm};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Um||e===Hm||e===Wm||e===Qm||e===Xm||e===Xne||typeof e=="object"&&e!==null&&(e.$$typeof===Jm||e.$$typeof===Ym||e.$$typeof===qm||e.$$typeof===Km||e.$$typeof===Gm||e.$$typeof===$3||e.getModuleId!==void 0)};Ft.typeOf=ma;T3.exports=Ft;var lx=T3.exports,Yl=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(ul,{value:a},d.createElement(ws,null,t&&d.createElement(zr,{path:"create/*",element:th(t)}),o&&d.createElement(zr,{path:":id/show/*",element:th(o)}),r&&d.createElement(zr,{path:":id/*",element:th(r)}),n&&d.createElement(zr,{path:"/*",element:d.createElement(OJ,{storeKey:"".concat(a,".list.scrollPosition")},th(n))}),e.children))},th=function(e){if(d.isValidElement(e))return e;if(lx.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};Yl.raName="Resource";Yl.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var D_=d.createContext(void 0),Yne={getSource:function(e){return e},getLabel:function(e){return e}},k3=D_.Provider,Jne=function(){var e=d.useContext(D_);return e||Yne},Zne=function(){return d.useContext(D_)},sp=function(){return S3().definitions},$t={};/*! + */var N_=Symbol.for("react.element"),L_=Symbol.for("react.portal"),Vm=Symbol.for("react.fragment"),Um=Symbol.for("react.strict_mode"),Wm=Symbol.for("react.profiler"),Hm=Symbol.for("react.provider"),qm=Symbol.for("react.context"),Qne=Symbol.for("react.server_context"),Km=Symbol.for("react.forward_ref"),Gm=Symbol.for("react.suspense"),Qm=Symbol.for("react.suspense_list"),Xm=Symbol.for("react.memo"),Ym=Symbol.for("react.lazy"),Xne=Symbol.for("react.offscreen"),k3;k3=Symbol.for("react.module.reference");function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N_:switch(e=e.type,e){case Vm:case Wm:case Um:case Gm:case Qm:return e;default:switch(e=e&&e.$$typeof,e){case Qne:case qm:case Km:case Ym:case Xm:case Hm:return e;default:return t}}case L_:return t}}}Ft.ContextConsumer=qm;Ft.ContextProvider=Hm;Ft.Element=N_;Ft.ForwardRef=Km;Ft.Fragment=Vm;Ft.Lazy=Ym;Ft.Memo=Xm;Ft.Portal=L_;Ft.Profiler=Wm;Ft.StrictMode=Um;Ft.Suspense=Gm;Ft.SuspenseList=Qm;Ft.isAsyncMode=function(){return!1};Ft.isConcurrentMode=function(){return!1};Ft.isContextConsumer=function(e){return ma(e)===qm};Ft.isContextProvider=function(e){return ma(e)===Hm};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N_};Ft.isForwardRef=function(e){return ma(e)===Km};Ft.isFragment=function(e){return ma(e)===Vm};Ft.isLazy=function(e){return ma(e)===Ym};Ft.isMemo=function(e){return ma(e)===Xm};Ft.isPortal=function(e){return ma(e)===L_};Ft.isProfiler=function(e){return ma(e)===Wm};Ft.isStrictMode=function(e){return ma(e)===Um};Ft.isSuspense=function(e){return ma(e)===Gm};Ft.isSuspenseList=function(e){return ma(e)===Qm};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vm||e===Wm||e===Um||e===Gm||e===Qm||e===Xne||typeof e=="object"&&e!==null&&(e.$$typeof===Ym||e.$$typeof===Xm||e.$$typeof===Hm||e.$$typeof===qm||e.$$typeof===Km||e.$$typeof===k3||e.getModuleId!==void 0)};Ft.typeOf=ma;$3.exports=Ft;var lx=$3.exports,Yl=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return d.createElement(ul,{value:a},d.createElement(ws,null,t&&d.createElement(zr,{path:"create/*",element:th(t)}),o&&d.createElement(zr,{path:":id/show/*",element:th(o)}),r&&d.createElement(zr,{path:":id/*",element:th(r)}),n&&d.createElement(zr,{path:"/*",element:d.createElement(OJ,{storeKey:"".concat(a,".list.scrollPosition")},th(n))}),e.children))},th=function(e){if(d.isValidElement(e))return e;if(lx.isValidElementType(e)){var t=e;return d.createElement(t,null)}return null};Yl.raName="Resource";Yl.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,s=e.show,u=e.recordRepresentation,l=e.hasCreate,c=e.hasEdit,f=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!c,hasShow:!!s||!!f,icon:n,recordRepresentation:u}};var D_=d.createContext(void 0),Yne={getSource:function(e){return e},getLabel:function(e){return e}},j3=D_.Provider,Jne=function(){var e=d.useContext(D_);return e||Yne},Zne=function(){return d.useContext(D_)},sp=function(){return _3().definitions},$t={};/*! * inflection * Copyright(c) 2011 Ben Lin * MIT Licensed * * @fileoverview * A port of inflection-js to node.js module. - */Object.defineProperty($t,"__esModule",{value:!0});var j3=$t.transform=$t.ordinalize=$t.foreignKey=$t.classify=$t.tableize=$t.demodulize=$t.titleize=$t.dasherize=$t.capitalize=ey=$t.humanize=$t.underscore=$t.camelize=N3=$t.inflect=V_=$t.singularize=F3=$t.pluralize=void 0;const ag=["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"],xe={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")}},I3=[[xe.plural.men],[xe.plural.people],[xe.plural.children],[xe.plural.tia],[xe.plural.analyses],[xe.plural.databases],[xe.plural.drives],[xe.plural.hives],[xe.plural.curves],[xe.plural.lrves],[xe.plural.foves],[xe.plural.aeiouyies],[xe.plural.series],[xe.plural.movies],[xe.plural.xes],[xe.plural.mice],[xe.plural.buses],[xe.plural.oes],[xe.plural.shoes],[xe.plural.crises],[xe.plural.octopuses],[xe.plural.aliases],[xe.plural.summonses],[xe.plural.oxen],[xe.plural.matrices],[xe.plural.feet],[xe.plural.teeth],[xe.plural.geese],[xe.plural.quizzes],[xe.plural.whereases],[xe.plural.criteria],[xe.plural.genera],[xe.singular.man,"$1en"],[xe.singular.person,"$1ople"],[xe.singular.child,"$1ren"],[xe.singular.drive,"$1s"],[xe.singular.ox,"$1en"],[xe.singular.axis,"$1es"],[xe.singular.octopus,"$1uses"],[xe.singular.alias,"$1es"],[xe.singular.summons,"$1es"],[xe.singular.bus,"$1ses"],[xe.singular.buffalo,"$1oes"],[xe.singular.tium,"$1a"],[xe.singular.sis,"ses"],[xe.singular.ffe,"$1$2ves"],[xe.singular.hive,"$1ves"],[xe.singular.aeiouyy,"$1ies"],[xe.singular.matrix,"$1ices"],[xe.singular.vertex,"$1ices"],[xe.singular.x,"$1es"],[xe.singular.mouse,"$1ice"],[xe.singular.foot,"feet"],[xe.singular.tooth,"teeth"],[xe.singular.goose,"geese"],[xe.singular.quiz,"$1zes"],[xe.singular.whereas,"$1es"],[xe.singular.criterion,"$1a"],[xe.singular.genus,"genera"],[xe.singular.s,"s"],[xe.singular.common,"s"]],A3=[[xe.singular.man],[xe.singular.person],[xe.singular.child],[xe.singular.drive],[xe.singular.ox],[xe.singular.axis],[xe.singular.octopus],[xe.singular.alias],[xe.singular.summons],[xe.singular.bus],[xe.singular.buffalo],[xe.singular.tium],[xe.singular.sis],[xe.singular.ffe],[xe.singular.hive],[xe.singular.aeiouyy],[xe.singular.x],[xe.singular.matrix],[xe.singular.mouse],[xe.singular.foot],[xe.singular.tooth],[xe.singular.goose],[xe.singular.quiz],[xe.singular.whereas],[xe.singular.criterion],[xe.singular.genus],[xe.plural.men,"$1an"],[xe.plural.people,"$1rson"],[xe.plural.children,"$1"],[xe.plural.databases,"$1"],[xe.plural.drives,"$1"],[xe.plural.genera,"genus"],[xe.plural.criteria,"$1on"],[xe.plural.tia,"$1um"],[xe.plural.analyses,"$1$2sis"],[xe.plural.hives,"$1ve"],[xe.plural.curves,"$1"],[xe.plural.lrves,"$1f"],[xe.plural.aves,"$1ve"],[xe.plural.foves,"$1fe"],[xe.plural.movies,"$1ovie"],[xe.plural.aeiouyies,"$1y"],[xe.plural.series,"$1eries"],[xe.plural.xes,"$1"],[xe.plural.mice,"$1ouse"],[xe.plural.buses,"$1"],[xe.plural.oes,"$1"],[xe.plural.shoes,"$1"],[xe.plural.crises,"$1is"],[xe.plural.octopuses,"$1us"],[xe.plural.aliases,"$1"],[xe.plural.summonses,"$1"],[xe.plural.oxen,"$1"],[xe.plural.matrices,"$1ix"],[xe.plural.vertices,"$1ex"],[xe.plural.feet,"foot"],[xe.plural.teeth,"tooth"],[xe.plural.geese,"goose"],[xe.plural.quizzes,"$1"],[xe.plural.whereases,"$1"],[xe.plural.ss,"ss"],[xe.plural.s,""]],eae=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],tae=new RegExp("(_ids|_id)$","g"),M3=new RegExp("_","g"),rae=new RegExp("[ _]","g"),nae=new RegExp("([A-Z])","g"),aae=new RegExp("^_");function og(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 B_(e,t){return og(e,I3,ag,t)}var F3=$t.pluralize=B_;function z_(e,t){return og(e,A3,ag,t)}var V_=$t.singularize=z_;function oae(e,t,r,n){return isNaN(t)?e:t===1?og(e,A3,ag,r):og(e,I3,ag,n)}var N3=$t.inflect=oae;function U_(e,t){const r=e.split("/"),n=r.length;let a,o,i,s;for(let u=0;u1?F3(r):V_(r))});return o}},Nt=function(e){var t=d.useContext(R3);return e&&e.resource||t},Wo=function(e){var t=Nt(e),r=sp(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return T_({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},H_=function(e){var t=Wo({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])},H3=function(e){var t=Jne();return t.getSource(e)},q3=function(){var e=et(),t=Nt(),r=Zne();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,uae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},K3=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=q3();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"}," *"))};K3.displayName="FieldTitle";const no=d.memo(K3);var MR=globalThis&&globalThis.__assign||function(){return MR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return[""];var i=cae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=j3(u.replace(/\./g," "),["underscore","humanize"]);return n?[FR(n,s),{_:l}]:r?[r,{_:l}]:[FR(a||"undefined",s),{_:l}]},FR=function(e,t){return"resources.".concat(e,".fields.").concat(t)},cae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){dae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},dae=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 fae(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var pae=typeof window<"u"?d.useLayoutEffect:d.useEffect,Mt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return pae(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,o,t,n,s]);var l=Mt(function(c,f){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},hae=function(e){var t=jm().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])},vae=function(e){var t=jm().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])},gae=function(){var e=jm().reset;return e},mae=function(){var e=zo(),t=Fa(),r=gae(),n=lo(),a=d.useRef(n),o=rn(),i=d.useRef(o),s=qi(),u=qa("".concat(s,"/").concat(ym.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=d.useCallback(function(c,f,p){return c===void 0&&(c={}),f===void 0&&(f=u),p===void 0&&(p=!0),e?e.logout(c).then(function(v){if(v===!1||f===!1){r(),t.clear();return}var g=v||f;if(g!=null&&g.startsWith("http"))return r(),t.clear(),window.location.href=g,g;var y=g.split("?"),S={pathname:y[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),y[1]&&(S.search=y[1]),a.current(S,x),r(),t.clear(),v}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l};const Cc=mae;var ps=globalThis&&globalThis.__assign||function(){return ps=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},LR=function(){},hs=globalThis&&globalThis.__assign||function(){return hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Ec(t);var i=Q3(t).permissions;if(a)return d.createElement(a,jd({permissions:i},o));if(n)return n(jd({permissions:i},o));if(r)return r(jd({permissions:i},o))};const $ae=Tae;var kae=function(){var e=zo(),t=rn(),r=t.state,n=lo(),a=qi(),o=KA().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=qa("".concat(a,"/").concat(ym.afterLoginUrl)),l=d.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var v=f||i+s||u;n(v)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l};const X3=kae;var jae="AUTH_LOGIN",Iae="AUTH_CHECK",Aae="AUTH_ERROR",Mae="AUTH_LOGOUT",Fae="AUTH_GET_PERMISSIONS";const Nae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Id=globalThis&&globalThis.__assign||function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return ya(r&&e?"".concat(r,".").concat(e):r??e,t)},K_=function(){var e=d.useContext(b3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},Yae=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Br(Oc,--jn):0,Qu--,br===10&&(Qu=1,ay--),br}function Wn(){return br=jn2||Cf(br)>3?"":" "}function Ooe(e,t){for(;--t&&Wn()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return lp(e,zh()+(t<6&&to()==32&&Wn()==32))}function dx(e){for(;Wn();)switch(br){case e:return jn;case 34:case 39:e!==34&&e!==39&&dx(br);break;case 40:e===41&&dx(e);break;case 92:Wn();break}return jn}function Poe(e,t){for(;Wn()&&e+br!==47+10;)if(e+br===42+42&&to()===47)break;return"/*"+lp(t,jn-1)+"*"+ny(e===47?e:Wn())}function Roe(e){for(;!Cf(to());)Wn();return lp(e,jn)}function Toe(e){return sF(Uh("",null,null,null,[""],e=iF(e),0,[0],e))}function Uh(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,f=i,p=0,v=0,g=0,y=1,S=1,x=1,m=0,b="",h=a,_=o,C=n,E=b;S;)switch(g=m,m=Wn()){case 40:if(g!=108&&Br(E,f-1)==58){cx(E+=Tt(Vh(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Vh(m);break;case 9:case 10:case 13:case 32:E+=Eoe(g);break;case 92:E+=Ooe(zh()-1,7);continue;case 47:switch(to()){case 42:case 47:rh($oe(Poe(Wn(),zh()),t,r),u);break;default:E+="/"}break;case 123*y:s[l++]=Ka(E)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+c:x==-1&&(E=Tt(E,/\f/g,"")),v>0&&Ka(E)-f&&rh(v>32?UR(E+";",n,r,f-1):UR(Tt(E," ","")+";",n,r,f-2),u);break;case 59:E+=";";default:if(rh(C=VR(E,t,r,l,c,a,s,b,h=[],_=[],f),o),m===123)if(c===0)Uh(E,t,C,C,h,o,f,s,_);else switch(p===99&&Br(E,3)===110?100:p){case 100:case 108:case 109:case 115:Uh(e,C,C,n&&rh(VR(e,C,C,0,0,a,s,b,a,h=[],f),_),a,_,f,s,n?h:_);break;default:Uh(E,C,C,C,[""],_,0,s,_)}}l=c=v=0,y=x=1,b=E="",f=i;break;case 58:f=1+Ka(E),v=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&Coe()==125)continue}switch(E+=ny(m),m*y){case 38:x=c>0?1:(E+="\f",-1);break;case 44:s[l++]=(Ka(E)-1)*x,x=1;break;case 64:to()===45&&(E+=Vh(Wn())),p=to(),c=f=Ka(b=E+=Roe(zh())),m++;break;case 45:g===45&&Ka(E)==2&&(y=0)}}return o}function VR(e,t,r,n,a,o,i,s,u,l,c){for(var f=a-1,p=a===0?o:[""],v=X_(p),g=0,y=0,S=0;g0?p[x]+" "+m:Tt(m,/&\f/g,p[x])))&&(u[S++]=b);return oy(e,t,r,a===0?G_:s,u,l,c)}function $oe(e,t,r){return oy(e,t,r,rF,ny(_oe()),_f(e,2,-2),0)}function UR(e,t,r,n){return oy(e,t,r,Q_,_f(e,0,n),_f(e,n+1,-1),n)}function cu(e,t){for(var r="",n=X_(e),a=0;a6)switch(Br(e,t+1)){case 109:if(Br(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+ig+(Br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cx(e,"stretch")?lF(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Br(e,t+1)!==115)break;case 6444:switch(Br(e,Ka(e)-3-(~cx(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Br(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Br(e,t+11)){case 114:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Yr+e+e}return e}var Doe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Q_:t.return=lF(t.value,t.length);break;case nF:return cu([Gc(t,{value:Tt(t.value,"@","@"+Rt)})],a);case G_:if(t.length)return Soe(t.props,function(o){switch(woe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Gc(t,{props:[Tt(o,/:(read-\w+)/,":"+ig+"$1")]})],a);case"::placeholder":return cu([Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+ig+"$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Boe=[Doe],uF=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(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||Boe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),x=1;x1?N3(r):V_(r))});return o}},Nt=function(e){var t=d.useContext(T3);return e&&e.resource||t},Wo=function(e){var t=Nt(e),r=sp(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,s=n.hasShow,u=n.recordRepresentation,l=d.useMemo(function(){return T_({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:s,recordRepresentation:u},t?r[t]:{})},[t,r,a,o,i,s,u]);return l},H_=function(e){var t=Wo({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])},q3=function(e){var t=Jne();return t.getSource(e)},K3=function(){var e=et(),t=Nt(),r=Zne();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,uae({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},G3=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=K3();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"}," *"))};G3.displayName="FieldTitle";const no=d.memo(G3);var MR=globalThis&&globalThis.__assign||function(){return MR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u")return[""];var i=cae(o),s=i.sourceWithoutDigits,u=i.sourceSuffix,l=I3(u.replace(/\./g," "),["underscore","humanize"]);return n?[FR(n,s),{_:l}]:r?[r,{_:l}]:[FR(a||"undefined",s),{_:l}]},FR=function(e,t){return"resources.".concat(e,".fields.").concat(t)},cae=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){dae(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},dae=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 fae(e){return function(t){e.forEach(function(r){typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var pae=typeof window<"u"?d.useLayoutEffect:d.useEffect,Mt=function(e){var t=d.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return pae(function(){t.current=e}),d.useCallback(function(){for(var r=[],n=0;n"u"?t:p)});return function(){return f()}},[e,o,t,n,s]);var l=Mt(function(c,f){var p=typeof c=="function"?c(s):c;a(e,typeof p>"u"?typeof f>"u"?t:f:p)});return[s,l]},hae=function(e){var t=km().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])},vae=function(e){var t=km().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])},gae=function(){var e=km().reset;return e},mae=function(){var e=zo(),t=Fa(),r=gae(),n=lo(),a=d.useRef(n),o=rn(),i=d.useRef(o),s=qi(),u=qa("".concat(s,"/").concat(mm.loginUrl));d.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=d.useCallback(function(c,f,p){return c===void 0&&(c={}),f===void 0&&(f=u),p===void 0&&(p=!0),e?e.logout(c).then(function(v){if(v===!1||f===!1){r(),t.clear();return}var g=v||f;if(g!=null&&g.startsWith("http"))return r(),t.clear(),window.location.href=g,g;var y=g.split("?"),S={pathname:y[0]},x={};return p&&i.current&&i.current.pathname&&(x={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),y[1]&&(S.search=y[1]),a.current(S,x),r(),t.clear(),v}):(a.current({pathname:u},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,u,t]);return l};const Cc=mae;var ps=globalThis&&globalThis.__assign||function(){return ps=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||!e.message?t:e.message},LR=function(){},hs=globalThis&&globalThis.__assign||function(){return hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"),Ec(t);var i=X3(t).permissions;if(a)return d.createElement(a,jd({permissions:i},o));if(n)return n(jd({permissions:i},o));if(r)return r(jd({permissions:i},o))};const $ae=Tae;var kae=function(){var e=zo(),t=rn(),r=t.state,n=lo(),a=qi(),o=GA().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,u=qa("".concat(a,"/").concat(mm.afterLoginUrl)),l=d.useCallback(function(c,f){return c===void 0&&(c={}),e?e.login(c).then(function(p){if(o(),p&&p.hasOwnProperty("redirectTo"))p&&n(p.redirectTo);else{var v=f||i+s||u;n(v)}return p}):(o(),n(u),Promise.resolve())},[e,n,i,s,o,u]);return l};const Y3=kae;var jae="AUTH_LOGIN",Iae="AUTH_CHECK",Aae="AUTH_ERROR",Mae="AUTH_LOGOUT",Fae="AUTH_GET_PERMISSIONS";const Nae=function(e){var t=function(){for(var r=[],n=0;n"u"||!e.message?t:e.message},Id=globalThis&&globalThis.__assign||function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]? If you don't want to use Configurable, you can use the useStore hook instead.");return ya(r&&e?"".concat(r,".").concat(e):r??e,t)},K_=function(){var e=d.useContext(x3);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},Yae=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n0?Br(Oc,--jn):0,Qu--,br===10&&(Qu=1,ny--),br}function Wn(){return br=jn2||Cf(br)>3?"":" "}function Ooe(e,t){for(;--t&&Wn()&&!(br<48||br>102||br>57&&br<65||br>70&&br<97););return lp(e,zh()+(t<6&&to()==32&&Wn()==32))}function dx(e){for(;Wn();)switch(br){case e:return jn;case 34:case 39:e!==34&&e!==39&&dx(br);break;case 40:e===41&&dx(e);break;case 92:Wn();break}return jn}function Poe(e,t){for(;Wn()&&e+br!==47+10;)if(e+br===42+42&&to()===47)break;return"/*"+lp(t,jn-1)+"*"+ry(e===47?e:Wn())}function Roe(e){for(;!Cf(to());)Wn();return lp(e,jn)}function Toe(e){return lF(Uh("",null,null,null,[""],e=sF(e),0,[0],e))}function Uh(e,t,r,n,a,o,i,s,u){for(var l=0,c=0,f=i,p=0,v=0,g=0,y=1,S=1,x=1,m=0,b="",h=a,_=o,C=n,E=b;S;)switch(g=m,m=Wn()){case 40:if(g!=108&&Br(E,f-1)==58){cx(E+=Tt(Vh(m),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Vh(m);break;case 9:case 10:case 13:case 32:E+=Eoe(g);break;case 92:E+=Ooe(zh()-1,7);continue;case 47:switch(to()){case 42:case 47:rh($oe(Poe(Wn(),zh()),t,r),u);break;default:E+="/"}break;case 123*y:s[l++]=Ka(E)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+c:x==-1&&(E=Tt(E,/\f/g,"")),v>0&&Ka(E)-f&&rh(v>32?UR(E+";",n,r,f-1):UR(Tt(E," ","")+";",n,r,f-2),u);break;case 59:E+=";";default:if(rh(C=VR(E,t,r,l,c,a,s,b,h=[],_=[],f),o),m===123)if(c===0)Uh(E,t,C,C,h,o,f,s,_);else switch(p===99&&Br(E,3)===110?100:p){case 100:case 108:case 109:case 115:Uh(e,C,C,n&&rh(VR(e,C,C,0,0,a,s,b,a,h=[],f),_),a,_,f,s,n?h:_);break;default:Uh(E,C,C,C,[""],_,0,s,_)}}l=c=v=0,y=x=1,b=E="",f=i;break;case 58:f=1+Ka(E),v=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&Coe()==125)continue}switch(E+=ry(m),m*y){case 38:x=c>0?1:(E+="\f",-1);break;case 44:s[l++]=(Ka(E)-1)*x,x=1;break;case 64:to()===45&&(E+=Vh(Wn())),p=to(),c=f=Ka(b=E+=Roe(zh())),m++;break;case 45:g===45&&Ka(E)==2&&(y=0)}}return o}function VR(e,t,r,n,a,o,i,s,u,l,c){for(var f=a-1,p=a===0?o:[""],v=X_(p),g=0,y=0,S=0;g0?p[x]+" "+m:Tt(m,/&\f/g,p[x])))&&(u[S++]=b);return ay(e,t,r,a===0?G_:s,u,l,c)}function $oe(e,t,r){return ay(e,t,r,nF,ry(_oe()),_f(e,2,-2),0)}function UR(e,t,r,n){return ay(e,t,r,Q_,_f(e,0,n),_f(e,n+1,-1),n)}function cu(e,t){for(var r="",n=X_(e),a=0;a6)switch(Br(e,t+1)){case 109:if(Br(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+og+(Br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cx(e,"stretch")?uF(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Br(e,t+1)!==115)break;case 6444:switch(Br(e,Ka(e)-3-(~cx(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Br(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Yr+"$2box$3")+e}break;case 5936:switch(Br(e,t+11)){case 114:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Yr+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Yr+e+e}return e}var Doe=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Q_:t.return=uF(t.value,t.length);break;case aF:return cu([Gc(t,{value:Tt(t.value,"@","@"+Rt)})],a);case G_:if(t.length)return Soe(t.props,function(o){switch(woe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Gc(t,{props:[Tt(o,/:(read-\w+)/,":"+og+"$1")]})],a);case"::placeholder":return cu([Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+Rt+"input-$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,":"+og+"$1")]}),Gc(t,{props:[Tt(o,/:(plac\w+)/,Yr+"input-$1")]})],a)}return""})}},Boe=[Doe],cF=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(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||Boe,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),x=1;x=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 Joe={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},Zoe=!1,eie=/[A-Z]|^ms/g,tie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gF=function(t){return t.charCodeAt(1)===45},HR=function(t){return t!=null&&typeof t!="boolean"},Yb=tF(function(e){return gF(e)?e:e.replace(eie,"-$&").toLowerCase()}),qR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(tie,function(n,a,o){return Ga={name:a,styles:o,next:Ga},a})}return Joe[t]!==1&&!gF(t)&&typeof r=="number"&&r!==0?r+"px":r},rie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ef(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 Ga={name:a.name,styles:a.styles,next:Ga},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ga={name:i.name,styles:i.styles,next:Ga},i=i.next;var s=o.styles+";";return s}return nie(e,t,r)}case"function":{if(e!==void 0){var u=Ga,l=r(e);return Ga=u,Ef(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function nie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?lie:uie},YR=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},cie=!1,die=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return hF(r,n,a),oie(function(){return vF(r,n,a)}),null},fie=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=YR(t,r,n),u=s||XR(a),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,v=1;vt(vie(a)?r:a):t;return R.jsx(sie,{styles:n})}/** + */var Fr=typeof Symbol=="function"&&Symbol.for,Y_=Fr?Symbol.for("react.element"):60103,J_=Fr?Symbol.for("react.portal"):60106,oy=Fr?Symbol.for("react.fragment"):60107,iy=Fr?Symbol.for("react.strict_mode"):60108,sy=Fr?Symbol.for("react.profiler"):60114,ly=Fr?Symbol.for("react.provider"):60109,uy=Fr?Symbol.for("react.context"):60110,Z_=Fr?Symbol.for("react.async_mode"):60111,cy=Fr?Symbol.for("react.concurrent_mode"):60111,dy=Fr?Symbol.for("react.forward_ref"):60112,fy=Fr?Symbol.for("react.suspense"):60113,zoe=Fr?Symbol.for("react.suspense_list"):60120,py=Fr?Symbol.for("react.memo"):60115,hy=Fr?Symbol.for("react.lazy"):60116,Voe=Fr?Symbol.for("react.block"):60121,Uoe=Fr?Symbol.for("react.fundamental"):60117,Woe=Fr?Symbol.for("react.responder"):60118,Hoe=Fr?Symbol.for("react.scope"):60119;function Xn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Y_:switch(e=e.type,e){case Z_:case cy:case oy:case sy:case iy:case fy:return e;default:switch(e=e&&e.$$typeof,e){case uy:case dy:case hy:case py:case ly:return e;default:return t}}case J_:return t}}}function fF(e){return Xn(e)===cy}Lt.AsyncMode=Z_;Lt.ConcurrentMode=cy;Lt.ContextConsumer=uy;Lt.ContextProvider=ly;Lt.Element=Y_;Lt.ForwardRef=dy;Lt.Fragment=oy;Lt.Lazy=hy;Lt.Memo=py;Lt.Portal=J_;Lt.Profiler=sy;Lt.StrictMode=iy;Lt.Suspense=fy;Lt.isAsyncMode=function(e){return fF(e)||Xn(e)===Z_};Lt.isConcurrentMode=fF;Lt.isContextConsumer=function(e){return Xn(e)===uy};Lt.isContextProvider=function(e){return Xn(e)===ly};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Y_};Lt.isForwardRef=function(e){return Xn(e)===dy};Lt.isFragment=function(e){return Xn(e)===oy};Lt.isLazy=function(e){return Xn(e)===hy};Lt.isMemo=function(e){return Xn(e)===py};Lt.isPortal=function(e){return Xn(e)===J_};Lt.isProfiler=function(e){return Xn(e)===sy};Lt.isStrictMode=function(e){return Xn(e)===iy};Lt.isSuspense=function(e){return Xn(e)===fy};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oy||e===cy||e===sy||e===iy||e===fy||e===zoe||typeof e=="object"&&e!==null&&(e.$$typeof===hy||e.$$typeof===py||e.$$typeof===ly||e.$$typeof===uy||e.$$typeof===dy||e.$$typeof===Uoe||e.$$typeof===Woe||e.$$typeof===Hoe||e.$$typeof===Voe)};Lt.typeOf=Xn;dF.exports=Lt;var qoe=dF.exports,pF=qoe,Koe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Goe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hF={};hF[pF.ForwardRef]=Koe;hF[pF.Memo]=Goe;var Qoe=!0;function Xoe(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var vF=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Qoe===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},gF=function(t,r,n){vF(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 Yoe(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 Joe={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},Zoe=!1,eie=/[A-Z]|^ms/g,tie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mF=function(t){return t.charCodeAt(1)===45},HR=function(t){return t!=null&&typeof t!="boolean"},Xb=rF(function(e){return mF(e)?e:e.replace(eie,"-$&").toLowerCase()}),qR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(tie,function(n,a,o){return Ga={name:a,styles:o,next:Ga},a})}return Joe[t]!==1&&!mF(t)&&typeof r=="number"&&r!==0?r+"px":r},rie="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ef(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 Ga={name:a.name,styles:a.styles,next:Ga},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Ga={name:i.name,styles:i.styles,next:Ga},i=i.next;var s=o.styles+";";return s}return nie(e,t,r)}case"function":{if(e!==void 0){var u=Ga,l=r(e);return Ga=u,Ef(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function nie(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?lie:uie},YR=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},cie=!1,die=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return vF(r,n,a),oie(function(){return gF(r,n,a)}),null},fie=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=YR(t,r,n),u=s||XR(a),l=!u("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,v=1;vt(vie(a)?r:a):t;return R.jsx(sie,{styles:n})}/** * @mui/styled-engine v5.16.6 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function tC(e,t){return fx(e,t)}const SF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},gie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wF,StyledEngineProvider:hie,ThemeContext:up,css:gy,default:tC,internal_processStyles:SF,keyframes:Pc},Symbol.toStringTag,{value:"Module"}));function Co(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 _F(e){if(!Co(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=_F(e[r])}),t}function Rr(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return Co(e)&&Co(t)&&Object.keys(t).forEach(a=>{Co(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Co(e[a])?n[a]=Rr(e[a],t[a],r):r.clone?n[a]=Co(t[a])?_F(t[a]):t[a]:n[a]=t[a]}),n}const mie=Object.freeze(Object.defineProperty({__proto__:null,default:Rr,isPlainObject:Co},Symbol.toStringTag,{value:"Module"})),yie=["values","unit","step"],bie=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 CF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Pe(e,yie),o=bie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,v){const g=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:v)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rC[e]}px)`};function Aa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||JR;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||JR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rC).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function EF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function OF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Sie(e,...t){const r=EF(e),n=[r,...t].reduce((a,o)=>Rr(a,o),{});return OF(Object.keys(r),n)}function _ie(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 Zb({values:e,breakpoints:t,base:r}){const n=r||_ie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function ge(e){if(typeof e!="string")throw new Error(No(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Cie=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));function Xu(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 sg(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Xu(e,r)||n,t&&(a=t(a,n,e)),a}function vr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Xu(u,n)||{};return Aa(i,s,f=>{let p=sg(l,a,f);return f===p&&typeof f=="string"&&(p=sg(l,a,`${t}${f==="default"?"":ge(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Eie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Oie={m:"margin",p:"padding"},Pie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rie=Eie(e=>{if(e.length>2)if(ZR[e])e=ZR[e];else return[e];const[t,r]=e.split(""),n=Oie[t],a=Pie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nC,...aC];function cp(e,t,r,n){var a;const o=(a=Xu(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 oC(e){return cp(e,"spacing",8)}function Zs(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 Tie(e,t){return r=>e.reduce((n,a)=>(n[a]=Zs(t,r),n),{})}function $ie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Rie(r),o=Tie(a,n),i=e[r];return Aa(e,i,o)}function PF(e,t){const r=oC(e.theme);return Object.keys(e).map(n=>$ie(e,t,n,r)).reduce(Ad,{})}function ar(e){return PF(e,nC)}ar.propTypes={};ar.filterProps=nC;function or(e){return PF(e,aC)}or.propTypes={};or.filterProps=aC;function kie(e=8){if(e.mui)return e;const t=oC({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 my(...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]?Ad(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function oa(e){return typeof e!="number"?e:`${e}px solid`}function ba(e,t){return vr({prop:e,themeKey:"borders",transform:t})}const jie=ba("border",oa),Iie=ba("borderTop",oa),Aie=ba("borderRight",oa),Mie=ba("borderBottom",oa),Fie=ba("borderLeft",oa),Nie=ba("borderColor"),Lie=ba("borderTopColor"),Die=ba("borderRightColor"),Bie=ba("borderBottomColor"),zie=ba("borderLeftColor"),Vie=ba("outline",oa),Uie=ba("outlineColor"),yy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zs(t,n)});return Aa(e,e.borderRadius,r)}return null};yy.propTypes={};yy.filterProps=["borderRadius"];my(jie,Iie,Aie,Mie,Fie,Nie,Lie,Die,Bie,zie,yy,Vie,Uie);const by=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cp(e.theme,"spacing",8),r=n=>({gap:Zs(t,n)});return Aa(e,e.gap,r)}return null};by.propTypes={};by.filterProps=["gap"];const xy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({columnGap:Zs(t,n)});return Aa(e,e.columnGap,r)}return null};xy.propTypes={};xy.filterProps=["columnGap"];const wy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({rowGap:Zs(t,n)});return Aa(e,e.rowGap,r)}return null};wy.propTypes={};wy.filterProps=["rowGap"];const Wie=vr({prop:"gridColumn"}),Hie=vr({prop:"gridRow"}),qie=vr({prop:"gridAutoFlow"}),Kie=vr({prop:"gridAutoColumns"}),Gie=vr({prop:"gridAutoRows"}),Qie=vr({prop:"gridTemplateColumns"}),Xie=vr({prop:"gridTemplateRows"}),Yie=vr({prop:"gridTemplateAreas"}),Jie=vr({prop:"gridArea"});my(by,xy,wy,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie,Jie);function du(e,t){return t==="grey"?t:e}const Zie=vr({prop:"color",themeKey:"palette",transform:du}),ese=vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:du}),tse=vr({prop:"backgroundColor",themeKey:"palette",transform:du});my(Zie,ese,tse);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const rse=vr({prop:"width",transform:zn}),iC=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])||rC[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:zn(r)}};return Aa(e,e.maxWidth,t)}return null};iC.filterProps=["maxWidth"];const nse=vr({prop:"minWidth",transform:zn}),ase=vr({prop:"height",transform:zn}),ose=vr({prop:"maxHeight",transform:zn}),ise=vr({prop:"minHeight",transform:zn});vr({prop:"size",cssProperty:"width",transform:zn});vr({prop:"size",cssProperty:"height",transform:zn});const sse=vr({prop:"boxSizing"});my(rse,iC,nse,ase,ose,ise,sse);const lse={border:{themeKey:"borders",transform:oa},borderTop:{themeKey:"borders",transform:oa},borderRight:{themeKey:"borders",transform:oa},borderBottom:{themeKey:"borders",transform:oa},borderLeft:{themeKey:"borders",transform:oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yy},color:{themeKey:"palette",transform:du},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:du},backgroundColor:{themeKey:"palette",transform:du},p:{style:or},pt:{style:or},pr:{style:or},pb:{style:or},pl:{style:or},px:{style:or},py:{style:or},padding:{style:or},paddingTop:{style:or},paddingRight:{style:or},paddingBottom:{style:or},paddingLeft:{style:or},paddingX:{style:or},paddingY:{style:or},paddingInline:{style:or},paddingInlineStart:{style:or},paddingInlineEnd:{style:or},paddingBlock:{style:or},paddingBlockStart:{style:or},paddingBlockEnd:{style:or},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},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:by},rowGap:{style:wy},columnGap:{style:xy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:iC},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dp=lse;function use(...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 cse(e,t){return typeof e=="function"?e(t):e}function RF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Xu(a,l)||{};return f?f(i):Aa(i,n,g=>{let y=sg(p,c,g);return g===y&&typeof g=="string"&&(y=sg(p,c,`${r}${g==="default"?"":ge(g)}`,g)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:dp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=EF(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(v=>{const g=cse(l[v],o);if(g!=null)if(typeof g=="object")if(i[v])p=Ad(p,e(v,g,o,i));else{const y=Aa({theme:o},g,S=>({[v]:S}));use(y,g)?p[v]=t({sx:g,theme:o}):p=Ad(p,y)}else p=Ad(p,e(v,g,o,i))}),OF(f,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const TF=RF();TF.filterProps=["sx"];const fp=TF;function $F(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 dse=["breakpoints","palette","spacing","shape"];function pp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Pe(e,dse),s=CF(r),u=kie(a);let l=Rr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:u,shape:T({},wie,o)},i);return l.applyStyles=$F,l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const fse=Object.freeze(Object.defineProperty({__proto__:null,default:pp,private_createBreakpoints:CF,unstable_applyStyles:$F},Symbol.toStringTag,{value:"Module"}));function pse(e){return Object.keys(e).length===0}function sC(e=null){const t=d.useContext(up);return!t||pse(t)?e:t}const hse=pp();function Sy(e=hse){return sC(e)}function vse({styles:e,themeId:t,defaultTheme:r={}}){const n=Sy(r),a=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(wF,{styles:a})}const gse=["sx"],mse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:dp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function _y(e){const{sx:t}=e,r=Pe(e,gse),{systemProps:n,otherProps:a}=mse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Co(s)?T({},n,s):n}:o=T({},n,t),T({},a,{sx:o})}const yse=Object.freeze(Object.defineProperty({__proto__:null,default:fp,extendSxProp:_y,unstable_createStyleFunctionSx:RF,unstable_defaultSxConfig:dp},Symbol.toStringTag,{value:"Module"})),eT=e=>e,bse=()=>{let e=eT;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eT}}},xse=bse(),lC=xse;function kF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(fp);return d.forwardRef(function(u,l){const c=Sy(r),f=_y(u),{className:p,component:v="div"}=f,g=Pe(f,wse);return R.jsx(o,T({as:v,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},g))})}const _se={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 Ue(e,t,r="Mui"){const n=_se[t];return n?`${r}-${n}`:`${lC.generate(e)}-${t}`}function We(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ue(e,a,r)}),n}const Cse=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jF(e){const t=`${e}`.match(Cse);return t&&t[1]||""}function IF(e,t=""){return e.displayName||e.name||jF(e)||t}function tT(e,t,r){const n=IF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ese(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return IF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lx.ForwardRef:return tT(e,e.render,"ForwardRef");case lx.Memo:return tT(e,e.type,"memo");default:return}}}const Ose=Object.freeze(Object.defineProperty({__proto__:null,default:Ese,getFunctionName:jF},Symbol.toStringTag,{value:"Module"})),Pse=["ownerState"],Rse=["variants"],Tse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $se(e){return Object.keys(e).length===0}function kse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function e0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jse=pp(),Ise=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nh({defaultTheme:e,theme:t,themeId:r}){return $se(t)?e:t[r]||t}function Ase(e){return e?(t,r)=>r[e]:null}function Wh(e,t){let{ownerState:r}=t,n=Pe(t,Pse);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Wh(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Pe(a,Rse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(T({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(T({ownerState:r},n,r)):u.style))}),s}return a}function Mse(e={}){const{themeId:t,defaultTheme:r=jse,rootShouldForwardProp:n=e0,slotShouldForwardProp:a=e0}=e,o=i=>fp(T({},i,{theme:nh(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{SF(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Ase(Ise(l))}=s,v=Pe(s,Tse),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=e0;l==="Root"||l==="root"?x=n:l?x=a:kse(i)&&(x=void 0);const m=tC(i,T({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||Co(_)?C=>Wh(_,T({},C,{theme:nh({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=nh(T({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Wh(M,T({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=nh(T({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Wh({variants:F},T({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}const Fse=Mse(),Nse=Fse;function Of(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]=Of(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function AF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Of(t.components[r].defaultProps,n)}function MF({props:e,name:t,defaultTheme:r,themeId:n}){let a=Sy(r);return n&&(a=a[n]||a),AF({theme:a,name:t,props:e})}const Lse=typeof window<"u"?d.useLayoutEffect:d.useEffect,qn=Lse;function Dse(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const FF=Xd["useSyncExternalStore"];function Bse(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:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return FF(u,s,i)}function In(e,t={}){const r=sC(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=AF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(FF!==void 0?Bse:Dse)(u,a,o,i,s)}function NF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const zse=Object.freeze(Object.defineProperty({__proto__:null,default:NF},Symbol.toStringTag,{value:"Module"}));function LF(e,t=0,r=1){return NF(e,t,r)}function Vse(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 uC(e){if(e.type)return e;if(e.charAt(0)==="#")return uC(Vse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(No(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(No(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function DF(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 Pf(e,t){return e=uC(e),t=LF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,DF(e)}function Use(e,t){if(e=uC(e),t=LF(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 DF(e)}function hx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Rc(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 Wse(e,t){return()=>null}function Hh(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 wr(e){return e&&e.ownerDocument||document}function da(e){return wr(e).defaultView||window}function Hse(e,t){return()=>null}function lg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rT=0;function qse(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(rT+=1,r(`mui-${rT}`))},[t]),n}const nT=Xd["useId".toString()];function el(e){if(nT!==void 0){const t=nT();return e??t}return qse(e)}function Kse(e,t,r,n,a){return null}function Yu({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),s=a?e:o,u=d.useCallback(l=>{a||i(l)},[]);return[s,u]}function fn(e){const t=d.useRef(e);return qn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{lg(r,t)})},e)}const aT={};function Gse(e,t){const r=d.useRef(aT);return r.current===aT&&(r.current=e(t)),r}const Qse=[];function Xse(e){d.useEffect(e,Qse)}class hp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hp}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ss(){const e=Gse(hp.create).current;return Xse(e.disposeEffect),e}let Cy=!0,vx=!1;const Yse=new hp,Jse={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 Zse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Jse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ele(e){e.metaKey||e.altKey||e.ctrlKey||(Cy=!0)}function t0(){Cy=!1}function tle(){this.visibilityState==="hidden"&&vx&&(Cy=!0)}function rle(e){e.addEventListener("keydown",ele,!0),e.addEventListener("mousedown",t0,!0),e.addEventListener("pointerdown",t0,!0),e.addEventListener("touchstart",t0,!0),e.addEventListener("visibilitychange",tle,!0)}function nle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Cy||Zse(t)}function Ey(){const e=d.useCallback(a=>{a!=null&&rle(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(vx=!0,Yse.start(100,()=>{vx=!1}),t.current=!1,!0):!1}function n(a){return nle(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function BF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let _l;function zF(){if(_l)return _l;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),_l="reverse",e.scrollLeft>0?_l="default":(e.scrollLeft=1,e.scrollLeft===0&&(_l="negative")),document.body.removeChild(e),_l}function ale(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(zF()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function qe(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function Rf(e){return typeof e=="string"}function Jl(e,t,r){return e===void 0||Rf(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function ug(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 oT(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 VF(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const v=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=T({},r,a,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=ug(T({},a,n)),s=oT(n),u=oT(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f=T({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=T({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function UF(e,t,r){return typeof e=="function"?e(t,r):e}const ole=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Pe(e,ole),s=o?{}:UF(n,a),{props:u,internalRef:l}=VF(T({},i,{externalSlotProps:s})),c=Jt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jl(r,T({},u,{ref:c}),a)}const ile=d.createContext(null),WF=ile;function cC(){return d.useContext(WF)}const sle=typeof Symbol=="function"&&Symbol.for,HF=sle?Symbol.for("mui.nested"):"__THEME_NESTED__";function lle(e,t){return typeof t=="function"?t(e):T({},e,t)}function ule(e){const{children:t,theme:r}=e,n=cC(),a=d.useMemo(()=>{const o=n===null?r:lle(n,r);return o!=null&&(o[HF]=n!==null),o},[r,n]);return R.jsx(WF.Provider,{value:a,children:t})}const cle=["value"],qF=d.createContext();function dle(e){let{value:t}=e,r=Pe(e,cle);return R.jsx(qF.Provider,T({value:t??!0},r))}const cl=()=>{const e=d.useContext(qF);return e??!1},KF=d.createContext(void 0);function fle({value:e,children:t}){return R.jsx(KF.Provider,{value:e,children:t})}function ple(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?Of(a.defaultProps,n):!a.styleOverrides&&!a.variants?Of(a,n):n}function hle({props:e,name:t}){const r=d.useContext(KF);return ple({props:e,name:t,theme:{components:r}})}const iT={};function sT(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 vle(e){const{children:t,theme:r,themeId:n}=e,a=sC(iT),o=cC()||iT,i=sT(n,a,r),s=sT(n,o,r,!0),u=i.direction==="rtl";return R.jsx(ule,{theme:s,children:R.jsx(up.Provider,{value:i,children:R.jsx(dle,{value:u,children:R.jsx(fle,{value:i==null?void 0:i.components,children:t})})})})}function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function gle(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mle(e){var t=gle(e,"string");return Tf(t)=="symbol"?t:t+""}const yle=["component","direction","spacing","divider","children","className","useFlexGap"],ble=pp(),xle=Nse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wle(e){return MF({props:e,name:"MuiStack",defaultTheme:ble})}function Sle(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],Cle=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Aa({theme:t},Zb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oC(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=Zb({values:e.direction,base:a}),i=Zb({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Rr(r,Aa({theme:t},i,(u,l)=>e.useFlexGap?{gap:Zs(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_le(l?o[l]:e.direction)}`]:Zs(n,u)}}))}return r=Sie(t.breakpoints,r),r};function Ele(e={}){const{createStyledComponent:t=xle,useThemeProps:r=wle,componentName:n="MuiStack"}=e,a=()=>qe({root:["root"]},u=>Ue(n,u),{}),o=t(Cle);return d.forwardRef(function(u,l){const c=r(u),f=_y(c),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:S,className:x,useFlexGap:m=!1}=f,b=Pe(f,yle),h={direction:v,spacing:g,useFlexGap:m},_=a();return R.jsx(o,T({as:p,ownerState:h,ref:l,className:ue(_.root,x)},b,{children:y?Sle(S,y):S}))})}function Ole(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gr={},GF={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})(GF);var it=GF.exports;const Ple=Do(uoe),Rle=Do(zse);var QF=it;Object.defineProperty(gr,"__esModule",{value:!0});var gt=gr.alpha=ZF;gr.blend=Ble;gr.colorChannel=void 0;var dC=gr.darken=hC;gr.decomposeColor=pa;var Tle=gr.emphasize=e4,$le=gr.getContrastRatio=Mle;gr.getLuminance=cg;gr.hexToRgb=XF;gr.hslToRgb=JF;var fC=gr.lighten=vC;gr.private_safeAlpha=Fle;gr.private_safeColorChannel=void 0;gr.private_safeDarken=Nle;gr.private_safeEmphasize=Dle;gr.private_safeLighten=Lle;gr.recomposeColor=Tc;gr.rgbToHex=Ale;var lT=QF(Ple),kle=QF(Rle);function pC(e,t=0,r=1){return(0,kle.default)(e,t,r)}function XF(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 jle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pa(e){if(e.type)return e;if(e.charAt(0)==="#")return pa(XF(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,lT.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,lT.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const YF=e=>{const t=pa(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};gr.colorChannel=YF;const Ile=(e,t)=>{try{return YF(e)}catch{return e}};gr.private_safeColorChannel=Ile;function Tc(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 Ale(e){if(e.indexOf("#")===0)return e;const{values:t}=pa(e);return`#${t.map((r,n)=>jle(n===3?Math.round(255*r):r)).join("")}`}function JF(e){e=pa(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Tc({type:s,values:u})}function cg(e){e=pa(e);let t=e.type==="hsl"||e.type==="hsla"?pa(JF(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 Mle(e,t){const r=cg(e),n=cg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ZF(e,t){return e=pa(e),t=pC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tc(e)}function Fle(e,t,r){try{return ZF(e,t)}catch{return e}}function hC(e,t){if(e=pa(e),t=pC(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 Tc(e)}function Nle(e,t,r){try{return hC(e,t)}catch{return e}}function vC(e,t){if(e=pa(e),t=pC(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 Tc(e)}function Lle(e,t,r){try{return vC(e,t)}catch{return e}}function e4(e,t=.15){return cg(e)>.5?hC(e,t):vC(e,t)}function Dle(e,t,r){try{return e4(e,t)}catch{return e}}function Ble(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=pa(e),i=pa(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Tc({type:"rgb",values:s})}const zle=["mode","contrastThreshold","tonalOffset"],uT={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:Sf.white,default:Sf.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}},r0={text:{primary:Sf.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:Sf.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 cT(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=fC(e.main,a):t==="dark"&&(e.dark=dC(e.main,o)))}function Vle(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[700],light:xl[400],dark:xl[800]}}function Ule(e="light"){return e==="dark"?{main:bl[200],light:bl[50],dark:bl[400]}:{main:bl[500],light:bl[300],dark:bl[700]}}function Wle(e="light"){return e==="dark"?{main:yl[500],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[400],dark:yl[800]}}function Hle(e="light"){return e==="dark"?{main:wl[400],light:wl[300],dark:wl[700]}:{main:wl[700],light:wl[500],dark:wl[900]}}function qle(e="light"){return e==="dark"?{main:Sl[400],light:Sl[300],dark:Sl[700]}:{main:Sl[800],light:Sl[500],dark:Sl[900]}}function Kle(e="light"){return e==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:"#ed6c02",light:Kc[500],dark:Kc[900]}}function Gle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Pe(e,zle),o=e.primary||Vle(t),i=e.secondary||Ule(t),s=e.error||Wle(t),u=e.info||Hle(t),l=e.success||qle(t),c=e.warning||Kle(t);function f(y){return $le(y,r0.text.primary)>=r?r0.text.primary:uT.text.primary}const p=({color:y,name:S,mainShade:x=500,lightShade:m=300,darkShade:b=700})=>{if(y=T({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(No(11,S?` (${S})`:"",x));if(typeof y.main!="string")throw new Error(No(12,S?` (${S})`:"",JSON.stringify(y.main)));return cT(y,"light",m,n),cT(y,"dark",b,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:r0,light:uT};return Rr(T({common:T({},Sf),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:loe,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),a)}const Qle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xle(e){return Math.round(e*1e5)/1e5}const dT={textTransform:"uppercase"},fT='"Roboto", "Helvetica", "Arial", sans-serif';function Yle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=fT,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=Pe(r,Qle),v=a/14,g=f||(x=>`${x/l*v}rem`),y=(x,m,b,h,_)=>T({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:b},n===fT?{letterSpacing:`${Xle(h/m)}em`}:{},_,c),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,dT),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,dT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr(T({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},S),p,{clone:!1})}const Jle=.2,Zle=.14,eue=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Jle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eue})`].join(",")}const tue=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],rue=tue,nue=["duration","easing","delay"],aue={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)"},oue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pT(e){return`${Math.round(e)}ms`}function iue(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sue(e){const t=T({},aue,e.easing),r=T({},oue,e.duration);return T({getAutoHeightDuration:iue,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Pe(o,nue),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:pT(i)} ${s} ${typeof u=="string"?u:pT(u)}`).join(",")}},e,{easing:t,duration:r})}const lue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uue=lue,cue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dg(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Pe(e,cue);if(e.vars)throw new Error(No(18));const s=Gle(n),u=pp(e);let l=Rr(u,{mixins:Ole(u.breakpoints,r),palette:s,shadows:rue.slice(),typography:Yle(s,o),transitions:sue(a),zIndex:T({},uue)});return l=Rr(l,i),l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const due=dg(),Oy=due;function fo(){const e=Sy(Oy);return e[Js]||e}function fue({props:e,name:t}){return MF({props:e,name:t,defaultTheme:Oy,themeId:Js})}var vp={},n0={exports:{}},hT;function pue(){return hT||(hT=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(n0)),n0.exports}const t4=Do(gie),hue=Do(mie),vue=Do(Cie),gue=Do(Ose),mue=Do(fse),yue=Do(yse);var $c=it;Object.defineProperty(vp,"__esModule",{value:!0});var bue=vp.default=jue;vp.shouldForwardProp=qh;vp.systemDefaultTheme=void 0;var ea=$c(xF()),gx=$c(pue()),vT=Oue(t4),xue=hue;$c(vue);$c(gue);var wue=$c(mue),Sue=$c(yue);const _ue=["ownerState"],Cue=["variants"],Eue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function r4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(r4=function(n){return n?r:t})(e)}function Oue(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=r4(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 Pue(e){return Object.keys(e).length===0}function Rue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tue=vp.systemDefaultTheme=(0,wue.default)(),$ue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ah({defaultTheme:e,theme:t,themeId:r}){return Pue(t)?e:t[r]||t}function kue(e){return e?(t,r)=>r[e]:null}function Kh(e,t){let{ownerState:r}=t,n=(0,gx.default)(t,_ue);const a=typeof e=="function"?e((0,ea.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Kh(o,(0,ea.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,gx.default)(a,Cue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,ea.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,ea.default)({ownerState:r},n,r)):u.style))}),s}return a}function jue(e={}){const{themeId:t,defaultTheme:r=Tue,rootShouldForwardProp:n=qh,slotShouldForwardProp:a=qh}=e,o=i=>(0,Sue.default)((0,ea.default)({},i,{theme:ah((0,ea.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,vT.internal_processStyles)(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=kue($ue(l))}=s,v=(0,gx.default)(s,Eue),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=qh;l==="Root"||l==="root"?x=n:l?x=a:Rue(i)&&(x=void 0);const m=(0,vT.default)(i,(0,ea.default)({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||(0,xue.isPlainObject)(_)?C=>Kh(_,(0,ea.default)({},C,{theme:ah({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Kh(M,(0,ea.default)({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Kh({variants:F},(0,ea.default)({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}function n4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iue=e=>n4(e)&&e!=="classes",Wr=Iue,Aue=bue({themeId:Js,defaultTheme:Oy,rootShouldForwardProp:Wr}),ne=Aue,Mue=["theme"];function Fue(e){let{theme:t}=e,r=Pe(e,Mue);const n=t[Js];return R.jsx(vle,T({},r,{themeId:n?Js:void 0,theme:n||t}))}const Nue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gT=Nue;function Ke(e){return hle(e)}function Lue(e){return Ue("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Due=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bue=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(r)}`]};return qe(a,Lue,n)},zue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ge(r.color)}`],t[`fontSize${ge(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),a4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Pe(n,Due),g=d.isValidElement(a)&&a.type==="svg",y=T({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),S={};c||(S.viewBox=p);const x=Bue(y);return R.jsxs(zue,T({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},S,v,g&&a.props,{ownerState:y,children:[g?a.props.children:a,f?R.jsx("title",{children:f}):null]}))});a4.muiName="SvgIcon";const mT=a4;function An(e,t){function r(n,a){return R.jsx(mT,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=mT.muiName,d.memo(d.forwardRef(r))}const Vue={configure:e=>{lC.configure(e)}},Uue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ge,createChainedFunction:hx,createSvgIcon:An,debounce:Rc,deprecatedPropType:Wse,isMuiElement:Hh,ownerDocument:wr,ownerWindow:da,requirePropFactory:Hse,setRef:lg,unstable_ClassNameGenerator:Vue,unstable_useEnhancedEffect:qn,unstable_useId:el,unsupportedProp:Kse,useControlled:Yu,useEventCallback:fn,useForkRef:Jt,useIsFocusVisible:Ey},Symbol.toStringTag,{value:"Module"}));function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},mx(e,t)}function Py(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mx(e,t)}const yT={disabled:!1},fg=ke.createContext(null);var Wue=function(t){return t.scrollTop},fd="unmounted",os="exited",is="entering",$l="entered",yx="exiting",Ho=function(e){Py(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=os,o.appearStatus=is):u=$l:n.unmountOnExit||n.mountOnEnter?u=fd:u=os,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fd?{status:os}: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!==is&&i!==$l&&(o=is):(i===is||i===$l)&&(o=yx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===is){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this);i&&Wue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:fd})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[ld.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!a&&!i||yT.disabled){this.safeSetState({status:$l},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:is},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:$l},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ld.findDOMNode(this);if(!o||yT.disabled){this.safeSetState({status:os},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:yx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:os},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fd)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Pe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(fg.Provider,{value:null},typeof i=="function"?i(a,s):ke.cloneElement(ke.Children.only(i),s))},t}(ke.Component);Ho.contextType=fg;Ho.propTypes={};function Cl(){}Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cl,onEntering:Cl,onEntered:Cl,onExit:Cl,onExiting:Cl,onExited:Cl};Ho.UNMOUNTED=fd;Ho.EXITED=os;Ho.ENTERING=is;Ho.ENTERED=$l;Ho.EXITING=yx;const gC=Ho;function bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(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 Hue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Ju(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 Yue(e){return Ue("MuiPaper",e)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jue=["className","component","elevation","square","variant"],Zue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qe(o,Yue,a)},ece=ne("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(${gt("#fff",gT(t.elevation))}, ${gt("#fff",gT(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Pe(n,Jue),c=T({},n,{component:o,elevation:i,square:s,variant:u}),f=Zue(c);return R.jsx(ece,T({as:o,ownerState:c,className:ue(f.root,a),ref:r},l))}),Yi=tce,rce=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],nce=["component","slots","slotProps"],ace=["component"];function oce(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Pe(t,rce),{component:l,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=o,p=Pe(o,nce),v=c[e]||n,g=UF(f[e],a),y=VF(T({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:S},internalRef:x}=y,m=Pe(y.props,ace),b=Jt(x,g==null?void 0:g.ref,t.ref),h=i?i(m):{},_=T({},a,h),C=e==="root"?S||l:S,E=Jl(v,T({},e==="root"&&!l&&!c[e]&&s,e!=="root"&&!c[e]&&s,m,C&&{as:C},{ref:b}),_);return Object.keys(h).forEach(w=>{delete E[w]}),[v,E]}function ice(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},g=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),R.jsx("span",{className:p,style:v,children:R.jsx("span",{className:g})})}const sce=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ra=sce,lce=["center","classes","className"];let Ry=e=>e,bT,xT,wT,ST;const xx=550,uce=80,cce=Pc(bT||(bT=Ry` + */function tC(e,t){return fx(e,t)}const _F=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},gie=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:SF,StyledEngineProvider:hie,ThemeContext:up,css:vy,default:tC,internal_processStyles:_F,keyframes:Pc},Symbol.toStringTag,{value:"Module"}));function Co(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 CF(e){if(!Co(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=CF(e[r])}),t}function Rr(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return Co(e)&&Co(t)&&Object.keys(t).forEach(a=>{Co(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Co(e[a])?n[a]=Rr(e[a],t[a],r):r.clone?n[a]=Co(t[a])?CF(t[a]):t[a]:n[a]=t[a]}),n}const mie=Object.freeze(Object.defineProperty({__proto__:null,default:Rr,isPlainObject:Co},Symbol.toStringTag,{value:"Module"})),yie=["values","unit","step"],bie=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 EF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Pe(e,yie),o=bie(t),i=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function l(p,v){const g=i.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:v)-n/100}${r})`}function c(p){return i.indexOf(p)+1`@media (min-width:${rC[e]}px)`};function Aa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||JR;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||JR;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||rC).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function OF(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function PF(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Sie(e,...t){const r=OF(e),n=[r,...t].reduce((a,o)=>Rr(a,o),{});return PF(Object.keys(r),n)}function _ie(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 Jb({values:e,breakpoints:t,base:r}){const n=r||_ie(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function ge(e){if(typeof e!="string")throw new Error(No(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Cie=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));function Xu(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 ig(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Xu(e,r)||n,t&&(a=t(a,n,e)),a}function vr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,l=Xu(u,n)||{};return Aa(i,s,f=>{let p=ig(l,a,f);return f===p&&typeof f=="string"&&(p=ig(l,a,`${t}${f==="default"?"":ge(f)}`,f)),r===!1?p:{[r]:p}})};return o.propTypes={},o.filterProps=[t],o}function Eie(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Oie={m:"margin",p:"padding"},Pie={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rie=Eie(e=>{if(e.length>2)if(ZR[e])e=ZR[e];else return[e];const[t,r]=e.split(""),n=Oie[t],a=Pie[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),nC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nC,...aC];function cp(e,t,r,n){var a;const o=(a=Xu(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 oC(e){return cp(e,"spacing",8)}function Zs(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 Tie(e,t){return r=>e.reduce((n,a)=>(n[a]=Zs(t,r),n),{})}function $ie(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Rie(r),o=Tie(a,n),i=e[r];return Aa(e,i,o)}function RF(e,t){const r=oC(e.theme);return Object.keys(e).map(n=>$ie(e,t,n,r)).reduce(Ad,{})}function ar(e){return RF(e,nC)}ar.propTypes={};ar.filterProps=nC;function or(e){return RF(e,aC)}or.propTypes={};or.filterProps=aC;function kie(e=8){if(e.mui)return e;const t=oC({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 gy(...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]?Ad(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function oa(e){return typeof e!="number"?e:`${e}px solid`}function ba(e,t){return vr({prop:e,themeKey:"borders",transform:t})}const jie=ba("border",oa),Iie=ba("borderTop",oa),Aie=ba("borderRight",oa),Mie=ba("borderBottom",oa),Fie=ba("borderLeft",oa),Nie=ba("borderColor"),Lie=ba("borderTopColor"),Die=ba("borderRightColor"),Bie=ba("borderBottomColor"),zie=ba("borderLeftColor"),Vie=ba("outline",oa),Uie=ba("outlineColor"),my=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Zs(t,n)});return Aa(e,e.borderRadius,r)}return null};my.propTypes={};my.filterProps=["borderRadius"];gy(jie,Iie,Aie,Mie,Fie,Nie,Lie,Die,Bie,zie,my,Vie,Uie);const yy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cp(e.theme,"spacing",8),r=n=>({gap:Zs(t,n)});return Aa(e,e.gap,r)}return null};yy.propTypes={};yy.filterProps=["gap"];const by=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({columnGap:Zs(t,n)});return Aa(e,e.columnGap,r)}return null};by.propTypes={};by.filterProps=["columnGap"];const xy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cp(e.theme,"spacing",8),r=n=>({rowGap:Zs(t,n)});return Aa(e,e.rowGap,r)}return null};xy.propTypes={};xy.filterProps=["rowGap"];const Wie=vr({prop:"gridColumn"}),Hie=vr({prop:"gridRow"}),qie=vr({prop:"gridAutoFlow"}),Kie=vr({prop:"gridAutoColumns"}),Gie=vr({prop:"gridAutoRows"}),Qie=vr({prop:"gridTemplateColumns"}),Xie=vr({prop:"gridTemplateRows"}),Yie=vr({prop:"gridTemplateAreas"}),Jie=vr({prop:"gridArea"});gy(yy,by,xy,Wie,Hie,qie,Kie,Gie,Qie,Xie,Yie,Jie);function du(e,t){return t==="grey"?t:e}const Zie=vr({prop:"color",themeKey:"palette",transform:du}),ese=vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:du}),tse=vr({prop:"backgroundColor",themeKey:"palette",transform:du});gy(Zie,ese,tse);function zn(e){return e<=1&&e!==0?`${e*100}%`:e}const rse=vr({prop:"width",transform:zn}),iC=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])||rC[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:zn(r)}};return Aa(e,e.maxWidth,t)}return null};iC.filterProps=["maxWidth"];const nse=vr({prop:"minWidth",transform:zn}),ase=vr({prop:"height",transform:zn}),ose=vr({prop:"maxHeight",transform:zn}),ise=vr({prop:"minHeight",transform:zn});vr({prop:"size",cssProperty:"width",transform:zn});vr({prop:"size",cssProperty:"height",transform:zn});const sse=vr({prop:"boxSizing"});gy(rse,iC,nse,ase,ose,ise,sse);const lse={border:{themeKey:"borders",transform:oa},borderTop:{themeKey:"borders",transform:oa},borderRight:{themeKey:"borders",transform:oa},borderBottom:{themeKey:"borders",transform:oa},borderLeft:{themeKey:"borders",transform:oa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:my},color:{themeKey:"palette",transform:du},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:du},backgroundColor:{themeKey:"palette",transform:du},p:{style:or},pt:{style:or},pr:{style:or},pb:{style:or},pl:{style:or},px:{style:or},py:{style:or},padding:{style:or},paddingTop:{style:or},paddingRight:{style:or},paddingBottom:{style:or},paddingLeft:{style:or},paddingX:{style:or},paddingY:{style:or},paddingInline:{style:or},paddingInlineStart:{style:or},paddingInlineEnd:{style:or},paddingBlock:{style:or},paddingBlockStart:{style:or},paddingBlockEnd:{style:or},m:{style:ar},mt:{style:ar},mr:{style:ar},mb:{style:ar},ml:{style:ar},mx:{style:ar},my:{style:ar},margin:{style:ar},marginTop:{style:ar},marginRight:{style:ar},marginBottom:{style:ar},marginLeft:{style:ar},marginX:{style:ar},marginY:{style:ar},marginInline:{style:ar},marginInlineStart:{style:ar},marginInlineEnd:{style:ar},marginBlock:{style:ar},marginBlockStart:{style:ar},marginBlockEnd:{style:ar},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:yy},rowGap:{style:xy},columnGap:{style:by},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zn},maxWidth:{style:iC},minWidth:{transform:zn},height:{transform:zn},maxHeight:{transform:zn},minHeight:{transform:zn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dp=lse;function use(...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 cse(e,t){return typeof e=="function"?e(t):e}function TF(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:l,transform:c,style:f}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const p=Xu(a,l)||{};return f?f(i):Aa(i,n,g=>{let y=ig(p,c,g);return g===y&&typeof g=="string"&&(y=ig(p,c,`${r}${g==="default"?"":ge(g)}`,g)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:dp;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=OF(o.breakpoints),f=Object.keys(c);let p=c;return Object.keys(l).forEach(v=>{const g=cse(l[v],o);if(g!=null)if(typeof g=="object")if(i[v])p=Ad(p,e(v,g,o,i));else{const y=Aa({theme:o},g,S=>({[v]:S}));use(y,g)?p[v]=t({sx:g,theme:o}):p=Ad(p,y)}else p=Ad(p,e(v,g,o,i))}),PF(f,p)}return Array.isArray(a)?a.map(s):s(a)}return t}const $F=TF();$F.filterProps=["sx"];const fp=$F;function kF(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 dse=["breakpoints","palette","spacing","shape"];function pp(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Pe(e,dse),s=EF(r),u=kie(a);let l=Rr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:u,shape:T({},wie,o)},i);return l.applyStyles=kF,l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const fse=Object.freeze(Object.defineProperty({__proto__:null,default:pp,private_createBreakpoints:EF,unstable_applyStyles:kF},Symbol.toStringTag,{value:"Module"}));function pse(e){return Object.keys(e).length===0}function sC(e=null){const t=d.useContext(up);return!t||pse(t)?e:t}const hse=pp();function wy(e=hse){return sC(e)}function vse({styles:e,themeId:t,defaultTheme:r={}}){const n=wy(r),a=typeof e=="function"?e(t&&n[t]||n):e;return R.jsx(SF,{styles:a})}const gse=["sx"],mse=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:dp;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Sy(e){const{sx:t}=e,r=Pe(e,gse),{systemProps:n,otherProps:a}=mse(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return Co(s)?T({},n,s):n}:o=T({},n,t),T({},a,{sx:o})}const yse=Object.freeze(Object.defineProperty({__proto__:null,default:fp,extendSxProp:Sy,unstable_createStyleFunctionSx:TF,unstable_defaultSxConfig:dp},Symbol.toStringTag,{value:"Module"})),eT=e=>e,bse=()=>{let e=eT;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eT}}},xse=bse(),lC=xse;function jF(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(fp);return d.forwardRef(function(u,l){const c=wy(r),f=Sy(u),{className:p,component:v="div"}=f,g=Pe(f,wse);return R.jsx(o,T({as:v,ref:l,className:ue(p,a?a(n):n),theme:t&&c[t]||c},g))})}const _se={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 Ue(e,t,r="Mui"){const n=_se[t];return n?`${r}-${n}`:`${lC.generate(e)}-${t}`}function We(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=Ue(e,a,r)}),n}const Cse=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function IF(e){const t=`${e}`.match(Cse);return t&&t[1]||""}function AF(e,t=""){return e.displayName||e.name||IF(e)||t}function tT(e,t,r){const n=AF(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ese(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return AF(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lx.ForwardRef:return tT(e,e.render,"ForwardRef");case lx.Memo:return tT(e,e.type,"memo");default:return}}}const Ose=Object.freeze(Object.defineProperty({__proto__:null,default:Ese,getFunctionName:IF},Symbol.toStringTag,{value:"Module"})),Pse=["ownerState"],Rse=["variants"],Tse=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $se(e){return Object.keys(e).length===0}function kse(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jse=pp(),Ise=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nh({defaultTheme:e,theme:t,themeId:r}){return $se(t)?e:t[r]||t}function Ase(e){return e?(t,r)=>r[e]:null}function Wh(e,t){let{ownerState:r}=t,n=Pe(t,Pse);const a=typeof e=="function"?e(T({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Wh(o,T({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=Pe(a,Rse);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props(T({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style(T({ownerState:r},n,r)):u.style))}),s}return a}function Mse(e={}){const{themeId:t,defaultTheme:r=jse,rootShouldForwardProp:n=Zb,slotShouldForwardProp:a=Zb}=e,o=i=>fp(T({},i,{theme:nh(T({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{_F(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=Ase(Ise(l))}=s,v=Pe(s,Tse),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=Zb;l==="Root"||l==="root"?x=n:l?x=a:kse(i)&&(x=void 0);const m=tC(i,T({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||Co(_)?C=>Wh(_,T({},C,{theme:nh({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=nh(T({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Wh(M,T({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=nh(T({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Wh({variants:F},T({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}const Fse=Mse(),Nse=Fse;function Of(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]=Of(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function MF(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Of(t.components[r].defaultProps,n)}function FF({props:e,name:t,defaultTheme:r,themeId:n}){let a=wy(r);return n&&(a=a[n]||a),MF({theme:a,name:t,props:e})}const Lse=typeof window<"u"?d.useLayoutEffect:d.useEffect,qn=Lse;function Dse(e,t,r,n,a){const[o,i]=d.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return qn(()=>{let s=!0;if(!r)return;const u=r(e),l=()=>{s&&i(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,r]),o}const NF=Xd["useSyncExternalStore"];function Bse(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:c}=n(e);return()=>c}return o},[o,e,n,a,r]),[s,u]=d.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const c=r(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,r,e]);return NF(u,s,i)}function In(e,t={}){const r=sC(),n=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:o=n?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:s=!1}=MF({name:"MuiUseMediaQuery",props:t,theme:r});let u=typeof e=="function"?e(r):e;return u=u.replace(/^@media( ?)/m,""),(NF!==void 0?Bse:Dse)(u,a,o,i,s)}function LF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const zse=Object.freeze(Object.defineProperty({__proto__:null,default:LF},Symbol.toStringTag,{value:"Module"}));function DF(e,t=0,r=1){return LF(e,t,r)}function Vse(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 uC(e){if(e.type)return e;if(e.charAt(0)==="#")return uC(Vse(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(No(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(No(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}function BF(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 Pf(e,t){return e=uC(e),t=DF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,BF(e)}function Use(e,t){if(e=uC(e),t=DF(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 BF(e)}function hx(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function Rc(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 Wse(e,t){return()=>null}function Hh(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 wr(e){return e&&e.ownerDocument||document}function da(e){return wr(e).defaultView||window}function Hse(e,t){return()=>null}function sg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let rT=0;function qse(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(rT+=1,r(`mui-${rT}`))},[t]),n}const nT=Xd["useId".toString()];function el(e){if(nT!==void 0){const t=nT();return e??t}return qse(e)}function Kse(e,t,r,n,a){return null}function Yu({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=d.useRef(e!==void 0),[o,i]=d.useState(t),s=a?e:o,u=d.useCallback(l=>{a||i(l)},[]);return[s,u]}function fn(e){const t=d.useRef(e);return qn(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Jt(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{sg(r,t)})},e)}const aT={};function Gse(e,t){const r=d.useRef(aT);return r.current===aT&&(r.current=e(t)),r}const Qse=[];function Xse(e){d.useEffect(e,Qse)}class hp{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hp}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ss(){const e=Gse(hp.create).current;return Xse(e.disposeEffect),e}let _y=!0,vx=!1;const Yse=new hp,Jse={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 Zse(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Jse[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ele(e){e.metaKey||e.altKey||e.ctrlKey||(_y=!0)}function e0(){_y=!1}function tle(){this.visibilityState==="hidden"&&vx&&(_y=!0)}function rle(e){e.addEventListener("keydown",ele,!0),e.addEventListener("mousedown",e0,!0),e.addEventListener("pointerdown",e0,!0),e.addEventListener("touchstart",e0,!0),e.addEventListener("visibilitychange",tle,!0)}function nle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return _y||Zse(t)}function Cy(){const e=d.useCallback(a=>{a!=null&&rle(a.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(vx=!0,Yse.start(100,()=>{vx=!1}),t.current=!1,!0):!1}function n(a){return nle(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function zF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let _l;function VF(){if(_l)return _l;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),_l="reverse",e.scrollLeft>0?_l="default":(e.scrollLeft=1,e.scrollLeft===0&&(_l="negative")),document.body.removeChild(e),_l}function ale(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(VF()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function qe(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}function Rf(e){return typeof e=="string"}function Jl(e,t,r){return e===void 0||Rf(e)?t:T({},t,{ownerState:T({},t.ownerState,r)})}function lg(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 oT(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 UF(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const v=ue(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),g=T({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=T({},r,a,n);return v.length>0&&(y.className=v),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=lg(T({},a,n)),s=oT(n),u=oT(a),l=t(i),c=ue(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),f=T({},l==null?void 0:l.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=T({},l,r,u,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function WF(e,t,r){return typeof e=="function"?e(t,r):e}const ole=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,i=Pe(e,ole),s=o?{}:WF(n,a),{props:u,internalRef:l}=UF(T({},i,{externalSlotProps:s})),c=Jt(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jl(r,T({},u,{ref:c}),a)}const ile=d.createContext(null),HF=ile;function cC(){return d.useContext(HF)}const sle=typeof Symbol=="function"&&Symbol.for,qF=sle?Symbol.for("mui.nested"):"__THEME_NESTED__";function lle(e,t){return typeof t=="function"?t(e):T({},e,t)}function ule(e){const{children:t,theme:r}=e,n=cC(),a=d.useMemo(()=>{const o=n===null?r:lle(n,r);return o!=null&&(o[qF]=n!==null),o},[r,n]);return R.jsx(HF.Provider,{value:a,children:t})}const cle=["value"],KF=d.createContext();function dle(e){let{value:t}=e,r=Pe(e,cle);return R.jsx(KF.Provider,T({value:t??!0},r))}const cl=()=>{const e=d.useContext(KF);return e??!1},GF=d.createContext(void 0);function fle({value:e,children:t}){return R.jsx(GF.Provider,{value:e,children:t})}function ple(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?Of(a.defaultProps,n):!a.styleOverrides&&!a.variants?Of(a,n):n}function hle({props:e,name:t}){const r=d.useContext(GF);return ple({props:e,name:t,theme:{components:r}})}const iT={};function sT(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 vle(e){const{children:t,theme:r,themeId:n}=e,a=sC(iT),o=cC()||iT,i=sT(n,a,r),s=sT(n,o,r,!0),u=i.direction==="rtl";return R.jsx(ule,{theme:s,children:R.jsx(up.Provider,{value:i,children:R.jsx(dle,{value:u,children:R.jsx(fle,{value:i==null?void 0:i.components,children:t})})})})}function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function gle(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mle(e){var t=gle(e,"string");return Tf(t)=="symbol"?t:t+""}const yle=["component","direction","spacing","divider","children","className","useFlexGap"],ble=pp(),xle=Nse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function wle(e){return FF({props:e,name:"MuiStack",defaultTheme:ble})}function Sle(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],Cle=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Aa({theme:t},Jb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oC(t),a=Object.keys(t.breakpoints.values).reduce((u,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(u[l]=!0),u),{}),o=Jb({values:e.direction,base:a}),i=Jb({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((u,l,c)=>{if(!o[u]){const p=l>0?o[c[l-1]]:"column";o[u]=p}}),r=Rr(r,Aa({theme:t},i,(u,l)=>e.useFlexGap?{gap:Zs(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_le(l?o[l]:e.direction)}`]:Zs(n,u)}}))}return r=Sie(t.breakpoints,r),r};function Ele(e={}){const{createStyledComponent:t=xle,useThemeProps:r=wle,componentName:n="MuiStack"}=e,a=()=>qe({root:["root"]},u=>Ue(n,u),{}),o=t(Cle);return d.forwardRef(function(u,l){const c=r(u),f=Sy(c),{component:p="div",direction:v="column",spacing:g=0,divider:y,children:S,className:x,useFlexGap:m=!1}=f,b=Pe(f,yle),h={direction:v,spacing:g,useFlexGap:m},_=a();return R.jsx(o,T({as:p,ownerState:h,ref:l,className:ue(_.root,x)},b,{children:y?Sle(S,y):S}))})}function Ole(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gr={},QF={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})(QF);var it=QF.exports;const Ple=Do(uoe),Rle=Do(zse);var XF=it;Object.defineProperty(gr,"__esModule",{value:!0});var gt=gr.alpha=e4;gr.blend=Ble;gr.colorChannel=void 0;var dC=gr.darken=hC;gr.decomposeColor=pa;var Tle=gr.emphasize=t4,$le=gr.getContrastRatio=Mle;gr.getLuminance=ug;gr.hexToRgb=YF;gr.hslToRgb=ZF;var fC=gr.lighten=vC;gr.private_safeAlpha=Fle;gr.private_safeColorChannel=void 0;gr.private_safeDarken=Nle;gr.private_safeEmphasize=Dle;gr.private_safeLighten=Lle;gr.recomposeColor=Tc;gr.rgbToHex=Ale;var lT=XF(Ple),kle=XF(Rle);function pC(e,t=0,r=1){return(0,kle.default)(e,t,r)}function YF(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 jle(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pa(e){if(e.type)return e;if(e.charAt(0)==="#")return pa(YF(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,lT.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,lT.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const JF=e=>{const t=pa(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};gr.colorChannel=JF;const Ile=(e,t)=>{try{return JF(e)}catch{return e}};gr.private_safeColorChannel=Ile;function Tc(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 Ale(e){if(e.indexOf("#")===0)return e;const{values:t}=pa(e);return`#${t.map((r,n)=>jle(n===3?Math.round(255*r):r)).join("")}`}function ZF(e){e=pa(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,c=(l+r/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Tc({type:s,values:u})}function ug(e){e=pa(e);let t=e.type==="hsl"||e.type==="hsla"?pa(ZF(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 Mle(e,t){const r=ug(e),n=ug(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function e4(e,t){return e=pa(e),t=pC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Tc(e)}function Fle(e,t,r){try{return e4(e,t)}catch{return e}}function hC(e,t){if(e=pa(e),t=pC(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 Tc(e)}function Nle(e,t,r){try{return hC(e,t)}catch{return e}}function vC(e,t){if(e=pa(e),t=pC(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 Tc(e)}function Lle(e,t,r){try{return vC(e,t)}catch{return e}}function t4(e,t=.15){return ug(e)>.5?hC(e,t):vC(e,t)}function Dle(e,t,r){try{return t4(e,t)}catch{return e}}function Ble(e,t,r,n=1){const a=(u,l)=>Math.round((u**(1/n)*(1-r)+l**(1/n)*r)**n),o=pa(e),i=pa(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Tc({type:"rgb",values:s})}const zle=["mode","contrastThreshold","tonalOffset"],uT={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:Sf.white,default:Sf.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}},t0={text:{primary:Sf.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:Sf.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 cT(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=fC(e.main,a):t==="dark"&&(e.dark=dC(e.main,o)))}function Vle(e="light"){return e==="dark"?{main:xl[200],light:xl[50],dark:xl[400]}:{main:xl[700],light:xl[400],dark:xl[800]}}function Ule(e="light"){return e==="dark"?{main:bl[200],light:bl[50],dark:bl[400]}:{main:bl[500],light:bl[300],dark:bl[700]}}function Wle(e="light"){return e==="dark"?{main:yl[500],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[400],dark:yl[800]}}function Hle(e="light"){return e==="dark"?{main:wl[400],light:wl[300],dark:wl[700]}:{main:wl[700],light:wl[500],dark:wl[900]}}function qle(e="light"){return e==="dark"?{main:Sl[400],light:Sl[300],dark:Sl[700]}:{main:Sl[800],light:Sl[500],dark:Sl[900]}}function Kle(e="light"){return e==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:"#ed6c02",light:Kc[500],dark:Kc[900]}}function Gle(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Pe(e,zle),o=e.primary||Vle(t),i=e.secondary||Ule(t),s=e.error||Wle(t),u=e.info||Hle(t),l=e.success||qle(t),c=e.warning||Kle(t);function f(y){return $le(y,t0.text.primary)>=r?t0.text.primary:uT.text.primary}const p=({color:y,name:S,mainShade:x=500,lightShade:m=300,darkShade:b=700})=>{if(y=T({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(No(11,S?` (${S})`:"",x));if(typeof y.main!="string")throw new Error(No(12,S?` (${S})`:"",JSON.stringify(y.main)));return cT(y,"light",m,n),cT(y,"dark",b,n),y.contrastText||(y.contrastText=f(y.main)),y},v={dark:t0,light:uT};return Rr(T({common:T({},Sf),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:l,name:"success"}),grey:loe,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},v[t]),a)}const Qle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xle(e){return Math.round(e*1e5)/1e5}const dT={textTransform:"uppercase"},fT='"Roboto", "Helvetica", "Arial", sans-serif';function Yle(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=fT,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,p=Pe(r,Qle),v=a/14,g=f||(x=>`${x/l*v}rem`),y=(x,m,b,h,_)=>T({fontFamily:n,fontWeight:x,fontSize:g(m),lineHeight:b},n===fT?{letterSpacing:`${Xle(h/m)}em`}:{},_,c),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,dT),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,dT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr(T({htmlFontSize:l,pxToRem:g,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},S),p,{clone:!1})}const Jle=.2,Zle=.14,eue=.12;function Xt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Jle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eue})`].join(",")}const tue=["none",Xt(0,2,1,-1,0,1,1,0,0,1,3,0),Xt(0,3,1,-2,0,2,2,0,0,1,5,0),Xt(0,3,3,-2,0,3,4,0,0,1,8,0),Xt(0,2,4,-1,0,4,5,0,0,1,10,0),Xt(0,3,5,-1,0,5,8,0,0,1,14,0),Xt(0,3,5,-1,0,6,10,0,0,1,18,0),Xt(0,4,5,-2,0,7,10,1,0,2,16,1),Xt(0,5,5,-3,0,8,10,1,0,3,14,2),Xt(0,5,6,-3,0,9,12,1,0,3,16,2),Xt(0,6,6,-3,0,10,14,1,0,4,18,3),Xt(0,6,7,-4,0,11,15,1,0,4,20,3),Xt(0,7,8,-4,0,12,17,2,0,5,22,4),Xt(0,7,8,-4,0,13,19,2,0,5,24,4),Xt(0,7,9,-4,0,14,21,2,0,5,26,4),Xt(0,8,9,-5,0,15,22,2,0,6,28,5),Xt(0,8,10,-5,0,16,24,2,0,6,30,5),Xt(0,8,11,-5,0,17,26,2,0,6,32,5),Xt(0,9,11,-5,0,18,28,2,0,7,34,6),Xt(0,9,12,-6,0,19,29,2,0,7,36,6),Xt(0,10,13,-6,0,20,31,3,0,8,38,7),Xt(0,10,13,-6,0,21,33,3,0,8,40,7),Xt(0,10,14,-6,0,22,35,3,0,8,42,7),Xt(0,11,14,-7,0,23,36,3,0,9,44,8),Xt(0,11,15,-7,0,24,38,3,0,9,46,8)],rue=tue,nue=["duration","easing","delay"],aue={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)"},oue={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pT(e){return`${Math.round(e)}ms`}function iue(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sue(e){const t=T({},aue,e.easing),r=T({},oue,e.duration);return T({getAutoHeightDuration:iue,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Pe(o,nue),(Array.isArray(a)?a:[a]).map(l=>`${l} ${typeof i=="string"?i:pT(i)} ${s} ${typeof u=="string"?u:pT(u)}`).join(",")}},e,{easing:t,duration:r})}const lue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uue=lue,cue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function cg(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Pe(e,cue);if(e.vars)throw new Error(No(18));const s=Gle(n),u=pp(e);let l=Rr(u,{mixins:Ole(u.breakpoints,r),palette:s,shadows:rue.slice(),typography:Yle(s,o),transitions:sue(a),zIndex:T({},uue)});return l=Rr(l,i),l=t.reduce((c,f)=>Rr(c,f),l),l.unstable_sxConfig=T({},dp,i==null?void 0:i.unstable_sxConfig),l.unstable_sx=function(f){return fp({sx:f,theme:this})},l}const due=cg(),Ey=due;function fo(){const e=wy(Ey);return e[Js]||e}function fue({props:e,name:t}){return FF({props:e,name:t,defaultTheme:Ey,themeId:Js})}var vp={},r0={exports:{}},hT;function pue(){return hT||(hT=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(r0)),r0.exports}const r4=Do(gie),hue=Do(mie),vue=Do(Cie),gue=Do(Ose),mue=Do(fse),yue=Do(yse);var $c=it;Object.defineProperty(vp,"__esModule",{value:!0});var bue=vp.default=jue;vp.shouldForwardProp=qh;vp.systemDefaultTheme=void 0;var ea=$c(wF()),gx=$c(pue()),vT=Oue(r4),xue=hue;$c(vue);$c(gue);var wue=$c(mue),Sue=$c(yue);const _ue=["ownerState"],Cue=["variants"],Eue=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function n4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(n4=function(n){return n?r:t})(e)}function Oue(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=n4(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 Pue(e){return Object.keys(e).length===0}function Rue(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tue=vp.systemDefaultTheme=(0,wue.default)(),$ue=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ah({defaultTheme:e,theme:t,themeId:r}){return Pue(t)?e:t[r]||t}function kue(e){return e?(t,r)=>r[e]:null}function Kh(e,t){let{ownerState:r}=t,n=(0,gx.default)(t,_ue);const a=typeof e=="function"?e((0,ea.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Kh(o,(0,ea.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,gx.default)(a,Cue);return o.forEach(u=>{let l=!0;typeof u.props=="function"?l=u.props((0,ea.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(c=>{(r==null?void 0:r[c])!==u.props[c]&&n[c]!==u.props[c]&&(l=!1)}),l&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,ea.default)({ownerState:r},n,r)):u.style))}),s}return a}function jue(e={}){const{themeId:t,defaultTheme:r=Tue,rootShouldForwardProp:n=qh,slotShouldForwardProp:a=qh}=e,o=i=>(0,Sue.default)((0,ea.default)({},i,{theme:ah((0,ea.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,vT.internal_processStyles)(i,_=>_.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:p=kue($ue(l))}=s,v=(0,gx.default)(s,Eue),g=c!==void 0?c:l&&l!=="Root"&&l!=="root"||!1,y=f||!1;let S,x=qh;l==="Root"||l==="root"?x=n:l?x=a:Rue(i)&&(x=void 0);const m=(0,vT.default)(i,(0,ea.default)({shouldForwardProp:x,label:S},v)),b=_=>typeof _=="function"&&_.__emotion_real!==_||(0,xue.isPlainObject)(_)?C=>Kh(_,(0,ea.default)({},C,{theme:ah({theme:C.theme,defaultTheme:r,themeId:t})})):_,h=(_,...C)=>{let E=b(_);const w=C?C.map(b):[];u&&p&&w.push(k=>{const j=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t}));if(!j.components||!j.components[u]||!j.components[u].styleOverrides)return null;const $=j.components[u].styleOverrides,F={};return Object.entries($).forEach(([z,M])=>{F[z]=Kh(M,(0,ea.default)({},k,{theme:j}))}),p(k,F)}),u&&!g&&w.push(k=>{var j;const $=ah((0,ea.default)({},k,{defaultTheme:r,themeId:t})),F=$==null||(j=$.components)==null||(j=j[u])==null?void 0:j.variants;return Kh({variants:F},(0,ea.default)({},k,{theme:$}))}),y||w.push(o);const O=w.length-C.length;if(Array.isArray(_)&&O>0){const k=new Array(O).fill("");E=[..._,...k],E.raw=[..._.raw,...k]}const P=m(E,...w);return i.muiName&&(P.muiName=i.muiName),P};return m.withConfig&&(h.withConfig=m.withConfig),h}}function a4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Iue=e=>a4(e)&&e!=="classes",Wr=Iue,Aue=bue({themeId:Js,defaultTheme:Ey,rootShouldForwardProp:Wr}),ne=Aue,Mue=["theme"];function Fue(e){let{theme:t}=e,r=Pe(e,Mue);const n=t[Js];return R.jsx(vle,T({},r,{themeId:n?Js:void 0,theme:n||t}))}const Nue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gT=Nue;function Ke(e){return hle(e)}function Lue(e){return Ue("MuiSvgIcon",e)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Due=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bue=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(r)}`]};return qe(a,Lue,n)},zue=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ge(r.color)}`],t[`fontSize${ge(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,i,s,u,l,c,f,p,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(i=o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),o4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=n,v=Pe(n,Due),g=d.isValidElement(a)&&a.type==="svg",y=T({},n,{color:i,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),S={};c||(S.viewBox=p);const x=Bue(y);return R.jsxs(zue,T({as:s,className:ue(x.root,o),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},S,v,g&&a.props,{ownerState:y,children:[g?a.props.children:a,f?R.jsx("title",{children:f}):null]}))});o4.muiName="SvgIcon";const mT=o4;function An(e,t){function r(n,a){return R.jsx(mT,T({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return r.muiName=mT.muiName,d.memo(d.forwardRef(r))}const Vue={configure:e=>{lC.configure(e)}},Uue=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ge,createChainedFunction:hx,createSvgIcon:An,debounce:Rc,deprecatedPropType:Wse,isMuiElement:Hh,ownerDocument:wr,ownerWindow:da,requirePropFactory:Hse,setRef:sg,unstable_ClassNameGenerator:Vue,unstable_useEnhancedEffect:qn,unstable_useId:el,unsupportedProp:Kse,useControlled:Yu,useEventCallback:fn,useForkRef:Jt,useIsFocusVisible:Cy},Symbol.toStringTag,{value:"Module"}));function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},mx(e,t)}function Oy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mx(e,t)}const yT={disabled:!1},dg=ke.createContext(null);var Wue=function(t){return t.scrollTop},fd="unmounted",os="exited",is="entering",$l="entered",yx="exiting",Ho=function(e){Oy(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,u;return o.appearStatus=null,n.in?s?(u=os,o.appearStatus=is):u=$l:n.unmountOnExit||n.mountOnEnter?u=fd:u=os,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fd?{status:os}: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!==is&&i!==$l&&(o=is):(i===is||i===$l)&&(o=yx)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===is){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this);i&&Wue(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:fd})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[ld.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!a&&!i||yT.disabled){this.safeSetState({status:$l},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:is},function(){o.props.onEntering(l,c),o.onTransitionEnd(p,function(){o.safeSetState({status:$l},function(){o.props.onEntered(l,c)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ld.findDOMNode(this);if(!o||yT.disabled){this.safeSetState({status:os},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:yx},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:os},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:ld.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fd)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Pe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ke.createElement(dg.Provider,{value:null},typeof i=="function"?i(a,s):ke.cloneElement(ke.Children.only(i),s))},t}(ke.Component);Ho.contextType=dg;Ho.propTypes={};function Cl(){}Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cl,onEntering:Cl,onEntered:Cl,onExit:Cl,onExiting:Cl,onExited:Cl};Ho.UNMOUNTED=fd;Ho.EXITED=os;Ho.ENTERING=is;Ho.ENTERED=$l;Ho.EXITING=yx;const gC=Ho;function bx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mC(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 Hue(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;ie.scrollTop;function Ju(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 Yue(e){return Ue("MuiPaper",e)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jue=["className","component","elevation","square","variant"],Zue=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return qe(o,Yue,a)},ece=ne("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(${gt("#fff",gT(t.elevation))}, ${gt("#fff",gT(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,l=Pe(n,Jue),c=T({},n,{component:o,elevation:i,square:s,variant:u}),f=Zue(c);return R.jsx(ece,T({as:o,ownerState:c,className:ue(f.root,a),ref:r},l))}),Yi=tce,rce=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],nce=["component","slots","slotProps"],ace=["component"];function oce(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,getSlotOwnerState:i,internalForwardedProps:s}=t,u=Pe(t,rce),{component:l,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=o,p=Pe(o,nce),v=c[e]||n,g=WF(f[e],a),y=UF(T({className:r},u,{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g})),{props:{component:S},internalRef:x}=y,m=Pe(y.props,ace),b=Jt(x,g==null?void 0:g.ref,t.ref),h=i?i(m):{},_=T({},a,h),C=e==="root"?S||l:S,E=Jl(v,T({},e==="root"&&!l&&!c[e]&&s,e!=="root"&&!c[e]&&s,m,C&&{as:C},{ref:b}),_);return Object.keys(h).forEach(w=>{delete E[w]}),[v,E]}function ice(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:s,onExited:u,timeout:l}=e,[c,f]=d.useState(!1),p=ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},g=ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),d.useEffect(()=>{if(!s&&u!=null){const y=setTimeout(u,l);return()=>{clearTimeout(y)}}},[u,s,l]),R.jsx("span",{className:p,style:v,children:R.jsx("span",{className:g})})}const sce=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ra=sce,lce=["center","classes","className"];let Py=e=>e,bT,xT,wT,ST;const xx=550,uce=80,cce=Pc(bT||(bT=Py` 0% { transform: scale(0); opacity: 0.1; @@ -115,7 +115,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu transform: scale(1); opacity: 0.3; } -`)),dce=Pc(xT||(xT=Ry` +`)),dce=Pc(xT||(xT=Py` 0% { opacity: 1; } @@ -123,7 +123,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { opacity: 0; } -`)),fce=Pc(wT||(wT=Ry` +`)),fce=Pc(wT||(wT=Py` 0% { transform: scale(1); } @@ -135,7 +135,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { transform: scale(1); } -`)),pce=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hce=ne(ice,{name:"MuiTouchRipple",slot:"Ripple"})(ST||(ST=Ry` +`)),pce=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),hce=ne(ice,{name:"MuiTouchRipple",slot:"Ripple"})(ST||(ST=Py` opacity: 0; position: absolute; @@ -178,8 +178,8 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu animation-iteration-count: infinite; animation-delay: 200ms; } -`),ra.rippleVisible,cce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ra.child,ra.childLeaving,dce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.childPulsate,fce,({theme:e})=>e.transitions.easing.easeInOut),vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Pe(n,lce),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),v=Ss(),g=d.useRef(null),y=d.useRef(null),S=d.useCallback(h=>{const{pulsate:_,rippleX:C,rippleY:E,rippleSize:w,cb:O}=h;l(P=>[...P,R.jsx(hce,{classes:{ripple:ue(o.ripple,ra.ripple),rippleVisible:ue(o.rippleVisible,ra.rippleVisible),ripplePulsate:ue(o.ripplePulsate,ra.ripplePulsate),child:ue(o.child,ra.child),childLeaving:ue(o.childLeaving,ra.childLeaving),childPulsate:ue(o.childPulsate,ra.childPulsate)},timeout:xx,pulsate:_,rippleX:C,rippleY:E,rippleSize:w},c.current)]),c.current+=1,f.current=O},[o]),x=d.useCallback((h={},_={},C=()=>{})=>{const{pulsate:E=!1,center:w=a||_.pulsate,fakeElement:O=!1}=_;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const P=O?null:y.current,k=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,$,F;if(w||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)j=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:z,clientY:M}=h.touches&&h.touches.length>0?h.touches[0]:h;j=Math.round(z-k.left),$=Math.round(M-k.top)}if(w)F=Math.sqrt((2*k.width**2+k.height**2)/3),F%2===0&&(F+=1);else{const z=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,M=Math.max(Math.abs((P?P.clientHeight:0)-$),$)*2+2;F=Math.sqrt(z**2+M**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},v.start(uce,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},[a,S,v]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),b=d.useCallback((h,_)=>{if(v.clear(),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(h,_)});return}g.current=null,l(C=>C.length>0?C.slice(1):C),f.current=_},[v]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:b}),[m,x,b]),R.jsx(pce,T({className:ue(ra.root,o.root,i),ref:y},s,{children:R.jsx(Xue,{component:null,exit:!0,children:u})}))}),gce=vce;function mce(e){return Ue("MuiButtonBase",e)}const yce=We("MuiButtonBase",["root","disabled","focusVisible"]),bce=yce,xce=["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"],wce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=qe({root:["root",t&&"disabled",r&&"focusVisible"]},mce,a);return r&&n&&(i.root+=` ${n}`),i},Sce=ne("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"},[`&.${bce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:S,onDragLeave:x,onFocus:m,onFocusVisible:b,onKeyDown:h,onKeyUp:_,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:O,onTouchMove:P,onTouchStart:k,tabIndex:j=0,TouchRippleProps:$,touchRippleRef:F,type:z}=n,M=Pe(n,xce),W=d.useRef(null),B=d.useRef(null),U=Jt(B,F),{isFocusVisibleRef:q,onFocus:ie,onBlur:oe,ref:Ee}=Ey(),[pe,Te]=d.useState(!1);l&&pe&&Te(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{Te(!0),W.current.focus()}}),[]);const[ye,be]=d.useState(!1);d.useEffect(()=>{be(!0)},[]);const we=ye&&!c&&!l;d.useEffect(()=>{pe&&p&&!c&&ye&&B.current.pulsate()},[c,p,pe,ye]);function ve(he,Re,Be=f){return fn(Ye=>(Re&&Re(Ye),!Be&&B.current&&B.current[he](Ye),!0))}const De=ve("start",C),Me=ve("stop",S),Qe=ve("stop",x),Ne=ve("stop",w),Ae=ve("stop",he=>{pe&&he.preventDefault(),E&&E(he)}),He=ve("start",k),ht=ve("stop",O),ut=ve("stop",P),V=ve("stop",he=>{oe(he),q.current===!1&&Te(!1),g&&g(he)},!1),K=fn(he=>{W.current||(W.current=he.currentTarget),ie(he),q.current===!0&&(Te(!0),b&&b(he)),m&&m(he)}),te=()=>{const he=W.current;return u&&u!=="button"&&!(he.tagName==="A"&&he.href)},se=d.useRef(!1),de=fn(he=>{p&&!se.current&&pe&&B.current&&he.key===" "&&(se.current=!0,B.current.stop(he,()=>{B.current.start(he)})),he.target===he.currentTarget&&te()&&he.key===" "&&he.preventDefault(),h&&h(he),he.target===he.currentTarget&&te()&&he.key==="Enter"&&!l&&(he.preventDefault(),y&&y(he))}),fe=fn(he=>{p&&he.key===" "&&B.current&&pe&&!he.defaultPrevented&&(se.current=!1,B.current.stop(he,()=>{B.current.pulsate(he)})),_&&_(he),y&&he.target===he.currentTarget&&te()&&he.key===" "&&!he.defaultPrevented&&y(he)});let Oe=u;Oe==="button"&&(M.href||M.to)&&(Oe=v);const ae={};Oe==="button"?(ae.type=z===void 0?"button":z,ae.disabled=l):(!M.href&&!M.to&&(ae.role="button"),l&&(ae["aria-disabled"]=l));const Z=Jt(r,Ee,W),G=T({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:pe}),le=wce(G);return R.jsxs(Sce,T({as:Oe,className:ue(le.root,s),ownerState:G,onBlur:V,onClick:y,onContextMenu:Me,onFocus:K,onKeyDown:de,onKeyUp:fe,onMouseDown:De,onMouseLeave:Ae,onMouseUp:Ne,onDragLeave:Qe,onTouchEnd:ht,onTouchMove:ut,onTouchStart:He,ref:Z,tabIndex:l?-1:j,type:z},ae,M,{children:[i,we?R.jsx(gce,T({ref:U,center:o},$)):null]}))}),Ma=_ce;function Cce(e){return Ue("MuiIconButton",e)}const Ece=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oce=Ece,Pce=["edge","children","className","color","disabled","disableFocusRipple","size"],Rce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ge(n)}`,a&&`edge${ge(a)}`,`size${ge(o)}`]};return qe(i,Cce,t)},Tce=ne(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ge(r.color)}`],r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(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})`:gt(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})`:gt(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)},{[`&.${Oce.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=Pe(n,Pce),p=T({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),v=Rce(p);return R.jsx(Tce,T({className:ue(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:o}))}),Pr=$ce;function kce(e){return Ue("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ice=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${ge(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return qe(s,kce,i)},Ace=ne("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${ge(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})),_T={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mce={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Fce=e=>Mce[e]||e,Nce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTypography"}),a=Fce(n.color),o=_y(T({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=_T}=o,g=Pe(o,jce),y=T({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:v}),S=u||(f?"p":v[p]||_T[p])||"span",x=Ice(y);return R.jsx(Ace,T({as:S,ref:r,ownerState:y,className:ue(x.root,s)},g))}),_t=Nce;function Lce(e){return Ue("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Dce=["className","color","enableColorOnDark","position"],Bce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${ge(t)}`,`position${ge(r)}`]};return qe(a,Lce,n)},oh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,zce=ne(Yi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],t[`color${ge(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:oh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:oh(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:oh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:oh(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"}))}),Vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Pe(n,Dce),l=T({},n,{color:o,position:s,enableColorOnDark:i}),c=Bce(l);return R.jsx(zce,T({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),Uce=Vce;var xC={};Object.defineProperty(xC,"__esModule",{value:!0});var o4=xC.default=void 0,Wce=qce(d),Hce=t4;function i4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(i4=function(n){return n?r:t})(e)}function qce(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=i4(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 Kce(e){return Object.keys(e).length===0}function Gce(e=null){const t=Wce.useContext(Hce.ThemeContext);return!t||Kce(t)?e:t}o4=xC.default=Gce;var Tn="top",ha="bottom",va="right",$n="left",wC="auto",gp=[Tn,ha,va,$n],Zu="start",$f="end",Qce="clippingParents",s4="viewport",Qc="popper",Xce="reference",CT=gp.reduce(function(e,t){return e.concat([t+"-"+Zu,t+"-"+$f])},[]),l4=[].concat(gp,[wC]).reduce(function(e,t){return e.concat([t,t+"-"+Zu,t+"-"+$f])},[]),Yce="beforeRead",Jce="read",Zce="afterRead",ede="beforeMain",tde="main",rde="afterMain",nde="beforeWrite",ade="write",ode="afterWrite",ide=[Yce,Jce,Zce,ede,tde,rde,nde,ade,ode];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function la(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SC(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sde(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];!la(o)||!ao(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function lde(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!la(a)||!ao(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const ude={name:"applyStyles",enabled:!0,phase:"write",fn:sde,effect:lde,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ls=Math.max,pg=Math.min,ec=Math.round;function wx(){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 u4(){return!/^((?!chrome|android).)*safari/i.test(wx())}function tc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&la(e)&&(a=e.offsetWidth>0&&ec(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ec(n.height)/e.offsetHeight||1);var i=tl(e)?Kn(e):window,s=i.visualViewport,u=!u4()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function _C(e){var t=tc(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 c4(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SC(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Lo(e){return Kn(e).getComputedStyle(e)}function cde(e){return["table","td","th"].indexOf(ao(e))>=0}function Ji(e){return((tl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ty(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(SC(e)?e.host:null)||Ji(e)}function ET(e){return!la(e)||Lo(e).position==="fixed"?null:e.offsetParent}function dde(e){var t=/firefox/i.test(wx()),r=/Trident/i.test(wx());if(r&&la(e)){var n=Lo(e);if(n.position==="fixed")return null}var a=Ty(e);for(SC(a)&&(a=a.host);la(a)&&["html","body"].indexOf(ao(a))<0;){var o=Lo(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 mp(e){for(var t=Kn(e),r=ET(e);r&&cde(r)&&Lo(r).position==="static";)r=ET(r);return r&&(ao(r)==="html"||ao(r)==="body"&&Lo(r).position==="static")?t:r||dde(e)||t}function CC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Md(e,t,r){return Ls(e,pg(t,r))}function fde(e,t,r){var n=Md(e,t,r);return n>r?r:n}function d4(){return{top:0,right:0,bottom:0,left:0}}function f4(e){return Object.assign({},d4(),e)}function p4(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var pde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,f4(typeof t!="number"?t:p4(t,gp))};function hde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=ro(r.placement),u=CC(s),l=[$n,va].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var f=pde(a.padding,r),p=_C(o),v=u==="y"?Tn:$n,g=u==="y"?ha:va,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],S=i[u]-r.rects.reference[u],x=mp(o),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-S/2,h=f[v],_=m-p[c]-f[g],C=m/2-p[c]/2+b,E=Md(h,C,_),w=u;r.modifiersData[n]=(t={},t[w]=E,t.centerOffset=E-C,t)}}function vde(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)||c4(t.elements.popper,a)&&(t.elements.arrow=a))}const gde={name:"arrow",enabled:!0,phase:"main",fn:hde,effect:vde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rc(e){return e.split("-")[1]}var mde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ec(r*a)/a||0,y:ec(n*a)/a||0}}function OT(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,g=i.y,y=g===void 0?0:g,S=typeof c=="function"?c({x:v,y}):{x:v,y};v=S.x,y=S.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=$n,h=Tn,_=window;if(l){var C=mp(r),E="clientHeight",w="clientWidth";if(C===Kn(r)&&(C=Ji(r),Lo(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",w="scrollWidth")),C=C,a===Tn||(a===$n||a===va)&&o===$f){h=ha;var O=f&&C===_&&_.visualViewport?_.visualViewport.height:C[E];y-=O-n.height,y*=u?1:-1}if(a===$n||(a===Tn||a===ha)&&o===$f){b=va;var P=f&&C===_&&_.visualViewport?_.visualViewport.width:C[w];v-=P-n.width,v*=u?1:-1}}var k=Object.assign({position:s},l&&mde),j=c===!0?yde({x:v,y},Kn(r)):{x:v,y};if(v=j.x,y=j.y,u){var $;return Object.assign({},k,($={},$[h]=m?"0":"",$[b]=x?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",$))}return Object.assign({},k,(t={},t[h]=m?y+"px":"",t[b]=x?v+"px":"",t.transform="",t))}function bde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:ro(t.placement),variation:rc(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,OT(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OT(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bde,data:{}};var ih={passive:!0};function wde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Kn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,ih)}),s&&u.addEventListener("resize",r.update,ih),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,ih)}),s&&u.removeEventListener("resize",r.update,ih)}}const Sde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wde,data:{}};var _de={left:"right",right:"left",bottom:"top",top:"bottom"};function Gh(e){return e.replace(/left|right|bottom|top/g,function(t){return _de[t]})}var Cde={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,function(t){return Cde[t]})}function EC(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function OC(e){return tc(Ji(e)).left+EC(e).scrollLeft}function Ede(e,t){var r=Kn(e),n=Ji(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=u4();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+OC(e),y:u}}function Ode(e){var t,r=Ji(e),n=EC(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Ls(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ls(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+OC(e),u=-n.scrollTop;return Lo(a||r).direction==="rtl"&&(s+=Ls(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function PC(e){var t=Lo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function h4(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:la(e)&&PC(e)?e:h4(Ty(e))}function Fd(e,t){var r;t===void 0&&(t=[]);var n=h4(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),i=a?[o].concat(o.visualViewport||[],PC(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Fd(Ty(i)))}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pde(e,t){var r=tc(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 RT(e,t,r){return t===s4?Sx(Ede(e,r)):tl(t)?Pde(t,r):Sx(Ode(Ji(e)))}function Rde(e){var t=Fd(Ty(e)),r=["absolute","fixed"].indexOf(Lo(e).position)>=0,n=r&&la(e)?mp(e):e;return tl(n)?t.filter(function(a){return tl(a)&&c4(a,n)&&ao(a)!=="body"}):[]}function Tde(e,t,r,n){var a=t==="clippingParents"?Rde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=RT(e,l,n);return u.top=Ls(c.top,u.top),u.right=pg(c.right,u.right),u.bottom=pg(c.bottom,u.bottom),u.left=Ls(c.left,u.left),u},RT(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function v4(e){var t=e.reference,r=e.element,n=e.placement,a=n?ro(n):null,o=n?rc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ha:u={x:i,y:t.y+t.height};break;case va:u={x:t.x+t.width,y:s};break;case $n:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CC(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Zu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case $f:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function kf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?Qce:s,l=r.rootBoundary,c=l===void 0?s4:l,f=r.elementContext,p=f===void 0?Qc:f,v=r.altBoundary,g=v===void 0?!1:v,y=r.padding,S=y===void 0?0:y,x=f4(typeof S!="number"?S:p4(S,gp)),m=p===Qc?Xce:Qc,b=e.rects.popper,h=e.elements[g?m:p],_=Tde(tl(h)?h:h.contextElement||Ji(e.elements.popper),u,c,i),C=tc(e.elements.reference),E=v4({reference:C,element:b,strategy:"absolute",placement:a}),w=Sx(Object.assign({},b,E)),O=p===Qc?w:C,P={top:_.top-O.top+x.top,bottom:O.bottom-_.bottom+x.bottom,left:_.left-O.left+x.left,right:O.right-_.right+x.right},k=e.modifiersData.offset;if(p===Qc&&k){var j=k[a];Object.keys(P).forEach(function($){var F=[va,ha].indexOf($)>=0?1:-1,z=[Tn,ha].indexOf($)>=0?"y":"x";P[$]+=j[z]*F})}return P}function $de(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?l4:u,c=rc(n),f=c?s?CT:CT.filter(function(g){return rc(g)===c}):gp,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var v=p.reduce(function(g,y){return g[y]=kf(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ro(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function kde(e){if(ro(e)===wC)return[];var t=Gh(e);return[PT(e),t,PT(t)]}function jde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,y=r.allowedAutoPlacements,S=t.options.placement,x=ro(S),m=x===S,b=u||(m||!g?[Gh(S)]:kde(S)),h=[S].concat(b).reduce(function(pe,Te){return pe.concat(ro(Te)===wC?$de(t,{placement:Te,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:y}):Te)},[]),_=t.rects.reference,C=t.rects.popper,E=new Map,w=!0,O=h[0],P=0;P=0,z=F?"width":"height",M=kf(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),W=F?$?va:$n:$?ha:Tn;_[z]>C[z]&&(W=Gh(W));var B=Gh(W),U=[];if(o&&U.push(M[j]<=0),s&&U.push(M[W]<=0,M[B]<=0),U.every(function(pe){return pe})){O=k,w=!1;break}E.set(k,U)}if(w)for(var q=g?3:1,ie=function(Te){var ye=h.find(function(be){var we=E.get(be);if(we)return we.slice(0,Te).every(function(ve){return ve})});if(ye)return O=ye,"break"},oe=q;oe>0;oe--){var Ee=ie(oe);if(Ee==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const Ide={name:"flip",enabled:!0,phase:"main",fn:jde,requiresIfExists:["offset"],data:{_skip:!1}};function TT(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 $T(e){return[Tn,va,ha,$n].some(function(t){return e[t]>=0})}function Ade(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kf(t,{elementContext:"reference"}),s=kf(t,{altBoundary:!0}),u=TT(i,n),l=TT(s,a,o),c=$T(u),f=$T(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Mde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ade};function Fde(e,t,r){var n=ro(e),a=[$n,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[$n,va].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Nde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=l4.reduce(function(c,f){return c[f]=Fde(f,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Lde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nde};function Dde(e){var t=e.state,r=e.name;t.modifiersData[r]=v4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bde={name:"popperOffsets",enabled:!0,phase:"read",fn:Dde,data:{}};function zde(e){return e==="x"?"y":"x"}function Vde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,g=r.tetherOffset,y=g===void 0?0:g,S=kf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=ro(t.placement),m=rc(t.placement),b=!m,h=CC(x),_=zde(h),C=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(o){var $,F=h==="y"?Tn:$n,z=h==="y"?ha:va,M=h==="y"?"height":"width",W=C[h],B=W+S[F],U=W-S[z],q=v?-w[M]/2:0,ie=m===Zu?E[M]:w[M],oe=m===Zu?-w[M]:-E[M],Ee=t.elements.arrow,pe=v&&Ee?_C(Ee):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:d4(),ye=Te[F],be=Te[z],we=Md(0,E[M],pe[M]),ve=b?E[M]/2-q-we-ye-P.mainAxis:ie-we-ye-P.mainAxis,De=b?-E[M]/2+q+we+be+P.mainAxis:oe+we+be+P.mainAxis,Me=t.elements.arrow&&mp(t.elements.arrow),Qe=Me?h==="y"?Me.clientTop||0:Me.clientLeft||0:0,Ne=($=k==null?void 0:k[h])!=null?$:0,Ae=W+ve-Ne-Qe,He=W+De-Ne,ht=Md(v?pg(B,Ae):B,W,v?Ls(U,He):U);C[h]=ht,j[h]=ht-W}if(s){var ut,V=h==="x"?Tn:$n,K=h==="x"?ha:va,te=C[_],se=_==="y"?"height":"width",de=te+S[V],fe=te-S[K],Oe=[Tn,$n].indexOf(x)!==-1,ae=(ut=k==null?void 0:k[_])!=null?ut:0,Z=Oe?de:te-E[se]-w[se]-ae+P.altAxis,G=Oe?te+E[se]+w[se]-ae-P.altAxis:fe,le=v&&Oe?fde(Z,te,G):Md(v?Z:de,te,v?G:fe);C[_]=le,j[_]=le-te}t.modifiersData[n]=j}}const Ude={name:"preventOverflow",enabled:!0,phase:"main",fn:Vde,requiresIfExists:["offset"]};function Wde(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hde(e){return e===Kn(e)||!la(e)?EC(e):Wde(e)}function qde(e){var t=e.getBoundingClientRect(),r=ec(t.width)/e.offsetWidth||1,n=ec(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Kde(e,t,r){r===void 0&&(r=!1);var n=la(t),a=la(t)&&qde(t),o=Ji(t),i=tc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ao(t)!=="body"||PC(o))&&(s=Hde(t)),la(t)?(u=tc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=OC(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Gde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Qde(e){var t=Gde(e);return ide.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Xde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yde(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 kT={placement:"bottom",modifiers:[],strategy:"absolute"};function jT(){for(var e=arguments.length,t=new Array(e),r=0;r{o||s(tfe(a)||document.body)},[a,o]),qn(()=>{if(i&&!o)return lg(r,i),()=>{lg(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return R.jsx(d.Fragment,{children:n})}return R.jsx(d.Fragment,{children:i&&tp.createPortal(n,i)})}),g4=rfe;function nfe(e){return Ue("MuiPopper",e)}We("MuiPopper",["root"]);const afe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ofe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ife(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 _x(e){return typeof e=="function"?e():e}function sfe(e){return e.nodeType!==void 0}const lfe=e=>{const{classes:t}=e;return qe({root:["root"]},nfe,t)},ufe={},cfe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:v={},slots:g={},TransitionProps:y}=t,S=Pe(t,afe),x=d.useRef(null),m=Jt(x,r),b=d.useRef(null),h=Jt(b,p),_=d.useRef(h);qn(()=>{_.current=h},[h]),d.useImperativeHandle(p,()=>b.current,[]);const C=ife(c,i),[E,w]=d.useState(C),[O,P]=d.useState(_x(a));d.useEffect(()=>{b.current&&b.current.forceUpdate()}),d.useEffect(()=>{a&&P(_x(a))},[a]),qn(()=>{if(!O||!l)return;const z=B=>{w(B.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{z(B)}}];u!=null&&(M=M.concat(u)),f&&f.modifiers!=null&&(M=M.concat(f.modifiers));const W=efe(O,x.current,T({placement:C},f,{modifiers:M}));return _.current(W),()=>{W.destroy(),_.current(null)}},[O,s,u,l,f,C]);const k={placement:E};y!==null&&(k.TransitionProps=y);const j=lfe(t),$=(n=g.root)!=null?n:"div",F=fa({elementType:$,externalSlotProps:v.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:j.root});return R.jsx($,T({},F,{children:typeof o=="function"?o(k):o}))}),dfe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=ufe,popperRef:v,style:g,transition:y=!1,slotProps:S={},slots:x={}}=t,m=Pe(t,ofe),[b,h]=d.useState(!0),_=()=>{h(!1)},C=()=>{h(!0)};if(!u&&!c&&(!y||b))return null;let E;if(o)E=o;else if(n){const P=_x(n);E=P&&sfe(P)?wr(P).body:wr(null).body}const w=!c&&u&&(!y||b)?"none":void 0,O=y?{in:c,onEnter:_,onExited:C}:void 0;return R.jsx(g4,{disablePortal:s,container:E,children:R.jsx(cfe,T({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!b:c,placement:f,popperOptions:p,popperRef:v,slotProps:S,slots:x},m,{style:T({position:"fixed",top:0,left:0,display:w},g),TransitionProps:O,children:a}))})}),ffe=dfe,pfe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hfe=ne(ffe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vfe=d.forwardRef(function(t,r){var n;const a=o4(),o=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m,slots:b,slotProps:h}=o,_=Pe(o,pfe),C=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,E=T({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m},_);return R.jsx(hfe,T({as:s,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:h??l},E,{ref:r}))}),m4=vfe,gfe=An(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function mfe(e){return Ue("MuiChip",e)}const yfe=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Et=yfe,bfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xfe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ge(n)}`,`color${ge(a)}`,s&&"clickable",s&&`clickableColor${ge(a)}`,i&&"deletable",i&&`deletableColor${ge(a)}`,`${u}${ge(a)}`],label:["label",`label${ge(n)}`],avatar:["avatar",`avatar${ge(n)}`,`avatarColor${ge(a)}`],icon:["icon",`icon${ge(n)}`,`iconColor${ge(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ge(n)}`,`deleteIconColor${ge(a)}`,`deleteIcon${ge(u)}Color${ge(a)}`]};return qe(l,mfe,t)},wfe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${ge(s)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${ge(n)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${ge(s)}`]},{[`& .${Et.icon}`]:t[`iconColor${ge(a)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(s)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${ge(n)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(u)}Color${ge(n)}`]},t.root,t[`size${ge(s)}`],t[`color${ge(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ge(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ge(n)}`],t[u],t[`${u}${ge(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Et.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:gt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Et.avatar}`]:{marginLeft:4},[`& .${Et.avatarSmall}`]:{marginLeft:2},[`& .${Et.icon}`]:{marginLeft:4},[`& .${Et.iconSmall}`]:{marginLeft:2},[`& .${Et.deleteIcon}`]:{marginRight:5},[`& .${Et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Sfe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ge(n)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function IT(e){return e.key==="Backspace"||e.key==="Delete"}const _fe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:S,size:x="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:h=!1}=n,_=Pe(n,bfe),C=d.useRef(null),E=Jt(C,r),w=U=>{U.stopPropagation(),g&&g(U)},O=U=>{U.currentTarget===U.target&&IT(U)&&U.preventDefault(),y&&y(U)},P=U=>{U.currentTarget===U.target&&(g&&IT(U)?g(U):U.key==="Escape"&&C.current&&C.current.blur()),S&&S(U)},k=i!==!1&&v?!0:i,j=k||g?Ma:u||"div",$=T({},n,{component:j,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:k,variant:m}),F=xfe($),z=j===Ma?T({component:u||"div",focusVisibleClassName:F.focusVisible},g&&{disableRipple:!0}):{};let M=null;g&&(M=l&&d.isValidElement(l)?d.cloneElement(l,{className:ue(l.props.className,F.deleteIcon),onClick:w}):R.jsx(gfe,{className:ue(F.deleteIcon),onClick:w}));let W=null;a&&d.isValidElement(a)&&(W=d.cloneElement(a,{className:ue(F.avatar,a.props.className)}));let B=null;return f&&d.isValidElement(f)&&(B=d.cloneElement(f,{className:ue(F.icon,f.props.className)})),R.jsxs(wfe,T({as:j,className:ue(F.root,o),disabled:k&&c?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:P,ref:E,tabIndex:h&&c?-1:b,ownerState:$},z,_,{children:[W||B,R.jsx(Sfe,{className:ue(F.label),ownerState:$,children:p}),M]}))}),Cfe=_fe,Efe=["onChange","maxRows","minRows","style","value"];function sh(e){return parseInt(e,10)||0}const Ofe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Pfe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Rfe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Pe(t,Efe),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=Jt(r,c),p=d.useRef(null),v=d.useRef(null),g=d.useCallback(()=>{const x=c.current,b=da(x).getComputedStyle(x);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=v.current;h.style.width=b.width,h.value=x.value||t.placeholder||"x",h.value.slice(-1)===` -`&&(h.value+=" ");const _=b.boxSizing,C=sh(b.paddingBottom)+sh(b.paddingTop),E=sh(b.borderBottomWidth)+sh(b.borderTopWidth),w=h.scrollHeight;h.value="x";const O=h.scrollHeight;let P=w;o&&(P=Math.max(Number(o)*O,P)),a&&(P=Math.min(Number(a)*O,P)),P=Math.max(P,O);const k=P+(_==="border-box"?C+E:0),j=Math.abs(P-w)<=1;return{outerHeightStyle:k,overflowing:j}},[a,o,t.placeholder]),y=d.useCallback(()=>{const x=g();if(Pfe(x))return;const m=x.outerHeightStyle,b=c.current;p.current!==m&&(p.current=m,b.style.height=`${m}px`),b.style.overflow=x.overflowing?"hidden":""},[g]);qn(()=>{const x=()=>{y()};let m;const b=Rc(x),h=c.current,_=da(h);_.addEventListener("resize",b);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(h)),()=>{b.clear(),cancelAnimationFrame(m),_.removeEventListener("resize",b),C&&C.disconnect()}},[g,y]),qn(()=>{y()});const S=x=>{l||y(),n&&n(x)};return R.jsxs(d.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:S,ref:f,rows:o,style:i},u)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:T({},Ofe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),Tfe=Rfe;function Zi({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 $fe=d.createContext(void 0),$y=$fe;function po(){return d.useContext($y)}function y4(e){return R.jsx(vse,T({},e,{defaultTheme:Oy,themeId:Js}))}function AT(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hg(e,t=!1){return e&&(AT(e.value)&&e.value!==""||t&&AT(e.defaultValue)&&e.defaultValue!=="")}function kfe(e){return e.startAdornment}function jfe(e){return Ue("MuiInputBase",e)}const Ife=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nc=Ife,Afe=["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"],ky=(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${ge(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jy=(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]},Mfe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:v,type:g}=e,y={root:["root",`color${ge(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ge(p)}`,c&&"multiline",v&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return qe(y,jfe,t)},Iy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ky})(({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",[`&.${nc.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%"})),Ay=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jy})(({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] + .${nc.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},[`&.${nc.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"})}),Ffe=R.jsx(y4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nfe=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:S,inputComponent:x="input",inputProps:m={},inputRef:b,maxRows:h,minRows:_,multiline:C=!1,name:E,onBlur:w,onChange:O,onClick:P,onFocus:k,onKeyDown:j,onKeyUp:$,placeholder:F,readOnly:z,renderSuffix:M,rows:W,slotProps:B={},slots:U={},startAdornment:q,type:ie="text",value:oe}=a,Ee=Pe(a,Afe),pe=m.value!=null?m.value:oe,{current:Te}=d.useRef(pe!=null),ye=d.useRef(),be=d.useCallback(le=>{},[]),we=Jt(ye,b,m.ref,be),[ve,De]=d.useState(!1),Me=po(),Qe=Zi({props:a,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Me?Me.focused:ve,d.useEffect(()=>{!Me&&p&&ve&&(De(!1),w&&w())},[Me,p,ve,w]);const Ne=Me&&Me.onFilled,Ae=Me&&Me.onEmpty,He=d.useCallback(le=>{hg(le)?Ne&&Ne():Ae&&Ae()},[Ne,Ae]);qn(()=>{Te&&He({value:pe})},[pe,He,Te]);const ht=le=>{if(Qe.disabled){le.stopPropagation();return}k&&k(le),m.onFocus&&m.onFocus(le),Me&&Me.onFocus?Me.onFocus(le):De(!0)},ut=le=>{w&&w(le),m.onBlur&&m.onBlur(le),Me&&Me.onBlur?Me.onBlur(le):De(!1)},V=(le,...he)=>{if(!Te){const Re=le.target||ye.current;if(Re==null)throw new Error(No(1));He({value:Re.value})}m.onChange&&m.onChange(le,...he),O&&O(le,...he)};d.useEffect(()=>{He(ye.current)},[]);const K=le=>{ye.current&&le.currentTarget===le.target&&ye.current.focus(),P&&P(le)};let te=x,se=m;C&&te==="input"&&(W?se=T({type:void 0,minRows:W,maxRows:W},se):se=T({type:void 0,maxRows:h,minRows:_},se),te=Tfe);const de=le=>{He(le.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};d.useEffect(()=>{Me&&Me.setAdornedStart(!!q)},[Me,q]);const fe=T({},a,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:g,error:Qe.error,focused:Qe.focused,formControl:Me,fullWidth:y,hiddenLabel:Qe.hiddenLabel,multiline:C,size:Qe.size,startAdornment:q,type:ie}),Oe=Mfe(fe),ae=U.root||l.Root||Iy,Z=B.root||c.root||{},G=U.input||l.Input||Ay;return se=T({},se,(n=B.input)!=null?n:c.input),R.jsxs(d.Fragment,{children:[!v&&Ffe,R.jsxs(ae,T({},Z,!Rf(ae)&&{ownerState:T({},fe,Z.ownerState)},{ref:r,onClick:K},Ee,{className:ue(Oe.root,Z.className,u,z&&"MuiInputBase-readOnly"),children:[q,R.jsx($y.Provider,{value:null,children:R.jsx(G,T({ownerState:fe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Qe.disabled,id:S,onAnimationStart:de,name:E,placeholder:F,readOnly:z,required:Qe.required,rows:W,value:pe,onKeyDown:j,onKeyUp:$,type:ie},se,!Rf(G)&&{as:te,ownerState:T({},fe,se.ownerState)},{ref:we,className:ue(Oe.input,se.className,z&&"MuiInputBase-readOnly"),onBlur:ut,onChange:V,onFocus:ht}))}),g,M?M(T({},Qe,{startAdornment:q})):null]}))]})}),My=Nfe;function Lfe(e){return Ue("MuiInput",e)}const Dfe=T({},nc,We("MuiInput",["root","underline","input"])),Xc=Dfe;function Bfe(e){return Ue("MuiOutlinedInput",e)}const zfe=T({},nc,We("MuiOutlinedInput",["root","notchedOutline","input"])),Yo=zfe;function Vfe(e){return Ue("MuiFilledInput",e)}const Ufe=T({},nc,We("MuiFilledInput",["root","underline","input"])),es=Ufe,Wfe=An(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Hfe=An(R.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 qfe(e){return Ue("MuiAvatar",e)}We("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Kfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Gfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return qe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},qfe,t)},Qfe=ne("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]})))}]})),Xfe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Yfe=ne(Hfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Jfe({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 s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const Zfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:f,src:p,srcSet:v,variant:g="circular"}=n,y=Pe(n,Kfe);let S=null;const x=Jfe(T({},c,{src:p,srcSet:v})),m=p||v,b=m&&x!=="error",h=T({},n,{colorDefault:!b,component:s,variant:g}),_=Gfe(h),[C,E]=oce("img",{className:_.img,elementType:Xfe,externalForwardedProps:{slots:u,slotProps:{img:T({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:v,sizes:f},ownerState:h});return b?S=R.jsx(C,T({},E)):o||o===0?S=o:m&&a?S=a[0]:S=R.jsx(Yfe,{ownerState:h,className:_.fallback}),R.jsx(Qfe,T({as:s,ownerState:h,className:ue(_.root,i),ref:r},y,{children:S}))}),vg=Zfe,epe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tpe={entering:{opacity:1},entered:{opacity:1}},rpe=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:g,onExiting:y,style:S,timeout:x=a,TransitionComponent:m=gC}=t,b=Pe(t,epe),h=d.useRef(null),_=Jt(h,s.ref,r),C=F=>z=>{if(F){const M=h.current;z===void 0?F(M):F(M,z)}},E=C(p),w=C((F,z)=>{bC(F);const M=Ju({style:S,timeout:x,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",M),F.style.transition=n.transitions.create("opacity",M),c&&c(F,z)}),O=C(f),P=C(y),k=C(F=>{const z=Ju({style:S,timeout:x,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",z),F.style.transition=n.transitions.create("opacity",z),v&&v(F)}),j=C(g),$=F=>{o&&o(h.current,F)};return R.jsx(m,T({appear:i,in:l,nodeRef:h,onEnter:w,onEntered:O,onEntering:E,onExit:k,onExited:j,onExiting:P,addEndListener:$,timeout:x},b,{children:(F,z)=>d.cloneElement(s,T({style:T({opacity:0,visibility:F==="exited"&&!l?"hidden":void 0},tpe[F],S,s.props.style),ref:_},z))}))}),b4=rpe;function npe(e){return Ue("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const ape=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ope=e=>{const{classes:t,invisible:r}=e;return qe({root:["root",r&&"invisible"]},npe,t)},ipe=ne("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"})),spe=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:S=b4,transitionDuration:x}=i,m=Pe(i,ape),b=T({},i,{component:l,invisible:p}),h=ope(b),_=(n=g.root)!=null?n:f.root;return R.jsx(S,T({in:v,timeout:x},m,{children:R.jsx(ipe,T({"aria-hidden":!0},_,{as:(a=(o=y.root)!=null?o:c.Root)!=null?a:l,className:ue(h.root,u,_==null?void 0:_.className),ownerState:T({},b,_==null?void 0:_.ownerState),classes:h,ref:r,children:s}))}))}),x4=spe,lpe=We("MuiBox",["root"]),upe=lpe,cpe=dg(),dpe=Sse({themeId:Js,defaultTheme:cpe,defaultClassName:upe.root,generateClassName:lC.generate}),Qh=dpe;function fpe(e){return Ue("MuiButton",e)}const ppe=We("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"]),lh=ppe,hpe=d.createContext({}),vpe=hpe,gpe=d.createContext(void 0),mpe=gpe,ype=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bpe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${ge(t)}`,`size${ge(a)}`,`${o}Size${ge(a)}`,`color${ge(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ge(a)}`],endIcon:["icon","endIcon",`iconSize${ge(a)}`]},u=qe(s,fpe,i);return T({},i,u)},w4=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}}),xpe=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ge(r.color)}`],t[`size${ge(r.size)}`],t[`${r.variant}Size${ge(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})`:gt(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})`:gt(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})`:gt(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]}),[`&.${lh.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lh.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 ${gt(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"},[`&.${lh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lh.disabled}`]:{boxShadow:"none"}}),wpe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},w4(e))),Spe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},w4(e))),_pe=d.forwardRef(function(t,r){const n=d.useContext(vpe),a=d.useContext(mpe),o=Of(n,t),i=Ke({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:S=!1,size:x="medium",startIcon:m,type:b,variant:h="text"}=i,_=Pe(i,ype),C=T({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:S,size:x,type:b,variant:h}),E=bpe(C),w=m&&R.jsx(wpe,{className:E.startIcon,ownerState:C,children:m}),O=g&&R.jsx(Spe,{className:E.endIcon,ownerState:C,children:g}),P=a||"";return R.jsxs(xpe,T({ownerState:C,className:ue(n.className,E.root,c,P),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ue(E.focusVisible,y),ref:r,type:b},_,{classes:E,children:[w,s,O]}))}),hn=_pe;function Cpe(e){return Ue("MuiCard",e)}We("MuiCard",["root"]);const Epe=["className","raised"],Ope=e=>{const{classes:t}=e;return qe({root:["root"]},Cpe,t)},Ppe=ne(Yi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Rpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Pe(n,Epe),s=T({},n,{raised:o}),u=Ope(s);return R.jsx(Ppe,T({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))}),oo=Rpe;function Tpe(e){return Ue("MuiCardContent",e)}We("MuiCardContent",["root"]);const $pe=["className","component"],kpe=e=>{const{classes:t}=e;return qe({root:["root"]},Tpe,t)},jpe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ipe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Pe(n,$pe),s=T({},n,{component:o}),u=kpe(s);return R.jsx(jpe,T({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))}),Di=Ipe;function Ape(e){return Ue("MuiCardHeader",e)}const Mpe=We("MuiCardHeader",["root","avatar","action","content","title","subheader"]),MT=Mpe,Fpe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Npe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ape,t)},Lpe=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${MT.title}`]:t.title,[`& .${MT.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Dpe=ne("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Bpe=ne("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),zpe=ne("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Vpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=n,v=Pe(n,Fpe),g=T({},n,{component:s,disableTypography:u}),y=Npe(g);let S=f;S!=null&&S.type!==_t&&!u&&(S=R.jsx(_t,T({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},p,{children:S})));let x=l;return x!=null&&x.type!==_t&&!u&&(x=R.jsx(_t,T({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),R.jsxs(Lpe,T({className:ue(y.root,i),as:s,ref:r,ownerState:g},v,{children:[o&&R.jsx(Dpe,{className:y.avatar,ownerState:g,children:o}),R.jsxs(zpe,{className:y.content,ownerState:g,children:[S,x]}),a&&R.jsx(Bpe,{className:y.action,ownerState:g,children:a})]}))}),FT=Vpe;function Upe(e){return Ue("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Wpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Hpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${ge(a)}`],input:["input"]};return qe(o,Upe,t)},qpe=ne(Ma)(({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})),Kpe=ne("input",{shouldForwardProp:Wr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Gpe=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:v,inputRef:g,name:y,onBlur:S,onChange:x,onFocus:m,readOnly:b,required:h=!1,tabIndex:_,type:C,value:E}=t,w=Pe(t,Wpe),[O,P]=Yu({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),k=po(),j=U=>{m&&m(U),k&&k.onFocus&&k.onFocus(U)},$=U=>{S&&S(U),k&&k.onBlur&&k.onBlur(U)},F=U=>{if(U.nativeEvent.defaultPrevented)return;const q=U.target.checked;P(q),x&&x(U,q)};let z=u;k&&typeof z>"u"&&(z=k.disabled);const M=C==="checkbox"||C==="radio",W=T({},t,{checked:O,disabled:z,disableFocusRipple:l,edge:c}),B=Hpe(W);return R.jsxs(qpe,T({component:"span",className:ue(B.root,i),centerRipple:!0,focusRipple:!l,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:$,ownerState:W,ref:r},w,{children:[R.jsx(Kpe,T({autoFocus:n,checked:a,defaultChecked:s,className:B.input,disabled:z,id:M?p:void 0,name:y,onChange:F,readOnly:b,ref:g,required:h,ownerState:W,tabIndex:_,type:C},C==="checkbox"&&E===void 0?{}:{value:E},v)),O?o:f]}))}),S4=Gpe,Qpe=An(R.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"),Xpe=An(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ype=An(R.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 Jpe(e){return Ue("MuiCheckbox",e)}const Zpe=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),a0=Zpe,ehe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],the=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(a)}`]},i=qe(o,Jpe,t);return T({},t,i)},rhe=ne(S4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ge(r.size)}`],r.color!=="default"&&t[`color${ge(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})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a0.checked}, &.${a0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${a0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nhe=R.jsx(Xpe,{}),ahe=R.jsx(Qpe,{}),ohe=R.jsx(Ype,{}),ihe=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=nhe,color:s="primary",icon:u=ahe,indeterminate:l=!1,indeterminateIcon:c=ohe,inputProps:f,size:p="medium",className:v}=o,g=Pe(o,ehe),y=l?c:u,S=l?c:i,x=T({},o,{color:s,indeterminate:l,size:p}),m=the(x);return R.jsx(rhe,T({type:"checkbox",inputProps:T({"data-indeterminate":l},f),icon:d.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(m.root,v)},g,{classes:m}))}),gg=ihe;function she(e){return Ue("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lhe=["className","color","disableShrink","size","style","thickness","value","variant"];let Fy=e=>e,NT,LT,DT,BT;const Jo=44,uhe=Pc(NT||(NT=Fy` +`),ra.rippleVisible,cce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ra.child,ra.childLeaving,dce,xx,({theme:e})=>e.transitions.easing.easeInOut,ra.childPulsate,fce,({theme:e})=>e.transitions.easing.easeInOut),vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Pe(n,lce),[u,l]=d.useState([]),c=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=d.useRef(!1),v=Ss(),g=d.useRef(null),y=d.useRef(null),S=d.useCallback(h=>{const{pulsate:_,rippleX:C,rippleY:E,rippleSize:w,cb:O}=h;l(P=>[...P,R.jsx(hce,{classes:{ripple:ue(o.ripple,ra.ripple),rippleVisible:ue(o.rippleVisible,ra.rippleVisible),ripplePulsate:ue(o.ripplePulsate,ra.ripplePulsate),child:ue(o.child,ra.child),childLeaving:ue(o.childLeaving,ra.childLeaving),childPulsate:ue(o.childPulsate,ra.childPulsate)},timeout:xx,pulsate:_,rippleX:C,rippleY:E,rippleSize:w},c.current)]),c.current+=1,f.current=O},[o]),x=d.useCallback((h={},_={},C=()=>{})=>{const{pulsate:E=!1,center:w=a||_.pulsate,fakeElement:O=!1}=_;if((h==null?void 0:h.type)==="mousedown"&&p.current){p.current=!1;return}(h==null?void 0:h.type)==="touchstart"&&(p.current=!0);const P=O?null:y.current,k=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,$,F;if(w||h===void 0||h.clientX===0&&h.clientY===0||!h.clientX&&!h.touches)j=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:z,clientY:M}=h.touches&&h.touches.length>0?h.touches[0]:h;j=Math.round(z-k.left),$=Math.round(M-k.top)}if(w)F=Math.sqrt((2*k.width**2+k.height**2)/3),F%2===0&&(F+=1);else{const z=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,M=Math.max(Math.abs((P?P.clientHeight:0)-$),$)*2+2;F=Math.sqrt(z**2+M**2)}h!=null&&h.touches?g.current===null&&(g.current=()=>{S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},v.start(uce,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:E,rippleX:j,rippleY:$,rippleSize:F,cb:C})},[a,S,v]),m=d.useCallback(()=>{x({},{pulsate:!0})},[x]),b=d.useCallback((h,_)=>{if(v.clear(),(h==null?void 0:h.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(h,_)});return}g.current=null,l(C=>C.length>0?C.slice(1):C),f.current=_},[v]);return d.useImperativeHandle(r,()=>({pulsate:m,start:x,stop:b}),[m,x,b]),R.jsx(pce,T({className:ue(ra.root,o.root,i),ref:y},s,{children:R.jsx(Xue,{component:null,exit:!0,children:u})}))}),gce=vce;function mce(e){return Ue("MuiButtonBase",e)}const yce=We("MuiButtonBase",["root","disabled","focusVisible"]),bce=yce,xce=["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"],wce=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=qe({root:["root",t&&"disabled",r&&"focusVisible"]},mce,a);return r&&n&&(i.root+=` ${n}`),i},Sce=ne("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"},[`&.${bce.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:g,onClick:y,onContextMenu:S,onDragLeave:x,onFocus:m,onFocusVisible:b,onKeyDown:h,onKeyUp:_,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:O,onTouchMove:P,onTouchStart:k,tabIndex:j=0,TouchRippleProps:$,touchRippleRef:F,type:z}=n,M=Pe(n,xce),W=d.useRef(null),B=d.useRef(null),U=Jt(B,F),{isFocusVisibleRef:q,onFocus:ie,onBlur:oe,ref:Ee}=Cy(),[pe,Te]=d.useState(!1);l&&pe&&Te(!1),d.useImperativeHandle(a,()=>({focusVisible:()=>{Te(!0),W.current.focus()}}),[]);const[ye,be]=d.useState(!1);d.useEffect(()=>{be(!0)},[]);const we=ye&&!c&&!l;d.useEffect(()=>{pe&&p&&!c&&ye&&B.current.pulsate()},[c,p,pe,ye]);function ve(he,Re,Be=f){return fn(Ye=>(Re&&Re(Ye),!Be&&B.current&&B.current[he](Ye),!0))}const De=ve("start",C),Me=ve("stop",S),Qe=ve("stop",x),Ne=ve("stop",w),Ae=ve("stop",he=>{pe&&he.preventDefault(),E&&E(he)}),He=ve("start",k),ht=ve("stop",O),ut=ve("stop",P),V=ve("stop",he=>{oe(he),q.current===!1&&Te(!1),g&&g(he)},!1),K=fn(he=>{W.current||(W.current=he.currentTarget),ie(he),q.current===!0&&(Te(!0),b&&b(he)),m&&m(he)}),te=()=>{const he=W.current;return u&&u!=="button"&&!(he.tagName==="A"&&he.href)},se=d.useRef(!1),de=fn(he=>{p&&!se.current&&pe&&B.current&&he.key===" "&&(se.current=!0,B.current.stop(he,()=>{B.current.start(he)})),he.target===he.currentTarget&&te()&&he.key===" "&&he.preventDefault(),h&&h(he),he.target===he.currentTarget&&te()&&he.key==="Enter"&&!l&&(he.preventDefault(),y&&y(he))}),fe=fn(he=>{p&&he.key===" "&&B.current&&pe&&!he.defaultPrevented&&(se.current=!1,B.current.stop(he,()=>{B.current.pulsate(he)})),_&&_(he),y&&he.target===he.currentTarget&&te()&&he.key===" "&&!he.defaultPrevented&&y(he)});let Oe=u;Oe==="button"&&(M.href||M.to)&&(Oe=v);const ae={};Oe==="button"?(ae.type=z===void 0?"button":z,ae.disabled=l):(!M.href&&!M.to&&(ae.role="button"),l&&(ae["aria-disabled"]=l));const Z=Jt(r,Ee,W),G=T({},n,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:pe}),le=wce(G);return R.jsxs(Sce,T({as:Oe,className:ue(le.root,s),ownerState:G,onBlur:V,onClick:y,onContextMenu:Me,onFocus:K,onKeyDown:de,onKeyUp:fe,onMouseDown:De,onMouseLeave:Ae,onMouseUp:Ne,onDragLeave:Qe,onTouchEnd:ht,onTouchMove:ut,onTouchStart:He,ref:Z,tabIndex:l?-1:j,type:z},ae,M,{children:[i,we?R.jsx(gce,T({ref:U,center:o},$)):null]}))}),Ma=_ce;function Cce(e){return Ue("MuiIconButton",e)}const Ece=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oce=Ece,Pce=["edge","children","className","color","disabled","disableFocusRipple","size"],Rce=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${ge(n)}`,a&&`edge${ge(a)}`,`size${ge(o)}`]};return qe(i,Cce,t)},Tce=ne(Ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ge(r.color)}`],r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(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})`:gt(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})`:gt(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)},{[`&.${Oce.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$ce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:s="default",disabled:u=!1,disableFocusRipple:l=!1,size:c="medium"}=n,f=Pe(n,Pce),p=T({},n,{edge:a,color:s,disabled:u,disableFocusRipple:l,size:c}),v=Rce(p);return R.jsx(Tce,T({className:ue(v.root,i),centerRipple:!0,focusRipple:!l,disabled:u,ref:r},f,{ownerState:p,children:o}))}),Pr=$ce;function kce(e){return Ue("MuiTypography",e)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const jce=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ice=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${ge(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return qe(s,kce,i)},Ace=ne("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${ge(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})),_T={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mce={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Fce=e=>Mce[e]||e,Nce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTypography"}),a=Fce(n.color),o=Sy(T({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=_T}=o,g=Pe(o,jce),y=T({},o,{align:i,color:a,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:p,variantMapping:v}),S=u||(f?"p":v[p]||_T[p])||"span",x=Ice(y);return R.jsx(Ace,T({as:S,ref:r,ownerState:y,className:ue(x.root,s)},g))}),_t=Nce;function Lce(e){return Ue("MuiAppBar",e)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Dce=["className","color","enableColorOnDark","position"],Bce=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${ge(t)}`,`position${ge(r)}`]};return qe(a,Lce,n)},oh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,zce=ne(Yi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],t[`color${ge(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:oh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:oh(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:oh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:oh(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"}))}),Vce=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:s="fixed"}=n,u=Pe(n,Dce),l=T({},n,{color:o,position:s,enableColorOnDark:i}),c=Bce(l);return R.jsx(zce,T({square:!0,component:"header",ownerState:l,elevation:4,className:ue(c.root,a,s==="fixed"&&"mui-fixed"),ref:r},u))}),Uce=Vce;var xC={};Object.defineProperty(xC,"__esModule",{value:!0});var i4=xC.default=void 0,Wce=qce(d),Hce=r4;function s4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(s4=function(n){return n?r:t})(e)}function qce(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=s4(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 Kce(e){return Object.keys(e).length===0}function Gce(e=null){const t=Wce.useContext(Hce.ThemeContext);return!t||Kce(t)?e:t}i4=xC.default=Gce;var Tn="top",ha="bottom",va="right",$n="left",wC="auto",gp=[Tn,ha,va,$n],Zu="start",$f="end",Qce="clippingParents",l4="viewport",Qc="popper",Xce="reference",CT=gp.reduce(function(e,t){return e.concat([t+"-"+Zu,t+"-"+$f])},[]),u4=[].concat(gp,[wC]).reduce(function(e,t){return e.concat([t,t+"-"+Zu,t+"-"+$f])},[]),Yce="beforeRead",Jce="read",Zce="afterRead",ede="beforeMain",tde="main",rde="afterMain",nde="beforeWrite",ade="write",ode="afterWrite",ide=[Yce,Jce,Zce,ede,tde,rde,nde,ade,ode];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function Kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tl(e){var t=Kn(e).Element;return e instanceof t||e instanceof Element}function la(e){var t=Kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SC(e){if(typeof ShadowRoot>"u")return!1;var t=Kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sde(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];!la(o)||!ao(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function lde(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,l){return u[l]="",u},{});!la(a)||!ao(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const ude={name:"applyStyles",enabled:!0,phase:"write",fn:sde,effect:lde,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ls=Math.max,fg=Math.min,ec=Math.round;function wx(){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 c4(){return!/^((?!chrome|android).)*safari/i.test(wx())}function tc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&la(e)&&(a=e.offsetWidth>0&&ec(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ec(n.height)/e.offsetHeight||1);var i=tl(e)?Kn(e):window,s=i.visualViewport,u=!c4()&&r,l=(n.left+(u&&s?s.offsetLeft:0))/a,c=(n.top+(u&&s?s.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:c,right:l+f,bottom:c+p,left:l,x:l,y:c}}function _C(e){var t=tc(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 d4(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&SC(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Lo(e){return Kn(e).getComputedStyle(e)}function cde(e){return["table","td","th"].indexOf(ao(e))>=0}function Ji(e){return((tl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ry(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||(SC(e)?e.host:null)||Ji(e)}function ET(e){return!la(e)||Lo(e).position==="fixed"?null:e.offsetParent}function dde(e){var t=/firefox/i.test(wx()),r=/Trident/i.test(wx());if(r&&la(e)){var n=Lo(e);if(n.position==="fixed")return null}var a=Ry(e);for(SC(a)&&(a=a.host);la(a)&&["html","body"].indexOf(ao(a))<0;){var o=Lo(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 mp(e){for(var t=Kn(e),r=ET(e);r&&cde(r)&&Lo(r).position==="static";)r=ET(r);return r&&(ao(r)==="html"||ao(r)==="body"&&Lo(r).position==="static")?t:r||dde(e)||t}function CC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Md(e,t,r){return Ls(e,fg(t,r))}function fde(e,t,r){var n=Md(e,t,r);return n>r?r:n}function f4(){return{top:0,right:0,bottom:0,left:0}}function p4(e){return Object.assign({},f4(),e)}function h4(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var pde=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,p4(typeof t!="number"?t:h4(t,gp))};function hde(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=ro(r.placement),u=CC(s),l=[$n,va].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!i)){var f=pde(a.padding,r),p=_C(o),v=u==="y"?Tn:$n,g=u==="y"?ha:va,y=r.rects.reference[c]+r.rects.reference[u]-i[u]-r.rects.popper[c],S=i[u]-r.rects.reference[u],x=mp(o),m=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,b=y/2-S/2,h=f[v],_=m-p[c]-f[g],C=m/2-p[c]/2+b,E=Md(h,C,_),w=u;r.modifiersData[n]=(t={},t[w]=E,t.centerOffset=E-C,t)}}function vde(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)||d4(t.elements.popper,a)&&(t.elements.arrow=a))}const gde={name:"arrow",enabled:!0,phase:"main",fn:hde,effect:vde,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rc(e){return e.split("-")[1]}var mde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yde(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ec(r*a)/a||0,y:ec(n*a)/a||0}}function OT(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=i.x,v=p===void 0?0:p,g=i.y,y=g===void 0?0:g,S=typeof c=="function"?c({x:v,y}):{x:v,y};v=S.x,y=S.y;var x=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=$n,h=Tn,_=window;if(l){var C=mp(r),E="clientHeight",w="clientWidth";if(C===Kn(r)&&(C=Ji(r),Lo(C).position!=="static"&&s==="absolute"&&(E="scrollHeight",w="scrollWidth")),C=C,a===Tn||(a===$n||a===va)&&o===$f){h=ha;var O=f&&C===_&&_.visualViewport?_.visualViewport.height:C[E];y-=O-n.height,y*=u?1:-1}if(a===$n||(a===Tn||a===ha)&&o===$f){b=va;var P=f&&C===_&&_.visualViewport?_.visualViewport.width:C[w];v-=P-n.width,v*=u?1:-1}}var k=Object.assign({position:s},l&&mde),j=c===!0?yde({x:v,y},Kn(r)):{x:v,y};if(v=j.x,y=j.y,u){var $;return Object.assign({},k,($={},$[h]=m?"0":"",$[b]=x?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",$))}return Object.assign({},k,(t={},t[h]=m?y+"px":"",t[b]=x?v+"px":"",t.transform="",t))}function bde(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,l={placement:ro(t.placement),variation:rc(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,OT(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,OT(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xde={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bde,data:{}};var ih={passive:!0};function wde(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Kn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,ih)}),s&&u.addEventListener("resize",r.update,ih),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,ih)}),s&&u.removeEventListener("resize",r.update,ih)}}const Sde={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wde,data:{}};var _de={left:"right",right:"left",bottom:"top",top:"bottom"};function Gh(e){return e.replace(/left|right|bottom|top/g,function(t){return _de[t]})}var Cde={start:"end",end:"start"};function PT(e){return e.replace(/start|end/g,function(t){return Cde[t]})}function EC(e){var t=Kn(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function OC(e){return tc(Ji(e)).left+EC(e).scrollLeft}function Ede(e,t){var r=Kn(e),n=Ji(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var l=c4();(l||!l&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+OC(e),y:u}}function Ode(e){var t,r=Ji(e),n=EC(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Ls(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Ls(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+OC(e),u=-n.scrollTop;return Lo(a||r).direction==="rtl"&&(s+=Ls(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}function PC(e){var t=Lo(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function v4(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:la(e)&&PC(e)?e:v4(Ry(e))}function Fd(e,t){var r;t===void 0&&(t=[]);var n=v4(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Kn(n),i=a?[o].concat(o.visualViewport||[],PC(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Fd(Ry(i)))}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pde(e,t){var r=tc(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 RT(e,t,r){return t===l4?Sx(Ede(e,r)):tl(t)?Pde(t,r):Sx(Ode(Ji(e)))}function Rde(e){var t=Fd(Ry(e)),r=["absolute","fixed"].indexOf(Lo(e).position)>=0,n=r&&la(e)?mp(e):e;return tl(n)?t.filter(function(a){return tl(a)&&d4(a,n)&&ao(a)!=="body"}):[]}function Tde(e,t,r,n){var a=t==="clippingParents"?Rde(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,l){var c=RT(e,l,n);return u.top=Ls(c.top,u.top),u.right=fg(c.right,u.right),u.bottom=fg(c.bottom,u.bottom),u.left=Ls(c.left,u.left),u},RT(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function g4(e){var t=e.reference,r=e.element,n=e.placement,a=n?ro(n):null,o=n?rc(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Tn:u={x:i,y:t.y-r.height};break;case ha:u={x:i,y:t.y+t.height};break;case va:u={x:t.x+t.width,y:s};break;case $n:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=a?CC(a):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Zu:u[l]=u[l]-(t[c]/2-r[c]/2);break;case $f:u[l]=u[l]+(t[c]/2-r[c]/2);break}}return u}function kf(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?Qce:s,l=r.rootBoundary,c=l===void 0?l4:l,f=r.elementContext,p=f===void 0?Qc:f,v=r.altBoundary,g=v===void 0?!1:v,y=r.padding,S=y===void 0?0:y,x=p4(typeof S!="number"?S:h4(S,gp)),m=p===Qc?Xce:Qc,b=e.rects.popper,h=e.elements[g?m:p],_=Tde(tl(h)?h:h.contextElement||Ji(e.elements.popper),u,c,i),C=tc(e.elements.reference),E=g4({reference:C,element:b,strategy:"absolute",placement:a}),w=Sx(Object.assign({},b,E)),O=p===Qc?w:C,P={top:_.top-O.top+x.top,bottom:O.bottom-_.bottom+x.bottom,left:_.left-O.left+x.left,right:O.right-_.right+x.right},k=e.modifiersData.offset;if(p===Qc&&k){var j=k[a];Object.keys(P).forEach(function($){var F=[va,ha].indexOf($)>=0?1:-1,z=[Tn,ha].indexOf($)>=0?"y":"x";P[$]+=j[z]*F})}return P}function $de(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?u4:u,c=rc(n),f=c?s?CT:CT.filter(function(g){return rc(g)===c}):gp,p=f.filter(function(g){return l.indexOf(g)>=0});p.length===0&&(p=f);var v=p.reduce(function(g,y){return g[y]=kf(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[ro(y)],g},{});return Object.keys(v).sort(function(g,y){return v[g]-v[y]})}function kde(e){if(ro(e)===wC)return[];var t=Gh(e);return[PT(e),t,PT(t)]}function jde(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,y=r.allowedAutoPlacements,S=t.options.placement,x=ro(S),m=x===S,b=u||(m||!g?[Gh(S)]:kde(S)),h=[S].concat(b).reduce(function(pe,Te){return pe.concat(ro(Te)===wC?$de(t,{placement:Te,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:y}):Te)},[]),_=t.rects.reference,C=t.rects.popper,E=new Map,w=!0,O=h[0],P=0;P=0,z=F?"width":"height",M=kf(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),W=F?$?va:$n:$?ha:Tn;_[z]>C[z]&&(W=Gh(W));var B=Gh(W),U=[];if(o&&U.push(M[j]<=0),s&&U.push(M[W]<=0,M[B]<=0),U.every(function(pe){return pe})){O=k,w=!1;break}E.set(k,U)}if(w)for(var q=g?3:1,ie=function(Te){var ye=h.find(function(be){var we=E.get(be);if(we)return we.slice(0,Te).every(function(ve){return ve})});if(ye)return O=ye,"break"},oe=q;oe>0;oe--){var Ee=ie(oe);if(Ee==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const Ide={name:"flip",enabled:!0,phase:"main",fn:jde,requiresIfExists:["offset"],data:{_skip:!1}};function TT(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 $T(e){return[Tn,va,ha,$n].some(function(t){return e[t]>=0})}function Ade(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kf(t,{elementContext:"reference"}),s=kf(t,{altBoundary:!0}),u=TT(i,n),l=TT(s,a,o),c=$T(u),f=$T(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Mde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ade};function Fde(e,t,r){var n=ro(e),a=[$n,Tn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[$n,va].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function Nde(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=u4.reduce(function(c,f){return c[f]=Fde(f,t.rects,o),c},{}),s=i[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Lde={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nde};function Dde(e){var t=e.state,r=e.name;t.modifiersData[r]=g4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Bde={name:"popperOffsets",enabled:!0,phase:"read",fn:Dde,data:{}};function zde(e){return e==="x"?"y":"x"}function Vde(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,v=p===void 0?!0:p,g=r.tetherOffset,y=g===void 0?0:g,S=kf(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),x=ro(t.placement),m=rc(t.placement),b=!m,h=CC(x),_=zde(h),C=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(o){var $,F=h==="y"?Tn:$n,z=h==="y"?ha:va,M=h==="y"?"height":"width",W=C[h],B=W+S[F],U=W-S[z],q=v?-w[M]/2:0,ie=m===Zu?E[M]:w[M],oe=m===Zu?-w[M]:-E[M],Ee=t.elements.arrow,pe=v&&Ee?_C(Ee):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:f4(),ye=Te[F],be=Te[z],we=Md(0,E[M],pe[M]),ve=b?E[M]/2-q-we-ye-P.mainAxis:ie-we-ye-P.mainAxis,De=b?-E[M]/2+q+we+be+P.mainAxis:oe+we+be+P.mainAxis,Me=t.elements.arrow&&mp(t.elements.arrow),Qe=Me?h==="y"?Me.clientTop||0:Me.clientLeft||0:0,Ne=($=k==null?void 0:k[h])!=null?$:0,Ae=W+ve-Ne-Qe,He=W+De-Ne,ht=Md(v?fg(B,Ae):B,W,v?Ls(U,He):U);C[h]=ht,j[h]=ht-W}if(s){var ut,V=h==="x"?Tn:$n,K=h==="x"?ha:va,te=C[_],se=_==="y"?"height":"width",de=te+S[V],fe=te-S[K],Oe=[Tn,$n].indexOf(x)!==-1,ae=(ut=k==null?void 0:k[_])!=null?ut:0,Z=Oe?de:te-E[se]-w[se]-ae+P.altAxis,G=Oe?te+E[se]+w[se]-ae-P.altAxis:fe,le=v&&Oe?fde(Z,te,G):Md(v?Z:de,te,v?G:fe);C[_]=le,j[_]=le-te}t.modifiersData[n]=j}}const Ude={name:"preventOverflow",enabled:!0,phase:"main",fn:Vde,requiresIfExists:["offset"]};function Wde(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hde(e){return e===Kn(e)||!la(e)?EC(e):Wde(e)}function qde(e){var t=e.getBoundingClientRect(),r=ec(t.width)/e.offsetWidth||1,n=ec(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Kde(e,t,r){r===void 0&&(r=!1);var n=la(t),a=la(t)&&qde(t),o=Ji(t),i=tc(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ao(t)!=="body"||PC(o))&&(s=Hde(t)),la(t)?(u=tc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=OC(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}function Gde(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Qde(e){var t=Gde(e);return ide.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Xde(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yde(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 kT={placement:"bottom",modifiers:[],strategy:"absolute"};function jT(){for(var e=arguments.length,t=new Array(e),r=0;r{o||s(tfe(a)||document.body)},[a,o]),qn(()=>{if(i&&!o)return sg(r,i),()=>{sg(r,null)}},[r,i,o]),o){if(d.isValidElement(n)){const l={ref:u};return d.cloneElement(n,l)}return R.jsx(d.Fragment,{children:n})}return R.jsx(d.Fragment,{children:i&&tp.createPortal(n,i)})}),m4=rfe;function nfe(e){return Ue("MuiPopper",e)}We("MuiPopper",["root"]);const afe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ofe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ife(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 _x(e){return typeof e=="function"?e():e}function sfe(e){return e.nodeType!==void 0}const lfe=e=>{const{classes:t}=e;return qe({root:["root"]},nfe,t)},ufe={},cfe=d.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:i,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:p,slotProps:v={},slots:g={},TransitionProps:y}=t,S=Pe(t,afe),x=d.useRef(null),m=Jt(x,r),b=d.useRef(null),h=Jt(b,p),_=d.useRef(h);qn(()=>{_.current=h},[h]),d.useImperativeHandle(p,()=>b.current,[]);const C=ife(c,i),[E,w]=d.useState(C),[O,P]=d.useState(_x(a));d.useEffect(()=>{b.current&&b.current.forceUpdate()}),d.useEffect(()=>{a&&P(_x(a))},[a]),qn(()=>{if(!O||!l)return;const z=B=>{w(B.placement)};let M=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{z(B)}}];u!=null&&(M=M.concat(u)),f&&f.modifiers!=null&&(M=M.concat(f.modifiers));const W=efe(O,x.current,T({placement:C},f,{modifiers:M}));return _.current(W),()=>{W.destroy(),_.current(null)}},[O,s,u,l,f,C]);const k={placement:E};y!==null&&(k.TransitionProps=y);const j=lfe(t),$=(n=g.root)!=null?n:"div",F=fa({elementType:$,externalSlotProps:v.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:j.root});return R.jsx($,T({},F,{children:typeof o=="function"?o(k):o}))}),dfe=d.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:p=ufe,popperRef:v,style:g,transition:y=!1,slotProps:S={},slots:x={}}=t,m=Pe(t,ofe),[b,h]=d.useState(!0),_=()=>{h(!1)},C=()=>{h(!0)};if(!u&&!c&&(!y||b))return null;let E;if(o)E=o;else if(n){const P=_x(n);E=P&&sfe(P)?wr(P).body:wr(null).body}const w=!c&&u&&(!y||b)?"none":void 0,O=y?{in:c,onEnter:_,onExited:C}:void 0;return R.jsx(m4,{disablePortal:s,container:E,children:R.jsx(cfe,T({anchorEl:n,direction:i,disablePortal:s,modifiers:l,ref:r,open:y?!b:c,placement:f,popperOptions:p,popperRef:v,slotProps:S,slots:x},m,{style:T({position:"fixed",top:0,left:0,display:w},g),TransitionProps:O,children:a}))})}),ffe=dfe,pfe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],hfe=ne(ffe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vfe=d.forwardRef(function(t,r){var n;const a=i4(),o=Ke({props:t,name:"MuiPopper"}),{anchorEl:i,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m,slots:b,slotProps:h}=o,_=Pe(o,pfe),C=(n=b==null?void 0:b.root)!=null?n:u==null?void 0:u.Root,E=T({anchorEl:i,container:c,disablePortal:f,keepMounted:p,modifiers:v,open:g,placement:y,popperOptions:S,popperRef:x,transition:m},_);return R.jsx(hfe,T({as:s,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:h??l},E,{ref:r}))}),y4=vfe,gfe=An(R.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function mfe(e){return Ue("MuiChip",e)}const yfe=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Et=yfe,bfe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],xfe=e=>{const{classes:t,disabled:r,size:n,color:a,iconColor:o,onDelete:i,clickable:s,variant:u}=e,l={root:["root",u,r&&"disabled",`size${ge(n)}`,`color${ge(a)}`,s&&"clickable",s&&`clickableColor${ge(a)}`,i&&"deletable",i&&`deletableColor${ge(a)}`,`${u}${ge(a)}`],label:["label",`label${ge(n)}`],avatar:["avatar",`avatar${ge(n)}`,`avatarColor${ge(a)}`],icon:["icon",`icon${ge(n)}`,`iconColor${ge(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ge(n)}`,`deleteIconColor${ge(a)}`,`deleteIcon${ge(u)}Color${ge(a)}`]};return qe(l,mfe,t)},wfe=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:a,clickable:o,onDelete:i,size:s,variant:u}=r;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${ge(s)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${ge(n)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${ge(s)}`]},{[`& .${Et.icon}`]:t[`iconColor${ge(a)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(s)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${ge(n)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${ge(u)}Color${ge(n)}`]},t.root,t[`size${ge(s)}`],t[`color${ge(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ge(n)})`],i&&t.deletable,i&&n!=="default"&&t[`deletableColor${ge(n)}`],t[u],t[`${u}${ge(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return T({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Et.icon}`]:T({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&T({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:T({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:gt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:gt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:gt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>T({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>T({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Et.avatar}`]:{marginLeft:4},[`& .${Et.avatarSmall}`]:{marginLeft:2},[`& .${Et.icon}`]:{marginLeft:4},[`& .${Et.iconSmall}`]:{marginLeft:2},[`& .${Et.deleteIcon}`]:{marginRight:5},[`& .${Et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:gt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:gt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Sfe=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ge(n)}`]]}})(({ownerState:e})=>T({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function IT(e){return e.key==="Backspace"||e.key==="Delete"}const _fe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:i,color:s="default",component:u,deleteIcon:l,disabled:c=!1,icon:f,label:p,onClick:v,onDelete:g,onKeyDown:y,onKeyUp:S,size:x="medium",variant:m="filled",tabIndex:b,skipFocusWhenDisabled:h=!1}=n,_=Pe(n,bfe),C=d.useRef(null),E=Jt(C,r),w=U=>{U.stopPropagation(),g&&g(U)},O=U=>{U.currentTarget===U.target&&IT(U)&&U.preventDefault(),y&&y(U)},P=U=>{U.currentTarget===U.target&&(g&&IT(U)?g(U):U.key==="Escape"&&C.current&&C.current.blur()),S&&S(U)},k=i!==!1&&v?!0:i,j=k||g?Ma:u||"div",$=T({},n,{component:j,disabled:c,size:x,color:s,iconColor:d.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:k,variant:m}),F=xfe($),z=j===Ma?T({component:u||"div",focusVisibleClassName:F.focusVisible},g&&{disableRipple:!0}):{};let M=null;g&&(M=l&&d.isValidElement(l)?d.cloneElement(l,{className:ue(l.props.className,F.deleteIcon),onClick:w}):R.jsx(gfe,{className:ue(F.deleteIcon),onClick:w}));let W=null;a&&d.isValidElement(a)&&(W=d.cloneElement(a,{className:ue(F.avatar,a.props.className)}));let B=null;return f&&d.isValidElement(f)&&(B=d.cloneElement(f,{className:ue(F.icon,f.props.className)})),R.jsxs(wfe,T({as:j,className:ue(F.root,o),disabled:k&&c?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:P,ref:E,tabIndex:h&&c?-1:b,ownerState:$},z,_,{children:[W||B,R.jsx(Sfe,{className:ue(F.label),ownerState:$,children:p}),M]}))}),Cfe=_fe,Efe=["onChange","maxRows","minRows","style","value"];function sh(e){return parseInt(e,10)||0}const Ofe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Pfe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Rfe=d.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:s}=t,u=Pe(t,Efe),{current:l}=d.useRef(s!=null),c=d.useRef(null),f=Jt(r,c),p=d.useRef(null),v=d.useRef(null),g=d.useCallback(()=>{const x=c.current,b=da(x).getComputedStyle(x);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const h=v.current;h.style.width=b.width,h.value=x.value||t.placeholder||"x",h.value.slice(-1)===` +`&&(h.value+=" ");const _=b.boxSizing,C=sh(b.paddingBottom)+sh(b.paddingTop),E=sh(b.borderBottomWidth)+sh(b.borderTopWidth),w=h.scrollHeight;h.value="x";const O=h.scrollHeight;let P=w;o&&(P=Math.max(Number(o)*O,P)),a&&(P=Math.min(Number(a)*O,P)),P=Math.max(P,O);const k=P+(_==="border-box"?C+E:0),j=Math.abs(P-w)<=1;return{outerHeightStyle:k,overflowing:j}},[a,o,t.placeholder]),y=d.useCallback(()=>{const x=g();if(Pfe(x))return;const m=x.outerHeightStyle,b=c.current;p.current!==m&&(p.current=m,b.style.height=`${m}px`),b.style.overflow=x.overflowing?"hidden":""},[g]);qn(()=>{const x=()=>{y()};let m;const b=Rc(x),h=c.current,_=da(h);_.addEventListener("resize",b);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(h)),()=>{b.clear(),cancelAnimationFrame(m),_.removeEventListener("resize",b),C&&C.disconnect()}},[g,y]),qn(()=>{y()});const S=x=>{l||y(),n&&n(x)};return R.jsxs(d.Fragment,{children:[R.jsx("textarea",T({value:s,onChange:S,ref:f,rows:o,style:i},u)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:T({},Ofe.shadow,i,{paddingTop:0,paddingBottom:0})})]})}),Tfe=Rfe;function Zi({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 $fe=d.createContext(void 0),Ty=$fe;function po(){return d.useContext(Ty)}function b4(e){return R.jsx(vse,T({},e,{defaultTheme:Ey,themeId:Js}))}function AT(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pg(e,t=!1){return e&&(AT(e.value)&&e.value!==""||t&&AT(e.defaultValue)&&e.defaultValue!=="")}function kfe(e){return e.startAdornment}function jfe(e){return Ue("MuiInputBase",e)}const Ife=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),nc=Ife,Afe=["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"],$y=(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${ge(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ky=(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]},Mfe=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:s,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:f,size:p,startAdornment:v,type:g}=e,y={root:["root",`color${ge(r)}`,n&&"disabled",a&&"error",u&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${ge(p)}`,c&&"multiline",v&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return qe(y,jfe,t)},jy=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$y})(({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",[`&.${nc.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%"})),Iy=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ky})(({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] + .${nc.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},[`&.${nc.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"})}),Ffe=R.jsx(b4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Nfe=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:u,components:l={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:g,fullWidth:y=!1,id:S,inputComponent:x="input",inputProps:m={},inputRef:b,maxRows:h,minRows:_,multiline:C=!1,name:E,onBlur:w,onChange:O,onClick:P,onFocus:k,onKeyDown:j,onKeyUp:$,placeholder:F,readOnly:z,renderSuffix:M,rows:W,slotProps:B={},slots:U={},startAdornment:q,type:ie="text",value:oe}=a,Ee=Pe(a,Afe),pe=m.value!=null?m.value:oe,{current:Te}=d.useRef(pe!=null),ye=d.useRef(),be=d.useCallback(le=>{},[]),we=Jt(ye,b,m.ref,be),[ve,De]=d.useState(!1),Me=po(),Qe=Zi({props:a,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Me?Me.focused:ve,d.useEffect(()=>{!Me&&p&&ve&&(De(!1),w&&w())},[Me,p,ve,w]);const Ne=Me&&Me.onFilled,Ae=Me&&Me.onEmpty,He=d.useCallback(le=>{pg(le)?Ne&&Ne():Ae&&Ae()},[Ne,Ae]);qn(()=>{Te&&He({value:pe})},[pe,He,Te]);const ht=le=>{if(Qe.disabled){le.stopPropagation();return}k&&k(le),m.onFocus&&m.onFocus(le),Me&&Me.onFocus?Me.onFocus(le):De(!0)},ut=le=>{w&&w(le),m.onBlur&&m.onBlur(le),Me&&Me.onBlur?Me.onBlur(le):De(!1)},V=(le,...he)=>{if(!Te){const Re=le.target||ye.current;if(Re==null)throw new Error(No(1));He({value:Re.value})}m.onChange&&m.onChange(le,...he),O&&O(le,...he)};d.useEffect(()=>{He(ye.current)},[]);const K=le=>{ye.current&&le.currentTarget===le.target&&ye.current.focus(),P&&P(le)};let te=x,se=m;C&&te==="input"&&(W?se=T({type:void 0,minRows:W,maxRows:W},se):se=T({type:void 0,maxRows:h,minRows:_},se),te=Tfe);const de=le=>{He(le.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};d.useEffect(()=>{Me&&Me.setAdornedStart(!!q)},[Me,q]);const fe=T({},a,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:g,error:Qe.error,focused:Qe.focused,formControl:Me,fullWidth:y,hiddenLabel:Qe.hiddenLabel,multiline:C,size:Qe.size,startAdornment:q,type:ie}),Oe=Mfe(fe),ae=U.root||l.Root||jy,Z=B.root||c.root||{},G=U.input||l.Input||Iy;return se=T({},se,(n=B.input)!=null?n:c.input),R.jsxs(d.Fragment,{children:[!v&&Ffe,R.jsxs(ae,T({},Z,!Rf(ae)&&{ownerState:T({},fe,Z.ownerState)},{ref:r,onClick:K},Ee,{className:ue(Oe.root,Z.className,u,z&&"MuiInputBase-readOnly"),children:[q,R.jsx(Ty.Provider,{value:null,children:R.jsx(G,T({ownerState:fe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:f,disabled:Qe.disabled,id:S,onAnimationStart:de,name:E,placeholder:F,readOnly:z,required:Qe.required,rows:W,value:pe,onKeyDown:j,onKeyUp:$,type:ie},se,!Rf(G)&&{as:te,ownerState:T({},fe,se.ownerState)},{ref:we,className:ue(Oe.input,se.className,z&&"MuiInputBase-readOnly"),onBlur:ut,onChange:V,onFocus:ht}))}),g,M?M(T({},Qe,{startAdornment:q})):null]}))]})}),Ay=Nfe;function Lfe(e){return Ue("MuiInput",e)}const Dfe=T({},nc,We("MuiInput",["root","underline","input"])),Xc=Dfe;function Bfe(e){return Ue("MuiOutlinedInput",e)}const zfe=T({},nc,We("MuiOutlinedInput",["root","notchedOutline","input"])),Yo=zfe;function Vfe(e){return Ue("MuiFilledInput",e)}const Ufe=T({},nc,We("MuiFilledInput",["root","underline","input"])),es=Ufe,Wfe=An(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Hfe=An(R.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 qfe(e){return Ue("MuiAvatar",e)}We("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Kfe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Gfe=e=>{const{classes:t,variant:r,colorDefault:n}=e;return qe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},qfe,t)},Qfe=ne("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]})))}]})),Xfe=ne("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Yfe=ne(Hfe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Jfe({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 s=new Image;return s.onload=()=>{i&&o("loaded")},s.onerror=()=>{i&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=r,n&&(s.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const Zfe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:s="div",slots:u={},slotProps:l={},imgProps:c,sizes:f,src:p,srcSet:v,variant:g="circular"}=n,y=Pe(n,Kfe);let S=null;const x=Jfe(T({},c,{src:p,srcSet:v})),m=p||v,b=m&&x!=="error",h=T({},n,{colorDefault:!b,component:s,variant:g}),_=Gfe(h),[C,E]=oce("img",{className:_.img,elementType:Xfe,externalForwardedProps:{slots:u,slotProps:{img:T({},c,l.img)}},additionalProps:{alt:a,src:p,srcSet:v,sizes:f},ownerState:h});return b?S=R.jsx(C,T({},E)):o||o===0?S=o:m&&a?S=a[0]:S=R.jsx(Yfe,{ownerState:h,className:_.fallback}),R.jsx(Qfe,T({as:s,ownerState:h,className:ue(_.root,i),ref:r},y,{children:S}))}),hg=Zfe,epe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tpe={entering:{opacity:1},entered:{opacity:1}},rpe=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:f,onEntering:p,onExit:v,onExited:g,onExiting:y,style:S,timeout:x=a,TransitionComponent:m=gC}=t,b=Pe(t,epe),h=d.useRef(null),_=Jt(h,s.ref,r),C=F=>z=>{if(F){const M=h.current;z===void 0?F(M):F(M,z)}},E=C(p),w=C((F,z)=>{bC(F);const M=Ju({style:S,timeout:x,easing:u},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",M),F.style.transition=n.transitions.create("opacity",M),c&&c(F,z)}),O=C(f),P=C(y),k=C(F=>{const z=Ju({style:S,timeout:x,easing:u},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",z),F.style.transition=n.transitions.create("opacity",z),v&&v(F)}),j=C(g),$=F=>{o&&o(h.current,F)};return R.jsx(m,T({appear:i,in:l,nodeRef:h,onEnter:w,onEntered:O,onEntering:E,onExit:k,onExited:j,onExiting:P,addEndListener:$,timeout:x},b,{children:(F,z)=>d.cloneElement(s,T({style:T({opacity:0,visibility:F==="exited"&&!l?"hidden":void 0},tpe[F],S,s.props.style),ref:_},z))}))}),x4=rpe;function npe(e){return Ue("MuiBackdrop",e)}We("MuiBackdrop",["root","invisible"]);const ape=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ope=e=>{const{classes:t,invisible:r}=e;return qe({root:["root",r&&"invisible"]},npe,t)},ipe=ne("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"})),spe=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:u,component:l="div",components:c={},componentsProps:f={},invisible:p=!1,open:v,slotProps:g={},slots:y={},TransitionComponent:S=x4,transitionDuration:x}=i,m=Pe(i,ape),b=T({},i,{component:l,invisible:p}),h=ope(b),_=(n=g.root)!=null?n:f.root;return R.jsx(S,T({in:v,timeout:x},m,{children:R.jsx(ipe,T({"aria-hidden":!0},_,{as:(a=(o=y.root)!=null?o:c.Root)!=null?a:l,className:ue(h.root,u,_==null?void 0:_.className),ownerState:T({},b,_==null?void 0:_.ownerState),classes:h,ref:r,children:s}))}))}),w4=spe,lpe=We("MuiBox",["root"]),upe=lpe,cpe=cg(),dpe=Sse({themeId:Js,defaultTheme:cpe,defaultClassName:upe.root,generateClassName:lC.generate}),Qh=dpe;function fpe(e){return Ue("MuiButton",e)}const ppe=We("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"]),lh=ppe,hpe=d.createContext({}),vpe=hpe,gpe=d.createContext(void 0),mpe=gpe,ype=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bpe=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${ge(t)}`,`size${ge(a)}`,`${o}Size${ge(a)}`,`color${ge(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ge(a)}`],endIcon:["icon","endIcon",`iconSize${ge(a)}`]},u=qe(s,fpe,i);return T({},i,u)},S4=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}}),xpe=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ge(r.color)}`],t[`size${ge(r.size)}`],t[`${r.variant}Size${ge(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})`:gt(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})`:gt(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})`:gt(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]}),[`&.${lh.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lh.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 ${gt(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"},[`&.${lh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lh.disabled}`]:{boxShadow:"none"}}),wpe=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},S4(e))),Spe=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ge(r.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},S4(e))),_pe=d.forwardRef(function(t,r){const n=d.useContext(vpe),a=d.useContext(mpe),o=Of(n,t),i=Ke({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:l="button",className:c,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:y,fullWidth:S=!1,size:x="medium",startIcon:m,type:b,variant:h="text"}=i,_=Pe(i,ype),C=T({},i,{color:u,component:l,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:S,size:x,type:b,variant:h}),E=bpe(C),w=m&&R.jsx(wpe,{className:E.startIcon,ownerState:C,children:m}),O=g&&R.jsx(Spe,{className:E.endIcon,ownerState:C,children:g}),P=a||"";return R.jsxs(xpe,T({ownerState:C,className:ue(n.className,E.root,c,P),component:l,disabled:f,focusRipple:!v,focusVisibleClassName:ue(E.focusVisible,y),ref:r,type:b},_,{classes:E,children:[w,s,O]}))}),hn=_pe;function Cpe(e){return Ue("MuiCard",e)}We("MuiCard",["root"]);const Epe=["className","raised"],Ope=e=>{const{classes:t}=e;return qe({root:["root"]},Cpe,t)},Ppe=ne(Yi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Rpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,i=Pe(n,Epe),s=T({},n,{raised:o}),u=Ope(s);return R.jsx(Ppe,T({className:ue(u.root,a),elevation:o?8:void 0,ref:r,ownerState:s},i))}),oo=Rpe;function Tpe(e){return Ue("MuiCardContent",e)}We("MuiCardContent",["root"]);const $pe=["className","component"],kpe=e=>{const{classes:t}=e;return qe({root:["root"]},Tpe,t)},jpe=ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Ipe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,i=Pe(n,$pe),s=T({},n,{component:o}),u=kpe(s);return R.jsx(jpe,T({as:o,className:ue(u.root,a),ownerState:s,ref:r},i))}),Di=Ipe;function Ape(e){return Ue("MuiCardHeader",e)}const Mpe=We("MuiCardHeader",["root","avatar","action","content","title","subheader"]),MT=Mpe,Fpe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Npe=e=>{const{classes:t}=e;return qe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ape,t)},Lpe=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>T({[`& .${MT.title}`]:t.title,[`& .${MT.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Dpe=ne("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Bpe=ne("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),zpe=ne("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Vpe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,className:i,component:s="div",disableTypography:u=!1,subheader:l,subheaderTypographyProps:c,title:f,titleTypographyProps:p}=n,v=Pe(n,Fpe),g=T({},n,{component:s,disableTypography:u}),y=Npe(g);let S=f;S!=null&&S.type!==_t&&!u&&(S=R.jsx(_t,T({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},p,{children:S})));let x=l;return x!=null&&x.type!==_t&&!u&&(x=R.jsx(_t,T({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:x}))),R.jsxs(Lpe,T({className:ue(y.root,i),as:s,ref:r,ownerState:g},v,{children:[o&&R.jsx(Dpe,{className:y.avatar,ownerState:g,children:o}),R.jsxs(zpe,{className:y.content,ownerState:g,children:[S,x]}),a&&R.jsx(Bpe,{className:y.action,ownerState:g,children:a})]}))}),FT=Vpe;function Upe(e){return Ue("PrivateSwitchBase",e)}We("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Wpe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Hpe=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${ge(a)}`],input:["input"]};return qe(o,Upe,t)},qpe=ne(Ma)(({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})),Kpe=ne("input",{shouldForwardProp:Wr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Gpe=d.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,className:i,defaultChecked:s,disabled:u,disableFocusRipple:l=!1,edge:c=!1,icon:f,id:p,inputProps:v,inputRef:g,name:y,onBlur:S,onChange:x,onFocus:m,readOnly:b,required:h=!1,tabIndex:_,type:C,value:E}=t,w=Pe(t,Wpe),[O,P]=Yu({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),k=po(),j=U=>{m&&m(U),k&&k.onFocus&&k.onFocus(U)},$=U=>{S&&S(U),k&&k.onBlur&&k.onBlur(U)},F=U=>{if(U.nativeEvent.defaultPrevented)return;const q=U.target.checked;P(q),x&&x(U,q)};let z=u;k&&typeof z>"u"&&(z=k.disabled);const M=C==="checkbox"||C==="radio",W=T({},t,{checked:O,disabled:z,disableFocusRipple:l,edge:c}),B=Hpe(W);return R.jsxs(qpe,T({component:"span",className:ue(B.root,i),centerRipple:!0,focusRipple:!l,disabled:z,tabIndex:null,role:void 0,onFocus:j,onBlur:$,ownerState:W,ref:r},w,{children:[R.jsx(Kpe,T({autoFocus:n,checked:a,defaultChecked:s,className:B.input,disabled:z,id:M?p:void 0,name:y,onChange:F,readOnly:b,ref:g,required:h,ownerState:W,tabIndex:_,type:C},C==="checkbox"&&E===void 0?{}:{value:E},v)),O?o:f]}))}),_4=Gpe,Qpe=An(R.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"),Xpe=An(R.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ype=An(R.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 Jpe(e){return Ue("MuiCheckbox",e)}const Zpe=We("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),n0=Zpe,ehe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],the=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(a)}`]},i=qe(o,Jpe,t);return T({},t,i)},rhe=ne(_4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ge(r.size)}`],r.color!=="default"&&t[`color${ge(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})`:gt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${n0.checked}, &.${n0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${n0.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nhe=R.jsx(Xpe,{}),ahe=R.jsx(Qpe,{}),ohe=R.jsx(Ype,{}),ihe=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiCheckbox"}),{checkedIcon:i=nhe,color:s="primary",icon:u=ahe,indeterminate:l=!1,indeterminateIcon:c=ohe,inputProps:f,size:p="medium",className:v}=o,g=Pe(o,ehe),y=l?c:u,S=l?c:i,x=T({},o,{color:s,indeterminate:l,size:p}),m=the(x);return R.jsx(rhe,T({type:"checkbox",inputProps:T({"data-indeterminate":l},f),icon:d.cloneElement(y,{fontSize:(n=y.props.fontSize)!=null?n:p}),checkedIcon:d.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:p}),ownerState:x,ref:r,className:ue(m.root,v)},g,{classes:m}))}),vg=ihe;function she(e){return Ue("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lhe=["className","color","disableShrink","size","style","thickness","value","variant"];let My=e=>e,NT,LT,DT,BT;const Jo=44,uhe=Pc(NT||(NT=My` 0% { transform: rotate(0deg); } @@ -187,7 +187,7 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu 100% { transform: rotate(360deg); } -`)),che=Pc(LT||(LT=Fy` +`)),che=Pc(LT||(LT=My` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -202,25 +202,25 @@ React-admin requires a valid dataProvider function to work.`);var c=d.useMemo(fu stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),dhe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${ge(n)}`],svg:["svg"],circle:["circle",`circle${ge(r)}`,a&&"circleDisableShrink"]};return qe(o,she,t)},fhe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ge(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"&&gy(DT||(DT=Fy` +`)),dhe=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${ge(n)}`],svg:["svg"],circle:["circle",`circle${ge(r)}`,a&&"circleDisableShrink"]};return qe(o,she,t)},fhe=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ge(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"&&vy(DT||(DT=My` animation: ${0} 1.4s linear infinite; - `),uhe)),phe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),hhe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ge(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&&gy(BT||(BT=Fy` + `),uhe)),phe=ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),hhe=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ge(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&&vy(BT||(BT=My` animation: ${0} 1.4s ease-in-out infinite; - `),che)),vhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=Pe(n,lhe),v=T({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=dhe(v),y={},S={},x={};if(f==="determinate"){const m=2*Math.PI*((Jo-l)/2);y.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(fhe,T({className:ue(g.root,a),style:T({width:s,height:s},S,u),ownerState:v,ref:r,role:"progressbar"},x,p,{children:R.jsx(phe,{className:g.svg,ownerState:v,viewBox:`${Jo/2} ${Jo/2} ${Jo} ${Jo}`,children:R.jsx(hhe,{className:g.circle,style:y,ownerState:v,cx:Jo,cy:Jo,r:(Jo-l)/2,fill:"none",strokeWidth:l})})}))}),kc=vhe;function zT(e){return e.substring(2).toLowerCase()}function ghe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Jt(t.ref,s),f=fn(g=>{const y=l.current;l.current=!1;const S=wr(s.current);if(!u.current||!s.current||"clientX"in g&&ghe(g,S))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!S.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!y)&&a(g)}),p=g=>y=>{l.current=!0;const S=t.props[g];S&&S(y)},v={ref:c};return o!==!1&&(v[o]=p(o)),d.useEffect(()=>{if(o!==!1){const g=zT(o),y=wr(s.current),S=()=>{i.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",S),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",S)}}},[f,o]),n!==!1&&(v[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=zT(n),y=wr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,n]),R.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const yhe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),bhe=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}}),xhe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,s])=>{var u;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let a=T({html:yhe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},bhe(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 whe(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return R.jsxs(d.Fragment,{children:[R.jsx(y4,{styles:a=>xhe(a,n)}),r]})}function She(e){const t=wr(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VT(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function _he(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 UT(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!_he(i);s&&u&&Nd(i,a)})}function o0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Che(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(She(n)){const i=BF(wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${VT(n)+i}px`;const s=wr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${VT(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=wr(n).body;else{const i=n.parentElement,s=da(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Ehe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ohe{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&&Nd(t.modalRef,!1);const a=Ehe(r);UT(r,t.mount,t.modalRef,a,!0);const o=o0(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=o0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Che(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=o0(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&&Nd(t.modalRef,r),UT(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&&Nd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Phe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rhe(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 The(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 $he(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||The(e))}function khe(e){const t=[],r=[];return Array.from(e.querySelectorAll(Phe)).forEach((n,a)=>{const o=Rhe(n);o===-1||!$he(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 jhe(){return!0}function Ihe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=khe,isEnabled:i=jhe,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),y=Jt(t.ref,g),S=d.useRef(null);d.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{a||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current),h=E=>{S.current=E,!(n||!i()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(u.current=!0,c.current&&c.current.focus())},_=()=>{const E=g.current;if(E===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let w=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(w=o(g.current)),w.length>0){var O,P;const k=!!((O=S.current)!=null&&O.shiftKey&&((P=S.current)==null?void 0:P.key)==="Tab"),j=w[0],$=w[w.length-1];typeof j!="string"&&typeof $!="string"&&(k?$.focus():j.focus())}else E.focus()};b.addEventListener("focusin",_),b.addEventListener("keydown",h,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",_),b.removeEventListener("keydown",h,!0)}},[r,n,a,i,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0,p.current=b.target;const h=t.props.onFocus;h&&h(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0};return R.jsxs(d.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:y,onFocus:x}),R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function Ahe(e){return typeof e=="function"?e():e}function Mhe(e){return e?e.props.hasOwnProperty("in"):!1}const Fhe=new Ohe;function Nhe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Fhe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),y=Jt(g,f),[S,x]=d.useState(!c),m=Mhe(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const h=()=>wr(v.current),_=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),C=()=>{a.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=fn(()=>{const M=Ahe(t)||h().body;a.add(_(),M),g.current&&C()}),w=d.useCallback(()=>a.isTopModal(_()),[a]),O=fn(M=>{v.current=M,M&&(c&&w()?C():g.current&&Nd(g.current,b))}),P=d.useCallback(()=>{a.remove(_(),b)},[b,a]);d.useEffect(()=>()=>{P()},[P]),d.useEffect(()=>{c?E():(!m||!o)&&P()},[c,P,m,o,E]);const k=M=>W=>{var B;(B=M.onKeyDown)==null||B.call(M,W),!(W.key!=="Escape"||W.which===229||!w())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},j=M=>W=>{var B;(B=M.onClick)==null||B.call(M,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(M={})=>{const W=ug(e);delete W.onTransitionEnter,delete W.onTransitionExited;const B=T({},W,M);return T({role:"presentation"},B,{onKeyDown:k(B),ref:y})},getBackdropProps:(M={})=>{const W=M;return T({"aria-hidden":!0},W,{onClick:j(W),open:c})},getTransitionProps:()=>{const M=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:hx(M,u==null?void 0:u.props.onEnter),onExited:hx(W,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:O,isTopModal:w,exited:S,hasTransition:m}}function Lhe(e){return Ue("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Dhe=["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"],Bhe=e=>{const{open:t,exited:r,classes:n}=e;return qe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Lhe,n)},zhe=ne("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"})),Vhe=ne(x4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Uhe=d.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Ke({name:"MuiModal",props:t}),{BackdropComponent:c=Vhe,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:y,component:S,components:x={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:_=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:O=!1,keepMounted:P=!1,onBackdropClick:k,open:j,slotProps:$,slots:F}=l,z=Pe(l,Dhe),M=T({},l,{closeAfterTransition:v,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:_,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:O,keepMounted:P}),{getRootProps:W,getBackdropProps:B,getTransitionProps:U,portalRef:q,isTopModal:ie,exited:oe,hasTransition:Ee}=Nhe(T({},M,{rootRef:r})),pe=T({},M,{exited:oe}),Te=Bhe(pe),ye={};if(g.props.tabIndex===void 0&&(ye.tabIndex="-1"),Ee){const{onEnter:Ne,onExited:Ae}=U();ye.onEnter=Ne,ye.onExited=Ae}const be=(n=(a=F==null?void 0:F.root)!=null?a:x.Root)!=null?n:zhe,we=(o=(i=F==null?void 0:F.backdrop)!=null?i:x.Backdrop)!=null?o:c,ve=(s=$==null?void 0:$.root)!=null?s:m.root,De=(u=$==null?void 0:$.backdrop)!=null?u:m.backdrop,Me=fa({elementType:be,externalSlotProps:ve,externalForwardedProps:z,getSlotProps:W,additionalProps:{ref:r,as:S},ownerState:pe,className:ue(p,ve==null?void 0:ve.className,Te==null?void 0:Te.root,!pe.open&&pe.exited&&(Te==null?void 0:Te.hidden))}),Qe=fa({elementType:we,externalSlotProps:De,additionalProps:f,getSlotProps:Ne=>B(T({},Ne,{onClick:Ae=>{k&&k(Ae),Ne!=null&&Ne.onClick&&Ne.onClick(Ae)}})),className:ue(De==null?void 0:De.className,f==null?void 0:f.className,Te==null?void 0:Te.backdrop),ownerState:pe});return!P&&!j&&(!Ee||oe)?null:R.jsx(g4,{ref:q,container:y,disablePortal:C,children:R.jsxs(be,T({},Me,{children:[!O&&c?R.jsx(we,T({},Qe)):null,R.jsx(Ihe,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:ie,open:j,children:d.cloneElement(g,ye)})]}))})}),RC=Uhe;function Whe(e){return Ue("MuiDialog",e)}const Hhe=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),i0=Hhe,qhe=d.createContext({}),_4=qhe,Khe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ghe=ne(x4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qhe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return qe(i,Whe,t)},Xhe=ne(RC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Yhe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ge(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"}})),Jhe=ne(Yi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ge(r.scroll)}`],t[`paperWidth${ge(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)`,[`&.${i0.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}`,[`&.${i0.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,[`&.${i0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Zhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialog"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:S,onClick:x,onClose:m,open:b,PaperComponent:h=Yi,PaperProps:_={},scroll:C="paper",TransitionComponent:E=b4,transitionDuration:w=o,TransitionProps:O}=n,P=Pe(n,Khe),k=T({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:y,scroll:C}),j=Qhe(k),$=d.useRef(),F=B=>{$.current=B.target===B.currentTarget},z=B=>{x&&x(B),$.current&&($.current=null,S&&S(B),m&&m(B,"backdropClick"))},M=el(s),W=d.useMemo(()=>({titleId:M}),[M]);return R.jsx(Xhe,T({className:ue(j.root,f),closeAfterTransition:!0,components:{Backdrop:Ghe},componentsProps:{backdrop:T({transitionDuration:w,as:u},l)},disableEscapeKeyDown:p,onClose:m,open:b,ref:r,onClick:z,ownerState:k},P,{children:R.jsx(E,T({appear:!0,in:b,timeout:w,role:"presentation"},O,{children:R.jsx(Yhe,{className:ue(j.container),onMouseDown:F,ownerState:k,children:R.jsx(Jhe,T({as:h,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":M},_,{className:ue(j.paper,_.className),ownerState:k,children:R.jsx(_4.Provider,{value:W,children:c})}))})}))}))}),TC=Zhe;function eve(e){return Ue("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const tve=["className","disableSpacing"],rve=e=>{const{classes:t,disableSpacing:r}=e;return qe({root:["root",!r&&"spacing"]},eve,t)},nve=ne("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}})),ave=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Pe(n,tve),s=T({},n,{disableSpacing:o}),u=rve(s);return R.jsx(nve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),$C=ave;function ove(e){return Ue("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function ive(e){return Ue("MuiDialogTitle",e)}const sve=We("MuiDialogTitle",["root"]),lve=sve,uve=["className","dividers"],cve=e=>{const{classes:t,dividers:r}=e;return qe({root:["root",r&&"dividers"]},ove,t)},dve=ne("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}`}:{[`.${lve.root} + &`]:{paddingTop:0}})),fve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Pe(n,uve),s=T({},n,{dividers:o}),u=cve(s);return R.jsx(dve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),kC=fve;function pve(e){return Ue("MuiDialogContentText",e)}We("MuiDialogContentText",["root"]);const hve=["children","className"],vve=e=>{const{classes:t}=e,n=qe({root:["root"]},pve,t);return T({},t,n)},gve=ne(_t,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Pe(n,hve),i=vve(o);return R.jsx(gve,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),C4=mve,yve=["className","id"],bve=e=>{const{classes:t}=e;return qe({root:["root"]},ive,t)},xve=ne(_t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),wve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Pe(n,yve),s=n,u=bve(s),{titleId:l=o}=d.useContext(_4);return R.jsx(xve,T({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),jC=wve;function Sve(e){return Ue("MuiDivider",e)}const _ve=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WT=_ve,Cve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Eve=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:s,variant:u}=e;return qe({root:["root",t&&"absolute",u,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Sve,n)},Ove=ne("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)`:gt(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%"}})),Pve=ne("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)`})),E4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:s=o?"div":"hr",flexItem:u=!1,light:l=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=Pe(n,Cve),y=T({},n,{absolute:a,component:s,flexItem:u,light:l,orientation:c,role:f,textAlign:p,variant:v}),S=Eve(y);return R.jsx(Ove,T({as:s,className:ue(S.root,i),role:f,ref:r,ownerState:y},g,{children:o?R.jsx(Pve,{className:S.wrapper,ownerState:y,children:o}):null}))});E4.muiSkipListHighlight=!0;const mg=E4,Rve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function $ve(e){return typeof e=="function"?e():e}function uh(e,t,r){const n=$ve(r),a=Tve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const kve=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=a,in:p,onEnter:v,onEntered:g,onEntering:y,onExit:S,onExited:x,onExiting:m,style:b,timeout:h=o,TransitionComponent:_=gC}=t,C=Pe(t,Rve),E=d.useRef(null),w=Jt(u.ref,E,r),O=B=>U=>{B&&(U===void 0?B(E.current):B(E.current,U))},P=O((B,U)=>{uh(c,B,l),bC(B),v&&v(B,U)}),k=O((B,U)=>{const q=Ju({timeout:h,style:b,easing:f},{mode:"enter"});B.style.webkitTransition=n.transitions.create("-webkit-transform",T({},q)),B.style.transition=n.transitions.create("transform",T({},q)),B.style.webkitTransform="none",B.style.transform="none",y&&y(B,U)}),j=O(g),$=O(m),F=O(B=>{const U=Ju({timeout:h,style:b,easing:f},{mode:"exit"});B.style.webkitTransition=n.transitions.create("-webkit-transform",U),B.style.transition=n.transitions.create("transform",U),uh(c,B,l),S&&S(B)}),z=O(B=>{B.style.webkitTransition="",B.style.transition="",x&&x(B)}),M=B=>{i&&i(E.current,B)},W=d.useCallback(()=>{E.current&&uh(c,E.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const B=Rc(()=>{E.current&&uh(c,E.current,l)}),U=da(E.current);return U.addEventListener("resize",B),()=>{B.clear(),U.removeEventListener("resize",B)}},[c,p,l]),d.useEffect(()=>{p||W()},[p,W]),R.jsx(_,T({nodeRef:E,onEnter:P,onEntered:j,onEntering:k,onExit:F,onExited:z,onExiting:$,addEndListener:M,appear:s,in:p,timeout:h},C,{children:(B,U)=>d.cloneElement(u,T({ref:w,style:T({visibility:B==="exited"&&!p?"hidden":void 0},b,u.props.style)},U))}))}),O4=kve;function jve(e){return Ue("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Ive=["BackdropProps"],Ave=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],P4=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Mve=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ge(r)}`,n!=="temporary"&&`paperAnchorDocked${ge(r)}`]};return qe(a,jve,t)},Fve=ne(RC,{name:"MuiDrawer",slot:"Root",overridesResolver:P4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),HT=ne("div",{shouldForwardProp:Wr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:P4})({flex:"0 0 auto"}),Nve=ne(Yi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ge(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ge(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}`})),R4={left:"right",right:"left",top:"down",bottom:"up"};function Lve(e){return["left","right"].indexOf(e)!==-1}function Dve({direction:e},t){return e==="rtl"&&Lve(t)?R4[t]:t}const Bve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),a=fo(),o=cl(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:g,open:y=!1,PaperProps:S={},SlideProps:x,TransitionComponent:m=O4,transitionDuration:b=i,variant:h="temporary"}=n,_=Pe(n.ModalProps,Ive),C=Pe(n,Ave),E=d.useRef(!1);d.useEffect(()=>{E.current=!0},[]);const w=Dve({direction:o?"rtl":"ltr"},s),P=T({},n,{anchor:s,elevation:f,open:y,variant:h},C),k=Mve(P),j=R.jsx(Nve,T({elevation:h==="temporary"?f:0,square:!0},S,{className:ue(k.paper,S.className),ownerState:P,children:l}));if(h==="permanent")return R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:j}));const $=R.jsx(m,T({in:y,direction:R4[w],timeout:b,appear:E.current},x,{children:j}));return h==="persistent"?R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:$})):R.jsx(Fve,T({BackdropProps:T({},u,v,{transitionDuration:b}),className:ue(k.root,k.modal,c),open:y,ownerState:P,onClose:g,hideBackdrop:p,ref:r},C,_,{children:$}))}),zve=Bve;function Vve(e){return Ue("MuiFab",e)}const Uve=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),qT=Uve,Wve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Hve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${ge(a)}`,t==="inherit"?"colorInherit":t]},i=qe(o,Vve,n);return T({},n,i)},qve=ne(Ma,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Wr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ge(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"},[`&.${qT.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})=>({[`&.${qT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Kve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,v=Pe(n,Wve),g=T({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),y=Hve(g);return R.jsx(qve,T({className:ue(y.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(y.focusVisible,c),ownerState:g,ref:r},v,{classes:y,children:a}))}),Gve=Kve,Qve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Xve=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Vfe,t);return T({},t,a)},Yve=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return 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}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.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(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.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}))}),Jve=ne(Ay,{name:"MuiFilledInput",slot:"Input",overridesResolver:jy})(({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})),T4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,S=Pe(s,Qve),x=T({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),m=Xve(s),b={root:{ownerState:x},input:{ownerState:x}},h=v??l?Rr(b,v??l):b,_=(n=(a=g.root)!=null?a:u.Root)!=null?n:Yve,C=(o=(i=g.input)!=null?i:u.Input)!=null?o:Jve;return R.jsx(My,T({slots:{root:_,input:C},componentsProps:h,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},S,{classes:m}))});T4.muiName="Input";const $4=T4;function Zve(e){return Ue("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ege=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],tge=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return qe(a,Zve,t)},rge=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${ge(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%"})),nge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:y="medium",variant:S="outlined"}=n,x=Pe(n,ege),m=T({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:y,variant:S}),b=tge(m),[h,_]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{if(!Hh(F,["Input","Select"]))return;const z=Hh(F,["Select"])?F.props.input:F;z&&kfe(z.props)&&($=!0)}),$}),[C,E]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{Hh(F,["Input","Select"])&&(hg(F.props,!0)||hg(F.props.inputProps,!0))&&($=!0)}),$}),[w,O]=d.useState(!1);u&&w&&O(!1);const P=c!==void 0&&!u?c:w;let k;const j=d.useMemo(()=>({adornedStart:h,setAdornedStart:_,color:i,disabled:u,error:l,filled:C,focused:P,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{O(!0)},registerEffect:k,required:g,variant:S}),[h,i,u,l,C,P,f,p,k,g,y,S]);return R.jsx($y.Provider,{value:j,children:R.jsx(rge,T({as:s,ownerState:m,className:ue(b.root,o),ref:r},x,{children:a}))})}),age=nge,oge=Ele({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),Ny=oge;function ige(e){return Ue("MuiFormControlLabel",e)}const sge=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pd=sge,lge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],uge=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return qe(i,ige,t)},cge=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pd.label}`]:t.label},t.root,t[`labelPlacement${ge(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pd.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},{[`& .${pd.label}`]:{[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),dge=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),fge=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=o,y=Pe(o,lge),S=po(),x=(n=l??u.props.disabled)!=null?n:S==null?void 0:S.disabled,m=v??u.props.required,b={disabled:x,required:m};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof o[O]<"u"&&(b[O]=o[O])});const h=Zi({props:o,muiFormControl:S,states:["error"]}),_=T({},o,{disabled:x,labelPlacement:p,required:m,error:h.error}),C=uge(_),E=(a=g.typography)!=null?a:s.typography;let w=f;return w!=null&&w.type!==_t&&!c&&(w=R.jsx(_t,T({component:"span"},E,{className:ue(C.label,E==null?void 0:E.className),children:w}))),R.jsxs(cge,T({className:ue(C.root,i),ownerState:_,ref:r},y,{children:[d.cloneElement(u,b),m?R.jsxs(Ny,{display:"block",children:[w,R.jsxs(dge,{ownerState:_,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):w]}))}),pge=fge;function hge(e){return Ue("MuiFormGroup",e)}We("MuiFormGroup",["root","row","error"]);const vge=["className","row"],gge=e=>{const{classes:t,row:r,error:n}=e;return qe({root:["root",r&&"row",n&&"error"]},hge,t)},mge=ne("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"})),yge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Pe(n,vge),s=po(),u=Zi({props:n,muiFormControl:s,states:["error"]}),l=T({},n,{row:o,error:u.error}),c=gge(l);return R.jsx(mge,T({className:ue(c.root,a),ownerState:l,ref:r},i))}),bge=yge;function xge(e){return Ue("MuiFormHelperText",e)}const wge=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KT=wge;var GT;const Sge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_ge=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${ge(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return qe(l,xge,t)},Cge=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ge(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,[`&.${KT.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KT.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ege=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Pe(n,Sge),u=po(),l=Zi({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=T({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=_ge(c);return R.jsx(Cge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:a===" "?GT||(GT=R.jsx("span",{className:"notranslate",children:"​"})):a}))}),IC=Ege;function Oge(e){return Ue("MuiFormLabel",e)}const Pge=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ld=Pge,Rge=["children","className","color","component","disabled","error","filled","focused","required"],Tge=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${ge(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return qe(u,Oge,t)},$ge=ne("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",[`&.${Ld.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),kge=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),jge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Pe(n,Rge),u=po(),l=Zi({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=T({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Tge(c);return R.jsxs($ge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:[a,l.required&&R.jsxs(kge,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Ige=jge,Age=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cx(e){return`scale(${e}, ${e**2})`}const Mge={entering:{opacity:1,transform:Cx(1)},entered:{opacity:1,transform:"none"}},s0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k4=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:y="auto",TransitionComponent:S=gC}=t,x=Pe(t,Age),m=Ss(),b=d.useRef(),h=fo(),_=d.useRef(null),C=Jt(_,o.ref,r),E=z=>M=>{if(z){const W=_.current;M===void 0?z(W):z(W,M)}},w=E(c),O=E((z,M)=>{bC(z);const{duration:W,delay:B,easing:U}=Ju({style:g,timeout:y,easing:i},{mode:"enter"});let q;y==="auto"?(q=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=q):q=W,z.style.transition=[h.transitions.create("opacity",{duration:q,delay:B}),h.transitions.create("transform",{duration:s0?q:q*.666,delay:B,easing:U})].join(","),u&&u(z,M)}),P=E(l),k=E(v),j=E(z=>{const{duration:M,delay:W,easing:B}=Ju({style:g,timeout:y,easing:i},{mode:"exit"});let U;y==="auto"?(U=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=U):U=M,z.style.transition=[h.transitions.create("opacity",{duration:U,delay:W}),h.transitions.create("transform",{duration:s0?U:U*.666,delay:s0?W:W||U*.333,easing:B})].join(","),z.style.opacity=0,z.style.transform=Cx(.75),f&&f(z)}),$=E(p),F=z=>{y==="auto"&&m.start(b.current||0,z),n&&n(_.current,z)};return R.jsx(S,T({appear:a,in:s,nodeRef:_,onEnter:O,onEntered:P,onEntering:w,onExit:j,onExited:$,onExiting:k,addEndListener:F,timeout:y==="auto"?null:y},x,{children:(z,M)=>d.cloneElement(o,T({style:T({opacity:0,transform:Cx(.75),visibility:z==="exited"&&!s?"hidden":void 0},Mge[z],g,o.props.style),ref:C},M))}))});k4.muiSupportAuto=!0;const yg=k4,Fge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Nge=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Lfe,t);return T({},t,a)},Lge=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ky(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"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.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(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Dge=ne(Ay,{name:"MuiInput",slot:"Input",overridesResolver:jy})({}),j4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:y={},type:S="text"}=s,x=Pe(s,Fge),m=Nge(s),h={root:{ownerState:{disableUnderline:u}}},_=g??c?Rr(g??c,h):h,C=(n=(a=y.root)!=null?a:l.Root)!=null?n:Lge,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:Dge;return R.jsx(My,T({slots:{root:C,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:S},x,{classes:m}))});j4.muiName="Input";const I4=j4;function Bge(e){return Ue("MuiInputAdornment",e)}const zge=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),QT=zge;var XT;const Vge=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Uge=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Wge=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${ge(a)}`,i,n&&"hiddenLabel",o&&`size${ge(o)}`]};return qe(s,Bge,t)},Hge=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Uge})(({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"&&{[`&.${QT.positionStart}&:not(.${QT.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),qge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=Pe(n,Vge),p=po()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=T({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),y=Wge(g);return R.jsx($y.Provider,{value:null,children:R.jsx(Hge,T({as:i,ownerState:g,className:ue(y.root,o),ref:r},f,{children:typeof a=="string"&&!u?R.jsx(_t,{color:"text.secondary",children:a}):R.jsxs(d.Fragment,{children:[l==="start"?XT||(XT=R.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})}),Xh=qge;function Kge(e){return Ue("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gge=["disableAnimation","margin","shrink","variant","className"],Qge=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ge(n)}`,i],asterisk:[s&&"asterisk"]},l=qe(u,Kge,t);return T({},t,l)},Xge=ne(Ige,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ld.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)"}))),Yge=d.forwardRef(function(t,r){const n=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Pe(n,Gge),u=po();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Zi({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=T({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Qge(f);return R.jsx(Xge,T({"data-shrink":l,ownerState:f,ref:r,className:ue(p.root,i)},s,{classes:p}))}),Jge=Yge;function Zge(e){return Ue("MuiLink",e)}const eme=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tme=eme,A4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rme=e=>A4[e]||e,nme=({theme:e,ownerState:t})=>{const r=rme(t.color),n=Xu(e,`palette.${r}`,!1)||t.color,a=Xu(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},ame=nme,ome=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ime=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${ge(a)}`,r==="button"&&"button",n&&"focusVisible"]};return qe(o,Zge,t)},sme=ne(_t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ge(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:ame({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"},[`&.${tme.focusVisible}`]:{outline:"auto"}})),lme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,v=Pe(n,ome),{isFocusVisibleRef:g,onBlur:y,onFocus:S,ref:x}=Ey(),[m,b]=d.useState(!1),h=Jt(r,x),_=O=>{y(O),g.current===!1&&b(!1),s&&s(O)},C=O=>{S(O),g.current===!0&&b(!0),u&&u(O)},E=T({},n,{color:o,component:i,focusVisible:m,underline:c,variant:f}),w=ime(E);return R.jsx(sme,T({color:o,className:ue(w.root,a),classes:l,component:i,onBlur:_,onFocus:C,ref:h,ownerState:E,variant:f,sx:[...Object.keys(A4).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},v))}),ume=lme,cme=d.createContext({}),jf=cme;function dme(e){return Ue("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const fme=["children","className","component","dense","disablePadding","subheader"],pme=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return qe({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},dme,t)},hme=ne("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})),vme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Pe(n,fme),f=d.useMemo(()=>({dense:s}),[s]),p=T({},n,{component:i,dense:s,disablePadding:u}),v=pme(p);return R.jsx(jf.Provider,{value:f,children:R.jsxs(hme,T({as:i,className:ue(v.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})}),gme=vme;function mme(e){return Ue("MuiListItemIcon",e)}const yme=We("MuiListItemIcon",["root","alignItemsFlexStart"]),YT=yme,bme=["className"],xme=e=>{const{alignItems:t,classes:r}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},mme,r)},wme=ne("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})),Sme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Pe(n,bme),i=d.useContext(jf),s=T({},n,{alignItems:i.alignItems}),u=xme(s);return R.jsx(wme,T({className:ue(u.root,a),ownerState:s,ref:r},o))}),Cs=Sme;function _me(e){return Ue("MuiListItemText",e)}const Cme=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bg=Cme,Eme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ome=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return qe({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},_me,t)},Pme=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bg.primary}`]:t.primary},{[`& .${bg.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})),Rme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=Pe(n,Eme),{dense:v}=d.useContext(jf);let g=u??a,y=c;const S=T({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!y,dense:v}),x=Ome(S);return g!=null&&g.type!==_t&&!i&&(g=R.jsx(_t,T({variant:v?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),y!=null&&y.type!==_t&&!i&&(y=R.jsx(_t,T({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),R.jsxs(Pme,T({className:ue(x.root,o),ownerState:S,ref:r},p,{children:[g,y]}))}),Zl=Rme,Tme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JT(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function M4(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 Yc(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!M4(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const $me=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=Pe(t,Tme),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{a&&v.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:h})=>{const _=!v.current.style.width;if(b.clientHeight{const h=v.current,_=b.key,C=wr(h).activeElement;if(_==="ArrowDown")b.preventDefault(),Yc(h,C,l,u,l0);else if(_==="ArrowUp")b.preventDefault(),Yc(h,C,l,u,JT);else if(_==="Home")b.preventDefault(),Yc(h,null,l,u,l0);else if(_==="End")b.preventDefault(),Yc(h,null,l,u,JT);else if(_.length===1){const E=g.current,w=_.toLowerCase(),O=performance.now();E.keys.length>0&&(O-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&w!==E.keys[0]&&(E.repeating=!1)),E.lastTime=O,E.keys.push(w);const P=C&&!E.repeating&&M4(C,E);E.previousKeyMatched&&(P||Yc(h,C,!1,u,l0,E))?b.preventDefault():E.previousKeyMatched=!1}c&&c(b)},S=Jt(v,r);let x=-1;d.Children.forEach(i,(b,h)=>{if(!d.isValidElement(b)){x===h&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=h),x===h&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(b,h)=>{if(h===x){const _={};return o&&(_.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),d.cloneElement(b,_)}return b});return R.jsx(gme,T({role:"menu",ref:S,className:s,onKeyDown:y,tabIndex:a?0:-1},p,{children:m}))}),F4=$me;function kme(e){return Ue("MuiPopover",e)}We("MuiPopover",["root","paper"]);const jme=["onEntering"],Ime=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ame=["slotProps"];function ZT(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function e$(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function t$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function u0(e){return typeof e=="function"?e():e}const Mme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},kme,t)},Fme=ne(RC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N4=ne(Yi,{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}),Nme=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:y=8,marginThreshold:S=16,open:x,PaperProps:m={},slots:b,slotProps:h,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:C=yg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:O=!1}=i,P=Pe(i.TransitionProps,jme),k=Pe(i,Ime),j=(n=h==null?void 0:h.paper)!=null?n:m,$=d.useRef(),F=Jt($,j.ref),z=T({},i,{anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:_,TransitionComponent:C,transitionDuration:E,TransitionProps:P}),M=Mme(z),W=d.useCallback(()=>{if(f==="anchorPosition")return c;const Ne=u0(u),He=(Ne&&Ne.nodeType===1?Ne:wr($.current).body).getBoundingClientRect();return{top:He.top+ZT(He,l.vertical),left:He.left+e$(He,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),B=d.useCallback(Ne=>({vertical:ZT(Ne,_.vertical),horizontal:e$(Ne,_.horizontal)}),[_.horizontal,_.vertical]),U=d.useCallback(Ne=>{const Ae={width:Ne.offsetWidth,height:Ne.offsetHeight},He=B(Ae);if(f==="none")return{top:null,left:null,transformOrigin:t$(He)};const ht=W();let ut=ht.top-He.vertical,V=ht.left-He.horizontal;const K=ut+Ae.height,te=V+Ae.width,se=da(u0(u)),de=se.innerHeight-S,fe=se.innerWidth-S;if(S!==null&&utde){const Oe=K-de;ut-=Oe,He.vertical+=Oe}if(S!==null&&Vfe){const Oe=te-fe;V-=Oe,He.horizontal+=Oe}return{top:`${Math.round(ut)}px`,left:`${Math.round(V)}px`,transformOrigin:t$(He)}},[u,f,W,B,S]),[q,ie]=d.useState(x),oe=d.useCallback(()=>{const Ne=$.current;if(!Ne)return;const Ae=U(Ne);Ae.top!==null&&(Ne.style.top=Ae.top),Ae.left!==null&&(Ne.style.left=Ae.left),Ne.style.transformOrigin=Ae.transformOrigin,ie(!0)},[U]);d.useEffect(()=>(O&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,O,oe]);const Ee=(Ne,Ae)=>{w&&w(Ne,Ae),oe()},pe=()=>{ie(!1)};d.useEffect(()=>{x&&oe()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),d.useEffect(()=>{if(!x)return;const Ne=Rc(()=>{oe()}),Ae=da(u);return Ae.addEventListener("resize",Ne),()=>{Ne.clear(),Ae.removeEventListener("resize",Ne)}},[u,x,oe]);let Te=E;E==="auto"&&!C.muiSupportAuto&&(Te=void 0);const ye=g||(u?wr(u0(u)).body:void 0),be=(a=b==null?void 0:b.root)!=null?a:Fme,we=(o=b==null?void 0:b.paper)!=null?o:N4,ve=fa({elementType:we,externalSlotProps:T({},j,{style:q?j.style:T({},j.style,{opacity:0})}),additionalProps:{elevation:y,ref:F},ownerState:z,className:ue(M.paper,j==null?void 0:j.className)}),De=fa({elementType:be,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ye,open:x},ownerState:z,className:ue(M.root,v)}),{slotProps:Me}=De,Qe=Pe(De,Ame);return R.jsx(be,T({},Qe,!Rf(be)&&{slotProps:Me,disableScrollLock:O},{children:R.jsx(C,T({appear:!0,in:x,onEntering:Ee,onExited:pe,timeout:Te},P,{children:R.jsx(we,T({},ve,{children:p}))}))}))}),L4=Nme;function Lme(e){return Ue("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Dme=["onEntering"],Bme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],zme={vertical:"top",horizontal:"right"},Vme={vertical:"top",horizontal:"left"},Ume=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Lme,t)},Wme=ne(L4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hme=ne(N4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qme=ne(F4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Kme=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:x="selectedMenu",slots:m={},slotProps:b={}}=o,h=Pe(o.TransitionProps,Dme),_=Pe(o,Bme),C=cl(),E=T({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:v,transitionDuration:y,TransitionProps:h,variant:x}),w=Ume(E),O=i&&!l&&p,P=d.useRef(null),k=(B,U)=>{P.current&&P.current.adjustStyleForScrollbar(B,{direction:C?"rtl":"ltr"}),S&&S(B,U)},j=B=>{B.key==="Tab"&&(B.preventDefault(),f&&f(B,"tabKeyDown"))};let $=-1;d.Children.map(s,(B,U)=>{d.isValidElement(B)&&(B.props.disabled||(x==="selectedMenu"&&B.props.selected||$===-1)&&($=U))});const F=(n=m.paper)!=null?n:Hme,z=(a=b.paper)!=null?a:v,M=fa({elementType:m.root,externalSlotProps:b.root,ownerState:E,className:[w.root,u]}),W=fa({elementType:F,externalSlotProps:z,ownerState:E,className:w.paper});return R.jsx(Wme,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?zme:Vme,slots:{paper:F,root:m.root},slotProps:{root:M,paper:W},open:p,ref:r,transitionDuration:y,TransitionProps:T({onEntering:k},h),ownerState:E},_,{classes:g,children:R.jsx(qme,T({onKeyDown:j,actions:P,autoFocus:i&&($===-1||l),autoFocusItem:O,variant:x},c,{className:ue(w.list,c.className),children:s}))}))}),Ly=Kme;function Gme(e){return Ue("MuiMenuItem",e)}const Qme=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jc=Qme,Xme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Jme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=qe({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Gme,i);return T({},i,u)},Zme=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Yme})(({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"}},[`&.${Jc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Jc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(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})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Jc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WT.inset}`]:{marginLeft:52},[`& .${bg.root}`]:{marginTop:0,marginBottom:0},[`& .${bg.inset}`]:{paddingLeft:36},[`& .${YT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${YT.root} svg`]:{fontSize:"1.25rem"}}))),eye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,v=Pe(n,Xme),g=d.useContext(jf),y=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),S=d.useRef(null);qn(()=>{a&&S.current&&S.current.focus()},[a]);const x=T({},n,{dense:y.dense,divider:s,disableGutters:u}),m=Jme(n),b=Jt(S,r);let h;return n.disabled||(h=f!==void 0?f:-1),R.jsx(jf.Provider,{value:y,children:R.jsx(Zme,T({ref:b,role:c,tabIndex:h,component:o,focusVisibleClassName:ue(m.focusVisible,l),className:ue(m.root,p)},v,{ownerState:x,classes:m}))})}),Ta=eye;function tye(e){return Ue("MuiNativeSelect",e)}const rye=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AC=rye,nye=["className","disabled","error","IconComponent","inputRef","variant"],aye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"]};return qe(s,tye,t)},D4=({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"},[`&.${AC.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}}),oye=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${AC.multiple}`]:t.multiple}]}})(D4),B4=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),iye=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),sye=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Pe(t,nye),c=T({},t,{disabled:a,variant:u,error:o}),f=aye(c);return R.jsxs(d.Fragment,{children:[R.jsx(oye,T({ownerState:c,className:ue(f.select,n),disabled:a,ref:s||r},l)),t.multiple?null:R.jsx(iye,{as:i,ownerState:c,className:f.icon})]})}),lye=sye;var r$;const uye=["children","classes","className","label","notched"],cye=ne("fieldset",{shouldForwardProp:Wr})({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%"}),dye=ne("legend",{shouldForwardProp:Wr})(({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 fye(e){const{className:t,label:r,notched:n}=e,a=Pe(e,uye),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return R.jsx(cye,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:R.jsx(dye,{ownerState:i,children:o?R.jsx("span",{children:r}):r$||(r$=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const pye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hye=e=>{const{classes:t}=e,n=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bfe,t);return T({},t,n)},vye=ne(Iy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ky})(({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 .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yo.focused} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yo.error} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yo.disabled} .${Yo.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"}))}),gye=ne(fye,{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}}),mye=ne(Ay,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jy})(({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})),z4=d.forwardRef(function(t,r){var n,a,o,i,s;const u=Ke({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:y={},type:S="text"}=u,x=Pe(u,pye),m=hye(u),b=po(),h=Zi({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:b,fullWidth:c,hiddenLabel:h.hiddenLabel,multiline:v,size:h.size,type:S}),C=(n=(a=y.root)!=null?a:l.Root)!=null?n:vye,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:mye;return R.jsx(My,T({slots:{root:C,input:E},renderSuffix:w=>R.jsx(gye,{ownerState:_,className:m.notchedOutline,label:p!=null&&p!==""&&h.required?s||(s=R.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:r,type:S},x,{classes:T({},m,{notchedOutline:null})}))});z4.muiName="Input";const V4=z4;function yye(e){return Ue("MuiPagination",e)}We("MuiPagination",["root","ul","outlined","text"]);const bye=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function xye(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=Pe(e,bye),[g,y]=Yu({controlled:l,default:a,name:r,state:"page"}),S=(O,P)=>{l||y(P),u&&u(O,P)},x=(O,P)=>{const k=P-O+1;return Array.from({length:k},(j,$)=>O+$)},m=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),h=Math.max(Math.min(g-p,n-t-p*2-1),t+2),_=Math.min(Math.max(g+p,t+p*2+2),b.length>0?b[0]-2:n-1),C=[...c?["first"]:[],...s?[]:["previous"],...m,...h>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...f?["last"]:[]],E=O=>{switch(O){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},w=C.map(O=>typeof O=="number"?{onClick:P=>{S(P,O)},type:"page",page:O,selected:O===g,disabled:o,"aria-current":O===g?"true":void 0}:{onClick:P=>{S(P,E(O))},type:O,page:E(O),selected:!1,disabled:o||O.indexOf("ellipsis")===-1&&(O==="next"||O==="last"?g>=n:g<=1)});return T({items:w},v)}function wye(e){return Ue("MuiPaginationItem",e)}const Sye=We("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Yn=Sye,Ex=An(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ox=An(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),n$=An(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),a$=An(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),_ye=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],U4=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.variant==="text"&&t[`text${ge(r.color)}`],r.variant==="outlined"&&t[`outlined${ge(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]},Cye=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${ge(o)}`,u,i,r!=="standard"&&`color${ge(r)}`,r!=="standard"&&`${u}${ge(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return qe(l,wye,t)},Eye=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({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",[`&.${Yn.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)})),Oye=ne(Ma,{name:"MuiPaginationItem",slot:"Root",overridesResolver:U4})(({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,[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yn.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"}},[`&.${Yn.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}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Yn.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"&&{[`&.${Yn.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}},[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Yn.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)"}`,[`&.${Yn.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)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(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}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Yn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Pye=ne("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)})),Rye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:v={},type:g="page",variant:y="text"}=n,S=Pe(n,_ye),x=T({},n,{color:o,disabled:u,selected:c,shape:f,size:p,type:g,variant:y}),m=cl(),b=Cye(x),_=(m?{previous:v.next||s.next||a$,next:v.previous||s.previous||n$,last:v.first||s.first||Ex,first:v.last||s.last||Ox}:{previous:v.previous||s.previous||n$,next:v.next||s.next||a$,first:v.first||s.first||Ex,last:v.last||s.last||Ox})[g];return g==="start-ellipsis"||g==="end-ellipsis"?R.jsx(Eye,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):R.jsxs(Oye,T({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},S,{children:[g==="page"&&l,_?R.jsx(Pye,{as:_,ownerState:x,className:b.icon}):null]}))}),Tye=Rye,$ye=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],kye=e=>{const{classes:t,variant:r}=e;return qe({root:["root",r],ul:["ul"]},yye,t)},jye=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Iye=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Aye(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Mye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Aye,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=w=>R.jsx(Tye,T({},w)),shape:g="circular",showFirstButton:y=!1,showLastButton:S=!1,siblingCount:x=1,size:m="medium",variant:b="text"}=n,h=Pe(n,$ye),{items:_}=xye(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:g,showFirstButton:y,showLastButton:S,siblingCount:x,size:m,variant:b}),E=kye(C);return R.jsx(jye,T({"aria-label":"pagination navigation",className:ue(E.root,o),ownerState:C,ref:r},h,{children:R.jsx(Iye,{className:E.ul,ownerState:C,children:_.map((w,O)=>R.jsx("li",{children:v(T({},w,{color:i,"aria-label":c(w.type,w.page,w.selected),shape:g,size:m,variant:b}))},O))})}))}),Fye=Mye;function Nye(e){return Ue("MuiSelect",e)}const Lye=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zc=Lye;var o$;const Dye=["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"],Bye=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Zc.select}`]:t.select},{[`&.${Zc.select}`]:t[r.variant]},{[`&.${Zc.error}`]:t.error},{[`&.${Zc.multiple}`]:t.multiple}]}})(D4,{[`&.${Zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zye=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(B4),Vye=ne("input",{shouldForwardProp:e=>n4(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 i$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Uye(e){return e==null||typeof e=="string"&&!e.trim()}const Wye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return qe(s,Nye,t)},Hye=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:S,labelId:x,MenuProps:m={},multiple:b,name:h,onBlur:_,onChange:C,onClose:E,onFocus:w,onOpen:O,open:P,readOnly:k,renderValue:j,SelectDisplayProps:$={},tabIndex:F,value:z,variant:M="standard"}=t,W=Pe(t,Dye),[B,U]=Yu({controlled:z,default:f,name:"Select"}),[q,ie]=Yu({controlled:P,default:c,name:"Select"}),oe=d.useRef(null),Ee=d.useRef(null),[pe,Te]=d.useState(null),{current:ye}=d.useRef(P!=null),[be,we]=d.useState(),ve=Jt(r,S),De=d.useCallback(je=>{Ee.current=je,je&&Te(je)},[]),Me=pe==null?void 0:pe.parentNode;d.useImperativeHandle(ve,()=>({focus:()=>{Ee.current.focus()},node:oe.current,value:B}),[B]),d.useEffect(()=>{c&&q&&pe&&!ye&&(we(s?null:Me.clientWidth),Ee.current.focus())},[pe,s]),d.useEffect(()=>{i&&Ee.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const je=wr(Ee.current).getElementById(x);if(je){const Je=()=>{getSelection().isCollapsed&&Ee.current.focus()};return je.addEventListener("click",Je),()=>{je.removeEventListener("click",Je)}}},[x]);const Qe=(je,Je)=>{je?O&&O(Je):E&&E(Je),ye||(we(s?null:Me.clientWidth),ie(je))},Ne=je=>{je.button===0&&(je.preventDefault(),Ee.current.focus(),Qe(!0,je))},Ae=je=>{Qe(!1,je)},He=d.Children.toArray(u),ht=je=>{const Je=He.find(_e=>_e.props.value===je.target.value);Je!==void 0&&(U(Je.props.value),C&&C(je,Je))},ut=je=>Je=>{let _e;if(Je.currentTarget.hasAttribute("tabindex")){if(b){_e=Array.isArray(B)?B.slice():[];const Fe=B.indexOf(je.props.value);Fe===-1?_e.push(je.props.value):_e.splice(Fe,1)}else _e=je.props.value;if(je.props.onClick&&je.props.onClick(Je),B!==_e&&(U(_e),C)){const Fe=Je.nativeEvent||Je,Ge=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ge,"target",{writable:!0,value:{value:_e,name:h}}),C(Ge,je)}b||Qe(!1,Je)}},V=je=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),Qe(!0,je))},K=pe!==null&&q,te=je=>{!K&&_&&(Object.defineProperty(je,"target",{writable:!0,value:{value:B,name:h}}),_(je))};delete W["aria-invalid"];let se,de;const fe=[];let Oe=!1;(hg({value:B})||v)&&(j?se=j(B):Oe=!0);const ae=He.map(je=>{if(!d.isValidElement(je))return null;let Je;if(b){if(!Array.isArray(B))throw new Error(No(2));Je=B.some(_e=>i$(_e,je.props.value)),Je&&Oe&&fe.push(je.props.children)}else Je=i$(B,je.props.value),Je&&Oe&&(de=je.props.children);return d.cloneElement(je,{"aria-selected":Je?"true":"false",onClick:ut(je),onKeyUp:_e=>{_e.key===" "&&_e.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(_e)},role:"option",selected:Je,value:void 0,"data-value":je.props.value})});Oe&&(b?fe.length===0?se=null:se=fe.reduce((je,Je,_e)=>(je.push(Je),_e{const{classes:t}=e;return t},MC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wr(e)&&e!=="variant",slot:"Root"},Xye=ne(I4,MC)(""),Yye=ne(V4,MC)(""),Jye=ne($4,MC)(""),W4=d.forwardRef(function(t,r){const n=Ke({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Wfe,id:f,input:p,inputProps:v,label:g,labelId:y,MenuProps:S,multiple:x=!1,native:m=!1,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=n,O=Pe(n,Kye),P=m?lye:qye,k=po(),j=Zi({props:n,muiFormControl:k,states:["variant","error"]}),$=j.variant||w,F=T({},n,{variant:$,classes:i}),z=Qye(F),M=Pe(z,Gye),W=p||{standard:R.jsx(Xye,{ownerState:F}),outlined:R.jsx(Yye,{label:g,ownerState:F}),filled:R.jsx(Jye,{ownerState:F})}[$],B=Jt(r,W.ref);return R.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:P,inputProps:T({children:o,error:j.error,IconComponent:c,variant:$,type:void 0,multiple:x},m?{id:f}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:T({id:f},E)},v,{classes:v?Rr(M,v.classes):M},p?p.props.inputProps:{})},(x&&m||l)&&$==="outlined"?{notched:!0}:{},{ref:B,className:ue(W.props.className,s,z.root)},!p&&{variant:$},O))})});W4.muiName="Select";const H4=W4;function Zye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Ss();d.useEffect(()=>{if(!a)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=fn((x,m)=>{n==null||n(x,m)}),u=fn(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});d.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,f=d.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>m=>{const b=x.onBlur;b==null||b(m),f()},v=x=>m=>{const b=x.onFocus;b==null||b(m),c()},g=x=>m=>{const b=x.onMouseEnter;b==null||b(m),c()},y=x=>m=>{const b=x.onMouseLeave;b==null||b(m),f()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,a,f,c]),{getRootProps:(x={})=>{const m=T({},ug(e),ug(x));return T({role:"presentation"},x,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:g(m),onMouseLeave:y(m)})},onClickAway:l}}function ebe(e){return Ue("MuiSnackbarContent",e)}We("MuiSnackbarContent",["root","message","action"]);const tbe=["action","className","message","role"],rbe=e=>{const{classes:t}=e;return qe({root:["root"],action:["action"],message:["message"]},ebe,t)},nbe=ne(Yi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Tle(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}})}),abe=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),obe=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),ibe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Pe(n,tbe),l=n,c=rbe(l);return R.jsxs(nbe,T({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[R.jsx(abe,{className:c.message,ownerState:l,children:i}),a?R.jsx(obe,{className:c.action,ownerState:l,children:a}):null]}))}),sbe=ibe;function lbe(e){return Ue("MuiSnackbar",e)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ube=["onEnter","onExited"],cbe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],dbe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ge(r.vertical)}${ge(r.horizontal)}`]};return qe(n,lbe,t)},s$=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ge(r.anchorOrigin.vertical)}${ge(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"})})}),fbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbar"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:g=!1,message:y,open:S,TransitionComponent:x=yg,transitionDuration:m=o,TransitionProps:{onEnter:b,onExited:h}={}}=n,_=Pe(n.TransitionProps,ube),C=Pe(n,cbe),E=T({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),w=dbe(E),{getRootProps:O,onClickAway:P}=Zye(T({},E)),[k,j]=d.useState(!0),$=fa({elementType:s$,getSlotProps:O,externalForwardedProps:C,ownerState:E,additionalProps:{ref:r},className:[w.root,f]}),F=M=>{j(!0),h&&h(M)},z=(M,W)=>{j(!1),b&&b(M,W)};return!S&&k?null:R.jsx(mhe,T({onClickAway:P},p,{children:R.jsx(s$,T({},$,{children:R.jsx(x,T({appear:!0,in:S,timeout:m,direction:s==="top"?"down":"up",onEnter:z,onExited:F},_,{children:c||R.jsx(sbe,T({message:y,action:i},v))}))}))}))}),pbe=fbe;function hbe(e){return Ue("MuiTooltip",e)}const vbe=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_i=vbe,gbe=["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 mbe(e){return Math.round(e*1e5)/1e5}const ybe=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${ge(o.split("-")[0])}`],arrow:["arrow"]};return qe(i,hbe,t)},bbe=ne(m4,{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"] .${_i.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_i.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_i.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"] .${_i.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xbe=ne("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${ge(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(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:`${mbe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_i.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"})),[`.${_i.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"})),[`.${_i.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_i.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wbe=ne("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:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ch=!1;const l$=new hp;let ed={x:0,y:0};function dh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Sbe=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_;const C=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:w,components:O={},componentsProps:P={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:$=!1,disableInteractive:F=!1,disableTouchListener:z=!1,enterDelay:M=100,enterNextDelay:W=0,enterTouchDelay:B=700,followCursor:U=!1,id:q,leaveDelay:ie=0,leaveTouchDelay:oe=1500,onClose:Ee,onOpen:pe,open:Te,placement:ye="bottom",PopperComponent:be,PopperProps:we={},slotProps:ve={},slots:De={},title:Me,TransitionComponent:Qe=yg,TransitionProps:Ne}=C,Ae=Pe(C,gbe),He=d.isValidElement(w)?w:R.jsx("span",{children:w}),ht=fo(),ut=cl(),[V,K]=d.useState(),[te,se]=d.useState(null),de=d.useRef(!1),fe=F||U,Oe=Ss(),ae=Ss(),Z=Ss(),G=Ss(),[le,he]=Yu({controlled:Te,default:!1,name:"Tooltip",state:"open"});let Re=le;const Be=el(q),Ye=d.useRef(),je=fn(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),G.clear()});d.useEffect(()=>je,[je]);const Je=Y=>{l$.clear(),ch=!0,he(!0),pe&&!Re&&pe(Y)},_e=fn(Y=>{l$.start(800+ie,()=>{ch=!1}),he(!1),Ee&&Re&&Ee(Y),Oe.start(ht.transitions.duration.shortest,()=>{de.current=!1})}),Fe=Y=>{de.current&&Y.type!=="touchstart"||(V&&V.removeAttribute("title"),ae.clear(),Z.clear(),M||ch&&W?ae.start(ch?W:M,()=>{Je(Y)}):Je(Y))},Ge=Y=>{ae.clear(),Z.start(ie,()=>{_e(Y)})},{isFocusVisibleRef:nt,onBlur:mt,onFocus:Ot,ref:kt}=Ey(),[,Pt]=d.useState(!1),at=Y=>{mt(Y),nt.current===!1&&(Pt(!1),Ge(Y))},It=Y=>{V||K(Y.currentTarget),Ot(Y),nt.current===!0&&(Pt(!0),Fe(Y))},nr=Y=>{de.current=!0;const Q=He.props;Q.onTouchStart&&Q.onTouchStart(Y)},mn=Y=>{nr(Y),Z.clear(),Oe.clear(),je(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(B,()=>{document.body.style.WebkitUserSelect=Ye.current,Fe(Y)})},qr=Y=>{He.props.onTouchEnd&&He.props.onTouchEnd(Y),je(),Z.start(oe,()=>{_e(Y)})};d.useEffect(()=>{if(!Re)return;function Y(Q){(Q.key==="Escape"||Q.key==="Esc")&&_e(Q)}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[_e,Re]);const Nr=Jt(He.ref,kt,K,r);!Me&&Me!==0&&(Re=!1);const Tr=d.useRef(),Mn=Y=>{const Q=He.props;Q.onMouseMove&&Q.onMouseMove(Y),ed={x:Y.clientX,y:Y.clientY},Tr.current&&Tr.current.update()},Kr={},Ko=typeof Me=="string";k?(Kr.title=!Re&&Ko&&!$?Me:null,Kr["aria-describedby"]=Re?Be:null):(Kr["aria-label"]=Ko?Me:null,Kr["aria-labelledby"]=Re&&!Ko?Be:null);const $r=T({},Kr,Ae,He.props,{className:ue(Ae.className,He.props.className),onTouchStart:nr,ref:Nr},U?{onMouseMove:Mn}:{}),ho={};z||($r.onTouchStart=mn,$r.onTouchEnd=qr),$||($r.onMouseOver=dh(Fe,$r.onMouseOver),$r.onMouseLeave=dh(Ge,$r.onMouseLeave),fe||(ho.onMouseOver=Fe,ho.onMouseLeave=Ge)),j||($r.onFocus=dh(It,$r.onFocus),$r.onBlur=dh(at,$r.onBlur),fe||(ho.onFocus=It,ho.onBlur=at));const X=d.useMemo(()=>{var Y;let Q=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Y=we.popperOptions)!=null&&Y.modifiers&&(Q=Q.concat(we.popperOptions.modifiers)),T({},we.popperOptions,{modifiers:Q})},[te,we]),ee=T({},C,{isRtl:ut,arrow:E,disableInteractive:fe,placement:ye,PopperComponentProp:be,touch:de.current}),ce=ybe(ee),Ce=(n=(a=De.popper)!=null?a:O.Popper)!=null?n:bbe,N=(o=(i=(s=De.transition)!=null?s:O.Transition)!=null?i:Qe)!=null?o:yg,D=(u=(l=De.tooltip)!=null?l:O.Tooltip)!=null?u:xbe,I=(c=(f=De.arrow)!=null?f:O.Arrow)!=null?c:wbe,A=Jl(Ce,T({},we,(p=ve.popper)!=null?p:P.popper,{className:ue(ce.popper,we==null?void 0:we.className,(v=(g=ve.popper)!=null?g:P.popper)==null?void 0:v.className)}),ee),L=Jl(N,T({},Ne,(y=ve.transition)!=null?y:P.transition),ee),H=Jl(D,T({},(S=ve.tooltip)!=null?S:P.tooltip,{className:ue(ce.tooltip,(x=(m=ve.tooltip)!=null?m:P.tooltip)==null?void 0:x.className)}),ee),re=Jl(I,T({},(b=ve.arrow)!=null?b:P.arrow,{className:ue(ce.arrow,(h=(_=ve.arrow)!=null?_:P.arrow)==null?void 0:h.className)}),ee);return R.jsxs(d.Fragment,{children:[d.cloneElement(He,$r),R.jsx(Ce,T({as:be??m4,placement:ye,anchorEl:U?{getBoundingClientRect:()=>({top:ed.y,left:ed.x,right:ed.x,bottom:ed.y,width:0,height:0})}:V,popperRef:Tr,open:V?Re:!1,id:Be,transition:!0},ho,A,{popperOptions:X,children:({TransitionProps:Y})=>R.jsx(N,T({timeout:ht.transitions.duration.shorter},Y,L,{children:R.jsxs(D,T({},H,{children:[Me,E?R.jsx(I,T({},re,{ref:se})):null]}))}))}))]})}),kn=Sbe;function _be(e){return Ue("MuiSwitch",e)}const Cbe=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),on=Cbe,Ebe=["className","color","edge","size","sx"],Obe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,s={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qe(s,_be,t);return T({},t,u)},Pbe=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(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,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),Rbe=ne(S4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},r.color!=="default"&&t[`color${ge(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}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(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:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fC(e.palette[t].main,.62):dC(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Tbe=ne("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}`})),$be=ne("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%"})),kbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:s="medium",sx:u}=n,l=Pe(n,Ebe),c=T({},n,{color:o,edge:i,size:s}),f=Obe(c),p=R.jsx($be,{className:f.thumb,ownerState:c});return R.jsxs(Pbe,{className:ue(f.root,a),sx:u,ownerState:c,children:[R.jsx(Rbe,T({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:c},l,{classes:T({},f,{root:f.switchBase})})),R.jsx(Tbe,{className:f.track,ownerState:c})]})}),jbe=kbe;function Ibe(e){return Ue("MuiTab",e)}const Abe=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Zo=Abe,Mbe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Fbe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:s,disabled:u}=e,l={root:["root",o&&i&&"labelIcon",`textColor${ge(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return qe(l,Ibe,t)},Nbe=ne(Ma,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ge(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Zo.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,[`& > .${Zo.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,[`&.${Zo.selected}`]:{opacity:1},[`&.${Zo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zo.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)})),Lbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:y,selectionFollowsFocus:S,textColor:x="inherit",value:m,wrapped:b=!1}=n,h=Pe(n,Mbe),_=T({},n,{disabled:o,disableFocusRipple:i,selected:y,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=Fbe(_),E=u&&f&&d.isValidElement(u)?d.cloneElement(u,{className:ue(C.iconWrapper,u.props.className)}):u,w=P=>{!y&&p&&p(P,m),v&&v(P)},O=P=>{S&&!y&&p&&p(P,m),g&&g(P)};return R.jsxs(Nbe,T({focusRipple:!i,className:ue(C.root,a),ref:r,role:"tab","aria-selected":y,disabled:o,onClick:w,onFocus:O,ownerState:_,tabIndex:y?0:-1},h,{children:[l==="top"||l==="start"?R.jsxs(d.Fragment,{children:[E,f]}):R.jsxs(d.Fragment,{children:[f,E]}),c]}))}),Dbe=Lbe,Bbe=d.createContext(),q4=Bbe;function zbe(e){return Ue("MuiTable",e)}We("MuiTable",["root","stickyHeader"]);const Vbe=["className","component","padding","size","stickyHeader"],Ube=e=>{const{classes:t,stickyHeader:r}=e;return qe({root:["root",r&&"stickyHeader"]},zbe,t)},Wbe=ne("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"})),u$="table",Hbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTable"}),{className:a,component:o=u$,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Pe(n,Vbe),c=T({},n,{component:o,padding:i,size:s,stickyHeader:u}),f=Ube(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return R.jsx(q4.Provider,{value:p,children:R.jsx(Wbe,T({as:o,role:o===u$?null:"table",ref:r,className:ue(f.root,a),ownerState:c},l))})}),K4=Hbe,qbe=d.createContext(),Dy=qbe;function Kbe(e){return Ue("MuiTableBody",e)}We("MuiTableBody",["root"]);const Gbe=["className","component"],Qbe=e=>{const{classes:t}=e;return qe({root:["root"]},Kbe,t)},Xbe=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ybe={variant:"body"},c$="tbody",Jbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableBody"}),{className:a,component:o=c$}=n,i=Pe(n,Gbe),s=T({},n,{component:o}),u=Qbe(s);return R.jsx(Dy.Provider,{value:Ybe,children:R.jsx(Xbe,T({className:ue(u.root,a),as:o,ref:r,role:o===c$?null:"rowgroup",ownerState:s},i))})}),G4=Jbe;function Zbe(e){return Ue("MuiTableCell",e)}const e0e=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),t0e=e0e,r0e=["align","className","component","padding","scope","size","sortDirection","variant"],n0e=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,a!=="normal"&&`padding${ge(a)}`,`size${ge(o)}`]};return qe(s,Zbe,t)},a0e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.padding!=="normal"&&t[`padding${ge(r.padding)}`],r.align!=="inherit"&&t[`align${ge(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"?fC(gt(e.palette.divider,1),.88):dC(gt(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",[`&.${t0e.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})),o0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=Pe(n,r0e),v=d.useContext(q4),g=d.useContext(Dy),y=g&&g.variant==="head";let S;i?S=i:S=y?"th":"td";let x=u;S==="td"?x=void 0:!x&&y&&(x="col");const m=f||g&&g.variant,b=T({},n,{align:a,component:S,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),h=n0e(b);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),R.jsx(a0e,T({as:S,ref:r,className:ue(h.root,o),"aria-sort":_,scope:x,ownerState:b},p))}),en=o0e;function i0e(e){return Ue("MuiTableHead",e)}We("MuiTableHead",["root"]);const s0e=["className","component"],l0e=e=>{const{classes:t}=e;return qe({root:["root"]},i0e,t)},u0e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),c0e={variant:"head"},d$="thead",d0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableHead"}),{className:a,component:o=d$}=n,i=Pe(n,s0e),s=T({},n,{component:o}),u=l0e(s);return R.jsx(Dy.Provider,{value:c0e,children:R.jsx(u0e,T({as:o,className:ue(u.root,a),ref:r,role:o===d$?null:"rowgroup",ownerState:s},i))})}),Q4=d0e;function f0e(e){return Ue("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const p0e=["className","component","disableGutters","variant"],h0e=e=>{const{classes:t,disableGutters:r,variant:n}=e;return qe({root:["root",!r&&"gutters",n]},f0e,t)},v0e=ne("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),g0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Pe(n,p0e),l=T({},n,{component:o,disableGutters:i,variant:s}),c=h0e(l);return R.jsx(v0e,T({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),jc=g0e,X4=An(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Y4=An(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),m0e=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],y0e=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:S,page:x,rowsPerPage:m,showFirstButton:b,showLastButton:h,slots:_={},slotProps:C={}}=t,E=Pe(t,m0e),w=cl(),O=ve=>{S(ve,0)},P=ve=>{S(ve,x-1)},k=ve=>{S(ve,x+1)},j=ve=>{S(ve,Math.max(0,Math.ceil(p/m)-1))},$=(n=_.firstButton)!=null?n:Pr,F=(a=_.lastButton)!=null?a:Pr,z=(o=_.nextButton)!=null?o:Pr,M=(i=_.previousButton)!=null?i:Pr,W=(s=_.firstButtonIcon)!=null?s:Ex,B=(u=_.lastButtonIcon)!=null?u:Ox,U=(l=_.nextButtonIcon)!=null?l:Y4,q=(c=_.previousButtonIcon)!=null?c:X4,ie=w?F:$,oe=w?z:M,Ee=w?M:z,pe=w?$:F,Te=w?C.lastButton:C.firstButton,ye=w?C.nextButton:C.previousButton,be=w?C.previousButton:C.nextButton,we=w?C.firstButton:C.lastButton;return R.jsxs("div",T({ref:r},E,{children:[b&&R.jsx(ie,T({onClick:O,disabled:v||x===0,"aria-label":g("first",x),title:g("first",x)},Te,{children:w?R.jsx(B,T({},C.lastButtonIcon)):R.jsx(W,T({},C.firstButtonIcon))})),R.jsx(oe,T({onClick:P,disabled:v||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},ye??f,{children:w?R.jsx(U,T({},C.nextButtonIcon)):R.jsx(q,T({},C.previousButtonIcon))})),R.jsx(Ee,T({onClick:k,disabled:v||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},be??y,{children:w?R.jsx(q,T({},C.previousButtonIcon)):R.jsx(U,T({},C.nextButtonIcon))})),h&&R.jsx(pe,T({onClick:j,disabled:v||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},we,{children:w?R.jsx(W,T({},C.firstButtonIcon)):R.jsx(B,T({},C.lastButtonIcon))}))]}))}),b0e=y0e;function x0e(e){return Ue("MuiTablePagination",e)}const w0e=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Dd=w0e;var f$;const S0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_0e=ne(en,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),C0e=ne(jc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Dd.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},[`& .${Dd.actions}`]:{flexShrink:0,marginLeft:20}})),E0e=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),O0e=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),P0e=ne(H4,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Dd.selectIcon}`]:t.selectIcon,[`& .${Dd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Dd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),R0e=ne(Ta,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),T0e=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function $0e({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function k0e(e){return`Go to ${e} page`}const j0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},x0e,t)},I0e=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=b0e,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:f=!1,getItemAriaLabel:p=k0e,labelDisplayedRows:v=$0e,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:S,onRowsPerPageChange:x,page:m,rowsPerPage:b,rowsPerPageOptions:h=[10,25,50,100],SelectProps:_={},showFirstButton:C=!1,showLastButton:E=!1,slotProps:w={},slots:O={}}=a,P=Pe(a,S0e),k=a,j=j0e(k),$=(n=w==null?void 0:w.select)!=null?n:_,F=$.native?"option":R0e;let z;(l===en||l==="td")&&(z=u||1e3);const M=el($.id),W=el($.labelId),B=()=>c===-1?(m+1)*b:b===-1?c:Math.min(c,(m+1)*b);return R.jsx(_0e,T({colSpan:z,ref:r,as:l,ownerState:k,className:ue(j.root,s)},P,{children:R.jsxs(C0e,{className:j.toolbar,children:[R.jsx(E0e,{className:j.spacer}),h.length>1&&R.jsx(O0e,{className:j.selectLabel,id:W,children:g}),h.length>1&&R.jsx(P0e,T({variant:"standard"},!$.variant&&{input:f$||(f$=R.jsx(My,{}))},{value:b,onChange:x,id:M,labelId:W},$,{classes:T({},$.classes,{root:ue(j.input,j.selectRoot,($.classes||{}).root),select:ue(j.select,($.classes||{}).select),icon:ue(j.selectIcon,($.classes||{}).icon)}),disabled:f,children:h.map(U=>d.createElement(F,T({},!Rf(F)&&{ownerState:k},{className:j.menuItem,key:U.label?U.label:U,value:U.value?U.value:U}),U.label?U.label:U))})),R.jsx(T0e,{className:j.displayedRows,children:v({from:c===0?0:m*b+1,to:B(),count:c===-1?-1:c,page:m})}),R.jsx(o,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:S,page:m,rowsPerPage:b,showFirstButton:C,showLastButton:E,slotProps:w.actions,slots:O.actions,getItemAriaLabel:p,disabled:f})]})}))}),p$=I0e;function A0e(e){return Ue("MuiTableRow",e)}const M0e=We("MuiTableRow",["root","selected","hover","head","footer"]),h$=M0e,F0e=["className","component","hover","selected"],N0e=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return qe({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},A0e,t)},L0e=ne("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,[`&.${h$.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(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}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),v$="tr",D0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableRow"}),{className:a,component:o=v$,hover:i=!1,selected:s=!1}=n,u=Pe(n,F0e),l=d.useContext(Dy),c=T({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=N0e(c);return R.jsx(L0e,T({as:o,ref:r,className:ue(f.root,a),role:o===v$?null:"row",ownerState:c},u))}),If=D0e,B0e=An(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function z0e(e){return Ue("MuiTableSortLabel",e)}const V0e=We("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),c0=V0e,U0e=["active","children","className","direction","hideSortIcon","IconComponent"],W0e=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${ge(r)}`]};return qe(a,z0e,t)},H0e=ne(Ma,{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,[`& .${c0.icon}`]:{opacity:.5}},[`&.${c0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${c0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),q0e=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ge(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)"})),K0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=B0e}=n,c=Pe(n,U0e),f=T({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=W0e(f);return R.jsxs(H0e,T({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[o,u&&!a?null:R.jsx(q0e,{as:l,className:ue(p.icon),ownerState:f})]}))}),G0e=K0e;function Q0e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function X0e(e,t,r,n={},a=()=>{}){const{ease:o=Q0e,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const c=()=>{l=!0},f=p=>{if(l){a(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=o(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(f)};return u===r?(a(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Y0e=["onChange"],J0e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Z0e(e){const{onChange:t}=e,r=Pe(e,Y0e),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qn(()=>{const i=Rc(()=>{const u=n.current;o(),u!==n.current&&t(n.current)}),s=da(a.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),R.jsx("div",T({style:J0e,ref:a},r))}function e1e(e){return Ue("MuiTabScrollButton",e)}const t1e=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),r1e=t1e,n1e=["className","slots","slotProps","direction","orientation","disabled"],a1e=e=>{const{classes:t,orientation:r,disabled:n}=e;return qe({root:["root",r,n&&"disabled"]},e1e,t)},o1e=ne(Ma,{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,[`&.${r1e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),i1e=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=o,c=Pe(o,n1e),f=cl(),p=T({isRtl:f},o),v=a1e(p),g=(n=s.StartScrollButtonIcon)!=null?n:X4,y=(a=s.EndScrollButtonIcon)!=null?a:Y4,S=fa({elementType:g,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),x=fa({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return R.jsx(o1e,T({component:"div",className:ue(v.root,i),ref:r,role:null,ownerState:p,tabIndex:null},c,{children:l==="left"?R.jsx(g,T({},S)):R.jsx(y,T({},x))}))}),s1e=i1e;function l1e(e){return Ue("MuiTabs",e)}const u1e=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),d0=u1e,c1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],g$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,m$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fh=(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}}},d1e=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},l1e,u)},f1e=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${d0.scrollButtons}`]:t.scrollButtons},{[`& .${d0.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&&{[`& .${d0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),p1e=ne("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"})),h1e=ne("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"})),v1e=ne("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})),g1e=ne(Z0e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),y$={},m1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTabs"}),a=fo(),o=cl(),{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:x=s1e,scrollButtons:m="auto",selectionFollowsFocus:b,slots:h={},slotProps:_={},TabIndicatorProps:C={},TabScrollButtonProps:E={},textColor:w="primary",value:O,variant:P="standard",visibleScrollbar:k=!1}=n,j=Pe(n,c1e),$=P==="scrollable",F=S==="vertical",z=F?"scrollTop":"scrollLeft",M=F?"top":"left",W=F?"bottom":"right",B=F?"clientHeight":"clientWidth",U=F?"height":"width",q=T({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:S,vertical:F,scrollButtons:m,textColor:w,variant:P,visibleScrollbar:k,fixed:!$,hideScrollbar:$&&!k,scrollableX:$&&!F,scrollableY:$&&F,centered:l&&!$,scrollButtonsHideMobile:!v}),ie=d1e(q),oe=fa({elementType:h.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:q}),Ee=fa({elementType:h.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:q}),[pe,Te]=d.useState(!1),[ye,be]=d.useState(y$),[we,ve]=d.useState(!1),[De,Me]=d.useState(!1),[Qe,Ne]=d.useState(!1),[Ae,He]=d.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ut=d.useRef(null),V=d.useRef(null),K=()=>{const _e=ut.current;let Fe;if(_e){const nt=_e.getBoundingClientRect();Fe={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollLeftNormalized:ale(_e,o?"rtl":"ltr"),scrollWidth:_e.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let Ge;if(_e&&O!==!1){const nt=V.current.children;if(nt.length>0){const mt=nt[ht.get(O)];Ge=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ge}},te=fn(()=>{const{tabsMeta:_e,tabMeta:Fe}=K();let Ge=0,nt;if(F)nt="top",Fe&&_e&&(Ge=Fe.top-_e.top+_e.scrollTop);else if(nt=o?"right":"left",Fe&&_e){const Ot=o?_e.scrollLeftNormalized+_e.clientWidth-_e.scrollWidth:_e.scrollLeft;Ge=(o?-1:1)*(Fe[nt]-_e[nt]+Ot)}const mt={[nt]:Ge,[U]:Fe?Fe[U]:0};if(isNaN(ye[nt])||isNaN(ye[U]))be(mt);else{const Ot=Math.abs(ye[nt]-mt[nt]),kt=Math.abs(ye[U]-mt[U]);(Ot>=1||kt>=1)&&be(mt)}}),se=(_e,{animation:Fe=!0}={})=>{Fe?X0e(z,ut.current,_e,{duration:a.transitions.duration.standard}):ut.current[z]=_e},de=_e=>{let Fe=ut.current[z];F?Fe+=_e:(Fe+=_e*(o?-1:1),Fe*=o&&zF()==="reverse"?-1:1),se(Fe)},fe=()=>{const _e=ut.current[B];let Fe=0;const Ge=Array.from(V.current.children);for(let nt=0;nt_e){nt===0&&(Fe=_e);break}Fe+=mt[B]}return Fe},Oe=()=>{de(-1*fe())},ae=()=>{de(fe())},Z=d.useCallback(_e=>{He({overflow:null,scrollbarWidth:_e})},[]),G=()=>{const _e={};_e.scrollbarSizeListener=$?R.jsx(g1e,{onChange:Z,className:ue(ie.scrollableX,ie.hideScrollbar)}):null;const Ge=$&&(m==="auto"&&(we||De)||m===!0);return _e.scrollButtonStart=Ge?R.jsx(x,T({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:S,direction:o?"right":"left",onClick:Oe,disabled:!we},E,{className:ue(ie.scrollButtons,E.className)})):null,_e.scrollButtonEnd=Ge?R.jsx(x,T({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:S,direction:o?"left":"right",onClick:ae,disabled:!De},E,{className:ue(ie.scrollButtons,E.className)})):null,_e},le=fn(_e=>{const{tabsMeta:Fe,tabMeta:Ge}=K();if(!(!Ge||!Fe)){if(Ge[M]Fe[W]){const nt=Fe[z]+(Ge[W]-Fe[W]);se(nt,{animation:_e})}}}),he=fn(()=>{$&&m!==!1&&Ne(!Qe)});d.useEffect(()=>{const _e=Rc(()=>{ut.current&&te()});let Fe;const Ge=Ot=>{Ot.forEach(kt=>{kt.removedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.unobserve(Pt)}),kt.addedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.observe(Pt)})}),_e(),he()},nt=da(ut.current);nt.addEventListener("resize",_e);let mt;return typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(_e),Array.from(V.current.children).forEach(Ot=>{Fe.observe(Ot)})),typeof MutationObserver<"u"&&(mt=new MutationObserver(Ge),mt.observe(V.current,{childList:!0})),()=>{var Ot,kt;_e.clear(),nt.removeEventListener("resize",_e),(Ot=mt)==null||Ot.disconnect(),(kt=Fe)==null||kt.disconnect()}},[te,he]),d.useEffect(()=>{const _e=Array.from(V.current.children),Fe=_e.length;if(typeof IntersectionObserver<"u"&&Fe>0&&$&&m!==!1){const Ge=_e[0],nt=_e[Fe-1],mt={root:ut.current,threshold:.99},Ot=It=>{ve(!It[0].isIntersecting)},kt=new IntersectionObserver(Ot,mt);kt.observe(Ge);const Pt=It=>{Me(!It[0].isIntersecting)},at=new IntersectionObserver(Pt,mt);return at.observe(nt),()=>{kt.disconnect(),at.disconnect()}}},[$,m,Qe,c==null?void 0:c.length]),d.useEffect(()=>{Te(!0)},[]),d.useEffect(()=>{te()}),d.useEffect(()=>{le(y$!==ye)},[le,ye]),d.useImperativeHandle(u,()=>({updateIndicator:te,updateScrollButtons:he}),[te,he]);const Re=R.jsx(v1e,T({},C,{className:ue(ie.indicator,C.className),ownerState:q,style:T({},ye,C.style)}));let Be=0;const Ye=d.Children.map(c,_e=>{if(!d.isValidElement(_e))return null;const Fe=_e.props.value===void 0?Be:_e.props.value;ht.set(Fe,Be);const Ge=Fe===O;return Be+=1,d.cloneElement(_e,T({fullWidth:P==="fullWidth",indicator:Ge&&!pe&&Re,selected:Ge,selectionFollowsFocus:b,onChange:y,textColor:w,value:Fe},Be===1&&O===!1&&!_e.props.tabIndex?{tabIndex:0}:{}))}),je=_e=>{const Fe=V.current,Ge=wr(Fe).activeElement;if(Ge.getAttribute("role")!=="tab")return;let mt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(mt="ArrowRight",Ot="ArrowLeft"),_e.key){case mt:_e.preventDefault(),fh(Fe,Ge,m$);break;case Ot:_e.preventDefault(),fh(Fe,Ge,g$);break;case"Home":_e.preventDefault(),fh(Fe,null,g$);break;case"End":_e.preventDefault(),fh(Fe,null,m$);break}},Je=G();return R.jsxs(f1e,T({className:ue(ie.root,f),ownerState:q,ref:r,as:p},j,{children:[Je.scrollButtonStart,Je.scrollbarSizeListener,R.jsxs(p1e,{className:ie.scroller,ownerState:q,style:{overflow:Ae.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:k?void 0:-Ae.scrollbarWidth},ref:ut,children:[R.jsx(h1e,{"aria-label":i,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,className:ie.flexContainer,ownerState:q,onKeyDown:je,ref:V,role:"tablist",children:Ye}),pe&&Re]}),Je.scrollButtonEnd]}))}),y1e=m1e;function b1e(e){return Ue("MuiTextField",e)}We("MuiTextField",["root"]);const x1e=["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"],w1e={standard:I4,filled:$4,outlined:V4},S1e=e=>{const{classes:t}=e;return qe({root:["root"]},b1e,t)},_1e=ne(age,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:S,inputProps:x,InputProps:m,inputRef:b,label:h,maxRows:_,minRows:C,multiline:E=!1,name:w,onBlur:O,onChange:P,onFocus:k,placeholder:j,required:$=!1,rows:F,select:z=!1,SelectProps:M,type:W,value:B,variant:U="outlined"}=n,q=Pe(n,x1e),ie=T({},n,{autoFocus:o,color:u,disabled:c,error:f,fullWidth:v,multiline:E,required:$,select:z,variant:U}),oe=S1e(ie),Ee={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(Ee.notched=S.shrink),Ee.label=h),z&&((!M||!M.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const pe=el(y),Te=g&&pe?`${pe}-helper-text`:void 0,ye=h&&pe?`${pe}-label`:void 0,be=w1e[U],we=R.jsx(be,T({"aria-describedby":Te,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:v,multiline:E,name:w,rows:F,maxRows:_,minRows:C,type:W,value:B,id:pe,inputRef:b,onBlur:O,onChange:P,onFocus:k,placeholder:j,inputProps:x},Ee,m));return R.jsxs(_1e,T({className:ue(oe.root,s),disabled:c,error:f,fullWidth:v,ref:r,required:$,color:u,variant:U,ownerState:ie},q,{children:[h!=null&&h!==""&&R.jsx(Jge,T({htmlFor:pe,id:ye},S,{children:h})),z?R.jsx(H4,T({"aria-describedby":Te,id:pe,labelId:ye,value:B,input:we},M,{children:i})):we,g&&R.jsx(IC,T({id:Te},p,{children:g}))]}))}),yp=C1e,E1e=["getTrigger","target"];function O1e(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 P1e=typeof window<"u"?window:null;function J4(e={}){const{getTrigger:t=O1e,target:r=P1e}=e,n=Pe(e,E1e),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const s=()=>{i(t(a,T({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var FC={},f0={};const R1e=Do(Uue);var b$;function ct(){return b$||(b$=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=R1e}(f0)),f0}var T1e=it;Object.defineProperty(FC,"__esModule",{value:!0});var By=FC.default=void 0,$1e=T1e(ct()),k1e=R;By=FC.default=(0,$1e.default)((0,k1e.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 Bd=globalThis&&globalThis.__assign||function(){return Bd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(HSe,null):null,t&&d.createElement(Nxe,null),d.createElement(uxe,null))},Bxe=d.createElement(Dxe,null),zxe=d.createElement(UC,null),ss="RaAppBar",Es={appBar:"".concat(ss,"-appBar"),toolbar:"".concat(ss,"-toolbar"),menuButton:"".concat(ss,"-menuButton"),menuButtonIconClosed:"".concat(ss,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ss,"-menuButtonIconOpen"),title:"".concat(ss,"-title")},Vxe=ne(Uce,{name:ss,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Es.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Es.menuButton)]={marginRight:"0.2em"},t["& .".concat(Es.title)]={},t}),qC={},Uxe=it;Object.defineProperty(qC,"__esModule",{value:!0});var Uy=qC.default=void 0,Wxe=Uxe(ct()),Hxe=R;Uy=qC.default=(0,Wxe.default)((0,Hxe.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 KC={},qxe=it;Object.defineProperty(KC,"__esModule",{value:!0});var v5=KC.default=void 0,Kxe=qxe(ct()),Gxe=R;v5=KC.default=(0,Kxe.default)((0,Gxe.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 Vd=globalThis&&globalThis.__assign||function(){return Vd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?d.createElement(x5,Og({title:r,defaultTitle:t},a)):d.createElement(Rwe,Og({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,tp.createPortal(u,i))},Lx=globalThis&&globalThis.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=c_e(S===!1||S===void 0?void 0:!S,l||!O||E||w);q_(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var k=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){var z;return C$(this,function(M){switch(M.label){case 0:return h!=null&&h.save?[4,h.save(F,Hd(Hd({},u),{transform:p}))]:[3,2];case 1:z=M.sent(),M.label=2;case 2:return z!=null&&m3(z,b.setError),[2]}})})},[b.setError,h,u,p]),j=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){return C$(this,function(z){switch(z.label){case 0:return s&&s(F),F.defaultPrevented?[2]:f!=="button"?[3,2]:(F.stopPropagation(),[4,b.handleSubmit(k)(F)]);case 1:z.sent(),z.label=2;case 2:return[2]}})})},[s,f,b,k]),$=i&&m(i,{_:i});return d.createElement(u_e,Hd({variant:g,type:f,color:r,"aria-label":$,disabled:P,onClick:j},x),w?d.createElement(kc,{sx:i_e,size:14,thickness:3,color:"inherit"}):a,$)},i_e={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},s_e=d.createElement(U5,null),l_e="RaSaveButton",u_e=ne(hn,{name:l_e,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}),c_e=function(e,t){return typeof e>"u"?t:e},d_e=function(){return ke.createElement(p_e,{onClick:h_e,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},f_e="RaSkipNavigationButton",p_e=ne(Hr,{name:f_e,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})}}}),h_e=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jx=globalThis&&globalThis.__assign||function(){return Jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var h=Q5(),_=et(),C=_r(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var E=Nt(e),w=Wo(e),O=w.hasShow||w.hasEdit;if(!E)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var P=(!h||!h.isRowExpandable||h.isRowExpandable(C))&&i,k=Jte(E,f,h&&h.expandSingle),j=k[0],$=k[1],F=d.useState(function(){return E$(P,a,u)}),z=F[0],M=F[1];d.useEffect(function(){var oe=E$(P,a,u);oe!==z&&M(oe)},[P,z,a,u]);var W=lo(),B=d.useCallback(function(oe){$(),oe.stopPropagation()},[$]),U=d.useCallback(function(oe){!m||!p||(p(f,oe),oe.stopPropagation())},[f,p,m]),q=Ene(),ie=d.useCallback(function(oe){return B_e(void 0,void 0,void 0,function(){var Ee;return z_e(this,function(pe){switch(pe.label){case 0:return oe.persist(),[4,q({record:C,resource:E,link:typeof v=="function"?function(Te,ye){return v(Te.id,ye,Te)}:v})];case 1:return Ee=pe.sent(),v==="expand"?(B(oe),[2]):v==="toggleSelection"?(U(oe),[2]):Ee===!1||Ee==null?[2]:(W(Ee,{state:{_scrollToTop:!0}}),[2])}})})},[C,E,v,W,B,U,q]);return ke.createElement(ke.Fragment,null,ke.createElement(If,ow({ref:t,className:ue(o,(r={},r[rt.expandable]=P,r[rt.selectable]=m,r[rt.clickableRow]=v??O,r)),key:f,style:S,hover:c,onClick:ie},b),i&&ke.createElement(en,{padding:"none",className:rt.expandIconCell},P&&ke.createElement(D_e,{className:ue(rt.expandIcon,(n={},n[rt.expanded]=j,n)),expanded:j,onClick:B,expandContentId:"".concat(f,"-expand")})),u&&ke.createElement(en,{padding:"checkbox"},ke.createElement(gg,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(rt.checkbox),checked:m&&y,onClick:U,disabled:!m})),ke.Children.map(a,function(oe,Ee){return d.isValidElement(oe)?ke.createElement(F_e,{key:"".concat(f,"-").concat(oe.props.source||Ee),className:ue("column-".concat(oe.props.source),rt.rowCell),record:C,field:oe,resource:E}):null})),P&&j&&ke.createElement(If,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:rt.expandedPanel},ke.createElement(en,{colSpan:z},d.isValidElement(i)?i:d.createElement(i))))}),V_e=function(e,t){e.children,e.expand;var r=iw(e,["children","expand"]);t.children,t.expand;var n=iw(t,["children","expand"]);return vM(r,n)},Y5=d.memo(X5,V_e);Y5.displayName="PureDatagridRow";const U_e=X5;var Ng=globalThis&&globalThis.__assign||function(){return Ng=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=uCe&&(o=lCe,i=!1,t=new nCe(t));e:for(;++a0&&b.length>0&&b.every(function(h){return v.includes(h)}),onChange:m,onClick:function(h){return h.stopPropagation()}})),d.Children.map(t,function(h,_){return d.isValidElement(h)?d.createElement(X_e,{className:ue(rt.headerCell,"column-".concat(h.props.source)),sort:c,field:h,isSorting:(c==null?void 0:c.field)===(h.props.sortBy||h.props.source),key:h.props.source||_,updateSort:x||void 0}):null})))};eN.displayName="DatagridHeader";var xCe=function(e){var t=e.children,r=e.value;return ke.createElement(G5.Provider,{value:r},t)};const wCe=xCe;var gE={},SCe=it;Object.defineProperty(gE,"__esModule",{value:!0});var tN=gE.default=void 0,_Ce=SCe(ct()),CCe=R;tN=gE.default=(0,_Ce.default)((0,CCe.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 lw=globalThis&&globalThis.__assign||function(){return lw=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(Hr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Mf=globalThis&&globalThis.__assign||function(){return Mf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var v=o.getValues();return r.filter(function(g){var y=qt(v,g.props.source);return g.props.alwaysOn||u[g.props.source]||!aN(y)})},f=d.useCallback(function(v){return l(v.currentTarget.dataset.key)},[l]),p=d.useMemo(function(){return{getSource:function(v){return v},getLabel:function(v){return"resources.".concat(a,".fields.").concat(v)}}},[a]);return d.createElement(k3,{value:p},d.createElement(UCe,Ai({className:t},BCe(n),{onSubmit:DCe}),c().map(function(v){return d.createElement(ICe,{key:v.key||v.props.source,filterElement:v,handleHide:f,resource:a,className:Dg.filterFormInput})}),d.createElement("div",{className:Dg.clearFix})))},DCe=function(e){return e.preventDefault(),!1},BCe=function(e){e.hasCreate,e.resource;var t=mE(e,["hasCreate","resource"]);return t},zCe=function(e,t){return Ai(Ai({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return km(Ai({},r),n.props.source,n.props.defaultValue)},{})),e)},VCe=function(e){return e.preventDefault(),e.stopPropagation(),!1},cw="RaFilterForm",Dg={clearFix:"".concat(cw,"-clearFix"),filterFormInput:"".concat(cw,"-filterFormInput")},UCe=ne("form",{name:cw,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(Dg.clearFix)]={clear:"right"},t["& .".concat(Dg.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),WCe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=nN(e,a,t),n},(r=pM(t))!==null&&r!==void 0?r:{})},nN=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,s=nN(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},aN=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return aN(e[t])}):!1},yE={},HCe=it;Object.defineProperty(yE,"__esModule",{value:!0});var Ff=yE.default=void 0,qCe=HCe(ct()),KCe=R;Ff=yE.default=(0,qCe.default)((0,KCe.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 bE={},GCe=it;Object.defineProperty(bE,"__esModule",{value:!0});var oN=bE.default=void 0,QCe=GCe(ct()),XCe=R;oN=bE.default=(0,QCe.default)((0,XCe.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 xE={},YCe=it;Object.defineProperty(xE,"__esModule",{value:!0});var iN=xE.default=void 0,JCe=YCe(ct()),ZCe=R;iN=xE.default=(0,JCe.default)((0,ZCe.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 wE={},eEe=it;Object.defineProperty(wE,"__esModule",{value:!0});var sN=wE.default=void 0,tEe=eEe(ct()),rEe=R;sN=wE.default=(0,tEe.default)((0,rEe.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 SE={},nEe=it;Object.defineProperty(SE,"__esModule",{value:!0});var lN=SE.default=void 0,aEe=nEe(ct()),oEe=R;lN=SE.default=(0,aEe.default)((0,oEe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var _E={},iEe=it;Object.defineProperty(_E,"__esModule",{value:!0});var uN=_E.default=void 0,sEe=iEe(ct()),lEe=R;uN=_E.default=(0,sEe.default)((0,lEe.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 CE={},uEe=it;Object.defineProperty(CE,"__esModule",{value:!0});var cN=CE.default=void 0,cEe=uEe(ct()),dEe=R;cN=CE.default=(0,cEe.default)((0,dEe.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 fEe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,s=Nt(e),u=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(Ta,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?l:u,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Cs,null,i?d.createElement(cN,{fontSize:"small"}):d.createElement(uN,{fontSize:"small"})),d.createElement(Zl,null,d.createElement(no,{label:r.props.label,source:r.props.source,resource:s})))}),EE=function(e){return ya("".concat(e,".savedQueries"),[])},OE=function(e){return Array.isArray(e)?e.filter(function(t){return pEe(t)}):[]},pEe=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")},hEe=function(e){var t=e.open,r=e.onClose,n=et(),a=ga(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=EE(o),f=c[0],p=c[1],v=d.useState(""),g=v[0],y=v[1],S=function(b){y(b.target.value)},x=function(b){b.preventDefault(),m()},m=function(){var b={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},h=OE(f);p(h.concat(b)),y(""),r()};return d.createElement(TC,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(jC,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(kC,null,d.createElement("form",{onSubmit:x},d.createElement(yp,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:S}))),d.createElement($C,null,d.createElement(hn,{onClick:r},n("ra.action.cancel")),d.createElement(hn,{onClick:m,color:"primary"},n("ra.action.save"))))},$$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=EE(u||"")[0],f=lo(),p=ga(),v=p.displayedFilters,g=v===void 0?{}:v,y=p.filterValues,S=p.perPage,x=p.setFilters,m=p.showFilter,b=p.hideFilter,h=p.sort,_=!ja(y,{}),C=OE(c),E=C.some(function(be){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})}),w=d.useState(!1),O=w[0],P=w[1],k=d.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var j=s.filter(function(be){return!be.props.alwaysOn}),$=d.useCallback(function(be){be.preventDefault(),P(!0),k.current=be.currentTarget},[k,P]),F=d.useCallback(function(){P(!1)},[P]),z=d.useCallback(function(be){var we=be.source,ve=be.defaultValue;m(we,ve===""?void 0:ve),setTimeout(function(){var De=document.querySelector("input[name='".concat(we,"']"));De&&De.focus()},50),P(!1)},[m,P]),M=d.useCallback(function(be){var we=be.source;b(we),P(!1)},[b,P]),W=d.useState(!1),B=W[0],U=W[1],q=function(){U(!1)},ie=function(){P(!1),U(!0)},oe=d.useState(!1),Ee=oe[0],pe=oe[1],Te=function(){pe(!1)},ye=function(){P(!1),pe(!0)};return j.length===0&&C.length===0&&!_?null:d.createElement(yEe,dw({className:r},gEe(i)),d.createElement(Hr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:$,variant:o,size:a},d.createElement(lN,null)),d.createElement(Ly,{open:O,anchorEl:k.current,onClose:F},j.map(function(be,we){return d.createElement(fEe,{key:be.props.source,filter:be,displayed:!!g[be.props.source],resource:u,onShow:z,onHide:M,autoFocus:we===0})}),(_||C.length>0)&&d.createElement(mg,null),C.map(function(be,we){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})?d.createElement(Ta,{onClick:ye,key:we},d.createElement(Cs,null,d.createElement(iN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:be.label}))):d.createElement(Ta,{onClick:function(){var ve,De;f({search:ko.stringify({filter:JSON.stringify(be.value.filter),sort:(ve=be.value.sort)===null||ve===void 0?void 0:ve.field,order:(De=be.value.sort)===null||De===void 0?void 0:De.order,page:1,perPage:be.value.perPage,displayedFilters:JSON.stringify(be.value.displayedFilters)})}),P(!1)},key:we},d.createElement(Cs,null,d.createElement(sN,{fontSize:"small"})),d.createElement(Zl,null,be.label))}),_&&!E&&!n&&d.createElement(Ta,{onClick:ie},d.createElement(Cs,null,d.createElement(oN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&d.createElement(Ta,{onClick:function(){x({},{}),P(!1)}},d.createElement(Cs,null,d.createElement(Ff,{fontSize:"small"})),d.createElement(Zl,null,l("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(hEe,{open:B,onClose:q}),d.createElement(vEe,{open:Ee,onClose:Te})))},gEe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=dN(e,["displayedFilters","filterValues","showFilter"]);return t},mEe="RaFilterButton",yEe=ne("div",{name:mEe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),bEe=function(e){var t=e.children,r=function(){return d.createElement(fN,{className:j$.button})},n=function(){return d.createElement(rN,{className:j$.form})};return d.createElement(Ep.Provider,{value:d.Children.toArray(t)},e.context==="button"?r():n())},k$="RaFilter",j$={button:"".concat(k$,"-button"),form:"".concat(k$,"-form")},fw=globalThis&&globalThis.__assign||function(){return fw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:w+1}));v(w+1)},[x,v,y]),b=d.useCallback(function(E){g(E.target.value)},[g]),h=d.useCallback(function(E){var w=E.from,O=E.to,P=E.count;return P===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:w,offsetEnd:O,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:w,offsetEnd:O,total:P===-1?O:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),_=d.useCallback(function(E){return y("ra.navigation.".concat(E),{_:"Go to ".concat(E," page")})},[y]);if(u)return d.createElement(jc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(S)return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:EEe,component:"span",labelDisplayedRows:h},wf(i)));var C=n||(!u&&p!=null?xEe:void 0);return d.createElement(p$,Bg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:b,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:_,rowsPerPageOptions:r},wf(i)))}),CEe=[5,10,25,50],EEe=[],zg=globalThis&&globalThis.__assign||function(){return zg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ye.target.value>"u")){var be=ye.target,we=be.valueAsDate!==void 0&&be.valueAsDate!==null&&!isNaN(new Date(be.valueAsDate).getTime())?g?g(be.valueAsDate):be.valueAsDate:g?g(be.value):mh(be.value);we!==""&&we!=null&&(_.onChange(we),j.current=!0)}},B=function(ye){c&&c(ye),M.current=!0},U=function(){if(M.current=!1,!!$.current){var ye=$.current.valueAsDate!==void 0&&$.current.valueAsDate!==null&&!isNaN(new Date($.current.valueAsDate).getTime())?g?g($.current.valueAsDate):mh($.current.valueAsDate):g?g($.current.value):mh($.current.value);ye!==_.value&&_.onChange(ye??""),z&&z()}},q=C.error,ie=C.invalid,oe=i!==!1||ie,Ee=_.ref,pe=_.name,Te=fae([Ee,$]);return d.createElement(yp,zg({id:E,inputRef:Te,name:pe,defaultValue:a(F.current),key:P,type:"datetime-local",onChange:W,onFocus:B,onBlur:U,className:ue("ra-input","ra-input-".concat(f),t),size:"small",variant:S,margin:s,error:ie,disabled:x||m,readOnly:m,helperText:oe?d.createElement(rl,{error:q==null?void 0:q.message,helperText:i}):null,label:d.createElement(no,{label:o,source:f,resource:p,isRequired:w}),InputLabelProps:kEe},_p(b)))},vN=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},TEe=vN(4),gh=vN(2),A$=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=TEe(e.getFullYear()),r=gh(e.getMonth()+1),n=gh(e.getDate()),a=gh(e.getHours()),o=gh(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},$Ee=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,kEe={shrink:!0},mh=function(e){return e==null||e===""?"":e instanceof Date?A$(e):$Ee.test(e)?e:A$(new Date(e))},Vg=globalThis&&globalThis.__assign||function(){return Vg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof we.target.value>"u")){var ve=we.target;q(ve.value);var De=ve.valueAsNumber!==void 0&&ve.valueAsNumber!==null&&!isNaN(ve.valueAsNumber)?p?p(ve.valueAsNumber):ve.valueAsNumber:p?p(ve.value):LEe(ve.value);P.onChange(De)}},Ee=function(we){f&&f(we),ie.current=!0},pe=function(){M&&M(),ie.current=!1;var we=o(P.value);q(function(ve){return ve!==we?we:ve})},Te=i!==!1||$,ye=P.ref,be=F$(P,["ref"]);return d.createElement(yp,ii({id:F},be,{inputRef:ye,value:U,onChange:oe,onFocus:Ee,onBlur:pe,className:ue("ra-input","ra-input-".concat(g),t),type:"number",size:"small",variant:h,error:$,disabled:C||E,readOnly:E,helperText:Te?d.createElement(rl,{error:j==null?void 0:j.message,helperText:i}):null,label:d.createElement(no,{label:s,source:g,resource:v,isRequired:z}),margin:u,inputProps:ii(ii({},W),{readOnly:E})},_p(w)))},LEe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},DEe=function(e){return e==null||isNaN(e)?"":e.toString()},Ug=globalThis&&globalThis.__assign||function(){return Ug=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(KEe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Di,{className:vu.content},d.createElement(Nn,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Xl()}),d.createElement(Nn,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Xl()}),d.createElement(hn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:vu.button},a?d.createElement(kc,{className:vu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},nv="RaLoginForm",vu={content:"".concat(nv,"-content"),button:"".concat(nv,"-button"),icon:"".concat(nv,"-icon")},KEe=ne(M_,{name:nv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(vu.content)]={width:300},t["& .".concat(vu.button)]={marginTop:r.spacing(2)},t["& .".concat(vu.icon)]={margin:r.spacing(.3)},t}),pw=globalThis&&globalThis.__assign||function(){return pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?lOe:r;return a?d.createElement(cOe,mw({className:ue("edit-page",o)},l),u!==!1&&d.createElement(dl,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),y,d.createElement("div",{className:ue(yu.main,(t={},t[yu.noActions]=!y,t))},d.createElement(s,{className:yu.card},g?a:d.createElement(Di,null," ")),n)):null},iv="RaEdit",yu={main:"".concat(iv,"-main"),noActions:"".concat(iv,"-noActions"),card:"".concat(iv,"-card")},cOe=ne("div",{name:iv,overridesResolver:function(e,t){return t.root}})((td={},td["& .".concat(yu.main)]={display:"flex",alignItems:"flex-start"},td["& .".concat(yu.noActions)]={marginTop:"1em"},td["& .".concat(yu.card)]={flex:"1 1 auto"},td)),yw=globalThis&&globalThis.__assign||function(){return yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&S?EOe:r;return!a||!y&&l?null:d.createElement(POe,ww({className:ue("show-page",o)},f),c!==!1&&d.createElement(dl,{title:c,defaultTitle:g,preferenceKey:"".concat(v,".show.title")}),x!==!1&&x,d.createElement("div",{className:ue(xu.main,(t={},t[xu.noActions]=!x,t))},d.createElement(s,{className:xu.card},a),n))},lv="RaShow",xu={main:"".concat(lv,"-main"),noActions:"".concat(lv,"-noActions"),card:"".concat(lv,"-card")},POe=ne("div",{name:lv,overridesResolver:function(e,t){return t.root}})((rd={},rd["& .".concat(xu.main)]={display:"flex"},rd["& .".concat(xu.noActions)]={marginTop:"1em"},rd["& .".concat(xu.card)]={flex:"1 1 auto"},rd)),Sw=globalThis&&globalThis.__assign||function(){return Sw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var v=ry(e);if(v==null||v==="")return r?d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),r&&p(r,{_:r})):null;var g=c(v),y="";if(g)if(i&&u)y=g0?g.toLocaleString(n,a):g.toLocaleString();else if(u){var S=a??(typeof v=="string"&&v.length<=10?{timeZone:"UTC"}:void 0);y=g0?g.toLocaleDateString(n,S):g.toLocaleDateString()}else i&&(y=g0?g.toLocaleTimeString(n,a):g.toLocaleTimeString());return d.createElement(_t,Kg({component:"span",variant:"body2",className:t},nl(f)),y)};_N.displayName="DateFieldImpl";var Ya=Ky(_N),NOe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},g0=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Gg=globalThis&&globalThis.__assign||function(){return Gg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},Kd=globalThis&&globalThis.__assign||function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&D$.call(t.callee)==="[object Function]"),n},m0,B$;function OPe(){if(B$)return m0;B$=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=AN,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",S=n(v),x=g&&r.call(v)==="[object String]",m=[];if(!g&&!y&&!S)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(x&&v.length>0&&!t.call(v,0))for(var h=0;h0)for(var _=0;_"u"||!jr?bt:jr(Uint8Array),Bs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":El&&jr?jr([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":YPe,"%eval%":eval,"%EvalError%":JPe,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":NN,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":El&&jr?jr(jr([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!El||!jr?bt:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":ZPe,"%ReferenceError%":e2e,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!El||!jr?bt:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":El&&jr?jr(""[Symbol.iterator]()):bt,"%Symbol%":El?Symbol:bt,"%SyntaxError%":oc,"%ThrowTypeError%":r2e,"%TypedArray%":a2e,"%TypeError%":Su,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":t2e,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet};if(jr)try{null.error}catch(e){var o2e=jr(jr(e));Bs["%Error.prototype%"]=o2e}var i2e=function e(t){var r;if(t==="%AsyncFunction%")r=b0("async function () {}");else if(t==="%GeneratorFunction%")r=b0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=b0("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&jr&&(r=jr(a.prototype))}return Bs[t]=r,r},H$={__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"]},Pp=$E,Qg=FN,s2e=Pp.call(Function.call,Array.prototype.concat),l2e=Pp.call(Function.apply,Array.prototype.splice),q$=Pp.call(Function.call,String.prototype.replace),Xg=Pp.call(Function.call,String.prototype.slice),u2e=Pp.call(Function.call,RegExp.prototype.exec),c2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d2e=/\\(\\)?/g,f2e=function(t){var r=Xg(t,0,1),n=Xg(t,-1);if(r==="%"&&n!=="%")throw new oc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new oc("invalid intrinsic syntax, expected opening `%`");var a=[];return q$(t,c2e,function(o,i,s,u){a[a.length]=s?q$(u,d2e,"$1"):i||o}),a},p2e=function(t,r){var n=t,a;if(Qg(H$,n)&&(a=H$[n],n="%"+a[0]+"%"),Qg(Bs,n)){var o=Bs[n];if(o===Il&&(o=i2e(n)),typeof o>"u"&&!r)throw new Su("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new oc("intrinsic "+t+" does not exist!")},Rp=function(t,r){if(typeof t!="string"||t.length===0)throw new Su("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Su('"allowMissing" argument must be a boolean');if(u2e(/^%?[^%]*%?$/,t)===null)throw new oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=f2e(t),a=n.length>0?n[0]:"",o=p2e("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],l2e(n,s2e([0,1],l)));for(var c=1,f=!0;c=n.length){var y=Ds(s,p);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else f=Qg(s,p),s=s[p];f&&!u&&(Bs[i]=s)}}return s},h2e=Rp,dv=h2e("%Object.defineProperty%",!0)||!1;if(dv)try{dv({},"a",{value:1})}catch{dv=!1}var kE=dv,v2e=Rp,fv=v2e("%Object.getOwnPropertyDescriptor%",!0);if(fv)try{fv([],"length")}catch{fv=null}var LN=fv,K$=kE,g2e=MN,Ol=Op,G$=LN,DN=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ol("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ol("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ol("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ol("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ol("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ol("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!G$&&G$(t,r);if(K$)K$(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new g2e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mw=kE,BN=function(){return!!Mw};BN.hasArrayLengthDefineBug=function(){if(!Mw)return null;try{return Mw([],"length",{value:1}).length!==1}catch{return!0}};var zN=BN,m2e=TPe,y2e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",b2e=Object.prototype.toString,x2e=Array.prototype.concat,Q$=DN,w2e=function(e){return typeof e=="function"&&b2e.call(e)==="[object Function]"},VN=zN(),S2e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!w2e(n)||!n())return}VN?Q$(e,t,r,!0):Q$(e,t,r)},UN=function(e,t){var r=arguments.length>2?arguments[2]:{},n=m2e(t);y2e&&(n=x2e.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||E2e(r)!==r)throw new J$("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&Y$){var i=Y$(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(C2e?X$(t,"length",r,!0,!0):X$(t,"length",r)),t};(function(e){var t=$E,r=Rp,n=O2e,a=Op,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=kE,l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var v=s(t,i,arguments);return n(v,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(HN);var qN=HN.exports,P2e=Op,R2e=function(t){if(t==null)throw new P2e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},KN=Rp,GN=qN,T2e=GN(KN("String.prototype.indexOf")),$2e=function(t,r){var n=KN(t,!!r);return typeof n=="function"&&T2e(t,".prototype.")>-1?GN(n):n},k2e=R2e,QN=$2e,j2e=QN("Object.prototype.propertyIsEnumerable"),I2e=QN("Array.prototype.push"),XN=function(t){var r=k2e(t),n=[];for(var a in r)j2e(r,a)&&I2e(n,[a,r[a]]);return n},A2e=XN,YN=function(){return typeof Object.entries=="function"?Object.entries:A2e},M2e=YN,F2e=WN,N2e=function(){var t=M2e();return F2e(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},L2e=WN,D2e=qN,B2e=XN,JN=YN,z2e=N2e,ZN=D2e(JN(),Object);L2e(ZN,{getPolyfill:JN,implementation:B2e,shim:z2e});var V2e=ZN,jE=V2e,eL=FN,U2e=function(t){},Fw=String.prototype.replace,tL=String.prototype.split,pv="||||",bh=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},rL={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:bh,chinese:function(){return 0},croatian:bh,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bh,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:bh},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 W2e(e){for(var t={},r=jE(e),n=0;n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var uRe=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),cRe=function(e){uRe(t,e);function t(r,n,a){a===void 0&&(a=null);var o=e.call(this,r)||this;return o.message=r,o.status=n,o.body=a,Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(o,o.constructor):o.stack=new Error(r).stack,o.stack=new Error().stack,o}return t}(Error);const dRe=cRe;var Yg=globalThis&&globalThis.__assign||function(){return Yg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new dRe(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},pRe=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},Jg=function(e,t){var r;return t===void 0&&(t=[]),pRe(e)?Object.assign.apply(Object,fRe([{}],Object.keys(e).map(function(n){return Jg(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e};function Nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{t.headers||(t.headers=aL(t));const r=localStorage.getItem("token");return r&&t.headers.set("Authorization",`Bearer ${r}`),ME(e,t)},mRe=vRe(fl,gRe),yRe={...mRe,getManyReference:(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={...Jg(t.filter),[t.target]:t.id,_sort:a,_order:o,_start:(r-1)*n,_end:r*n,output_size_limit:200},s=`${fl}/${t.target}/${t.id}/${e}?${ko.stringify(i)}`;return ME(s).then(({headers:u,json:l})=>{if(!u.has("x-total-count"))throw new Error("The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?");return{data:l,total:parseInt(u.get("x-total-count").split("/").pop()||"",10)}})}};var FE={},bRe=it;Object.defineProperty(FE,"__esModule",{value:!0});var Gy=FE.default=void 0,xRe=bRe(ct()),wRe=R;Gy=FE.default=(0,xRe.default)((0,wRe.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");const SRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}`,{method:"POST"}).then(()=>{t("Success running job")}).catch(u=>{t("Error on running job",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Run",onClick:i,disabled:a,children:R.jsx(Gy,{})})},_Re=({selectedIds:e})=>{const t=ur(),r=Uo(),n=XM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}/toggle`,{method:"POST"}).then(()=>{t("Job toggled")}).catch(u=>{t("Error on job toggle",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Toggle",title:"Enable/disable execution of selected jobs",onClick:i,disabled:a,children:R.jsx(Gy,{})})};var NE={},CRe=it;Object.defineProperty(NE,"__esModule",{value:!0});var LE=NE.default=void 0,ERe=CRe(ct()),ORe=R;LE=NE.default=(0,ERe.default)((0,ORe.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 DE={},PRe=it;Object.defineProperty(DE,"__esModule",{value:!0});var iL=DE.default=void 0,RRe=PRe(ct()),TRe=R;iL=DE.default=(0,RRe.default)((0,TRe.jsx)("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer");const $Re=()=>{const e=_r();return e.status==="success"?R.jsx(kn,{title:"Success",children:R.jsx(Uy,{htmlColor:"green"})}):e.status==="failed"?R.jsx(kn,{title:"Error",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Waiting to Run",children:R.jsx(iL,{htmlColor:"blue"})})},kRe=()=>_r().disabled?R.jsx(kn,{title:"Disabled",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Enabled",children:R.jsx(Uy,{htmlColor:"green"})}),jRe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function IRe(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let o=0;const i=()=>(o+=1,o);return(s,u)=>{const l=u.options.name;if(l&&l.indexOf("Mui")===0&&!u.options.link&&!t){if(jRe.indexOf(s.key)!==-1)return`Mui-${s.key}`;const c=`${a}${l}-${s.key}`;return!u.options.theme[HF]||n!==""?c:`${c}-${i()}`}return`${a}${r}${i()}`}}var sk=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},Tp=(typeof window>"u"?"undefined":sk(window))==="object"&&(typeof document>"u"?"undefined":sk(document))==="object"&&document.nodeType===9,ARe={}.constructor;function Lw(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Lw);if(e.constructor!==ARe)return e;var t={};for(var r in e)t[r]=Lw(e[r]);return t}function BE(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,a=Lw(t),o=n.plugins.onCreateRule(e,a,r);return o||(e[0],null)}var lk=function(t,r){for(var n="",a=0;a<+~=|^:(),"'`\s])/g,uk=typeof CSS<"u"&&CSS.escape,zE=function(e){return uk?uk(e):e.replace(MRe,"\\$1")},sL=function(){function e(r,n,a){this.type="style",this.isProcessed=!1;var o=a.sheet,i=a.Renderer;this.key=r,this.options=a,this.style=n,o?this.renderer=o.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,a,o){if(a===void 0)return this.style[n];var i=o?o.force:!1;if(!i&&this.style[n]===a)return this;var s=a;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(a,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),Dw=function(e){Py(t,e);function t(n,a,o){var i;i=e.call(this,n,a,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,c=o.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(bx(bx(i)),l),i.selectorText="."+zE(i.id)),i}var r=t.prototype;return r.applyTo=function(a){var o=this.renderer;if(o){var i=this.toJSON();for(var s in i)o.setProperty(a,s,i[s])}return this},r.toJSON=function(){var a={};for(var o in this.style){var i=this.style[o];typeof i!="object"?a[o]=i:Array.isArray(i)&&(a[o]=zs(i))}return a},r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.selectorText,this.style,s)},oL(t,[{key:"selector",set:function(a){if(a!==this.selectorText){this.selectorText=a;var o=this.renderer,i=this.renderable;if(!(!i||!o)){var s=o.setSelector(i,a);s||o.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(sL),FRe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new Dw(t,r,n)}},S0={indent:1,children:!0},NRe=/@([\w-]+)/,LRe=function(){function e(r,n,a){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(NRe);this.at=o?o[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new Qy(T({},a,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=S0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=S0.indent),n.children==null&&(n.children=S0.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+o+i+o+"}":""},e}(),DRe=/@container|@media|@supports\s+/,BRe={onCreateRule:function(t,r,n){return DRe.test(t)?new LRe(t,r,n):null}},_0={indent:1,children:!0},zRe=/@keyframes\s+([\w-]+)/,Bw=function(){function e(r,n,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(zRe);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var i=a.scoped,s=a.sheet,u=a.generateId;this.id=i===!1?this.name:zE(u(this,s)),this.rules=new Qy(T({},a,{parent:this}));for(var l in n)this.rules.add(l,n[l],T({},a,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=_0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=_0.indent),n.children==null&&(n.children=_0.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+o+i+o),this.at+" "+this.id+" {"+i+"}"},e}(),VRe=/@keyframes\s+/,URe=/\$([\w-]+)/g,zw=function(t,r){return typeof t=="string"?t.replace(URe,function(n,a){return a in r?r[a]:n}):t},ck=function(t,r,n){var a=t[r],o=zw(a,n);o!==a&&(t[r]=o)},WRe={onCreateRule:function(t,r,n){return typeof t=="string"&&VRe.test(t)?new Bw(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&ck(t,"animation-name",n.keyframes),"animation"in t&&ck(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var a=n.options.sheet;if(!a)return t;switch(r){case"animation":return zw(t,a.keyframes);case"animation-name":return zw(t,a.keyframes);default:return t}}},HRe=function(e){Py(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.key,this.style,s)},t}(sL),qRe={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new HRe(t,r,n):null}},KRe=function(){function e(r,n,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=a}var t=e.prototype;return t.toString=function(n){var a=Ic(n),o=a.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){a.push(n);return}for(var i=0;io){a.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var a=this.registry.indexOf(n);this.registry.splice(a,1)},t.toString=function(n){for(var a=n===void 0?{}:n,o=a.attached,i=Pe(a,["attached"]),s=Ic(i),u=s.linebreak,l="",c=0;c-1?a.substr(0,o-1):a;t.style.setProperty(r,i,o>-1?"important":"")}}catch{return!1}return!0},iTe=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},sTe=function(t,r){return t.selectorText=r,t.selectorText===r},cL=uL(function(){return document.querySelector("head")});function lTe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function uTe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function cTe(e){for(var t=cL(),r=0;r0){var r=lTe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=uTe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var a=cTe(n);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}function fTe(e,t){var r=t.insertionPoint,n=dTe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var a=r,o=a.parentNode;o&&o.insertBefore(e,a.nextSibling);return}cL().appendChild(e)}var pTe=uL(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),vk=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},gk=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},hTe=function(){var t=document.createElement("style");return t.textContent=` -`,t},vTe=function(){function e(r){this.getPropertyValue=aTe,this.setProperty=oTe,this.removeProperty=iTe,this.setSelector=sTe,this.hasInsertedRules=!1,this.cssRules=[],r&&Gd.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},a=n.media,o=n.meta,i=n.element;this.element=i||hTe(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),o&&this.element.setAttribute("data-meta",o);var s=pTe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){fTe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` + `),che)),vhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:s=40,style:u,thickness:l=3.6,value:c=0,variant:f="indeterminate"}=n,p=Pe(n,lhe),v=T({},n,{color:o,disableShrink:i,size:s,thickness:l,value:c,variant:f}),g=dhe(v),y={},S={},x={};if(f==="determinate"){const m=2*Math.PI*((Jo-l)/2);y.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,S.transform="rotate(-90deg)"}return R.jsx(fhe,T({className:ue(g.root,a),style:T({width:s,height:s},S,u),ownerState:v,ref:r,role:"progressbar"},x,p,{children:R.jsx(phe,{className:g.svg,ownerState:v,viewBox:`${Jo/2} ${Jo/2} ${Jo} ${Jo}`,children:R.jsx(hhe,{className:g.circle,style:y,ownerState:v,cx:Jo,cy:Jo,r:(Jo-l)/2,fill:"none",strokeWidth:l})})}))}),kc=vhe;function zT(e){return e.substring(2).toLowerCase()}function ghe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const c=Jt(t.ref,s),f=fn(g=>{const y=l.current;l.current=!1;const S=wr(s.current);if(!u.current||!s.current||"clientX"in g&&ghe(g,S))return;if(i.current){i.current=!1;return}let x;g.composedPath?x=g.composedPath().indexOf(s.current)>-1:x=!S.documentElement.contains(g.target)||s.current.contains(g.target),!x&&(r||!y)&&a(g)}),p=g=>y=>{l.current=!0;const S=t.props[g];S&&S(y)},v={ref:c};return o!==!1&&(v[o]=p(o)),d.useEffect(()=>{if(o!==!1){const g=zT(o),y=wr(s.current),S=()=>{i.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",S),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",S)}}},[f,o]),n!==!1&&(v[n]=p(n)),d.useEffect(()=>{if(n!==!1){const g=zT(n),y=wr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,n]),R.jsx(d.Fragment,{children:d.cloneElement(t,v)})}const yhe=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),bhe=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}}),xhe=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([i,s])=>{var u;n[e.getColorSchemeSelector(i).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let a=T({html:yhe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},bhe(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 whe(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return R.jsxs(d.Fragment,{children:[R.jsx(b4,{styles:a=>xhe(a,n)}),r]})}function She(e){const t=wr(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Nd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VT(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function _he(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 UT(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const s=o.indexOf(i)===-1,u=!_he(i);s&&u&&Nd(i,a)})}function a0(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function Che(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(She(n)){const i=zF(wr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${VT(n)+i}px`;const s=wr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${VT(u)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=wr(n).body;else{const i=n.parentElement,s=da(n);o=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:s})=>{o?i.style.setProperty(s,o):i.style.removeProperty(s)})}}function Ehe(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ohe{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&&Nd(t.modalRef,!1);const a=Ehe(r);UT(r,t.mount,t.modalRef,a,!0);const o=a0(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=a0(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=Che(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=a0(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&&Nd(t.modalRef,r),UT(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&&Nd(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Phe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Rhe(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 The(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 $he(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||The(e))}function khe(e){const t=[],r=[];return Array.from(e.querySelectorAll(Phe)).forEach((n,a)=>{const o=Rhe(n);o===-1||!$he(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 jhe(){return!0}function Ihe(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=khe,isEnabled:i=jhe,open:s}=e,u=d.useRef(!1),l=d.useRef(null),c=d.useRef(null),f=d.useRef(null),p=d.useRef(null),v=d.useRef(!1),g=d.useRef(null),y=Jt(t.ref,g),S=d.useRef(null);d.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{a||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),d.useEffect(()=>{if(!s||!g.current)return;const b=wr(g.current),h=E=>{S.current=E,!(n||!i()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(u.current=!0,c.current&&c.current.focus())},_=()=>{const E=g.current;if(E===null)return;if(!b.hasFocus()||!i()||u.current){u.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==l.current&&b.activeElement!==c.current)return;if(b.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let w=[];if((b.activeElement===l.current||b.activeElement===c.current)&&(w=o(g.current)),w.length>0){var O,P;const k=!!((O=S.current)!=null&&O.shiftKey&&((P=S.current)==null?void 0:P.key)==="Tab"),j=w[0],$=w[w.length-1];typeof j!="string"&&typeof $!="string"&&(k?$.focus():j.focus())}else E.focus()};b.addEventListener("focusin",_),b.addEventListener("keydown",h,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",_),b.removeEventListener("keydown",h,!0)}},[r,n,a,i,s,o]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0,p.current=b.target;const h=t.props.onFocus;h&&h(b)},m=b=>{f.current===null&&(f.current=b.relatedTarget),v.current=!0};return R.jsxs(d.Fragment,{children:[R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:l,"data-testid":"sentinelStart"}),d.cloneElement(t,{ref:y,onFocus:x}),R.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function Ahe(e){return typeof e=="function"?e():e}function Mhe(e){return e?e.props.hasOwnProperty("in"):!1}const Fhe=new Ohe;function Nhe(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=Fhe,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:u,onClose:l,open:c,rootRef:f}=e,p=d.useRef({}),v=d.useRef(null),g=d.useRef(null),y=Jt(g,f),[S,x]=d.useState(!c),m=Mhe(u);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const h=()=>wr(v.current),_=()=>(p.current.modalRef=g.current,p.current.mount=v.current,p.current),C=()=>{a.mount(_(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=fn(()=>{const M=Ahe(t)||h().body;a.add(_(),M),g.current&&C()}),w=d.useCallback(()=>a.isTopModal(_()),[a]),O=fn(M=>{v.current=M,M&&(c&&w()?C():g.current&&Nd(g.current,b))}),P=d.useCallback(()=>{a.remove(_(),b)},[b,a]);d.useEffect(()=>()=>{P()},[P]),d.useEffect(()=>{c?E():(!m||!o)&&P()},[c,P,m,o,E]);const k=M=>W=>{var B;(B=M.onKeyDown)==null||B.call(M,W),!(W.key!=="Escape"||W.which===229||!w())&&(r||(W.stopPropagation(),l&&l(W,"escapeKeyDown")))},j=M=>W=>{var B;(B=M.onClick)==null||B.call(M,W),W.target===W.currentTarget&&l&&l(W,"backdropClick")};return{getRootProps:(M={})=>{const W=lg(e);delete W.onTransitionEnter,delete W.onTransitionExited;const B=T({},W,M);return T({role:"presentation"},B,{onKeyDown:k(B),ref:y})},getBackdropProps:(M={})=>{const W=M;return T({"aria-hidden":!0},W,{onClick:j(W),open:c})},getTransitionProps:()=>{const M=()=>{x(!1),i&&i()},W=()=>{x(!0),s&&s(),o&&P()};return{onEnter:hx(M,u==null?void 0:u.props.onEnter),onExited:hx(W,u==null?void 0:u.props.onExited)}},rootRef:y,portalRef:O,isTopModal:w,exited:S,hasTransition:m}}function Lhe(e){return Ue("MuiModal",e)}We("MuiModal",["root","hidden","backdrop"]);const Dhe=["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"],Bhe=e=>{const{open:t,exited:r,classes:n}=e;return qe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Lhe,n)},zhe=ne("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"})),Vhe=ne(w4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Uhe=d.forwardRef(function(t,r){var n,a,o,i,s,u;const l=Ke({name:"MuiModal",props:t}),{BackdropComponent:c=Vhe,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:g,container:y,component:S,components:x={},componentsProps:m={},disableAutoFocus:b=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:_=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:O=!1,keepMounted:P=!1,onBackdropClick:k,open:j,slotProps:$,slots:F}=l,z=Pe(l,Dhe),M=T({},l,{closeAfterTransition:v,disableAutoFocus:b,disableEnforceFocus:h,disableEscapeKeyDown:_,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:O,keepMounted:P}),{getRootProps:W,getBackdropProps:B,getTransitionProps:U,portalRef:q,isTopModal:ie,exited:oe,hasTransition:Ee}=Nhe(T({},M,{rootRef:r})),pe=T({},M,{exited:oe}),Te=Bhe(pe),ye={};if(g.props.tabIndex===void 0&&(ye.tabIndex="-1"),Ee){const{onEnter:Ne,onExited:Ae}=U();ye.onEnter=Ne,ye.onExited=Ae}const be=(n=(a=F==null?void 0:F.root)!=null?a:x.Root)!=null?n:zhe,we=(o=(i=F==null?void 0:F.backdrop)!=null?i:x.Backdrop)!=null?o:c,ve=(s=$==null?void 0:$.root)!=null?s:m.root,De=(u=$==null?void 0:$.backdrop)!=null?u:m.backdrop,Me=fa({elementType:be,externalSlotProps:ve,externalForwardedProps:z,getSlotProps:W,additionalProps:{ref:r,as:S},ownerState:pe,className:ue(p,ve==null?void 0:ve.className,Te==null?void 0:Te.root,!pe.open&&pe.exited&&(Te==null?void 0:Te.hidden))}),Qe=fa({elementType:we,externalSlotProps:De,additionalProps:f,getSlotProps:Ne=>B(T({},Ne,{onClick:Ae=>{k&&k(Ae),Ne!=null&&Ne.onClick&&Ne.onClick(Ae)}})),className:ue(De==null?void 0:De.className,f==null?void 0:f.className,Te==null?void 0:Te.backdrop),ownerState:pe});return!P&&!j&&(!Ee||oe)?null:R.jsx(m4,{ref:q,container:y,disablePortal:C,children:R.jsxs(be,T({},Me,{children:[!O&&c?R.jsx(we,T({},Qe)):null,R.jsx(Ihe,{disableEnforceFocus:h,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:ie,open:j,children:d.cloneElement(g,ye)})]}))})}),RC=Uhe;function Whe(e){return Ue("MuiDialog",e)}const Hhe=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),o0=Hhe,qhe=d.createContext({}),C4=qhe,Khe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ghe=ne(w4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qhe=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return qe(i,Whe,t)},Xhe=ne(RC,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Yhe=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${ge(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"}})),Jhe=ne(Yi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${ge(r.scroll)}`],t[`paperWidth${ge(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)`,[`&.${o0.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}`,[`&.${o0.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,[`&.${o0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Zhe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialog"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:u,BackdropProps:l,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:g=!1,maxWidth:y="sm",onBackdropClick:S,onClick:x,onClose:m,open:b,PaperComponent:h=Yi,PaperProps:_={},scroll:C="paper",TransitionComponent:E=x4,transitionDuration:w=o,TransitionProps:O}=n,P=Pe(n,Khe),k=T({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:g,maxWidth:y,scroll:C}),j=Qhe(k),$=d.useRef(),F=B=>{$.current=B.target===B.currentTarget},z=B=>{x&&x(B),$.current&&($.current=null,S&&S(B),m&&m(B,"backdropClick"))},M=el(s),W=d.useMemo(()=>({titleId:M}),[M]);return R.jsx(Xhe,T({className:ue(j.root,f),closeAfterTransition:!0,components:{Backdrop:Ghe},componentsProps:{backdrop:T({transitionDuration:w,as:u},l)},disableEscapeKeyDown:p,onClose:m,open:b,ref:r,onClick:z,ownerState:k},P,{children:R.jsx(E,T({appear:!0,in:b,timeout:w,role:"presentation"},O,{children:R.jsx(Yhe,{className:ue(j.container),onMouseDown:F,ownerState:k,children:R.jsx(Jhe,T({as:h,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":M},_,{className:ue(j.paper,_.className),ownerState:k,children:R.jsx(C4.Provider,{value:W,children:c})}))})}))}))}),TC=Zhe;function eve(e){return Ue("MuiDialogActions",e)}We("MuiDialogActions",["root","spacing"]);const tve=["className","disableSpacing"],rve=e=>{const{classes:t,disableSpacing:r}=e;return qe({root:["root",!r&&"spacing"]},eve,t)},nve=ne("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}})),ave=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1}=n,i=Pe(n,tve),s=T({},n,{disableSpacing:o}),u=rve(s);return R.jsx(nve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),$C=ave;function ove(e){return Ue("MuiDialogContent",e)}We("MuiDialogContent",["root","dividers"]);function ive(e){return Ue("MuiDialogTitle",e)}const sve=We("MuiDialogTitle",["root"]),lve=sve,uve=["className","dividers"],cve=e=>{const{classes:t,dividers:r}=e;return qe({root:["root",r&&"dividers"]},ove,t)},dve=ne("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}`}:{[`.${lve.root} + &`]:{paddingTop:0}})),fve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1}=n,i=Pe(n,uve),s=T({},n,{dividers:o}),u=cve(s);return R.jsx(dve,T({className:ue(u.root,a),ownerState:s,ref:r},i))}),kC=fve;function pve(e){return Ue("MuiDialogContentText",e)}We("MuiDialogContentText",["root"]);const hve=["children","className"],vve=e=>{const{classes:t}=e,n=qe({root:["root"]},pve,t);return T({},t,n)},gve=ne(_t,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogContentText"}),{className:a}=n,o=Pe(n,hve),i=vve(o);return R.jsx(gve,T({component:"p",variant:"body1",color:"text.secondary",ref:r,ownerState:o,className:ue(i.root,a)},n,{classes:i}))}),E4=mve,yve=["className","id"],bve=e=>{const{classes:t}=e;return qe({root:["root"]},ive,t)},xve=ne(_t,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),wve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDialogTitle"}),{className:a,id:o}=n,i=Pe(n,yve),s=n,u=bve(s),{titleId:l=o}=d.useContext(C4);return R.jsx(xve,T({component:"h2",className:ue(u.root,a),ownerState:s,ref:r,variant:"h6",id:o??l},i))}),jC=wve;function Sve(e){return Ue("MuiDivider",e)}const _ve=We("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WT=_ve,Cve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Eve=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:s,variant:u}=e;return qe({root:["root",t&&"absolute",u,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},Sve,n)},Ove=ne("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)`:gt(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%"}})),Pve=ne("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)`})),O4=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,component:s=o?"div":"hr",flexItem:u=!1,light:l=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:p="center",variant:v="fullWidth"}=n,g=Pe(n,Cve),y=T({},n,{absolute:a,component:s,flexItem:u,light:l,orientation:c,role:f,textAlign:p,variant:v}),S=Eve(y);return R.jsx(Ove,T({as:s,className:ue(S.root,i),role:f,ref:r,ownerState:y},g,{children:o?R.jsx(Pve,{className:S.wrapper,ownerState:y,children:o}):null}))});O4.muiSkipListHighlight=!0;const gg=O4,Rve=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tve(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let s=0,u=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");s=parseInt(l[4],10),u=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+u-n.top}px)`:`translateY(${o.innerHeight+u-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-u}px)`:`translateY(-${n.top+n.height-u}px)`}function $ve(e){return typeof e=="function"?e():e}function uh(e,t,r){const n=$ve(r),a=Tve(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const kve=d.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,container:l,direction:c="down",easing:f=a,in:p,onEnter:v,onEntered:g,onEntering:y,onExit:S,onExited:x,onExiting:m,style:b,timeout:h=o,TransitionComponent:_=gC}=t,C=Pe(t,Rve),E=d.useRef(null),w=Jt(u.ref,E,r),O=B=>U=>{B&&(U===void 0?B(E.current):B(E.current,U))},P=O((B,U)=>{uh(c,B,l),bC(B),v&&v(B,U)}),k=O((B,U)=>{const q=Ju({timeout:h,style:b,easing:f},{mode:"enter"});B.style.webkitTransition=n.transitions.create("-webkit-transform",T({},q)),B.style.transition=n.transitions.create("transform",T({},q)),B.style.webkitTransform="none",B.style.transform="none",y&&y(B,U)}),j=O(g),$=O(m),F=O(B=>{const U=Ju({timeout:h,style:b,easing:f},{mode:"exit"});B.style.webkitTransition=n.transitions.create("-webkit-transform",U),B.style.transition=n.transitions.create("transform",U),uh(c,B,l),S&&S(B)}),z=O(B=>{B.style.webkitTransition="",B.style.transition="",x&&x(B)}),M=B=>{i&&i(E.current,B)},W=d.useCallback(()=>{E.current&&uh(c,E.current,l)},[c,l]);return d.useEffect(()=>{if(p||c==="down"||c==="right")return;const B=Rc(()=>{E.current&&uh(c,E.current,l)}),U=da(E.current);return U.addEventListener("resize",B),()=>{B.clear(),U.removeEventListener("resize",B)}},[c,p,l]),d.useEffect(()=>{p||W()},[p,W]),R.jsx(_,T({nodeRef:E,onEnter:P,onEntered:j,onEntering:k,onExit:F,onExited:z,onExiting:$,addEndListener:M,appear:s,in:p,timeout:h},C,{children:(B,U)=>d.cloneElement(u,T({ref:w,style:T({visibility:B==="exited"&&!p?"hidden":void 0},b,u.props.style)},U))}))}),P4=kve;function jve(e){return Ue("MuiDrawer",e)}We("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Ive=["BackdropProps"],Ave=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],R4=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Mve=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ge(r)}`,n!=="temporary"&&`paperAnchorDocked${ge(r)}`]};return qe(a,jve,t)},Fve=ne(RC,{name:"MuiDrawer",slot:"Root",overridesResolver:R4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),HT=ne("div",{shouldForwardProp:Wr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:R4})({flex:"0 0 auto"}),Nve=ne(Yi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ge(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ge(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}`})),T4={left:"right",right:"left",top:"down",bottom:"up"};function Lve(e){return["left","right"].indexOf(e)!==-1}function Dve({direction:e},t){return e==="rtl"&&Lve(t)?T4[t]:t}const Bve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiDrawer"}),a=fo(),o=cl(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:u,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:g,open:y=!1,PaperProps:S={},SlideProps:x,TransitionComponent:m=P4,transitionDuration:b=i,variant:h="temporary"}=n,_=Pe(n.ModalProps,Ive),C=Pe(n,Ave),E=d.useRef(!1);d.useEffect(()=>{E.current=!0},[]);const w=Dve({direction:o?"rtl":"ltr"},s),P=T({},n,{anchor:s,elevation:f,open:y,variant:h},C),k=Mve(P),j=R.jsx(Nve,T({elevation:h==="temporary"?f:0,square:!0},S,{className:ue(k.paper,S.className),ownerState:P,children:l}));if(h==="permanent")return R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:j}));const $=R.jsx(m,T({in:y,direction:T4[w],timeout:b,appear:E.current},x,{children:j}));return h==="persistent"?R.jsx(HT,T({className:ue(k.root,k.docked,c),ownerState:P,ref:r},C,{children:$})):R.jsx(Fve,T({BackdropProps:T({},u,v,{transitionDuration:b}),className:ue(k.root,k.modal,c),open:y,ownerState:P,onClose:g,hideBackdrop:p,ref:r},C,_,{children:$}))}),zve=Bve;function Vve(e){return Ue("MuiFab",e)}const Uve=We("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),qT=Uve,Wve=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Hve=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${ge(a)}`,t==="inherit"?"colorInherit":t]},i=qe(o,Vve,n);return T({},n,i)},qve=ne(Ma,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Wr(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.color==="inherit"&&t.colorInherit,t[ge(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"},[`&.${qT.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})=>({[`&.${qT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}})),Kve=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:s="button",disabled:u=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:f="large",variant:p="circular"}=n,v=Pe(n,Wve),g=T({},n,{color:i,component:s,disabled:u,disableFocusRipple:l,size:f,variant:p}),y=Hve(g);return R.jsx(qve,T({className:ue(y.root,o),component:s,disabled:u,focusRipple:!l,focusVisibleClassName:ue(y.focusVisible,c),ownerState:g,ref:r},v,{classes:y,children:a}))}),Gve=Kve,Qve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Xve=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Vfe,t);return T({},t,a)},Yve=ne(jy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$y(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return 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}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.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(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.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}))}),Jve=ne(Iy,{name:"MuiFilledInput",slot:"Input",overridesResolver:ky})(({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})),$4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiFilledInput"}),{components:u={},componentsProps:l,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,S=Pe(s,Qve),x=T({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),m=Xve(s),b={root:{ownerState:x},input:{ownerState:x}},h=v??l?Rr(b,v??l):b,_=(n=(a=g.root)!=null?a:u.Root)!=null?n:Yve,C=(o=(i=g.input)!=null?i:u.Input)!=null?o:Jve;return R.jsx(Ay,T({slots:{root:_,input:C},componentsProps:h,fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},S,{classes:m}))});$4.muiName="Input";const k4=$4;function Zve(e){return Ue("MuiFormControl",e)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ege=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],tge=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return qe(a,Zve,t)},rge=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${ge(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%"})),nge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:s="div",disabled:u=!1,error:l=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:g=!1,size:y="medium",variant:S="outlined"}=n,x=Pe(n,ege),m=T({},n,{color:i,component:s,disabled:u,error:l,fullWidth:f,hiddenLabel:p,margin:v,required:g,size:y,variant:S}),b=tge(m),[h,_]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{if(!Hh(F,["Input","Select"]))return;const z=Hh(F,["Select"])?F.props.input:F;z&&kfe(z.props)&&($=!0)}),$}),[C,E]=d.useState(()=>{let $=!1;return a&&d.Children.forEach(a,F=>{Hh(F,["Input","Select"])&&(pg(F.props,!0)||pg(F.props.inputProps,!0))&&($=!0)}),$}),[w,O]=d.useState(!1);u&&w&&O(!1);const P=c!==void 0&&!u?c:w;let k;const j=d.useMemo(()=>({adornedStart:h,setAdornedStart:_,color:i,disabled:u,error:l,filled:C,focused:P,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{O(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{O(!0)},registerEffect:k,required:g,variant:S}),[h,i,u,l,C,P,f,p,k,g,y,S]);return R.jsx(Ty.Provider,{value:j,children:R.jsx(rge,T({as:s,ownerState:m,className:ue(b.root,o),ref:r},x,{children:a}))})}),age=nge,oge=Ele({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})}),Fy=oge;function ige(e){return Ue("MuiFormControlLabel",e)}const sge=We("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pd=sge,lge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],uge=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return qe(i,ige,t)},cge=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pd.label}`]:t.label},t.root,t[`labelPlacement${ge(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>T({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pd.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},{[`& .${pd.label}`]:{[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),dge=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),fge=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:u,disabled:l,disableTypography:c,label:f,labelPlacement:p="end",required:v,slotProps:g={}}=o,y=Pe(o,lge),S=po(),x=(n=l??u.props.disabled)!=null?n:S==null?void 0:S.disabled,m=v??u.props.required,b={disabled:x,required:m};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof u.props[O]>"u"&&typeof o[O]<"u"&&(b[O]=o[O])});const h=Zi({props:o,muiFormControl:S,states:["error"]}),_=T({},o,{disabled:x,labelPlacement:p,required:m,error:h.error}),C=uge(_),E=(a=g.typography)!=null?a:s.typography;let w=f;return w!=null&&w.type!==_t&&!c&&(w=R.jsx(_t,T({component:"span"},E,{className:ue(C.label,E==null?void 0:E.className),children:w}))),R.jsxs(cge,T({className:ue(C.root,i),ownerState:_,ref:r},y,{children:[d.cloneElement(u,b),m?R.jsxs(Fy,{display:"block",children:[w,R.jsxs(dge,{ownerState:_,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):w]}))}),pge=fge;function hge(e){return Ue("MuiFormGroup",e)}We("MuiFormGroup",["root","row","error"]);const vge=["className","row"],gge=e=>{const{classes:t,row:r,error:n}=e;return qe({root:["root",r&&"row",n&&"error"]},hge,t)},mge=ne("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"})),yge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1}=n,i=Pe(n,vge),s=po(),u=Zi({props:n,muiFormControl:s,states:["error"]}),l=T({},n,{row:o,error:u.error}),c=gge(l);return R.jsx(mge,T({className:ue(c.root,a),ownerState:l,ref:r},i))}),bge=yge;function xge(e){return Ue("MuiFormHelperText",e)}const wge=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KT=wge;var GT;const Sge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_ge=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:s,required:u}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${ge(n)}`,r&&"contained",s&&"focused",i&&"filled",u&&"required"]};return qe(l,xge,t)},Cge=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ge(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,[`&.${KT.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KT.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ege=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p"}=n,s=Pe(n,Sge),u=po(),l=Zi({props:n,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),c=T({},n,{component:i,contained:l.variant==="filled"||l.variant==="outlined",variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=_ge(c);return R.jsx(Cge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:a===" "?GT||(GT=R.jsx("span",{className:"notranslate",children:"​"})):a}))}),IC=Ege;function Oge(e){return Ue("MuiFormLabel",e)}const Pge=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ld=Pge,Rge=["children","className","color","component","disabled","error","filled","focused","required"],Tge=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:s}=e,u={root:["root",`color${ge(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return qe(u,Oge,t)},$ge=ne("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",[`&.${Ld.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),kge=ne("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ld.error}`]:{color:(e.vars||e).palette.error.main}})),jge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiFormLabel"}),{children:a,className:o,component:i="label"}=n,s=Pe(n,Rge),u=po(),l=Zi({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),c=T({},n,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),f=Tge(c);return R.jsxs($ge,T({as:i,ownerState:c,className:ue(f.root,o),ref:r},s,{children:[a,l.required&&R.jsxs(kge,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Ige=jge,Age=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cx(e){return`scale(${e}, ${e**2})`}const Mge={entering:{opacity:1,transform:Cx(1)},entered:{opacity:1,transform:"none"}},i0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),j4=d.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:p,onExiting:v,style:g,timeout:y="auto",TransitionComponent:S=gC}=t,x=Pe(t,Age),m=Ss(),b=d.useRef(),h=fo(),_=d.useRef(null),C=Jt(_,o.ref,r),E=z=>M=>{if(z){const W=_.current;M===void 0?z(W):z(W,M)}},w=E(c),O=E((z,M)=>{bC(z);const{duration:W,delay:B,easing:U}=Ju({style:g,timeout:y,easing:i},{mode:"enter"});let q;y==="auto"?(q=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=q):q=W,z.style.transition=[h.transitions.create("opacity",{duration:q,delay:B}),h.transitions.create("transform",{duration:i0?q:q*.666,delay:B,easing:U})].join(","),u&&u(z,M)}),P=E(l),k=E(v),j=E(z=>{const{duration:M,delay:W,easing:B}=Ju({style:g,timeout:y,easing:i},{mode:"exit"});let U;y==="auto"?(U=h.transitions.getAutoHeightDuration(z.clientHeight),b.current=U):U=M,z.style.transition=[h.transitions.create("opacity",{duration:U,delay:W}),h.transitions.create("transform",{duration:i0?U:U*.666,delay:i0?W:W||U*.333,easing:B})].join(","),z.style.opacity=0,z.style.transform=Cx(.75),f&&f(z)}),$=E(p),F=z=>{y==="auto"&&m.start(b.current||0,z),n&&n(_.current,z)};return R.jsx(S,T({appear:a,in:s,nodeRef:_,onEnter:O,onEntered:P,onEntering:w,onExit:j,onExited:$,onExiting:k,addEndListener:F,timeout:y==="auto"?null:y},x,{children:(z,M)=>d.cloneElement(o,T({style:T({opacity:0,transform:Cx(.75),visibility:z==="exited"&&!s?"hidden":void 0},Mge[z],g,o.props.style),ref:C},M))}))});j4.muiSupportAuto=!0;const mg=j4,Fge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Nge=e=>{const{classes:t,disableUnderline:r}=e,a=qe({root:["root",!r&&"underline"],input:["input"]},Lfe,t);return T({},t,a)},Lge=ne(jy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$y(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"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.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(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Dge=ne(Iy,{name:"MuiInput",slot:"Input",overridesResolver:ky})({}),I4=d.forwardRef(function(t,r){var n,a,o,i;const s=Ke({props:t,name:"MuiInput"}),{disableUnderline:u,components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:g,slots:y={},type:S="text"}=s,x=Pe(s,Fge),m=Nge(s),h={root:{ownerState:{disableUnderline:u}}},_=g??c?Rr(g??c,h):h,C=(n=(a=y.root)!=null?a:l.Root)!=null?n:Lge,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:Dge;return R.jsx(Ay,T({slots:{root:C,input:E},slotProps:_,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:S},x,{classes:m}))});I4.muiName="Input";const A4=I4;function Bge(e){return Ue("MuiInputAdornment",e)}const zge=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),QT=zge;var XT;const Vge=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Uge=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ge(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Wge=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,s={root:["root",r&&"disablePointerEvents",a&&`position${ge(a)}`,i,n&&"hiddenLabel",o&&`size${ge(o)}`]};return qe(s,Bge,t)},Hge=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Uge})(({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"&&{[`&.${QT.positionStart}&:not(.${QT.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),qge=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:l,variant:c}=n,f=Pe(n,Vge),p=po()||{};let v=c;c&&p.variant,p&&!v&&(v=p.variant);const g=T({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:l,variant:v}),y=Wge(g);return R.jsx(Ty.Provider,{value:null,children:R.jsx(Hge,T({as:i,ownerState:g,className:ue(y.root,o),ref:r},f,{children:typeof a=="string"&&!u?R.jsx(_t,{color:"text.secondary",children:a}):R.jsxs(d.Fragment,{children:[l==="start"?XT||(XT=R.jsx("span",{className:"notranslate",children:"​"})):null,a]})}))})}),Xh=qge;function Kge(e){return Ue("MuiInputLabel",e)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gge=["disableAnimation","margin","shrink","variant","className"],Qge=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:s}=e,u={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ge(n)}`,i],asterisk:[s&&"asterisk"]},l=qe(u,Kge,t);return T({},t,l)},Xge=ne(Ige,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ld.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)"}))),Yge=d.forwardRef(function(t,r){const n=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:o,className:i}=n,s=Pe(n,Gge),u=po();let l=o;typeof l>"u"&&u&&(l=u.filled||u.focused||u.adornedStart);const c=Zi({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),f=T({},n,{disableAnimation:a,formControl:u,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Qge(f);return R.jsx(Xge,T({"data-shrink":l,ownerState:f,ref:r,className:ue(p.root,i)},s,{classes:p}))}),Jge=Yge;function Zge(e){return Ue("MuiLink",e)}const eme=We("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tme=eme,M4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rme=e=>M4[e]||e,nme=({theme:e,ownerState:t})=>{const r=rme(t.color),n=Xu(e,`palette.${r}`,!1)||t.color,a=Xu(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:gt(n,.4)},ame=nme,ome=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ime=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${ge(a)}`,r==="button"&&"button",n&&"focusVisible"]};return qe(o,Zge,t)},sme=ne(_t,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ge(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:ame({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"},[`&.${tme.focusVisible}`]:{outline:"auto"}})),lme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiLink"}),{className:a,color:o="primary",component:i="a",onBlur:s,onFocus:u,TypographyClasses:l,underline:c="always",variant:f="inherit",sx:p}=n,v=Pe(n,ome),{isFocusVisibleRef:g,onBlur:y,onFocus:S,ref:x}=Cy(),[m,b]=d.useState(!1),h=Jt(r,x),_=O=>{y(O),g.current===!1&&b(!1),s&&s(O)},C=O=>{S(O),g.current===!0&&b(!0),u&&u(O)},E=T({},n,{color:o,component:i,focusVisible:m,underline:c,variant:f}),w=ime(E);return R.jsx(sme,T({color:o,className:ue(w.root,a),classes:l,component:i,onBlur:_,onFocus:C,ref:h,ownerState:E,variant:f,sx:[...Object.keys(M4).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},v))}),ume=lme,cme=d.createContext({}),jf=cme;function dme(e){return Ue("MuiList",e)}We("MuiList",["root","padding","dense","subheader"]);const fme=["children","className","component","dense","disablePadding","subheader"],pme=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return qe({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},dme,t)},hme=ne("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})),vme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:s=!1,disablePadding:u=!1,subheader:l}=n,c=Pe(n,fme),f=d.useMemo(()=>({dense:s}),[s]),p=T({},n,{component:i,dense:s,disablePadding:u}),v=pme(p);return R.jsx(jf.Provider,{value:f,children:R.jsxs(hme,T({as:i,className:ue(v.root,o),ref:r,ownerState:p},c,{children:[l,a]}))})}),gme=vme;function mme(e){return Ue("MuiListItemIcon",e)}const yme=We("MuiListItemIcon",["root","alignItemsFlexStart"]),YT=yme,bme=["className"],xme=e=>{const{alignItems:t,classes:r}=e;return qe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},mme,r)},wme=ne("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})),Sme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemIcon"}),{className:a}=n,o=Pe(n,bme),i=d.useContext(jf),s=T({},n,{alignItems:i.alignItems}),u=xme(s);return R.jsx(wme,T({className:ue(u.root,a),ownerState:s,ref:r},o))}),Cs=Sme;function _me(e){return Ue("MuiListItemText",e)}const Cme=We("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yg=Cme,Eme=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ome=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return qe({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},_me,t)},Pme=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${yg.primary}`]:t.primary},{[`& .${yg.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})),Rme=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:s=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:f}=n,p=Pe(n,Eme),{dense:v}=d.useContext(jf);let g=u??a,y=c;const S=T({},n,{disableTypography:i,inset:s,primary:!!g,secondary:!!y,dense:v}),x=Ome(S);return g!=null&&g.type!==_t&&!i&&(g=R.jsx(_t,T({variant:v?"body2":"body1",className:x.primary,component:l!=null&&l.variant?void 0:"span",display:"block"},l,{children:g}))),y!=null&&y.type!==_t&&!i&&(y=R.jsx(_t,T({variant:"body2",className:x.secondary,color:"text.secondary",display:"block"},f,{children:y}))),R.jsxs(Pme,T({className:ue(x.root,o),ownerState:S,ref:r},p,{children:[g,y]}))}),Zl=Rme,Tme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function s0(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JT(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function F4(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 Yc(e,t,r,n,a,o){let i=!1,s=a(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!F4(s,o)||u)s=a(e,s,r);else return s.focus(),!0}return!1}const $me=d.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=Pe(t,Tme),v=d.useRef(null),g=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{a&&v.current.focus()},[a]),d.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:h})=>{const _=!v.current.style.width;if(b.clientHeight{const h=v.current,_=b.key,C=wr(h).activeElement;if(_==="ArrowDown")b.preventDefault(),Yc(h,C,l,u,s0);else if(_==="ArrowUp")b.preventDefault(),Yc(h,C,l,u,JT);else if(_==="Home")b.preventDefault(),Yc(h,null,l,u,s0);else if(_==="End")b.preventDefault(),Yc(h,null,l,u,JT);else if(_.length===1){const E=g.current,w=_.toLowerCase(),O=performance.now();E.keys.length>0&&(O-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&w!==E.keys[0]&&(E.repeating=!1)),E.lastTime=O,E.keys.push(w);const P=C&&!E.repeating&&F4(C,E);E.previousKeyMatched&&(P||Yc(h,C,!1,u,s0,E))?b.preventDefault():E.previousKeyMatched=!1}c&&c(b)},S=Jt(v,r);let x=-1;d.Children.forEach(i,(b,h)=>{if(!d.isValidElement(b)){x===h&&(x+=1,x>=i.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=h),x===h&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=i.length&&(x=-1))});const m=d.Children.map(i,(b,h)=>{if(h===x){const _={};return o&&(_.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),d.cloneElement(b,_)}return b});return R.jsx(gme,T({role:"menu",ref:S,className:s,onKeyDown:y,tabIndex:a?0:-1},p,{children:m}))}),N4=$me;function kme(e){return Ue("MuiPopover",e)}We("MuiPopover",["root","paper"]);const jme=["onEntering"],Ime=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ame=["slotProps"];function ZT(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function e$(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function t$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function l0(e){return typeof e=="function"?e():e}const Mme=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"]},kme,t)},Fme=ne(RC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L4=ne(Yi,{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}),Nme=d.forwardRef(function(t,r){var n,a,o;const i=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:u,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:p,className:v,container:g,elevation:y=8,marginThreshold:S=16,open:x,PaperProps:m={},slots:b,slotProps:h,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:C=mg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:O=!1}=i,P=Pe(i.TransitionProps,jme),k=Pe(i,Ime),j=(n=h==null?void 0:h.paper)!=null?n:m,$=d.useRef(),F=Jt($,j.ref),z=T({},i,{anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:S,externalPaperSlotProps:j,transformOrigin:_,TransitionComponent:C,transitionDuration:E,TransitionProps:P}),M=Mme(z),W=d.useCallback(()=>{if(f==="anchorPosition")return c;const Ne=l0(u),He=(Ne&&Ne.nodeType===1?Ne:wr($.current).body).getBoundingClientRect();return{top:He.top+ZT(He,l.vertical),left:He.left+e$(He,l.horizontal)}},[u,l.horizontal,l.vertical,c,f]),B=d.useCallback(Ne=>({vertical:ZT(Ne,_.vertical),horizontal:e$(Ne,_.horizontal)}),[_.horizontal,_.vertical]),U=d.useCallback(Ne=>{const Ae={width:Ne.offsetWidth,height:Ne.offsetHeight},He=B(Ae);if(f==="none")return{top:null,left:null,transformOrigin:t$(He)};const ht=W();let ut=ht.top-He.vertical,V=ht.left-He.horizontal;const K=ut+Ae.height,te=V+Ae.width,se=da(l0(u)),de=se.innerHeight-S,fe=se.innerWidth-S;if(S!==null&&utde){const Oe=K-de;ut-=Oe,He.vertical+=Oe}if(S!==null&&Vfe){const Oe=te-fe;V-=Oe,He.horizontal+=Oe}return{top:`${Math.round(ut)}px`,left:`${Math.round(V)}px`,transformOrigin:t$(He)}},[u,f,W,B,S]),[q,ie]=d.useState(x),oe=d.useCallback(()=>{const Ne=$.current;if(!Ne)return;const Ae=U(Ne);Ae.top!==null&&(Ne.style.top=Ae.top),Ae.left!==null&&(Ne.style.left=Ae.left),Ne.style.transformOrigin=Ae.transformOrigin,ie(!0)},[U]);d.useEffect(()=>(O&&window.addEventListener("scroll",oe),()=>window.removeEventListener("scroll",oe)),[u,O,oe]);const Ee=(Ne,Ae)=>{w&&w(Ne,Ae),oe()},pe=()=>{ie(!1)};d.useEffect(()=>{x&&oe()}),d.useImperativeHandle(s,()=>x?{updatePosition:()=>{oe()}}:null,[x,oe]),d.useEffect(()=>{if(!x)return;const Ne=Rc(()=>{oe()}),Ae=da(u);return Ae.addEventListener("resize",Ne),()=>{Ne.clear(),Ae.removeEventListener("resize",Ne)}},[u,x,oe]);let Te=E;E==="auto"&&!C.muiSupportAuto&&(Te=void 0);const ye=g||(u?wr(l0(u)).body:void 0),be=(a=b==null?void 0:b.root)!=null?a:Fme,we=(o=b==null?void 0:b.paper)!=null?o:L4,ve=fa({elementType:we,externalSlotProps:T({},j,{style:q?j.style:T({},j.style,{opacity:0})}),additionalProps:{elevation:y,ref:F},ownerState:z,className:ue(M.paper,j==null?void 0:j.className)}),De=fa({elementType:be,externalSlotProps:(h==null?void 0:h.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ye,open:x},ownerState:z,className:ue(M.root,v)}),{slotProps:Me}=De,Qe=Pe(De,Ame);return R.jsx(be,T({},Qe,!Rf(be)&&{slotProps:Me,disableScrollLock:O},{children:R.jsx(C,T({appear:!0,in:x,onEntering:Ee,onExited:pe,timeout:Te},P,{children:R.jsx(we,T({},ve,{children:p}))}))}))}),D4=Nme;function Lme(e){return Ue("MuiMenu",e)}We("MuiMenu",["root","paper","list"]);const Dme=["onEntering"],Bme=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],zme={vertical:"top",horizontal:"right"},Vme={vertical:"top",horizontal:"left"},Ume=e=>{const{classes:t}=e;return qe({root:["root"],paper:["paper"],list:["list"]},Lme,t)},Wme=ne(D4,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hme=ne(L4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qme=ne(N4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Kme=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:u,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:f,open:p,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:x="selectedMenu",slots:m={},slotProps:b={}}=o,h=Pe(o.TransitionProps,Dme),_=Pe(o,Bme),C=cl(),E=T({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:S,PaperProps:v,transitionDuration:y,TransitionProps:h,variant:x}),w=Ume(E),O=i&&!l&&p,P=d.useRef(null),k=(B,U)=>{P.current&&P.current.adjustStyleForScrollbar(B,{direction:C?"rtl":"ltr"}),S&&S(B,U)},j=B=>{B.key==="Tab"&&(B.preventDefault(),f&&f(B,"tabKeyDown"))};let $=-1;d.Children.map(s,(B,U)=>{d.isValidElement(B)&&(B.props.disabled||(x==="selectedMenu"&&B.props.selected||$===-1)&&($=U))});const F=(n=m.paper)!=null?n:Hme,z=(a=b.paper)!=null?a:v,M=fa({elementType:m.root,externalSlotProps:b.root,ownerState:E,className:[w.root,u]}),W=fa({elementType:F,externalSlotProps:z,ownerState:E,className:w.paper});return R.jsx(Wme,T({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?zme:Vme,slots:{paper:F,root:m.root},slotProps:{root:M,paper:W},open:p,ref:r,transitionDuration:y,TransitionProps:T({onEntering:k},h),ownerState:E},_,{classes:g,children:R.jsx(qme,T({onKeyDown:j,actions:P,autoFocus:i&&($===-1||l),autoFocusItem:O,variant:x},c,{className:ue(w.list,c.className),children:s}))}))}),Ny=Kme;function Gme(e){return Ue("MuiMenuItem",e)}const Qme=We("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Jc=Qme,Xme=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yme=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Jme=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,u=qe({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Gme,i);return T({},i,u)},Zme=ne(Ma,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Yme})(({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"}},[`&.${Jc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Jc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gt(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})`:gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Jc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${WT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${WT.inset}`]:{marginLeft:52},[`& .${yg.root}`]:{marginTop:0,marginBottom:0},[`& .${yg.inset}`]:{paddingLeft:36},[`& .${YT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${YT.root} svg`]:{fontSize:"1.25rem"}}))),eye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:f,className:p}=n,v=Pe(n,Xme),g=d.useContext(jf),y=d.useMemo(()=>({dense:i||g.dense||!1,disableGutters:u}),[g.dense,i,u]),S=d.useRef(null);qn(()=>{a&&S.current&&S.current.focus()},[a]);const x=T({},n,{dense:y.dense,divider:s,disableGutters:u}),m=Jme(n),b=Jt(S,r);let h;return n.disabled||(h=f!==void 0?f:-1),R.jsx(jf.Provider,{value:y,children:R.jsx(Zme,T({ref:b,role:c,tabIndex:h,component:o,focusVisibleClassName:ue(m.focusVisible,l),className:ue(m.root,p)},v,{ownerState:x,classes:m}))})}),Ta=eye;function tye(e){return Ue("MuiNativeSelect",e)}const rye=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AC=rye,nye=["className","disabled","error","IconComponent","inputRef","variant"],aye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"]};return qe(s,tye,t)},B4=({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"},[`&.${AC.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}}),oye=ne("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wr,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${AC.multiple}`]:t.multiple}]}})(B4),z4=({ownerState:e,theme:t})=>T({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AC.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),iye=ne("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(z4),sye=d.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:s,variant:u="standard"}=t,l=Pe(t,nye),c=T({},t,{disabled:a,variant:u,error:o}),f=aye(c);return R.jsxs(d.Fragment,{children:[R.jsx(oye,T({ownerState:c,className:ue(f.select,n),disabled:a,ref:s||r},l)),t.multiple?null:R.jsx(iye,{as:i,ownerState:c,className:f.icon})]})}),lye=sye;var r$;const uye=["children","classes","className","label","notched"],cye=ne("fieldset",{shouldForwardProp:Wr})({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%"}),dye=ne("legend",{shouldForwardProp:Wr})(({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 fye(e){const{className:t,label:r,notched:n}=e,a=Pe(e,uye),o=r!=null&&r!=="",i=T({},e,{notched:n,withLabel:o});return R.jsx(cye,T({"aria-hidden":!0,className:t,ownerState:i},a,{children:R.jsx(dye,{ownerState:i,children:o?R.jsx("span",{children:r}):r$||(r$=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const pye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hye=e=>{const{classes:t}=e,n=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bfe,t);return T({},t,n)},vye=ne(jy,{shouldForwardProp:e=>Wr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$y})(({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 .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Yo.focused} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yo.error} .${Yo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yo.disabled} .${Yo.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"}))}),gye=ne(fye,{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}}),mye=ne(Iy,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ky})(({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})),V4=d.forwardRef(function(t,r){var n,a,o,i,s;const u=Ke({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:g,slots:y={},type:S="text"}=u,x=Pe(u,pye),m=hye(u),b=po(),h=Zi({props:u,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=T({},u,{color:h.color||"primary",disabled:h.disabled,error:h.error,focused:h.focused,formControl:b,fullWidth:c,hiddenLabel:h.hiddenLabel,multiline:v,size:h.size,type:S}),C=(n=(a=y.root)!=null?a:l.Root)!=null?n:vye,E=(o=(i=y.input)!=null?i:l.Input)!=null?o:mye;return R.jsx(Ay,T({slots:{root:C,input:E},renderSuffix:w=>R.jsx(gye,{ownerState:_,className:m.notchedOutline,label:p!=null&&p!==""&&h.required?s||(s=R.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:r,type:S},x,{classes:T({},m,{notchedOutline:null})}))});V4.muiName="Input";const U4=V4;function yye(e){return Ue("MuiPagination",e)}We("MuiPagination",["root","ul","outlined","text"]);const bye=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function xye(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:u,page:l,showFirstButton:c=!1,showLastButton:f=!1,siblingCount:p=1}=e,v=Pe(e,bye),[g,y]=Yu({controlled:l,default:a,name:r,state:"page"}),S=(O,P)=>{l||y(P),u&&u(O,P)},x=(O,P)=>{const k=P-O+1;return Array.from({length:k},(j,$)=>O+$)},m=x(1,Math.min(t,n)),b=x(Math.max(n-t+1,t+1),n),h=Math.max(Math.min(g-p,n-t-p*2-1),t+2),_=Math.min(Math.max(g+p,t+p*2+2),b.length>0?b[0]-2:n-1),C=[...c?["first"]:[],...s?[]:["previous"],...m,...h>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...b,...i?[]:["next"],...f?["last"]:[]],E=O=>{switch(O){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return n;default:return null}},w=C.map(O=>typeof O=="number"?{onClick:P=>{S(P,O)},type:"page",page:O,selected:O===g,disabled:o,"aria-current":O===g?"true":void 0}:{onClick:P=>{S(P,E(O))},type:O,page:E(O),selected:!1,disabled:o||O.indexOf("ellipsis")===-1&&(O==="next"||O==="last"?g>=n:g<=1)});return T({items:w},v)}function wye(e){return Ue("MuiPaginationItem",e)}const Sye=We("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Yn=Sye,Ex=An(R.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ox=An(R.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),n$=An(R.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),a$=An(R.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),_ye=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],W4=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.variant==="text"&&t[`text${ge(r.color)}`],r.variant==="outlined"&&t[`outlined${ge(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]},Cye=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:s,variant:u}=e,l={root:["root",`size${ge(o)}`,u,i,r!=="standard"&&`color${ge(r)}`,r!=="standard"&&`${u}${ge(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return qe(l,wye,t)},Eye=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:W4})(({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",[`&.${Yn.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)})),Oye=ne(Ma,{name:"MuiPaginationItem",slot:"Root",overridesResolver:W4})(({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,[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yn.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"}},[`&.${Yn.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}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Yn.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"&&{[`&.${Yn.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}},[`&.${Yn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Yn.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)"}`,[`&.${Yn.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)`:gt(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:gt(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}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gt(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Yn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),Pye=ne("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)})),Rye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:s={},disabled:u=!1,page:l,selected:c=!1,shape:f="circular",size:p="medium",slots:v={},type:g="page",variant:y="text"}=n,S=Pe(n,_ye),x=T({},n,{color:o,disabled:u,selected:c,shape:f,size:p,type:g,variant:y}),m=cl(),b=Cye(x),_=(m?{previous:v.next||s.next||a$,next:v.previous||s.previous||n$,last:v.first||s.first||Ex,first:v.last||s.last||Ox}:{previous:v.previous||s.previous||n$,next:v.next||s.next||a$,first:v.first||s.first||Ex,last:v.last||s.last||Ox})[g];return g==="start-ellipsis"||g==="end-ellipsis"?R.jsx(Eye,{ref:r,ownerState:x,className:ue(b.root,a),children:"…"}):R.jsxs(Oye,T({ref:r,ownerState:x,component:i,disabled:u,className:ue(b.root,a)},S,{children:[g==="page"&&l,_?R.jsx(Pye,{as:_,ownerState:x,className:b.icon}):null]}))}),Tye=Rye,$ye=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],kye=e=>{const{classes:t,variant:r}=e;return qe({root:["root",r],ul:["ul"]},yye,t)},jye=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),Iye=ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Aye(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const Mye=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:s=1,defaultPage:u=1,disabled:l=!1,getItemAriaLabel:c=Aye,hideNextButton:f=!1,hidePrevButton:p=!1,renderItem:v=w=>R.jsx(Tye,T({},w)),shape:g="circular",showFirstButton:y=!1,showLastButton:S=!1,siblingCount:x=1,size:m="medium",variant:b="text"}=n,h=Pe(n,$ye),{items:_}=xye(T({},n,{componentName:"Pagination"})),C=T({},n,{boundaryCount:a,color:i,count:s,defaultPage:u,disabled:l,getItemAriaLabel:c,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:g,showFirstButton:y,showLastButton:S,siblingCount:x,size:m,variant:b}),E=kye(C);return R.jsx(jye,T({"aria-label":"pagination navigation",className:ue(E.root,o),ownerState:C,ref:r},h,{children:R.jsx(Iye,{className:E.ul,ownerState:C,children:_.map((w,O)=>R.jsx("li",{children:v(T({},w,{color:i,"aria-label":c(w.type,w.page,w.selected),shape:g,size:m,variant:b}))},O))})}))}),Fye=Mye;function Nye(e){return Ue("MuiSelect",e)}const Lye=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zc=Lye;var o$;const Dye=["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"],Bye=ne("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Zc.select}`]:t.select},{[`&.${Zc.select}`]:t[r.variant]},{[`&.${Zc.error}`]:t.error},{[`&.${Zc.multiple}`]:t.multiple}]}})(B4,{[`&.${Zc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zye=ne("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ge(r.variant)}`],r.open&&t.iconOpen]}})(z4),Vye=ne("input",{shouldForwardProp:e=>a4(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 i$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Uye(e){return e==null||typeof e=="string"&&!e.trim()}const Wye=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,s={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${ge(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return qe(s,Nye,t)},Hye=d.forwardRef(function(t,r){var n;const{"aria-describedby":a,"aria-label":o,autoFocus:i,autoWidth:s,children:u,className:l,defaultOpen:c,defaultValue:f,disabled:p,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:S,labelId:x,MenuProps:m={},multiple:b,name:h,onBlur:_,onChange:C,onClose:E,onFocus:w,onOpen:O,open:P,readOnly:k,renderValue:j,SelectDisplayProps:$={},tabIndex:F,value:z,variant:M="standard"}=t,W=Pe(t,Dye),[B,U]=Yu({controlled:z,default:f,name:"Select"}),[q,ie]=Yu({controlled:P,default:c,name:"Select"}),oe=d.useRef(null),Ee=d.useRef(null),[pe,Te]=d.useState(null),{current:ye}=d.useRef(P!=null),[be,we]=d.useState(),ve=Jt(r,S),De=d.useCallback(je=>{Ee.current=je,je&&Te(je)},[]),Me=pe==null?void 0:pe.parentNode;d.useImperativeHandle(ve,()=>({focus:()=>{Ee.current.focus()},node:oe.current,value:B}),[B]),d.useEffect(()=>{c&&q&&pe&&!ye&&(we(s?null:Me.clientWidth),Ee.current.focus())},[pe,s]),d.useEffect(()=>{i&&Ee.current.focus()},[i]),d.useEffect(()=>{if(!x)return;const je=wr(Ee.current).getElementById(x);if(je){const Je=()=>{getSelection().isCollapsed&&Ee.current.focus()};return je.addEventListener("click",Je),()=>{je.removeEventListener("click",Je)}}},[x]);const Qe=(je,Je)=>{je?O&&O(Je):E&&E(Je),ye||(we(s?null:Me.clientWidth),ie(je))},Ne=je=>{je.button===0&&(je.preventDefault(),Ee.current.focus(),Qe(!0,je))},Ae=je=>{Qe(!1,je)},He=d.Children.toArray(u),ht=je=>{const Je=He.find(_e=>_e.props.value===je.target.value);Je!==void 0&&(U(Je.props.value),C&&C(je,Je))},ut=je=>Je=>{let _e;if(Je.currentTarget.hasAttribute("tabindex")){if(b){_e=Array.isArray(B)?B.slice():[];const Fe=B.indexOf(je.props.value);Fe===-1?_e.push(je.props.value):_e.splice(Fe,1)}else _e=je.props.value;if(je.props.onClick&&je.props.onClick(Je),B!==_e&&(U(_e),C)){const Fe=Je.nativeEvent||Je,Ge=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ge,"target",{writable:!0,value:{value:_e,name:h}}),C(Ge,je)}b||Qe(!1,Je)}},V=je=>{k||[" ","ArrowUp","ArrowDown","Enter"].indexOf(je.key)!==-1&&(je.preventDefault(),Qe(!0,je))},K=pe!==null&&q,te=je=>{!K&&_&&(Object.defineProperty(je,"target",{writable:!0,value:{value:B,name:h}}),_(je))};delete W["aria-invalid"];let se,de;const fe=[];let Oe=!1;(pg({value:B})||v)&&(j?se=j(B):Oe=!0);const ae=He.map(je=>{if(!d.isValidElement(je))return null;let Je;if(b){if(!Array.isArray(B))throw new Error(No(2));Je=B.some(_e=>i$(_e,je.props.value)),Je&&Oe&&fe.push(je.props.children)}else Je=i$(B,je.props.value),Je&&Oe&&(de=je.props.children);return d.cloneElement(je,{"aria-selected":Je?"true":"false",onClick:ut(je),onKeyUp:_e=>{_e.key===" "&&_e.preventDefault(),je.props.onKeyUp&&je.props.onKeyUp(_e)},role:"option",selected:Je,value:void 0,"data-value":je.props.value})});Oe&&(b?fe.length===0?se=null:se=fe.reduce((je,Je,_e)=>(je.push(Je),_e{const{classes:t}=e;return t},MC={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wr(e)&&e!=="variant",slot:"Root"},Xye=ne(A4,MC)(""),Yye=ne(U4,MC)(""),Jye=ne(k4,MC)(""),H4=d.forwardRef(function(t,r){const n=Ke({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:s,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=Wfe,id:f,input:p,inputProps:v,label:g,labelId:y,MenuProps:S,multiple:x=!1,native:m=!1,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=n,O=Pe(n,Kye),P=m?lye:qye,k=po(),j=Zi({props:n,muiFormControl:k,states:["variant","error"]}),$=j.variant||w,F=T({},n,{variant:$,classes:i}),z=Qye(F),M=Pe(z,Gye),W=p||{standard:R.jsx(Xye,{ownerState:F}),outlined:R.jsx(Yye,{label:g,ownerState:F}),filled:R.jsx(Jye,{ownerState:F})}[$],B=Jt(r,W.ref);return R.jsx(d.Fragment,{children:d.cloneElement(W,T({inputComponent:P,inputProps:T({children:o,error:j.error,IconComponent:c,variant:$,type:void 0,multiple:x},m?{id:f}:{autoWidth:a,defaultOpen:u,displayEmpty:l,labelId:y,MenuProps:S,onClose:b,onOpen:h,open:_,renderValue:C,SelectDisplayProps:T({id:f},E)},v,{classes:v?Rr(M,v.classes):M},p?p.props.inputProps:{})},(x&&m||l)&&$==="outlined"?{notched:!0}:{},{ref:B,className:ue(W.props.className,s,z.root)},!p&&{variant:$},O))})});H4.muiName="Select";const q4=H4;function Zye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Ss();d.useEffect(()=>{if(!a)return;function x(m){m.defaultPrevented||(m.key==="Escape"||m.key==="Esc")&&(n==null||n(m,"escapeKeyDown"))}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,n]);const s=fn((x,m)=>{n==null||n(x,m)}),u=fn(x=>{!n||x==null||i.start(x,()=>{s(null,"timeout")})});d.useEffect(()=>(a&&u(t),i.clear),[a,t,u,i]);const l=x=>{n==null||n(x,"clickaway")},c=i.clear,f=d.useCallback(()=>{t!=null&&u(o??t*.5)},[t,o,u]),p=x=>m=>{const b=x.onBlur;b==null||b(m),f()},v=x=>m=>{const b=x.onFocus;b==null||b(m),c()},g=x=>m=>{const b=x.onMouseEnter;b==null||b(m),c()},y=x=>m=>{const b=x.onMouseLeave;b==null||b(m),f()};return d.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",f),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",c)}},[r,a,f,c]),{getRootProps:(x={})=>{const m=T({},lg(e),lg(x));return T({role:"presentation"},x,m,{onBlur:p(m),onFocus:v(m),onMouseEnter:g(m),onMouseLeave:y(m)})},onClickAway:l}}function ebe(e){return Ue("MuiSnackbarContent",e)}We("MuiSnackbarContent",["root","message","action"]);const tbe=["action","className","message","role"],rbe=e=>{const{classes:t}=e;return qe({root:["root"],action:["action"],message:["message"]},ebe,t)},nbe=ne(Yi,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=Tle(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}})}),abe=ne("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),obe=ne("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),ibe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:s="alert"}=n,u=Pe(n,tbe),l=n,c=rbe(l);return R.jsxs(nbe,T({role:s,square:!0,elevation:6,className:ue(c.root,o),ownerState:l,ref:r},u,{children:[R.jsx(abe,{className:c.message,ownerState:l,children:i}),a?R.jsx(obe,{className:c.action,ownerState:l,children:a}):null]}))}),sbe=ibe;function lbe(e){return Ue("MuiSnackbar",e)}We("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ube=["onEnter","onExited"],cbe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],dbe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${ge(r.vertical)}${ge(r.horizontal)}`]};return qe(n,lbe,t)},s$=ne("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${ge(r.anchorOrigin.vertical)}${ge(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"})})}),fbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSnackbar"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:c,className:f,ClickAwayListenerProps:p,ContentProps:v,disableWindowBlurListener:g=!1,message:y,open:S,TransitionComponent:x=mg,transitionDuration:m=o,TransitionProps:{onEnter:b,onExited:h}={}}=n,_=Pe(n.TransitionProps,ube),C=Pe(n,cbe),E=T({},n,{anchorOrigin:{vertical:s,horizontal:u},autoHideDuration:l,disableWindowBlurListener:g,TransitionComponent:x,transitionDuration:m}),w=dbe(E),{getRootProps:O,onClickAway:P}=Zye(T({},E)),[k,j]=d.useState(!0),$=fa({elementType:s$,getSlotProps:O,externalForwardedProps:C,ownerState:E,additionalProps:{ref:r},className:[w.root,f]}),F=M=>{j(!0),h&&h(M)},z=(M,W)=>{j(!1),b&&b(M,W)};return!S&&k?null:R.jsx(mhe,T({onClickAway:P},p,{children:R.jsx(s$,T({},$,{children:R.jsx(x,T({appear:!0,in:S,timeout:m,direction:s==="top"?"down":"up",onEnter:z,onExited:F},_,{children:c||R.jsx(sbe,T({message:y,action:i},v))}))}))}))}),pbe=fbe;function hbe(e){return Ue("MuiTooltip",e)}const vbe=We("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_i=vbe,gbe=["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 mbe(e){return Math.round(e*1e5)/1e5}const ybe=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${ge(o.split("-")[0])}`],arrow:["arrow"]};return qe(i,hbe,t)},bbe=ne(y4,{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"] .${_i.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_i.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_i.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"] .${_i.arrow}`]:T({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xbe=ne("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${ge(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>T({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gt(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:`${mbe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_i.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"})),[`.${_i.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"})),[`.${_i.popper}[data-popper-placement*="top"] &`]:T({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_i.popper}[data-popper-placement*="bottom"] &`]:T({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),wbe=ne("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:gt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ch=!1;const l$=new hp;let ed={x:0,y:0};function dh(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Sbe=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c,f,p,v,g,y,S,x,m,b,h,_;const C=Ke({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:w,components:O={},componentsProps:P={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:$=!1,disableInteractive:F=!1,disableTouchListener:z=!1,enterDelay:M=100,enterNextDelay:W=0,enterTouchDelay:B=700,followCursor:U=!1,id:q,leaveDelay:ie=0,leaveTouchDelay:oe=1500,onClose:Ee,onOpen:pe,open:Te,placement:ye="bottom",PopperComponent:be,PopperProps:we={},slotProps:ve={},slots:De={},title:Me,TransitionComponent:Qe=mg,TransitionProps:Ne}=C,Ae=Pe(C,gbe),He=d.isValidElement(w)?w:R.jsx("span",{children:w}),ht=fo(),ut=cl(),[V,K]=d.useState(),[te,se]=d.useState(null),de=d.useRef(!1),fe=F||U,Oe=Ss(),ae=Ss(),Z=Ss(),G=Ss(),[le,he]=Yu({controlled:Te,default:!1,name:"Tooltip",state:"open"});let Re=le;const Be=el(q),Ye=d.useRef(),je=fn(()=>{Ye.current!==void 0&&(document.body.style.WebkitUserSelect=Ye.current,Ye.current=void 0),G.clear()});d.useEffect(()=>je,[je]);const Je=Y=>{l$.clear(),ch=!0,he(!0),pe&&!Re&&pe(Y)},_e=fn(Y=>{l$.start(800+ie,()=>{ch=!1}),he(!1),Ee&&Re&&Ee(Y),Oe.start(ht.transitions.duration.shortest,()=>{de.current=!1})}),Fe=Y=>{de.current&&Y.type!=="touchstart"||(V&&V.removeAttribute("title"),ae.clear(),Z.clear(),M||ch&&W?ae.start(ch?W:M,()=>{Je(Y)}):Je(Y))},Ge=Y=>{ae.clear(),Z.start(ie,()=>{_e(Y)})},{isFocusVisibleRef:nt,onBlur:mt,onFocus:Ot,ref:kt}=Cy(),[,Pt]=d.useState(!1),at=Y=>{mt(Y),nt.current===!1&&(Pt(!1),Ge(Y))},It=Y=>{V||K(Y.currentTarget),Ot(Y),nt.current===!0&&(Pt(!0),Fe(Y))},nr=Y=>{de.current=!0;const Q=He.props;Q.onTouchStart&&Q.onTouchStart(Y)},mn=Y=>{nr(Y),Z.clear(),Oe.clear(),je(),Ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(B,()=>{document.body.style.WebkitUserSelect=Ye.current,Fe(Y)})},qr=Y=>{He.props.onTouchEnd&&He.props.onTouchEnd(Y),je(),Z.start(oe,()=>{_e(Y)})};d.useEffect(()=>{if(!Re)return;function Y(Q){(Q.key==="Escape"||Q.key==="Esc")&&_e(Q)}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[_e,Re]);const Nr=Jt(He.ref,kt,K,r);!Me&&Me!==0&&(Re=!1);const Tr=d.useRef(),Mn=Y=>{const Q=He.props;Q.onMouseMove&&Q.onMouseMove(Y),ed={x:Y.clientX,y:Y.clientY},Tr.current&&Tr.current.update()},Kr={},Ko=typeof Me=="string";k?(Kr.title=!Re&&Ko&&!$?Me:null,Kr["aria-describedby"]=Re?Be:null):(Kr["aria-label"]=Ko?Me:null,Kr["aria-labelledby"]=Re&&!Ko?Be:null);const $r=T({},Kr,Ae,He.props,{className:ue(Ae.className,He.props.className),onTouchStart:nr,ref:Nr},U?{onMouseMove:Mn}:{}),ho={};z||($r.onTouchStart=mn,$r.onTouchEnd=qr),$||($r.onMouseOver=dh(Fe,$r.onMouseOver),$r.onMouseLeave=dh(Ge,$r.onMouseLeave),fe||(ho.onMouseOver=Fe,ho.onMouseLeave=Ge)),j||($r.onFocus=dh(It,$r.onFocus),$r.onBlur=dh(at,$r.onBlur),fe||(ho.onFocus=It,ho.onBlur=at));const X=d.useMemo(()=>{var Y;let Q=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(Y=we.popperOptions)!=null&&Y.modifiers&&(Q=Q.concat(we.popperOptions.modifiers)),T({},we.popperOptions,{modifiers:Q})},[te,we]),ee=T({},C,{isRtl:ut,arrow:E,disableInteractive:fe,placement:ye,PopperComponentProp:be,touch:de.current}),ce=ybe(ee),Ce=(n=(a=De.popper)!=null?a:O.Popper)!=null?n:bbe,N=(o=(i=(s=De.transition)!=null?s:O.Transition)!=null?i:Qe)!=null?o:mg,D=(u=(l=De.tooltip)!=null?l:O.Tooltip)!=null?u:xbe,I=(c=(f=De.arrow)!=null?f:O.Arrow)!=null?c:wbe,A=Jl(Ce,T({},we,(p=ve.popper)!=null?p:P.popper,{className:ue(ce.popper,we==null?void 0:we.className,(v=(g=ve.popper)!=null?g:P.popper)==null?void 0:v.className)}),ee),L=Jl(N,T({},Ne,(y=ve.transition)!=null?y:P.transition),ee),H=Jl(D,T({},(S=ve.tooltip)!=null?S:P.tooltip,{className:ue(ce.tooltip,(x=(m=ve.tooltip)!=null?m:P.tooltip)==null?void 0:x.className)}),ee),re=Jl(I,T({},(b=ve.arrow)!=null?b:P.arrow,{className:ue(ce.arrow,(h=(_=ve.arrow)!=null?_:P.arrow)==null?void 0:h.className)}),ee);return R.jsxs(d.Fragment,{children:[d.cloneElement(He,$r),R.jsx(Ce,T({as:be??y4,placement:ye,anchorEl:U?{getBoundingClientRect:()=>({top:ed.y,left:ed.x,right:ed.x,bottom:ed.y,width:0,height:0})}:V,popperRef:Tr,open:V?Re:!1,id:Be,transition:!0},ho,A,{popperOptions:X,children:({TransitionProps:Y})=>R.jsx(N,T({timeout:ht.transitions.duration.shorter},Y,L,{children:R.jsxs(D,T({},H,{children:[Me,E?R.jsx(I,T({},re,{ref:se})):null]}))}))}))]})}),kn=Sbe;function _be(e){return Ue("MuiSwitch",e)}const Cbe=We("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),on=Cbe,Ebe=["className","color","edge","size","sx"],Obe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,s={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=qe(s,_be,t);return T({},t,u)},Pbe=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ge(r.edge)}`],t[`size${ge(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,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),Rbe=ne(_4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},r.color!=="default"&&t[`color${ge(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}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(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:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?fC(e.palette[t].main,.62):dC(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Tbe=ne("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}`})),$be=ne("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%"})),kbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:s="medium",sx:u}=n,l=Pe(n,Ebe),c=T({},n,{color:o,edge:i,size:s}),f=Obe(c),p=R.jsx($be,{className:f.thumb,ownerState:c});return R.jsxs(Pbe,{className:ue(f.root,a),sx:u,ownerState:c,children:[R.jsx(Rbe,T({type:"checkbox",icon:p,checkedIcon:p,ref:r,ownerState:c},l,{classes:T({},f,{root:f.switchBase})})),R.jsx(Tbe,{className:f.track,ownerState:c})]})}),jbe=kbe;function Ibe(e){return Ue("MuiTab",e)}const Abe=We("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Zo=Abe,Mbe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Fbe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:s,disabled:u}=e,l={root:["root",o&&i&&"labelIcon",`textColor${ge(r)}`,n&&"fullWidth",a&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return qe(l,Ibe,t)},Nbe=ne(Ma,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ge(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Zo.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,[`& > .${Zo.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,[`&.${Zo.selected}`]:{opacity:1},[`&.${Zo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zo.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zo.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)})),Lbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:s,icon:u,iconPosition:l="top",indicator:c,label:f,onChange:p,onClick:v,onFocus:g,selected:y,selectionFollowsFocus:S,textColor:x="inherit",value:m,wrapped:b=!1}=n,h=Pe(n,Mbe),_=T({},n,{disabled:o,disableFocusRipple:i,selected:y,icon:!!u,iconPosition:l,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=Fbe(_),E=u&&f&&d.isValidElement(u)?d.cloneElement(u,{className:ue(C.iconWrapper,u.props.className)}):u,w=P=>{!y&&p&&p(P,m),v&&v(P)},O=P=>{S&&!y&&p&&p(P,m),g&&g(P)};return R.jsxs(Nbe,T({focusRipple:!i,className:ue(C.root,a),ref:r,role:"tab","aria-selected":y,disabled:o,onClick:w,onFocus:O,ownerState:_,tabIndex:y?0:-1},h,{children:[l==="top"||l==="start"?R.jsxs(d.Fragment,{children:[E,f]}):R.jsxs(d.Fragment,{children:[f,E]}),c]}))}),Dbe=Lbe,Bbe=d.createContext(),K4=Bbe;function zbe(e){return Ue("MuiTable",e)}We("MuiTable",["root","stickyHeader"]);const Vbe=["className","component","padding","size","stickyHeader"],Ube=e=>{const{classes:t,stickyHeader:r}=e;return qe({root:["root",r&&"stickyHeader"]},zbe,t)},Wbe=ne("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"})),u$="table",Hbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTable"}),{className:a,component:o=u$,padding:i="normal",size:s="medium",stickyHeader:u=!1}=n,l=Pe(n,Vbe),c=T({},n,{component:o,padding:i,size:s,stickyHeader:u}),f=Ube(c),p=d.useMemo(()=>({padding:i,size:s,stickyHeader:u}),[i,s,u]);return R.jsx(K4.Provider,{value:p,children:R.jsx(Wbe,T({as:o,role:o===u$?null:"table",ref:r,className:ue(f.root,a),ownerState:c},l))})}),G4=Hbe,qbe=d.createContext(),Ly=qbe;function Kbe(e){return Ue("MuiTableBody",e)}We("MuiTableBody",["root"]);const Gbe=["className","component"],Qbe=e=>{const{classes:t}=e;return qe({root:["root"]},Kbe,t)},Xbe=ne("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ybe={variant:"body"},c$="tbody",Jbe=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableBody"}),{className:a,component:o=c$}=n,i=Pe(n,Gbe),s=T({},n,{component:o}),u=Qbe(s);return R.jsx(Ly.Provider,{value:Ybe,children:R.jsx(Xbe,T({className:ue(u.root,a),as:o,ref:r,role:o===c$?null:"rowgroup",ownerState:s},i))})}),Q4=Jbe;function Zbe(e){return Ue("MuiTableCell",e)}const e0e=We("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),t0e=e0e,r0e=["align","className","component","padding","scope","size","sortDirection","variant"],n0e=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,a!=="normal"&&`padding${ge(a)}`,`size${ge(o)}`]};return qe(s,Zbe,t)},a0e=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ge(r.size)}`],r.padding!=="normal"&&t[`padding${ge(r.padding)}`],r.align!=="inherit"&&t[`align${ge(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"?fC(gt(e.palette.divider,1),.88):dC(gt(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",[`&.${t0e.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})),o0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:s,scope:u,size:l,sortDirection:c,variant:f}=n,p=Pe(n,r0e),v=d.useContext(K4),g=d.useContext(Ly),y=g&&g.variant==="head";let S;i?S=i:S=y?"th":"td";let x=u;S==="td"?x=void 0:!x&&y&&(x="col");const m=f||g&&g.variant,b=T({},n,{align:a,component:S,padding:s||(v&&v.padding?v.padding:"normal"),size:l||(v&&v.size?v.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&v&&v.stickyHeader,variant:m}),h=n0e(b);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),R.jsx(a0e,T({as:S,ref:r,className:ue(h.root,o),"aria-sort":_,scope:x,ownerState:b},p))}),en=o0e;function i0e(e){return Ue("MuiTableHead",e)}We("MuiTableHead",["root"]);const s0e=["className","component"],l0e=e=>{const{classes:t}=e;return qe({root:["root"]},i0e,t)},u0e=ne("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),c0e={variant:"head"},d$="thead",d0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableHead"}),{className:a,component:o=d$}=n,i=Pe(n,s0e),s=T({},n,{component:o}),u=l0e(s);return R.jsx(Ly.Provider,{value:c0e,children:R.jsx(u0e,T({as:o,className:ue(u.root,a),ref:r,role:o===d$?null:"rowgroup",ownerState:s},i))})}),X4=d0e;function f0e(e){return Ue("MuiToolbar",e)}We("MuiToolbar",["root","gutters","regular","dense"]);const p0e=["className","component","disableGutters","variant"],h0e=e=>{const{classes:t,disableGutters:r,variant:n}=e;return qe({root:["root",!r&&"gutters",n]},f0e,t)},v0e=ne("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),g0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:s="regular"}=n,u=Pe(n,p0e),l=T({},n,{component:o,disableGutters:i,variant:s}),c=h0e(l);return R.jsx(v0e,T({as:o,className:ue(c.root,a),ref:r,ownerState:l},u))}),jc=g0e,Y4=An(R.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),J4=An(R.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),m0e=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],y0e=d.forwardRef(function(t,r){var n,a,o,i,s,u,l,c;const{backIconButtonProps:f,count:p,disabled:v=!1,getItemAriaLabel:g,nextIconButtonProps:y,onPageChange:S,page:x,rowsPerPage:m,showFirstButton:b,showLastButton:h,slots:_={},slotProps:C={}}=t,E=Pe(t,m0e),w=cl(),O=ve=>{S(ve,0)},P=ve=>{S(ve,x-1)},k=ve=>{S(ve,x+1)},j=ve=>{S(ve,Math.max(0,Math.ceil(p/m)-1))},$=(n=_.firstButton)!=null?n:Pr,F=(a=_.lastButton)!=null?a:Pr,z=(o=_.nextButton)!=null?o:Pr,M=(i=_.previousButton)!=null?i:Pr,W=(s=_.firstButtonIcon)!=null?s:Ex,B=(u=_.lastButtonIcon)!=null?u:Ox,U=(l=_.nextButtonIcon)!=null?l:J4,q=(c=_.previousButtonIcon)!=null?c:Y4,ie=w?F:$,oe=w?z:M,Ee=w?M:z,pe=w?$:F,Te=w?C.lastButton:C.firstButton,ye=w?C.nextButton:C.previousButton,be=w?C.previousButton:C.nextButton,we=w?C.firstButton:C.lastButton;return R.jsxs("div",T({ref:r},E,{children:[b&&R.jsx(ie,T({onClick:O,disabled:v||x===0,"aria-label":g("first",x),title:g("first",x)},Te,{children:w?R.jsx(B,T({},C.lastButtonIcon)):R.jsx(W,T({},C.firstButtonIcon))})),R.jsx(oe,T({onClick:P,disabled:v||x===0,color:"inherit","aria-label":g("previous",x),title:g("previous",x)},ye??f,{children:w?R.jsx(U,T({},C.nextButtonIcon)):R.jsx(q,T({},C.previousButtonIcon))})),R.jsx(Ee,T({onClick:k,disabled:v||(p!==-1?x>=Math.ceil(p/m)-1:!1),color:"inherit","aria-label":g("next",x),title:g("next",x)},be??y,{children:w?R.jsx(q,T({},C.previousButtonIcon)):R.jsx(U,T({},C.nextButtonIcon))})),h&&R.jsx(pe,T({onClick:j,disabled:v||x>=Math.ceil(p/m)-1,"aria-label":g("last",x),title:g("last",x)},we,{children:w?R.jsx(W,T({},C.firstButtonIcon)):R.jsx(B,T({},C.lastButtonIcon))}))]}))}),b0e=y0e;function x0e(e){return Ue("MuiTablePagination",e)}const w0e=We("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Dd=w0e;var f$;const S0e=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],_0e=ne(en,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),C0e=ne(jc,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>T({[`& .${Dd.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},[`& .${Dd.actions}`]:{flexShrink:0,marginLeft:20}})),E0e=ne("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),O0e=ne("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>T({},e.typography.body2,{flexShrink:0})),P0e=ne(q4,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>T({[`& .${Dd.selectIcon}`]:t.selectIcon,[`& .${Dd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Dd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),R0e=ne(Ta,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),T0e=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>T({},e.typography.body2,{flexShrink:0}));function $0e({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function k0e(e){return`Go to ${e} page`}const j0e=e=>{const{classes:t}=e;return qe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},x0e,t)},I0e=d.forwardRef(function(t,r){var n;const a=Ke({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=b0e,backIconButtonProps:i,className:s,colSpan:u,component:l=en,count:c,disabled:f=!1,getItemAriaLabel:p=k0e,labelDisplayedRows:v=$0e,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:S,onRowsPerPageChange:x,page:m,rowsPerPage:b,rowsPerPageOptions:h=[10,25,50,100],SelectProps:_={},showFirstButton:C=!1,showLastButton:E=!1,slotProps:w={},slots:O={}}=a,P=Pe(a,S0e),k=a,j=j0e(k),$=(n=w==null?void 0:w.select)!=null?n:_,F=$.native?"option":R0e;let z;(l===en||l==="td")&&(z=u||1e3);const M=el($.id),W=el($.labelId),B=()=>c===-1?(m+1)*b:b===-1?c:Math.min(c,(m+1)*b);return R.jsx(_0e,T({colSpan:z,ref:r,as:l,ownerState:k,className:ue(j.root,s)},P,{children:R.jsxs(C0e,{className:j.toolbar,children:[R.jsx(E0e,{className:j.spacer}),h.length>1&&R.jsx(O0e,{className:j.selectLabel,id:W,children:g}),h.length>1&&R.jsx(P0e,T({variant:"standard"},!$.variant&&{input:f$||(f$=R.jsx(Ay,{}))},{value:b,onChange:x,id:M,labelId:W},$,{classes:T({},$.classes,{root:ue(j.input,j.selectRoot,($.classes||{}).root),select:ue(j.select,($.classes||{}).select),icon:ue(j.selectIcon,($.classes||{}).icon)}),disabled:f,children:h.map(U=>d.createElement(F,T({},!Rf(F)&&{ownerState:k},{className:j.menuItem,key:U.label?U.label:U,value:U.value?U.value:U}),U.label?U.label:U))})),R.jsx(T0e,{className:j.displayedRows,children:v({from:c===0?0:m*b+1,to:B(),count:c===-1?-1:c,page:m})}),R.jsx(o,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:y,onPageChange:S,page:m,rowsPerPage:b,showFirstButton:C,showLastButton:E,slotProps:w.actions,slots:O.actions,getItemAriaLabel:p,disabled:f})]})}))}),p$=I0e;function A0e(e){return Ue("MuiTableRow",e)}const M0e=We("MuiTableRow",["root","selected","hover","head","footer"]),h$=M0e,F0e=["className","component","hover","selected"],N0e=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return qe({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},A0e,t)},L0e=ne("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,[`&.${h$.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gt(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}))`:gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),v$="tr",D0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableRow"}),{className:a,component:o=v$,hover:i=!1,selected:s=!1}=n,u=Pe(n,F0e),l=d.useContext(Ly),c=T({},n,{component:o,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"}),f=N0e(c);return R.jsx(L0e,T({as:o,ref:r,className:ue(f.root,a),role:o===v$?null:"row",ownerState:c},u))}),If=D0e,B0e=An(R.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function z0e(e){return Ue("MuiTableSortLabel",e)}const V0e=We("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),u0=V0e,U0e=["active","children","className","direction","hideSortIcon","IconComponent"],W0e=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active"],icon:["icon",`iconDirection${ge(r)}`]};return qe(a,z0e,t)},H0e=ne(Ma,{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,[`& .${u0.icon}`]:{opacity:.5}},[`&.${u0.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${u0.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),q0e=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${ge(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)"})),K0e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:s="asc",hideSortIcon:u=!1,IconComponent:l=B0e}=n,c=Pe(n,U0e),f=T({},n,{active:a,direction:s,hideSortIcon:u,IconComponent:l}),p=W0e(f);return R.jsxs(H0e,T({className:ue(p.root,i),component:"span",disableRipple:!0,ownerState:f,ref:r},c,{children:[o,u&&!a?null:R.jsx(q0e,{as:l,className:ue(p.icon),ownerState:f})]}))}),G0e=K0e;function Q0e(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function X0e(e,t,r,n={},a=()=>{}){const{ease:o=Q0e,duration:i=300}=n;let s=null;const u=t[e];let l=!1;const c=()=>{l=!0},f=p=>{if(l){a(new Error("Animation cancelled"));return}s===null&&(s=p);const v=Math.min(1,(p-s)/i);if(t[e]=o(v)*(r-u)+u,v>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(f)};return u===r?(a(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Y0e=["onChange"],J0e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Z0e(e){const{onChange:t}=e,r=Pe(e,Y0e),n=d.useRef(),a=d.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return qn(()=>{const i=Rc(()=>{const u=n.current;o(),u!==n.current&&t(n.current)}),s=da(a.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),d.useEffect(()=>{o(),t(n.current)},[t]),R.jsx("div",T({style:J0e,ref:a},r))}function e1e(e){return Ue("MuiTabScrollButton",e)}const t1e=We("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),r1e=t1e,n1e=["className","slots","slotProps","direction","orientation","disabled"],a1e=e=>{const{classes:t,orientation:r,disabled:n}=e;return qe({root:["root",r,n&&"disabled"]},e1e,t)},o1e=ne(Ma,{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,[`&.${r1e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),i1e=d.forwardRef(function(t,r){var n,a;const o=Ke({props:t,name:"MuiTabScrollButton"}),{className:i,slots:s={},slotProps:u={},direction:l}=o,c=Pe(o,n1e),f=cl(),p=T({isRtl:f},o),v=a1e(p),g=(n=s.StartScrollButtonIcon)!=null?n:Y4,y=(a=s.EndScrollButtonIcon)!=null?a:J4,S=fa({elementType:g,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),x=fa({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return R.jsx(o1e,T({component:"div",className:ue(v.root,i),ref:r,role:null,ownerState:p,tabIndex:null},c,{children:l==="left"?R.jsx(g,T({},S)):R.jsx(y,T({},x))}))}),s1e=i1e;function l1e(e){return Ue("MuiTabs",e)}const u1e=We("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),c0=u1e,c1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],g$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,m$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fh=(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}}},d1e=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:s,classes:u}=e;return qe({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},l1e,u)},f1e=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${c0.scrollButtons}`]:t.scrollButtons},{[`& .${c0.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&&{[`& .${c0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),p1e=ne("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"})),h1e=ne("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"})),v1e=ne("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})),g1e=ne(Z0e)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),y$={},m1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTabs"}),a=fo(),o=cl(),{"aria-label":i,"aria-labelledby":s,action:u,centered:l=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:x=s1e,scrollButtons:m="auto",selectionFollowsFocus:b,slots:h={},slotProps:_={},TabIndicatorProps:C={},TabScrollButtonProps:E={},textColor:w="primary",value:O,variant:P="standard",visibleScrollbar:k=!1}=n,j=Pe(n,c1e),$=P==="scrollable",F=S==="vertical",z=F?"scrollTop":"scrollLeft",M=F?"top":"left",W=F?"bottom":"right",B=F?"clientHeight":"clientWidth",U=F?"height":"width",q=T({},n,{component:p,allowScrollButtonsMobile:v,indicatorColor:g,orientation:S,vertical:F,scrollButtons:m,textColor:w,variant:P,visibleScrollbar:k,fixed:!$,hideScrollbar:$&&!k,scrollableX:$&&!F,scrollableY:$&&F,centered:l&&!$,scrollButtonsHideMobile:!v}),ie=d1e(q),oe=fa({elementType:h.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:q}),Ee=fa({elementType:h.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:q}),[pe,Te]=d.useState(!1),[ye,be]=d.useState(y$),[we,ve]=d.useState(!1),[De,Me]=d.useState(!1),[Qe,Ne]=d.useState(!1),[Ae,He]=d.useState({overflow:"hidden",scrollbarWidth:0}),ht=new Map,ut=d.useRef(null),V=d.useRef(null),K=()=>{const _e=ut.current;let Fe;if(_e){const nt=_e.getBoundingClientRect();Fe={clientWidth:_e.clientWidth,scrollLeft:_e.scrollLeft,scrollTop:_e.scrollTop,scrollLeftNormalized:ale(_e,o?"rtl":"ltr"),scrollWidth:_e.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let Ge;if(_e&&O!==!1){const nt=V.current.children;if(nt.length>0){const mt=nt[ht.get(O)];Ge=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ge}},te=fn(()=>{const{tabsMeta:_e,tabMeta:Fe}=K();let Ge=0,nt;if(F)nt="top",Fe&&_e&&(Ge=Fe.top-_e.top+_e.scrollTop);else if(nt=o?"right":"left",Fe&&_e){const Ot=o?_e.scrollLeftNormalized+_e.clientWidth-_e.scrollWidth:_e.scrollLeft;Ge=(o?-1:1)*(Fe[nt]-_e[nt]+Ot)}const mt={[nt]:Ge,[U]:Fe?Fe[U]:0};if(isNaN(ye[nt])||isNaN(ye[U]))be(mt);else{const Ot=Math.abs(ye[nt]-mt[nt]),kt=Math.abs(ye[U]-mt[U]);(Ot>=1||kt>=1)&&be(mt)}}),se=(_e,{animation:Fe=!0}={})=>{Fe?X0e(z,ut.current,_e,{duration:a.transitions.duration.standard}):ut.current[z]=_e},de=_e=>{let Fe=ut.current[z];F?Fe+=_e:(Fe+=_e*(o?-1:1),Fe*=o&&VF()==="reverse"?-1:1),se(Fe)},fe=()=>{const _e=ut.current[B];let Fe=0;const Ge=Array.from(V.current.children);for(let nt=0;nt_e){nt===0&&(Fe=_e);break}Fe+=mt[B]}return Fe},Oe=()=>{de(-1*fe())},ae=()=>{de(fe())},Z=d.useCallback(_e=>{He({overflow:null,scrollbarWidth:_e})},[]),G=()=>{const _e={};_e.scrollbarSizeListener=$?R.jsx(g1e,{onChange:Z,className:ue(ie.scrollableX,ie.hideScrollbar)}):null;const Ge=$&&(m==="auto"&&(we||De)||m===!0);return _e.scrollButtonStart=Ge?R.jsx(x,T({slots:{StartScrollButtonIcon:h.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:S,direction:o?"right":"left",onClick:Oe,disabled:!we},E,{className:ue(ie.scrollButtons,E.className)})):null,_e.scrollButtonEnd=Ge?R.jsx(x,T({slots:{EndScrollButtonIcon:h.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:S,direction:o?"left":"right",onClick:ae,disabled:!De},E,{className:ue(ie.scrollButtons,E.className)})):null,_e},le=fn(_e=>{const{tabsMeta:Fe,tabMeta:Ge}=K();if(!(!Ge||!Fe)){if(Ge[M]Fe[W]){const nt=Fe[z]+(Ge[W]-Fe[W]);se(nt,{animation:_e})}}}),he=fn(()=>{$&&m!==!1&&Ne(!Qe)});d.useEffect(()=>{const _e=Rc(()=>{ut.current&&te()});let Fe;const Ge=Ot=>{Ot.forEach(kt=>{kt.removedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.unobserve(Pt)}),kt.addedNodes.forEach(Pt=>{var at;(at=Fe)==null||at.observe(Pt)})}),_e(),he()},nt=da(ut.current);nt.addEventListener("resize",_e);let mt;return typeof ResizeObserver<"u"&&(Fe=new ResizeObserver(_e),Array.from(V.current.children).forEach(Ot=>{Fe.observe(Ot)})),typeof MutationObserver<"u"&&(mt=new MutationObserver(Ge),mt.observe(V.current,{childList:!0})),()=>{var Ot,kt;_e.clear(),nt.removeEventListener("resize",_e),(Ot=mt)==null||Ot.disconnect(),(kt=Fe)==null||kt.disconnect()}},[te,he]),d.useEffect(()=>{const _e=Array.from(V.current.children),Fe=_e.length;if(typeof IntersectionObserver<"u"&&Fe>0&&$&&m!==!1){const Ge=_e[0],nt=_e[Fe-1],mt={root:ut.current,threshold:.99},Ot=It=>{ve(!It[0].isIntersecting)},kt=new IntersectionObserver(Ot,mt);kt.observe(Ge);const Pt=It=>{Me(!It[0].isIntersecting)},at=new IntersectionObserver(Pt,mt);return at.observe(nt),()=>{kt.disconnect(),at.disconnect()}}},[$,m,Qe,c==null?void 0:c.length]),d.useEffect(()=>{Te(!0)},[]),d.useEffect(()=>{te()}),d.useEffect(()=>{le(y$!==ye)},[le,ye]),d.useImperativeHandle(u,()=>({updateIndicator:te,updateScrollButtons:he}),[te,he]);const Re=R.jsx(v1e,T({},C,{className:ue(ie.indicator,C.className),ownerState:q,style:T({},ye,C.style)}));let Be=0;const Ye=d.Children.map(c,_e=>{if(!d.isValidElement(_e))return null;const Fe=_e.props.value===void 0?Be:_e.props.value;ht.set(Fe,Be);const Ge=Fe===O;return Be+=1,d.cloneElement(_e,T({fullWidth:P==="fullWidth",indicator:Ge&&!pe&&Re,selected:Ge,selectionFollowsFocus:b,onChange:y,textColor:w,value:Fe},Be===1&&O===!1&&!_e.props.tabIndex?{tabIndex:0}:{}))}),je=_e=>{const Fe=V.current,Ge=wr(Fe).activeElement;if(Ge.getAttribute("role")!=="tab")return;let mt=S==="horizontal"?"ArrowLeft":"ArrowUp",Ot=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(mt="ArrowRight",Ot="ArrowLeft"),_e.key){case mt:_e.preventDefault(),fh(Fe,Ge,m$);break;case Ot:_e.preventDefault(),fh(Fe,Ge,g$);break;case"Home":_e.preventDefault(),fh(Fe,null,g$);break;case"End":_e.preventDefault(),fh(Fe,null,m$);break}},Je=G();return R.jsxs(f1e,T({className:ue(ie.root,f),ownerState:q,ref:r,as:p},j,{children:[Je.scrollButtonStart,Je.scrollbarSizeListener,R.jsxs(p1e,{className:ie.scroller,ownerState:q,style:{overflow:Ae.overflow,[F?`margin${o?"Left":"Right"}`:"marginBottom"]:k?void 0:-Ae.scrollbarWidth},ref:ut,children:[R.jsx(h1e,{"aria-label":i,"aria-labelledby":s,"aria-orientation":S==="vertical"?"vertical":null,className:ie.flexContainer,ownerState:q,onKeyDown:je,ref:V,role:"tablist",children:Ye}),pe&&Re]}),Je.scrollButtonEnd]}))}),y1e=m1e;function b1e(e){return Ue("MuiTextField",e)}We("MuiTextField",["root"]);const x1e=["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"],w1e={standard:A4,filled:k4,outlined:U4},S1e=e=>{const{classes:t}=e;return qe({root:["root"]},b1e,t)},_1e=ne(age,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C1e=d.forwardRef(function(t,r){const n=Ke({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:s,color:u="primary",defaultValue:l,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:g,id:y,InputLabelProps:S,inputProps:x,InputProps:m,inputRef:b,label:h,maxRows:_,minRows:C,multiline:E=!1,name:w,onBlur:O,onChange:P,onFocus:k,placeholder:j,required:$=!1,rows:F,select:z=!1,SelectProps:M,type:W,value:B,variant:U="outlined"}=n,q=Pe(n,x1e),ie=T({},n,{autoFocus:o,color:u,disabled:c,error:f,fullWidth:v,multiline:E,required:$,select:z,variant:U}),oe=S1e(ie),Ee={};U==="outlined"&&(S&&typeof S.shrink<"u"&&(Ee.notched=S.shrink),Ee.label=h),z&&((!M||!M.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const pe=el(y),Te=g&&pe?`${pe}-helper-text`:void 0,ye=h&&pe?`${pe}-label`:void 0,be=w1e[U],we=R.jsx(be,T({"aria-describedby":Te,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:v,multiline:E,name:w,rows:F,maxRows:_,minRows:C,type:W,value:B,id:pe,inputRef:b,onBlur:O,onChange:P,onFocus:k,placeholder:j,inputProps:x},Ee,m));return R.jsxs(_1e,T({className:ue(oe.root,s),disabled:c,error:f,fullWidth:v,ref:r,required:$,color:u,variant:U,ownerState:ie},q,{children:[h!=null&&h!==""&&R.jsx(Jge,T({htmlFor:pe,id:ye},S,{children:h})),z?R.jsx(q4,T({"aria-describedby":Te,id:pe,labelId:ye,value:B,input:we},M,{children:i})):we,g&&R.jsx(IC,T({id:Te},p,{children:g}))]}))}),yp=C1e,E1e=["getTrigger","target"];function O1e(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 P1e=typeof window<"u"?window:null;function Z4(e={}){const{getTrigger:t=O1e,target:r=P1e}=e,n=Pe(e,E1e),a=d.useRef(),[o,i]=d.useState(()=>t(a,n));return d.useEffect(()=>{const s=()=>{i(t(a,T({target:r},n)))};return s(),r.addEventListener("scroll",s,{passive:!0}),()=>{r.removeEventListener("scroll",s,{passive:!0})}},[r,t,JSON.stringify(n)]),o}var FC={},d0={};const R1e=Do(Uue);var b$;function ct(){return b$||(b$=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=R1e}(d0)),d0}var T1e=it;Object.defineProperty(FC,"__esModule",{value:!0});var Dy=FC.default=void 0,$1e=T1e(ct()),k1e=R;Dy=FC.default=(0,$1e.default)((0,k1e.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 Bd=globalThis&&globalThis.__assign||function(){return Bd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?d.createElement(HSe,null):null,t&&d.createElement(Nxe,null),d.createElement(uxe,null))},Bxe=d.createElement(Dxe,null),zxe=d.createElement(UC,null),ss="RaAppBar",Es={appBar:"".concat(ss,"-appBar"),toolbar:"".concat(ss,"-toolbar"),menuButton:"".concat(ss,"-menuButton"),menuButtonIconClosed:"".concat(ss,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ss,"-menuButtonIconOpen"),title:"".concat(ss,"-title")},Vxe=ne(Uce,{name:ss,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(Es.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Es.menuButton)]={marginRight:"0.2em"},t["& .".concat(Es.title)]={},t}),qC={},Uxe=it;Object.defineProperty(qC,"__esModule",{value:!0});var Vy=qC.default=void 0,Wxe=Uxe(ct()),Hxe=R;Vy=qC.default=(0,Wxe.default)((0,Hxe.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 KC={},qxe=it;Object.defineProperty(KC,"__esModule",{value:!0});var g5=KC.default=void 0,Kxe=qxe(ct()),Gxe=R;g5=KC.default=(0,Kxe.default)((0,Gxe.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 Vd=globalThis&&globalThis.__assign||function(){return Vd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r element");var u=n===!1?d.createElement(w5,Eg({title:r,defaultTitle:t},a)):d.createElement(Rwe,Eg({title:r,defaultTitle:t,preferenceKey:n},a));return d.createElement(d.Fragment,null,tp.createPortal(u,i))},Lx=globalThis&&globalThis.__assign||function(){return Lx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0,P=c_e(S===!1||S===void 0?void 0:!S,l||!O||E||w);q_(f==="submit"&&(u&&(u.onSuccess||u.onError)||p),'Cannot use props on a button of type "submit". To override the default mutation options on a particular save button, set the prop, or set mutationOptions in the main view component ( or ).');var k=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){var z;return C$(this,function(M){switch(M.label){case 0:return h!=null&&h.save?[4,h.save(F,Hd(Hd({},u),{transform:p}))]:[3,2];case 1:z=M.sent(),M.label=2;case 2:return z!=null&&y3(z,b.setError),[2]}})})},[b.setError,h,u,p]),j=d.useCallback(function(F){return _$(void 0,void 0,void 0,function(){return C$(this,function(z){switch(z.label){case 0:return s&&s(F),F.defaultPrevented?[2]:f!=="button"?[3,2]:(F.stopPropagation(),[4,b.handleSubmit(k)(F)]);case 1:z.sent(),z.label=2;case 2:return[2]}})})},[s,f,b,k]),$=i&&m(i,{_:i});return d.createElement(u_e,Hd({variant:g,type:f,color:r,"aria-label":$,disabled:P,onClick:j},x),w?d.createElement(kc,{sx:i_e,size:14,thickness:3,color:"inherit"}):a,$)},i_e={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},s_e=d.createElement(W5,null),l_e="RaSaveButton",u_e=ne(hn,{name:l_e,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}),c_e=function(e,t){return typeof e>"u"?t:e},d_e=function(){return ke.createElement(p_e,{onClick:h_e,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},f_e="RaSkipNavigationButton",p_e=ne(Hr,{name:f_e,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})}}}),h_e=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Jx=globalThis&&globalThis.__assign||function(){return Jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u")throw new Error("DatagridRow expects an id prop");var h=X5(),_=et(),C=_r(e);if(!C)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var E=Nt(e),w=Wo(e),O=w.hasShow||w.hasEdit;if(!E)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var P=(!h||!h.isRowExpandable||h.isRowExpandable(C))&&i,k=Jte(E,f,h&&h.expandSingle),j=k[0],$=k[1],F=d.useState(function(){return E$(P,a,u)}),z=F[0],M=F[1];d.useEffect(function(){var oe=E$(P,a,u);oe!==z&&M(oe)},[P,z,a,u]);var W=lo(),B=d.useCallback(function(oe){$(),oe.stopPropagation()},[$]),U=d.useCallback(function(oe){!m||!p||(p(f,oe),oe.stopPropagation())},[f,p,m]),q=Ene(),ie=d.useCallback(function(oe){return B_e(void 0,void 0,void 0,function(){var Ee;return z_e(this,function(pe){switch(pe.label){case 0:return oe.persist(),[4,q({record:C,resource:E,link:typeof v=="function"?function(Te,ye){return v(Te.id,ye,Te)}:v})];case 1:return Ee=pe.sent(),v==="expand"?(B(oe),[2]):v==="toggleSelection"?(U(oe),[2]):Ee===!1||Ee==null?[2]:(W(Ee,{state:{_scrollToTop:!0}}),[2])}})})},[C,E,v,W,B,U,q]);return ke.createElement(ke.Fragment,null,ke.createElement(If,ow({ref:t,className:ue(o,(r={},r[rt.expandable]=P,r[rt.selectable]=m,r[rt.clickableRow]=v??O,r)),key:f,style:S,hover:c,onClick:ie},b),i&&ke.createElement(en,{padding:"none",className:rt.expandIconCell},P&&ke.createElement(D_e,{className:ue(rt.expandIcon,(n={},n[rt.expanded]=j,n)),expanded:j,onClick:B,expandContentId:"".concat(f,"-expand")})),u&&ke.createElement(en,{padding:"checkbox"},ke.createElement(vg,{"aria-label":_("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(rt.checkbox),checked:m&&y,onClick:U,disabled:!m})),ke.Children.map(a,function(oe,Ee){return d.isValidElement(oe)?ke.createElement(F_e,{key:"".concat(f,"-").concat(oe.props.source||Ee),className:ue("column-".concat(oe.props.source),rt.rowCell),record:C,field:oe,resource:E}):null})),P&&j&&ke.createElement(If,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:rt.expandedPanel},ke.createElement(en,{colSpan:z},d.isValidElement(i)?i:d.createElement(i))))}),V_e=function(e,t){e.children,e.expand;var r=iw(e,["children","expand"]);t.children,t.expand;var n=iw(t,["children","expand"]);return gM(r,n)},J5=d.memo(Y5,V_e);J5.displayName="PureDatagridRow";const U_e=Y5;var Fg=globalThis&&globalThis.__assign||function(){return Fg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=uCe&&(o=lCe,i=!1,t=new nCe(t));e:for(;++a0&&b.length>0&&b.every(function(h){return v.includes(h)}),onChange:m,onClick:function(h){return h.stopPropagation()}})),d.Children.map(t,function(h,_){return d.isValidElement(h)?d.createElement(X_e,{className:ue(rt.headerCell,"column-".concat(h.props.source)),sort:c,field:h,isSorting:(c==null?void 0:c.field)===(h.props.sortBy||h.props.source),key:h.props.source||_,updateSort:x||void 0}):null})))};tN.displayName="DatagridHeader";var xCe=function(e){var t=e.children,r=e.value;return ke.createElement(Q5.Provider,{value:r},t)};const wCe=xCe;var gE={},SCe=it;Object.defineProperty(gE,"__esModule",{value:!0});var rN=gE.default=void 0,_Ce=SCe(ct()),CCe=R;rN=gE.default=(0,_Ce.default)((0,CCe.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 lw=globalThis&&globalThis.__assign||function(){return lw=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(Hr,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,_:"No results found."})))},Mf=globalThis&&globalThis.__assign||function(){return Mf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1] element instead.")})},[r]);var c=function(){if(!r)return[];var v=o.getValues();return r.filter(function(g){var y=qt(v,g.props.source);return g.props.alwaysOn||u[g.props.source]||!oN(y)})},f=d.useCallback(function(v){return l(v.currentTarget.dataset.key)},[l]),p=d.useMemo(function(){return{getSource:function(v){return v},getLabel:function(v){return"resources.".concat(a,".fields.").concat(v)}}},[a]);return d.createElement(j3,{value:p},d.createElement(UCe,Ai({className:t},BCe(n),{onSubmit:DCe}),c().map(function(v){return d.createElement(ICe,{key:v.key||v.props.source,filterElement:v,handleHide:f,resource:a,className:Lg.filterFormInput})}),d.createElement("div",{className:Lg.clearFix})))},DCe=function(e){return e.preventDefault(),!1},BCe=function(e){e.hasCreate,e.resource;var t=mE(e,["hasCreate","resource"]);return t},zCe=function(e,t){return Ai(Ai({},t.filter(function(r){return r.props.alwaysOn&&r.props.defaultValue}).reduce(function(r,n){return $m(Ai({},r),n.props.source,n.props.defaultValue)},{})),e)},VCe=function(e){return e.preventDefault(),e.stopPropagation(),!1},cw="RaFilterForm",Lg={clearFix:"".concat(cw,"-clearFix"),filterFormInput:"".concat(cw,"-filterFormInput")},UCe=ne("form",{name:cw,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(Lg.clearFix)]={clear:"right"},t["& .".concat(Lg.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),WCe=function(e,t){var r;return Object.keys(e).reduce(function(n,a){return n[a]=aN(e,a,t),n},(r=hM(t))!==null&&r!==void 0?r:{})},aN=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,s=aN(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=s,a},{});return Object.keys(n).length?n:""}return qt(r,t,"")},oN=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return oN(e[t])}):!1},yE={},HCe=it;Object.defineProperty(yE,"__esModule",{value:!0});var Ff=yE.default=void 0,qCe=HCe(ct()),KCe=R;Ff=yE.default=(0,qCe.default)((0,KCe.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 bE={},GCe=it;Object.defineProperty(bE,"__esModule",{value:!0});var iN=bE.default=void 0,QCe=GCe(ct()),XCe=R;iN=bE.default=(0,QCe.default)((0,XCe.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 xE={},YCe=it;Object.defineProperty(xE,"__esModule",{value:!0});var sN=xE.default=void 0,JCe=YCe(ct()),ZCe=R;sN=xE.default=(0,JCe.default)((0,ZCe.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 wE={},eEe=it;Object.defineProperty(wE,"__esModule",{value:!0});var lN=wE.default=void 0,tEe=eEe(ct()),rEe=R;lN=wE.default=(0,tEe.default)((0,rEe.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 SE={},nEe=it;Object.defineProperty(SE,"__esModule",{value:!0});var uN=SE.default=void 0,aEe=nEe(ct()),oEe=R;uN=SE.default=(0,aEe.default)((0,oEe.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");var _E={},iEe=it;Object.defineProperty(_E,"__esModule",{value:!0});var cN=_E.default=void 0,sEe=iEe(ct()),lEe=R;cN=_E.default=(0,sEe.default)((0,lEe.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 CE={},uEe=it;Object.defineProperty(CE,"__esModule",{value:!0});var dN=CE.default=void 0,cEe=uEe(ct()),dEe=R;dN=CE.default=(0,cEe.default)((0,dEe.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 fEe=d.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,s=Nt(e),u=d.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=d.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return d.createElement(Ta,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?l:u,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},d.createElement(Cs,null,i?d.createElement(dN,{fontSize:"small"}):d.createElement(cN,{fontSize:"small"})),d.createElement(Zl,null,d.createElement(no,{label:r.props.label,source:r.props.source,resource:s})))}),EE=function(e){return ya("".concat(e,".savedQueries"),[])},OE=function(e){return Array.isArray(e)?e.filter(function(t){return pEe(t)}):[]},pEe=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")},hEe=function(e){var t=e.open,r=e.onClose,n=et(),a=ga(),o=a.resource,i=a.filterValues,s=a.displayedFilters,u=a.sort,l=a.perPage,c=EE(o),f=c[0],p=c[1],v=d.useState(""),g=v[0],y=v[1],S=function(b){y(b.target.value)},x=function(b){b.preventDefault(),m()},m=function(){var b={label:g,value:{filter:i,sort:u,perPage:l,displayedFilters:s}},h=OE(f);p(h.concat(b)),y(""),r()};return d.createElement(TC,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},d.createElement(jC,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),d.createElement(kC,null,d.createElement("form",{onSubmit:x},d.createElement(yp,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:g,onChange:S}))),d.createElement($C,null,d.createElement(hn,{onClick:r},n("ra.action.cancel")),d.createElement(hn,{onClick:m,color:"primary"},n("ra.action.save"))))},$$=globalThis&&globalThis.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n must be called inside a ResourceContextProvider, or must provide a resource prop");var c=EE(u||"")[0],f=lo(),p=ga(),v=p.displayedFilters,g=v===void 0?{}:v,y=p.filterValues,S=p.perPage,x=p.setFilters,m=p.showFilter,b=p.hideFilter,h=p.sort,_=!ja(y,{}),C=OE(c),E=C.some(function(be){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})}),w=d.useState(!1),O=w[0],P=w[1],k=d.useRef();if(s===void 0)throw new Error("The component requires the prop to be set");var j=s.filter(function(be){return!be.props.alwaysOn}),$=d.useCallback(function(be){be.preventDefault(),P(!0),k.current=be.currentTarget},[k,P]),F=d.useCallback(function(){P(!1)},[P]),z=d.useCallback(function(be){var we=be.source,ve=be.defaultValue;m(we,ve===""?void 0:ve),setTimeout(function(){var De=document.querySelector("input[name='".concat(we,"']"));De&&De.focus()},50),P(!1)},[m,P]),M=d.useCallback(function(be){var we=be.source;b(we),P(!1)},[b,P]),W=d.useState(!1),B=W[0],U=W[1],q=function(){U(!1)},ie=function(){P(!1),U(!0)},oe=d.useState(!1),Ee=oe[0],pe=oe[1],Te=function(){pe(!1)},ye=function(){P(!1),pe(!0)};return j.length===0&&C.length===0&&!_?null:d.createElement(yEe,dw({className:r},gEe(i)),d.createElement(Hr,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:$,variant:o,size:a},d.createElement(uN,null)),d.createElement(Ny,{open:O,anchorEl:k.current,onClose:F},j.map(function(be,we){return d.createElement(fEe,{key:be.props.source,filter:be,displayed:!!g[be.props.source],resource:u,onShow:z,onHide:M,autoFocus:we===0})}),(_||C.length>0)&&d.createElement(gg,null),C.map(function(be,we){return ja(be.value,{filter:y,sort:h,perPage:S,displayedFilters:g})?d.createElement(Ta,{onClick:ye,key:we},d.createElement(Cs,null,d.createElement(sN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:be.label}))):d.createElement(Ta,{onClick:function(){var ve,De;f({search:ko.stringify({filter:JSON.stringify(be.value.filter),sort:(ve=be.value.sort)===null||ve===void 0?void 0:ve.field,order:(De=be.value.sort)===null||De===void 0?void 0:De.order,page:1,perPage:be.value.perPage,displayedFilters:JSON.stringify(be.value.displayedFilters)})}),P(!1)},key:we},d.createElement(Cs,null,d.createElement(lN,{fontSize:"small"})),d.createElement(Zl,null,be.label))}),_&&!E&&!n&&d.createElement(Ta,{onClick:ie},d.createElement(Cs,null,d.createElement(iN,{fontSize:"small"})),d.createElement(Zl,null,l("ra.saved_queries.new_label",{_:"Save current query..."}))),_&&d.createElement(Ta,{onClick:function(){x({},{}),P(!1)}},d.createElement(Cs,null,d.createElement(Ff,{fontSize:"small"})),d.createElement(Zl,null,l("ra.action.remove_all_filters",{_:"Remove all filters"})))),!n&&d.createElement(d.Fragment,null,d.createElement(hEe,{open:B,onClose:q}),d.createElement(vEe,{open:Ee,onClose:Te})))},gEe=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=fN(e,["displayedFilters","filterValues","showFilter"]);return t},mEe="RaFilterButton",yEe=ne("div",{name:mEe,overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),bEe=function(e){var t=e.children,r=function(){return d.createElement(pN,{className:j$.button})},n=function(){return d.createElement(nN,{className:j$.form})};return d.createElement(Ep.Provider,{value:d.Children.toArray(t)},e.context==="button"?r():n())},k$="RaFilter",j$={button:"".concat(k$,"-button"),form:"".concat(k$,"-form")},fw=globalThis&&globalThis.__assign||function(){return fw=Object.assign||function(e){for(var t,r=1,n=arguments.length;rx-1)throw new Error(y("ra.navigation.page_out_of_boundaries",{page:w+1}));v(w+1)},[x,v,y]),b=d.useCallback(function(E){g(E.target.value)},[g]),h=d.useCallback(function(E){var w=E.from,O=E.to,P=E.count;return P===-1&&l?y("ra.navigation.partial_page_range_info",{offsetBegin:w,offsetEnd:O,_:"%{from}-%{to} of more than %{to}"}):y("ra.navigation.page_range_info",{offsetBegin:w,offsetEnd:O,total:P===-1?O:P,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[y,l]),_=d.useCallback(function(E){return y("ra.navigation.".concat(E),{_:"Go to ".concat(E," page")})},[y]);if(u)return d.createElement(jc,{variant:"dense"});if(p===0||c<1||p!=null&&c>x)return o!=null,null;if(S)return d.createElement(p$,Dg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,rowsPerPageOptions:EEe,component:"span",labelDisplayedRows:h},wf(i)));var C=n||(!u&&p!=null?xEe:void 0);return d.createElement(p$,Dg({count:p??-1,rowsPerPage:f,page:c-1,onPageChange:m,onRowsPerPageChange:b,ActionsComponent:C,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:y("ra.navigation.page_rows_per_page"),labelDisplayedRows:h,getItemAriaLabel:_,rowsPerPageOptions:r},wf(i)))}),CEe=[5,10,25,50],EEe=[],Bg=globalThis&&globalThis.__assign||function(){return Bg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof ye.target.value>"u")){var be=ye.target,we=be.valueAsDate!==void 0&&be.valueAsDate!==null&&!isNaN(new Date(be.valueAsDate).getTime())?g?g(be.valueAsDate):be.valueAsDate:g?g(be.value):mh(be.value);we!==""&&we!=null&&(_.onChange(we),j.current=!0)}},B=function(ye){c&&c(ye),M.current=!0},U=function(){if(M.current=!1,!!$.current){var ye=$.current.valueAsDate!==void 0&&$.current.valueAsDate!==null&&!isNaN(new Date($.current.valueAsDate).getTime())?g?g($.current.valueAsDate):mh($.current.valueAsDate):g?g($.current.value):mh($.current.value);ye!==_.value&&_.onChange(ye??""),z&&z()}},q=C.error,ie=C.invalid,oe=i!==!1||ie,Ee=_.ref,pe=_.name,Te=fae([Ee,$]);return d.createElement(yp,Bg({id:E,inputRef:Te,name:pe,defaultValue:a(F.current),key:P,type:"datetime-local",onChange:W,onFocus:B,onBlur:U,className:ue("ra-input","ra-input-".concat(f),t),size:"small",variant:S,margin:s,error:ie,disabled:x||m,readOnly:m,helperText:oe?d.createElement(rl,{error:q==null?void 0:q.message,helperText:i}):null,label:d.createElement(no,{label:o,source:f,resource:p,isRequired:w}),InputLabelProps:kEe},_p(b)))},gN=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},TEe=gN(4),gh=gN(2),A$=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=TEe(e.getFullYear()),r=gh(e.getMonth()+1),n=gh(e.getDate()),a=gh(e.getHours()),o=gh(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},$Ee=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,kEe={shrink:!0},mh=function(e){return e==null||e===""?"":e instanceof Date?A$(e):$Ee.test(e)?e:A$(new Date(e))},zg=globalThis&&globalThis.__assign||function(){return zg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"||typeof we.target.value>"u")){var ve=we.target;q(ve.value);var De=ve.valueAsNumber!==void 0&&ve.valueAsNumber!==null&&!isNaN(ve.valueAsNumber)?p?p(ve.valueAsNumber):ve.valueAsNumber:p?p(ve.value):LEe(ve.value);P.onChange(De)}},Ee=function(we){f&&f(we),ie.current=!0},pe=function(){M&&M(),ie.current=!1;var we=o(P.value);q(function(ve){return ve!==we?we:ve})},Te=i!==!1||$,ye=P.ref,be=F$(P,["ref"]);return d.createElement(yp,ii({id:F},be,{inputRef:ye,value:U,onChange:oe,onFocus:Ee,onBlur:pe,className:ue("ra-input","ra-input-".concat(g),t),type:"number",size:"small",variant:h,error:$,disabled:C||E,readOnly:E,helperText:Te?d.createElement(rl,{error:j==null?void 0:j.message,helperText:i}):null,label:d.createElement(no,{label:s,source:g,resource:v,isRequired:z}),margin:u,inputProps:ii(ii({},W),{readOnly:E})},_p(w)))},LEe=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},DEe=function(e){return e==null||isNaN(e)?"":e.toString()},Vg=globalThis&&globalThis.__assign||function(){return Vg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]"u"||!f.message?"ra.auth.sign_in_error":f.message,{type:"error",messageArgs:{_:typeof f=="string"?f:f&&f.message?f.message:void 0}})})};return d.createElement(KEe,{onSubmit:l,mode:"onChange",noValidate:!0,className:r},d.createElement(Di,{className:vu.content},d.createElement(Nn,{autoFocus:!0,source:"username",label:s("ra.auth.username"),autoComplete:"username",validate:Xl()}),d.createElement(Nn,{source:"password",label:s("ra.auth.password"),type:"password",autoComplete:"current-password",validate:Xl()}),d.createElement(hn,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:vu.button},a?d.createElement(kc,{className:vu.icon,size:19,thickness:3}):s("ra.auth.sign_in"))))},nv="RaLoginForm",vu={content:"".concat(nv,"-content"),button:"".concat(nv,"-button"),icon:"".concat(nv,"-icon")},KEe=ne(M_,{name:nv,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(vu.content)]={width:300},t["& .".concat(vu.button)]={marginTop:r.spacing(2)},t["& .".concat(vu.icon)]={margin:r.spacing(.3)},t}),pw=globalThis&&globalThis.__assign||function(){return pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&c?lOe:r;return a?d.createElement(cOe,mw({className:ue("edit-page",o)},l),u!==!1&&d.createElement(dl,{title:u,defaultTitle:v,preferenceKey:"".concat(p,".edit.title")}),y,d.createElement("div",{className:ue(yu.main,(t={},t[yu.noActions]=!y,t))},d.createElement(s,{className:yu.card},g?a:d.createElement(Di,null," ")),n)):null},iv="RaEdit",yu={main:"".concat(iv,"-main"),noActions:"".concat(iv,"-noActions"),card:"".concat(iv,"-card")},cOe=ne("div",{name:iv,overridesResolver:function(e,t){return t.root}})((td={},td["& .".concat(yu.main)]={display:"flex",alignItems:"flex-start"},td["& .".concat(yu.noActions)]={marginTop:"1em"},td["& .".concat(yu.card)]={flex:"1 1 auto"},td)),yw=globalThis&&globalThis.__assign||function(){return yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"&&S?EOe:r;return!a||!y&&l?null:d.createElement(POe,ww({className:ue("show-page",o)},f),c!==!1&&d.createElement(dl,{title:c,defaultTitle:g,preferenceKey:"".concat(v,".show.title")}),x!==!1&&x,d.createElement("div",{className:ue(xu.main,(t={},t[xu.noActions]=!x,t))},d.createElement(s,{className:xu.card},a),n))},lv="RaShow",xu={main:"".concat(lv,"-main"),noActions:"".concat(lv,"-noActions"),card:"".concat(lv,"-card")},POe=ne("div",{name:lv,overridesResolver:function(e,t){return t.root}})((rd={},rd["& .".concat(xu.main)]={display:"flex"},rd["& .".concat(xu.noActions)]={marginTop:"1em"},rd["& .".concat(xu.card)]={flex:"1 1 auto"},rd)),Sw=globalThis&&globalThis.__assign||function(){return Sw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r cannot have showTime and showDate false at the same time");var v=ty(e);if(v==null||v==="")return r?d.createElement(_t,qg({component:"span",variant:"body2",className:t},nl(f)),r&&p(r,{_:r})):null;var g=c(v),y="";if(g)if(i&&u)y=v0?g.toLocaleString(n,a):g.toLocaleString();else if(u){var S=a??(typeof v=="string"&&v.length<=10?{timeZone:"UTC"}:void 0);y=v0?g.toLocaleDateString(n,S):g.toLocaleDateString()}else i&&(y=v0?g.toLocaleTimeString(n,a):g.toLocaleTimeString());return d.createElement(_t,qg({component:"span",variant:"body2",className:t},nl(f)),y)};CN.displayName="DateFieldImpl";var Ya=qy(CN),NOe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},v0=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),Kg=globalThis&&globalThis.__assign||function(){return Kg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?t:"")},Kd=globalThis&&globalThis.__assign||function(){return Kd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&D$.call(t.callee)==="[object Function]"),n},g0,B$;function OPe(){if(B$)return g0;B$=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=MN,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),f=function(p){if(typeof window>"u"||!c)return u(p);try{return u(p)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",y=r.call(v)==="[object Function]",S=n(v),x=g&&r.call(v)==="[object String]",m=[];if(!g&&!y&&!S)throw new TypeError("Object.keys called on a non-object");var b=i&&y;if(x&&v.length>0&&!t.call(v,0))for(var h=0;h0)for(var _=0;_"u"||!jr?bt:jr(Uint8Array),Bs={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?bt:ArrayBuffer,"%ArrayIteratorPrototype%":El&&jr?jr([][Symbol.iterator]()):bt,"%AsyncFromSyncIteratorPrototype%":bt,"%AsyncFunction%":Il,"%AsyncGenerator%":Il,"%AsyncGeneratorFunction%":Il,"%AsyncIteratorPrototype%":Il,"%Atomics%":typeof Atomics>"u"?bt:Atomics,"%BigInt%":typeof BigInt>"u"?bt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":YPe,"%eval%":eval,"%EvalError%":JPe,"%Float32Array%":typeof Float32Array>"u"?bt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?bt:FinalizationRegistry,"%Function%":LN,"%GeneratorFunction%":Il,"%Int8Array%":typeof Int8Array>"u"?bt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?bt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":El&&jr?jr(jr([][Symbol.iterator]())):bt,"%JSON%":typeof JSON=="object"?JSON:bt,"%Map%":typeof Map>"u"?bt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!El||!jr?bt:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?bt:Promise,"%Proxy%":typeof Proxy>"u"?bt:Proxy,"%RangeError%":ZPe,"%ReferenceError%":e2e,"%Reflect%":typeof Reflect>"u"?bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?bt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!El||!jr?bt:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":El&&jr?jr(""[Symbol.iterator]()):bt,"%Symbol%":El?Symbol:bt,"%SyntaxError%":oc,"%ThrowTypeError%":r2e,"%TypedArray%":a2e,"%TypeError%":Su,"%Uint8Array%":typeof Uint8Array>"u"?bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?bt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?bt:Uint32Array,"%URIError%":t2e,"%WeakMap%":typeof WeakMap>"u"?bt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?bt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?bt:WeakSet};if(jr)try{null.error}catch(e){var o2e=jr(jr(e));Bs["%Error.prototype%"]=o2e}var i2e=function e(t){var r;if(t==="%AsyncFunction%")r=y0("async function () {}");else if(t==="%GeneratorFunction%")r=y0("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=y0("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&jr&&(r=jr(a.prototype))}return Bs[t]=r,r},H$={__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"]},Pp=$E,Gg=NN,s2e=Pp.call(Function.call,Array.prototype.concat),l2e=Pp.call(Function.apply,Array.prototype.splice),q$=Pp.call(Function.call,String.prototype.replace),Qg=Pp.call(Function.call,String.prototype.slice),u2e=Pp.call(Function.call,RegExp.prototype.exec),c2e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d2e=/\\(\\)?/g,f2e=function(t){var r=Qg(t,0,1),n=Qg(t,-1);if(r==="%"&&n!=="%")throw new oc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new oc("invalid intrinsic syntax, expected opening `%`");var a=[];return q$(t,c2e,function(o,i,s,u){a[a.length]=s?q$(u,d2e,"$1"):i||o}),a},p2e=function(t,r){var n=t,a;if(Gg(H$,n)&&(a=H$[n],n="%"+a[0]+"%"),Gg(Bs,n)){var o=Bs[n];if(o===Il&&(o=i2e(n)),typeof o>"u"&&!r)throw new Su("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new oc("intrinsic "+t+" does not exist!")},Rp=function(t,r){if(typeof t!="string"||t.length===0)throw new Su("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Su('"allowMissing" argument must be a boolean');if(u2e(/^%?[^%]*%?$/,t)===null)throw new oc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=f2e(t),a=n.length>0?n[0]:"",o=p2e("%"+a+"%",r),i=o.name,s=o.value,u=!1,l=o.alias;l&&(a=l[0],l2e(n,s2e([0,1],l)));for(var c=1,f=!0;c=n.length){var y=Ds(s,p);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else f=Gg(s,p),s=s[p];f&&!u&&(Bs[i]=s)}}return s},x0,K$;function kE(){if(K$)return x0;K$=1;var e=Rp,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return x0=t,x0}var h2e=Rp,dv=h2e("%Object.getOwnPropertyDescriptor%",!0);if(dv)try{dv([],"length")}catch{dv=null}var DN=dv,G$=kE(),v2e=FN,Ol=Op,Q$=DN,BN=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Ol("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ol("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ol("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ol("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ol("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ol("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!Q$&&Q$(t,r);if(G$)G$(t,r,{configurable:i===null&&u?u.configurable:!i,enumerable:a===null&&u?u.enumerable:!a,value:n,writable:o===null&&u?u.writable:!o});else if(s||!a&&!o&&!i)t[r]=n;else throw new v2e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mw=kE(),zN=function(){return!!Mw};zN.hasArrayLengthDefineBug=function(){if(!Mw)return null;try{return Mw([],"length",{value:1}).length!==1}catch{return!0}};var VN=zN,g2e=TPe,m2e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",y2e=Object.prototype.toString,b2e=Array.prototype.concat,X$=BN,x2e=function(e){return typeof e=="function"&&y2e.call(e)==="[object Function]"},UN=VN(),w2e=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!x2e(n)||!n())return}UN?X$(e,t,r,!0):X$(e,t,r)},WN=function(e,t){var r=arguments.length>2?arguments[2]:{},n=g2e(t);m2e&&(n=b2e.call(n,Object.getOwnPropertySymbols(t)));for(var a=0;a4294967295||C2e(r)!==r)throw new Z$("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&J$){var i=J$(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(_2e?Y$(t,"length",r,!0,!0):Y$(t,"length",r)),t};(function(e){var t=$E,r=Rp,n=E2e,a=Op,o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),s=r("%Reflect.apply%",!0)||t.call(i,o),u=kE(),l=r("%Math.max%");e.exports=function(p){if(typeof p!="function")throw new a("a function is required");var v=s(t,i,arguments);return n(v,1+l(0,p.length-(arguments.length-1)),!0)};var c=function(){return s(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c})(qN);var KN=qN.exports,O2e=Op,P2e=function(t){if(t==null)throw new O2e(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t},GN=Rp,QN=KN,R2e=QN(GN("String.prototype.indexOf")),T2e=function(t,r){var n=GN(t,!!r);return typeof n=="function"&&R2e(t,".prototype.")>-1?QN(n):n},$2e=P2e,XN=T2e,k2e=XN("Object.prototype.propertyIsEnumerable"),j2e=XN("Array.prototype.push"),YN=function(t){var r=$2e(t),n=[];for(var a in r)k2e(r,a)&&j2e(n,[a,r[a]]);return n},I2e=YN,JN=function(){return typeof Object.entries=="function"?Object.entries:I2e},A2e=JN,M2e=HN,F2e=function(){var t=A2e();return M2e(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t},N2e=HN,L2e=KN,D2e=YN,ZN=JN,B2e=F2e,eL=L2e(ZN(),Object);N2e(eL,{getPolyfill:ZN,implementation:D2e,shim:B2e});var z2e=eL,jE=z2e,tL=NN,V2e=function(t){},Fw=String.prototype.replace,rL=String.prototype.split,fv="||||",bh=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},nL={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:bh,chinese:function(){return 0},croatian:bh,french:function(e){return e>=2?1:0},german:function(e){return e!==1?1:0},russian:bh,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:bh},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 U2e(e){for(var t={},r=jE(e),n=0;n=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var lRe=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),uRe=function(e){lRe(t,e);function t(r,n,a){a===void 0&&(a=null);var o=e.call(this,r)||this;return o.message=r,o.status=n,o.body=a,Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(o,o.constructor):o.stack=new Error(r).stack,o.stack=new Error().stack,o}return t}(Error);const cRe=uRe;var Xg=globalThis&&globalThis.__assign||function(){return Xg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=300?Promise.reject(new cRe(u&&u.message||o,a,u)):Promise.resolve({status:a,headers:i,body:s,json:u})})},fRe=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},Yg=function(e,t){var r;return t===void 0&&(t=[]),fRe(e)?Object.assign.apply(Object,dRe([{}],Object.keys(e).map(function(n){return Yg(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e};function Nw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{t.headers||(t.headers=oL(t));const r=localStorage.getItem("token");return r&&t.headers.set("Authorization",`Bearer ${r}`),ME(e,t)},gRe=hRe(fl,vRe),mRe={...gRe,getManyReference:(e,t)=>{const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i={...Yg(t.filter),[t.target]:t.id,_sort:a,_order:o,_start:(r-1)*n,_end:r*n,output_size_limit:200},s=`${fl}/${t.target}/${t.id}/${e}?${ko.stringify(i)}`;return ME(s).then(({headers:u,json:l})=>{if(!u.has("x-total-count"))throw new Error("The X-Total-Count header is missing in the HTTP Response. The jsonServer Data Provider expects responses for lists of resources to contain this header with the total number of results to build the pagination. If you are using CORS, did you declare X-Total-Count in the Access-Control-Expose-Headers header?");return{data:l,total:parseInt(u.get("x-total-count").split("/").pop()||"",10)}})}};var FE={},yRe=it;Object.defineProperty(FE,"__esModule",{value:!0});var Ky=FE.default=void 0,bRe=yRe(ct()),xRe=R;Ky=FE.default=(0,bRe.default)((0,xRe.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");const wRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=YM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}`,{method:"POST"}).then(()=>{t("Success running job")}).catch(u=>{t("Error on running job",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Run",onClick:i,disabled:a,children:R.jsx(Ky,{})})},SRe=({selectedIds:e})=>{const t=ur(),r=Uo(),n=YM,[a,o]=d.useState(!1),i=()=>{for(let s of e)o(!0),fetch(`${fl}/jobs/${s}/toggle`,{method:"POST"}).then(()=>{t("Job toggled")}).catch(u=>{t("Error on job toggle",{type:"warning"})}).finally(()=>{o(!1),r()});n("jobs")};return R.jsx(Hr,{label:"Toggle",title:"Enable/disable execution of selected jobs",onClick:i,disabled:a,children:R.jsx(Ky,{})})};var NE={},_Re=it;Object.defineProperty(NE,"__esModule",{value:!0});var LE=NE.default=void 0,CRe=_Re(ct()),ERe=R;LE=NE.default=(0,CRe.default)((0,ERe.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 DE={},ORe=it;Object.defineProperty(DE,"__esModule",{value:!0});var sL=DE.default=void 0,PRe=ORe(ct()),RRe=R;sL=DE.default=(0,PRe.default)((0,RRe.jsx)("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"}),"Timer");const TRe=()=>{const e=_r();return e.status==="success"?R.jsx(kn,{title:"Success",children:R.jsx(Vy,{htmlColor:"green"})}):e.status==="failed"?R.jsx(kn,{title:"Error",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Waiting to Run",children:R.jsx(sL,{htmlColor:"blue"})})},$Re=()=>_r().disabled?R.jsx(kn,{title:"Disabled",children:R.jsx(LE,{htmlColor:"red"})}):R.jsx(kn,{title:"Enabled",children:R.jsx(Vy,{htmlColor:"green"})}),kRe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function jRe(e={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:n=""}=e,a=n===""?"":`${n}-`;let o=0;const i=()=>(o+=1,o);return(s,u)=>{const l=u.options.name;if(l&&l.indexOf("Mui")===0&&!u.options.link&&!t){if(kRe.indexOf(s.key)!==-1)return`Mui-${s.key}`;const c=`${a}${l}-${s.key}`;return!u.options.theme[qF]||n!==""?c:`${c}-${i()}`}return`${a}${r}${i()}`}}var lk=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},Tp=(typeof window>"u"?"undefined":lk(window))==="object"&&(typeof document>"u"?"undefined":lk(document))==="object"&&document.nodeType===9,IRe={}.constructor;function Lw(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(Lw);if(e.constructor!==IRe)return e;var t={};for(var r in e)t[r]=Lw(e[r]);return t}function BE(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,a=Lw(t),o=n.plugins.onCreateRule(e,a,r);return o||(e[0],null)}var uk=function(t,r){for(var n="",a=0;a<+~=|^:(),"'`\s])/g,ck=typeof CSS<"u"&&CSS.escape,zE=function(e){return ck?ck(e):e.replace(ARe,"\\$1")},lL=function(){function e(r,n,a){this.type="style",this.isProcessed=!1;var o=a.sheet,i=a.Renderer;this.key=r,this.options=a,this.style=n,o?this.renderer=o.renderer:i&&(this.renderer=new i)}var t=e.prototype;return t.prop=function(n,a,o){if(a===void 0)return this.style[n];var i=o?o.force:!1;if(!i&&this.style[n]===a)return this;var s=a;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(a,n,this));var u=s==null||s===!1,l=n in this.style;if(u&&!l&&!i)return this;var c=u&&l;if(c?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var f=this.options.sheet;return f&&f.attached,this},e}(),Dw=function(e){Oy(t,e);function t(n,a,o){var i;i=e.call(this,n,a,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,c=o.generateId;return s?i.selectorText=s:u!==!1&&(i.id=c(bx(bx(i)),l),i.selectorText="."+zE(i.id)),i}var r=t.prototype;return r.applyTo=function(a){var o=this.renderer;if(o){var i=this.toJSON();for(var s in i)o.setProperty(a,s,i[s])}return this},r.toJSON=function(){var a={};for(var o in this.style){var i=this.style[o];typeof i!="object"?a[o]=i:Array.isArray(i)&&(a[o]=zs(i))}return a},r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.selectorText,this.style,s)},iL(t,[{key:"selector",set:function(a){if(a!==this.selectorText){this.selectorText=a;var o=this.renderer,i=this.renderable;if(!(!i||!o)){var s=o.setSelector(i,a);s||o.replaceRule(i,this)}}},get:function(){return this.selectorText}}]),t}(lL),MRe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new Dw(t,r,n)}},S0={indent:1,children:!0},FRe=/@([\w-]+)/,NRe=function(){function e(r,n,a){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(FRe);this.at=o?o[1]:"unknown",this.query=a.name||"@"+this.at,this.options=a,this.rules=new Gy(T({},a,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(n){n===void 0&&(n=S0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=S0.indent),n.children==null&&(n.children=S0.children),n.children===!1)return this.query+" {}";var i=this.rules.toString(n);return i?this.query+" {"+o+i+o+"}":""},e}(),LRe=/@container|@media|@supports\s+/,DRe={onCreateRule:function(t,r,n){return LRe.test(t)?new NRe(t,r,n):null}},_0={indent:1,children:!0},BRe=/@keyframes\s+([\w-]+)/,Bw=function(){function e(r,n,a){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(BRe);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=a;var i=a.scoped,s=a.sheet,u=a.generateId;this.id=i===!1?this.name:zE(u(this,s)),this.rules=new Gy(T({},a,{parent:this}));for(var l in n)this.rules.add(l,n[l],T({},a,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=_0);var a=Ic(n),o=a.linebreak;if(n.indent==null&&(n.indent=_0.indent),n.children==null&&(n.children=_0.children),n.children===!1)return this.at+" "+this.id+" {}";var i=this.rules.toString(n);return i&&(i=""+o+i+o),this.at+" "+this.id+" {"+i+"}"},e}(),zRe=/@keyframes\s+/,VRe=/\$([\w-]+)/g,zw=function(t,r){return typeof t=="string"?t.replace(VRe,function(n,a){return a in r?r[a]:n}):t},dk=function(t,r,n){var a=t[r],o=zw(a,n);o!==a&&(t[r]=o)},URe={onCreateRule:function(t,r,n){return typeof t=="string"&&zRe.test(t)?new Bw(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&dk(t,"animation-name",n.keyframes),"animation"in t&&dk(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var a=n.options.sheet;if(!a)return t;switch(r){case"animation":return zw(t,a.keyframes);case"animation-name":return zw(t,a.keyframes);default:return t}}},WRe=function(e){Oy(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(a){var o=this.options.sheet,i=o?o.options.link:!1,s=i?T({},a,{allowEmpty:!0}):a;return Nf(this.key,this.style,s)},t}(lL),HRe={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new WRe(t,r,n):null}},qRe=function(){function e(r,n,a){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=a}var t=e.prototype;return t.toString=function(n){var a=Ic(n),o=a.linebreak;if(Array.isArray(this.style)){for(var i="",s=0;s=this.index){a.push(n);return}for(var i=0;io){a.splice(i,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var a=this.registry.indexOf(n);this.registry.splice(a,1)},t.toString=function(n){for(var a=n===void 0?{}:n,o=a.attached,i=Pe(a,["attached"]),s=Ic(i),u=s.linebreak,l="",c=0;c-1?a.substr(0,o-1):a;t.style.setProperty(r,i,o>-1?"important":"")}}catch{return!1}return!0},oTe=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},iTe=function(t,r){return t.selectorText=r,t.selectorText===r},dL=cL(function(){return document.querySelector("head")});function sTe(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function lTe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function uTe(e){for(var t=dL(),r=0;r0){var r=sTe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=lTe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var a=uTe(n);if(a)return{parent:a.parentNode,node:a.nextSibling}}return!1}function dTe(e,t){var r=t.insertionPoint,n=cTe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var a=r,o=a.parentNode;o&&o.insertBefore(e,a.nextSibling);return}dL().appendChild(e)}var fTe=cL(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),gk=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},mk=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},pTe=function(){var t=document.createElement("style");return t.textContent=` +`,t},hTe=function(){function e(r){this.getPropertyValue=nTe,this.setProperty=aTe,this.removeProperty=oTe,this.setSelector=iTe,this.hasInsertedRules=!1,this.cssRules=[],r&&Gd.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},a=n.media,o=n.meta,i=n.element;this.element=i||pTe(),this.element.setAttribute("data-jss",""),a&&this.element.setAttribute("media",a),o&&this.element.setAttribute("data-meta",o);var s=fTe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){dTe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=` `)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` `+n.toString()+` -`}},t.insertRules=function(n,a){for(var o=0;o-1){var o=bL[t];if(!Array.isArray(o))return ft.js+Bi(o)in r?ft.css+o:!1;if(!a)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},o=Object.keys(r).sort(e),i=0;i"u"?null:v$e(),g$e()]}}function wL(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=T({},t);return Object.keys(r).forEach(o=>{r[o]&&(a[o]=`${t[o]} ${r[o]}`)}),a}const y$e={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},ru=y$e;function b$e(){var e;const t=cC();return(e=t==null?void 0:t.$$material)!=null?e:t}const x$e=dL(m$e()),w$e=IRe(),S$e=new Map,_$e={disableGeneration:!1,generateClassName:w$e,jss:x$e,sheetsCache:null,sheetsManager:S$e,sheetsRegistry:null},C$e=d.createContext(_$e);let xk=-1e9;function E$e(){return xk+=1,xk}const O$e=["variant"];function wk(e){return e.length===0}function P$e(e){const{variant:t}=e,r=Pe(e,O$e);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=wk(n)?e[a]:ge(e[a]):n+=`${wk(n)?a:ge(a)}${ge(e[a].toString())}`}),n}const R$e={},T$e=R$e;function $$e(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(u){throw u}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const o=r.components[n].styleOverrides||{},i=r.components[n].variants||[],s=T({},a);return Object.keys(o).forEach(u=>{s[u]=Rr(s[u]||{},o[u])}),i.forEach(u=>{const l=P$e(u.props);s[l]=Rr(s[l]||{},u.style)}),s},options:{}}}const k$e=["name","classNamePrefix","Component","defaultTheme"];function j$e({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=wL({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function I$e({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},o){if(r.disableGeneration)return;let i=ru.get(r.sheetsManager,n,t);i||(i={refs:0,staticSheet:null,dynamicStyles:null},ru.set(r.sheetsManager,n,t,i));const s=T({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=r.sheetsRegistry;if(i.refs===0){let l;r.sheetsCache&&(l=ru.get(r.sheetsCache,n,t));const c=n.create(t,a);l||(l=r.jss.createStyleSheet(c,T({link:!1},s)),l.attach(),r.sheetsCache&&ru.set(r.sheetsCache,n,t,l)),u&&u.add(l),i.staticSheet=l,i.dynamicStyles=fL(c)}if(i.dynamicStyles){const l=r.jss.createStyleSheet(i.dynamicStyles,T({link:!0},s));l.update(o),l.attach(),e.dynamicSheet=l,e.classes=wL({baseClasses:i.staticSheet.classes,newClasses:l.classes}),u&&u.add(l)}else e.classes=i.staticSheet.classes;i.refs+=1}function A$e({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function M$e({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=ru.get(r.sheetsManager,n,t);a.refs-=1;const o=r.sheetsRegistry;a.refs===0&&(ru.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}function F$e(e,t){const r=d.useRef([]);let n;const a=d.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),d.useEffect(()=>()=>{n&&n()},[a])}function SL(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:o=T$e}=t,i=Pe(t,k$e),s=$$e(e),u=r||n||"makeStyles";return s.options={index:E$e(),name:r,meta:u,classNamePrefix:u},(c={})=>{const f=b$e()||o,p=T({},d.useContext(C$e),i),v=d.useRef(),g=d.useRef();return F$e(()=>{const S={name:r,state:{},stylesCreator:s,stylesOptions:p,theme:f};return I$e(S,c),g.current=!1,v.current=S,()=>{M$e(S)}},[f,s]),d.useEffect(()=>{g.current&&A$e(v.current,c),g.current=!0}),j$e(v.current,c.classes,a)}}const N$e=e=>R.jsxs(bEe,{...e,children:[R.jsx(Nn,{label:"Search",source:"q",alwaysOn:!0}),R.jsx(yN,{source:"status",choices:[{id:"success",name:"Success"},{id:"failed",name:"Failed"},{id:"untriggered",name:"Waiting to Run"}]}),R.jsx(rw,{source:"disabled"})]}),L$e=e=>R.jsxs(d.Fragment,{children:[R.jsx(SRe,{...e}),R.jsx(_Re,{...e}),R.jsx(F5,{...e})]}),D$e=e=>R.jsx(hN,{rowsPerPageOptions:[5,10,25,50,100],...e}),B$e=SL(e=>({hiddenOnSmallScreens:{display:"table-cell",[e.breakpoints.down("md")]:{display:"none"}},cell:{padding:"6px 8px 6px 8px"}})),z$e=e=>{const t=B$e();return R.jsx(TE,{...e,filters:R.jsx(N$e,{}),bulkActionButtons:R.jsx(L$e,{}),pagination:R.jsx(D$e,{}),children:R.jsxs(Cp,{rowClick:"show",classes:{rowCell:t.cell},children:[R.jsx(fr,{source:"id",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"displayname",label:"Display name"}),R.jsx(fr,{source:"timezone",sortable:!1,cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"schedule"}),R.jsx(qd,{source:"success_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(qd,{source:"error_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Ya,{source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(kRe,{source:"disabled",label:"Enabled",sortable:!1}),R.jsx(qd,{source:"retries",sortable:!1}),R.jsx($Re,{source:"status",sortable:!1}),R.jsx(Ya,{source:"next",showTime:!0}),R.jsx(uE,{})]})})};var _L={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Al,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),f=function(p,v,g){var y,S,x,m=p&f.F,b=p&f.G,h=p&f.S,_=p&f.P,C=p&f.B,E=p&f.W,w=b?s:s[v]||(s[v]={}),O=w.prototype,P=b?i:h?i[v]:(i[v]||{}).prototype;for(y in b&&(g=v),g)(S=!m&&P&&P[y]!==void 0)&&c(w,y)||(x=S?P[y]:g[y],w[y]=b&&typeof P[y]!="function"?g[y]:C&&S?u(x,i):E&&P[y]==x?function(k){var j=function($,F,z){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k($);case 2:return new k($,F)}return new k($,F,z)}return k.apply(this,arguments)};return j.prototype=k.prototype,j}(x):_&&typeof x=="function"?u(Function.call,x):x,_&&((w.virtual||(w.virtual={}))[y]=x,p&f.R&&O&&!O[y]&&l(O,y,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,v){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),v===void 0?g:s(g,v)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,f){var p,v=s(c),g=0,y=[];for(p in v)p!=l&&i(v,p)&&y.push(p);for(;f.length>g;)i(v,p=f[g++])&&(~u(y,p)||y.push(p));return y}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(v,g){try{return v[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=S(o(49)),s=S(o(76)),u=S(o(81)),l=S(o(89)),c=S(o(93)),f=function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&(P[k]=O[k]);return P.default=O,P}(o(94)),p=S(o(132)),v=S(o(133)),g=S(o(138)),y=o(139);function S(O){return O&&O.__esModule?O:{default:O}}var x=f.default,m=(0,l.default)(x),b=(0,g.default)(v.default,y.rgb2yuv,function(O){var P,k=(0,u.default)(O,3),j=k[0],$=k[1],F=k[2];return[(P=j,P<.25?1:P<.5?.9-P:1.1-P),$,F]},y.yuv2rgb,p.default),h=function(O){return function(P){return{className:[P.className,O.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},O.style||{})}}},_=function(O,P){var k=(0,l.default)(P);for(var j in O)k.indexOf(j)===-1&&k.push(j);return k.reduce(function($,F){return $[F]=function(z,M){if(z===void 0)return M;if(M===void 0)return z;var W=z===void 0?"undefined":(0,i.default)(z),B=M===void 0?"undefined":(0,i.default)(M);switch(W){case"string":switch(B){case"string":return[M,z].filter(Boolean).join(" ");case"object":return h({className:z,style:M});case"function":return function(U){for(var q=arguments.length,ie=Array(q>1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe2?k-2:0),$=2;$3?P-3:0),j=3;j1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=$.defaultBase16,M=z===void 0?x:z,W=$.base16Themes,B=W===void 0?null:W,U=w(F,B);U&&(F=(0,s.default)({},U,F));var q=m.reduce(function(pe,Te){return pe[Te]=F[Te]||M[Te],pe},{}),ie=(0,l.default)(F).reduce(function(pe,Te){return m.indexOf(Te)===-1&&(pe[Te]=F[Te]),pe},{}),oe=O(q),Ee=_(ie,oe);return(0,c.default)(C,2).apply(void 0,[Ee].concat(k))},3),a.getBase16Theme=function(O,P){if(O&&O.extend&&(O=O.extend),typeof O=="string"){var k=O.split(":"),j=(0,u.default)(k,2),$=j[0],F=j[1];O=(P||{})[$]||f[$],F==="inverted"&&(O=E(O))}return O&&O.hasOwnProperty("base00")?O:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(h,_,C){return Function.prototype.apply.call(h,_,C)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var l=Number.isNaN||function(h){return h!=h};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(h,_){return new Promise(function(C,E){function w(){O!==void 0&&h.removeListener("error",O),C([].slice.call(arguments))}var O;_!=="error"&&(O=function(P){h.removeListener(_,w),E(P)},h.once("error",O)),h.once(_,w)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function v(h){return h._maxListeners===void 0?c.defaultMaxListeners:h._maxListeners}function g(h,_,C,E){var w,O,P,k;if(p(C),(O=h._events)===void 0?(O=h._events=Object.create(null),h._eventsCount=0):(O.newListener!==void 0&&(h.emit("newListener",_,C.listener?C.listener:C),O=h._events),P=O[_]),P===void 0)P=O[_]=C,++h._eventsCount;else if(typeof P=="function"?P=O[_]=E?[C,P]:[P,C]:E?P.unshift(C):P.push(C),(w=v(h))>0&&P.length>w&&!P.warned){P.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=h,j.type=_,j.count=P.length,k=j,console&&console.warn&&console.warn(k)}return h}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(h,_,C){var E={fired:!1,wrapFn:void 0,target:h,type:_,listener:C},w=y.bind(E);return w.listener=C,E.wrapFn=w,w}function x(h,_,C){var E=h._events;if(E===void 0)return[];var w=E[_];return w===void 0?[]:typeof w=="function"?C?[w.listener||w]:[w]:C?function(O){for(var P=new Array(O.length),k=0;k0&&(O=_[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var k=w[h];if(k===void 0)return!1;if(typeof k=="function")u(k,this,_);else{var j=k.length,$=b(k,j);for(C=0;C=0;O--)if(C[O]===_||C[O].listener===_){P=C[O].listener,w=O;break}if(w<0)return this;w===0?C.shift():function(k,j){for(;j+1=0;E--)this.removeListener(h,_[E]);return this},c.prototype.listeners=function(h){return x(this,h,!0)},c.prototype.rawListeners=function(h){return x(this,h,!1)},c.listenerCount=function(h,_){return typeof h.listenerCount=="function"?h.listenerCount(_):m.call(h,_)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var f,p,v=String(s(l)),g=i(c),y=v.length;return g<0||g>=y?u?"":void 0:(f=v.charCodeAt(g))<55296||f>56319||g+1===y||(p=v.charCodeAt(g+1))<56320||p>57343?u?v.charAt(g):f:u?v.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),v=p.length,g=0;v>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,f,p){var v,g=i(c),y=s(g.length),S=u(p,y);if(l&&f!=f){for(;y>S;)if((v=g[S++])!=v)return!0}else for(;y>S;S++)if((l||S in g)&&g[S]===f)return l||S||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),f=o(68).KEY,p=o(8),v=o(26),g=o(28),y=o(17),S=o(2),x=o(30),m=o(31),b=o(69),h=o(70),_=o(10),C=o(11),E=o(18),w=o(9),O=o(23),P=o(16),k=o(38),j=o(71),$=o(72),F=o(32),z=o(7),M=o(13),W=$.f,B=z.f,U=j.f,q=i.Symbol,ie=i.JSON,oe=ie&&ie.stringify,Ee=S("_hidden"),pe=S("toPrimitive"),Te={}.propertyIsEnumerable,ye=v("symbol-registry"),be=v("symbols"),we=v("op-symbols"),ve=Object.prototype,De=typeof q=="function"&&!!F.f,Me=i.QObject,Qe=!Me||!Me.prototype||!Me.prototype.findChild,Ne=u&&p(function(){return k(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(G,le,he){var Re=W(ve,le);Re&&delete ve[le],B(G,le,he),Re&&G!==ve&&B(ve,le,Re)}:B,Ae=function(G){var le=be[G]=k(q.prototype);return le._k=G,le},He=De&&typeof q.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof q},ht=function(G,le,he){return G===ve&&ht(we,le,he),_(G),le=O(le,!0),_(he),s(be,le)?(he.enumerable?(s(G,Ee)&&G[Ee][le]&&(G[Ee][le]=!1),he=k(he,{enumerable:P(0,!1)})):(s(G,Ee)||B(G,Ee,P(1,{})),G[Ee][le]=!0),Ne(G,le,he)):B(G,le,he)},ut=function(G,le){_(G);for(var he,Re=b(le=w(le)),Be=0,Ye=Re.length;Ye>Be;)ht(G,he=Re[Be++],le[he]);return G},V=function(G){var le=Te.call(this,G=O(G,!0));return!(this===ve&&s(be,G)&&!s(we,G))&&(!(le||!s(this,G)||!s(be,G)||s(this,Ee)&&this[Ee][G])||le)},K=function(G,le){if(G=w(G),le=O(le,!0),G!==ve||!s(be,le)||s(we,le)){var he=W(G,le);return!he||!s(be,le)||s(G,Ee)&&G[Ee][le]||(he.enumerable=!0),he}},te=function(G){for(var le,he=U(w(G)),Re=[],Be=0;he.length>Be;)s(be,le=he[Be++])||le==Ee||le==f||Re.push(le);return Re},se=function(G){for(var le,he=G===ve,Re=U(he?we:w(G)),Be=[],Ye=0;Re.length>Ye;)!s(be,le=Re[Ye++])||he&&!s(ve,le)||Be.push(be[le]);return Be};De||(c((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var G=y(arguments.length>0?arguments[0]:void 0),le=function(he){this===ve&&le.call(we,he),s(this,Ee)&&s(this[Ee],G)&&(this[Ee][G]=!1),Ne(this,G,P(1,he))};return u&&Qe&&Ne(ve,G,{configurable:!0,set:le}),Ae(G)}).prototype,"toString",function(){return this._k}),$.f=K,z.f=ht,o(41).f=j.f=te,o(19).f=V,F.f=se,u&&!o(14)&&c(ve,"propertyIsEnumerable",V,!0),x.f=function(G){return Ae(S(G))}),l(l.G+l.W+l.F*!De,{Symbol:q});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fe=0;de.length>fe;)S(de[fe++]);for(var Oe=M(S.store),ae=0;Oe.length>ae;)m(Oe[ae++]);l(l.S+l.F*!De,"Symbol",{for:function(G){return s(ye,G+="")?ye[G]:ye[G]=q(G)},keyFor:function(G){if(!He(G))throw TypeError(G+" is not a symbol!");for(var le in ye)if(ye[le]===G)return le},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),l(l.S+l.F*!De,"Object",{create:function(G,le){return le===void 0?k(G):ut(k(G),le)},defineProperty:ht,defineProperties:ut,getOwnPropertyDescriptor:K,getOwnPropertyNames:te,getOwnPropertySymbols:se});var Z=p(function(){F.f(1)});l(l.S+l.F*Z,"Object",{getOwnPropertySymbols:function(G){return F.f(E(G))}}),ie&&l(l.S+l.F*(!De||p(function(){var G=q();return oe([G])!="[null]"||oe({a:G})!="{}"||oe(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var le,he,Re=[G],Be=1;arguments.length>Be;)Re.push(arguments[Be++]);if(he=le=Re[1],(C(le)||G!==void 0)&&!He(G))return h(le)||(le=function(Ye,je){if(typeof he=="function"&&(je=he.call(this,Ye,je)),!He(je))return je}),Re[1]=le,oe.apply(ie,Re)}}),q.prototype[pe]||o(6)(q.prototype,pe,q.prototype.valueOf),g(q,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!o(8)(function(){return f(Object.preventExtensions({}))}),v=function(y){l(y,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(y,S){if(!s(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!u(y,i)){if(!f(y))return"F";if(!S)return"E";v(y)}return y[i].i},getWeak:function(y,S){if(!u(y,i)){if(!f(y))return!0;if(!S)return!1;v(y)}return y[i].w},onFreeze:function(y){return p&&g.NEED&&f(y)&&!u(y,i)&&v(y),y}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,v=f(l),g=u.f,y=0;v.length>y;)g.call(l,p=v[y++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),f=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(v,g){if(v=u(v),g=l(g,!0),f)try{return p(v,g)}catch{}if(c(v,g))return s(!i.f.call(v,g),v[g])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var h,_=f(arguments[x++]),C=m?s(_).concat(m(_)):s(_),E=C.length,w=0;E>w;)h=C[w++],i&&!b.call(_,h)||(y[h]=_[h]);return y}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var v=[],g=!0,y=!1,S=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(v.push(x.value),!p||v.length!==p);g=!0);}catch(b){y=!0,S=b}finally{try{!g&&m.return&&m.return()}finally{if(y)throw S}}return v}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,y=/^0o[0-7]+$/i,S=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,h=m||b||Function("return this")();function _(ae,Z,G){switch(G.length){case 0:return ae.call(Z);case 1:return ae.call(Z,G[0]);case 2:return ae.call(Z,G[0],G[1]);case 3:return ae.call(Z,G[0],G[1],G[2])}return ae.apply(Z,G)}function C(ae,Z){return!!(ae&&ae.length)&&function(G,le,he){if(le!=le)return function(Ye,je,Je,_e){for(var Fe=Ye.length,Ge=Je+(_e?1:-1);_e?Ge--:++Ge-1}function E(ae){return ae!=ae}function w(ae,Z){for(var G=ae.length,le=0;G--;)ae[G]===Z&&le++;return le}function O(ae,Z){for(var G=-1,le=ae.length,he=0,Re=[];++G2?k:void 0);function Te(ae){return de(ae)?ie(ae):{}}function ye(ae){return!(!de(ae)||function(Z){return!!M&&M in Z}(ae))&&(function(Z){var G=de(Z)?U.call(Z):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(ae)||function(Z){var G=!1;if(Z!=null&&typeof Z.toString!="function")try{G=!!(Z+"")}catch{}return G}(ae)?q:g).test(function(Z){if(Z!=null){try{return W.call(Z)}catch{}try{return Z+""}catch{}}return""}(ae))}function be(ae,Z,G,le){for(var he=-1,Re=ae.length,Be=G.length,Ye=-1,je=Z.length,Je=oe(Re-Be,0),_e=Array(je+Je),Fe=!le;++Ye1&&at.reverse(),_e&&je1?"& ":"")+Z[le],Z=Z.join(G>2?", ":" "),ae.replace(l,`{ + */fL();var hL=Date.now(),C0="fnValues"+hL,E0="fnStyle"+ ++hL,mTe=function(){return{onCreateRule:function(r,n,a){if(typeof n!="function")return null;var o=BE(r,{},a);return o[E0]=n,o},onProcessStyle:function(r,n){if(C0 in n||E0 in n)return r;var a={};for(var o in r){var i=r[o];typeof i=="function"&&(delete r[o],a[o]=i)}return n[C0]=a,r},onUpdate:function(r,n,a,o){var i=n,s=i[E0];s&&(i.style=s(r)||{});var u=i[C0];if(u)for(var l in u)i.prop(l,u[l](r),o)}}};const yTe=mTe;var Mi="@global",Ww="@global ",bTe=function(){function e(r,n,a){this.type="global",this.at=Mi,this.isProcessed=!1,this.key=r,this.options=a,this.rules=new Gy(T({},a,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,a,o){var i=this.rules.add(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.replaceRule=function(n,a,o){var i=this.rules.replace(n,a,o);return i&&this.options.jss.plugins.onProcessRule(i),i},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e}(),xTe=function(){function e(r,n,a){this.type="global",this.at=Mi,this.isProcessed=!1,this.key=r,this.options=a;var o=r.substr(Ww.length);this.rule=a.jss.createRule(o,n,T({},a,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e}(),wTe=/\s*,\s*/g;function vL(e,t){for(var r=e.split(wTe),n="",a=0;a-1){var o=xL[t];if(!Array.isArray(o))return ft.js+Bi(o)in r?ft.css+o:!1;if(!a)return!1;for(var i=0;in?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},o=Object.keys(r).sort(e),i=0;i"u"?null:h$e(),v$e()]}}function SL(e={}){const{baseClasses:t,newClasses:r,Component:n}=e;if(!r)return t;const a=T({},t);return Object.keys(r).forEach(o=>{r[o]&&(a[o]=`${t[o]} ${r[o]}`)}),a}const m$e={set:(e,t,r,n)=>{let a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(r,n)},get:(e,t,r)=>{const n=e.get(t);return n?n.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}},ru=m$e;function y$e(){var e;const t=cC();return(e=t==null?void 0:t.$$material)!=null?e:t}const b$e=fL(g$e()),x$e=jRe(),w$e=new Map,S$e={disableGeneration:!1,generateClassName:x$e,jss:b$e,sheetsCache:null,sheetsManager:w$e,sheetsRegistry:null},_$e=d.createContext(S$e);let wk=-1e9;function C$e(){return wk+=1,wk}const E$e=["variant"];function Sk(e){return e.length===0}function O$e(e){const{variant:t}=e,r=Pe(e,E$e);let n=t||"";return Object.keys(r).sort().forEach(a=>{a==="color"?n+=Sk(n)?e[a]:ge(e[a]):n+=`${Sk(n)?a:ge(a)}${ge(e[a].toString())}`}),n}const P$e={},R$e=P$e;function T$e(e){const t=typeof e=="function";return{create:(r,n)=>{let a;try{a=t?e(r):e}catch(u){throw u}if(!n||!r.components||!r.components[n]||!r.components[n].styleOverrides&&!r.components[n].variants)return a;const o=r.components[n].styleOverrides||{},i=r.components[n].variants||[],s=T({},a);return Object.keys(o).forEach(u=>{s[u]=Rr(s[u]||{},o[u])}),i.forEach(u=>{const l=O$e(u.props);s[l]=Rr(s[l]||{},u.style)}),s},options:{}}}const $$e=["name","classNamePrefix","Component","defaultTheme"];function k$e({state:e,stylesOptions:t},r,n){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let a=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,a=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,a=!0),a&&(e.cacheClasses.value=SL({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:n})),e.cacheClasses.value}function j$e({state:e,theme:t,stylesOptions:r,stylesCreator:n,name:a},o){if(r.disableGeneration)return;let i=ru.get(r.sheetsManager,n,t);i||(i={refs:0,staticSheet:null,dynamicStyles:null},ru.set(r.sheetsManager,n,t,i));const s=T({},n.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;const u=r.sheetsRegistry;if(i.refs===0){let l;r.sheetsCache&&(l=ru.get(r.sheetsCache,n,t));const c=n.create(t,a);l||(l=r.jss.createStyleSheet(c,T({link:!1},s)),l.attach(),r.sheetsCache&&ru.set(r.sheetsCache,n,t,l)),u&&u.add(l),i.staticSheet=l,i.dynamicStyles=pL(c)}if(i.dynamicStyles){const l=r.jss.createStyleSheet(i.dynamicStyles,T({link:!0},s));l.update(o),l.attach(),e.dynamicSheet=l,e.classes=SL({baseClasses:i.staticSheet.classes,newClasses:l.classes}),u&&u.add(l)}else e.classes=i.staticSheet.classes;i.refs+=1}function I$e({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function A$e({state:e,theme:t,stylesOptions:r,stylesCreator:n}){if(r.disableGeneration)return;const a=ru.get(r.sheetsManager,n,t);a.refs-=1;const o=r.sheetsRegistry;a.refs===0&&(ru.delete(r.sheetsManager,n,t),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}function M$e(e,t){const r=d.useRef([]);let n;const a=d.useMemo(()=>({}),t);r.current!==a&&(r.current=a,n=e()),d.useEffect(()=>()=>{n&&n()},[a])}function _L(e,t={}){const{name:r,classNamePrefix:n,Component:a,defaultTheme:o=R$e}=t,i=Pe(t,$$e),s=T$e(e),u=r||n||"makeStyles";return s.options={index:C$e(),name:r,meta:u,classNamePrefix:u},(c={})=>{const f=y$e()||o,p=T({},d.useContext(_$e),i),v=d.useRef(),g=d.useRef();return M$e(()=>{const S={name:r,state:{},stylesCreator:s,stylesOptions:p,theme:f};return j$e(S,c),g.current=!1,v.current=S,()=>{A$e(S)}},[f,s]),d.useEffect(()=>{g.current&&I$e(v.current,c),g.current=!0}),k$e(v.current,c.classes,a)}}const F$e=e=>R.jsxs(bEe,{...e,children:[R.jsx(Nn,{label:"Search",source:"q",alwaysOn:!0}),R.jsx(bN,{source:"status",choices:[{id:"success",name:"Success"},{id:"failed",name:"Failed"},{id:"untriggered",name:"Waiting to Run"}]}),R.jsx(rw,{source:"disabled"})]}),N$e=e=>R.jsxs(d.Fragment,{children:[R.jsx(wRe,{...e}),R.jsx(SRe,{...e}),R.jsx(N5,{...e})]}),L$e=e=>R.jsx(vN,{rowsPerPageOptions:[5,10,25,50,100],...e}),D$e=_L(e=>({hiddenOnSmallScreens:{display:"table-cell",[e.breakpoints.down("md")]:{display:"none"}},cell:{padding:"6px 8px 6px 8px"}})),B$e=e=>{const t=D$e();return R.jsx(TE,{...e,filters:R.jsx(F$e,{}),bulkActionButtons:R.jsx(N$e,{}),pagination:R.jsx(L$e,{}),children:R.jsxs(Cp,{rowClick:"show",classes:{rowCell:t.cell},children:[R.jsx(fr,{source:"id",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"displayname",label:"Display name"}),R.jsx(fr,{source:"timezone",sortable:!1,cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(fr,{source:"schedule"}),R.jsx(qd,{source:"success_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(qd,{source:"error_count",cellClassName:t.hiddenOnSmallScreens,headerClassName:t.hiddenOnSmallScreens}),R.jsx(Ya,{source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx($Re,{source:"disabled",label:"Enabled",sortable:!1}),R.jsx(qd,{source:"retries",sortable:!1}),R.jsx(TRe,{source:"status",sortable:!1}),R.jsx(Ya,{source:"next",showTime:!0}),R.jsx(uE,{})]})})};var CL={exports:{}};(function(e,t){(function(r,n){e.exports=n(d)})(Al,function(r){return function(n){var a={};function o(i){if(a[i])return a[i].exports;var s=a[i]={i,l:!1,exports:{}};return n[i].call(s.exports,s,s.exports,o),s.l=!0,s.exports}return o.m=n,o.c=a,o.d=function(i,s,u){o.o(i,s)||Object.defineProperty(i,s,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,s){if(1&s&&(i=o(i)),8&s||4&s&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&s&&typeof i!="string")for(var l in i)o.d(u,l,(function(c){return i[c]}).bind(null,l));return u},o.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(s,"a",s),s},o.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},o.p="",o(o.s=48)}([function(n,a){n.exports=r},function(n,a){var o=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=o)},function(n,a,o){var i=o(26)("wks"),s=o(17),u=o(3).Symbol,l=typeof u=="function";(n.exports=function(c){return i[c]||(i[c]=l&&u[c]||(l?u:s)("Symbol."+c))}).store=i},function(n,a){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,a,o){n.exports=!o(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,a){var o={}.hasOwnProperty;n.exports=function(i,s){return o.call(i,s)}},function(n,a,o){var i=o(7),s=o(16);n.exports=o(4)?function(u,l,c){return i.f(u,l,s(1,c))}:function(u,l,c){return u[l]=c,u}},function(n,a,o){var i=o(10),s=o(35),u=o(23),l=Object.defineProperty;a.f=o(4)?Object.defineProperty:function(c,f,p){if(i(c),f=u(f,!0),i(p),s)try{return l(c,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(c[f]=p.value),c}},function(n,a){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,a,o){var i=o(40),s=o(22);n.exports=function(u){return i(s(u))}},function(n,a,o){var i=o(11);n.exports=function(s){if(!i(s))throw TypeError(s+" is not an object!");return s}},function(n,a){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,a){n.exports={}},function(n,a,o){var i=o(39),s=o(27);n.exports=Object.keys||function(u){return i(u,s)}},function(n,a){n.exports=!0},function(n,a,o){var i=o(3),s=o(1),u=o(53),l=o(6),c=o(5),f=function(p,v,g){var y,S,x,m=p&f.F,b=p&f.G,h=p&f.S,_=p&f.P,C=p&f.B,E=p&f.W,w=b?s:s[v]||(s[v]={}),O=w.prototype,P=b?i:h?i[v]:(i[v]||{}).prototype;for(y in b&&(g=v),g)(S=!m&&P&&P[y]!==void 0)&&c(w,y)||(x=S?P[y]:g[y],w[y]=b&&typeof P[y]!="function"?g[y]:C&&S?u(x,i):E&&P[y]==x?function(k){var j=function($,F,z){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k($);case 2:return new k($,F)}return new k($,F,z)}return k.apply(this,arguments)};return j.prototype=k.prototype,j}(x):_&&typeof x=="function"?u(Function.call,x):x,_&&((w.virtual||(w.virtual={}))[y]=x,p&f.R&&O&&!O[y]&&l(O,y,x)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,a){n.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},function(n,a){var o=0,i=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++o+i).toString(36))}},function(n,a,o){var i=o(22);n.exports=function(s){return Object(i(s))}},function(n,a){a.f={}.propertyIsEnumerable},function(n,a,o){var i=o(52)(!0);o(34)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,u=this._t,l=this._i;return l>=u.length?{value:void 0,done:!0}:(s=i(u,l),this._i+=s.length,{value:s,done:!1})})},function(n,a){var o=Math.ceil,i=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?i:o)(s)}},function(n,a){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,a,o){var i=o(11);n.exports=function(s,u){if(!i(s))return s;var l,c;if(u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!i(c=l.call(s))||!u&&typeof(l=s.toString)=="function"&&!i(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,a){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},function(n,a,o){var i=o(26)("keys"),s=o(17);n.exports=function(u){return i[u]||(i[u]=s(u))}},function(n,a,o){var i=o(1),s=o(3),u=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return u[l]||(u[l]=c!==void 0?c:{})})("versions",[]).push({version:i.version,mode:o(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,a){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,a,o){var i=o(7).f,s=o(5),u=o(2)("toStringTag");n.exports=function(l,c,f){l&&!s(l=f?l:l.prototype,u)&&i(l,u,{configurable:!0,value:c})}},function(n,a,o){o(62);for(var i=o(3),s=o(6),u=o(12),l=o(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),p.close(),f=p.F;g--;)delete f.prototype[u[g]];return f()};n.exports=Object.create||function(p,v){var g;return p!==null?(c.prototype=i(p),g=new c,c.prototype=null,g[l]=p):g=f(),v===void 0?g:s(g,v)}},function(n,a,o){var i=o(5),s=o(9),u=o(57)(!1),l=o(25)("IE_PROTO");n.exports=function(c,f){var p,v=s(c),g=0,y=[];for(p in v)p!=l&&i(v,p)&&y.push(p);for(;f.length>g;)i(v,p=f[g++])&&(~u(y,p)||y.push(p));return y}},function(n,a,o){var i=o(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return i(s)=="String"?s.split(""):Object(s)}},function(n,a,o){var i=o(39),s=o(27).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return i(u,s)}},function(n,a,o){var i=o(24),s=o(2)("toStringTag"),u=i(function(){return arguments}())=="Arguments";n.exports=function(l){var c,f,p;return l===void 0?"Undefined":l===null?"Null":typeof(f=function(v,g){try{return v[g]}catch{}}(c=Object(l),s))=="string"?f:u?i(c):(p=i(c))=="Object"&&typeof c.callee=="function"?"Arguments":p}},function(n,a){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}n.exports=o},function(n,a){var o=/-?\d+(\.\d+)?%?/g;n.exports=function(i){return i.match(o)}},function(n,a,o){Object.defineProperty(a,"__esModule",{value:!0}),a.getBase16Theme=a.createStyling=a.invertTheme=void 0;var i=S(o(49)),s=S(o(76)),u=S(o(81)),l=S(o(89)),c=S(o(93)),f=function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&(P[k]=O[k]);return P.default=O,P}(o(94)),p=S(o(132)),v=S(o(133)),g=S(o(138)),y=o(139);function S(O){return O&&O.__esModule?O:{default:O}}var x=f.default,m=(0,l.default)(x),b=(0,g.default)(v.default,y.rgb2yuv,function(O){var P,k=(0,u.default)(O,3),j=k[0],$=k[1],F=k[2];return[(P=j,P<.25?1:P<.5?.9-P:1.1-P),$,F]},y.yuv2rgb,p.default),h=function(O){return function(P){return{className:[P.className,O.className].filter(Boolean).join(" "),style:(0,s.default)({},P.style||{},O.style||{})}}},_=function(O,P){var k=(0,l.default)(P);for(var j in O)k.indexOf(j)===-1&&k.push(j);return k.reduce(function($,F){return $[F]=function(z,M){if(z===void 0)return M;if(M===void 0)return z;var W=z===void 0?"undefined":(0,i.default)(z),B=M===void 0?"undefined":(0,i.default)(M);switch(W){case"string":switch(B){case"string":return[M,z].filter(Boolean).join(" ");case"object":return h({className:z,style:M});case"function":return function(U){for(var q=arguments.length,ie=Array(q>1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe1?q-1:0),oe=1;oe2?k-2:0),$=2;$3?P-3:0),j=3;j1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=$.defaultBase16,M=z===void 0?x:z,W=$.base16Themes,B=W===void 0?null:W,U=w(F,B);U&&(F=(0,s.default)({},U,F));var q=m.reduce(function(pe,Te){return pe[Te]=F[Te]||M[Te],pe},{}),ie=(0,l.default)(F).reduce(function(pe,Te){return m.indexOf(Te)===-1&&(pe[Te]=F[Te]),pe},{}),oe=O(q),Ee=_(ie,oe);return(0,c.default)(C,2).apply(void 0,[Ee].concat(k))},3),a.getBase16Theme=function(O,P){if(O&&O.extend&&(O=O.extend),typeof O=="string"){var k=O.split(":"),j=(0,u.default)(k,2),$=j[0],F=j[1];O=(P||{})[$]||f[$],F==="inverted"&&(O=E(O))}return O&&O.hasOwnProperty("base00")?O:void 0})},function(n,a,o){var i,s=typeof Reflect=="object"?Reflect:null,u=s&&typeof s.apply=="function"?s.apply:function(h,_,C){return Function.prototype.apply.call(h,_,C)};i=s&&typeof s.ownKeys=="function"?s.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:function(h){return Object.getOwnPropertyNames(h)};var l=Number.isNaN||function(h){return h!=h};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(h,_){return new Promise(function(C,E){function w(){O!==void 0&&h.removeListener("error",O),C([].slice.call(arguments))}var O;_!=="error"&&(O=function(P){h.removeListener(_,w),E(P)},h.once("error",O)),h.once(_,w)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function p(h){if(typeof h!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof h)}function v(h){return h._maxListeners===void 0?c.defaultMaxListeners:h._maxListeners}function g(h,_,C,E){var w,O,P,k;if(p(C),(O=h._events)===void 0?(O=h._events=Object.create(null),h._eventsCount=0):(O.newListener!==void 0&&(h.emit("newListener",_,C.listener?C.listener:C),O=h._events),P=O[_]),P===void 0)P=O[_]=C,++h._eventsCount;else if(typeof P=="function"?P=O[_]=E?[C,P]:[P,C]:E?P.unshift(C):P.push(C),(w=v(h))>0&&P.length>w&&!P.warned){P.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+P.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=h,j.type=_,j.count=P.length,k=j,console&&console.warn&&console.warn(k)}return h}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function S(h,_,C){var E={fired:!1,wrapFn:void 0,target:h,type:_,listener:C},w=y.bind(E);return w.listener=C,E.wrapFn=w,w}function x(h,_,C){var E=h._events;if(E===void 0)return[];var w=E[_];return w===void 0?[]:typeof w=="function"?C?[w.listener||w]:[w]:C?function(O){for(var P=new Array(O.length),k=0;k0&&(O=_[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var k=w[h];if(k===void 0)return!1;if(typeof k=="function")u(k,this,_);else{var j=k.length,$=b(k,j);for(C=0;C=0;O--)if(C[O]===_||C[O].listener===_){P=C[O].listener,w=O;break}if(w<0)return this;w===0?C.shift():function(k,j){for(;j+1=0;E--)this.removeListener(h,_[E]);return this},c.prototype.listeners=function(h){return x(this,h,!0)},c.prototype.rawListeners=function(h){return x(this,h,!1)},c.listenerCount=function(h,_){return typeof h.listenerCount=="function"?h.listenerCount(_):m.call(h,_)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(n,a,o){n.exports.Dispatcher=o(140)},function(n,a,o){n.exports=o(142)},function(n,a,o){a.__esModule=!0;var i=l(o(50)),s=l(o(65)),u=typeof s.default=="function"&&typeof i.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":typeof c};function l(c){return c&&c.__esModule?c:{default:c}}a.default=typeof s.default=="function"&&u(i.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof s.default=="function"&&c.constructor===s.default&&c!==s.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(n,a,o){n.exports={default:o(51),__esModule:!0}},function(n,a,o){o(20),o(29),n.exports=o(30).f("iterator")},function(n,a,o){var i=o(21),s=o(22);n.exports=function(u){return function(l,c){var f,p,v=String(s(l)),g=i(c),y=v.length;return g<0||g>=y?u?"":void 0:(f=v.charCodeAt(g))<55296||f>56319||g+1===y||(p=v.charCodeAt(g+1))<56320||p>57343?u?v.charAt(g):f:u?v.slice(g,g+2):p-56320+(f-55296<<10)+65536}}},function(n,a,o){var i=o(54);n.exports=function(s,u,l){if(i(s),u===void 0)return s;switch(l){case 1:return function(c){return s.call(u,c)};case 2:return function(c,f){return s.call(u,c,f)};case 3:return function(c,f,p){return s.call(u,c,f,p)}}return function(){return s.apply(u,arguments)}}},function(n,a){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,a,o){var i=o(38),s=o(16),u=o(28),l={};o(6)(l,o(2)("iterator"),function(){return this}),n.exports=function(c,f,p){c.prototype=i(l,{next:s(1,p)}),u(c,f+" Iterator")}},function(n,a,o){var i=o(7),s=o(10),u=o(13);n.exports=o(4)?Object.defineProperties:function(l,c){s(l);for(var f,p=u(c),v=p.length,g=0;v>g;)i.f(l,f=p[g++],c[f]);return l}},function(n,a,o){var i=o(9),s=o(58),u=o(59);n.exports=function(l){return function(c,f,p){var v,g=i(c),y=s(g.length),S=u(p,y);if(l&&f!=f){for(;y>S;)if((v=g[S++])!=v)return!0}else for(;y>S;S++)if((l||S in g)&&g[S]===f)return l||S||0;return!l&&-1}}},function(n,a,o){var i=o(21),s=Math.min;n.exports=function(u){return u>0?s(i(u),9007199254740991):0}},function(n,a,o){var i=o(21),s=Math.max,u=Math.min;n.exports=function(l,c){return(l=i(l))<0?s(l+c,0):u(l,c)}},function(n,a,o){var i=o(3).document;n.exports=i&&i.documentElement},function(n,a,o){var i=o(5),s=o(18),u=o(25)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),i(c,u)?c[u]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,a,o){var i=o(63),s=o(64),u=o(12),l=o(9);n.exports=o(34)(Array,"Array",function(c,f){this._t=l(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,p=this._i++;return!c||p>=c.length?(this._t=void 0,s(1)):s(0,f=="keys"?p:f=="values"?c[p]:[p,c[p]])},"values"),u.Arguments=u.Array,i("keys"),i("values"),i("entries")},function(n,a){n.exports=function(){}},function(n,a){n.exports=function(o,i){return{value:i,done:!!o}}},function(n,a,o){n.exports={default:o(66),__esModule:!0}},function(n,a,o){o(67),o(73),o(74),o(75),n.exports=o(1).Symbol},function(n,a,o){var i=o(3),s=o(5),u=o(4),l=o(15),c=o(37),f=o(68).KEY,p=o(8),v=o(26),g=o(28),y=o(17),S=o(2),x=o(30),m=o(31),b=o(69),h=o(70),_=o(10),C=o(11),E=o(18),w=o(9),O=o(23),P=o(16),k=o(38),j=o(71),$=o(72),F=o(32),z=o(7),M=o(13),W=$.f,B=z.f,U=j.f,q=i.Symbol,ie=i.JSON,oe=ie&&ie.stringify,Ee=S("_hidden"),pe=S("toPrimitive"),Te={}.propertyIsEnumerable,ye=v("symbol-registry"),be=v("symbols"),we=v("op-symbols"),ve=Object.prototype,De=typeof q=="function"&&!!F.f,Me=i.QObject,Qe=!Me||!Me.prototype||!Me.prototype.findChild,Ne=u&&p(function(){return k(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(G,le,he){var Re=W(ve,le);Re&&delete ve[le],B(G,le,he),Re&&G!==ve&&B(ve,le,Re)}:B,Ae=function(G){var le=be[G]=k(q.prototype);return le._k=G,le},He=De&&typeof q.iterator=="symbol"?function(G){return typeof G=="symbol"}:function(G){return G instanceof q},ht=function(G,le,he){return G===ve&&ht(we,le,he),_(G),le=O(le,!0),_(he),s(be,le)?(he.enumerable?(s(G,Ee)&&G[Ee][le]&&(G[Ee][le]=!1),he=k(he,{enumerable:P(0,!1)})):(s(G,Ee)||B(G,Ee,P(1,{})),G[Ee][le]=!0),Ne(G,le,he)):B(G,le,he)},ut=function(G,le){_(G);for(var he,Re=b(le=w(le)),Be=0,Ye=Re.length;Ye>Be;)ht(G,he=Re[Be++],le[he]);return G},V=function(G){var le=Te.call(this,G=O(G,!0));return!(this===ve&&s(be,G)&&!s(we,G))&&(!(le||!s(this,G)||!s(be,G)||s(this,Ee)&&this[Ee][G])||le)},K=function(G,le){if(G=w(G),le=O(le,!0),G!==ve||!s(be,le)||s(we,le)){var he=W(G,le);return!he||!s(be,le)||s(G,Ee)&&G[Ee][le]||(he.enumerable=!0),he}},te=function(G){for(var le,he=U(w(G)),Re=[],Be=0;he.length>Be;)s(be,le=he[Be++])||le==Ee||le==f||Re.push(le);return Re},se=function(G){for(var le,he=G===ve,Re=U(he?we:w(G)),Be=[],Ye=0;Re.length>Ye;)!s(be,le=Re[Ye++])||he&&!s(ve,le)||Be.push(be[le]);return Be};De||(c((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var G=y(arguments.length>0?arguments[0]:void 0),le=function(he){this===ve&&le.call(we,he),s(this,Ee)&&s(this[Ee],G)&&(this[Ee][G]=!1),Ne(this,G,P(1,he))};return u&&Qe&&Ne(ve,G,{configurable:!0,set:le}),Ae(G)}).prototype,"toString",function(){return this._k}),$.f=K,z.f=ht,o(41).f=j.f=te,o(19).f=V,F.f=se,u&&!o(14)&&c(ve,"propertyIsEnumerable",V,!0),x.f=function(G){return Ae(S(G))}),l(l.G+l.W+l.F*!De,{Symbol:q});for(var de="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fe=0;de.length>fe;)S(de[fe++]);for(var Oe=M(S.store),ae=0;Oe.length>ae;)m(Oe[ae++]);l(l.S+l.F*!De,"Symbol",{for:function(G){return s(ye,G+="")?ye[G]:ye[G]=q(G)},keyFor:function(G){if(!He(G))throw TypeError(G+" is not a symbol!");for(var le in ye)if(ye[le]===G)return le},useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),l(l.S+l.F*!De,"Object",{create:function(G,le){return le===void 0?k(G):ut(k(G),le)},defineProperty:ht,defineProperties:ut,getOwnPropertyDescriptor:K,getOwnPropertyNames:te,getOwnPropertySymbols:se});var Z=p(function(){F.f(1)});l(l.S+l.F*Z,"Object",{getOwnPropertySymbols:function(G){return F.f(E(G))}}),ie&&l(l.S+l.F*(!De||p(function(){var G=q();return oe([G])!="[null]"||oe({a:G})!="{}"||oe(Object(G))!="{}"})),"JSON",{stringify:function(G){for(var le,he,Re=[G],Be=1;arguments.length>Be;)Re.push(arguments[Be++]);if(he=le=Re[1],(C(le)||G!==void 0)&&!He(G))return h(le)||(le=function(Ye,je){if(typeof he=="function"&&(je=he.call(this,Ye,je)),!He(je))return je}),Re[1]=le,oe.apply(ie,Re)}}),q.prototype[pe]||o(6)(q.prototype,pe,q.prototype.valueOf),g(q,"Symbol"),g(Math,"Math",!0),g(i.JSON,"JSON",!0)},function(n,a,o){var i=o(17)("meta"),s=o(11),u=o(5),l=o(7).f,c=0,f=Object.isExtensible||function(){return!0},p=!o(8)(function(){return f(Object.preventExtensions({}))}),v=function(y){l(y,i,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:i,NEED:!1,fastKey:function(y,S){if(!s(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!u(y,i)){if(!f(y))return"F";if(!S)return"E";v(y)}return y[i].i},getWeak:function(y,S){if(!u(y,i)){if(!f(y))return!0;if(!S)return!1;v(y)}return y[i].w},onFreeze:function(y){return p&&g.NEED&&f(y)&&!u(y,i)&&v(y),y}}},function(n,a,o){var i=o(13),s=o(32),u=o(19);n.exports=function(l){var c=i(l),f=s.f;if(f)for(var p,v=f(l),g=u.f,y=0;v.length>y;)g.call(l,p=v[y++])&&c.push(p);return c}},function(n,a,o){var i=o(24);n.exports=Array.isArray||function(s){return i(s)=="Array"}},function(n,a,o){var i=o(9),s=o(41).f,u={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return l&&u.call(c)=="[object Window]"?function(f){try{return s(f)}catch{return l.slice()}}(c):s(i(c))}},function(n,a,o){var i=o(19),s=o(16),u=o(9),l=o(23),c=o(5),f=o(35),p=Object.getOwnPropertyDescriptor;a.f=o(4)?p:function(v,g){if(v=u(v),g=l(g,!0),f)try{return p(v,g)}catch{}if(c(v,g))return s(!i.f.call(v,g),v[g])}},function(n,a){},function(n,a,o){o(31)("asyncIterator")},function(n,a,o){o(31)("observable")},function(n,a,o){a.__esModule=!0;var i,s=o(77),u=(i=s)&&i.__esModule?i:{default:i};a.default=u.default||function(l){for(var c=1;cx;)for(var h,_=f(arguments[x++]),C=m?s(_).concat(m(_)):s(_),E=C.length,w=0;E>w;)h=C[w++],i&&!b.call(_,h)||(y[h]=_[h]);return y}:p},function(n,a,o){a.__esModule=!0;var i=u(o(82)),s=u(o(85));function u(l){return l&&l.__esModule?l:{default:l}}a.default=function(l,c){if(Array.isArray(l))return l;if((0,i.default)(Object(l)))return function(f,p){var v=[],g=!0,y=!1,S=void 0;try{for(var x,m=(0,s.default)(f);!(g=(x=m.next()).done)&&(v.push(x.value),!p||v.length!==p);g=!0);}catch(b){y=!0,S=b}finally{try{!g&&m.return&&m.return()}finally{if(y)throw S}}return v}(l,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,a,o){n.exports={default:o(83),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(84)},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).isIterable=function(l){var c=Object(l);return c[s]!==void 0||"@@iterator"in c||u.hasOwnProperty(i(c))}},function(n,a,o){n.exports={default:o(86),__esModule:!0}},function(n,a,o){o(29),o(20),n.exports=o(87)},function(n,a,o){var i=o(10),s=o(88);n.exports=o(1).getIterator=function(u){var l=s(u);if(typeof l!="function")throw TypeError(u+" is not iterable!");return i(l.call(u))}},function(n,a,o){var i=o(42),s=o(2)("iterator"),u=o(12);n.exports=o(1).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||u[i(l)]}},function(n,a,o){n.exports={default:o(90),__esModule:!0}},function(n,a,o){o(91),n.exports=o(1).Object.keys},function(n,a,o){var i=o(18),s=o(13);o(92)("keys",function(){return function(u){return s(i(u))}})},function(n,a,o){var i=o(15),s=o(1),u=o(8);n.exports=function(l,c){var f=(s.Object||{})[l]||Object[l],p={};p[l]=c(f),i(i.S+i.F*u(function(){f(1)}),"Object",p)}},function(n,a,o){(function(i){var s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,p=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,y=/^0o[0-7]+$/i,S=/^(?:0|[1-9]\d*)$/,x=parseInt,m=typeof i=="object"&&i&&i.Object===Object&&i,b=typeof self=="object"&&self&&self.Object===Object&&self,h=m||b||Function("return this")();function _(ae,Z,G){switch(G.length){case 0:return ae.call(Z);case 1:return ae.call(Z,G[0]);case 2:return ae.call(Z,G[0],G[1]);case 3:return ae.call(Z,G[0],G[1],G[2])}return ae.apply(Z,G)}function C(ae,Z){return!!(ae&&ae.length)&&function(G,le,he){if(le!=le)return function(Ye,je,Je,_e){for(var Fe=Ye.length,Ge=Je+(_e?1:-1);_e?Ge--:++Ge-1}function E(ae){return ae!=ae}function w(ae,Z){for(var G=ae.length,le=0;G--;)ae[G]===Z&&le++;return le}function O(ae,Z){for(var G=-1,le=ae.length,he=0,Re=[];++G2?k:void 0);function Te(ae){return de(ae)?ie(ae):{}}function ye(ae){return!(!de(ae)||function(Z){return!!M&&M in Z}(ae))&&(function(Z){var G=de(Z)?U.call(Z):"";return G=="[object Function]"||G=="[object GeneratorFunction]"}(ae)||function(Z){var G=!1;if(Z!=null&&typeof Z.toString!="function")try{G=!!(Z+"")}catch{}return G}(ae)?q:g).test(function(Z){if(Z!=null){try{return W.call(Z)}catch{}try{return Z+""}catch{}}return""}(ae))}function be(ae,Z,G,le){for(var he=-1,Re=ae.length,Be=G.length,Ye=-1,je=Z.length,Je=oe(Re-Be,0),_e=Array(je+Je),Fe=!le;++Ye1&&at.reverse(),_e&&je1?"& ":"")+Z[le],Z=Z.join(G>2?", ":" "),ae.replace(l,`{ /* [wrapped with `+Z+`] */ `)}function ut(ae,Z){return!!(Z=Z??9007199254740991)&&(typeof ae=="number"||S.test(ae))&&ae>-1&&ae%1==0&&ae1&&u--,c=6*u<1?i+6*(s-i)*u:2*u<1?s:3*u<2?i+(s-i)*(2/3-u)*6:i,l[g]=255*c;return l}},function(n,a,o){(function(i){var s=typeof i=="object"&&i&&i.Object===Object&&i,u=typeof self=="object"&&self&&self.Object===Object&&self,l=s||u||Function("return this")();function c(O,P,k){switch(k.length){case 0:return O.call(P);case 1:return O.call(P,k[0]);case 2:return O.call(P,k[0],k[1]);case 3:return O.call(P,k[0],k[1],k[2])}return O.apply(P,k)}function f(O,P){for(var k=-1,j=P.length,$=O.length;++k-1&&$%1==0&&$<=9007199254740991}(j.length)&&!function($){var F=function(z){var M=typeof z;return!!z&&(M=="object"||M=="function")}($)?g.call($):"";return F=="[object Function]"||F=="[object GeneratorFunction]"}(j)}(k)}(P)&&v.call(P,"callee")&&(!S.call(P,"callee")||g.call(P)=="[object Arguments]")}(O)||!!(x&&O&&O[x])}var h=Array.isArray,_,C,E,w=(C=function(O){var P=(O=function j($,F,z,M,W){var B=-1,U=$.length;for(z||(z=b),W||(W=[]);++B0&&z(q)?F>1?j(q,F-1,z,M,W):f(W,q):M||(W[W.length]=q)}return W}(O,1)).length,k=P;for(_;k--;)if(typeof O[k]!="function")throw new TypeError("Expected a function");return function(){for(var j=0,$=P?O[j].apply(this,arguments):arguments[0];++j2?u-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var I,A=g(N);if(D){var L=g(this).constructor;I=Reflect.construct(A,arguments,L)}else I=A.apply(this,arguments);return x(this,I)}}o.r(a);var b=o(0),h=o.n(b);function _(){var N=this.constructor.getDerivedStateFromProps(this.props,this.state);N!=null&&this.setState(N)}function C(N){this.setState((function(D){var I=this.constructor.getDerivedStateFromProps(N,D);return I??null}).bind(this))}function E(N,D){try{var I=this.props,A=this.state;this.props=N,this.state=D,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(I,A)}finally{this.props=I,this.state=A}}function w(N){var D=N.prototype;if(!D||!D.isReactComponent)throw new Error("Can only polyfill class components");if(typeof N.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function")return N;var I=null,A=null,L=null;if(typeof D.componentWillMount=="function"?I="componentWillMount":typeof D.UNSAFE_componentWillMount=="function"&&(I="UNSAFE_componentWillMount"),typeof D.componentWillReceiveProps=="function"?A="componentWillReceiveProps":typeof D.UNSAFE_componentWillReceiveProps=="function"&&(A="UNSAFE_componentWillReceiveProps"),typeof D.componentWillUpdate=="function"?L="componentWillUpdate":typeof D.UNSAFE_componentWillUpdate=="function"&&(L="UNSAFE_componentWillUpdate"),I!==null||A!==null||L!==null){var H=N.displayName||N.name,re=typeof N.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. @@ -232,4 +232,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof N.getDerivedStateFromProps=="function"&&(D.componentWillMount=_,D.componentWillReceiveProps=C),typeof D.getSnapshotBeforeUpdate=="function"){if(typeof D.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");D.componentWillUpdate=E;var Y=D.componentDidUpdate;D.componentDidUpdate=function(Q,me,$e){var Ze=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:$e;Y.call(this,Q,me,Ze)}}return N}function O(N,D){if(N==null)return{};var I,A,L=function(re,Y){if(re==null)return{};var Q,me,$e={},Ze=Object.keys(re);for(me=0;me=0||($e[Q]=re[Q]);return $e}(N,D);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);for(A=0;A=0||Object.prototype.propertyIsEnumerable.call(N,I)&&(L[I]=N[I])}return L}function P(N){var D=function(I){return{}.toString.call(I).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(N);return D==="number"&&(D=isNaN(N)?"nan":(0|N)!=N?"float":"integer"),D}_.__suppressDeprecationWarning=!0,C.__suppressDeprecationWarning=!0,E.__suppressDeprecationWarning=!0;var k={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},j={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},$={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},F=o(45),z=function(N){var D=function(I){return{backgroundColor:I.base00,ellipsisColor:I.base09,braceColor:I.base07,expandedIcon:I.base0D,collapsedIcon:I.base0E,keyColor:I.base07,arrayKeyColor:I.base0C,objectSize:I.base04,copyToClipboard:I.base0F,copyToClipboardCheck:I.base0D,objectBorder:I.base02,dataTypes:{boolean:I.base0E,date:I.base0D,float:I.base0B,function:I.base0D,integer:I.base0F,string:I.base09,nan:I.base08,null:I.base0A,undefined:I.base05,regexp:I.base0A,background:I.base02},editVariable:{editIcon:I.base0E,cancelIcon:I.base09,removeIcon:I.base09,addIcon:I.base0E,checkIcon:I.base0E,background:I.base01,color:I.base0A,border:I.base07},addKeyModal:{background:I.base05,border:I.base04,color:I.base0A,labelColor:I.base01},validationFailure:{background:I.base09,iconColor:I.base01,fontColor:I.base01}}}(N);return{"app-container":{fontFamily:$.globalFontFamily,cursor:$.globalCursor,backgroundColor:D.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:D.ellipsisColor,fontSize:$.ellipsisFontSize,lineHeight:$.ellipsisLineHeight,cursor:$.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:$.braceCursor,fontWeight:$.braceFontWeight,color:D.braceColor},"expanded-icon":{color:D.expandedIcon},"collapsed-icon":{color:D.collapsedIcon},colon:{display:"inline-block",margin:$.keyMargin,color:D.keyColor,verticalAlign:"top"},objectKeyVal:function(I,A){return{style:u({paddingTop:$.keyValPaddingTop,paddingRight:$.keyValPaddingRight,paddingBottom:$.keyValPaddingBottom,borderLeft:$.keyValBorderLeft+" "+D.objectBorder,":hover":{paddingLeft:A.paddingLeft-1+"px",borderLeft:$.keyValBorderHover+" "+D.objectBorder}},A)}},"object-key-val-no-border":{padding:$.keyValPadding},"pushed-content":{marginLeft:$.pushedContentMarginLeft},variableValue:function(I,A){return{style:u({display:"inline-block",paddingRight:$.variableValuePaddingRight,position:"relative"},A)}},"object-name":{display:"inline-block",color:D.keyColor,letterSpacing:$.keyLetterSpacing,fontStyle:$.keyFontStyle,verticalAlign:$.keyVerticalAlign,opacity:$.keyOpacity,":hover":{opacity:$.keyOpacityHover}},"array-key":{display:"inline-block",color:D.arrayKeyColor,letterSpacing:$.keyLetterSpacing,fontStyle:$.keyFontStyle,verticalAlign:$.keyVerticalAlign,opacity:$.keyOpacity,":hover":{opacity:$.keyOpacityHover}},"object-size":{color:D.objectSize,borderRadius:$.objectSizeBorderRadius,fontStyle:$.objectSizeFontStyle,margin:$.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:$.dataTypeFontSize,marginRight:$.dataTypeMarginRight,opacity:$.datatypeOpacity},boolean:{display:"inline-block",color:D.dataTypes.boolean},date:{display:"inline-block",color:D.dataTypes.date},"date-value":{marginLeft:$.dateValueMarginLeft},float:{display:"inline-block",color:D.dataTypes.float},function:{display:"inline-block",color:D.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:D.dataTypes.integer},string:{display:"inline-block",color:D.dataTypes.string},nan:{display:"inline-block",color:D.dataTypes.nan,fontSize:$.nanFontSize,fontWeight:$.nanFontWeight,backgroundColor:D.dataTypes.background,padding:$.nanPadding,borderRadius:$.nanBorderRadius},null:{display:"inline-block",color:D.dataTypes.null,fontSize:$.nullFontSize,fontWeight:$.nullFontWeight,backgroundColor:D.dataTypes.background,padding:$.nullPadding,borderRadius:$.nullBorderRadius},undefined:{display:"inline-block",color:D.dataTypes.undefined,fontSize:$.undefinedFontSize,padding:$.undefinedPadding,borderRadius:$.undefinedBorderRadius,backgroundColor:D.dataTypes.background},regexp:{display:"inline-block",color:D.dataTypes.regexp},"copy-to-clipboard":{cursor:$.clipboardCursor},"copy-icon":{color:D.copyToClipboard,fontSize:$.iconFontSize,marginRight:$.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:D.copyToClipboardCheck,marginLeft:$.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:$.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:$.metaDataPadding},"icon-container":{display:"inline-block",width:$.iconContainerWidth},tooltip:{padding:$.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.removeIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.addIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:D.editVariable.editIcon,cursor:$.iconCursor,fontSize:$.iconFontSize,marginRight:$.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:$.iconCursor,color:D.editVariable.checkIcon,fontSize:$.iconFontSize,paddingRight:$.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:$.iconCursor,color:D.editVariable.cancelIcon,fontSize:$.iconFontSize,paddingRight:$.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:$.editInputMinWidth,borderRadius:$.editInputBorderRadius,backgroundColor:D.editVariable.background,color:D.editVariable.color,padding:$.editInputPadding,marginRight:$.editInputMarginRight,fontFamily:$.editInputFontFamily},"detected-row":{paddingTop:$.detectedRowPaddingTop},"key-modal-request":{position:$.addKeyCoverPosition,top:$.addKeyCoverPositionPx,left:$.addKeyCoverPositionPx,right:$.addKeyCoverPositionPx,bottom:$.addKeyCoverPositionPx,backgroundColor:$.addKeyCoverBackground},"key-modal":{width:$.addKeyModalWidth,backgroundColor:D.addKeyModal.background,marginLeft:$.addKeyModalMargin,marginRight:$.addKeyModalMargin,padding:$.addKeyModalPadding,borderRadius:$.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:D.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:D.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:D.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:D.addKeyModal.labelColor,fontSize:$.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:D.editVariable.addIcon,fontSize:$.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:D.ellipsisColor,fontSize:$.ellipsisFontSize,lineHeight:$.ellipsisLineHeight,cursor:$.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:D.validationFailure.fontColor,backgroundColor:D.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:D.validationFailure.iconColor,fontSize:$.iconFontSize,transform:"rotate(45deg)"}}};function M(N,D,I){return N||console.error("theme has not been set"),function(A){var L=k;return A!==!1&&A!=="none"||(L=j),Object(F.createStyling)(z,{defaultBase16:L})(A)}(N)(D,I)}var W=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=(A.rjvId,A.type_name),H=A.displayDataTypes,re=A.theme;return H?h.a.createElement("span",Object.assign({className:"data-type-label"},M(re,"data-type-label")),L):null}}]),I}(h.a.PureComponent),B=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"boolean"),h.a.createElement(W,Object.assign({type_name:"bool"},A)),A.value?"true":"false")}}]),I}(h.a.PureComponent),U=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"date"),h.a.createElement(W,Object.assign({type_name:"date"},A)),h.a.createElement("span",Object.assign({className:"date-value"},M(A.theme,"date-value")),A.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),I}(h.a.PureComponent),q=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props;return h.a.createElement("div",M(A.theme,"float"),h.a.createElement(W,Object.assign({type_name:"float"},A)),this.props.value)}}]),I}(h.a.PureComponent);function ie(N,D){(D==null||D>N.length)&&(D=N.length);for(var I=0,A=new Array(D);I"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(I=oe(N))||D&&N&&typeof N.length=="number"){I&&(N=I);var A=0,L=function(){};return{s:L,n:function(){return A>=N.length?{done:!0}:{done:!1,value:N[A++]}},e:function(Q){throw Q},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,re=!0,Y=!1;return{s:function(){I=N[Symbol.iterator]()},n:function(){var Q=I.next();return re=Q.done,Q},e:function(Q){Y=!0,H=Q},f:function(){try{re||I.return==null||I.return()}finally{if(Y)throw H}}}}function pe(N){return function(D){if(Array.isArray(D))return ie(D)}(N)||function(D){if(typeof Symbol<"u"&&Symbol.iterator in Object(D))return Array.from(D)}(N)||oe(N)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),ye=new(o(47)).Dispatcher,be=new(function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reL&&(Y.style.cursor="pointer",this.state.collapsed&&(re=h.a.createElement("span",null,re.substring(0,L),h.a.createElement("span",M(H,"ellipsis")," ...")))),h.a.createElement("div",M(H,"string"),h.a.createElement(W,Object.assign({type_name:"string"},A)),h.a.createElement("span",Object.assign({className:"string-value"},Y,{onClick:this.toggleCollapsed}),'"',re,'"'))}}]),I}(h.a.PureComponent),He=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){return h.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),I}(h.a.PureComponent);function ht(){return(ht=Object.assign||function(N){for(var D=1;D=0||(vo[kr]=lt[kr]);return vo}(N,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),$e,Ze=me.value!==void 0,tt=Object(b.useRef)(null),St=te(tt,D),st=Object(b.useRef)(0),xt=Object(b.useRef)(),jt=function(){var lt=tt.current,Dt=I&&xt.current?xt.current:function(ot){var Vt=window.getComputedStyle(ot);if(Vt===null)return null;var mr,vt=(mr=Vt,ae.reduce(function(Go,Qo){return Go[Qo]=mr[Qo],Go},{})),Gr=vt.boxSizing;return Gr===""?null:(Z&&Gr==="border-box"&&(vt.width=parseFloat(vt.width)+parseFloat(vt.borderRightWidth)+parseFloat(vt.borderLeftWidth)+parseFloat(vt.paddingRight)+parseFloat(vt.paddingLeft)+"px"),{sizingStyle:vt,paddingSize:parseFloat(vt.paddingBottom)+parseFloat(vt.paddingTop),borderSize:parseFloat(vt.borderBottomWidth)+parseFloat(vt.borderTopWidth)})}(lt);if(Dt){xt.current=Dt;var kr=function(ot,Vt,mr,vt){mr===void 0&&(mr=1),vt===void 0&&(vt=1/0),fe||((fe=document.createElement("textarea")).setAttribute("tab-index","-1"),fe.setAttribute("aria-hidden","true"),de(fe)),fe.parentNode===null&&document.body.appendChild(fe);var Gr=ot.paddingSize,Go=ot.borderSize,Qo=ot.sizingStyle,YE=Qo.boxSizing;Object.keys(Qo).forEach(function(Zy){var pl=Zy;fe.style[pl]=Qo[pl]}),de(fe),fe.value=Vt;var kp=function(Zy,pl){var JE=Zy.scrollHeight;return pl.sizingStyle.boxSizing==="border-box"?JE+pl.borderSize:JE-pl.paddingSize}(fe,ot);fe.value="x";var Xy=fe.scrollHeight-Gr,Yy=Xy*mr;YE==="border-box"&&(Yy=Yy+Gr+Go),kp=Math.max(Yy,kp);var Jy=Xy*vt;return YE==="border-box"&&(Jy=Jy+Gr+Go),[kp=Math.min(Jy,kp),Xy]}(Dt,lt.value||lt.placeholder||"x",L,A),yn=kr[0],vo=kr[1];st.current!==yn&&(st.current=yn,lt.style.setProperty("height",yn+"px","important"),Q(yn,{rowHeight:vo}))}};return Object(b.useLayoutEffect)(jt),$e=V(jt),Object(b.useLayoutEffect)(function(){var lt=function(Dt){$e.current(Dt)};return window.addEventListener("resize",lt),function(){window.removeEventListener("resize",lt)}},[]),Object(b.createElement)("textarea",ht({},me,{onChange:function(lt){Ze||jt(),re(lt)},ref:St}))},le=Object(b.forwardRef)(G);function he(N){N=N.trim();try{if((N=JSON.stringify(JSON.parse(N)))[0]==="[")return Re("array",JSON.parse(N));if(N[0]==="{")return Re("object",JSON.parse(N));if(N.match(/\-?\d+\.\d+/)&&N.match(/\-?\d+\.\d+/)[0]===N)return Re("float",parseFloat(N));if(N.match(/\-?\d+e-\d+/)&&N.match(/\-?\d+e-\d+/)[0]===N)return Re("float",Number(N));if(N.match(/\-?\d+/)&&N.match(/\-?\d+/)[0]===N)return Re("integer",parseInt(N));if(N.match(/\-?\d+e\+\d+/)&&N.match(/\-?\d+e\+\d+/)[0]===N)return Re("integer",Number(N))}catch{}switch(N=N.toLowerCase()){case"undefined":return Re("undefined",void 0);case"nan":return Re("nan",NaN);case"null":return Re("null",null);case"true":return Re("boolean",!0);case"false":return Re("boolean",!1);default:if(N=Date.parse(N))return Re("date",new Date(N))}return Re(!1,null)}function Re(N,D){return{type:N,value:D}}var Be=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),I}(h.a.PureComponent),Ye=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),I}(h.a.PureComponent),je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),Je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),_e=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),I}(h.a.PureComponent),Fe=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),I}(h.a.PureComponent),Ge=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),I}(h.a.PureComponent),nt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),mt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),Ot=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),I}(h.a.PureComponent),kt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),I}(h.a.PureComponent),Pt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent);function at(N){return N||(N={}),{style:u(u({verticalAlign:"middle"},N),{},{color:N.color?N.color:"#000000",height:"1em",width:"1em"})}}var It=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).copiedTimer=null,L.handleCopy=function(){var H=document.createElement("textarea"),re=L.props,Y=re.clickCallback,Q=re.src,me=re.namespace;H.innerHTML=JSON.stringify(L.clipboardValue(Q),null," "),document.body.appendChild(H),H.select(),document.execCommand("copy"),document.body.removeChild(H),L.copiedTimer=setTimeout(function(){L.setState({copied:!1})},5500),L.setState({copied:!0},function(){typeof Y=="function"&&Y({src:Q,namespace:me,name:me[me.length-1]})})},L.getClippyIcon=function(){var H=L.props.theme;return L.state.copied?h.a.createElement("span",null,h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon"))),h.a.createElement("span",M(H,"copy-icon-copied"),"✔")):h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon")))},L.clipboardValue=function(H){switch(P(H)){case"function":case"regexp":return H.toString();default:return H}},L.state={copied:!1},L}return f(I,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var A=this.props,L=(A.src,A.theme),H=A.hidden,re=A.rowHovered,Y=M(L,"copy-to-clipboard").style,Q="inline";return H&&(Q="none"),h.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:re?"inline-block":"none"}},h.a.createElement("span",{style:u(u({},Y),{},{display:Q}),onClick:this.handleCopy},this.getClippyIcon()))}}]),I}(h.a.PureComponent),nr=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).getEditIcon=function(){var H=L.props,re=H.variable,Y=H.theme;return h.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(kt,Object.assign({className:"click-to-edit-icon"},M(Y,"editVarIcon"),{onClick:function(){L.prepopInput(re)}})))},L.prepopInput=function(H){if(L.props.onEdit!==!1){var re=function(Q){var me;switch(P(Q)){case"undefined":me="undefined";break;case"nan":me="NaN";break;case"string":me=Q;break;case"date":case"function":case"regexp":me=Q.toString();break;default:try{me=JSON.stringify(Q,null," ")}catch{me=""}}return me}(H.value),Y=he(re);L.setState({editMode:!0,editValue:re,parsedInput:{type:Y.type,value:Y.value}})}},L.getRemoveIcon=function(){var H=L.props,re=H.variable,Y=H.namespace,Q=H.theme,me=H.rjvId;return h.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(Q,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:me,data:{name:re.name,namespace:Y,existing_value:re.value,variable_removed:!0}})}})))},L.getValue=function(H,re){var Y=!re&&H.type,Q=S(L).props;switch(Y){case!1:return L.getEditInput();case"string":return h.a.createElement(Ae,Object.assign({value:H.value},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:H.value},Q));case"float":return h.a.createElement(q,Object.assign({value:H.value},Q));case"boolean":return h.a.createElement(B,Object.assign({value:H.value},Q));case"function":return h.a.createElement(ve,Object.assign({value:H.value},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:H.value},Q));case"regexp":return h.a.createElement(Ne,Object.assign({value:H.value},Q));default:return h.a.createElement("div",{className:"object-value"},JSON.stringify(H.value))}},L.getEditInput=function(){var H=L.props.theme,re=L.state.editValue;return h.a.createElement("div",null,h.a.createElement(le,Object.assign({type:"text",inputRef:function(Y){return Y&&Y.focus()},value:re,className:"variable-editor",onChange:function(Y){var Q=Y.target.value,me=he(Q);L.setState({editValue:Q,parsedInput:{type:me.type,value:me.value}})},onKeyDown:function(Y){switch(Y.key){case"Escape":L.setState({editMode:!1,editValue:""});break;case"Enter":(Y.ctrlKey||Y.metaKey)&&L.submitEdit(!0)}Y.stopPropagation()},placeholder:"update this value",minRows:2},M(H,"edit-input"))),h.a.createElement("div",M(H,"edit-icon-container"),h.a.createElement(nt,Object.assign({className:"edit-cancel"},M(H,"cancel-icon"),{onClick:function(){L.setState({editMode:!1,editValue:""})}})),h.a.createElement(Pt,Object.assign({className:"edit-check string-value"},M(H,"check-icon"),{onClick:function(){L.submitEdit()}})),h.a.createElement("div",null,L.showDetected())))},L.submitEdit=function(H){var re=L.props,Y=re.variable,Q=re.namespace,me=re.rjvId,$e=L.state,Ze=$e.editValue,tt=$e.parsedInput,St=Ze;H&&tt.type&&(St=tt.value),L.setState({editMode:!1}),ye.dispatch({name:"VARIABLE_UPDATED",rjvId:me,data:{name:Y.name,namespace:Q,existing_value:Y.value,new_value:St,variable_removed:!1}})},L.showDetected=function(){var H=L.props,re=H.theme,Y=(H.variable,H.namespace,H.rjvId,L.state.parsedInput),Q=(Y.type,Y.value,L.getDetectedInput());if(Q)return h.a.createElement("div",null,h.a.createElement("div",M(re,"detected-row"),Q,h.a.createElement(Pt,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},M(re,"check-icon").style),onClick:function(){L.submitEdit(!0)}})))},L.getDetectedInput=function(){var H=L.state.parsedInput,re=H.type,Y=H.value,Q=S(L).props,me=Q.theme;if(re!==!1)switch(re.toLowerCase()){case"object":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"{"),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"}"));case"array":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"["),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"]"));case"string":return h.a.createElement(Ae,Object.assign({value:Y},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:Y},Q));case"float":return h.a.createElement(q,Object.assign({value:Y},Q));case"boolean":return h.a.createElement(B,Object.assign({value:Y},Q));case"function":return h.a.createElement(ve,Object.assign({value:Y},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:new Date(Y)},Q))}},L.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.variable,re=L.singleIndent,Y=L.type,Q=L.theme,me=L.namespace,$e=L.indentWidth,Ze=L.enableClipboard,tt=L.onEdit,St=L.onDelete,st=L.onSelect,xt=L.displayArrayKey,jt=L.quotesOnKeys,lt=this.state.editMode;return h.a.createElement("div",Object.assign({},M(Q,"objectKeyVal",{paddingLeft:$e*re}),{onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))},className:"variable-row",key:H.name}),Y=="array"?xt?h.a.createElement("span",Object.assign({},M(Q,"array-key"),{key:H.name+"_"+me}),H.name,h.a.createElement("div",M(Q,"colon"),":")):null:h.a.createElement("span",null,h.a.createElement("span",Object.assign({},M(Q,"object-name"),{className:"object-key",key:H.name+"_"+me}),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",{style:{display:"inline-block"}},H.name),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(Q,"colon"),":")),h.a.createElement("div",Object.assign({className:"variable-value",onClick:st===!1&&tt===!1?null:function(Dt){var kr=pe(me);(Dt.ctrlKey||Dt.metaKey)&&tt!==!1?A.prepopInput(H):st!==!1&&(kr.shift(),st(u(u({},H),{},{namespace:kr})))}},M(Q,"variableValue",{cursor:st===!1?"default":"pointer"})),this.getValue(H,lt)),Ze?h.a.createElement(It,{rowHovered:this.state.hovered,hidden:lt,src:H.value,clickCallback:Ze,theme:Q,namespace:[].concat(pe(me),[H.name])}):null,tt!==!1&<==0?this.getEditIcon():null,St!==!1&<==0?this.getRemoveIcon():null)}}]),I}(h.a.PureComponent),mn=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re0?Ze:null,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!1,key_name:null};P(tt)==="object"?ye.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:St,data:xt}):ye.dispatch({name:"VARIABLE_ADDED",rjvId:St,data:u(u({},xt),{},{new_value:[].concat(pe(tt),[null])})})}})))},A.getRemoveObject=function(Y){var Q=A.props,me=Q.theme,$e=(Q.hover,Q.namespace),Ze=Q.name,tt=Q.src,St=Q.rjvId;if($e.length!==1)return h.a.createElement("span",{className:"click-to-remove",style:{display:Y?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(me,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:St,data:{name:Ze,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!0}})}})))},A.render=function(){var Y=A.props,Q=Y.theme,me=Y.onDelete,$e=Y.onAdd,Ze=Y.enableClipboard,tt=Y.src,St=Y.namespace,st=Y.rowHovered;return h.a.createElement("div",Object.assign({},M(Q,"object-meta-data"),{className:"object-meta-data",onClick:function(xt){xt.stopPropagation()}}),A.getObjectSize(),Ze?h.a.createElement(It,{rowHovered:st,clickCallback:Ze,src:tt,theme:Q,namespace:St}):null,$e!==!1?A.getAddAttribute(st):null,me!==!1?A.getRemoveObject(st):null)},A}return I}(h.a.PureComponent);function qr(N){var D=N.parent_type,I=N.namespace,A=N.quotesOnKeys,L=N.theme,H=N.jsvRoot,re=N.name,Y=N.displayArrayKey,Q=N.name?N.name:"";return!H||re!==!1&&re!==null?D=="array"?Y?h.a.createElement("span",Object.assign({},M(L,"array-key"),{key:I}),h.a.createElement("span",{className:"array-key"},Q),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null):h.a.createElement("span",Object.assign({},M(L,"object-name"),{key:I}),h.a.createElement("span",{className:"object-key"},A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",null,Q),A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null)}function Nr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(Fe,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));case"square":return h.a.createElement(je,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));default:return h.a.createElement(Be,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}))}}function Tr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(_e,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h.a.createElement(Je,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));default:return h.a.createElement(Ye,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}))}}var Mn=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).toggleCollapsed=function(H){var re=[];for(var Y in L.state.expanded)re.push(L.state.expanded[Y]);re[H]=!re[H],L.setState({expanded:re})},L.state={expanded:[]},L}return f(I,[{key:"getExpandedIcon",value:function(A){var L=this.props,H=L.theme,re=L.iconStyle;return this.state.expanded[A]?h.a.createElement(Nr,{theme:H,iconStyle:re}):h.a.createElement(Tr,{theme:H,iconStyle:re})}},{key:"render",value:function(){var A=this,L=this.props,H=L.src,re=L.groupArraysAfterLength,Y=(L.depth,L.name),Q=L.theme,me=L.jsvRoot,$e=L.namespace,Ze=(L.parent_type,O(L,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tt=0,St=5*this.props.indentWidth;me||(tt=5*this.props.indentWidth);var st=re,xt=Math.ceil(H.length/st);return h.a.createElement("div",Object.assign({className:"object-key-val"},M(Q,me?"jsv-root":"objectKeyVal",{paddingLeft:tt})),h.a.createElement(qr,this.props),h.a.createElement("span",null,h.a.createElement(mn,Object.assign({size:H.length},this.props))),pe(Array(xt)).map(function(jt,lt){return h.a.createElement("div",Object.assign({key:lt,className:"object-key-val array-group"},M(Q,"objectKeyVal",{marginLeft:6,paddingLeft:St})),h.a.createElement("span",M(Q,"brace-row"),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container"),{onClick:function(Dt){A.toggleCollapsed(lt)}}),A.getExpandedIcon(lt)),A.state.expanded[lt]?h.a.createElement($r,Object.assign({key:Y+lt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:st,index_offset:lt*st,src:H.slice(lt*st,lt*st+st),namespace:$e,type:"array",parent_type:"array_group",theme:Q},Ze)):h.a.createElement("span",Object.assign({},M(Q,"brace"),{onClick:function(Dt){A.toggleCollapsed(lt)},className:"array-group-brace"}),"[",h.a.createElement("div",Object.assign({},M(Q,"array-group-meta-data"),{className:"array-group-meta-data"}),h.a.createElement("span",Object.assign({className:"object-size"},M(Q,"object-size")),lt*st," - ",lt*st+st>H.length?H.length:lt*st+st)),"]")))}))}}]),I}(h.a.PureComponent),Kr=function(N){v(I,N);var D=m(I);function I(A){var L;l(this,I),(L=D.call(this,A)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){we.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(re,Y,Q){return h.a.createElement("div",{className:"pushed-content object-container"},h.a.createElement("div",Object.assign({className:"object-content"},M(L.props.theme,"pushed-content")),L.renderObjectContents(Y,Q)))},L.getEllipsis=function(){return L.state.size===0?null:h.a.createElement("div",Object.assign({},M(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(re){var Y=L.props,Q=(Y.rjvId,Y.theme,L.state),me=Q.size,$e=Q.hovered;return h.a.createElement(mn,Object.assign({rowHovered:$e,size:me},L.props))},L.renderObjectContents=function(re,Y){var Q,me=L.props,$e=me.depth,Ze=me.parent_type,tt=me.index_offset,St=me.groupArraysAfterLength,st=me.namespace,xt=L.state.object_type,jt=[],lt=Object.keys(re||{});return L.props.sortKeys&&xt!=="array"&&(lt=lt.sort()),lt.forEach(function(Dt){if(Q=new Ko(Dt,re[Dt]),Ze==="array_group"&&tt&&(Q.name=parseInt(Q.name)+tt),re.hasOwnProperty(Dt))if(Q.type==="object")jt.push(h.a.createElement($r,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),parent_type:xt},Y)));else if(Q.type==="array"){var kr=$r;St&&Q.value.length>St&&(kr=Mn),jt.push(h.a.createElement(kr,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),type:"array",parent_type:xt},Y)))}else jt.push(h.a.createElement(nr,Object.assign({key:Q.name+"_"+st,variable:Q,singleIndent:5,namespace:st,type:L.props.type},Y)))}),jt};var H=I.getState(A);return L.state=u(u({},H),{},{prevProps:{}}),L}return f(I,[{key:"getBraceStart",value:function(A,L){var H=this,re=this.props,Y=re.src,Q=re.theme,me=re.iconStyle;if(re.parent_type==="array_group")return h.a.createElement("span",null,h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{"),L?this.getObjectMetaData(Y):null);var $e=L?Nr:Tr;return h.a.createElement("span",null,h.a.createElement("span",Object.assign({onClick:function(Ze){H.toggleCollapsed()}},M(Q,"brace-row")),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container")),h.a.createElement($e,{theme:Q,iconStyle:me})),h.a.createElement(qr,this.props),h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{")),L?this.getObjectMetaData(Y):null)}},{key:"render",value:function(){var A=this,L=this.props,H=L.depth,re=L.src,Y=(L.namespace,L.name,L.type,L.parent_type),Q=L.theme,me=L.jsvRoot,$e=L.iconStyle,Ze=O(L,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tt=this.state,St=tt.object_type,st=tt.expanded,xt={};return me||Y==="array_group"?Y==="array_group"&&(xt.borderLeft=0,xt.display="inline"):xt.paddingLeft=5*this.props.indentWidth,h.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))}},M(Q,me?"jsv-root":"objectKeyVal",xt)),this.getBraceStart(St,st),st?this.getObjectContent(H,re,u({theme:Q,iconStyle:$e},Ze)):this.getEllipsis(),h.a.createElement("span",{className:"brace-row"},h.a.createElement("span",{style:u(u({},M(Q,"brace").style),{},{paddingLeft:st?"3px":"0px"})},St==="array"?"]":"}"),st?null:this.getObjectMetaData(re)))}}],[{key:"getDerivedStateFromProps",value:function(A,L){var H=L.prevProps;return A.src!==H.src||A.collapsed!==H.collapsed||A.name!==H.name||A.namespace!==H.namespace||A.rjvId!==H.rjvId?u(u({},I.getState(A)),{},{prevProps:A}):null}}]),I}(h.a.PureComponent);Kr.getState=function(N){var D=Object.keys(N.src).length,I=(N.collapsed===!1||N.collapsed!==!0&&N.collapsed>N.depth)&&(!N.shouldCollapse||N.shouldCollapse({name:N.name,src:N.src,type:P(N.src),namespace:N.namespace})===!1)&&D!==0;return{expanded:we.get(N.rjvId,N.namespace,"expanded",I),object_type:N.type==="array"?"array":"object",parent_type:N.type==="array"?"array":"object",size:D,hovered:!1}};var Ko=function N(D,I){l(this,N),this.name=D,this.value=I,this.type=P(I)};w(Kr);var $r=Kr,ho=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reY.groupArraysAfterLength&&(me=Mn),h.a.createElement("div",{className:"pretty-json-container object-container"},h.a.createElement("div",{className:"object-content"},h.a.createElement(me,Object.assign({namespace:Q,depth:0,jsvRoot:!0},Y))))},A}return I}(h.a.PureComponent),X=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).closeModal=function(){ye.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:A.input?A.input:""},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.theme,re=L.rjvId,Y=L.isValid,Q=this.state.input,me=Y(Q);return h.a.createElement("div",Object.assign({className:"key-modal-request"},M(H,"key-modal-request"),{onClick:this.closeModal}),h.a.createElement("div",Object.assign({},M(H,"key-modal"),{onClick:function($e){$e.stopPropagation()}}),h.a.createElement("div",M(H,"key-modal-label"),"Key Name:"),h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("input",Object.assign({},M(H,"key-modal-input"),{className:"key-modal-input",ref:function($e){return $e&&$e.focus()},spellCheck:!1,value:Q,placeholder:"...",onChange:function($e){A.setState({input:$e.target.value})},onKeyPress:function($e){me&&$e.key==="Enter"?A.submit():$e.key==="Escape"&&A.closeModal()}})),me?h.a.createElement(Pt,Object.assign({},M(H,"key-modal-submit"),{className:"key-modal-submit",onClick:function($e){return A.submit()}})):null),h.a.createElement("span",M(H,"key-modal-cancel"),h.a.createElement(Ot,Object.assign({},M(H,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ye.dispatch({rjvId:re,name:"RESET"})}})))))}}]),I}(h.a.PureComponent),ee=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re{const e=_r();return R.jsx(fOe,{...e,children:R.jsx(EL,{})})},W$e=e=>R.jsx(nOe,{...e,children:R.jsx(EL,{})}),EL=e=>R.jsxs(gOe,{...e,children:[R.jsx(Nn,{disabled:!0,source:"id",helperText:"Job id. Must be unique, it's a copy of name."}),R.jsx(Nn,{source:"name",helperText:"Job name. Must be unique, acts as the id.",validate:Xl()}),R.jsx(Nn,{source:"displayname",helperText:"Display name of the job. If present, displayed instead of the name."}),R.jsx(Nn,{source:"timezone",helperText:"The timezone where the cron expression will be evaluated in."}),R.jsx(Nn,{source:"schedule",helperText:"Cron expression for the job. When to run the job.",validate:Xl()}),R.jsx(Nn,{source:"owner",helperText:"Arbitrary string indicating the owner of the job.",disabled:!0}),R.jsx(Nn,{source:"owner_email",helperText:"Email address to use for notifications."}),R.jsx(Nn,{source:"parent_job",helperText:"Job id of job that this job is dependent upon."}),R.jsx(rw,{source:"ephemeral",helperText:"Delete the job after the first successful execution."}),R.jsx(REe,{source:"expires_at",helperText:"The job will not be executed after this time."}),R.jsx(yN,{source:"concurrency",choices:[{id:"allow",name:"Allow"},{id:"forbid",name:"Forbid"}],helperText:"Concurrency policy for this job (allow, forbid)."}),R.jsx(Sh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Processor plugins to use for this job."}),R.jsx(Sh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Tags of the target servers to run this job against."}),R.jsx(Sh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Job metadata describes the job and allows filtering from the API."}),R.jsx(Nn,{source:"executor",helperText:"Executor plugin to be used in this job.",validate:Xl()}),R.jsx(Sh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!0,enableClipboard:!1,displayDataTypes:!1},helperText:"Configuration arguments for the specific executor.",validate:Xl()}),R.jsx(rw,{source:"disabled",helperText:"Is this job disabled?"}),R.jsx(NEe,{source:"retries",helperText:"Number of times to retry a job that failed an execution."})]});var WE={},H$e=it;Object.defineProperty(WE,"__esModule",{value:!0});var OL=WE.default=void 0,q$e=H$e(ct()),K$e=R;OL=WE.default=(0,q$e.default)((0,K$e.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const G$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}/toggle`,{method:"POST"}).then(()=>{r("Job toggled"),t()}).catch(i=>{r("Error on toggle job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Toggle",onClick:o,disabled:n,children:R.jsx(OL,{})})},Q$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}`,{method:"POST"}).then(()=>{r("Success running job"),t()}).catch(i=>{r("Error on running job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Run",onClick:o,disabled:n,children:R.jsx(Gy,{})})},X$e=e=>(e.record!==void 0&&e.source!==void 0&&e.record[e.source]==="0001-01-01T00:00:00Z"&&(e.record[e.source]=null),R.jsx(Ya,{...e}));var HE={},Y$e=it;Object.defineProperty(HE,"__esModule",{value:!0});var PL=HE.default=void 0,J$e=Y$e(ct()),Z$e=R;PL=HE.default=(0,J$e.default)((0,Z$e.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"}),"BatteryFull");const eke=({basePath:e,data:t,resource:r})=>R.jsxs(M5,{children:[R.jsx(Q$e,{}),R.jsx(G$e,{}),R.jsx(uE,{record:t})]}),tke=e=>e.record!==void 0&&e.record.finished_at===null?R.jsx(kn,{title:"Running",children:R.jsx(Hy,{})}):R.jsx(SN,{...e}),rke=({record:e})=>{const t=ur(),[r,n]=d.useState(!1),a=()=>{n(!0),fetch(`${fl}/jobs/${e.job_name}/executions/${e.id}`).then(o=>{if(o.ok)return t("Success loading full output"),o.json();throw o}).then(o=>{e.output_truncated=!1,e.output=o.output}).catch(o=>{t("Error on loading full output",{type:"warning"})}).finally(()=>{n(!1)})};return R.jsx(Hr,{label:"Load full output",onClick:a,disabled:r,children:R.jsx(PL,{})})},nke=({id:e,record:t,resource:r})=>R.jsxs("div",{className:"execution-output",children:[t.output_truncated?R.jsx("div",{children:R.jsx(rke,{record:t})}):"",t.output||"Nothing to show"]}),ake=e=>R.jsx(TOe,{actions:R.jsx(eke,{...e}),...e,children:R.jsxs($N,{children:[R.jsxs(Pw,{label:"summary",children:[R.jsx(fr,{source:"name"}),R.jsx(fr,{source:"timezone"}),R.jsx(fr,{source:"schedule"}),R.jsx(Ya,{label:"Last success",source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(fr,{source:"status"}),R.jsx(fr,{source:"concurrency"}),R.jsx(SN,{source:"ephemeral"}),R.jsx(Ya,{source:"expires_at",showTime:!0}),R.jsx(Ya,{source:"next",sortable:!1,showTime:!0}),R.jsx(wh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1}}),R.jsx(fr,{source:"executor"}),R.jsx(wh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}})]}),R.jsx(Pw,{label:"executions",path:"executions",children:R.jsx(qOe,{reference:"executions",target:"jobs",label:"Executions",children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(nke,{...e}),children:[R.jsx(fr,{source:"id"}),R.jsx(fr,{source:"group",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(Ya,{source:"started_at",showTime:!0}),R.jsx(X$e,{source:"finished_at",showTime:!0}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(tke,{source:"success",sortable:!1}),R.jsx(qd,{source:"attempt"})]})})})]})}),oke={list:z$e,edit:U$e,create:W$e,show:ake,icon:Hy},ike=({id:e,record:t,resource:r})=>R.jsx("div",{className:"execution-output",children:t.output||"Empty output"}),ske=e=>R.jsx(TE,{...e,pagination:!1,children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(ike,{}),children:[R.jsx(fr,{source:"id",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(Ya,{source:"started_at",sortable:!1,showTime:!0})]})});var qE={},lke=it;Object.defineProperty(qE,"__esModule",{value:!0});var RL=qE.default=void 0,uke=lke(ct()),cke=R;RL=qE.default=(0,uke.default)((0,cke.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book");class dke extends d.Component{constructor(t){super(t),this.state={date:new Date}}componentDidMount(){this.timer=setInterval(()=>this.setState({date:new Date}),1e3)}componentWillUnmount(){clearInterval(this.timer)}render(){return R.jsx("div",{className:"clock",children:R.jsx("div",{children:this.state.date.toLocaleTimeString()})})}}const fke=""+new URL("dkron-logo-2b1c801f.png",import.meta.url).href,j0="CustomAppBar",_u={title:`${j0}-title`,spacer:`${j0}-spacer`,logo:`${j0}-logo`},pke=ne(h5)({[`& .${_u.title}`]:{flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[`& .${_u.spacer}`]:{flex:1},[`& .${_u.logo}`]:{maxWidth:"125px"}});d.forwardRef((e,t)=>R.jsx(xp,{ref:t,to:"/settings",primaryText:"Settings",leftIcon:R.jsx(eE,{}),onClick:e.onClick}));const hke=e=>R.jsx(UC,{...e,children:R.jsx(xp,{to:"https://dkron.io/docs/basics/getting-started",primaryText:"Docs",leftIcon:R.jsx(RL,{})})}),vke=e=>R.jsxs(pke,{...e,elevation:1,userMenu:R.jsx(hke,{}),children:[R.jsx(_t,{variant:"h6",color:"inherit",className:_u.title,id:"react-admin-title"}),R.jsx("div",{children:R.jsx(VOe,{to:"/",color:"inherit",underline:"none",children:R.jsx("img",{src:fke,alt:"logo",className:_u.logo})})}),R.jsx("span",{className:_u.spacer}),R.jsx(dke,{})]}),gke=e=>R.jsx(O5,{...e,size:200}),mke=e=>R.jsx(j5,{...e,appBar:vke,sidebar:gke});const yke={login:({token:e})=>(localStorage.setItem("token",e),Promise.resolve()),logout:()=>(localStorage.removeItem("token"),Promise.resolve()),checkAuth:()=>localStorage.getItem("token")?Promise.resolve():Promise.reject(),checkError:e=>{const t=e.status;return t===401||t===403?(localStorage.removeItem("token"),Promise.reject()):Promise.resolve()},getIdentity:()=>Promise.resolve(),getPermissions:()=>Promise.resolve()},TL=({record:e})=>e===void 0?null:R.jsx("ul",{children:Object.keys(e.Tags).map(t=>R.jsx(Cfe,{label:t+": "+e.Tags[t]}))});TL.defaultProps={addLabel:!0};var KE={},bke=it;Object.defineProperty(KE,"__esModule",{value:!0});var $L=KE.default=void 0,xke=bke(ct()),wke=R;$L=KE.default=(0,xke.default)((0,wke.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");const $p=({icon:e,title:t,subtitle:r,to:n,children:a})=>R.jsxs(oo,{sx:{minHeight:52,display:"flex",flexDirection:"column",flex:"1","& a":{textDecoration:"none",color:"inherit"}},children:[R.jsx(Fo,{to:n,children:R.jsxs(Qh,{sx:{position:"relative",overflow:"hidden",padding:"16px",display:"flex",justifyContent:"space-between",alignItems:"center","& .icon":{color:"secondary.main"},"&:before":{position:"absolute",top:"50%",left:0,display:"block",content:"''",height:"200%",aspectRatio:"1",transform:"translate(-30%, -60%)",borderRadius:"50%",backgroundColor:"secondary.main",opacity:.15}},children:[R.jsx(Qh,{width:"3em",className:"icon",children:d.createElement(e,{fontSize:"large"})}),R.jsxs(Qh,{textAlign:"right",children:[R.jsx(_t,{color:"textSecondary",children:t}),R.jsx(_t,{variant:"h5",component:"h2",children:r||" "})]})]})}),a&&R.jsx(mg,{}),a]}),Ske=({value:e})=>R.jsx($p,{to:"/jobs",icon:$L,title:"Leader",subtitle:e});var GE={},_ke=it;Object.defineProperty(GE,"__esModule",{value:!0});var kL=GE.default=void 0,Cke=_ke(ct()),Eke=R;kL=GE.default=(0,Cke.default)((0,Eke.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown");const Oke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"failed"}',icon:kL,title:"Failed Jobs",subtitle:e});var QE={},Pke=it;Object.defineProperty(QE,"__esModule",{value:!0});var jL=QE.default=void 0,Rke=Pke(ct()),Tke=R;jL=QE.default=(0,Rke.default)((0,Tke.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp");const $ke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"success"}',icon:jL,title:"Successful Jobs",subtitle:e});var XE={},kke=it;Object.defineProperty(XE,"__esModule",{value:!0});var IL=XE.default=void 0,jke=kke(ct()),Ike=R;IL=XE.default=(0,jke.default)((0,Ike.jsx)("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"}),"NewReleases");const Ake=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"untriggered"}',icon:IL,title:"Untriggered Jobs",subtitle:e}),Mke=({value:e})=>R.jsx($p,{to:"/jobs",icon:Hy,title:"Total Jobs",subtitle:e});let Fke={basePath:"/members",count:10,hasCreate:!1,hasEdit:!1,hasList:!0,hasShow:!1,location:{pathname:"/",search:"",hash:"",state:void 0},match:{path:"/",url:"/",isExact:!0,params:{}},options:{},permissions:null,resource:"members"};const I0={flex:{display:"flex"},flexColumn:{display:"flex",flexDirection:"column"},leftCol:{flex:1,marginRight:"0.5em"},rightCol:{flex:1,marginLeft:"0.5em"},singleCol:{marginTop:"1em",marginBottom:"1em"}},_h=()=>R.jsx("span",{style:{width:"1em"}}),Nke=()=>R.jsxs("div",{children:[R.jsxs(oo,{children:[R.jsx(FT,{title:"Welcome"}),R.jsx(Di,{children:R.jsx("div",{style:I0.flex,children:R.jsx("div",{style:I0.leftCol,children:R.jsxs("div",{style:I0.flex,children:[R.jsx(Ske,{value:window.DKRON_LEADER||"devel"}),R.jsx(_h,{}),R.jsx(Mke,{value:window.DKRON_TOTAL_JOBS||"0"}),R.jsx(_h,{}),R.jsx($ke,{value:window.DKRON_SUCCESSFUL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Oke,{value:window.DKRON_FAILED_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Ake,{value:window.DKRON_UNTRIGGERED_JOBS||"0"})]})})})})]}),R.jsxs(oo,{children:[R.jsx(FT,{title:"Nodes"}),R.jsx(Di,{children:R.jsx(TE,{...Fke,children:R.jsxs(Cp,{isRowSelectable:e=>!1,children:[R.jsx(fr,{source:"Name",sortable:!1}),R.jsx(fr,{source:"Addr",sortable:!1}),R.jsx(fr,{source:"Port",sortable:!1}),R.jsx(fr,{label:"Status",source:"statusText",sortable:!1}),R.jsx(TL,{source:"Tags",sortable:!1})]})})})]})]}),Lke=SL({label:{width:"10em",display:"inline-block"},button:{margin:"1em"}}),Dke=()=>(Lke(),R.jsxs(oo,{children:[R.jsx(dl,{title:"Settings"}),R.jsx(Di,{})]})),Bke=e=>{const[t,r]=d.useState(""),n=X3(),a=ur(),o=R.jsx(By,{}),{className:i}=e,[s,u]=Bn(!1),l=c=>{u(!0),n({token:t}).catch(()=>{u(!1),a("Invalid token")})};return R.jsx(zke,{children:R.jsxs(oo,{className:Cu.card,children:[R.jsx("div",{className:Cu.avatar,children:R.jsx(vg,{className:Cu.icon,children:o})}),R.jsx(Vke,{onSubmit:l,mode:"onChange",noValidate:!0,className:i,children:R.jsxs(Di,{className:Eu.content,children:[R.jsx(Nn,{name:"token",type:"text",value:t,onChange:c=>r(c.target.value)}),R.jsx(hn,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,className:Eu.button,children:s?R.jsx(kc,{className:Eu.icon,size:19,thickness:3}):"Sign in"})]})})]})})},hv="RaLogin",Cu={card:`${hv}-card`,avatar:`${hv}-avatar`,icon:`${hv}-icon`},zke=ne("div",{name:hv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)",[`& .${Cu.card}`]:{minWidth:300,marginTop:"6em"},[`& .${Cu.avatar}`]:{margin:"1em",display:"flex",justifyContent:"center"},[`& .${Cu.icon}`]:{backgroundColor:e.palette.secondary[500]}})),vv="RaLoginForm",Eu={content:`${vv}-content`,button:`${vv}-button`,icon:`${vv}-icon`},Vke=ne(M_,{name:vv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Eu.content}`]:{width:300},[`& .${Eu.button}`]:{marginTop:e.spacing(2)},[`& .${Eu.icon}`]:{margin:e.spacing(.3)}}));sRe();let AL=()=>Promise.resolve();window.DKRON_ACL_ENABLED&&(AL=yke);const Uke=()=>R.jsxs(tRe,{dashboard:Nke,loginPage:Bke,authProvider:AL,dataProvider:yRe,layout:mke,children:[R.jsx(Yl,{name:"jobs",...oke}),R.jsx(Yl,{name:"busy",options:{label:"Busy"},list:ske,icon:nL}),R.jsx(Yl,{name:"executions"}),R.jsx(Yl,{name:"members"}),R.jsx(P3,{children:R.jsx(zr,{path:"/settings",element:R.jsx(Dke,{})})})]});A0.createRoot(document.getElementById("root")).render(R.jsx(ke.StrictMode,{children:R.jsx(Uke,{})})); +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Te=o(46),ye=new(o(47)).Dispatcher,be=new(function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reL&&(Y.style.cursor="pointer",this.state.collapsed&&(re=h.a.createElement("span",null,re.substring(0,L),h.a.createElement("span",M(H,"ellipsis")," ...")))),h.a.createElement("div",M(H,"string"),h.a.createElement(W,Object.assign({type_name:"string"},A)),h.a.createElement("span",Object.assign({className:"string-value"},Y,{onClick:this.toggleCollapsed}),'"',re,'"'))}}]),I}(h.a.PureComponent),He=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){return h.a.createElement("div",M(this.props.theme,"undefined"),"undefined")}}]),I}(h.a.PureComponent);function ht(){return(ht=Object.assign||function(N){for(var D=1;D=0||(vo[kr]=lt[kr]);return vo}(N,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),$e,Ze=me.value!==void 0,tt=Object(b.useRef)(null),St=te(tt,D),st=Object(b.useRef)(0),xt=Object(b.useRef)(),jt=function(){var lt=tt.current,Dt=I&&xt.current?xt.current:function(ot){var Vt=window.getComputedStyle(ot);if(Vt===null)return null;var mr,vt=(mr=Vt,ae.reduce(function(Go,Qo){return Go[Qo]=mr[Qo],Go},{})),Gr=vt.boxSizing;return Gr===""?null:(Z&&Gr==="border-box"&&(vt.width=parseFloat(vt.width)+parseFloat(vt.borderRightWidth)+parseFloat(vt.borderLeftWidth)+parseFloat(vt.paddingRight)+parseFloat(vt.paddingLeft)+"px"),{sizingStyle:vt,paddingSize:parseFloat(vt.paddingBottom)+parseFloat(vt.paddingTop),borderSize:parseFloat(vt.borderBottomWidth)+parseFloat(vt.borderTopWidth)})}(lt);if(Dt){xt.current=Dt;var kr=function(ot,Vt,mr,vt){mr===void 0&&(mr=1),vt===void 0&&(vt=1/0),fe||((fe=document.createElement("textarea")).setAttribute("tab-index","-1"),fe.setAttribute("aria-hidden","true"),de(fe)),fe.parentNode===null&&document.body.appendChild(fe);var Gr=ot.paddingSize,Go=ot.borderSize,Qo=ot.sizingStyle,YE=Qo.boxSizing;Object.keys(Qo).forEach(function(Jy){var pl=Jy;fe.style[pl]=Qo[pl]}),de(fe),fe.value=Vt;var kp=function(Jy,pl){var JE=Jy.scrollHeight;return pl.sizingStyle.boxSizing==="border-box"?JE+pl.borderSize:JE-pl.paddingSize}(fe,ot);fe.value="x";var Qy=fe.scrollHeight-Gr,Xy=Qy*mr;YE==="border-box"&&(Xy=Xy+Gr+Go),kp=Math.max(Xy,kp);var Yy=Qy*vt;return YE==="border-box"&&(Yy=Yy+Gr+Go),[kp=Math.min(Yy,kp),Qy]}(Dt,lt.value||lt.placeholder||"x",L,A),yn=kr[0],vo=kr[1];st.current!==yn&&(st.current=yn,lt.style.setProperty("height",yn+"px","important"),Q(yn,{rowHeight:vo}))}};return Object(b.useLayoutEffect)(jt),$e=V(jt),Object(b.useLayoutEffect)(function(){var lt=function(Dt){$e.current(Dt)};return window.addEventListener("resize",lt),function(){window.removeEventListener("resize",lt)}},[]),Object(b.createElement)("textarea",ht({},me,{onChange:function(lt){Ze||jt(),re(lt)},ref:St}))},le=Object(b.forwardRef)(G);function he(N){N=N.trim();try{if((N=JSON.stringify(JSON.parse(N)))[0]==="[")return Re("array",JSON.parse(N));if(N[0]==="{")return Re("object",JSON.parse(N));if(N.match(/\-?\d+\.\d+/)&&N.match(/\-?\d+\.\d+/)[0]===N)return Re("float",parseFloat(N));if(N.match(/\-?\d+e-\d+/)&&N.match(/\-?\d+e-\d+/)[0]===N)return Re("float",Number(N));if(N.match(/\-?\d+/)&&N.match(/\-?\d+/)[0]===N)return Re("integer",parseInt(N));if(N.match(/\-?\d+e\+\d+/)&&N.match(/\-?\d+e\+\d+/)[0]===N)return Re("integer",Number(N))}catch{}switch(N=N.toLowerCase()){case"undefined":return Re("undefined",void 0);case"nan":return Re("nan",NaN);case"null":return Re("null",null);case"true":return Re("boolean",!0);case"false":return Re("boolean",!1);default:if(N=Date.parse(N))return Re("date",new Date(N))}return Re(!1,null)}function Re(N,D){return{type:N,value:D}}var Be=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),I}(h.a.PureComponent),Ye=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),I}(h.a.PureComponent),je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),Je=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]),re=at(L).style;return h.a.createElement("span",H,h.a.createElement("svg",{fill:re.color,width:re.height,height:re.width,style:re,viewBox:"0 0 1792 1792"},h.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),I}(h.a.PureComponent),_e=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),I}(h.a.PureComponent),Fe=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",{style:u(u({},at(L).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},h.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),I}(h.a.PureComponent),Ge=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),I}(h.a.PureComponent),nt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),mt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent),Ot=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),I}(h.a.PureComponent),kt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),I}(h.a.PureComponent),Pt=function(N){v(I,N);var D=m(I);function I(){return l(this,I),D.apply(this,arguments)}return f(I,[{key:"render",value:function(){var A=this.props,L=A.style,H=O(A,["style"]);return h.a.createElement("span",H,h.a.createElement("svg",Object.assign({},at(L),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),h.a.createElement("g",null,h.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),I}(h.a.PureComponent);function at(N){return N||(N={}),{style:u(u({verticalAlign:"middle"},N),{},{color:N.color?N.color:"#000000",height:"1em",width:"1em"})}}var It=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).copiedTimer=null,L.handleCopy=function(){var H=document.createElement("textarea"),re=L.props,Y=re.clickCallback,Q=re.src,me=re.namespace;H.innerHTML=JSON.stringify(L.clipboardValue(Q),null," "),document.body.appendChild(H),H.select(),document.execCommand("copy"),document.body.removeChild(H),L.copiedTimer=setTimeout(function(){L.setState({copied:!1})},5500),L.setState({copied:!0},function(){typeof Y=="function"&&Y({src:Q,namespace:me,name:me[me.length-1]})})},L.getClippyIcon=function(){var H=L.props.theme;return L.state.copied?h.a.createElement("span",null,h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon"))),h.a.createElement("span",M(H,"copy-icon-copied"),"✔")):h.a.createElement(Ge,Object.assign({className:"copy-icon"},M(H,"copy-icon")))},L.clipboardValue=function(H){switch(P(H)){case"function":case"regexp":return H.toString();default:return H}},L.state={copied:!1},L}return f(I,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var A=this.props,L=(A.src,A.theme),H=A.hidden,re=A.rowHovered,Y=M(L,"copy-to-clipboard").style,Q="inline";return H&&(Q="none"),h.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:re?"inline-block":"none"}},h.a.createElement("span",{style:u(u({},Y),{},{display:Q}),onClick:this.handleCopy},this.getClippyIcon()))}}]),I}(h.a.PureComponent),nr=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).getEditIcon=function(){var H=L.props,re=H.variable,Y=H.theme;return h.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(kt,Object.assign({className:"click-to-edit-icon"},M(Y,"editVarIcon"),{onClick:function(){L.prepopInput(re)}})))},L.prepopInput=function(H){if(L.props.onEdit!==!1){var re=function(Q){var me;switch(P(Q)){case"undefined":me="undefined";break;case"nan":me="NaN";break;case"string":me=Q;break;case"date":case"function":case"regexp":me=Q.toString();break;default:try{me=JSON.stringify(Q,null," ")}catch{me=""}}return me}(H.value),Y=he(re);L.setState({editMode:!0,editValue:re,parsedInput:{type:Y.type,value:Y.value}})}},L.getRemoveIcon=function(){var H=L.props,re=H.variable,Y=H.namespace,Q=H.theme,me=H.rjvId;return h.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:L.state.hovered?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(Q,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:me,data:{name:re.name,namespace:Y,existing_value:re.value,variable_removed:!0}})}})))},L.getValue=function(H,re){var Y=!re&&H.type,Q=S(L).props;switch(Y){case!1:return L.getEditInput();case"string":return h.a.createElement(Ae,Object.assign({value:H.value},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:H.value},Q));case"float":return h.a.createElement(q,Object.assign({value:H.value},Q));case"boolean":return h.a.createElement(B,Object.assign({value:H.value},Q));case"function":return h.a.createElement(ve,Object.assign({value:H.value},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:H.value},Q));case"regexp":return h.a.createElement(Ne,Object.assign({value:H.value},Q));default:return h.a.createElement("div",{className:"object-value"},JSON.stringify(H.value))}},L.getEditInput=function(){var H=L.props.theme,re=L.state.editValue;return h.a.createElement("div",null,h.a.createElement(le,Object.assign({type:"text",inputRef:function(Y){return Y&&Y.focus()},value:re,className:"variable-editor",onChange:function(Y){var Q=Y.target.value,me=he(Q);L.setState({editValue:Q,parsedInput:{type:me.type,value:me.value}})},onKeyDown:function(Y){switch(Y.key){case"Escape":L.setState({editMode:!1,editValue:""});break;case"Enter":(Y.ctrlKey||Y.metaKey)&&L.submitEdit(!0)}Y.stopPropagation()},placeholder:"update this value",minRows:2},M(H,"edit-input"))),h.a.createElement("div",M(H,"edit-icon-container"),h.a.createElement(nt,Object.assign({className:"edit-cancel"},M(H,"cancel-icon"),{onClick:function(){L.setState({editMode:!1,editValue:""})}})),h.a.createElement(Pt,Object.assign({className:"edit-check string-value"},M(H,"check-icon"),{onClick:function(){L.submitEdit()}})),h.a.createElement("div",null,L.showDetected())))},L.submitEdit=function(H){var re=L.props,Y=re.variable,Q=re.namespace,me=re.rjvId,$e=L.state,Ze=$e.editValue,tt=$e.parsedInput,St=Ze;H&&tt.type&&(St=tt.value),L.setState({editMode:!1}),ye.dispatch({name:"VARIABLE_UPDATED",rjvId:me,data:{name:Y.name,namespace:Q,existing_value:Y.value,new_value:St,variable_removed:!1}})},L.showDetected=function(){var H=L.props,re=H.theme,Y=(H.variable,H.namespace,H.rjvId,L.state.parsedInput),Q=(Y.type,Y.value,L.getDetectedInput());if(Q)return h.a.createElement("div",null,h.a.createElement("div",M(re,"detected-row"),Q,h.a.createElement(Pt,{className:"edit-check detected",style:u({verticalAlign:"top",paddingLeft:"3px"},M(re,"check-icon").style),onClick:function(){L.submitEdit(!0)}})))},L.getDetectedInput=function(){var H=L.state.parsedInput,re=H.type,Y=H.value,Q=S(L).props,me=Q.theme;if(re!==!1)switch(re.toLowerCase()){case"object":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"{"),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"}"));case"array":return h.a.createElement("span",null,h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"["),h.a.createElement("span",{style:u(u({},M(me,"ellipsis").style),{},{cursor:"default"})},"..."),h.a.createElement("span",{style:u(u({},M(me,"brace").style),{},{cursor:"default"})},"]"));case"string":return h.a.createElement(Ae,Object.assign({value:Y},Q));case"integer":return h.a.createElement(Qe,Object.assign({value:Y},Q));case"float":return h.a.createElement(q,Object.assign({value:Y},Q));case"boolean":return h.a.createElement(B,Object.assign({value:Y},Q));case"function":return h.a.createElement(ve,Object.assign({value:Y},Q));case"null":return h.a.createElement(Me,Q);case"nan":return h.a.createElement(De,Q);case"undefined":return h.a.createElement(He,Q);case"date":return h.a.createElement(U,Object.assign({value:new Date(Y)},Q))}},L.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.variable,re=L.singleIndent,Y=L.type,Q=L.theme,me=L.namespace,$e=L.indentWidth,Ze=L.enableClipboard,tt=L.onEdit,St=L.onDelete,st=L.onSelect,xt=L.displayArrayKey,jt=L.quotesOnKeys,lt=this.state.editMode;return h.a.createElement("div",Object.assign({},M(Q,"objectKeyVal",{paddingLeft:$e*re}),{onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))},className:"variable-row",key:H.name}),Y=="array"?xt?h.a.createElement("span",Object.assign({},M(Q,"array-key"),{key:H.name+"_"+me}),H.name,h.a.createElement("div",M(Q,"colon"),":")):null:h.a.createElement("span",null,h.a.createElement("span",Object.assign({},M(Q,"object-name"),{className:"object-key",key:H.name+"_"+me}),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",{style:{display:"inline-block"}},H.name),!!jt&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(Q,"colon"),":")),h.a.createElement("div",Object.assign({className:"variable-value",onClick:st===!1&&tt===!1?null:function(Dt){var kr=pe(me);(Dt.ctrlKey||Dt.metaKey)&&tt!==!1?A.prepopInput(H):st!==!1&&(kr.shift(),st(u(u({},H),{},{namespace:kr})))}},M(Q,"variableValue",{cursor:st===!1?"default":"pointer"})),this.getValue(H,lt)),Ze?h.a.createElement(It,{rowHovered:this.state.hovered,hidden:lt,src:H.value,clickCallback:Ze,theme:Q,namespace:[].concat(pe(me),[H.name])}):null,tt!==!1&<==0?this.getEditIcon():null,St!==!1&<==0?this.getRemoveIcon():null)}}]),I}(h.a.PureComponent),mn=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re0?Ze:null,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!1,key_name:null};P(tt)==="object"?ye.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:St,data:xt}):ye.dispatch({name:"VARIABLE_ADDED",rjvId:St,data:u(u({},xt),{},{new_value:[].concat(pe(tt),[null])})})}})))},A.getRemoveObject=function(Y){var Q=A.props,me=Q.theme,$e=(Q.hover,Q.namespace),Ze=Q.name,tt=Q.src,St=Q.rjvId;if($e.length!==1)return h.a.createElement("span",{className:"click-to-remove",style:{display:Y?"inline-block":"none"}},h.a.createElement(nt,Object.assign({className:"click-to-remove-icon"},M(me,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:St,data:{name:Ze,namespace:$e.splice(0,$e.length-1),existing_value:tt,variable_removed:!0}})}})))},A.render=function(){var Y=A.props,Q=Y.theme,me=Y.onDelete,$e=Y.onAdd,Ze=Y.enableClipboard,tt=Y.src,St=Y.namespace,st=Y.rowHovered;return h.a.createElement("div",Object.assign({},M(Q,"object-meta-data"),{className:"object-meta-data",onClick:function(xt){xt.stopPropagation()}}),A.getObjectSize(),Ze?h.a.createElement(It,{rowHovered:st,clickCallback:Ze,src:tt,theme:Q,namespace:St}):null,$e!==!1?A.getAddAttribute(st):null,me!==!1?A.getRemoveObject(st):null)},A}return I}(h.a.PureComponent);function qr(N){var D=N.parent_type,I=N.namespace,A=N.quotesOnKeys,L=N.theme,H=N.jsvRoot,re=N.name,Y=N.displayArrayKey,Q=N.name?N.name:"";return!H||re!==!1&&re!==null?D=="array"?Y?h.a.createElement("span",Object.assign({},M(L,"array-key"),{key:I}),h.a.createElement("span",{className:"array-key"},Q),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null):h.a.createElement("span",Object.assign({},M(L,"object-name"),{key:I}),h.a.createElement("span",{className:"object-key"},A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"'),h.a.createElement("span",null,Q),A&&h.a.createElement("span",{style:{verticalAlign:"top"}},'"')),h.a.createElement("span",M(L,"colon"),":")):h.a.createElement("span",null)}function Nr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(Fe,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));case"square":return h.a.createElement(je,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}));default:return h.a.createElement(Be,Object.assign({},M(D,"expanded-icon"),{className:"expanded-icon"}))}}function Tr(N){var D=N.theme;switch(N.iconStyle){case"triangle":return h.a.createElement(_e,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h.a.createElement(Je,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}));default:return h.a.createElement(Ye,Object.assign({},M(D,"collapsed-icon"),{className:"collapsed-icon"}))}}var Mn=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).toggleCollapsed=function(H){var re=[];for(var Y in L.state.expanded)re.push(L.state.expanded[Y]);re[H]=!re[H],L.setState({expanded:re})},L.state={expanded:[]},L}return f(I,[{key:"getExpandedIcon",value:function(A){var L=this.props,H=L.theme,re=L.iconStyle;return this.state.expanded[A]?h.a.createElement(Nr,{theme:H,iconStyle:re}):h.a.createElement(Tr,{theme:H,iconStyle:re})}},{key:"render",value:function(){var A=this,L=this.props,H=L.src,re=L.groupArraysAfterLength,Y=(L.depth,L.name),Q=L.theme,me=L.jsvRoot,$e=L.namespace,Ze=(L.parent_type,O(L,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),tt=0,St=5*this.props.indentWidth;me||(tt=5*this.props.indentWidth);var st=re,xt=Math.ceil(H.length/st);return h.a.createElement("div",Object.assign({className:"object-key-val"},M(Q,me?"jsv-root":"objectKeyVal",{paddingLeft:tt})),h.a.createElement(qr,this.props),h.a.createElement("span",null,h.a.createElement(mn,Object.assign({size:H.length},this.props))),pe(Array(xt)).map(function(jt,lt){return h.a.createElement("div",Object.assign({key:lt,className:"object-key-val array-group"},M(Q,"objectKeyVal",{marginLeft:6,paddingLeft:St})),h.a.createElement("span",M(Q,"brace-row"),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container"),{onClick:function(Dt){A.toggleCollapsed(lt)}}),A.getExpandedIcon(lt)),A.state.expanded[lt]?h.a.createElement($r,Object.assign({key:Y+lt,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:st,index_offset:lt*st,src:H.slice(lt*st,lt*st+st),namespace:$e,type:"array",parent_type:"array_group",theme:Q},Ze)):h.a.createElement("span",Object.assign({},M(Q,"brace"),{onClick:function(Dt){A.toggleCollapsed(lt)},className:"array-group-brace"}),"[",h.a.createElement("div",Object.assign({},M(Q,"array-group-meta-data"),{className:"array-group-meta-data"}),h.a.createElement("span",Object.assign({className:"object-size"},M(Q,"object-size")),lt*st," - ",lt*st+st>H.length?H.length:lt*st+st)),"]")))}))}}]),I}(h.a.PureComponent),Kr=function(N){v(I,N);var D=m(I);function I(A){var L;l(this,I),(L=D.call(this,A)).toggleCollapsed=function(){L.setState({expanded:!L.state.expanded},function(){we.set(L.props.rjvId,L.props.namespace,"expanded",L.state.expanded)})},L.getObjectContent=function(re,Y,Q){return h.a.createElement("div",{className:"pushed-content object-container"},h.a.createElement("div",Object.assign({className:"object-content"},M(L.props.theme,"pushed-content")),L.renderObjectContents(Y,Q)))},L.getEllipsis=function(){return L.state.size===0?null:h.a.createElement("div",Object.assign({},M(L.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:L.toggleCollapsed}),"...")},L.getObjectMetaData=function(re){var Y=L.props,Q=(Y.rjvId,Y.theme,L.state),me=Q.size,$e=Q.hovered;return h.a.createElement(mn,Object.assign({rowHovered:$e,size:me},L.props))},L.renderObjectContents=function(re,Y){var Q,me=L.props,$e=me.depth,Ze=me.parent_type,tt=me.index_offset,St=me.groupArraysAfterLength,st=me.namespace,xt=L.state.object_type,jt=[],lt=Object.keys(re||{});return L.props.sortKeys&&xt!=="array"&&(lt=lt.sort()),lt.forEach(function(Dt){if(Q=new Ko(Dt,re[Dt]),Ze==="array_group"&&tt&&(Q.name=parseInt(Q.name)+tt),re.hasOwnProperty(Dt))if(Q.type==="object")jt.push(h.a.createElement($r,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),parent_type:xt},Y)));else if(Q.type==="array"){var kr=$r;St&&Q.value.length>St&&(kr=Mn),jt.push(h.a.createElement(kr,Object.assign({key:Q.name,depth:$e+1,name:Q.name,src:Q.value,namespace:st.concat(Q.name),type:"array",parent_type:xt},Y)))}else jt.push(h.a.createElement(nr,Object.assign({key:Q.name+"_"+st,variable:Q,singleIndent:5,namespace:st,type:L.props.type},Y)))}),jt};var H=I.getState(A);return L.state=u(u({},H),{},{prevProps:{}}),L}return f(I,[{key:"getBraceStart",value:function(A,L){var H=this,re=this.props,Y=re.src,Q=re.theme,me=re.iconStyle;if(re.parent_type==="array_group")return h.a.createElement("span",null,h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{"),L?this.getObjectMetaData(Y):null);var $e=L?Nr:Tr;return h.a.createElement("span",null,h.a.createElement("span",Object.assign({onClick:function(Ze){H.toggleCollapsed()}},M(Q,"brace-row")),h.a.createElement("div",Object.assign({className:"icon-container"},M(Q,"icon-container")),h.a.createElement($e,{theme:Q,iconStyle:me})),h.a.createElement(qr,this.props),h.a.createElement("span",M(Q,"brace"),A==="array"?"[":"{")),L?this.getObjectMetaData(Y):null)}},{key:"render",value:function(){var A=this,L=this.props,H=L.depth,re=L.src,Y=(L.namespace,L.name,L.type,L.parent_type),Q=L.theme,me=L.jsvRoot,$e=L.iconStyle,Ze=O(L,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),tt=this.state,St=tt.object_type,st=tt.expanded,xt={};return me||Y==="array_group"?Y==="array_group"&&(xt.borderLeft=0,xt.display="inline"):xt.paddingLeft=5*this.props.indentWidth,h.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return A.setState(u(u({},A.state),{},{hovered:!0}))},onMouseLeave:function(){return A.setState(u(u({},A.state),{},{hovered:!1}))}},M(Q,me?"jsv-root":"objectKeyVal",xt)),this.getBraceStart(St,st),st?this.getObjectContent(H,re,u({theme:Q,iconStyle:$e},Ze)):this.getEllipsis(),h.a.createElement("span",{className:"brace-row"},h.a.createElement("span",{style:u(u({},M(Q,"brace").style),{},{paddingLeft:st?"3px":"0px"})},St==="array"?"]":"}"),st?null:this.getObjectMetaData(re)))}}],[{key:"getDerivedStateFromProps",value:function(A,L){var H=L.prevProps;return A.src!==H.src||A.collapsed!==H.collapsed||A.name!==H.name||A.namespace!==H.namespace||A.rjvId!==H.rjvId?u(u({},I.getState(A)),{},{prevProps:A}):null}}]),I}(h.a.PureComponent);Kr.getState=function(N){var D=Object.keys(N.src).length,I=(N.collapsed===!1||N.collapsed!==!0&&N.collapsed>N.depth)&&(!N.shouldCollapse||N.shouldCollapse({name:N.name,src:N.src,type:P(N.src),namespace:N.namespace})===!1)&&D!==0;return{expanded:we.get(N.rjvId,N.namespace,"expanded",I),object_type:N.type==="array"?"array":"object",parent_type:N.type==="array"?"array":"object",size:D,hovered:!1}};var Ko=function N(D,I){l(this,N),this.name=D,this.value=I,this.type=P(I)};w(Kr);var $r=Kr,ho=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;reY.groupArraysAfterLength&&(me=Mn),h.a.createElement("div",{className:"pretty-json-container object-container"},h.a.createElement("div",{className:"object-content"},h.a.createElement(me,Object.assign({namespace:Q,depth:0,jsvRoot:!0},Y))))},A}return I}(h.a.PureComponent),X=function(N){v(I,N);var D=m(I);function I(A){var L;return l(this,I),(L=D.call(this,A)).closeModal=function(){ye.dispatch({rjvId:L.props.rjvId,name:"RESET"})},L.submit=function(){L.props.submit(L.state.input)},L.state={input:A.input?A.input:""},L}return f(I,[{key:"render",value:function(){var A=this,L=this.props,H=L.theme,re=L.rjvId,Y=L.isValid,Q=this.state.input,me=Y(Q);return h.a.createElement("div",Object.assign({className:"key-modal-request"},M(H,"key-modal-request"),{onClick:this.closeModal}),h.a.createElement("div",Object.assign({},M(H,"key-modal"),{onClick:function($e){$e.stopPropagation()}}),h.a.createElement("div",M(H,"key-modal-label"),"Key Name:"),h.a.createElement("div",{style:{position:"relative"}},h.a.createElement("input",Object.assign({},M(H,"key-modal-input"),{className:"key-modal-input",ref:function($e){return $e&&$e.focus()},spellCheck:!1,value:Q,placeholder:"...",onChange:function($e){A.setState({input:$e.target.value})},onKeyPress:function($e){me&&$e.key==="Enter"?A.submit():$e.key==="Escape"&&A.closeModal()}})),me?h.a.createElement(Pt,Object.assign({},M(H,"key-modal-submit"),{className:"key-modal-submit",onClick:function($e){return A.submit()}})):null),h.a.createElement("span",M(H,"key-modal-cancel"),h.a.createElement(Ot,Object.assign({},M(H,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ye.dispatch({rjvId:re,name:"RESET"})}})))))}}]),I}(h.a.PureComponent),ee=function(N){v(I,N);var D=m(I);function I(){var A;l(this,I);for(var L=arguments.length,H=new Array(L),re=0;re{const e=_r();return R.jsx(fOe,{...e,children:R.jsx(OL,{})})},U$e=e=>R.jsx(nOe,{...e,children:R.jsx(OL,{})}),OL=e=>R.jsxs(gOe,{...e,children:[R.jsx(Nn,{disabled:!0,source:"id",helperText:"Job id. Must be unique, it's a copy of name."}),R.jsx(Nn,{source:"name",helperText:"Job name. Must be unique, acts as the id.",validate:Xl()}),R.jsx(Nn,{source:"displayname",helperText:"Display name of the job. If present, displayed instead of the name."}),R.jsx(Nn,{source:"timezone",helperText:"The timezone where the cron expression will be evaluated in."}),R.jsx(Nn,{source:"schedule",helperText:"Cron expression for the job. When to run the job.",validate:Xl()}),R.jsx(Nn,{source:"owner",helperText:"Arbitrary string indicating the owner of the job.",disabled:!0}),R.jsx(Nn,{source:"owner_email",helperText:"Email address to use for notifications."}),R.jsx(Nn,{source:"parent_job",helperText:"Job id of job that this job is dependent upon."}),R.jsx(rw,{source:"ephemeral",helperText:"Delete the job after the first successful execution."}),R.jsx(REe,{source:"expires_at",helperText:"The job will not be executed after this time."}),R.jsx(bN,{source:"concurrency",choices:[{id:"allow",name:"Allow"},{id:"forbid",name:"Forbid"}],helperText:"Concurrency policy for this job (allow, forbid)."}),R.jsx(Sh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Processor plugins to use for this job."}),R.jsx(Sh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Tags of the target servers to run this job against."}),R.jsx(Sh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1},helperText:"Job metadata describes the job and allows filtering from the API."}),R.jsx(Nn,{source:"executor",helperText:"Executor plugin to be used in this job.",validate:Xl()}),R.jsx(Sh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!0,enableClipboard:!1,displayDataTypes:!1},helperText:"Configuration arguments for the specific executor.",validate:Xl()}),R.jsx(rw,{source:"disabled",helperText:"Is this job disabled?"}),R.jsx(NEe,{source:"retries",helperText:"Number of times to retry a job that failed an execution."})]});var WE={},W$e=it;Object.defineProperty(WE,"__esModule",{value:!0});var PL=WE.default=void 0,H$e=W$e(ct()),q$e=R;PL=WE.default=(0,H$e.default)((0,q$e.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const K$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}/toggle`,{method:"POST"}).then(()=>{r("Job toggled"),t()}).catch(i=>{r("Error on toggle job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Toggle",onClick:o,disabled:n,children:R.jsx(PL,{})})},G$e=()=>{const e=_r(),t=Uo(),r=ur(),[n,a]=d.useState(!1),o=()=>{a(!0),fetch(`${fl}/jobs/${e.id}`,{method:"POST"}).then(()=>{r("Success running job"),t()}).catch(i=>{r("Error on running job",{type:"warning"})}).finally(()=>{a(!1)})};return R.jsx(Hr,{label:"Run",onClick:o,disabled:n,children:R.jsx(Ky,{})})},Q$e=e=>(e.record!==void 0&&e.source!==void 0&&e.record[e.source]==="0001-01-01T00:00:00Z"&&(e.record[e.source]=null),R.jsx(Ya,{...e}));var HE={},X$e=it;Object.defineProperty(HE,"__esModule",{value:!0});var RL=HE.default=void 0,Y$e=X$e(ct()),J$e=R;RL=HE.default=(0,Y$e.default)((0,J$e.jsx)("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"}),"BatteryFull");const Z$e=({basePath:e,data:t,resource:r})=>R.jsxs(F5,{children:[R.jsx(G$e,{}),R.jsx(K$e,{}),R.jsx(uE,{record:t})]}),eke=e=>e.record!==void 0&&e.record.finished_at===null?R.jsx(kn,{title:"Running",children:R.jsx(Wy,{})}):R.jsx(_N,{...e}),tke=({record:e})=>{const t=ur(),[r,n]=d.useState(!1),a=()=>{n(!0),fetch(`${fl}/jobs/${e.job_name}/executions/${e.id}`).then(o=>{if(o.ok)return t("Success loading full output"),o.json();throw o}).then(o=>{e.output_truncated=!1,e.output=o.output}).catch(o=>{t("Error on loading full output",{type:"warning"})}).finally(()=>{n(!1)})};return R.jsx(Hr,{label:"Load full output",onClick:a,disabled:r,children:R.jsx(RL,{})})},rke=({id:e,record:t,resource:r})=>R.jsxs("div",{className:"execution-output",children:[t.output_truncated?R.jsx("div",{children:R.jsx(tke,{record:t})}):"",t.output||"Nothing to show"]}),nke=e=>R.jsx(TOe,{actions:R.jsx(Z$e,{...e}),...e,children:R.jsxs(kN,{children:[R.jsxs(Pw,{label:"summary",children:[R.jsx(fr,{source:"name"}),R.jsx(fr,{source:"timezone"}),R.jsx(fr,{source:"schedule"}),R.jsx(Ya,{label:"Last success",source:"last_success",showTime:!0}),R.jsx(Ya,{source:"last_error",showTime:!0}),R.jsx(fr,{source:"status"}),R.jsx(fr,{source:"concurrency"}),R.jsx(_N,{source:"ephemeral"}),R.jsx(Ya,{source:"expires_at",showTime:!0}),R.jsx(Ya,{source:"next",sortable:!1,showTime:!0}),R.jsx(wh,{source:"processors",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"tags",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}}),R.jsx(wh,{source:"metadata",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!0,displayDataTypes:!1}}),R.jsx(fr,{source:"executor"}),R.jsx(wh,{source:"executor_config",reactJsonOptions:{name:null,collapsed:!1,enableClipboard:!1,displayDataTypes:!1}})]}),R.jsx(Pw,{label:"executions",path:"executions",children:R.jsx(qOe,{reference:"executions",target:"jobs",label:"Executions",children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(rke,{...e}),children:[R.jsx(fr,{source:"id"}),R.jsx(fr,{source:"group",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(Ya,{source:"started_at",showTime:!0}),R.jsx(Q$e,{source:"finished_at",showTime:!0}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(eke,{source:"success",sortable:!1}),R.jsx(qd,{source:"attempt"})]})})})]})}),ake={list:B$e,edit:V$e,create:U$e,show:nke,icon:Wy},oke=({id:e,record:t,resource:r})=>R.jsx("div",{className:"execution-output",children:t.output||"Empty output"}),ike=e=>R.jsx(TE,{...e,pagination:!1,children:R.jsxs(Cp,{rowClick:"expand",isRowSelectable:t=>!1,expand:R.jsx(oke,{}),children:[R.jsx(fr,{source:"id",sortable:!1}),R.jsx(fr,{source:"job_name",sortable:!1}),R.jsx(fr,{source:"node_name",sortable:!1}),R.jsx(Ya,{source:"started_at",sortable:!1,showTime:!0})]})});var qE={},ske=it;Object.defineProperty(qE,"__esModule",{value:!0});var TL=qE.default=void 0,lke=ske(ct()),uke=R;TL=qE.default=(0,lke.default)((0,uke.jsx)("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"}),"Book");class cke extends d.Component{constructor(t){super(t),this.state={date:new Date}}componentDidMount(){this.timer=setInterval(()=>this.setState({date:new Date}),1e3)}componentWillUnmount(){clearInterval(this.timer)}render(){return R.jsx("div",{className:"clock",children:R.jsx("div",{children:this.state.date.toLocaleTimeString()})})}}const dke=""+new URL("dkron-logo-2b1c801f.png",import.meta.url).href,j0="CustomAppBar",_u={title:`${j0}-title`,spacer:`${j0}-spacer`,logo:`${j0}-logo`},fke=ne(v5)({[`& .${_u.title}`]:{flex:1,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[`& .${_u.spacer}`]:{flex:1},[`& .${_u.logo}`]:{maxWidth:"125px"}});d.forwardRef((e,t)=>R.jsx(xp,{ref:t,to:"/settings",primaryText:"Settings",leftIcon:R.jsx(eE,{}),onClick:e.onClick}));const pke=e=>R.jsx(UC,{...e,children:R.jsx(xp,{to:"https://dkron.io/docs/basics/getting-started",primaryText:"Docs",leftIcon:R.jsx(TL,{})})}),hke=e=>R.jsxs(fke,{...e,elevation:1,userMenu:R.jsx(pke,{}),children:[R.jsx(_t,{variant:"h6",color:"inherit",className:_u.title,id:"react-admin-title"}),R.jsx("div",{children:R.jsx(VOe,{to:"/",color:"inherit",underline:"none",children:R.jsx("img",{src:dke,alt:"logo",className:_u.logo})})}),R.jsx("span",{className:_u.spacer}),R.jsx(cke,{})]}),vke=e=>R.jsx(P5,{...e,size:200}),gke=e=>R.jsx(I5,{...e,appBar:hke,sidebar:vke});const mke={login:({token:e})=>(localStorage.setItem("token",e),Promise.resolve()),logout:()=>(localStorage.removeItem("token"),Promise.resolve()),checkAuth:()=>localStorage.getItem("token")?Promise.resolve():Promise.reject(),checkError:e=>{const t=e.status;return t===401||t===403?(localStorage.removeItem("token"),Promise.reject()):Promise.resolve()},getIdentity:()=>Promise.resolve(),getPermissions:()=>Promise.resolve()},$L=({record:e})=>e===void 0?null:R.jsx("ul",{children:Object.keys(e.Tags).map(t=>R.jsx(Cfe,{label:t+": "+e.Tags[t]}))});$L.defaultProps={addLabel:!0};var KE={},yke=it;Object.defineProperty(KE,"__esModule",{value:!0});var kL=KE.default=void 0,bke=yke(ct()),xke=R;kL=KE.default=(0,bke.default)((0,xke.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5z"}),"DeviceHub");const $p=({icon:e,title:t,subtitle:r,to:n,children:a})=>R.jsxs(oo,{sx:{minHeight:52,display:"flex",flexDirection:"column",flex:"1","& a":{textDecoration:"none",color:"inherit"}},children:[R.jsx(Fo,{to:n,children:R.jsxs(Qh,{sx:{position:"relative",overflow:"hidden",padding:"16px",display:"flex",justifyContent:"space-between",alignItems:"center","& .icon":{color:"secondary.main"},"&:before":{position:"absolute",top:"50%",left:0,display:"block",content:"''",height:"200%",aspectRatio:"1",transform:"translate(-30%, -60%)",borderRadius:"50%",backgroundColor:"secondary.main",opacity:.15}},children:[R.jsx(Qh,{width:"3em",className:"icon",children:d.createElement(e,{fontSize:"large"})}),R.jsxs(Qh,{textAlign:"right",children:[R.jsx(_t,{color:"textSecondary",children:t}),R.jsx(_t,{variant:"h5",component:"h2",children:r||" "})]})]})}),a&&R.jsx(gg,{}),a]}),wke=({value:e})=>R.jsx($p,{to:"/jobs",icon:kL,title:"Leader",subtitle:e});var GE={},Ske=it;Object.defineProperty(GE,"__esModule",{value:!0});var jL=GE.default=void 0,_ke=Ske(ct()),Cke=R;jL=GE.default=(0,_ke.default)((0,Cke.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z"}),"ThumbDown");const Eke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"failed"}',icon:jL,title:"Failed Jobs",subtitle:e});var QE={},Oke=it;Object.defineProperty(QE,"__esModule",{value:!0});var IL=QE.default=void 0,Pke=Oke(ct()),Rke=R;IL=QE.default=(0,Pke.default)((0,Rke.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp");const Tke=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"success"}',icon:IL,title:"Successful Jobs",subtitle:e});var XE={},$ke=it;Object.defineProperty(XE,"__esModule",{value:!0});var AL=XE.default=void 0,kke=$ke(ct()),jke=R;AL=XE.default=(0,kke.default)((0,jke.jsx)("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"}),"NewReleases");const Ike=({value:e})=>R.jsx($p,{to:'/jobs?filter={"status":"untriggered"}',icon:AL,title:"Untriggered Jobs",subtitle:e}),Ake=({value:e})=>R.jsx($p,{to:"/jobs",icon:Wy,title:"Total Jobs",subtitle:e});let Mke={basePath:"/members",count:10,hasCreate:!1,hasEdit:!1,hasList:!0,hasShow:!1,location:{pathname:"/",search:"",hash:"",state:void 0},match:{path:"/",url:"/",isExact:!0,params:{}},options:{},permissions:null,resource:"members"};const I0={flex:{display:"flex"},flexColumn:{display:"flex",flexDirection:"column"},leftCol:{flex:1,marginRight:"0.5em"},rightCol:{flex:1,marginLeft:"0.5em"},singleCol:{marginTop:"1em",marginBottom:"1em"}},_h=()=>R.jsx("span",{style:{width:"1em"}}),Fke=()=>R.jsxs("div",{children:[R.jsxs(oo,{children:[R.jsx(FT,{title:"Welcome"}),R.jsx(Di,{children:R.jsx("div",{style:I0.flex,children:R.jsx("div",{style:I0.leftCol,children:R.jsxs("div",{style:I0.flex,children:[R.jsx(wke,{value:window.DKRON_LEADER||"devel"}),R.jsx(_h,{}),R.jsx(Ake,{value:window.DKRON_TOTAL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Tke,{value:window.DKRON_SUCCESSFUL_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Eke,{value:window.DKRON_FAILED_JOBS||"0"}),R.jsx(_h,{}),R.jsx(Ike,{value:window.DKRON_UNTRIGGERED_JOBS||"0"})]})})})})]}),R.jsxs(oo,{children:[R.jsx(FT,{title:"Nodes"}),R.jsx(Di,{children:R.jsx(TE,{...Mke,children:R.jsxs(Cp,{isRowSelectable:e=>!1,children:[R.jsx(fr,{source:"Name",sortable:!1}),R.jsx(fr,{source:"Addr",sortable:!1}),R.jsx(fr,{source:"Port",sortable:!1}),R.jsx(fr,{label:"Status",source:"statusText",sortable:!1}),R.jsx($L,{source:"Tags",sortable:!1})]})})})]})]}),Nke=_L({label:{width:"10em",display:"inline-block"},button:{margin:"1em"}}),Lke=()=>(Nke(),R.jsxs(oo,{children:[R.jsx(dl,{title:"Settings"}),R.jsx(Di,{})]})),Dke=e=>{const[t,r]=d.useState(""),n=Y3(),a=ur(),o=R.jsx(Dy,{}),{className:i}=e,[s,u]=Bn(!1),l=c=>{u(!0),n({token:t}).catch(()=>{u(!1),a("Invalid token")})};return R.jsx(Bke,{children:R.jsxs(oo,{className:Cu.card,children:[R.jsx("div",{className:Cu.avatar,children:R.jsx(hg,{className:Cu.icon,children:o})}),R.jsx(zke,{onSubmit:l,mode:"onChange",noValidate:!0,className:i,children:R.jsxs(Di,{className:Eu.content,children:[R.jsx(Nn,{name:"token",type:"text",value:t,onChange:c=>r(c.target.value)}),R.jsx(hn,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,className:Eu.button,children:s?R.jsx(kc,{className:Eu.icon,size:19,thickness:3}):"Sign in"})]})})]})})},pv="RaLogin",Cu={card:`${pv}-card`,avatar:`${pv}-avatar`,icon:`${pv}-icon`},Bke=ne("div",{name:pv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)",[`& .${Cu.card}`]:{minWidth:300,marginTop:"6em"},[`& .${Cu.avatar}`]:{margin:"1em",display:"flex",justifyContent:"center"},[`& .${Cu.icon}`]:{backgroundColor:e.palette.secondary[500]}})),hv="RaLoginForm",Eu={content:`${hv}-content`,button:`${hv}-button`,icon:`${hv}-icon`},zke=ne(M_,{name:hv,overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${Eu.content}`]:{width:300},[`& .${Eu.button}`]:{marginTop:e.spacing(2)},[`& .${Eu.icon}`]:{margin:e.spacing(.3)}}));iRe();const Vke=()=>R.jsxs(eRe,{dashboard:Fke,loginPage:Dke,authProvider:window.DKRON_ACL_ENABLED?mke:void 0,dataProvider:mRe,layout:gke,children:[R.jsx(Yl,{name:"jobs",...ake}),R.jsx(Yl,{name:"busy",options:{label:"Busy"},list:ike,icon:aL}),R.jsx(Yl,{name:"executions"}),R.jsx(Yl,{name:"members"}),R.jsx(R3,{children:R.jsx(zr,{path:"/settings",element:R.jsx(Lke,{})})})]});A0.createRoot(document.getElementById("root")).render(R.jsx(ke.StrictMode,{children:R.jsx(Vke,{})})); diff --git a/dkron/ui-dist/index.html b/dkron/ui-dist/index.html index 2f7415ecb..372fe63f4 100644 --- a/dkron/ui-dist/index.html +++ b/dkron/ui-dist/index.html @@ -9,7 +9,7 @@ - ui + Dkron