Files
vrpmdv-web/vrpmdvfrontend/dist/assets/index-ebf4aa2f.js

452 lines
1.3 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var B3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var PNe=B3((Ia,Oa)=>{function H3(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var BT={exports:{}},$v={},HT={exports:{}},ht={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Op=Symbol.for("react.element"),U3=Symbol.for("react.portal"),V3=Symbol.for("react.fragment"),W3=Symbol.for("react.strict_mode"),G3=Symbol.for("react.profiler"),q3=Symbol.for("react.provider"),K3=Symbol.for("react.context"),Q3=Symbol.for("react.forward_ref"),Y3=Symbol.for("react.suspense"),X3=Symbol.for("react.memo"),Z3=Symbol.for("react.lazy"),Ak=Symbol.iterator;function J3(e){return e===null||typeof e!="object"?null:(e=Ak&&e[Ak]||e["@@iterator"],typeof e=="function"?e:null)}var UT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VT=Object.assign,WT={};function ed(e,t,n){this.props=e,this.context=t,this.refs=WT,this.updater=n||UT}ed.prototype.isReactComponent={};ed.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")};ed.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GT(){}GT.prototype=ed.prototype;function pC(e,t,n){this.props=e,this.context=t,this.refs=WT,this.updater=n||UT}var mC=pC.prototype=new GT;mC.constructor=pC;VT(mC,ed.prototype);mC.isPureReactComponent=!0;var Lk=Array.isArray,qT=Object.prototype.hasOwnProperty,hC={current:null},KT={key:!0,ref:!0,__self:!0,__source:!0};function QT(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)qT.call(t,r)&&!KT.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Op,type:e,key:i,ref:a,props:o,_owner:hC.current}}function eB(e,t){return{$$typeof:Op,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function gC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Op}function tB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Dk=/\/+/g;function G0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tB(""+e.key):t.toString(36)}function Mh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Op:case U3:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+G0(a,0):r,Lk(o)?(n="",e!=null&&(n=e.replace(Dk,"$&/")+"/"),Mh(o,t,n,"",function(u){return u})):o!=null&&(gC(o)&&(o=eB(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Dk,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Lk(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+G0(i,l);a+=Mh(i,t,n,s,o)}else if(s=J3(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+G0(i,l++),a+=Mh(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Im(e,t,n){if(e==null)return e;var r=[],o=0;return Mh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function nB(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pr={current:null},Rh={transition:null},rB={ReactCurrentDispatcher:Pr,ReactCurrentBatchConfig:Rh,ReactCurrentOwner:hC};ht.Children={map:Im,forEach:function(e,t,n){Im(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Im(e,function(){t++}),t},toArray:function(e){return Im(e,function(t){return t})||[]},only:function(e){if(!gC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ht.Component=ed;ht.Fragment=V3;ht.Profiler=G3;ht.PureComponent=pC;ht.StrictMode=W3;ht.Suspense=Y3;ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rB;ht.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=VT({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=hC.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)qT.call(t,s)&&!KT.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Op,type:e.type,key:o,ref:i,props:r,_owner:a}};ht.createContext=function(e){return e={$$typeof:K3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:q3,_context:e},e.Consumer=e};ht.createElement=QT;ht.createFactory=function(e){var t=QT.bind(null,e);return t.type=e,t};ht.createRef=function(){return{current:null}};ht.forwardRef=function(e){return{$$typeof:Q3,render:e}};ht.isValidElement=gC;ht.lazy=function(e){return{$$typeof:Z3,_payload:{_status:-1,_result:e},_init:nB}};ht.memo=function(e,t){return{$$typeof:X3,type:e,compare:t===void 0?null:t}};ht.startTransition=function(e){var t=Rh.transition;Rh.transition={};try{e()}finally{Rh.transition=t}};ht.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ht.useCallback=function(e,t){return Pr.current.useCallback(e,t)};ht.useContext=function(e){return Pr.current.useContext(e)};ht.useDebugValue=function(){};ht.useDeferredValue=function(e){return Pr.current.useDeferredValue(e)};ht.useEffect=function(e,t){return Pr.current.useEffect(e,t)};ht.useId=function(){return Pr.current.useId()};ht.useImperativeHandle=function(e,t,n){return Pr.current.useImperativeHandle(e,t,n)};ht.useInsertionEffect=function(e,t){return Pr.current.useInsertionEffect(e,t)};ht.useLayoutEffect=function(e,t){return Pr.current.useLayoutEffect(e,t)};ht.useMemo=function(e,t){return Pr.current.useMemo(e,t)};ht.useReducer=function(e,t,n){return Pr.current.useReducer(e,t,n)};ht.useRef=function(e){return Pr.current.useRef(e)};ht.useState=function(e){return Pr.current.useState(e)};ht.useSyncExternalStore=function(e,t,n){return Pr.current.useSyncExternalStore(e,t,n)};ht.useTransition=function(){return Pr.current.useTransition()};ht.version="18.2.0";HT.exports=ht;var v=HT.exports;const $=Xi(v),cg=H3({__proto__:null,default:$},[v]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var oB=v,iB=Symbol.for("react.element"),aB=Symbol.for("react.fragment"),lB=Object.prototype.hasOwnProperty,sB=oB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uB={key:!0,ref:!0,__self:!0,__source:!0};function YT(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)lB.call(t,r)&&!uB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:iB,type:e,key:i,ref:a,props:o,_owner:sB.current}}$v.Fragment=aB;$v.jsx=YT;$v.jsxs=YT;BT.exports=$v;var z=BT.exports,XT={exports:{}},so={},ZT={exports:{}},JT={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(L,j){var B=L.length;L.push(j);e:for(;0<B;){var A=B-1>>>1,H=L[A];if(0<o(H,j))L[A]=j,L[B]=H,B=A;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var j=L[0],B=L.pop();if(B!==j){L[0]=B;e:for(var A=0,H=L.length,q=H>>>1;A<q;){var V=2*(A+1)-1,G=L[V],Y=V+1,re=L[Y];if(0>o(G,B))Y<H&&0>o(re,G)?(L[A]=re,L[Y]=B,A=Y):(L[A]=G,L[V]=B,A=V);else if(Y<H&&0>o(re,B))L[A]=re,L[Y]=B,A=Y;else break e}}return j}function o(L,j){var B=L.sortIndex-j.sortIndex;return B!==0?B:L.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,m=!1,p=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(L){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=L)r(u),j.sortIndex=j.expirationTime,t(s,j);else break;j=n(u)}}function w(L){if(h=!1,x(L),!p)if(n(s)!==null)p=!0,N(P);else{var j=n(u);j!==null&&k(w,j.startTime-L)}}function P(L,j){p=!1,h&&(h=!1,b(S),S=-1),m=!0;var B=f;try{for(x(j),d=n(s);d!==null&&(!(d.expirationTime>j)||L&&!M());){var A=d.callback;if(typeof A=="function"){d.callback=null,f=d.priorityLevel;var H=A(d.expirationTime<=j);j=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(s)&&r(s),x(j)}else r(s);d=n(s)}if(d!==null)var q=!0;else{var V=n(u);V!==null&&k(w,V.startTime-j),q=!1}return q}finally{d=null,f=B,m=!1}}var C=!1,E=null,S=-1,R=5,I=-1;function M(){return!(e.unstable_now()-I<R)}function _(){if(E!==null){var L=e.unstable_now();I=L;var j=!0;try{j=E(!0,L)}finally{j?D():(C=!1,E=null)}}else C=!1}var D;if(typeof g=="function")D=function(){g(_)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,F=T.port2;T.port1.onmessage=_,D=function(){F.postMessage(null)}}else D=function(){y(_,0)};function N(L){E=L,C||(C=!0,D())}function k(L,j){S=y(function(){L(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){p||m||(p=!0,N(P))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var B=f;f=j;try{return L()}finally{f=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,j){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var B=f;f=L;try{return j()}finally{f=B}},e.unstable_scheduleCallback=function(L,j,B){var A=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?A+B:A):B=A,L){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=B+H,L={id:c++,callback:j,priorityLevel:L,startTime:B,expirationTime:H,sortIndex:-1},B>A?(L.sortIndex=B,t(u,L),n(s)===null&&L===n(u)&&(h?(b(S),S=-1):h=!0,k(w,B-A))):(L.sortIndex=H,t(s,L),p||m||(p=!0,N(P))),L},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(L){var j=f;return function(){var B=f;f=j;try{return L.apply(this,arguments)}finally{f=B}}}})(JT);ZT.exports=JT;var cB=ZT.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var e_=v,io=cB;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t_=new Set,Bf={};function cu(e,t){Ic(e,t),Ic(e+"Capture",t)}function Ic(e,t){for(Bf[e]=t,e=0;e<t.length;e++)t_.add(t[e])}var Aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Z1=Object.prototype.hasOwnProperty,dB=/^[: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]*$/,Nk={},zk={};function fB(e){return Z1.call(zk,e)?!0:Z1.call(Nk,e)?!1:dB.test(e)?zk[e]=!0:(Nk[e]=!0,!1)}function pB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function mB(e,t,n,r){if(t===null||typeof t>"u"||pB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 kr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nr[e]=new kr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nr[t]=new kr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nr[e]=new kr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nr[e]=new kr(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){nr[e]=new kr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nr[e]=new kr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nr[e]=new kr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nr[e]=new kr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nr[e]=new kr(e,5,!1,e.toLowerCase(),null,!1,!1)});var vC=/[\-:]([a-z])/g;function yC(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(vC,yC);nr[t]=new kr(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(vC,yC);nr[t]=new kr(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(vC,yC);nr[t]=new kr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nr[e]=new kr(e,1,!1,e.toLowerCase(),null,!1,!1)});nr.xlinkHref=new kr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nr[e]=new kr(e,1,!1,e.toLowerCase(),null,!0,!0)});function bC(e,t,n,r){var o=nr.hasOwnProperty(t)?nr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(mB(t,n,o,r)&&(n=null),r||o===null?fB(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Wa=e_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Om=Symbol.for("react.element"),Xu=Symbol.for("react.portal"),Zu=Symbol.for("react.fragment"),xC=Symbol.for("react.strict_mode"),J1=Symbol.for("react.profiler"),n_=Symbol.for("react.provider"),r_=Symbol.for("react.context"),wC=Symbol.for("react.forward_ref"),ex=Symbol.for("react.suspense"),tx=Symbol.for("react.suspense_list"),CC=Symbol.for("react.memo"),hl=Symbol.for("react.lazy"),o_=Symbol.for("react.offscreen"),jk=Symbol.iterator;function Od(e){return e===null||typeof e!="object"?null:(e=jk&&e[jk]||e["@@iterator"],typeof e=="function"?e:null)}var sn=Object.assign,q0;function lf(e){if(q0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);q0=t&&t[1]||""}return`
`+q0+e}var K0=!1;function Q0(e,t){if(!e||K0)return"";K0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),i=r.stack.split(`
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{K0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lf(e):""}function hB(e){switch(e.tag){case 5:return lf(e.type);case 16:return lf("Lazy");case 13:return lf("Suspense");case 19:return lf("SuspenseList");case 0:case 2:case 15:return e=Q0(e.type,!1),e;case 11:return e=Q0(e.type.render,!1),e;case 1:return e=Q0(e.type,!0),e;default:return""}}function nx(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 Zu:return"Fragment";case Xu:return"Portal";case J1:return"Profiler";case xC:return"StrictMode";case ex:return"Suspense";case tx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case r_:return(e.displayName||"Context")+".Consumer";case n_:return(e._context.displayName||"Context")+".Provider";case wC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case CC:return t=e.displayName||null,t!==null?t:nx(e.type)||"Memo";case hl:t=e._payload,e=e._init;try{return nx(e(t))}catch{}}return null}function gB(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 nx(t);case 8:return t===xC?"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 ql(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function i_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vB(e){var t=i_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mm(e){e._valueTracker||(e._valueTracker=vB(e))}function a_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=i_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dg(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 rx(e,t){var n=t.checked;return sn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ql(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function l_(e,t){t=t.checked,t!=null&&bC(e,"checked",t,!1)}function ox(e,t){l_(e,t);var n=ql(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ix(e,t.type,n):t.hasOwnProperty("defaultValue")&&ix(e,t.type,ql(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hk(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ix(e,t,n){(t!=="number"||dg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sf=Array.isArray;function pc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ql(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ax(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Me(91));return sn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Uk(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Me(92));if(sf(n)){if(1<n.length)throw Error(Me(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ql(n)}}function s_(e,t){var n=ql(t.value),r=ql(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Vk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function u_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lx(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?u_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rm,c_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Rm=Rm||document.createElement("div"),Rm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gf={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},yB=["Webkit","ms","Moz","O"];Object.keys(gf).forEach(function(e){yB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gf[t]=gf[e]})});function d_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gf.hasOwnProperty(e)&&gf[e]?(""+t).trim():t+"px"}function f_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=d_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bB=sn({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 sx(e,t){if(t){if(bB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function ux(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 cx=null;function SC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dx=null,mc=null,hc=null;function Wk(e){if(e=Tp(e)){if(typeof dx!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=Tv(t),dx(e.stateNode,e.type,t))}}function p_(e){mc?hc?hc.push(e):hc=[e]:mc=e}function m_(){if(mc){var e=mc,t=hc;if(hc=mc=null,Wk(e),t)for(e=0;e<t.length;e++)Wk(t[e])}}function h_(e,t){return e(t)}function g_(){}var Y0=!1;function v_(e,t,n){if(Y0)return e(t,n);Y0=!0;try{return h_(e,t,n)}finally{Y0=!1,(mc!==null||hc!==null)&&(g_(),m_())}}function Uf(e,t){var n=e.stateNode;if(n===null)return null;var r=Tv(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Me(231,t,typeof n));return n}var fx=!1;if(Aa)try{var Md={};Object.defineProperty(Md,"passive",{get:function(){fx=!0}}),window.addEventListener("test",Md,Md),window.removeEventListener("test",Md,Md)}catch{fx=!1}function xB(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var vf=!1,fg=null,pg=!1,px=null,wB={onError:function(e){vf=!0,fg=e}};function CB(e,t,n,r,o,i,a,l,s){vf=!1,fg=null,xB.apply(wB,arguments)}function SB(e,t,n,r,o,i,a,l,s){if(CB.apply(this,arguments),vf){if(vf){var u=fg;vf=!1,fg=null}else throw Error(Me(198));pg||(pg=!0,px=u)}}function du(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function y_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Gk(e){if(du(e)!==e)throw Error(Me(188))}function EB(e){var t=e.alternate;if(!t){if(t=du(e),t===null)throw Error(Me(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Gk(o),e;if(i===r)return Gk(o),t;i=i.sibling}throw Error(Me(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(Me(189))}}if(n.alternate!==r)throw Error(Me(190))}if(n.tag!==3)throw Error(Me(188));return n.stateNode.current===n?e:t}function b_(e){return e=EB(e),e!==null?x_(e):null}function x_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=x_(e);if(t!==null)return t;e=e.sibling}return null}var w_=io.unstable_scheduleCallback,qk=io.unstable_cancelCallback,PB=io.unstable_shouldYield,kB=io.unstable_requestPaint,vn=io.unstable_now,$B=io.unstable_getCurrentPriorityLevel,EC=io.unstable_ImmediatePriority,C_=io.unstable_UserBlockingPriority,mg=io.unstable_NormalPriority,IB=io.unstable_LowPriority,S_=io.unstable_IdlePriority,Iv=null,Di=null;function OB(e){if(Di&&typeof Di.onCommitFiberRoot=="function")try{Di.onCommitFiberRoot(Iv,e,void 0,(e.current.flags&128)===128)}catch{}}var ci=Math.clz32?Math.clz32:TB,MB=Math.log,RB=Math.LN2;function TB(e){return e>>>=0,e===0?32:31-(MB(e)/RB|0)|0}var Tm=64,_m=4194304;function uf(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 hg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=uf(l):(i&=a,i!==0&&(r=uf(i)))}else a=n&~o,a!==0?r=uf(a):i!==0&&(r=uf(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ci(t),o=1<<n,r|=e[n],t&=~o;return r}function _B(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function FB(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-ci(i),l=1<<a,s=o[a];s===-1?(!(l&n)||l&r)&&(o[a]=_B(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function mx(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function E_(){var e=Tm;return Tm<<=1,!(Tm&4194240)&&(Tm=64),e}function X0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ci(t),e[t]=n}function AB(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ci(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function PC(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ci(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Tt=0;function P_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var k_,kC,$_,I_,O_,hx=!1,Fm=[],Fl=null,Al=null,Ll=null,Vf=new Map,Wf=new Map,Cl=[],LB="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Kk(e,t){switch(e){case"focusin":case"focusout":Fl=null;break;case"dragenter":case"dragleave":Al=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":Vf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wf.delete(t.pointerId)}}function Rd(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Tp(t),t!==null&&kC(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function DB(e,t,n,r,o){switch(t){case"focusin":return Fl=Rd(Fl,e,t,n,r,o),!0;case"dragenter":return Al=Rd(Al,e,t,n,r,o),!0;case"mouseover":return Ll=Rd(Ll,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Vf.set(i,Rd(Vf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Wf.set(i,Rd(Wf.get(i)||null,e,t,n,r,o)),!0}return!1}function M_(e){var t=$s(e.target);if(t!==null){var n=du(t);if(n!==null){if(t=n.tag,t===13){if(t=y_(n),t!==null){e.blockedOn=t,O_(e.priority,function(){$_(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Th(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gx(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cx=r,n.target.dispatchEvent(r),cx=null}else return t=Tp(n),t!==null&&kC(t),e.blockedOn=n,!1;t.shift()}return!0}function Qk(e,t,n){Th(e)&&n.delete(t)}function NB(){hx=!1,Fl!==null&&Th(Fl)&&(Fl=null),Al!==null&&Th(Al)&&(Al=null),Ll!==null&&Th(Ll)&&(Ll=null),Vf.forEach(Qk),Wf.forEach(Qk)}function Td(e,t){e.blockedOn===t&&(e.blockedOn=null,hx||(hx=!0,io.unstable_scheduleCallback(io.unstable_NormalPriority,NB)))}function Gf(e){function t(o){return Td(o,e)}if(0<Fm.length){Td(Fm[0],e);for(var n=1;n<Fm.length;n++){var r=Fm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Fl!==null&&Td(Fl,e),Al!==null&&Td(Al,e),Ll!==null&&Td(Ll,e),Vf.forEach(t),Wf.forEach(t),n=0;n<Cl.length;n++)r=Cl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cl.length&&(n=Cl[0],n.blockedOn===null);)M_(n),n.blockedOn===null&&Cl.shift()}var gc=Wa.ReactCurrentBatchConfig,gg=!0;function zB(e,t,n,r){var o=Tt,i=gc.transition;gc.transition=null;try{Tt=1,$C(e,t,n,r)}finally{Tt=o,gc.transition=i}}function jB(e,t,n,r){var o=Tt,i=gc.transition;gc.transition=null;try{Tt=4,$C(e,t,n,r)}finally{Tt=o,gc.transition=i}}function $C(e,t,n,r){if(gg){var o=gx(e,t,n,r);if(o===null)lb(e,t,r,vg,n),Kk(e,r);else if(DB(o,e,t,n,r))r.stopPropagation();else if(Kk(e,r),t&4&&-1<LB.indexOf(e)){for(;o!==null;){var i=Tp(o);if(i!==null&&k_(i),i=gx(e,t,n,r),i===null&&lb(e,t,r,vg,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else lb(e,t,r,null,n)}}var vg=null;function gx(e,t,n,r){if(vg=null,e=SC(r),e=$s(e),e!==null)if(t=du(e),t===null)e=null;else if(n=t.tag,n===13){if(e=y_(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vg=e,null}function R_(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($B()){case EC:return 1;case C_:return 4;case mg:case IB:return 16;case S_:return 536870912;default:return 16}default:return 16}}var kl=null,IC=null,_h=null;function T_(){if(_h)return _h;var e,t=IC,n=t.length,r,o="value"in kl?kl.value:kl.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return _h=o.slice(e,1<r?1-r:void 0)}function Fh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Am(){return!0}function Yk(){return!1}function uo(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Am:Yk,this.isPropagationStopped=Yk,this}return sn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Am)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Am)},persist:function(){},isPersistent:Am}),t}var td={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OC=uo(td),Rp=sn({},td,{view:0,detail:0}),BB=uo(Rp),Z0,J0,_d,Ov=sn({},Rp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:MC,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_d&&(_d&&e.type==="mousemove"?(Z0=e.screenX-_d.screenX,J0=e.screenY-_d.screenY):J0=Z0=0,_d=e),Z0)},movementY:function(e){return"movementY"in e?e.movementY:J0}}),Xk=uo(Ov),HB=sn({},Ov,{dataTransfer:0}),UB=uo(HB),VB=sn({},Rp,{relatedTarget:0}),eb=uo(VB),WB=sn({},td,{animationName:0,elapsedTime:0,pseudoElement:0}),GB=uo(WB),qB=sn({},td,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),KB=uo(qB),QB=sn({},td,{data:0}),Zk=uo(QB),YB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ZB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JB(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZB[e])?!!t[e]:!1}function MC(){return JB}var eH=sn({},Rp,{key:function(e){if(e.key){var t=YB[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?XB[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:MC,charCode:function(e){return e.type==="keypress"?Fh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tH=uo(eH),nH=sn({},Ov,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jk=uo(nH),rH=sn({},Rp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:MC}),oH=uo(rH),iH=sn({},td,{propertyName:0,elapsedTime:0,pseudoElement:0}),aH=uo(iH),lH=sn({},Ov,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sH=uo(lH),uH=[9,13,27,32],RC=Aa&&"CompositionEvent"in window,yf=null;Aa&&"documentMode"in document&&(yf=document.documentMode);var cH=Aa&&"TextEvent"in window&&!yf,__=Aa&&(!RC||yf&&8<yf&&11>=yf),e$=String.fromCharCode(32),t$=!1;function F_(e,t){switch(e){case"keyup":return uH.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ju=!1;function dH(e,t){switch(e){case"compositionend":return A_(t);case"keypress":return t.which!==32?null:(t$=!0,e$);case"textInput":return e=t.data,e===e$&&t$?null:e;default:return null}}function fH(e,t){if(Ju)return e==="compositionend"||!RC&&F_(e,t)?(e=T_(),_h=IC=kl=null,Ju=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return __&&t.locale!=="ko"?null:t.data;default:return null}}var pH={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function n$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pH[e.type]:t==="textarea"}function L_(e,t,n,r){p_(r),t=yg(t,"onChange"),0<t.length&&(n=new OC("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var bf=null,qf=null;function mH(e){q_(e,0)}function Mv(e){var t=nc(e);if(a_(t))return e}function hH(e,t){if(e==="change")return t}var D_=!1;if(Aa){var tb;if(Aa){var nb="oninput"in document;if(!nb){var r$=document.createElement("div");r$.setAttribute("oninput","return;"),nb=typeof r$.oninput=="function"}tb=nb}else tb=!1;D_=tb&&(!document.documentMode||9<document.documentMode)}function o$(){bf&&(bf.detachEvent("onpropertychange",N_),qf=bf=null)}function N_(e){if(e.propertyName==="value"&&Mv(qf)){var t=[];L_(t,qf,e,SC(e)),v_(mH,t)}}function gH(e,t,n){e==="focusin"?(o$(),bf=t,qf=n,bf.attachEvent("onpropertychange",N_)):e==="focusout"&&o$()}function vH(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mv(qf)}function yH(e,t){if(e==="click")return Mv(t)}function bH(e,t){if(e==="input"||e==="change")return Mv(t)}function xH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pi=typeof Object.is=="function"?Object.is:xH;function Kf(e,t){if(pi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Z1.call(t,o)||!pi(e[o],t[o]))return!1}return!0}function i$(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function a$(e,t){var n=i$(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=i$(n)}}function z_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?z_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j_(){for(var e=window,t=dg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=dg(e.document)}return t}function TC(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 wH(e){var t=j_(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&z_(n.ownerDocument.documentElement,n)){if(r!==null&&TC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=a$(n,i);var a=a$(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var CH=Aa&&"documentMode"in document&&11>=document.documentMode,ec=null,vx=null,xf=null,yx=!1;function l$(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yx||ec==null||ec!==dg(r)||(r=ec,"selectionStart"in r&&TC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xf&&Kf(xf,r)||(xf=r,r=yg(vx,"onSelect"),0<r.length&&(t=new OC("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ec)))}function Lm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tc={animationend:Lm("Animation","AnimationEnd"),animationiteration:Lm("Animation","AnimationIteration"),animationstart:Lm("Animation","AnimationStart"),transitionend:Lm("Transition","TransitionEnd")},rb={},B_={};Aa&&(B_=document.createElement("div").style,"AnimationEvent"in window||(delete tc.animationend.animation,delete tc.animationiteration.animation,delete tc.animationstart.animation),"TransitionEvent"in window||delete tc.transitionend.transition);function Rv(e){if(rb[e])return rb[e];if(!tc[e])return e;var t=tc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in B_)return rb[e]=t[n];return e}var H_=Rv("animationend"),U_=Rv("animationiteration"),V_=Rv("animationstart"),W_=Rv("transitionend"),G_=new Map,s$="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Jl(e,t){G_.set(e,t),cu(t,[e])}for(var ob=0;ob<s$.length;ob++){var ib=s$[ob],SH=ib.toLowerCase(),EH=ib[0].toUpperCase()+ib.slice(1);Jl(SH,"on"+EH)}Jl(H_,"onAnimationEnd");Jl(U_,"onAnimationIteration");Jl(V_,"onAnimationStart");Jl("dblclick","onDoubleClick");Jl("focusin","onFocus");Jl("focusout","onBlur");Jl(W_,"onTransitionEnd");Ic("onMouseEnter",["mouseout","mouseover"]);Ic("onMouseLeave",["mouseout","mouseover"]);Ic("onPointerEnter",["pointerout","pointerover"]);Ic("onPointerLeave",["pointerout","pointerover"]);cu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cu("onBeforeInput",["compositionend","keypress","textInput","paste"]);cu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),PH=new Set("cancel close invalid load scroll toggle".split(" ").concat(cf));function u$(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,SB(r,t,void 0,e),e.currentTarget=null}function q_(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;u$(o,l,u),i=s}else for(a=0;a<r.length;a++){if(l=r[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;u$(o,l,u),i=s}}}if(pg)throw e=px,pg=!1,px=null,e}function Gt(e,t){var n=t[Sx];n===void 0&&(n=t[Sx]=new Set);var r=e+"__bubble";n.has(r)||(K_(t,e,2,!1),n.add(r))}function ab(e,t,n){var r=0;t&&(r|=4),K_(n,e,r,t)}var Dm="_reactListening"+Math.random().toString(36).slice(2);function Qf(e){if(!e[Dm]){e[Dm]=!0,t_.forEach(function(n){n!=="selectionchange"&&(PH.has(n)||ab(n,!1,e),ab(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dm]||(t[Dm]=!0,ab("selectionchange",!1,t))}}function K_(e,t,n,r){switch(R_(t)){case 1:var o=zB;break;case 4:o=jB;break;default:o=$C}n=o.bind(null,t,n,e),o=void 0,!fx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function lb(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;l!==null;){if(a=$s(l),a===null)return;if(s=a.tag,s===5||s===6){r=i=a;continue e}l=l.parentNode}}r=r.return}v_(function(){var u=i,c=SC(n),d=[];e:{var f=G_.get(e);if(f!==void 0){var m=OC,p=e;switch(e){case"keypress":if(Fh(n)===0)break e;case"keydown":case"keyup":m=tH;break;case"focusin":p="focus",m=eb;break;case"focusout":p="blur",m=eb;break;case"beforeblur":case"afterblur":m=eb;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Xk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=UB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=oH;break;case H_:case U_:case V_:m=GB;break;case W_:m=aH;break;case"scroll":m=BB;break;case"wheel":m=sH;break;case"copy":case"cut":case"paste":m=KB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Jk}var h=(t&4)!==0,y=!h&&e==="scroll",b=h?f!==null?f+"Capture":null:f;h=[];for(var g=u,x;g!==null;){x=g;var w=x.stateNode;if(x.tag===5&&w!==null&&(x=w,b!==null&&(w=Uf(g,b),w!=null&&h.push(Yf(g,w,x)))),y)break;g=g.return}0<h.length&&(f=new m(f,p,null,n,c),d.push({event:f,listeners:h}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==cx&&(p=n.relatedTarget||n.fromElement)&&($s(p)||p[La]))break e;if((m||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,m?(p=n.relatedTarget||n.toElement,m=u,p=p?$s(p):null,p!==null&&(y=du(p),p!==y||p.tag!==5&&p.tag!==6)&&(p=null)):(m=null,p=u),m!==p)){if(h=Xk,w="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=Jk,w="onPointerLeave",b="onPointerEnter",g="pointer"),y=m==null?f:nc(m),x=p==null?f:nc(p),f=new h(w,g+"leave",m,n,c),f.target=y,f.relatedTarget=x,w=null,$s(c)===u&&(h=new h(b,g+"enter",p,n,c),h.target=x,h.relatedTarget=y,w=h),y=w,m&&p)t:{for(h=m,b=p,g=0,x=h;x;x=Su(x))g++;for(x=0,w=b;w;w=Su(w))x++;for(;0<g-x;)h=Su(h),g--;for(;0<x-g;)b=Su(b),x--;for(;g--;){if(h===b||b!==null&&h===b.alternate)break t;h=Su(h),b=Su(b)}h=null}else h=null;m!==null&&c$(d,f,m,h,!1),p!==null&&y!==null&&c$(d,y,p,h,!0)}}e:{if(f=u?nc(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var P=hH;else if(n$(f))if(D_)P=bH;else{P=vH;var C=gH}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(P=yH);if(P&&(P=P(e,u))){L_(d,P,n,c);break e}C&&C(e,f,u),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&ix(f,"number",f.value)}switch(C=u?nc(u):window,e){case"focusin":(n$(C)||C.contentEditable==="true")&&(ec=C,vx=u,xf=null);break;case"focusout":xf=vx=ec=null;break;case"mousedown":yx=!0;break;case"contextmenu":case"mouseup":case"dragend":yx=!1,l$(d,n,c);break;case"selectionchange":if(CH)break;case"keydown":case"keyup":l$(d,n,c)}var E;if(RC)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else Ju?F_(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(__&&n.locale!=="ko"&&(Ju||S!=="onCompositionStart"?S==="onCompositionEnd"&&Ju&&(E=T_()):(kl=c,IC="value"in kl?kl.value:kl.textContent,Ju=!0)),C=yg(u,S),0<C.length&&(S=new Zk(S,e,null,n,c),d.push({event:S,listeners:C}),E?S.data=E:(E=A_(n),E!==null&&(S.data=E)))),(E=cH?dH(e,n):fH(e,n))&&(u=yg(u,"onBeforeInput"),0<u.length&&(c=new Zk("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=E))}q_(d,t)})}function Yf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yg(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Uf(e,n),i!=null&&r.unshift(Yf(e,i,o)),i=Uf(e,t),i!=null&&r.push(Yf(e,i,o))),e=e.return}return r}function Su(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function c$(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,o?(s=Uf(n,i),s!=null&&a.unshift(Yf(n,s,l))):o||(s=Uf(n,i),s!=null&&a.push(Yf(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var kH=/\r\n?/g,$H=/\u0000|\uFFFD/g;function d$(e){return(typeof e=="string"?e:""+e).replace(kH,`
`).replace($H,"")}function Nm(e,t,n){if(t=d$(t),d$(e)!==t&&n)throw Error(Me(425))}function bg(){}var bx=null,xx=null;function wx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cx=typeof setTimeout=="function"?setTimeout:void 0,IH=typeof clearTimeout=="function"?clearTimeout:void 0,f$=typeof Promise=="function"?Promise:void 0,OH=typeof queueMicrotask=="function"?queueMicrotask:typeof f$<"u"?function(e){return f$.resolve(null).then(e).catch(MH)}:Cx;function MH(e){setTimeout(function(){throw e})}function sb(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Gf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Gf(t)}function Dl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function p$(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var nd=Math.random().toString(36).slice(2),_i="__reactFiber$"+nd,Xf="__reactProps$"+nd,La="__reactContainer$"+nd,Sx="__reactEvents$"+nd,RH="__reactListeners$"+nd,TH="__reactHandles$"+nd;function $s(e){var t=e[_i];if(t)return t;for(var n=e.parentNode;n;){if(t=n[La]||n[_i]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=p$(e);e!==null;){if(n=e[_i])return n;e=p$(e)}return t}e=n,n=e.parentNode}return null}function Tp(e){return e=e[_i]||e[La],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function Tv(e){return e[Xf]||null}var Ex=[],rc=-1;function es(e){return{current:e}}function Xt(e){0>rc||(e.current=Ex[rc],Ex[rc]=null,rc--)}function Ht(e,t){rc++,Ex[rc]=e.current,e.current=t}var Kl={},cr=es(Kl),_r=es(!1),Gs=Kl;function Oc(e,t){var n=e.type.contextTypes;if(!n)return Kl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fr(e){return e=e.childContextTypes,e!=null}function xg(){Xt(_r),Xt(cr)}function m$(e,t,n){if(cr.current!==Kl)throw Error(Me(168));Ht(cr,t),Ht(_r,n)}function Q_(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Me(108,gB(e)||"Unknown",o));return sn({},n,r)}function wg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kl,Gs=cr.current,Ht(cr,e),Ht(_r,_r.current),!0}function h$(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=Q_(e,t,Gs),r.__reactInternalMemoizedMergedChildContext=e,Xt(_r),Xt(cr),Ht(cr,e)):Xt(_r),Ht(_r,n)}var wa=null,_v=!1,ub=!1;function Y_(e){wa===null?wa=[e]:wa.push(e)}function _H(e){_v=!0,Y_(e)}function ts(){if(!ub&&wa!==null){ub=!0;var e=0,t=Tt;try{var n=wa;for(Tt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wa=null,_v=!1}catch(o){throw wa!==null&&(wa=wa.slice(e+1)),w_(EC,ts),o}finally{Tt=t,ub=!1}}return null}var oc=[],ic=0,Cg=null,Sg=0,ko=[],$o=0,qs=null,Ea=1,Pa="";function vs(e,t){oc[ic++]=Sg,oc[ic++]=Cg,Cg=e,Sg=t}function X_(e,t,n){ko[$o++]=Ea,ko[$o++]=Pa,ko[$o++]=qs,qs=e;var r=Ea;e=Pa;var o=32-ci(r)-1;r&=~(1<<o),n+=1;var i=32-ci(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Ea=1<<32-ci(t)+o|n<<o|r,Pa=i+e}else Ea=1<<i|n<<o|r,Pa=e}function _C(e){e.return!==null&&(vs(e,1),X_(e,1,0))}function FC(e){for(;e===Cg;)Cg=oc[--ic],oc[ic]=null,Sg=oc[--ic],oc[ic]=null;for(;e===qs;)qs=ko[--$o],ko[$o]=null,Pa=ko[--$o],ko[$o]=null,Ea=ko[--$o],ko[$o]=null}var ro=null,no=null,nn=!1,ai=null;function Z_(e,t){var n=Oo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function g$(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ro=e,no=Dl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ro=e,no=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qs!==null?{id:Ea,overflow:Pa}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Oo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ro=e,no=null,!0):!1;default:return!1}}function Px(e){return(e.mode&1)!==0&&(e.flags&128)===0}function kx(e){if(nn){var t=no;if(t){var n=t;if(!g$(e,t)){if(Px(e))throw Error(Me(418));t=Dl(n.nextSibling);var r=ro;t&&g$(e,t)?Z_(r,n):(e.flags=e.flags&-4097|2,nn=!1,ro=e)}}else{if(Px(e))throw Error(Me(418));e.flags=e.flags&-4097|2,nn=!1,ro=e}}}function v$(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ro=e}function zm(e){if(e!==ro)return!1;if(!nn)return v$(e),nn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wx(e.type,e.memoizedProps)),t&&(t=no)){if(Px(e))throw J_(),Error(Me(418));for(;t;)Z_(e,t),t=Dl(t.nextSibling)}if(v$(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Me(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){no=Dl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}no=null}}else no=ro?Dl(e.stateNode.nextSibling):null;return!0}function J_(){for(var e=no;e;)e=Dl(e.nextSibling)}function Mc(){no=ro=null,nn=!1}function AC(e){ai===null?ai=[e]:ai.push(e)}var FH=Wa.ReactCurrentBatchConfig;function ti(e,t){if(e&&e.defaultProps){t=sn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Eg=es(null),Pg=null,ac=null,LC=null;function DC(){LC=ac=Pg=null}function NC(e){var t=Eg.current;Xt(Eg),e._currentValue=t}function $x(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function vc(e,t){Pg=e,LC=ac=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tr=!0),e.firstContext=null)}function Ao(e){var t=e._currentValue;if(LC!==e)if(e={context:e,memoizedValue:t,next:null},ac===null){if(Pg===null)throw Error(Me(308));ac=e,Pg.dependencies={lanes:0,firstContext:e}}else ac=ac.next=e;return t}var Is=null;function zC(e){Is===null?Is=[e]:Is.push(e)}function eF(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zC(t)):(n.next=o.next,o.next=n),t.interleaved=n,Da(e,r)}function Da(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gl=!1;function jC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tF(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 Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,wt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Da(e,n)}return o=r.interleaved,o===null?(t.next=t,zC(r)):(t.next=o.next,o.next=t),r.interleaved=t,Da(e,n)}function Ah(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,PC(e,n)}}function y$(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function kg(e,t,n,r){var o=e.updateQueue;gl=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==a&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(i!==null){var d=o.baseState;a=0,c=u=s=null,l=i;do{var f=l.lane,m=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,h=l;switch(f=t,m=n,h.tag){case 1:if(p=h.payload,typeof p=="function"){d=p.call(m,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=h.payload,f=typeof p=="function"?p.call(m,d,f):p,f==null)break e;d=sn({},d,f);break e;case 2:gl=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=m,s=d):c=c.next=m,a|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Qs|=a,e.lanes=a,e.memoizedState=d}}function b$(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Me(191,o));o.call(r)}}}var nF=new e_.Component().refs;function Ix(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:sn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fv={isMounted:function(e){return(e=e._reactInternals)?du(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Sr(),o=jl(e),i=Ma(r,o);i.payload=t,n!=null&&(i.callback=n),t=Nl(e,i,o),t!==null&&(di(t,e,o,r),Ah(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Sr(),o=jl(e),i=Ma(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Nl(e,i,o),t!==null&&(di(t,e,o,r),Ah(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Sr(),r=jl(e),o=Ma(n,r);o.tag=2,t!=null&&(o.callback=t),t=Nl(e,o,r),t!==null&&(di(t,e,r,n),Ah(t,e,r))}};function x$(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Kf(n,r)||!Kf(o,i):!0}function rF(e,t,n){var r=!1,o=Kl,i=t.contextType;return typeof i=="object"&&i!==null?i=Ao(i):(o=Fr(t)?Gs:cr.current,r=t.contextTypes,i=(r=r!=null)?Oc(e,o):Kl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Fv,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function w$(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Fv.enqueueReplaceState(t,t.state,null)}function Ox(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=nF,jC(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ao(i):(i=Fr(t)?Gs:cr.current,o.context=Oc(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ix(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Fv.enqueueReplaceState(o,o.state,null),kg(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Fd(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Me(309));var r=n.stateNode}if(!r)throw Error(Me(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;l===nF&&(l=o.refs={}),a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(Me(284));if(!n._owner)throw Error(Me(290,e))}return e}function jm(e,t){throw e=Object.prototype.toString.call(t),Error(Me(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function C$(e){var t=e._init;return t(e._payload)}function oF(e){function t(b,g){if(e){var x=b.deletions;x===null?(b.deletions=[g],b.flags|=16):x.push(g)}}function n(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function r(b,g){for(b=new Map;g!==null;)g.key!==null?b.set(g.key,g):b.set(g.index,g),g=g.sibling;return b}function o(b,g){return b=Bl(b,g),b.index=0,b.sibling=null,b}function i(b,g,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<g?(b.flags|=2,g):x):(b.flags|=2,g)):(b.flags|=1048576,g)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function l(b,g,x,w){return g===null||g.tag!==6?(g=gb(x,b.mode,w),g.return=b,g):(g=o(g,x),g.return=b,g)}function s(b,g,x,w){var P=x.type;return P===Zu?c(b,g,x.props.children,w,x.key):g!==null&&(g.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===hl&&C$(P)===g.type)?(w=o(g,x.props),w.ref=Fd(b,g,x),w.return=b,w):(w=Bh(x.type,x.key,x.props,null,b.mode,w),w.ref=Fd(b,g,x),w.return=b,w)}function u(b,g,x,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=vb(x,b.mode,w),g.return=b,g):(g=o(g,x.children||[]),g.return=b,g)}function c(b,g,x,w,P){return g===null||g.tag!==7?(g=Ls(x,b.mode,w,P),g.return=b,g):(g=o(g,x),g.return=b,g)}function d(b,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=gb(""+g,b.mode,x),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Om:return x=Bh(g.type,g.key,g.props,null,b.mode,x),x.ref=Fd(b,null,g),x.return=b,x;case Xu:return g=vb(g,b.mode,x),g.return=b,g;case hl:var w=g._init;return d(b,w(g._payload),x)}if(sf(g)||Od(g))return g=Ls(g,b.mode,x,null),g.return=b,g;jm(b,g)}return null}function f(b,g,x,w){var P=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return P!==null?null:l(b,g,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Om:return x.key===P?s(b,g,x,w):null;case Xu:return x.key===P?u(b,g,x,w):null;case hl:return P=x._init,f(b,g,P(x._payload),w)}if(sf(x)||Od(x))return P!==null?null:c(b,g,x,w,null);jm(b,x)}return null}function m(b,g,x,w,P){if(typeof w=="string"&&w!==""||typeof w=="number")return b=b.get(x)||null,l(g,b,""+w,P);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Om:return b=b.get(w.key===null?x:w.key)||null,s(g,b,w,P);case Xu:return b=b.get(w.key===null?x:w.key)||null,u(g,b,w,P);case hl:var C=w._init;return m(b,g,x,C(w._payload),P)}if(sf(w)||Od(w))return b=b.get(x)||null,c(g,b,w,P,null);jm(g,w)}return null}function p(b,g,x,w){for(var P=null,C=null,E=g,S=g=0,R=null;E!==null&&S<x.length;S++){E.index>S?(R=E,E=null):R=E.sibling;var I=f(b,E,x[S],w);if(I===null){E===null&&(E=R);break}e&&E&&I.alternate===null&&t(b,E),g=i(I,g,S),C===null?P=I:C.sibling=I,C=I,E=R}if(S===x.length)return n(b,E),nn&&vs(b,S),P;if(E===null){for(;S<x.length;S++)E=d(b,x[S],w),E!==null&&(g=i(E,g,S),C===null?P=E:C.sibling=E,C=E);return nn&&vs(b,S),P}for(E=r(b,E);S<x.length;S++)R=m(E,b,S,x[S],w),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?S:R.key),g=i(R,g,S),C===null?P=R:C.sibling=R,C=R);return e&&E.forEach(function(M){return t(b,M)}),nn&&vs(b,S),P}function h(b,g,x,w){var P=Od(x);if(typeof P!="function")throw Error(Me(150));if(x=P.call(x),x==null)throw Error(Me(151));for(var C=P=null,E=g,S=g=0,R=null,I=x.next();E!==null&&!I.done;S++,I=x.next()){E.index>S?(R=E,E=null):R=E.sibling;var M=f(b,E,I.value,w);if(M===null){E===null&&(E=R);break}e&&E&&M.alternate===null&&t(b,E),g=i(M,g,S),C===null?P=M:C.sibling=M,C=M,E=R}if(I.done)return n(b,E),nn&&vs(b,S),P;if(E===null){for(;!I.done;S++,I=x.next())I=d(b,I.value,w),I!==null&&(g=i(I,g,S),C===null?P=I:C.sibling=I,C=I);return nn&&vs(b,S),P}for(E=r(b,E);!I.done;S++,I=x.next())I=m(E,b,S,I.value,w),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?S:I.key),g=i(I,g,S),C===null?P=I:C.sibling=I,C=I);return e&&E.forEach(function(_){return t(b,_)}),nn&&vs(b,S),P}function y(b,g,x,w){if(typeof x=="object"&&x!==null&&x.type===Zu&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Om:e:{for(var P=x.key,C=g;C!==null;){if(C.key===P){if(P=x.type,P===Zu){if(C.tag===7){n(b,C.sibling),g=o(C,x.props.children),g.return=b,b=g;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===hl&&C$(P)===C.type){n(b,C.sibling),g=o(C,x.props),g.ref=Fd(b,C,x),g.return=b,b=g;break e}n(b,C);break}else t(b,C);C=C.sibling}x.type===Zu?(g=Ls(x.props.children,b.mode,w,x.key),g.return=b,b=g):(w=Bh(x.type,x.key,x.props,null,b.mode,w),w.ref=Fd(b,g,x),w.return=b,b=w)}return a(b);case Xu:e:{for(C=x.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(b,g.sibling),g=o(g,x.children||[]),g.return=b,b=g;break e}else{n(b,g);break}else t(b,g);g=g.sibling}g=vb(x,b.mode,w),g.return=b,b=g}return a(b);case hl:return C=x._init,y(b,g,C(x._payload),w)}if(sf(x))return p(b,g,x,w);if(Od(x))return h(b,g,x,w);jm(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(b,g.sibling),g=o(g,x),g.return=b,b=g):(n(b,g),g=gb(x,b.mode,w),g.return=b,b=g),a(b)):n(b,g)}return y}var Rc=oF(!0),iF=oF(!1),_p={},Ni=es(_p),Zf=es(_p),Jf=es(_p);function Os(e){if(e===_p)throw Error(Me(174));return e}function BC(e,t){switch(Ht(Jf,t),Ht(Zf,e),Ht(Ni,_p),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lx(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=lx(t,e)}Xt(Ni),Ht(Ni,t)}function Tc(){Xt(Ni),Xt(Zf),Xt(Jf)}function aF(e){Os(Jf.current);var t=Os(Ni.current),n=lx(t,e.type);t!==n&&(Ht(Zf,e),Ht(Ni,n))}function HC(e){Zf.current===e&&(Xt(Ni),Xt(Zf))}var on=es(0);function $g(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cb=[];function UC(){for(var e=0;e<cb.length;e++)cb[e]._workInProgressVersionPrimary=null;cb.length=0}var Lh=Wa.ReactCurrentDispatcher,db=Wa.ReactCurrentBatchConfig,Ks=0,an=null,_n=null,Bn=null,Ig=!1,wf=!1,ep=0,AH=0;function or(){throw Error(Me(321))}function VC(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pi(e[n],t[n]))return!1;return!0}function WC(e,t,n,r,o,i){if(Ks=i,an=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lh.current=e===null||e.memoizedState===null?zH:jH,e=n(r,o),wf){i=0;do{if(wf=!1,ep=0,25<=i)throw Error(Me(301));i+=1,Bn=_n=null,t.updateQueue=null,Lh.current=BH,e=n(r,o)}while(wf)}if(Lh.current=Og,t=_n!==null&&_n.next!==null,Ks=0,Bn=_n=an=null,Ig=!1,t)throw Error(Me(300));return e}function GC(){var e=ep!==0;return ep=0,e}function ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bn===null?an.memoizedState=Bn=e:Bn=Bn.next=e,Bn}function Lo(){if(_n===null){var e=an.alternate;e=e!==null?e.memoizedState:null}else e=_n.next;var t=Bn===null?an.memoizedState:Bn.next;if(t!==null)Bn=t,_n=e;else{if(e===null)throw Error(Me(310));_n=e,e={memoizedState:_n.memoizedState,baseState:_n.baseState,baseQueue:_n.baseQueue,queue:_n.queue,next:null},Bn===null?an.memoizedState=Bn=e:Bn=Bn.next=e}return Bn}function tp(e,t){return typeof t=="function"?t(e):t}function fb(e){var t=Lo(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=_n,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((Ks&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=d,a=r):s=s.next=d,an.lanes|=c,Qs|=c}u=u.next}while(u!==null&&u!==i);s===null?a=r:s.next=l,pi(r,t.memoizedState)||(Tr=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,an.lanes|=i,Qs|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function pb(e){var t=Lo(),n=t.queue;if(n===null)throw Error(Me(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);pi(i,t.memoizedState)||(Tr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function lF(){}function sF(e,t){var n=an,r=Lo(),o=t(),i=!pi(r.memoizedState,o);if(i&&(r.memoizedState=o,Tr=!0),r=r.queue,qC(dF.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Bn!==null&&Bn.memoizedState.tag&1){if(n.flags|=2048,np(9,cF.bind(null,n,r,o,t),void 0,null),Vn===null)throw Error(Me(349));Ks&30||uF(n,t,o)}return o}function uF(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=an.updateQueue,t===null?(t={lastEffect:null,stores:null},an.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cF(e,t,n,r){t.value=n,t.getSnapshot=r,fF(t)&&pF(e)}function dF(e,t,n){return n(function(){fF(t)&&pF(e)})}function fF(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pi(e,n)}catch{return!0}}function pF(e){var t=Da(e,1);t!==null&&di(t,e,1,-1)}function S$(e){var t=ki();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tp,lastRenderedState:e},t.queue=e,e=e.dispatch=NH.bind(null,an,e),[t.memoizedState,e]}function np(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=an.updateQueue,t===null?(t={lastEffect:null,stores:null},an.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function mF(){return Lo().memoizedState}function Dh(e,t,n,r){var o=ki();an.flags|=e,o.memoizedState=np(1|t,n,void 0,r===void 0?null:r)}function Av(e,t,n,r){var o=Lo();r=r===void 0?null:r;var i=void 0;if(_n!==null){var a=_n.memoizedState;if(i=a.destroy,r!==null&&VC(r,a.deps)){o.memoizedState=np(t,n,i,r);return}}an.flags|=e,o.memoizedState=np(1|t,n,i,r)}function E$(e,t){return Dh(8390656,8,e,t)}function qC(e,t){return Av(2048,8,e,t)}function hF(e,t){return Av(4,2,e,t)}function gF(e,t){return Av(4,4,e,t)}function vF(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yF(e,t,n){return n=n!=null?n.concat([e]):null,Av(4,4,vF.bind(null,t,e),n)}function KC(){}function bF(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&VC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xF(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&VC(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wF(e,t,n){return Ks&21?(pi(n,t)||(n=E_(),an.lanes|=n,Qs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Tr=!0),e.memoizedState=n)}function LH(e,t){var n=Tt;Tt=n!==0&&4>n?n:4,e(!0);var r=db.transition;db.transition={};try{e(!1),t()}finally{Tt=n,db.transition=r}}function CF(){return Lo().memoizedState}function DH(e,t,n){var r=jl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},SF(e))EF(t,n);else if(n=eF(e,t,n,r),n!==null){var o=Sr();di(n,e,r,o),PF(n,t,r)}}function NH(e,t,n){var r=jl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(SF(e))EF(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,pi(l,a)){var s=t.interleaved;s===null?(o.next=o,zC(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=eF(e,t,o,r),n!==null&&(o=Sr(),di(n,e,r,o),PF(n,t,r))}}function SF(e){var t=e.alternate;return e===an||t!==null&&t===an}function EF(e,t){wf=Ig=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function PF(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,PC(e,n)}}var Og={readContext:Ao,useCallback:or,useContext:or,useEffect:or,useImperativeHandle:or,useInsertionEffect:or,useLayoutEffect:or,useMemo:or,useReducer:or,useRef:or,useState:or,useDebugValue:or,useDeferredValue:or,useTransition:or,useMutableSource:or,useSyncExternalStore:or,useId:or,unstable_isNewReconciler:!1},zH={readContext:Ao,useCallback:function(e,t){return ki().memoizedState=[e,t===void 0?null:t],e},useContext:Ao,useEffect:E$,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dh(4194308,4,vF.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dh(4,2,e,t)},useMemo:function(e,t){var n=ki();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ki();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=DH.bind(null,an,e),[r.memoizedState,e]},useRef:function(e){var t=ki();return e={current:e},t.memoizedState=e},useState:S$,useDebugValue:KC,useDeferredValue:function(e){return ki().memoizedState=e},useTransition:function(){var e=S$(!1),t=e[0];return e=LH.bind(null,e[1]),ki().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=an,o=ki();if(nn){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),Vn===null)throw Error(Me(349));Ks&30||uF(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,E$(dF.bind(null,r,i,e),[e]),r.flags|=2048,np(9,cF.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ki(),t=Vn.identifierPrefix;if(nn){var n=Pa,r=Ea;n=(r&~(1<<32-ci(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ep++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=AH++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jH={readContext:Ao,useCallback:bF,useContext:Ao,useEffect:qC,useImperativeHandle:yF,useInsertionEffect:hF,useLayoutEffect:gF,useMemo:xF,useReducer:fb,useRef:mF,useState:function(){return fb(tp)},useDebugValue:KC,useDeferredValue:function(e){var t=Lo();return wF(t,_n.memoizedState,e)},useTransition:function(){var e=fb(tp)[0],t=Lo().memoizedState;return[e,t]},useMutableSource:lF,useSyncExternalStore:sF,useId:CF,unstable_isNewReconciler:!1},BH={readContext:Ao,useCallback:bF,useContext:Ao,useEffect:qC,useImperativeHandle:yF,useInsertionEffect:hF,useLayoutEffect:gF,useMemo:xF,useReducer:pb,useRef:mF,useState:function(){return pb(tp)},useDebugValue:KC,useDeferredValue:function(e){var t=Lo();return _n===null?t.memoizedState=e:wF(t,_n.memoizedState,e)},useTransition:function(){var e=pb(tp)[0],t=Lo().memoizedState;return[e,t]},useMutableSource:lF,useSyncExternalStore:sF,useId:CF,unstable_isNewReconciler:!1};function _c(e,t){try{var n="",r=t;do n+=hB(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function mb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Mx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var HH=typeof WeakMap=="function"?WeakMap:Map;function kF(e,t,n){n=Ma(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rg||(Rg=!0,jx=r),Mx(e,t)},n}function $F(e,t,n){n=Ma(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Mx(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Mx(e,t),typeof r!="function"&&(zl===null?zl=new Set([this]):zl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function P$(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new HH;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=n6.bind(null,e,t,n),t.then(e,e))}function k$(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 $$(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ma(-1,1),t.tag=2,Nl(n,t,1))),n.lanes|=1),e)}var UH=Wa.ReactCurrentOwner,Tr=!1;function vr(e,t,n,r){t.child=e===null?iF(t,null,n,r):Rc(t,e.child,n,r)}function I$(e,t,n,r,o){n=n.render;var i=t.ref;return vc(t,o),r=WC(e,t,n,r,i,o),n=GC(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Na(e,t,o)):(nn&&n&&_C(t),t.flags|=1,vr(e,t,r,o),t.child)}function O$(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!nS(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,IF(e,t,i,r,o)):(e=Bh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Kf,n(a,r)&&e.ref===t.ref)return Na(e,t,o)}return t.flags|=1,e=Bl(i,r),e.ref=t.ref,e.return=t,t.child=e}function IF(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Kf(i,r)&&e.ref===t.ref)if(Tr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Tr=!0);else return t.lanes=e.lanes,Na(e,t,o)}return Rx(e,t,n,r,o)}function OF(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ht(sc,Yr),Yr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ht(sc,Yr),Yr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ht(sc,Yr),Yr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ht(sc,Yr),Yr|=r;return vr(e,t,o,n),t.child}function MF(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rx(e,t,n,r,o){var i=Fr(n)?Gs:cr.current;return i=Oc(t,i),vc(t,o),n=WC(e,t,n,r,i,o),r=GC(),e!==null&&!Tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Na(e,t,o)):(nn&&r&&_C(t),t.flags|=1,vr(e,t,n,o),t.child)}function M$(e,t,n,r,o){if(Fr(n)){var i=!0;wg(t)}else i=!1;if(vc(t,o),t.stateNode===null)Nh(e,t),rF(t,n,r),Ox(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ao(u):(u=Fr(n)?Gs:cr.current,u=Oc(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&w$(t,a,r,u),gl=!1;var f=t.memoizedState;a.state=f,kg(t,r,a,o),s=t.memoizedState,l!==r||f!==s||_r.current||gl?(typeof c=="function"&&(Ix(t,n,c,r),s=t.memoizedState),(l=gl||x$(t,n,l,r,f,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,tF(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ti(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ao(s):(s=Fr(n)?Gs:cr.current,s=Oc(t,s));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||f!==s)&&w$(t,a,r,s),gl=!1,f=t.memoizedState,a.state=f,kg(t,r,a,o);var p=t.memoizedState;l!==d||f!==p||_r.current||gl?(typeof m=="function"&&(Ix(t,n,m,r),p=t.memoizedState),(u=gl||x$(t,n,u,r,f,p,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,p,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,p,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Tx(e,t,n,r,i,o)}function Tx(e,t,n,r,o,i){MF(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&h$(t,n,!1),Na(e,t,i);r=t.stateNode,UH.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Rc(t,e.child,null,i),t.child=Rc(t,null,l,i)):vr(e,t,l,i),t.memoizedState=r.state,o&&h$(t,n,!0),t.child}function RF(e){var t=e.stateNode;t.pendingContext?m$(e,t.pendingContext,t.pendingContext!==t.context):t.context&&m$(e,t.context,!1),BC(e,t.containerInfo)}function R$(e,t,n,r,o){return Mc(),AC(o),t.flags|=256,vr(e,t,n,r),t.child}var _x={dehydrated:null,treeContext:null,retryLane:0};function Fx(e){return{baseLanes:e,cachePool:null,transitions:null}}function TF(e,t,n){var r=t.pendingProps,o=on.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ht(on,o&1),e===null)return kx(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Nv(a,r,0,null),e=Ls(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fx(n),t.memoizedState=_x,e):QC(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return VH(e,t,a,r,l,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Bl(o,s),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Bl(l,i):(i=Ls(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Fx(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=_x,r}return i=e.child,e=i.sibling,r=Bl(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function QC(e,t){return t=Nv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bm(e,t,n,r){return r!==null&&AC(r),Rc(t,e.child,null,n),e=QC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VH(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=mb(Error(Me(422))),Bm(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Nv({mode:"visible",children:r.children},o,0,null),i=Ls(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Rc(t,e.child,null,a),t.child.memoizedState=Fx(a),t.memoizedState=_x,i);if(!(t.mode&1))return Bm(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(Me(419)),r=mb(i,r,void 0),Bm(e,t,a,r)}if(l=(a&e.childLanes)!==0,Tr||l){if(r=Vn,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Da(e,o),di(r,e,o,-1))}return tS(),r=mb(Error(Me(421))),Bm(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=r6.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,no=Dl(o.nextSibling),ro=t,nn=!0,ai=null,e!==null&&(ko[$o++]=Ea,ko[$o++]=Pa,ko[$o++]=qs,Ea=e.id,Pa=e.overflow,qs=t),t=QC(t,r.children),t.flags|=4096,t)}function T$(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$x(e.return,t,n)}function hb(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function _F(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(vr(e,t,r.children,n),r=on.current,r&2)r=r&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&&T$(e,n,t);else if(e.tag===19)T$(e,n,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}r&=1}if(Ht(on,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&$g(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),hb(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&$g(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}hb(t,!0,n,null,i);break;case"together":hb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Na(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Me(153));if(t.child!==null){for(e=t.child,n=Bl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function WH(e,t,n){switch(t.tag){case 3:RF(t),Mc();break;case 5:aF(t);break;case 1:Fr(t.type)&&wg(t);break;case 4:BC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ht(Eg,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ht(on,on.current&1),t.flags|=128,null):n&t.child.childLanes?TF(e,t,n):(Ht(on,on.current&1),e=Na(e,t,n),e!==null?e.sibling:null);Ht(on,on.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _F(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ht(on,on.current),r)break;return null;case 22:case 23:return t.lanes=0,OF(e,t,n)}return Na(e,t,n)}var FF,Ax,AF,LF;FF=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ax=function(){};AF=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Os(Ni.current);var i=null;switch(n){case"input":o=rx(e,o),r=rx(e,r),i=[];break;case"select":o=sn({},o,{value:void 0}),r=sn({},r,{value:void 0}),i=[];break;case"textarea":o=ax(e,o),r=ax(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bg)}sx(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bf.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bf.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Gt("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};LF=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ad(e,t){if(!nn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ir(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function GH(e,t,n){var r=t.pendingProps;switch(FC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ir(t),null;case 1:return Fr(t.type)&&xg(),ir(t),null;case 3:return r=t.stateNode,Tc(),Xt(_r),Xt(cr),UC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ai!==null&&(Ux(ai),ai=null))),Ax(e,t),ir(t),null;case 5:HC(t);var o=Os(Jf.current);if(n=t.type,e!==null&&t.stateNode!=null)AF(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Me(166));return ir(t),null}if(e=Os(Ni.current),zm(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[_i]=t,r[Xf]=i,e=(t.mode&1)!==0,n){case"dialog":Gt("cancel",r),Gt("close",r);break;case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(o=0;o<cf.length;o++)Gt(cf[o],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"details":Gt("toggle",r);break;case"input":Bk(r,i),Gt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Gt("invalid",r);break;case"textarea":Uk(r,i),Gt("invalid",r)}sx(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Nm(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Nm(r.textContent,l,e),o=["children",""+l]):Bf.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Gt("scroll",r)}switch(n){case"input":Mm(r),Hk(r,i,!0);break;case"textarea":Mm(r),Vk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=bg)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=u_(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[_i]=t,e[Xf]=r,FF(e,t,!1,!1),t.stateNode=e;e:{switch(a=ux(n,r),n){case"dialog":Gt("cancel",e),Gt("close",e),o=r;break;case"iframe":case"object":case"embed":Gt("load",e),o=r;break;case"video":case"audio":for(o=0;o<cf.length;o++)Gt(cf[o],e);o=r;break;case"source":Gt("error",e),o=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),o=r;break;case"details":Gt("toggle",e),o=r;break;case"input":Bk(e,r),o=rx(e,r),Gt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=sn({},r,{value:void 0}),Gt("invalid",e);break;case"textarea":Uk(e,r),o=ax(e,r),Gt("invalid",e);break;default:o=r}sx(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?f_(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&c_(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Hf(e,s):typeof s=="number"&&Hf(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Bf.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Gt("scroll",e):s!=null&&bC(e,i,s,a))}switch(n){case"input":Mm(e),Hk(e,r,!1);break;case"textarea":Mm(e),Vk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ql(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?pc(e,!!r.multiple,i,!1):r.defaultValue!=null&&pc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=bg)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ir(t),null;case 6:if(e&&t.stateNode!=null)LF(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Me(166));if(n=Os(Jf.current),Os(Ni.current),zm(t)){if(r=t.stateNode,n=t.memoizedProps,r[_i]=t,(i=r.nodeValue!==n)&&(e=ro,e!==null))switch(e.tag){case 3:Nm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Nm(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_i]=t,t.stateNode=r}return ir(t),null;case 13:if(Xt(on),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(nn&&no!==null&&t.mode&1&&!(t.flags&128))J_(),Mc(),t.flags|=98560,i=!1;else if(i=zm(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Me(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Me(317));i[_i]=t}else Mc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ir(t),i=!1}else ai!==null&&(Ux(ai),ai=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||on.current&1?Fn===0&&(Fn=3):tS())),t.updateQueue!==null&&(t.flags|=4),ir(t),null);case 4:return Tc(),Ax(e,t),e===null&&Qf(t.stateNode.containerInfo),ir(t),null;case 10:return NC(t.type._context),ir(t),null;case 17:return Fr(t.type)&&xg(),ir(t),null;case 19:if(Xt(on),i=t.memoizedState,i===null)return ir(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Ad(i,!1);else{if(Fn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=$g(e),a!==null){for(t.flags|=128,Ad(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ht(on,on.current&1|2),t.child}e=e.sibling}i.tail!==null&&vn()>Fc&&(t.flags|=128,r=!0,Ad(i,!1),t.lanes=4194304)}else{if(!r)if(e=$g(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ad(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!nn)return ir(t),null}else 2*vn()-i.renderingStartTime>Fc&&n!==1073741824&&(t.flags|=128,r=!0,Ad(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vn(),t.sibling=null,n=on.current,Ht(on,r?n&1|2:n&1),t):(ir(t),null);case 22:case 23:return eS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Yr&1073741824&&(ir(t),t.subtreeFlags&6&&(t.flags|=8192)):ir(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function qH(e,t){switch(FC(t),t.tag){case 1:return Fr(t.type)&&xg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tc(),Xt(_r),Xt(cr),UC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return HC(t),null;case 13:if(Xt(on),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));Mc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xt(on),null;case 4:return Tc(),null;case 10:return NC(t.type._context),null;case 22:case 23:return eS(),null;case 24:return null;default:return null}}var Hm=!1,ur=!1,KH=typeof WeakSet=="function"?WeakSet:Set,ze=null;function lc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fn(e,t,r)}else n.current=null}function Lx(e,t,n){try{n()}catch(r){fn(e,t,r)}}var _$=!1;function QH(e,t){if(bx=gg,e=j_(),TC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(l=a+o),d!==i||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===o&&(l=a),f===i&&++c===r&&(s=a),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(xx={focusedElem:e,selectionRange:n},gg=!1,ze=t;ze!==null;)if(t=ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ze=e;else for(;ze!==null;){t=ze;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var h=p.memoizedProps,y=p.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?h:ti(t.type,h),y);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(w){fn(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ze=e;break}ze=t.return}return p=_$,_$=!1,p}function Cf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Lx(t,n,i)}o=o.next}while(o!==r)}}function Lv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Dx(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function DF(e){var t=e.alternate;t!==null&&(e.alternate=null,DF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_i],delete t[Xf],delete t[Sx],delete t[RH],delete t[TH])),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 NF(e){return e.tag===5||e.tag===3||e.tag===4}function F$(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||NF(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 Nx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bg));else if(r!==4&&(e=e.child,e!==null))for(Nx(e,t,n),e=e.sibling;e!==null;)Nx(e,t,n),e=e.sibling}function zx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zx(e,t,n),e=e.sibling;e!==null;)zx(e,t,n),e=e.sibling}var Qn=null,oi=!1;function sl(e,t,n){for(n=n.child;n!==null;)zF(e,t,n),n=n.sibling}function zF(e,t,n){if(Di&&typeof Di.onCommitFiberUnmount=="function")try{Di.onCommitFiberUnmount(Iv,n)}catch{}switch(n.tag){case 5:ur||lc(n,t);case 6:var r=Qn,o=oi;Qn=null,sl(e,t,n),Qn=r,oi=o,Qn!==null&&(oi?(e=Qn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qn.removeChild(n.stateNode));break;case 18:Qn!==null&&(oi?(e=Qn,n=n.stateNode,e.nodeType===8?sb(e.parentNode,n):e.nodeType===1&&sb(e,n),Gf(e)):sb(Qn,n.stateNode));break;case 4:r=Qn,o=oi,Qn=n.stateNode.containerInfo,oi=!0,sl(e,t,n),Qn=r,oi=o;break;case 0:case 11:case 14:case 15:if(!ur&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Lx(n,t,a),o=o.next}while(o!==r)}sl(e,t,n);break;case 1:if(!ur&&(lc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fn(n,t,l)}sl(e,t,n);break;case 21:sl(e,t,n);break;case 22:n.mode&1?(ur=(r=ur)||n.memoizedState!==null,sl(e,t,n),ur=r):sl(e,t,n);break;default:sl(e,t,n)}}function A$(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KH),t.forEach(function(r){var o=o6.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Jo(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Qn=l.stateNode,oi=!1;break e;case 3:Qn=l.stateNode.containerInfo,oi=!0;break e;case 4:Qn=l.stateNode.containerInfo,oi=!0;break e}l=l.return}if(Qn===null)throw Error(Me(160));zF(i,a,o),Qn=null,oi=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(u){fn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jF(t,e),t=t.sibling}function jF(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jo(t,e),wi(e),r&4){try{Cf(3,e,e.return),Lv(3,e)}catch(h){fn(e,e.return,h)}try{Cf(5,e,e.return)}catch(h){fn(e,e.return,h)}}break;case 1:Jo(t,e),wi(e),r&512&&n!==null&&lc(n,n.return);break;case 5:if(Jo(t,e),wi(e),r&512&&n!==null&&lc(n,n.return),e.flags&32){var o=e.stateNode;try{Hf(o,"")}catch(h){fn(e,e.return,h)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&l_(o,i),ux(l,a);var u=ux(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?f_(o,d):c==="dangerouslySetInnerHTML"?c_(o,d):c==="children"?Hf(o,d):bC(o,c,d,u)}switch(l){case"input":ox(o,i);break;case"textarea":s_(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?pc(o,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?pc(o,!!i.multiple,i.defaultValue,!0):pc(o,!!i.multiple,i.multiple?[]:"",!1))}o[Xf]=i}catch(h){fn(e,e.return,h)}}break;case 6:if(Jo(t,e),wi(e),r&4){if(e.stateNode===null)throw Error(Me(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(h){fn(e,e.return,h)}}break;case 3:if(Jo(t,e),wi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Gf(t.containerInfo)}catch(h){fn(e,e.return,h)}break;case 4:Jo(t,e),wi(e);break;case 13:Jo(t,e),wi(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ZC=vn())),r&4&&A$(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ur=(u=ur)||c,Jo(t,e),ur=u):Jo(t,e),wi(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(ze=e,c=e.child;c!==null;){for(d=ze=c;ze!==null;){switch(f=ze,m=f.child,f.tag){case 0:case 11:case 14:case 15:Cf(4,f,f.return);break;case 1:lc(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(h){fn(r,n,h)}}break;case 5:lc(f,f.return);break;case 22:if(f.memoizedState!==null){D$(d);continue}}m!==null?(m.return=f,ze=m):D$(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=d_("display",a))}catch(h){fn(e,e.return,h)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(h){fn(e,e.return,h)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Jo(t,e),wi(e),r&4&&A$(e);break;case 21:break;default:Jo(t,e),wi(e)}}function wi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(NF(n)){var r=n;break e}n=n.return}throw Error(Me(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Hf(o,""),r.flags&=-33);var i=F$(e);zx(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=F$(e);Nx(e,l,a);break;default:throw Error(Me(161))}}catch(s){fn(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function YH(e,t,n){ze=e,BF(e)}function BF(e,t,n){for(var r=(e.mode&1)!==0;ze!==null;){var o=ze,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Hm;if(!a){var l=o.alternate,s=l!==null&&l.memoizedState!==null||ur;l=Hm;var u=ur;if(Hm=a,(ur=s)&&!u)for(ze=o;ze!==null;)a=ze,s=a.child,a.tag===22&&a.memoizedState!==null?N$(o):s!==null?(s.return=a,ze=s):N$(o);for(;i!==null;)ze=i,BF(i),i=i.sibling;ze=o,Hm=l,ur=u}L$(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,ze=i):L$(e)}}function L$(e){for(;ze!==null;){var t=ze;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ur||Lv(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ur)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ti(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&b$(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}b$(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Gf(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Me(163))}ur||t.flags&512&&Dx(t)}catch(f){fn(t,t.return,f)}}if(t===e){ze=null;break}if(n=t.sibling,n!==null){n.return=t.return,ze=n;break}ze=t.return}}function D$(e){for(;ze!==null;){var t=ze;if(t===e){ze=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ze=n;break}ze=t.return}}function N$(e){for(;ze!==null;){var t=ze;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Lv(4,t)}catch(s){fn(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){fn(t,o,s)}}var i=t.return;try{Dx(t)}catch(s){fn(t,i,s)}break;case 5:var a=t.return;try{Dx(t)}catch(s){fn(t,a,s)}}}catch(s){fn(t,t.return,s)}if(t===e){ze=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ze=l;break}ze=t.return}}var XH=Math.ceil,Mg=Wa.ReactCurrentDispatcher,YC=Wa.ReactCurrentOwner,To=Wa.ReactCurrentBatchConfig,wt=0,Vn=null,$n=null,tr=0,Yr=0,sc=es(0),Fn=0,rp=null,Qs=0,Dv=0,XC=0,Sf=null,Rr=null,ZC=0,Fc=1/0,xa=null,Rg=!1,jx=null,zl=null,Um=!1,$l=null,Tg=0,Ef=0,Bx=null,zh=-1,jh=0;function Sr(){return wt&6?vn():zh!==-1?zh:zh=vn()}function jl(e){return e.mode&1?wt&2&&tr!==0?tr&-tr:FH.transition!==null?(jh===0&&(jh=E_()),jh):(e=Tt,e!==0||(e=window.event,e=e===void 0?16:R_(e.type)),e):1}function di(e,t,n,r){if(50<Ef)throw Ef=0,Bx=null,Error(Me(185));Mp(e,n,r),(!(wt&2)||e!==Vn)&&(e===Vn&&(!(wt&2)&&(Dv|=n),Fn===4&&Sl(e,tr)),Ar(e,r),n===1&&wt===0&&!(t.mode&1)&&(Fc=vn()+500,_v&&ts()))}function Ar(e,t){var n=e.callbackNode;FB(e,t);var r=hg(e,e===Vn?tr:0);if(r===0)n!==null&&qk(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qk(n),t===1)e.tag===0?_H(z$.bind(null,e)):Y_(z$.bind(null,e)),OH(function(){!(wt&6)&&ts()}),n=null;else{switch(P_(r)){case 1:n=EC;break;case 4:n=C_;break;case 16:n=mg;break;case 536870912:n=S_;break;default:n=mg}n=QF(n,HF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function HF(e,t){if(zh=-1,jh=0,wt&6)throw Error(Me(327));var n=e.callbackNode;if(yc()&&e.callbackNode!==n)return null;var r=hg(e,e===Vn?tr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_g(e,r);else{t=r;var o=wt;wt|=2;var i=VF();(Vn!==e||tr!==t)&&(xa=null,Fc=vn()+500,As(e,t));do try{e6();break}catch(l){UF(e,l)}while(1);DC(),Mg.current=i,wt=o,$n!==null?t=0:(Vn=null,tr=0,t=Fn)}if(t!==0){if(t===2&&(o=mx(e),o!==0&&(r=o,t=Hx(e,o))),t===1)throw n=rp,As(e,0),Sl(e,r),Ar(e,vn()),n;if(t===6)Sl(e,r);else{if(o=e.current.alternate,!(r&30)&&!ZH(o)&&(t=_g(e,r),t===2&&(i=mx(e),i!==0&&(r=i,t=Hx(e,i))),t===1))throw n=rp,As(e,0),Sl(e,r),Ar(e,vn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Me(345));case 2:ys(e,Rr,xa);break;case 3:if(Sl(e,r),(r&130023424)===r&&(t=ZC+500-vn(),10<t)){if(hg(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Sr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Cx(ys.bind(null,e,Rr,xa),t);break}ys(e,Rr,xa);break;case 4:if(Sl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-ci(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=vn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*XH(r/1960))-r,10<r){e.timeoutHandle=Cx(ys.bind(null,e,Rr,xa),r);break}ys(e,Rr,xa);break;case 5:ys(e,Rr,xa);break;default:throw Error(Me(329))}}}return Ar(e,vn()),e.callbackNode===n?HF.bind(null,e):null}function Hx(e,t){var n=Sf;return e.current.memoizedState.isDehydrated&&(As(e,t).flags|=256),e=_g(e,t),e!==2&&(t=Rr,Rr=n,t!==null&&Ux(t)),e}function Ux(e){Rr===null?Rr=e:Rr.push.apply(Rr,e)}function ZH(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!pi(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sl(e,t){for(t&=~XC,t&=~Dv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ci(t),r=1<<n;e[n]=-1,t&=~r}}function z$(e){if(wt&6)throw Error(Me(327));yc();var t=hg(e,0);if(!(t&1))return Ar(e,vn()),null;var n=_g(e,t);if(e.tag!==0&&n===2){var r=mx(e);r!==0&&(t=r,n=Hx(e,r))}if(n===1)throw n=rp,As(e,0),Sl(e,t),Ar(e,vn()),n;if(n===6)throw Error(Me(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ys(e,Rr,xa),Ar(e,vn()),null}function JC(e,t){var n=wt;wt|=1;try{return e(t)}finally{wt=n,wt===0&&(Fc=vn()+500,_v&&ts())}}function Ys(e){$l!==null&&$l.tag===0&&!(wt&6)&&yc();var t=wt;wt|=1;var n=To.transition,r=Tt;try{if(To.transition=null,Tt=1,e)return e()}finally{Tt=r,To.transition=n,wt=t,!(wt&6)&&ts()}}function eS(){Yr=sc.current,Xt(sc)}function As(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,IH(n)),$n!==null)for(n=$n.return;n!==null;){var r=n;switch(FC(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xg();break;case 3:Tc(),Xt(_r),Xt(cr),UC();break;case 5:HC(r);break;case 4:Tc();break;case 13:Xt(on);break;case 19:Xt(on);break;case 10:NC(r.type._context);break;case 22:case 23:eS()}n=n.return}if(Vn=e,$n=e=Bl(e.current,null),tr=Yr=t,Fn=0,rp=null,XC=Dv=Qs=0,Rr=Sf=null,Is!==null){for(t=0;t<Is.length;t++)if(n=Is[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Is=null}return e}function UF(e,t){do{var n=$n;try{if(DC(),Lh.current=Og,Ig){for(var r=an.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ig=!1}if(Ks=0,Bn=_n=an=null,wf=!1,ep=0,YC.current=null,n===null||n.return===null){Fn=1,rp=t,$n=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=tr,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=k$(a);if(m!==null){m.flags&=-257,$$(m,a,l,i,t),m.mode&1&&P$(i,u,t),t=m,s=u;var p=t.updateQueue;if(p===null){var h=new Set;h.add(s),t.updateQueue=h}else p.add(s);break e}else{if(!(t&1)){P$(i,u,t),tS();break e}s=Error(Me(426))}}else if(nn&&l.mode&1){var y=k$(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),$$(y,a,l,i,t),AC(_c(s,l));break e}}i=s=_c(s,l),Fn!==4&&(Fn=2),Sf===null?Sf=[i]:Sf.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=kF(i,s,t);y$(i,b);break e;case 1:l=s;var g=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(zl===null||!zl.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=$F(i,l,t);y$(i,w);break e}}i=i.return}while(i!==null)}GF(n)}catch(P){t=P,$n===n&&n!==null&&($n=n=n.return);continue}break}while(1)}function VF(){var e=Mg.current;return Mg.current=Og,e===null?Og:e}function tS(){(Fn===0||Fn===3||Fn===2)&&(Fn=4),Vn===null||!(Qs&268435455)&&!(Dv&268435455)||Sl(Vn,tr)}function _g(e,t){var n=wt;wt|=2;var r=VF();(Vn!==e||tr!==t)&&(xa=null,As(e,t));do try{JH();break}catch(o){UF(e,o)}while(1);if(DC(),wt=n,Mg.current=r,$n!==null)throw Error(Me(261));return Vn=null,tr=0,Fn}function JH(){for(;$n!==null;)WF($n)}function e6(){for(;$n!==null&&!PB();)WF($n)}function WF(e){var t=KF(e.alternate,e,Yr);e.memoizedProps=e.pendingProps,t===null?GF(e):$n=t,YC.current=null}function GF(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=qH(n,t),n!==null){n.flags&=32767,$n=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fn=6,$n=null;return}}else if(n=GH(n,t,Yr),n!==null){$n=n;return}if(t=t.sibling,t!==null){$n=t;return}$n=t=e}while(t!==null);Fn===0&&(Fn=5)}function ys(e,t,n){var r=Tt,o=To.transition;try{To.transition=null,Tt=1,t6(e,t,n,r)}finally{To.transition=o,Tt=r}return null}function t6(e,t,n,r){do yc();while($l!==null);if(wt&6)throw Error(Me(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Me(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(AB(e,i),e===Vn&&($n=Vn=null,tr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Um||(Um=!0,QF(mg,function(){return yc(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=To.transition,To.transition=null;var a=Tt;Tt=1;var l=wt;wt|=4,YC.current=null,QH(e,n),jF(n,e),wH(xx),gg=!!bx,xx=bx=null,e.current=n,YH(n),kB(),wt=l,Tt=a,To.transition=i}else e.current=n;if(Um&&(Um=!1,$l=e,Tg=o),i=e.pendingLanes,i===0&&(zl=null),OB(n.stateNode),Ar(e,vn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Rg)throw Rg=!1,e=jx,jx=null,e;return Tg&1&&e.tag!==0&&yc(),i=e.pendingLanes,i&1?e===Bx?Ef++:(Ef=0,Bx=e):Ef=0,ts(),null}function yc(){if($l!==null){var e=P_(Tg),t=To.transition,n=Tt;try{if(To.transition=null,Tt=16>e?16:e,$l===null)var r=!1;else{if(e=$l,$l=null,Tg=0,wt&6)throw Error(Me(331));var o=wt;for(wt|=4,ze=e.current;ze!==null;){var i=ze,a=i.child;if(ze.flags&16){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(ze=u;ze!==null;){var c=ze;switch(c.tag){case 0:case 11:case 15:Cf(8,c,i)}var d=c.child;if(d!==null)d.return=c,ze=d;else for(;ze!==null;){c=ze;var f=c.sibling,m=c.return;if(DF(c),c===u){ze=null;break}if(f!==null){f.return=m,ze=f;break}ze=m}}}var p=i.alternate;if(p!==null){var h=p.child;if(h!==null){p.child=null;do{var y=h.sibling;h.sibling=null,h=y}while(h!==null)}}ze=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,ze=a;else e:for(;ze!==null;){if(i=ze,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Cf(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,ze=b;break e}ze=i.return}}var g=e.current;for(ze=g;ze!==null;){a=ze;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,ze=x;else e:for(a=g;ze!==null;){if(l=ze,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Lv(9,l)}}catch(P){fn(l,l.return,P)}if(l===a){ze=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,ze=w;break e}ze=l.return}}if(wt=o,ts(),Di&&typeof Di.onPostCommitFiberRoot=="function")try{Di.onPostCommitFiberRoot(Iv,e)}catch{}r=!0}return r}finally{Tt=n,To.transition=t}}return!1}function j$(e,t,n){t=_c(n,t),t=kF(e,t,1),e=Nl(e,t,1),t=Sr(),e!==null&&(Mp(e,1,t),Ar(e,t))}function fn(e,t,n){if(e.tag===3)j$(e,e,n);else for(;t!==null;){if(t.tag===3){j$(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zl===null||!zl.has(r))){e=_c(n,e),e=$F(t,e,1),t=Nl(t,e,1),e=Sr(),t!==null&&(Mp(t,1,e),Ar(t,e));break}}t=t.return}}function n6(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Sr(),e.pingedLanes|=e.suspendedLanes&n,Vn===e&&(tr&n)===n&&(Fn===4||Fn===3&&(tr&130023424)===tr&&500>vn()-ZC?As(e,0):XC|=n),Ar(e,t)}function qF(e,t){t===0&&(e.mode&1?(t=_m,_m<<=1,!(_m&130023424)&&(_m=4194304)):t=1);var n=Sr();e=Da(e,t),e!==null&&(Mp(e,t,n),Ar(e,n))}function r6(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qF(e,n)}function o6(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),qF(e,n)}var KF;KF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_r.current)Tr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tr=!1,WH(e,t,n);Tr=!!(e.flags&131072)}else Tr=!1,nn&&t.flags&1048576&&X_(t,Sg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nh(e,t),e=t.pendingProps;var o=Oc(t,cr.current);vc(t,n),o=WC(null,t,r,e,o,n);var i=GC();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fr(r)?(i=!0,wg(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,jC(t),o.updater=Fv,t.stateNode=o,o._reactInternals=t,Ox(t,r,e,n),t=Tx(null,t,r,!0,i,n)):(t.tag=0,nn&&i&&_C(t),vr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=a6(r),e=ti(r,e),o){case 0:t=Rx(null,t,r,e,n);break e;case 1:t=M$(null,t,r,e,n);break e;case 11:t=I$(null,t,r,e,n);break e;case 14:t=O$(null,t,r,ti(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),Rx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),M$(e,t,r,o,n);case 3:e:{if(RF(t),e===null)throw Error(Me(387));r=t.pendingProps,i=t.memoizedState,o=i.element,tF(e,t),kg(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=_c(Error(Me(423)),t),t=R$(e,t,r,n,o);break e}else if(r!==o){o=_c(Error(Me(424)),t),t=R$(e,t,r,n,o);break e}else for(no=Dl(t.stateNode.containerInfo.firstChild),ro=t,nn=!0,ai=null,n=iF(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mc(),r===o){t=Na(e,t,n);break e}vr(e,t,r,n)}t=t.child}return t;case 5:return aF(t),e===null&&kx(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,wx(r,o)?a=null:i!==null&&wx(r,i)&&(t.flags|=32),MF(e,t),vr(e,t,a,n),t.child;case 6:return e===null&&kx(t),null;case 13:return TF(e,t,n);case 4:return BC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Rc(t,null,r,n):vr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),I$(e,t,r,o,n);case 7:return vr(e,t,t.pendingProps,n),t.child;case 8:return vr(e,t,t.pendingProps.children,n),t.child;case 12:return vr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ht(Eg,r._currentValue),r._currentValue=a,i!==null)if(pi(i.value,a)){if(i.children===o.children&&!_r.current){t=Na(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ma(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),$x(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Me(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),$x(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}vr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vc(t,n),o=Ao(o),r=r(o),t.flags|=1,vr(e,t,r,n),t.child;case 14:return r=t.type,o=ti(r,t.pendingProps),o=ti(r.type,o),O$(e,t,r,o,n);case 15:return IF(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),Nh(e,t),t.tag=1,Fr(r)?(e=!0,wg(t)):e=!1,vc(t,n),rF(t,r,o),Ox(t,r,o,n),Tx(null,t,r,!0,e,n);case 19:return _F(e,t,n);case 22:return OF(e,t,n)}throw Error(Me(156,t.tag))};function QF(e,t){return w_(e,t)}function i6(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(e,t,n,r){return new i6(e,t,n,r)}function nS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function a6(e){if(typeof e=="function")return nS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wC)return 11;if(e===CC)return 14}return 2}function Bl(e,t){var n=e.alternate;return n===null?(n=Oo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bh(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")nS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Zu:return Ls(n.children,o,i,t);case xC:a=8,o|=8;break;case J1:return e=Oo(12,n,t,o|2),e.elementType=J1,e.lanes=i,e;case ex:return e=Oo(13,n,t,o),e.elementType=ex,e.lanes=i,e;case tx:return e=Oo(19,n,t,o),e.elementType=tx,e.lanes=i,e;case o_:return Nv(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case n_:a=10;break e;case r_:a=9;break e;case wC:a=11;break e;case CC:a=14;break e;case hl:a=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=Oo(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ls(e,t,n,r){return e=Oo(7,e,r,t),e.lanes=n,e}function Nv(e,t,n,r){return e=Oo(22,e,r,t),e.elementType=o_,e.lanes=n,e.stateNode={isHidden:!1},e}function gb(e,t,n){return e=Oo(6,e,null,t),e.lanes=n,e}function vb(e,t,n){return t=Oo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function l6(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=X0(0),this.expirationTimes=X0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=X0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function rS(e,t,n,r,o,i,a,l,s){return e=new l6(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Oo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jC(i),e}function s6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xu,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function YF(e){if(!e)return Kl;e=e._reactInternals;e:{if(du(e)!==e||e.tag!==1)throw Error(Me(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Me(171))}if(e.tag===1){var n=e.type;if(Fr(n))return Q_(e,n,t)}return t}function XF(e,t,n,r,o,i,a,l,s){return e=rS(n,r,!0,e,o,i,a,l,s),e.context=YF(null),n=e.current,r=Sr(),o=jl(n),i=Ma(r,o),i.callback=t??null,Nl(n,i,o),e.current.lanes=o,Mp(e,o,r),Ar(e,r),e}function zv(e,t,n,r){var o=t.current,i=Sr(),a=jl(o);return n=YF(n),t.context===null?t.context=n:t.pendingContext=n,t=Ma(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nl(o,t,a),e!==null&&(di(e,o,a,i),Ah(e,o,a)),a}function Fg(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function B$(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function oS(e,t){B$(e,t),(e=e.alternate)&&B$(e,t)}function u6(){return null}var ZF=typeof reportError=="function"?reportError:function(e){console.error(e)};function iS(e){this._internalRoot=e}jv.prototype.render=iS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Me(409));zv(e,t,null,null)};jv.prototype.unmount=iS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ys(function(){zv(null,e,null,null)}),t[La]=null}};function jv(e){this._internalRoot=e}jv.prototype.unstable_scheduleHydration=function(e){if(e){var t=I_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cl.length&&t!==0&&t<Cl[n].priority;n++);Cl.splice(n,0,e),n===0&&M_(e)}};function aS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Bv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function H$(){}function c6(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Fg(a);i.call(u)}}var a=XF(t,r,e,0,null,!1,!1,"",H$);return e._reactRootContainer=a,e[La]=a.current,Qf(e.nodeType===8?e.parentNode:e),Ys(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Fg(s);l.call(u)}}var s=rS(e,0,!1,null,null,!1,!1,"",H$);return e._reactRootContainer=s,e[La]=s.current,Qf(e.nodeType===8?e.parentNode:e),Ys(function(){zv(t,s,n,r)}),s}function Hv(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var s=Fg(a);l.call(s)}}zv(t,a,e,o)}else a=c6(n,t,e,o,r);return Fg(a)}k_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=uf(t.pendingLanes);n!==0&&(PC(t,n|1),Ar(t,vn()),!(wt&6)&&(Fc=vn()+500,ts()))}break;case 13:Ys(function(){var r=Da(e,1);if(r!==null){var o=Sr();di(r,e,1,o)}}),oS(e,1)}};kC=function(e){if(e.tag===13){var t=Da(e,134217728);if(t!==null){var n=Sr();di(t,e,134217728,n)}oS(e,134217728)}};$_=function(e){if(e.tag===13){var t=jl(e),n=Da(e,t);if(n!==null){var r=Sr();di(n,e,t,r)}oS(e,t)}};I_=function(){return Tt};O_=function(e,t){var n=Tt;try{return Tt=e,t()}finally{Tt=n}};dx=function(e,t,n){switch(t){case"input":if(ox(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Tv(r);if(!o)throw Error(Me(90));a_(r),ox(r,o)}}}break;case"textarea":s_(e,n);break;case"select":t=n.value,t!=null&&pc(e,!!n.multiple,t,!1)}};h_=JC;g_=Ys;var d6={usingClientEntryPoint:!1,Events:[Tp,nc,Tv,p_,m_,JC]},Ld={findFiberByHostInstance:$s,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},f6={bundleType:Ld.bundleType,version:Ld.version,rendererPackageName:Ld.rendererPackageName,rendererConfig:Ld.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=b_(e),e===null?null:e.stateNode},findFiberByHostInstance:Ld.findFiberByHostInstance||u6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vm.isDisabled&&Vm.supportsFiber)try{Iv=Vm.inject(f6),Di=Vm}catch{}}so.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d6;so.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!aS(t))throw Error(Me(200));return s6(e,t,null,n)};so.createRoot=function(e,t){if(!aS(e))throw Error(Me(299));var n=!1,r="",o=ZF;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=rS(e,1,!1,null,null,n,!1,r,o),e[La]=t.current,Qf(e.nodeType===8?e.parentNode:e),new iS(t)};so.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Me(188)):(e=Object.keys(e).join(","),Error(Me(268,e)));return e=b_(t),e=e===null?null:e.stateNode,e};so.flushSync=function(e){return Ys(e)};so.hydrate=function(e,t,n){if(!Bv(t))throw Error(Me(200));return Hv(null,e,t,!0,n)};so.hydrateRoot=function(e,t,n){if(!aS(e))throw Error(Me(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=ZF;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=XF(t,null,e,1,n??null,o,!1,i,a),e[La]=t.current,Qf(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new jv(t)};so.render=function(e,t,n){if(!Bv(t))throw Error(Me(200));return Hv(null,e,t,!1,n)};so.unmountComponentAtNode=function(e){if(!Bv(e))throw Error(Me(40));return e._reactRootContainer?(Ys(function(){Hv(null,null,e,!1,function(){e._reactRootContainer=null,e[La]=null})}),!0):!1};so.unstable_batchedUpdates=JC;so.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Bv(n))throw Error(Me(200));if(e==null||e._reactInternals===void 0)throw Error(Me(38));return Hv(e,t,n,!1,r)};so.version="18.2.0-next-9e3b772b8-20220608";function JF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(JF)}catch(e){console.error(e)}}JF(),XT.exports=so;var ns=XT.exports;const Wm=Xi(ns);var eA,U$=ns;eA=U$.createRoot,U$.hydrateRoot;class rd{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const op=typeof window>"u"||"Deno"in window;function bo(){}function p6(e,t){return typeof e=="function"?e(t):e}function Vx(e){return typeof e=="number"&&e>=0&&e!==1/0}function tA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uc(e,t,n){return Fp(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function m6(e,t,n){return Fp(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function vl(e,t,n){return Fp(e)?[{...t,queryKey:e},n]:[e||{},t]}function V$(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:l}=e;if(Fp(a)){if(r){if(t.queryHash!==lS(a,t.options))return!1}else if(!Ag(t.queryKey,a))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function W$(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Fp(i)){if(!t.options.mutationKey)return!1;if(n){if(Ms(t.options.mutationKey)!==Ms(i))return!1}else if(!Ag(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function lS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ms)(e)}function Ms(e){return JSON.stringify(e,(t,n)=>Wx(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ag(e,t){return nA(e,t)}function nA(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!nA(e[n],t[n])):!1}function rA(e,t){if(e===t)return e;const n=G$(e)&&G$(t);if(n||Wx(e)&&Wx(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let l=0;for(let s=0;s<i;s++){const u=n?s:o[s];a[u]=rA(e[u],t[u]),a[u]===e[u]&&l++}return r===i&&l===r?e:a}return t}function Lg(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function G$(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wx(e){if(!q$(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!q$(n)||!n.hasOwnProperty("isPrototypeOf"))}function q$(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fp(e){return Array.isArray(e)}function oA(e){return new Promise(t=>{setTimeout(t,e)})}function K$(e){oA(0).then(e)}function h6(){if(typeof AbortController=="function")return new AbortController}function Gx(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?rA(e,t):t}class g6 extends rd{constructor(){super(),this.setup=t=>{if(!op&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Dg=new g6,Q$=["online","offline"];class v6 extends rd{constructor(){super(),this.setup=t=>{if(!op&&window.addEventListener){const n=()=>t();return Q$.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Q$.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Ng=new v6;function y6(e){return Math.min(1e3*2**e,3e4)}function Uv(e){return(e??"online")==="online"?Ng.isOnline():!0}class iA{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Hh(e){return e instanceof iA}function aA(e){let t=!1,n=0,r=!1,o,i,a;const l=new Promise((y,b)=>{i=y,a=b}),s=y=>{r||(m(new iA(y)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Dg.isFocused()||e.networkMode!=="always"&&!Ng.isOnline(),f=y=>{r||(r=!0,e.onSuccess==null||e.onSuccess(y),o==null||o(),i(y))},m=y=>{r||(r=!0,e.onError==null||e.onError(y),o==null||o(),a(y))},p=()=>new Promise(y=>{o=b=>{const g=r||!d();return g&&y(b),g},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),h=()=>{if(r)return;let y;try{y=e.fn()}catch(b){y=Promise.reject(b)}Promise.resolve(y).then(f).catch(b=>{var g,x;if(r)return;const w=(g=e.retry)!=null?g:3,P=(x=e.retryDelay)!=null?x:y6,C=typeof P=="function"?P(n,b):P,E=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,b);if(t||!E){m(b);return}n++,e.onFail==null||e.onFail(n,b),oA(C).then(()=>{if(d())return p()}).then(()=>{t?m(b):h()})})};return Uv(e.networkMode)?h():p().then(h),{promise:l,cancel:s,continue:()=>(o==null?void 0:o())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const sS=console;function b6(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},i=c=>{t?e.push(c):K$(()=>{n(c)})},a=c=>(...d)=>{i(()=>{c(...d)})},l=()=>{const c=e;e=[],c.length&&K$(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const pn=b6();class lA{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vx(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(op?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class x6 extends lA{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||sS,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||w6(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Gx(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(bo).catch(bo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!tA(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const a=h6(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(s(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const f=m=>{if(Hh(m)&&m.silent||this.dispatch({type:"error",error:m}),!Hh(m)){var p,h,y,b;(p=(h=this.cache.config).onError)==null||p.call(h,m,this),(y=(b=this.cache.config).onSettled)==null||y.call(b,this.state.data,m,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=aA({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:m=>{var p,h,y,b;if(typeof m>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(m),(p=(h=this.cache.config).onSuccess)==null||p.call(h,m,this),(y=(b=this.cache.config).onSettled)==null||y.call(b,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(m,p)=>{this.dispatch({type:"failed",failureCount:m,error:p})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Uv(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Hh(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),pn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function w6(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class C6 extends rd{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:lS(i,n);let l=this.get(a);return l||(l=new x6({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){pn.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=vl(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>V$(r,o))}findAll(t,n){const[r]=vl(t,n);return Object.keys(r).length>0?this.queries.filter(o=>V$(r,o)):this.queries}notify(t){pn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){pn.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){pn.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class S6 extends lA{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||sS,this.observers=[],this.state=t.state||sA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var E;return this.retryer=aA({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(S,R)=>{this.dispatch({type:"failed",failureCount:S,error:R})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(E=this.options.retry)!=null?E:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,l,s,u,c;if(!n){var d,f,m,p;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const S=await((m=(p=this.options).onMutate)==null?void 0:m.call(p,this.state.variables));S!==this.state.context&&this.dispatch({type:"loading",context:S,variables:this.state.variables})}const E=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,E,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,E,this.state.variables,this.state.context)),await((l=(s=this.mutationCache.config).onSettled)==null?void 0:l.call(s,E,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,E,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:E}),E}catch(E){try{var h,y,b,g,x,w,P,C;throw await((h=(y=this.mutationCache.config).onError)==null?void 0:h.call(y,E,this.state.variables,this.state.context,this)),await((b=(g=this.options).onError)==null?void 0:b.call(g,E,this.state.variables,this.state.context)),await((x=(w=this.mutationCache.config).onSettled)==null?void 0:x.call(w,void 0,E,this.state.variables,this.state.context,this)),await((P=(C=this.options).onSettled)==null?void 0:P.call(C,void 0,E,this.state.variables,this.state.context)),E}finally{this.dispatch({type:"error",error:E})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Uv(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),pn.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function sA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class E6 extends rd{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new S6({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){pn.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>W$(t,n))}findAll(t){return this.mutations.filter(n=>W$(t,n))}notify(t){pn.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return pn.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(bo)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function qx(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const l=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,s=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=s==null?void 0:s.pageParam,c=(s==null?void 0:s.direction)==="forward",d=(s==null?void 0:s.direction)==="backward",f=((i=e.state.data)==null?void 0:i.pages)||[],m=((a=e.state.data)==null?void 0:a.pageParams)||[];let p=m,h=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var E;if((E=e.signal)!=null&&E.aborted)h=!0;else{var S;(S=e.signal)==null||S.addEventListener("abort",()=>{h=!0})}return e.signal}})},b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),g=(C,E,S,R)=>(p=R?[E,...p]:[...p,E],R?[S,...C]:[...C,S]),x=(C,E,S,R)=>{if(h)return Promise.reject("Cancelled");if(typeof S>"u"&&!E&&C.length)return Promise.resolve(C);const I={queryKey:e.queryKey,pageParam:S,meta:e.options.meta};y(I);const M=b(I);return Promise.resolve(M).then(D=>g(C,S,D,R))};let w;if(!f.length)w=x([]);else if(c){const C=typeof u<"u",E=C?u:Kx(e.options,f);w=x(f,C,E)}else if(d){const C=typeof u<"u",E=C?u:uA(e.options,f);w=x(f,C,E,!0)}else{p=[];const C=typeof e.options.getNextPageParam>"u";w=(l&&f[0]?l(f[0],0,f):!0)?x([],C,m[0]):Promise.resolve(g([],m[0],f[0]));for(let S=1;S<f.length;S++)w=w.then(R=>{if(l&&f[S]?l(f[S],S,f):!0){const M=C?m[S]:Kx(e.options,R);return x(R,C,M)}return Promise.resolve(g(R,m[S],f[S]))})}return w.then(C=>({pages:C,pageParams:p}))}}}}function Kx(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function uA(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function P6(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=Kx(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function k6(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=uA(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class Y${constructor(t={}){this.queryCache=t.queryCache||new C6,this.mutationCache=t.mutationCache||new E6,this.logger=t.logger||sS,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Dg.subscribe(()=>{Dg.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Ng.subscribe(()=>{Ng.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=vl(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=uc(t,n,r),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=p6(n,i);if(typeof a>"u")return;const l=uc(t),s=this.defaultQueryOptions(l);return this.queryCache.build(this,s).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return pn.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=vl(t,n),o=this.queryCache;pn.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=vl(t,n,r),a=this.queryCache,l={type:"active",...o};return pn.batch(()=>(a.findAll(o).forEach(s=>{s.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,n,r){const[o,i={}]=vl(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=pn.batch(()=>this.queryCache.findAll(o).map(l=>l.cancel(i)));return Promise.all(a).then(bo).catch(bo)}invalidateQueries(t,n,r){const[o,i]=vl(t,n,r);return pn.batch(()=>{var a,l;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const s={...o,type:(a=(l=o.refetchType)!=null?l:o.type)!=null?a:"active"};return this.refetchQueries(s,i)})}refetchQueries(t,n,r){const[o,i]=vl(t,n,r),a=pn.batch(()=>this.queryCache.findAll(o).filter(s=>!s.isDisabled()).map(s=>{var u;return s.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let l=Promise.all(a).then(bo);return i!=null&&i.throwOnError||(l=l.catch(bo)),l}fetchQuery(t,n,r){const o=uc(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(bo).catch(bo)}fetchInfiniteQuery(t,n,r){const o=uc(t,n,r);return o.behavior=qx(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(bo).catch(bo)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>Ms(t)===Ms(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Ag(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>Ms(t)===Ms(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Ag(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=lS(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class cA extends rd{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),X$(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qx(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qx(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Lg(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&Z$(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return I6(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(bo)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),op||this.currentResult.isStale||!Vx(this.options.staleTime))return;const n=tA(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(op||this.options.enabled===!1||!Vx(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Dg.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,l=this.currentResultOptions,s=t!==r,u=s?t.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:m,errorUpdatedAt:p,fetchStatus:h,status:y}=d,b=!1,g=!1,x;if(n._optimisticResults){const S=this.hasListeners(),R=!S&&X$(t,n),I=S&&Z$(t,r,n,o);(R||I)&&(h=Uv(t.options.networkMode)?"fetching":"paused",f||(y="loading")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&y!=="error")x=c.data,f=c.dataUpdatedAt,y=c.status,b=!0;else if(n.select&&typeof d.data<"u")if(i&&d.data===(a==null?void 0:a.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(d.data),x=Gx(i==null?void 0:i.data,x,n),this.selectResult=x,this.selectError=null}catch(S){this.selectError=S}else x=d.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&y==="loading"){let S;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))S=i.data;else if(S=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof S<"u")try{S=n.select(S),this.selectError=null}catch(R){this.selectError=R}typeof S<"u"&&(y="success",x=Gx(i==null?void 0:i.data,S,n),g=!0)}this.selectError&&(m=this.selectError,x=this.selectResult,p=Date.now(),y="error");const w=h==="fetching",P=y==="loading",C=y==="error";return{status:y,fetchStatus:h,isLoading:P,isSuccess:y==="success",isError:C,isInitialLoading:P&&w,data:x,dataUpdatedAt:f,error:m,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!P,isLoadingError:C&&d.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:g,isPreviousData:b,isRefetchError:C&&d.dataUpdatedAt!==0,isStale:uS(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Lg(r,n))return;this.currentResult=r;const o={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,l=typeof a=="function"?a():a;if(l==="all"||!l&&!this.trackedProps.size)return!0;const s=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!Hh(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){pn.batch(()=>{if(t.onSuccess){var n,r,o,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,l,s,u;(a=(l=this.options).onError)==null||a.call(l,this.currentResult.error),(s=(u=this.options).onSettled)==null||s.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function $6(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function X$(e,t){return $6(e,t)||e.state.dataUpdatedAt>0&&Qx(e,t,t.refetchOnMount)}function Qx(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&uS(e,t)}return!1}function Z$(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&uS(e,n)}function uS(e,t){return e.isStaleByTime(t.staleTime)}function I6(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Lg(e.getCurrentResult(),t)}class O6 extends cA{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:qx()},n)}getOptimisticResult(t){return t.behavior=qx(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,o,i,a,l,s;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:f}=c,m=d&&((r=u.fetchMeta)==null||(o=r.fetchMore)==null?void 0:o.direction)==="forward",p=d&&((i=u.fetchMeta)==null||(a=i.fetchMore)==null?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:P6(n,(l=u.data)==null?void 0:l.pages),hasPreviousPage:k6(n,(s=u.data)==null?void 0:s.pages),isFetchingNextPage:m,isFetchingPreviousPage:p,isRefetching:f&&!m&&!p}}}let M6=class extends rd{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Lg(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:sA(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){pn.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,o,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(o=(i=this.mutateOptions).onSettled)==null||o.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,l,s,u;(a=(l=this.mutateOptions).onError)==null||a.call(l,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(s=(u=this.mutateOptions).onSettled)==null||s.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var dA={exports:{}},fA={};/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ac=v;function R6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var T6=typeof Object.is=="function"?Object.is:R6,_6=Ac.useState,F6=Ac.useEffect,A6=Ac.useLayoutEffect,L6=Ac.useDebugValue;function D6(e,t){var n=t(),r=_6({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return A6(function(){o.value=n,o.getSnapshot=t,yb(o)&&i({inst:o})},[e,n,t]),F6(function(){return yb(o)&&i({inst:o}),e(function(){yb(o)&&i({inst:o})})},[e]),L6(n),n}function yb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!T6(e,n)}catch{return!0}}function N6(e,t){return t()}var z6=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?N6:D6;fA.useSyncExternalStore=Ac.useSyncExternalStore!==void 0?Ac.useSyncExternalStore:z6;dA.exports=fA;var j6=dA.exports;const pA=j6.useSyncExternalStore,J$=v.createContext(void 0),mA=v.createContext(!1);function hA(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=J$),window.ReactQueryClientContext):J$)}const Zi=({context:e}={})=>{const t=v.useContext(hA(e,v.useContext(mA)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},B6=({client:e,children:t,context:n,contextSharing:r=!1})=>{v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=hA(n,r);return v.createElement(mA.Provider,{value:!n&&r},v.createElement(o.Provider,{value:e},t))},gA=v.createContext(!1),H6=()=>v.useContext(gA);gA.Provider;function U6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const V6=v.createContext(U6()),W6=()=>v.useContext(V6);function vA(e,t){return typeof e=="function"?e(...t):!!e}const G6=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},q6=e=>{v.useEffect(()=>{e.clearReset()},[e])},K6=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&vA(n,[e.error,r]),Q6=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Y6=(e,t)=>e.isLoading&&e.isFetching&&!t,X6=(e,t,n)=>(e==null?void 0:e.suspense)&&Y6(t,n),Z6=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function yA(e,t){const n=Zi({context:e.context}),r=H6(),o=W6(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=pn.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=pn.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=pn.batchCalls(i.onSettled)),Q6(i),G6(i,o),q6(o);const[a]=v.useState(()=>new t(n,i)),l=a.getOptimisticResult(i);if(pA(v.useCallback(s=>{const u=r?()=>{}:a.subscribe(pn.batchCalls(s));return a.updateResult(),u},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),v.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),X6(i,l,r))throw Z6(i,a,o);if(K6({result:l,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:a.trackResult(l)}function Do(e,t,n){const r=uc(e,t,n);return yA(r,cA)}function bn(e,t,n){const r=m6(e,t,n),o=Zi({context:r.context}),[i]=v.useState(()=>new M6(o,r));v.useEffect(()=>{i.setOptions(r)},[i,r]);const a=pA(v.useCallback(s=>i.subscribe(pn.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=v.useCallback((s,u)=>{i.mutate(s,u).catch(J6)},[i]);if(a.error&&vA(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function J6(){}function eU(e,t,n){const r=uc(e,t,n);return yA(r,O6)}var tU={exports:{}},bb={exports:{}},eI;function nU(){return eI||(eI=1,function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(h){return!isNaN(parseFloat(h))&&isFinite(h)}function r(h){return h.charAt(0).toUpperCase()+h.substring(1)}function o(h){return function(){return this[h]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],l=["fileName","functionName","source"],s=["args"],u=["evalOrigin"],c=i.concat(a,l,s,u);function d(h){if(h)for(var y=0;y<c.length;y++)h[c[y]]!==void 0&&this["set"+r(c[y])](h[c[y]])}d.prototype={getArgs:function(){return this.args},setArgs:function(h){if(Object.prototype.toString.call(h)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=h},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(h){if(h instanceof d)this.evalOrigin=h;else if(h instanceof Object)this.evalOrigin=new d(h);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var h=this.getFileName()||"",y=this.getLineNumber()||"",b=this.getColumnNumber()||"",g=this.getFunctionName()||"";return this.getIsEval()?h?"[eval] ("+h+":"+y+":"+b+")":"[eval]:"+y+":"+b:g?g+" ("+h+":"+y+":"+b+")":h+":"+y+":"+b}},d.fromString=function(y){var b=y.indexOf("("),g=y.lastIndexOf(")"),x=y.substring(0,b),w=y.substring(b+1,g).split(","),P=y.substring(g+1);if(P.indexOf("@")===0)var C=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(P,""),E=C[1],S=C[2],R=C[3];return new d({functionName:x,args:w||void 0,fileName:E,lineNumber:S||void 0,columnNumber:R||void 0})};for(var f=0;f<i.length;f++)d.prototype["get"+r(i[f])]=o(i[f]),d.prototype["set"+r(i[f])]=function(h){return function(y){this[h]=!!y}}(i[f]);for(var m=0;m<a.length;m++)d.prototype["get"+r(a[m])]=o(a[m]),d.prototype["set"+r(a[m])]=function(h){return function(y){if(!n(y))throw new TypeError(h+" must be a Number");this[h]=Number(y)}}(a[m]);for(var p=0;p<l.length;p++)d.prototype["get"+r(l[p])]=o(l[p]),d.prototype["set"+r(l[p])]=function(h){return function(y){this[h]=String(y)}}(l[p]);return d})}(bb)),bb.exports}(function(e,t){(function(n,r){e.exports=r(nU())})(we,function(r){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,a=/^(eval@)?(\[native code])?$/;return{parse:function(s){if(typeof s.stacktrace<"u"||typeof s["opera#sourceloc"]<"u")return this.parseOpera(s);if(s.stack&&s.stack.match(i))return this.parseV8OrIE(s);if(s.stack)return this.parseFFOrSafari(s);throw new Error("Cannot parse given Error object")},extractLocation:function(s){if(s.indexOf(":")===-1)return[s];var u=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=u.exec(s.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(s){var u=s.stack.split(`
`).filter(function(c){return!!c.match(i)},this);return u.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),f=d.match(/ (\(.+\)$)/);d=f?d.replace(f[0],""):d;var m=this.extractLocation(f?f[1]:d),p=f&&d||void 0,h=["eval","<anonymous>"].indexOf(m[0])>-1?void 0:m[0];return new r({functionName:p,fileName:h,lineNumber:m[1],columnNumber:m[2],source:c})},this)},parseFFOrSafari:function(s){var u=s.stack.split(`
`).filter(function(c){return!c.match(a)},this);return u.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new r({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=c.match(d),m=f&&f[1]?f[1]:void 0,p=this.extractLocation(c.replace(d,""));return new r({functionName:m,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseOpera:function(s){return!s.stacktrace||s.message.indexOf(`
`)>-1&&s.message.split(`
`).length>s.stacktrace.split(`
`).length?this.parseOpera9(s):s.stack?this.parseOpera11(s):this.parseOpera10(s)},parseOpera9:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,c=s.message.split(`
`),d=[],f=2,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera10:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=s.stacktrace.split(`
`),d=[],f=0,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera11:function(s){var u=s.stack.split(`
`).filter(function(c){return!!c.match(o)&&!c.match(/^Error created at/)},this);return u.map(function(c){var d=c.split("@"),f=this.extractLocation(d.pop()),m=d.shift()||"",p=m.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,h;m.match(/\(([^)]*)\)/)&&(h=m.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var y=h===void 0||h==="[arguments not available]"?void 0:h.split(",");return new r({functionName:p,args:y,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})})(tU);function bt(e,t){return{hookName:"",trace:[],resourcePath:null,legacyKey:!1}}var rU=Error,oU=EvalError,iU=RangeError,aU=ReferenceError,bA=SyntaxError,Ap=TypeError,lU=URIError,sU=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},tI=typeof Symbol<"u"&&Symbol,uU=sU,cU=function(){return typeof tI!="function"||typeof Symbol!="function"||typeof tI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:uU()},xb={__proto__:null,foo:{}},dU=Object,fU=function(){return{__proto__:xb}.foo===xb.foo&&!(xb instanceof dU)},pU="Function.prototype.bind called on incompatible ",mU=Object.prototype.toString,hU=Math.max,gU="[object Function]",nI=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},vU=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},yU=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},bU=function(t){var n=this;if(typeof n!="function"||mU.apply(n)!==gU)throw new TypeError(pU+n);for(var r=vU(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,nI(r,arguments));return Object(c)===c?c:this}return n.apply(t,nI(r,arguments))},a=hU(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+yU(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,o.prototype=new u,u.prototype=null}return o},xU=bU,cS=Function.prototype.bind||xU,wU=Function.prototype.call,CU=Object.prototype.hasOwnProperty,SU=cS,EU=SU.call(wU,CU),mt,PU=rU,kU=oU,$U=iU,IU=aU,Lc=bA,bc=Ap,OU=lU,xA=Function,wb=function(e){try{return xA('"use strict"; return ('+e+").constructor;")()}catch{}},Ds=Object.getOwnPropertyDescriptor;if(Ds)try{Ds({},"")}catch{Ds=null}var Cb=function(){throw new bc},MU=Ds?function(){try{return arguments.callee,Cb}catch{try{return Ds(arguments,"callee").get}catch{return Cb}}}():Cb,Eu=cU(),RU=fU(),jn=Object.getPrototypeOf||(RU?function(e){return e.__proto__}:null),Wu={},TU=typeof Uint8Array>"u"||!jn?mt:jn(Uint8Array),Ns={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mt:ArrayBuffer,"%ArrayIteratorPrototype%":Eu&&jn?jn([][Symbol.iterator]()):mt,"%AsyncFromSyncIteratorPrototype%":mt,"%AsyncFunction%":Wu,"%AsyncGenerator%":Wu,"%AsyncGeneratorFunction%":Wu,"%AsyncIteratorPrototype%":Wu,"%Atomics%":typeof Atomics>"u"?mt:Atomics,"%BigInt%":typeof BigInt>"u"?mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":PU,"%eval%":eval,"%EvalError%":kU,"%Float32Array%":typeof Float32Array>"u"?mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mt:FinalizationRegistry,"%Function%":xA,"%GeneratorFunction%":Wu,"%Int8Array%":typeof Int8Array>"u"?mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Eu&&jn?jn(jn([][Symbol.iterator]())):mt,"%JSON%":typeof JSON=="object"?JSON:mt,"%Map%":typeof Map>"u"?mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Eu||!jn?mt:jn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mt:Promise,"%Proxy%":typeof Proxy>"u"?mt:Proxy,"%RangeError%":$U,"%ReferenceError%":IU,"%Reflect%":typeof Reflect>"u"?mt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?mt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Eu||!jn?mt:jn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?mt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Eu&&jn?jn(""[Symbol.iterator]()):mt,"%Symbol%":Eu?Symbol:mt,"%SyntaxError%":Lc,"%ThrowTypeError%":MU,"%TypedArray%":TU,"%TypeError%":bc,"%Uint8Array%":typeof Uint8Array>"u"?mt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?mt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?mt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?mt:Uint32Array,"%URIError%":OU,"%WeakMap%":typeof WeakMap>"u"?mt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?mt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?mt:WeakSet};if(jn)try{null.error}catch(e){var _U=jn(jn(e));Ns["%Error.prototype%"]=_U}var FU=function e(t){var n;if(t==="%AsyncFunction%")n=wb("async function () {}");else if(t==="%GeneratorFunction%")n=wb("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=wb("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&jn&&(n=jn(o.prototype))}return Ns[t]=n,n},rI={__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"]},Lp=cS,zg=EU,AU=Lp.call(Function.call,Array.prototype.concat),LU=Lp.call(Function.apply,Array.prototype.splice),oI=Lp.call(Function.call,String.prototype.replace),jg=Lp.call(Function.call,String.prototype.slice),DU=Lp.call(Function.call,RegExp.prototype.exec),NU=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,zU=/\\(\\)?/g,jU=function(t){var n=jg(t,0,1),r=jg(t,-1);if(n==="%"&&r!=="%")throw new Lc("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Lc("invalid intrinsic syntax, expected opening `%`");var o=[];return oI(t,NU,function(i,a,l,s){o[o.length]=l?oI(s,zU,"$1"):a||i}),o},BU=function(t,n){var r=t,o;if(zg(rI,r)&&(o=rI[r],r="%"+o[0]+"%"),zg(Ns,r)){var i=Ns[r];if(i===Wu&&(i=FU(r)),typeof i>"u"&&!n)throw new bc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new Lc("intrinsic "+t+" does not exist!")},od=function(t,n){if(typeof t!="string"||t.length===0)throw new bc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new bc('"allowMissing" argument must be a boolean');if(DU(/^%?[^%]*%?$/,t)===null)throw new Lc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=jU(t),o=r.length>0?r[0]:"",i=BU("%"+o+"%",n),a=i.name,l=i.value,s=!1,u=i.alias;u&&(o=u[0],LU(r,AU([0,1],u)));for(var c=1,d=!0;c<r.length;c+=1){var f=r[c],m=jg(f,0,1),p=jg(f,-1);if((m==='"'||m==="'"||m==="`"||p==='"'||p==="'"||p==="`")&&m!==p)throw new Lc("property names with quotes must have matching quotes");if((f==="constructor"||!d)&&(s=!0),o+="."+f,a="%"+o+"%",zg(Ns,a))l=Ns[a];else if(l!=null){if(!(f in l)){if(!n)throw new bc("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ds&&c+1>=r.length){var h=Ds(l,f);d=!!h,d&&"get"in h&&!("originalValue"in h.get)?l=h.get:l=l[f]}else d=zg(l,f),l=l[f];d&&!s&&(Ns[a]=l)}}return l},wA={exports:{}},Sb,iI;function dS(){if(iI)return Sb;iI=1;var e=od,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Sb=t,Sb}var HU=od,Uh=HU("%Object.getOwnPropertyDescriptor%",!0);if(Uh)try{Uh([],"length")}catch{Uh=null}var CA=Uh,aI=dS(),UU=bA,Pu=Ap,lI=CA,VU=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Pu("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Pu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Pu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Pu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Pu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Pu("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!lI&&lI(t,n);if(aI)aI(t,n,{configurable:a===null&&s?s.configurable:!a,enumerable:o===null&&s?s.enumerable:!o,value:r,writable:i===null&&s?s.writable:!i});else if(l||!o&&!i&&!a)t[n]=r;else throw new UU("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Yx=dS(),SA=function(){return!!Yx};SA.hasArrayLengthDefineBug=function(){if(!Yx)return null;try{return Yx([],"length",{value:1}).length!==1}catch{return!0}};var WU=SA,GU=od,sI=VU,qU=WU(),uI=CA,cI=Ap,KU=GU("%Math.floor%"),QU=function(t,n){if(typeof t!="function")throw new cI("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||KU(n)!==n)throw new cI("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&uI){var a=uI(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(qU?sI(t,"length",n,!0,!0):sI(t,"length",n)),t};(function(e){var t=cS,n=od,r=QU,o=Ap,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(a,i),s=dS(),u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var m=l(t,a,arguments);return r(m,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return l(t,i,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(wA);var YU=wA.exports,EA=od,PA=YU,XU=PA(EA("String.prototype.indexOf")),ZU=function(t,n){var r=EA(t,!!n);return typeof r=="function"&&XU(t,".prototype.")>-1?PA(r):r};const JU={},eV=Object.freeze(Object.defineProperty({__proto__:null,default:JU},Symbol.toStringTag,{value:"Module"})),tV=Bo(eV);var fS=typeof Map=="function"&&Map.prototype,Eb=Object.getOwnPropertyDescriptor&&fS?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bg=fS&&Eb&&typeof Eb.get=="function"?Eb.get:null,dI=fS&&Map.prototype.forEach,pS=typeof Set=="function"&&Set.prototype,Pb=Object.getOwnPropertyDescriptor&&pS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hg=pS&&Pb&&typeof Pb.get=="function"?Pb.get:null,fI=pS&&Set.prototype.forEach,nV=typeof WeakMap=="function"&&WeakMap.prototype,Pf=nV?WeakMap.prototype.has:null,rV=typeof WeakSet=="function"&&WeakSet.prototype,kf=rV?WeakSet.prototype.has:null,oV=typeof WeakRef=="function"&&WeakRef.prototype,pI=oV?WeakRef.prototype.deref:null,iV=Boolean.prototype.valueOf,aV=Object.prototype.toString,lV=Function.prototype.toString,sV=String.prototype.match,mS=String.prototype.slice,Il=String.prototype.replace,uV=String.prototype.toUpperCase,mI=String.prototype.toLowerCase,kA=RegExp.prototype.test,hI=Array.prototype.concat,Oi=Array.prototype.join,cV=Array.prototype.slice,gI=Math.floor,Xx=typeof BigInt=="function"?BigInt.prototype.valueOf:null,kb=Object.getOwnPropertySymbols,Zx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",dr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Dc||"symbol")?Symbol.toStringTag:null,$A=Object.prototype.propertyIsEnumerable,vI=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function yI(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||kA.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-gI(-e):gI(e);if(r!==e){var o=String(r),i=mS.call(t,o.length+1);return Il.call(o,n,"$&_")+"."+Il.call(Il.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Il.call(t,n,"$&_")}var Jx=tV,bI=Jx.custom,xI=OA(bI)?bI:null,dV=function e(t,n,r,o){var i=n||{};if(yl(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yl(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=yl(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yl(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yl(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return RA(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?yI(t,s):s}if(typeof t=="bigint"){var u=String(t)+"n";return l?yI(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return ew(t)?"[Array]":"[Object]";var d=OV(i,r);if(typeof o>"u")o=[];else if(MA(o,t)>=0)return"[Circular]";function f(D,T,F){if(T&&(o=cV.call(o),o.push(T)),F){var N={depth:i.depth};return yl(i,"quoteStyle")&&(N.quoteStyle=i.quoteStyle),e(D,N,r+1,o)}return e(D,i,r+1,o)}if(typeof t=="function"&&!wI(t)){var m=xV(t),p=Gm(t,f);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(p.length>0?" { "+Oi.call(p,", ")+" }":"")}if(OA(t)){var h=Dc?Il.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zx.call(t);return typeof t=="object"&&!Dc?Dd(h):h}if(kV(t)){for(var y="<"+mI.call(String(t.nodeName)),b=t.attributes||[],g=0;g<b.length;g++)y+=" "+b[g].name+"="+IA(fV(b[g].value),"double",i);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+mI.call(String(t.nodeName))+">",y}if(ew(t)){if(t.length===0)return"[]";var x=Gm(t,f);return d&&!IV(x)?"["+tw(x,d)+"]":"[ "+Oi.call(x,", ")+" ]"}if(mV(t)){var w=Gm(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!$A.call(t,"cause")?"{ ["+String(t)+"] "+Oi.call(hI.call("[cause]: "+f(t.cause),w),", ")+" }":w.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Oi.call(w,", ")+" }"}if(typeof t=="object"&&a){if(xI&&typeof t[xI]=="function"&&Jx)return Jx(t,{depth:c-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(wV(t)){var P=[];return dI&&dI.call(t,function(D,T){P.push(f(T,t,!0)+" => "+f(D,t))}),CI("Map",Bg.call(t),P,d)}if(EV(t)){var C=[];return fI&&fI.call(t,function(D){C.push(f(D,t))}),CI("Set",Hg.call(t),C,d)}if(CV(t))return $b("WeakMap");if(PV(t))return $b("WeakSet");if(SV(t))return $b("WeakRef");if(gV(t))return Dd(f(Number(t)));if(yV(t))return Dd(f(Xx.call(t)));if(vV(t))return Dd(iV.call(t));if(hV(t))return Dd(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===we)return"{ [object globalThis] }";if(!pV(t)&&!wI(t)){var E=Gm(t,f),S=vI?vI(t)===Object.prototype:t instanceof Object||t.constructor===Object,R=t instanceof Object?"":"null prototype",I=!S&&dr&&Object(t)===t&&dr in t?mS.call(rs(t),8,-1):R?"Object":"",M=S||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",_=M+(I||R?"["+Oi.call(hI.call([],I||[],R||[]),": ")+"] ":"");return E.length===0?_+"{}":d?_+"{"+tw(E,d)+"}":_+"{ "+Oi.call(E,", ")+" }"}return String(t)};function IA(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function fV(e){return Il.call(String(e),/"/g,"&quot;")}function ew(e){return rs(e)==="[object Array]"&&(!dr||!(typeof e=="object"&&dr in e))}function pV(e){return rs(e)==="[object Date]"&&(!dr||!(typeof e=="object"&&dr in e))}function wI(e){return rs(e)==="[object RegExp]"&&(!dr||!(typeof e=="object"&&dr in e))}function mV(e){return rs(e)==="[object Error]"&&(!dr||!(typeof e=="object"&&dr in e))}function hV(e){return rs(e)==="[object String]"&&(!dr||!(typeof e=="object"&&dr in e))}function gV(e){return rs(e)==="[object Number]"&&(!dr||!(typeof e=="object"&&dr in e))}function vV(e){return rs(e)==="[object Boolean]"&&(!dr||!(typeof e=="object"&&dr in e))}function OA(e){if(Dc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Zx)return!1;try{return Zx.call(e),!0}catch{}return!1}function yV(e){if(!e||typeof e!="object"||!Xx)return!1;try{return Xx.call(e),!0}catch{}return!1}var bV=Object.prototype.hasOwnProperty||function(e){return e in this};function yl(e,t){return bV.call(e,t)}function rs(e){return aV.call(e)}function xV(e){if(e.name)return e.name;var t=sV.call(lV.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function MA(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function wV(e){if(!Bg||!e||typeof e!="object")return!1;try{Bg.call(e);try{Hg.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function CV(e){if(!Pf||!e||typeof e!="object")return!1;try{Pf.call(e,Pf);try{kf.call(e,kf)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function SV(e){if(!pI||!e||typeof e!="object")return!1;try{return pI.call(e),!0}catch{}return!1}function EV(e){if(!Hg||!e||typeof e!="object")return!1;try{Hg.call(e);try{Bg.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function PV(e){if(!kf||!e||typeof e!="object")return!1;try{kf.call(e,kf);try{Pf.call(e,Pf)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function kV(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function RA(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return RA(mS.call(e,0,t.maxStringLength),t)+r}var o=Il.call(Il.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$V);return IA(o,"single",t)}function $V(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+uV.call(t.toString(16))}function Dd(e){return"Object("+e+")"}function $b(e){return e+" { ? }"}function CI(e,t,n,r){var o=r?tw(n,r):Oi.call(n,", ");return e+" ("+t+") {"+o+"}"}function IV(e){for(var t=0;t<e.length;t++)if(MA(e[t],`
`)>=0)return!1;return!0}function OV(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Oi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Oi.call(Array(t+1),n)}}function tw(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+Oi.call(e,","+n)+`
`+t.prev}function Gm(e,t){var n=ew(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=yl(e,o)?t(e[o],e):""}var i=typeof kb=="function"?kb(e):[],a;if(Dc){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)yl(e,s)&&(n&&String(Number(s))===s&&s<e.length||Dc&&a["$"+s]instanceof Symbol||(kA.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof kb=="function")for(var u=0;u<i.length;u++)$A.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var TA=od,id=ZU,MV=dV,RV=Ap,qm=TA("%WeakMap%",!0),Km=TA("%Map%",!0),TV=id("WeakMap.prototype.get",!0),_V=id("WeakMap.prototype.set",!0),FV=id("WeakMap.prototype.has",!0),AV=id("Map.prototype.get",!0),LV=id("Map.prototype.set",!0),DV=id("Map.prototype.has",!0),hS=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},NV=function(e,t){var n=hS(e,t);return n&&n.value},zV=function(e,t,n){var r=hS(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},jV=function(e,t){return!!hS(e,t)},BV=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new RV("Side channel does not contain "+MV(i))},get:function(i){if(qm&&i&&(typeof i=="object"||typeof i=="function")){if(t)return TV(t,i)}else if(Km){if(n)return AV(n,i)}else if(r)return NV(r,i)},has:function(i){if(qm&&i&&(typeof i=="object"||typeof i=="function")){if(t)return FV(t,i)}else if(Km){if(n)return DV(n,i)}else if(r)return jV(r,i);return!1},set:function(i,a){qm&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new qm),_V(t,i,a)):Km?(n||(n=new Km),LV(n,i,a)):(r||(r={key:{},next:null}),zV(r,i,a))}};return o},HV=String.prototype.replace,UV=/%20/g,Ib={RFC1738:"RFC1738",RFC3986:"RFC3986"},gS={default:Ib.RFC3986,formatters:{RFC1738:function(e){return HV.call(e,UV,"+")},RFC3986:function(e){return String(e)}},RFC1738:Ib.RFC1738,RFC3986:Ib.RFC3986},VV=gS,Ob=Object.prototype.hasOwnProperty,Ss=Array.isArray,Ci=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),WV=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Ss(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},_A=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},GV=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ss(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Ob.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Ss(t)&&!Ss(n)&&(o=_A(t,r)),Ss(t)&&Ss(n)?(n.forEach(function(i,a){if(Ob.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return Ob.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},qV=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},KV=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},QV=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;++s){var u=a.charCodeAt(s);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===VV.RFC1738&&(u===40||u===41)){l+=a.charAt(s);continue}if(u<128){l=l+Ci[u];continue}if(u<2048){l=l+(Ci[192|u>>6]+Ci[128|u&63]);continue}if(u<55296||u>=57344){l=l+(Ci[224|u>>12]+Ci[128|u>>6&63]+Ci[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|a.charCodeAt(s)&1023),l+=Ci[240|u>>18]+Ci[128|u>>12&63]+Ci[128|u>>6&63]+Ci[128|u&63]}return l},YV=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var u=l[s],c=a[u];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:a,prop:u}),r.push(c))}return WV(n),t},XV=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ZV=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},JV=function(t,n){return[].concat(t,n)},e8=function(t,n){if(Ss(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},FA={arrayToObject:_A,assign:qV,combine:JV,compact:YV,decode:KV,encode:QV,isBuffer:ZV,isRegExp:XV,maybeMap:e8,merge:GV},AA=BV,Vh=FA,$f=gS,t8=Object.prototype.hasOwnProperty,LA={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},Ii=Array.isArray,n8=Array.prototype.push,DA=function(e,t){n8.apply(e,Ii(t)?t:[t])},r8=Date.prototype.toISOString,SI=$f.default,Tn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Vh.encode,encodeValuesOnly:!1,format:SI,formatter:$f.formatters[SI],indices:!1,serializeDate:function(t){return r8.call(t)},skipNulls:!1,strictNullHandling:!1},o8=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Mb={},i8=function e(t,n,r,o,i,a,l,s,u,c,d,f,m,p,h,y,b,g){for(var x=t,w=g,P=0,C=!1;(w=w.get(Mb))!==void 0&&!C;){var E=w.get(t);if(P+=1,typeof E<"u"){if(E===P)throw new RangeError("Cyclic object value");C=!0}typeof w.get(Mb)>"u"&&(P=0)}if(typeof c=="function"?x=c(n,x):x instanceof Date?x=m(x):r==="comma"&&Ii(x)&&(x=Vh.maybeMap(x,function(B){return B instanceof Date?m(B):B})),x===null){if(a)return u&&!y?u(n,Tn.encoder,b,"key",p):n;x=""}if(o8(x)||Vh.isBuffer(x)){if(u){var S=y?n:u(n,Tn.encoder,b,"key",p);return[h(S)+"="+h(u(x,Tn.encoder,b,"value",p))]}return[h(n)+"="+h(String(x))]}var R=[];if(typeof x>"u")return R;var I;if(r==="comma"&&Ii(x))y&&u&&(x=Vh.maybeMap(x,u)),I=[{value:x.length>0?x.join(",")||null:void 0}];else if(Ii(c))I=c;else{var M=Object.keys(x);I=d?M.sort(d):M}var _=s?n.replace(/\./g,"%2E"):n,D=o&&Ii(x)&&x.length===1?_+"[]":_;if(i&&Ii(x)&&x.length===0)return D+"[]";for(var T=0;T<I.length;++T){var F=I[T],N=typeof F=="object"&&typeof F.value<"u"?F.value:x[F];if(!(l&&N===null)){var k=f&&s?F.replace(/\./g,"%2E"):F,L=Ii(x)?typeof r=="function"?r(D,k):D:D+(f?"."+k:"["+k+"]");g.set(t,P);var j=AA();j.set(Mb,g),DA(R,e(N,L,r,o,i,a,l,s,r==="comma"&&y&&Ii(x)?null:u,c,d,f,m,p,h,y,b,j))}}return R},a8=function(t){if(!t)return Tn;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Tn.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=$f.default;if(typeof t.format<"u"){if(!t8.call($f.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=$f.formatters[r],i=Tn.filter;(typeof t.filter=="function"||Ii(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in LA?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Tn.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Tn.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Tn.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Tn.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Tn.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Tn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Tn.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Tn.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Tn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Tn.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Tn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Tn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Tn.strictNullHandling}},l8=function(e,t){var n=e,r=a8(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):Ii(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var l=LA[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var u=AA(),c=0;c<o.length;++c){var d=o[c];r.skipNulls&&n[d]===null||DA(a,i8(n[d],d,l,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}var f=a.join(r.delimiter),m=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),f.length>0?m+f:""},Nc=FA,nw=Object.prototype.hasOwnProperty,s8=Array.isArray,hn={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:Nc.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u8=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},NA=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c8="utf8=%26%2310003%3B",d8="utf8=%E2%9C%93",f8=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),l=-1,s,u=n.charset;if(n.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===d8?u="utf-8":a[s]===c8&&(u="iso-8859-1"),l=s,s=a.length);for(s=0;s<a.length;++s)if(s!==l){var c=a[s],d=c.indexOf("]="),f=d===-1?c.indexOf("="):d+1,m,p;f===-1?(m=n.decoder(c,hn.decoder,u,"key"),p=n.strictNullHandling?null:""):(m=n.decoder(c.slice(0,f),hn.decoder,u,"key"),p=Nc.maybeMap(NA(c.slice(f+1),n),function(y){return n.decoder(y,hn.decoder,u,"value")})),p&&n.interpretNumericEntities&&u==="iso-8859-1"&&(p=u8(p)),c.indexOf("[]=")>-1&&(p=s8(p)?[p]:p);var h=nw.call(r,m);h&&n.duplicates==="combine"?r[m]=Nc.combine(r[m],p):(!h||n.duplicates==="last")&&(r[m]=p)}return r},p8=function(e,t,n,r){for(var o=r?t:NA(t,n),i=e.length-1;i>=0;--i){var a,l=e[i];if(l==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&o===""?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,u=n.decodeDotInKeys?s.replace(/%2E/g,"."):s,c=parseInt(u,10);!n.parseArrays&&u===""?a={0:o}:!isNaN(c)&&l!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=o):u!=="__proto__"&&(a[u]=o)}o=a}return o},m8=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),u=s?i.slice(0,s.index):i,c=[];if(u){if(!r.plainObjects&&nw.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var d=0;r.depth>0&&(s=l.exec(i))!==null&&d<r.depth;){if(d+=1,!r.plainObjects&&nw.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+i.slice(s.index)+"]"),p8(c,n,r,o)}},h8=function(t){if(!t)return hn;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?hn.charset:t.charset,r=typeof t.duplicates>"u"?hn.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:hn.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:hn.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:hn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:hn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:hn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:hn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:hn.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:hn.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:hn.decoder,delimiter:typeof t.delimiter=="string"||Nc.isRegExp(t.delimiter)?t.delimiter:hn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:hn.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:hn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:hn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:hn.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:hn.strictNullHandling}},g8=function(e,t){var n=h8(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?f8(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=m8(l,r[l],n,typeof e=="string");o=Nc.merge(o,s,n)}return n.allowSparse===!0?o:Nc.compact(o)},v8=l8,y8=g8,b8=gS,Wh={formats:b8,parse:y8,stringify:v8};const Xs=Xi(Wh);function zA(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var x8=typeof global=="object"&&global&&global.Object===Object&&global;const jA=x8;var w8=typeof self=="object"&&self&&self.Object===Object&&self,C8=jA||w8||Function("return this")();const Ji=C8;var S8=Ji.Symbol;const Vi=S8;var BA=Object.prototype,E8=BA.hasOwnProperty,P8=BA.toString,Nd=Vi?Vi.toStringTag:void 0;function k8(e){var t=E8.call(e,Nd),n=e[Nd];try{e[Nd]=void 0;var r=!0}catch{}var o=P8.call(e);return r&&(t?e[Nd]=n:delete e[Nd]),o}var $8=Object.prototype,I8=$8.toString;function O8(e){return I8.call(e)}var M8="[object Null]",R8="[object Undefined]",EI=Vi?Vi.toStringTag:void 0;function ad(e){return e==null?e===void 0?R8:M8:EI&&EI in Object(e)?k8(e):O8(e)}function Zs(e){return e!=null&&typeof e=="object"}var T8="[object Arguments]";function PI(e){return Zs(e)&&ad(e)==T8}var HA=Object.prototype,_8=HA.hasOwnProperty,F8=HA.propertyIsEnumerable,A8=PI(function(){return arguments}())?PI:function(e){return Zs(e)&&_8.call(e,"callee")&&!F8.call(e,"callee")};const vS=A8;var L8=Array.isArray;const Wi=L8;var kI=Vi?Vi.isConcatSpreadable:void 0;function D8(e){return Wi(e)||vS(e)||!!(kI&&e&&e[kI])}function yS(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=D8),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?yS(l,t-1,n,r,o):zA(o,l):r||(o[o.length]=l)}return o}function bS(e){return e}function N8(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var $I=Math.max;function z8(e,t,n){return t=$I(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=$I(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),N8(e,this,l)}}function j8(e){return function(){return e}}function Js(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var B8="[object AsyncFunction]",H8="[object Function]",U8="[object GeneratorFunction]",V8="[object Proxy]";function UA(e){if(!Js(e))return!1;var t=ad(e);return t==H8||t==U8||t==B8||t==V8}var W8=Ji["__core-js_shared__"];const Rb=W8;var II=function(){var e=/[^.]+$/.exec(Rb&&Rb.keys&&Rb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function G8(e){return!!II&&II in e}var q8=Function.prototype,K8=q8.toString;function fu(e){if(e!=null){try{return K8.call(e)}catch{}try{return e+""}catch{}}return""}var Q8=/[\\^$.*+?()[\]{}|]/g,Y8=/^\[object .+?Constructor\]$/,X8=Function.prototype,Z8=Object.prototype,J8=X8.toString,e9=Z8.hasOwnProperty,t9=RegExp("^"+J8.call(e9).replace(Q8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function n9(e){if(!Js(e)||G8(e))return!1;var t=UA(e)?t9:Y8;return t.test(fu(e))}function r9(e,t){return e==null?void 0:e[t]}function pu(e,t){var n=r9(e,t);return n9(n)?n:void 0}var o9=function(){try{var e=pu(Object,"defineProperty");return e({},"",{}),e}catch{}}();const OI=o9;var i9=OI?function(e,t){return OI(e,"toString",{configurable:!0,enumerable:!1,value:j8(t),writable:!0})}:bS;const a9=i9;var l9=800,s9=16,u9=Date.now;function c9(e){var t=0,n=0;return function(){var r=u9(),o=s9-(r-n);if(n=r,o>0){if(++t>=l9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var d9=c9(a9);const f9=d9;function xS(e,t){return f9(z8(e,t,bS),e+"")}var p9=pu(Object,"create");const ip=p9;function m9(){this.__data__=ip?ip(null):{},this.size=0}function h9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var g9="__lodash_hash_undefined__",v9=Object.prototype,y9=v9.hasOwnProperty;function b9(e){var t=this.__data__;if(ip){var n=t[e];return n===g9?void 0:n}return y9.call(t,e)?t[e]:void 0}var x9=Object.prototype,w9=x9.hasOwnProperty;function C9(e){var t=this.__data__;return ip?t[e]!==void 0:w9.call(t,e)}var S9="__lodash_hash_undefined__";function E9(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ip&&t===void 0?S9:t,this}function eu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eu.prototype.clear=m9;eu.prototype.delete=h9;eu.prototype.get=b9;eu.prototype.has=C9;eu.prototype.set=E9;function P9(){this.__data__=[],this.size=0}function wS(e,t){return e===t||e!==e&&t!==t}function Vv(e,t){for(var n=e.length;n--;)if(wS(e[n][0],t))return n;return-1}var k9=Array.prototype,$9=k9.splice;function I9(e){var t=this.__data__,n=Vv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$9.call(t,n,1),--this.size,!0}function O9(e){var t=this.__data__,n=Vv(t,e);return n<0?void 0:t[n][1]}function M9(e){return Vv(this.__data__,e)>-1}function R9(e,t){var n=this.__data__,r=Vv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ga(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ga.prototype.clear=P9;Ga.prototype.delete=I9;Ga.prototype.get=O9;Ga.prototype.has=M9;Ga.prototype.set=R9;var T9=pu(Ji,"Map");const ap=T9;function _9(){this.size=0,this.__data__={hash:new eu,map:new(ap||Ga),string:new eu}}function F9(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wv(e,t){var n=e.__data__;return F9(t)?n[typeof t=="string"?"string":"hash"]:n.map}function A9(e){var t=Wv(this,e).delete(e);return this.size-=t?1:0,t}function L9(e){return Wv(this,e).get(e)}function D9(e){return Wv(this,e).has(e)}function N9(e,t){var n=Wv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function qa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qa.prototype.clear=_9;qa.prototype.delete=A9;qa.prototype.get=L9;qa.prototype.has=D9;qa.prototype.set=N9;var z9="__lodash_hash_undefined__";function j9(e){return this.__data__.set(e,z9),this}function B9(e){return this.__data__.has(e)}function zc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new qa;++t<n;)this.add(e[t])}zc.prototype.add=zc.prototype.push=j9;zc.prototype.has=B9;function H9(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function U9(e){return e!==e}function V9(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function W9(e,t,n){return t===t?V9(e,t,n):H9(e,U9,n)}function VA(e,t){var n=e==null?0:e.length;return!!n&&W9(e,t,0)>-1}function WA(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function CS(e,t){return e.has(t)}var G9=pu(Ji,"Set");const xc=G9;function q9(){}function SS(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var K9=1/0,Q9=xc&&1/SS(new xc([,-0]))[1]==K9?function(e){return new xc(e)}:q9;const Y9=Q9;var X9=200;function GA(e,t,n){var r=-1,o=VA,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=WA;else if(i>=X9){var u=t?null:Y9(e);if(u)return SS(u);a=!1,o=CS,s=new zc}else s=t?[]:l;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,a&&d===d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(c)}else o(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l}var Z9=9007199254740991;function ES(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Z9}function PS(e){return e!=null&&ES(e.length)&&!UA(e)}function If(e){return Zs(e)&&PS(e)}function qA(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var J9=xS(function(e){var t=qA(e);return t=typeof t=="function"?t:void 0,GA(yS(e,1,If,!0),void 0,t)});const kS=J9;function $S(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function KA(e){return function(t){return e(t)}}var eW=200;function tW(e,t,n,r){var o=-1,i=VA,a=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=$S(t,KA(n))),r?(i=WA,a=!1):t.length>=eW&&(i=CS,a=!1,t=new zc(t));e:for(;++o<l;){var c=e[o],d=n==null?c:n(c);if(c=r||c!==0?c:0,a&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;s.push(c)}else i(t,d,r)||s.push(c)}return s}var nW=xS(function(e,t){var n=qA(t);return If(n)&&(n=void 0),If(e)?tW(e,yS(t,1,If,!0),void 0,n):[]});const Ol=nW;function rW(e,...t){}var oW=rW;const tu=Xi(oW);function QA(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function YA(e){return function(t){return t==null?void 0:t[e]}}function XA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var iW=Math.max;function aW(e){if(!(e&&e.length))return[];var t=0;return e=QA(e,function(n){if(If(n))return t=iW(n.length,t),!0}),XA(t,function(n){return $S(e,YA(n))})}var lW=xS(aW);const sW=lW;function uW(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function cW(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ZA={exports:{}};(function(e,t){(function(n,r){typeof cW=="function"?e.exports=r():n.pluralize=r()})(we,function(){var n=[],r=[],o={},i={},a={};function l(h){return typeof h=="string"?new RegExp("^"+h+"$","i"):h}function s(h,y){return h===y?y:h===h.toLowerCase()?y.toLowerCase():h===h.toUpperCase()?y.toUpperCase():h[0]===h[0].toUpperCase()?y.charAt(0).toUpperCase()+y.substr(1).toLowerCase():y.toLowerCase()}function u(h,y){return h.replace(/\$(\d{1,2})/g,function(b,g){return y[g]||""})}function c(h,y){return h.replace(y[0],function(b,g){var x=u(y[1],arguments);return s(b===""?h[g-1]:b,x)})}function d(h,y,b){if(!h.length||o.hasOwnProperty(h))return y;for(var g=b.length;g--;){var x=b[g];if(x[0].test(y))return c(y,x)}return y}function f(h,y,b){return function(g){var x=g.toLowerCase();return y.hasOwnProperty(x)?s(g,x):h.hasOwnProperty(x)?s(g,h[x]):d(x,g,b)}}function m(h,y,b,g){return function(x){var w=x.toLowerCase();return y.hasOwnProperty(w)?!0:h.hasOwnProperty(w)?!1:d(w,w,b)===w}}function p(h,y,b){var g=y===1?p.singular(h):p.plural(h);return(b?y+" ":"")+g}return p.plural=f(a,i,n),p.isPlural=m(a,i,n),p.singular=f(i,a,r),p.isSingular=m(i,a,r),p.addPluralRule=function(h,y){n.push([l(h),y])},p.addSingularRule=function(h,y){r.push([l(h),y])},p.addUncountableRule=function(h){if(typeof h=="string"){o[h.toLowerCase()]=!0;return}p.addPluralRule(h,"$0"),p.addSingularRule(h,"$0")},p.addIrregularRule=function(h,y){y=y.toLowerCase(),h=h.toLowerCase(),a[h]=y,i[y]=h},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(h){return p.addIrregularRule(h[0],h[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(h){return p.addPluralRule(h[0],h[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(h){return p.addSingularRule(h[0],h[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p})})(ZA);var dW=ZA.exports;const Ug=Xi(dW);function fW(){this.__data__=new Ga,this.size=0}function pW(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function mW(e){return this.__data__.get(e)}function hW(e){return this.__data__.has(e)}var gW=200;function vW(e,t){var n=this.__data__;if(n instanceof Ga){var r=n.__data__;if(!ap||r.length<gW-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qa(r)}return n.set(e,t),this.size=n.size,this}function Ra(e){var t=this.__data__=new Ga(e);this.size=t.size}Ra.prototype.clear=fW;Ra.prototype.delete=pW;Ra.prototype.get=mW;Ra.prototype.has=hW;Ra.prototype.set=vW;function yW(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bW=1,xW=2;function JA(e,t,n,r,o,i){var a=n&bW,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,m=n&xW?new zc:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var p=e[d],h=t[d];if(r)var y=a?r(h,p,d,t,e,i):r(p,h,d,e,t,i);if(y!==void 0){if(y)continue;f=!1;break}if(m){if(!yW(t,function(b,g){if(!CS(m,g)&&(p===b||o(p,b,n,r,i)))return m.push(g)})){f=!1;break}}else if(!(p===h||o(p,h,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var wW=Ji.Uint8Array;const MI=wW;function CW(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var SW=1,EW=2,PW="[object Boolean]",kW="[object Date]",$W="[object Error]",IW="[object Map]",OW="[object Number]",MW="[object RegExp]",RW="[object Set]",TW="[object String]",_W="[object Symbol]",FW="[object ArrayBuffer]",AW="[object DataView]",RI=Vi?Vi.prototype:void 0,Tb=RI?RI.valueOf:void 0;function LW(e,t,n,r,o,i,a){switch(n){case AW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case FW:return!(e.byteLength!=t.byteLength||!i(new MI(e),new MI(t)));case PW:case kW:case OW:return wS(+e,+t);case $W:return e.name==t.name&&e.message==t.message;case MW:case TW:return e==t+"";case IW:var l=CW;case RW:var s=r&SW;if(l||(l=SS),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=EW,a.set(e,t);var c=JA(l(e),l(t),r,o,i,a);return a.delete(e),c;case _W:if(Tb)return Tb.call(e)==Tb.call(t)}return!1}function DW(e,t,n){var r=t(e);return Wi(e)?r:zA(r,n(e))}function NW(){return[]}var zW=Object.prototype,jW=zW.propertyIsEnumerable,TI=Object.getOwnPropertySymbols,BW=TI?function(e){return e==null?[]:(e=Object(e),QA(TI(e),function(t){return jW.call(e,t)}))}:NW;const HW=BW;function UW(){return!1}var eL=typeof Ia=="object"&&Ia&&!Ia.nodeType&&Ia,_I=eL&&typeof Oa=="object"&&Oa&&!Oa.nodeType&&Oa,VW=_I&&_I.exports===eL,FI=VW?Ji.Buffer:void 0,WW=FI?FI.isBuffer:void 0,GW=WW||UW;const rw=GW;var qW=9007199254740991,KW=/^(?:0|[1-9]\d*)$/;function IS(e,t){var n=typeof e;return t=t??qW,!!t&&(n=="number"||n!="symbol"&&KW.test(e))&&e>-1&&e%1==0&&e<t}var QW="[object Arguments]",YW="[object Array]",XW="[object Boolean]",ZW="[object Date]",JW="[object Error]",e7="[object Function]",t7="[object Map]",n7="[object Number]",r7="[object Object]",o7="[object RegExp]",i7="[object Set]",a7="[object String]",l7="[object WeakMap]",s7="[object ArrayBuffer]",u7="[object DataView]",c7="[object Float32Array]",d7="[object Float64Array]",f7="[object Int8Array]",p7="[object Int16Array]",m7="[object Int32Array]",h7="[object Uint8Array]",g7="[object Uint8ClampedArray]",v7="[object Uint16Array]",y7="[object Uint32Array]",Qt={};Qt[c7]=Qt[d7]=Qt[f7]=Qt[p7]=Qt[m7]=Qt[h7]=Qt[g7]=Qt[v7]=Qt[y7]=!0;Qt[QW]=Qt[YW]=Qt[s7]=Qt[XW]=Qt[u7]=Qt[ZW]=Qt[JW]=Qt[e7]=Qt[t7]=Qt[n7]=Qt[r7]=Qt[o7]=Qt[i7]=Qt[a7]=Qt[l7]=!1;function b7(e){return Zs(e)&&ES(e.length)&&!!Qt[ad(e)]}var tL=typeof Ia=="object"&&Ia&&!Ia.nodeType&&Ia,Of=tL&&typeof Oa=="object"&&Oa&&!Oa.nodeType&&Oa,x7=Of&&Of.exports===tL,_b=x7&&jA.process,w7=function(){try{var e=Of&&Of.require&&Of.require("util").types;return e||_b&&_b.binding&&_b.binding("util")}catch{}}();const AI=w7;var LI=AI&&AI.isTypedArray,C7=LI?KA(LI):b7;const nL=C7;var S7=Object.prototype,E7=S7.hasOwnProperty;function P7(e,t){var n=Wi(e),r=!n&&vS(e),o=!n&&!r&&rw(e),i=!n&&!r&&!o&&nL(e),a=n||r||o||i,l=a?XA(e.length,String):[],s=l.length;for(var u in e)(t||E7.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||IS(u,s)))&&l.push(u);return l}var k7=Object.prototype;function $7(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||k7;return e===n}function I7(e,t){return function(n){return e(t(n))}}var O7=I7(Object.keys,Object);const M7=O7;var R7=Object.prototype,T7=R7.hasOwnProperty;function _7(e){if(!$7(e))return M7(e);var t=[];for(var n in Object(e))T7.call(e,n)&&n!="constructor"&&t.push(n);return t}function rL(e){return PS(e)?P7(e):_7(e)}function DI(e){return DW(e,rL,HW)}var F7=1,A7=Object.prototype,L7=A7.hasOwnProperty;function D7(e,t,n,r,o,i){var a=n&F7,l=DI(e),s=l.length,u=DI(t),c=u.length;if(s!=c&&!a)return!1;for(var d=s;d--;){var f=l[d];if(!(a?f in t:L7.call(t,f)))return!1}var m=i.get(e),p=i.get(t);if(m&&p)return m==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);for(var y=a;++d<s;){f=l[d];var b=e[f],g=t[f];if(r)var x=a?r(g,b,f,t,e,i):r(b,g,f,e,t,i);if(!(x===void 0?b===g||o(b,g,n,r,i):x)){h=!1;break}y||(y=f=="constructor")}if(h&&!y){var w=e.constructor,P=t.constructor;w!=P&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof P=="function"&&P instanceof P)&&(h=!1)}return i.delete(e),i.delete(t),h}var N7=pu(Ji,"DataView");const ow=N7;var z7=pu(Ji,"Promise");const iw=z7;var j7=pu(Ji,"WeakMap");const aw=j7;var NI="[object Map]",B7="[object Object]",zI="[object Promise]",jI="[object Set]",BI="[object WeakMap]",HI="[object DataView]",H7=fu(ow),U7=fu(ap),V7=fu(iw),W7=fu(xc),G7=fu(aw),bs=ad;(ow&&bs(new ow(new ArrayBuffer(1)))!=HI||ap&&bs(new ap)!=NI||iw&&bs(iw.resolve())!=zI||xc&&bs(new xc)!=jI||aw&&bs(new aw)!=BI)&&(bs=function(e){var t=ad(e),n=t==B7?e.constructor:void 0,r=n?fu(n):"";if(r)switch(r){case H7:return HI;case U7:return NI;case V7:return zI;case W7:return jI;case G7:return BI}return t});const UI=bs;var q7=1,VI="[object Arguments]",WI="[object Array]",Qm="[object Object]",K7=Object.prototype,GI=K7.hasOwnProperty;function Q7(e,t,n,r,o,i){var a=Wi(e),l=Wi(t),s=a?WI:UI(e),u=l?WI:UI(t);s=s==VI?Qm:s,u=u==VI?Qm:u;var c=s==Qm,d=u==Qm,f=s==u;if(f&&rw(e)){if(!rw(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new Ra),a||nL(e)?JA(e,t,n,r,o,i):LW(e,t,s,n,r,o,i);if(!(n&q7)){var m=c&&GI.call(e,"__wrapped__"),p=d&&GI.call(t,"__wrapped__");if(m||p){var h=m?e.value():e,y=p?t.value():t;return i||(i=new Ra),o(h,y,n,r,i)}}return f?(i||(i=new Ra),D7(e,t,n,r,o,i)):!1}function Gv(e,t,n,r,o){return e===t?!0:e==null||t==null||!Zs(e)&&!Zs(t)?e!==e&&t!==t:Q7(e,t,n,r,Gv,o)}function Mo(e,t){return Gv(e,t)}var oL={exports:{}};/* @license
Papa Parse
v5.4.1
https://github.com/mholt/PapaParse
License: MIT
*/(function(e,t){(function(n,r){e.exports=r()})(we,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,a={},l=0,s={parse:function(S,R){var I=(R=R||{}).dynamicTyping||!1;if(E(I)&&(R.dynamicTypingFunction=I,I={}),R.dynamicTyping=I,R.transform=!!E(R.transform)&&R.transform,R.worker&&s.WORKERS_SUPPORTED){var M=function(){if(!s.WORKERS_SUPPORTED)return!1;var D=(F=r.URL||r.webkitURL||null,N=n.toString(),s.BLOB_URL||(s.BLOB_URL=F.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",N,")();"],{type:"text/javascript"})))),T=new r.Worker(D),F,N;return T.onmessage=g,T.id=l++,a[T.id]=T}();return M.userStep=R.step,M.userChunk=R.chunk,M.userComplete=R.complete,M.userError=R.error,R.step=E(R.step),R.chunk=E(R.chunk),R.complete=E(R.complete),R.error=E(R.error),delete R.worker,void M.postMessage({input:S,config:R,workerId:M.id})}var _=null;return s.NODE_STREAM_INPUT,typeof S=="string"?(S=function(D){return D.charCodeAt(0)===65279?D.slice(1):D}(S),_=R.download?new d(R):new m(R)):S.readable===!0&&E(S.read)&&E(S.on)?_=new p(R):(r.File&&S instanceof File||S instanceof Object)&&(_=new f(R)),_.stream(S)},unparse:function(S,R){var I=!1,M=!0,_=",",D=`\r
`,T='"',F=T+T,N=!1,k=null,L=!1;(function(){if(typeof R=="object"){if(typeof R.delimiter!="string"||s.BAD_DELIMITERS.filter(function(H){return R.delimiter.indexOf(H)!==-1}).length||(_=R.delimiter),(typeof R.quotes=="boolean"||typeof R.quotes=="function"||Array.isArray(R.quotes))&&(I=R.quotes),typeof R.skipEmptyLines!="boolean"&&typeof R.skipEmptyLines!="string"||(N=R.skipEmptyLines),typeof R.newline=="string"&&(D=R.newline),typeof R.quoteChar=="string"&&(T=R.quoteChar),typeof R.header=="boolean"&&(M=R.header),Array.isArray(R.columns)){if(R.columns.length===0)throw new Error("Option columns is empty");k=R.columns}R.escapeChar!==void 0&&(F=R.escapeChar+T),(typeof R.escapeFormulae=="boolean"||R.escapeFormulae instanceof RegExp)&&(L=R.escapeFormulae instanceof RegExp?R.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var j=new RegExp(y(T),"g");if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return B(null,S,N);if(typeof S[0]=="object")return B(k||Object.keys(S[0]),S,N)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||k),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),B(S.fields||[],S.data||[],N);throw new Error("Unable to serialize unrecognized input");function B(H,q,V){var G="";typeof H=="string"&&(H=JSON.parse(H)),typeof q=="string"&&(q=JSON.parse(q));var Y=Array.isArray(H)&&0<H.length,re=!Array.isArray(q[0]);if(Y&&M){for(var le=0;le<H.length;le++)0<le&&(G+=_),G+=A(H[le],le);0<q.length&&(G+=D)}for(var J=0;J<q.length;J++){var oe=Y?H.length:q[J].length,ue=!1,ge=Y?Object.keys(q[J]).length===0:q[J].length===0;if(V&&!Y&&(ue=V==="greedy"?q[J].join("").trim()==="":q[J].length===1&&q[J][0].length===0),V==="greedy"&&Y){for(var me=[],ke=0;ke<oe;ke++){var be=re?H[ke]:ke;me.push(q[J][be])}ue=me.join("").trim()===""}if(!ue){for(var ie=0;ie<oe;ie++){0<ie&&!ge&&(G+=_);var ye=Y&&re?H[ie]:ie;G+=A(q[J][ye],ie)}J<q.length-1&&(!V||0<oe&&!ge)&&(G+=D)}}return G}function A(H,q){if(H==null)return"";if(H.constructor===Date)return JSON.stringify(H).slice(1,25);var V=!1;L&&typeof H=="string"&&L.test(H)&&(H="'"+H,V=!0);var G=H.toString().replace(j,F);return(V=V||I===!0||typeof I=="function"&&I(H,q)||Array.isArray(I)&&I[q]||function(Y,re){for(var le=0;le<re.length;le++)if(-1<Y.indexOf(re[le]))return!0;return!1}(G,s.BAD_DELIMITERS)||-1<G.indexOf(_)||G.charAt(0)===" "||G.charAt(G.length-1)===" ")?T+G+T:G}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\uFEFF",s.BAD_DELIMITERS=["\r",`
`,'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!o&&!!r.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=b,s.ParserHandle=h,s.NetworkStreamer=d,s.FileStreamer=f,s.StringStreamer=m,s.ReadableStreamStreamer=p,r.jQuery){var u=r.jQuery;u.fn.parse=function(S){var R=S.config||{},I=[];return this.each(function(D){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var T=0;T<this.files.length;T++)I.push({file:this.files[T],inputElem:this,instanceConfig:u.extend({},R)})}),M(),this;function M(){if(I.length!==0){var D,T,F,N,k=I[0];if(E(S.before)){var L=S.before(k.file,k.inputElem);if(typeof L=="object"){if(L.action==="abort")return D="AbortError",T=k.file,F=k.inputElem,N=L.reason,void(E(S.error)&&S.error({name:D},T,F,N));if(L.action==="skip")return void _();typeof L.config=="object"&&(k.instanceConfig=u.extend(k.instanceConfig,L.config))}else if(L==="skip")return void _()}var j=k.instanceConfig.complete;k.instanceConfig.complete=function(B){E(j)&&j(B,k.file,k.inputElem),_()},s.parse(k.file,k.instanceConfig)}else E(S.complete)&&S.complete()}function _(){I.splice(0,1),M()}}}function c(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(R){var I=P(R);I.chunkSize=parseInt(I.chunkSize),R.step||R.chunk||(I.chunkSize=null),this._handle=new h(I),(this._handle.streamer=this)._config=I}).call(this,S),this.parseChunk=function(R,I){if(this.isFirstChunk&&E(this._config.beforeFirstChunk)){var M=this._config.beforeFirstChunk(R);M!==void 0&&(R=M)}this.isFirstChunk=!1,this._halted=!1;var _=this._partialLine+R;this._partialLine="";var D=this._handle.parse(_,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var T=D.meta.cursor;this._finished||(this._partialLine=_.substring(T-this._baseIndex),this._baseIndex=T),D&&D.data&&(this._rowCount+=D.data.length);var F=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)r.postMessage({results:D,workerId:s.WORKER_ID,finished:F});else if(E(this._config.chunk)&&!I){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);D=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!F||!E(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),F||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(R){E(this._config.error)?this._config.error(R):i&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:R,finished:!1})}}function d(S){var R;(S=S||{}).chunkSize||(S.chunkSize=s.RemoteChunkSize),c.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(I){this._input=I,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(R=new XMLHttpRequest,this._config.withCredentials&&(R.withCredentials=this._config.withCredentials),o||(R.onload=C(this._chunkLoaded,this),R.onerror=C(this._chunkError,this)),R.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var I=this._config.downloadRequestHeaders;for(var M in I)R.setRequestHeader(M,I[M])}if(this._config.chunkSize){var _=this._start+this._config.chunkSize-1;R.setRequestHeader("Range","bytes="+this._start+"-"+_)}try{R.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}o&&R.status===0&&this._chunkError()}},this._chunkLoaded=function(){R.readyState===4&&(R.status<200||400<=R.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:R.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(I){var M=I.getResponseHeader("Content-Range");return M===null?-1:parseInt(M.substring(M.lastIndexOf("/")+1))}(R),this.parseChunk(R.responseText)))},this._chunkError=function(I){var M=R.statusText||I;this._sendError(new Error(M))}}function f(S){var R,I;(S=S||{}).chunkSize||(S.chunkSize=s.LocalChunkSize),c.call(this,S);var M=typeof FileReader<"u";this.stream=function(_){this._input=_,I=_.slice||_.webkitSlice||_.mozSlice,M?((R=new FileReader).onload=C(this._chunkLoaded,this),R.onerror=C(this._chunkError,this)):R=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var _=this._input;if(this._config.chunkSize){var D=Math.min(this._start+this._config.chunkSize,this._input.size);_=I.call(_,this._start,D)}var T=R.readAsText(_,this._config.encoding);M||this._chunkLoaded({target:{result:T}})},this._chunkLoaded=function(_){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(_.target.result)},this._chunkError=function(){this._sendError(R.error)}}function m(S){var R;c.call(this,S=S||{}),this.stream=function(I){return R=I,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var I,M=this._config.chunkSize;return M?(I=R.substring(0,M),R=R.substring(M)):(I=R,R=""),this._finished=!R,this.parseChunk(I)}}}function p(S){c.call(this,S=S||{});var R=[],I=!0,M=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(_){this._input=_,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&R.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),R.length?this.parseChunk(R.shift()):I=!0},this._streamData=C(function(_){try{R.push(typeof _=="string"?_:_.toString(this._config.encoding)),I&&(I=!1,this._checkIsFinished(),this.parseChunk(R.shift()))}catch(D){this._streamError(D)}},this),this._streamError=C(function(_){this._streamCleanUp(),this._sendError(_)},this),this._streamEnd=C(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(S){var R,I,M,_=Math.pow(2,53),D=-_,T=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,F=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,N=this,k=0,L=0,j=!1,B=!1,A=[],H={data:[],errors:[],meta:{}};if(E(S.step)){var q=S.step;S.step=function(J){if(H=J,Y())G();else{if(G(),H.data.length===0)return;k+=J.data.length,S.preview&&k>S.preview?I.abort():(H.data=H.data[0],q(H,N))}}}function V(J){return S.skipEmptyLines==="greedy"?J.join("").trim()==="":J.length===1&&J[0].length===0}function G(){return H&&M&&(le("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),M=!1),S.skipEmptyLines&&(H.data=H.data.filter(function(J){return!V(J)})),Y()&&function(){if(!H)return;function J(ue,ge){E(S.transformHeader)&&(ue=S.transformHeader(ue,ge)),A.push(ue)}if(Array.isArray(H.data[0])){for(var oe=0;Y()&&oe<H.data.length;oe++)H.data[oe].forEach(J);H.data.splice(0,1)}else H.data.forEach(J)}(),function(){if(!H||!S.header&&!S.dynamicTyping&&!S.transform)return H;function J(ue,ge){var me,ke=S.header?{}:[];for(me=0;me<ue.length;me++){var be=me,ie=ue[me];S.header&&(be=me>=A.length?"__parsed_extra":A[me]),S.transform&&(ie=S.transform(ie,be)),ie=re(be,ie),be==="__parsed_extra"?(ke[be]=ke[be]||[],ke[be].push(ie)):ke[be]=ie}return S.header&&(me>A.length?le("FieldMismatch","TooManyFields","Too many fields: expected "+A.length+" fields but parsed "+me,L+ge):me<A.length&&le("FieldMismatch","TooFewFields","Too few fields: expected "+A.length+" fields but parsed "+me,L+ge)),ke}var oe=1;return!H.data.length||Array.isArray(H.data[0])?(H.data=H.data.map(J),oe=H.data.length):H.data=J(H.data,0),S.header&&H.meta&&(H.meta.fields=A),L+=oe,H}()}function Y(){return S.header&&A.length===0}function re(J,oe){return ue=J,S.dynamicTypingFunction&&S.dynamicTyping[ue]===void 0&&(S.dynamicTyping[ue]=S.dynamicTypingFunction(ue)),(S.dynamicTyping[ue]||S.dynamicTyping)===!0?oe==="true"||oe==="TRUE"||oe!=="false"&&oe!=="FALSE"&&(function(ge){if(T.test(ge)){var me=parseFloat(ge);if(D<me&&me<_)return!0}return!1}(oe)?parseFloat(oe):F.test(oe)?new Date(oe):oe===""?null:oe):oe;var ue}function le(J,oe,ue,ge){var me={type:J,code:oe,message:ue};ge!==void 0&&(me.row=ge),H.errors.push(me)}this.parse=function(J,oe,ue){var ge=S.quoteChar||'"';if(S.newline||(S.newline=function(be,ie){be=be.substring(0,1048576);var ye=new RegExp(y(ie)+"([^]*?)"+y(ie),"gm"),U=(be=be.replace(ye,"")).split("\r"),Q=be.split(`
`),Z=1<Q.length&&Q[0].length<U[0].length;if(U.length===1||Z)return`
`;for(var ae=0,te=0;te<U.length;te++)U[te][0]===`
`&&ae++;return ae>=U.length/2?`\r
`:"\r"}(J,ge)),M=!1,S.delimiter)E(S.delimiter)&&(S.delimiter=S.delimiter(J),H.meta.delimiter=S.delimiter);else{var me=function(be,ie,ye,U,Q){var Z,ae,te,K;Q=Q||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var ee=0;ee<Q.length;ee++){var se=Q[ee],Ce=0,_e=0,$e=0;te=void 0;for(var X=new b({comments:U,delimiter:se,newline:ie,preview:10}).parse(be),Ee=0;Ee<X.data.length;Ee++)if(ye&&V(X.data[Ee]))$e++;else{var Le=X.data[Ee].length;_e+=Le,te!==void 0?0<Le&&(Ce+=Math.abs(Le-te),te=Le):te=Le}0<X.data.length&&(_e/=X.data.length-$e),(ae===void 0||Ce<=ae)&&(K===void 0||K<_e)&&1.99<_e&&(ae=Ce,Z=se,K=_e)}return{successful:!!(S.delimiter=Z),bestDelimiter:Z}}(J,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess);me.successful?S.delimiter=me.bestDelimiter:(M=!0,S.delimiter=s.DefaultDelimiter),H.meta.delimiter=S.delimiter}var ke=P(S);return S.preview&&S.header&&ke.preview++,R=J,I=new b(ke),H=I.parse(R,oe,ue),G(),j?{meta:{paused:!0}}:H||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,I.abort(),R=E(S.chunk)?"":R.substring(I.getCharIndex())},this.resume=function(){N.streamer._halted?(j=!1,N.streamer.parseChunk(R,!0)):setTimeout(N.resume,3)},this.aborted=function(){return B},this.abort=function(){B=!0,I.abort(),H.meta.aborted=!0,E(S.complete)&&S.complete(H),R=""}}function y(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(S){var R,I=(S=S||{}).delimiter,M=S.newline,_=S.comments,D=S.step,T=S.preview,F=S.fastMode,N=R=S.quoteChar===void 0||S.quoteChar===null?'"':S.quoteChar;if(S.escapeChar!==void 0&&(N=S.escapeChar),(typeof I!="string"||-1<s.BAD_DELIMITERS.indexOf(I))&&(I=","),_===I)throw new Error("Comment character same as delimiter");_===!0?_="#":(typeof _!="string"||-1<s.BAD_DELIMITERS.indexOf(_))&&(_=!1),M!==`
`&&M!=="\r"&&M!==`\r
`&&(M=`
`);var k=0,L=!1;this.parse=function(j,B,A){if(typeof j!="string")throw new Error("Input must be a string");var H=j.length,q=I.length,V=M.length,G=_.length,Y=E(D),re=[],le=[],J=[],oe=k=0;if(!j)return Te();if(S.header&&!B){var ue=j.split(M)[0].split(I),ge=[],me={},ke=!1;for(var be in ue){var ie=ue[be];E(S.transformHeader)&&(ie=S.transformHeader(ie,be));var ye=ie,U=me[ie]||0;for(0<U&&(ke=!0,ye=ie+"_"+U),me[ie]=U+1;ge.includes(ye);)ye=ye+"_"+U;ge.push(ye)}if(ke){var Q=j.split(M);Q[0]=ge.join(I),j=Q.join(M)}}if(F||F!==!1&&j.indexOf(R)===-1){for(var Z=j.split(M),ae=0;ae<Z.length;ae++){if(J=Z[ae],k+=J.length,ae!==Z.length-1)k+=M.length;else if(A)return Te();if(!_||J.substring(0,G)!==_){if(Y){if(re=[],$e(J.split(I)),Pe(),L)return Te()}else $e(J.split(I));if(T&&T<=ae)return re=re.slice(0,T),Te(!0)}}return Te()}for(var te=j.indexOf(I,k),K=j.indexOf(M,k),ee=new RegExp(y(N)+y(R),"g"),se=j.indexOf(R,k);;)if(j[k]!==R)if(_&&J.length===0&&j.substring(k,k+G)===_){if(K===-1)return Te();k=K+V,K=j.indexOf(M,k),te=j.indexOf(I,k)}else if(te!==-1&&(te<K||K===-1))J.push(j.substring(k,te)),k=te+q,te=j.indexOf(I,k);else{if(K===-1)break;if(J.push(j.substring(k,K)),Le(K+V),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0)}else for(se=k,k++;;){if((se=j.indexOf(R,se+1))===-1)return A||le.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:re.length,index:k}),Ee();if(se===H-1)return Ee(j.substring(k,se).replace(ee,R));if(R!==N||j[se+1]!==N){if(R===N||se===0||j[se-1]!==N){te!==-1&&te<se+1&&(te=j.indexOf(I,se+1)),K!==-1&&K<se+1&&(K=j.indexOf(M,se+1));var Ce=X(K===-1?te:Math.min(te,K));if(j.substr(se+1+Ce,q)===I){J.push(j.substring(k,se).replace(ee,R)),j[k=se+1+Ce+q]!==R&&(se=j.indexOf(R,k)),te=j.indexOf(I,k),K=j.indexOf(M,k);break}var _e=X(K);if(j.substring(se+1+_e,se+1+_e+V)===M){if(J.push(j.substring(k,se).replace(ee,R)),Le(se+1+_e+V),te=j.indexOf(I,k),se=j.indexOf(R,k),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0);break}le.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:re.length,index:k}),se++}}else se++}return Ee();function $e(Re){re.push(Re),oe=k}function X(Re){var He=0;if(Re!==-1){var it=j.substring(se+1,Re);it&&it.trim()===""&&(He=it.length)}return He}function Ee(Re){return A||(Re===void 0&&(Re=j.substring(k)),J.push(Re),k=H,$e(J),Y&&Pe()),Te()}function Le(Re){k=Re,$e(J),J=[],K=j.indexOf(M,k)}function Te(Re){return{data:re,errors:le,meta:{delimiter:I,linebreak:M,aborted:L,truncated:!!Re,cursor:oe+(B||0)}}}function Pe(){D(Te()),re=[],le=[]}},this.abort=function(){L=!0},this.getCharIndex=function(){return k}}function g(S){var R=S.data,I=a[R.workerId],M=!1;if(R.error)I.userError(R.error,R.file);else if(R.results&&R.results.data){var _={abort:function(){M=!0,x(R.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:w,resume:w};if(E(I.userStep)){for(var D=0;D<R.results.data.length&&(I.userStep({data:R.results.data[D],errors:R.results.errors,meta:R.results.meta},_),!M);D++);delete R.results}else E(I.userChunk)&&(I.userChunk(R.results,_,R.file),delete R.results)}R.finished&&!M&&x(R.workerId,R.results)}function x(S,R){var I=a[S];E(I.userComplete)&&I.userComplete(R),I.terminate(),delete a[S]}function w(){throw new Error("Not implemented.")}function P(S){if(typeof S!="object"||S===null)return S;var R=Array.isArray(S)?[]:{};for(var I in S)R[I]=P(S[I]);return R}function C(S,R){return function(){S.apply(R,arguments)}}function E(S){return typeof S=="function"}return i&&(r.onmessage=function(S){var R=S.data;if(s.WORKER_ID===void 0&&R&&(s.WORKER_ID=R.workerId),typeof R.input=="string")r.postMessage({workerId:s.WORKER_ID,results:s.parse(R.input,R.config),finished:!0});else if(r.File&&R.input instanceof File||R.input instanceof Object){var I=s.parse(R.input,R.config);I&&r.postMessage({workerId:s.WORKER_ID,results:I,finished:!0})}}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(m.prototype=Object.create(m.prototype)).constructor=m,(p.prototype=Object.create(c.prototype)).constructor=p,s})})(oL);var iL=oL.exports,Y7=function(){return Ji.Date.now()};const Fb=Y7;var X7=/\s/;function Z7(e){for(var t=e.length;t--&&X7.test(e.charAt(t)););return t}var J7=/^\s+/;function eG(e){return e&&e.slice(0,Z7(e)+1).replace(J7,"")}var tG="[object Symbol]";function qv(e){return typeof e=="symbol"||Zs(e)&&ad(e)==tG}var qI=0/0,nG=/^[-+]0x[0-9a-f]+$/i,rG=/^0b[01]+$/i,oG=/^0o[0-7]+$/i,iG=parseInt;function lw(e){if(typeof e=="number")return e;if(qv(e))return qI;if(Js(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Js(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=eG(e);var n=rG.test(e);return n||oG.test(e)?iG(e.slice(2),n?2:8):nG.test(e)?qI:+e}var aG="Expected a function",lG=Math.max,sG=Math.min;function aL(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(aG);t=lw(t)||0,Js(n)&&(c=!!n.leading,d="maxWait"in n,i=d?lG(lw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function m(C){var E=r,S=o;return r=o=void 0,u=C,a=e.apply(S,E),a}function p(C){return u=C,l=setTimeout(b,t),c?m(C):a}function h(C){var E=C-s,S=C-u,R=t-E;return d?sG(R,i-S):R}function y(C){var E=C-s,S=C-u;return s===void 0||E>=t||E<0||d&&S>=i}function b(){var C=Fb();if(y(C))return g(C);l=setTimeout(b,h(C))}function g(C){return l=void 0,f&&r?m(C):(r=o=void 0,a)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=o=l=void 0}function w(){return l===void 0?a:g(Fb())}function P(){var C=Fb(),E=y(C);if(r=arguments,o=this,s=C,E){if(l===void 0)return p(s);if(d)return clearTimeout(l),l=setTimeout(b,t),m(s)}return l===void 0&&(l=setTimeout(b,t)),a}return P.cancel=x,P.flush=w,P}function uG(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function cG(e,t,n){if(!Js(n))return!1;var r=typeof t;return(r=="number"?PS(n)&&IS(t,n.length):r=="string"&&t in n)?wS(n[t],e):!1}var KI=1/0,dG=17976931348623157e292;function fG(e){if(!e)return e===0?e:0;if(e=lw(e),e===KI||e===-KI){var t=e<0?-1:1;return t*dG}return e===e?e:0}function pG(e){var t=fG(e),n=t%1;return t===t?n?t-n:t:0}var mG=Math.ceil,hG=Math.max;function gG(e,t,n){(n?cG(e,t,n):t===void 0)?t=1:t=hG(pG(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(mG(r/t));o<r;)a[i++]=uG(e,o,o+=t);return a}var vG=1,yG=2;function bG(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){l=n[o];var s=l[0],u=e[s],c=l[1];if(a&&l[2]){if(u===void 0&&!(s in e))return!1}else{var d=new Ra;if(r)var f=r(u,c,s,e,t,d);if(!(f===void 0?Gv(c,u,vG|yG,r,d):f))return!1}}return!0}function lL(e){return e===e&&!Js(e)}function xG(e){for(var t=rL(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,lL(o)]}return t}function sL(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function wG(e){var t=xG(e);return t.length==1&&t[0][2]?sL(t[0][0],t[0][1]):function(n){return n===e||bG(n,e,t)}}var CG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SG=/^\w*$/;function OS(e,t){if(Wi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qv(e)?!0:SG.test(e)||!CG.test(e)||t!=null&&e in Object(t)}var EG="Expected a function";function MS(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(EG);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(MS.Cache||qa),n}MS.Cache=qa;var PG=500;function kG(e){var t=MS(e,function(r){return n.size===PG&&n.clear(),r}),n=t.cache;return t}var $G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,IG=/\\(\\)?/g,OG=kG(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($G,function(n,r,o,i){t.push(o?i.replace(IG,"$1"):r||n)}),t});const MG=OG;var RG=1/0,QI=Vi?Vi.prototype:void 0,YI=QI?QI.toString:void 0;function uL(e){if(typeof e=="string")return e;if(Wi(e))return $S(e,uL)+"";if(qv(e))return YI?YI.call(e):"";var t=e+"";return t=="0"&&1/e==-RG?"-0":t}function TG(e){return e==null?"":uL(e)}function cL(e,t){return Wi(e)?e:OS(e,t)?[e]:MG(TG(e))}var _G=1/0;function Kv(e){if(typeof e=="string"||qv(e))return e;var t=e+"";return t=="0"&&1/e==-_G?"-0":t}function dL(e,t){t=cL(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Kv(t[n++])];return n&&n==r?e:void 0}function Vg(e,t,n){var r=e==null?void 0:dL(e,t);return r===void 0?n:r}function FG(e,t){return e!=null&&t in Object(e)}function fL(e,t,n){t=cL(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Kv(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&ES(o)&&IS(a,o)&&(Wi(e)||vS(e)))}function AG(e,t){return e!=null&&fL(e,t,FG)}var LG=1,DG=2;function NG(e,t){return OS(e)&&lL(t)?sL(Kv(e),t):function(n){var r=Vg(n,e);return r===void 0&&r===t?AG(n,e):Gv(t,r,LG|DG)}}function zG(e){return function(t){return dL(t,e)}}function jG(e){return OS(e)?YA(Kv(e)):zG(e)}function BG(e){return typeof e=="function"?e:e==null?bS:typeof e=="object"?Wi(e)?NG(e[0],e[1]):wG(e):jG(e)}function HG(e,t){return e&&e.length?GA(e,BG(t)):[]}var UG=Object.defineProperty,W=(e,t)=>UG(e,"name",{value:t,configurable:!0}),Ab=W(e=>e/1e3,"userFriendlySecond"),VG=W((e,t=n=>n)=>{let[n,...r]=e;return r.map(o=>uW(sW(n,o))).map((o,i,a)=>t.call(void 0,o,i,a))},"importCSVMapper"),WG=W((e="",t)=>{let n=kL(e);return t==="singular"?Ug.singular(n):Ug.plural(n)},"userFriendlyResourceName");W((e={})=>e!=null&&e.id?{...e,id:decodeURIComponent(e.id)}:e,"handleUseParams");var Ae=W((...e)=>e.find(t=>typeof t<"u"),"pickNotDeprecated");function Pi(e,t){return e.findIndex((n,r)=>r<=e.length-t.length&&t.every((o,i)=>e[r+i]===o))}W(Pi,"arrayFindIndex");function pL(e){if(e[0]==="data"){let t=e.slice(1);if(t[2]==="many")t[2]="getMany";else if(t[2]==="infinite")t[2]="list";else if(t[2]==="one")t[2]="detail";else if(t[1]==="custom"){let n={...t[2]};return delete n.method,delete n.url,[t[0],t[1],t[2].method,t[2].url,n]}return t}if(e[0]==="audit"&&e[2]==="list")return["logList",e[1],e[3]];if(e[0]==="access"&&e.length===4)return["useCan",{resource:e[1],action:e[2],...e[3]}];if(e[0]==="auth"){if(Pi(e,["auth","login"])!==-1)return["useLogin"];if(Pi(e,["auth","logout"])!==-1)return["useLogout"];if(Pi(e,["auth","identity"])!==-1)return["getUserIdentity"];if(Pi(e,["auth","register"])!==-1)return["useRegister"];if(Pi(e,["auth","forgotPassword"])!==-1)return["useForgotPassword"];if(Pi(e,["auth","check"])!==-1)return["useAuthenticated",e[2]];if(Pi(e,["auth","onError"])!==-1)return["useCheckError"];if(Pi(e,["auth","permissions"])!==-1)return["usePermissions"];if(Pi(e,["auth","updatePassword"])!==-1)return["useUpdatePassword"]}return e}W(pL,"convertToLegacy");var ao=class{constructor(e=[]){this.segments=[],this.segments=e}key(){return this.segments}legacy(){return pL(this.segments)}get(e){return e?this.legacy():this.segments}};W(ao,"BaseKeyBuilder");var Ka=class extends ao{params(e){return new ao([...this.segments,e])}};W(Ka,"ParamsKeyBuilder");var mL=class extends ao{id(e){return new Ka([...this.segments,e?String(e):void 0])}};W(mL,"DataIdRequiringKeyBuilder");var hL=class extends ao{ids(...e){return new Ka([...this.segments,...e.length?[e.map(t=>String(t))]:[]])}};W(hL,"DataIdsRequiringKeyBuilder");var gL=class extends ao{action(e){if(e==="one")return new mL([...this.segments,e]);if(e==="many")return new hL([...this.segments,e]);if(["list","infinite"].includes(e))return new Ka([...this.segments,e]);throw new Error("Invalid action type")}};W(gL,"DataResourceKeyBuilder");var vL=class extends ao{resource(e){return new gL([...this.segments,e])}mutation(e){return new Ka([...e==="custom"?this.segments:[this.segments[0]],e])}};W(vL,"DataKeyBuilder");var yL=class extends ao{action(t){return new Ka([...this.segments,t])}};W(yL,"AuthKeyBuilder");var bL=class extends ao{action(t){return new Ka([...this.segments,t])}};W(bL,"AccessResourceKeyBuilder");var xL=class extends ao{resource(e){return new bL([...this.segments,e])}};W(xL,"AccessKeyBuilder");var wL=class extends ao{action(e){return new Ka([...this.segments,e])}};W(wL,"AuditActionKeyBuilder");var CL=class extends ao{resource(e){return new wL([...this.segments,e])}action(e){return new Ka([...this.segments,e])}};W(CL,"AuditKeyBuilder");var SL=class extends ao{data(e){return new vL(["data",e||"default"])}auth(){return new yL(["auth"])}access(){return new xL(["access"])}audit(){return new CL(["audit"])}};W(SL,"KeyBuilder");var xs=W(()=>new SL([]),"keys"),GG=W((e,t,n,r)=>{let o=t||"default",i={all:[o],resourceAll:[o,e||""],list:a=>[...i.resourceAll,"list",{...a,...Ae(n,r)||{}}],many:a=>[...i.resourceAll,"getMany",a==null?void 0:a.map(String),{...Ae(n,r)||{}}].filter(l=>l!==void 0),detail:a=>[...i.resourceAll,"detail",a==null?void 0:a.toString(),{...Ae(n,r)||{}}],logList:a=>["logList",e,a,r].filter(l=>l!==void 0)};return i},"queryKeys"),Qv=W(e=>(t,n,r,o)=>{let i=n||"default";return{all:xs().data(i).get(e),resourceAll:xs().data(n).resource(t??"").get(e),list:a=>xs().data(n).resource(t??"").action("list").params({...a,...Ae(r,o)||{}}).get(e),many:a=>xs().data(n).resource(t??"").action("many").ids(...a??[]).params({...Ae(r,o)||{}}).get(e),detail:a=>xs().data(n).resource(t??"").action("one").id(a??"").params({...Ae(r,o)||{}}).get(e),logList:a=>[...xs().audit().resource(t).action("list").params(a).get(e),o].filter(l=>l!==void 0)}},"queryKeysReplacement"),qG=W((e,t)=>!e||!t?!1:!!e.find(n=>n===t),"hasPermission"),RS=W(e=>e.startsWith(":"),"isParameter"),jc=W(e=>e.split("/").filter(t=>t!==""),"splitToSegments"),KG=W((e,t)=>{let n=jc(e),r=jc(t);return n.length===r.length},"isSegmentCountsSame"),za=W(e=>e.replace(/^\/|\/$/g,""),"removeLeadingTrailingSlashes"),QG=W((e,t)=>{let n=za(e),r=za(t);if(!KG(n,r))return!1;let o=jc(n);return jc(r).every((i,a)=>RS(i)||i===o[a])},"checkBySegments"),YG=W((e,t,n)=>{let r=za(n||""),o=`${r}${r?"/":""}${e}`;return t==="list"?o=`${o}`:t==="create"?o=`${o}/create`:t==="edit"?o=`${o}/edit/:id`:t==="show"?o=`${o}/show/:id`:t==="clone"&&(o=`${o}/clone/:id`),`/${o.replace(/^\//,"")}`},"getDefaultActionPath"),Ql=W((e,t)=>{var n,r;let o=Ae((n=e.meta)==null?void 0:n.parent,(r=e.options)==null?void 0:r.parent,e.parentName);return o?t.find(i=>(i.identifier??i.name)===o)??{name:o}:void 0},"getParentResource"),EL=W((e,t,n)=>{let r=[],o=Ql(e,t);for(;o;)r.push(o),o=Ql(o,t);if(r.length!==0)return`/${r.reverse().map(i=>{var a;let l=n?((a=i.options)==null?void 0:a.route)??i.name:i.name;return za(l)}).join("/")}`},"getParentPrefixForResource"),Qr=W((e,t,n)=>{let r=[],o=["list","show","edit","create","clone"],i=EL(e,t,n);return o.forEach(a=>{var l,s;let u=n&&a==="clone"?e.create:e[a],c;typeof u=="function"||n?c=YG(n?((l=e.meta)==null?void 0:l.route)??((s=e.options)==null?void 0:s.route)??e.name:e.name,a,n?i:void 0):typeof u=="string"?c=u:typeof u=="object"&&(c=u.path),c&&r.push({action:a,resource:e,route:`/${c.replace(/^\//,"")}`})}),r},"getActionRoutesFromResource"),XG=W(e=>{var t;if(e.length===0)return;if(e.length===1)return e[0];let n=e.map(i=>({...i,splitted:jc(za(i.route))})),r=((t=n[0])==null?void 0:t.splitted.length)??0,o=[...n];for(let i=0;i<r;i++){let a=o.filter(l=>!RS(l.splitted[i]));if(a.length!==0){if(a.length===1){o=a;break}o=a}}return o[0]},"pickMatchedRoute"),PL=W((e,t)=>{let n=t.flatMap(o=>Qr(o,t)).filter(o=>QG(e,o.route)),r=XG(n);return{found:!!r,resource:r==null?void 0:r.resource,action:r==null?void 0:r.action,matchedRoute:r==null?void 0:r.route}},"matchResourceFromRoute"),ZG=W((e,t)=>{var n;let r,o=EL(e,t,!0);if(o){let i=Ae(e.meta,e.options);r=`${o}/${(i==null?void 0:i.route)??e.name}`}else r=((n=e.options)==null?void 0:n.route)??e.name;return`/${r.replace(/^\//,"")}`},"routeGenerator");W(e=>{var t;let n=[],r={},o={},i,a;for(let l=0;l<e.length;l++){i=e[l];let s=i.route??((t=Ae(i==null?void 0:i.meta,i.options))==null?void 0:t.route)??"";r[s]=i,r[s].children=[],o[i.name]=i,o[i.name].children=[]}for(let l in r)Object.hasOwn(r,l)&&(a=r[l],a.parentName&&o[a.parentName]?o[a.parentName].children.push(a):n.push(a));return n},"createTreeView");var kL=W(e=>(e=e.replace(/([a-z]{1})([A-Z]{1})/g,"$1-$2"),e=e.replace(/([A-Z]{1})([A-Z]{1})([a-z]{1})/g,"$1-$2$3"),e=e.toLowerCase().replace(/[_-]+/g," ").replace(/\s{2,}/g," ").trim(),e=e.charAt(0).toUpperCase()+e.slice(1),e),"humanizeString"),$L=W(({children:e})=>$.createElement("div",null,e),"DefaultLayout"),Mr={mutationMode:"pessimistic",syncWithLocation:!1,undoableTimeout:5e3,warnWhenUnsavedChanges:!1,liveMode:"off",redirect:{afterCreate:"list",afterClone:"list",afterEdit:"list"},overtime:{interval:1e3},textTransformers:{humanize:kL,plural:Ug.plural,singular:Ug.singular},disableServerSideValidation:!1},os=$.createContext({hasDashboard:!1,mutationMode:"pessimistic",warnWhenUnsavedChanges:!1,syncWithLocation:!1,undoableTimeout:5e3,Title:void 0,Sider:void 0,Header:void 0,Footer:void 0,Layout:$L,OffLayoutArea:void 0,liveMode:"off",onLiveEvent:void 0,options:Mr}),JG=W(({hasDashboard:e,mutationMode:t,warnWhenUnsavedChanges:n,syncWithLocation:r,undoableTimeout:o,children:i,DashboardPage:a,Title:l,Layout:s=$L,Header:u,Sider:c,Footer:d,OffLayoutArea:f,LoginPage:m=qq,catchAll:p,liveMode:h="off",onLiveEvent:y,options:b})=>$.createElement(os.Provider,{value:{__initialized:!0,hasDashboard:e,mutationMode:t,warnWhenUnsavedChanges:n,syncWithLocation:r,Title:l,undoableTimeout:o,Layout:s,Header:u,Sider:c,Footer:d,OffLayoutArea:f,DashboardPage:a,LoginPage:m,catchAll:p,liveMode:h,onLiveEvent:y,options:b}},i),"RefineContextProvider"),eq=W(({options:e,disableTelemetry:t,liveMode:n,mutationMode:r,reactQueryClientConfig:o,reactQueryDevtoolConfig:i,syncWithLocation:a,undoableTimeout:l,warnWhenUnsavedChanges:s}={})=>{var u,c,d,f,m,p,h,y;let b={breadcrumb:e==null?void 0:e.breadcrumb,mutationMode:(e==null?void 0:e.mutationMode)??r??Mr.mutationMode,undoableTimeout:(e==null?void 0:e.undoableTimeout)??l??Mr.undoableTimeout,syncWithLocation:(e==null?void 0:e.syncWithLocation)??a??Mr.syncWithLocation,warnWhenUnsavedChanges:(e==null?void 0:e.warnWhenUnsavedChanges)??s??Mr.warnWhenUnsavedChanges,liveMode:(e==null?void 0:e.liveMode)??n??Mr.liveMode,redirect:{afterCreate:((u=e==null?void 0:e.redirect)==null?void 0:u.afterCreate)??Mr.redirect.afterCreate,afterClone:((c=e==null?void 0:e.redirect)==null?void 0:c.afterClone)??Mr.redirect.afterClone,afterEdit:((d=e==null?void 0:e.redirect)==null?void 0:d.afterEdit)??Mr.redirect.afterEdit},overtime:(e==null?void 0:e.overtime)??Mr.overtime,textTransformers:{humanize:((f=e==null?void 0:e.textTransformers)==null?void 0:f.humanize)??Mr.textTransformers.humanize,plural:((m=e==null?void 0:e.textTransformers)==null?void 0:m.plural)??Mr.textTransformers.plural,singular:((p=e==null?void 0:e.textTransformers)==null?void 0:p.singular)??Mr.textTransformers.singular},disableServerSideValidation:(e==null?void 0:e.disableServerSideValidation)??Mr.disableServerSideValidation,projectId:e==null?void 0:e.projectId,useNewQueryKeys:e==null?void 0:e.useNewQueryKeys},g=(e==null?void 0:e.disableTelemetry)??t??!1,x={clientConfig:((h=e==null?void 0:e.reactQuery)==null?void 0:h.clientConfig)??o??{},devtoolConfig:((y=e==null?void 0:e.reactQuery)==null?void 0:y.devtoolConfig)??i??{}};return{optionsWithDefaults:b,disableTelemetryWithDefault:g,reactQueryWithDefaults:x}},"handleRefineOptions"),tq=W(({redirectFromProps:e,action:t,redirectOptions:n})=>{if(e||e===!1)return e;switch(t){case"clone":return n.afterClone;case"create":return n.afterCreate;case"edit":return n.afterEdit;default:return!1}},"redirectPage"),XI=W(async(e,t,n)=>{let r=[];for(let[o,i]of e.entries())try{let a=await i();r.push(t(a,o))}catch(a){r.push(n(a,o))}return r},"sequentialPromises"),sr=W((e,t=[],n=!1)=>{if(!e)return;if(n)return t.find(i=>za(i.route??"")===za(e))||t.find(i=>i.name===e);let r=t.find(o=>o.identifier===e);return r||(r=t.find(o=>o.name===e)),r},"pickResource"),yt=W((e,t,n)=>{if(t)return t;let r=sr(e,n),o=Ae(r==null?void 0:r.meta,r==null?void 0:r.options);return o!=null&&o.dataProviderName?o.dataProviderName:"default"},"pickDataProvider"),Yv=W(async e=>({data:(await Promise.all(e)).map(t=>t.data)}),"handleMultiple"),nq=W(e=>{let{pagination:t,cursor:n}=e;if(n!=null&&n.next)return n.next;let r=(t==null?void 0:t.current)||1,o=(t==null?void 0:t.pageSize)||10,i=Math.ceil((e.total||0)/o);return r<i?Number(r)+1:void 0},"getNextPageParam"),rq=W(e=>{let{pagination:t,cursor:n}=e;if(n!=null&&n.prev)return n.prev;let r=(t==null?void 0:t.current)||1;return r===1?void 0:r-1},"getPreviousPageParam"),oq=W(e=>{let t=[];return e.forEach(n=>{var r,o;t.push({...n,label:((r=n.meta)==null?void 0:r.label)??((o=n.options)==null?void 0:o.label),route:ZG(n,e),canCreate:!!n.create,canEdit:!!n.edit,canShow:!!n.show,canDelete:n.canDelete})}),t},"legacyResourceTransform"),iq=W(e=>jc(za(e)).flatMap(t=>RS(t)?[t.slice(1)]:[]),"pickRouteParams"),aq=W((e,t={})=>e.reduce((n,r)=>{let o=t[r];return typeof o<"u"&&(n[r]=o),n},{}),"prepareRouteParams"),yo=W((e,t={},n={},r={})=>{let o=iq(e),i=aq(o,{...t,...typeof(n==null?void 0:n.id)<"u"?{id:n.id}:{},...typeof(n==null?void 0:n.action)<"u"?{action:n.action}:{},...typeof(n==null?void 0:n.resource)<"u"?{resource:n.resource}:{},...n==null?void 0:n.params,...r});return e.replace(/:([^\/]+)/g,(a,l)=>{let s=i[l];return typeof s<"u"?`${s}`:a})},"composeRoute"),IL=$.createContext({}),lq=W(({children:e,isProvided:t,...n})=>{let{replace:r}=xn(),o=W(async s=>{var u;try{return await((u=n.login)==null?void 0:u.call(n,s))}catch(c){return Promise.reject(c)}},"loginFunc"),i=W(async s=>{var u;try{return await((u=n.register)==null?void 0:u.call(n,s))}catch(c){return Promise.reject(c)}},"registerFunc"),a=W(async s=>{var u;try{return await((u=n.logout)==null?void 0:u.call(n,s))}catch(c){return Promise.reject(c)}},"logoutFunc"),l=W(async s=>{var u;try{return await((u=n.checkAuth)==null?void 0:u.call(n,s)),Promise.resolve()}catch(c){return c!=null&&c.redirectPath&&r(c.redirectPath),Promise.reject(c)}},"checkAuthFunc");return $.createElement(IL.Provider,{value:{...n,login:o,logout:a,checkAuth:l,register:i,isProvided:t}},e)},"LegacyAuthContextProvider"),OL=$.createContext({}),sq=W(({children:e,isProvided:t,...n})=>{let r=W(async u=>{var c;try{return await((c=n.login)==null?void 0:c.call(n,u))}catch(d){return console.warn("Unhandled Error in login: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleLogin"),o=W(async u=>{var c;try{return await((c=n.register)==null?void 0:c.call(n,u))}catch(d){return console.warn("Unhandled Error in register: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleRegister"),i=W(async u=>{var c;try{return await((c=n.logout)==null?void 0:c.call(n,u))}catch(d){return console.warn("Unhandled Error in logout: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleLogout"),a=W(async u=>{var c;try{let d=await((c=n.check)==null?void 0:c.call(n,u));return Promise.resolve(d)}catch(d){return console.warn("Unhandled Error in check: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleCheck"),l=W(async u=>{var c;try{let d=await((c=n.forgotPassword)==null?void 0:c.call(n,u));return Promise.resolve(d)}catch(d){return console.warn("Unhandled Error in forgotPassword: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleForgotPassword"),s=W(async u=>{var c;try{let d=await((c=n.updatePassword)==null?void 0:c.call(n,u));return Promise.resolve(d)}catch(d){return console.warn("Unhandled Error in updatePassword: refine always expects a resolved promise.",d),Promise.reject(d)}},"handleUpdatePassword");return $.createElement(OL.Provider,{value:{...n,login:r,logout:i,check:a,register:o,forgotPassword:l,updatePassword:s,isProvided:t}},e)},"AuthBindingsContextProvider"),Ho=W(()=>$.useContext(IL),"useLegacyAuthContext"),hi=W(()=>$.useContext(OL),"useAuthBindingsContext"),Nt=W(()=>{let e=Ho(),t=hi();return t.isProvided?{isLegacy:!1,...t}:e.isProvided?{isLegacy:!0,...e,check:e.checkAuth,onError:e.checkError,getIdentity:e.getUserIdentity}:null},"useActiveAuthProvider"),ML=W(({hasPagination:e,pagination:t,configPagination:n}={})=>{let r=e===!1?"off":"server",o=(t==null?void 0:t.mode)??r,i=Ae(t==null?void 0:t.current,n==null?void 0:n.current)??1,a=Ae(t==null?void 0:t.pageSize,n==null?void 0:n.pageSize)??10;return{current:i,pageSize:a,mode:o}},"handlePaginationParams"),ZI=W(e=>{let[t,n]=v.useState(!1);return v.useEffect(()=>{let r=window.matchMedia(e);r.matches!==t&&n(r.matches);let o=W(()=>n(r.matches),"listener");return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[t,e]),t},"useMediaQuery"),Lb=W((e,t,n,r)=>{let o=r?e(t,r,n):e(t,n);return o===t||typeof o>"u"?n??t:o},"safeTranslate");function RL(e,t,n,r,o){var i;let a={create:"Create new ",clone:`#${r??""} Clone `,edit:`#${r??""} Edit `,show:`#${r??""} Show `,list:""},l=(t==null?void 0:t.identifier)??(t==null?void 0:t.name),s=(t==null?void 0:t.label)??((i=t==null?void 0:t.meta)==null?void 0:i.label)??WG(l,n==="list"?"plural":"singular"),u=o??s,c=Lb(e,"documentTitle.default","refine"),d=Lb(e,"documentTitle.suffix"," | refine"),f=c;return n&&l&&(f=Lb(e,`documentTitle.${l}.${n}`,`${a[n]??""}${u}${d}`,{id:r})),f}W(RL,"generateDefaultDocumentTitle");var mu=W(()=>{let{mutationMode:e,undoableTimeout:t}=v.useContext(os);return{mutationMode:e,undoableTimeout:t}},"useMutationMode"),TL=$.createContext({}),uq=W(({children:e})=>{let[t,n]=v.useState(!1);return $.createElement(TL.Provider,{value:{warnWhen:t,setWarnWhen:n}},e)},"UnsavedWarnContextProvider"),Qa=W(()=>{let{warnWhenUnsavedChanges:e}=v.useContext(os),{warnWhen:t,setWarnWhen:n}=v.useContext(TL);return{warnWhenUnsavedChanges:e,warnWhen:!!t,setWarnWhen:n??(()=>{})}},"useWarnAboutChange"),cq=W(()=>{let{syncWithLocation:e}=v.useContext(os);return{syncWithLocation:e}},"useSyncWithLocation"),TS=W(()=>{let{Title:e}=v.useContext(os);return e},"useTitle"),un=W(()=>{let{Footer:e,Header:t,Layout:n,OffLayoutArea:r,Sider:o,Title:i,hasDashboard:a,mutationMode:l,syncWithLocation:s,undoableTimeout:u,warnWhenUnsavedChanges:c,DashboardPage:d,LoginPage:f,catchAll:m,options:p,__initialized:h}=v.useContext(os);return{__initialized:h,Footer:e,Header:t,Layout:n,OffLayoutArea:r,Sider:o,Title:i,hasDashboard:a,mutationMode:l,syncWithLocation:s,undoableTimeout:u,warnWhenUnsavedChanges:c,DashboardPage:d,LoginPage:f,catchAll:m,options:p}},"useRefineContext"),ea=W(()=>{let{options:{textTransformers:e}}=un();return W((t="",n)=>{let r=e.humanize(t);return n==="singular"?e.singular(r):e.plural(r)},"getFriendlyName")},"useUserFriendlyName"),JI=W(e=>typeof e=="object"&&e!==null,"isNested"),dq=W(e=>Array.isArray(e),"isArray"),Wg=W((e,t="")=>JI(e)?Object.keys(e).reduce((n,r)=>{let o=t.length?`${t}.`:"";return JI(e[r])&&Object.keys(e[r]).length&&(dq(e[r])&&e[r].length?e[r].forEach((i,a)=>{Object.assign(n,Wg(i,`${o+r}.${a}`))}):Object.assign(n,Wg(e[r],o+r))),n[o+r]=e[r],n},{}):{[t]:e},"flattenObjectKeys");W(e=>e.split(".").map(t=>Number.isNaN(Number(t))?t:Number(t)),"propertyPathToArray");var fq=W((e,t,n)=>{if(typeof window>"u")return;let r=new Blob([t],{type:n}),o=document.createElement("a");o.setAttribute("visibility","hidden"),o.download=e;let i=URL.createObjectURL(r);o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),setTimeout(()=>{URL.revokeObjectURL(i)})},"downloadInBrowser"),_L=W(e=>{let{current:t,pageSize:n,sorter:r,sorters:o,filters:i}=Xs.parse(e.substring(1));return{parsedCurrent:t&&Number(t),parsedPageSize:n&&Number(n),parsedSorter:Ae(o,r)??[],parsedFilters:i??[]}},"parseTableParams");W(e=>{let t=Xs.stringify(e);return _L(`/${t}`)},"parseTableParamsFromQuery");var eO=W(e=>{let t={skipNulls:!0,arrayFormat:"indices",encode:!1},{pagination:n,sorter:r,sorters:o,filters:i,...a}=e;return Xs.stringify({...a,...n||{},sorters:Ae(o,r),filters:i},t)},"stringifyTableParams"),FL=W((e,t)=>e.operator!=="and"&&e.operator!=="or"&&t.operator!=="and"&&t.operator!=="or"?("field"in e?e.field:void 0)===("field"in t?t.field:void 0)&&e.operator===t.operator:("key"in e?e.key:void 0)===("key"in t?t.key:void 0)&&e.operator===t.operator,"compareFilters"),AL=W((e,t)=>e.field===t.field,"compareSorters"),Ym=W((e,t,n=[])=>(t.filter(r=>(r.operator==="or"||r.operator==="and")&&!r.key).length>1&&tu(!0,`[conditionalFilters]: You have created multiple Conditional Filters at the top level, this requires the key parameter.
For more information, see https://refine.dev/docs/advanced-tutorials/data-provider/handling-filters/#top-level-multiple-conditional-filters-usage`),kS(e,t,n,FL).filter(r=>r.value!==void 0&&r.value!==null&&(r.operator!=="or"||r.operator==="or"&&r.value.length!==0)&&(r.operator!=="and"||r.operator==="and"&&r.value.length!==0))),"unionFilters"),tO=W((e,t)=>kS(e,t,AL).filter(n=>n.order!==void 0&&n.order!==null),"unionSorters"),nO=W((e,t)=>[...Ol(t,e,FL),...e],"setInitialFilters"),rO=W((e,t)=>[...Ol(t,e,AL),...e],"setInitialSorters");W((e,t)=>{if(!t)return;let n=t.find(r=>r.field===e);if(n)return n.order},"getDefaultSortOrder");W((e,t,n="eq")=>{let r=t==null?void 0:t.find(o=>{if(o.operator!=="or"&&o.operator!=="and"&&"field"in o){let{operator:i,field:a}=o;return a===e&&i===n}});if(r)return r.value||[]},"getDefaultFilter");W(e=>new Promise((t,n)=>{let r=new FileReader,o=W(()=>{r.result&&(r.removeEventListener("load",o,!1),t(r.result))},"resultHandler");r.addEventListener("load",o,!1),r.readAsDataURL(e.originFileObj),r.onerror=i=>(r.removeEventListener("load",o,!1),n(i))}),"file2Base64");var Ut=W(()=>{let{options:{useNewQueryKeys:e}}=un();return{keys:xs,preferLegacyKeys:!e}},"useKeys");function pq({v3LegacyAuthProviderCompatible:e=!1,options:t,params:n}={}){let{getPermissions:r}=Ho(),{getPermissions:o}=hi(),{keys:i,preferLegacyKeys:a}=Ut(),l=Do({queryKey:i().auth().action("permissions").get(a),queryFn:o?()=>o(n):()=>Promise.resolve(void 0),enabled:!e&&!!o,...e?{}:t,meta:{...e?{}:t==null?void 0:t.meta,...bt()}}),s=Do({queryKey:[...i().auth().action("permissions").get(a),"v3LegacyAuthProviderCompatible"],queryFn:r?()=>r(n):()=>Promise.resolve(void 0),enabled:e&&!!r,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?s:l}W(pq,"usePermissions");function ld({v3LegacyAuthProviderCompatible:e=!1,queryOptions:t}={}){let{getUserIdentity:n}=Ho(),{getIdentity:r}=hi(),{keys:o,preferLegacyKeys:i}=Ut(),a=Do({queryKey:o().auth().action("identity").get(i),queryFn:r??(()=>Promise.resolve({})),enabled:!e&&!!r,retry:!1,...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),l=Do({queryKey:[...o().auth().action("identity").get(i),"v3LegacyAuthProviderCompatible"],queryFn:n??(()=>Promise.resolve({})),enabled:e&&!!n,retry:!1,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?l:a}W(ld,"useGetIdentity");var _S=W(()=>{let e=Zi(),{keys:t,preferLegacyKeys:n}=Ut();return W(async()=>{await Promise.all(["check","identity","permissions"].map(r=>e.invalidateQueries(t().auth().action(r).get(n))))},"invalidate")},"useInvalidateAuthStore");function Bc({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=_S(),r=st(),o=pr(),{push:i}=xn(),{open:a,close:l}=hu(),{logout:s}=Ho(),{logout:u}=hi(),{keys:c,preferLegacyKeys:d}=Ut(),f=bn({mutationKey:c().auth().action("logout").get(d),mutationFn:u,onSuccess:async(p,h)=>{let{success:y,error:b,redirectTo:g,successNotification:x}=p,{redirectPath:w}=h??{},P=w??g;y&&(l==null||l("useLogout-error"),x&&(a==null||a(mq(x)))),(b||!y)&&(a==null||a(Db(b))),P!==!1&&(r==="legacy"?i(P??"/login"):P&&o({to:P})),await n()},onError:p=>{a==null||a(Db(p))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),m=bn({mutationKey:[...c().auth().action("logout").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:s,onSuccess:async(p,h)=>{let y=(h==null?void 0:h.redirectPath)??p;if(y!==!1){if(y){r==="legacy"?i(y):o({to:y});return}r==="legacy"?i("/login"):o({to:"/login"}),await n()}},onError:p=>{a==null||a(Db(p))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?m:f}W(Bc,"useLogout");var Db=W(e=>({key:"useLogout-error",type:"error",message:(e==null?void 0:e.name)||"Logout Error",description:(e==null?void 0:e.message)||"Something went wrong during logout"}),"buildNotification"),mq=W(e=>({message:e.message,description:e.description,key:"logout-success",type:"success"}),"buildSuccessNotification");function Dp({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=_S(),r=st(),o=pr(),{replace:i}=xn(),a=Vo(),{useLocation:l}=zt(),{search:s}=l(),{close:u,open:c}=hu(),{login:d}=Ho(),{login:f}=hi(),{keys:m,preferLegacyKeys:p}=Ut(),h=$.useMemo(()=>{var g;return r==="legacy"?Xs.parse(s,{ignoreQueryPrefix:!0}).to:(g=a.params)==null?void 0:g.to},[r,a.params,s]),y=bn({mutationKey:m().auth().action("login").get(p),mutationFn:f,onSuccess:async({success:g,redirectTo:x,error:w,successNotification:P})=>{g&&(u==null||u("login-error"),P&&(c==null||c(hq(P)))),(w||!g)&&(c==null||c(Nb(w))),h&&g?r==="legacy"?i(h):o({to:h,type:"replace"}):x?r==="legacy"?i(x):o({to:x,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:g=>{c==null||c(Nb(g))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),b=bn({mutationKey:[...m().auth().action("login").get(p),"v3LegacyAuthProviderCompatible"],mutationFn:d,onSuccess:async g=>{h&&i(h),g!==!1&&!h&&(typeof g=="string"?r==="legacy"?i(g):o({to:g,type:"replace"}):r==="legacy"?i("/"):o({to:"/",type:"replace"})),await n(),u==null||u("login-error")},onError:g=>{c==null||c(Nb(g))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?b:y}W(Dp,"useLogin");var Nb=W(e=>({message:(e==null?void 0:e.name)||"Login Error",description:(e==null?void 0:e.message)||"Invalid credentials",key:"login-error",type:"error"}),"buildNotification"),hq=W(e=>({message:e.message,description:e.description,key:"login-success",type:"success"}),"buildSuccessNotification");function FS({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=_S(),r=st(),o=pr(),{replace:i}=xn(),{register:a}=Ho(),{register:l}=hi(),{close:s,open:u}=hu(),{keys:c,preferLegacyKeys:d}=Ut(),f=bn({mutationKey:c().auth().action("register").get(d),mutationFn:l,onSuccess:async({success:p,redirectTo:h,error:y,successNotification:b})=>{p&&(s==null||s("register-error"),b&&(u==null||u(gq(b)))),(y||!p)&&(u==null||u(zb(y))),h?r==="legacy"?i(h):o({to:h,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:p=>{u==null||u(zb(p))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),m=bn({mutationKey:[...c().auth().action("register").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:a,onSuccess:async p=>{p!==!1&&(p?r==="legacy"?i(p):o({to:p,type:"replace"}):r==="legacy"?i("/"):o({to:"/",type:"replace"}),await n(),s==null||s("register-error"))},onError:p=>{u==null||u(zb(p))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?m:f}W(FS,"useRegister");var zb=W(e=>({message:(e==null?void 0:e.name)||"Register Error",description:(e==null?void 0:e.message)||"Error while registering",key:"register-error",type:"error"}),"buildNotification"),gq=W(e=>({message:e.message,description:e.description,key:"register-success",type:"success"}),"buildSuccessNotification");function AS({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=st(),r=pr(),{replace:o}=xn(),{forgotPassword:i}=Ho(),{forgotPassword:a}=hi(),{close:l,open:s}=hu(),{keys:u,preferLegacyKeys:c}=Ut(),d=bn({mutationKey:u().auth().action("forgotPassword").get(c),mutationFn:a,onSuccess:({success:m,redirectTo:p,error:h,successNotification:y})=>{m&&(l==null||l("forgot-password-error"),y&&(s==null||s(vq(y)))),(h||!m)&&(s==null||s(jb(h))),p&&(n==="legacy"?o(p):r({to:p,type:"replace"}))},onError:m=>{s==null||s(jb(m))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),f=bn({mutationKey:[...u().auth().action("forgotPassword").get(c),"v3LegacyAuthProviderCompatible"],mutationFn:i,onSuccess:m=>{m!==!1&&m&&(n==="legacy"?o(m):r({to:m,type:"replace"})),l==null||l("forgot-password-error")},onError:m=>{s==null||s(jb(m))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?f:d}W(AS,"useForgotPassword");var jb=W(e=>({message:(e==null?void 0:e.name)||"Forgot Password Error",description:(e==null?void 0:e.message)||"Error while resetting password",key:"forgot-password-error",type:"error"}),"buildNotification"),vq=W(e=>({message:e.message,description:e.description,key:"forgot-password-success",type:"success"}),"buildSuccessNotification");function LS({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=st(),r=pr(),{replace:o}=xn(),{updatePassword:i}=Ho(),{updatePassword:a}=hi(),{close:l,open:s}=hu(),{keys:u,preferLegacyKeys:c}=Ut(),d=Vo(),{useLocation:f}=zt(),{search:m}=f(),p=$.useMemo(()=>n==="legacy"?Xs.parse(m,{ignoreQueryPrefix:!0})??{}:d.params??{},[m,d,n]),h=bn({mutationKey:u().auth().action("updatePassword").get(c),mutationFn:async b=>a==null?void 0:a({...p,...b}),onSuccess:({success:b,redirectTo:g,error:x,successNotification:w})=>{b&&(l==null||l("update-password-error"),w&&(s==null||s(yq(w)))),(x||!b)&&(s==null||s(Bb(x))),g&&(n==="legacy"?o(g):r({to:g,type:"replace"}))},onError:b=>{s==null||s(Bb(b))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...bt()}}),y=bn({mutationKey:[...u().auth().action("updatePassword").get(c),"v3LegacyAuthProviderCompatible"],mutationFn:async b=>i==null?void 0:i({...p,...b}),onSuccess:b=>{b!==!1&&b&&(n==="legacy"?o(b):r({to:b,type:"replace"})),l==null||l("update-password-error")},onError:b=>{s==null||s(Bb(b))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...bt()}});return e?y:h}W(LS,"useUpdatePassword");var Bb=W(e=>({message:(e==null?void 0:e.name)||"Update Password Error",description:(e==null?void 0:e.message)||"Error while updating password",key:"update-password-error",type:"error"}),"buildNotification"),yq=W(e=>({message:e.message,description:e.description,key:"update-password-success",type:"success"}),"buildSuccessNotification");function LL({v3LegacyAuthProviderCompatible:e=!1,params:t}={}){let{checkAuth:n}=Ho(),{check:r}=hi(),{keys:o,preferLegacyKeys:i}=Ut(),a=Do({queryKey:o().auth().action("check").params(t).get(i),queryFn:async()=>await(r==null?void 0:r(t))??{},retry:!1,enabled:!e,meta:{...bt()}}),l=Do({queryKey:[...o().auth().action("check").params(t).get(i),"v3LegacyAuthProviderCompatible"],queryFn:async()=>await(n==null?void 0:n(t))??{},retry:!1,enabled:e,meta:{...bt()}});return e?l:a}W(LL,"useIsAuthenticated");function Uo({v3LegacyAuthProviderCompatible:e=!1}={}){let t=st(),n=pr(),{replace:r}=xn(),{checkError:o}=Ho(),{onError:i}=hi(),{keys:a,preferLegacyKeys:l}=Ut(),{mutate:s}=Bc({v3LegacyAuthProviderCompatible:!!e}),{mutate:u}=Bc({v3LegacyAuthProviderCompatible:!!e}),c=bn({mutationKey:a().auth().action("onError").get(l),mutationFn:i,onSuccess:({logout:f,redirectTo:m})=>{if(f){u({redirectPath:m});return}if(m){t==="legacy"?r(m):n({to:m,type:"replace"});return}},meta:{...bt()}}),d=bn({mutationKey:[...a().auth().action("onError").get(l),"v3LegacyAuthProviderCompatible"],mutationFn:o,onError:f=>{s({redirectPath:f})},meta:{...bt()}});return e?d:c}W(Uo,"useOnError");var Xv=W(()=>{let{isProvided:e}=Ho(),{isProvided:t}=hi();return!!(t||e)},"useIsExistAuthentication"),fr=W(({isLoading:e,interval:t,onInterval:n})=>{let[r,o]=v.useState(void 0),{options:i}=un(),{overtime:a}=i,l=t??a.interval,s=n??(a==null?void 0:a.onInterval);return v.useEffect(()=>{let u;return e&&(u=setInterval(()=>{o(c=>c===void 0?l:c+l)},l)),()=>{clearInterval(u),o(void 0)}},[e,l]),v.useEffect(()=>{s&&r&&s(r)},[r]),{elapsedTime:r}},"useLoadingOvertime"),DL=W(({resource:e,config:t,filters:n,hasPagination:r,pagination:o,sorters:i,queryOptions:a,successNotification:l,errorNotification:s,meta:u,metaData:c,liveMode:d,onLiveEvent:f,liveParams:m,dataProviderName:p,overtimeOptions:h}={})=>{let{resources:y,resource:b,identifier:g}=Je(e),x=Hr(),w=Qe(),P=Nt(),{mutate:C}=Uo({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),E=Wo(),S=Gn(),{keys:R,preferLegacyKeys:I}=Ut(),M=yt(g,p,y),_=Ae(u,c),D=Ae(n,t==null?void 0:t.filters),T=Ae(i,t==null?void 0:t.sort),F=Ae(r,t==null?void 0:t.hasPagination),N=ML({pagination:o,configPagination:t==null?void 0:t.pagination,hasPagination:F}),k=N.mode==="server",L=S({resource:b,meta:_}),j={meta:L,metaData:L,filters:D,hasPagination:k,pagination:N,sorters:T,config:{...t,sort:T}},B=(a==null?void 0:a.enabled)===void 0||(a==null?void 0:a.enabled)===!0,{getList:A}=x(M);Zv({resource:g,types:["*"],params:{meta:L,metaData:L,pagination:N,hasPagination:k,sort:T,sorters:T,filters:D,subscriptionType:"useList",...m},channel:`resources/${b==null?void 0:b.name}`,enabled:B,liveMode:d,onLiveEvent:f,dataProviderName:M,meta:{...u,dataProviderName:p}});let H=Do({queryKey:R().data(M).resource(g??"").action("list").params({..._||{},filters:D,hasPagination:k,...k&&{pagination:N},...i&&{sorters:i},...(t==null?void 0:t.sort)&&{sort:t==null?void 0:t.sort}}).get(I),queryFn:({queryKey:V,pageParam:G,signal:Y})=>A({resource:(b==null?void 0:b.name)??"",pagination:N,hasPagination:k,filters:D,sort:T,sorters:T,meta:{...L,queryContext:{queryKey:V,pageParam:G,signal:Y}},metaData:{...L,queryContext:{queryKey:V,pageParam:G,signal:Y}}}),...a,enabled:typeof(a==null?void 0:a.enabled)<"u"?a==null?void 0:a.enabled:!!(b!=null&&b.name),select:V=>{var G;let Y=V,{current:re,mode:le,pageSize:J}=N;return le==="client"&&(Y={...Y,data:Y.data.slice((re-1)*J,re*J),total:Y.total}),a!=null&&a.select?(G=a==null?void 0:a.select)==null?void 0:G.call(a,Y):Y},onSuccess:V=>{var G;(G=a==null?void 0:a.onSuccess)==null||G.call(a,V);let Y=typeof l=="function"?l(V,j,g):l;E(Y)},onError:V=>{var G;C(V),(G=a==null?void 0:a.onError)==null||G.call(a,V);let Y=typeof s=="function"?s(V,j,g):s;E(Y,{key:`${g}-useList-notification`,message:w("notifications.error",{statusCode:V.statusCode},`Error (status code: ${V.statusCode})`),description:V.message,type:"error"})},meta:{...a==null?void 0:a.meta,...bt()}}),{elapsedTime:q}=fr({isLoading:H.isFetching,interval:h==null?void 0:h.interval,onInterval:h==null?void 0:h.onInterval});return{...H,overtime:{elapsedTime:q}}},"useList"),NL=W(({resource:e,id:t,queryOptions:n,successNotification:r,errorNotification:o,meta:i,metaData:a,liveMode:l,onLiveEvent:s,liveParams:u,dataProviderName:c,overtimeOptions:d})=>{let{resources:f,resource:m,identifier:p}=Je(e),h=Hr(),y=Qe(),b=Nt(),{mutate:g}=Uo({v3LegacyAuthProviderCompatible:!!(b!=null&&b.isLegacy)}),x=Wo(),w=Gn(),{keys:P,preferLegacyKeys:C}=Ut(),E=Ae(i,a),S=yt(p,c,f),{getOne:R}=h(S),I=w({resource:m,meta:E});Zv({resource:p,types:["*"],channel:`resources/${m==null?void 0:m.name}`,params:{ids:t?[t]:[],id:t,meta:I,metaData:I,subscriptionType:"useOne",...u},enabled:typeof(n==null?void 0:n.enabled)<"u"?n==null?void 0:n.enabled:typeof(m==null?void 0:m.name)<"u"&&typeof t<"u",liveMode:l,onLiveEvent:s,dataProviderName:S,meta:{...i,dataProviderName:c}});let M=Do({queryKey:P().data(S).resource(p??"").action("one").id(t??"").params({...E||{}}).get(C),queryFn:({queryKey:D,pageParam:T,signal:F})=>R({resource:(m==null?void 0:m.name)??"",id:t,meta:{...I,queryContext:{queryKey:D,pageParam:T,signal:F}},metaData:{...I,queryContext:{queryKey:D,pageParam:T,signal:F}}}),...n,enabled:typeof(n==null?void 0:n.enabled)<"u"?n==null?void 0:n.enabled:typeof t<"u",onSuccess:D=>{var T;(T=n==null?void 0:n.onSuccess)==null||T.call(n,D);let F=typeof r=="function"?r(D,{id:t,...I},p):r;x(F)},onError:D=>{var T;g(D),(T=n==null?void 0:n.onError)==null||T.call(n,D);let F=typeof o=="function"?o(D,{id:t,...I},p):o;x(F,{key:`${t}-${p}-getOne-notification`,message:y("notifications.error",{statusCode:D.statusCode},`Error (status code: ${D.statusCode})`),description:D.message,type:"error"})},meta:{...n==null?void 0:n.meta,...bt()}}),{elapsedTime:_}=fr({isLoading:M.isFetching,interval:d==null?void 0:d.interval,onInterval:d==null?void 0:d.onInterval});return{...M,overtime:{elapsedTime:_}}},"useOne"),bq=W(({resource:e,ids:t,queryOptions:n,successNotification:r,errorNotification:o,meta:i,metaData:a,liveMode:l,onLiveEvent:s,liveParams:u,dataProviderName:c,overtimeOptions:d})=>{let{resources:f,resource:m,identifier:p}=Je(e),h=Hr(),y=Qe(),b=Nt(),{mutate:g}=Uo({v3LegacyAuthProviderCompatible:!!(b!=null&&b.isLegacy)}),x=Wo(),w=Gn(),{keys:P,preferLegacyKeys:C}=Ut(),E=Ae(i,a),S=yt(p,c,f),R=(n==null?void 0:n.enabled)===void 0||(n==null?void 0:n.enabled)===!0,{getMany:I,getOne:M}=h(S),_=w({resource:m,meta:E});Zv({resource:p,types:["*"],params:{ids:t,meta:_,metaData:_,subscriptionType:"useMany",...u},channel:`resources/${m.name}`,enabled:R,liveMode:l,onLiveEvent:s,dataProviderName:S,meta:{...i,dataProviderName:c}});let D=Do({queryKey:P().data(S).resource(p).action("many").ids(...t).params({...E||{}}).get(C),queryFn:({queryKey:F,pageParam:N,signal:k})=>I?I({resource:m==null?void 0:m.name,ids:t,meta:{..._,queryContext:{queryKey:F,pageParam:N,signal:k}},metaData:{..._,queryContext:{queryKey:F,pageParam:N,signal:k}}}):Yv(t.map(L=>M({resource:m==null?void 0:m.name,id:L,meta:{..._,queryContext:{queryKey:F,pageParam:N,signal:k}},metaData:{..._,queryContext:{queryKey:F,pageParam:N,signal:k}}}))),...n,onSuccess:F=>{var N;(N=n==null?void 0:n.onSuccess)==null||N.call(n,F);let k=typeof r=="function"?r(F,t,p):r;x(k)},onError:F=>{var N;g(F),(N=n==null?void 0:n.onError)==null||N.call(n,F);let k=typeof o=="function"?o(F,t,p):o;x(k,{key:`${t[0]}-${p}-getMany-notification`,message:y("notifications.error",{statusCode:F.statusCode},`Error (status code: ${F.statusCode})`),description:F.message,type:"error"})},meta:{...n==null?void 0:n.meta,...bt()}}),{elapsedTime:T}=fr({isLoading:D.isFetching,interval:d==null?void 0:d.interval,onInterval:d==null?void 0:d.onInterval});return{...D,overtime:{elapsedTime:T}}},"useMany"),zL=$.createContext({notifications:[],notificationDispatch:()=>!1}),xq=[],wq=W((e,t)=>{switch(t.type){case"ADD":return[...e.filter(n=>!(Mo(n.id,t.payload.id)&&n.resource===t.payload.resource)),{...t.payload,isRunning:!0}];case"REMOVE":return e.filter(n=>!(Mo(n.id,t.payload.id)&&n.resource===t.payload.resource));case"DECREASE_NOTIFICATION_SECOND":return e.map(n=>Mo(n.id,t.payload.id)&&n.resource===t.payload.resource?{...n,seconds:t.payload.seconds-1e3}:n);default:return e}},"undoableQueueReducer"),Cq=W(({children:e})=>{let[t,n]=v.useReducer(wq,xq),r={notifications:t,notificationDispatch:n};return $.createElement(zL.Provider,{value:r},e,typeof window<"u"&&t.map(o=>$.createElement(vK,{key:`${o.id}-${o.resource}-queue`,notification:o})))},"UndoableQueueContextProvider"),oO=W(({mutationOptions:e,overtimeOptions:t}={})=>{let{resources:n,select:r}=Je(),o=Zi(),i=Hr(),{mutationMode:a,undoableTimeout:l}=mu(),s=Qe(),u=Nt(),{mutate:c}=Uo({v3LegacyAuthProviderCompatible:!!(u!=null&&u.isLegacy)}),d=sd(),{log:f}=cd(),{notificationDispatch:m}=Bp(),p=Wo(),h=ta(),y=Gn(),{options:{textTransformers:b}}=un(),{keys:g,preferLegacyKeys:x}=Ut(),w=bn({mutationFn:({id:C,values:E,resource:S,mutationMode:R,undoableTimeout:I,onCancel:M,meta:_,metaData:D,dataProviderName:T})=>{let{resource:F,identifier:N}=r(S),k=y({resource:F,meta:Ae(_,D)}),L=R??a,j=I??l;return L!=="undoable"?i(yt(N,T,n)).update({resource:F.name,id:C,variables:E,meta:k,metaData:k}):new Promise((B,A)=>{let H=W(()=>{i(yt(N,T,n)).update({resource:F.name,id:C,variables:E,meta:k,metaData:k}).then(V=>B(V)).catch(V=>A(V))},"doMutation"),q=W(()=>{A({message:"mutationCancelled"})},"cancelMutation");M&&M(q),m({type:"ADD",payload:{id:C,resource:N,cancelMutation:q,doMutation:H,seconds:j,isSilent:!!M}})})},onMutate:async({resource:C,id:E,mutationMode:S,values:R,dataProviderName:I,meta:M,metaData:_,optimisticUpdateMap:D={list:!0,many:!0,detail:!0}})=>{let{identifier:T}=r(C),{gqlMutation:F,gqlQuery:N,...k}=Ae(M,_)??{},L=Qv(x)(T,yt(T,I,n),k),j=g().data(yt(T,I,n)).resource(T),B=o.getQueriesData(j.get(x)),A=S??a;return await o.cancelQueries(j.get(x),void 0,{silent:!0}),A!=="pessimistic"&&(D.list&&o.setQueriesData(j.action("list").params(k??{}).get(x),H=>{if(typeof D.list=="function")return D.list(H,R,E);if(!H)return null;let q=H.data.map(V=>{var G;return((G=V.id)==null?void 0:G.toString())===(E==null?void 0:E.toString())?{id:E,...V,...R}:V});return{...H,data:q}}),D.many&&o.setQueriesData(j.action("many").get(x),H=>{if(typeof D.many=="function")return D.many(H,R,E);if(!H)return null;let q=H.data.map(V=>{var G;return((G=V.id)==null?void 0:G.toString())===(E==null?void 0:E.toString())&&(V={id:E,...V,...R}),V});return{...H,data:q}}),D.detail&&o.setQueriesData(j.action("one").id(E).params(k??{}).get(x),H=>typeof D.detail=="function"?D.detail(H,R,E):H?{...H,data:{...H.data,...R}}:null)),{previousQueries:B,queryKey:L}},onSettled:(C,E,{id:S,resource:R,dataProviderName:I,invalidates:M=["list","many","detail"]})=>{let{identifier:_}=r(R);h({resource:_,dataProviderName:yt(_,I,n),invalidates:M,id:S}),m({type:"REMOVE",payload:{id:S,resource:_}})},onSuccess:(C,{id:E,resource:S,successNotification:R,dataProviderName:I,values:M,meta:_,metaData:D},T)=>{var F;let{resource:N,identifier:k}=r(S),L=b.singular(k),j=yt(k,I,n),B=y({resource:N,meta:Ae(_,D)}),A=typeof R=="function"?R(C,{id:E,values:M},k):R;p(A,{key:`${E}-${k}-notification`,description:s("notifications.success","Successful"),message:s("notifications.editSuccess",{resource:s(`${k}.${k}`,L)},`Successfully updated ${L}`),type:"success"}),d==null||d({channel:`resources/${N.name}`,type:"updated",payload:{ids:(F=C.data)!=null&&F.id?[C.data.id]:void 0},date:new Date,meta:{...B,dataProviderName:j}});let H;if(T){let re=o.getQueryData(T.queryKey.detail(E));H=Object.keys(M||{}).reduce((le,J)=>{var oe;return le[J]=(oe=re==null?void 0:re.data)==null?void 0:oe[J],le},{})}let{fields:q,operation:V,variables:G,...Y}=B||{};f==null||f.mutate({action:"update",resource:N.name,data:M,previousData:H,meta:{id:E,dataProviderName:j,...Y}})},onError:(C,{id:E,resource:S,errorNotification:R,values:I},M)=>{let{identifier:_}=r(S);if(M)for(let D of M.previousQueries)o.setQueryData(D[0],D[1]);if(C.message!=="mutationCancelled"){c==null||c(C);let D=b.singular(_),T=typeof R=="function"?R(C,{id:E,values:I},_):R;p(T,{key:`${E}-${_}-notification`,message:s("notifications.editError",{resource:s(`${_}.${_}`,D),statusCode:C.statusCode},`Error when updating ${D} (status code: ${C.statusCode})`),description:C.message,type:"error"})}},mutationKey:g().data().mutation("update").get(x),...e,meta:{...e==null?void 0:e.meta,...bt()}}),{elapsedTime:P}=fr({isLoading:w.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...w,overtime:{elapsedTime:P}}},"useUpdate"),jL=W(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Nt(),{mutate:r}=Uo({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),o=Hr(),i=ta(),{resources:a,select:l}=Je(),s=Qe(),u=sd(),{log:c}=cd(),d=Wo(),f=Gn(),{options:{textTransformers:m}}=un(),{keys:p,preferLegacyKeys:h}=Ut(),y=bn({mutationFn:({resource:g,values:x,meta:w,metaData:P,dataProviderName:C})=>{let{resource:E,identifier:S}=l(g),R=f({resource:E,meta:Ae(w,P)});return o(yt(S,C,a)).create({resource:E.name,variables:x,meta:R,metaData:R})},onSuccess:(g,{resource:x,successNotification:w,dataProviderName:P,invalidates:C=["list","many"],values:E,meta:S,metaData:R})=>{var I,M;let{resource:_,identifier:D}=l(x),T=m.singular(D),F=yt(D,P,a),N=f({resource:_,meta:Ae(S,R)}),k=typeof w=="function"?w(g,E,D):w;d(k,{key:`create-${D}-notification`,message:s("notifications.createSuccess",{resource:s(`${D}.${D}`,T)},`Successfully created ${T}`),description:s("notifications.success","Success"),type:"success"}),i({resource:D,dataProviderName:F,invalidates:C}),u==null||u({channel:`resources/${_.name}`,type:"created",payload:{ids:(I=g==null?void 0:g.data)!=null&&I.id?[g.data.id]:void 0},date:new Date,meta:{...N,dataProviderName:F}});let{fields:L,operation:j,variables:B,...A}=N||{};c==null||c.mutate({action:"create",resource:_.name,data:E,meta:{dataProviderName:F,id:((M=g==null?void 0:g.data)==null?void 0:M.id)??void 0,...A}})},onError:(g,{resource:x,errorNotification:w,values:P})=>{r(g);let{identifier:C}=l(x),E=m.singular(C),S=typeof w=="function"?w(g,P,C):w;d(S,{key:`create-${C}-notification`,description:g.message,message:s("notifications.createError",{resource:s(`${C}.${C}`,E),statusCode:g.statusCode},`There was an error creating ${E} (status code: ${g.statusCode})`),type:"error"})},mutationKey:p().data().mutation("create").get(h),...e,meta:{...e==null?void 0:e.meta,...bt()}}),{elapsedTime:b}=fr({isLoading:y.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...y,overtime:{elapsedTime:b}}},"useCreate"),BL=W(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Nt(),{mutate:r}=Uo({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),o=Hr(),{resources:i,select:a}=Je(),l=Zi(),{mutationMode:s,undoableTimeout:u}=mu(),{notificationDispatch:c}=Bp(),d=Qe(),f=sd(),{log:m}=cd(),p=Wo(),h=ta(),y=Gn(),{options:{textTransformers:b}}=un(),{keys:g,preferLegacyKeys:x}=Ut(),w=bn({mutationFn:({id:C,mutationMode:E,undoableTimeout:S,resource:R,onCancel:I,meta:M,metaData:_,dataProviderName:D,values:T})=>{let{resource:F,identifier:N}=a(R),k=y({resource:F,meta:Ae(M,_)}),L=E??s,j=S??u;return L!=="undoable"?o(yt(N,D,i)).deleteOne({resource:F.name,id:C,meta:k,metaData:k,variables:T}):new Promise((B,A)=>{let H=W(()=>{o(yt(N,D,i)).deleteOne({resource:F.name,id:C,meta:k,metaData:k,variables:T}).then(V=>B(V)).catch(V=>A(V))},"doMutation"),q=W(()=>{A({message:"mutationCancelled"})},"cancelMutation");I&&I(q),c({type:"ADD",payload:{id:C,resource:N,cancelMutation:q,doMutation:H,seconds:j,isSilent:!!I}})})},onMutate:async({id:C,resource:E,mutationMode:S,dataProviderName:R,meta:I,metaData:M})=>{let{identifier:_}=a(E),{gqlMutation:D,gqlQuery:T,...F}=Ae(I,M)??{},N=Qv(x)(_,yt(_,R,i),F),k=g().data(yt(_,R,i)).resource(_),L=S??s;await l.cancelQueries(k.get(x),void 0,{silent:!0});let j=l.getQueriesData(k.get(x));return L!=="pessimistic"&&(l.setQueriesData(k.action("list").params(F??{}).get(x),B=>B?{data:B.data.filter(A=>{var H;return((H=A.id)==null?void 0:H.toString())!==C.toString()}),total:B.total-1}:null),l.setQueriesData(k.action("many").get(x),B=>{if(!B)return null;let A=B.data.filter(H=>{var q;return((q=H.id)==null?void 0:q.toString())!==(C==null?void 0:C.toString())});return{...B,data:A}})),{previousQueries:j,queryKey:N}},onSettled:(C,E,{id:S,resource:R,dataProviderName:I,invalidates:M=["list","many"]})=>{let{identifier:_}=a(R);h({resource:_,dataProviderName:yt(_,I,i),invalidates:M}),c({type:"REMOVE",payload:{id:S,resource:_}})},onSuccess:(C,{id:E,resource:S,successNotification:R,dataProviderName:I,meta:M,metaData:_},D)=>{let{resource:T,identifier:F}=a(S),N=b.singular(F),k=yt(F,I,i),L=y({resource:T,meta:Ae(M,_)});l.removeQueries(D==null?void 0:D.queryKey.detail(E));let j=typeof R=="function"?R(C,E,F):R;p(j,{key:`${E}-${F}-notification`,description:d("notifications.success","Success"),message:d("notifications.deleteSuccess",{resource:d(`${F}.${F}`,N)},`Successfully deleted a ${N}`),type:"success"}),f==null||f({channel:`resources/${T.name}`,type:"deleted",payload:{ids:[E]},date:new Date,meta:{...L,dataProviderName:k}});let{fields:B,operation:A,variables:H,...q}=L||{};m==null||m.mutate({action:"delete",resource:T.name,meta:{id:E,dataProviderName:k,...q}}),l.removeQueries(D==null?void 0:D.queryKey.detail(E))},onError:(C,{id:E,resource:S,errorNotification:R},I)=>{let{identifier:M}=a(S);if(I)for(let _ of I.previousQueries)l.setQueryData(_[0],_[1]);if(C.message!=="mutationCancelled"){r(C);let _=b.singular(M),D=typeof R=="function"?R(C,E,M):R;p(D,{key:`${E}-${M}-notification`,message:d("notifications.deleteError",{resource:_,statusCode:C.statusCode},`Error (status code: ${C.statusCode})`),description:C.message,type:"error"})}},mutationKey:g().data().mutation("delete").get(x),...e,meta:{...e==null?void 0:e.meta,...bt()}}),{elapsedTime:P}=fr({isLoading:w.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...w,overtime:{elapsedTime:P}}},"useDelete"),Sq=W(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Hr(),{resources:r,select:o}=Je(),i=Qe(),a=sd(),l=Wo(),s=ta(),{log:u}=cd(),c=Gn(),{options:{textTransformers:d}}=un(),{keys:f,preferLegacyKeys:m}=Ut(),p=bn({mutationFn:({resource:y,values:b,meta:g,metaData:x,dataProviderName:w})=>{let{resource:P,identifier:C}=o(y),E=c({resource:P,meta:Ae(g,x)}),S=n(yt(C,w,r));return S.createMany?S.createMany({resource:P.name,variables:b,meta:E,metaData:E}):Yv(b.map(R=>S.create({resource:P.name,variables:R,meta:E,metaData:E})))},onSuccess:(y,{resource:b,successNotification:g,dataProviderName:x,invalidates:w=["list","many"],values:P,meta:C,metaData:E})=>{let{resource:S,identifier:R}=o(b),I=d.plural(R),M=yt(R,x,r),_=c({resource:S,meta:Ae(C,E)}),D=typeof g=="function"?g(y,P,R):g;l(D,{key:`createMany-${R}-notification`,message:i("notifications.createSuccess",{resource:i(`${R}.${R}`,R)},`Successfully created ${I}`),description:i("notifications.success","Success"),type:"success"}),s({resource:R,dataProviderName:M,invalidates:w});let T=y==null?void 0:y.data.filter(j=>(j==null?void 0:j.id)!==void 0).map(j=>j.id);a==null||a({channel:`resources/${S.name}`,type:"created",payload:{ids:T},date:new Date,meta:{..._,dataProviderName:M}});let{fields:F,operation:N,variables:k,...L}=_||{};u==null||u.mutate({action:"createMany",resource:S.name,data:P,meta:{dataProviderName:M,ids:T,...L}})},onError:(y,{resource:b,errorNotification:g,values:x})=>{let{identifier:w}=o(b),P=typeof g=="function"?g(y,x,w):g;l(P,{key:`createMany-${w}-notification`,description:y.message,message:i("notifications.createError",{resource:i(`${w}.${w}`,w),statusCode:y.statusCode},`There was an error creating ${w} (status code: ${y.statusCode}`),type:"error"})},mutationKey:f().data().mutation("createMany").get(m),...e,meta:{...e==null?void 0:e.meta,...bt()}}),{elapsedTime:h}=fr({isLoading:p.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...p,overtime:{elapsedTime:h}}},"useCreateMany");W(({mutationOptions:e,overtimeOptions:t}={})=>{let{resources:n,select:r}=Je(),o=Zi(),i=Hr(),a=Qe(),{mutationMode:l,undoableTimeout:s}=mu(),u=Nt(),{mutate:c}=Uo({v3LegacyAuthProviderCompatible:!!(u!=null&&u.isLegacy)}),{notificationDispatch:d}=Bp(),f=sd(),m=Wo(),p=ta(),{log:h}=cd(),y=Gn(),{options:{textTransformers:b}}=un(),{keys:g,preferLegacyKeys:x}=Ut(),w=bn({mutationFn:({ids:C,values:E,resource:S,onCancel:R,mutationMode:I,undoableTimeout:M,meta:_,metaData:D,dataProviderName:T})=>{let{resource:F,identifier:N}=r(S),k=y({resource:F,meta:Ae(_,D)}),L=I??l,j=M??s,B=i(yt(N,T,n)),A=W(()=>B.updateMany?B.updateMany({resource:F.name,ids:C,variables:E,meta:k,metaData:k}):Yv(C.map(H=>B.update({resource:F.name,id:H,variables:E,meta:k,metaData:k}))),"mutationFn");return L!=="undoable"?A():new Promise((H,q)=>{let V=W(()=>{A().then(Y=>H(Y)).catch(Y=>q(Y))},"doMutation"),G=W(()=>{q({message:"mutationCancelled"})},"cancelMutation");R&&R(G),d({type:"ADD",payload:{id:C,resource:N,cancelMutation:G,doMutation:V,seconds:j,isSilent:!!R}})})},onMutate:async({resource:C,ids:E,values:S,mutationMode:R,dataProviderName:I,meta:M,metaData:_,optimisticUpdateMap:D={list:!0,many:!0,detail:!0}})=>{let{identifier:T}=r(C),{gqlMutation:F,gqlQuery:N,...k}=Ae(M,_)??{},L=Qv(x)(T,yt(T,I,n),k),j=g().data(yt(T,I,n)).resource(T),B=R??l;await o.cancelQueries(j.get(x),void 0,{silent:!0});let A=o.getQueriesData(j.get(x));if(B!=="pessimistic"&&(D.list&&o.setQueriesData(j.action("list").params(k??{}).get(x),H=>{if(typeof D.list=="function")return D.list(H,S,E);if(!H)return null;let q=H.data.map(V=>V.id!==void 0&&E.filter(G=>G!==void 0).map(String).includes(V.id.toString())?{...V,...S}:V);return{...H,data:q}}),D.many&&o.setQueriesData(j.action("many").get(x),H=>{if(typeof D.many=="function")return D.many(H,S,E);if(!H)return null;let q=H.data.map(V=>V.id!==void 0&&E.filter(G=>G!==void 0).map(String).includes(V.id.toString())?{...V,...S}:V);return{...H,data:q}}),D.detail))for(let H of E)o.setQueriesData(j.action("one").id(H).params(k??{}).get(x),q=>{if(typeof D.detail=="function")return D.detail(q,S,H);if(!q)return null;let V={...q.data,...S};return{...q,data:V}});return{previousQueries:A,queryKey:L}},onSettled:(C,E,{ids:S,resource:R,dataProviderName:I})=>{let{identifier:M}=r(R);p({resource:M,invalidates:["list","many"],dataProviderName:yt(M,I,n)}),S.forEach(_=>p({resource:M,invalidates:["detail"],dataProviderName:yt(M,I,n),id:_})),d({type:"REMOVE",payload:{id:S,resource:M}})},onSuccess:(C,{ids:E,resource:S,meta:R,metaData:I,dataProviderName:M,successNotification:_,values:D},T)=>{let{resource:F,identifier:N}=r(S),k=b.singular(N),L=yt(N,M,n),j=y({resource:F,meta:Ae(R,I)}),B=typeof _=="function"?_(C,{ids:E,values:D},N):_;m(B,{key:`${E}-${N}-notification`,description:a("notifications.success","Successful"),message:a("notifications.editSuccess",{resource:a(`${N}.${N}`,N)},`Successfully updated ${k}`),type:"success"}),f==null||f({channel:`resources/${F.name}`,type:"updated",payload:{ids:E.map(String)},date:new Date,meta:{...j,dataProviderName:L}});let A=[];T&&E.forEach(Y=>{let re=o.getQueryData(T.queryKey.detail(Y));A.push(Object.keys(D||{}).reduce((le,J)=>{var oe;return le[J]=(oe=re==null?void 0:re.data)==null?void 0:oe[J],le},{}))});let{fields:H,operation:q,variables:V,...G}=j||{};h==null||h.mutate({action:"updateMany",resource:F.name,data:D,previousData:A,meta:{ids:E,dataProviderName:L,...G}})},onError:(C,{ids:E,resource:S,errorNotification:R,values:I},M)=>{let{identifier:_}=r(S);if(M)for(let D of M.previousQueries)o.setQueryData(D[0],D[1]);if(C.message!=="mutationCancelled"){c==null||c(C);let D=b.singular(_),T=typeof R=="function"?R(C,{ids:E,values:I},_):R;m(T,{key:`${E}-${_}-updateMany-error-notification`,message:a("notifications.editError",{resource:D,statusCode:C.statusCode},`Error when updating ${D} (status code: ${C.statusCode})`),description:C.message,type:"error"})}},mutationKey:g().data().mutation("updateMany").get(x),...e,meta:{...e==null?void 0:e.meta,...bt()}}),{elapsedTime:P}=fr({isLoading:w.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...w,overtime:{elapsedTime:P}}},"useUpdateMany");W(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Nt(),{mutate:r}=Uo({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),{mutationMode:o,undoableTimeout:i}=mu(),a=Hr(),{notificationDispatch:l}=Bp(),s=Qe(),u=sd(),c=Wo(),d=ta(),{log:f}=cd(),{resources:m,select:p}=Je(),h=Zi(),y=Gn(),{options:{textTransformers:b}}=un(),{keys:g,preferLegacyKeys:x}=Ut(),w=bn({mutationFn:({resource:C,ids:E,mutationMode:S,undoableTimeout:R,onCancel:I,meta:M,metaData:_,dataProviderName:D,values:T})=>{let{resource:F,identifier:N}=p(C),k=y({resource:F,meta:Ae(M,_)}),L=S??o,j=R??i,B=a(yt(N,D,m)),A=W(()=>B.deleteMany?B.deleteMany({resource:F.name,ids:E,meta:k,metaData:k,variables:T}):Yv(E.map(H=>B.deleteOne({resource:F.name,id:H,meta:k,metaData:k,variables:T}))),"mutationFn");return L!=="undoable"?A():new Promise((H,q)=>{let V=W(()=>{A().then(Y=>H(Y)).catch(Y=>q(Y))},"doMutation"),G=W(()=>{q({message:"mutationCancelled"})},"cancelMutation");I&&I(G),l({type:"ADD",payload:{id:E,resource:N,cancelMutation:G,doMutation:V,seconds:j,isSilent:!!I}})})},onMutate:async({ids:C,resource:E,mutationMode:S,dataProviderName:R,meta:I,metaData:M})=>{let{identifier:_}=p(E),{gqlMutation:D,gqlQuery:T,...F}=Ae(I,M)??{},N=Qv(x)(_,yt(_,R,m),F),k=g().data(yt(_,R,m)).resource(_),L=S??o;await h.cancelQueries(k.get(x),void 0,{silent:!0});let j=h.getQueriesData(k.get(x));if(L!=="pessimistic"){h.setQueriesData(k.action("list").params(F??{}).get(x),B=>B?{data:B.data.filter(A=>A.id&&!C.map(String).includes(A.id.toString())),total:B.total-1}:null),h.setQueriesData(k.action("many").get(x),B=>{if(!B)return null;let A=B.data.filter(H=>H.id?!C.map(String).includes(H.id.toString()):!1);return{...B,data:A}});for(let B of C)h.setQueriesData(k.action("one").id(B).params(F).get(x),A=>!A||A.data.id===B?null:{...A})}return{previousQueries:j,queryKey:N}},onSettled:(C,E,{resource:S,ids:R,dataProviderName:I,invalidates:M=["list","many"]})=>{let{identifier:_}=p(S);d({resource:_,dataProviderName:yt(_,I,m),invalidates:M}),l({type:"REMOVE",payload:{id:R,resource:_}})},onSuccess:(C,{ids:E,resource:S,meta:R,metaData:I,dataProviderName:M,successNotification:_},D)=>{let{resource:T,identifier:F}=p(S),N=yt(F,M,m),k=y({resource:T,meta:Ae(R,I)});E.forEach(q=>h.removeQueries(D==null?void 0:D.queryKey.detail(q)));let L=typeof _=="function"?_(C,E,F):_;c(L,{key:`${E}-${F}-notification`,description:s("notifications.success","Success"),message:s("notifications.deleteSuccess",{resource:s(`${F}.${F}`,F)},`Successfully deleted ${F}`),type:"success"}),u==null||u({channel:`resources/${T.name}`,type:"deleted",payload:{ids:E},date:new Date,meta:{...k,dataProviderName:N}});let{fields:j,operation:B,variables:A,...H}=k||{};f==null||f.mutate({action:"deleteMany",resource:T.name,meta:{ids:E,dataProviderName:N,...H}}),E.forEach(q=>h.removeQueries(D==null?void 0:D.queryKey.detail(q)))},onError:(C,{ids:E,resource:S,errorNotification:R},I)=>{let{identifier:M}=p(S);if(I)for(let _ of I.previousQueries)h.setQueryData(_[0],_[1]);if(C.message!=="mutationCancelled"){r(C);let _=b.singular(M),D=typeof R=="function"?R(C,E,M):R;c(D,{key:`${E}-${M}-notification`,message:s("notifications.deleteError",{resource:_,statusCode:C.statusCode},`Error (status code: ${C.statusCode})`),description:C.message,type:"error"})}},mutationKey:g().data().mutation("deleteMany").get(x),...e,meta:{...e==null?void 0:e.meta,...bt()}}),{elapsedTime:P}=fr({isLoading:w.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...w,overtime:{elapsedTime:P}}},"useDeleteMany");W(e=>{var t;let n=Hr(),{resource:r}=Je(),{getApiUrl:o}=n(e??((t=Ae(r==null?void 0:r.meta,r==null?void 0:r.options))==null?void 0:t.dataProviderName));return o()},"useApiUrl");W(({url:e,method:t,config:n,queryOptions:r,successNotification:o,errorNotification:i,meta:a,metaData:l,dataProviderName:s,overtimeOptions:u})=>{let c=Hr(),d=Nt(),{mutate:f}=Uo({v3LegacyAuthProviderCompatible:!!(d!=null&&d.isLegacy)}),m=Qe(),p=Wo(),h=Gn(),{keys:y,preferLegacyKeys:b}=Ut(),g=Ae(a,l),{custom:x}=c(s),w=h({meta:g});if(x){let P=Do({queryKey:y().data(s).mutation("custom").params({method:t,url:e,...n,...g||{}}).get(b),queryFn:({queryKey:E,pageParam:S,signal:R})=>x({url:e,method:t,...n,meta:{...w,queryContext:{queryKey:E,pageParam:S,signal:R}},metaData:{...w,queryContext:{queryKey:E,pageParam:S,signal:R}}}),...r,onSuccess:E=>{var S;(S=r==null?void 0:r.onSuccess)==null||S.call(r,E);let R=typeof o=="function"?o(E,{...n,...w}):o;p(R)},onError:E=>{var S;f(E),(S=r==null?void 0:r.onError)==null||S.call(r,E);let R=typeof i=="function"?i(E,{...n,...w}):i;p(R,{key:`${t}-notification`,message:m("notifications.error",{statusCode:E.statusCode},`Error (status code: ${E.statusCode})`),description:E.message,type:"error"})},meta:{...r==null?void 0:r.meta,...bt()}}),{elapsedTime:C}=fr({isLoading:P.isFetching,interval:u==null?void 0:u.interval,onInterval:u==null?void 0:u.onInterval});return{...P,overtime:{elapsedTime:C}}}throw Error("Not implemented custom on data provider.")},"useCustom");W(({mutationOptions:e,overtimeOptions:t}={})=>{let n=Nt(),{mutate:r}=Uo({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),o=Wo(),i=Hr(),a=Qe(),l=Gn(),{keys:s,preferLegacyKeys:u}=Ut(),c=bn(({url:f,method:m,values:p,meta:h,metaData:y,dataProviderName:b,config:g})=>{let x=l({meta:Ae(h,y)}),{custom:w}=i(b);if(w)return w({url:f,method:m,payload:p,meta:x,metaData:x,headers:{...g==null?void 0:g.headers}});throw Error("Not implemented custom on data provider.")},{onSuccess:(f,{successNotification:m,config:p,meta:h,metaData:y})=>{let b=typeof m=="function"?m(f,{...p,...Ae(h,y)||{}}):m;o(b)},onError:(f,{errorNotification:m,method:p,config:h,meta:y,metaData:b})=>{r(f);let g=typeof m=="function"?m(f,{...h,...Ae(y,b)||{}}):m;o(g,{key:`${p}-notification`,message:a("notifications.error",{statusCode:f.statusCode},`Error (status code: ${f.statusCode})`),description:f.message,type:"error"})},mutationKey:s().data().mutation("customMutation").get(u),...e,meta:{...e==null?void 0:e.meta,...bt()}}),{elapsedTime:d}=fr({isLoading:c.isLoading,interval:t==null?void 0:t.interval,onInterval:t==null?void 0:t.onInterval});return{...c,overtime:{elapsedTime:d}}},"useCustomMutation");var Eq=W(()=>({}),"defaultDataProvider"),DS=$.createContext(Eq()),Pq=W(({children:e,...t})=>{let n;return!t.getList||!t.getOne?n=t:n={default:t},$.createElement(DS.Provider,{value:n},e)},"DataContextProvider"),Hr=W(()=>{let e=v.useContext(DS);return v.useCallback(t=>{if(t){if(!(e!=null&&e[t]))throw new Error(`"${t}" Data provider not found`);return e[t]}if(e.default)return e.default;throw new Error('There is no "default" data provider. Please pass dataProviderName.')},[e])},"useDataProvider");W(({resource:e,config:t,filters:n,hasPagination:r,pagination:o,sorters:i,queryOptions:a,successNotification:l,errorNotification:s,meta:u,metaData:c,liveMode:d,onLiveEvent:f,liveParams:m,dataProviderName:p,overtimeOptions:h})=>{let{resources:y,resource:b,identifier:g}=Je(e),x=Hr(),w=Qe(),P=Nt(),{mutate:C}=Uo({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),E=Wo(),S=Gn(),{keys:R,preferLegacyKeys:I}=Ut(),M=yt(g,p,y),_=Ae(u,c),D=Ae(n,t==null?void 0:t.filters),T=Ae(i,t==null?void 0:t.sort),F=Ae(r,t==null?void 0:t.hasPagination),N=ML({pagination:o,configPagination:t==null?void 0:t.pagination,hasPagination:F}),k=N.mode==="server",L={meta:_,metaData:_,filters:D,hasPagination:k,pagination:N,sorters:T,config:{...t,sort:T}},j=(a==null?void 0:a.enabled)===void 0||(a==null?void 0:a.enabled)===!0,B=S({resource:b,meta:_}),{getList:A}=x(M);Zv({resource:g,types:["*"],params:{meta:B,metaData:B,pagination:N,hasPagination:k,sort:T,sorters:T,filters:D,subscriptionType:"useList",...m},channel:`resources/${b.name}`,enabled:j,liveMode:d,onLiveEvent:f,dataProviderName:M,meta:{...B,dataProviderName:p}});let H=eU({queryKey:R().data(M).resource(g).action("infinite").params({..._||{},filters:D,hasPagination:k,...k&&{pagination:N},...i&&{sorters:i},...(t==null?void 0:t.sort)&&{sort:t==null?void 0:t.sort}}).get(I),queryFn:({queryKey:V,pageParam:G,signal:Y})=>{let re={...N,current:G};return A({resource:b.name,pagination:re,hasPagination:k,filters:D,sort:T,sorters:T,meta:{...B,queryContext:{queryKey:V,pageParam:G,signal:Y}},metaData:{...B,queryContext:{queryKey:V,pageParam:G,signal:Y}}}).then(({data:le,total:J,...oe})=>({data:le,total:J,pagination:re,...oe}))},getNextPageParam:V=>nq(V),getPreviousPageParam:V=>rq(V),...a,onSuccess:V=>{var G;(G=a==null?void 0:a.onSuccess)==null||G.call(a,V);let Y=typeof l=="function"?l(V,L,g):l;E(Y)},onError:V=>{var G;C(V),(G=a==null?void 0:a.onError)==null||G.call(a,V);let Y=typeof s=="function"?s(V,L,g):s;E(Y,{key:`${g}-useInfiniteList-notification`,message:w("notifications.error",{statusCode:V.statusCode},`Error (status code: ${V.statusCode})`),description:V.message,type:"error"})},meta:{...a==null?void 0:a.meta,...bt()}}),{elapsedTime:q}=fr({isLoading:H.isFetching,interval:h==null?void 0:h.interval,onInterval:h==null?void 0:h.onInterval});return{...H,overtime:{elapsedTime:q}}},"useInfiniteList");var Np=$.createContext(void 0),kq=W(({liveProvider:e,children:t})=>$.createElement(Np.Provider,{value:e},t),"LiveContextProvider"),$q=W(e=>{let t=v.useRef(e);return Mo(t.current,e)||(t.current=e),t.current},"useMemoized"),HL=W((e,t)=>{let n=$q(t);return v.useMemo(e,n)},"useDeepMemo"),zp=$.createContext({resources:[]}),Iq=W(({resources:e,children:t})=>{let n=HL(()=>oq(e??[]),[e]);return $.createElement(zp.Provider,{value:{resources:n}},t)},"ResourceContextProvider"),UL=$.createContext("new"),Oq=UL.Provider,st=W(()=>$.useContext(UL),"useRouterType"),VL={},jp=v.createContext(VL),Mq=W(({children:e,router:t})=>$.createElement(jp.Provider,{value:t??VL},e),"RouterBindingsProvider"),Rq=W(()=>{let e=v.useContext(jp);return $.useMemo(()=>(e==null?void 0:e.parse)??(()=>()=>({})),[e==null?void 0:e.parse])()},"useParse"),Vo=W(()=>{let e=Rq();return $.useMemo(()=>e(),[e])},"useParsed");function Je(e){let{resources:t}=v.useContext(zp),n=st(),r=Vo(),o={resourceName:e&&typeof e!="string"?e.resourceName:e,resourceNameOrRouteName:e&&typeof e!="string"?e.resourceNameOrRouteName:e,recordItemId:e&&typeof e!="string"?e.recordItemId:void 0},i=W((d,f=!0)=>{let m=sr(d,t,n==="legacy");if(m)return{resource:m,identifier:m.identifier??m.name};if(f){let p={name:d,identifier:d},h=p.identifier??p.name;return{resource:p,identifier:h}}},"select"),a=Tq(),{useParams:l}=zt(),s=l();if(n==="legacy"){let d=o.resourceNameOrRouteName?o.resourceNameOrRouteName:s.resource,f=d?a(d):void 0,m=(o==null?void 0:o.recordItemId)??s.id,p=s.action,h=(o==null?void 0:o.resourceName)??(f==null?void 0:f.name),y=(f==null?void 0:f.identifier)??(f==null?void 0:f.name);return{resources:t,resource:f,resourceName:h,id:m,action:p,select:i,identifier:y}}let u,c=typeof e=="string"?e:o==null?void 0:o.resourceNameOrRouteName;if(c){let d=sr(c,t);d?u=d:u={name:c}}else r!=null&&r.resource&&(u=r.resource);return{resources:t,resource:u,resourceName:u==null?void 0:u.name,id:r.id,action:r.action,select:i,identifier:(u==null?void 0:u.identifier)??(u==null?void 0:u.name)}}W(Je,"useResource");var Tq=W(()=>{let{resources:e}=v.useContext(zp);return v.useCallback(t=>sr(t,e,!0)||{name:t,route:t},[e])},"useResourceWithRoute"),ta=W(()=>{let{resources:e}=Je(),t=Zi(),{keys:n,preferLegacyKeys:r}=Ut();return v.useCallback(async({resource:o,dataProviderName:i,invalidates:a,id:l,invalidationFilters:s={type:"all",refetchType:"active"},invalidationOptions:u={cancelRefetch:!1}})=>{if(a===!1)return;let c=yt(o,i,e),d=n().data(c).resource(o??"");await Promise.all(a.map(f=>{switch(f){case"all":return t.invalidateQueries(n().data(c).get(r),s,u);case"list":return t.invalidateQueries(d.action("list").get(r),s,u);case"many":return t.invalidateQueries(d.action("many").get(r),s,u);case"resourceAll":return t.invalidateQueries(d.get(r),s,u);case"detail":return t.invalidateQueries(d.action("one").id(l||"").get(r),s,u);default:return}}))},[])},"useInvalidate"),Zv=W(({resource:e,params:t,channel:n,types:r,enabled:o=!0,liveMode:i,onLiveEvent:a,dataProviderName:l,meta:s})=>{var u;let{resource:c,identifier:d}=Je(e),f=v.useContext(Np),{liveMode:m,onLiveEvent:p}=v.useContext(os),h=i??m,y=ta(),b=l??(s==null?void 0:s.dataProviderName)??((u=c==null?void 0:c.meta)==null?void 0:u.dataProviderName);v.useEffect(()=>{let g,x=W(w=>{h==="auto"&&y({resource:d,dataProviderName:b,invalidates:["resourceAll"],invalidationFilters:{type:"active",refetchType:"active"},invalidationOptions:{cancelRefetch:!1}}),a==null||a(w),p==null||p(w)},"callback");return h&&h!=="off"&&o&&(g=f==null?void 0:f.subscribe({channel:n,params:{resource:c==null?void 0:c.name,...t},types:r,callback:x,dataProviderName:b,meta:{...s,dataProviderName:b}})),()=>{g&&(f==null||f.unsubscribe(g))}},[o])},"useResourceSubscription"),WL=W(e=>{let{liveMode:t}=v.useContext(os);return e??t},"useLiveMode");W(({params:e,channel:t,types:n=["*"],enabled:r=!0,onLiveEvent:o,dataProviderName:i="default",meta:a})=>{let l=v.useContext(Np);v.useEffect(()=>{let s;return r&&(s=l==null?void 0:l.subscribe({channel:t,params:e,types:n,callback:o,dataProviderName:i,meta:{...a,dataProviderName:i}})),()=>{s&&(l==null||l.unsubscribe(s))}},[r])},"useSubscription");var sd=W(()=>{let e=v.useContext(Np);return e==null?void 0:e.publish},"usePublish"),Bp=W(()=>{let{notifications:e,notificationDispatch:t}=v.useContext(zL);return{notifications:e,notificationDispatch:t}},"useCancelNotification"),NS=v.createContext({}),_q=W(({open:e,close:t,children:n})=>$.createElement(NS.Provider,{value:{open:e,close:t}},n),"NotificationContextProvider"),hu=W(()=>{let{open:e,close:t}=v.useContext(NS);return{open:e,close:t}},"useNotification"),Wo=W(()=>{let{open:e}=hu();return v.useCallback((t,n)=>{t!==!1&&(t?e==null||e(t):n&&(e==null||e(n)))},[])},"useHandleNotification"),ud=$.createContext({}),Fq=W(({children:e,i18nProvider:t})=>$.createElement(ud.Provider,{value:{i18nProvider:t}},e),"TranslationContextProvider");W(()=>{let{i18nProvider:e}=v.useContext(ud);return v.useCallback(t=>e==null?void 0:e.changeLocale(t),[])},"useSetLocale");var Qe=W(()=>{let{i18nProvider:e}=v.useContext(ud);return v.useMemo(()=>{function t(n,r,o){return(e==null?void 0:e.translate(n,r,o))??o??(typeof r=="string"&&typeof o>"u"?r:n)}return W(t,"translate"),t},[e])},"useTranslate");W(()=>{let{i18nProvider:e}=v.useContext(ud);return v.useCallback(()=>e==null?void 0:e.getLocale(),[])},"useGetLocale");W(({resourceName:e,resource:t,sorter:n,sorters:r,filters:o,maxItemCount:i,pageSize:a=20,mapData:l=W(h=>h,"mapData"),exportOptions:s,unparseConfig:u,meta:c,metaData:d,dataProviderName:f,onError:m,download:p}={})=>{let[h,y]=v.useState(!1),b=Hr(),g=Gn(),{resource:x,resources:w,identifier:P}=Je(Ae(t,e)),C=`${ea()(P,"plural")}-${new Date().toLocaleString()}`,{getList:E}=b(yt(P,f,w)),S=g({resource:x,meta:Ae(c,d)});return{isLoading:h,triggerExport:W(async()=>{y(!0);let R=[],I=1,M=!0;for(;M;)try{let{data:F,total:N}=await E({resource:(x==null?void 0:x.name)??"",filters:o,sort:Ae(r,n),sorters:Ae(r,n),pagination:{current:I,pageSize:a,mode:"server"},meta:S,metaData:S});I++,R.push(...F),i&&R.length>=i&&(R=R.slice(0,i),M=!1),N===R.length&&(M=!1)}catch(F){y(!1),M=!1,m==null||m(F);return}let _=typeof u<"u"&&u!==null;tu(_&&typeof s<"u"&&s!==null,`[useExport]: resource: "${P}"
Both \`unparseConfig\` and \`exportOptions\` are set, \`unparseConfig\` will take precedence`);let D={filename:C,useKeysAsHeaders:!0,useBom:!0,title:"My Generated Report",quoteStrings:'"',...s};tu((s==null?void 0:s.decimalSeparator)!==void 0,`[useExport]: resource: "${P}"
Use of \`decimalSeparator\` no longer supported, please use \`mapData\` instead.
See https://refine.dev/docs/api-reference/core/hooks/import-export/useExport/`),_?u={quotes:!0,...u}:u={columns:D.useKeysAsHeaders?void 0:D.headers,delimiter:D.fieldSeparator,header:D.showLabels||D.useKeysAsHeaders,quoteChar:D.quoteStrings,quotes:!0};let T=iL.unparse(R.map(l),u);if(D.showTitle&&(T=`${D.title}\r
${T}`),typeof window<"u"&&T.length>0&&(p??!0)){let F=D.useTextFile?".txt":".csv",N=`text/${D.useTextFile?"plain":"csv"};charset=utf8;`,k=`${(D.filename??"download").replace(/ /g,"_")}${F}`;fq(k,`${D!=null&&D.useBom?"\uFEFF":""}${T}`,N)}return y(!1),T},"triggerExport")}},"useExport");var Aq=W(({resource:e,action:t,id:n,onMutationSuccess:r,onMutationError:o,redirect:i,successNotification:a,errorNotification:l,meta:s,metaData:u,queryMeta:c,mutationMeta:d,mutationMode:f,liveMode:m,onLiveEvent:p,liveParams:h,undoableTimeout:y,dataProviderName:b,invalidates:g,queryOptions:x,createMutationOptions:w,updateMutationOptions:P,overtimeOptions:C,autoSave:E,optimisticUpdateMap:S}={})=>{let R=ta(),{options:I}=un(),M=Gn(),{resource:_,id:D,action:T,identifier:F}=Je(e),{identifier:N}=Je(),k=W(()=>e&&e!==N?n:n??D,"getDefaultId")(),[L,j]=$.useState(k);$.useEffect(()=>{j(k)},[k]);let B=W(()=>t||(T==="edit"||T==="clone"?T:"create"),"getAction")(),A=M({resource:_,meta:Ae(s,u)}),{mutationMode:H}=mu(),q=f??H,V=B==="create",G=B==="edit",Y=B==="clone";tu((Y||G)&&!!e&&!n&&(x==null?void 0:x.enabled)!==!1,`[useForm]: action: "${B}", resource: "${F}", id: ${L}
If you don't use the \`setId\` method to set the \`id\`, you should pass the \`id\` prop to \`useForm\`. Otherwise, \`useForm\` will not be able to infer the \`id\` from the current URL.
See https://refine.dev/docs/api-reference/core/hooks/useForm/#resource`);let re=tq({redirectFromProps:i,action:B,redirectOptions:I.redirect}),le=NL({resource:F,id:L??"",queryOptions:{enabled:L!==void 0&&(G||Y),...x},liveMode:m,onLiveEvent:p,liveParams:h,meta:{...A,...c},metaData:{...A,...c},dataProviderName:b}),{isFetching:J}=le,oe=jL({mutationOptions:w}),{mutate:ue,isLoading:ge}=oe,me=oO({mutationOptions:P}),{mutate:ke,isLoading:be}=me,ie=oO({}),{setWarnWhen:ye}=Qa(),U=Lq(),Q=W(async ee=>{ye(!1);let se=W(Ce=>{U({redirect:re,resource:_,id:Ce,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{se()}),new Promise((Ce,_e)=>{if(q!=="pessimistic"&&Ce(),!!_)return ue({values:ee,resource:F??_.name,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g},{onSuccess:($e,X,Ee)=>{var Le;r&&r($e,ee,Ee);let Te=(Le=$e==null?void 0:$e.data)==null?void 0:Le.id;se(Te),Ce($e)},onError:($e,X,Ee)=>{if(o)return o($e,ee,Ee);_e()}})})},"onFinishCreate");$.useEffect(()=>()=>{E!=null&&E.invalidateOnUnmount&&ie.status==="success"&&R({id:L,invalidates:g||["list","many","detail"],dataProviderName:b,resource:F})},[E==null?void 0:E.invalidateOnUnmount,ie.status]);let Z=W(ee=>{if(!_||!G)return;let se={id:L??"",values:ee,resource:F??_.name,successNotification:!1,errorNotification:!1,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:[],mutationMode:"pessimistic"};return ie.mutate(se,{onSuccess:(Ce,_e,$e)=>{r&&r(Ce,ee,$e,!0)},onError:(Ce,_e,$e)=>{if(o)return o(Ce,ee,$e,!0)}})},"onFinishAutoSaveMutation"),ae=aL(ee=>Z(ee),(E==null?void 0:E.debounce)||1e3),te=V||Y?{formLoading:J||ge,mutationResult:oe,onFinish:Q}:{formLoading:J||be,mutationResult:me,onFinish:W(async ee=>{if(ye(!1),!_)return;let se={id:L??"",values:ee,resource:F??_.name,mutationMode:q,undoableTimeout:y,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g,optimisticUpdateMap:S},Ce=W(()=>{U({redirect:re,resource:_,id:L,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{Ce()}),new Promise((_e,$e)=>(q!=="pessimistic"&&_e(),setTimeout(()=>{ke(se,{onSuccess:(X,Ee,Le)=>{r&&r(X,ee,Le),q==="pessimistic"&&Ce(),_e(X)},onError:(X,Ee,Le)=>{if(o)return o(X,ee,Le);$e()}})})))},"onFinishUpdate")},{elapsedTime:K}=fr({isLoading:te.mutationResult.isLoading||le.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{...te,queryResult:le,onFinishAutoSave:ae,autoSaveProps:{status:ie.status,data:ie.data,error:ie.error},id:L,setId:j,redirect:(ee,se)=>{U({redirect:ee!==void 0?ee:G?"list":"edit",resource:_,id:se??L,meta:Ae(s,u)})},overtime:{elapsedTime:K}}},"useForm"),Lq=W(()=>{let{show:e,edit:t,list:n,create:r}=xn();return v.useCallback(({redirect:o,resource:i,id:a,meta:l={}})=>{if(o&&i)return i.show&&o==="show"&&a?e(i,a,void 0,l):i.edit&&o==="edit"&&a?t(i,a,void 0,l):i.create&&o==="create"?r(i,void 0,l):n(i,"push",l)},[])},"useRedirectionAfterSubmission"),Hp=W(()=>{let e=st(),{resource:t,resources:n}=Je(),r=Vo();return $.useCallback(({resource:o,action:i,meta:a})=>{var l;let s=o||t;if(!s)return;let u=(l=Qr(s,n,e==="legacy").find(c=>c.action===i))==null?void 0:l.route;return u?yo(u,s==null?void 0:s.meta,r,a):void 0},[n,t,r])},"useGetToPath"),pr=W(()=>{let e=v.useContext(jp),{select:t}=Je(),n=Hp(),r=$.useMemo(()=>(e==null?void 0:e.go)??(()=>()=>{}),[e==null?void 0:e.go])();return v.useCallback(o=>{if(typeof o.to!="object")return r({...o,to:o.to});let{resource:i}=t(o.to.resource);Dq(o.to,i);let a=n({resource:i,action:o.to.action,meta:{id:o.to.id,...o.to.meta}});return r({...o,to:a})},[t,r])},"useGo"),Dq=W((e,t)=>{if(!(e!=null&&e.action)||!(e!=null&&e.resource))throw new Error('[useGo]: "action" or "resource" is required.');if(["edit","show","clone"].includes(e==null?void 0:e.action)&&!e.id)throw new Error(`[useGo]: [action: ${e.action}] requires an "id" for resource [resource: ${e.resource}]`);if(!t[e.action])throw new Error(`[useGo]: [action: ${e.action}] is not defined for [resource: ${e.resource}]`)},"handleResourceErrors"),Jv=W(()=>{let e=v.useContext(jp);return $.useMemo(()=>(e==null?void 0:e.back)??(()=>()=>{}),[e==null?void 0:e.back])()},"useBack"),xn=W(()=>{let{resources:e}=Je(),t=st(),{useHistory:n}=zt(),r=n(),o=Vo(),i=pr(),a=Jv(),l=W((m,p="push")=>{t==="legacy"?r[p](m):i({to:m,type:p})},"handleUrl"),s=W((m,p={})=>{var h;if(t==="legacy"){let g=typeof m=="string"?sr(m,e,!0)??{name:m,route:m}:m,x=Qr(g,e,!0).find(w=>w.action==="create");return x?yo(x.route,g==null?void 0:g.meta,o,p):""}let y=typeof m=="string"?sr(m,e)??{name:m}:m,b=(h=Qr(y,e).find(g=>g.action==="create"))==null?void 0:h.route;return b?i({to:yo(b,y==null?void 0:y.meta,o,p),type:"path"}):""},"createUrl"),u=W((m,p,h={})=>{var y;let b=encodeURIComponent(p);if(t==="legacy"){let w=typeof m=="string"?sr(m,e,!0)??{name:m,route:m}:m,P=Qr(w,e,!0).find(C=>C.action==="edit");return P?yo(P.route,w==null?void 0:w.meta,o,{...h,id:b}):""}let g=typeof m=="string"?sr(m,e)??{name:m}:m,x=(y=Qr(g,e).find(w=>w.action==="edit"))==null?void 0:y.route;return x?i({to:yo(x,g==null?void 0:g.meta,o,{...h,id:b}),type:"path"}):""},"editUrl"),c=W((m,p,h={})=>{var y;let b=encodeURIComponent(p);if(t==="legacy"){let w=typeof m=="string"?sr(m,e,!0)??{name:m,route:m}:m,P=Qr(w,e,!0).find(C=>C.action==="clone");return P?yo(P.route,w==null?void 0:w.meta,o,{...h,id:b}):""}let g=typeof m=="string"?sr(m,e)??{name:m}:m,x=(y=Qr(g,e).find(w=>w.action==="clone"))==null?void 0:y.route;return x?i({to:yo(x,g==null?void 0:g.meta,o,{...h,id:b}),type:"path"}):""},"cloneUrl"),d=W((m,p,h={})=>{var y;let b=encodeURIComponent(p);if(t==="legacy"){let w=typeof m=="string"?sr(m,e,!0)??{name:m,route:m}:m,P=Qr(w,e,!0).find(C=>C.action==="show");return P?yo(P.route,w==null?void 0:w.meta,o,{...h,id:b}):""}let g=typeof m=="string"?sr(m,e)??{name:m}:m,x=(y=Qr(g,e).find(w=>w.action==="show"))==null?void 0:y.route;return x?i({to:yo(x,g==null?void 0:g.meta,o,{...h,id:b}),type:"path"}):""},"showUrl"),f=W((m,p={})=>{var h;if(t==="legacy"){let g=typeof m=="string"?sr(m,e,!0)??{name:m,route:m}:m,x=Qr(g,e,!0).find(w=>w.action==="list");return x?yo(x.route,g==null?void 0:g.meta,o,p):""}let y=typeof m=="string"?sr(m,e)??{name:m}:m,b=(h=Qr(y,e).find(g=>g.action==="list"))==null?void 0:h.route;return b?i({to:yo(b,y==null?void 0:y.meta,o,p),type:"path"}):""},"listUrl");return{create:W((m,p="push",h={})=>{l(s(m,h),p)},"create"),createUrl:s,edit:W((m,p,h="push",y={})=>{l(u(m,p,y),h)},"edit"),editUrl:u,clone:W((m,p,h="push",y={})=>{l(c(m,p,y),h)},"clone"),cloneUrl:c,show:W((m,p,h="push",y={})=>{l(d(m,p,y),h)},"show"),showUrl:d,list:W((m,p="push",h={})=>{l(f(m,h),p)},"list"),listUrl:f,push:W((m,...p)=>{t==="legacy"?r.push(m,...p):i({to:m,type:"push"})},"push"),replace:W((m,...p)=>{t==="legacy"?r.replace(m,...p):i({to:m,type:"replace"})},"replace"),goBack:W(()=>{t==="legacy"?r.goBack():a()},"goBack")}},"useNavigation");W(({resource:e,id:t,successNotification:n,errorNotification:r,meta:o,metaData:i,liveMode:a,onLiveEvent:l,dataProviderName:s,queryOptions:u,overtimeOptions:c}={})=>{let{resource:d,id:f,identifier:m}=Je(e),{identifier:p}=Je(),h=Gn(),y=W(()=>e&&e!==p?t:t??f,"getDefaultId")(),[b,g]=v.useState(y);$.useEffect(()=>{g(y)},[y]);let x=h({resource:d,meta:Ae(o,i)});tu(!!e&&!t,`[useShow]: resource: "${m}", id: ${t}
If you don't use the \`setShowId\` method to set the \`showId\`, you should pass the \`id\` prop to \`useShow\`. Otherwise, \`useShow\` will not be able to infer the \`id\` from the current URL.
See https://refine.dev/docs/api-reference/core/hooks/show/useShow/#resource`);let w=NL({resource:m,id:b??"",queryOptions:{enabled:b!==void 0,...u},successNotification:n,errorNotification:r,meta:x,metaData:x,liveMode:a,onLiveEvent:l,dataProviderName:s}),{elapsedTime:P}=fr({isLoading:w.isFetching,interval:c==null?void 0:c.interval,onInterval:c==null?void 0:c.onInterval});return{queryResult:w,showId:b,setShowId:g,overtime:{elapsedTime:P}}},"useShow");W(({resourceName:e,resource:t,mapData:n=W(c=>c,"mapData"),paparseOptions:r,batchSize:o=Number.MAX_SAFE_INTEGER,onFinish:i,meta:a,metaData:l,onProgress:s,dataProviderName:u}={})=>{let[c,d]=v.useState(0),[f,m]=v.useState(0),[p,h]=v.useState(!1),{resource:y,identifier:b}=Je(t??e),g=Gn(),x=Sq(),w=jL(),P=g({resource:y,meta:Ae(a,l)}),C;o===1?C=w:C=x;let E=W(()=>{m(0),d(0),h(!1)},"handleCleanup"),S=W(I=>{let M={succeeded:I.filter(_=>_.type==="success"),errored:I.filter(_=>_.type==="error")};i==null||i(M),h(!1)},"handleFinish");v.useEffect(()=>{s==null||s({totalAmount:f,processedAmount:c})},[f,c]);let R=W(({file:I})=>(E(),new Promise(M=>{h(!0),iL.parse(I,{complete:async({data:_})=>{let D=VG(_,n);if(m(D.length),o===1){let T=D.map(N=>W(async()=>({response:await w.mutateAsync({resource:b??"",values:N,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:N}),"fn")),F=await XI(T,({response:N,value:k})=>(d(L=>L+1),{response:[N.data],type:"success",request:[k]}),(N,k)=>({response:[N],type:"error",request:[D[k]]}));M(F)}else{let T=gG(D,o),F=T.map(k=>W(async()=>({response:await x.mutateAsync({resource:b??"",values:k,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:k,currentBatchLength:k.length}),"fn")),N=await XI(F,({response:k,currentBatchLength:L,value:j})=>(d(B=>B+L),{response:k.data,type:"success",request:j}),(k,L)=>({response:[k],type:"error",request:T[L]}));M(N)}},...r})}).then(M=>(S(M),M))),"handleChange");return{inputProps:{type:"file",accept:".csv",onChange:I=>{I.target.files&&I.target.files.length>0&&R({file:I.target.files[0]})}},mutationResult:C,isLoading:p,handleChange:R}},"useImport");var Nq=W(({defaultVisible:e=!1}={})=>{let[t,n]=v.useState(e),r=v.useCallback(()=>n(!0),[t]),o=v.useCallback(()=>n(!1),[t]);return{visible:t,show:r,close:o}},"useModal"),GL=W(({resource:e,action:t,meta:n,legacy:r})=>Hp()({resource:e,action:t,meta:n,legacy:r}),"useToPath"),Wn=W(()=>{let e=v.useContext(jp);return e!=null&&e.Link?e.Link:W(({to:t,...n})=>$.createElement("a",{href:t,...n}),"FallbackLink")},"useLink"),bl={useHistory:()=>!1,useLocation:()=>!1,useParams:()=>({}),Prompt:()=>null,Link:()=>null},zq=$.createContext(bl),zS=zq,jq=W(({children:e,useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a})=>$.createElement(zS.Provider,{value:{useHistory:t??bl.useHistory,useLocation:n??bl.useLocation,useParams:r??bl.useParams,Prompt:o??bl.Prompt,Link:i??bl.Link,routes:a??bl.routes}},e),"LegacyRouterContextProvider"),zt=W(()=>{let e=v.useContext(zS),{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}=e??bl;return{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}},"useRouterContext"),na=$.createContext({options:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1}}}),Bq=W(({can:e,children:t,options:n})=>$.createElement(na.Provider,{value:{can:e,options:n?{...n,buttons:{enableAccessControl:!0,hideIfUnauthorized:!1,...n.buttons}}:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1},queryOptions:void 0}}},t),"AccessControlContextProvider"),jS=W(e=>{if(!e)return;let{icon:t,list:n,edit:r,create:o,show:i,clone:a,children:l,meta:s,options:u,...c}=e,{icon:d,...f}=s??{},{icon:m,...p}=u??{};return{...c,...s?{meta:f}:{},...u?{options:p}:{}}},"sanitizeResource"),gu=W(({action:e,resource:t,params:n,queryOptions:r})=>{let{can:o,options:i}=v.useContext(na),{keys:a,preferLegacyKeys:l}=Ut(),{queryOptions:s}=i||{},u={...s,...r},{resource:c,...d}=n??{},f=jS(c),m=Do({queryKey:a().access().resource(t).action(e).params({params:{...d,resource:f},enabled:u==null?void 0:u.enabled}).get(l),queryFn:()=>(o==null?void 0:o({action:e,resource:t,params:{...d,resource:f}}))??Promise.resolve({can:!0}),enabled:typeof o<"u",...u,meta:{...u==null?void 0:u.meta,...bt()},retry:!1});return typeof o>"u"?{data:{can:!0}}:m},"useCan"),Hq=W(()=>{let{can:e}=$.useContext(na);return{can:$.useMemo(()=>e?W(async({params:t,...n})=>{let r=t!=null&&t.resource?jS(t.resource):void 0;return e({...n,...t?{params:{...t,resource:r}}:{}})},"canWithSanitizedResource"):void 0,[e])}},"useCanWithoutCache"),Uq=W(e=>{let[t,n]=v.useState([]),[r,o]=v.useState([]),[i,a]=v.useState([]),{resource:l,sort:s,sorters:u,filters:c=[],optionLabel:d="title",optionValue:f="id",searchField:m=typeof d=="string"?d:"title",debounce:p=300,successNotification:h,errorNotification:y,defaultValueQueryOptions:b,queryOptions:g,fetchSize:x,pagination:w,hasPagination:P=!1,liveMode:C,defaultValue:E=[],onLiveEvent:S,onSearch:R,liveParams:I,meta:M,metaData:_,dataProviderName:D,overtimeOptions:T}=e,F=v.useCallback(J=>typeof d=="string"?Vg(J,d):d(J),[d]),N=v.useCallback(J=>typeof f=="string"?Vg(J,f):f(J),[f]),{resource:k,identifier:L}=Je(l),j=Gn()({resource:k,meta:Ae(M,_)}),B=Array.isArray(E)?E:[E],A=v.useCallback(J=>{a(J.data.map(oe=>({label:F(oe),value:N(oe)})))},[d,f]),H=b??g,q=bq({resource:L,ids:B,queryOptions:{...H,enabled:B.length>0&&((H==null?void 0:H.enabled)??!0),onSuccess:J=>{var oe;A(J),(oe=H==null?void 0:H.onSuccess)==null||oe.call(H,J)}},meta:j,metaData:j,liveMode:"off",dataProviderName:D}),V=v.useCallback(J=>{o(J.data.map(oe=>({label:F(oe),value:N(oe)})))},[d,f]),G=DL({resource:L,sorters:Ae(u,s),filters:c.concat(t),pagination:{current:w==null?void 0:w.current,pageSize:(w==null?void 0:w.pageSize)??x,mode:w==null?void 0:w.mode},hasPagination:P,queryOptions:{...g,onSuccess:J=>{var oe;V(J),(oe=g==null?void 0:g.onSuccess)==null||oe.call(g,J)}},successNotification:h,errorNotification:y,meta:j,metaData:j,liveMode:C,liveParams:I,onLiveEvent:S,dataProviderName:D}),Y=W(J=>{if(R){n(R(J));return}if(!J){n([]);return}n([{field:m,operator:"contains",value:J}])},"onSearch"),{elapsedTime:re}=fr({isLoading:G.isFetching||q.isFetching,interval:T==null?void 0:T.interval,onInterval:T==null?void 0:T.onInterval}),le=v.useMemo(()=>HG([...r,...i],"value"),[r,i]);return{queryResult:G,defaultValueQueryResult:q,options:le,onSearch:aL(Y,p),overtime:{elapsedTime:re}}},"useSelect"),iO=[],aO=[];function qL({initialCurrent:e,initialPageSize:t,hasPagination:n=!0,pagination:r,initialSorter:o,permanentSorter:i=aO,defaultSetFilterBehavior:a,initialFilter:l,permanentFilter:s=iO,filters:u,sorters:c,syncWithLocation:d,resource:f,successNotification:m,errorNotification:p,queryOptions:h,liveMode:y,onLiveEvent:b,liveParams:g,meta:x,metaData:w,dataProviderName:P,overtimeOptions:C}={}){var E,S,R,I,M;let{syncWithLocation:_}=cq(),D=d??_,T=WL(y),F=st(),{useLocation:N}=zt(),{search:k,pathname:L}=N(),j=Gn(),B=Vo(),A=((u==null?void 0:u.mode)||"server")==="server",H=((c==null?void 0:c.mode)||"server")==="server",q=n===!1?"off":"server",V=((r==null?void 0:r.mode)??q)!=="off",G=Ae(r==null?void 0:r.current,e),Y=Ae(r==null?void 0:r.pageSize,t),re=Ae(x,w),{parsedCurrent:le,parsedPageSize:J,parsedSorter:oe,parsedFilters:ue}=_L(k??"?"),ge=Ae(u==null?void 0:u.initial,l),me=Ae(u==null?void 0:u.permanent,s)??iO,ke=Ae(c==null?void 0:c.initial,o),be=Ae(c==null?void 0:c.permanent,i)??aO,ie=Ae(u==null?void 0:u.defaultBehavior,a)??"merge",ye,U,Q,Z;D?(ye=((E=B==null?void 0:B.params)==null?void 0:E.current)||le||G||1,U=((S=B==null?void 0:B.params)==null?void 0:S.pageSize)||J||Y||10,Q=((R=B==null?void 0:B.params)==null?void 0:R.sorters)||(oe.length?oe:ke),Z=((I=B==null?void 0:B.params)==null?void 0:I.filters)||(ue.length?ue:ge)):(ye=G||1,U=Y||10,Q=ke,Z=ge);let{replace:ae}=xn(),te=pr(),{resource:K,identifier:ee}=Je(f),se=j({resource:K,meta:re});$.useEffect(()=>{tu(typeof ee>"u","useTable: `resource` is not defined.")},[ee]);let[Ce,_e]=v.useState(rO(be,Q??[])),[$e,X]=v.useState(nO(me,Z??[])),[Ee,Le]=v.useState(ye),[Te,Pe]=v.useState(U),Re=W(()=>{if(F==="new"){let{sorters:ua,filters:Gr,pageSize:rn,current:Lt,...En}=(B==null?void 0:B.params)??{};return En}let{sorter:Ct,filters:ut,pageSize:St,current:Wr,...Xo}=Xs.parse(k,{ignoreQueryPrefix:!0});return Xo},"getCurrentQueryParams"),He=W(({pagination:{current:Ct,pageSize:ut},sorter:St,filters:Wr})=>{if(F==="new")return te({type:"path",options:{keepHash:!0,keepQuery:!0},query:{...V?{current:Ct,pageSize:ut}:{},sorters:St,filters:Wr,...Re()}})??"";let Xo=Xs.parse(k==null?void 0:k.substring(1)),ua=eO({pagination:{pageSize:ut,current:Ct},sorters:Ce??St,filters:Wr,...Xo});return`${L??""}?${ua??""}`},"createLinkForSyncWithLocation");v.useEffect(()=>{k===""&&(Le(ye),Pe(U),_e(rO(be,Q??[])),X(nO(me,Z??[])))},[k]),v.useEffect(()=>{if(D){let Ct=Re();if(F==="new")te({type:"replace",options:{keepQuery:!0},query:{...V?{pageSize:Te,current:Ee}:{},sorters:Ol(Ce,be,Mo),filters:Ol($e,me,Mo)}});else{let ut=eO({...V?{pagination:{pageSize:Te,current:Ee}}:{},sorters:Ol(Ce,be,Mo),filters:Ol($e,me,Mo),...Ct});return ae==null?void 0:ae(`${L}?${ut}`,void 0,{shallow:!0})}}},[D,Ee,Te,Ce,$e]);let it=DL({resource:ee,hasPagination:n,pagination:{current:Ee,pageSize:Te,mode:r==null?void 0:r.mode},filters:A?Ym(me,$e):void 0,sorters:H?tO(be,Ce):void 0,queryOptions:h,successNotification:m,errorNotification:p,meta:se,metaData:se,liveMode:T,liveParams:g,onLiveEvent:b,dataProviderName:P}),kt=W(Ct=>{X(ut=>Ym(me,Ct,ut))},"setFiltersAsMerge"),Vt=W(Ct=>{X(Ym(me,Ct))},"setFiltersAsReplace"),nt=W(Ct=>{X(ut=>Ym(me,Ct(ut)))},"setFiltersWithSetter"),Sn=W((Ct,ut=ie)=>{typeof Ct=="function"?nt(Ct):ut==="replace"?Vt(Ct):kt(Ct)},"setFiltersFn"),en=W(Ct=>{_e(()=>tO(be,Ct))},"setSortWithUnion"),{elapsedTime:$r}=fr({isLoading:it.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{tableQueryResult:it,sorters:Ce,setSorters:en,sorter:Ce,setSorter:en,filters:$e,setFilters:Sn,current:Ee,setCurrent:Le,pageSize:Te,setPageSize:Pe,pageCount:Te?Math.ceil((((M=it.data)==null?void 0:M.total)??0)/Te):1,createLinkForSyncWithLocation:He,overtime:{elapsedTime:$r}}}W(qL,"useTable");var ey=$.createContext({}),Vq=W(({create:e,get:t,update:n,children:r})=>$.createElement(ey.Provider,{value:{create:e,get:t,update:n}},r),"AuditLogContextProvider"),cd=W(({logMutationOptions:e,renameMutationOptions:t}={})=>{let n=Zi(),r=v.useContext(ey),{keys:o,preferLegacyKeys:i}=Ut(),a=Nt(),{resources:l}=v.useContext(zp),{data:s,refetch:u,isLoading:c}=ld({v3LegacyAuthProviderCompatible:!!(a!=null&&a.isLegacy),queryOptions:{enabled:!!(r!=null&&r.create)}}),d=bn(async m=>{var p,h,y,b,g;let x=sr(m.resource,l),w=Ae((p=x==null?void 0:x.meta)==null?void 0:p.audit,(h=x==null?void 0:x.options)==null?void 0:h.audit,(b=(y=x==null?void 0:x.options)==null?void 0:y.auditLog)==null?void 0:b.permissions);if(w&&!qG(w,m.action))return;let P;return c&&r!=null&&r.create&&(P=await u()),await((g=r.create)==null?void 0:g.call(r,{...m,author:s??(P==null?void 0:P.data)}))},{mutationKey:o().audit().action("log").get(),...e,meta:{...e==null?void 0:e.meta,...bt()}}),f=bn(async m=>{var p;return await((p=r.update)==null?void 0:p.call(r,m))},{onSuccess:m=>{m!=null&&m.resource&&n.invalidateQueries(o().audit().resource((m==null?void 0:m.resource)??"").action("list").get(i))},mutationKey:o().audit().action("rename").get(),...t,meta:{...t==null?void 0:t.meta,...bt()}});return{log:d,rename:f}},"useLog");W(({resource:e,action:t,meta:n,author:r,metaData:o,queryOptions:i})=>{let{get:a}=v.useContext(ey),{keys:l,preferLegacyKeys:s}=Ut();return Do({queryKey:l().audit().resource(e).action("list").params(n).get(s),queryFn:()=>(a==null?void 0:a({resource:e,action:t,author:r,meta:n,metaData:o}))??Promise.resolve([]),enabled:typeof a<"u",...i,retry:!1,meta:{...i==null?void 0:i.meta,...bt()}})},"useLogList");var Wq=W(({meta:e={}}={})=>{let t=st(),{i18nProvider:n}=v.useContext(ud),r=Vo(),o=Qe(),{resources:i,resource:a,action:l}=Je(),{options:{textTransformers:s}}=un(),u=[];if(!(a!=null&&a.name))return{breadcrumbs:u};let c=W(d=>{var f,m,p,h,y,b;let g=typeof d=="string"?sr(d,i,t==="legacy")??{name:d}:d;if(g){let x=Ae((f=g==null?void 0:g.meta)==null?void 0:f.parent,g==null?void 0:g.parentName);x&&c(x);let w=Qr(g,i,t==="legacy").find(E=>E.action==="list"),P=(m=w==null?void 0:w.resource)!=null&&m.list?w==null?void 0:w.route:void 0,C=P?t==="legacy"?P:yo(P,g==null?void 0:g.meta,r,e):void 0;u.push({label:Ae((p=g.meta)==null?void 0:p.label,(h=g.options)==null?void 0:h.label)??o(`${g.name}.${g.name}`,s.humanize(g.name)),href:C,icon:Ae((y=g.meta)==null?void 0:y.icon,(b=g.options)==null?void 0:b.icon,g.icon)})}},"addBreadcrumb");if(c(a),l&&l!=="list"){let d=`actions.${l}`,f=o(d);typeof n<"u"&&f===d?(tu(!0,`[useBreadcrumb]: Breadcrumb missing translate key for the "${l}" action. Please add "actions.${l}" key to your translation file.
For more information, see https://refine.dev/docs/api-reference/core/hooks/useBreadcrumb/#i18n-support`),u.push({label:o(`buttons.${l}`,s.humanize(l))})):u.push({label:o(d,s.humanize(l))})}return{breadcrumbs:u}},"useBreadcrumb"),Gh=W((e,t,n=!1)=>{let r=[],o=Ql(e,t);for(;o;)r.push(o),o=Ql(o,t);return r.reverse(),`/${[...r,e].map(i=>za((n?i.route:void 0)??i.identifier??i.name)).join("/").replace(/^\//,"")}`},"createResourceKey"),Gq=W((e,t=!1)=>{let n={item:{name:"__root__"},children:{}};e.forEach(o=>{let i=[],a=Ql(o,e);for(;a;)i.push(a),a=Ql(a,e);i.reverse();let l=n;i.forEach(u=>{let c=(t?u.route:void 0)??u.identifier??u.name;l.children[c]||(l.children[c]={item:u,children:{}}),l=l.children[c]});let s=(t?o.route:void 0)??o.identifier??o.name;l.children[s]||(l.children[s]={item:o,children:{}})});let r=W(o=>{let i=[];return Object.keys(o.children).forEach(a=>{let l=Gh(o.children[a].item,e,t),s={...o.children[a].item,key:l,children:r(o.children[a])};i.push(s)}),i},"flatten");return r(n)},"createTree"),lO=W(e=>e.split("?")[0].split("#")[0].replace(/(.+)(\/$)/,"$1"),"getCleanPath"),BS=W(({meta:e,hideOnMissingParameter:t}={hideOnMissingParameter:!0})=>{let n=Qe(),r=Hp(),o=st(),{resource:i,resources:a}=Je(),{pathname:l}=Vo(),{useLocation:s}=zt(),{pathname:u}=s(),c=ea(),d=`/${((o==="legacy"?lO(u):l?lO(l):void 0)??"").replace(/^\//,"")}`,f=i?Gh(i,a,o==="legacy"):d??"",m=$.useMemo(()=>{if(!i)return[];let y=Ql(i,a),b=[Gh(i,a)];for(;y;)b.push(Gh(y,a)),y=Ql(y,a);return b},[]),p=$.useCallback(y=>{var b,g,x,w,P,C;if((((b=y==null?void 0:y.meta)==null?void 0:b.hide)??((g=y==null?void 0:y.options)==null?void 0:g.hide))||!(y!=null&&y.list)&&y.children.length===0)return;let E=y.list?r({resource:y,action:"list",legacy:o==="legacy",meta:e}):void 0;if(!(t&&E&&E.match(/(\/|^):(.+?)(\/|$){1}/)))return{...y,route:E,icon:Ae((x=y.meta)==null?void 0:x.icon,(w=y.options)==null?void 0:w.icon,y.icon),label:Ae((P=y==null?void 0:y.meta)==null?void 0:P.label,(C=y==null?void 0:y.options)==null?void 0:C.label)??n(`${y.name}.${y.name}`,c(y.name,"plural"))}},[o,e,r,n,t]),h=$.useMemo(()=>{let y=Gq(a,o==="legacy"),b=W(g=>g.flatMap(x=>{let w=b(x.children),P=p({...x,children:w});return P?[P]:[]}),"prepare");return b(y)},[a,o,p]);return{defaultOpenKeys:m,selectedKey:f,menuItems:h}},"useMenu"),Gn=W(()=>{let{params:e}=Vo();return W(({resource:t,meta:n}={})=>{let{meta:r}=jS(t)??{meta:{}},{filters:o,sorters:i,current:a,pageSize:l,...s}=e??{};return{...r,...s,...n}},"getMetaFn")},"useMeta");W(()=>{let[e,t]=v.useState(),n=Qe(),{push:r}=xn(),o=pr(),i=st(),{resource:a,action:l}=Je();return v.useEffect(()=>{a&&l&&t(n("pages.error.info",{action:l,resource:a.name},`You may have forgotten to add the "${l}" component to "${a.name}" resource.`))},[a,l]),$.createElement($.Fragment,null,$.createElement("h1",null,n("pages.error.404",void 0,"Sorry, the page you visited does not exist.")),e&&$.createElement("p",null,e),$.createElement("button",{onClick:()=>{i==="legacy"?r("/"):o({to:"/"})}},n("pages.error.backHome",void 0,"Back Home")))},"ErrorComponent");var qq=W(()=>{let[e,t]=v.useState(""),[n,r]=v.useState(""),o=Qe(),i=Nt(),{mutate:a}=Dp({v3LegacyAuthProviderCompatible:!!(i!=null&&i.isLegacy)});return $.createElement($.Fragment,null,$.createElement("h1",null,o("pages.login.title","Sign in your account")),$.createElement("form",{onSubmit:l=>{l.preventDefault(),a({username:e,password:n})}},$.createElement("table",null,$.createElement("tbody",null,$.createElement("tr",null,$.createElement("td",null,o("pages.login.username",void 0,"username"),":"),$.createElement("td",null,$.createElement("input",{type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",autoFocus:!0,required:!0,value:e,onChange:l=>t(l.target.value)}))),$.createElement("tr",null,$.createElement("td",null,o("pages.login.password",void 0,"password"),":"),$.createElement("td",null,$.createElement("input",{type:"password",required:!0,size:20,value:n,onChange:l=>r(l.target.value)}))))),$.createElement("br",null),$.createElement("input",{type:"submit",value:"login"})))},"LoginPage"),Kq=W(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:o,wrapperProps:i,renderContent:a,formProps:l,title:s=void 0,hideForm:u})=>{let c=st(),d=Wn(),{Link:f}=zt(),m=c==="legacy"?f:d,[p,h]=v.useState(""),[y,b]=v.useState(""),[g,x]=v.useState(!1),w=Qe(),P=Nt(),{mutate:C}=Dp({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),E=W((I,M)=>$.createElement(m,{to:I},M),"renderLink"),S=W(()=>e?e.map(I=>$.createElement("div",{key:I.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},$.createElement("button",{onClick:()=>C({providerName:I.name}),style:{display:"flex",alignItems:"center"}},I==null?void 0:I.icon,I.label??$.createElement("label",null,I.label)))):null,"renderProviders"),R=$.createElement("div",{...o},$.createElement("h1",{style:{textAlign:"center"}},w("pages.login.title","Sign in to your account")),S(),!u&&$.createElement($.Fragment,null,$.createElement("hr",null),$.createElement("form",{onSubmit:I=>{I.preventDefault(),C({email:p,password:y,remember:g})},...l},$.createElement("div",{style:{display:"flex",flexDirection:"column",padding:25}},$.createElement("label",{htmlFor:"email-input"},w("pages.login.fields.email","Email")),$.createElement("input",{id:"email-input",name:"email",type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",required:!0,value:p,onChange:I=>h(I.target.value)}),$.createElement("label",{htmlFor:"password-input"},w("pages.login.fields.password","Password")),$.createElement("input",{id:"password-input",type:"password",name:"password",required:!0,size:20,value:y,onChange:I=>b(I.target.value)}),r??$.createElement($.Fragment,null,$.createElement("label",{htmlFor:"remember-me-input"},w("pages.login.buttons.rememberMe","Remember me"),$.createElement("input",{id:"remember-me-input",name:"remember",type:"checkbox",size:20,checked:g,value:g.toString(),onChange:()=>{x(!g)}}))),$.createElement("br",null),n??E("/forgot-password",w("pages.login.buttons.forgotPassword","Forgot password?")),$.createElement("input",{type:"submit",value:w("pages.login.signin","Sign in")}),t??$.createElement("span",null,w("pages.login.buttons.noAccount","Dont have an account?")," ",E("/register",w("pages.login.register","Sign up")))))),t!==!1&&u&&$.createElement("div",{style:{textAlign:"center"}},w("pages.login.buttons.noAccount","Dont have an account?")," ",E("/register",w("pages.login.register","Sign up"))));return $.createElement("div",{...i},a?a(R,s):R)},"LoginPage"),Qq=W(({providers:e,loginLink:t,wrapperProps:n,contentProps:r,renderContent:o,formProps:i,title:a=void 0,hideForm:l})=>{let s=st(),u=Wn(),{Link:c}=zt(),d=s==="legacy"?c:u,[f,m]=v.useState(""),[p,h]=v.useState(""),y=Qe(),b=Nt(),{mutate:g,isLoading:x}=FS({v3LegacyAuthProviderCompatible:!!(b!=null&&b.isLegacy)}),w=W((E,S)=>$.createElement(d,{to:E},S),"renderLink"),P=W(()=>e?e.map(E=>$.createElement("div",{key:E.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},$.createElement("button",{onClick:()=>g({providerName:E.name}),style:{display:"flex",alignItems:"center"}},E==null?void 0:E.icon,E.label??$.createElement("label",null,E.label)))):null,"renderProviders"),C=$.createElement("div",{...r},$.createElement("h1",{style:{textAlign:"center"}},y("pages.register.title","Sign up for your account")),P(),!l&&$.createElement($.Fragment,null,$.createElement("hr",null),$.createElement("form",{onSubmit:E=>{E.preventDefault(),g({email:f,password:p})},...i},$.createElement("div",{style:{display:"flex",flexDirection:"column",padding:25}},$.createElement("label",{htmlFor:"email-input"},y("pages.register.fields.email","Email")),$.createElement("input",{id:"email-input",name:"email",type:"email",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",required:!0,value:f,onChange:E=>m(E.target.value)}),$.createElement("label",{htmlFor:"password-input"},y("pages.register.fields.password","Password")),$.createElement("input",{id:"password-input",name:"password",type:"password",required:!0,size:20,value:p,onChange:E=>h(E.target.value)}),$.createElement("input",{type:"submit",value:y("pages.register.buttons.submit","Sign up"),disabled:x}),t??$.createElement($.Fragment,null,$.createElement("span",null,y("pages.login.buttons.haveAccount","Have an account?")," ",w("/login",y("pages.login.signin","Sign in"))))))),t!==!1&&l&&$.createElement("div",{style:{textAlign:"center"}},y("pages.login.buttons.haveAccount","Have an account?")," ",w("/login",y("pages.login.signin","Sign in"))));return $.createElement("div",{...n},o?o(C,a):C)},"RegisterPage"),Yq=W(({loginLink:e,wrapperProps:t,contentProps:n,renderContent:r,formProps:o,title:i=void 0})=>{let a=Qe(),l=st(),s=Wn(),{Link:u}=zt(),c=l==="legacy"?u:s,[d,f]=v.useState(""),{mutate:m,isLoading:p}=AS(),h=W((b,g)=>$.createElement(c,{to:b},g),"renderLink"),y=$.createElement("div",{...n},$.createElement("h1",{style:{textAlign:"center"}},a("pages.forgotPassword.title","Forgot your password?")),$.createElement("hr",null),$.createElement("form",{onSubmit:b=>{b.preventDefault(),m({email:d})},...o},$.createElement("div",{style:{display:"flex",flexDirection:"column",padding:25}},$.createElement("label",{htmlFor:"email-input"},a("pages.forgotPassword.fields.email","Email")),$.createElement("input",{id:"email-input",name:"email",type:"mail",autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",required:!0,value:d,onChange:b=>f(b.target.value)}),$.createElement("input",{type:"submit",disabled:p,value:a("pages.forgotPassword.buttons.submit","Send reset instructions")}),$.createElement("br",null),e??$.createElement("span",null,a("pages.register.buttons.haveAccount","Have an account? ")," ",h("/login",a("pages.login.signin","Sign in"))))));return $.createElement("div",{...t},r?r(y,i):y)},"ForgotPasswordPage"),Xq=W(({wrapperProps:e,contentProps:t,renderContent:n,formProps:r,title:o=void 0})=>{let i=Qe(),a=Nt(),{mutate:l,isLoading:s}=LS({v3LegacyAuthProviderCompatible:!!(a!=null&&a.isLegacy)}),[u,c]=v.useState(""),[d,f]=v.useState(""),m=$.createElement("div",{...t},$.createElement("h1",{style:{textAlign:"center"}},i("pages.updatePassword.title","Update Password")),$.createElement("hr",null),$.createElement("form",{onSubmit:p=>{p.preventDefault(),l({password:u,confirmPassword:d})},...r},$.createElement("div",{style:{display:"flex",flexDirection:"column",padding:25}},$.createElement("label",{htmlFor:"password-input"},i("pages.updatePassword.fields.password","New Password")),$.createElement("input",{id:"password-input",name:"password",type:"password",required:!0,size:20,value:u,onChange:p=>c(p.target.value)}),$.createElement("label",{htmlFor:"confirm-password-input"},i("pages.updatePassword.fields.confirmPassword","Confirm New Password")),$.createElement("input",{id:"confirm-password-input",name:"confirmPassword",type:"password",required:!0,size:20,value:d,onChange:p=>f(p.target.value)}),$.createElement("input",{type:"submit",disabled:s,value:i("pages.updatePassword.buttons.submit","Update")}))));return $.createElement("div",{...e},n?n(m,o):m)},"UpdatePasswordPage");W(e=>{let{type:t}=e;return $.createElement($.Fragment,null,W(()=>{switch(t){case"register":return $.createElement(Qq,{...e});case"forgotPassword":return $.createElement(Yq,{...e});case"updatePassword":return $.createElement(Xq,{...e});default:return $.createElement(Kq,{...e})}},"renderView")())},"AuthPage");var Zq=W(()=>$.createElement($.Fragment,null,$.createElement("h1",null,"Welcome on board"),$.createElement("p",null,"Your configuration is completed."),$.createElement("p",null,"Now you can get started by adding your resources to the"," ",$.createElement("code",null,"`resources`")," property of ",$.createElement("code",null,"`<Refine>`")),$.createElement("div",{style:{display:"flex",gap:8}},$.createElement("a",{href:"https://refine.dev",target:"_blank",rel:"noreferrer"},$.createElement("button",null,"Documentation")),$.createElement("a",{href:"https://refine.dev/examples",target:"_blank",rel:"noreferrer"},$.createElement("button",null,"Examples")),$.createElement("a",{href:"https://discord.gg/refine",target:"_blank",rel:"noreferrer"},$.createElement("button",null,"Community")))),"ReadyPage"),Jq=[{title:"Documentation",description:"Learn about the technical details of using Refine in your projects.",link:"https://refine.dev/docs",iconUrl:"https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/book.svg"},{title:"Tutorial",description:"Learn how to use Refine by building a fully-functioning CRUD app, from scratch to full launch.",link:"https://refine.dev/tutorial",iconUrl:"https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/hat.svg"},{title:"Templates",description:"Explore a range of pre-built templates, perfect everything from admin panels to dashboards and CRMs.",link:"https://refine.dev/templates",iconUrl:"https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/application.svg"},{title:"Community",description:"Join our Discord community and keep up with the latest news.",link:"https://discord.gg/refine",iconUrl:"https://refine.ams3.cdn.digitaloceanspaces.com/welcome-page/discord.svg"}],eK=W(()=>{let e=ZI("(max-width: 1010px)"),t=ZI("(max-width: 650px)"),n=W(()=>t?"1, 280px":e?"2, 280px":"4, 1fr","getGridTemplateColumns"),r=W(()=>t?"32px":e?"40px":"48px","getHeaderFontSize"),o=W(()=>t?"16px":e?"20px":"24px","getSubHeaderFontSize");return $.createElement("div",{style:{position:"fixed",zIndex:10,inset:0,overflow:"auto",width:"100dvw",height:"100dvh"}},$.createElement("div",{style:{overflow:"hidden",position:"relative",backgroundSize:"cover",backgroundRepeat:"no-repeat",background:t?"url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/landing-noise.webp), radial-gradient(88.89% 50% at 50% 100%, rgba(38, 217, 127, 0.10) 0%, rgba(38, 217, 127, 0.00) 100%), radial-gradient(88.89% 50% at 50% 0%, rgba(71, 235, 235, 0.15) 0%, rgba(71, 235, 235, 0.00) 100%), #1D1E30":e?"url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/landing-noise.webp), radial-gradient(66.67% 50% at 50% 100%, rgba(38, 217, 127, 0.10) 0%, rgba(38, 217, 127, 0.00) 100%), radial-gradient(66.67% 50% at 50% 0%, rgba(71, 235, 235, 0.15) 0%, rgba(71, 235, 235, 0.00) 100%), #1D1E30":"url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/landing-noise.webp), radial-gradient(35.56% 50% at 50% 100%, rgba(38, 217, 127, 0.12) 0%, rgba(38, 217, 127, 0) 100%), radial-gradient(35.56% 50% at 50% 0%, rgba(71, 235, 235, 0.18) 0%, rgba(71, 235, 235, 0) 100%), #1D1E30",minHeight:"100%",minWidth:"100%",fontFamily:"Arial",color:"#FFFFFF"}},$.createElement("div",{style:{zIndex:2,position:"absolute",width:t?"400px":"800px",height:"552px",opacity:"0.5",background:"url(https://refine.ams3.cdn.digitaloceanspaces.com/assets/welcome-page-hexagon.png)",backgroundRepeat:"no-repeat",backgroundSize:"contain",top:"0",left:"50%",transform:"translateX(-50%)"}}),$.createElement("div",{style:{height:t?"40px":"80px"}}),$.createElement("div",{style:{display:"flex",justifyContent:"center"}},$.createElement("div",{style:{backgroundRepeat:"no-repeat",backgroundSize:t?"112px 58px":"224px 116px",backgroundImage:"url(https://refine.ams3.cdn.digitaloceanspaces.com/assets/refine-logo.svg)",width:t?112:224,height:t?58:116}})),$.createElement("div",{style:{height:t?"120px":e?"200px":"30vh",minHeight:t?"120px":"200px"}}),$.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"16px",textAlign:"center"}},$.createElement("h1",{style:{fontSize:r(),fontWeight:700,margin:"0px"}},"Welcome Aboard!"),$.createElement("h4",{style:{fontSize:o(),fontWeight:400,margin:"0px"}},"Your configuration is completed.")),$.createElement("div",{style:{height:"64px"}}),$.createElement("div",{style:{display:"grid",gridTemplateColumns:`repeat(${n()})`,justifyContent:"center",gap:"48px",paddingRight:"16px",paddingLeft:"16px",paddingBottom:"32px",maxWidth:"976px",margin:"auto"}},Jq.map(i=>$.createElement(tK,{key:`welcome-page-${i.title}`,card:i})))))},"ConfigSuccessPage"),tK=W(({card:e})=>{let{title:t,description:n,iconUrl:r,link:o}=e,[i,a]=v.useState(!1);return $.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}},$.createElement("div",{style:{display:"flex",alignItems:"center"}},$.createElement("a",{onPointerEnter:()=>a(!0),onPointerLeave:()=>a(!1),style:{display:"flex",alignItems:"center",color:"#fff",textDecoration:"none"},href:o},$.createElement("div",{style:{width:"16px",height:"16px",backgroundPosition:"center",backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundImage:`url(${r})`}}),$.createElement("span",{style:{fontSize:"16px",fontWeight:700,marginLeft:"13px",marginRight:"14px"}},t),$.createElement("svg",{style:{transition:"transform 0.5s ease-in-out, opacity 0.2s ease-in-out",...i&&{transform:"translateX(4px)",opacity:1}},width:"12",height:"8",fill:"none",opacity:"0.5",xmlns:"http://www.w3.org/2000/svg"},$.createElement("path",{d:"M7.293.293a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-3 3a1 1 0 0 1-1.414-1.414L8.586 5H1a1 1 0 0 1 0-2h7.586L7.293 1.707a1 1 0 0 1 0-1.414Z",fill:"#fff"})))),$.createElement("span",{style:{fontSize:"12px",opacity:.5,lineHeight:"16px"}},n))},"Card"),nK=W(()=>$.createElement("div",{style:{position:"fixed",zIndex:11,inset:0,overflow:"auto",width:"100dvw",height:"100dvh"}},$.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",padding:"24px",background:"#14141FBF",backdropFilter:"blur(3px)"}},$.createElement("div",{style:{maxWidth:"640px",width:"100%",background:"#1D1E30",borderRadius:"16px",border:"1px solid #303450",boxShadow:"0px 0px 120px -24px #000000"}},$.createElement("div",{style:{padding:"16px 20px",borderBottom:"1px solid #303450",display:"flex",alignItems:"center",gap:"8px",position:"relative"}},$.createElement(oK,{style:{position:"absolute",left:0,top:0}}),$.createElement("div",{style:{lineHeight:"24px",fontSize:"16px",color:"#FFFFFF",display:"flex",alignItems:"center",gap:"16px"}},$.createElement(iK,null),$.createElement("span",{style:{fontWeight:400}},"Configuration Error"))),$.createElement("div",{style:{padding:"20px",color:"#A3ADC2",lineHeight:"20px",fontSize:"14px",display:"flex",flexDirection:"column",gap:"20px"}},$.createElement("p",{style:{margin:0,padding:0,lineHeight:"28px",fontSize:"16px"}},$.createElement("code",{style:{display:"inline-block",background:"#30345080",padding:"0 4px",lineHeight:"24px",fontSize:"16px",borderRadius:"4px",color:"#FFFFFF"}},"<Refine />")," ","is not initialized. Please make sure you have it mounted in your app and placed your components inside it."),$.createElement("div",null,$.createElement(rK,null)))))),"ConfigErrorPage"),rK=W(()=>$.createElement("pre",{style:{display:"block",overflowX:"auto",borderRadius:"8px",fontSize:"14px",lineHeight:"24px",backgroundColor:"#14141F",color:"#E5ECF2",padding:"16px",margin:"0",maxHeight:"400px",overflow:"auto"}},$.createElement("span",{style:{color:"#FF7B72"}},"import")," ","{"," Refine, WelcomePage"," ","}"," ",$.createElement("span",{style:{color:"#FF7B72"}},"from")," ",$.createElement("span",{style:{color:"#A5D6FF"}},'"@refinedev/core"'),";",`
`,`
`,$.createElement("span",{style:{color:"#FF7B72"}},"export")," ",$.createElement("span",{style:{color:"#FF7B72"}},"default")," ",$.createElement("span",null,$.createElement("span",{style:{color:"#FF7B72"}},"function")," ",$.createElement("span",{style:{color:"#FFA657"}},"App"),"(",$.createElement("span",{style:{color:"rgb(222, 147, 95)"}}),")"," "),"{",`
`," ",$.createElement("span",{style:{color:"#FF7B72"}},"return")," (",`
`," ",$.createElement("span",null,$.createElement("span",{style:{color:"#79C0FF"}},"<",$.createElement("span",{style:{color:"#79C0FF"}},"Refine"),`
`," ",$.createElement("span",{style:{color:"#E5ECF2",opacity:.6}},"// ",$.createElement("span",null,"...")),`
`," ",">"),`
`," ",$.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),`
`," ",$.createElement("span",{style:{color:"#79C0FF"}},"<",$.createElement("span",{style:{color:"#79C0FF"}},"WelcomePage")," />"),`
`," ",$.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),`
`," ",$.createElement("span",{style:{color:"#79C0FF"}},"</",$.createElement("span",{style:{color:"#79C0FF"}},"Refine"),">")),`
`," ",");",`
`,"}"),"ExampleImplementation"),oK=W(e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:204,height:56,viewBox:"0 0 204 56",fill:"none",...e},$.createElement("path",{fill:"url(#welcome-page-error-gradient-a)",d:"M12 0H0v12L12 0Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-b)",d:"M28 0h-8L0 20v8L28 0Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-c)",d:"M36 0h8L0 44v-8L36 0Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-d)",d:"M60 0h-8L0 52v4h4L60 0Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-e)",d:"M68 0h8L20 56h-8L68 0Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-f)",d:"M92 0h-8L28 56h8L92 0Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-g)",d:"M100 0h8L52 56h-8l56-56Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-h)",d:"M124 0h-8L60 56h8l56-56Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-i)",d:"M140 0h-8L76 56h8l56-56Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-j)",d:"M132 0h8L84 56h-8l56-56Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-k)",d:"M156 0h-8L92 56h8l56-56Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-l)",d:"M164 0h8l-56 56h-8l56-56Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-m)",d:"M188 0h-8l-56 56h8l56-56Z"}),$.createElement("path",{fill:"url(#welcome-page-error-gradient-n)",d:"M204 0h-8l-56 56h8l56-56Z"}),$.createElement("defs",null,$.createElement("radialGradient",{id:"welcome-page-error-gradient-a",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-b",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-c",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-d",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-e",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-f",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-g",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-h",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-i",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-j",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-k",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-l",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-m",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),$.createElement("radialGradient",{id:"welcome-page-error-gradient-n",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),$.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})))),"ErrorGradient"),iK=W(e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",fill:"none",...e},$.createElement("path",{fill:"#FF4C4D",fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z",clipRule:"evenodd"}),$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M7 8a1 1 0 1 0 2 0V5a1 1 0 1 0-2 0v3Zm0 3a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",clipRule:"evenodd"})),"ErrorIcon"),aK=W(()=>{let{__initialized:e}=un();return $.createElement($.Fragment,null,$.createElement(eK,null),!e&&$.createElement(nK,null))},"WelcomePage"),lK="4.48.0",sK=W(()=>{var e;let t=Xv(),n=v.useContext(ey),r=v.useContext(Np),o=v.useContext(zS),i=v.useContext(DS),{i18nProvider:a}=v.useContext(ud),l=v.useContext(NS),s=v.useContext(na),{resources:u}=Je(),c=un(),d=!!n.create||!!n.get||!!n.update,f=!!(r!=null&&r.publish)||!!(r!=null&&r.subscribe)||!!(r!=null&&r.unsubscribe),m=!!o.useHistory||!!o.Link||!!o.Prompt||!!o.useLocation||!!o.useParams,p=!!i,h=!!(a!=null&&a.changeLocale)||!!(a!=null&&a.getLocale)||!!(a!=null&&a.translate),y=!!l.close||!!l.open,b=!!s.can,g=(e=c==null?void 0:c.options)==null?void 0:e.projectId;return{providers:{auth:t,auditLog:d,live:f,router:m,data:p,i18n:h,notification:y,accessControl:b},version:lK,resourceCount:u.length,projectId:g}},"useTelemetryData"),uK=W(e=>{try{let t=JSON.stringify(e||{});return typeof btoa<"u"?btoa(t):Buffer.from(t).toString("base64")}catch{return}},"encode"),cK=W(e=>{let t=new Image;t.src=e},"throughImage"),dK=W(e=>{fetch(e)},"throughFetch"),fK=W(e=>{typeof Image<"u"?cK(e):typeof fetch<"u"&&dK(e)},"transport"),pK=W(()=>{let e=sK(),t=$.useRef(!1);return $.useEffect(()=>{if(t.current)return;let n=uK(e);n&&(fK(`https://telemetry.refine.dev/telemetry?payload=${n}`),t.current=!0)},[]),null},"Telemetry"),mK=W(e=>{let t=["go","parse","back","Link"],n=Object.keys(e).filter(r=>!t.includes(r));return n.length>0?(console.warn(`Unsupported properties are found in \`routerProvider\` prop. You provided \`${n.join(", ")}\`. Supported properties are \`${t.join(", ")}\`. You may wanted to use \`legacyRouterProvider\` prop instead.`),!0):!1},"checkRouterPropMisuse"),hK=W(e=>{let t=$.useRef(!1);$.useEffect(()=>{t.current===!1&&e&&mK(e)&&(t.current=!0)},[e])},"useRouterMisuseWarning"),gK=W(({legacyAuthProvider:e,authProvider:t,dataProvider:n,legacyRouterProvider:r,routerProvider:o,notificationProvider:i,accessControlProvider:a,auditLogProvider:l,resources:s,DashboardPage:u,ReadyPage:c,LoginPage:d,catchAll:f,children:m,liveProvider:p,i18nProvider:h,Title:y,Layout:b,Sider:g,Header:x,Footer:w,OffLayoutArea:P,onLiveEvent:C,options:E})=>{let{optionsWithDefaults:S,disableTelemetryWithDefault:R,reactQueryWithDefaults:I}=eq({options:E}),M=HL(()=>{var T;return I.clientConfig instanceof Y$?I.clientConfig:new Y$({...I.clientConfig,defaultOptions:{...I.clientConfig.defaultOptions,queries:{refetchOnWindowFocus:!1,keepPreviousData:!0,...(T=I.clientConfig.defaultOptions)==null?void 0:T.queries}}})},[I.clientConfig]),_=$.useMemo(()=>typeof i=="function"?i:()=>i??{},[i])();if(hK(o),r&&!o&&(s??[]).length===0)return c?$.createElement(c,null):$.createElement(Zq,null);let{RouterComponent:D=$.Fragment}=o?{}:r??{};return $.createElement(B6,{client:M},$.createElement(_q,{..._},$.createElement(lq,{...e??{},isProvided:!!e},$.createElement(sq,{...t??{},isProvided:!!t},$.createElement(Pq,{...n},$.createElement(kq,{liveProvider:p},$.createElement(Oq,{value:r&&!o?"legacy":"new"},$.createElement(Mq,{router:o},$.createElement(jq,{...r},$.createElement(Iq,{resources:s??[]},$.createElement(Fq,{i18nProvider:h},$.createElement(Bq,{...a??{}},$.createElement(Vq,{...l??{}},$.createElement(Cq,null,$.createElement(JG,{mutationMode:S.mutationMode,warnWhenUnsavedChanges:S.warnWhenUnsavedChanges,syncWithLocation:S.syncWithLocation,Title:y,undoableTimeout:S.undoableTimeout,catchAll:f,DashboardPage:u,LoginPage:d,Layout:b,Sider:g,Footer:w,Header:x,OffLayoutArea:P,hasDashboard:!!u,liveMode:S.liveMode,onLiveEvent:C,options:S},$.createElement(uq,null,$.createElement(D,null,m,!R&&$.createElement(pK,null),$.createElement(wK,null))))))))))))))))))},"Refine"),vK=W(({notification:e})=>{let t=Qe(),{notificationDispatch:n}=Bp(),{open:r}=hu(),[o,i]=v.useState(),a=W(()=>{if(e.isRunning===!0&&(e.seconds===0&&e.doMutation(),e.isSilent||r==null||r({key:`${e.id}-${e.resource}-notification`,type:"progress",message:t("notifications.undoable",{seconds:Ab(e.seconds)},`You have ${Ab(e.seconds)} seconds to undo`),cancelMutation:e.cancelMutation,undoableTimeout:Ab(e.seconds)}),e.seconds>0)){o&&clearTimeout(o);let l=setTimeout(()=>{n({type:"DECREASE_NOTIFICATION_SECOND",payload:{id:e.id,seconds:e.seconds,resource:e.resource}})},1e3);i(l)}},"cancelNotification");return v.useEffect(()=>{a()},[e]),null},"UndoableQueue");W(({children:e,Layout:t,Sider:n,Header:r,Title:o,Footer:i,OffLayoutArea:a})=>{let{Layout:l,Footer:s,Header:u,Sider:c,Title:d,OffLayoutArea:f}=un();return $.createElement(t??l,{Sider:n??c,Header:r??u,Footer:i??s,Title:o??d,OffLayoutArea:a??f},e,$.createElement(yK,null))},"LayoutWrapper");var yK=W(()=>{let{Prompt:e}=zt(),t=Qe(),{warnWhen:n,setWarnWhen:r}=Qa(),o=W(i=>(i.preventDefault(),i.returnValue=t("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."),i.returnValue),"warnWhenListener");return v.useEffect(()=>(n&&window.addEventListener("beforeunload",o),window.removeEventListener("beforeunload",o)),[n]),$.createElement(e,{when:n,message:t("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."),setWarnWhen:r})},"UnsavedPrompt");function sw({redirectOnFail:e=!0,appendCurrentPathToQuery:t=!0,children:n,fallback:r,loading:o}){var i;let a=Nt(),l=st(),s=!!(a!=null&&a.isProvided),u=!!(a!=null&&a.isLegacy),c=l==="legacy",d=Vo(),f=pr(),{useLocation:m}=zt(),p=m(),{isFetching:h,isSuccess:y,data:{authenticated:b,redirectTo:g}={}}=LL({v3LegacyAuthProviderCompatible:u}),x=s?u?y:b:!0;if(!s)return $.createElement($.Fragment,null,n??null);if(h)return $.createElement($.Fragment,null,o??null);if(x)return $.createElement($.Fragment,null,n??null);if(typeof r<"u")return $.createElement($.Fragment,null,r??null);let w=u?typeof e=="string"?e:"/login":typeof e=="string"?e:g,P=`${c?p==null?void 0:p.pathname:d.pathname}`.replace(/(\?.*|#.*)$/,"");if(w){if(c){let C=t?`?to=${encodeURIComponent(P)}`:"";return $.createElement(xK,{to:`${w}${C}`})}return $.createElement(bK,{config:{to:w,query:t?{to:(i=d.params)!=null&&i.to?d.params.to:f({to:P,options:{keepQuery:!0},type:"path"})}:void 0,type:"replace"}})}return null}W(sw,"Authenticated");var bK=W(({config:e})=>{let t=pr();return $.useEffect(()=>{t(e)},[t,e]),null},"Redirect"),xK=W(({to:e})=>{let{replace:t}=xn();return $.useEffect(()=>{t(e)},[t,e]),null},"RedirectLegacy"),wK=W(()=>{let{useLocation:e}=zt(),{checkAuth:t}=Ho(),n=e();return v.useEffect(()=>{t==null||t().catch(()=>!1)},[n==null?void 0:n.pathname]),null},"RouteChangeHandler"),Ta=W(({resource:e,action:t,params:n,fallback:r,onUnauthorized:o,children:i,queryOptions:a,...l})=>{let{resource:s,id:u,action:c}=Je(e),{identifier:d}=Je(),f=W(()=>{let b=(n==null?void 0:n.id)??u;return e&&e!==d?n==null?void 0:n.id:b},"getDefaultId")(),m=e??(s==null?void 0:s.name),p=t??c??"",h=n??{id:f,resource:s},{data:y}=gu({resource:m,action:p,params:h,queryOptions:a});return v.useEffect(()=>{o&&(y==null?void 0:y.can)===!1&&o({resource:m,action:p,reason:y==null?void 0:y.reason,params:h})},[y==null?void 0:y.can]),y!=null&&y.can?$.isValidElement(i)?$.cloneElement(i,l):$.createElement($.Fragment,null,i):(y==null?void 0:y.can)===!1?$.createElement($.Fragment,null,r??null):null},"CanAccess"),CK=[`
.bg-top-announcement {
border-bottom: 1px solid rgba(71, 235, 235, 0.15);
background: radial-gradient(
218.19% 111.8% at 0% 0%,
rgba(71, 235, 235, 0.1) 0%,
rgba(71, 235, 235, 0.2) 100%
),
#14141f;
}
`,`
.top-announcement-mask {
mask-image: url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/hexagon.svg);
-webkit-mask-image: url(https://refine.ams3.cdn.digitaloceanspaces.com/website/static/assets/hexagon.svg);
mask-repeat: repeat;
-webkit-mask-repeat: repeat;
background: rgba(71, 235, 235, 0.25);
}
`,`
.banner {
display: flex;
@media (max-width: 1000px) {
display: none;
}
}`,`
.gh-link, .gh-link:hover, .gh-link:active, .gh-link:visited, .gh-link:focus {
text-decoration: none;
z-index: 9;
}
`,`
@keyframes top-announcement-glow {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
`],SK="If you find Refine useful, you can contribute to its growth by giving it a star on GitHub";W(()=>(v.useEffect(()=>{let e=document.createElement("style");document.head.appendChild(e),CK.forEach(t=>{var n;return(n=e.sheet)==null?void 0:n.insertRule(t,e.sheet.cssRules.length)})},[]),$.createElement("div",{className:"banner bg-top-announcement",style:{width:"100%",height:"48px"}},$.createElement("div",{style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"200px",width:"100%",maxWidth:"100vw",height:"100%",borderBottom:"1px solid #47ebeb26"}},$.createElement("div",{className:"top-announcement-mask",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderBottom:"1px solid #47ebeb26"}},$.createElement("div",{style:{position:"relative",width:"960px",height:"100%",display:"flex",justifyContent:"space-between",margin:"0 auto"}},$.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},$.createElement(Xm,{style:{animationDelay:"1.5s",position:"absolute",top:"2px",right:"220px"},id:"1"}),$.createElement(Xm,{style:{animationDelay:"1s",position:"absolute",top:"8px",right:"100px",transform:"rotate(180deg)"},id:"2"}),$.createElement(sO,{style:{position:"absolute",right:"10px"},id:"3"})),$.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},$.createElement(Xm,{style:{animationDelay:"2s",position:"absolute",top:"6px",right:"180px",transform:"rotate(180deg)"},id:"4"}),$.createElement(Xm,{style:{animationDelay:"0.5s",transitionDelay:"1.3s",position:"absolute",top:"2px",right:"40px"},id:"5"}),$.createElement(sO,{style:{position:"absolute",right:"-70px"},id:"6"})))),$.createElement(EK,{text:SK})))),"GitHubBanner");var EK=W(({text:e})=>$.createElement("a",{className:"gh-link",href:"https://s.refine.dev/github-support",target:"_blank",rel:"noreferrer",style:{position:"absolute",height:"100%",padding:"0 60px",display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap",justifyContent:"center",alignItems:"center",backgroundImage:"linear-gradient(90deg, rgba(31, 63, 72, 0.00) 0%, #1F3F48 10%, #1F3F48 90%, rgba(31, 63, 72, 0.00) 100%)"}},$.createElement("div",{style:{color:"#fff",display:"flex",flexDirection:"row",gap:"8px"}},$.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"),$.createElement("span",{className:"text",style:{fontSize:"16px",lineHeight:"24px"}},e),$.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"))),"Text"),Xm=W(({style:e,...t})=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:80,height:40,fill:"none",style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},$.createElement("circle",{cx:40,r:40,fill:`url(#${t.id}-a)`,fillOpacity:.5}),$.createElement("defs",null,$.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 40 -40 0 40 0)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#47EBEB"}),$.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowSmall"),sO=W(({style:e,...t})=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:48,fill:"none",...t,style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},$.createElement("circle",{cx:60,cy:24,r:60,fill:`url(#${t.id}-a)`,fillOpacity:.5}),$.createElement("defs",null,$.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 60 -60 0 60 24)",gradientUnits:"userSpaceOnUse"},$.createElement("stop",{stopColor:"#47EBEB"}),$.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowBig"),PK=W(({status:e,elements:{success:t=$.createElement(Zm,{key:"autoSave.success",defaultMessage:"saved"}),error:n=$.createElement(Zm,{key:"autoSave.error",defaultMessage:"auto save failure"}),loading:r=$.createElement(Zm,{key:"autoSave.loading",defaultMessage:"saving..."}),idle:o=$.createElement(Zm,{key:"autoSave.idle",defaultMessage:"waiting for changes"})}={}})=>{switch(e){case"success":return $.createElement($.Fragment,null,t);case"error":return $.createElement($.Fragment,null,n);case"loading":return $.createElement($.Fragment,null,r);default:return $.createElement($.Fragment,null,o)}},"AutoSaveIndicator"),Zm=W(({key:e,defaultMessage:t})=>{let n=Qe();return $.createElement("span",null,n(e,t))},"Message"),Xn={},Pt={},uw=we&&we.__assign||function(){return uw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},uw.apply(this,arguments)},kK=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),$K=we&&we.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),IK=we&&we.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&kK(t,e,n);return $K(t,e),t},OK=we&&we.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.Priority=Pt.isModKey=Pt.shouldRejectKeystrokes=Pt.useThrottledValue=Pt.getScrollbarWidth=Pt.useIsomorphicLayout=Pt.noop=Pt.createAction=Pt.randomId=Pt.usePointerMovedSinceMount=Pt.useOuterClick=Pt.swallowEvent=void 0;var Hl=IK(v);function MK(e){e.stopPropagation(),e.preventDefault()}Pt.swallowEvent=MK;function RK(e,t){var n=Hl.useRef(t);n.current=t,Hl.useEffect(function(){function r(o){var i,a;!((i=e.current)===null||i===void 0)&&i.contains(o.target)||o.target===((a=e.current)===null||a===void 0?void 0:a.getRootNode().host)||(o.preventDefault(),o.stopPropagation(),n.current())}return window.addEventListener("pointerdown",r,!0),function(){return window.removeEventListener("pointerdown",r,!0)}},[e])}Pt.useOuterClick=RK;function TK(){var e=Hl.useState(!1),t=e[0],n=e[1];return Hl.useEffect(function(){function r(){n(!0)}if(!t)return window.addEventListener("pointermove",r),function(){return window.removeEventListener("pointermove",r)}},[t]),t}Pt.usePointerMovedSinceMount=TK;function KL(){return Math.random().toString(36).substring(2,9)}Pt.randomId=KL;function _K(e){return uw({id:KL()},e)}Pt.createAction=_K;function QL(){}Pt.noop=QL;Pt.useIsomorphicLayout=typeof window>"u"?QL:Hl.useLayoutEffect;function FK(){var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var t=document.createElement("div");e.appendChild(t);var n=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),n}Pt.getScrollbarWidth=FK;function AK(e,t){t===void 0&&(t=100);var n=Hl.useState(e),r=n[0],o=n[1],i=Hl.useRef(Date.now());return Hl.useEffect(function(){if(t!==0){var a=setTimeout(function(){o(e),i.current=Date.now()},i.current-(Date.now()-t));return function(){clearTimeout(a)}}},[t,e]),t===0?e:r}Pt.useThrottledValue=AK;function LK(e){var t,n,r,o=e===void 0?{ignoreWhenFocused:[]}:e,i=o.ignoreWhenFocused,a=OK(["input","textarea"],i,!0).map(function(u){return u.toLowerCase()}),l=document.activeElement,s=l&&(a.indexOf(l.tagName.toLowerCase())!==-1||((t=l.attributes.getNamedItem("role"))===null||t===void 0?void 0:t.value)==="textbox"||((n=l.attributes.getNamedItem("contenteditable"))===null||n===void 0?void 0:n.value)==="true"||((r=l.attributes.getNamedItem("contenteditable"))===null||r===void 0?void 0:r.value)==="plaintext-only");return s}Pt.shouldRejectKeystrokes=LK;var DK=typeof window>"u",NK=!DK&&window.navigator.platform==="MacIntel";function zK(e){return NK?e.metaKey:e.ctrlKey}Pt.isModKey=zK;Pt.Priority={HIGH:1,NORMAL:0,LOW:-1};var YL={},zd={},Hb={},ty={},cw={exports:{}};(function(e,t){(function(n,r){r(t)})(we,function(n){var r=typeof WeakSet=="function",o=Object.keys;function i(I,M){return I===M||I!==I&&M!==M}function a(I){return I.constructor===Object||I.constructor==null}function l(I){return!!I&&typeof I.then=="function"}function s(I){return!!(I&&I.$$typeof)}function u(){var I=[];return{add:function(M){I.push(M)},has:function(M){return I.indexOf(M)!==-1}}}var c=function(I){return I?function(){return new WeakSet}:u}(r);function d(I){return function(_){var D=I||_;return function(F,N,k){k===void 0&&(k=c());var L=!!F&&typeof F=="object",j=!!N&&typeof N=="object";if(L||j){var B=L&&k.has(F),A=j&&k.has(N);if(B||A)return B&&A;L&&k.add(F),j&&k.add(N)}return D(F,N,k)}}}function f(I,M,_,D){var T=I.length;if(M.length!==T)return!1;for(;T-- >0;)if(!_(I[T],M[T],D))return!1;return!0}function m(I,M,_,D){var T=I.size===M.size;if(T&&I.size){var F={};I.forEach(function(N,k){if(T){var L=!1,j=0;M.forEach(function(B,A){!L&&!F[j]&&(L=_(k,A,D)&&_(N,B,D),L&&(F[j]=!0)),j++}),T=L}})}return T}var p="_owner",h=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function y(I,M,_,D){var T=o(I),F=T.length;if(o(M).length!==F)return!1;if(F)for(var N=void 0;F-- >0;){if(N=T[F],N===p){var k=s(I),L=s(M);if((k||L)&&k!==L)return!1}if(!h(M,N)||!_(I[N],M[N],D))return!1}return!0}function b(I,M){return I.source===M.source&&I.global===M.global&&I.ignoreCase===M.ignoreCase&&I.multiline===M.multiline&&I.unicode===M.unicode&&I.sticky===M.sticky&&I.lastIndex===M.lastIndex}function g(I,M,_,D){var T=I.size===M.size;if(T&&I.size){var F={};I.forEach(function(N){if(T){var k=!1,L=0;M.forEach(function(j){!k&&!F[L]&&(k=_(N,j,D),k&&(F[L]=!0)),L++}),T=k}})}return T}var x=typeof Map=="function",w=typeof Set=="function";function P(I){var M=typeof I=="function"?I(_):_;function _(D,T,F){if(D===T)return!0;if(D&&T&&typeof D=="object"&&typeof T=="object"){if(a(D)&&a(T))return y(D,T,M,F);var N=Array.isArray(D),k=Array.isArray(T);return N||k?N===k&&f(D,T,M,F):(N=D instanceof Date,k=T instanceof Date,N||k?N===k&&i(D.getTime(),T.getTime()):(N=D instanceof RegExp,k=T instanceof RegExp,N||k?N===k&&b(D,T):l(D)||l(T)?D===T:x&&(N=D instanceof Map,k=T instanceof Map,N||k)?N===k&&m(D,T,M,F):w&&(N=D instanceof Set,k=T instanceof Set,N||k)?N===k&&g(D,T,M,F):y(D,T,M,F)))}return D!==D&&T!==T}return _}var C=P(),E=P(function(){return i}),S=P(d()),R=P(d(i));n.circularDeepEqual=S,n.circularShallowEqual=R,n.createCustomEqual=P,n.deepEqual=C,n.sameValueZeroEqual=i,n.shallowEqual=E,Object.defineProperty(n,"__esModule",{value:!0})})})(cw,cw.exports);var jK=cw.exports,BK="Invariant failed";function HK(e,t){if(!e)throw new Error(BK)}var HS=HK,Up={},Vp={},ny={};Object.defineProperty(ny,"__esModule",{value:!0});ny.Command=void 0;var UK=function(){function e(t,n){var r=this;n===void 0&&(n={}),this.perform=function(){var o=t.perform();if(typeof o=="function"){var i=n.history;i&&(r.historyItem&&i.remove(r.historyItem),r.historyItem=i.add({perform:t.perform,negate:o}),r.history={undo:function(){return i.undo(r.historyItem)},redo:function(){return i.redo(r.historyItem)}})}}}return e}();ny.Command=UK;var VK=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vp,"__esModule",{value:!0});Vp.ActionImpl=void 0;var WK=VK(HS),GK=ny,qK=Pt,KK=function(e){var t=e.keywords,n=t===void 0?"":t,r=e.section,o=r===void 0?"":r;return(n+" "+(typeof o=="string"?o:o.name)).trim()},QK=function(){function e(t,n){var r=this,o;this.priority=qK.Priority.NORMAL,this.ancestors=[],this.children=[],Object.assign(this,t),this.id=t.id,this.name=t.name,this.keywords=KK(t);var i=t.perform;if(this.command=i&&new GK.Command({perform:function(){return i(r)}},{history:n.history}),this.perform=(o=this.command)===null||o===void 0?void 0:o.perform,t.parent){var a=n.store[t.parent];(0,WK.default)(a,"attempted to create an action whos parent: "+t.parent+" does not exist in the store."),a.addChild(this)}}return e.prototype.addChild=function(t){t.ancestors.unshift(this);for(var n=this.parentActionImpl;n;)t.ancestors.unshift(n),n=n.parentActionImpl;this.children.push(t)},e.prototype.removeChild=function(t){var n=this,r=this.children.indexOf(t);r!==-1&&this.children.splice(r,1),t.children&&t.children.forEach(function(o){n.removeChild(o)})},Object.defineProperty(e.prototype,"parentActionImpl",{get:function(){return this.ancestors[this.ancestors.length-1]},enumerable:!1,configurable:!0}),e.create=function(t,n){return new e(t,n)},e}();Vp.ActionImpl=QK;var Gg=we&&we.__assign||function(){return Gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gg.apply(this,arguments)},YK=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Up,"__esModule",{value:!0});Up.ActionInterface=void 0;var XK=YK(HS),ZK=Vp,JK=function(){function e(t,n){t===void 0&&(t=[]),n===void 0&&(n={}),this.actions={},this.options=n,this.add(t)}return e.prototype.add=function(t){for(var n=0;n<t.length;n++){var r=t[n];r.parent&&(0,XK.default)(this.actions[r.parent],'Attempted to create action "'+r.name+'" without registering its parent "'+r.parent+'" first.'),this.actions[r.id]=ZK.ActionImpl.create(r,{history:this.options.historyManager,store:this.actions})}return Gg({},this.actions)},e.prototype.remove=function(t){var n=this;return t.forEach(function(r){var o=n.actions[r.id];if(o){for(var i=o.children;i.length;){var a=i.pop();if(!a)return;delete n.actions[a.id],a.parentActionImpl&&a.parentActionImpl.removeChild(a),a.children&&i.push.apply(i,a.children)}o.parentActionImpl&&o.parentActionImpl.removeChild(o),delete n.actions[r.id]}}),Gg({},this.actions)},e}();Up.ActionInterface=JK;var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.history=Hc.HistoryItemImpl=void 0;var eQ=Pt,XL=function(){function e(t){this.perform=t.perform,this.negate=t.negate}return e.create=function(t){return new e(t)},e}();Hc.HistoryItemImpl=XL;var tQ=function(){function e(){return this.undoStack=[],this.redoStack=[],e.instance||(e.instance=this,this.init()),e.instance}return e.prototype.init=function(){var t=this;typeof window>"u"||window.addEventListener("keydown",function(n){var r;if(!(!t.redoStack.length&&!t.undoStack.length||(0,eQ.shouldRejectKeystrokes)())){var o=(r=n.key)===null||r===void 0?void 0:r.toLowerCase();n.metaKey&&o==="z"&&n.shiftKey?t.redo():n.metaKey&&o==="z"&&t.undo()}})},e.prototype.add=function(t){var n=XL.create(t);return this.undoStack.push(n),n},e.prototype.remove=function(t){var n=this.undoStack.findIndex(function(o){return o===t});if(n!==-1){this.undoStack.splice(n,1);return}var r=this.redoStack.findIndex(function(o){return o===t});r!==-1&&this.redoStack.splice(r,1)},e.prototype.undo=function(t){if(!t){var n=this.undoStack.pop();return n?(n==null||n.negate(),this.redoStack.push(n),n):void 0}var r=this.undoStack.findIndex(function(o){return o===t});if(r!==-1)return this.undoStack.splice(r,1),t.negate(),this.redoStack.push(t),t},e.prototype.redo=function(t){if(!t){var n=this.redoStack.pop();return n?(n==null||n.perform(),this.undoStack.push(n),n):void 0}var r=this.redoStack.findIndex(function(o){return o===t});if(r!==-1)return this.redoStack.splice(r,1),t.perform(),this.undoStack.push(t),t},e.prototype.reset=function(){this.undoStack.splice(0),this.redoStack.splice(0)},e}(),ZL=new tQ;Hc.history=ZL;Object.freeze(ZL);var vu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VisualState=void 0,function(t){t.animatingIn="animating-in",t.showing="showing",t.animatingOut="animating-out",t.hidden="hidden"}(e.VisualState||(e.VisualState={}))})(vu);var Pn=we&&we.__assign||function(){return Pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Pn.apply(this,arguments)},nQ=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),rQ=we&&we.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),oQ=we&&we.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&nQ(t,e,n);return rQ(t,e),t},iQ=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ty,"__esModule",{value:!0});ty.useStore=void 0;var aQ=jK,Si=oQ(v),lQ=iQ(HS),sQ=Up,uQ=Hc,jd=vu;function cQ(e){var t=Si.useRef(Pn({animations:{enterMs:200,exitMs:100}},e.options)),n=Si.useMemo(function(){return new sQ.ActionInterface(e.actions||[],{historyManager:t.current.enableHistory?uQ.history:void 0})},[]),r=Si.useState({searchQuery:"",currentRootActionId:null,visualState:jd.VisualState.hidden,actions:Pn({},n.actions),activeIndex:0,disabled:!1}),o=r[0],i=r[1],a=Si.useRef(o);a.current=o;var l=Si.useCallback(function(){return a.current},[]),s=Si.useMemo(function(){return new dQ(l)},[l]);Si.useEffect(function(){a.current=o,s.notify()},[o,s]);var u=Si.useCallback(function(d){return i(function(f){return Pn(Pn({},f),{actions:n.add(d)})}),function(){i(function(m){return Pn(Pn({},m),{actions:n.remove(d)})})}},[n]),c=Si.useRef(null);return Si.useMemo(function(){var d={setCurrentRootAction:function(f){i(function(m){return Pn(Pn({},m),{currentRootActionId:f})})},setVisualState:function(f){i(function(m){return Pn(Pn({},m),{visualState:typeof f=="function"?f(m.visualState):f})})},setSearch:function(f){return i(function(m){return Pn(Pn({},m),{searchQuery:f})})},registerActions:u,toggle:function(){return i(function(f){return Pn(Pn({},f),{visualState:[jd.VisualState.animatingOut,jd.VisualState.hidden].includes(f.visualState)?jd.VisualState.animatingIn:jd.VisualState.animatingOut})})},setActiveIndex:function(f){return i(function(m){return Pn(Pn({},m),{activeIndex:typeof f=="number"?f:f(m.activeIndex)})})},inputRefSetter:function(f){c.current=f},getInput:function(){return(0,lQ.default)(c.current,"Input ref is undefined, make sure you attach `query.inputRefSetter` to your search input."),c.current},disable:function(f){i(function(m){return Pn(Pn({},m),{disabled:f})})}};return{getState:l,query:d,options:t.current,subscribe:function(f,m){return s.subscribe(f,m)}}},[l,s,u])}ty.useStore=cQ;var dQ=function(){function e(t){this.subscribers=[],this.getState=t}return e.prototype.subscribe=function(t,n){var r=this,o=new fQ(function(){return t(r.getState())},n);return this.subscribers.push(o),this.unsubscribe.bind(this,o)},e.prototype.unsubscribe=function(t){if(this.subscribers.length){var n=this.subscribers.indexOf(t);if(n>-1)return this.subscribers.splice(n,1)}},e.prototype.notify=function(){this.subscribers.forEach(function(t){return t.collect()})},e}(),fQ=function(){function e(t,n){this.collector=t,this.onChange=n}return e.prototype.collect=function(){try{var t=this.collector();(0,aQ.deepEqual)(t,this.collected)||(this.collected=t,this.onChange&&this.onChange(this.collected))}catch(n){console.warn(n)}},e}(),Bd={},US={};Object.defineProperty(US,"__esModule",{value:!0});var pQ=["Shift","Meta","Alt","Control"],mQ=1e3,hQ="keydown",gQ=typeof navigator=="object"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function dw(e,t){return typeof e.getModifierState=="function"?e.getModifierState(t):!1}function vQ(e){return e.trim().split(" ").map(function(t){var n=t.split(/\b\+/),r=n.pop();return n=n.map(function(o){return o==="$mod"?gQ:o}),[n,r]})}function yQ(e,t){return/^[^A-Za-z0-9]$/.test(e.key)&&t[1]===e.key?!0:!(t[1].toUpperCase()!==e.key.toUpperCase()&&t[1]!==e.code||t[0].find(function(n){return!dw(e,n)})||pQ.find(function(n){return!t[0].includes(n)&&t[1]!==n&&dw(e,n)}))}function bQ(e,t,n){var r,o;n===void 0&&(n={});var i=(r=n.timeout)!==null&&r!==void 0?r:mQ,a=(o=n.event)!==null&&o!==void 0?o:hQ,l=Object.keys(t).map(function(d){return[vQ(d),t[d]]}),s=new Map,u=null,c=function(d){d instanceof KeyboardEvent&&(l.forEach(function(f){var m=f[0],p=f[1],h=s.get(m),y=h||m,b=y[0],g=yQ(d,b);g?y.length>1?s.set(m,y.slice(1)):(s.delete(m),p(d)):dw(d,d.key)||s.delete(m)}),u&&clearTimeout(u),u=setTimeout(s.clear.bind(s),i))};return e.addEventListener(a,c),function(){e.removeEventListener(a,c)}}US.default=bQ;var uO;function xQ(){if(uO)return Bd;uO=1;var e=we&&we.__createBinding||(Object.create?function(y,b,g,x){x===void 0&&(x=g),Object.defineProperty(y,x,{enumerable:!0,get:function(){return b[g]}})}:function(y,b,g,x){x===void 0&&(x=g),y[x]=b[g]}),t=we&&we.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),n=we&&we.__importStar||function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var g in y)g!=="default"&&Object.prototype.hasOwnProperty.call(y,g)&&e(b,y,g);return t(b,y),b},r=we&&we.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.InternalEvents=void 0;var o=n(v),i=r(US),a=vu,l=is(),s=Pt;function u(){return c(),d(),p(),h(),null}Bd.InternalEvents=u;function c(){var y,b,g=(0,l.useKBar)(function(I){return{visualState:I.visualState,showing:I.visualState!==a.VisualState.hidden,disabled:I.disabled}}),x=g.query,w=g.options,P=g.visualState,C=g.showing,E=g.disabled;o.useEffect(function(){var I,M=function(){x.setVisualState(function(T){return T===a.VisualState.hidden||T===a.VisualState.animatingOut?T:a.VisualState.animatingOut})};if(E){M();return}var _=w.toggleShortcut||"$mod+k",D=(0,i.default)(window,(I={},I[_]=function(T){var F,N,k,L;T.defaultPrevented||(T.preventDefault(),x.toggle(),C?(N=(F=w.callbacks)===null||F===void 0?void 0:F.onClose)===null||N===void 0||N.call(F):(L=(k=w.callbacks)===null||k===void 0?void 0:k.onOpen)===null||L===void 0||L.call(k))},I.Escape=function(T){var F,N;C&&(T.stopPropagation(),T.preventDefault(),(N=(F=w.callbacks)===null||F===void 0?void 0:F.onClose)===null||N===void 0||N.call(F)),M()},I));return function(){D()}},[w.callbacks,w.toggleShortcut,x,C,E]);var S=o.useRef(),R=o.useCallback(function(I){var M,_,D=0;I===a.VisualState.animatingIn&&(D=((M=w.animations)===null||M===void 0?void 0:M.enterMs)||0),I===a.VisualState.animatingOut&&(D=((_=w.animations)===null||_===void 0?void 0:_.exitMs)||0),clearTimeout(S.current),S.current=setTimeout(function(){var T=!1;x.setVisualState(function(){var F=I===a.VisualState.animatingIn?a.VisualState.showing:a.VisualState.hidden;return F===a.VisualState.hidden&&(T=!0),F}),T&&x.setCurrentRootAction(null)},D)},[(y=w.animations)===null||y===void 0?void 0:y.enterMs,(b=w.animations)===null||b===void 0?void 0:b.exitMs,x]);o.useEffect(function(){switch(P){case a.VisualState.animatingIn:case a.VisualState.animatingOut:R(P);break}},[R,P])}function d(){var y=(0,l.useKBar)(function(x){return{visualState:x.visualState}}),b=y.visualState,g=y.options;o.useEffect(function(){if(!g.disableDocumentLock)if(b===a.VisualState.animatingIn){if(document.body.style.overflow="hidden",!g.disableScrollbarManagement){var x=(0,s.getScrollbarWidth)(),w=getComputedStyle(document.body)["margin-right"];w&&(x+=Number(w.replace(/\D/g,""))),document.body.style.marginRight=x+"px"}}else b===a.VisualState.hidden&&(document.body.style.removeProperty("overflow"),g.disableScrollbarManagement||document.body.style.removeProperty("margin-right"))},[g.disableDocumentLock,g.disableScrollbarManagement,b])}var f=new WeakSet;function m(y){return function(b){f.has(b)||(y(b),f.add(b))}}function p(){var y=(0,l.useKBar)(function(C){return{actions:C.actions,open:C.visualState===a.VisualState.showing,disabled:C.disabled}}),b=y.actions,g=y.query,x=y.open,w=y.options,P=y.disabled;o.useEffect(function(){var C;if(!(x||P)){for(var E=Object.keys(b).map(function(k){return b[k]}),S=[],R=0,I=E;R<I.length;R++){var M=I[R];!((C=M.shortcut)===null||C===void 0)&&C.length&&S.push(M)}S=S.sort(function(k,L){return L.shortcut.join(" ").length-k.shortcut.join(" ").length});for(var _={},D=function(k){var L=k.shortcut.join(" ");_[L]=m(function(j){var B,A,H,q,V,G;(0,s.shouldRejectKeystrokes)()||(j.preventDefault(),!((B=k.children)===null||B===void 0)&&B.length?(g.setCurrentRootAction(k.id),g.toggle(),(H=(A=w.callbacks)===null||A===void 0?void 0:A.onOpen)===null||H===void 0||H.call(A)):((q=k.command)===null||q===void 0||q.perform(),(G=(V=w.callbacks)===null||V===void 0?void 0:V.onSelectAction)===null||G===void 0||G.call(V,k)))})},T=0,F=S;T<F.length;T++){var M=F[T];D(M)}var N=(0,i.default)(window,_,{timeout:400});return function(){N()}}},[b,x,w.callbacks,g,P])}function h(){var y=o.useRef(!0),b=(0,l.useKBar)(function(P){return{isShowing:P.visualState===a.VisualState.showing||P.visualState===a.VisualState.animatingIn}}),g=b.isShowing,x=b.query,w=o.useRef(null);o.useEffect(function(){if(y.current){y.current=!1;return}if(g){w.current=document.activeElement;return}var P=document.activeElement;(P==null?void 0:P.tagName.toLowerCase())==="input"&&P.blur();var C=w.current;C&&C!==P&&C.focus()},[g]),o.useEffect(function(){function P(C){var E=x.getInput();C.target!==E&&E.focus()}if(g)return window.addEventListener("keydown",P),function(){window.removeEventListener("keydown",P)}},[g,x])}return Bd}var cO;function JL(){return cO||(cO=1,function(e){var t=we&&we.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c),Object.defineProperty(s,d,{enumerable:!0,get:function(){return u[c]}})}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),n=we&&we.__setModuleDefault||(Object.create?function(s,u){Object.defineProperty(s,"default",{enumerable:!0,value:u})}:function(s,u){s.default=u}),r=we&&we.__importStar||function(s){if(s&&s.__esModule)return s;var u={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&t(u,s,c);return n(u,s),u};Object.defineProperty(e,"__esModule",{value:!0}),e.KBarProvider=e.KBarContext=void 0;var o=ty,i=r(v),a=xQ();e.KBarContext=i.createContext({});var l=function(s){var u=(0,o.useStore)(s);return i.createElement(e.KBarContext.Provider,{value:u},i.createElement(a.InternalEvents,null),s.children)};e.KBarProvider=l}(Hb)),Hb}var dO;function is(){if(dO)return zd;dO=1;var e=we&&we.__assign||function(){return e=Object.assign||function(l){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(l[d]=s[d])}return l},e.apply(this,arguments)},t=we&&we.__createBinding||(Object.create?function(l,s,u,c){c===void 0&&(c=u),Object.defineProperty(l,c,{enumerable:!0,get:function(){return s[u]}})}:function(l,s,u,c){c===void 0&&(c=u),l[c]=s[u]}),n=we&&we.__setModuleDefault||(Object.create?function(l,s){Object.defineProperty(l,"default",{enumerable:!0,value:s})}:function(l,s){l.default=s}),r=we&&we.__importStar||function(l){if(l&&l.__esModule)return l;var s={};if(l!=null)for(var u in l)u!=="default"&&Object.prototype.hasOwnProperty.call(l,u)&&t(s,l,u);return n(s,l),s};Object.defineProperty(zd,"__esModule",{value:!0}),zd.useKBar=void 0;var o=r(v),i=JL();function a(l){var s=o.useContext(i.KBarContext),u=s.query,c=s.getState,d=s.subscribe,f=s.options,m=o.useRef(l==null?void 0:l(c())),p=o.useRef(l),h=o.useCallback(function(x){return e(e({},x),{query:u,options:f})},[u,f]),y=o.useState(h(m.current)),b=y[0],g=y[1];return o.useEffect(function(){var x;return p.current&&(x=d(function(w){return p.current(w)},function(w){return g(h(w))})),function(){x&&x()}},[h,d]),b}return zd.useKBar=a,zd}function ja(e){return Array.isArray?Array.isArray(e):nD(e)==="[object Array]"}const wQ=1/0;function CQ(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-wQ?"-0":t}function SQ(e){return e==null?"":CQ(e)}function Fi(e){return typeof e=="string"}function eD(e){return typeof e=="number"}function EQ(e){return e===!0||e===!1||PQ(e)&&nD(e)=="[object Boolean]"}function tD(e){return typeof e=="object"}function PQ(e){return tD(e)&&e!==null}function eo(e){return e!=null}function Ub(e){return!e.trim().length}function nD(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const kQ="Incorrect 'index' type",$Q=e=>`Invalid value for key ${e}`,IQ=e=>`Pattern length exceeds max of ${e}.`,OQ=e=>`Missing ${e} property in key`,MQ=e=>`Property 'weight' in key '${e}' must be a positive integer`,fO=Object.prototype.hasOwnProperty;class RQ{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=rD(r);n+=o.weight,this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function rD(e){let t=null,n=null,r=null,o=1,i=null;if(Fi(e)||ja(e))r=e,t=pO(e),n=fw(e);else{if(!fO.call(e,"name"))throw new Error(OQ("name"));const a=e.name;if(r=a,fO.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(MQ(a));t=pO(a),n=fw(a),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function pO(e){return ja(e)?e:e.split(".")}function fw(e){return ja(e)?e.join("."):e}function TQ(e,t){let n=[],r=!1;const o=(i,a,l)=>{if(eo(i))if(!a[l])n.push(i);else{let s=a[l];const u=i[s];if(!eo(u))return;if(l===a.length-1&&(Fi(u)||eD(u)||EQ(u)))n.push(SQ(u));else if(ja(u)){r=!0;for(let c=0,d=u.length;c<d;c+=1)o(u[c],a,l+1)}else a.length&&o(u,a,l+1)}};return o(e,Fi(t)?t.split("."):t,0),r?n:n[0]}const _Q={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},FQ={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},AQ={location:0,threshold:.6,distance:100},LQ={useExtendedSearch:!1,getFn:TQ,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var et={...FQ,..._Q,...AQ,...LQ};const DQ=/[^ ]+/g;function NQ(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const i=o.match(DQ).length;if(n.has(i))return n.get(i);const a=1/Math.pow(i,.5*e),l=parseFloat(Math.round(a*r)/r);return n.set(i,l),l},clear(){n.clear()}}}class VS{constructor({getFn:t=et.getFn,fieldNormWeight:n=et.fieldNormWeight}={}){this.norm=NQ(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Fi(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Fi(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!eo(t)||Ub(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let a=o.getFn?o.getFn(t):this.getFn(t,o.path);if(eo(a)){if(ja(a)){let l=[];const s=[{nestedArrIndex:-1,value:a}];for(;s.length;){const{nestedArrIndex:u,value:c}=s.pop();if(eo(c))if(Fi(c)&&!Ub(c)){let d={v:c,i:u,n:this.norm.get(c)};l.push(d)}else ja(c)&&c.forEach((d,f)=>{s.push({nestedArrIndex:f,value:d})})}r.$[i]=l}else if(Fi(a)&&!Ub(a)){let l={v:a,n:this.norm.get(a)};r.$[i]=l}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function oD(e,t,{getFn:n=et.getFn,fieldNormWeight:r=et.fieldNormWeight}={}){const o=new VS({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(rD)),o.setSources(t),o.create(),o}function zQ(e,{getFn:t=et.getFn,fieldNormWeight:n=et.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new VS({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function Jm(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=et.distance,ignoreLocation:i=et.ignoreLocation}={}){const a=t/e.length;if(i)return a;const l=Math.abs(r-n);return o?a+l/o:l?1:a}function jQ(e=[],t=et.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=e.length;i<a;i+=1){let l=e[i];l&&r===-1?r=i:!l&&r!==-1&&(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const Es=32;function BQ(e,t,n,{location:r=et.location,distance:o=et.distance,threshold:i=et.threshold,findAllMatches:a=et.findAllMatches,minMatchCharLength:l=et.minMatchCharLength,includeMatches:s=et.includeMatches,ignoreLocation:u=et.ignoreLocation}={}){if(t.length>Es)throw new Error(IQ(Es));const c=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let m=i,p=f;const h=l>1||s,y=h?Array(d):[];let b;for(;(b=e.indexOf(t,p))>-1;){let E=Jm(t,{currentLocation:b,expectedLocation:f,distance:o,ignoreLocation:u});if(m=Math.min(E,m),p=b+c,h){let S=0;for(;S<c;)y[b+S]=1,S+=1}}p=-1;let g=[],x=1,w=c+d;const P=1<<c-1;for(let E=0;E<c;E+=1){let S=0,R=w;for(;S<R;)Jm(t,{errors:E,currentLocation:f+R,expectedLocation:f,distance:o,ignoreLocation:u})<=m?S=R:w=R,R=Math.floor((w-S)/2+S);w=R;let I=Math.max(1,f-R+1),M=a?d:Math.min(f+R,d)+c,_=Array(M+2);_[M+1]=(1<<E)-1;for(let T=M;T>=I;T-=1){let F=T-1,N=n[e.charAt(F)];if(h&&(y[F]=+!!N),_[T]=(_[T+1]<<1|1)&N,E&&(_[T]|=(g[T+1]|g[T])<<1|1|g[T+1]),_[T]&P&&(x=Jm(t,{errors:E,currentLocation:F,expectedLocation:f,distance:o,ignoreLocation:u}),x<=m)){if(m=x,p=F,p<=f)break;I=Math.max(1,2*f-p)}}if(Jm(t,{errors:E+1,currentLocation:f,expectedLocation:f,distance:o,ignoreLocation:u})>m)break;g=_}const C={isMatch:p>=0,score:Math.max(.001,x)};if(h){const E=jQ(y,l);E.length?s&&(C.indices=E):C.isMatch=!1}return C}function HQ(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class iD{constructor(t,{location:n=et.location,threshold:r=et.threshold,distance:o=et.distance,includeMatches:i=et.includeMatches,findAllMatches:a=et.findAllMatches,minMatchCharLength:l=et.minMatchCharLength,isCaseSensitive:s=et.isCaseSensitive,ignoreLocation:u=et.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:s,ignoreLocation:u},this.pattern=s?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(f,m)=>{this.chunks.push({pattern:f,alphabet:HQ(f),startIndex:m})},d=this.pattern.length;if(d>Es){let f=0;const m=d%Es,p=d-m;for(;f<p;)c(this.pattern.substr(f,Es),f),f+=Es;if(m){const h=d-Es;c(this.pattern.substr(h),h)}}else c(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,t.length-1]]),p}const{location:o,distance:i,threshold:a,findAllMatches:l,minMatchCharLength:s,ignoreLocation:u}=this.options;let c=[],d=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:h,startIndex:y})=>{const{isMatch:b,score:g,indices:x}=BQ(t,p,h,{location:o+y,distance:i,threshold:a,findAllMatches:l,minMatchCharLength:s,includeMatches:r,ignoreLocation:u});b&&(f=!0),d+=g,b&&x&&(c=[...c,...x])});let m={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(m.indices=c),m}}class as{constructor(t){this.pattern=t}static isMultiMatch(t){return mO(t,this.multiRegex)}static isSingleMatch(t){return mO(t,this.singleRegex)}search(){}}function mO(e,t){const n=e.match(t);return n?n[1]:null}class UQ extends as{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class VQ extends as{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class WQ extends as{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class GQ extends as{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class qQ extends as{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class KQ extends as{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class aD extends as{constructor(t,{location:n=et.location,threshold:r=et.threshold,distance:o=et.distance,includeMatches:i=et.includeMatches,findAllMatches:a=et.findAllMatches,minMatchCharLength:l=et.minMatchCharLength,isCaseSensitive:s=et.isCaseSensitive,ignoreLocation:u=et.ignoreLocation}={}){super(t),this._bitapSearch=new iD(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:s,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class lD extends as{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const a=!!o.length;return{isMatch:a,score:a?0:1,indices:o}}}const pw=[UQ,lD,WQ,GQ,KQ,qQ,VQ,aD],hO=pw.length,QQ=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,YQ="|";function XQ(e,t={}){return e.split(YQ).map(n=>{let r=n.trim().split(QQ).filter(i=>i&&!!i.trim()),o=[];for(let i=0,a=r.length;i<a;i+=1){const l=r[i];let s=!1,u=-1;for(;!s&&++u<hO;){const c=pw[u];let d=c.isMultiMatch(l);d&&(o.push(new c(d,t)),s=!0)}if(!s)for(u=-1;++u<hO;){const c=pw[u];let d=c.isSingleMatch(l);if(d){o.push(new c(d,t));break}}}return o})}const ZQ=new Set([aD.type,lD.type]);class JQ{constructor(t,{isCaseSensitive:n=et.isCaseSensitive,includeMatches:r=et.includeMatches,minMatchCharLength:o=et.minMatchCharLength,ignoreLocation:i=et.ignoreLocation,findAllMatches:a=et.findAllMatches,location:l=et.location,threshold:s=et.threshold,distance:u=et.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:a,ignoreLocation:i,location:l,threshold:s,distance:u},this.pattern=n?t:t.toLowerCase(),this.query=XQ(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o}=this.options;t=o?t:t.toLowerCase();let i=0,a=[],l=0;for(let s=0,u=n.length;s<u;s+=1){const c=n[s];a.length=0,i=0;for(let d=0,f=c.length;d<f;d+=1){const m=c[d],{isMatch:p,indices:h,score:y}=m.search(t);if(p){if(i+=1,l+=y,r){const b=m.constructor.type;ZQ.has(b)?a=[...a,...h]:a.push(h)}}else{l=0,i=0,a.length=0;break}}if(i){let d={isMatch:!0,score:l/i};return r&&(d.indices=a),d}}return{isMatch:!1,score:1}}}const mw=[];function eY(...e){mw.push(...e)}function hw(e,t){for(let n=0,r=mw.length;n<r;n+=1){let o=mw[n];if(o.condition(e,t))return new o(e,t)}return new iD(e,t)}const qg={AND:"$and",OR:"$or"},gw={PATH:"$path",PATTERN:"$val"},vw=e=>!!(e[qg.AND]||e[qg.OR]),tY=e=>!!e[gw.PATH],nY=e=>!ja(e)&&tD(e)&&!vw(e),gO=e=>({[qg.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function sD(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const a=tY(o);if(!a&&i.length>1&&!vw(o))return r(gO(o));if(nY(o)){const s=a?o[gw.PATH]:i[0],u=a?o[gw.PATTERN]:o[s];if(!Fi(u))throw new Error($Q(s));const c={keyId:fw(s),pattern:u};return n&&(c.searcher=hw(u,t)),c}let l={children:[],operator:i[0]};return i.forEach(s=>{const u=o[s];ja(u)&&u.forEach(c=>{l.children.push(r(c))})}),l};return vw(e)||(e=gO(e)),r(e)}function rY(e,{ignoreFieldNorm:t=et.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:a})=>{const l=o?o.weight:null;r*=Math.pow(a===0&&l?Number.EPSILON:a,(l||1)*(t?1:i))}),n.score=r})}function oY(e,t){const n=e.matches;t.matches=[],eo(n)&&n.forEach(r=>{if(!eo(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let a={indices:o,value:i};r.key&&(a.key=r.key.src),r.idx>-1&&(a.refIndex=r.idx),t.matches.push(a)})}function iY(e,t){t.score=e.score}function aY(e,t,{includeMatches:n=et.includeMatches,includeScore:r=et.includeScore}={}){const o=[];return n&&o.push(oY),r&&o.push(iY),e.map(i=>{const{idx:a}=i,l={item:t[a],refIndex:a};return o.length&&o.forEach(s=>{s(i,l)}),l})}class dd{constructor(t,n={},r){this.options={...et,...n},this.options.useExtendedSearch,this._keyStore=new RQ(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof VS))throw new Error(kQ);this._myIndex=n||oD(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){eo(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];t(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:a,ignoreFieldNorm:l}=this.options;let s=Fi(t)?Fi(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return rY(s,{ignoreFieldNorm:l}),i&&s.sort(a),eD(n)&&n>-1&&(s=s.slice(0,n)),aY(s,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=hw(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:a,n:l})=>{if(!eo(i))return;const{isMatch:s,score:u,indices:c}=n.searchIn(i);s&&o.push({item:i,idx:a,matches:[{score:u,value:i,norm:l,indices:c}]})}),o}_searchLogical(t){const n=sD(t,this.options),r=(l,s,u)=>{if(!l.children){const{keyId:d,searcher:f}=l,m=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(s,d),searcher:f});return m&&m.length?[{idx:u,item:s,matches:m}]:[]}const c=[];for(let d=0,f=l.children.length;d<f;d+=1){const m=l.children[d],p=r(m,s,u);if(p.length)c.push(...p);else if(l.operator===qg.AND)return[]}return c},o=this._myIndex.records,i={},a=[];return o.forEach(({$:l,i:s})=>{if(eo(l)){let u=r(n,l,s);u.length&&(i[s]||(i[s]={idx:s,item:l,matches:[]},a.push(i[s])),u.forEach(({matches:c})=>{i[s].matches.push(...c)}))}}),a}_searchObjectList(t){const n=hw(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:a,i:l})=>{if(!eo(a))return;let s=[];r.forEach((u,c)=>{s.push(...this._findMatches({key:u,value:a[c],searcher:n}))}),s.length&&i.push({idx:l,item:a,matches:s})}),i}_findMatches({key:t,value:n,searcher:r}){if(!eo(n))return[];let o=[];if(ja(n))n.forEach(({v:i,i:a,n:l})=>{if(!eo(i))return;const{isMatch:s,score:u,indices:c}=r.searchIn(i);s&&o.push({score:u,key:t,value:i,idx:a,norm:l,indices:c})});else{const{v:i,n:a}=n,{isMatch:l,score:s,indices:u}=r.searchIn(i);l&&o.push({score:s,key:t,value:i,norm:a,indices:u})}return o}}dd.version="6.6.2";dd.createIndex=oD;dd.parseIndex=zQ;dd.config=et;dd.parseQuery=sD;eY(JQ);const lY=Object.freeze(Object.defineProperty({__proto__:null,default:dd},Symbol.toStringTag,{value:"Module"})),sY=Bo(lY);(function(e){var t=we&&we.__createBinding||(Object.create?function(m,p,h,y){y===void 0&&(y=h),Object.defineProperty(m,y,{enumerable:!0,get:function(){return p[h]}})}:function(m,p,h,y){y===void 0&&(y=h),m[y]=p[h]}),n=we&&we.__setModuleDefault||(Object.create?function(m,p){Object.defineProperty(m,"default",{enumerable:!0,value:p})}:function(m,p){m.default=p}),r=we&&we.__importStar||function(m){if(m&&m.__esModule)return m;var p={};if(m!=null)for(var h in m)h!=="default"&&Object.prototype.hasOwnProperty.call(m,h)&&t(p,m,h);return n(p,m),p},o=we&&we.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.useDeepMatches=e.useMatches=e.NO_GROUP=void 0;var i=r(v),a=is(),l=Pt,s=o(sY);e.NO_GROUP={name:"none",priority:l.Priority.NORMAL};var u={keys:[{name:"name",weight:.5},{name:"keywords",getFn:function(m){var p;return((p=m.keywords)!==null&&p!==void 0?p:"").split(",")},weight:.5},"subtitle"],ignoreLocation:!0,includeScore:!0,includeMatches:!0,threshold:.2,minMatchCharLength:1};function c(m,p){return p.priority-m.priority}function d(){var m=(0,a.useKBar)(function(R){return{search:R.searchQuery,actions:R.actions,rootActionId:R.currentRootActionId}}),p=m.search,h=m.actions,y=m.rootActionId,b=i.useMemo(function(){return Object.keys(h).reduce(function(R,I){var M=h[I];if(!M.parent&&!y&&R.push(M),M.id===y)for(var _=0;_<M.children.length;_++)R.push(M.children[_]);return R},[]).sort(c)},[h,y]),g=i.useCallback(function(R){for(var I=[],M=0;M<R.length;M++)I.push(R[M]);return function _(D,T){T===void 0&&(T=I);for(var F=0;F<D.length;F++)if(D[F].children.length>0){for(var N=D[F].children,k=0;k<N.length;k++)T.push(N[k]);_(D[F].children,T)}return T}(R)},[]),x=!p,w=i.useMemo(function(){return x?b:g(b)},[g,b,x]),P=i.useMemo(function(){return new s.default(w,u)},[w]),C=f(w,p,P),E=i.useMemo(function(){for(var R,I,M={},_=[],D=[],T=0;T<C.length;T++){var F=C[T],N=F.action,k=F.score||l.Priority.NORMAL,L={name:typeof N.section=="string"?N.section:((R=N.section)===null||R===void 0?void 0:R.name)||e.NO_GROUP.name,priority:typeof N.section=="string"?k:((I=N.section)===null||I===void 0?void 0:I.priority)||0+k};M[L.name]||(M[L.name]=[],_.push(L)),M[L.name].push({priority:N.priority+k,action:N})}D=_.sort(c).map(function(H){return{name:H.name,actions:M[H.name].sort(c).map(function(q){return q.action})}});for(var j=[],T=0;T<D.length;T++){var B=D[T];B.name!==e.NO_GROUP.name&&j.push(B.name);for(var A=0;A<B.actions.length;A++)j.push(B.actions[A])}return j},[C]),S=i.useMemo(function(){return y},[E]);return i.useMemo(function(){return{results:E,rootActionId:S}},[S,E])}e.useMatches=d;function f(m,p,h){var y=i.useMemo(function(){return{filtered:m,search:p}},[m,p]),b=(0,l.useThrottledValue)(y),g=b.filtered,x=b.search;return i.useMemo(function(){if(x.trim()==="")return g.map(function(C){return{score:0,action:C}});var w=[],P=h.search(x);return w=P.map(function(C){var E=C.item,S=C.score;return{score:1/((S??0)+1),action:E}}),w},[g,x,h])}e.useDeepMatches=d})(YL);var ry={},uD={exports:{}},cD={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(cD);var oy=cD.exports,dD={exports:{}},fD={exports:{}},pD={exports:{}};(function(e){var t=v;function n(a,l,s,u){Object.defineProperty(a,l,{get:s,set:u,enumerable:!0,configurable:!0})}n(e.exports,"composeRefs",()=>o),n(e.exports,"useComposedRefs",()=>i);function r(a,l){typeof a=="function"?a(l):a!=null&&(a.current=l)}function o(...a){return l=>a.forEach(s=>r(s,l))}function i(...a){return t.useCallback(o(...a),a)}})(pD);var uY=pD.exports;(function(e){var t=oy,n=v,r=uY;function o(f,m,p,h){Object.defineProperty(f,m,{get:p,set:h,enumerable:!0,configurable:!0})}function i(f){return f&&f.__esModule?f.default:f}o(e.exports,"Slot",()=>a),o(e.exports,"Slottable",()=>s),o(e.exports,"Root",()=>d);const a=n.forwardRef((f,m)=>{const{children:p,...h}=f,y=n.Children.toArray(p),b=y.find(u);if(b){const g=b.props.children,x=y.map(w=>w===b?n.Children.count(g)>1?n.Children.only(null):n.isValidElement(g)?g.props.children:null:w);return n.createElement(l,i(t)({},h,{ref:m}),n.isValidElement(g)?n.cloneElement(g,void 0,x):null)}return n.createElement(l,i(t)({},h,{ref:m}),p)});a.displayName="Slot";const l=n.forwardRef((f,m)=>{const{children:p,...h}=f;return n.isValidElement(p)?n.cloneElement(p,{...c(h,p.props),ref:m?r.composeRefs(m,p.ref):p.ref}):n.Children.count(p)>1?n.Children.only(null):null});l.displayName="SlotClone";const s=({children:f})=>n.createElement(n.Fragment,null,f);function u(f){return n.isValidElement(f)&&f.type===s}function c(f,m){const p={...m};for(const h in m){const y=f[h],b=m[h];/^on[A-Z]/.test(h)?y&&b?p[h]=(...x)=>{b(...x),y(...x)}:y&&(p[h]=y):h==="style"?p[h]={...y,...b}:h==="className"&&(p[h]=[y,b].filter(Boolean).join(" "))}return{...f,...p}}const d=a})(fD);var cY=fD.exports;(function(e){var t=oy,n=v,r=ns,o=cY;function i(d,f,m,p){Object.defineProperty(d,f,{get:m,set:p,enumerable:!0,configurable:!0})}function a(d){return d&&d.__esModule?d.default:d}i(e.exports,"Primitive",()=>s),i(e.exports,"Root",()=>c),i(e.exports,"dispatchDiscreteCustomEvent",()=>u);const s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((d,f)=>{const m=n.forwardRef((p,h)=>{const{asChild:y,...b}=p,g=y?o.Slot:f;return n.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),n.createElement(g,a(t)({},b,{ref:h}))});return m.displayName=`Primitive.${f}`,{...d,[f]:m}},{});function u(d,f){d&&r.flushSync(()=>d.dispatchEvent(f))}const c=s})(dD);var dY=dD.exports;(function(e){var t=oy,n=v,r=ns,o=dY;function i(u,c,d,f){Object.defineProperty(u,c,{get:d,set:f,enumerable:!0,configurable:!0})}function a(u){return u&&u.__esModule?u.default:u}i(e.exports,"Portal",()=>l),i(e.exports,"Root",()=>s);const l=n.forwardRef((u,c)=>{var d;const{container:f=globalThis==null||(d=globalThis.document)===null||d===void 0?void 0:d.body,...m}=u;return f?a(r).createPortal(n.createElement(o.Primitive.div,a(t)({},m,{ref:c})),f):null}),s=l})(uD);var fY=uD.exports,pY=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),mY=we&&we.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),hY=we&&we.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&pY(t,e,n);return mY(t,e),t};Object.defineProperty(ry,"__esModule",{value:!0});ry.KBarPortal=void 0;var gY=fY,vY=hY(v),yY=vu,bY=is();function xY(e){var t=e.children,n=e.container,r=(0,bY.useKBar)(function(o){return{showing:o.visualState!==yY.VisualState.hidden}}).showing;return r?vY.createElement(gY.Portal,{container:n},t):null}ry.KBarPortal=xY;var iy={},lp=we&&we.__assign||function(){return lp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lp.apply(this,arguments)},wY=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),CY=we&&we.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),SY=we&&we.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&wY(t,e,n);return CY(t,e),t},EY=we&&we.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(iy,"__esModule",{value:!0});iy.KBarPositioner=void 0;var vO=SY(v),yO={position:"fixed",display:"flex",alignItems:"flex-start",justifyContent:"center",width:"100%",inset:"0px",padding:"14vh 16px 16px"};function PY(e){return e?lp(lp({},yO),e):yO}iy.KBarPositioner=vO.forwardRef(function(e,t){var n=e.style,r=e.children,o=EY(e,["style","children"]);return vO.createElement("div",lp({ref:t,style:PY(n)},o),r)});var WS={};(function(e){var t=we&&we.__assign||function(){return t=Object.assign||function(d){for(var f,m=1,p=arguments.length;m<p;m++){f=arguments[m];for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(d[h]=f[h])}return d},t.apply(this,arguments)},n=we&&we.__createBinding||(Object.create?function(d,f,m,p){p===void 0&&(p=m),Object.defineProperty(d,p,{enumerable:!0,get:function(){return f[m]}})}:function(d,f,m,p){p===void 0&&(p=m),d[p]=f[m]}),r=we&&we.__setModuleDefault||(Object.create?function(d,f){Object.defineProperty(d,"default",{enumerable:!0,value:f})}:function(d,f){d.default=f}),o=we&&we.__importStar||function(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var m in d)m!=="default"&&Object.prototype.hasOwnProperty.call(d,m)&&n(f,d,m);return r(f,d),f},i=we&&we.__rest||function(d,f){var m={};for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&f.indexOf(p)<0&&(m[p]=d[p]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,p=Object.getOwnPropertySymbols(d);h<p.length;h++)f.indexOf(p[h])<0&&Object.prototype.propertyIsEnumerable.call(d,p[h])&&(m[p[h]]=d[p[h]]);return m};Object.defineProperty(e,"__esModule",{value:!0}),e.KBarSearch=e.getListboxItemId=e.KBAR_LISTBOX=void 0;var a=o(v),l=vu,s=is();e.KBAR_LISTBOX="kbar-listbox";var u=function(d){return"kbar-listbox-item-"+d};e.getListboxItemId=u;function c(d){var f=(0,s.useKBar)(function(I){return{search:I.searchQuery,currentRootActionId:I.currentRootActionId,actions:I.actions,activeIndex:I.activeIndex,showing:I.visualState===l.VisualState.showing}}),m=f.query,p=f.search,h=f.actions,y=f.currentRootActionId,b=f.activeIndex,g=f.showing,x=f.options,w=a.useState(p),P=w[0],C=w[1];a.useEffect(function(){m.setSearch(P)},[P,m]);var E=d.defaultPlaceholder,S=i(d,["defaultPlaceholder"]);a.useEffect(function(){return m.setSearch(""),m.getInput().focus(),function(){return m.setSearch("")}},[y,m]);var R=a.useMemo(function(){var I=E??"Type a command or search…";return y&&h[y]?h[y].name:I},[h,y,E]);return a.createElement("input",t({},S,{ref:m.inputRefSetter,autoFocus:!0,autoComplete:"off",role:"combobox",spellCheck:"false","aria-expanded":g,"aria-controls":e.KBAR_LISTBOX,"aria-activedescendant":(0,e.getListboxItemId)(b),value:P,placeholder:R,onChange:function(I){var M,_,D;(M=d.onChange)===null||M===void 0||M.call(d,I),C(I.target.value),(D=(_=x==null?void 0:x.callbacks)===null||_===void 0?void 0:_.onQueryChange)===null||D===void 0||D.call(_,I.target.value)},onKeyDown:function(I){var M;if((M=d.onKeyDown)===null||M===void 0||M.call(d,I),y&&!p&&I.key==="Backspace"){var _=h[y].parent;m.setCurrentRootAction(_)}}}))}e.KBarSearch=c})(WS);var ay={};function Ps(){return Ps=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ps.apply(this,arguments)}function kY(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var $Y=["bottom","height","left","right","top","width"],IY=function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),$Y.some(function(r){return t[r]!==n[r]})},fl=new Map,mD,OY=function e(){var t=[];fl.forEach(function(n,r){var o=r.getBoundingClientRect();IY(o,n.rect)&&(n.rect=o,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),mD=window.requestAnimationFrame(e)};function MY(e,t){return{observe:function(){var r=fl.size===0;fl.has(e)?fl.get(e).callbacks.push(t):fl.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&OY()},unobserve:function(){var r=fl.get(e);if(r){var o=r.callbacks.indexOf(t);o>=0&&r.callbacks.splice(o,1),r.callbacks.length||fl.delete(e),fl.size||cancelAnimationFrame(mD)}}}}var Kg=typeof window<"u"?$.useLayoutEffect:$.useEffect;function RY(e,t){t===void 0&&(t={width:0,height:0});var n=$.useState(e.current),r=n[0],o=n[1],i=$.useReducer(TY,t),a=i[0],l=i[1],s=$.useRef(!1);return Kg(function(){e.current!==r&&o(e.current)}),Kg(function(){if(r&&!s.current){s.current=!0;var u=r.getBoundingClientRect();l({rect:u})}},[r]),$.useEffect(function(){if(r){var u=MY(r,function(c){l({rect:c})});return u.observe(),function(){u.unobserve()}}},[r]),a}function TY(e,t){var n=t.rect;return e.height!==n.height||e.width!==n.width?n:e}var _Y=function(){return 50},FY=function(t){return t},AY=function(t,n){var r=n?"offsetWidth":"offsetHeight";return t[r]},hD=function(t){for(var n=Math.max(t.start-t.overscan,0),r=Math.min(t.end+t.overscan,t.size-1),o=[],i=n;i<=r;i++)o.push(i);return o};function LY(e){var t,n=e.size,r=n===void 0?0:n,o=e.estimateSize,i=o===void 0?_Y:o,a=e.overscan,l=a===void 0?1:a,s=e.paddingStart,u=s===void 0?0:s,c=e.paddingEnd,d=c===void 0?0:c,f=e.parentRef,m=e.horizontal,p=e.scrollToFn,h=e.useObserver,y=e.initialRect,b=e.onScrollElement,g=e.scrollOffsetFn,x=e.keyExtractor,w=x===void 0?FY:x,P=e.measureSize,C=P===void 0?AY:P,E=e.rangeExtractor,S=E===void 0?hD:E,R=m?"width":"height",I=m?"scrollLeft":"scrollTop",M=$.useRef({scrollOffset:0,measurements:[]}),_=$.useState(0),D=_[0],T=_[1];M.current.scrollOffset=D;var F=h||RY,N=F(f,y),k=N[R];M.current.outerSize=k;var L=$.useCallback(function(Q){f.current&&(f.current[I]=Q)},[f,I]),j=p||L;p=$.useCallback(function(Q){j(Q,L)},[L,j]);var B=$.useState({}),A=B[0],H=B[1],q=$.useCallback(function(){return H({})},[]),V=$.useRef([]),G=$.useMemo(function(){var Q=V.current.length>0?Math.min.apply(Math,V.current):0;V.current=[];for(var Z=M.current.measurements.slice(0,Q),ae=Q;ae<r;ae++){var te=w(ae),K=A[te],ee=Z[ae-1]?Z[ae-1].end:u,se=typeof K=="number"?K:i(ae),Ce=ee+se;Z[ae]={index:ae,start:ee,size:se,end:Ce,key:te}}return Z},[i,A,u,r,w]),Y=(((t=G[r-1])==null?void 0:t.end)||u)+d;M.current.measurements=G,M.current.totalSize=Y;var re=b?b.current:f.current,le=$.useRef(g);le.current=g,Kg(function(){if(!re){T(0);return}var Q=function(ae){var te=le.current?le.current(ae):re[I];T(te)};return Q(),re.addEventListener("scroll",Q,{capture:!1,passive:!0}),function(){re.removeEventListener("scroll",Q)}},[re,I]);var J=NY(M.current),oe=J.start,ue=J.end,ge=$.useMemo(function(){return S({start:oe,end:ue,overscan:l,size:G.length})},[oe,ue,l,G.length,S]),me=$.useRef(C);me.current=C;var ke=$.useMemo(function(){for(var Q=[],Z=function(ee,se){var Ce=ge[ee],_e=G[Ce],$e=Ps(Ps({},_e),{},{measureRef:function(Ee){if(Ee){var Le=me.current(Ee,m);if(Le!==$e.size){var Te=M.current.scrollOffset;$e.start<Te&&L(Te+(Le-$e.size)),V.current.push(Ce),H(function(Pe){var Re;return Ps(Ps({},Pe),{},(Re={},Re[$e.key]=Le,Re))})}}}});Q.push($e)},ae=0,te=ge.length;ae<te;ae++)Z(ae);return Q},[ge,L,m,G]),be=$.useRef(!1);Kg(function(){be.current&&H({}),be.current=!0},[i]);var ie=$.useCallback(function(Q,Z){var ae=Z===void 0?{}:Z,te=ae.align,K=te===void 0?"start":te,ee=M.current,se=ee.scrollOffset,Ce=ee.outerSize;K==="auto"&&(Q<=se?K="start":Q>=se+Ce?K="end":K="start"),K==="start"?p(Q):K==="end"?p(Q-Ce):K==="center"&&p(Q-Ce/2)},[p]),ye=$.useCallback(function(Q,Z){var ae=Z===void 0?{}:Z,te=ae.align,K=te===void 0?"auto":te,ee=kY(ae,["align"]),se=M.current,Ce=se.measurements,_e=se.scrollOffset,$e=se.outerSize,X=Ce[Math.max(0,Math.min(Q,r-1))];if(X){if(K==="auto")if(X.end>=_e+$e)K="end";else if(X.start<=_e)K="start";else return;var Ee=K==="center"?X.start+X.size/2:K==="end"?X.end:X.start;ie(Ee,Ps({align:K},ee))}},[ie,r]),U=$.useCallback(function(){for(var Q=arguments.length,Z=new Array(Q),ae=0;ae<Q;ae++)Z[ae]=arguments[ae];ye.apply(void 0,Z),requestAnimationFrame(function(){ye.apply(void 0,Z)})},[ye]);return{virtualItems:ke,totalSize:Y,scrollToOffset:ie,scrollToIndex:U,measure:q}}var DY=function(t,n,r,o){for(;t<=n;){var i=(t+n)/2|0,a=r(i);if(a<o)t=i+1;else if(a>o)n=i-1;else return i}return t>0?t-1:0};function NY(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,o=t.length-1,i=function(u){return t[u].start},a=DY(0,o,i,r),l=a;l<o&&t[l].end<r+n;)l++;return{start:a,end:l}}const zY=Object.freeze(Object.defineProperty({__proto__:null,defaultRangeExtractor:hD,useVirtual:LY},Symbol.toStringTag,{value:"Module"})),jY=Bo(zY);var yw=we&&we.__assign||function(){return yw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yw.apply(this,arguments)},BY=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),HY=we&&we.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),UY=we&&we.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&BY(t,e,n);return HY(t,e),t};Object.defineProperty(ay,"__esModule",{value:!0});ay.KBarResults=void 0;var ei=UY(v),VY=jY,bO=WS,WY=is(),GY=Pt,eh=0,qY=function(e){var t=ei.useRef(null),n=ei.useRef(null),r=ei.useRef(e.items);r.current=e.items;var o=(0,VY.useVirtual)({size:r.current.length,parentRef:n}),i=(0,WY.useKBar)(function(p){return{search:p.searchQuery,currentRootActionId:p.currentRootActionId,activeIndex:p.activeIndex}}),a=i.query,l=i.search,s=i.currentRootActionId,u=i.activeIndex,c=i.options;ei.useEffect(function(){var p=function(h){var y;h.isComposing||(h.key==="ArrowUp"||h.ctrlKey&&h.key==="p"?(h.preventDefault(),h.stopPropagation(),a.setActiveIndex(function(b){var g=b>eh?b-1:b;if(typeof r.current[g]=="string"){if(g===0)return b;g-=1}return g})):h.key==="ArrowDown"||h.ctrlKey&&h.key==="n"?(h.preventDefault(),h.stopPropagation(),a.setActiveIndex(function(b){var g=b<r.current.length-1?b+1:b;if(typeof r.current[g]=="string"){if(g===r.current.length-1)return b;g+=1}return g})):h.key==="Enter"&&(h.preventDefault(),h.stopPropagation(),(y=t.current)===null||y===void 0||y.click()))};return window.addEventListener("keydown",p,{capture:!0}),function(){return window.removeEventListener("keydown",p,{capture:!0})}},[a]);var d=o.scrollToIndex;ei.useEffect(function(){d(u,{align:u<=1?"end":"auto"})},[u,d]),ei.useEffect(function(){a.setActiveIndex(typeof e.items[eh]=="string"?eh+1:eh)},[l,s,e.items,a]);var f=ei.useCallback(function(p){var h,y;typeof p!="string"&&(p.command?(p.command.perform(p),a.toggle()):(a.setSearch(""),a.setCurrentRootAction(p.id)),(y=(h=c.callbacks)===null||h===void 0?void 0:h.onSelectAction)===null||y===void 0||y.call(h,p))},[a,c]),m=(0,GY.usePointerMovedSinceMount)();return ei.createElement("div",{ref:n,style:{maxHeight:e.maxHeight||400,position:"relative",overflow:"auto"}},ei.createElement("div",{role:"listbox",id:bO.KBAR_LISTBOX,style:{height:o.totalSize+"px",width:"100%"}},o.virtualItems.map(function(p){var h=r.current[p.index],y=typeof h!="string"&&{onPointerMove:function(){return m&&u!==p.index&&a.setActiveIndex(p.index)},onPointerDown:function(){return a.setActiveIndex(p.index)},onClick:function(){return f(h)}},b=p.index===u;return ei.createElement("div",yw({ref:b?t:null,id:(0,bO.getListboxItemId)(p.index),role:"option","aria-selected":b,key:p.index,style:{position:"absolute",top:0,left:0,width:"100%",transform:"translateY("+p.start+"px)"}},y),ei.cloneElement(e.onRender({item:h,active:b}),{ref:p.measureRef}))})))};ay.KBarResults=qY;var ly={},KY=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),QY=we&&we.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),YY=we&&we.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&KY(t,e,n);return QY(t,e),t};Object.defineProperty(ly,"__esModule",{value:!0});ly.useRegisterActions=void 0;var xO=YY(v),XY=is();function ZY(e,t){t===void 0&&(t=[]);var n=(0,XY.useKBar)().query,r=xO.useMemo(function(){return e},t);xO.useEffect(function(){if(r.length){var o=n.registerActions(r);return function(){o()}}},[n,r])}ly.useRegisterActions=ZY;var sy={},Mf=we&&we.__assign||function(){return Mf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Mf.apply(this,arguments)},JY=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),eX=we&&we.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),tX=we&&we.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&JY(t,e,n);return eX(t,e),t};Object.defineProperty(sy,"__esModule",{value:!0});sy.KBarAnimator=void 0;var da=tX(v),ku=vu,nX=is(),rX=Pt,wO=[{opacity:0,transform:"scale(.99)"},{opacity:1,transform:"scale(1.01)"},{opacity:1,transform:"scale(1)"}],oX=[{transform:"scale(1)"},{transform:"scale(.98)"},{transform:"scale(1)"}],iX=function(e){var t,n,r=e.children,o=e.style,i=e.className,a=e.disableCloseOnOuterClick,l=(0,nX.useKBar)(function(g){return{visualState:g.visualState,currentRootActionId:g.currentRootActionId}}),s=l.visualState,u=l.currentRootActionId,c=l.query,d=l.options,f=da.useRef(null),m=da.useRef(null),p=((t=d==null?void 0:d.animations)===null||t===void 0?void 0:t.enterMs)||0,h=((n=d==null?void 0:d.animations)===null||n===void 0?void 0:n.exitMs)||0;da.useEffect(function(){if(s!==ku.VisualState.showing){var g=s===ku.VisualState.animatingIn?p:h,x=f.current;x==null||x.animate(wO,{duration:g,easing:s===ku.VisualState.animatingOut?"ease-in":"ease-out",direction:s===ku.VisualState.animatingOut?"reverse":"normal",fill:"forwards"})}},[d,s,p,h]);var y=da.useRef();da.useEffect(function(){if(s===ku.VisualState.showing){var g=f.current,x=m.current;if(!g||!x)return;var w=new ResizeObserver(function(P){for(var C=0,E=P;C<E.length;C++){var S=E[C],R=S.contentRect;y.current||(y.current=R.height),g.animate([{height:y.current+"px"},{height:R.height+"px"}],{duration:p/2,easing:"ease-out",fill:"forwards"}),y.current=R.height}});return w.observe(x),function(){w.unobserve(x)}}},[s,d,p,h]);var b=da.useRef(!0);return da.useEffect(function(){if(b.current){b.current=!1;return}var g=f.current;g&&g.animate(oX,{duration:p,easing:"ease-out"})},[u,p]),(0,rX.useOuterClick)(f,function(){var g,x;a||(c.setVisualState(ku.VisualState.animatingOut),(x=(g=d.callbacks)===null||g===void 0?void 0:g.onClose)===null||x===void 0||x.call(g))}),da.createElement("div",{ref:f,style:Mf(Mf(Mf({},wO[0]),o),{pointerEvents:"auto"}),className:i},da.createElement("div",{ref:m},r))};sy.KBarAnimator=iX;var gD={};(function(e){var t=we&&we.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=we&&we.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Up,e),n(Vp,e)})(gD);(function(e){var t=we&&we.__createBinding||(Object.create?function(o,i,a,l){l===void 0&&(l=a),Object.defineProperty(o,l,{enumerable:!0,get:function(){return i[a]}})}:function(o,i,a,l){l===void 0&&(l=a),o[l]=i[a]}),n=we&&we.__exportStar||function(o,i){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,o,a)};Object.defineProperty(e,"__esModule",{value:!0}),e.Priority=e.createAction=void 0;var r=Pt;Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return r.createAction}}),Object.defineProperty(e,"Priority",{enumerable:!0,get:function(){return r.Priority}}),n(YL,e),n(ry,e),n(iy,e),n(WS,e),n(ay,e),n(is(),e),n(ly,e),n(JL(),e),n(sy,e),n(vu,e),n(gD,e)})(Xn);var aX=Object.defineProperty,ka=(e,t)=>aX(e,"name",{value:t,configurable:!0}),$u=ka(e=>e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()),"capitalize"),lX=ka(()=>{let e=Qe(),{resource:t,resources:n,id:r,action:o}=Je(),i=st(),a=Hp(),l=pr(),{mutate:s}=BL(),{push:u,list:c,create:d,show:f,edit:m}=xn(),p=ea(),h=v.useContext(Xn.KBarContext),{can:y}=Hq(),[b,g]=v.useState([]);v.useEffect(()=>{ka(async()=>await Promise.all(x().flatMap(P=>w(P))),"preaparedActions")().then(P=>g(P.flatMap(C=>C)))},[n,r,t,o]),v.useEffect(()=>{b.length===0&&h.query.setVisualState(Xn.VisualState.hidden)},[b]);let x=ka(()=>{let P=[...n],C=P==null?void 0:P.findIndex(E=>(E.identifier??(E==null?void 0:E.name))===((t==null?void 0:t.identifier)??(t==null?void 0:t.name)));if(C>0){let E=P[C];P.splice(C,1),P.splice(0,0,E)}return P},"moveActionToFirst"),w=ka(async P=>{var C,E,S,R,I,M;let{name:_,label:D,list:T,create:F,canCreate:N,canEdit:k,canShow:L,icon:j,show:B,canDelete:A,edit:H,route:q}=P,V=((C=P==null?void 0:P.meta)==null?void 0:C.label)??((E=P==null?void 0:P.options)==null?void 0:E.label)??D,G=((S=P==null?void 0:P.meta)==null?void 0:S.icon)??((R=P==null?void 0:P.options)==null?void 0:R.icon)??j,Y=((I=P==null?void 0:P.meta)==null?void 0:I.canDelete)??((M=P==null?void 0:P.options)==null?void 0:M.canDelete)??A,re=V??e(`${P.name}.${P.name}`,p(P.name,"plural")),le=[];if(T&&(t!==void 0&&(t==null?void 0:t.name)!==_||o!==void 0&&(t==null?void 0:t.name)===_)){let{can:J}=await(y==null?void 0:y({resource:_,action:"list",params:{id:r,resource:P}}))||{can:!0};J&&le.push(Xn.createAction({name:e("actions.list",$u("list")),section:re,icon:G,perform:()=>{let oe=a({resource:P,action:"list",legacy:i==="legacy"});oe&&(i==="legacy"?u(oe):l({to:oe}))}}))}if((N||F)&&F&&(o!=="create"||(t==null?void 0:t.name)!==_)){let{can:J}=await(y==null?void 0:y({resource:_,action:"create",params:{resource:P}}))||{can:!0};J&&le.push(Xn.createAction({name:e("actions.create",$u("create")),section:re,icon:G,keywords:"new",perform:()=>{let oe=a({resource:P,action:"create",legacy:i==="legacy"});oe&&(i==="legacy"?u(oe):l({to:oe}))}}))}if((t==null?void 0:t.name)===_&&r){if((L||B)&&B&&o!=="show"){let{can:J}=await(y==null?void 0:y({resource:_,action:"show",params:{id:r,resource:P}}))||{can:!0};J&&le.push(Xn.createAction({name:e("actions.show",$u("show")),section:re,icon:G,perform:()=>{let oe=a({resource:P,action:"show",legacy:i==="legacy",meta:{id:r}});oe&&(i==="legacy"?u(oe):l({to:oe}))}}))}if((k||H)&&H&&o!=="edit"){let{can:J}=await(y==null?void 0:y({resource:_,action:"edit",params:{id:r,resource:P}}))||{can:!0};J&&le.push(Xn.createAction({name:e("actions.edit",$u("edit")),section:re,icon:G,perform:()=>{let oe=a({resource:P,action:"edit",legacy:i==="legacy",meta:{id:r}});oe&&(i==="legacy"?u(oe):l({to:oe}))}}))}if(Y){let{can:J}=await(y==null?void 0:y({resource:_,action:"delete",params:{id:r,resource:P}}))||{can:!0};J&&le.push({id:"delete",name:e("actions.delete",$u("delete")),section:re,icon:G},Xn.createAction({name:e("buttons.delete",$u("delete")),section:e("buttons.confirm","Are you sure?"),parent:"delete",perform:()=>{s({resource:P.name,id:r},{onSuccess:()=>{let oe=a({resource:P,action:"list",legacy:i==="legacy"});oe&&(i==="legacy"?u(oe):l({to:oe}))}})}}),Xn.createAction({name:e("buttons.cancel","Cancel"),parent:"delete",perform:()=>null}))}}return le},"createActionWithResource");Xn.useRegisterActions(b,[b])},"useRefineKbar"),sX=ka(()=>$.createElement(Xn.KBarPortal,null,$.createElement(Xn.KBarPositioner,{style:{opacity:1,transition:"background 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0s",backdropFilter:"saturate(180%) blur(1px)",background:"rgba(0, 0, 0, 0.1)",zIndex:"9999"}},$.createElement(Xn.KBarAnimator,{style:{maxWidth:"600px",width:"100%",background:"white",color:"black",borderRadius:"8px",overflow:"hidden",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"}},$.createElement(Xn.KBarSearch,{style:{padding:"12px 16px",fontSize:"16px",width:"100%",boxSizing:"border-box",outline:"none",border:"none",background:"rgb(252 252 252)",color:"black"}}),$.createElement(cX,null)))),"CommandBar"),uX={padding:"8px 16px",fontSize:"14px",textTransform:"uppercase",fontWeight:"bold",opacity:.5},cX=ka(()=>{let{results:e,rootActionId:t}=Xn.useMatches();return $.createElement(Xn.KBarResults,{items:e,onRender:({item:n,active:r})=>typeof n=="string"?$.createElement("div",{style:uX},n):$.createElement(vD,{action:n,active:r,currentRootActionId:t})})},"RenderResults"),vD=$.forwardRef(({action:e,active:t,currentRootActionId:n},r)=>{var o;let i=$.useMemo(()=>{if(!n)return e.ancestors;let a=e.ancestors.findIndex(l=>l.id===n);return e.ancestors.slice(a+1)},[e.ancestors,n]);return $.createElement("div",{ref:r,style:{padding:"12px 16px",background:t?"rgba(0 0 0 / 0.05)":"transparent",borderLeft:`2px solid ${t?"rgb(28 28 29)":"transparent"}`,display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer"}},$.createElement("div",{style:{display:"flex",gap:"8px",alignItems:"center",fontSize:14}},e.icon&&e.icon,$.createElement("div",{style:{display:"flex",flexDirection:"column"}},$.createElement("div",null,i.length>0&&i.map(a=>$.createElement($.Fragment,{key:a.id},$.createElement("span",{style:{opacity:.5,marginRight:8}},a.name),$.createElement("span",{style:{marginRight:8}},""))),$.createElement("span",{style:{color:e.name.toLocaleUpperCase()==="DELETE"?"red":"black"}},e.name)),e.subtitle&&$.createElement("span",{style:{fontSize:12}},e.subtitle))),(o=e.shortcut)!=null&&o.length?$.createElement("div",{"aria-hidden":!0,style:{display:"grid",gridAutoFlow:"column",gap:"4px"}},e.shortcut.map(a=>$.createElement("kbd",{key:a,style:{padding:"4px 6px",background:"rgba(0 0 0 / .1)",borderRadius:"4px",fontSize:14}},a))):null)});vD.displayName="ResultItem";var dX=ka(({commandBarProps:e})=>{let t=v.useContext(yD);lX();let n={...t,...e};return $.createElement(sX,{...n})},"RefineKbar"),yD=v.createContext({}),fX=ka(({children:e,commandBarProps:t})=>$.createElement(yD.Provider,{value:t??{}},$.createElement(Xn.KBarProvider,null,e)),"RefineKbarProvider");function bD(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=bD(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function sp(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=bD(e))&&(r&&(r+=" "),r+=t);return r}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}function ce(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var xD={exports:{}},pX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mX=pX,hX=mX;function wD(){}function CD(){}CD.resetWarningCache=wD;var gX=function(){function e(r,o,i,a,l,s){if(s!==hX){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:CD,resetWarningCache:wD};return n.PropTypes=n,n};xD.exports=gX();var SD=xD.exports;const de=Xi(SD);function bw(e,t){return bw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},bw(e,t)}function ED(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bw(e,t)}const CO={disabled:!1},Qg=$.createContext(null);var vX=function(t){return t.scrollTop},df="unmounted",ws="exited",Cs="entering",Gu="entered",xw="exiting",Ya=function(e){ED(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?l?(s=ws,i.appearStatus=Cs):s=Gu:r.unmountOnExit||r.mountOnEnter?s=df:s=ws,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===df?{status:ws}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Cs&&a!==Gu&&(i=Cs):(a===Cs||a===Gu)&&(i=xw)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Cs){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Wm.findDOMNode(this);a&&vX(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ws&&this.setState({status:df})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,s=this.props.nodeRef?[l]:[Wm.findDOMNode(this),l],u=s[0],c=s[1],d=this.getTimeouts(),f=l?d.appear:d.enter;if(!o&&!a||CO.disabled){this.safeSetState({status:Gu},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Cs},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Gu},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Wm.findDOMNode(this);if(!i||CO.disabled){this.safeSetState({status:ws},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:xw},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ws},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Wm.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===df)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=ce(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $.createElement(Qg.Provider,{value:null},typeof a=="function"?a(o,l):$.cloneElement($.Children.only(a),l))},t}($.Component);Ya.contextType=Qg;Ya.propTypes={};function Iu(){}Ya.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Iu,onEntering:Iu,onEntered:Iu,onExit:Iu,onExiting:Iu,onExited:Iu};Ya.UNMOUNTED=df;Ya.EXITED=ws;Ya.ENTERING=Cs;Ya.ENTERED=Gu;Ya.EXITING=xw;const uy=Ya;function yX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GS(e,t){var n=function(i){return t&&v.isValidElement(i)?t(i):i},r=Object.create(null);return e&&v.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function bX(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var s in t){if(r[s])for(a=0;a<r[s].length;a++){var u=r[s][a];l[r[s][a]]=n(u)}l[s]=n(s)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function Rs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function xX(e,t){return GS(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Rs(n,"appear",e),enter:Rs(n,"enter",e),exit:Rs(n,"exit",e)})})}function wX(e,t,n){var r=GS(e.children),o=bX(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(v.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=v.isValidElement(u)&&!u.props.in;s&&(!l||c)?o[i]=v.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Rs(a,"exit",e),enter:Rs(a,"enter",e)}):!s&&l&&!c?o[i]=v.cloneElement(a,{in:!1}):s&&l&&v.isValidElement(u)&&(o[i]=v.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Rs(a,"exit",e),enter:Rs(a,"enter",e)}))}}),o}var CX=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SX={component:"div",childFactory:function(t){return t}},qS=function(e){ED(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(yX(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,l=i.handleExited,s=i.firstRender;return{children:s?xX(o,l):wX(o,a,l),firstRender:!1}},n.handleExited=function(o,i){var a=GS(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var s=O({},l.children);return delete s[o.key],{children:s}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=ce(o,["component","childFactory"]),s=this.state.contextValue,u=CX(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?$.createElement(Qg.Provider,{value:s},u):$.createElement(Qg.Provider,{value:s},$.createElement(i,l,u))},t}($.Component);qS.propTypes={};qS.defaultProps=SX;const EX=qS;function PX(e,t){return()=>null}function fd(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function up(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function xt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{up(n,t)})},e)}function Ba(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const kX=Object.freeze(Object.defineProperty({__proto__:null,default:Ba},Symbol.toStringTag,{value:"Module"}));function PD(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $X=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,IX=PD(function(e){return $X.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function OX(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function MX(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var RX=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(MX(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=OX(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ar="-ms-",Yg="-moz-",$t="-webkit-",kD="comm",KS="rule",QS="decl",TX="@import",$D="@keyframes",_X="@layer",FX=Math.abs,cy=String.fromCharCode,AX=Object.assign;function LX(e,t){return Zn(e,0)^45?(((t<<2^Zn(e,0))<<2^Zn(e,1))<<2^Zn(e,2))<<2^Zn(e,3):0}function ID(e){return e.trim()}function DX(e,t){return(e=t.exec(e))?e[0]:e}function It(e,t,n){return e.replace(t,n)}function ww(e,t){return e.indexOf(t)}function Zn(e,t){return e.charCodeAt(t)|0}function cp(e,t,n){return e.slice(t,n)}function Mi(e){return e.length}function YS(e){return e.length}function th(e,t){return t.push(e),e}function NX(e,t){return e.map(t).join("")}var dy=1,Uc=1,OD=0,jr=0,kn=0,pd="";function fy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:dy,column:Uc,length:a,return:""}}function Hd(e,t){return AX(fy("",null,null,"",null,null,0),e,{length:-e.length},t)}function zX(){return kn}function jX(){return kn=jr>0?Zn(pd,--jr):0,Uc--,kn===10&&(Uc=1,dy--),kn}function oo(){return kn=jr<OD?Zn(pd,jr++):0,Uc++,kn===10&&(Uc=1,dy++),kn}function zi(){return Zn(pd,jr)}function qh(){return jr}function Wp(e,t){return cp(pd,e,t)}function dp(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function MD(e){return dy=Uc=1,OD=Mi(pd=e),jr=0,[]}function RD(e){return pd="",e}function Kh(e){return ID(Wp(jr-1,Cw(e===91?e+2:e===40?e+1:e)))}function BX(e){for(;(kn=zi())&&kn<33;)oo();return dp(e)>2||dp(kn)>3?"":" "}function HX(e,t){for(;--t&&oo()&&!(kn<48||kn>102||kn>57&&kn<65||kn>70&&kn<97););return Wp(e,qh()+(t<6&&zi()==32&&oo()==32))}function Cw(e){for(;oo();)switch(kn){case e:return jr;case 34:case 39:e!==34&&e!==39&&Cw(kn);break;case 40:e===41&&Cw(e);break;case 92:oo();break}return jr}function UX(e,t){for(;oo()&&e+kn!==47+10;)if(e+kn===42+42&&zi()===47)break;return"/*"+Wp(t,jr-1)+"*"+cy(e===47?e:oo())}function VX(e){for(;!dp(zi());)oo();return Wp(e,jr)}function WX(e){return RD(Qh("",null,null,null,[""],e=MD(e),0,[0],e))}function Qh(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,f=0,m=0,p=0,h=1,y=1,b=1,g=0,x="",w=o,P=i,C=r,E=x;y;)switch(p=g,g=oo()){case 40:if(p!=108&&Zn(E,d-1)==58){ww(E+=It(Kh(g),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:E+=Kh(g);break;case 9:case 10:case 13:case 32:E+=BX(p);break;case 92:E+=HX(qh()-1,7);continue;case 47:switch(zi()){case 42:case 47:th(GX(UX(oo(),qh()),t,n),s);break;default:E+="/"}break;case 123*h:l[u++]=Mi(E)*b;case 125*h:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+c:b==-1&&(E=It(E,/\f/g,"")),m>0&&Mi(E)-d&&th(m>32?EO(E+";",r,n,d-1):EO(It(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(th(C=SO(E,t,n,u,c,o,l,x,w=[],P=[],d),i),g===123)if(c===0)Qh(E,t,C,C,w,i,d,l,P);else switch(f===99&&Zn(E,3)===110?100:f){case 100:case 108:case 109:case 115:Qh(e,C,C,r&&th(SO(e,C,C,0,0,o,l,x,o,w=[],d),P),o,P,d,l,r?w:P);break;default:Qh(E,C,C,C,[""],P,0,l,P)}}u=c=m=0,h=b=1,x=E="",d=a;break;case 58:d=1+Mi(E),m=p;default:if(h<1){if(g==123)--h;else if(g==125&&h++==0&&jX()==125)continue}switch(E+=cy(g),g*h){case 38:b=c>0?1:(E+="\f",-1);break;case 44:l[u++]=(Mi(E)-1)*b,b=1;break;case 64:zi()===45&&(E+=Kh(oo())),f=zi(),c=d=Mi(x=E+=VX(qh())),g++;break;case 45:p===45&&Mi(E)==2&&(h=0)}}return i}function SO(e,t,n,r,o,i,a,l,s,u,c){for(var d=o-1,f=o===0?i:[""],m=YS(f),p=0,h=0,y=0;p<r;++p)for(var b=0,g=cp(e,d+1,d=FX(h=a[p])),x=e;b<m;++b)(x=ID(h>0?f[b]+" "+g:It(g,/&\f/g,f[b])))&&(s[y++]=x);return fy(e,t,n,o===0?KS:l,s,u,c)}function GX(e,t,n){return fy(e,t,n,kD,cy(zX()),cp(e,2,-2),0)}function EO(e,t,n,r){return fy(e,t,n,QS,cp(e,0,r),cp(e,r+1,-1),r)}function wc(e,t){for(var n="",r=YS(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function qX(e,t,n,r){switch(e.type){case _X:if(e.children.length)break;case TX:case QS:return e.return=e.return||e.value;case kD:return"";case $D:return e.return=e.value+"{"+wc(e.children,r)+"}";case KS:e.value=e.props.join(",")}return Mi(n=wc(e.children,r))?e.return=e.value+"{"+n+"}":""}function KX(e){var t=YS(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function QX(e){return function(t){t.root||(t=t.return)&&e(t)}}var YX=function(t,n,r){for(var o=0,i=0;o=i,i=zi(),o===38&&i===12&&(n[r]=1),!dp(i);)oo();return Wp(t,jr)},XX=function(t,n){var r=-1,o=44;do switch(dp(o)){case 0:o===38&&zi()===12&&(n[r]=1),t[r]+=YX(jr-1,n,r);break;case 2:t[r]+=Kh(o);break;case 4:if(o===44){t[++r]=zi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=cy(o)}while(o=oo());return t},ZX=function(t,n){return RD(XX(MD(t),n))},PO=new WeakMap,JX=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!PO.get(r))&&!o){PO.set(t,!0);for(var i=[],a=ZX(n,i),l=r.props,s=0,u=0;s<a.length;s++)for(var c=0;c<l.length;c++,u++)t.props[u]=i[s]?a[s].replace(/&\f/g,l[c]):l[c]+" "+a[s]}}},eZ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function TD(e,t){switch(LX(e,t)){case 5103:return $t+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $t+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $t+e+Yg+e+ar+e+e;case 6828:case 4268:return $t+e+ar+e+e;case 6165:return $t+e+ar+"flex-"+e+e;case 5187:return $t+e+It(e,/(\w+).+(:[^]+)/,$t+"box-$1$2"+ar+"flex-$1$2")+e;case 5443:return $t+e+ar+"flex-item-"+It(e,/flex-|-self/,"")+e;case 4675:return $t+e+ar+"flex-line-pack"+It(e,/align-content|flex-|-self/,"")+e;case 5548:return $t+e+ar+It(e,"shrink","negative")+e;case 5292:return $t+e+ar+It(e,"basis","preferred-size")+e;case 6060:return $t+"box-"+It(e,"-grow","")+$t+e+ar+It(e,"grow","positive")+e;case 4554:return $t+It(e,/([^-])(transform)/g,"$1"+$t+"$2")+e;case 6187:return It(It(It(e,/(zoom-|grab)/,$t+"$1"),/(image-set)/,$t+"$1"),e,"")+e;case 5495:case 3959:return It(e,/(image-set\([^]*)/,$t+"$1$`$1");case 4968:return It(It(e,/(.+:)(flex-)?(.*)/,$t+"box-pack:$3"+ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$t+e+e;case 4095:case 3583:case 4068:case 2532:return It(e,/(.+)-inline(.+)/,$t+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mi(e)-1-t>6)switch(Zn(e,t+1)){case 109:if(Zn(e,t+4)!==45)break;case 102:return It(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Yg+(Zn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ww(e,"stretch")?TD(It(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zn(e,t+1)!==115)break;case 6444:switch(Zn(e,Mi(e)-3-(~ww(e,"!important")&&10))){case 107:return It(e,":",":"+$t)+e;case 101:return It(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(Zn(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+ar+"$2box$3")+e}break;case 5936:switch(Zn(e,t+11)){case 114:return $t+e+ar+It(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+ar+It(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+ar+It(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+ar+e+e}return e}var tZ=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case QS:t.return=TD(t.value,t.length);break;case $D:return wc([Hd(t,{value:It(t.value,"@","@"+$t)})],o);case KS:if(t.length)return NX(t.props,function(i){switch(DX(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wc([Hd(t,{props:[It(i,/:(read-\w+)/,":"+Yg+"$1")]})],o);case"::placeholder":return wc([Hd(t,{props:[It(i,/:(plac\w+)/,":"+$t+"input-$1")]}),Hd(t,{props:[It(i,/:(plac\w+)/,":"+Yg+"$1")]}),Hd(t,{props:[It(i,/:(plac\w+)/,ar+"input-$1")]})],o)}return""})}},nZ=[tZ],_D=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||nZ,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)i[y[b]]=!0;l.push(h)});var s,u=[JX,eZ];{var c,d=[qX,QX(function(h){c.insert(h)})],f=KX(u.concat(o,d)),m=function(y){return wc(WX(y),f)};s=function(y,b,g,x){c=g,m(y?y+"{"+b.styles+"}":b.styles),x&&(p.inserted[b.name]=!0)}}var p={key:n,sheet:new RX({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(l),p},FD={exports:{}},Ft={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var qn=typeof Symbol=="function"&&Symbol.for,XS=qn?Symbol.for("react.element"):60103,ZS=qn?Symbol.for("react.portal"):60106,py=qn?Symbol.for("react.fragment"):60107,my=qn?Symbol.for("react.strict_mode"):60108,hy=qn?Symbol.for("react.profiler"):60114,gy=qn?Symbol.for("react.provider"):60109,vy=qn?Symbol.for("react.context"):60110,JS=qn?Symbol.for("react.async_mode"):60111,yy=qn?Symbol.for("react.concurrent_mode"):60111,by=qn?Symbol.for("react.forward_ref"):60112,xy=qn?Symbol.for("react.suspense"):60113,rZ=qn?Symbol.for("react.suspense_list"):60120,wy=qn?Symbol.for("react.memo"):60115,Cy=qn?Symbol.for("react.lazy"):60116,oZ=qn?Symbol.for("react.block"):60121,iZ=qn?Symbol.for("react.fundamental"):60117,aZ=qn?Symbol.for("react.responder"):60118,lZ=qn?Symbol.for("react.scope"):60119;function co(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case XS:switch(e=e.type,e){case JS:case yy:case py:case hy:case my:case xy:return e;default:switch(e=e&&e.$$typeof,e){case vy:case by:case Cy:case wy:case gy:return e;default:return t}}case ZS:return t}}}function AD(e){return co(e)===yy}Ft.AsyncMode=JS;Ft.ConcurrentMode=yy;Ft.ContextConsumer=vy;Ft.ContextProvider=gy;Ft.Element=XS;Ft.ForwardRef=by;Ft.Fragment=py;Ft.Lazy=Cy;Ft.Memo=wy;Ft.Portal=ZS;Ft.Profiler=hy;Ft.StrictMode=my;Ft.Suspense=xy;Ft.isAsyncMode=function(e){return AD(e)||co(e)===JS};Ft.isConcurrentMode=AD;Ft.isContextConsumer=function(e){return co(e)===vy};Ft.isContextProvider=function(e){return co(e)===gy};Ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===XS};Ft.isForwardRef=function(e){return co(e)===by};Ft.isFragment=function(e){return co(e)===py};Ft.isLazy=function(e){return co(e)===Cy};Ft.isMemo=function(e){return co(e)===wy};Ft.isPortal=function(e){return co(e)===ZS};Ft.isProfiler=function(e){return co(e)===hy};Ft.isStrictMode=function(e){return co(e)===my};Ft.isSuspense=function(e){return co(e)===xy};Ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===py||e===yy||e===hy||e===my||e===xy||e===rZ||typeof e=="object"&&e!==null&&(e.$$typeof===Cy||e.$$typeof===wy||e.$$typeof===gy||e.$$typeof===vy||e.$$typeof===by||e.$$typeof===iZ||e.$$typeof===aZ||e.$$typeof===lZ||e.$$typeof===oZ)};Ft.typeOf=co;FD.exports=Ft;var sZ=FD.exports,LD=sZ,uZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},DD={};DD[LD.ForwardRef]=uZ;DD[LD.Memo]=cZ;var dZ=!0;function fZ(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var ND=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||dZ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},zD=function(t,n,r){ND(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function pZ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 mZ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hZ=/[A-Z]|^ms/g,gZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jD=function(t){return t.charCodeAt(1)===45},kO=function(t){return t!=null&&typeof t!="boolean"},Vb=PD(function(e){return jD(e)?e:e.replace(hZ,"-$&").toLowerCase()}),$O=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gZ,function(r,o,i){return Ri={name:o,styles:i,next:Ri},o})}return mZ[t]!==1&&!jD(t)&&typeof n=="number"&&n!==0?n+"px":n};function fp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ri={name:n.name,styles:n.styles,next:Ri},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ri={name:r.name,styles:r.styles,next:Ri},r=r.next;var o=n.styles+";";return o}return vZ(e,t,n)}case"function":{if(e!==void 0){var i=Ri,a=n(e);return Ri=i,fp(e,t,a)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function vZ(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=fp(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":kO(a)&&(r+=Vb(i)+":"+$O(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)kO(a[l])&&(r+=Vb(i)+":"+$O(i,a[l])+";");else{var s=fp(e,t,a);switch(i){case"animation":case"animationName":{r+=Vb(i)+":"+s+";";break}default:r+=i+"{"+s+"}"}}}return r}var IO=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ri,eE=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Ri=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=fp(r,n,a)):i+=a[0];for(var l=1;l<t.length;l++)i+=fp(r,n,t[l]),o&&(i+=a[l]);IO.lastIndex=0;for(var s="",u;(u=IO.exec(i))!==null;)s+="-"+u[1];var c=pZ(i)+s;return{name:c,styles:i,next:Ri}},yZ=function(t){return t()},BD=cg["useInsertionEffect"]?cg["useInsertionEffect"]:!1,bZ=BD||yZ,OO=BD||v.useLayoutEffect,HD=v.createContext(typeof HTMLElement<"u"?_D({key:"css"}):null),xZ=HD.Provider,UD=function(t){return v.forwardRef(function(n,r){var o=v.useContext(HD);return t(n,o,r)})},Gp=v.createContext({}),wZ=UD(function(e,t){var n=e.styles,r=eE([n],void 0,v.useContext(Gp)),o=v.useRef();return OO(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",i),a.hydrate([s])),o.current=[a,l],function(){a.flush()}},[t]),OO(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&zD(t,r.next,!0),a.tags.length){var s=a.tags[a.tags.length-1].nextElementSibling;a.before=s,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Vc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return eE(t)}var ls=function(){var t=Vc.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},CZ=IX,SZ=function(t){return t!=="theme"},MO=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?CZ:SZ},RO=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},EZ=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ND(n,r,o),bZ(function(){return zD(n,r,o)}),null},PZ=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=RO(t,n,r),s=l||MO(o),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,m=1;m<f;m++)d.push(c[m],c[0][m])}var p=UD(function(h,y,b){var g=u&&h.as||o,x="",w=[],P=h;if(h.theme==null){P={};for(var C in h)P[C]=h[C];P.theme=v.useContext(Gp)}typeof h.className=="string"?x=fZ(y.registered,w,h.className):h.className!=null&&(x=h.className+" ");var E=eE(d.concat(w),y.registered,P);x+=y.key+"-"+E.name,a!==void 0&&(x+=" "+a);var S=u&&l===void 0?MO(g):s,R={};for(var I in h)u&&I==="as"||S(I)&&(R[I]=h[I]);return R.className=x,R.ref=b,v.createElement(v.Fragment,null,v.createElement(EZ,{cache:y,serialized:E,isStringTag:typeof g=="string"}),v.createElement(g,R))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=d,p.__emotion_forwardProp=l,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(h,y){return e(h,O({},n,y,{shouldForwardProp:RO(p,y,!0)})).apply(void 0,d)},p}},kZ=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Sw=PZ.bind();kZ.forEach(function(e){Sw[e]=Sw(e)});let Ew;typeof document=="object"&&(Ew=_D({key:"css",prepend:!0}));function $Z(e){const{injectFirst:t,children:n}=e;return t&&Ew?z.jsx(xZ,{value:Ew,children:n}):n}function IZ(e){return e==null||Object.keys(e).length===0}function VD(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(IZ(o)?n:o):t;return z.jsx(wZ,{styles:r})}/**
* @mui/styled-engine v5.15.11
*
* @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 tE(e,t){return Sw(e,t)}const WD=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},OZ=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:VD,StyledEngineProvider:$Z,ThemeContext:Gp,css:Vc,default:tE,internal_processStyles:WD,keyframes:ls},Symbol.toStringTag,{value:"Module"}));function Sa(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 GD(e){if(!Sa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=GD(e[n])}),t}function Er(e,t,n={clone:!0}){const r=n.clone?O({},e):e;return Sa(e)&&Sa(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Sa(t[o])&&o in e&&Sa(e[o])?r[o]=Er(e[o],t[o],n):n.clone?r[o]=Sa(t[o])?GD(t[o]):t[o]:r[o]=t[o])}),r}const MZ=Object.freeze(Object.defineProperty({__proto__:null,default:Er,isPlainObject:Sa},Symbol.toStringTag,{value:"Module"})),RZ=["values","unit","step"],TZ=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>O({},n,{[r.key]:r.val}),{})};function qD(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ce(e,RZ),i=TZ(t),a=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const p=a.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:m)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):l(f)}function d(f){const m=a.indexOf(f);return m===0?l(a[1]):m===a.length-1?s(a[m]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return O({keys:a,values:i,up:l,down:s,between:u,only:c,not:d,unit:n},o)}const _Z={borderRadius:4},FZ=_Z;function Rf(e,t){return t?Er(e,t,{clone:!1}):e}const nE={xs:0,sm:600,md:900,lg:1200,xl:1536},TO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nE[e]}px)`};function Br(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||TO;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||TO;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||nE).indexOf(l)!==-1){const s=i.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function KD(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function QD(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function AZ(e,...t){const n=KD(e),r=[n,...t].reduce((o,i)=>Er(o,i),{});return QD(Object.keys(n),r)}function LZ(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function zs({values:e,breakpoints:t,base:n}){const r=n||LZ(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function pe(e){if(typeof e!="string")throw new Error(Ba(7));return e.charAt(0).toUpperCase()+e.slice(1)}const DZ=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));function Wc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Xg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wc(e,n)||r,t&&(o=t(o,r,e)),o}function wn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,u=Wc(s,r)||{};return Br(a,l,d=>{let f=Xg(u,o,d);return d===f&&typeof d=="string"&&(f=Xg(u,o,`${t}${d==="default"?"":pe(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function NZ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zZ={m:"margin",p:"padding"},jZ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_O={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},BZ=NZ(e=>{if(e.length>2)if(_O[e])e=_O[e];else return[e];const[t,n]=e.split(""),r=zZ[t],o=jZ[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),rE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rE,...oE];function qp(e,t,n,r){var o;const i=(o=Wc(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function iE(e){return qp(e,"spacing",8)}function nu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function HZ(e,t){return n=>e.reduce((r,o)=>(r[o]=nu(t,n),r),{})}function UZ(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=BZ(n),i=HZ(o,r),a=e[n];return Br(e,a,i)}function YD(e,t){const n=iE(e.theme);return Object.keys(e).map(r=>UZ(e,t,r,n)).reduce(Rf,{})}function cn(e){return YD(e,rE)}cn.propTypes={};cn.filterProps=rE;function dn(e){return YD(e,oE)}dn.propTypes={};dn.filterProps=oE;function VZ(e=8){if(e.mui)return e;const t=iE({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Sy(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Rf(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Io(e){return typeof e!="number"?e:`${e}px solid`}function Go(e,t){return wn({prop:e,themeKey:"borders",transform:t})}const WZ=Go("border",Io),GZ=Go("borderTop",Io),qZ=Go("borderRight",Io),KZ=Go("borderBottom",Io),QZ=Go("borderLeft",Io),YZ=Go("borderColor"),XZ=Go("borderTopColor"),ZZ=Go("borderRightColor"),JZ=Go("borderBottomColor"),eJ=Go("borderLeftColor"),tJ=Go("outline",Io),nJ=Go("outlineColor"),Ey=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=qp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:nu(t,r)});return Br(e,e.borderRadius,n)}return null};Ey.propTypes={};Ey.filterProps=["borderRadius"];Sy(WZ,GZ,qZ,KZ,QZ,YZ,XZ,ZZ,JZ,eJ,Ey,tJ,nJ);const Py=e=>{if(e.gap!==void 0&&e.gap!==null){const t=qp(e.theme,"spacing",8),n=r=>({gap:nu(t,r)});return Br(e,e.gap,n)}return null};Py.propTypes={};Py.filterProps=["gap"];const ky=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=qp(e.theme,"spacing",8),n=r=>({columnGap:nu(t,r)});return Br(e,e.columnGap,n)}return null};ky.propTypes={};ky.filterProps=["columnGap"];const $y=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=qp(e.theme,"spacing",8),n=r=>({rowGap:nu(t,r)});return Br(e,e.rowGap,n)}return null};$y.propTypes={};$y.filterProps=["rowGap"];const rJ=wn({prop:"gridColumn"}),oJ=wn({prop:"gridRow"}),iJ=wn({prop:"gridAutoFlow"}),aJ=wn({prop:"gridAutoColumns"}),lJ=wn({prop:"gridAutoRows"}),sJ=wn({prop:"gridTemplateColumns"}),uJ=wn({prop:"gridTemplateRows"}),cJ=wn({prop:"gridTemplateAreas"}),dJ=wn({prop:"gridArea"});Sy(Py,ky,$y,rJ,oJ,iJ,aJ,lJ,sJ,uJ,cJ,dJ);function Cc(e,t){return t==="grey"?t:e}const fJ=wn({prop:"color",themeKey:"palette",transform:Cc}),pJ=wn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cc}),mJ=wn({prop:"backgroundColor",themeKey:"palette",transform:Cc});Sy(fJ,pJ,mJ);function to(e){return e<=1&&e!==0?`${e*100}%`:e}const hJ=wn({prop:"width",transform:to}),aE=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||nE[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:to(n)}};return Br(e,e.maxWidth,t)}return null};aE.filterProps=["maxWidth"];const gJ=wn({prop:"minWidth",transform:to}),vJ=wn({prop:"height",transform:to}),yJ=wn({prop:"maxHeight",transform:to}),bJ=wn({prop:"minHeight",transform:to});wn({prop:"size",cssProperty:"width",transform:to});wn({prop:"size",cssProperty:"height",transform:to});const xJ=wn({prop:"boxSizing"});Sy(hJ,aE,gJ,vJ,yJ,bJ,xJ);const wJ={border:{themeKey:"borders",transform:Io},borderTop:{themeKey:"borders",transform:Io},borderRight:{themeKey:"borders",transform:Io},borderBottom:{themeKey:"borders",transform:Io},borderLeft:{themeKey:"borders",transform:Io},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Io},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ey},color:{themeKey:"palette",transform:Cc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cc},backgroundColor:{themeKey:"palette",transform:Cc},p:{style:dn},pt:{style:dn},pr:{style:dn},pb:{style:dn},pl:{style:dn},px:{style:dn},py:{style:dn},padding:{style:dn},paddingTop:{style:dn},paddingRight:{style:dn},paddingBottom:{style:dn},paddingLeft:{style:dn},paddingX:{style:dn},paddingY:{style:dn},paddingInline:{style:dn},paddingInlineStart:{style:dn},paddingInlineEnd:{style:dn},paddingBlock:{style:dn},paddingBlockStart:{style:dn},paddingBlockEnd:{style:dn},m:{style:cn},mt:{style:cn},mr:{style:cn},mb:{style:cn},ml:{style:cn},mx:{style:cn},my:{style:cn},margin:{style:cn},marginTop:{style:cn},marginRight:{style:cn},marginBottom:{style:cn},marginLeft:{style:cn},marginX:{style:cn},marginY:{style:cn},marginInline:{style:cn},marginInlineStart:{style:cn},marginInlineEnd:{style:cn},marginBlock:{style:cn},marginBlockStart:{style:cn},marginBlockEnd:{style:cn},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:Py},rowGap:{style:$y},columnGap:{style:ky},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:to},maxWidth:{style:aE},minWidth:{transform:to},height:{transform:to},maxHeight:{transform:to},minHeight:{transform:to},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Kp=wJ;function CJ(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function SJ(e,t){return typeof e=="function"?e(t):e}function XD(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wc(o,u)||{};return d?d(a):Br(a,r,p=>{let h=Xg(f,c,p);return p===h&&typeof p=="string"&&(h=Xg(f,c,`${n}${p==="default"?"":pe(p)}`,p)),s===!1?h:{[s]:h}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Kp;function l(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=KD(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(m=>{const p=SJ(u[m],i);if(p!=null)if(typeof p=="object")if(a[m])f=Rf(f,e(m,p,i,a));else{const h=Br({theme:i},p,y=>({[m]:y}));CJ(h,p)?f[m]=t({sx:p,theme:i}):f=Rf(f,h)}else f=Rf(f,e(m,p,i,a))}),QD(d,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const ZD=XD();ZD.filterProps=["sx"];const Qp=ZD;function JD(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const EJ=["breakpoints","palette","spacing","shape"];function md(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ce(e,EJ),l=qD(n),s=VZ(o);let u=Er({breakpoints:l,direction:"ltr",components:{},palette:O({mode:"light"},r),spacing:s,shape:O({},FZ,i)},a);return u.applyStyles=JD,u=t.reduce((c,d)=>Er(c,d),u),u.unstable_sxConfig=O({},Kp,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return Qp({sx:d,theme:this})},u}const PJ=Object.freeze(Object.defineProperty({__proto__:null,default:md,private_createBreakpoints:qD,unstable_applyStyles:JD},Symbol.toStringTag,{value:"Module"}));function kJ(e){return Object.keys(e).length===0}function eN(e=null){const t=v.useContext(Gp);return!t||kJ(t)?e:t}const $J=md();function Iy(e=$J){return eN(e)}function IJ({styles:e,themeId:t,defaultTheme:n={}}){const r=Iy(n),o=typeof e=="function"?e(t&&r[t]||r):e;return z.jsx(VD,{styles:o})}const OJ=["sx"],MJ=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Kp;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Yp(e){const{sx:t}=e,n=ce(e,OJ),{systemProps:r,otherProps:o}=MJ(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Sa(l)?O({},r,l):r}:i=O({},r,t),O({},o,{sx:i})}const RJ=Object.freeze(Object.defineProperty({__proto__:null,default:Qp,extendSxProp:Yp,unstable_createStyleFunctionSx:XD,unstable_defaultSxConfig:Kp},Symbol.toStringTag,{value:"Module"})),FO=e=>e,TJ=()=>{let e=FO;return{configure(t){e=t},generate(t){return e(t)},reset(){e=FO}}},_J=TJ(),lE=_J;function tN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=tN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ve(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=tN(e))&&(r&&(r+=" "),r+=t);return r}const FJ=["className","component"];function AJ(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=tE("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Qp);return v.forwardRef(function(s,u){const c=Iy(n),d=Yp(s),{className:f,component:m="div"}=d,p=ce(d,FJ);return z.jsx(i,O({as:m,ref:u,className:ve(f,o?o(r):r),theme:t&&c[t]||c},p))})}const nN={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function We(e,t,n="Mui"){const r=nN[t];return r?`${n}-${r}`:`${lE.generate(e)}-${t}`}function Ge(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=We(e,o,n)}),r}var rN={exports:{}},At={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sE=Symbol.for("react.element"),uE=Symbol.for("react.portal"),Oy=Symbol.for("react.fragment"),My=Symbol.for("react.strict_mode"),Ry=Symbol.for("react.profiler"),Ty=Symbol.for("react.provider"),_y=Symbol.for("react.context"),LJ=Symbol.for("react.server_context"),Fy=Symbol.for("react.forward_ref"),Ay=Symbol.for("react.suspense"),Ly=Symbol.for("react.suspense_list"),Dy=Symbol.for("react.memo"),Ny=Symbol.for("react.lazy"),DJ=Symbol.for("react.offscreen"),oN;oN=Symbol.for("react.module.reference");function qo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sE:switch(e=e.type,e){case Oy:case Ry:case My:case Ay:case Ly:return e;default:switch(e=e&&e.$$typeof,e){case LJ:case _y:case Fy:case Ny:case Dy:case Ty:return e;default:return t}}case uE:return t}}}At.ContextConsumer=_y;At.ContextProvider=Ty;At.Element=sE;At.ForwardRef=Fy;At.Fragment=Oy;At.Lazy=Ny;At.Memo=Dy;At.Portal=uE;At.Profiler=Ry;At.StrictMode=My;At.Suspense=Ay;At.SuspenseList=Ly;At.isAsyncMode=function(){return!1};At.isConcurrentMode=function(){return!1};At.isContextConsumer=function(e){return qo(e)===_y};At.isContextProvider=function(e){return qo(e)===Ty};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sE};At.isForwardRef=function(e){return qo(e)===Fy};At.isFragment=function(e){return qo(e)===Oy};At.isLazy=function(e){return qo(e)===Ny};At.isMemo=function(e){return qo(e)===Dy};At.isPortal=function(e){return qo(e)===uE};At.isProfiler=function(e){return qo(e)===Ry};At.isStrictMode=function(e){return qo(e)===My};At.isSuspense=function(e){return qo(e)===Ay};At.isSuspenseList=function(e){return qo(e)===Ly};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Oy||e===Ry||e===My||e===Ay||e===Ly||e===DJ||typeof e=="object"&&e!==null&&(e.$$typeof===Ny||e.$$typeof===Dy||e.$$typeof===Ty||e.$$typeof===_y||e.$$typeof===Fy||e.$$typeof===oN||e.getModuleId!==void 0)};At.typeOf=qo;rN.exports=At;var AO=rN.exports;const NJ=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function iN(e){const t=`${e}`.match(NJ);return t&&t[1]||""}function aN(e,t=""){return e.displayName||e.name||iN(e)||t}function LO(e,t,n){const r=aN(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function zJ(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return aN(e,"Component");if(typeof e=="object")switch(e.$$typeof){case AO.ForwardRef:return LO(e,e.render,"ForwardRef");case AO.Memo:return LO(e,e.type,"memo");default:return}}}const jJ=Object.freeze(Object.defineProperty({__proto__:null,default:zJ,getFunctionName:iN},Symbol.toStringTag,{value:"Module"})),BJ=["ownerState"],HJ=["variants"],UJ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function VJ(e){return Object.keys(e).length===0}function WJ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Wb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const GJ=md(),qJ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nh({defaultTheme:e,theme:t,themeId:n}){return VJ(t)?e:t[n]||t}function KJ(e){return e?(t,n)=>n[e]:null}function Yh(e,t){let{ownerState:n}=t,r=ce(t,BJ);const o=typeof e=="function"?e(O({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Yh(i,O({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ce(o,HJ);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props(O({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style(O({ownerState:n},r,n)):s.style))}),l}return o}function QJ(e={}){const{themeId:t,defaultTheme:n=GJ,rootShouldForwardProp:r=Wb,slotShouldForwardProp:o=Wb}=e,i=a=>Qp(O({},a,{theme:nh(O({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{WD(a,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=KJ(qJ(u))}=l,m=ce(l,UJ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=d||!1;let y,b=Wb;u==="Root"||u==="root"?b=r:u?b=o:WJ(a)&&(b=void 0);const g=tE(a,O({shouldForwardProp:b,label:y},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||Sa(P)?C=>Yh(P,O({},C,{theme:nh({theme:C.theme,defaultTheme:n,themeId:t})})):P,w=(P,...C)=>{let E=x(P);const S=C?C.map(x):[];s&&f&&S.push(M=>{const _=nh(O({},M,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[s]||!_.components[s].styleOverrides)return null;const D=_.components[s].styleOverrides,T={};return Object.entries(D).forEach(([F,N])=>{T[F]=Yh(N,O({},M,{theme:_}))}),f(M,T)}),s&&!p&&S.push(M=>{var _;const D=nh(O({},M,{defaultTheme:n,themeId:t})),T=D==null||(_=D.components)==null||(_=_[s])==null?void 0:_.variants;return Yh({variants:T},O({},M,{theme:D}))}),h||S.push(i);const R=S.length-C.length;if(Array.isArray(P)&&R>0){const M=new Array(R).fill("");E=[...P,...M],E.raw=[...P.raw,...M]}const I=g(E,...S);return a.muiName&&(I.muiName=a.muiName),I};return g.withConfig&&(w.withConfig=g.withConfig),w}}const YJ=QJ(),Dn=YJ;function zy(e,t){const n=O({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=O({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=O({},i),Object.keys(o).forEach(a=>{n[r][a]=zy(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function XJ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:zy(t.components[n].defaultProps,r)}function cE({props:e,name:t,defaultTheme:n,themeId:r}){let o=Iy(n);return r&&(o=o[r]||o),XJ({theme:o,name:t,props:e})}const ZJ=typeof window<"u"?v.useLayoutEffect:v.useEffect,_t=ZJ;function lN(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const JJ=Object.freeze(Object.defineProperty({__proto__:null,default:lN},Symbol.toStringTag,{value:"Module"}));function dE(e,t=0,n=1){return lN(e,t,n)}function eee(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ru(e){if(e.type)return e;if(e.charAt(0)==="#")return ru(eee(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ba(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Ba(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function jy(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function tee(e){e=ru(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",s.push(t[3])),jy({type:l,values:s})}function nee(e){e=ru(e);let t=e.type==="hsl"||e.type==="hsla"?ru(tee(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ni(e,t){return e=ru(e),t=dE(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jy(e)}function Tf(e,t){if(e=ru(e),t=dE(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 n=0;n<3;n+=1)e.values[n]*=1-t;return jy(e)}function sN(e,t){if(e=ru(e),t=dE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return jy(e)}function ree(e,t=.15){return nee(e)>.5?Tf(e,t):sN(e,t)}function Pw(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function oee(e,t){return()=>null}function Xh(e,t){var n,r;return v.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ln(e){return e&&e.ownerDocument||document}function mi(e){return ln(e).defaultView||window}function iee(e,t){return()=>null}let DO=0;function aee(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(DO+=1,n(`mui-${DO}`))},[t]),r}const NO=cg["useId".toString()];function Rt(e){if(NO!==void 0){const t=NO();return e??t}return aee(e)}function lee(e,t,n,r,o){return null}function Ul({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,a]=v.useState(t),l=o?e:i,s=v.useCallback(u=>{o||a(u)},[]);return[l,s]}function Zt(e){const t=v.useRef(e);return _t(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}const zO={};function see(e,t){const n=v.useRef(zO);return n.current===zO&&(n.current=e(t)),n}const uee=[];function cee(e){v.useEffect(e,uee)}let fE=class uN{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new uN}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Ts(){const e=see(fE.create).current;return cee(e.disposeEffect),e}let By=!0,kw=!1;const dee=new fE,fee={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 pee(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&fee[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function mee(e){e.metaKey||e.altKey||e.ctrlKey||(By=!0)}function Gb(){By=!1}function hee(){this.visibilityState==="hidden"&&kw&&(By=!0)}function gee(e){e.addEventListener("keydown",mee,!0),e.addEventListener("mousedown",Gb,!0),e.addEventListener("pointerdown",Gb,!0),e.addEventListener("touchstart",Gb,!0),e.addEventListener("visibilitychange",hee,!0)}function vee(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return By||pee(t)}function Hy(){const e=v.useCallback(o=>{o!=null&&gee(o.ownerDocument)},[]),t=v.useRef(!1);function n(){return t.current?(kw=!0,dee.start(100,()=>{kw=!1}),t.current=!1,!0):!1}function r(o){return vee(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function cN(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const yee=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current},pE=yee;function Oe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const bee=v.createContext(null),dN=bee;function fN(){return v.useContext(dN)}const xee=typeof Symbol=="function"&&Symbol.for,wee=xee?Symbol.for("mui.nested"):"__THEME_NESTED__";function Cee(e,t){return typeof t=="function"?t(e):O({},e,t)}function See(e){const{children:t,theme:n}=e,r=fN(),o=v.useMemo(()=>{const i=r===null?n:Cee(r,n);return i!=null&&(i[wee]=r!==null),i},[n,r]);return z.jsx(dN.Provider,{value:o,children:t})}const Eee=["value"],pN=v.createContext();function Pee(e){let{value:t}=e,n=ce(e,Eee);return z.jsx(pN.Provider,O({value:t??!0},n))}const Uy=()=>{const e=v.useContext(pN);return e??!1},jO={};function BO(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?O({},t,{[e]:i}):i;return r?()=>a:a}return e?O({},t,{[e]:n}):O({},t,n)},[e,t,n,r])}function kee(e){const{children:t,theme:n,themeId:r}=e,o=eN(jO),i=fN()||jO,a=BO(r,o,n),l=BO(r,i,n,!0),s=a.direction==="rtl";return z.jsx(See,{theme:l,children:z.jsx(Gp.Provider,{value:a,children:z.jsx(Pee,{value:s,children:t})})})}function pp(e){"@babel/helpers - typeof";return pp=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},pp(e)}function $ee(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mp(e){var t=$ee(e,"string");return pp(t)=="symbol"?t:String(t)}const Iee=["className","component","disableGutters","fixed","maxWidth","classes"],Oee=md(),Mee=Dn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${pe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Ree=e=>cE({props:e,name:"MuiContainer",defaultTheme:Oee}),Tee=(e,t)=>{const n=s=>We(t,s),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,l={root:["root",a&&`maxWidth${pe(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Oe(l,n,r)};function _ee(e={}){const{createStyledComponent:t=Mee,useThemeProps:n=Ree,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:l})=>O({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!l.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:l})=>l.fixed&&Object.keys(a.breakpoints.values).reduce((s,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(s[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),s},{}),({theme:a,ownerState:l})=>O({},l.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},l.maxWidth&&l.maxWidth!=="xs"&&{[a.breakpoints.up(l.maxWidth)]:{maxWidth:`${a.breakpoints.values[l.maxWidth]}${a.breakpoints.unit}`}}));return v.forwardRef(function(l,s){const u=n(l),{className:c,component:d="div",disableGutters:f=!1,fixed:m=!1,maxWidth:p="lg"}=u,h=ce(u,Iee),y=O({},u,{component:d,disableGutters:f,fixed:m,maxWidth:p}),b=Tee(y,r);return z.jsx(o,O({as:d,ownerState:y,className:ve(b.root,c),ref:s},h))})}const Fee=["component","direction","spacing","divider","children","className","useFlexGap"],Aee=md(),Lee=Dn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Dee(e){return cE({props:e,name:"MuiStack",defaultTheme:Aee})}function Nee(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(v.cloneElement(t,{key:`separator-${i}`})),r),[])}const zee=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],jee=({ownerState:e,theme:t})=>{let n=O({display:"flex",flexDirection:"column"},Br({theme:t},zs({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=iE(t),o=Object.keys(t.breakpoints.values).reduce((s,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(s[u]=!0),s),{}),i=zs({values:e.direction,base:o}),a=zs({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((s,u,c)=>{if(!i[s]){const f=u>0?i[c[u-1]]:"column";i[s]=f}}),n=Er(n,Br({theme:t},a,(s,u)=>e.useFlexGap?{gap:nu(r,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${zee(u?i[u]:e.direction)}`]:nu(r,s)}}))}return n=AZ(t.breakpoints,n),n};function Bee(e={}){const{createStyledComponent:t=Lee,useThemeProps:n=Dee,componentName:r="MuiStack"}=e,o=()=>Oe({root:["root"]},s=>We(r,s),{}),i=t(jee);return v.forwardRef(function(s,u){const c=n(s),d=Yp(c),{component:f="div",direction:m="column",spacing:p=0,divider:h,children:y,className:b,useFlexGap:g=!1}=d,x=ce(d,Fee),w={direction:m,spacing:p,useFlexGap:g},P=o();return z.jsx(i,O({as:f,ownerState:w,ref:u,className:ve(P.root,b)},x,{children:h?Nee(y,h):y}))})}function Hee(e,t){return O({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Cn={},mN={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mN);var Ot=mN.exports;const Uee=Bo(kX),Vee=Bo(JJ);var hN=Ot;Object.defineProperty(Cn,"__esModule",{value:!0});var lt=Cn.alpha=bN;Cn.blend=tte;Cn.colorChannel=void 0;var mE=Cn.darken=vE;Cn.decomposeColor=No;var HO=Cn.emphasize=ete,Wee=Cn.getContrastRatio=Yee;Cn.getLuminance=Zg;Cn.hexToRgb=gN;Cn.hslToRgb=yN;var hE=Cn.lighten=yE;Cn.private_safeAlpha=Xee;Cn.private_safeColorChannel=void 0;Cn.private_safeDarken=Zee;Cn.private_safeEmphasize=xN;Cn.private_safeLighten=Jee;Cn.recomposeColor=hd;Cn.rgbToHex=Qee;var UO=hN(Uee),Gee=hN(Vee);function gE(e,t=0,n=1){return(0,Gee.default)(e,t,n)}function gN(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qee(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function No(e){if(e.type)return e;if(e.charAt(0)==="#")return No(gN(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,UO.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,UO.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const vN=e=>{const t=No(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Cn.colorChannel=vN;const Kee=(e,t)=>{try{return vN(e)}catch{return e}};Cn.private_safeColorChannel=Kee;function hd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Qee(e){if(e.indexOf("#")===0)return e;const{values:t}=No(e);return`#${t.map((n,r)=>qee(r===3?Math.round(255*n):n)).join("")}`}function yN(e){e=No(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",s.push(t[3])),hd({type:l,values:s})}function Zg(e){e=No(e);let t=e.type==="hsl"||e.type==="hsla"?No(yN(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Yee(e,t){const n=Zg(e),r=Zg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function bN(e,t){return e=No(e),t=gE(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hd(e)}function Xee(e,t,n){try{return bN(e,t)}catch{return e}}function vE(e,t){if(e=No(e),t=gE(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 n=0;n<3;n+=1)e.values[n]*=1-t;return hd(e)}function Zee(e,t,n){try{return vE(e,t)}catch{return e}}function yE(e,t){if(e=No(e),t=gE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return hd(e)}function Jee(e,t,n){try{return yE(e,t)}catch{return e}}function ete(e,t=.15){return Zg(e)>.5?vE(e,t):yE(e,t)}function xN(e,t,n){try{return xN(e,t)}catch{return e}}function tte(e,t,n,r=1){const o=(s,u)=>Math.round((s**(1/r)*(1-n)+u**(1/r)*n)**r),i=No(e),a=No(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return hd({type:"rgb",values:l})}const nte={black:"#000",white:"#fff"},hp=nte,rte={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ote=rte,ite={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ou=ite,ate={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Mu=ate,lte={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ud=lte,ste={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ru=ste,ute={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Tu=ute,cte={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},_u=cte,dte=["mode","contrastThreshold","tonalOffset"],VO={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:hp.white,default:hp.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}},qb={text:{primary:hp.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:hp.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 WO(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=hE(e.main,o):t==="dark"&&(e.dark=mE(e.main,i)))}function fte(e="light"){return e==="dark"?{main:Ru[200],light:Ru[50],dark:Ru[400]}:{main:Ru[700],light:Ru[400],dark:Ru[800]}}function pte(e="light"){return e==="dark"?{main:Ou[200],light:Ou[50],dark:Ou[400]}:{main:Ou[500],light:Ou[300],dark:Ou[700]}}function mte(e="light"){return e==="dark"?{main:Mu[500],light:Mu[300],dark:Mu[700]}:{main:Mu[700],light:Mu[400],dark:Mu[800]}}function hte(e="light"){return e==="dark"?{main:Tu[400],light:Tu[300],dark:Tu[700]}:{main:Tu[700],light:Tu[500],dark:Tu[900]}}function gte(e="light"){return e==="dark"?{main:_u[400],light:_u[300],dark:_u[700]}:{main:_u[800],light:_u[500],dark:_u[900]}}function vte(e="light"){return e==="dark"?{main:Ud[400],light:Ud[300],dark:Ud[700]}:{main:"#ed6c02",light:Ud[500],dark:Ud[900]}}function yte(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ce(e,dte),i=e.primary||fte(t),a=e.secondary||pte(t),l=e.error||mte(t),s=e.info||hte(t),u=e.success||gte(t),c=e.warning||vte(t);function d(h){return Wee(h,qb.text.primary)>=n?qb.text.primary:VO.text.primary}const f=({color:h,name:y,mainShade:b=500,lightShade:g=300,darkShade:x=700})=>{if(h=O({},h),!h.main&&h[b]&&(h.main=h[b]),!h.hasOwnProperty("main"))throw new Error(Ba(11,y?` (${y})`:"",b));if(typeof h.main!="string")throw new Error(Ba(12,y?` (${y})`:"",JSON.stringify(h.main)));return WO(h,"light",g,r),WO(h,"dark",x,r),h.contrastText||(h.contrastText=d(h.main)),h},m={dark:qb,light:VO};return Er(O({common:O({},hp),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:ote,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},m[t]),o)}const bte=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function xte(e){return Math.round(e*1e5)/1e5}const GO={textTransform:"uppercase"},qO='"Roboto", "Helvetica", "Arial", sans-serif';function wte(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=qO,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=ce(n,bte),m=o/14,p=d||(b=>`${b/u*m}rem`),h=(b,g,x,w,P)=>O({fontFamily:r,fontWeight:b,fontSize:p(g),lineHeight:x},r===qO?{letterSpacing:`${xte(w/g)}em`}:{},P,c),y={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,GO),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,GO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Er(O({htmlFontSize:u,pxToRem:p,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},y),f,{clone:!1})}const Cte=.2,Ste=.14,Ete=.12;function tn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cte})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ste})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ete})`].join(",")}const Pte=["none",tn(0,2,1,-1,0,1,1,0,0,1,3,0),tn(0,3,1,-2,0,2,2,0,0,1,5,0),tn(0,3,3,-2,0,3,4,0,0,1,8,0),tn(0,2,4,-1,0,4,5,0,0,1,10,0),tn(0,3,5,-1,0,5,8,0,0,1,14,0),tn(0,3,5,-1,0,6,10,0,0,1,18,0),tn(0,4,5,-2,0,7,10,1,0,2,16,1),tn(0,5,5,-3,0,8,10,1,0,3,14,2),tn(0,5,6,-3,0,9,12,1,0,3,16,2),tn(0,6,6,-3,0,10,14,1,0,4,18,3),tn(0,6,7,-4,0,11,15,1,0,4,20,3),tn(0,7,8,-4,0,12,17,2,0,5,22,4),tn(0,7,8,-4,0,13,19,2,0,5,24,4),tn(0,7,9,-4,0,14,21,2,0,5,26,4),tn(0,8,9,-5,0,15,22,2,0,6,28,5),tn(0,8,10,-5,0,16,24,2,0,6,30,5),tn(0,8,11,-5,0,17,26,2,0,6,32,5),tn(0,9,11,-5,0,18,28,2,0,7,34,6),tn(0,9,12,-6,0,19,29,2,0,7,36,6),tn(0,10,13,-6,0,20,31,3,0,8,38,7),tn(0,10,13,-6,0,21,33,3,0,8,40,7),tn(0,10,14,-6,0,22,35,3,0,8,42,7),tn(0,11,14,-7,0,23,36,3,0,9,44,8),tn(0,11,15,-7,0,24,38,3,0,9,46,8)],kte=Pte,$te=["duration","easing","delay"],Ite={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)"},wN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function KO(e){return`${Math.round(e)}ms`}function Ote(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Mte(e){const t=O({},Ite,e.easing),n=O({},wN,e.duration);return O({getAutoHeightDuration:Ote,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:s=0}=i;return ce(i,$te),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:KO(a)} ${l} ${typeof s=="string"?s:KO(s)}`).join(",")}},e,{easing:t,duration:n})}const Rte={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tte=Rte,_te=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Xp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ce(e,_te);if(e.vars)throw new Error(Ba(18));const l=yte(r),s=md(e);let u=Er(s,{mixins:Hee(s.breakpoints,n),palette:l,shadows:kte.slice(),typography:wte(l,i),transitions:Mte(o),zIndex:O({},Tte)});return u=Er(u,a),u=t.reduce((c,d)=>Er(c,d),u),u.unstable_sxConfig=O({},Kp,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return Qp({sx:d,theme:this})},u}const Fte=Xp(),Vy=Fte,ou="$$material";function Ur(){const e=Iy(Vy);return e[ou]||e}const bE=e=>e.scrollTop;function Yl(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function qe({props:e,name:t}){return cE({props:e,name:t,defaultTheme:Vy,themeId:ou})}var Zp={},Kb={exports:{}},QO;function Ate(){return QO||(QO=1,function(e){function t(n,r){if(n==null)return{};var o={},i=Object.keys(n),a,l;for(l=0;l<i.length;l++)a=i[l],!(r.indexOf(a)>=0)&&(o[a]=n[a]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Kb)),Kb.exports}const CN=Bo(OZ),Lte=Bo(MZ),Dte=Bo(DZ),Nte=Bo(jJ),zte=Bo(PJ),jte=Bo(RJ);var gd=Ot;Object.defineProperty(Zp,"__esModule",{value:!0});var Bte=Zp.default=ene,SN=Zp.shouldForwardProp=Zh;Zp.systemDefaultTheme=void 0;var xo=gd(oy),$w=gd(Ate()),YO=Kte(CN),Hte=Lte;gd(Dte);gd(Nte);var Ute=gd(zte),Vte=gd(jte);const Wte=["ownerState"],Gte=["variants"],qte=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function EN(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(EN=function(r){return r?n:t})(e)}function Kte(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=EN(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Qte(e){return Object.keys(e).length===0}function Yte(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xte=Zp.systemDefaultTheme=(0,Ute.default)(),Zte=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function rh({defaultTheme:e,theme:t,themeId:n}){return Qte(t)?e:t[n]||t}function Jte(e){return e?(t,n)=>n[e]:null}function Jh(e,t){let{ownerState:n}=t,r=(0,$w.default)(t,Wte);const o=typeof e=="function"?e((0,xo.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Jh(i,(0,xo.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=(0,$w.default)(o,Gte);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props((0,xo.default)({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style((0,xo.default)({ownerState:n},r,n)):s.style))}),l}return o}function ene(e={}){const{themeId:t,defaultTheme:n=Xte,rootShouldForwardProp:r=Zh,slotShouldForwardProp:o=Zh}=e,i=a=>(0,Vte.default)((0,xo.default)({},a,{theme:rh((0,xo.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{(0,YO.internal_processStyles)(a,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=Jte(Zte(u))}=l,m=(0,$w.default)(l,qte),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=d||!1;let y,b=Zh;u==="Root"||u==="root"?b=r:u?b=o:Yte(a)&&(b=void 0);const g=(0,YO.default)(a,(0,xo.default)({shouldForwardProp:b,label:y},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||(0,Hte.isPlainObject)(P)?C=>Jh(P,(0,xo.default)({},C,{theme:rh({theme:C.theme,defaultTheme:n,themeId:t})})):P,w=(P,...C)=>{let E=x(P);const S=C?C.map(x):[];s&&f&&S.push(M=>{const _=rh((0,xo.default)({},M,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[s]||!_.components[s].styleOverrides)return null;const D=_.components[s].styleOverrides,T={};return Object.entries(D).forEach(([F,N])=>{T[F]=Jh(N,(0,xo.default)({},M,{theme:_}))}),f(M,T)}),s&&!p&&S.push(M=>{var _;const D=rh((0,xo.default)({},M,{defaultTheme:n,themeId:t})),T=D==null||(_=D.components)==null||(_=_[s])==null?void 0:_.variants;return Jh({variants:T},(0,xo.default)({},M,{theme:D}))}),h||S.push(i);const R=S.length-C.length;if(Array.isArray(P)&&R>0){const M=new Array(R).fill("");E=[...P,...M],E.raw=[...P.raw,...M]}const I=g(E,...S);return a.muiName&&(I.muiName=a.muiName),I};return g.withConfig&&(w.withConfig=g.withConfig),w}}const mr=e=>SN(e)&&e!=="classes",tne=SN,nne=Bte({themeId:ou,defaultTheme:Vy,rootShouldForwardProp:mr}),fe=nne;function rne(e){return We("MuiSvgIcon",e)}Ge("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const one=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ine=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${pe(t)}`,`fontSize${pe(n)}`]};return Oe(o,rne,r)},ane=fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${pe(n.color)}`],t[`fontSize${pe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,f,m,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(s=l.pxToRem)==null?void 0:s.call(l,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),PN=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,m=ce(r,one),p=v.isValidElement(o)&&o.type==="svg",h=O({},r,{color:a,component:l,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:p}),y={};c||(y.viewBox=f);const b=ine(h);return z.jsxs(ane,O({as:l,className:ve(b.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},y,m,p&&o.props,{ownerState:h,children:[p?o.props.children:o,d?z.jsx("title",{children:d}):null]}))});PN.muiName="SvgIcon";const Xl=PN;function rt(e,t){function n(r,o){return z.jsx(Xl,O({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Xl.muiName,v.memo(v.forwardRef(n))}const lne={configure:e=>{lE.configure(e)}},sne=Object.freeze(Object.defineProperty({__proto__:null,capitalize:pe,createChainedFunction:Pw,createSvgIcon:rt,debounce:fd,deprecatedPropType:oee,isMuiElement:Xh,ownerDocument:ln,ownerWindow:mi,requirePropFactory:iee,setRef:up,unstable_ClassNameGenerator:lne,unstable_useEnhancedEffect:_t,unstable_useId:Rt,unsupportedProp:lee,useControlled:Ul,useEventCallback:Zt,useForkRef:xt,useIsFocusVisible:Hy},Symbol.toStringTag,{value:"Module"})),une=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cne(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=mi(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,s=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),s=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${i.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+s-r.top}px)`:`translateY(${i.innerHeight+s-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-s}px)`:`translateY(-${r.top+r.height-s}px)`}function dne(e){return typeof e=="function"?e():e}function oh(e,t,n){const r=dne(n),o=cne(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const fne=v.forwardRef(function(t,n){const r=Ur(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,container:u,direction:c="down",easing:d=o,in:f,onEnter:m,onEntered:p,onEntering:h,onExit:y,onExited:b,onExiting:g,style:x,timeout:w=i,TransitionComponent:P=uy}=t,C=ce(t,une),E=v.useRef(null),S=xt(s.ref,E,n),R=L=>j=>{L&&(j===void 0?L(E.current):L(E.current,j))},I=R((L,j)=>{oh(c,L,u),bE(L),m&&m(L,j)}),M=R((L,j)=>{const B=Yl({timeout:w,style:x,easing:d},{mode:"enter"});L.style.webkitTransition=r.transitions.create("-webkit-transform",O({},B)),L.style.transition=r.transitions.create("transform",O({},B)),L.style.webkitTransform="none",L.style.transform="none",h&&h(L,j)}),_=R(p),D=R(g),T=R(L=>{const j=Yl({timeout:w,style:x,easing:d},{mode:"exit"});L.style.webkitTransition=r.transitions.create("-webkit-transform",j),L.style.transition=r.transitions.create("transform",j),oh(c,L,u),y&&y(L)}),F=R(L=>{L.style.webkitTransition="",L.style.transition="",b&&b(L)}),N=L=>{a&&a(E.current,L)},k=v.useCallback(()=>{E.current&&oh(c,E.current,u)},[c,u]);return v.useEffect(()=>{if(f||c==="down"||c==="right")return;const L=fd(()=>{E.current&&oh(c,E.current,u)}),j=mi(E.current);return j.addEventListener("resize",L),()=>{L.clear(),j.removeEventListener("resize",L)}},[c,f,u]),v.useEffect(()=>{f||k()},[f,k]),z.jsx(P,O({nodeRef:E,onEnter:I,onEntered:_,onEntering:M,onExit:T,onExited:F,onExiting:D,addEndListener:N,appear:l,in:f,timeout:w},C,{children:(L,j)=>v.cloneElement(s,O({ref:S,style:O({visibility:L==="exited"&&!f?"hidden":void 0},x,s.props.style)},j))}))}),kN=fne;function pne(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function mne(e){return parseFloat(e)}const hne=["theme"];function gne(e){let{theme:t}=e,n=ce(e,hne);const r=t[ou];return z.jsx(kee,O({},n,{themeId:r?ou:void 0,theme:r||t}))}const vne=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},XO=vne;function yne(e){return We("MuiCollapse",e)}Ge("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const bne=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],xne=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Oe(r,yne,n)},wne=fe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>O({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&O({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Cne=fe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>O({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Sne=fe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>O({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),$N=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:l="0px",component:s,easing:u,in:c,onEnter:d,onEntered:f,onEntering:m,onExit:p,onExited:h,onExiting:y,orientation:b="vertical",style:g,timeout:x=wN.standard,TransitionComponent:w=uy}=r,P=ce(r,bne),C=O({},r,{orientation:b,collapsedSize:l}),E=xne(C),S=Ur(),R=Ts(),I=v.useRef(null),M=v.useRef(),_=typeof l=="number"?`${l}px`:l,D=b==="horizontal",T=D?"width":"height",F=v.useRef(null),N=xt(n,F),k=Y=>re=>{if(Y){const le=F.current;re===void 0?Y(le):Y(le,re)}},L=()=>I.current?I.current[D?"clientWidth":"clientHeight"]:0,j=k((Y,re)=>{I.current&&D&&(I.current.style.position="absolute"),Y.style[T]=_,d&&d(Y,re)}),B=k((Y,re)=>{const le=L();I.current&&D&&(I.current.style.position="");const{duration:J,easing:oe}=Yl({style:g,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const ue=S.transitions.getAutoHeightDuration(le);Y.style.transitionDuration=`${ue}ms`,M.current=ue}else Y.style.transitionDuration=typeof J=="string"?J:`${J}ms`;Y.style[T]=`${le}px`,Y.style.transitionTimingFunction=oe,m&&m(Y,re)}),A=k((Y,re)=>{Y.style[T]="auto",f&&f(Y,re)}),H=k(Y=>{Y.style[T]=`${L()}px`,p&&p(Y)}),q=k(h),V=k(Y=>{const re=L(),{duration:le,easing:J}=Yl({style:g,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const oe=S.transitions.getAutoHeightDuration(re);Y.style.transitionDuration=`${oe}ms`,M.current=oe}else Y.style.transitionDuration=typeof le=="string"?le:`${le}ms`;Y.style[T]=_,Y.style.transitionTimingFunction=J,y&&y(Y)}),G=Y=>{x==="auto"&&R.start(M.current||0,Y),o&&o(F.current,Y)};return z.jsx(w,O({in:c,onEnter:j,onEntered:A,onEntering:B,onExit:H,onExited:q,onExiting:V,addEndListener:G,nodeRef:F,timeout:x==="auto"?null:x},P,{children:(Y,re)=>z.jsx(wne,O({as:s,className:ve(E.root,a,{entered:E.entered,exited:!c&&_==="0px"&&E.hidden}[Y]),style:O({[D?"minWidth":"minHeight"]:_},g),ref:N},re,{ownerState:O({},C,{state:Y}),children:z.jsx(Cne,{ownerState:O({},C,{state:Y}),className:E.wrapper,ref:I,children:z.jsx(Sne,{ownerState:O({},C,{state:Y}),className:E.wrapperInner,children:i})})}))}))});$N.muiSupportAuto=!0;const Wy=$N;function ZO(e){return e.substring(2).toLowerCase()}function Ene(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function xE(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=v.useRef(!1),l=v.useRef(null),s=v.useRef(!1),u=v.useRef(!1);v.useEffect(()=>(setTimeout(()=>{s.current=!0},0),()=>{s.current=!1}),[]);const c=xt(t.ref,l),d=Zt(p=>{const h=u.current;u.current=!1;const y=ln(l.current);if(!s.current||!l.current||"clientX"in p&&Ene(p,y))return;if(a.current){a.current=!1;return}let b;p.composedPath?b=p.composedPath().indexOf(l.current)>-1:b=!y.documentElement.contains(p.target)||l.current.contains(p.target),!b&&(n||!h)&&o(p)}),f=p=>h=>{u.current=!0;const y=t.props[p];y&&y(h)},m={ref:c};return i!==!1&&(m[i]=f(i)),v.useEffect(()=>{if(i!==!1){const p=ZO(i),h=ln(l.current),y=()=>{a.current=!0};return h.addEventListener(p,d),h.addEventListener("touchmove",y),()=>{h.removeEventListener(p,d),h.removeEventListener("touchmove",y)}}},[d,i]),r!==!1&&(m[r]=f(r)),v.useEffect(()=>{if(r!==!1){const p=ZO(r),h=ln(l.current);return h.addEventListener(p,d),()=>{h.removeEventListener(p,d)}}},[d,r]),z.jsx(v.Fragment,{children:v.cloneElement(t,m)})}function JO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pne(e,t,n){return t&&JO(e.prototype,t),n&&JO(e,n),e}function Yt(){return Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yt.apply(this,arguments)}function kne(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Vl(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function eM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var IN=$.createContext(),$ne={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},fa={view:{default:20,dense:4},snackbar:{default:6,dense:2}},_s={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:kN,transitionDuration:{enter:225,exit:195}},_f=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ine=function(t){return""+_f(t.vertical)+_f(t.horizontal)},One=function(t){return Object.keys(t).filter(function(n){return!$ne.container[n]}).reduce(function(n,r){var o;return Yt({},n,(o={},o[r]=t[r],o))},{})},El={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},eg={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+_f(n)+_f(r)},toVariant:function(t){return"variant"+_f(t)}},ih=function(t){return!!t||t===0},tM=function(t){return typeof t=="number"||t===null},Mne=function(t,n,r){return function(o){return o==="autoHideDuration"?tM(t.autoHideDuration)?t.autoHideDuration:tM(n.autoHideDuration)?n.autoHideDuration:_s.autoHideDuration:t[o]||n[o]||r[o]}};function Qb(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Yt({},n,{},t,{},e)}var Rne="SnackbarContent",ON={root:Rne+"-root"},Tne=fe("div")(function(e){var t,n,r=e.theme;return n={},n["&."+ON.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),_ne=v.forwardRef(function(e,t){var n=e.className,r=Vl(e,["className"]);return $.createElement(Tne,Object.assign({ref:t,className:sp(ON.root,n)},r))}),nM={right:"left",left:"right",bottom:"up",top:"down"},Fne=function(t){return t.horizontal!=="center"?nM[t.horizontal]:nM[t.vertical]},Ane=function(t){return $.createElement(Xl,Object.assign({},t),$.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Lne=function(t){return $.createElement(Xl,Object.assign({},t),$.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Dne=function(t){return $.createElement(Xl,Object.assign({},t),$.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},Nne=function(t){return $.createElement(Xl,Object.assign({},t),$.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
0 22,12A10,10 0 0,0 12,2Z`}))},ah={fontSize:20,marginInlineEnd:8},zne={default:void 0,success:$.createElement(Ane,{style:ah}),warning:$.createElement(Lne,{style:ah}),error:$.createElement(Dne,{style:ah}),info:$.createElement(Nne,{style:ah})};function Ff(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var s=[].concat(a);t&&s.indexOf(t)===-1&&s.push(t),n.apply(this,s),r.apply(this,s)}},function(){})}var jne=typeof window<"u"?v.useLayoutEffect:v.useEffect;function rM(e){var t=v.useRef(e);return jne(function(){t.current=e}),v.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var Bne=v.forwardRef(function(e,t){var n=e.children,r=e.autoHideDuration,o=e.ClickAwayListenerProps,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,s=e.onMouseEnter,u=e.onMouseLeave,c=e.open,d=e.resumeHideDuration,f=Vl(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),m=v.useRef(),p=rM(function(){l&&l.apply(void 0,arguments)}),h=rM(function(P){!l||P==null||(clearTimeout(m.current),m.current=setTimeout(function(){p(null,El.TIMEOUT)},P))});v.useEffect(function(){return c&&h(r),function(){clearTimeout(m.current)}},[c,r,h]);var y=function(){clearTimeout(m.current)},b=v.useCallback(function(){r!=null&&h(d??r*.5)},[r,d,h]),g=function(C){s&&s(C),y()},x=function(C){u&&u(C),b()},w=function(C){l&&l(C,El.CLICKAWAY)};return v.useEffect(function(){if(!a&&c)return window.addEventListener("focus",b),window.addEventListener("blur",y),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,b,c]),v.createElement(xE,Yt({onClickAway:w},o),v.createElement("div",Yt({onMouseEnter:g,onMouseLeave:x,ref:t},f),n))}),pa="SnackbarItem",yr={contentRoot:pa+"-contentRoot",lessPadding:pa+"-lessPadding",variantSuccess:pa+"-variantSuccess",variantError:pa+"-variantError",variantInfo:pa+"-variantInfo",variantWarning:pa+"-variantWarning",message:pa+"-message",action:pa+"-action",wrappedRoot:pa+"-wrappedRoot"},Hne=fe(Bne)(function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,o=ree(n.palette.background.default,r==="light"?.8:.98);return t={},t["&."+yr.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+yr.contentRoot]=Yt({},n.typography.body2,{backgroundColor:o,color:n.palette.getContrastText(o),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+yr.lessPadding]={paddingLeft:8*2.5},t["."+yr.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+yr.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+yr.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+yr.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+yr.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+yr.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t}),Une=function(t){var n=t.classes,r=Vl(t,["classes"]),o=v.useRef(),i=v.useState(!0),a=i[0],l=i[1];v.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var s=Ff([r.snack.onClose,r.onClose],r.snack.key),u=function(){r.snack.requestClose&&s(null,El.INSTRCUTED)},c=function(){o.current=setTimeout(function(){l(!a)},125)},d=r.style,f=r.ariaAttributes,m=r.className,p=r.hideIconVariant,h=r.iconVariant,y=r.snack,b=r.action,g=r.content,x=r.TransitionComponent,w=r.TransitionProps,P=r.transitionDuration,C=Vl(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),E=y.key,S=y.open,R=y.className,I=y.variant,M=y.content,_=y.action,D=y.ariaAttributes,T=y.anchorOrigin,F=y.message,N=y.TransitionComponent,k=y.TransitionProps,L=y.transitionDuration,j=Vl(y,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=Yt({},zne,{},h)[I],A=Yt({"aria-describedby":"notistack-snackbar"},Qb(D,f)),H=N||x||_s.TransitionComponent,q=Qb(L,P,_s.transitionDuration),V=Yt({direction:Fne(T)},Qb(k,w)),G=_||b;typeof G=="function"&&(G=G(E));var Y=M||g;typeof Y=="function"&&(Y=Y(E,y.message));var re=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(le,J){var oe;return Yt({},le,(oe={},oe[J]=Ff([r.snack[J],r[J]],r.snack.key),oe))},{});return $.createElement(Wy,{unmountOnExit:!0,timeout:175,in:a,onExited:re.onExited},$.createElement(Hne,Object.assign({},C,j,{open:S,className:sp(n.root,yr.wrappedRoot,n[eg.toAnchorOrigin(T)]),onClose:s}),$.createElement(H,Object.assign({appear:!0,in:S,timeout:q},V,{onExit:re.onExit,onExiting:re.onExiting,onExited:c,onEnter:re.onEnter,onEntering:re.onEntering,onEntered:Ff([re.onEntered,u])}),Y||$.createElement(_ne,Object.assign({},A,{role:"alert",style:d,className:sp(yr.contentRoot,yr[eg.toVariant(I)],n[eg.toVariant(I)],m,R,!p&&B&&yr.lessPadding)}),$.createElement("div",{id:A["aria-describedby"],className:yr.message},p?null:B,F),G&&$.createElement("div",{className:yr.action},G)))))},Yb={container:"& > .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},Xb=16,ps="SnackbarContainer",ii={root:ps+"-root",rootDense:ps+"-rootDense",top:ps+"-top",bottom:ps+"-bottom",left:ps+"-left",right:ps+"-right",center:ps+"-center"},Vne=fe("div")(function(e){var t,n,r,o,i,a,l=e.theme;return a={},a["&."+ii.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:l.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[Yb.container]={pointerEvents:"all"},t[Yb.wrapper]={padding:fa.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+fa.view.default*2+"px)",t[l.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+Xb*2+"px)"},t),a["&."+ii.rootDense]=(n={},n[Yb.wrapper]={padding:fa.snackbar.dense+"px 0px"},n),a["&."+ii.top]={top:fa.view.default-fa.snackbar.default,flexDirection:"column"},a["&."+ii.bottom]={bottom:fa.view.default-fa.snackbar.default,flexDirection:"column-reverse"},a["&."+ii.left]=(r={left:fa.view.default},r[l.breakpoints.up("sm")]={alignItems:"flex-start"},r[l.breakpoints.down("sm")]={left:Xb+"px"},r),a["&."+ii.right]=(o={right:fa.view.default},o[l.breakpoints.up("sm")]={alignItems:"flex-end"},o[l.breakpoints.down("sm")]={right:Xb+"px"},o),a["&."+ii.center]=(i={left:"50%",transform:"translateX(-50%)"},i[l.breakpoints.up("sm")]={alignItems:"center"},i),a}),Wne=function(t){var n=t.className,r=t.anchorOrigin,o=t.dense,i=Vl(t,["className","anchorOrigin","dense"]),a=sp(ii[r.vertical],ii[r.horizontal],ii.root,n,o&&ii.rootDense);return $.createElement(Vne,Object.assign({className:a},i))},Gne=$.memo(Wne),qne=function(e){kne(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,a){a===void 0&&(a={});var l=a,s=l.key,u=l.preventDuplicate,c=Vl(l,["key","preventDuplicate"]),d=ih(s),f=d?s:new Date().getTime()+Math.random(),m=Mne(c,o.props,_s),p=Yt({key:f},c,{message:i,open:!0,entered:!1,requestClose:!1,variant:m("variant"),anchorOrigin:m("anchorOrigin"),autoHideDuration:m("autoHideDuration")});return c.persist&&(p.autoHideDuration=void 0),o.setState(function(h){if(u===void 0&&o.props.preventDuplicate||u){var y=function(w){return d?w.key===s:w.message===i},b=h.queue.findIndex(y)>-1,g=h.snacks.findIndex(y)>-1;if(b||g)return h}return o.handleDisplaySnack(Yt({},h,{queue:[].concat(h.queue,[p])}))}),f},o.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var a=i.queue,l=i.snacks;return a.length>0?Yt({},i,{snacks:[].concat(l,[a[0]]),queue:a.slice(1,a.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(c){return!c.open||c.requestClose}))return i;var a=!1,l=!1,s=i.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0);s===o.maxSnack&&(l=!0);var u=i.snacks.map(function(c){return!a&&(!c.persist||l)?(a=!0,c.entered?(c.onClose&&c.onClose(null,El.MAXSNACK,c.key),o.props.onClose&&o.props.onClose(null,El.MAXSNACK,c.key),Yt({},c,{open:!1})):Yt({},c,{requestClose:!0})):Yt({},c)});return Yt({},i,{snacks:u})},o.handleEnteredSnack=function(i,a,l){if(!ih(l))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(s){var u=s.snacks;return{snacks:u.map(function(c){return c.key===l?Yt({},c,{entered:!0}):Yt({},c)})}})},o.handleCloseSnack=function(i,a,l){if(o.props.onClose&&o.props.onClose(i,a,l),a!==El.CLICKAWAY){var s=l===void 0;o.setState(function(u){var c=u.snacks,d=u.queue;return{snacks:c.map(function(f){return!s&&f.key!==l?Yt({},f):f.entered?Yt({},f,{open:!1}):Yt({},f,{requestClose:!0})}),queue:d.filter(function(f){return f.key!==l})}})}},o.closeSnackbar=function(i){var a=o.state.snacks.find(function(l){return l.key===i});ih(i)&&a&&a.onClose&&a.onClose(null,El.INSTRUCTED,i),o.handleCloseSnack(null,El.INSTRUCTED,i)},o.handleExitedSnack=function(i,a,l){var s=a||l;if(!ih(s))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(u){var c=o.processQueue(Yt({},u,{snacks:u.snacks.filter(function(d){return d.key!==s})}));return c.queue.length===0?c:o.handleDismissOldest(c)})},o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(eM(o)),closeSnackbar:o.closeSnackbar.bind(eM(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,a=this.props,l=a.iconVariant,s=a.dense,u=s===void 0?_s.dense:s,c=a.hideIconVariant,d=c===void 0?_s.hideIconVariant:c,f=a.domRoot,m=a.children,p=a.classes,h=p===void 0?{}:p,y=Vl(a,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),b=this.state.snacks.reduce(function(x,w){var P,C=Ine(w.anchorOrigin),E=x[C]||[];return Yt({},x,(P={},P[C]=[].concat(E,[w]),P))},{}),g=Object.keys(b).map(function(x){var w=b[x];return $.createElement(Gne,{key:x,dense:u,anchorOrigin:w[0].anchorOrigin,className:sp(h.containerRoot,h[eg.toContainerAnchorOrigin(x)])},w.map(function(P){return $.createElement(Une,Object.assign({},y,{key:P.key,snack:P,dense:u,iconVariant:l,hideIconVariant:d,classes:One(h),onClose:o.handleCloseSnack,onExited:Ff([o.handleExitedSnack,o.props.onExited]),onEntered:Ff([o.handleEnteredSnack,o.props.onEntered])}))}))});return $.createElement(IN.Provider,{value:i},m,f?ns.createPortal(g,f):g)},Pne(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||_s.maxSnack}}]),t}(v.Component),Kne=function(){return v.useContext(IN)};const Qne=Ge("MuiBox",["root"]),Yne=Qne,Xne=Xp(),Zne=AJ({themeId:ou,defaultTheme:Xne,defaultClassName:Yne.root,generateClassName:lE.generate}),Ke=Zne;function gp(e){return typeof e=="string"}function cc(e,t,n){return e===void 0||gp(e)?t:O({},t,{ownerState:O({},t.ownerState,n)})}const Jne={disableDefaultClasses:!1},ere=v.createContext(Jne);function tre(e){const{disableDefaultClasses:t}=v.useContext(ere);return n=>t?"":e(n)}function MN(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function RN(e,t,n){return typeof e=="function"?e(t,n):e}function oM(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function TN(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=ve(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=O({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=O({},n,o,r);return m.length>0&&(h.className=m),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:void 0}}const a=MN(O({},o,r)),l=oM(r),s=oM(o),u=t(a),c=ve(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=O({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=O({},u,n,s,l);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const nre=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ce(e,nre),l=i?{}:RN(r,o),{props:s,internalRef:u}=TN(O({},a,{externalSlotProps:l})),c=xt(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return cc(n,O({},s,{ref:c}),o)}function rre(e){const t=ln(e);return t.body===e?mi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Af(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function iM(e){return parseInt(mi(e).getComputedStyle(e).paddingRight,10)||0}function ore(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function aM(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=i.indexOf(a)===-1,s=!ore(a);l&&s&&Af(a,o)})}function Zb(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function ire(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(rre(r)){const a=cN(ln(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${iM(r)+a}px`;const l=ln(r).querySelectorAll(".mui-fixed");[].forEach.call(l,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${iM(s)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ln(r).body;else{const a=r.parentElement,l=mi(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function are(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class lre{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Af(t.modalRef,!1);const o=are(n);aM(n,t.mount,t.modalRef,o,!0);const i=Zb(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Zb(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=ire(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Zb(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Af(t.modalRef,n),aM(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Af(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function sre(e){return typeof e=="function"?e():e}function ure(e){return e?e.props.hasOwnProperty("in"):!1}const cre=new lre;function dre(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=cre,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,f=v.useRef({}),m=v.useRef(null),p=v.useRef(null),h=xt(p,d),[y,b]=v.useState(!c),g=ure(s);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const w=()=>ln(m.current),P=()=>(f.current.modalRef=p.current,f.current.mount=m.current,f.current),C=()=>{o.mount(P(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},E=Zt(()=>{const N=sre(t)||w().body;o.add(P(),N),p.current&&C()}),S=v.useCallback(()=>o.isTopModal(P()),[o]),R=Zt(N=>{m.current=N,N&&(c&&S()?C():p.current&&Af(p.current,x))}),I=v.useCallback(()=>{o.remove(P(),x)},[x,o]);v.useEffect(()=>()=>{I()},[I]),v.useEffect(()=>{c?E():(!g||!i)&&I()},[c,I,g,i,E]);const M=N=>k=>{var L;(L=N.onKeyDown)==null||L.call(N,k),!(k.key!=="Escape"||k.which===229||!S())&&(n||(k.stopPropagation(),u&&u(k,"escapeKeyDown")))},_=N=>k=>{var L;(L=N.onClick)==null||L.call(N,k),k.target===k.currentTarget&&u&&u(k,"backdropClick")};return{getRootProps:(N={})=>{const k=MN(e);delete k.onTransitionEnter,delete k.onTransitionExited;const L=O({},k,N);return O({role:"presentation"},L,{onKeyDown:M(L),ref:h})},getBackdropProps:(N={})=>{const k=N;return O({"aria-hidden":!0},k,{onClick:_(k),open:c})},getTransitionProps:()=>{const N=()=>{b(!1),a&&a()},k=()=>{b(!0),l&&l(),i&&I()};return{onEnter:Pw(N,s==null?void 0:s.props.onEnter),onExited:Pw(k,s==null?void 0:s.props.onExited)}},rootRef:h,portalRef:R,isTopModal:S,exited:y,hasTransition:g}}const fre=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pre(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 mre(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function hre(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mre(e))}function gre(e){const t=[],n=[];return Array.from(e.querySelectorAll(fre)).forEach((r,o)=>{const i=pre(r);i===-1||!hre(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function vre(){return!0}function _N(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=gre,isEnabled:a=vre,open:l}=e,s=v.useRef(!1),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=v.useRef(null),m=v.useRef(!1),p=v.useRef(null),h=xt(t.ref,p),y=v.useRef(null);v.useEffect(()=>{!l||!p.current||(m.current=!n)},[n,l]),v.useEffect(()=>{if(!l||!p.current)return;const x=ln(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),m.current&&p.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[l]),v.useEffect(()=>{if(!l||!p.current)return;const x=ln(p.current),w=E=>{y.current=E,!(r||!a()||E.key!=="Tab")&&x.activeElement===p.current&&E.shiftKey&&(s.current=!0,c.current&&c.current.focus())},P=()=>{const E=p.current;if(E===null)return;if(!x.hasFocus()||!a()||s.current){s.current=!1;return}if(E.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!m.current)return;let S=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(S=i(p.current)),S.length>0){var R,I;const M=!!((R=y.current)!=null&&R.shiftKey&&((I=y.current)==null?void 0:I.key)==="Tab"),_=S[0],D=S[S.length-1];typeof _!="string"&&typeof D!="string"&&(M?D.focus():_.focus())}else E.focus()};x.addEventListener("focusin",P),x.addEventListener("keydown",w,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",P),x.removeEventListener("keydown",w,!0)}},[n,r,o,a,l,i]);const b=x=>{d.current===null&&(d.current=x.relatedTarget),m.current=!0,f.current=x.target;const w=t.props.onFocus;w&&w(x)},g=x=>{d.current===null&&(d.current=x.relatedTarget),m.current=!0};return z.jsxs(v.Fragment,{children:[z.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:h,onFocus:b}),z.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:c,"data-testid":"sentinelEnd"})]})}function yre(e){return typeof e=="function"?e():e}const FN=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=v.useState(null),s=xt(v.isValidElement(r)?r.ref:null,n);if(_t(()=>{i||l(yre(o)||document.body)},[o,i]),_t(()=>{if(a&&!i)return up(n,a),()=>{up(n,null)}},[n,a,i]),i){if(v.isValidElement(r)){const u={ref:s};return v.cloneElement(r,u)}return z.jsx(v.Fragment,{children:r})}return z.jsx(v.Fragment,{children:a&&ns.createPortal(r,a)})}),bre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xre={entering:{opacity:1},entered:{opacity:1}},wre=v.forwardRef(function(t,n){const r=Ur(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:m,onExited:p,onExiting:h,style:y,timeout:b=o,TransitionComponent:g=uy}=t,x=ce(t,bre),w=v.useRef(null),P=xt(w,l.ref,n),C=T=>F=>{if(T){const N=w.current;F===void 0?T(N):T(N,F)}},E=C(f),S=C((T,F)=>{bE(T);const N=Yl({style:y,timeout:b,easing:s},{mode:"enter"});T.style.webkitTransition=r.transitions.create("opacity",N),T.style.transition=r.transitions.create("opacity",N),c&&c(T,F)}),R=C(d),I=C(h),M=C(T=>{const F=Yl({style:y,timeout:b,easing:s},{mode:"exit"});T.style.webkitTransition=r.transitions.create("opacity",F),T.style.transition=r.transitions.create("opacity",F),m&&m(T)}),_=C(p),D=T=>{i&&i(w.current,T)};return z.jsx(g,O({appear:a,in:u,nodeRef:w,onEnter:S,onEntered:R,onEntering:E,onExit:M,onExited:_,onExiting:I,addEndListener:D,timeout:b},x,{children:(T,F)=>v.cloneElement(l,O({style:O({opacity:0,visibility:T==="exited"&&!u?"hidden":void 0},xre[T],y,l.props.style),ref:P},F))}))}),AN=wre;function Cre(e){return We("MuiBackdrop",e)}Ge("MuiBackdrop",["root","invisible"]);const Sre=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ere=e=>{const{classes:t,invisible:n}=e;return Oe({root:["root",n&&"invisible"]},Cre,t)},Pre=fe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>O({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"})),kre=v.forwardRef(function(t,n){var r,o,i;const a=qe({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:m,slotProps:p={},slots:h={},TransitionComponent:y=AN,transitionDuration:b}=a,g=ce(a,Sre),x=O({},a,{component:u,invisible:f}),w=Ere(x),P=(r=p.root)!=null?r:d.root;return z.jsx(y,O({in:m,timeout:b},g,{children:z.jsx(Pre,O({"aria-hidden":!0},P,{as:(o=(i=h.root)!=null?i:c.Root)!=null?o:u,className:ve(w.root,s,P==null?void 0:P.className),ownerState:O({},x,P==null?void 0:P.ownerState),classes:w,ref:n,children:l}))}))}),LN=kre;function $re(e){return We("MuiModal",e)}Ge("MuiModal",["root","hidden","backdrop"]);const Ire=["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"],Ore=e=>{const{open:t,exited:n,classes:r}=e;return Oe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$re,r)},Mre=fe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>O({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Rre=fe(LN,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Tre=v.forwardRef(function(t,n){var r,o,i,a,l,s;const u=qe({name:"MuiModal",props:t}),{BackdropComponent:c=Rre,BackdropProps:d,className:f,closeAfterTransition:m=!1,children:p,container:h,component:y,components:b={},componentsProps:g={},disableAutoFocus:x=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:P=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:S=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:M,open:_,slotProps:D,slots:T}=u,F=ce(u,Ire),N=O({},u,{closeAfterTransition:m,disableAutoFocus:x,disableEnforceFocus:w,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:E,disableScrollLock:S,hideBackdrop:R,keepMounted:I}),{getRootProps:k,getBackdropProps:L,getTransitionProps:j,portalRef:B,isTopModal:A,exited:H,hasTransition:q}=dre(O({},N,{rootRef:n})),V=O({},N,{exited:H}),G=Ore(V),Y={};if(p.props.tabIndex===void 0&&(Y.tabIndex="-1"),q){const{onEnter:me,onExited:ke}=j();Y.onEnter=me,Y.onExited=ke}const re=(r=(o=T==null?void 0:T.root)!=null?o:b.Root)!=null?r:Mre,le=(i=(a=T==null?void 0:T.backdrop)!=null?a:b.Backdrop)!=null?i:c,J=(l=D==null?void 0:D.root)!=null?l:g.root,oe=(s=D==null?void 0:D.backdrop)!=null?s:g.backdrop,ue=Gi({elementType:re,externalSlotProps:J,externalForwardedProps:F,getSlotProps:k,additionalProps:{ref:n,as:y},ownerState:V,className:ve(f,J==null?void 0:J.className,G==null?void 0:G.root,!V.open&&V.exited&&(G==null?void 0:G.hidden))}),ge=Gi({elementType:le,externalSlotProps:oe,additionalProps:d,getSlotProps:me=>L(O({},me,{onClick:ke=>{M&&M(ke),me!=null&&me.onClick&&me.onClick(ke)}})),className:ve(oe==null?void 0:oe.className,d==null?void 0:d.className,G==null?void 0:G.backdrop),ownerState:V});return!I&&!_&&(!q||H)?null:z.jsx(FN,{ref:B,container:h,disablePortal:C,children:z.jsxs(re,O({},ue,{children:[!R&&c?z.jsx(le,O({},ge)):null,z.jsx(_N,{disableEnforceFocus:w,disableAutoFocus:x,disableRestoreFocus:E,isEnabled:A,open:_,children:v.cloneElement(p,Y)})]}))})}),wE=Tre;function _re(e){return We("MuiPaper",e)}Ge("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 Fre=["className","component","elevation","square","variant"],Are=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Oe(i,_re,o)},Lre=fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return O({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"&&O({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${lt("#fff",XO(t.elevation))}, ${lt("#fff",XO(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dre=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:s="elevation"}=r,u=ce(r,Fre),c=O({},r,{component:i,elevation:a,square:l,variant:s}),d=Are(c);return z.jsx(Lre,O({as:i,ownerState:c,className:ve(d.root,o),ref:n},u))}),Ko=Dre;function Nre(e){return We("MuiDrawer",e)}Ge("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const zre=["BackdropProps"],jre=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],DN=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Bre=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${pe(n)}`,r!=="temporary"&&`paperAnchorDocked${pe(n)}`]};return Oe(o,Nre,t)},Hre=fe(wE,{name:"MuiDrawer",slot:"Root",overridesResolver:DN})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),lM=fe("div",{shouldForwardProp:mr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:DN})({flex:"0 0 auto"}),Ure=fe(Ko,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${pe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${pe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>O({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}`})),NN={left:"right",right:"left",top:"down",bottom:"up"};function Vre(e){return["left","right"].indexOf(e)!==-1}function Wre({direction:e},t){return e==="rtl"&&Vre(t)?NN[t]:t}const Gre=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDrawer"}),o=Ur(),i=Uy(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:s,children:u,className:c,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:m}={},onClose:p,open:h=!1,PaperProps:y={},SlideProps:b,TransitionComponent:g=kN,transitionDuration:x=a,variant:w="temporary"}=r,P=ce(r.ModalProps,zre),C=ce(r,jre),E=v.useRef(!1);v.useEffect(()=>{E.current=!0},[]);const S=Wre({direction:i?"rtl":"ltr"},l),I=O({},r,{anchor:l,elevation:d,open:h,variant:w},C),M=Bre(I),_=z.jsx(Ure,O({elevation:w==="temporary"?d:0,square:!0},y,{className:ve(M.paper,y.className),ownerState:I,children:u}));if(w==="permanent")return z.jsx(lM,O({className:ve(M.root,M.docked,c),ownerState:I,ref:n},C,{children:_}));const D=z.jsx(g,O({in:h,direction:NN[S],timeout:x,appear:E.current},b,{children:_}));return w==="persistent"?z.jsx(lM,O({className:ve(M.root,M.docked,c),ownerState:I,ref:n},C,{children:D})):z.jsx(Hre,O({BackdropProps:O({},s,m,{transitionDuration:x}),className:ve(M.root,M.modal,c),open:h,ownerState:I,onClose:p,hideBackdrop:f,ref:n},C,P,{children:D}))}),Gc=Gre,qre=v.createContext({}),iu=qre;function Kre(e){return We("MuiList",e)}Ge("MuiList",["root","padding","dense","subheader"]);const Qre=["children","className","component","dense","disablePadding","subheader"],Yre=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Oe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Kre,t)},Xre=fe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>O({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Zre=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=r,c=ce(r,Qre),d=v.useMemo(()=>({dense:l}),[l]),f=O({},r,{component:a,dense:l,disablePadding:s}),m=Yre(f);return z.jsx(iu.Provider,{value:d,children:z.jsxs(Xre,O({as:a,className:ve(m.root,i),ref:n,ownerState:f},c,{children:[u,o]}))})}),au=Zre;function Jre(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=v.useState(!1),f=ve(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},p=ve(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&d(!0),v.useEffect(()=>{if(!l&&s!=null){const h=setTimeout(s,u);return()=>{clearTimeout(h)}}},[s,l,u]),z.jsx("span",{className:f,style:m,children:z.jsx("span",{className:p})})}const eoe=Ge("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Eo=eoe,toe=["center","classes","className"];let Gy=e=>e,sM,uM,cM,dM;const Iw=550,noe=80,roe=ls(sM||(sM=Gy`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),ooe=ls(uM||(uM=Gy`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),ioe=ls(cM||(cM=Gy`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),aoe=fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),loe=fe(Jre,{name:"MuiTouchRipple",slot:"Ripple"})(dM||(dM=Gy`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`),Eo.rippleVisible,roe,Iw,({theme:e})=>e.transitions.easing.easeInOut,Eo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Eo.child,Eo.childLeaving,ooe,Iw,({theme:e})=>e.transitions.easing.easeInOut,Eo.childPulsate,ioe,({theme:e})=>e.transitions.easing.easeInOut),soe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=ce(r,toe),[s,u]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=v.useRef(!1),m=Ts(),p=v.useRef(null),h=v.useRef(null),y=v.useCallback(w=>{const{pulsate:P,rippleX:C,rippleY:E,rippleSize:S,cb:R}=w;u(I=>[...I,z.jsx(loe,{classes:{ripple:ve(i.ripple,Eo.ripple),rippleVisible:ve(i.rippleVisible,Eo.rippleVisible),ripplePulsate:ve(i.ripplePulsate,Eo.ripplePulsate),child:ve(i.child,Eo.child),childLeaving:ve(i.childLeaving,Eo.childLeaving),childPulsate:ve(i.childPulsate,Eo.childPulsate)},timeout:Iw,pulsate:P,rippleX:C,rippleY:E,rippleSize:S},c.current)]),c.current+=1,d.current=R},[i]),b=v.useCallback((w={},P={},C=()=>{})=>{const{pulsate:E=!1,center:S=o||P.pulsate,fakeElement:R=!1}=P;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const I=R?null:h.current,M=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,D,T;if(S||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)_=Math.round(M.width/2),D=Math.round(M.height/2);else{const{clientX:F,clientY:N}=w.touches&&w.touches.length>0?w.touches[0]:w;_=Math.round(F-M.left),D=Math.round(N-M.top)}if(S)T=Math.sqrt((2*M.width**2+M.height**2)/3),T%2===0&&(T+=1);else{const F=Math.max(Math.abs((I?I.clientWidth:0)-_),_)*2+2,N=Math.max(Math.abs((I?I.clientHeight:0)-D),D)*2+2;T=Math.sqrt(F**2+N**2)}w!=null&&w.touches?p.current===null&&(p.current=()=>{y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},m.start(noe,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},[o,y,m]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),x=v.useCallback((w,P)=>{if(m.clear(),(w==null?void 0:w.type)==="touchend"&&p.current){p.current(),p.current=null,m.start(0,()=>{x(w,P)});return}p.current=null,u(C=>C.length>0?C.slice(1):C),d.current=P},[m]);return v.useImperativeHandle(n,()=>({pulsate:g,start:b,stop:x}),[g,b,x]),z.jsx(aoe,O({className:ve(Eo.root,i.root,a),ref:h},l,{children:z.jsx(EX,{component:null,exit:!0,children:s})}))}),uoe=soe;function coe(e){return We("MuiButtonBase",e)}const doe=Ge("MuiButtonBase",["root","disabled","focusVisible"]),foe=doe,poe=["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"],moe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Oe({root:["root",t&&"disabled",n&&"focusVisible"]},coe,o);return n&&r&&(a.root+=` ${r}`),a},hoe=fe("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"},[`&.${foe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),goe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:p,onClick:h,onContextMenu:y,onDragLeave:b,onFocus:g,onFocusVisible:x,onKeyDown:w,onKeyUp:P,onMouseDown:C,onMouseLeave:E,onMouseUp:S,onTouchEnd:R,onTouchMove:I,onTouchStart:M,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:T,type:F}=r,N=ce(r,poe),k=v.useRef(null),L=v.useRef(null),j=xt(L,T),{isFocusVisibleRef:B,onFocus:A,onBlur:H,ref:q}=Hy(),[V,G]=v.useState(!1);u&&V&&G(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),k.current.focus()}}),[]);const[Y,re]=v.useState(!1);v.useEffect(()=>{re(!0)},[]);const le=Y&&!c&&!u;v.useEffect(()=>{V&&f&&!c&&Y&&L.current.pulsate()},[c,f,V,Y]);function J(X,Ee,Le=d){return Zt(Te=>(Ee&&Ee(Te),!Le&&L.current&&L.current[X](Te),!0))}const oe=J("start",C),ue=J("stop",y),ge=J("stop",b),me=J("stop",S),ke=J("stop",X=>{V&&X.preventDefault(),E&&E(X)}),be=J("start",M),ie=J("stop",R),ye=J("stop",I),U=J("stop",X=>{H(X),B.current===!1&&G(!1),p&&p(X)},!1),Q=Zt(X=>{k.current||(k.current=X.currentTarget),A(X),B.current===!0&&(G(!0),x&&x(X)),g&&g(X)}),Z=()=>{const X=k.current;return s&&s!=="button"&&!(X.tagName==="A"&&X.href)},ae=v.useRef(!1),te=Zt(X=>{f&&!ae.current&&V&&L.current&&X.key===" "&&(ae.current=!0,L.current.stop(X,()=>{L.current.start(X)})),X.target===X.currentTarget&&Z()&&X.key===" "&&X.preventDefault(),w&&w(X),X.target===X.currentTarget&&Z()&&X.key==="Enter"&&!u&&(X.preventDefault(),h&&h(X))}),K=Zt(X=>{f&&X.key===" "&&L.current&&V&&!X.defaultPrevented&&(ae.current=!1,L.current.stop(X,()=>{L.current.pulsate(X)})),P&&P(X),h&&X.target===X.currentTarget&&Z()&&X.key===" "&&!X.defaultPrevented&&h(X)});let ee=s;ee==="button"&&(N.href||N.to)&&(ee=m);const se={};ee==="button"?(se.type=F===void 0?"button":F,se.disabled=u):(!N.href&&!N.to&&(se.role="button"),u&&(se["aria-disabled"]=u));const Ce=xt(n,q,k),_e=O({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:_,focusVisible:V}),$e=moe(_e);return z.jsxs(hoe,O({as:ee,className:ve($e.root,l),ownerState:_e,onBlur:U,onClick:h,onContextMenu:ue,onFocus:Q,onKeyDown:te,onKeyUp:K,onMouseDown:oe,onMouseLeave:ke,onMouseUp:me,onDragLeave:ge,onTouchEnd:ie,onTouchMove:ye,onTouchStart:be,ref:Ce,tabIndex:u?-1:_,type:F},se,N,{children:[a,le?z.jsx(uoe,O({ref:j,center:i},D)):null]}))}),Zl=goe;function voe(e){return We("MuiListItemButton",e)}const yoe=Ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Vd=yoe,boe=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],xoe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},woe=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:l}=e,u=Oe({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},voe,n);return O({},n,u)},Coe=fe(Zl,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:xoe})(({theme:e,ownerState:t})=>O({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Vd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Vd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Soe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:l,dense:s=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:f=!1,className:m}=r,p=ce(r,boe),h=v.useContext(iu),y=v.useMemo(()=>({dense:s||h.dense||!1,alignItems:o,disableGutters:u}),[o,h.dense,s,u]),b=v.useRef(null);_t(()=>{i&&b.current&&b.current.focus()},[i]);const g=O({},r,{alignItems:o,dense:y.dense,disableGutters:u,divider:c,selected:f}),x=woe(g),w=xt(b,n);return z.jsx(iu.Provider,{value:y,children:z.jsx(Coe,O({ref:w,href:p.href||p.to,component:(p.href||p.to)&&a==="div"?"button":a,focusVisibleClassName:ve(x.focusVisible,d),ownerState:g,className:ve(x.root,m)},p,{classes:x,children:l}))})}),Ro=Soe;function Eoe(e){return We("MuiListItemIcon",e)}const fM=Ge("MuiListItemIcon",["root","alignItemsFlexStart"]),Poe=["className"],koe=e=>{const{alignItems:t,classes:n}=e;return Oe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Eoe,n)},$oe=fe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>O({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Ioe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=ce(r,Poe),a=v.useContext(iu),l=O({},r,{alignItems:a.alignItems}),s=koe(l);return z.jsx($oe,O({className:ve(s.root,o),ownerState:l,ref:n},i))}),Hn=Ioe;function Ooe(e){return We("MuiTypography",e)}Ge("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Moe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Roe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${pe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Oe(l,Ooe,a)},Toe=fe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>O({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})),pM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_oe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Foe=e=>_oe[e]||e,Aoe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTypography"}),o=Foe(r.color),i=Yp(O({},r,{color:o})),{align:a="inherit",className:l,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:m=pM}=i,p=ce(i,Moe),h=O({},i,{align:a,color:o,className:l,component:s,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:m}),y=s||(d?"p":m[f]||pM[f])||"span",b=Roe(h);return z.jsx(Toe,O({as:y,ref:n,ownerState:h,className:ve(b.root,l)},p))}),Xe=Aoe;function Loe(e){return We("MuiListItemText",e)}const Doe=Ge("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Jg=Doe,Noe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],zoe=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Oe({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Loe,t)},joe=fe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jg.primary}`]:t.primary},{[`& .${Jg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>O({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Boe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:l=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=ce(r,Noe),{dense:m}=v.useContext(iu);let p=s??o,h=c;const y=O({},r,{disableTypography:a,inset:l,primary:!!p,secondary:!!h,dense:m}),b=zoe(y);return p!=null&&p.type!==Xe&&!a&&(p=z.jsx(Xe,O({variant:m?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:p}))),h!=null&&h.type!==Xe&&!a&&(h=z.jsx(Xe,O({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:h}))),z.jsxs(joe,O({className:ve(b.root,i),ownerState:y,ref:n},f,{children:[p,h]}))}),Un=Boe,Hoe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ow(e){return`scale(${e}, ${e**2})`}const Uoe={entering:{opacity:1,transform:Ow(1)},entered:{opacity:1,transform:"none"}},Jb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zN=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:m,style:p,timeout:h="auto",TransitionComponent:y=uy}=t,b=ce(t,Hoe),g=Ts(),x=v.useRef(),w=Ur(),P=v.useRef(null),C=xt(P,i.ref,n),E=F=>N=>{if(F){const k=P.current;N===void 0?F(k):F(k,N)}},S=E(c),R=E((F,N)=>{bE(F);const{duration:k,delay:L,easing:j}=Yl({style:p,timeout:h,easing:a},{mode:"enter"});let B;h==="auto"?(B=w.transitions.getAutoHeightDuration(F.clientHeight),x.current=B):B=k,F.style.transition=[w.transitions.create("opacity",{duration:B,delay:L}),w.transitions.create("transform",{duration:Jb?B:B*.666,delay:L,easing:j})].join(","),s&&s(F,N)}),I=E(u),M=E(m),_=E(F=>{const{duration:N,delay:k,easing:L}=Yl({style:p,timeout:h,easing:a},{mode:"exit"});let j;h==="auto"?(j=w.transitions.getAutoHeightDuration(F.clientHeight),x.current=j):j=N,F.style.transition=[w.transitions.create("opacity",{duration:j,delay:k}),w.transitions.create("transform",{duration:Jb?j:j*.666,delay:Jb?k:k||j*.333,easing:L})].join(","),F.style.opacity=0,F.style.transform=Ow(.75),d&&d(F)}),D=E(f),T=F=>{h==="auto"&&g.start(x.current||0,F),r&&r(P.current,F)};return z.jsx(y,O({appear:o,in:l,nodeRef:P,onEnter:R,onEntered:I,onEntering:S,onExit:_,onExited:D,onExiting:M,addEndListener:T,timeout:h==="auto"?null:h},b,{children:(F,N)=>v.cloneElement(i,O({style:O({opacity:0,transform:Ow(.75),visibility:F==="exited"&&!l?"hidden":void 0},Uoe[F],p,i.props.style),ref:C},N))}))});zN.muiSupportAuto=!0;const ev=zN;var Lr="top",zo="bottom",jo="right",Dr="left",CE="auto",Jp=[Lr,zo,jo,Dr],qc="start",vp="end",Voe="clippingParents",jN="viewport",Wd="popper",Woe="reference",mM=Jp.reduce(function(e,t){return e.concat([t+"-"+qc,t+"-"+vp])},[]),BN=[].concat(Jp,[CE]).reduce(function(e,t){return e.concat([t,t+"-"+qc,t+"-"+vp])},[]),Goe="beforeRead",qoe="read",Koe="afterRead",Qoe="beforeMain",Yoe="main",Xoe="afterMain",Zoe="beforeWrite",Joe="write",eie="afterWrite",tie=[Goe,qoe,Koe,Qoe,Yoe,Xoe,Zoe,Joe,eie];function qi(e){return e?(e.nodeName||"").toLowerCase():null}function lo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lu(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function _o(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function SE(e){if(typeof ShadowRoot>"u")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nie(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!_o(i)||!qi(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function rie(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(s,u){return s[u]="",s},{});!_o(o)||!qi(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const oie={name:"applyStyles",enabled:!0,phase:"write",fn:nie,effect:rie,requires:["computeStyles"]};function ji(e){return e.split("-")[0]}var js=Math.max,tv=Math.min,Kc=Math.round;function Mw(){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 HN(){return!/^((?!chrome|android).)*safari/i.test(Mw())}function Qc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&_o(e)&&(o=e.offsetWidth>0&&Kc(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Kc(r.height)/e.offsetHeight||1);var a=lu(e)?lo(e):window,l=a.visualViewport,s=!HN()&&n,u=(r.left+(s&&l?l.offsetLeft:0))/o,c=(r.top+(s&&l?l.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function EE(e){var t=Qc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function UN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&SE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ha(e){return lo(e).getComputedStyle(e)}function iie(e){return["table","td","th"].indexOf(qi(e))>=0}function ss(e){return((lu(e)?e.ownerDocument:e.document)||window.document).documentElement}function qy(e){return qi(e)==="html"?e:e.assignedSlot||e.parentNode||(SE(e)?e.host:null)||ss(e)}function hM(e){return!_o(e)||Ha(e).position==="fixed"?null:e.offsetParent}function aie(e){var t=/firefox/i.test(Mw()),n=/Trident/i.test(Mw());if(n&&_o(e)){var r=Ha(e);if(r.position==="fixed")return null}var o=qy(e);for(SE(o)&&(o=o.host);_o(o)&&["html","body"].indexOf(qi(o))<0;){var i=Ha(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function em(e){for(var t=lo(e),n=hM(e);n&&iie(n)&&Ha(n).position==="static";)n=hM(n);return n&&(qi(n)==="html"||qi(n)==="body"&&Ha(n).position==="static")?t:n||aie(e)||t}function PE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lf(e,t,n){return js(e,tv(t,n))}function lie(e,t,n){var r=Lf(e,t,n);return r>n?n:r}function VN(){return{top:0,right:0,bottom:0,left:0}}function WN(e){return Object.assign({},VN(),e)}function GN(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var sie=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,WN(typeof t!="number"?t:GN(t,Jp))};function uie(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ji(n.placement),s=PE(l),u=[Dr,jo].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!a)){var d=sie(o.padding,n),f=EE(i),m=s==="y"?Lr:Dr,p=s==="y"?zo:jo,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],y=a[s]-n.rects.reference[s],b=em(i),g=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,x=h/2-y/2,w=d[m],P=g-f[c]-d[p],C=g/2-f[c]/2+x,E=Lf(w,C,P),S=s;n.modifiersData[r]=(t={},t[S]=E,t.centerOffset=E-C,t)}}function cie(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||UN(t.elements.popper,o)&&(t.elements.arrow=o))}const die={name:"arrow",enabled:!0,phase:"main",fn:uie,effect:cie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yc(e){return e.split("-")[1]}var fie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pie(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Kc(n*o)/o||0,y:Kc(r*o)/o||0}}function gM(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,m=f===void 0?0:f,p=a.y,h=p===void 0?0:p,y=typeof c=="function"?c({x:m,y:h}):{x:m,y:h};m=y.x,h=y.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),x=Dr,w=Lr,P=window;if(u){var C=em(n),E="clientHeight",S="clientWidth";if(C===lo(n)&&(C=ss(n),Ha(C).position!=="static"&&l==="absolute"&&(E="scrollHeight",S="scrollWidth")),C=C,o===Lr||(o===Dr||o===jo)&&i===vp){w=zo;var R=d&&C===P&&P.visualViewport?P.visualViewport.height:C[E];h-=R-r.height,h*=s?1:-1}if(o===Dr||(o===Lr||o===zo)&&i===vp){x=jo;var I=d&&C===P&&P.visualViewport?P.visualViewport.width:C[S];m-=I-r.width,m*=s?1:-1}}var M=Object.assign({position:l},u&&fie),_=c===!0?pie({x:m,y:h},lo(n)):{x:m,y:h};if(m=_.x,h=_.y,s){var D;return Object.assign({},M,(D={},D[w]=g?"0":"",D[x]=b?"0":"",D.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",D))}return Object.assign({},M,(t={},t[w]=g?h+"px":"",t[x]=b?m+"px":"",t.transform="",t))}function mie(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,s=l===void 0?!0:l,u={placement:ji(t.placement),variation:Yc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,gM(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gM(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mie,data:{}};var lh={passive:!0};function gie(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,s=lo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,lh)}),l&&s.addEventListener("resize",n.update,lh),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,lh)}),l&&s.removeEventListener("resize",n.update,lh)}}const vie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gie,data:{}};var yie={left:"right",right:"left",bottom:"top",top:"bottom"};function tg(e){return e.replace(/left|right|bottom|top/g,function(t){return yie[t]})}var bie={start:"end",end:"start"};function vM(e){return e.replace(/start|end/g,function(t){return bie[t]})}function kE(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function $E(e){return Qc(ss(e)).left+kE(e).scrollLeft}function xie(e,t){var n=lo(e),r=ss(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=HN();(u||!u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+$E(e),y:s}}function wie(e){var t,n=ss(e),r=kE(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=js(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=js(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+$E(e),s=-r.scrollTop;return Ha(o||n).direction==="rtl"&&(l+=js(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}function IE(e){var t=Ha(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function qN(e){return["html","body","#document"].indexOf(qi(e))>=0?e.ownerDocument.body:_o(e)&&IE(e)?e:qN(qy(e))}function Df(e,t){var n;t===void 0&&(t=[]);var r=qN(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=lo(r),a=o?[i].concat(i.visualViewport||[],IE(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Df(qy(a)))}function Rw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cie(e,t){var n=Qc(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function yM(e,t,n){return t===jN?Rw(xie(e,n)):lu(t)?Cie(t,n):Rw(wie(ss(e)))}function Sie(e){var t=Df(qy(e)),n=["absolute","fixed"].indexOf(Ha(e).position)>=0,r=n&&_o(e)?em(e):e;return lu(r)?t.filter(function(o){return lu(o)&&UN(o,r)&&qi(o)!=="body"}):[]}function Eie(e,t,n,r){var o=t==="clippingParents"?Sie(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(s,u){var c=yM(e,u,r);return s.top=js(c.top,s.top),s.right=tv(c.right,s.right),s.bottom=tv(c.bottom,s.bottom),s.left=js(c.left,s.left),s},yM(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function KN(e){var t=e.reference,n=e.element,r=e.placement,o=r?ji(r):null,i=r?Yc(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(o){case Lr:s={x:a,y:t.y-n.height};break;case zo:s={x:a,y:t.y+t.height};break;case jo:s={x:t.x+t.width,y:l};break;case Dr:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var u=o?PE(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case qc:s[u]=s[u]-(t[c]/2-n[c]/2);break;case vp:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function yp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,s=l===void 0?Voe:l,u=n.rootBoundary,c=u===void 0?jN:u,d=n.elementContext,f=d===void 0?Wd:d,m=n.altBoundary,p=m===void 0?!1:m,h=n.padding,y=h===void 0?0:h,b=WN(typeof y!="number"?y:GN(y,Jp)),g=f===Wd?Woe:Wd,x=e.rects.popper,w=e.elements[p?g:f],P=Eie(lu(w)?w:w.contextElement||ss(e.elements.popper),s,c,a),C=Qc(e.elements.reference),E=KN({reference:C,element:x,strategy:"absolute",placement:o}),S=Rw(Object.assign({},x,E)),R=f===Wd?S:C,I={top:P.top-R.top+b.top,bottom:R.bottom-P.bottom+b.bottom,left:P.left-R.left+b.left,right:R.right-P.right+b.right},M=e.modifiersData.offset;if(f===Wd&&M){var _=M[o];Object.keys(I).forEach(function(D){var T=[jo,zo].indexOf(D)>=0?1:-1,F=[Lr,zo].indexOf(D)>=0?"y":"x";I[D]+=_[F]*T})}return I}function Pie(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?BN:s,c=Yc(r),d=c?l?mM:mM.filter(function(p){return Yc(p)===c}):Jp,f=d.filter(function(p){return u.indexOf(p)>=0});f.length===0&&(f=d);var m=f.reduce(function(p,h){return p[h]=yp(e,{placement:h,boundary:o,rootBoundary:i,padding:a})[ji(h)],p},{});return Object.keys(m).sort(function(p,h){return m[p]-m[h]})}function kie(e){if(ji(e)===CE)return[];var t=tg(e);return[vM(e),t,vM(t)]}function $ie(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,h=n.allowedAutoPlacements,y=t.options.placement,b=ji(y),g=b===y,x=s||(g||!p?[tg(y)]:kie(y)),w=[y].concat(x).reduce(function(V,G){return V.concat(ji(G)===CE?Pie(t,{placement:G,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:h}):G)},[]),P=t.rects.reference,C=t.rects.popper,E=new Map,S=!0,R=w[0],I=0;I<w.length;I++){var M=w[I],_=ji(M),D=Yc(M)===qc,T=[Lr,zo].indexOf(_)>=0,F=T?"width":"height",N=yp(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),k=T?D?jo:Dr:D?zo:Lr;P[F]>C[F]&&(k=tg(k));var L=tg(k),j=[];if(i&&j.push(N[_]<=0),l&&j.push(N[k]<=0,N[L]<=0),j.every(function(V){return V})){R=M,S=!1;break}E.set(M,j)}if(S)for(var B=p?3:1,A=function(G){var Y=w.find(function(re){var le=E.get(re);if(le)return le.slice(0,G).every(function(J){return J})});if(Y)return R=Y,"break"},H=B;H>0;H--){var q=A(H);if(q==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const Iie={name:"flip",enabled:!0,phase:"main",fn:$ie,requiresIfExists:["offset"],data:{_skip:!1}};function bM(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xM(e){return[Lr,jo,zo,Dr].some(function(t){return e[t]>=0})}function Oie(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=yp(t,{elementContext:"reference"}),l=yp(t,{altBoundary:!0}),s=bM(a,r),u=bM(l,o,i),c=xM(s),d=xM(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Mie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oie};function Rie(e,t,n){var r=ji(e),o=[Dr,Lr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Dr,jo].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Tie(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=BN.reduce(function(c,d){return c[d]=Rie(d,t.rects,i),c},{}),l=a[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const _ie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tie};function Fie(e){var t=e.state,n=e.name;t.modifiersData[n]=KN({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Aie={name:"popperOffsets",enabled:!0,phase:"read",fn:Fie,data:{}};function Lie(e){return e==="x"?"y":"x"}function Die(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,m=f===void 0?!0:f,p=n.tetherOffset,h=p===void 0?0:p,y=yp(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),b=ji(t.placement),g=Yc(t.placement),x=!g,w=PE(b),P=Lie(w),C=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,R=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,I=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(C){if(i){var D,T=w==="y"?Lr:Dr,F=w==="y"?zo:jo,N=w==="y"?"height":"width",k=C[w],L=k+y[T],j=k-y[F],B=m?-S[N]/2:0,A=g===qc?E[N]:S[N],H=g===qc?-S[N]:-E[N],q=t.elements.arrow,V=m&&q?EE(q):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:VN(),Y=G[T],re=G[F],le=Lf(0,E[N],V[N]),J=x?E[N]/2-B-le-Y-I.mainAxis:A-le-Y-I.mainAxis,oe=x?-E[N]/2+B+le+re+I.mainAxis:H+le+re+I.mainAxis,ue=t.elements.arrow&&em(t.elements.arrow),ge=ue?w==="y"?ue.clientTop||0:ue.clientLeft||0:0,me=(D=M==null?void 0:M[w])!=null?D:0,ke=k+J-me-ge,be=k+oe-me,ie=Lf(m?tv(L,ke):L,k,m?js(j,be):j);C[w]=ie,_[w]=ie-k}if(l){var ye,U=w==="x"?Lr:Dr,Q=w==="x"?zo:jo,Z=C[P],ae=P==="y"?"height":"width",te=Z+y[U],K=Z-y[Q],ee=[Lr,Dr].indexOf(b)!==-1,se=(ye=M==null?void 0:M[P])!=null?ye:0,Ce=ee?te:Z-E[ae]-S[ae]-se+I.altAxis,_e=ee?Z+E[ae]+S[ae]-se-I.altAxis:K,$e=m&&ee?lie(Ce,Z,_e):Lf(m?Ce:te,Z,m?_e:K);C[P]=$e,_[P]=$e-Z}t.modifiersData[r]=_}}const Nie={name:"preventOverflow",enabled:!0,phase:"main",fn:Die,requiresIfExists:["offset"]};function zie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jie(e){return e===lo(e)||!_o(e)?kE(e):zie(e)}function Bie(e){var t=e.getBoundingClientRect(),n=Kc(t.width)/e.offsetWidth||1,r=Kc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hie(e,t,n){n===void 0&&(n=!1);var r=_o(t),o=_o(t)&&Bie(t),i=ss(t),a=Qc(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((qi(t)!=="body"||IE(i))&&(l=jie(t)),_o(t)?(s=Qc(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=$E(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Uie(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&o(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Vie(e){var t=Uie(e);return tie.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Wie(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gie(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var wM={placement:"bottom",modifiers:[],strategy:"absolute"};function CM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function qie(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?wM:o;return function(l,s,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},wM,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},d=[],f=!1,m={state:c,setOptions:function(b){var g=typeof b=="function"?b(c.options):b;h(),c.options=Object.assign({},i,c.options,g),c.scrollParents={reference:lu(l)?Df(l):l.contextElement?Df(l.contextElement):[],popper:Df(s)};var x=Vie(Gie([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(w){return w.enabled}),p(),m.update()},forceUpdate:function(){if(!f){var b=c.elements,g=b.reference,x=b.popper;if(CM(g,x)){c.rects={reference:Hie(g,em(x),c.options.strategy==="fixed"),popper:EE(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(I){return c.modifiersData[I.name]=Object.assign({},I.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var P=c.orderedModifiers[w],C=P.fn,E=P.options,S=E===void 0?{}:E,R=P.name;typeof C=="function"&&(c=C({state:c,options:S,name:R,instance:m})||c)}}}},update:Wie(function(){return new Promise(function(y){m.forceUpdate(),y(c)})}),destroy:function(){h(),f=!0}};if(!CM(l,s))return m;m.setOptions(u).then(function(y){!f&&u.onFirstUpdate&&u.onFirstUpdate(y)});function p(){c.orderedModifiers.forEach(function(y){var b=y.name,g=y.options,x=g===void 0?{}:g,w=y.effect;if(typeof w=="function"){var P=w({state:c,name:b,instance:m,options:x}),C=function(){};d.push(P||C)}})}function h(){d.forEach(function(y){return y()}),d=[]}return m}}var Kie=[vie,Aie,hie,oie,_ie,Iie,Nie,die,Mie],Qie=qie({defaultModifiers:Kie});const QN="base";function Yie(e){return`${QN}--${e}`}function Xie(e,t){return`${QN}-${e}-${t}`}function YN(e,t){const n=nN[t];return n?Yie(n):Xie(e,t)}function Zie(e,t){const n={};return t.forEach(r=>{n[r]=YN(e,r)}),n}const XN="Popper";function Jie(e){return YN(XN,e)}Zie(XN,["root"]);const eae=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tae=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nae(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 Tw(e){return typeof e=="function"?e():e}function rae(e){return e.nodeType!==void 0}const oae=()=>Oe({root:["root"]},tre(Jie)),iae={},aae=v.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:l,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:m={},slots:p={},TransitionProps:h}=t,y=ce(t,eae),b=v.useRef(null),g=xt(b,n),x=v.useRef(null),w=xt(x,f),P=v.useRef(w);_t(()=>{P.current=w},[w]),v.useImperativeHandle(f,()=>x.current,[]);const C=nae(c,a),[E,S]=v.useState(C),[R,I]=v.useState(Tw(o));v.useEffect(()=>{x.current&&x.current.forceUpdate()}),v.useEffect(()=>{o&&I(Tw(o))},[o]),_t(()=>{if(!R||!u)return;const F=L=>{S(L.placement)};let N=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{F(L)}}];s!=null&&(N=N.concat(s)),d&&d.modifiers!=null&&(N=N.concat(d.modifiers));const k=Qie(R,b.current,O({placement:C},d,{modifiers:N}));return P.current(k),()=>{k.destroy(),P.current(null)}},[R,l,s,u,d,C]);const M={placement:E};h!==null&&(M.TransitionProps=h);const _=oae(),D=(r=p.root)!=null?r:"div",T=Gi({elementType:D,externalSlotProps:m.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:_.root});return z.jsx(D,O({},T,{children:typeof i=="function"?i(M):i}))}),lae=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=iae,popperRef:m,style:p,transition:h=!1,slotProps:y={},slots:b={}}=t,g=ce(t,tae),[x,w]=v.useState(!0),P=()=>{w(!1)},C=()=>{w(!0)};if(!s&&!c&&(!h||x))return null;let E;if(i)E=i;else if(r){const I=Tw(r);E=I&&rae(I)?ln(I).body:ln(null).body}const S=!c&&s&&(!h||x)?"none":void 0,R=h?{in:c,onEnter:P,onExited:C}:void 0;return z.jsx(FN,{disablePortal:l,container:E,children:z.jsx(aae,O({anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:n,open:h?!x:c,placement:d,popperOptions:f,popperRef:m,slotProps:y,slots:b},g,{style:O({position:"fixed",top:0,left:0,display:S},p),TransitionProps:R,children:o}))})});var OE={};Object.defineProperty(OE,"__esModule",{value:!0});var ZN=OE.default=void 0,sae=cae(v),uae=CN;function JN(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(JN=function(r){return r?n:t})(e)}function cae(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=JN(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function dae(e){return Object.keys(e).length===0}function fae(e=null){const t=sae.useContext(uae.ThemeContext);return!t||dae(t)?e:t}ZN=OE.default=fae;const pae=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],mae=fe(lae,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hae=v.forwardRef(function(t,n){var r;const o=ZN(),i=qe({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:s,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:m,open:p,placement:h,popperOptions:y,popperRef:b,transition:g,slots:x,slotProps:w}=i,P=ce(i,pae),C=(r=x==null?void 0:x.root)!=null?r:s==null?void 0:s.Root,E=O({anchorEl:a,container:c,disablePortal:d,keepMounted:f,modifiers:m,open:p,placement:h,popperOptions:y,popperRef:b,transition:g},P);return z.jsx(mae,O({as:l,direction:o==null?void 0:o.direction,slots:{root:C},slotProps:w??u},E,{ref:n}))}),yu=hae;function gae(e){return We("MuiTooltip",e)}const vae=Ge("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ml=vae,yae=["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 bae(e){return Math.round(e*1e5)/1e5}const xae=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${pe(i.split("-")[0])}`],arrow:["arrow"]};return Oe(a,gae,t)},wae=fe(yu,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>O({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ml.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ml.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ml.arrow}`]:O({},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"] .${Ml.arrow}`]:O({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Cae=fe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${pe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>O({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:lt(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:`${bae(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ml.popper}[data-popper-placement*="left"] &`]:O({transformOrigin:"right center"},t.isRtl?O({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):O({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ml.popper}[data-popper-placement*="right"] &`]:O({transformOrigin:"left center"},t.isRtl?O({marginRight:"14px"},t.touch&&{marginRight:"24px"}):O({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ml.popper}[data-popper-placement*="top"] &`]:O({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ml.popper}[data-popper-placement*="bottom"] &`]:O({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Sae=fe("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:lt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let sh=!1;const SM=new fE;let Gd={x:0,y:0};function uh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Eae=v.forwardRef(function(t,n){var r,o,i,a,l,s,u,c,d,f,m,p,h,y,b,g,x,w,P;const C=qe({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:S,components:R={},componentsProps:I={},describeChild:M=!1,disableFocusListener:_=!1,disableHoverListener:D=!1,disableInteractive:T=!1,disableTouchListener:F=!1,enterDelay:N=100,enterNextDelay:k=0,enterTouchDelay:L=700,followCursor:j=!1,id:B,leaveDelay:A=0,leaveTouchDelay:H=1500,onClose:q,onOpen:V,open:G,placement:Y="bottom",PopperComponent:re,PopperProps:le={},slotProps:J={},slots:oe={},title:ue,TransitionComponent:ge=ev,TransitionProps:me}=C,ke=ce(C,yae),be=v.isValidElement(S)?S:z.jsx("span",{children:S}),ie=Ur(),ye=Uy(),[U,Q]=v.useState(),[Z,ae]=v.useState(null),te=v.useRef(!1),K=T||j,ee=Ts(),se=Ts(),Ce=Ts(),_e=Ts(),[$e,X]=Ul({controlled:G,default:!1,name:"Tooltip",state:"open"});let Ee=$e;const Le=Rt(B),Te=v.useRef(),Pe=Zt(()=>{Te.current!==void 0&&(document.body.style.WebkitUserSelect=Te.current,Te.current=void 0),_e.clear()});v.useEffect(()=>Pe,[Pe]);const Re=je=>{SM.clear(),sh=!0,X(!0),V&&!Ee&&V(je)},He=Zt(je=>{SM.start(800+A,()=>{sh=!1}),X(!1),q&&Ee&&q(je),ee.start(ie.transitions.duration.shortest,()=>{te.current=!1})}),it=je=>{te.current&&je.type!=="touchstart"||(U&&U.removeAttribute("title"),se.clear(),Ce.clear(),N||sh&&k?se.start(sh?k:N,()=>{Re(je)}):Re(je))},kt=je=>{se.clear(),Ce.start(A,()=>{He(je)})},{isFocusVisibleRef:Vt,onBlur:nt,onFocus:Sn,ref:en}=Hy(),[,$r]=v.useState(!1),Ct=je=>{nt(je),Vt.current===!1&&($r(!1),kt(je))},ut=je=>{U||Q(je.currentTarget),Sn(je),Vt.current===!0&&($r(!0),it(je))},St=je=>{te.current=!0;const gt=be.props;gt.onTouchStart&&gt.onTouchStart(je)},Wr=je=>{St(je),Ce.clear(),ee.clear(),Pe(),Te.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",_e.start(L,()=>{document.body.style.WebkitUserSelect=Te.current,it(je)})},Xo=je=>{be.props.onTouchEnd&&be.props.onTouchEnd(je),Pe(),Ce.start(H,()=>{He(je)})};v.useEffect(()=>{if(!Ee)return;function je(gt){(gt.key==="Escape"||gt.key==="Esc")&&He(gt)}return document.addEventListener("keydown",je),()=>{document.removeEventListener("keydown",je)}},[He,Ee]);const ua=xt(be.ref,en,Q,n);!ue&&ue!==0&&(Ee=!1);const Gr=v.useRef(),rn=je=>{const gt=be.props;gt.onMouseMove&&gt.onMouseMove(je),Gd={x:je.clientX,y:je.clientY},Gr.current&&Gr.current.update()},Lt={},En=typeof ue=="string";M?(Lt.title=!Ee&&En&&!D?ue:null,Lt["aria-describedby"]=Ee?Le:null):(Lt["aria-label"]=En?ue:null,Lt["aria-labelledby"]=Ee&&!En?Le:null);const rr=O({},Lt,ke,be.props,{className:ve(ke.className,be.props.className),onTouchStart:St,ref:ua},j?{onMouseMove:rn}:{}),fo={};F||(rr.onTouchStart=Wr,rr.onTouchEnd=Xo),D||(rr.onMouseOver=uh(it,rr.onMouseOver),rr.onMouseLeave=uh(kt,rr.onMouseLeave),K||(fo.onMouseOver=it,fo.onMouseLeave=kt)),_||(rr.onFocus=uh(ut,rr.onFocus),rr.onBlur=uh(Ct,rr.onBlur),K||(fo.onFocus=ut,fo.onBlur=Ct));const ll=v.useMemo(()=>{var je;let gt=[{name:"arrow",enabled:!!Z,options:{element:Z,padding:4}}];return(je=le.popperOptions)!=null&&je.modifiers&&(gt=gt.concat(le.popperOptions.modifiers)),O({},le.popperOptions,{modifiers:gt})},[Z,le]),Zo=O({},C,{isRtl:ye,arrow:E,disableInteractive:K,placement:Y,PopperComponentProp:re,touch:te.current}),bi=xae(Zo),po=(r=(o=oe.popper)!=null?o:R.Popper)!=null?r:wae,qr=(i=(a=(l=oe.transition)!=null?l:R.Transition)!=null?a:ge)!=null?i:ev,ca=(s=(u=oe.tooltip)!=null?u:R.Tooltip)!=null?s:Cae,xe=(c=(d=oe.arrow)!=null?d:R.Arrow)!=null?c:Sae,he=cc(po,O({},le,(f=J.popper)!=null?f:I.popper,{className:ve(bi.popper,le==null?void 0:le.className,(m=(p=J.popper)!=null?p:I.popper)==null?void 0:m.className)}),Zo),Ne=cc(qr,O({},me,(h=J.transition)!=null?h:I.transition),Zo),Fe=cc(ca,O({},(y=J.tooltip)!=null?y:I.tooltip,{className:ve(bi.tooltip,(b=(g=J.tooltip)!=null?g:I.tooltip)==null?void 0:b.className)}),Zo),Ze=cc(xe,O({},(x=J.arrow)!=null?x:I.arrow,{className:ve(bi.arrow,(w=(P=J.arrow)!=null?P:I.arrow)==null?void 0:w.className)}),Zo);return z.jsxs(v.Fragment,{children:[v.cloneElement(be,rr),z.jsx(po,O({as:re??yu,placement:Y,anchorEl:j?{getBoundingClientRect:()=>({top:Gd.y,left:Gd.x,right:Gd.x,bottom:Gd.y,width:0,height:0})}:U,popperRef:Gr,open:U?Ee:!1,id:Le,transition:!0},fo,he,{popperOptions:ll,children:({TransitionProps:je})=>z.jsx(qr,O({timeout:ie.transitions.duration.shorter},je,Ne,{children:z.jsxs(ca,O({},Fe,{children:[ue,E?z.jsx(xe,O({},Ze,{ref:ae})):null]}))}))}))]})}),Cr=Eae;function Pae(e){return We("MuiButton",e)}const kae=Ge("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"]),ch=kae,$ae=v.createContext({}),e4=$ae,Iae=v.createContext(void 0),Oae=Iae,Mae=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rae=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,l={root:["root",i,`${i}${pe(t)}`,`size${pe(o)}`,`${i}Size${pe(o)}`,`color${pe(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${pe(o)}`],endIcon:["icon","endIcon",`iconSize${pe(o)}`]},s=Oe(l,Pae,a);return O({},a,s)},t4=e=>O({},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}}),Tae=fe(Zl,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pe(n.color)}`],t[`size${pe(n.size)}`],t[`${n.variant}Size${pe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return O({},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":O({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(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})`:lt(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})`:lt(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:i,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":O({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ch.focusVisible}`]:O({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ch.disabled}`]:O({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 ${lt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ch.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ch.disabled}`]:{boxShadow:"none"}}),_ae=fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${pe(n.size)}`]]}})(({ownerState:e})=>O({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},t4(e))),Fae=fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${pe(n.size)}`]]}})(({ownerState:e})=>O({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},t4(e))),Aae=v.forwardRef(function(t,n){const r=v.useContext(e4),o=v.useContext(Oae),i=zy(r,t),a=qe({props:i,name:"MuiButton"}),{children:l,color:s="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:p,focusVisibleClassName:h,fullWidth:y=!1,size:b="medium",startIcon:g,type:x,variant:w="text"}=a,P=ce(a,Mae),C=O({},a,{color:s,component:u,disabled:d,disableElevation:f,disableFocusRipple:m,fullWidth:y,size:b,type:x,variant:w}),E=Rae(C),S=g&&z.jsx(_ae,{className:E.startIcon,ownerState:C,children:g}),R=p&&z.jsx(Fae,{className:E.endIcon,ownerState:C,children:p}),I=o||"";return z.jsxs(Tae,O({ownerState:C,className:ve(r.className,E.root,c,I),component:u,disabled:d,focusRipple:!m,focusVisibleClassName:ve(E.focusVisible,h),ref:n,type:x},P,{classes:E,children:[S,l,R]}))}),mn=Aae;function Lae(e){return We("MuiIconButton",e)}const Dae=Ge("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Nae=Dae,zae=["edge","children","className","color","disabled","disableFocusRipple","size"],jae=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${pe(r)}`,o&&`edge${pe(o)}`,`size${pe(i)}`]};return Oe(a,Lae,t)},Bae=fe(Zl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${pe(n.color)}`],n.edge&&t[`edge${pe(n.edge)}`],t[`size${pe(n.size)}`]]}})(({theme:e,ownerState:t})=>O({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})`:lt(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 n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return O({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&O({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":O({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(r.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)},{[`&.${Nae.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Hae=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=ce(r,zae),f=O({},r,{edge:o,color:l,disabled:s,disableFocusRipple:u,size:c}),m=jae(f);return z.jsx(Bae,O({className:ve(m.root,a),centerRipple:!0,focusRipple:!u,disabled:s,ref:n},d,{ownerState:f,children:i}))}),An=Hae;var ME={},e1={};const Uae=Bo(sne);var EM;function Dt(){return EM||(EM=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Uae}(e1)),e1}var Vae=Ot;Object.defineProperty(ME,"__esModule",{value:!0});var Ua=ME.default=void 0,Wae=Vae(Dt()),Gae=z;Ua=ME.default=(0,Wae.default)((0,Gae.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7zm-4 6h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"ListOutlined");var RE={},qae=Ot;Object.defineProperty(RE,"__esModule",{value:!0});var Ky=RE.default=void 0,Kae=qae(Dt()),Qae=z;Ky=RE.default=(0,Kae.default)((0,Qae.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var TE={},Yae=Ot;Object.defineProperty(TE,"__esModule",{value:!0});var Qy=TE.default=void 0,Xae=Yae(Dt()),Zae=z;Qy=TE.default=(0,Xae.default)((0,Zae.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");var _E={},Jae=Ot;Object.defineProperty(_E,"__esModule",{value:!0});var Yy=_E.default=void 0,ele=Jae(Dt()),tle=z;Yy=_E.default=(0,ele.default)((0,tle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var FE={},nle=Ot;Object.defineProperty(FE,"__esModule",{value:!0});var Xy=FE.default=void 0,rle=nle(Dt()),ole=z;Xy=FE.default=(0,rle.default)((0,ole.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var AE={},ile=Ot;Object.defineProperty(AE,"__esModule",{value:!0});var n4=AE.default=void 0,ale=ile(Dt()),lle=z;n4=AE.default=(0,ale.default)((0,lle.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var LE={},sle=Ot;Object.defineProperty(LE,"__esModule",{value:!0});var DE=LE.default=void 0,ule=sle(Dt()),cle=z;DE=LE.default=(0,ule.default)((0,cle.jsx)("path",{d:"M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1"}),"MenuRounded");var NE={},dle=Ot;Object.defineProperty(NE,"__esModule",{value:!0});var Zy=NE.default=void 0,fle=dle(Dt()),ple=z;Zy=NE.default=(0,fle.default)((0,ple.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard");function mle(e){return We("MuiAppBar",e)}Ge("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const hle=["className","color","enableColorOnDark","position"],gle=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${pe(t)}`,`position${pe(n)}`]};return Oe(o,mle,r)},dh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,vle=fe(Ko,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${pe(n.position)}`],t[`color${pe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return O({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&&O({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},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"&&O({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&O({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:dh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:dh(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:dh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:dh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),yle=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:l="fixed"}=r,s=ce(r,hle),u=O({},r,{color:i,position:l,enableColorOnDark:a}),c=gle(u);return z.jsx(vle,O({square:!0,component:"header",ownerState:u,elevation:4,className:ve(c.root,o,l==="fixed"&&"mui-fixed"),ref:n},s))}),Jy=yle,ble=Bee({createStyledComponent:fe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>qe({props:e,name:"MuiStack"})}),Nr=ble;function xle(e){return We("MuiToolbar",e)}Ge("MuiToolbar",["root","gutters","regular","dense"]);const wle=["className","component","disableGutters","variant"],Cle=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Oe({root:["root",!n&&"gutters",r]},xle,t)},Sle=fe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>O({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),Ele=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:l="regular"}=r,s=ce(r,wle),u=O({},r,{component:i,disableGutters:a,variant:l}),c=Cle(u);return z.jsx(Sle,O({as:i,className:ve(c.root,o),ref:n,ownerState:u},s))}),tm=Ele;function zE(e){return qe}const Ple=rt(z.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 kle(e){return We("MuiAvatar",e)}Ge("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $le=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Ile=["component","slots","slotProps"],Ole=["component"];function Mle(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:l}=t,s=ce(t,$le),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=i,f=ce(i,Ile),m=c[e]||r,p=RN(d[e],o),h=TN(O({className:n},s,{externalForwardedProps:e==="root"?f:void 0,externalSlotProps:p})),{props:{component:y},internalRef:b}=h,g=ce(h.props,Ole),x=xt(b,p==null?void 0:p.ref,t.ref),w=a?a(g):{},P=O({},o,w),C=e==="root"?y||u:y,E=cc(m,O({},e==="root"&&!u&&!c[e]&&l,e!=="root"&&!c[e]&&l,g,C&&{as:C},{ref:x}),P);return Object.keys(w).forEach(S=>{delete E[S]}),[m,E]}const Rle=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Tle=zE(),_le=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Oe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},kle,t)},Fle=fe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.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:O({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:O({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),Ale=fe("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Lle=fe(Ple,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Dle({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=v.useState(!1);return v.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&i("loaded")},l.onerror=()=>{a&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Nle=v.forwardRef(function(t,n){const r=Tle({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:l="div",slots:s={},slotProps:u={},imgProps:c,sizes:d,src:f,srcSet:m,variant:p="circular"}=r,h=ce(r,Rle);let y=null;const b=Dle(O({},c,{src:f,srcSet:m})),g=f||m,x=g&&b!=="error",w=O({},r,{colorDefault:!x,component:l,variant:p}),P=_le(w),[C,E]=Mle("img",{className:P.img,elementType:Ale,externalForwardedProps:{slots:s,slotProps:{img:O({},c,u.img)}},additionalProps:{alt:o,src:f,srcSet:m,sizes:d},ownerState:w});return x?y=z.jsx(C,O({},E)):i||i===0?y=i:g&&o?y=o[0]:y=z.jsx(Lle,{ownerState:w,className:P.fallback}),z.jsx(Fle,O({as:l,ownerState:w,className:ve(P.root,a),ref:n},h,{children:y}))}),e0=Nle;var jE={},zle=Ot;Object.defineProperty(jE,"__esModule",{value:!0});var BE=jE.default=void 0,jle=zle(Dt()),Ble=z;BE=jE.default=(0,jle.default)((0,Ble.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function Hle(e){return We("MuiLink",e)}const Ule=Ge("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Vle=Ule,r4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wle=e=>r4[e]||e,Gle=({theme:e,ownerState:t})=>{const n=Wle(t.color),r=Wc(e,`palette.${n}`,!1)||t.color,o=Wc(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:lt(r,.4)},qle=Gle,Kle=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Qle=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${pe(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Oe(i,Hle,t)},Yle=fe(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${pe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>O({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&O({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:qle({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"},[`&.${Vle.focusVisible}`]:{outline:"auto"}})),Xle=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:f}=r,m=ce(r,Kle),{isFocusVisibleRef:p,onBlur:h,onFocus:y,ref:b}=Hy(),[g,x]=v.useState(!1),w=xt(n,b),P=R=>{h(R),p.current===!1&&x(!1),l&&l(R)},C=R=>{y(R),p.current===!0&&x(!0),s&&s(R)},E=O({},r,{color:i,component:a,focusVisible:g,underline:c,variant:d}),S=Qle(E);return z.jsx(Yle,O({color:i,className:ve(S.root,o),classes:u,component:a,onBlur:P,onFocus:C,ref:w,ownerState:E,variant:d,sx:[...Object.keys(r4).includes(i)?[]:[{color:i}],...Array.isArray(f)?f:[f]]},m))}),zr=Xle,o4=v.createContext(void 0);function dt(){const e=v.useContext(o4);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
`));return e}const i4=v.createContext(void 0),Be=()=>{const e=v.useContext(i4);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},a4=v.createContext(void 0);function us(){const e=v.useContext(a4);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
`));return e}const PM={};function HE(e,t){const n=v.useRef(PM);return n.current===PM&&(n.current=e(t)),n}const Zle=[];function l4(e){v.useEffect(e,Zle)}const ra=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Jle=Object.is;function s4(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Jle(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}ra(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function ese(e){return e.acceptsApiRef}function kM(e,t){return ese(t)?t(e):t(e.current.state)}const tse=Object.is,UE=s4,nse=()=>({state:null,equals:null,selector:null}),De=(e,t,n=tse)=>{const r=HE(nse),o=r.current.selector!==null,[i,a]=v.useState(o?null:kM(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,l4(()=>e.current.store.subscribe(()=>{const l=kM(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,a(l))})),i};function ft(e){return We("MuiDataGrid",e)}const ne=Ge("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var nv="NOT_FOUND";function rse(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:nv},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function ose(e,t){var n=[];function r(l){var s=n.findIndex(function(c){return t(l,c.key)});if(s>-1){var u=n[s];return s>0&&(n.splice(s,1),n.unshift(u)),u.value}return nv}function o(l,s){r(l)===nv&&(n.unshift({key:l,value:s}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var ise=function(t,n){return t===n};function ase(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function t0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?ise:r,i=n.maxSize,a=i===void 0?1:i,l=n.resultEqualityCheck,s=ase(o),u=a===1?rse(s):ose(a,s);function c(){var d=u.get(arguments);if(d===nv){if(d=e.apply(null,arguments),l){var f=u.getEntries(),m=f.find(function(p){return l(p.value,d)});m&&(d=m.value)}u.put(arguments,d)}return d}return c.clearCache=function(){return u.clear()},c}function lse(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function sse(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];var u=0,c,d={memoizeOptions:void 0},f=l.pop();if(typeof f=="object"&&(d=f,f=l.pop()),typeof f!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof f+"]");var m=d,p=m.memoizeOptions,h=p===void 0?n:p,y=Array.isArray(h)?h:[h],b=lse(l),g=e.apply(void 0,[function(){return u++,f.apply(null,arguments)}].concat(y)),x=e(function(){for(var P=[],C=b.length,E=0;E<C;E++)P.push(b[E].apply(null,arguments));return c=g.apply(null,P),c});return Object.assign(x,{resultFunc:f,memoizedResultFunc:g,dependencies:b,lastResult:function(){return c},recomputations:function(){return u},resetRecomputations:function(){return u=0}}),x};return o}var use=sse(t0);const cse={cache:new WeakMap};ra(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function qu(e){return"current"in e&&"instanceId"in e.current}const Ku={id:"default"},tt=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&t&&n&&r&&o&&i)l=(s,u)=>{const c=qu(s),d=u??(c?s.current.instanceId:Ku),f=c?s.current.state:s,m=e(f,d),p=t(f,d),h=n(f,d),y=r(f,d),b=o(f,d);return i(m,p,h,y,b)};else if(e&&t&&n&&r&&o)l=(s,u)=>{const c=qu(s),d=u??(c?s.current.instanceId:Ku),f=c?s.current.state:s,m=e(f,d),p=t(f,d),h=n(f,d),y=r(f,d);return o(m,p,h,y)};else if(e&&t&&n&&r)l=(s,u)=>{const c=qu(s),d=u??(c?s.current.instanceId:Ku),f=c?s.current.state:s,m=e(f,d),p=t(f,d),h=n(f,d);return r(m,p,h)};else if(e&&t&&n)l=(s,u)=>{const c=qu(s),d=u??(c?s.current.instanceId:Ku),f=c?s.current.state:s,m=e(f,d),p=t(f,d);return n(m,p)};else if(e&&t)l=(s,u)=>{const c=qu(s),d=u??(c?s.current.instanceId:Ku),f=c?s.current.state:s,m=e(f,d);return t(m)};else throw new Error("Missing arguments");return l.acceptsApiRef=!0,l},Jt=(...e)=>{const t=(...n)=>{var r,o;const[i,a]=n,l=qu(i),s=l?i.current.instanceId:a??Ku,u=l?i.current.state:i,{cache:c}=cse;if(c.get(s)&&(r=c.get(s))!=null&&r.get(e)){var d;return(d=c.get(s))==null?void 0:d.get(e)(u,s)}const f=use(...e);return c.get(s)||c.set(s,new Map),(o=c.get(s))==null||o.set(e,f),f(u,s)};return t.acceptsApiRef=!0,t},Bs=e=>e.columns,_a=tt(Bs,e=>e.orderedFields),vd=tt(Bs,e=>e.lookup),Bi=Jt(_a,vd,(e,t)=>e.map(n=>t[n])),ui=tt(Bs,e=>e.columnVisibilityModel),er=Jt(Bi,ui,(e,t)=>e.filter(n=>t[n.field]!==!1)),n0=Jt(er,e=>e.map(t=>t.field)),Xc=Jt(er,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),VE=tt(er,Xc,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),u4=Jt(Bi,e=>e.filter(t=>t.filterable)),dse=Jt(Bi,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),r0=e=>e.columnGrouping,fse=Jt(r0,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),c4=Jt(r0,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),pse=Jt(r0,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),nm=tt(r0,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),gi=e=>e.rows,o0=tt(gi,e=>e.totalRowCount),mse=tt(gi,e=>e.loading),hse=tt(gi,e=>e.totalTopLevelRowCount),$a=tt(gi,e=>e.dataRowIdToModelLookup),rv=tt(gi,e=>e.dataRowIdToIdLookup),li=tt(gi,e=>e.tree),gse=tt(gi,e=>e.groupingName),$M=tt(gi,e=>e.treeDepths),i0=Jt(gi,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),ff=tt(gi,e=>e.dataRowIds),vse=tt(gi,e=>e==null?void 0:e.additionalRowGroups),yd=Jt(vse,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}})}}),yse=tt(yd,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),d4=()=>{var e;const t=us(),n=Be(),r=De(t,er),o=De(t,o0),i=De(t,nm),a=De(t,yse);let l="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(l="treegrid"),{role:l,"aria-colcount":r.length,"aria-rowcount":i+1+a+o,"aria-multiselectable":!n.disableMultipleRowSelection}},bse=e=>{const{classes:t}=e;return Oe({root:["main"]},ft,t)},xse=Dn("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),wse=v.forwardRef((e,t)=>{var n;const r=Be(),o=bse(r),i=(n=r.experimentalFeatures)!=null&&n.ariaV7?d4:null,a=typeof i=="function"?i():null;return z.jsx(xse,O({ref:t,className:o.root,ownerState:r},a,{children:e.children}))}),f4=e=>e.sorting,WE=tt(f4,e=>e.sortedRows),GE=Jt(WE,$a,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),wo=tt(f4,e=>e.sortModel),Cse=Jt(wo,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),qE=e=>e.filter,Yn=tt(qE,e=>e.filterModel);tt(Yn,e=>e.quickFilterValues);const Sse=e=>e.visibleRowsLookup,p4=tt(qE,e=>e.filteredRowsLookup);tt(qE,e=>e.filteredDescendantCountLookup);const cs=Jt(Sse,GE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Nf=Jt(cs,e=>e.map(t=>t.id)),Ese=Jt(p4,GE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Pse=Jt(Ese,e=>e.map(t=>t.id)),m4=Jt(cs,li,i0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),h4=tt(cs,e=>e.length),a0=tt(m4,e=>e.length),kse=Jt(Yn,vd,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.field)return!1;const a=t[r.field];if(!(a!=null&&a.filterOperators)||(a==null||(o=a.filterOperators)==null?void 0:o.length)===0)return!1;const l=a.filterOperators.find(s=>s.value===r.operator);return l?!l.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),$se=Jt(kse,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),l0=e=>e.focus,Xr=tt(l0,e=>e.cell),Ise=tt(l0,e=>e.columnHeader);tt(l0,e=>e.columnHeaderFilter);const ov=tt(l0,e=>e.columnGroupHeader),s0=e=>e.tabIndex,iv=tt(s0,e=>e.cell),g4=tt(s0,e=>e.columnHeader);tt(s0,e=>e.columnHeaderFilter);const Ose=tt(s0,e=>e.columnGroupHeader),KE=e=>e.density,Mse=tt(KE,e=>e.value),bd=tt(KE,e=>e.factor),_w=e=>e.columnMenu;function Rse(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=us(),i=Be(),a=v.useRef(null),l=De(o,er),s=De(o,$se),u=De(o,Cse),c=De(o,Xc),d=De(o,g4),f=De(o,iv),m=De(o,Ose),p=De(o,Ise),h=De(o,ov),y=De(o,bd),b=De(o,nm),g=De(o,_w),x=De(o,ui),w=De(o,pse),P=!(m===null&&d===null&&f===null);_t(()=>{o.current.computeSizeAndPublishResizeEvent();const I=a.current;if(typeof ResizeObserver>"u")return()=>{};let M;const _=new ResizeObserver(()=>{M=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return I&&_.observe(I),()=>{M&&window.cancelAnimationFrame(M),I&&_.unobserve(I)}},[o]);const C=v.useRef(null),E=v.useRef(null),S=v.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:E,columnHeadersElementRef:C,virtualScrollerRef:S,mainElementRef:a});const R=!!o.current.getRootDimensions();return z.jsxs(wse,{ref:a,children:[z.jsx(i.slots.columnHeaders,O({ref:E,innerRef:C,visibleColumns:l,filterColumnLookup:s,sortColumnLookup:u,columnPositions:c,columnHeaderTabIndexState:d,columnGroupHeaderTabIndexState:m,columnHeaderFocus:p,columnGroupHeaderFocus:h,densityFactor:y,headerGroupingMaxDepth:b,columnMenuState:g,columnVisibility:x,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:P},n)),R&&z.jsx(t,{ref:S}),r]})}function Tse(){var e;const t=Be();return t.hideFooter?null:z.jsx(t.slots.footer,O({},(e=t.slotProps)==null?void 0:e.footer))}const wr="auto-generated-group-node-root",Sc=Symbol("mui.id_autogenerated"),_se=()=>({type:"group",id:wr,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Fse(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
`))}const av=(e,t,n)=>{const r=t?t(e):e.id;return Fse(r,e,n),r},ng=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let l=0;l<e.length;l+=1){const s=e[l],u=av(s,t);i[u]=s,a[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:a,dataRowIdToModelLookup:i}},v4=({tree:e,rowCountProp:t=0})=>{const n=e[wr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},y4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},O({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:v4({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},bp=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,QE=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!bp(e[a]))&&o.push(a);const l=QE(e,a,n);for(let s=0;s<l.length;s+=1)o.push(l[s])}return!n&&r.footerId!=null&&o.push(r.footerId),o},Ase=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(f=>{const m=av(f,t,"A row was provided without id when calling updateRows():");a.has(m)?a.set(m,O({},a.get(m),f)):a.set(m,f)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:O({},e.updates.idToActionLookup)},s=O({},e.dataRowIdToModelLookup),u=O({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((f,m)=>{const p=l.idToActionLookup[m];if(f._action==="delete"){if(p==="remove"||!s[m])return;p!=null&&(c[p][m]=!0),l.actions.remove.push(m),delete s[m],delete u[m];return}const h=s[m];if(h){p==="remove"?(c.remove[m]=!0,l.actions.modify.push(m)):p==null&&l.actions.modify.push(m),s[m]=O({},h,f);return}p==="remove"?(c.remove[m]=!0,l.actions.insert.push(m)):p==null&&l.actions.insert.push(m),s[m]=f,u[m]=m});const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const m=d[f],p=c[m];Object.keys(p).length>0&&(l.actions[m]=l.actions[m].filter(h=>!p[h]))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function b4(e){var t,n;const r=yd(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0;return{top:o,bottom:i}}function x4(e,t){const n=bd(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const Lse=Dn("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),Dse=Dn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Nse=e=>{const{classes:t}=e;return Oe({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ft,t)};function zse(e){var t,n;const r=dt(),o=Be(),[i,a]=v.useState(()=>{var c,d;return(c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null}),l=v.useCallback(()=>{var c,d;a((c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null)},[r]);_t(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let s=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&s===0&&(s=x4(r,o.rowHeight));const u=Nse(O({},e,{classes:o.classes}));return i?z.jsx(Lse,{className:ve(u.root),overlayType:e.overlayType,children:z.jsx(Dse,O({className:ve(u.inner),style:{height:s,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function jse(){const e=dt(),t=Be(),n=De(e,o0),r=De(e,h4),o=De(e,mse),i=!o&&n===0,a=!o&&n>0&&r===0;let l=null,s="";if(i){var u;l=z.jsx(t.slots.noRowsOverlay,O({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),s="noRowsOverlay"}if(a){var c;l=z.jsx(t.slots.noResultsOverlay,O({},(c=t.slotProps)==null?void 0:c.noResultsOverlay)),s="noResultsOverlay"}if(o){var d;l=z.jsx(t.slots.loadingOverlay,O({},(d=t.slotProps)==null?void 0:d.loadingOverlay)),s="loadingOverlay"}return l===null?null:z.jsx(zse,{overlayType:s,children:l})}function u0(e){return v.memo(e,s4)}let t1;function Bse(){return t1===void 0&&document.createElement("div").focus({get preventScroll(){return t1=!0,!1}}),t1}var Ki=function(e){return e.Cell="cell",e.Row="row",e}(Ki||{}),Mt=function(e){return e.Edit="edit",e.View="view",e}(Mt||{}),Bt=function(e){return e.Edit="edit",e.View="view",e}(Bt||{}),Jn=function(e){return e.And="and",e.Or="or",e}(Jn||{}),ya=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(ya||{}),ri=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ri||{}),pl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(pl||{}),ba=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ba||{});function w4(e){return e.field!==void 0}function Hse(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Use(e,t){return e.closest(`.${t}`)}function YE(e){return e.replace(/["\\]/g,"\\$&")}function Vse(e,t){return e.querySelector(`[role="columnheader"][data-field="${YE(t)}"]`)}function C4(e){return`.${ne.row}[data-id="${YE(String(e))}"]`}function Wse(e,t){return e.querySelector(C4(t))}function Gse(e,{id:t,field:n}){const r=C4(t),o=`.${ne.cell}[data-field="${YE(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function rm(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function ot(e,t,n){const r=v.useRef(!0);v.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class dc extends Error{}function qse(e,t){const{getRowId:n}=t,r=v.useCallback(p=>({field:p,colDef:e.current.getColumn(p)}),[e]),o=v.useCallback(p=>{const h=e.current.getRow(p);if(!h)throw new dc(`No row with id #${p} found`);return{id:p,columns:e.current.getAllColumns(),row:h}},[e]),i=v.useCallback((p,h)=>{const y=e.current.getRow(p),b=e.current.getRowNode(p);if(!y||!b)throw new dc(`No row with id #${p} found`);const g=Xr(e),x=iv(e);return{id:p,field:h,row:y,rowNode:b,value:y[h],colDef:e.current.getColumn(h),cellMode:e.current.getCellMode(p,h),api:e.current,hasFocus:g!==null&&g.field===h&&g.id===p,tabIndex:x&&x.field===h&&x.id===p?0:-1}},[e]),a=v.useCallback((p,h)=>{const y=e.current.getColumn(h),b=e.current.getCellValue(p,h),g=e.current.getRow(p),x=e.current.getRowNode(p);if(!g||!x)throw new dc(`No row with id #${p} found`);const w=Xr(e),P=iv(e),C={id:p,field:h,row:g,rowNode:x,colDef:y,cellMode:e.current.getCellMode(p,h),hasFocus:w!==null&&w.field===h&&w.id===p,tabIndex:P&&P.field===h&&P.id===p?0:-1,value:b,formattedValue:b,isEditable:!1};return y&&y.valueFormatter&&(C.formattedValue=y.valueFormatter({id:p,field:C.field,value:C.value,api:e.current})),C.isEditable=y&&e.current.isCellEditable(C),C},[e]),l=v.useCallback((p,h)=>{const y=e.current.getColumn(h);if(!y||!y.valueGetter){const b=e.current.getRow(p);if(!b)throw new dc(`No row with id #${p} found`);return b[h]}return y.valueGetter(i(p,h))},[e,i]),s=v.useCallback((p,h)=>{var y;const b=Sc in p?p[Sc]:(y=n==null?void 0:n(p))!=null?y:p.id,g=h.field;return!h||!h.valueGetter?p[g]:h.valueGetter(i(b,g))},[i,n]),u=v.useCallback((p,h)=>{var y;const b=s(p,h);if(!h||!h.valueFormatter)return b;const g=(y=n?n(p):p.id)!=null?y:p[Sc],x=h.field;return h.valueFormatter({id:g,field:x,value:b,api:e.current})},[e,n,s]),c=v.useCallback(p=>e.current.rootElementRef.current?Vse(e.current.rootElementRef.current,p):null,[e]),d=v.useCallback(p=>e.current.rootElementRef.current?Wse(e.current.rootElementRef.current,p):null,[e]),f=v.useCallback((p,h)=>e.current.rootElementRef.current?Gse(e.current.rootElementRef.current,{id:p,field:h}):null,[e]);ot(e,{getCellValue:l,getCellParams:a,getCellElement:f,getRowValue:s,getRowFormattedValue:u,getRowParams:o,getRowElement:d,getColumnHeaderParams:r,getColumnHeaderElement:c},"public")}const Kse=["changeReason","unstable_updateValueOnRender"],Qse=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],Yse=["changeReason","unstable_updateValueOnRender"],lv={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:Mt.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Xse=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:i,classes:a}=e,l={root:["cell",`cell--text${pe(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",i&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return Oe(l,ft,a)},Zse=v.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=dt(),a=Be(),l=n.field,s=De(i,()=>{try{const R=i.current.getCellParams(r,l);return R.api=i.current,R}catch(S){if(S instanceof dc)return lv;throw S}},UE),u=De(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:l}));if(s===lv)return null;const{cellMode:c,hasFocus:d,isEditable:f,value:m,formattedValue:p}=s,h=n.type==="actions",y=(c==="view"||!f)&&!h?s.tabIndex:-1,{classes:b,getCellClassName:g}=a,x=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:l});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(s):n.cellClassName),g&&x.push(g(s));let w;if(o==null&&n.renderCell&&(w=n.renderCell(s),x.push(ne["cell--withRenderer"]),x.push(b==null?void 0:b["cell--withRenderer"])),o!=null&&n.renderEditCell){const S=i.current.getRowWithUpdatedValues(r,n.field),R=ce(o,Kse),I=O({},s,{row:S},R);w=n.renderEditCell(I),x.push(ne["cell--editing"]),x.push(b==null?void 0:b["cell--editing"])}const{slots:P}=a,C=P.cell,E=O({},e,{ref:t,field:l,formattedValue:p,hasFocus:d,isEditable:f,isSelected:u,value:m,cellMode:c,children:w,tabIndex:y,className:ve(x)});return v.createElement(C,E)}),Jse=u0(Zse),eue=v.forwardRef((e,t)=>{var n,r,o,i;const{column:a,rowId:l,editCellState:s,align:u,colIndex:c,height:d,width:f,className:m,showRightBorder:p,colSpan:h,disableDragEvents:y,isNotVisible:b,onClick:g,onDoubleClick:x,onMouseDown:w,onMouseUp:P,onMouseOver:C,onKeyDown:E,onKeyUp:S,onDragEnter:R,onDragOver:I,style:M}=e,_=ce(e,Qse),D=dt(),T=Be(),F=a.field,N=De(D,()=>{try{const ee=D.current.getCellParams(l,F);return ee.api=D.current,ee}catch(K){if(K instanceof dc)return lv;throw K}},UE),k=De(D,()=>D.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:F})),{cellMode:L,hasFocus:j,isEditable:B,value:A,formattedValue:H}=N,q=a.type==="actions"&&((n=(r=a).getActions)==null?void 0:n.call(r,D.current.getRowParams(l)).some(K=>!K.props.disabled)),V=(L==="view"||!B)&&!q?N.tabIndex:-1,{classes:G,getCellClassName:Y}=T,re=D.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:F});a.cellClassName&&re.push(typeof a.cellClassName=="function"?a.cellClassName(N):a.cellClassName),Y&&re.push(Y(N));const le=H??A,J=v.useRef(null),oe=xt(t,J),ue=v.useRef(null),ge=(o=T.unstable_cellSelection)!=null?o:!1,me={align:u,showRightBorder:p,isEditable:B,classes:T.classes,isSelected:k,isSelectionMode:ge},ke=Xse(me),be=v.useCallback(K=>ee=>{const se=D.current.getCellParams(l,F||"");D.current.publishEvent(K,se,ee),P&&P(ee)},[D,F,P,l]),ie=v.useCallback(K=>ee=>{const se=D.current.getCellParams(l,F||"");D.current.publishEvent(K,se,ee),w&&w(ee)},[D,F,w,l]),ye=v.useCallback((K,ee)=>se=>{if(!D.current.getRow(l))return;const Ce=D.current.getCellParams(l,F||"");D.current.publishEvent(K,Ce,se),ee&&ee(se)},[D,F,l]),U=v.useMemo(()=>O(b?{padding:0,opacity:0,width:0,border:0}:{minWidth:f,maxWidth:f,minHeight:d,maxHeight:d==="auto"?"none":d},M),[f,d,b,M]);if(v.useEffect(()=>{if(!j||L===Mt.Edit)return;const K=ln(D.current.rootElementRef.current);if(J.current&&!J.current.contains(K.activeElement)){const ee=J.current.querySelector('[tabindex="0"]'),se=ue.current||ee||J.current;if(Bse())se.focus({preventScroll:!0});else{const Ce=D.current.getScrollPosition();se.focus(),D.current.scroll(Ce)}}},[j,L,D]),N===lv)return null;let Q=_.onFocus,Z;if(s==null&&a.renderCell&&(Z=a.renderCell(N),re.push(ne["cell--withRenderer"]),re.push(G==null?void 0:G["cell--withRenderer"])),s!=null&&a.renderEditCell){const K=D.current.getRowWithUpdatedValues(l,a.field),ee=ce(s,Yse),se=O({},N,{row:K},ee);Z=a.renderEditCell(se),re.push(ne["cell--editing"]),re.push(G==null?void 0:G["cell--editing"])}if(Z===void 0){const K=le==null?void 0:le.toString();Z=z.jsx("div",{className:ke.content,title:K,role:"presentation",children:K})}v.isValidElement(Z)&&q&&(Z=v.cloneElement(Z,{focusElementRef:ue}));const ae=y?null:{onDragEnter:ye("cellDragEnter",R),onDragOver:ye("cellDragOver",I)},te=(i=T.experimentalFeatures)==null?void 0:i.ariaV7;return z.jsx("div",O({ref:oe,className:ve(m,re,ke.root),role:te?"gridcell":"cell","data-field":F,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":h,style:U,tabIndex:V,onClick:ye("cellClick",g),onDoubleClick:ye("cellDoubleClick",x),onMouseOver:ye("cellMouseOver",C),onMouseDown:ie("cellMouseDown"),onMouseUp:be("cellMouseUp"),onKeyDown:ye("cellKeyDown",E),onKeyUp:ye("cellKeyUp",S)},ae,_,{onFocus:Q,children:Z}))}),Fw=u0(eue),tue=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],nue=e=>{const{classes:t}=e;return Oe({root:["booleanCell"]},ft,t)};function rue(e){const{value:t}=e,n=ce(e,tue),r=dt(),o=Be(),i={classes:o.classes},a=nue(i),l=v.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return z.jsx(l,O({fontSize:"small",className:a.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const oue=v.memo(rue),iue=e=>bp(e.rowNode)?"":z.jsx(oue,O({},e)),aue=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],lue=e=>{const{classes:t}=e;return Oe({root:["editBooleanCell"]},ft,t)};function sue(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:a,onValueChange:l}=e,s=ce(e,aue),u=dt(),c=v.useRef(null),d=Rt(),[f,m]=v.useState(r),p=Be(),h={classes:p.classes},y=lue(h),b=v.useCallback(async g=>{const x=g.target.checked;l&&await l(g,x),m(x),await u.current.setEditCellValue({id:n,field:o,value:x},g)},[u,o,n,l]);return v.useEffect(()=>{m(r)},[r]),_t(()=>{a&&c.current.focus()},[a]),z.jsx("label",O({htmlFor:d,className:ve(y.root,i)},s,{children:z.jsx(p.slots.baseCheckbox,O({id:d,inputRef:c,checked:!!f,onChange:b,size:"small"},(t=p.slotProps)==null?void 0:t.baseCheckbox))}))}const uue=e=>z.jsx(sue,O({},e));function cue(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=pE({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:l,max:s=r}=a?i:e,u=l&&Number(l)>s?`${s}+`:l;return{badgeContent:l,invisible:a,max:s,displayValue:u}}const due=["onChange","maxRows","minRows","style","value"];function fh(e){return parseInt(e,10)||0}const fue={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function pue(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const mue=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l}=t,s=ce(t,due),{current:u}=v.useRef(l!=null),c=v.useRef(null),d=xt(n,c),f=v.useRef(null),m=v.useCallback(()=>{const y=c.current,g=mi(y).getComputedStyle(y);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=f.current;x.style.width=g.width,x.value=y.value||t.placeholder||"x",x.value.slice(-1)===`
`&&(x.value+=" ");const w=g.boxSizing,P=fh(g.paddingBottom)+fh(g.paddingTop),C=fh(g.borderBottomWidth)+fh(g.borderTopWidth),E=x.scrollHeight;x.value="x";const S=x.scrollHeight;let R=E;i&&(R=Math.max(Number(i)*S,R)),o&&(R=Math.min(Number(o)*S,R)),R=Math.max(R,S);const I=R+(w==="border-box"?P+C:0),M=Math.abs(R-E)<=1;return{outerHeightStyle:I,overflowing:M}},[o,i,t.placeholder]),p=v.useCallback(()=>{const y=m();if(pue(y))return;const b=c.current;b.style.height=`${y.outerHeightStyle}px`,b.style.overflow=y.overflowing?"hidden":""},[m]);_t(()=>{const y=()=>{p()};let b;const g=fd(y),x=c.current,w=mi(x);w.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(y),P.observe(x)),()=>{g.clear(),cancelAnimationFrame(b),w.removeEventListener("resize",g),P&&P.disconnect()}},[m,p]),_t(()=>{p()});const h=y=>{u||p(),r&&r(y)};return z.jsxs(v.Fragment,{children:[z.jsx("textarea",O({value:l,onChange:h,ref:d,rows:i,style:a},s)),z.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:O({},fue.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function IM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function S4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=IM(c));const d=c?l.filter(f=>{let m=(i||u)(f);return n&&(m=m.toLowerCase()),t&&(m=IM(m)),o==="start"?m.indexOf(c)===0:m.indexOf(c)>-1}):l;return typeof r=="number"?d.slice(0,r):d}}function ph(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const hue=S4(),OM=5,gue=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function vue(e){const{unstable_isActiveElementInListbox:t=gue,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:s=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:p=!1,disableListWrap:h=!1,filterOptions:y=hue,filterSelectedOptions:b=!1,freeSolo:g=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:P=xe=>{var he;return(he=xe.label)!=null?he:xe},groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:S,includeInputInList:R=!1,inputValue:I,isOptionEqualToValue:M=(xe,he)=>xe===he,multiple:_=!1,onChange:D,onClose:T,onHighlightChange:F,onInputChange:N,onOpen:k,open:L,openOnFocus:j=!1,options:B,readOnly:A=!1,selectOnFocus:H=!e.freeSolo,value:q}=e,V=Rt(S);let G=P;G=xe=>{const he=P(xe);return typeof he!="string"?String(he):he};const Y=v.useRef(!1),re=v.useRef(!0),le=v.useRef(null),J=v.useRef(null),[oe,ue]=v.useState(null),[ge,me]=v.useState(-1),ke=o?0:-1,be=v.useRef(ke),[ie,ye]=Ul({controlled:q,default:c,name:u}),[U,Q]=Ul({controlled:I,default:"",name:u,state:"inputValue"}),[Z,ae]=v.useState(!1),te=v.useCallback((xe,he)=>{if(!(_?ie.length<he.length:he!==null)&&!l)return;let Fe;if(_)Fe="";else if(he==null)Fe="";else{const Ze=G(he);Fe=typeof Ze=="string"?Ze:""}U!==Fe&&(Q(Fe),N&&N(xe,Fe,"reset"))},[G,U,_,N,Q,l,ie]),[K,ee]=Ul({controlled:L,default:!1,name:u,state:"open"}),[se,Ce]=v.useState(!0),_e=!_&&ie!=null&&U===G(ie),$e=K&&!A,X=$e?y(B.filter(xe=>!(b&&(_?ie:[ie]).some(he=>he!==null&&M(xe,he)))),{inputValue:_e&&se?"":U,getOptionLabel:G}):[],Ee=pE({filteredOptions:X,value:ie,inputValue:U});v.useEffect(()=>{const xe=ie!==Ee.value;Z&&!xe||g&&!xe||te(null,ie)},[ie,te,Z,Ee.value,g]);const Le=K&&X.length>0&&!A,Te=Zt(xe=>{xe===-1?le.current.focus():oe.querySelector(`[data-tag-index="${xe}"]`).focus()});v.useEffect(()=>{_&&ge>ie.length-1&&(me(-1),Te(-1))},[ie,_,ge,Te]);function Pe(xe,he){if(!J.current||xe<0||xe>=X.length)return-1;let Ne=xe;for(;;){const Fe=J.current.querySelector(`[data-option-index="${Ne}"]`),Ze=p?!1:!Fe||Fe.disabled||Fe.getAttribute("aria-disabled")==="true";if(Fe&&Fe.hasAttribute("tabindex")&&!Ze)return Ne;if(he==="next"?Ne=(Ne+1)%X.length:Ne=(Ne-1+X.length)%X.length,Ne===xe)return-1}}const Re=Zt(({event:xe,index:he,reason:Ne="auto"})=>{if(be.current=he,he===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${V}-option-${he}`),F&&F(xe,he===-1?null:X[he],Ne),!J.current)return;const Fe=J.current.querySelector(`[role="option"].${n}-focused`);Fe&&(Fe.classList.remove(`${n}-focused`),Fe.classList.remove(`${n}-focusVisible`));let Ze=J.current;if(J.current.getAttribute("role")!=="listbox"&&(Ze=J.current.parentElement.querySelector('[role="listbox"]')),!Ze)return;if(he===-1){Ze.scrollTop=0;return}const je=J.current.querySelector(`[data-option-index="${he}"]`);if(je&&(je.classList.add(`${n}-focused`),Ne==="keyboard"&&je.classList.add(`${n}-focusVisible`),Ze.scrollHeight>Ze.clientHeight&&Ne!=="mouse"&&Ne!=="touch")){const gt=je,xi=Ze.clientHeight+Ze.scrollTop,Fk=gt.offsetTop+gt.offsetHeight;Fk>xi?Ze.scrollTop=Fk-Ze.clientHeight:gt.offsetTop-gt.offsetHeight*(C?1.3:0)<Ze.scrollTop&&(Ze.scrollTop=gt.offsetTop-gt.offsetHeight*(C?1.3:0))}}),He=Zt(({event:xe,diff:he,direction:Ne="next",reason:Fe="auto"})=>{if(!$e)return;const je=Pe((()=>{const gt=X.length-1;if(he==="reset")return ke;if(he==="start")return 0;if(he==="end")return gt;const xi=be.current+he;return xi<0?xi===-1&&R?-1:h&&be.current!==-1||Math.abs(he)>1?0:gt:xi>gt?xi===gt+1&&R?-1:h||Math.abs(he)>1?gt:0:xi})(),Ne);if(Re({index:je,reason:Fe,event:xe}),r&&he!=="reset")if(je===-1)le.current.value=U;else{const gt=G(X[je]);le.current.value=gt,gt.toLowerCase().indexOf(U.toLowerCase())===0&&U.length>0&&le.current.setSelectionRange(U.length,gt.length)}}),it=()=>{const xe=(he,Ne)=>{const Fe=he?G(he):"",Ze=Ne?G(Ne):"";return Fe===Ze};if(be.current!==-1&&Ee.filteredOptions&&Ee.filteredOptions.length!==X.length&&Ee.inputValue===U&&(_?ie.length===Ee.value.length&&Ee.value.every((he,Ne)=>G(ie[Ne])===G(he)):xe(Ee.value,ie))){const he=Ee.filteredOptions[be.current];if(he)return ph(X,Ne=>G(Ne)===G(he))}return-1},kt=v.useCallback(()=>{if(!$e)return;const xe=it();if(xe!==-1){be.current=xe;return}const he=_?ie[0]:ie;if(X.length===0||he==null){He({diff:"reset"});return}if(J.current){if(he!=null){const Ne=X[be.current];if(_&&Ne&&ph(ie,Ze=>M(Ne,Ze))!==-1)return;const Fe=ph(X,Ze=>M(Ze,he));Fe===-1?He({diff:"reset"}):Re({index:Fe});return}if(be.current>=X.length-1){Re({index:X.length-1});return}Re({index:be.current})}},[X.length,_?!1:ie,b,He,Re,$e,U,_]),Vt=Zt(xe=>{up(J,xe),xe&&kt()});v.useEffect(()=>{kt()},[kt]);const nt=xe=>{K||(ee(!0),Ce(!0),k&&k(xe))},Sn=(xe,he)=>{K&&(ee(!1),T&&T(xe,he))},en=(xe,he,Ne,Fe)=>{if(_){if(ie.length===he.length&&ie.every((Ze,je)=>Ze===he[je]))return}else if(ie===he)return;D&&D(xe,he,Ne,Fe),ye(he)},$r=v.useRef(!1),Ct=(xe,he,Ne="selectOption",Fe="options")=>{let Ze=Ne,je=he;if(_){je=Array.isArray(ie)?ie.slice():[];const gt=ph(je,xi=>M(he,xi));gt===-1?je.push(he):Fe!=="freeSolo"&&(je.splice(gt,1),Ze="removeOption")}te(xe,je),en(xe,je,Ze,{option:he}),!f&&(!xe||!xe.ctrlKey&&!xe.metaKey)&&Sn(xe,Ze),(a===!0||a==="touch"&&$r.current||a==="mouse"&&!$r.current)&&le.current.blur()};function ut(xe,he){if(xe===-1)return-1;let Ne=xe;for(;;){if(he==="next"&&Ne===ie.length||he==="previous"&&Ne===-1)return-1;const Fe=oe.querySelector(`[data-tag-index="${Ne}"]`);if(!Fe||!Fe.hasAttribute("tabindex")||Fe.disabled||Fe.getAttribute("aria-disabled")==="true")Ne+=he==="next"?1:-1;else return Ne}}const St=(xe,he)=>{if(!_)return;U===""&&Sn(xe,"toggleInput");let Ne=ge;ge===-1?U===""&&he==="previous"&&(Ne=ie.length-1):(Ne+=he==="next"?1:-1,Ne<0&&(Ne=0),Ne===ie.length&&(Ne=-1)),Ne=ut(Ne,he),me(Ne),Te(Ne)},Wr=xe=>{Y.current=!0,Q(""),N&&N(xe,"","clear"),en(xe,_?[]:null,"clear")},Xo=xe=>he=>{if(xe.onKeyDown&&xe.onKeyDown(he),!he.defaultMuiPrevented&&(ge!==-1&&["ArrowLeft","ArrowRight"].indexOf(he.key)===-1&&(me(-1),Te(-1)),he.which!==229))switch(he.key){case"Home":$e&&E&&(he.preventDefault(),He({diff:"start",direction:"next",reason:"keyboard",event:he}));break;case"End":$e&&E&&(he.preventDefault(),He({diff:"end",direction:"previous",reason:"keyboard",event:he}));break;case"PageUp":he.preventDefault(),He({diff:-OM,direction:"previous",reason:"keyboard",event:he}),nt(he);break;case"PageDown":he.preventDefault(),He({diff:OM,direction:"next",reason:"keyboard",event:he}),nt(he);break;case"ArrowDown":he.preventDefault(),He({diff:1,direction:"next",reason:"keyboard",event:he}),nt(he);break;case"ArrowUp":he.preventDefault(),He({diff:-1,direction:"previous",reason:"keyboard",event:he}),nt(he);break;case"ArrowLeft":St(he,"previous");break;case"ArrowRight":St(he,"next");break;case"Enter":if(be.current!==-1&&$e){const Ne=X[be.current],Fe=x?x(Ne):!1;if(he.preventDefault(),Fe)return;Ct(he,Ne,"selectOption"),r&&le.current.setSelectionRange(le.current.value.length,le.current.value.length)}else g&&U!==""&&_e===!1&&(_&&he.preventDefault(),Ct(he,U,"createOption","freeSolo"));break;case"Escape":$e?(he.preventDefault(),he.stopPropagation(),Sn(he,"escape")):s&&(U!==""||_&&ie.length>0)&&(he.preventDefault(),he.stopPropagation(),Wr(he));break;case"Backspace":if(_&&!A&&U===""&&ie.length>0){const Ne=ge===-1?ie.length-1:ge,Fe=ie.slice();Fe.splice(Ne,1),en(he,Fe,"removeOption",{option:ie[Ne]})}break;case"Delete":if(_&&!A&&U===""&&ie.length>0&&ge!==-1){const Ne=ge,Fe=ie.slice();Fe.splice(Ne,1),en(he,Fe,"removeOption",{option:ie[Ne]})}break}},ua=xe=>{ae(!0),j&&!Y.current&&nt(xe)},Gr=xe=>{if(t(J)){le.current.focus();return}ae(!1),re.current=!0,Y.current=!1,i&&be.current!==-1&&$e?Ct(xe,X[be.current],"blur"):i&&g&&U!==""?Ct(xe,U,"blur","freeSolo"):l&&te(xe,ie),Sn(xe,"blur")},rn=xe=>{const he=xe.target.value;U!==he&&(Q(he),Ce(!1),N&&N(xe,he,"input")),he===""?!d&&!_&&en(xe,null,"clear"):nt(xe)},Lt=xe=>{const he=Number(xe.currentTarget.getAttribute("data-option-index"));be.current!==he&&Re({event:xe,index:he,reason:"mouse"})},En=xe=>{Re({event:xe,index:Number(xe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),$r.current=!0},rr=xe=>{const he=Number(xe.currentTarget.getAttribute("data-option-index"));Ct(xe,X[he],"selectOption"),$r.current=!1},fo=xe=>he=>{const Ne=ie.slice();Ne.splice(xe,1),en(he,Ne,"removeOption",{option:ie[xe]})},ll=xe=>{K?Sn(xe,"toggleInput"):nt(xe)},Zo=xe=>{xe.currentTarget.contains(xe.target)&&xe.target.getAttribute("id")!==V&&xe.preventDefault()},bi=xe=>{xe.currentTarget.contains(xe.target)&&(le.current.focus(),H&&re.current&&le.current.selectionEnd-le.current.selectionStart===0&&le.current.select(),re.current=!1)},po=xe=>{!m&&(U===""||!K)&&ll(xe)};let qr=g&&U.length>0;qr=qr||(_?ie.length>0:ie!==null);let ca=X;return C&&(ca=X.reduce((xe,he,Ne)=>{const Fe=C(he);return xe.length>0&&xe[xe.length-1].group===Fe?xe[xe.length-1].options.push(he):xe.push({key:Ne,index:Ne,group:Fe,options:[he]}),xe},[])),m&&Z&&Gr(),{getRootProps:(xe={})=>O({"aria-owns":Le?`${V}-listbox`:null},xe,{onKeyDown:Xo(xe),onMouseDown:Zo,onClick:bi}),getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:U,onBlur:Gr,onFocus:ua,onChange:rn,onMouseDown:po,"aria-activedescendant":$e?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Le?`${V}-listbox`:void 0,"aria-expanded":Le,autoComplete:"off",ref:le,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Wr}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ll}),getTagProps:({index:xe})=>O({key:xe,"data-tag-index":xe,tabIndex:-1},!A&&{onDelete:fo(xe)}),getListboxProps:()=>({role:"listbox",id:`${V}-listbox`,"aria-labelledby":`${V}-label`,ref:Vt,onMouseDown:xe=>{xe.preventDefault()}}),getOptionProps:({index:xe,option:he})=>{var Ne;const Fe=(_?ie:[ie]).some(je=>je!=null&&M(he,je)),Ze=x?x(he):!1;return{key:(Ne=w==null?void 0:w(he))!=null?Ne:G(he),tabIndex:-1,role:"option",id:`${V}-option-${xe}`,onMouseMove:Lt,onClick:rr,onTouchStart:En,"data-option-index":xe,"aria-disabled":Ze,"aria-selected":Fe}},id:V,inputValue:U,value:ie,dirty:qr,expanded:$e&&oe,popupOpen:$e,focused:Z||ge!==-1,anchorEl:oe,setAnchorEl:ue,focusedTag:ge,groupedOptions:ca}}function bu({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const yue=v.createContext(void 0),c0=yue;function Xa(){return v.useContext(c0)}function XE(e){return z.jsx(IJ,O({},e,{defaultTheme:Vy,themeId:ou}))}function MM(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function sv(e,t=!1){return e&&(MM(e.value)&&e.value!==""||t&&MM(e.defaultValue)&&e.defaultValue!=="")}function bue(e){return e.startAdornment}function xue(e){return We("MuiInputBase",e)}const wue=Ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Zr=wue,Cue=["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"],d0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${pe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},f0=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Sue=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:m,type:p}=e,h={root:["root",`color${pe(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",f&&f!=="medium"&&`size${pe(f)}`,c&&"multiline",m&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return Oe(h,xue,t)},p0=fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:d0})(({theme:e,ownerState:t})=>O({},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",[`&.${Zr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&O({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),m0=fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:f0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=O({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return O({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Zr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Zr.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"})}),Eue=z.jsx(XE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Pue=v.forwardRef(function(t,n){var r;const o=qe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:m,endAdornment:p,fullWidth:h=!1,id:y,inputComponent:b="input",inputProps:g={},inputRef:x,maxRows:w,minRows:P,multiline:C=!1,name:E,onBlur:S,onChange:R,onClick:I,onFocus:M,onKeyDown:_,onKeyUp:D,placeholder:T,readOnly:F,renderSuffix:N,rows:k,slotProps:L={},slots:j={},startAdornment:B,type:A="text",value:H}=o,q=ce(o,Cue),V=g.value!=null?g.value:H,{current:G}=v.useRef(V!=null),Y=v.useRef(),re=v.useCallback($e=>{},[]),le=xt(Y,x,g.ref,re),[J,oe]=v.useState(!1),ue=Xa(),ge=bu({props:o,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=ue?ue.focused:J,v.useEffect(()=>{!ue&&f&&J&&(oe(!1),S&&S())},[ue,f,J,S]);const me=ue&&ue.onFilled,ke=ue&&ue.onEmpty,be=v.useCallback($e=>{sv($e)?me&&me():ke&&ke()},[me,ke]);_t(()=>{G&&be({value:V})},[V,be,G]);const ie=$e=>{if(ge.disabled){$e.stopPropagation();return}M&&M($e),g.onFocus&&g.onFocus($e),ue&&ue.onFocus?ue.onFocus($e):oe(!0)},ye=$e=>{S&&S($e),g.onBlur&&g.onBlur($e),ue&&ue.onBlur?ue.onBlur($e):oe(!1)},U=($e,...X)=>{if(!G){const Ee=$e.target||Y.current;if(Ee==null)throw new Error(Ba(1));be({value:Ee.value})}g.onChange&&g.onChange($e,...X),R&&R($e,...X)};v.useEffect(()=>{be(Y.current)},[]);const Q=$e=>{Y.current&&$e.currentTarget===$e.target&&Y.current.focus(),I&&I($e)};let Z=b,ae=g;C&&Z==="input"&&(k?ae=O({type:void 0,minRows:k,maxRows:k},ae):ae=O({type:void 0,maxRows:w,minRows:P},ae),Z=mue);const te=$e=>{be($e.animationName==="mui-auto-fill-cancel"?Y.current:{value:"x"})};v.useEffect(()=>{ue&&ue.setAdornedStart(!!B)},[ue,B]);const K=O({},o,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:p,error:ge.error,focused:ge.focused,formControl:ue,fullWidth:h,hiddenLabel:ge.hiddenLabel,multiline:C,size:ge.size,startAdornment:B,type:A}),ee=Sue(K),se=j.root||u.Root||p0,Ce=L.root||c.root||{},_e=j.input||u.Input||m0;return ae=O({},ae,(r=L.input)!=null?r:c.input),z.jsxs(v.Fragment,{children:[!m&&Eue,z.jsxs(se,O({},Ce,!gp(se)&&{ownerState:O({},K,Ce.ownerState)},{ref:n,onClick:Q},q,{className:ve(ee.root,Ce.className,s,F&&"MuiInputBase-readOnly"),children:[B,z.jsx(c0.Provider,{value:null,children:z.jsx(_e,O({ownerState:K,"aria-invalid":ge.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:d,disabled:ge.disabled,id:y,onAnimationStart:te,name:E,placeholder:T,readOnly:F,required:ge.required,rows:k,value:V,onKeyDown:_,onKeyUp:D,type:A},ae,!gp(_e)&&{as:Z,ownerState:O({},K,ae.ownerState)},{ref:le,className:ve(ee.input,ae.className,F&&"MuiInputBase-readOnly"),onBlur:ye,onChange:U,onFocus:ie}))}),p,N?N(O({},ge,{startAdornment:B})):null]}))]})}),xd=Pue,kue=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],$ue=fe(xd)({fontSize:"inherit"}),Iue=e=>{const{classes:t}=e;return Oe({root:["editInputCell"]},ft,t)};function Oue(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:a,onValueChange:l}=e,s=ce(e,kue),u=o.type==="dateTime",c=dt(),d=v.useRef(),f=v.useMemo(()=>{let w;n==null?w=null:n instanceof Date?w=n:w=new Date((n??"").toString());let P;return w==null||Number.isNaN(w.getTime())?P="":P=new Date(w.getTime()-w.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:w,formatted:P}},[n,u]),[m,p]=v.useState(f),y={classes:Be().classes},b=Iue(y),g=v.useCallback(w=>{if(w==="")return null;const[P,C]=w.split("T"),[E,S,R]=P.split("-"),I=new Date;if(I.setFullYear(Number(E),Number(S)-1,Number(R)),I.setHours(0,0,0,0),C){const[M,_]=C.split(":");I.setHours(Number(M),Number(_),0,0)}return I},[]),x=v.useCallback(async w=>{const P=w.target.value,C=g(P);l&&await l(w,C),p({parsed:C,formatted:P}),c.current.setEditCellValue({id:t,field:r,value:C},w)},[c,r,t,l,g]);return v.useEffect(()=>{p(w=>{var P,C;return f.parsed!==w.parsed&&((P=f.parsed)==null?void 0:P.getTime())!==((C=w.parsed)==null?void 0:C.getTime())?f:w})},[f]),_t(()=>{i&&d.current.focus()},[i]),z.jsx($ue,O({inputRef:d,fullWidth:!0,className:b.root,type:u?"datetime-local":"date",inputProps:O({max:u?"9999-12-31T23:59":"9999-12-31"},a),value:m.formatted,onChange:x},s))}const E4=e=>z.jsx(Oue,O({},e)),Mue=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Rue=e=>{const{classes:t}=e;return Oe({root:["editInputCell"]},ft,t)},Tue=fe(xd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>O({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),_ue=v.forwardRef((e,t)=>{const n=Be(),{id:r,value:o,field:i,colDef:a,hasFocus:l,debounceMs:s=200,isProcessingProps:u,onValueChange:c}=e,d=ce(e,Mue),f=dt(),m=v.useRef(),[p,h]=v.useState(o),y=Rue(n),b=v.useCallback(async x=>{const w=x.target.value;c&&await c(x,w);const P=f.current.getColumn(i);let C=w;P.valueParser&&(C=P.valueParser(w,f.current.getCellParams(r,i))),h(C),f.current.setEditCellValue({id:r,field:i,value:C,debounceMs:s,unstable_skipValueParser:!0},x)},[f,s,i,r,c]),g=f.current.unstable_getEditCellMeta(r,i);return v.useEffect(()=>{(g==null?void 0:g.changeReason)!=="debouncedSetEditCellValue"&&h(o)},[g,o]),_t(()=>{l&&m.current.focus()},[l]),z.jsx(Tue,O({ref:t,inputRef:m,className:y.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:p??"",onChange:b,endAdornment:u?z.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d))}),Fue=e=>z.jsx(_ue,O({},e)),uv=e=>e==="Escape",Aue=e=>e==="Enter",P4=e=>e==="Tab",k4=e=>e===" ",Lue=e=>e.indexOf("Arrow")===0,Due=e=>e==="Home"||e==="End",Nue=e=>e.indexOf("Page")===0;function $4(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const cv=e=>Due(e)||Lue(e)||Nue(e)||k4(e),zue=e=>!!e.key,jue=e=>P4(e)||uv(e);function Hs(e){return(e==null?void 0:e.type)==="singleSelect"}function Aw(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const Bue=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Hue=["MenuProps"];function Uue(e){return!!e.key}function Vue(e){var t,n,r;const o=Be(),{id:i,value:a,field:l,row:s,colDef:u,hasFocus:c,error:d,onValueChange:f,initialOpen:m=o.editMode===Ki.Cell,getOptionLabel:p,getOptionValue:h}=e,y=ce(e,Bue),b=dt(),g=v.useRef(),x=v.useRef(),[w,P]=v.useState(m),E=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,S=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:R}=S,I=ce(S,Hue);if(_t(()=>{if(c){var k;(k=x.current)==null||k.focus()}},[c]),!Hs(u))return null;let M;if(typeof(u==null?void 0:u.valueOptions)=="function"?M=u==null?void 0:u.valueOptions({id:i,row:s,field:l}):M=u==null?void 0:u.valueOptions,!M)return null;const _=h||u.getOptionValue,D=p||u.getOptionLabel,T=async k=>{if(!Hs(u)||!M)return;P(!1);const L=k.target,j=Aw(L.value,M,_);f&&await f(k,j),await b.current.setEditCellValue({id:i,field:l,value:j},k)},F=(k,L)=>{if(o.editMode===Ki.Row){P(!1);return}if(L==="backdropClick"||uv(k.key)){const j=b.current.getCellParams(i,l);b.current.publishEvent("cellEditStop",O({},j,{reason:uv(k.key)?ri.escapeKeyDown:ri.cellFocusOut}))}},N=k=>{Uue(k)&&k.key==="Enter"||P(!0)};return!M||!u?null:z.jsx(o.slots.baseSelect,O({ref:g,inputRef:x,value:a,onChange:T,open:w,onOpen:N,MenuProps:O({onClose:F},R),error:d,native:E,fullWidth:!0},y,I,{children:M.map(k=>{var L;const j=_(k);return v.createElement(o.slots.baseSelectOption,O({},((L=o.slotProps)==null?void 0:L.baseSelectOption)||{},{native:E,key:j,value:j}),D(k))})}))}const Wue=e=>z.jsx(Vue,O({},e)),Gue=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function n1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function RM(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function I4(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function qd(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const s=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!I4(l,i)||s)l=o(e,l,n);else return l.focus(),!0}return!1}const que=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=ce(t,Gue),m=v.useRef(null),p=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_t(()=>{o&&m.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const P=!m.current.style.width;if(x.clientHeight<m.current.clientHeight&&P){const C=`${cN(ln(x))}px`;m.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=C,m.current.style.width=`calc(100% + ${C})`}return m.current}}),[]);const h=x=>{const w=m.current,P=x.key,C=ln(w).activeElement;if(P==="ArrowDown")x.preventDefault(),qd(w,C,u,s,n1);else if(P==="ArrowUp")x.preventDefault(),qd(w,C,u,s,RM);else if(P==="Home")x.preventDefault(),qd(w,null,u,s,n1);else if(P==="End")x.preventDefault(),qd(w,null,u,s,RM);else if(P.length===1){const E=p.current,S=P.toLowerCase(),R=performance.now();E.keys.length>0&&(R-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&S!==E.keys[0]&&(E.repeating=!1)),E.lastTime=R,E.keys.push(S);const I=C&&!E.repeating&&I4(C,E);E.previousKeyMatched&&(I||qd(w,C,!1,s,n1,E))?x.preventDefault():E.previousKeyMatched=!1}c&&c(x)},y=xt(m,n);let b=-1;v.Children.forEach(a,(x,w)=>{if(!v.isValidElement(x)){b===w&&(b+=1,b>=a.length&&(b=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||b===-1)&&(b=w),b===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const g=v.Children.map(a,(x,w)=>{if(w===b){const P={};return i&&(P.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),v.cloneElement(x,P)}return x});return z.jsx(au,O({role:"menu",ref:y,className:l,onKeyDown:h,tabIndex:o?0:-1},f,{children:g}))}),ZE=que,Kue=["open","target","onClose","children","position","className","onExited"],Que=e=>{const{classes:t}=e;return Oe({root:["menu"]},ft,t)},Yue=fe(yu,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ne.menuList}`]:{outline:0}})),Xue={"bottom-start":"top left","bottom-end":"top right"};function O4(e){var t;const{open:n,target:r,onClose:o,children:i,position:a,className:l,onExited:s}=e,u=ce(e,Kue),c=dt(),d=Be(),f=Que(d),m=v.useRef(null);_t(()=>{if(n)m.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var y,b;(y=m.current)==null||(b=y.focus)==null||b.call(y),m.current=null}},[n]),v.useEffect(()=>{const y=n?"menuOpen":"menuClose";c.current.publishEvent(y,{target:r})},[c,n,r]);const p=y=>b=>{y&&y(),s&&s(b)},h=y=>{y.target&&(r===y.target||r!=null&&r.contains(y.target))||o(y)};return z.jsx(Yue,O({as:d.slots.basePopper,className:ve(l,f.root),ownerState:d,open:n,anchorEl:r,transition:!0,placement:a},u,(t=d.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:y,placement:b})=>z.jsx(xE,{onClickAway:h,mouseEvent:"onMouseDown",children:z.jsx(ev,O({},y,{style:{transformOrigin:Xue[b]},onExited:p(y==null?void 0:y.onExited),children:z.jsx(Ko,{children:i})}))})}))}const Zue=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Jue=e=>typeof e.getActions=="function";function ece(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:a="bottom-end",focusElementRef:l}=e,s=ce(e,Zue),[u,c]=v.useState(-1),[d,f]=v.useState(!1),m=dt(),p=v.useRef(null),h=v.useRef(null),y=v.useRef(!1),b=v.useRef({}),g=Ur(),x=Rt(),w=Rt(),P=Be();if(!Jue(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const C=n.getActions(m.current.getRowParams(r)),E=C.filter(N=>!N.props.showInMenu),S=C.filter(N=>N.props.showInMenu),R=E.length+(S.length?1:0);v.useLayoutEffect(()=>{o||Object.entries(b.current).forEach(([N,k])=>{k==null||k.stop({},()=>{delete b.current[N]})})},[o]),v.useEffect(()=>{if(u<0||!p.current||u>=p.current.children.length)return;p.current.children[u].focus({preventScroll:!0})},[u]),v.useEffect(()=>{o||(c(-1),y.current=!1)},[o]),v.useImperativeHandle(l,()=>({focus(){if(!y.current){const N=C.findIndex(k=>!k.props.disabled);c(N)}}}),[C]),v.useEffect(()=>{u>=R&&c(R-1)},[u,R]);const I=()=>{f(!0),c(R-1),y.current=!0},M=()=>{f(!1)},_=N=>k=>{b.current[N]=k},D=(N,k)=>L=>{c(N),y.current=!0,k&&k(L)},T=N=>{if(R<=1)return;const k=(j,B)=>{var A;if(j<0||j>C.length)return j;const H=g.direction==="rtl"?-1:1,q=(B==="left"?-1:1)*H;return(A=C[j+q])!=null&&A.props.disabled?k(j+q,B):j+q};let L=u;N.key==="ArrowRight"?L=k(u,"right"):N.key==="ArrowLeft"&&(L=k(u,"left")),!(L<0||L>=R)&&L!==u&&(N.preventDefault(),N.stopPropagation(),c(L))},F=N=>{N.key==="Tab"&&N.preventDefault(),["Tab","Escape"].includes(N.key)&&M()};return z.jsxs("div",O({role:"menu",ref:p,tabIndex:-1,className:ne.actionsCell,onKeyDown:T},s,{children:[E.map((N,k)=>v.cloneElement(N,{key:k,touchRippleRef:_(k),onClick:D(k,N.props.onClick),tabIndex:u===k?i:-1})),S.length>0&&w&&z.jsx(P.slots.baseIconButton,O({ref:h,id:w,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?x:void 0,role:"menuitem",size:"small",onClick:I,touchRippleRef:_(w),tabIndex:u===E.length?i:-1},(t=P.slotProps)==null?void 0:t.baseIconButton,{children:z.jsx(P.slots.moreActionsIcon,{fontSize:"small"})})),S.length>0&&z.jsx(O4,{open:d,target:h.current,position:a,onClose:M,children:z.jsx(ZE,{id:x,className:ne.menuList,onKeyDown:F,"aria-labelledby":w,variant:"menu",autoFocusItem:!0,children:S.map((N,k)=>v.cloneElement(N,{key:k,closeMenu:M}))})})]}))}const tce=e=>z.jsx(ece,O({},e));function nce(e){return We("MuiDivider",e)}const TM=Ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),rce=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],oce=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Oe({root:["root",t&&"absolute",s,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},nce,r)},ice=fe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>O({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)`:lt(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})=>O({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>O({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>O({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>O({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ace=fe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>O({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)`})),M4=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:l=i?"div":"hr",flexItem:s=!1,light:u=!1,orientation:c="horizontal",role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:m="fullWidth"}=r,p=ce(r,rce),h=O({},r,{absolute:o,component:l,flexItem:s,light:u,orientation:c,role:d,textAlign:f,variant:m}),y=oce(h);return z.jsx(ice,O({as:l,className:ve(y.root,a),role:d,ref:n,ownerState:h},p,{children:i?z.jsx(ace,{className:y.wrapper,ownerState:h,children:i}):null}))});M4.muiSkipListHighlight=!0;const JE=M4;function lce(e){return We("MuiMenuItem",e)}const sce=Ge("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Kd=sce,uce=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cce=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},dce=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=Oe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},lce,a);return O({},a,s)},fce=fe(Zl,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:cce})(({theme:e,ownerState:t})=>O({},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"}},[`&.${Kd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(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})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Kd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${TM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${TM.inset}`]:{marginLeft:52},[`& .${Jg.root}`]:{marginTop:0,marginBottom:0},[`& .${Jg.inset}`]:{paddingLeft:36},[`& .${fM.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&O({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fM.root} svg`]:{fontSize:"1.25rem"}}))),pce=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,m=ce(r,uce),p=v.useContext(iu),h=v.useMemo(()=>({dense:a||p.dense||!1,disableGutters:s}),[p.dense,a,s]),y=v.useRef(null);_t(()=>{o&&y.current&&y.current.focus()},[o]);const b=O({},r,{dense:h.dense,divider:l,disableGutters:s}),g=dce(r),x=xt(y,n);let w;return r.disabled||(w=d!==void 0?d:-1),z.jsx(iu.Provider,{value:h,children:z.jsx(fce,O({ref:x,role:c,tabIndex:w,component:i,focusVisibleClassName:ve(g.focusVisible,u),className:ve(g.root,f)},m,{ownerState:b,classes:g}))})}),Hi=pce;function mce(e){return We("MuiSkeleton",e)}Ge("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const hce=["animation","className","component","height","style","variant","width"];let dv=e=>e,_M,FM,AM,LM;const gce=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Oe({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},mce,t)},vce=ls(_M||(_M=dv`
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
`)),yce=ls(FM||(FM=dv`
0% {
transform: translateX(-100%);
}
50% {
/* +0.5s of delay between each loop */
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
`)),bce=fe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=pne(e.shape.borderRadius)||"px",r=mne(e.shape.borderRadius);return O({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:ni(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Vc(AM||(AM=dv`
animation: ${0} 2s ease-in-out 0.5s infinite;
`),vce),({ownerState:e,theme:t})=>e.animation==="wave"&&Vc(LM||(LM=dv`
position: relative;
overflow: hidden;
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
-webkit-mask-image: -webkit-radial-gradient(white, black);
&::after {
animation: ${0} 2s linear 0.5s infinite;
background: linear-gradient(
90deg,
transparent,
${0},
transparent
);
content: '';
position: absolute;
transform: translateX(-100%); /* Avoid flash during server-side hydration */
bottom: 0;
left: 0;
right: 0;
top: 0;
}
`),yce,(t.vars||t).palette.action.hover)),xce=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:s,variant:u="text",width:c}=r,d=ce(r,hce),f=O({},r,{animation:o,component:a,variant:u,hasChildren:!!d.children}),m=gce(f);return z.jsx(bce,O({as:a,ref:n,className:ve(m.root,i),ownerState:f},d,{style:O({width:c,height:l},s)}))}),wce=xce,Cce=["field","align","width","contentWidth"],Sce=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${pe(t)}`,"withBorderColor"]};return Oe(r,ft,n)};function Ece(e){const{align:t,width:n,contentWidth:r}=e,o=ce(e,Cce),a={classes:Be().classes,align:t},l=Sce(a);return z.jsx("div",O({className:l.root,style:{width:n}},o,{children:z.jsx(wce,{width:`${r}%`})}))}function Pce(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?sN(ni(e.palette.divider,1),.88):Tf(ni(e.palette.divider,1),.68)}const DM={[`.${ne.columnSeparator}, .${ne["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},NM={[`& .${ne.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ne.menuIcon}`]:{width:"auto",visibility:"visible"}},kce=fe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ne.autoHeight}`]:t.autoHeight},{[`&.${ne.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ne["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ne["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ne["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ne.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:t["root--disableUserSelection"]},{[`&.${ne.autosizing}`]:t.autosizing},{[`& .${ne.editBooleanCell}`]:t.editBooleanCell},{[`& .${ne["cell--editing"]}`]:t["cell--editing"]},{[`& .${ne["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ne["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ne["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ne["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ne.cell}`]:t.cell},{[`& .${ne["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ne["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ne["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ne["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ne["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ne.cellContent}`]:t.cellContent},{[`& .${ne.cellCheckbox}`]:t.cellCheckbox},{[`& .${ne.cellSkeleton}`]:t.cellSkeleton},{[`& .${ne.checkboxInput}`]:t.checkboxInput},{[`& .${ne["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ne["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ne["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ne["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ne["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ne["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ne["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ne["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ne["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ne.columnHeader}`]:t.columnHeader},{[`& .${ne.headerFilterRow}`]:t.headerFilterRow},{[`& .${ne.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ne.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ne.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ne["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ne["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ne.columnSeparator}`]:t.columnSeparator},{[`& .${ne.filterIcon}`]:t.filterIcon},{[`& .${ne.iconSeparator}`]:t.iconSeparator},{[`& .${ne.menuIcon}`]:t.menuIcon},{[`& .${ne.menuIconButton}`]:t.menuIconButton},{[`& .${ne.menuOpen}`]:t.menuOpen},{[`& .${ne.menuList}`]:t.menuList},{[`& .${ne["row--editable"]}`]:t["row--editable"]},{[`& .${ne["row--editing"]}`]:t["row--editing"]},{[`& .${ne["row--dragging"]}`]:t["row--dragging"]},{[`& .${ne.row}`]:t.row},{[`& .${ne.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ne.rowReorderCell}`]:t.rowReorderCell},{[`& .${ne["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ne.sortIcon}`]:t.sortIcon},{[`& .${ne.withBorderColor}`]:t.withBorderColor},{[`& .${ne.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ne.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ne.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ne["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=Pce(e),n=e.shape.borderRadius;return O({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:ni(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${ne.autoHeight}`]:{height:"auto",[`& .${ne["row--lastVisible"]} .${ne.cell}`]:{borderBottomColor:"transparent"}},[`&.${ne.autosizing}`]:{[`& .${ne.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${ne.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"},[`& .${ne.groupingCriteriaCell}`]:{width:"unset"},[`& .${ne.treeDataGroupingCell}`]:{width:"unset"}},[`& .${ne["virtualScrollerContent--overflowed"]} .${ne["row--lastVisible"]} .${ne.cell}`]:{borderBottomColor:"transparent"},[`& .${ne.columnHeader}, & .${ne.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${ne.columnHeader}:focus-within, & .${ne.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:ni(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${ne.columnHeader}:focus, & .${ne.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${ne.columnHeaderCheckbox}, & .${ne.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ne.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${ne["columnHeader--sorted"]} .${ne.iconButtonContainer}, & .${ne["columnHeader--filtered"]} .${ne.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ne.columnHeader}:not(.${ne["columnHeader--sorted"]}) .${ne.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${ne.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${ne.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ne["columnHeader--filledGroup"]} .${ne.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ne["columnHeader--filledGroup"]}.${ne["columnHeader--showColumnBorder"]} .${ne.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${ne["columnHeader--filledGroup"]}.${ne["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ne.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${ne.sortIcon}, & .${ne.filterIcon}`]:{fontSize:"inherit"},[`& .${ne["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ne["columnHeader--alignCenter"]} .${ne.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ne["columnHeader--alignRight"]} .${ne.columnHeaderDraggableContainer}, & .${ne["columnHeader--alignRight"]} .${ne.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ne["columnHeader--alignCenter"]} .${ne.menuIcon}, & .${ne["columnHeader--alignRight"]} .${ne.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${ne["columnHeader--alignRight"]} .${ne.menuIcon}, & .${ne["columnHeader--alignRight"]} .${ne.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${ne["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${ne.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${ne.columnHeaders}:hover`]:DM,[`& .${ne.columnHeader}:hover`]:NM,[`& .${ne.columnHeader}:not(.${ne["columnHeader--sorted"]}):hover .${ne.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${ne.columnHeaders}`]:DM,[`& .${ne.columnHeader}`]:NM},[`& .${ne["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${ne["columnSeparator--sideRight"]}`]:{right:-12},[`& .${ne["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${ne["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${ne.iconSeparator}`]:{color:"inherit"},[`& .${ne.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${ne.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ne.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ni(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(
${e.vars.palette.action.selectedOpacity} +
${e.vars.palette.action.hoverOpacity}
))`:ni(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})`:ni(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ne.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ni(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:ni(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})`:ni(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:{userSelect:"none"},[`& .${ne.row}:not(.${ne["row--dynamicHeight"]}) > .${ne.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ne.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ne.cell}.${ne["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ne.cell}.${ne["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ne["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ne["row--editing"]} .${ne.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ne.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ne.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ne.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ne.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ne.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ne.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${ne.withBorderColor}`]:{borderColor:t},[`& .${ne["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ne["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ne["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ne.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ne.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ne["columnHeader--dragging"]}, & .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ne.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ne.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ne.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),$ce=["children","className"],Ice=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${pe(n)}`,"withBorderColor"]};return Oe(o,ft,r)},Oce=v.forwardRef(function(t,n){var r;const o=Be(),{children:i,className:a}=t,l=ce(t,$ce),s=us(),u=De(s,Mse),c=v.useRef(null),d=xt(c,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:d4,m=typeof f=="function"?f():null,p=O({},o,{density:u}),h=Ice(p);s.current.register("public",{rootElementRef:c});const[y,b]=v.useState(!1);return _t(()=>{b(!0)},[]),y?z.jsx(kce,O({ref:d,className:ve(a,h.root),ownerState:p},m,l,{children:i})):null}),Mce=["className"],Rce=e=>{const{classes:t}=e;return Oe({root:["footerContainer","withBorderColor"]},ft,t)},Tce=Dn("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),_ce=v.forwardRef(function(t,n){const{className:r}=t,o=ce(t,Mce),i=Be(),a=Rce(i);return z.jsx(Tce,O({ref:n,className:ve(a.root,r),ownerState:i},o))}),Fce=["className"],Ace=e=>{const{classes:t}=e;return Oe({root:["overlay"]},ft,t)},Lce=Dn("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),eP=v.forwardRef(function(t,n){const{className:r}=t,o=ce(t,Fce),i=Be(),a=Ace(i);return z.jsx(Lce,O({ref:n,className:ve(a.root,r),ownerState:i},o))});function Dce(e){return We("MuiBadge",e)}const Nce=Ge("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ul=Nce,zce=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],r1=10,o1=4,jce=zE(),Bce=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}`,`anchorOrigin${pe(n.vertical)}${pe(n.horizontal)}${pe(o)}`,`overlap${pe(o)}`,t!=="default"&&`color${pe(t)}`]};return Oe(l,Dce,a)},Hce=fe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Uce=fe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${pe(n.anchorOrigin.vertical)}${pe(n.anchorOrigin.horizontal)}${pe(n.overlap)}`],n.color!=="default"&&t[`color${pe(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:r1*2,lineHeight:1,padding:"0 6px",height:r1*2,borderRadius:r1,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:o1,height:o1*2,minWidth:o1*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ul.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),Vce=v.forwardRef(function(t,n){var r,o,i,a,l,s;const u=jce({props:t,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:f,components:m={},componentsProps:p={},children:h,overlap:y="rectangular",color:b="default",invisible:g=!1,max:x=99,badgeContent:w,slots:P,slotProps:C,showZero:E=!1,variant:S="standard"}=u,R=ce(u,zce),{badgeContent:I,invisible:M,max:_,displayValue:D}=cue({max:x,invisible:g,badgeContent:w,showZero:E}),T=pE({anchorOrigin:c,color:b,overlap:y,variant:S,badgeContent:w}),F=M||I==null&&S!=="dot",{color:N=b,overlap:k=y,anchorOrigin:L=c,variant:j=S}=F?T:u,B=j!=="dot"?D:void 0,A=O({},u,{badgeContent:I,invisible:F,max:_,displayValue:B,showZero:E,anchorOrigin:L,color:N,overlap:k,variant:j}),H=Bce(A),q=(r=(o=P==null?void 0:P.root)!=null?o:m.Root)!=null?r:Hce,V=(i=(a=P==null?void 0:P.badge)!=null?a:m.Badge)!=null?i:Uce,G=(l=C==null?void 0:C.root)!=null?l:p.root,Y=(s=C==null?void 0:C.badge)!=null?s:p.badge,re=Gi({elementType:q,externalSlotProps:G,externalForwardedProps:R,additionalProps:{ref:n,as:f},ownerState:A,className:ve(G==null?void 0:G.className,H.root,d)}),le=Gi({elementType:V,externalSlotProps:Y,ownerState:A,className:ve(H.badge,Y==null?void 0:Y.className)});return z.jsxs(q,O({},re,{children:[h,z.jsx(V,O({},le,{children:B}))]}))}),R4=Vce,Wce=["className"],Gce=e=>{const{classes:t}=e;return Oe({root:["iconButtonContainer"]},ft,t)},qce=Dn("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),T4=v.forwardRef(function(t,n){const{className:r}=t,o=ce(t,Wce),i=Be(),a=Gce(i);return z.jsx(qce,O({ref:n,className:ve(a.root,r),ownerState:i},o))}),Kce=e=>{const{classes:t}=e;return Oe({icon:["sortIcon"]},ft,t)};function Qce(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?z.jsx(o,O({fontSize:"small",className:n},i)):null}function Yce(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=dt(),a=Be(),l=O({},e,{classes:a.classes}),s=Kce(l),u=Qce(a.slots,n,s.icon,o);if(!u)return null;const c=z.jsx(a.slots.baseIconButton,O({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=a.slotProps)==null?void 0:t.baseIconButton,{children:u}));return z.jsxs(T4,{children:[r!=null&&z.jsx(R4,{badgeContent:r,color:"default",children:c}),r==null&&c]})}const Xce=v.memo(Yce),Zce=e=>{const{classes:t,open:n}=e;return Oe({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},ft,t)},Jce=v.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:a,iconButtonRef:l}=e,s=dt(),u=Be(),c=O({},e,{classes:u.classes}),d=Zce(c),f=v.useCallback(m=>{m.preventDefault(),m.stopPropagation(),s.current.toggleColumnMenu(r.field)},[s,r.field]);return z.jsx("div",{className:d.root,children:z.jsx(u.slots.baseTooltip,O({title:s.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=u.slotProps)==null?void 0:t.baseTooltip,{children:z.jsx(u.slots.baseIconButton,O({ref:l,tabIndex:-1,className:d.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:f,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:a},(n=u.slotProps)==null?void 0:n.baseIconButton,{children:z.jsx(u.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function ede({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:l}){const s=dt(),u=s.current.getColumn(o),c=Zt(d=>{d&&(d.stopPropagation(),a!=null&&a.contains(d.target))||s.current.hideColumnMenu()});return!a||!u?null:z.jsx(O4,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:i,target:a,onClose:c,onExited:l,children:z.jsx(n,O({colDef:u,hideMenu:c,open:i,id:e,labelledby:t},r))})}const tde=["className"],nde=e=>{const{classes:t}=e;return Oe({root:["columnHeaderTitle"]},ft,t)},rde=Dn("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),ode=v.forwardRef(function(t,n){const{className:r}=t,o=ce(t,tde),i=Be(),a=nde(i);return z.jsx(rde,O({ref:n,className:ve(a.root,r),ownerState:i},o))});function ide(e){var t;const{label:n,description:r}=e,o=Be(),i=v.useRef(null),[a,l]=v.useState(""),s=v.useCallback(()=>{if(!r&&i!=null&&i.current){const u=Hse(i.current);l(u?n:"")}},[r,n]);return z.jsx(o.slots.baseTooltip,O({title:r||a},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:z.jsx(ode,{onMouseOver:s,ref:i,children:n})}))}const ade=["resizable","resizing","height","side"];var _4=function(e){return e.Left="left",e.Right="right",e}(_4||{});const lde=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${pe(o)}`],icon:["iconSeparator"]};return Oe(i,ft,r)};function sde(e){const{height:t,side:n=_4.Right}=e,r=ce(e,ade),o=Be(),i=O({},e,{side:n,classes:o.classes}),a=lde(i),l=v.useCallback(s=>{s.preventDefault(),s.stopPropagation()},[]);return z.jsx("div",O({className:a.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:l,children:z.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const ude=v.memo(sde),cde=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],F4=v.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:a,isResizing:l,sortDirection:s,hasFocus:u,tabIndex:c,separatorSide:d,isDraggable:f,headerComponent:m,description:p,width:h,columnMenuIconButton:y=null,columnMenu:b=null,columnTitleIconButtons:g=null,headerClassName:x,label:w,resizable:P,draggableContainerProps:C,columnHeaderSeparatorProps:E}=t,S=ce(t,cde),R=us(),I=Be(),M=v.useRef(null),[_,D]=v.useState(o),T=xt(M,n);let F="none";return s!=null&&(F=s==="asc"?"ascending":"descending"),v.useEffect(()=>{_||D(o)},[_,o]),v.useLayoutEffect(()=>{const N=R.current.state.columnMenu;if(u&&!N.open){const L=M.current.querySelector('[tabindex="0"]')||M.current;L==null||L.focus(),R.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[R,u]),z.jsxs("div",O({ref:T,className:ve(r.root,x),style:{height:a,width:h,minWidth:h,maxWidth:h},role:"columnheader",tabIndex:c,"aria-colindex":i+1,"aria-sort":F,"aria-label":m==null?w:void 0},S,{children:[z.jsxs("div",O({className:r.draggableContainer,draggable:f,role:"presentation"},C,{children:[z.jsxs("div",{className:r.titleContainer,role:"presentation",children:[z.jsx("div",{className:r.titleContainerContent,children:m!==void 0?m:z.jsx(ide,{label:w,description:p,columnWidth:h})}),g]}),y]})),z.jsx(ude,O({resizable:!I.disableColumnResize&&!!P,resizing:l,height:a,side:d},E)),b]}))}),dde=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:a}=e,l=o!=null,s=a!=null&&a>0,u=t.type==="number",c={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",s&&"columnHeader--filtered",u&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Oe(c,ft,n)};function fde(e){var t,n,r,o;const{colDef:i,columnMenuOpen:a,colIndex:l,headerHeight:s,isResizing:u,sortDirection:c,sortIndex:d,filterItemsCounter:f,hasFocus:m,tabIndex:p,disableReorder:h,separatorSide:y}=e,b=us(),g=Be(),x=v.useRef(null),w=Rt(),P=Rt(),C=v.useRef(null),[E,S]=v.useState(a),R=v.useMemo(()=>!g.disableColumnReorder&&!h&&!i.disableReorder,[g.disableColumnReorder,h,i.disableReorder]);let I;i.renderHeader&&(I=i.renderHeader(b.current.getColumnHeaderParams(i.field)));const M=O({},e,{classes:g.classes,showRightBorder:g.showColumnVerticalBorder}),_=dde(M),D=v.useCallback(V=>G=>{rm(G)||b.current.publishEvent(V,b.current.getColumnHeaderParams(i.field),G)},[b,i.field]),T=v.useMemo(()=>({onClick:D("columnHeaderClick"),onDoubleClick:D("columnHeaderDoubleClick"),onMouseOver:D("columnHeaderOver"),onMouseOut:D("columnHeaderOut"),onMouseEnter:D("columnHeaderEnter"),onMouseLeave:D("columnHeaderLeave"),onKeyDown:D("columnHeaderKeyDown"),onFocus:D("columnHeaderFocus"),onBlur:D("columnHeaderBlur")}),[D]),F=v.useMemo(()=>R?{onDragStart:D("columnHeaderDragStart"),onDragEnter:D("columnHeaderDragEnter"),onDragOver:D("columnHeaderDragOver"),onDragEnd:D("columnHeaderDragEnd")}:{},[R,D]),N=v.useMemo(()=>({onMouseDown:D("columnSeparatorMouseDown"),onDoubleClick:D("columnSeparatorDoubleClick")}),[D]);v.useEffect(()=>{E||S(a)},[E,a]);const k=v.useCallback(()=>{S(!1)},[]),L=!g.disableColumnMenu&&!i.disableColumnMenu&&z.jsx(Jce,{colDef:i,columnMenuId:w,columnMenuButtonId:P,open:E,iconButtonRef:C}),j=z.jsx(ede,{columnMenuId:w,columnMenuButtonId:P,field:i.field,open:a,target:C.current,ContentComponent:g.slots.columnMenu,contentComponentProps:(t=g.slotProps)==null?void 0:t.columnMenu,onExited:k}),B=(n=i.sortingOrder)!=null?n:g.sortingOrder,A=z.jsxs(v.Fragment,{children:[!g.disableColumnFilter&&z.jsx(g.slots.columnHeaderFilterIconButton,O({field:i.field,counter:f},(r=g.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&z.jsx(Xce,{direction:c,index:d,sortingOrder:B})]});v.useLayoutEffect(()=>{const V=b.current.state.columnMenu;if(m&&!V.open){const Y=x.current.querySelector('[tabindex="0"]')||x.current;Y==null||Y.focus(),b.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[b,m]);const H=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,q=(o=i.headerName)!=null?o:i.field;return z.jsx(F4,O({ref:x,classes:_,columnMenuOpen:a,colIndex:l,height:s,isResizing:u,sortDirection:c,hasFocus:m,tabIndex:p,separatorSide:y,isDraggable:R,headerComponent:I,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:L,columnTitleIconButtons:A,headerClassName:H,label:q,resizable:!g.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:j,draggableContainerProps:F,columnHeaderSeparatorProps:N},T))}const xp=()=>({items:[],logicOperator:Jn.And,quickFilterValues:[],quickFilterLogicOperator:Jn.And}),zM=1e3;class pde{constructor(t=zM){this.timeouts=new Map,this.cleanupTimeout=zM,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class mde{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var Ui=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Ui||{});class hde{}function gde(e){let t=0;return function(r,o,i,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new mde:new pde);const[l]=v.useState(new hde),s=v.useRef(null),u=v.useRef();u.current=i;const c=v.useRef(null);if(!s.current&&u.current){const d=(f,m,p)=>{if(!m.defaultMuiPrevented){var h;(h=u.current)==null||h.call(u,f,m,p)}};s.current=r.current.subscribeEvent(o,d,a),t+=1,c.current={cleanupToken:t},e.registry.register(l,()=>{var f;(f=s.current)==null||f.call(s),s.current=null,c.current=null},c.current)}else!u.current&&s.current&&(s.current(),s.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));v.useEffect(()=>{if(!s.current&&u.current){const d=(f,m,p)=>{if(!m.defaultMuiPrevented){var h;(h=u.current)==null||h.call(u,f,m,p)}};s.current=r.current.subscribeEvent(o,d,a)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var d;(d=s.current)==null||d.call(s),s.current=null}},[r,o,a])}}const vde={registry:null},Ve=gde(vde),yde={isFirst:!0};function Kt(e,t,n){Ve(e,t,n,yde)}function hr(e,t){const n=v.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function bde(e){return typeof e=="number"&&!Number.isNaN(e)}function A4(e){return typeof e=="function"}function tP(e){return typeof e=="object"&&e!==null}function xde(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function rg(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Zc=(e,t,n)=>Math.max(t,Math.min(n,e));function Us(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Us(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const a=o[i];if(!Us(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Us(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wde(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Cde(e,t,n){const r=wde(e);return()=>t+(n-t)*r()}function L4(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Sde=(e,t,n,r,o)=>{const i=hr(e,"useNativeEventListener"),[a,l]=v.useState(!1),s=v.useRef(r),u=v.useCallback(c=>s.current&&s.current(c),[]);v.useEffect(()=>{s.current=r},[r]),v.useEffect(()=>{let c;if(A4(t)?c=t():c=t&&t.current?t.current:null,c&&n&&!a){i.debug(`Binding native ${n} event`),c.addEventListener(n,u,o);const d=c;l(!0);const f=()=>{i.debug(`Clearing native ${n} event`),d.removeEventListener(n,u,o)};e.current.subscribeEvent("unmount",f)}},[t,u,n,a,i,o,e])},om=e=>{const t=v.useRef(!0);t.current&&(t.current=!1,e())},Ede=100,Pde=e=>e?0:100,D4=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;ra(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const N4=e=>({page:0,pageSize:e?0:100}),kde=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),z4=(e,t)=>{if(t===Ui.DataGrid&&e>Ede)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`))},j4=e=>e.pagination,Po=tt(j4,e=>e.paginationModel),$de=tt(Po,e=>e.page),Ide=tt(Po,e=>e.pageSize);tt(Po,a0,(e,t)=>D4(t,e.pageSize));const nP=Jt(Po,li,i0,cs,m4,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(a===-1||l===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};const s=o[a],u=l-a+1,c=r.findIndex(p=>p.id===s.id);let d=c,f=0;for(;d<r.length&&f<=u;){var m;const p=r[d],h=(m=t[p.id])==null?void 0:m.depth;h===void 0?d+=1:((f<u||h>0)&&(d+=1),h===0&&(f+=1))}return{firstRowIndex:c,lastRowIndex:d-1}}),Ode=Jt(cs,nP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),B4=Jt(Nf,nP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),wp=e=>e.preferencePanel;var su=function(e){return e.filters="filters",e.columns="columns",e}(su||{});const Cp=e=>e.rowsMeta,Co=e=>e.rowSelection,Mde=tt(Co,e=>e.length),Rde=Jt(Co,$a,(e,t)=>new Map(e.map(n=>[n,t[n]]))),fv=Jt(Co,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Tde=ra(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),H4=(e,t)=>t&&e.length>1?(Tde(),[e[0]]):e,jM=(e,t)=>n=>O({},n,{sorting:O({},n.sorting,{sortModel:H4(e,t)})}),_de=e=>e==="desc",Fde=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=_de(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},Ade=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=o.comparator(a.value,l.value,a,l),r},0),Lde=(e,t)=>{const n=e.map(r=>Fde(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>Ade(n,o,i)).map(o=>o.node.id)},BM=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},rP=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Dde=new Intl.Collator,Nde=(e,t)=>{const n=rP(e,t);return n!==null?n:typeof e=="string"?Dde.compare(e.toString(),t.toString()):e-t},U4=(e,t)=>{const n=rP(e,t);return n!==null?n:Number(e)-Number(t)},V4=(e,t)=>{const n=rP(e,t);return n!==null?n:e>t?1:e<t?-1:0},W4=e=>e.headerFiltering,zde=tt(W4,e=>e.editing),jde=tt(W4,e=>e.menuOpen),Bde=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return O({},e,{virtualization:n})};function Hde(e,t){const n=i=>{e.current.setState(a=>O({},a,{virtualization:O({},a.virtualization,{enabled:i})}))};ot(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>O({},a,{virtualization:O({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const G4=e=>e.virtualization,Ude=tt(G4,e=>e.enabled),q4=tt(G4,e=>e.enabledForColumns),Vde=e=>{const{classes:t}=e;return Oe({icon:["filterIcon"]},ft,t)};function Wde(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=dt(),l=Be(),s=O({},e,{classes:l.classes}),u=Vde(s),c=De(a,wp),d=Rt(),f=Rt(),m=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:g}=wp(a.current.state);b&&g===su.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,f,d),i&&i(a.current.getColumnHeaderParams(o),y)},[a,o,i,f,d]);if(!r)return null;const p=c.open&&c.labelId===d,h=z.jsx(l.slots.baseIconButton,O({id:d,onClick:m,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?f:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:z.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return z.jsx(l.slots.baseTooltip,O({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:z.jsxs(T4,{children:[r>1&&z.jsx(R4,{badgeContent:r,color:"default",children:h}),r===1&&h]})}))}const Gde=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],qde=e=>{const{classes:t}=e;return Oe({root:["checkboxInput"]},ft,t)},Kde=v.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:l,hasFocus:s,tabIndex:u}=t,c=ce(t,Gde),d=dt(),f=Be(),m={classes:f.classes},p=qde(m),h=v.useRef(null),y=v.useRef(null),b=xt(h,n),g=d.current.getCellElement(i,o),x=E=>{const S={value:E.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",S,E)};v.useLayoutEffect(()=>{u===0&&g&&(g.tabIndex=-1)},[g,u]),v.useEffect(()=>{if(s){var E;const S=(E=h.current)==null?void 0:E.querySelector("input");S==null||S.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[s]);const w=v.useCallback(E=>{k4(E.key)&&E.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const P=d.current.isRowSelectable(i),C=d.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return z.jsx(f.slots.baseCheckbox,O({ref:b,tabIndex:u,checked:a,onChange:x,className:p.root,inputProps:{"aria-label":C},onKeyDown:w,disabled:!P,touchRippleRef:y},(r=f.slotProps)==null?void 0:r.baseCheckbox,c))}),Qde=Kde,Yde=["field","colDef"],Xde=e=>{const{classes:t}=e;return Oe({root:["checkboxInput"]},ft,t)},Zde=v.forwardRef(function(t,n){var r;const o=ce(t,Yde),[,i]=v.useState(!1),a=dt(),l=Be(),s={classes:l.classes},u=Xde(s),c=De(a,g4),d=De(a,Co),f=De(a,Nf),m=De(a,B4),p=v.useMemo(()=>typeof l.isRowSelectable!="function"?d:d.filter(S=>a.current.getRow(S)?l.isRowSelectable(a.current.getRowParams(S)):!1),[a,l.isRowSelectable,d]),h=v.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?f:m).reduce((R,I)=>(R[I]=!0,R),{}),[l.pagination,l.checkboxSelectionVisibleOnly,m,f]),y=v.useMemo(()=>p.filter(S=>h[S]).length,[p,h]),b=y>0&&y<Object.keys(h).length,g=y>0,x=S=>{const R={value:S.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",R)},w=c!==null&&c.field===t.field?0:-1;v.useLayoutEffect(()=>{const S=a.current.getColumnHeaderElement(t.field);w===0&&S&&(S.tabIndex=-1)},[w,a,t.field]);const P=v.useCallback(S=>{S.key===" "&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!g})},[a,g]),C=v.useCallback(()=>{i(S=>!S)},[]);v.useEffect(()=>a.current.subscribeEvent("rowSelectionChange",C),[a,C]);const E=a.current.getLocaleText(g?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return z.jsx(l.slots.baseCheckbox,O({ref:n,indeterminate:b,checked:g,onChange:x,className:u.root,inputProps:{"aria-label":E},tabIndex:w,onKeyDown:P},(r=l.slotProps)==null?void 0:r.baseCheckbox,o))}),HM=rt(z.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),UM=rt(z.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),VM=rt(z.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),WM=rt(z.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Jde=rt(z.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),GM=rt(z.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),efe=rt(z.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");rt(z.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");rt(z.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const tfe=rt(z.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),nfe=rt(z.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),rfe=rt(z.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),ofe=rt(z.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),ife=rt(z.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),afe=rt(z.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),i1=rt(z.jsx("path",{d:"M19 6.41L17.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"),qM=rt(z.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),lfe=rt(z.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),sfe=rt(z.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),KM=rt(z.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),ufe=rt(z.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),cfe=rt(z.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),dfe=rt(z.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),ffe=rt(z.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),pfe=rt(z.jsx("g",{children:z.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),mfe=rt(z.jsx("path",{d:"M19 6.41L17.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");rt(z.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const hfe=rt(z.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),gfe=["hideMenu","colDef","id","labelledby","className","children","open"],vfe=fe(ZE)(()=>({minWidth:248})),yfe=v.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:l,open:s}=t,u=ce(t,gfe),c=v.useCallback(d=>{P4(d.key)&&d.preventDefault(),jue(d.key)&&r(d)},[r]);return z.jsx(vfe,O({id:o,ref:n,className:ve(ne.menuList,a),"aria-labelledby":i,onKeyDown:c,autoFocus:s},u,{children:l}))}),bfe=["displayOrder"],xfe=e=>{const t=us(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:a,colDef:l,addDividers:s=!0}=e,u=v.useMemo(()=>O({},n,o),[n,o]),c=v.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const m=O({},i);return Object.entries(r).forEach(([p,h])=>{m[p]=O({},h,i[p]||{})}),m},[r,i]),d=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),f=v.useMemo(()=>{const m=Object.keys(n);return Object.keys(o).filter(p=>!m.includes(p))},[o,n]);return v.useMemo(()=>{const h=Array.from(new Set([...d,...f])).filter(y=>u[y]!=null).sort((y,b)=>{const g=c[y],x=c[b],w=Number.isFinite(g==null?void 0:g.displayOrder)?g.displayOrder:100,P=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return w-P});return h.reduce((y,b,g)=>{let x={colDef:l,onClick:a};const w=c[b];if(w){const P=ce(w,bfe);x=O({},x,P)}return s&&g!==h.length-1?[...y,[u[b],x],[JE,{}]]:[...y,[u[b],x]]},[])},[s,l,d,a,u,c,f])};function wfe(e){const{colDef:t,onClick:n}=e,r=dt(),o=Be(),l=er(r).filter(u=>u.disableColumnMenu!==!0).length===1,s=v.useCallback(u=>{l||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,l]);return o.disableColumnSelector||t.hideable===!1?null:z.jsxs(Hi,{onClick:s,disabled:l,children:[z.jsx(Hn,{children:z.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),z.jsx(Un,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function Cfe(e){const{onClick:t}=e,n=dt(),r=Be(),o=v.useCallback(i=>{t(i),n.current.showPreferences(su.columns)},[n,t]);return r.disableColumnSelector?null:z.jsxs(Hi,{onClick:o,children:[z.jsx(Hn,{children:z.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),z.jsx(Un,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function Sfe(e){return z.jsxs(v.Fragment,{children:[z.jsx(wfe,O({},e)),z.jsx(Cfe,O({},e))]})}function Efe(e){const{colDef:t,onClick:n}=e,r=dt(),o=Be(),i=v.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:z.jsxs(Hi,{onClick:i,children:[z.jsx(Hn,{children:z.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),z.jsx(Un,{children:r.current.getLocaleText("columnMenuFilter")})]})}function Pfe(e){var t;const{colDef:n,onClick:r}=e,o=dt(),i=De(o,wo),a=Be(),l=v.useMemo(()=>{if(!n)return null;const d=i.find(f=>f.field===n.field);return d==null?void 0:d.sort},[n,i]),s=(t=n.sortingOrder)!=null?t:a.sortingOrder,u=v.useCallback(d=>{r(d);const f=d.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,f===l?null:f)},[o,n,r,l]);if(!n||!n.sortable||!s.some(d=>!!d))return null;const c=d=>{const f=o.current.getLocaleText(d);return typeof f=="function"?f(n):f};return z.jsxs(v.Fragment,{children:[s.includes("asc")&&l!=="asc"?z.jsxs(Hi,{onClick:u,"data-value":"asc",children:[z.jsx(Hn,{children:z.jsx(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),z.jsx(Un,{children:c("columnMenuSortAsc")})]}):null,s.includes("desc")&&l!=="desc"?z.jsxs(Hi,{onClick:u,"data-value":"desc",children:[z.jsx(Hn,{children:z.jsx(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),z.jsx(Un,{children:c("columnMenuSortDesc")})]}):null,s.includes(null)&&l!=null?z.jsxs(Hi,{onClick:u,children:[z.jsx(Hn,{}),z.jsx(Un,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const kfe=["defaultSlots","defaultSlotProps","slots","slotProps"],$fe={columnMenuSortItem:Pfe,columnMenuFilterItem:Efe,columnMenuColumnsItem:Sfe},Ife={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Ofe=v.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,l=ce(t,kfe),s=xfe(O({},l,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return z.jsx(yfe,O({ref:n},l,{children:s.map(([u,c],d)=>z.jsx(u,O({},c),d))}))}),Mfe=v.forwardRef(function(t,n){return z.jsx(Ofe,O({},t,{ref:n,defaultSlots:$fe,defaultSlotProps:Ife}))});function Rfe(e){return We("PrivateSwitchBase",e)}Ge("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Tfe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],_fe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${pe(o)}`],input:["input"]};return Oe(i,Rfe,t)},Ffe=fe(Zl)(({ownerState:e})=>O({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Afe=fe("input",{shouldForwardProp:mr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Lfe=v.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:l,disabled:s,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:m,inputRef:p,name:h,onBlur:y,onChange:b,onFocus:g,readOnly:x,required:w=!1,tabIndex:P,type:C,value:E}=t,S=ce(t,Tfe),[R,I]=Ul({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),M=Xa(),_=j=>{g&&g(j),M&&M.onFocus&&M.onFocus(j)},D=j=>{y&&y(j),M&&M.onBlur&&M.onBlur(j)},T=j=>{if(j.nativeEvent.defaultPrevented)return;const B=j.target.checked;I(B),b&&b(j,B)};let F=s;M&&typeof F>"u"&&(F=M.disabled);const N=C==="checkbox"||C==="radio",k=O({},t,{checked:R,disabled:F,disableFocusRipple:u,edge:c}),L=_fe(k);return z.jsxs(Ffe,O({component:"span",className:ve(L.root,a),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:_,onBlur:D,ownerState:k,ref:n},S,{children:[z.jsx(Afe,O({autoFocus:r,checked:o,defaultChecked:l,className:L.input,disabled:F,id:N?f:void 0,name:h,onChange:T,readOnly:x,ref:p,required:w,ownerState:k,tabIndex:P,type:C},C==="checkbox"&&E===void 0?{}:{value:E},m)),R?i:d]}))}),K4=Lfe;function Dfe(e){return We("MuiSwitch",e)}const Nfe=Ge("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lr=Nfe,zfe=["className","color","edge","size","sx"],jfe=zE(),Bfe=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,l={root:["root",n&&`edge${pe(n)}`,`size${pe(r)}`],switchBase:["switchBase",`color${pe(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=Oe(l,Dfe,t);return O({},t,s)},Hfe=fe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${pe(n.edge)}`],t[`size${pe(n.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,[`& .${lr.thumb}`]:{width:16,height:16},[`& .${lr.switchBase}`]:{padding:4,[`&.${lr.checked}`]:{transform:"translateX(16px)"}}}}]}),Ufe=fe(K4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${lr.input}`]:t.input},n.color!=="default"&&t[`color${pe(n.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}),[`&.${lr.checked}`]:{transform:"translateX(20px)"},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${lr.checked} + .${lr.track}`]:{opacity:.5},[`&.${lr.disabled} + .${lr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${lr.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(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:{[`&.${lr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?hE(e.palette[t].main,.62):mE(e.palette[t].main,.55)}`}},[`&.${lr.checked} + .${lr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),Vfe=fe("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}`})),Wfe=fe("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%"})),Gfe=v.forwardRef(function(t,n){const r=jfe({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:l="medium",sx:s}=r,u=ce(r,zfe),c=O({},r,{color:i,edge:a,size:l}),d=Bfe(c),f=z.jsx(Wfe,{className:d.thumb,ownerState:c});return z.jsxs(Hfe,{className:ve(d.root,o),sx:s,ownerState:c,children:[z.jsx(Ufe,O({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:c},u,{classes:O({},d,{root:d.switchBase})})),z.jsx(Vfe,{className:d.track,ownerState:c})]})}),qfe=Gfe;function Kfe(e){return We("MuiFormControl",e)}Ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Qfe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Yfe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${pe(n)}`,r&&"fullWidth"]};return Oe(o,Kfe,t)},Xfe=fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>O({},t.root,t[`margin${pe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>O({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%"})),Zfe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:l="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:m="none",required:p=!1,size:h="medium",variant:y="outlined"}=r,b=ce(r,Qfe),g=O({},r,{color:a,component:l,disabled:s,error:u,fullWidth:d,hiddenLabel:f,margin:m,required:p,size:h,variant:y}),x=Yfe(g),[w,P]=v.useState(()=>{let D=!1;return o&&v.Children.forEach(o,T=>{if(!Xh(T,["Input","Select"]))return;const F=Xh(T,["Select"])?T.props.input:T;F&&bue(F.props)&&(D=!0)}),D}),[C,E]=v.useState(()=>{let D=!1;return o&&v.Children.forEach(o,T=>{Xh(T,["Input","Select"])&&(sv(T.props,!0)||sv(T.props.inputProps,!0))&&(D=!0)}),D}),[S,R]=v.useState(!1);s&&S&&R(!1);const I=c!==void 0&&!s?c:S;let M;const _=v.useMemo(()=>({adornedStart:w,setAdornedStart:P,color:a,disabled:s,error:u,filled:C,focused:I,fullWidth:d,hiddenLabel:f,size:h,onBlur:()=>{R(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{R(!0)},registerEffect:M,required:p,variant:y}),[w,a,s,u,C,I,d,f,M,p,h,y]);return z.jsx(c0.Provider,{value:_,children:z.jsx(Xfe,O({as:l,ownerState:g,className:ve(x.root,i),ref:n},b,{children:o}))})}),Q4=Zfe;function Jfe(e){return We("MuiFormControlLabel",e)}const epe=Ge("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pf=epe,tpe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],npe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${pe(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Oe(a,Jfe,t)},rpe=fe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pf.label}`]:t.label},t.root,t[`labelPlacement${pe(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>O({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pf.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},{[`& .${pf.label}`]:{[`&.${pf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),ope=fe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pf.error}`]:{color:(e.vars||e).palette.error.main}})),ipe=v.forwardRef(function(t,n){var r,o;const i=qe({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:l={},control:s,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:m,slotProps:p={}}=i,h=ce(i,tpe),y=Xa(),b=(r=u??s.props.disabled)!=null?r:y==null?void 0:y.disabled,g=m??s.props.required,x={disabled:b,required:g};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof s.props[R]>"u"&&typeof i[R]<"u"&&(x[R]=i[R])});const w=bu({props:i,muiFormControl:y,states:["error"]}),P=O({},i,{disabled:b,labelPlacement:f,required:g,error:w.error}),C=npe(P),E=(o=p.typography)!=null?o:l.typography;let S=d;return S!=null&&S.type!==Xe&&!c&&(S=z.jsx(Xe,O({component:"span"},E,{className:ve(C.label,E==null?void 0:E.className),children:S}))),z.jsxs(rpe,O({className:ve(C.root,a),ownerState:P,ref:n},h,{children:[v.cloneElement(s,x),g?z.jsxs(Nr,{display:"block",children:[S,z.jsxs(ope,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:["","*"]})]}):S]}))}),oP=ipe,ape=["className"],lpe=e=>{const{classes:t}=e;return Oe({root:["panelContent"]},ft,t)},spe=Dn("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Y4(e){const{className:t}=e,n=ce(e,ape),r=Be(),o=lpe(r);return z.jsx(spe,O({className:ve(t,o.root),ownerState:r},n))}const upe=["className"],cpe=e=>{const{classes:t}=e;return Oe({root:["panelFooter"]},ft,t)},dpe=Dn("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function X4(e){const{className:t}=e,n=ce(e,upe),r=Be(),o=cpe(r);return z.jsx(dpe,O({className:ve(t,o.root),ownerState:r},n))}const fpe=["className"],ppe=e=>{const{classes:t}=e;return Oe({root:["panelHeader"]},ft,t)},mpe=Dn("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function hpe(e){const{className:t}=e,n=ce(e,fpe),r=Be(),o=ppe(r);return z.jsx(mpe,O({className:ve(t,o.root),ownerState:r},n))}const gpe=["className","slotProps"],vpe=e=>{const{classes:t}=e;return Oe({root:["panelWrapper"]},ft,t)},ype=fe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),bpe=()=>!0,Z4=v.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=ce(t,gpe),a=Be(),l=vpe(a);return z.jsx(_N,O({open:!0,disableEnforceFocus:!0,isEnabled:bpe},o.TrapFocus,{children:z.jsx(ype,O({ref:n,tabIndex:-1,className:ve(r,l.root),ownerState:a},i))}))}),xpe=!1,wpe=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],Cpe=e=>{const{classes:t}=e;return Oe({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},ft,t)},Spe=fe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),Epe=fe("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${lr.root}`]:{marginRight:e.spacing(.5)}})),Ppe=fe(An)({justifyContent:"flex-end"}),QM=new Intl.Collator,kpe=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function $pe(e){var t,n,r;const o=dt(),i=v.useRef(null),a=De(o,Bi),l=De(o,ui),s=Be(),[u,c]=v.useState(""),d=Cpe(s),{sort:f,searchPredicate:m=kpe,autoFocusSearchField:p=!0,disableHideAllButton:h=!1,disableShowAllButton:y=!1,getTogglableColumns:b}=e,g=ce(e,wpe),x=v.useMemo(()=>{switch(f){case"asc":return[...a].sort((M,_)=>QM.compare(M.headerName||M.field,_.headerName||_.field));case"desc":return[...a].sort((M,_)=>-QM.compare(M.headerName||M.field,_.headerName||_.field));default:return a}},[a,f]),w=M=>{const{name:_}=M.target;o.current.setColumnVisibility(_,l[_]===!1)},P=v.useCallback(M=>{const _=ui(o),D=O({},_),T=b?b(a):null;return a.forEach(F=>{F.hideable&&(T==null||T.includes(F.field))&&(M?delete D[F.field]:D[F.field]=!1)}),o.current.setColumnVisibilityModel(D)},[o,a,b]),C=v.useCallback(M=>{c(M.target.value)},[]),E=v.useMemo(()=>{const M=b?b(x):null,_=M?x.filter(({field:D})=>M.includes(D)):x;return u?_.filter(D=>m(D,u.toLowerCase())):_},[x,u,m,b]),S=v.useRef(null);v.useEffect(()=>{p?i.current.focus():S.current&&typeof S.current.focus=="function"&&S.current.focus()},[p]);let R=!1;const I=M=>R===!1&&M.hideable!==!1?(R=!0,!0):!1;return z.jsxs(Z4,O({},g,{children:[z.jsx(hpe,{children:z.jsx(s.slots.baseTextField,O({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:u,onChange:C,variant:"standard",fullWidth:!0},(t=s.slotProps)==null?void 0:t.baseTextField))}),z.jsx(Y4,{children:z.jsx(Spe,{className:d.root,ownerState:s,children:E.map(M=>{var _;return z.jsxs(Epe,{className:d.columnsPanelRow,ownerState:s,children:[z.jsx(oP,{control:z.jsx(s.slots.baseSwitch,O({disabled:M.hideable===!1,checked:l[M.field]!==!1,onClick:w,name:M.field,size:"small",inputRef:I(M)?S:void 0},(_=s.slotProps)==null?void 0:_.baseSwitch)),label:M.headerName||M.field}),!s.disableColumnReorder&&xpe&&z.jsx(Ppe,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:z.jsx(s.slots.columnReorderIcon,{})})]},M.field)})})}),y&&h?null:z.jsxs(X4,{children:[h?z.jsx("span",{}):z.jsx(s.slots.baseButton,O({onClick:()=>P(!1)},(n=s.slotProps)==null?void 0:n.baseButton,{disabled:h,children:o.current.getLocaleText("columnsPanelHideAllButton")})),y?null:z.jsx(s.slots.baseButton,O({onClick:()=>P(!0)},(r=s.slotProps)==null?void 0:r.baseButton,{disabled:y,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Ipe=["children","className","classes"],Ope=Ge("MuiDataGrid",["panel","paper"]),Mpe=fe(yu,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Rpe=fe(Ko,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),Tpe=v.forwardRef((e,t)=>{const{children:n,className:r}=e,o=ce(e,Ipe),i=dt(),a=Be(),l=Ope,[s,u]=v.useState(!1),c=v.useCallback(()=>{i.current.hidePreferences()},[i]),d=v.useCallback(h=>{uv(h.key)&&i.current.hidePreferences()},[i]),f=v.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[m,p]=v.useState(null);return v.useEffect(()=>{var h;const y=(h=i.current.rootElementRef)==null||(h=h.current)==null?void 0:h.querySelector(`.${ne.columnHeaders}`);y&&p(y)},[i]),m?z.jsx(Mpe,O({ref:t,placement:"bottom-start",className:ve(r,l.panel),ownerState:a,anchorEl:m,modifiers:f},o,{children:z.jsx(xE,{mouseEvent:"onMouseUp",onClickAway:c,children:z.jsx(Rpe,{className:l.paper,ownerState:a,elevation:8,onKeyDown:d,children:s&&n})})})):null}),_pe=v.forwardRef(function(t,n){var r,o,i;const a=dt(),l=De(a,Bi),s=Be(),u=De(a,wp),c=a.current.unstable_applyPipeProcessors("preferencePanel",null,(r=u.openedPanelValue)!=null?r:su.filters);return z.jsx(s.slots.panel,O({ref:n,as:s.slots.basePopper,open:l.length>0&&u.open,id:u.panelId,"aria-labelledby":u.labelId},(o=s.slotProps)==null?void 0:o.panel,t,(i=s.slotProps)==null?void 0:i.basePopper,{children:c}))}),Fpe=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Ape=["InputComponentProps"],Lpe=e=>{const{classes:t}=e;return Oe({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ft,t)},Dpe=fe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Npe=fe("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),zpe=fe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),jpe=fe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Bpe=fe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Hpe=fe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Upe=e=>{switch(e){case Jn.And:return"filterPanelOperatorAnd";case Jn.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Qd=e=>e.headerName||e.field,YM=new Intl.Collator,Vpe=v.forwardRef(function(t,n){var r,o,i,a,l,s,u,c,d,f;const{item:m,hasMultipleFilters:p,deleteFilter:h,applyFilterChanges:y,multiFilterOperator:b,showMultiFilterOperators:g,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:w,focusElementRef:P,logicOperators:C=[Jn.And,Jn.Or],columnsSort:E,filterColumns:S,deleteIconProps:R={},logicOperatorInputProps:I={},operatorInputProps:M={},columnInputProps:_={},valueInputProps:D={}}=t,T=ce(t,Fpe),F=dt(),N=De(F,u4),k=De(F,Yn),L=Rt(),j=Rt(),B=Rt(),A=Rt(),H=Be(),q=Lpe(H),V=v.useRef(null),G=v.useRef(null),Y=p&&C.length>0,re=((r=H.slotProps)==null?void 0:r.baseFormControl)||{},J=(i=(((o=H.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,oe=((a=H.slotProps)==null?void 0:a.baseInputLabel)||{},ue=((l=H.slotProps)==null?void 0:l.baseSelectOption)||{},{InputComponentProps:ge}=D,me=ce(D,Ape),ke=v.useMemo(()=>{if(S===void 0||typeof S!="function")return N;const te=S({field:m.field,columns:N,currentFilters:(k==null?void 0:k.items)||[]});return N.filter(K=>te.includes(K.field))},[S,k==null?void 0:k.items,N,m.field]),be=v.useMemo(()=>{switch(E){case"asc":return ke.sort((te,K)=>YM.compare(Qd(te),Qd(K)));case"desc":return ke.sort((te,K)=>-YM.compare(Qd(te),Qd(K)));default:return ke}},[ke,E]),ie=m.field?F.current.getColumn(m.field):null,ye=v.useMemo(()=>{var te;return!m.operator||!ie?null:(te=ie.filterOperators)==null?void 0:te.find(K=>K.value===m.operator)},[m,ie]),U=v.useCallback(te=>{const K=te.target.value,ee=F.current.getColumn(K);if(ee.field===ie.field)return;const se=ee.filterOperators.find(_e=>_e.value===m.operator)||ee.filterOperators[0],Ce=!se.InputComponent||se.InputComponent!==(ye==null?void 0:ye.InputComponent)||ee.type!==ie.type;y(O({},m,{field:K,operator:se.value,value:Ce?void 0:m.value}))},[F,y,m,ie,ye]),Q=v.useCallback(te=>{const K=te.target.value,ee=ie==null?void 0:ie.filterOperators.find(Ce=>Ce.value===K),se=!(ee!=null&&ee.InputComponent)||(ee==null?void 0:ee.InputComponent)!==(ye==null?void 0:ye.InputComponent);y(O({},m,{operator:K,value:se?void 0:m.value}))},[y,m,ie,ye]),Z=v.useCallback(te=>{const K=te.target.value===Jn.And.toString()?Jn.And:Jn.Or;w(K)},[w]),ae=()=>{H.disableMultipleColumnsFiltering?m.value===void 0?h(m):y(O({},m,{value:void 0})):h(m)};return v.useImperativeHandle(P,()=>({focus:()=>{if(ye!=null&&ye.InputComponent){var te;V==null||(te=V.current)==null||te.focus()}else G.current.focus()}}),[ye]),z.jsxs(Dpe,O({ref:n,className:q.root,"data-id":m.id,ownerState:H},T,{children:[z.jsx(Npe,O({variant:"standard",as:H.slots.baseFormControl},re,R,{className:ve(q.deleteIcon,re.className,R.className),ownerState:H,children:z.jsx(H.slots.baseIconButton,O({"aria-label":F.current.getLocaleText("filterPanelDeleteIconLabel"),title:F.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ae,size:"small"},(s=H.slotProps)==null?void 0:s.baseIconButton,{children:z.jsx(H.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),z.jsx(zpe,O({variant:"standard",as:H.slots.baseFormControl},re,I,{sx:O({display:Y?"flex":"none",visibility:g?"visible":"hidden"},re.sx||{},I.sx||{}),className:ve(q.logicOperatorInput,re.className,I.className),ownerState:H,children:z.jsx(H.slots.baseSelect,O({inputProps:{"aria-label":F.current.getLocaleText("filterPanelLogicOperator")},value:b,onChange:Z,disabled:!!x||C.length===1,native:J},(u=H.slotProps)==null?void 0:u.baseSelect,{children:C.map(te=>v.createElement(H.slots.baseSelectOption,O({},ue,{native:J,key:te.toString(),value:te.toString()}),F.current.getLocaleText(Upe(te))))}))})),z.jsxs(jpe,O({variant:"standard",as:H.slots.baseFormControl},re,_,{className:ve(q.columnInput,re.className,_.className),ownerState:H,children:[z.jsx(H.slots.baseInputLabel,O({},oe,{htmlFor:L,id:j,children:F.current.getLocaleText("filterPanelColumns")})),z.jsx(H.slots.baseSelect,O({labelId:j,id:L,label:F.current.getLocaleText("filterPanelColumns"),value:m.field||"",onChange:U,native:J},(c=H.slotProps)==null?void 0:c.baseSelect,{children:be.map(te=>v.createElement(H.slots.baseSelectOption,O({},ue,{native:J,key:te.field,value:te.field}),Qd(te)))}))]})),z.jsxs(Bpe,O({variant:"standard",as:H.slots.baseFormControl},re,M,{className:ve(q.operatorInput,re.className,M.className),ownerState:H,children:[z.jsx(H.slots.baseInputLabel,O({},oe,{htmlFor:B,id:A,children:F.current.getLocaleText("filterPanelOperator")})),z.jsx(H.slots.baseSelect,O({labelId:A,label:F.current.getLocaleText("filterPanelOperator"),id:B,value:m.operator,onChange:Q,native:J,inputRef:G},(d=H.slotProps)==null?void 0:d.baseSelect,{children:ie==null||(f=ie.filterOperators)==null?void 0:f.map(te=>v.createElement(H.slots.baseSelectOption,O({},ue,{native:J,key:te.value,value:te.value}),te.label||F.current.getLocaleText(`filterOperator${pe(te.value)}`)))}))]})),z.jsx(Hpe,O({variant:"standard",as:H.slots.baseFormControl},re,me,{className:ve(q.valueInput,re.className,me.className),ownerState:H,children:ye!=null&&ye.InputComponent?z.jsx(ye.InputComponent,O({apiRef:F,item:m,applyValue:y,focusElementRef:V},ye.InputComponentProps,ge)):null}))]}))});class iP{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new iP}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function aP(){const e=HE(iP.create).current;return l4(e.disposeEffect),e}const Wpe=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Ti(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:l,tabIndex:s,disabled:u,clearButton:c,InputProps:d,variant:f="standard"}=e,m=ce(e,Wpe),p=aP(),[h,y]=v.useState((t=r.value)!=null?t:""),[b,g]=v.useState(!1),x=Rt(),w=Be(),P=v.useCallback(C=>{const{value:E}=C.target;y(String(E)),g(!0),p.start(w.filterDebounceMs,()=>{const S=O({},r,{value:E,fromInput:x});o(S),g(!1)})},[x,o,r,w.filterDebounceMs,p]);return v.useEffect(()=>{if(r.fromInput!==x||r.value===void 0){var E;y(String((E=r.value)!=null?E:""))}},[x,r]),z.jsx(w.slots.baseTextField,O({id:x,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:P,variant:f,type:i||"text",InputProps:O({},b||c?{endAdornment:b?z.jsx(w.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:u},d,{inputProps:O({tabIndex:s},d==null?void 0:d.inputProps)}),InputLabelProps:{shrink:!0},inputRef:l},m,(n=w.slotProps)==null?void 0:n.baseTextField))}const Gpe=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function Fu(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:a,focusElementRef:l,InputProps:s,clearButton:u,tabIndex:c,disabled:d}=e,f=ce(e,Gpe),m=aP(),[p,h]=v.useState((t=r.value)!=null?t:""),[y,b]=v.useState(!1),g=Rt(),x=Be(),w=v.useCallback(P=>{const C=P.target.value;h(String(C)),b(!0),m.start(x.filterDebounceMs,()=>{o(O({},r,{value:C})),b(!1)})},[o,r,x.filterDebounceMs,m]);return v.useEffect(()=>{var P;const C=(P=r.value)!=null?P:"";h(String(C))},[r.value]),z.jsx(x.slots.baseTextField,O({fullWidth:!0,id:g,label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),value:p,onChange:w,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:l,InputProps:O({},y||u?{endAdornment:y?z.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:d},s,{inputProps:O({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},s==null?void 0:s.inputProps)})},f,(n=x.slotProps)==null?void 0:n.baseTextField))}const qpe=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],Kpe=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:a})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(s=>{const u=o(s),c=r(s);return v.createElement(n,O({},a,{native:i,key:u,value:u}),c)}),Qpe=fe("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function XM(e){var t,n,r,o,i,a,l,s;const{item:u,applyValue:c,type:d,apiRef:f,focusElementRef:m,getOptionLabel:p,getOptionValue:h,placeholder:y,tabIndex:b,label:g,variant:x="standard",clearButton:w}=e,P=ce(e,qpe),[C,E]=v.useState((t=u.value)!=null?t:""),S=Rt(),R=Rt(),I=Be(),M=(n=(r=I.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let _=null;if(u.field){const L=f.current.getColumn(u.field);Hs(L)&&(_=L)}const D=h||((o=_)==null?void 0:o.getOptionValue),T=p||((i=_)==null?void 0:i.getOptionLabel),F=v.useMemo(()=>{if(_)return typeof _.valueOptions=="function"?_.valueOptions({field:_.field}):_.valueOptions},[_]),N=v.useCallback(L=>{let j=L.target.value;j=Aw(j,F,D),E(String(j)),c(O({},u,{value:j}))},[F,D,c,u]);if(v.useEffect(()=>{var L;let j;if(F!==void 0){if(j=Aw(u.value,F,D),j!==u.value){c(O({},u,{value:j}));return}}else j=u.value;j=(L=j)!=null?L:"",E(String(j))},[u,F,c,D]),!Hs(_)||!Hs(_))return null;const k=g??f.current.getLocaleText("filterPanelInputLabel");return z.jsxs(Qpe,{children:[z.jsxs(I.slots.baseFormControl,{children:[z.jsx(I.slots.baseInputLabel,O({},(a=I.slotProps)==null?void 0:a.baseInputLabel,{id:R,htmlFor:S,shrink:!0,variant:x,children:k})),z.jsx(I.slots.baseSelect,O({id:S,label:k,labelId:R,value:C,onChange:N,variant:x,type:d||"text",inputProps:{tabIndex:b,ref:m,placeholder:y??f.current.getLocaleText("filterPanelInputPlaceholder")},native:M,notched:x==="outlined"?!0:void 0},P,(l=I.slotProps)==null?void 0:l.baseSelect,{children:Kpe({column:_,OptionComponent:I.slots.baseSelectOption,getOptionLabel:T,getOptionValue:D,isSelectNative:M,baseSelectOptionProps:(s=I.slotProps)==null?void 0:s.baseSelectOption})}))]}),w]})}const Ype=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],Xpe=fe("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Zpe(e){var t,n,r,o;const{item:i,applyValue:a,apiRef:l,focusElementRef:s,clearButton:u,tabIndex:c,label:d,variant:f="standard"}=e,m=ce(e,Ype),[p,h]=v.useState(i.value||""),y=Be(),b=Rt(),g=Rt(),x=((t=y.slotProps)==null?void 0:t.baseSelect)||{},w=(n=x.native)!=null?n:!0,P=((r=y.slotProps)==null?void 0:r.baseSelectOption)||{},C=v.useCallback(S=>{const R=S.target.value;h(R),a(O({},i,{value:R}))},[a,i]);v.useEffect(()=>{h(i.value||"")},[i.value]);const E=d??l.current.getLocaleText("filterPanelInputLabel");return z.jsxs(Xpe,{children:[z.jsxs(y.slots.baseFormControl,{fullWidth:!0,children:[z.jsx(y.slots.baseInputLabel,O({},(o=y.slotProps)==null?void 0:o.baseInputLabel,{id:b,shrink:!0,variant:f,children:E})),z.jsxs(y.slots.baseSelect,O({labelId:b,id:g,label:E,value:p,onChange:C,variant:f,notched:f==="outlined"?!0:void 0,native:w,displayEmpty:!0,inputProps:{ref:s,tabIndex:c}},m,x,{children:[z.jsx(y.slots.baseSelectOption,O({},P,{native:w,value:"",children:l.current.getLocaleText("filterValueAny")})),z.jsx(y.slots.baseSelectOption,O({},P,{native:w,value:"true",children:l.current.getLocaleText("filterValueTrue")})),z.jsx(y.slots.baseSelectOption,O({},P,{native:w,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),u]})}const Jpe=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],ZM=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),eme=v.forwardRef(function(t,n){var r,o;const i=dt(),a=Be(),l=De(i,Yn),s=De(i,u4),u=v.useRef(null),c=v.useRef(null),{logicOperators:d=[Jn.And,Jn.Or],columnsSort:f,filterFormProps:m,getColumnForNewFilter:p,disableAddFilterButton:h=!1,disableRemoveAllButton:y=!1}=t,b=ce(t,Jpe),g=i.current.upsertFilterItem,x=v.useCallback(M=>{i.current.setFilterLogicOperator(M)},[i]),w=v.useCallback(()=>{let M;if(p&&typeof p=="function"){const _=p({currentFilters:(l==null?void 0:l.items)||[],columns:s});if(_===null)return null;M=s.find(({field:D})=>D===_)}else M=s.find(_=>{var D;return(D=_.filterOperators)==null?void 0:D.length});return M?ZM(M):null},[l==null?void 0:l.items,s,p]),P=v.useCallback(()=>{if(p===void 0||typeof p!="function")return w();const M=l.items.length?l.items:[w()].filter(Boolean),_=p({currentFilters:M,columns:s});if(_===null)return null;const D=s.find(({field:T})=>T===_);return D?ZM(D):null},[l.items,s,p,w]),C=v.useMemo(()=>l.items.length?l.items:(c.current||(c.current=w()),c.current?[c.current]:[]),[l.items,w]),E=C.length>1,S=()=>{const M=P();M&&i.current.upsertFilterItems([...C,M])},R=v.useCallback(M=>{const _=C.length===1;i.current.deleteFilterItem(M),_&&i.current.hideFilterPanel()},[i,C.length]),I=()=>{C.length===1&&C[0].value===void 0&&(i.current.deleteFilterItem(C[0]),i.current.hideFilterPanel()),i.current.setFilterModel(O({},l,{items:[]}))};return v.useEffect(()=>{d.length>0&&l.logicOperator&&!d.includes(l.logicOperator)&&x(d[0])},[d,x,l.logicOperator]),v.useEffect(()=>{C.length>0&&u.current.focus()},[C.length]),z.jsxs(Z4,O({ref:n},b,{children:[z.jsx(Y4,{children:C.map((M,_)=>z.jsx(Vpe,O({item:M,applyFilterChanges:g,deleteFilter:R,hasMultipleFilters:E,showMultiFilterOperators:_>0,multiFilterOperator:l.logicOperator,disableMultiFilterOperator:_!==1,applyMultiFilterOperatorChanges:x,focusElementRef:_===C.length-1?u:null,logicOperators:d,columnsSort:f},m),M.id==null?_:M.id))}),!a.disableMultipleColumnsFiltering&&!(h&&y)?z.jsxs(X4,{children:[h?z.jsx("span",{}):z.jsx(a.slots.baseButton,O({onClick:S,startIcon:z.jsx(a.slots.filterPanelAddIcon,{})},(r=a.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),y?null:z.jsx(a.slots.baseButton,O({onClick:I,startIcon:z.jsx(a.slots.filterPanelRemoveAllIcon,{})},(o=a.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))});function tme(e){return We("MuiListSubheader",e)}Ge("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const nme=["className","color","component","disableGutters","disableSticky","inset"],rme=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${pe(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Oe(a,tme,t)},ome=fe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${pe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>O({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),J4=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:l=!1,disableSticky:s=!1,inset:u=!1}=r,c=ce(r,nme),d=O({},r,{color:i,component:a,disableGutters:l,disableSticky:s,inset:u}),f=rme(d);return z.jsx(ome,O({as:a,className:ve(f.root,o),ref:n,ownerState:d},c))});J4.muiSkipListHighlight=!0;const ime=J4,ame=rt(z.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 lme(e){return We("MuiChip",e)}const sme=Ge("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=sme,ume=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cme=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:l,variant:s}=e,u={root:["root",s,n&&"disabled",`size${pe(r)}`,`color${pe(o)}`,l&&"clickable",l&&`clickableColor${pe(o)}`,a&&"deletable",a&&`deletableColor${pe(o)}`,`${s}${pe(o)}`],label:["label",`label${pe(r)}`],avatar:["avatar",`avatar${pe(r)}`,`avatarColor${pe(o)}`],icon:["icon",`icon${pe(r)}`,`iconColor${pe(i)}`],deleteIcon:["deleteIcon",`deleteIcon${pe(r)}`,`deleteIconColor${pe(o)}`,`deleteIcon${pe(s)}Color${pe(o)}`]};return Oe(u,lme,t)},dme=fe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:l,variant:s}=n;return[{[`& .${Et.avatar}`]:t.avatar},{[`& .${Et.avatar}`]:t[`avatar${pe(l)}`]},{[`& .${Et.avatar}`]:t[`avatarColor${pe(r)}`]},{[`& .${Et.icon}`]:t.icon},{[`& .${Et.icon}`]:t[`icon${pe(l)}`]},{[`& .${Et.icon}`]:t[`iconColor${pe(o)}`]},{[`& .${Et.deleteIcon}`]:t.deleteIcon},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${pe(l)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIconColor${pe(r)}`]},{[`& .${Et.deleteIcon}`]:t[`deleteIcon${pe(s)}Color${pe(r)}`]},t.root,t[`size${pe(l)}`],t[`color${pe(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${pe(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${pe(r)}`],t[s],t[`${s}${pe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return O({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:n,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}`]:O({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&O({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Et.deleteIcon}`]:O({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:lt(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)`:lt(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)`:lt(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}))`:lt(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})=>O({},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}))`:lt(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}))`:lt(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})=>O({},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)`:lt(e.palette[t.color].main,.7)}`,[`&.${Et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(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})`:lt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:lt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),fme=fe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${pe(r)}`]]}})(({ownerState:e})=>O({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 JM(e){return e.key==="Backspace"||e.key==="Delete"}const pme=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:l="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:m,onDelete:p,onKeyDown:h,onKeyUp:y,size:b="medium",variant:g="filled",tabIndex:x,skipFocusWhenDisabled:w=!1}=r,P=ce(r,ume),C=v.useRef(null),E=xt(C,n),S=j=>{j.stopPropagation(),p&&p(j)},R=j=>{j.currentTarget===j.target&&JM(j)&&j.preventDefault(),h&&h(j)},I=j=>{j.currentTarget===j.target&&(p&&JM(j)?p(j):j.key==="Escape"&&C.current&&C.current.blur()),y&&y(j)},M=a!==!1&&m?!0:a,_=M||p?Zl:s||"div",D=O({},r,{component:_,disabled:c,size:b,color:l,iconColor:v.isValidElement(d)&&d.props.color||l,onDelete:!!p,clickable:M,variant:g}),T=cme(D),F=_===Zl?O({component:s||"div",focusVisibleClassName:T.focusVisible},p&&{disableRipple:!0}):{};let N=null;p&&(N=u&&v.isValidElement(u)?v.cloneElement(u,{className:ve(u.props.className,T.deleteIcon),onClick:S}):z.jsx(ame,{className:ve(T.deleteIcon),onClick:S}));let k=null;o&&v.isValidElement(o)&&(k=v.cloneElement(o,{className:ve(T.avatar,o.props.className)}));let L=null;return d&&v.isValidElement(d)&&(L=v.cloneElement(d,{className:ve(T.icon,d.props.className)})),z.jsxs(dme,O({as:_,className:ve(T.root,i),disabled:M&&c?!0:void 0,onClick:m,onKeyDown:R,onKeyUp:I,ref:E,tabIndex:w&&c?-1:x,ownerState:D},F,P,{children:[k||L,z.jsx(fme,{className:ve(T.label),ownerState:D,children:f}),N]}))}),lP=pme;function mme(e){return We("MuiInput",e)}const hme=O({},Zr,Ge("MuiInput",["root","underline","input"])),Pl=hme;function gme(e){return We("MuiOutlinedInput",e)}const vme=O({},Zr,Ge("MuiOutlinedInput",["root","notchedOutline","input"])),$i=vme;function yme(e){return We("MuiFilledInput",e)}const bme=O({},Zr,Ge("MuiFilledInput",["root","underline","input"])),Jr=bme,xme=rt(z.jsx("path",{d:"M19 6.41L17.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"),ez=rt(z.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function wme(e){return We("MuiAutocomplete",e)}const Cme=Ge("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),ct=Cme;var eR,tR;const Sme=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Eme=["ref"],Pme=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:l,inputFocused:s,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${pe(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Oe(d,wme,t)},kme=fe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:l}=n;return[{[`& .${ct.tag}`]:t.tag},{[`& .${ct.tag}`]:t[`tagSize${pe(l)}`]},{[`& .${ct.inputRoot}`]:t.inputRoot},{[`& .${ct.input}`]:t.input},{[`& .${ct.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>O({[`&.${ct.focused} .${ct.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ct.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${ct.tag}`]:O({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${ct.inputRoot}`]:{flexWrap:"wrap",[`.${ct.hasPopupIcon}&, .${ct.hasClearIcon}&`]:{paddingRight:26+4},[`.${ct.hasPopupIcon}.${ct.hasClearIcon}&`]:{paddingRight:52+4},[`& .${ct.input}`]:{width:0,minWidth:30}},[`& .${Pl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Pl.root}.${Zr.sizeSmall}`]:{[`& .${Pl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${$i.root}`]:{padding:9,[`.${ct.hasPopupIcon}&, .${ct.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${ct.hasPopupIcon}.${ct.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${ct.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ct.endAdornment}`]:{right:9}},[`& .${$i.root}.${Zr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ct.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Jr.root}`]:{paddingTop:19,paddingLeft:8,[`.${ct.hasPopupIcon}&, .${ct.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${ct.hasPopupIcon}.${ct.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Jr.input}`]:{padding:"7px 4px"},[`& .${ct.endAdornment}`]:{right:9}},[`& .${Jr.root}.${Zr.sizeSmall}`]:{paddingBottom:1,[`& .${Jr.input}`]:{padding:"2.5px 4px"}},[`& .${Zr.hiddenLabel}`]:{paddingTop:8},[`& .${Jr.root}.${Zr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ct.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Jr.root}.${Zr.hiddenLabel}.${Zr.sizeSmall}`]:{[`& .${ct.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ct.input}`]:O({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),$me=fe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Ime=fe(An,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Ome=fe(An,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>O({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>O({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Mme=fe(yu,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ct.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>O({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Rme=fe(Ko,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>O({},e.typography.body1,{overflow:"auto"})),Tme=fe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),_me=fe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Fme=fe("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${ct.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${ct.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ct.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Ame=fe(ime,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Lme=fe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${ct.option}`]:{paddingLeft:24}}),Dme=v.forwardRef(function(t,n){var r,o,i,a;const l=qe({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:f,className:m,clearIcon:p=eR||(eR=z.jsx(xme,{fontSize:"small"})),clearOnBlur:h=!l.freeSolo,clearOnEscape:y=!1,clearText:b="Clear",closeText:g="Close",componentsProps:x={},defaultValue:w=l.multiple?[]:null,disableClearable:P=!1,disableCloseOnSelect:C=!1,disabled:E=!1,disabledItemsFocusable:S=!1,disableListWrap:R=!1,disablePortal:I=!1,filterSelectedOptions:M=!1,forcePopupIcon:_="auto",freeSolo:D=!1,fullWidth:T=!1,getLimitTagsText:F=Fe=>`+${Fe}`,getOptionLabel:N,groupBy:k,handleHomeEndKeys:L=!l.freeSolo,includeInputInList:j=!1,limitTags:B=-1,ListboxComponent:A="ul",ListboxProps:H,loading:q=!1,loadingText:V="Loading…",multiple:G=!1,noOptionsText:Y="No options",openOnFocus:re=!1,openText:le="Open",PaperComponent:J=Ko,PopperComponent:oe=yu,popupIcon:ue=tR||(tR=z.jsx(ez,{})),readOnly:ge=!1,renderGroup:me,renderInput:ke,renderOption:be,renderTags:ie,selectOnFocus:ye=!l.freeSolo,size:U="medium",slotProps:Q={}}=l,Z=ce(l,Sme),{getRootProps:ae,getInputProps:te,getInputLabelProps:K,getPopupIndicatorProps:ee,getClearProps:se,getTagProps:Ce,getListboxProps:_e,getOptionProps:$e,value:X,dirty:Ee,expanded:Le,id:Te,popupOpen:Pe,focused:Re,focusedTag:He,anchorEl:it,setAnchorEl:kt,inputValue:Vt,groupedOptions:nt}=vue(O({},l,{componentName:"Autocomplete"})),Sn=!P&&!E&&Ee&&!ge,en=(!D||_===!0)&&_!==!1,{onMouseDown:$r}=te(),{ref:Ct}=H??{},ut=_e(),{ref:St}=ut,Wr=ce(ut,Eme),Xo=xt(St,Ct),Gr=N||(Fe=>{var Ze;return(Ze=Fe.label)!=null?Ze:Fe}),rn=O({},l,{disablePortal:I,expanded:Le,focused:Re,fullWidth:T,getOptionLabel:Gr,hasClearIcon:Sn,hasPopupIcon:en,inputFocused:He===-1,popupOpen:Pe,size:U}),Lt=Pme(rn);let En;if(G&&X.length>0){const Fe=Ze=>O({className:Lt.tag,disabled:E},Ce(Ze));ie?En=ie(X,Fe,rn):En=X.map((Ze,je)=>z.jsx(lP,O({label:Gr(Ze),size:U},Fe({index:je}),f)))}if(B>-1&&Array.isArray(En)){const Fe=En.length-B;!Re&&Fe>0&&(En=En.splice(0,B),En.push(z.jsx("span",{className:Lt.tag,children:F(Fe)},En.length)))}const fo=me||(Fe=>z.jsxs("li",{children:[z.jsx(Ame,{className:Lt.groupLabel,ownerState:rn,component:"div",children:Fe.group}),z.jsx(Lme,{className:Lt.groupUl,ownerState:rn,children:Fe.children})]},Fe.key)),Zo=be||((Fe,Ze)=>v.createElement("li",O({},Fe,{key:Fe.key}),Gr(Ze))),bi=(Fe,Ze)=>{const je=$e({option:Fe,index:Ze});return Zo(O({},je,{className:Lt.option}),Fe,{selected:je["aria-selected"],index:Ze,inputValue:Vt},rn)},po=(r=Q.clearIndicator)!=null?r:x.clearIndicator,qr=(o=Q.paper)!=null?o:x.paper,ca=(i=Q.popper)!=null?i:x.popper,xe=(a=Q.popupIndicator)!=null?a:x.popupIndicator,he=Fe=>z.jsx(Mme,O({as:oe,disablePortal:I,style:{width:it?it.clientWidth:null},ownerState:rn,role:"presentation",anchorEl:it,open:Pe},ca,{className:ve(Lt.popper,ca==null?void 0:ca.className),children:z.jsx(Rme,O({ownerState:rn,as:J},qr,{className:ve(Lt.paper,qr==null?void 0:qr.className),children:Fe}))}));let Ne=null;return!q&&nt.length>0?Ne=he(z.jsx(Fme,O({as:A,className:Lt.listbox,ownerState:rn},Wr,H,{ref:Xo,children:nt.map((Fe,Ze)=>k?fo({key:Fe.key,group:Fe.group,children:Fe.options.map((je,gt)=>bi(je,Fe.index+gt))}):bi(Fe,Ze))}))):q&&nt.length===0?Ne=he(z.jsx(Tme,{className:Lt.loading,ownerState:rn,children:V})):nt.length===0&&!D&&!q&&(Ne=he(z.jsx(_me,{className:Lt.noOptions,ownerState:rn,role:"presentation",onMouseDown:Fe=>{Fe.preventDefault()},children:Y}))),z.jsxs(v.Fragment,{children:[z.jsx(kme,O({ref:n,className:ve(Lt.root,m),ownerState:rn},ae(Z),{children:ke({id:Te,disabled:E,fullWidth:!0,size:U==="small"?"small":void 0,InputLabelProps:K(),InputProps:O({ref:kt,className:Lt.inputRoot,startAdornment:En,onClick:Fe=>{Fe.target===Fe.currentTarget&&$r(Fe)}},(Sn||en)&&{endAdornment:z.jsxs($me,{className:Lt.endAdornment,ownerState:rn,children:[Sn?z.jsx(Ime,O({},se(),{"aria-label":b,title:b,ownerState:rn},po,{className:ve(Lt.clearIndicator,po==null?void 0:po.className),children:p})):null,en?z.jsx(Ome,O({},ee(),{disabled:E,"aria-label":Pe?g:le,title:Pe?g:le,ownerState:rn},xe,{className:ve(Lt.popupIndicator,xe==null?void 0:xe.className),children:ue})):null]})}),inputProps:O({className:Lt.input,disabled:E,readOnly:ge},te())})})),it?Ne:null]})}),tz=Dme,Nme=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function nz(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:a,error:l,helperText:s,size:u,variant:c}=e,d=ce(e,Nme),f={color:a,error:l,helperText:s,size:u,variant:c},[m,p]=v.useState(t.value||[]),h=Rt(),y=Be();v.useEffect(()=>{var g;const x=(g=t.value)!=null?g:[];p(x.map(String))},[t.value]);const b=v.useCallback((g,x)=>{p(x.map(String)),n(O({},t,{value:[...x]}))},[n,t]);return z.jsx(tz,O({multiple:!0,freeSolo:!0,options:[],filterOptions:(g,x)=>{const{inputValue:w}=x;return w==null||w===""?[]:[w]},id:h,value:m,onChange:b,renderTags:(g,x)=>g.map((w,P)=>z.jsx(y.slots.baseChip,O({variant:"outlined",size:"small",label:w},x({index:P})))),renderInput:g=>{var x;return z.jsx(y.slots.baseTextField,O({},g,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:O({},g.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},f,(x=y.slotProps)==null?void 0:x.baseTextField))}},d))}const zme=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],jme=S4();function Bme(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:a,color:l,error:s,helperText:u,size:c,variant:d="standard",getOptionLabel:f,getOptionValue:m}=e,p=ce(e,zme),h={color:l,error:s,helperText:u,size:c,variant:d},y=Rt(),b=Be();let g=null;if(r.field){const I=i.current.getColumn(r.field);Hs(I)&&(g=I)}const x=m||((t=g)==null?void 0:t.getOptionValue),w=f||((n=g)==null?void 0:n.getOptionLabel),P=v.useCallback((I,M)=>x(I)===x(M),[x]),C=v.useMemo(()=>{var I;return(I=g)!=null&&I.valueOptions?typeof g.valueOptions=="function"?g.valueOptions({field:g.field}):g.valueOptions:[]},[g]),E=v.useMemo(()=>C==null?void 0:C.map(x),[C,x]),S=v.useMemo(()=>Array.isArray(r.value)?C!==void 0?r.value.map(M=>E==null?void 0:E.findIndex(_=>_===M)).filter(M=>M>=0).map(M=>C[M]):r.value:[],[r.value,C,E]);v.useEffect(()=>{(!Array.isArray(r.value)||S.length!==r.value.length)&&o(O({},r,{value:S.map(x)}))},[r,S,o,x]);const R=v.useCallback((I,M)=>{o(O({},r,{value:M.map(x)}))},[o,r,x]);return z.jsx(tz,O({multiple:!0,options:C,isOptionEqualToValue:P,filterOptions:jme,id:y,value:S,onChange:R,getOptionLabel:w,renderTags:(I,M)=>I.map((_,D)=>z.jsx(b.slots.baseChip,O({variant:"outlined",size:"small",label:w(_)},M({index:D})))),renderInput:I=>{var M;return z.jsx(b.slots.baseTextField,O({},I,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:O({},I.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect"},h,(M=b.slotProps)==null?void 0:M.baseTextField))}},p))}const Hme=["hideMenu","options"],Ume=["hideMenu","options"];function Vme(e){const t=dt(),{hideMenu:n,options:r}=e,o=ce(e,Hme);return z.jsx(Hi,O({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function Wme(e){const t=dt(),{hideMenu:n,options:r}=e,o=ce(e,Ume);return z.jsx(Hi,O({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const Gme=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],qme=e=>{const{classes:t,disableUnderline:n}=e,o=Oe({root:["root",!n&&"underline"],input:["input"]},mme,t);return O({},t,o)},Kme=fe(p0,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...d0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),O({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"},[`&.${Pl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Pl.disabled}, .${Pl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Pl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Qme=fe(m0,{name:"MuiInput",slot:"Input",overridesResolver:f0})({}),rz=v.forwardRef(function(t,n){var r,o,i,a;const l=qe({props:t,name:"MuiInput"}),{disableUnderline:s,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:m=!1,slotProps:p,slots:h={},type:y="text"}=l,b=ce(l,Gme),g=qme(l),w={root:{ownerState:{disableUnderline:s}}},P=p??c?Er(p??c,w):w,C=(r=(o=h.root)!=null?o:u.Root)!=null?r:Kme,E=(i=(a=h.input)!=null?a:u.Input)!=null?i:Qme;return z.jsx(xd,O({slots:{root:C,input:E},slotProps:P,fullWidth:d,inputComponent:f,multiline:m,ref:n,type:y},b,{classes:g}))});rz.muiName="Input";const oz=rz,Yme=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Xme=e=>{const{classes:t,disableUnderline:n}=e,o=Oe({root:["root",!n&&"underline"],input:["input"]},yme,t);return O({},t,o)},Zme=fe(p0,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...d0(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return O({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Jr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Jr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.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"},[`&.${Jr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jr.disabled}, .${Jr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&O({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}))}),Jme=fe(m0,{name:"MuiFilledInput",slot:"Input",overridesResolver:f0})(({theme:e,ownerState:t})=>O({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})),iz=v.forwardRef(function(t,n){var r,o,i,a;const l=qe({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:m,slots:p={},type:h="text"}=l,y=ce(l,Yme),b=O({},l,{fullWidth:c,inputComponent:d,multiline:f,type:h}),g=Xme(l),x={root:{ownerState:b},input:{ownerState:b}},w=m??u?Er(x,m??u):x,P=(r=(o=p.root)!=null?o:s.Root)!=null?r:Zme,C=(i=(a=p.input)!=null?a:s.Input)!=null?i:Jme;return z.jsx(xd,O({slots:{root:P,input:C},componentsProps:w,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:h},y,{classes:g}))});iz.muiName="Input";const az=iz;var nR;const ehe=["children","classes","className","label","notched"],the=fe("fieldset",{shouldForwardProp:mr})({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%"}),nhe=fe("legend",{shouldForwardProp:mr})(({ownerState:e,theme:t})=>O({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&&O({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 rhe(e){const{className:t,label:n,notched:r}=e,o=ce(e,ehe),i=n!=null&&n!=="",a=O({},e,{notched:r,withLabel:i});return z.jsx(the,O({"aria-hidden":!0,className:t,ownerState:a},o,{children:z.jsx(nhe,{ownerState:a,children:i?z.jsx("span",{children:n}):nR||(nR=z.jsx("span",{className:"notranslate",children:""}))})}))}const ohe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ihe=e=>{const{classes:t}=e,r=Oe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gme,t);return O({},t,r)},ahe=fe(p0,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:d0})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return O({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$i.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$i.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$i.focused} .${$i.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$i.error} .${$i.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$i.disabled} .${$i.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&O({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),lhe=fe(rhe,{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}}),she=fe(m0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:f0})(({theme:e,ownerState:t})=>O({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})),lz=v.forwardRef(function(t,n){var r,o,i,a,l;const s=qe({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:m=!1,notched:p,slots:h={},type:y="text"}=s,b=ce(s,ohe),g=ihe(s),x=Xa(),w=bu({props:s,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),P=O({},s,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:x,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:m,size:w.size,type:y}),C=(r=(o=h.root)!=null?o:u.Root)!=null?r:ahe,E=(i=(a=h.input)!=null?a:u.Input)!=null?i:she;return z.jsx(xd,O({slots:{root:C,input:E},renderSuffix:S=>z.jsx(lhe,{ownerState:P,className:g.notchedOutline,label:f!=null&&f!==""&&w.required?l||(l=z.jsxs(v.Fragment,{children:[f,"","*"]})):f,notched:typeof p<"u"?p:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:c,inputComponent:d,multiline:m,ref:n,type:y},b,{classes:O({},g,{notchedOutline:null})}))});lz.muiName="Input";const sz=lz;function uhe(e){return We("MuiFormLabel",e)}const che=Ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),zf=che,dhe=["children","className","color","component","disabled","error","filled","focused","required"],fhe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e,s={root:["root",`color${pe(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Oe(s,uhe,t)},phe=fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>O({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${zf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${zf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${zf.error}`]:{color:(e.vars||e).palette.error.main}})),mhe=fe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${zf.error}`]:{color:(e.vars||e).palette.error.main}})),hhe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,l=ce(r,dhe),s=Xa(),u=bu({props:r,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),c=O({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=fhe(c);return z.jsxs(phe,O({as:a,ownerState:c,className:ve(d.root,i),ref:n},l,{children:[o,u.required&&z.jsxs(mhe,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:["","*"]})]}))}),ghe=hhe;function vhe(e){return We("MuiInputLabel",e)}Ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const yhe=["disableAnimation","margin","shrink","variant","className"],bhe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,s={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${pe(r)}`,a],asterisk:[l&&"asterisk"]},u=Oe(s,vhe,t);return O({},t,u)},xhe=fe(ghe,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>O({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"&&O({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&&O({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"&&O({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)"}))),whe=v.forwardRef(function(t,n){const r=qe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,l=ce(r,yhe),s=Xa();let u=i;typeof u>"u"&&s&&(u=s.filled||s.focused||s.adornedStart);const c=bu({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),d=O({},r,{disableAnimation:o,formControl:s,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),f=bhe(d);return z.jsx(xhe,O({"data-shrink":u,ownerState:d,ref:n,className:ve(f.root,a)},l,{classes:f}))}),uz=whe;function Che(e){return We("MuiFormHelperText",e)}const She=Ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),rR=She;var oR;const Ehe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Phe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:s}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${pe(r)}`,n&&"contained",l&&"focused",a&&"filled",s&&"required"]};return Oe(u,Che,t)},khe=fe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${pe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>O({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),$he=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,l=ce(r,Ehe),s=Xa(),u=bu({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),c=O({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Phe(c);return z.jsx(khe,O({as:a,ownerState:c,className:ve(d.root,i),ref:n},l,{children:o===" "?oR||(oR=z.jsx("span",{className:"notranslate",children:""})):o}))}),Ihe=$he;function Ohe(e){return We("MuiPopover",e)}Ge("MuiPopover",["root","paper"]);const Mhe=["onEntering"],Rhe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],The=["slotProps"];function iR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function aR(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function lR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function a1(e){return typeof e=="function"?e():e}const _he=e=>{const{classes:t}=e;return Oe({root:["root"],paper:["paper"]},Ohe,t)},Fhe=fe(wE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cz=fe(Ko,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ahe=v.forwardRef(function(t,n){var r,o,i;const a=qe({props:t,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:m,container:p,elevation:h=8,marginThreshold:y=16,open:b,PaperProps:g={},slots:x,slotProps:w,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:C=ev,transitionDuration:E="auto",TransitionProps:{onEntering:S}={},disableScrollLock:R=!1}=a,I=ce(a.TransitionProps,Mhe),M=ce(a,Rhe),_=(r=w==null?void 0:w.paper)!=null?r:g,D=v.useRef(),T=xt(D,_.ref),F=O({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:y,externalPaperSlotProps:_,transformOrigin:P,TransitionComponent:C,transitionDuration:E,TransitionProps:I}),N=_he(F),k=v.useCallback(()=>{if(d==="anchorPosition")return c;const me=a1(s),be=(me&&me.nodeType===1?me:ln(D.current).body).getBoundingClientRect();return{top:be.top+iR(be,u.vertical),left:be.left+aR(be,u.horizontal)}},[s,u.horizontal,u.vertical,c,d]),L=v.useCallback(me=>({vertical:iR(me,P.vertical),horizontal:aR(me,P.horizontal)}),[P.horizontal,P.vertical]),j=v.useCallback(me=>{const ke={width:me.offsetWidth,height:me.offsetHeight},be=L(ke);if(d==="none")return{top:null,left:null,transformOrigin:lR(be)};const ie=k();let ye=ie.top-be.vertical,U=ie.left-be.horizontal;const Q=ye+ke.height,Z=U+ke.width,ae=mi(a1(s)),te=ae.innerHeight-y,K=ae.innerWidth-y;if(y!==null&&ye<y){const ee=ye-y;ye-=ee,be.vertical+=ee}else if(y!==null&&Q>te){const ee=Q-te;ye-=ee,be.vertical+=ee}if(y!==null&&U<y){const ee=U-y;U-=ee,be.horizontal+=ee}else if(Z>K){const ee=Z-K;U-=ee,be.horizontal+=ee}return{top:`${Math.round(ye)}px`,left:`${Math.round(U)}px`,transformOrigin:lR(be)}},[s,d,k,L,y]),[B,A]=v.useState(b),H=v.useCallback(()=>{const me=D.current;if(!me)return;const ke=j(me);ke.top!==null&&(me.style.top=ke.top),ke.left!==null&&(me.style.left=ke.left),me.style.transformOrigin=ke.transformOrigin,A(!0)},[j]);v.useEffect(()=>(R&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[s,R,H]);const q=(me,ke)=>{S&&S(me,ke),H()},V=()=>{A(!1)};v.useEffect(()=>{b&&H()}),v.useImperativeHandle(l,()=>b?{updatePosition:()=>{H()}}:null,[b,H]),v.useEffect(()=>{if(!b)return;const me=fd(()=>{H()}),ke=mi(s);return ke.addEventListener("resize",me),()=>{me.clear(),ke.removeEventListener("resize",me)}},[s,b,H]);let G=E;E==="auto"&&!C.muiSupportAuto&&(G=void 0);const Y=p||(s?ln(a1(s)).body:void 0),re=(o=x==null?void 0:x.root)!=null?o:Fhe,le=(i=x==null?void 0:x.paper)!=null?i:cz,J=Gi({elementType:le,externalSlotProps:O({},_,{style:B?_.style:O({},_.style,{opacity:0})}),additionalProps:{elevation:h,ref:T},ownerState:F,className:ve(N.paper,_==null?void 0:_.className)}),oe=Gi({elementType:re,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Y,open:b},ownerState:F,className:ve(N.root,m)}),{slotProps:ue}=oe,ge=ce(oe,The);return z.jsx(re,O({},ge,!gp(re)&&{slotProps:ue,disableScrollLock:R},{children:z.jsx(C,O({appear:!0,in:b,onEntering:q,onExited:V,timeout:G},I,{children:z.jsx(le,O({},J,{children:f}))}))}))}),Lhe=Ahe;function Dhe(e){return We("MuiMenu",e)}Ge("MuiMenu",["root","paper","list"]);const Nhe=["onEntering"],zhe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],jhe={vertical:"top",horizontal:"right"},Bhe={vertical:"top",horizontal:"left"},Hhe=e=>{const{classes:t}=e;return Oe({root:["root"],paper:["paper"],list:["list"]},Dhe,t)},Uhe=fe(Lhe,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vhe=fe(cz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Whe=fe(ZE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ghe=v.forwardRef(function(t,n){var r,o;const i=qe({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:m={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:y}={},variant:b="selectedMenu",slots:g={},slotProps:x={}}=i,w=ce(i.TransitionProps,Nhe),P=ce(i,zhe),C=Uy(),E=O({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:y,PaperProps:m,transitionDuration:h,TransitionProps:w,variant:b}),S=Hhe(E),R=a&&!u&&f,I=v.useRef(null),M=(L,j)=>{I.current&&I.current.adjustStyleForScrollbar(L,{direction:C?"rtl":"ltr"}),y&&y(L,j)},_=L=>{L.key==="Tab"&&(L.preventDefault(),d&&d(L,"tabKeyDown"))};let D=-1;v.Children.map(l,(L,j)=>{v.isValidElement(L)&&(L.props.disabled||(b==="selectedMenu"&&L.props.selected||D===-1)&&(D=j))});const T=(r=g.paper)!=null?r:Vhe,F=(o=x.paper)!=null?o:m,N=Gi({elementType:g.root,externalSlotProps:x.root,ownerState:E,className:[S.root,s]}),k=Gi({elementType:T,externalSlotProps:F,ownerState:E,className:S.paper});return z.jsx(Uhe,O({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?jhe:Bhe,slots:{paper:T,root:g.root},slotProps:{root:N,paper:k},open:f,ref:n,transitionDuration:h,TransitionProps:O({onEntering:M},w),ownerState:E},P,{classes:p,children:z.jsx(Whe,O({onKeyDown:_,actions:I,autoFocus:a&&(D===-1||u),autoFocusItem:R,variant:b},c,{className:ve(S.list,c.className),children:l}))}))}),qhe=Ghe;function Khe(e){return We("MuiNativeSelect",e)}const Qhe=Ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),sP=Qhe,Yhe=["className","disabled","error","IconComponent","inputRef","variant"],Xhe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${pe(n)}`,i&&"iconOpen",r&&"disabled"]};return Oe(l,Khe,t)},dz=({ownerState:e,theme:t})=>O({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":O({},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"},[`&.${sP.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}}),Zhe=fe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${sP.multiple}`]:t.multiple}]}})(dz),fz=({ownerState:e,theme:t})=>O({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${sP.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Jhe=fe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${pe(n.variant)}`],n.open&&t.iconOpen]}})(fz),ege=v.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=t,u=ce(t,Yhe),c=O({},t,{disabled:o,variant:s,error:i}),d=Xhe(c);return z.jsxs(v.Fragment,{children:[z.jsx(Zhe,O({ownerState:c,className:ve(d.select,r),disabled:o,ref:l||n},u)),t.multiple?null:z.jsx(Jhe,{as:a,ownerState:c,className:d.icon})]})}),tge=ege;function nge(e){return We("MuiSelect",e)}const rge=Ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Yd=rge;var sR;const oge=["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"],ige=fe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Yd.select}`]:t.select},{[`&.${Yd.select}`]:t[n.variant]},{[`&.${Yd.error}`]:t.error},{[`&.${Yd.multiple}`]:t.multiple}]}})(dz,{[`&.${Yd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),age=fe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${pe(n.variant)}`],n.open&&t.iconOpen]}})(fz),lge=fe("input",{shouldForwardProp:e=>tne(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 uR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function sge(e){return e==null||typeof e=="string"&&!e.trim()}const uge=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${pe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Oe(l,nge,t)},cge=v.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:m,error:p=!1,IconComponent:h,inputRef:y,labelId:b,MenuProps:g={},multiple:x,name:w,onBlur:P,onChange:C,onClose:E,onFocus:S,onOpen:R,open:I,readOnly:M,renderValue:_,SelectDisplayProps:D={},tabIndex:T,value:F,variant:N="standard"}=t,k=ce(t,oge),[L,j]=Ul({controlled:F,default:d,name:"Select"}),[B,A]=Ul({controlled:I,default:c,name:"Select"}),H=v.useRef(null),q=v.useRef(null),[V,G]=v.useState(null),{current:Y}=v.useRef(I!=null),[re,le]=v.useState(),J=xt(n,y),oe=v.useCallback(Pe=>{q.current=Pe,Pe&&G(Pe)},[]),ue=V==null?void 0:V.parentNode;v.useImperativeHandle(J,()=>({focus:()=>{q.current.focus()},node:H.current,value:L}),[L]),v.useEffect(()=>{c&&B&&V&&!Y&&(le(l?null:ue.clientWidth),q.current.focus())},[V,l]),v.useEffect(()=>{a&&q.current.focus()},[a]),v.useEffect(()=>{if(!b)return;const Pe=ln(q.current).getElementById(b);if(Pe){const Re=()=>{getSelection().isCollapsed&&q.current.focus()};return Pe.addEventListener("click",Re),()=>{Pe.removeEventListener("click",Re)}}},[b]);const ge=(Pe,Re)=>{Pe?R&&R(Re):E&&E(Re),Y||(le(l?null:ue.clientWidth),A(Pe))},me=Pe=>{Pe.button===0&&(Pe.preventDefault(),q.current.focus(),ge(!0,Pe))},ke=Pe=>{ge(!1,Pe)},be=v.Children.toArray(s),ie=Pe=>{const Re=be.find(He=>He.props.value===Pe.target.value);Re!==void 0&&(j(Re.props.value),C&&C(Pe,Re))},ye=Pe=>Re=>{let He;if(Re.currentTarget.hasAttribute("tabindex")){if(x){He=Array.isArray(L)?L.slice():[];const it=L.indexOf(Pe.props.value);it===-1?He.push(Pe.props.value):He.splice(it,1)}else He=Pe.props.value;if(Pe.props.onClick&&Pe.props.onClick(Re),L!==He&&(j(He),C)){const it=Re.nativeEvent||Re,kt=new it.constructor(it.type,it);Object.defineProperty(kt,"target",{writable:!0,value:{value:He,name:w}}),C(kt,Pe)}x||ge(!1,Re)}},U=Pe=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Pe.key)!==-1&&(Pe.preventDefault(),ge(!0,Pe))},Q=V!==null&&B,Z=Pe=>{!Q&&P&&(Object.defineProperty(Pe,"target",{writable:!0,value:{value:L,name:w}}),P(Pe))};delete k["aria-invalid"];let ae,te;const K=[];let ee=!1;(sv({value:L})||m)&&(_?ae=_(L):ee=!0);const se=be.map(Pe=>{if(!v.isValidElement(Pe))return null;let Re;if(x){if(!Array.isArray(L))throw new Error(Ba(2));Re=L.some(He=>uR(He,Pe.props.value)),Re&&ee&&K.push(Pe.props.children)}else Re=uR(L,Pe.props.value),Re&&ee&&(te=Pe.props.children);return v.cloneElement(Pe,{"aria-selected":Re?"true":"false",onClick:ye(Pe),onKeyUp:He=>{He.key===" "&&He.preventDefault(),Pe.props.onKeyUp&&Pe.props.onKeyUp(He)},role:"option",selected:Re,value:void 0,"data-value":Pe.props.value})});ee&&(x?K.length===0?ae=null:ae=K.reduce((Pe,Re,He)=>(Pe.push(Re),He<K.length-1&&Pe.push(", "),Pe),[]):ae=te);let Ce=re;!l&&Y&&V&&(Ce=ue.clientWidth);let _e;typeof T<"u"?_e=T:_e=f?null:0;const $e=D.id||(w?`mui-component-select-${w}`:void 0),X=O({},t,{variant:N,value:L,open:Q,error:p}),Ee=uge(X),Le=O({},g.PaperProps,(r=g.slotProps)==null?void 0:r.paper),Te=Rt();return z.jsxs(v.Fragment,{children:[z.jsx(ige,O({ref:oe,tabIndex:_e,role:"combobox","aria-controls":Te,"aria-disabled":f?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,$e].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:U,onMouseDown:f||M?null:me,onBlur:Z,onFocus:S},D,{ownerState:X,className:ve(D.className,Ee.select,u),id:$e,children:sge(ae)?sR||(sR=z.jsx("span",{className:"notranslate",children:""})):ae})),z.jsx(lge,O({"aria-invalid":p,value:Array.isArray(L)?L.join(","):L,name:w,ref:H,"aria-hidden":!0,onChange:ie,tabIndex:-1,disabled:f,className:Ee.nativeInput,autoFocus:a,ownerState:X},k)),z.jsx(age,{as:h,className:Ee.icon,ownerState:X}),z.jsx(qhe,O({id:`menu-${w||""}`,anchorEl:ue,open:Q,onClose:ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:O({"aria-labelledby":b,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:Te},g.MenuListProps),slotProps:O({},g.slotProps,{paper:O({},Le,{style:O({minWidth:Ce},Le!=null?Le.style:null)})}),children:se}))]})}),dge=cge,fge=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],pge=["root"],mge=e=>{const{classes:t}=e;return t},uP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>mr(e)&&e!=="variant",slot:"Root"},hge=fe(oz,uP)(""),gge=fe(sz,uP)(""),vge=fe(az,uP)(""),pz=v.forwardRef(function(t,n){const r=qe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=ez,id:d,input:f,inputProps:m,label:p,labelId:h,MenuProps:y,multiple:b=!1,native:g=!1,onClose:x,onOpen:w,open:P,renderValue:C,SelectDisplayProps:E,variant:S="outlined"}=r,R=ce(r,fge),I=g?tge:dge,M=Xa(),_=bu({props:r,muiFormControl:M,states:["variant","error"]}),D=_.variant||S,T=O({},r,{variant:D,classes:a}),F=mge(T),N=ce(F,pge),k=f||{standard:z.jsx(hge,{ownerState:T}),outlined:z.jsx(gge,{label:p,ownerState:T}),filled:z.jsx(vge,{ownerState:T})}[D],L=xt(n,k.ref);return z.jsx(v.Fragment,{children:v.cloneElement(k,O({inputComponent:I,inputProps:O({children:i,error:_.error,IconComponent:c,variant:D,type:void 0,multiple:b},g?{id:d}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:h,MenuProps:y,onClose:x,onOpen:w,open:P,renderValue:C,SelectDisplayProps:O({id:d},E)},m,{classes:m?Er(N,m.classes):N},f?f.props.inputProps:{})},(b&&g||u)&&D==="outlined"?{notched:!0}:{},{ref:L,className:ve(k.props.className,l,F.root)},!f&&{variant:D},R))})});pz.muiName="Select";const cP=pz;function yge(e){return We("MuiTextField",e)}Ge("MuiTextField",["root"]);const bge=["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"],xge={standard:oz,filled:az,outlined:sz},wge=e=>{const{classes:t}=e;return Oe({root:["root"]},yge,t)},Cge=fe(Q4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sge=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:l,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:p,id:h,InputLabelProps:y,inputProps:b,InputProps:g,inputRef:x,label:w,maxRows:P,minRows:C,multiline:E=!1,name:S,onBlur:R,onChange:I,onFocus:M,placeholder:_,required:D=!1,rows:T,select:F=!1,SelectProps:N,type:k,value:L,variant:j="outlined"}=r,B=ce(r,bge),A=O({},r,{autoFocus:i,color:s,disabled:c,error:d,fullWidth:m,multiline:E,required:D,select:F,variant:j}),H=wge(A),q={};j==="outlined"&&(y&&typeof y.shrink<"u"&&(q.notched=y.shrink),q.label=w),F&&((!N||!N.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const V=Rt(h),G=p&&V?`${V}-helper-text`:void 0,Y=w&&V?`${V}-label`:void 0,re=xge[j],le=z.jsx(re,O({"aria-describedby":G,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:m,multiline:E,name:S,rows:T,maxRows:P,minRows:C,type:k,value:L,id:V,inputRef:x,onBlur:R,onChange:I,onFocus:M,placeholder:_,inputProps:b},q,g));return z.jsxs(Cge,O({className:ve(H.root,l),disabled:c,error:d,fullWidth:m,ref:n,required:D,color:s,variant:j,ownerState:A},B,{children:[w!=null&&w!==""&&z.jsx(uz,O({htmlFor:V,id:Y},y,{children:w})),F?z.jsx(cP,O({"aria-describedby":G,id:V,labelId:Y,value:L,input:le},N,{children:a})):le,p&&z.jsx(Ihe,O({id:G},f,{children:p}))]}))}),In=Sge,Ege=["className","selectedRowCount"],Pge=e=>{const{classes:t}=e;return Oe({root:["selectedRowCount"]},ft,t)},kge=Dn("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),$ge=v.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=ce(t,Ege),a=dt(),l=Be(),s=Pge(l),u=a.current.getLocaleText("footerRowSelected")(o);return z.jsx(kge,O({ref:n,className:ve(s.root,r),ownerState:l},i,{children:u}))}),Ige=v.forwardRef(function(t,n){var r,o;const i=dt(),a=Be(),l=De(i,hse),s=De(i,Mde),u=De(i,a0),c=!a.hideFooterSelectedRowCount&&s>0?z.jsx($ge,{selectedRowCount:s}):z.jsx("div",{}),d=!a.hideFooterRowCount&&!a.pagination?z.jsx(a.slots.footerRowCount,O({},(r=a.slotProps)==null?void 0:r.footerRowCount,{rowCount:l,visibleRowCount:u})):null,f=a.pagination&&!a.hideFooterPagination&&a.slots.pagination&&z.jsx(a.slots.pagination,O({},(o=a.slotProps)==null?void 0:o.pagination));return z.jsxs(_ce,O({ref:n},t,{children:[c,d,f]}))});function Oge(){var e,t;const n=Be();return z.jsxs(v.Fragment,{children:[z.jsx(n.slots.preferencesPanel,O({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&z.jsx(n.slots.toolbar,O({},(t=n.slotProps)==null?void 0:t.toolbar))]})}function Mge(e){return We("MuiCircularProgress",e)}Ge("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Rge=["className","color","disableShrink","size","style","thickness","value","variant"];let h0=e=>e,cR,dR,fR,pR;const cl=44,Tge=ls(cR||(cR=h0`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),_ge=ls(dR||(dR=h0`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),Fge=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${pe(r)}`],svg:["svg"],circle:["circle",`circle${pe(n)}`,o&&"circleDisableShrink"]};return Oe(i,Mge,t)},Age=fe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pe(n.color)}`]]}})(({ownerState:e,theme:t})=>O({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"&&Vc(fR||(fR=h0`
animation: ${0} 1.4s linear infinite;
`),Tge)),Lge=fe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Dge=fe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>O({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&&Vc(pR||(pR=h0`
animation: ${0} 1.4s ease-in-out infinite;
`),_ge)),Nge=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=ce(r,Rge),m=O({},r,{color:i,disableShrink:a,size:l,thickness:u,value:c,variant:d}),p=Fge(m),h={},y={},b={};if(d==="determinate"){const g=2*Math.PI*((cl-u)/2);h.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*g).toFixed(3)}px`,y.transform="rotate(-90deg)"}return z.jsx(Age,O({className:ve(p.root,o),style:O({width:l,height:l},y,s),ownerState:m,ref:n,role:"progressbar"},b,f,{children:z.jsx(Lge,{className:p.svg,ownerState:m,viewBox:`${cl/2} ${cl/2} ${cl} ${cl}`,children:z.jsx(Dge,{className:p.circle,style:h,ownerState:m,cx:cl,cy:cl,r:(cl-u)/2,fill:"none",strokeWidth:u})})}))}),dP=Nge,zge=v.forwardRef(function(t,n){return z.jsx(eP,O({ref:n},t,{children:z.jsx(dP,{})}))}),jge=v.forwardRef(function(t,n){const o=dt().current.getLocaleText("noRowsLabel");return z.jsx(eP,O({ref:n},t,{children:o}))}),Bge=v.createContext(),Hge=Bge,Uge=v.createContext(),Vge=Uge;function Wge(e){return We("MuiTableCell",e)}const Gge=Ge("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qge=Gge,Kge=["align","className","component","padding","scope","size","sortDirection","variant"],Qge=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${pe(r)}`,o!=="normal"&&`padding${pe(o)}`,`size${pe(i)}`]};return Oe(l,Wge,t)},Yge=fe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${pe(n.size)}`],n.padding!=="normal"&&t[`padding${pe(n.padding)}`],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>O({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
${e.palette.mode==="light"?hE(lt(e.palette.divider,1),.88):mE(lt(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",[`&.${qge.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})),Xge=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:s,size:u,sortDirection:c,variant:d}=r,f=ce(r,Kge),m=v.useContext(Hge),p=v.useContext(Vge),h=p&&p.variant==="head";let y;a?y=a:y=h?"th":"td";let b=s;y==="td"?b=void 0:!b&&h&&(b="col");const g=d||p&&p.variant,x=O({},r,{align:o,component:y,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:c,stickyHeader:g==="head"&&m&&m.stickyHeader,variant:g}),w=Qge(x);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),z.jsx(Yge,O({as:y,ref:n,className:ve(w.root,i),"aria-sort":P,scope:b,ownerState:x},f))}),Lw=Xge,Zge=rt(z.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Jge=rt(z.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),eve=rt(z.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),tve=rt(z.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),nve=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],rve=v.forwardRef(function(t,n){var r,o,i,a,l,s,u,c;const{backIconButtonProps:d,count:f,disabled:m=!1,getItemAriaLabel:p,nextIconButtonProps:h,onPageChange:y,page:b,rowsPerPage:g,showFirstButton:x,showLastButton:w,slots:P={},slotProps:C={}}=t,E=ce(t,nve),S=Uy(),R=J=>{y(J,0)},I=J=>{y(J,b-1)},M=J=>{y(J,b+1)},_=J=>{y(J,Math.max(0,Math.ceil(f/g)-1))},D=(r=P.firstButton)!=null?r:An,T=(o=P.lastButton)!=null?o:An,F=(i=P.nextButton)!=null?i:An,N=(a=P.previousButton)!=null?a:An,k=(l=P.firstButtonIcon)!=null?l:tve,L=(s=P.lastButtonIcon)!=null?s:eve,j=(u=P.nextButtonIcon)!=null?u:Jge,B=(c=P.previousButtonIcon)!=null?c:Zge,A=S?T:D,H=S?F:N,q=S?N:F,V=S?D:T,G=S?C.lastButton:C.firstButton,Y=S?C.nextButton:C.previousButton,re=S?C.previousButton:C.nextButton,le=S?C.firstButton:C.lastButton;return z.jsxs("div",O({ref:n},E,{children:[x&&z.jsx(A,O({onClick:R,disabled:m||b===0,"aria-label":p("first",b),title:p("first",b)},G,{children:S?z.jsx(L,O({},C.lastButtonIcon)):z.jsx(k,O({},C.firstButtonIcon))})),z.jsx(H,O({onClick:I,disabled:m||b===0,color:"inherit","aria-label":p("previous",b),title:p("previous",b)},Y??d,{children:S?z.jsx(j,O({},C.nextButtonIcon)):z.jsx(B,O({},C.previousButtonIcon))})),z.jsx(q,O({onClick:M,disabled:m||(f!==-1?b>=Math.ceil(f/g)-1:!1),color:"inherit","aria-label":p("next",b),title:p("next",b)},re??h,{children:S?z.jsx(B,O({},C.previousButtonIcon)):z.jsx(j,O({},C.nextButtonIcon))})),w&&z.jsx(V,O({onClick:_,disabled:m||b>=Math.ceil(f/g)-1,"aria-label":p("last",b),title:p("last",b)},le,{children:S?z.jsx(k,O({},C.firstButtonIcon)):z.jsx(L,O({},C.lastButtonIcon))}))]}))}),ove=rve;function ive(e){return We("MuiTablePagination",e)}const ave=Ge("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Vs=ave;var mR;const lve=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],sve=fe(Lw,{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}})),uve=fe(tm,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>O({[`& .${Vs.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},[`& .${Vs.actions}`]:{flexShrink:0,marginLeft:20}})),cve=fe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),dve=fe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>O({},e.typography.body2,{flexShrink:0})),fve=fe(cP,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>O({[`& .${Vs.selectIcon}`]:t.selectIcon,[`& .${Vs.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Vs.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),pve=fe(Hi,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),mve=fe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>O({},e.typography.body2,{flexShrink:0}));function hve({from:e,to:t,count:n}){return`${e}${t} of ${n!==-1?n:`more than ${t}`}`}function gve(e){return`Go to ${e} page`}const vve=e=>{const{classes:t}=e;return Oe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},ive,t)},yve=v.forwardRef(function(t,n){var r;const o=qe({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=ove,backIconButtonProps:a,className:l,colSpan:s,component:u=Lw,count:c,disabled:d=!1,getItemAriaLabel:f=gve,labelDisplayedRows:m=hve,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:y,onRowsPerPageChange:b,page:g,rowsPerPage:x,rowsPerPageOptions:w=[10,25,50,100],SelectProps:P={},showFirstButton:C=!1,showLastButton:E=!1,slotProps:S={},slots:R={}}=o,I=ce(o,lve),M=o,_=vve(M),D=(r=S==null?void 0:S.select)!=null?r:P,T=D.native?"option":pve;let F;(u===Lw||u==="td")&&(F=s||1e3);const N=Rt(D.id),k=Rt(D.labelId),L=()=>c===-1?(g+1)*x:x===-1?c:Math.min(c,(g+1)*x);return z.jsx(sve,O({colSpan:F,ref:n,as:u,ownerState:M,className:ve(_.root,l)},I,{children:z.jsxs(uve,{className:_.toolbar,children:[z.jsx(cve,{className:_.spacer}),w.length>1&&z.jsx(dve,{className:_.selectLabel,id:k,children:p}),w.length>1&&z.jsx(fve,O({variant:"standard"},!D.variant&&{input:mR||(mR=z.jsx(xd,{}))},{value:x,onChange:b,id:N,labelId:k},D,{classes:O({},D.classes,{root:ve(_.input,_.selectRoot,(D.classes||{}).root),select:ve(_.select,(D.classes||{}).select),icon:ve(_.selectIcon,(D.classes||{}).icon)}),disabled:d,children:w.map(j=>v.createElement(T,O({},!gp(T)&&{ownerState:M},{className:_.menuItem,key:j.label?j.label:j,value:j.value?j.value:j}),j.label?j.label:j))})),z.jsx(mve,{className:_.displayedRows,children:m({from:c===0?0:g*x+1,to:L(),count:c===-1?-1:c,page:g})}),z.jsx(i,{className:_.actions,backIconButtonProps:a,count:c,nextIconButtonProps:h,onPageChange:y,page:g,rowsPerPage:x,showFirstButton:C,showLastButton:E,slotProps:S.actions,slots:R.actions,getItemAriaLabel:f,disabled:d})]})}))}),bve=yve,xve=fe(bve)(({theme:e})=>({[`& .${Vs.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Vs.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),wve=v.forwardRef(function(t,n){const r=dt(),o=Be(),i=De(r,Po),a=De(r,a0),l=v.useMemo(()=>{var m,p;return(m=(p=o.rowCount)!=null?p:a)!=null?m:0},[o.rowCount,a]),s=v.useMemo(()=>Math.floor(l/(i.pageSize||1)),[l,i.pageSize]),u=v.useCallback(m=>{const p=Number(m.target.value);r.current.setPageSize(p)},[r]),c=v.useCallback((m,p)=>{r.current.setPage(p)},[r]),f=(m=>{for(let p=0;p<o.pageSizeOptions.length;p+=1){const h=o.pageSizeOptions[p];if(typeof h=="number"){if(h===m)return!0}else if(h.value===m)return!0}return!1})(i.pageSize)?o.pageSizeOptions:[];return z.jsx(xve,O({ref:n,component:"div",count:l,page:i.page<=s?i.page:s,rowsPerPageOptions:f,rowsPerPage:i.pageSize,onPageChange:c,onRowsPerPageChange:u},r.current.getLocaleText("MuiTablePagination"),t))}),Cve=["className","rowCount","visibleRowCount"],Sve=e=>{const{classes:t}=e;return Oe({root:["rowCount"]},ft,t)},Eve=Dn("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Pve=v.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=ce(t,Cve),l=dt(),s=Be(),u=Sve(s);if(o===0)return null;const c=i<o?l.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return z.jsxs(Eve,O({ref:n,className:ve(u.root,r),ownerState:s},a,{children:[l.current.getLocaleText("footerTotalRows")," ",c]}))}),pv=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=nP(e),n=Ode(e)):(n=cs(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},xu=(e,t)=>{const n=pv(e,t);return v.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Dw={current:null};function im(e){return e.isInternal=!0,e}function mv(e){return e!==void 0&&e.isInternal===!0}function kve(e){return im((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Dw.current))})}function am(e){return e.map(t=>O({},t,{getApplyFilterFn:kve(t.getApplyFilterFnV7),getApplyFilterFnV7:im(t.getApplyFilterFnV7)}))}function mz(e){return im((t,n,r)=>{const o=e(t,n,r);return o&&(i=>o(i.value,i.row,n,r))})}function hz(e){return{current:e.current.getPublicApi()}}let Xd;function $ve(){if(Xd!==void 0)return Xd;try{Xd=new Function("return true")()}catch{Xd=!1}return Xd}const Nw=(e,t)=>{const n=O({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=vd(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},Ive=ra(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),Ove=ra("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),Mve=ra("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),gz=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Ive(),o=[e.items[0]]):o=e.items;const i=r&&o.some(l=>l.id==null),a=o.some(l=>l.operator==null);return i&&Ove(),a&&Mve(),a||i?O({},e,{items:o.map(l=>Nw(l,n))}):e.items!==o?O({},e,{items:o}):e},hR=(e,t,n)=>r=>O({},r,{filterModel:gz(e,t,n)}),Rl=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,vz=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const m=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(p=>m(p)):m(e.value)}else r=e.value;const{ignoreDiacritics:i}=t.current.rootProps;i&&(r=Rl(r));const a=O({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const s=l.find(m=>m.value===a.operator);if(!s)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);const u=!mv(s.getApplyFilterFn),c=!mv(s.getApplyFilterFnV7),d=hz(t);if(s.getApplyFilterFnV7&&!(u&&!c)){const m=s.getApplyFilterFnV7(a,n);return typeof m!="function"?null:{v7:!0,item:a,fn:p=>{let h=t.current.getRowValue(p,n);return i&&(h=Rl(h)),m(h,p,n,d)}}}const f=s.getApplyFilterFn(a,n);return typeof f!="function"?null:{v7:!1,item:a,fn:m=>{const p=t.current.getCellParams(m,a.field);Dw.current=d,i&&(p.value=Rl(p.value));const h=f(p);return Dw.current=null,h}}};let gR=1;const Rve=(e,t,n)=>{const{items:r}=e,o=r.map(l=>vz(l,t)).filter(l=>!!l);if(o.length===0)return null;if(n||!$ve())return(l,s)=>{const u={};for(let c=0;c<o.length;c+=1){const d=o[c];(!s||s(d.item.field))&&(u[d.item.id]=d.v7?d.fn(l):d.fn(t.current.getRowId(l)))}return u};const i=new Function("getRowId","appliers","row","shouldApplyFilter",`"use strict";
${o.map((l,s)=>`const shouldApply${s} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
`)}
const result$$ = {
${o.map((l,s)=>` ${JSON.stringify(String(l.item.id))}: !shouldApply${s}
? false
: ${l.v7?`appliers[${s}].fn(row)`:`appliers[${s}].fn(getRowId(row))`},`).join(`
`)}
};
return result$$;`.replaceAll("$$",String(gR)));return gR+=1,(l,s)=>i(t.current.getRowId,o,l,s)},Tve=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?n0(t):_a(t),s=[],{ignoreDiacritics:u}=t.current.rootProps,c=hz(t);return l.forEach(d=>{const f=t.current.getColumn(d),m=f==null?void 0:f.getApplyQuickFilterFn,p=f==null?void 0:f.getApplyQuickFilterFnV7,h=!mv(m),y=!mv(p);p&&!(h&&!y)?s.push({column:f,appliers:i.map(b=>{const g=u?Rl(b):b;return{v7:!0,fn:p(g,f,c)}})}):m&&s.push({column:f,appliers:i.map(b=>{const g=u?Rl(b):b;return{v7:!1,fn:m(g,f,c)}})})}),function(f,m){const p={},h={};e:for(let b=0;b<i.length;b+=1){const g=i[b];for(let x=0;x<s.length;x+=1){const{column:w,appliers:P}=s[x],{field:C}=w;if(m&&!m(C))continue;const E=P[b];let S=t.current.getRowValue(f,w);if(E.fn!==null)if(E.v7){if(u&&(S=Rl(S)),E.fn(S,f,w,c)){p[g]=!0;continue e}}else{var y;const R=(y=h[C])!=null?y:t.current.getCellParams(t.current.getRowId(f),C);if(u&&(R.value=Rl(R.value)),h[C]=R,E.fn(R)){p[g]=!0;continue e}}}p[g]=!1}return p}},_ve=(e,t,n)=>{const r=Rve(e,t,n),o=Tve(e,t);return function(a,l,s){var u,c;s.passingFilterItems=(u=r==null?void 0:r(a,l))!=null?u:null,s.passingQuickFilterValues=(c=o==null?void 0:o(a,l))!=null?c:null}},vR=e=>e!=null,Fve=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>vz(r,t)!==null)),e.cleanedFilterItems),Ave=(e,t,n,r,o)=>{const i=Fve(o,r,n.items),a=e.filter(vR),l=t.filter(vR);if(a.length>0){var s;const c=f=>a.some(m=>m[f.id]);if(((s=n.logicOperator)!=null?s:xp().logicOperator)===Jn.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(l.length>0&&n.quickFilterValues!=null){var u;const c=f=>l.some(m=>m[f]);if(((u=n.quickFilterLogicOperator)!=null?u:xp().quickFilterLogicOperator)===Jn.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},yR=im(e=>{if(!e)return null;const t=new RegExp(rg(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Rl(a)),a!=null?t.test(a.toString()):!1}}),Lve=(e=!1)=>am([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(rg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ti},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ti},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${rg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ti},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${rg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ti},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:nz}]),fi={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Nde,type:"string",align:"left",filterOperators:Lve(),renderEditCell:Fue,getApplyQuickFilterFn:mz(yR),getApplyQuickFilterFnV7:yR},Dve=()=>am([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Zpe}]);function Nve({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const zve=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},yz=O({},fi,{type:"boolean",align:"center",headerAlign:"center",renderCell:iue,renderEditCell:uue,sortComparator:U4,valueFormatter:Nve,filterOperators:Dve(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>zve(e)}),ml="__check__",wd=O({},yz,{field:ml,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>fv(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>z.jsx(Zde,O({},e)),renderCell:e=>z.jsx(Qde,O({},e))}),g0="actions",jve=O({},fi,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:tce,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),fP="__detail_panel_toggle__",xr=e=>e.editRows,Bve=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],Hve=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:a}=e;return Oe({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},ft,a)};function Uve({width:e}){if(!e)return null;const t={width:e};return z.jsx("div",{className:`${ne.cell} ${ne.withBorderColor}`,style:t})}const Vve=v.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:i,row:a,index:l,style:s,position:u,rowHeight:c,className:d,visibleColumns:f,renderedColumns:m,containerWidth:p,firstColumnToRender:h,isLastVisible:y=!1,focusedCellColumnIndexNotInRange:b,isNotVisible:g,focusedCell:x,onClick:w,onDoubleClick:P,onMouseEnter:C,onMouseLeave:E,onMouseOut:S,onMouseOver:R}=t,I=ce(t,Bve),M=dt(),_=v.useRef(null),D=Be(),T=xu(M,D),F=De(M,VE),N=De(M,wo),k=De(M,i0),L=De(M,nm),j=De(M,xr),B=xt(_,n),A=l+L+2,H={selected:r,hovered:o,isLastVisible:y,classes:D.classes,editing:M.current.getRowMode(i)===Bt.Edit,editable:D.editMode===Ki.Row,rowHeight:c},q=Hve(H);v.useLayoutEffect(()=>{c==="auto"&&_.current&&typeof ResizeObserver>"u"&&M.current.unstable_storeRowHeightMeasurement(i,_.current.clientHeight,u)},[M,c,i,u]),v.useLayoutEffect(()=>{if(T.range){const Ce=M.current.getRowIndexRelativeToVisibleRows(i);Ce!=null&&M.current.unstable_setLastMeasuredRowIndex(Ce)}const K=_.current;if(!K||c!=="auto"||typeof ResizeObserver>"u")return;const se=new ResizeObserver(Ce=>{const[_e]=Ce,$e=_e.borderBoxSize&&_e.borderBoxSize.length>0?_e.borderBoxSize[0].blockSize:_e.contentRect.height;M.current.unstable_storeRowHeightMeasurement(i,$e,u)});return se.observe(K),()=>se.disconnect()},[M,T.range,l,c,i,u]);const V=v.useCallback((K,ee)=>se=>{rm(se)||M.current.getRow(i)&&(M.current.publishEvent(K,M.current.getRowParams(i),se),ee&&ee(se))},[M,i]),G=v.useCallback(K=>{const ee=Use(K.target,ne.cell),se=ee==null?void 0:ee.getAttribute("data-field");if(se){if(se===wd.field||se===fP||se==="__reorder__"||M.current.getCellMode(i,se)===Mt.Edit)return;const Ce=M.current.getColumn(se);if((Ce==null?void 0:Ce.type)===g0)return}V("rowClick",w)(K)},[M,w,V,i]),{slots:Y,slotProps:re,disableColumnReorder:le}=D,J=Y.cell===Fw?Fw:Jse,oe=D.rowReordering,ue=(K,ee)=>{var se,Ce;const _e=le&&K.disableReorder||!oe&&!!N.length&&k>1&&Object.keys(j).length>0,$e=(se=(Ce=j[i])==null?void 0:Ce[K.field])!=null?se:null;let X=!1;return b!==void 0&&f[b].field===K.field&&(X=!0),z.jsx(J,O({column:K,width:ee.width,rowId:i,height:c,showRightBorder:ee.showRightBorder,align:K.align||"left",colIndex:ee.indexRelativeToAllColumns,colSpan:ee.colSpan,disableDragEvents:_e,editCellState:$e,isNotVisible:X},re==null?void 0:re.cell),K.field)},ge=De(M,()=>O({},M.current.unstable_getRowInternalSizes(i)),UE);let me=c;if(me==="auto"&&ge){let K=0;const ee=Object.entries(ge).reduce((se,[Ce,_e])=>/^base[A-Z]/.test(Ce)?(K+=1,_e>se?_e:se):se,0);ee>0&&K>1&&(me=ee)}const ke=v.useMemo(()=>{if(g)return{opacity:0,width:0,height:0};const K=O({},s,{maxHeight:c==="auto"?"none":c,minHeight:me});if(ge!=null&&ge.spacingTop){const ee=D.rowSpacingType==="border"?"borderTopWidth":"marginTop";K[ee]=ge.spacingTop}if(ge!=null&&ge.spacingBottom){const ee=D.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let se=K[ee];typeof se!="number"&&(se=parseInt(se||"0",10)),se+=ge.spacingBottom,K[ee]=se}return K},[g,c,s,me,ge,D.rowSpacingType]),be=M.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof D.getRowClassName=="function"){var ie;const K=l-(((ie=T.range)==null?void 0:ie.firstRowIndex)||0),ee=O({},M.current.getRowParams(i),{isFirstVisible:K===0,isLastVisible:K===T.rows.length-1,indexRelativeToCurrentPage:K});be.push(D.getRowClassName(ee))}const ye=Cde(1e4,20,80),U=M.current.getRowNode(i);if(!U)return null;const Q=U.type,Z=[];for(let K=0;K<m.length;K+=1){const ee=m[K];let se=h+K;b!==void 0&&x&&(f[b].field===ee.field?se=b:se-=1);const Ce=M.current.unstable_getCellColSpanInfo(i,se);if(Ce&&!Ce.spannedByColSpan)if(Q!=="skeletonRow"){const{colSpan:_e,width:$e}=Ce.cellProps,X={width:$e,colSpan:_e,showRightBorder:D.showCellVerticalBorder,indexRelativeToAllColumns:se};Z.push(ue(ee,X))}else{const{width:_e}=Ce.cellProps,$e=Math.round(ye());Z.push(z.jsx(Y.skeletonCell,{width:_e,contentWidth:$e,field:ee.field,align:ee.align},ee.field))}}const ae=p-F,te=a?{onClick:G,onDoubleClick:V("rowDoubleClick",P),onMouseEnter:V("rowMouseEnter",C),onMouseLeave:V("rowMouseLeave",E),onMouseOut:V("rowMouseOut",S),onMouseOver:V("rowMouseOver",R)}:null;return z.jsxs("div",O({ref:B,"data-id":i,"data-rowindex":l,role:"row",className:ve(...be,q.root,d,o&&"Mui-hovered"),"aria-rowindex":A,"aria-selected":r,style:ke},te,I,{children:[Z,ae>0&&z.jsx(Uve,{width:ae})]}))}),Wve=u0(Vve);function Gve({privateApiRef:e,props:t,children:n}){const r=v.useRef(e.current.getPublicApi());return z.jsx(i4.Provider,{value:t,children:z.jsx(a4.Provider,{value:e,children:z.jsx(o4.Provider,{value:r,children:n})})})}const qve=xde()&&window.localStorage.getItem("DEBUG")!=null,mf=()=>{},Kve={debug:mf,info:mf,warn:mf,error:mf},bR=["debug","info","warn","error"];function xR(e,t,n=console){const r=bR.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return bR.reduce((i,a,l)=>(l>=r?i[a]=(...s)=>{const[u,...c]=s;n[a](`MUI: ${e} - ${u}`,...c)}:i[a]=mf,i),{})}const Qve=(e,t)=>{const n=v.useCallback(r=>qve?xR(r,"debug",t.logger):t.logLevel?xR(r,t.logLevel.toString(),t.logger):Kve,[t.logLevel,t.logger]);ot(e,{getLogger:n},"private")};class pP{static create(t){return new pP(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class Yve{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const l=o[a];r.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const bz=Symbol("mui.api_private"),Xve=e=>e.isPropagationStopped!==void 0;let wR=0;function Zve(e){var t;const n=(t=e.current)==null?void 0:t[bz];if(n)return n;const r={},o={state:r,store:pP.create(r),instanceId:{id:wR}};return wR+=1,o.getPublicApi=()=>e.current,o.register=(i,a)=>{Object.keys(a).forEach(l=>{const s=a[l],u=o[l];if((u==null?void 0:u.spying)===!0?u.target=s:o[l]=s,i==="public"){const c=e.current,d=c[l];(d==null?void 0:d.spying)===!0?d.target=s:c[l]=s}})},o.register("private",{caches:{},eventManager:new Yve}),o}function Jve(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[bz]:e.current}}function eye(e,t){const n=v.useRef(),r=v.useRef();r.current||(r.current=Zve(n)),n.current||(n.current=Jve(r));const o=v.useCallback((...a)=>{const[l,s,u={}]=a;if(u.defaultMuiPrevented=!1,Xve(u)&&u.isPropagationStopped())return;const c=t.signature===Ui.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,s,u,c)},[r,t.signature]),i=v.useCallback((a,l,s)=>{r.current.eventManager.on(a,l,s);const u=r.current;return()=>{u.eventManager.removeListener(a,l)}},[r]);return ot(r,{subscribeEvent:i,publishEvent:o},"public"),v.useImperativeHandle(e,()=>n.current,[n]),v.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const tye=(e,t)=>{const n=v.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},nye=e=>{const t=v.useRef({}),n=v.useRef(!1),r=v.useCallback(c=>{n.current||!c||(n.current=!0,Object.values(c.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=v.useCallback((c,d,f)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const m=t.current[c];return m.processors.get(d)!==f&&(m.processors.set(d,f),r(m)),()=>{t.current[c].processors.set(d,null)}},[r]),i=v.useCallback((c,d,f)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[d]=f,()=>{const m=t.current[c].appliers,p=ce(m,[d].map(mp));t.current[c].appliers=p}),[]),a=v.useCallback(c=>{const d=t.current[c];r(d)},[r]),l=v.useCallback((...c)=>{const[d,f,m]=c;return t.current[d]?Array.from(t.current[d].processors.values()).reduce((h,y)=>y?y(h,m):h,f):f},[]),s={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},u={unstable_applyPipeProcessors:l};ot(e,s,"private"),ot(e,u,"public")},Ln=(e,t,n)=>{const r=v.useRef(),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=v.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);om(()=>{i()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},mP=(e,t,n)=>{const r=v.useRef(),o=v.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=v.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);om(()=>{i()});const a=v.useRef(!0);v.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},hv=(e,t,n,r)=>{const o=v.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);om(()=>{o()});const i=v.useRef(!0);v.useEffect(()=>{i.current?i.current=!1:o()},[o])},uu="none",CR={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},rye=e=>{const t=v.useRef(new Map),n=v.useRef({}),r=v.useCallback((s,u,c)=>{const d=()=>{const p=n.current[u],h=ce(p,[s].map(mp));n.current[u]=h};n.current[u]||(n.current[u]={});const f=n.current[u],m=f[s];return f[s]=c,!m||m===c||s===e.current.getActiveStrategy(CR[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),d},[e]),o=v.useCallback((s,u)=>{const c=e.current.getActiveStrategy(CR[s]);if(c==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[s];if(!d||!d[c])throw new Error(`No processor found for processor "${s}" on strategy "${c}"`);const f=d[c];return f(u)},[e]),i=v.useCallback(s=>{var u;const d=Array.from(t.current.entries()).find(([,f])=>f.group!==s?!1:f.isAvailable());return(u=d==null?void 0:d[0])!=null?u:uu},[]),a=v.useCallback((s,u,c)=>{t.current.set(u,{group:s,isAvailable:c}),e.current.publishEvent("strategyAvailabilityChange")},[e]);ot(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},oye=(e,t)=>{const n=v.useRef({}),[,r]=v.useState(),o=v.useCallback(c=>{n.current[c.stateId]=c},[]),i=v.useCallback((c,d)=>{let f;if(A4(c)?f=c(e.current.state):f=c,e.current.state===f)return!1;let m=!1;const p=[];if(Object.keys(n.current).forEach(h=>{const y=n.current[h],b=y.stateSelector(e.current.state,e.current.instanceId),g=y.stateSelector(f,e.current.instanceId);g!==b&&(p.push({stateId:y.stateId,hasPropChanged:g!==y.propModel}),y.propModel!==void 0&&g!==y.propModel&&(m=!0))}),p.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${p[0].stateId}, therefore, you're not allowed to update ${p.map(h=>h.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=f,e.current.publishEvent&&e.current.publishEvent("stateChange",f),e.current.store.update(f)),p.length===1){const{stateId:h,hasPropChanged:y}=p[0],b=n.current[h],g=b.stateSelector(f,e.current.instanceId);if(b.propOnChange&&y){const x=t.signature===Ui.DataGridPro?{api:e.current,reason:d}:{reason:d};b.propOnChange(g,x)}m||e.current.publishEvent(b.changeEvent,g,{reason:d})}return!m},[e,t.signature]),a=v.useCallback((c,d,f)=>e.current.setState(m=>O({},m,{[c]:d(m[c])}),f),[e]),l=v.useCallback(()=>r(()=>e.current.state),[e]),s={setState:i,forceUpdate:l},u={updateControlState:a,registerControlState:o};ot(e,s,"public"),ot(e,u,"private")},iye=(e,t)=>{const n=eye(e,t);return Qve(n,t),oye(n,t),nye(n),rye(n),tye(n,t),n.current.register("private",{rootProps:t}),n},Ir=(e,t,n)=>{const r=v.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},aye=/(\d+)-(\d+)-(\d+)/,lye=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Au(e,t,n,r){if(!e.value)return null;const[o,i,a,l,s]=e.value.match(n?lye:aye).slice(1).map(Number),u=new Date(o,i-1,a,l||0,s||0).getTime();return c=>{if(!c)return!1;if(r)return t(c.getTime(),u);const f=new Date(c).setHours(n?c.getHours():0,n?c.getMinutes():0,0,0);return t(f,u)}}const xz=e=>am([{value:"is",getApplyFilterFnV7:t=>Au(t,(n,r)=>n===r,e),InputComponent:Fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>Au(t,(n,r)=>n!==r,e),InputComponent:Fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>Au(t,(n,r)=>n>r,e),InputComponent:Fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>Au(t,(n,r)=>n>=r,e),InputComponent:Fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>Au(t,(n,r)=>n<r,e,!e),InputComponent:Fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>Au(t,(n,r)=>n<=r,e),InputComponent:Fu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function wz({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
`))}function sye({value:e,field:t,id:n}){return e?(wz({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function uye({value:e,field:t,id:n}){return e?(wz({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const cye=O({},fi,{type:"date",sortComparator:V4,valueFormatter:sye,filterOperators:xz(),renderEditCell:E4,pastedValueParser:e=>new Date(e)}),dye=O({},fi,{type:"dateTime",sortComparator:V4,valueFormatter:uye,filterOperators:xz(!0),renderEditCell:E4,pastedValueParser:e=>new Date(e)}),xl=e=>e==null?null:Number(e),SR=im(e=>e==null||Number.isNaN(e)||e===""?null:t=>xl(t)===xl(e)),fye=()=>am([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>xl(t)===e.value,InputComponent:Ti,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>xl(t)!==e.value,InputComponent:Ti,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xl(t)>e.value,InputComponent:Ti,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xl(t)>=e.value,InputComponent:Ti,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xl(t)<e.value,InputComponent:Ti,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xl(t)<=e.value,InputComponent:Ti,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:nz,InputComponentProps:{type:"number"}}]),pye=O({},fi,{type:"number",align:"right",headerAlign:"right",sortComparator:U4,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>bde(e)?e.toLocaleString():e||"",filterOperators:fye(),getApplyQuickFilterFn:mz(SR),getApplyQuickFilterFnV7:SR}),Lu=e=>e==null||!tP(e)?e:e.value,mye=()=>am([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Lu(t)===Lu(e.value),InputComponent:XM},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Lu(t)!==Lu(e.value),InputComponent:XM},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Lu);return n=>t.includes(Lu(n))},InputComponent:Bme}]),hye=e=>typeof e[0]=="object",gye=e=>tP(e)?e.value:e,vye=e=>tP(e)?e.label:String(e),yye=O({},fi,{type:"singleSelect",getOptionLabel:vye,getOptionValue:gye,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Hs(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!hye(a))return i.getOptionLabel(r);const l=a.find(s=>i.getOptionValue(s)===r);return l?i.getOptionLabel(l):""},renderEditCell:Wue,filterOperators:mye(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(l=>i(l)===e))return e}}),Cz="__default__",bye=()=>({string:fi,number:pye,date:cye,dateTime:dye,boolean:yz,singleSelect:yye,[g0]:jve,[Cz]:fi});function zw(e,t){return typeof e=="string"&&[t,`
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const Sz=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const l=e.colDef.type;if(l==="number")o=String(e.value);else if(l==="date"||l==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return zw(o,n)};ra(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class jw{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const xye=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new jw({delimiterCharacter:r});return t.forEach(a=>{const l=n(e,a.field);i.addValue(Sz(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function wye(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:l}=e,s=n.reduce((m,p)=>`${m}${xye({id:p,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r
`,"").trim();if(!o)return s;const u=t.filter(m=>m.field!==wd.field),c=[];if(i){const m=l.current.unstable_getAllGroupDetails();let p=0;const h=u.reduce((y,b)=>{const g=l.current.unstable_getColumnGroupPath(b.field);return y[b.field]=g,p=Math.max(p,g.length),y},{});for(let y=0;y<p;y+=1){const b=new jw({delimiterCharacter:r,sanitizeCellValue:zw});c.push(b),u.forEach(g=>{const x=(h[g.field]||[])[y],w=m[x];b.addValue(w?w.headerName||w.groupId:"")})}}const d=new jw({delimiterCharacter:r,sanitizeCellValue:zw});return u.forEach(m=>{d.addValue(m.headerName||m.field)}),c.push(d),`${`${c.map(m=>m.getRowString()).join(`\r
`)}\r
`}${s}`.trim()}function ER(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function Cye(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{ER(e)}):ER(e)}function Sye(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Eye=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||Sye(a.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=Xr(e);if(u){const c=e.current.getCellParams(u.id,u.field);l=Sz(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(Cye(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);Sde(e,e.current.rootElementRef,"keydown",i),Kt(e,"clipboardCopy",t.onClipboardCopy)},Pye=e=>O({},e,{columnMenu:{open:!1}}),kye=e=>{const t=hr(e,"useGridColumnMenu"),n=v.useCallback(a=>{e.current.setState(s=>s.columnMenu.open&&s.columnMenu.field===a?s:(t.debug("Opening Column Menu"),O({},s,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=v.useCallback(()=>{const a=_w(e.current.state);if(a.field){const s=vd(e),u=ui(e),c=_a(e);let d=a.field;if(s[d]||(d=c[0]),u[d]===!1){const f=c.filter(p=>p===d?!0:u[p]!==!1),m=f.indexOf(d);d=f[m+1]||f[m-1]}e.current.setColumnHeaderFocus(d)}e.current.setState(s=>!s.columnMenu.open&&s.columnMenu.field===void 0?s:(t.debug("Hiding Column Menu"),O({},s,{columnMenu:O({},s.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=v.useCallback(a=>{t.debug("Toggle Column Menu");const l=_w(e.current.state);!l.open||l.field!==a?n(a):r()},[e,t,n,r]);ot(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Ve(e,"columnResizeStart",r),Ve(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ve(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Ez=["maxWidth","minWidth","width","flex"];function $ye({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const l=o.all[a];l&&l.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,s=t,u=0;o.frozenFields.forEach(c=>{l-=o.all[c].computedWidth,s-=o.all[c].flex});for(let c=0;c<n.length;c+=1){const d=n[c];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let m=l/s*d.flex;m<d.minWidth?(u+=d.minWidth-m,m=d.minWidth,a.min[d.field]=!0):m>d.maxWidth&&(u+=d.maxWidth-m,m=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:m,flex:d.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Bw=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{const s=O({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)s.computedWidth=0;else{let u;s.flex&&s.flex>0?(r+=s.flex,u=0,i.push(s)):u=Zc(s.width||fi.width,s.minWidth||fi.minWidth,s.maxWidth||fi.maxWidth),o+=u,s.computedWidth=u}n[l]=s});const a=Math.max(t-o,0);if(r>0&&t>0){const l=$ye({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(s=>{n[s].computedWidth=l[s].computedWidth})}return O({},e,{lookup:n})},Iye=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c<n.length;c+=1){const d=n[c];e.lookup[d]&&(i[d]=!0,a.push(d))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(c=>!i[c])],s=O({},e.lookup);for(let c=0;c<o.length;c+=1){const d=o[c],f=O({},s[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([m,p])=>{f[m]=p===-1?1/0:p}),s[d]=f}return O({},e,{orderedFields:l,lookup:s})};function PR(e,t){let n=e[Cz];return t&&e[t]&&(n=e[t]),n}const Qu=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=ui(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,l,s;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const p=Bs(e.current.state);c={orderedFields:i?[]:[...p.orderedFields],lookup:O({},p.lookup),columnVisibilityModel:o}}let d={};i&&!u&&(d=Object.keys(c.lookup).reduce((p,h)=>O({},p,{[h]:!1}),{})),t.forEach(p=>{const{field:h}=p;d[h]=!0;let y=c.lookup[h];y==null?(y=O({},PR(r,p.type),{field:h,hasBeenResized:!1}),c.orderedFields.push(h)):i&&c.orderedFields.push(h),y&&y.type!==p.type&&(y=O({},PR(r,p.type),{field:h}));let b=y.hasBeenResized;Ez.forEach(g=>{p[g]!==void 0&&(b=!0,p[g]===-1&&(p[g]=1/0))}),c.lookup[h]=O({},y,p,{hasBeenResized:b})}),i&&!u&&Object.keys(c.lookup).forEach(p=>{d[p]||delete c.lookup[p]});const f=e.current.unstable_applyPipeProcessors("hydrateColumns",c),m=Iye(f,n);return Bw(m,(a=(l=(s=e.current).getRootDimensions)==null||(l=l.call(s))==null?void 0:l.viewportInnerSize.width)!=null?a:0)},kR=e=>t=>O({},t,{columns:e});function Hw({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let a=n;a<r;a+=1)if(o[a]){const s=o[a].id,u=t.current.unstable_getCellColSpanInfo(s,e);u&&u.spannedByColSpan&&(i=u.leftVisibleCellIndex)}return i}function Oye({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:a}){const l=Math.max(e-n,t);return Hw({firstColumnToRender:l,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:a})}function hP(e,t){const n=bd(e),r=nm(e);return Math.floor(t*n)*((r??0)+1)}const Pz=bye(),Mye=(e,t,n)=>{var r,o,i,a;const l=Qu({apiRef:n,columnTypes:Pz,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(i=t.columnVisibilityModel)!=null?i:(a=t.initialState)==null||(a=a.columns)==null?void 0:a.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return O({},e,{columns:l})};function Rye(e,t){var n,r;const o=hr(e,"useGridColumns"),i=Pz,a=v.useRef(t.columns),l=v.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:ui,changeEvent:"columnVisibilityModelChange"});const s=v.useCallback(T=>{o.debug("Updating columns state."),e.current.setState(kR(T)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",T.orderedFields)},[o,e]),u=v.useCallback(T=>vd(e)[T],[e]),c=v.useCallback(()=>Bi(e),[e]),d=v.useCallback(()=>er(e),[e]),f=v.useCallback((T,F=!0)=>(F?er(e):Bi(e)).findIndex(k=>k.field===T),[e]),m=v.useCallback(T=>{const F=f(T);return Xc(e)[F]},[e,f]),p=v.useCallback(T=>{ui(e)!==T&&(e.current.setState(N=>O({},N,{columns:Qu({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:T,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),h=v.useCallback(T=>{const F=Qu({apiRef:e,columnTypes:i,columnsToUpsert:T,initialState:void 0,keepOnlyColumnsToUpsert:!1});s(F)},[e,s,i]),y=v.useCallback((T,F)=>{var N;const k=ui(e),L=(N=k[T])!=null?N:!0;if(F!==L){const j=O({},k,{[T]:F});e.current.setColumnVisibilityModel(j)}},[e]),b=v.useCallback(T=>_a(e).findIndex(N=>N===T),[e]),g=v.useCallback((T,F)=>{const N=_a(e),k=b(T);if(k===F)return;o.debug(`Moving column ${T} to index ${F}`);const L=[...N],j=L.splice(k,1)[0];L.splice(F,0,j),s(O({},Bs(e.current.state),{orderedFields:L}));const B={column:e.current.getColumn(T),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(T),oldIndex:k};e.current.publishEvent("columnIndexChange",B)},[e,o,s,b]),x=v.useCallback((T,F)=>{var N,k;o.debug(`Updating column ${T} width to ${F}`);const L=Bs(e.current.state),j=L.lookup[T],B=O({},j,{width:F,hasBeenResized:!0});s(Bw(O({},L,{lookup:O({},L.lookup,{[T]:B})}),(N=(k=e.current.getRootDimensions())==null?void 0:k.viewportInnerSize.width)!=null?N:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(T),colDef:B,width:F})},[e,o,s]),w={getColumn:u,getAllColumns:c,getColumnIndex:f,getColumnPosition:m,getVisibleColumns:d,getColumnIndexRelativeToVisibleColumns:b,updateColumns:h,setColumnVisibilityModel:p,setColumnVisibility:y,setColumnWidth:x},P={setColumnIndex:g};ot(e,w,"public"),ot(e,P,t.signature===Ui.DataGrid?"private":"public");const C=v.useCallback((T,F)=>{var N,k;const L={},j=ui(e);(!F.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((N=(k=t.initialState)==null||(k=k.columns)==null?void 0:k.columnVisibilityModel)!=null?N:{}).length>0||Object.keys(j).length>0)&&(L.columnVisibilityModel=j),L.orderedFields=_a(e);const A=Bi(e),H={};return A.forEach(q=>{if(q.hasBeenResized){const V={};Ez.forEach(G=>{let Y=q[G];Y===1/0&&(Y=-1),V[G]=Y}),H[q.field]=V}}),Object.keys(H).length>0&&(L.dimensions=H),O({},T,{columns:L})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),E=v.useCallback((T,F)=>{var N;const k=(N=F.stateToRestore.columns)==null?void 0:N.columnVisibilityModel,L=F.stateToRestore.columns;if(k==null&&L==null)return T;const j=Qu({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:L,columnVisibilityModel:k,keepOnlyColumnsToUpsert:!1});return e.current.setState(kR(j)),L!=null&&e.current.publishEvent("columnsChange",j.orderedFields),T},[e,i]),S=v.useCallback((T,F)=>{if(F===su.columns){var N;const k=t.slots.columnsPanel;return z.jsx(k,O({},(N=t.slotProps)==null?void 0:N.columnsPanel))}return T},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),R=v.useCallback(T=>t.disableColumnSelector?T:[...T,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ln(e,"columnMenu",R),Ln(e,"exportState",C),Ln(e,"restoreState",E),Ln(e,"preferencePanel",S);const I=v.useRef(null);Ve(e,"viewportInnerSizeChange",T=>{I.current!==T.width&&(I.current=T.width,s(Bw(Bs(e.current.state),T.width)))});const _=v.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const T=Qu({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});s(T)},[e,o,s,i]);mP(e,"hydrateColumns",_);const D=v.useRef(!0);v.useEffect(()=>{if(D.current){D.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),a.current===t.columns&&l.current===i)return;const T=Qu({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});a.current=t.columns,l.current=i,s(T)},[o,e,s,t.columns,i]),v.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const Tye=.7,_ye=1.3,kz={compact:Tye,comfortable:_ye,standard:1},Fye=(e,t)=>O({},e,{density:{value:t.density,factor:kz[t.density]}}),Aye=(e,t)=>{const n=hr(e,"useDensity"),r=v.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(a=>{const l=KE(a),s={value:i,factor:kz[i]};return Us(l,s)?a:O({},a,{density:s})}),e.current.forceUpdate()},[n,e]);v.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),ot(e,{setDensity:r},"public")};function Lye(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const $z=({apiRef:e,options:t})=>{const n=Bi(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(l=>l.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:er(e)).filter(o=>!o.disableExport)},Dye=({apiRef:e})=>{var t,n;const r=Pse(e),o=li(e),i=e.current.getSelectedRows(),a=r.filter(c=>o[c].type!=="footer"),l=yd(e),s=(l==null||(t=l.top)==null?void 0:t.map(c=>c.id))||[],u=(l==null||(n=l.bottom)==null?void 0:n.map(c=>c.id))||[];return a.unshift(...s),a.push(...u),i.size>0?a.filter(c=>i.has(c)):a},Nye=(e,t)=>{const n=hr(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=v.useCallback((u={})=>{var c,d,f;n.debug("Get data as CSV");const m=$z({apiRef:e,options:u}),h=((c=u.getRowsToExport)!=null?c:Dye)({apiRef:e});return wye({columns:m,rowIds:h,delimiterCharacter:u.delimiter||",",includeHeaders:(d=u.includeHeaders)!=null?d:!0,includeColumnGroupsHeaders:(f=u.includeColumnGroupsHeaders)!=null?f:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=v.useCallback(u=>{n.debug("Export data as CSV");const c=i(u),d=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",c],{type:"text/csv"});Lye(d,"csv",u==null?void 0:u.fileName)},[n,i]);ot(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const s=v.useCallback((u,c)=>{var d;return(d=c.csvOptions)!=null&&d.disableToolbarButton?u:[...u,{component:z.jsx(Vme,{options:c.csvOptions}),componentName:"csvExport"}]},[]);Ln(e,"exportMenu",s)},zye=(e,t)=>{var n,r;const o=O({},N4(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return z4(o.pageSize,t.signature),O({},e,{pagination:{paginationModel:o}})},og=(e,t,n)=>r=>{var o;let i=r.paginationModel;const a=(o=n==null?void 0:n.pageSize)!=null?o:i.pageSize,l=D4(e,a);n&&((n==null?void 0:n.page)!==i.page||(n==null?void 0:n.pageSize)!==i.pageSize)&&(i=n);const s=kde(i.page,l);return s!==i.page&&(i=O({},i,{page:s})),z4(i.pageSize,t),{paginationModel:i}},jye=(e,t)=>{var n;const r=hr(e,"useGridPagination"),o=De(e,a0),i=De(e,bd),a=Math.floor(t.rowHeight*i);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Po,changeEvent:"paginationModelChange"});const l=v.useCallback(h=>{const y=Po(e);h!==y.page&&(r.debug(`Setting page to ${h}`),e.current.setPaginationModel({page:h,pageSize:y.pageSize}))},[e,r]),s=v.useCallback(h=>{const y=Po(e);h!==y.pageSize&&(r.debug(`Setting page size to ${h}`),e.current.setPaginationModel({pageSize:h,page:y.page}))},[e,r]),u=v.useCallback(h=>{var y;const b=Po(e);h!==b&&(r.debug("Setting 'paginationModel' to",h),e.current.updateControlState("pagination",og((y=t.rowCount)!=null?y:o,t.signature,h),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);ot(e,{setPage:l,setPageSize:s,setPaginationModel:u},"public");const d=v.useCallback((h,y)=>{var b;const g=Po(e);return!y.exportOnlyDirtyModels||t.paginationModel!=null||((b=t.initialState)==null||(b=b.pagination)==null?void 0:b.paginationModel)!=null||g.page!==0&&g.pageSize!==Pde(t.autoPageSize)?O({},h,{pagination:O({},h.pagination,{paginationModel:g})}):h},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),f=v.useCallback((h,y)=>{var b,g,x;const w=(b=y.stateToRestore.pagination)!=null&&b.paginationModel?O({},N4(t.autoPageSize),(g=y.stateToRestore.pagination)==null?void 0:g.paginationModel):Po(e);return e.current.updateControlState("pagination",og((x=t.rowCount)!=null?x:o,t.signature,w),"stateRestorePreProcessing"),h},[e,t.autoPageSize,t.rowCount,t.signature,o]);Ln(e,"exportState",d),Ln(e,"restoreState",f);const m=()=>{var h;const y=Po(e);(h=e.current.virtualScrollerRef)!=null&&h.current&&e.current.scrollToIndexes({rowIndex:y.page*y.pageSize}),e.current.forceUpdate()},p=v.useCallback(()=>{const h=e.current.getRootDimensions();if(!t.autoPageSize||!h)return;const y=b4(e),b=Math.floor((h.viewportInnerSize.height-y.top-y.bottom)/a);e.current.setPageSize(b)},[e,t.autoPageSize,a]);Ve(e,"viewportInnerSizeChange",p),Ve(e,"paginationModelChange",m),v.useEffect(()=>{},[t.rowCount,t.paginationMode]),v.useEffect(()=>{var h;e.current.updateControlState("pagination",og((h=t.rowCount)!=null?h:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),v.useEffect(()=>{p()},[p])};function Bye(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Hye(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const Uye=(e,t)=>{const n=hr(e,"useGridPrintExport"),r=v.useRef(null),o=v.useRef(null),i=v.useRef({}),a=v.useRef([]);v.useEffect(()=>{r.current=ln(e.current.rootElementRef.current)},[e]);const l=v.useCallback((p,h,y)=>new Promise(b=>{const g=$z({apiRef:e,options:{fields:p,allColumns:h}}).map(P=>P.field),x=Bi(e),w={};x.forEach(P=>{w[P.field]=g.includes(P.field)}),y&&(w[wd.field]=!0),e.current.setColumnVisibilityModel(w),b()}),[e]),s=v.useCallback(p=>{const y=p({apiRef:e}).map(b=>e.current.getRow(b));e.current.setRows(y)},[e]),u=v.useCallback((p,h)=>{var y,b;const g=O({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},h),x=p.contentDocument;if(!x)return;const w=Cp(e.current.state),P=e.current.rootElementRef.current,C=P.cloneNode(!0),E=C.querySelector(`.${ne.main}`);E.style.overflow="visible",C.style.contain="size";const R=C.querySelector(`.${ne.columnHeaders}`).querySelector(`.${ne.columnHeadersInner}`);R.style.width="100%";let I=((y=P.querySelector(`.${ne.toolbarContainer}`))==null?void 0:y.offsetHeight)||0,M=((b=P.querySelector(`.${ne.footerContainer}`))==null?void 0:b.offsetHeight)||0;if(g.hideToolbar){var _;(_=C.querySelector(`.${ne.toolbarContainer}`))==null||_.remove(),I=0}if(g.hideFooter){var D;(D=C.querySelector(`.${ne.footerContainer}`))==null||D.remove(),M=0}const T=w.currentPageTotalHeight+hP(e,t.columnHeaderHeight)+I+M;if(C.style.height=`${T}px`,C.style.boxSizing="content-box",h!=null&&h.getRowsToExport){const L=C.querySelector(`.${ne.footerContainer}`);L.style.position="absolute",L.style.width="100%",L.style.top=`${T-M}px`}const F=document.createElement("div");F.appendChild(C),x.body.innerHTML=F.innerHTML;const N=typeof g.pageStyle=="function"?g.pageStyle():g.pageStyle;if(typeof N=="string"){const L=x.createElement("style");L.appendChild(x.createTextNode(N)),x.head.appendChild(L)}g.bodyClassName&&x.body.classList.add(...g.bodyClassName.split(" "));const k=[];if(g.copyStyles){const L=P.getRootNode(),B=(L.constructor.name==="ShadowRoot"?L:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let A=0;A<B.length;A+=1){const H=B[A];if(H.tagName==="STYLE"){const q=x.createElement(H.tagName),V=H.sheet;if(V){let G="";for(let Y=0;Y<V.cssRules.length;Y+=1)typeof V.cssRules[Y].cssText=="string"&&(G+=`${V.cssRules[Y].cssText}\r
`);q.appendChild(x.createTextNode(G)),x.head.appendChild(q)}}else if(H.getAttribute("href")){const q=x.createElement(H.tagName);for(let V=0;V<H.attributes.length;V+=1){const G=H.attributes[V];G&&q.setAttribute(G.nodeName,G.nodeValue||"")}k.push(new Promise(V=>{q.addEventListener("load",()=>V())})),x.head.appendChild(q)}}}Promise.all(k).then(()=>{p.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=v.useCallback(p=>{var h;r.current.body.removeChild(p),e.current.restoreState(o.current||{}),(h=o.current)!=null&&(h=h.columns)!=null&&h.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),f={exportDataAsPrint:v.useCallback(async p=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),i.current=ui(e);const h=$a(e);if(a.current=ff(e).map(b=>h[b]),t.pagination){const b=h4(e),g={page:0,pageSize:b};e.current.updateControlState("pagination",og(b,"DataGridPro",g)),e.current.forceUpdate()}await l(p==null?void 0:p.fields,p==null?void 0:p.allColumns,p==null?void 0:p.includeCheckboxes),p!=null&&p.getRowsToExport&&s(p.getRowsToExport),e.current.unstable_setVirtualization(!1),await Bye();const y=Hye(p==null?void 0:p.fileName);y.onload=()=>{u(y,p),y.contentWindow.matchMedia("print").addEventListener("change",g=>{g.matches===!1&&c(y)})},r.current.body.appendChild(y)},[t,n,e,u,c,l,s])};ot(e,f,"public");const m=v.useCallback((p,h)=>{var y;return(y=h.printOptions)!=null&&y.disableToolbarButton?p:[...p,{component:z.jsx(Wme,{options:h.printOptions}),componentName:"printExport"}]},[]);Ln(e,"exportMenu",m)},Vye=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:xp();return O({},e,{filter:{filterModel:gz(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Wye=e=>e.filteredRowsLookup;function $R(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Gye(){return t0(Object.values)}const qye=(e,t)=>{var n,r;const o=hr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Yn,changeEvent:"filterModelChange"});const i=v.useCallback(()=>{e.current.setState(I=>{const M=Yn(I,e.current.instanceId),_=t.filterMode==="client"?_ve(M,e,t.disableEval):null,D=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:_,filterModel:M??xp()}),T=O({},I,{filter:O({},I.filter,D)}),F=$R(e,T);return O({},T,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=v.useCallback((I,M)=>M==null||M.filterable===!1||t.disableColumnFilter?I:[...I,"columnMenuFilterItem"],[t.disableColumnFilter]),l=v.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),s=v.useCallback(I=>{const M=Yn(e),_=[...M.items],D=_.findIndex(T=>T.id===I.id);D===-1?_.push(I):_[D]=I,e.current.setFilterModel(O({},M,{items:_}),"upsertFilterItem")},[e]),u=v.useCallback(I=>{const M=Yn(e),_=[...M.items];I.forEach(D=>{const T=I.findIndex(F=>F.id===D.id);T===-1?_.push(D):_[T]=D}),e.current.setFilterModel(O({},M,{items:I}),"upsertFilterItems")},[e]),c=v.useCallback(I=>{const M=Yn(e),_=M.items.filter(D=>D.id!==I.id);_.length!==M.items.length&&e.current.setFilterModel(O({},M,{items:_}),"deleteFilterItem")},[e]),d=v.useCallback((I,M,_)=>{if(o.debug("Displaying filter panel"),I){const D=Yn(e),T=D.items.filter(L=>{var j;if(L.value!==void 0)return!(Array.isArray(L.value)&&L.value.length===0);const A=(j=e.current.getColumn(L.field).filterOperators)==null?void 0:j.find(q=>q.value===L.operator);return!(typeof(A==null?void 0:A.requiresFilterValue)>"u"?!0:A==null?void 0:A.requiresFilterValue)});let F;const N=T.find(L=>L.field===I),k=e.current.getColumn(I);N?F=T:t.disableMultipleColumnsFiltering?F=[Nw({field:I,operator:k.filterOperators[0].value},e)]:F=[...T,Nw({field:I,operator:k.filterOperators[0].value},e)],e.current.setFilterModel(O({},D,{items:F}))}e.current.showPreferences(su.filters,M,_)},[e,o,t.disableMultipleColumnsFiltering]),f=v.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),m=v.useCallback(I=>{const M=Yn(e);M.logicOperator!==I&&e.current.setFilterModel(O({},M,{logicOperator:I}),"changeLogicOperator")},[e]),p=v.useCallback(I=>{const M=Yn(e);Us(M.quickFilterValues,I)||e.current.setFilterModel(O({},M,{quickFilterValues:[...I]}))},[e]),h=v.useCallback((I,M)=>{Yn(e)!==I&&(o.debug("Setting filter model"),e.current.updateControlState("filter",hR(I,t.disableMultipleColumnsFiltering,e),M),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),y={setFilterLogicOperator:m,unstable_applyFilters:l,deleteFilterItem:c,upsertFilterItem:s,upsertFilterItems:u,setFilterModel:h,showFilterPanel:d,hideFilterPanel:f,setQuickFilterValues:p,ignoreDiacritics:t.ignoreDiacritics};ot(e,y,"public");const b=v.useCallback((I,M)=>{var _;const D=Yn(e);return!M.exportOnlyDirtyModels||t.filterModel!=null||((_=t.initialState)==null||(_=_.filter)==null?void 0:_.filterModel)!=null||!Us(D,xp())?O({},I,{filter:{filterModel:D}}):I},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),g=v.useCallback((I,M)=>{var _;const D=(_=M.stateToRestore.filter)==null?void 0:_.filterModel;return D==null?I:(e.current.updateControlState("filter",hR(D,t.disableMultipleColumnsFiltering,e),"restoreState"),O({},I,{callbacks:[...I.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=v.useCallback((I,M)=>{if(M===su.filters){var _;const D=t.slots.filterPanel;return z.jsx(D,O({},(_=t.slotProps)==null?void 0:_.filterPanel))}return I},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:w}=t,P=HE(Gye),C=v.useCallback(I=>{if(t.filterMode!=="client"||!I.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const M=$a(e),_={},{isRowMatchingFilters:D}=I,T={},F={passingFilterItems:null,passingQuickFilterValues:null},N=P.current(e.current.state.rows.dataRowIdToModelLookup);for(let j=0;j<N.length;j+=1){const B=N[j],A=w?w(B):B.id;D(B,void 0,F);const H=Ave([F.passingFilterItems],[F.passingQuickFilterValues],I.filterModel,e,T);_[A]=H}const k="auto-generated-group-footer-root";return M[k]&&(_[k]=!0),{filteredRowsLookup:_,filteredDescendantCountLookup:{}}},[e,t.filterMode,w,P]);Ln(e,"columnMenu",a),Ln(e,"exportState",b),Ln(e,"restoreState",g),Ln(e,"preferencePanel",x),hv(e,uu,"filtering",C),hv(e,uu,"visibleRowsLookupCreation",Wye);const E=v.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const I=Yn(e),M=dse(e),_=I.items.filter(D=>D.field&&M[D.field]);_.length<I.items.length&&e.current.setFilterModel(O({},I,{items:_}))},[e,o]),S=v.useCallback(I=>{I==="filtering"&&e.current.unstable_applyFilters()},[e]),R=v.useCallback(()=>{e.current.setState(I=>O({},I,{visibleRowsLookup:$R(e,I)})),e.current.forceUpdate()},[e]);Ve(e,"rowsSet",i),Ve(e,"columnsChange",E),Ve(e,"activeStrategyProcessorChange",S),Ve(e,"rowExpansionChange",R),Ve(e,"columnVisibilityModelChange",()=>{const I=Yn(e);I.quickFilterValues&&I.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),om(()=>{e.current.unstable_applyFilters()}),_t(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},Kye=e=>O({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Qye=(e,t)=>{const n=hr(e,"useGridFocus"),r=v.useRef(null),o=v.useCallback((E,S)=>{E&&e.current.getRow(E.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(E.id,E.field),S)},[e]),i=v.useCallback((E,S)=>{const R=Xr(e);(R==null?void 0:R.id)===E&&(R==null?void 0:R.field)===S||(e.current.setState(I=>(n.debug(`Focusing on cell with id=${E} and field=${S}`),O({},I,{tabIndex:{cell:{id:E,field:S},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:E,field:S},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(E)&&(R&&o(R,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(E,S))))},[e,n,o]),a=v.useCallback((E,S={})=>{const R=Xr(e);o(R,S),e.current.setState(I=>(n.debug(`Focusing on column header with colIndex=${E}`),O({},I,{tabIndex:{columnHeader:{field:E},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:E},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=v.useCallback((E,S={})=>{const R=Xr(e);o(R,S),e.current.setState(I=>(n.debug(`Focusing on column header filter with colIndex=${E}`),O({},I,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:E},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:E},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),s=v.useCallback((E,S,R={})=>{const I=Xr(e);I&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),R),e.current.setState(M=>O({},M,{tabIndex:{columnGroupHeader:{field:E,depth:S},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:E,depth:S},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),u=v.useCallback(()=>ov(e),[e]),c=v.useCallback((E,S,R)=>{let I=e.current.getColumnIndex(S);const M=er(e),_=pv(e,{pagination:t.pagination,paginationMode:t.paginationMode}),D=yd(e),T=[].concat(D.top||[],_.rows,D.bottom||[]);let F=T.findIndex(j=>j.id===E);R==="right"?I+=1:R==="left"?I-=1:F+=1,I>=M.length?(F+=1,F<T.length&&(I=0)):I<0&&(F-=1,F>=0&&(I=M.length-1)),F=Zc(F,0,T.length-1);const N=T[F];if(!N)return;const k=e.current.unstable_getCellColSpanInfo(N.id,I);k&&k.spannedByColSpan&&(R==="left"||R==="below"?I=k.leftVisibleCellIndex:R==="right"&&(I=k.rightVisibleCellIndex)),I=Zc(I,0,M.length-1);const L=M[I];e.current.setCellFocus(N.id,L.field)},[e,t.pagination,t.paginationMode]),d=v.useCallback(({id:E,field:S})=>{e.current.setCellFocus(E,S)},[e]),f=v.useCallback((E,S)=>{S.key==="Enter"||S.key==="Tab"||S.key==="Shift"||cv(S.key)||e.current.setCellFocus(E.id,E.field)},[e]),m=v.useCallback(({field:E},S)=>{S.target===S.currentTarget&&e.current.setColumnHeaderFocus(E,S)},[e]),p=v.useCallback(({fields:E,depth:S},R)=>{if(R.target!==R.currentTarget)return;const I=ov(e);I!==null&&I.depth===S&&E.includes(I.field)||e.current.setColumnGroupHeaderFocus(E[0],S,R)},[e]),h=v.useCallback((E,S)=>{var R;(R=S.relatedTarget)!=null&&R.className.includes(ne.columnHeader)||(n.debug("Clearing focus"),e.current.setState(I=>O({},I,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),y=v.useCallback(E=>{r.current=E},[]),b=v.useCallback(E=>{const S=r.current;r.current=null;const R=Xr(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:E,cell:S}))return;if(!R){S&&e.current.setCellFocus(S.id,S.field);return}if((S==null?void 0:S.id)===R.id&&(S==null?void 0:S.field)===R.field)return;const M=e.current.getCellElement(R.id,R.field);M!=null&&M.contains(E.target)||(S?e.current.setCellFocus(S.id,S.field):(e.current.setState(_=>O({},_,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(R,E)))},[e,o]),g=v.useCallback(E=>{if(E.cellMode==="view")return;const S=Xr(e);((S==null?void 0:S.id)!==E.id||(S==null?void 0:S.field)!==E.field)&&e.current.setCellFocus(E.id,E.field)},[e]),x=v.useCallback(()=>{const E=Xr(e);E&&!e.current.getRow(E.id)&&e.current.setState(S=>O({},S,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),w=Zt(()=>{const E=Xr(e);if(!E)return;const S=pv(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(S.rows.find(M=>M.id===E.id))return;const I=er(e);e.current.setState(M=>O({},M,{tabIndex:{cell:{id:S.rows[0].id,field:I[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),P={setCellFocus:i,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:l},C={moveFocusToRelativeCell:c,setColumnGroupHeaderFocus:s,getColumnGroupHeaderFocus:u};ot(e,P,"public"),ot(e,C,"private"),v.useEffect(()=>{const E=ln(e.current.rootElementRef.current);return E.addEventListener("mouseup",b),()=>{E.removeEventListener("mouseup",b)}},[e,b]),Ve(e,"columnHeaderBlur",h),Ve(e,"cellDoubleClick",d),Ve(e,"cellMouseDown",y),Ve(e,"cellKeyDown",f),Ve(e,"cellModeChange",g),Ve(e,"columnHeaderFocus",m),Ve(e,"columnGroupHeaderFocus",p),Ve(e,"rowsSet",x),Ve(e,"paginationModelChange",w)};function Yye(e,t){const n=yd(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const l1=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e<n)return e+1}else if(r==="ltr"&&e>t)return e-1;return null},s1=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e<n)return e+1;return null},Xye=(e,t)=>{const n=hr(e,"useGridKeyboardNavigation"),r=xu(e,t).rows,o=Ur(),i=v.useMemo(()=>Yye(e,r),[e,r]),a=t.signature!=="DataGrid"&&t.unstable_headerFilters,l=v.useCallback((b,g,x="left")=>{const w=cs(e),P=e.current.unstable_getCellColSpanInfo(g,b);P&&P.spannedByColSpan&&(x==="left"?b=P.leftVisibleCellIndex:x==="right"&&(b=P.rightVisibleCellIndex));const C=w.findIndex(S=>S.id===g);n.debug(`Navigating to cell row ${C}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:C});const E=e.current.getVisibleColumns()[b].field;e.current.setCellFocus(g,E)},[e,n]),s=v.useCallback((b,g)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const x=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(x,g)},[e,n]),u=v.useCallback((b,g)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const x=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(x,g)},[e,n]),c=v.useCallback((b,g,x)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:w}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(w,g,x)},[e,n]),d=v.useCallback(b=>{var g;return(g=i[b])==null?void 0:g.id},[i]),f=v.useCallback((b,g)=>{const x=g.currentTarget.querySelector(`.${ne.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(g.target)&&b.field!==wd.field||!e.current.getRootDimensions())return;const C=e.current.getViewportPageSize(),E=b.field?e.current.getColumnIndex(b.field):0,S=i.length>0?0:null,R=i.length-1,I=0,M=er(e).length-1,_=nm(e);let D=!0;switch(g.key){case"ArrowDown":{S!==null&&(a?u(E,g):l(E,d(S)));break}case"ArrowRight":{const T=s1({currentColIndex:E,firstColIndex:I,lastColIndex:M,direction:o.direction});T!==null&&s(T,g);break}case"ArrowLeft":{const T=l1({currentColIndex:E,firstColIndex:I,lastColIndex:M,direction:o.direction});T!==null&&s(T,g);break}case"ArrowUp":{_>0&&c(E,_-1,g);break}case"PageDown":{S!==null&&R!==null&&l(E,d(Math.min(S+C,R)));break}case"Home":{s(I,g);break}case"End":{s(M,g);break}case"Enter":{(g.ctrlKey||g.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:D=!1}D&&g.preventDefault()},[e,i.length,a,u,l,d,o.direction,s,c]),m=v.useCallback((b,g)=>{if(!e.current.getRootDimensions())return;const w=zde(e)===b.field,P=jde(e)===b.field;if(w||P||!cv(g.key))return;const C=e.current.getViewportPageSize(),E=b.field?e.current.getColumnIndex(b.field):0,S=0,R=i.length-1,I=0,M=er(e).length-1;let _=!0;switch(g.key){case"ArrowDown":{const D=d(S);D!=null&&l(E,D);break}case"ArrowRight":{const D=s1({currentColIndex:E,firstColIndex:I,lastColIndex:M,direction:o.direction});D!==null&&u(D,g);break}case"ArrowLeft":{const D=l1({currentColIndex:E,firstColIndex:I,lastColIndex:M,direction:o.direction});D!==null?u(D,g):e.current.setColumnHeaderFilterFocus(b.field,g);break}case"ArrowUp":{s(E,g);break}case"PageDown":{R!==null&&l(E,d(Math.min(S+C,R)));break}case"Home":{u(I,g);break}case"End":{u(M,g);break}case" ":break;default:_=!1}_&&g.preventDefault()},[e,i.length,u,o.direction,s,l,d]),p=v.useCallback((b,g)=>{if(!e.current.getRootDimensions())return;const w=ov(e);if(w===null)return;const{field:P,depth:C}=w,{fields:E,depth:S,maxDepth:R}=b,I=e.current.getViewportPageSize(),M=e.current.getColumnIndex(P),_=P?e.current.getColumnIndex(P):0,D=0,T=i.length-1,F=0,N=er(e).length-1;let k=!0;switch(g.key){case"ArrowDown":{S===R-1?s(M,g):c(M,C+1,g);break}case"ArrowUp":{S>0&&c(M,C-1,g);break}case"ArrowRight":{const L=E.length-E.indexOf(P)-1;M+L+1<=N&&c(M+L+1,C,g);break}case"ArrowLeft":{const L=E.indexOf(P);M-L-1>=F&&c(M-L-1,C,g);break}case"PageDown":{T!==null&&l(_,d(Math.min(D+I,T)));break}case"Home":{c(F,C,g);break}case"End":{c(N,C,g);break}case" ":break;default:k=!1}k&&g.preventDefault()},[e,i.length,s,c,l,d]),h=v.useCallback((b,g)=>{if(rm(g))return;const x=e.current.getCellParams(b.id,b.field);if(x.cellMode===Mt.Edit||!cv(g.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:g,cell:x}))return;const P=e.current.getRootDimensions();if(i.length===0||!P)return;const C=o.direction,E=e.current.getViewportPageSize(),S=b.field?e.current.getColumnIndex(b.field):0,R=i.findIndex(F=>F.id===b.id),I=0,M=i.length-1,_=0,D=er(e).length-1;let T=!0;switch(g.key){case"ArrowDown":{R<M&&l(S,d(R+1));break}case"ArrowUp":{R>I?l(S,d(R-1)):a?u(S,g):s(S,g);break}case"ArrowRight":{const F=s1({currentColIndex:S,firstColIndex:_,lastColIndex:D,direction:C});F!==null&&l(F,d(R),C==="rtl"?"left":"right");break}case"ArrowLeft":{const F=l1({currentColIndex:S,firstColIndex:_,lastColIndex:D,direction:C});F!==null&&l(F,d(R),C==="rtl"?"right":"left");break}case"Tab":{g.shiftKey&&S>_?l(S-1,d(R),"left"):!g.shiftKey&&S<D&&l(S+1,d(R),"right");break}case" ":{if(b.field===fP)break;const N=b.colDef;if(N&&N.type==="treeDataGroup")break;!g.shiftKey&&R<M&&l(S,d(Math.min(R+E,M)));break}case"PageDown":{R<M&&l(S,d(Math.min(R+E,M)));break}case"PageUp":{const F=Math.max(R-E,I);F!==R&&F>=I?l(S,d(F)):s(S,g);break}case"Home":{g.ctrlKey||g.metaKey||g.shiftKey?l(_,d(I)):l(_,d(R));break}case"End":{g.ctrlKey||g.metaKey||g.shiftKey?l(D,d(M)):l(D,d(R));break}default:T=!1}T&&g.preventDefault()},[e,i,o.direction,l,d,a,u,s]),y=v.useCallback((b,{event:g})=>g.key===" "?!1:b,[]);Ln(e,"canStartEditing",y),Ve(e,"columnHeaderKeyDown",f),Ve(e,"headerFilterKeyDown",m),Ve(e,"columnGroupHeaderKeyDown",p),Ve(e,"cellKeyDown",h)},Zye=(e,t)=>{var n,r;return O({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Jye=(e,t)=>{var n;const r=hr(e,"useGridPreferencesPanel"),o=v.useRef(),i=v.useRef(),a=v.useCallback(()=>{r.debug("Hiding Preferences Panel");const f=wp(e.current.state);f.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:f.openedPanelValue}),e.current.setState(m=>O({},m,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),l=v.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),s=v.useCallback(()=>{o.current=setTimeout(a,100)},[a]),u=v.useCallback((f,m,p)=>{r.debug("Opening Preferences Panel"),l(),e.current.setState(h=>O({},h,{preferencePanel:O({},h.preferencePanel,{open:!0,openedPanelValue:f,panelId:m,labelId:p})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:f}),e.current.forceUpdate()},[r,l,e]);ot(e,{showPreferences:u,hidePreferences:s},"public");const c=v.useCallback((f,m)=>{var p;const h=wp(e.current.state);return!m.exportOnlyDirtyModels||((p=t.initialState)==null?void 0:p.preferencePanel)!=null||h.open?O({},f,{preferencePanel:h}):f},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),d=v.useCallback((f,m)=>{const p=m.stateToRestore.preferencePanel;return p!=null&&e.current.setState(h=>O({},h,{preferencePanel:p})),f},[e]);Ln(e,"exportState",c),Ln(e,"restoreState",d),v.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},e0e=["id","field"],t0e=["id","field"],n0e=ra(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),r0e=(e,t)=>{const[n,r]=v.useState({}),o=v.useRef(n),i=v.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:l,cellModesModel:s,onCellModesModelChange:u}=t,c=T=>(...F)=>{t.editMode===Ki.Cell&&T(...F)},d=v.useCallback((T,F)=>{const N=e.current.getCellParams(T,F);if(!e.current.isCellEditable(N))throw new Error(`MUI: The cell with id=${T} and field=${F} is not editable.`)},[e]),f=v.useCallback((T,F,N)=>{if(e.current.getCellMode(T,F)!==N)throw new Error(`MUI: The cell with id=${T} and field=${F} is not in ${N} mode.`)},[e]),m=v.useCallback((T,F)=>{if(!T.isEditable||T.cellMode===Mt.Edit)return;const N=O({},T,{reason:ya.cellDoubleClick});e.current.publishEvent("cellEditStart",N,F)},[e]),p=v.useCallback((T,F)=>{if(T.cellMode===Mt.View||e.current.getCellMode(T.id,T.field)===Mt.View)return;const N=O({},T,{reason:ri.cellFocusOut});e.current.publishEvent("cellEditStop",N,F)},[e]),h=v.useCallback((T,F)=>{if(T.cellMode===Mt.Edit){if(F.which===229)return;let N;if(F.key==="Escape"?N=ri.escapeKeyDown:F.key==="Enter"?N=ri.enterKeyDown:F.key==="Tab"&&(N=F.shiftKey?ri.shiftTabKeyDown:ri.tabKeyDown,F.preventDefault()),N){const k=O({},T,{reason:N});e.current.publishEvent("cellEditStop",k,F)}}else if(T.isEditable){let N;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:F,cellParams:T,editMode:"cell"}))return;if($4(F)?N=ya.printableKeyDown:(F.ctrlKey||F.metaKey)&&F.key==="v"?N=ya.pasteKeyDown:F.key==="Enter"?N=ya.enterKeyDown:(F.key==="Delete"||F.key==="Backspace")&&(N=ya.deleteKeyDown),N){const L=O({},T,{reason:N,key:F.key});e.current.publishEvent("cellEditStart",L,F)}}},[e]),y=v.useCallback(T=>{const{id:F,field:N,reason:k}=T,L={id:F,field:N};(k===ya.printableKeyDown||k===ya.deleteKeyDown||k===ya.pasteKeyDown)&&(L.deleteValue=!0),e.current.startCellEditMode(L)},[e]),b=v.useCallback(T=>{const{id:F,field:N,reason:k}=T;e.current.runPendingEditCellValueMutation(F,N);let L;k===ri.enterKeyDown?L="below":k===ri.tabKeyDown?L="right":k===ri.shiftTabKeyDown&&(L="left");const j=k==="escapeKeyDown";e.current.stopCellEditMode({id:F,field:N,ignoreModifications:j,cellToFocusAfter:L})},[e]);Ve(e,"cellDoubleClick",c(m)),Ve(e,"cellFocusOut",c(p)),Ve(e,"cellKeyDown",c(h)),Ve(e,"cellEditStart",c(y)),Ve(e,"cellEditStop",c(b)),Kt(e,"cellEditStart",t.onCellEditStart),Kt(e,"cellEditStop",t.onCellEditStop);const g=v.useCallback((T,F)=>{const N=xr(e.current.state);return N[T]&&N[T][F]?Mt.Edit:Mt.View},[e]),x=Zt(T=>{const F=T!==t.cellModesModel;u&&F&&u(T,{}),!(t.cellModesModel&&F)&&(r(T),o.current=T,e.current.publishEvent("cellModesModelChange",T))}),w=v.useCallback((T,F,N)=>{const k=O({},o.current);if(N!==null)k[T]=O({},k[T],{[F]:O({},N)});else{const L=k[T],j=ce(L,[F].map(mp));k[T]=j,Object.keys(k[T]).length===0&&delete k[T]}x(k)},[x]),P=v.useCallback((T,F,N)=>{e.current.setState(k=>{const L=O({},k.editRows);return N!==null?L[T]=O({},L[T],{[F]:O({},N)}):(delete L[T][F],Object.keys(L[T]).length===0&&delete L[T]),O({},k,{editRows:L})}),e.current.forceUpdate()},[e]),C=v.useCallback(T=>{const{id:F,field:N}=T,k=ce(T,e0e);d(F,N),f(F,N,Mt.View),w(F,N,O({mode:Mt.Edit},k))},[d,f,w]),E=Zt(T=>{const{id:F,field:N,deleteValue:k,initialValue:L}=T;let j=e.current.getCellValue(F,N);(k||L)&&(j=k?"":L),P(F,N,{value:j,error:!1,isProcessingProps:!1}),e.current.setCellFocus(F,N)}),S=v.useCallback(T=>{const{id:F,field:N}=T,k=ce(T,t0e);f(F,N,Mt.Edit),w(F,N,O({mode:Mt.View},k))},[f,w]),R=Zt(async T=>{const{id:F,field:N,ignoreModifications:k,cellToFocusAfter:L="none"}=T;f(F,N,Mt.Edit),e.current.runPendingEditCellValueMutation(F,N);const j=()=>{P(F,N,null),w(F,N,null),L!=="none"&&e.current.moveFocusToRelativeCell(F,N,L)};if(k){j();return}const B=xr(e.current.state),{error:A,isProcessingProps:H}=B[F][N];if(A||H){i.current[F][N].mode=Mt.Edit,w(F,N,{mode:Mt.Edit});return}const q=e.current.getRowWithUpdatedValuesFromCellEditing(F,N);if(a){const V=G=>{i.current[F][N].mode=Mt.Edit,w(F,N,{mode:Mt.Edit}),l?l(G):n0e()};try{const G=e.current.getRow(F);Promise.resolve(a(q,G)).then(Y=>{e.current.updateRows([Y]),j()}).catch(V)}catch(G){V(G)}}else e.current.updateRows([q]),j()}),I=v.useCallback(async T=>{var F;const{id:N,field:k,value:L,debounceMs:j,unstable_skipValueParser:B}=T;d(N,k),f(N,k,Mt.Edit);const A=e.current.getColumn(k),H=e.current.getRow(N);let q=L;A.valueParser&&!B&&(q=A.valueParser(L,e.current.getCellParams(N,k)));let V=xr(e.current.state),G=O({},V[N][k],{value:q,changeReason:j?"debouncedSetEditCellValue":"setEditCellValue"});if(A.preProcessEditCellProps){const Y=L!==V[N][k].value;G=O({},G,{isProcessingProps:!0}),P(N,k,G),G=await Promise.resolve(A.preProcessEditCellProps({id:N,row:H,props:G,hasChanged:Y}))}return e.current.getCellMode(N,k)===Mt.View?!1:(V=xr(e.current.state),G=O({},G,{isProcessingProps:!1}),G.value=A.preProcessEditCellProps?V[N][k].value:q,P(N,k,G),V=xr(e.current.state),!((F=V[N])!=null&&(F=F[k])!=null&&F.error))},[e,d,f,P]),M=v.useCallback((T,F)=>{const N=e.current.getColumn(F),k=xr(e.current.state),L=e.current.getRow(T);if(!k[T]||!k[T][F])return e.current.getRow(T);const{value:j}=k[T][F];return N.valueSetter?N.valueSetter({value:j,row:L}):O({},L,{[F]:j})},[e]),_={getCellMode:g,startCellEditMode:C,stopCellEditMode:S},D={setCellEditingEditCellValue:I,getRowWithUpdatedValuesFromCellEditing:M};ot(e,_,"public"),ot(e,D,"private"),v.useEffect(()=>{s&&x(s)},[s,x]),_t(()=>{const T=rv(e),F=i.current;i.current=L4(n),Object.entries(n).forEach(([N,k])=>{Object.entries(k).forEach(([L,j])=>{var B,A;const H=((B=F[N])==null||(B=B[L])==null?void 0:B.mode)||Mt.View,q=(A=T[N])!=null?A:N;j.mode===Mt.Edit&&H===Mt.View?E(O({id:q,field:L},j)):j.mode===Mt.View&&H===Mt.Edit&&R(O({id:q,field:L},j))})})},[e,n,E,R])},o0e=["id"],i0e=["id"],a0e=ra(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),l0e=(e,t)=>{const[n,r]=v.useState({}),o=v.useRef(n),i=v.useRef({}),a=v.useRef(null),l=v.useRef(null),{processRowUpdate:s,onProcessRowUpdateError:u,rowModesModel:c,onRowModesModelChange:d}=t,f=L=>(...j)=>{t.editMode===Ki.Row&&L(...j)},m=v.useCallback((L,j)=>{const B=e.current.getCellParams(L,j);if(!e.current.isCellEditable(B))throw new Error(`MUI: The cell with id=${L} and field=${j} is not editable.`)},[e]),p=v.useCallback((L,j)=>{if(e.current.getRowMode(L)!==j)throw new Error(`MUI: The row with id=${L} is not in ${j} mode.`)},[e]),h=v.useCallback((L,j)=>{if(!L.isEditable||e.current.getRowMode(L.id)===Bt.Edit)return;const B=e.current.getRowParams(L.id),A=O({},B,{field:L.field,reason:pl.cellDoubleClick});e.current.publishEvent("rowEditStart",A,j)},[e]),y=v.useCallback(L=>{l.current=L},[]),b=v.useCallback((L,j)=>{L.isEditable&&e.current.getRowMode(L.id)!==Bt.View&&(l.current=null,a.current=setTimeout(()=>{var B;if(a.current=null,((B=l.current)==null?void 0:B.id)!==L.id){if(!e.current.getRow(L.id)||e.current.getRowMode(L.id)===Bt.View)return;const A=e.current.getRowParams(L.id),H=O({},A,{field:L.field,reason:ba.rowFocusOut});e.current.publishEvent("rowEditStop",H,j)}}))},[e]);v.useEffect(()=>()=>{clearTimeout(a.current)},[]);const g=v.useCallback((L,j)=>{if(L.cellMode===Bt.Edit){if(j.which===229)return;let B;if(j.key==="Escape")B=ba.escapeKeyDown;else if(j.key==="Enter")B=ba.enterKeyDown;else if(j.key==="Tab"){const A=n0(e).filter(H=>e.current.getColumn(H).type===g0?!0:e.current.isCellEditable(e.current.getCellParams(L.id,H)));if(j.shiftKey?L.field===A[0]&&(B=ba.shiftTabKeyDown):L.field===A[A.length-1]&&(B=ba.tabKeyDown),j.preventDefault(),!B){const H=A.findIndex(V=>V===L.field),q=A[j.shiftKey?H-1:H+1];e.current.setCellFocus(L.id,q)}}if(B){const A=O({},e.current.getRowParams(L.id),{reason:B,field:L.field});e.current.publishEvent("rowEditStop",A,j)}}else if(L.isEditable){let B;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:j,cellParams:L,editMode:"row"}))return;if($4(j)||(j.ctrlKey||j.metaKey)&&j.key==="v"?B=pl.printableKeyDown:j.key==="Enter"?B=pl.enterKeyDown:(j.key==="Delete"||j.key==="Backspace")&&(B=pl.deleteKeyDown),B){const H=e.current.getRowParams(L.id),q=O({},H,{field:L.field,reason:B});e.current.publishEvent("rowEditStart",q,j)}}},[e]),x=v.useCallback(L=>{const{id:j,field:B,reason:A}=L,H={id:j,fieldToFocus:B};(A===pl.printableKeyDown||A===pl.deleteKeyDown)&&(H.deleteValue=!!B),e.current.startRowEditMode(H)},[e]),w=v.useCallback(L=>{const{id:j,reason:B,field:A}=L;e.current.runPendingEditCellValueMutation(j);let H;B===ba.enterKeyDown?H="below":B===ba.tabKeyDown?H="right":B===ba.shiftTabKeyDown&&(H="left");const q=B==="escapeKeyDown";e.current.stopRowEditMode({id:j,ignoreModifications:q,field:A,cellToFocusAfter:H})},[e]);Ve(e,"cellDoubleClick",f(h)),Ve(e,"cellFocusIn",f(y)),Ve(e,"cellFocusOut",f(b)),Ve(e,"cellKeyDown",f(g)),Ve(e,"rowEditStart",f(x)),Ve(e,"rowEditStop",f(w)),Kt(e,"rowEditStart",t.onRowEditStart),Kt(e,"rowEditStop",t.onRowEditStop);const P=v.useCallback(L=>{if(t.editMode===Ki.Cell)return Bt.View;const j=xr(e.current.state);return j[L]&&Object.keys(j[L]).length>0?Bt.Edit:Bt.View},[e,t.editMode]),C=Zt(L=>{const j=L!==t.rowModesModel;d&&j&&d(L,{}),!(t.rowModesModel&&j)&&(r(L),o.current=L,e.current.publishEvent("rowModesModelChange",L))}),E=v.useCallback((L,j)=>{const B=O({},o.current);j!==null?B[L]=O({},j):delete B[L],C(B)},[C]),S=v.useCallback((L,j)=>{e.current.setState(B=>{const A=O({},B.editRows);return j!==null?A[L]=j:delete A[L],O({},B,{editRows:A})}),e.current.forceUpdate()},[e]),R=v.useCallback((L,j,B)=>{e.current.setState(A=>{const H=O({},A.editRows);return B!==null?H[L]=O({},H[L],{[j]:O({},B)}):(delete H[L][j],Object.keys(H[L]).length===0&&delete H[L]),O({},A,{editRows:H})}),e.current.forceUpdate()},[e]),I=v.useCallback(L=>{const{id:j}=L,B=ce(L,o0e);p(j,Bt.View),E(j,O({mode:Bt.Edit},B))},[p,E]),M=Zt(L=>{const{id:j,fieldToFocus:B,deleteValue:A,initialValue:H}=L,V=_a(e).reduce((G,Y)=>{if(!e.current.getCellParams(j,Y).isEditable)return G;let le=e.current.getCellValue(j,Y);return B===Y&&(A||H)&&(le=A?"":H),G[Y]={value:le,error:!1,isProcessingProps:!1},G},{});S(j,V),B&&e.current.setCellFocus(j,B)}),_=v.useCallback(L=>{const{id:j}=L,B=ce(L,i0e);p(j,Bt.Edit),E(j,O({mode:Bt.View},B))},[p,E]),D=Zt(L=>{const{id:j,ignoreModifications:B,field:A,cellToFocusAfter:H="none"}=L;e.current.runPendingEditCellValueMutation(j);const q=()=>{H!=="none"&&A&&e.current.moveFocusToRelativeCell(j,A,H),S(j,null),E(j,null)};if(B){q();return}const V=xr(e.current.state),G=e.current.getRow(j);if(Object.values(V[j]).some(J=>J.isProcessingProps)){i.current[j].mode=Bt.Edit;return}if(Object.values(V[j]).some(J=>J.error)){i.current[j].mode=Bt.Edit,E(j,{mode:Bt.Edit});return}const le=e.current.getRowWithUpdatedValuesFromRowEditing(j);if(s){const J=oe=>{i.current[j].mode=Bt.Edit,E(j,{mode:Bt.Edit}),u?u(oe):a0e()};try{Promise.resolve(s(le,G)).then(oe=>{e.current.updateRows([oe]),q()}).catch(J)}catch(oe){J(oe)}}else e.current.updateRows([le]),q()}),T=v.useCallback(L=>{const{id:j,field:B,value:A,debounceMs:H,unstable_skipValueParser:q}=L;m(j,B);const V=e.current.getColumn(B),G=e.current.getRow(j);let Y=A;V.valueParser&&!q&&(Y=V.valueParser(A,e.current.getCellParams(j,B)));let re=xr(e.current.state),le=O({},re[j][B],{value:Y,changeReason:H?"debouncedSetEditCellValue":"setEditCellValue"});return V.preProcessEditCellProps||R(j,B,le),new Promise(J=>{const oe=[];if(V.preProcessEditCellProps){const ue=le.value!==re[j][B].value;le=O({},le,{isProcessingProps:!0}),R(j,B,le);const ge=re[j],me=ce(ge,[B].map(mp)),ke=Promise.resolve(V.preProcessEditCellProps({id:j,row:G,props:le,hasChanged:ue,otherFieldsProps:me})).then(be=>{if(e.current.getRowMode(j)===Bt.View){J(!1);return}re=xr(e.current.state),be=O({},be,{isProcessingProps:!1}),be.value=V.preProcessEditCellProps?re[j][B].value:Y,R(j,B,be)});oe.push(ke)}Object.entries(re[j]).forEach(([ue,ge])=>{if(ue===B)return;const me=e.current.getColumn(ue);if(!me.preProcessEditCellProps)return;ge=O({},ge,{isProcessingProps:!0}),R(j,ue,ge),re=xr(e.current.state);const ke=re[j],be=ce(ke,[ue].map(mp)),ie=Promise.resolve(me.preProcessEditCellProps({id:j,row:G,props:ge,hasChanged:!1,otherFieldsProps:be})).then(ye=>{if(e.current.getRowMode(j)===Bt.View){J(!1);return}ye=O({},ye,{isProcessingProps:!1}),R(j,ue,ye)});oe.push(ie)}),Promise.all(oe).then(()=>{e.current.getRowMode(j)===Bt.Edit?(re=xr(e.current.state),J(!re[j][B].error)):J(!1)})})},[e,m,R]),F=v.useCallback(L=>{const j=xr(e.current.state),B=e.current.getRow(L);if(!j[L])return e.current.getRow(L);let A=O({},B);return Object.entries(j[L]).forEach(([H,q])=>{const V=e.current.getColumn(H);V.valueSetter?A=V.valueSetter({value:q.value,row:A}):A[H]=q.value}),A},[e]),N={getRowMode:P,startRowEditMode:I,stopRowEditMode:_},k={setRowEditingEditCellValue:T,getRowWithUpdatedValuesFromRowEditing:F};ot(e,N,"public"),ot(e,k,"private"),v.useEffect(()=>{c&&C(c)},[c,C]),_t(()=>{const L=rv(e),j=i.current;i.current=L4(n),Object.entries(n).forEach(([B,A])=>{var H,q;const V=((H=j[B])==null?void 0:H.mode)||Bt.View,G=(q=L[B])!=null?q:B;A.mode===Bt.Edit&&V===Bt.View?M(O({id:G},A)):A.mode===Bt.View&&V===Bt.Edit&&D(O({id:G},A))})},[e,n,M,D])},s0e=e=>O({},e,{editRows:{}}),u0e=(e,t)=>{r0e(e,t),l0e(e,t);const n=v.useRef({}),{isCellEditable:r}=t,o=v.useCallback(f=>bp(f.rowNode)||!f.colDef.editable||!f.colDef.renderEditCell?!1:r?r(f):!0,[r]),i=(f,m,p,h)=>{if(!p){h();return}if(n.current[f]||(n.current[f]={}),n.current[f][m]){const[g]=n.current[f][m];clearTimeout(g)}const y=()=>{const[g]=n.current[f][m];clearTimeout(g),h(),delete n.current[f][m]},b=setTimeout(()=>{h(),delete n.current[f][m]},p);n.current[f][m]=[b,y]};v.useEffect(()=>{const f=n.current;return()=>{Object.entries(f).forEach(([m,p])=>{Object.keys(p).forEach(h=>{const[y]=f[m][h];clearTimeout(y),delete f[m][h]})})}},[]);const a=v.useCallback((f,m)=>{if(n.current[f]){if(!m)Object.keys(n.current[f]).forEach(p=>{const[,h]=n.current[f][p];h()});else if(n.current[f][m]){const[,p]=n.current[f][m];p()}}},[]),l=v.useCallback(f=>{const{id:m,field:p,debounceMs:h}=f;return new Promise(y=>{i(m,p,h,async()=>{const b=t.editMode===Ki.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(m,p)===Mt.Edit){const g=await b(f);y(g)}})})},[e,t.editMode]),s=v.useCallback((f,m)=>t.editMode===Ki.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(f,m):e.current.getRowWithUpdatedValuesFromRowEditing(f),[e,t.editMode]),u=v.useCallback((f,m)=>{var p,h;return(p=(h=xr(e.current.state)[f])==null?void 0:h[m])!=null?p:null},[e]),c={isCellEditable:o,setEditCellValue:l,getRowWithUpdatedValues:s,unstable_getEditCellMeta:u},d={runPendingEditCellValueMutation:a};ot(e,c,"public"),ot(e,d,"private")},c0e=(e,t,n)=>(n.current.caches.rows=ng({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),O({},e,{rows:y4({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),d0e=(e,t)=>{const n=hr(e,"useGridRows"),r=xu(e,t),o=v.useRef(Date.now()),i=aP(),a=v.useCallback(D=>{const T=$a(e)[D];if(T)return T;const F=e.current.getRowNode(D);return F&&bp(F)?{[Sc]:D}:null},[e]),l=t.getRowId,s=v.useCallback(D=>Sc in D?D[Sc]:l?l(D):D.id,[l]),u=v.useMemo(()=>r.rows.reduce((D,{id:T},F)=>(D[T]=F,D),{}),[r.rows]),c=v.useCallback(({cache:D,throttle:T})=>{const F=()=>{o.current=Date.now(),e.current.setState(k=>O({},k,{rows:y4({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:li(e),previousTreeDepths:$M(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=D,!T){F();return}const N=t.throttleRowsMs-(Date.now()-o.current);if(N>0){i.start(N,F);return}F()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),d=v.useCallback(D=>{n.debug(`Updating all rows, new length ${D.length}`);const T=ng({rows:D,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),F=e.current.caches.rows;T.rowsBeforePartialUpdates=F.rowsBeforePartialUpdates,c({cache:T,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),f=v.useCallback(D=>{if(t.signature===Ui.DataGrid&&D.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));const T=[];D.forEach(N=>{const k=av(N,t.getRowId,"A row was provided without id when calling updateRows():"),L=e.current.getRowNode(k);if((L==null?void 0:L.type)==="pinnedRow"){const j=e.current.caches.pinnedRows,B=j.idLookup[k];B&&(j.idLookup[k]=O({},B,N))}else T.push(N)});const F=Ase({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:F,throttle:!0})},[t.signature,t.getRowId,c,e]),m=v.useCallback(()=>{const D=ff(e),T=$a(e);return new Map(D.map(F=>{var N;return[F,(N=T[F])!=null?N:{}]}))},[e]),p=v.useCallback(()=>o0(e),[e]),h=v.useCallback(()=>ff(e),[e]),y=v.useCallback(D=>u[D],[u]),b=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const N=O({},F,{childrenExpanded:T});e.current.setState(k=>O({},k,{rows:O({},k.rows,{tree:O({},k.rows.tree,{[D]:N})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",N)},[e]),g=v.useCallback(D=>{var T;return(T=li(e)[D])!=null?T:null},[e]),x=v.useCallback(({skipAutoGeneratedRows:D=!0,groupId:T,applySorting:F,applyFiltering:N})=>{const k=li(e);let L;if(F){const j=k[T];if(!j)return[];const B=WE(e);L=[];const A=B.findIndex(H=>H===T)+1;for(let H=A;H<B.length&&k[B[H]].depth>j.depth;H+=1){const q=B[H];(!D||!bp(k[q]))&&L.push(q)}}else L=QE(k,T,D);if(N){const j=p4(e);L=L.filter(B=>j[B]!==!1)}return L},[e]),w=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.parent!==wr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(F.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(N=>{const k=li(N,e.current.instanceId)[wr],L=k.children,j=L.findIndex(A=>A===D);if(j===-1||j===T)return N;n.debug(`Moving row ${D} to index ${T}`);const B=[...L];return B.splice(T,0,B.splice(j,1)[0]),O({},N,{rows:O({},N.rows,{tree:O({},N.rows.tree,{[wr]:O({},k,{children:B})})})})}),e.current.publishEvent("rowsSet")},[e,n]),P=v.useCallback((D,T)=>{if(t.signature===Ui.DataGrid&&T.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(T.length===0)return;if(i0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const N=O({},li(e)),k=O({},$a(e)),L=O({},rv(e)),j=N[wr],B=[...j.children],A=new Set;for(let q=0;q<T.length;q+=1){const V=T[q],G=av(V,t.getRowId,"A row was provided without id when calling replaceRows()."),[Y]=B.splice(D+q,1,G);A.has(Y)||(delete k[Y],delete L[Y],delete N[Y]);const re={id:G,depth:0,parent:wr,type:"leaf",groupingKey:null};k[G]=V,L[G]=G,N[G]=re,A.add(G)}N[wr]=O({},j,{children:B});const H=B.filter(q=>N[q].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=k,e.current.caches.rows.dataRowIdToIdLookup=L,e.current.setState(q=>O({},q,{rows:O({},q.rows,{dataRowIdToModelLookup:k,dataRowIdToIdLookup:L,dataRowIds:H,tree:N})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),C={getRow:a,getRowId:s,getRowModels:m,getRowsCount:p,getAllRowIds:h,setRows:d,updateRows:f,getRowNode:g,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:P},E={setRowIndex:w,setRowChildrenExpansion:b,getRowGroupChildren:x},S=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let D;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?D=O({},e.current.caches.rows,{updates:{type:"full",rows:ff(e)}}):D=ng({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:D,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),R=v.useCallback(D=>{D==="rowTreeCreation"&&S()},[S]),I=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==gse(e)&&S()},[e,S]);Ve(e,"activeStrategyProcessorChange",R),Ve(e,"strategyAvailabilityChange",I);const M=v.useCallback(()=>{e.current.setState(D=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:li(D,e.current.instanceId),treeDepths:$M(D,e.current.instanceId),dataRowIds:ff(D,e.current.instanceId),dataRowIdToModelLookup:$a(D,e.current.instanceId),dataRowIdToIdLookup:rv(D,e.current.instanceId)});return O({},D,{rows:O({},D.rows,T,{totalTopLevelRowCount:v4({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);mP(e,"hydrateRows",M),ot(e,C,"public"),ot(e,E,t.signature===Ui.DataGrid?"private":"public");const _=v.useRef(!0);v.useEffect(()=>{if(_.current){_.current=!1;return}const D=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,T=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,F=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(D){T||(e.current.setState(N=>O({},N,{rows:O({},N.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),F||(e.current.setState(N=>O({},N,{rows:O({},N.rows,{totalRowCount:Math.max(t.rowCount||0,N.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,N.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:ng({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},f0e=e=>{const t={[wr]:O({},_se(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:wr,type:"leaf",groupingKey:null}}return{groupingName:uu,tree:t,treeDepths:{0:e.length},dataRowIds:e}},p0e=({previousTree:e,actions:t})=>{const n=O({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:wr,type:"leaf",groupingKey:null}}const o=n[wr];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[wr]=O({},o,{children:i}),{groupingName:uu,tree:n,treeDepths:{0:i.length},dataRowIds:i}},m0e=e=>e.updates.type==="full"?f0e(e.updates.rows):p0e({previousTree:e.previousTree,actions:e.updates.actions}),h0e=e=>{hv(e,uu,"rowTreeCreation",m0e)},Iz=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],g0e=(e,t)=>{var n;return O({},e,{rowSelection:t.rowSelection?(n=Iz(t.rowSelectionModel))!=null?n:[]:[]})},v0e=(e,t)=>{const n=hr(e,"useGridSelection"),r=T=>(...F)=>{t.rowSelection&&T(...F)},o=v.useMemo(()=>Iz(t.rowSelectionModel,Co(e.current.state)),[e,t.rowSelectionModel]),i=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Co,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:l,disableRowSelectionOnClick:s,isRowSelectable:u}=t,c=!l||a,d=xu(e,t),f=v.useCallback(T=>{var F;let N=T;const k=(F=i.current)!=null?F:T,L=e.current.isRowSelected(T);if(L){const j=Nf(e),B=j.findIndex(H=>H===k),A=j.findIndex(H=>H===N);if(B===A)return;B>A?N=j[A+1]:N=j[A-1]}i.current=T,e.current.selectRowRange({startId:k,endId:N},!L)},[e]),m=v.useCallback(T=>{if(t.signature===Ui.DataGrid&&!t.checkboxSelection&&Array.isArray(T)&&T.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
`));Co(e.current.state)!==T&&(n.debug("Setting selection model"),e.current.setState(N=>O({},N,{rowSelection:t.rowSelection?T:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),p=v.useCallback(T=>Co(e.current.state).includes(T),[e]),h=v.useCallback(T=>{if(u&&!u(e.current.getRowParams(T)))return!1;const F=e.current.getRowNode(T);return!((F==null?void 0:F.type)==="footer"||(F==null?void 0:F.type)==="pinnedRow")},[e,u]),y=v.useCallback(()=>Rde(e),[e]),b=v.useCallback((T,F=!0,N=!1)=>{if(e.current.isRowSelectable(T))if(i.current=T,N)n.debug(`Setting selection for row ${T}`),e.current.setRowSelectionModel(F?[T]:[]);else{n.debug(`Toggling selection for row ${T}`);const L=Co(e.current.state).filter(B=>B!==T);F&&L.push(T),(L.length<2||c)&&e.current.setRowSelectionModel(L)}},[e,n,c]),g=v.useCallback((T,F=!0,N=!1)=>{n.debug("Setting selection for several rows");const k=T.filter(B=>e.current.isRowSelectable(B));let L;if(N)L=F?k:[];else{const B=O({},fv(e));k.forEach(A=>{F?B[A]=A:delete B[A]}),L=Object.values(B)}(L.length<2||c)&&e.current.setRowSelectionModel(L)},[e,n,c]),x=v.useCallback(({startId:T,endId:F},N=!0,k=!1)=>{if(!e.current.getRow(T)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${T} to row ${F}`);const L=Nf(e),j=L.indexOf(T),B=L.indexOf(F),[A,H]=j>B?[B,j]:[j,B],q=L.slice(A,H+1);e.current.selectRows(q,N,k)},[e,n]),w={selectRow:b,setRowSelectionModel:m,getSelectedRows:y,isRowSelected:p,isRowSelectable:h},P={selectRows:g,selectRowRange:x};ot(e,w,"public"),ot(e,P,t.signature===Ui.DataGrid?"private":"public");const C=v.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const T=Co(e.current.state),F=$a(e),N=O({},fv(e));let k=!1;T.forEach(L=>{F[L]||(delete N[L],k=!0)}),k&&e.current.setRowSelectionModel(Object.values(N))},[e,t.keepNonExistentRowsSelected]),E=v.useCallback((T,F)=>{const N=F.metaKey||F.ctrlKey,k=!a&&!N&&!zue(F),L=!c||k,j=e.current.isRowSelected(T);L?e.current.selectRow(T,k?!0:!j,!0):e.current.selectRow(T,!j,!1)},[e,c,a]),S=v.useCallback((T,F)=>{var N;if(s)return;const k=(N=F.target.closest(`.${ne.cell}`))==null?void 0:N.getAttribute("data-field");if(k===wd.field||k===fP)return;if(k){const j=e.current.getColumn(k);if((j==null?void 0:j.type)===g0)return}e.current.getRowNode(T.id).type!=="pinnedRow"&&(F.shiftKey&&(c||a)?f(T.id):E(T.id,F))},[s,c,a,e,f,E]),R=v.useCallback((T,F)=>{if(c&&F.shiftKey){var N;(N=window.getSelection())==null||N.removeAllRanges()}},[c]),I=v.useCallback((T,F)=>{F.nativeEvent.shiftKey?f(T.id):e.current.selectRow(T.id,T.value)},[e,f]),M=v.useCallback(T=>{const N=t.checkboxSelectionVisibleOnly&&t.pagination?B4(e):Nf(e);e.current.selectRows(N,T.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),_=v.useCallback((T,F)=>{if(e.current.getCellMode(T.id,T.field)!==Mt.Edit&&!rm(F)){if(cv(F.key)&&F.shiftKey){const N=Xr(e);if(N&&N.id!==T.id){F.preventDefault();const k=e.current.isRowSelected(N.id);if(!c){e.current.selectRow(N.id,!k,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(N.id),j=e.current.getRowIndexRelativeToVisibleRows(T.id);let B,A;L>j?k?(B=j,A=L-1):(B=j,A=L):k?(B=L+1,A=j):(B=L,A=j);const H=d.rows.slice(B,A+1).map(q=>q.id);e.current.selectRows(H,!k);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),E(T.id,F);return}F.key==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),g(e.current.getAllRowIds(),!0))}},[e,E,g,d.rows,c]);Ve(e,"sortedRowsSet",r(C)),Ve(e,"rowClick",r(S)),Ve(e,"rowSelectionCheckboxChange",r(I)),Ve(e,"headerSelectionCheckboxChange",M),Ve(e,"cellMouseDown",r(R)),Ve(e,"cellKeyDown",r(_)),v.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const D=o!=null;v.useEffect(()=>{if(D||!t.rowSelection)return;const T=Co(e.current.state);if(h){const F=T.filter(N=>h(N));F.length<T.length&&e.current.setRowSelectionModel(F)}},[e,h,D,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||D)return;const T=Co(e.current.state);!c&&T.length>1&&e.current.setRowSelectionModel([])},[e,c,a,D,t.rowSelection])},y0e={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},b0e=e=>{const{classes:t}=e;return v.useMemo(()=>Oe({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ft,t),[t])},x0e=(e,t)=>{const n={classes:t.classes},r=b0e(n),o=v.useCallback(i=>{const a=O({},wd,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,s=i.lookup[ml]!=null;return l&&!s?(i.lookup[ml]=a,i.orderedFields=[ml,...i.orderedFields]):!l&&s?(delete i.lookup[ml],i.orderedFields=i.orderedFields.filter(u=>u!==ml)):l&&s&&(i.lookup[ml]=O({},a,i.lookup[ml])),i},[e,r,t.checkboxSelection]);Ln(e,"hydrateColumns",o)},w0e=(e,t)=>{var n,r,o;const i=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return O({},e,{sorting:{sortModel:H4(i,t.disableMultipleColumnsSorting),sortedRows:[]}})},C0e=(e,t)=>{var n;const r=hr(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:wo,changeEvent:"sortModelChange"});const o=v.useCallback((C,E)=>{const S=wo(e),R=S.findIndex(M=>M.field===C);let I=[...S];return R>-1?E?I.splice(R,1,E):I.splice(R,1):I=[...S,E],I},[e]),i=v.useCallback((C,E)=>{var S;const I=wo(e).find(_=>_.field===C.field);if(I){var M;const _=E===void 0?BM((M=C.sortingOrder)!=null?M:t.sortingOrder,I.sort):E;return _==null?void 0:O({},I,{sort:_})}return{field:C.field,sort:E===void 0?BM((S=C.sortingOrder)!=null?S:t.sortingOrder):E}},[e,t.sortingOrder]),a=v.useCallback((C,E)=>E==null||E.sortable===!1?C:(E.sortingOrder||t.sortingOrder).some(R=>!!R)?[...C,"columnMenuSortItem"]:C,[t.sortingOrder]),l=v.useCallback(()=>{e.current.setState(C=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),O({},C,{sorting:O({},C.sorting,{sortedRows:QE(li(e),wr,!1)})});const E=wo(C,e.current.instanceId),S=Lde(E,e),R=e.current.applyStrategyProcessor("sorting",{sortRowList:S});return O({},C,{sorting:O({},C.sorting,{sortedRows:R})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),s=v.useCallback(C=>{wo(e)!==C&&(r.debug("Setting sort model"),e.current.setState(jM(C,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),u=v.useCallback((C,E,S)=>{if(!C.sortable)return;const R=i(C,E);let I;!S||t.disableMultipleColumnsSorting?I=R?[R]:[]:I=o(C.field,R),e.current.setSortModel(I)},[e,o,i,t.disableMultipleColumnsSorting]),c=v.useCallback(()=>wo(e),[e]),d=v.useCallback(()=>GE(e).map(E=>E.model),[e]),f=v.useCallback(()=>WE(e),[e]),m=v.useCallback(C=>e.current.getSortedRowIds()[C],[e]);ot(e,{getSortModel:c,getSortedRows:d,getSortedRowIds:f,getRowIdFromRowIndex:m,setSortModel:s,sortColumn:u,applySorting:l},"public");const h=v.useCallback((C,E)=>{var S;const R=wo(e);return!E.exportOnlyDirtyModels||t.sortModel!=null||((S=t.initialState)==null||(S=S.sorting)==null?void 0:S.sortModel)!=null||R.length>0?O({},C,{sorting:{sortModel:R}}):C},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),y=v.useCallback((C,E)=>{var S;const R=(S=E.stateToRestore.sorting)==null?void 0:S.sortModel;return R==null?C:(e.current.setState(jM(R,t.disableMultipleColumnsSorting)),O({},C,{callbacks:[...C.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=v.useCallback(C=>{const E=li(e),S=E[wr],R=C.sortRowList?C.sortRowList(S.children.map(I=>E[I])):[...S.children];return S.footerId!=null&&R.push(S.footerId),R},[e]);Ln(e,"exportState",h),Ln(e,"restoreState",y),hv(e,uu,"sorting",b);const g=v.useCallback(({colDef:C},E)=>{const S=E.shiftKey||E.metaKey||E.ctrlKey;u(C,void 0,S)},[u]),x=v.useCallback(({colDef:C},E)=>{Aue(E.key)&&!E.ctrlKey&&!E.metaKey&&u(C,void 0,E.shiftKey)},[u]),w=v.useCallback(()=>{const C=wo(e),E=vd(e);if(C.length>0){const S=C.filter(R=>E[R.field]);S.length<C.length&&e.current.setSortModel(S)}},[e]),P=v.useCallback(C=>{C==="sorting"&&e.current.applySorting()},[e]);Ln(e,"columnMenu",a),Ve(e,"columnHeaderClick",g),Ve(e,"columnHeaderKeyDown",x),Ve(e,"rowsSet",e.current.applySorting),Ve(e,"columnsChange",w),Ve(e,"activeStrategyProcessorChange",P),om(()=>{e.current.applySorting()}),_t(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function IR(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const S0e=(e,t)=>{const n=Ur(),r=hr(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,a=De(e,cs),l=v.useCallback(d=>{const f=o0(e),m=er(e);if(!(d.rowIndex==null)&&f===0||m.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let h={};if(d.colIndex!=null){const x=Xc(e);let w;if(typeof d.rowIndex<"u"){var y;const P=(y=a[d.rowIndex])==null?void 0:y.id,C=e.current.unstable_getCellColSpanInfo(P,d.colIndex);C&&!C.spannedByColSpan&&(w=C.cellProps.width)}typeof w>"u"&&(w=m[d.colIndex].computedWidth),h.left=IR({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:w,offsetTop:x[d.colIndex]})}if(d.rowIndex!=null){var b,g;const x=Cp(e.current.state),w=$de(e),P=Ide(e),C=t.pagination?d.rowIndex-w*P:d.rowIndex,E=x.positions[C+1]?x.positions[C+1]-x.positions[C]:x.currentPageTotalHeight-x.positions[C],S=((b=i.current.querySelector(`.${ne["pinnedRows--top"]}`))==null?void 0:b.clientHeight)||0,R=((g=i.current.querySelector(`.${ne["pinnedRows--bottom"]}`))==null?void 0:g.clientHeight)||0;h.top=IR({clientHeight:i.current.clientHeight-S-R,scrollTop:i.current.scrollTop,offsetHeight:E,offsetTop:x.positions[C]})}return h=e.current.unstable_applyPipeProcessors("scrollToIndexes",h,d),typeof h.left!==void 0||typeof h.top!==void 0?(e.current.scroll(h),!0):!1},[r,e,i,t.pagination,a]),s=v.useCallback(d=>{if(i.current&&d.left!=null&&o.current){const f=n.direction==="rtl"?-1:1;o.current.scrollLeft=d.left,i.current.scrollLeft=f*d.left,r.debug(`Scrolling left: ${d.left}`)}i.current&&d.top!=null&&(i.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),u=v.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);ot(e,{scroll:s,scrollToIndexes:l,getScrollPosition:u},"public")};function E0e(e,t){Kt(e,"columnHeaderClick",t.onColumnHeaderClick),Kt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Kt(e,"columnHeaderOver",t.onColumnHeaderOver),Kt(e,"columnHeaderOut",t.onColumnHeaderOut),Kt(e,"columnHeaderEnter",t.onColumnHeaderEnter),Kt(e,"columnHeaderLeave",t.onColumnHeaderLeave),Kt(e,"cellClick",t.onCellClick),Kt(e,"cellDoubleClick",t.onCellDoubleClick),Kt(e,"cellKeyDown",t.onCellKeyDown),Kt(e,"preferencePanelClose",t.onPreferencePanelClose),Kt(e,"preferencePanelOpen",t.onPreferencePanelOpen),Kt(e,"menuOpen",t.onMenuOpen),Kt(e,"menuClose",t.onMenuClose),Kt(e,"rowDoubleClick",t.onRowDoubleClick),Kt(e,"rowClick",t.onRowClick),Kt(e,"stateChange",t.onStateChange)}const P0e=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,a=!1;return(r||o)&&(i=r,a=e.height+(i?n:0)>t.height,a&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:a}};function k0e(e,t){const n=hr(e,"useResizeContainer"),r=v.useRef(!1),o=v.useRef(null),i=v.useRef(null),a=De(e,Cp),l=De(e,bd),s=Math.floor(t.rowHeight*l),u=hP(e,t.columnHeaderHeight),c=v.useCallback(()=>{var E;const S=(E=e.current.rootElementRef)==null?void 0:E.current,R=VE(e),I=b4(e);if(!o.current)return;let M;if(t.scrollbarSize!=null)M=t.scrollbarSize;else if(!R||!S)M=0;else{const j=ln(S).createElement("div");j.style.width="99px",j.style.height="99px",j.style.position="absolute",j.style.overflow="scroll",j.className="scrollDiv",S.appendChild(j),M=j.offsetWidth-j.clientWidth,S.removeChild(j)}let _,D,T;if(t.autoHeight)T=!1,D=Math.round(R)>Math.round(o.current.width),_={width:o.current.width,height:a.currentPageTotalHeight+(D?M:0)};else{_={width:o.current.width,height:Math.max(o.current.height-u,0)};const L=P0e({content:{width:Math.round(R),height:a.currentPageTotalHeight},container:{width:Math.round(_.width),height:_.height-I.top-I.bottom},scrollBarSize:M});T=L.hasScrollY,D=L.hasScrollX}const F={width:_.width-(T?M:0),height:_.height-(D?M:0)},N={viewportOuterSize:_,viewportInnerSize:F,hasScrollX:D,hasScrollY:T,scrollBarSize:M},k=i.current;i.current=N,(N.viewportInnerSize.width!==(k==null?void 0:k.viewportInnerSize.width)||N.viewportInnerSize.height!==(k==null?void 0:k.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",N.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a.currentPageTotalHeight,u]),[d,f]=v.useState(),m=v.useMemo(()=>fd(f,60),[]),p=v.useRef();_t(()=>{d&&(c(),e.current.publishEvent("debouncedResize",o.current))},[e,d,c]);const h=v.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),y=v.useCallback(()=>i.current,[]),b=v.useCallback(()=>{const E=e.current.getRootDimensions();if(!E)return 0;const S=pv(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const I=e.current.getRenderContext(),M=I.lastRowIndex-I.firstRowIndex;return Math.min(M-1,S.rows.length)}const R=Math.floor(E.viewportInnerSize.height/s);return Math.min(R,S.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,s]),g=v.useCallback(()=>{var E,S,R;const I=(E=e.current.mainElementRef)==null?void 0:E.current;if(!I)return;const _=mi(I).getComputedStyle(I),D=parseFloat(_.height)||0,T=parseFloat(_.width)||0,F=D!==((S=p.current)==null?void 0:S.height),N=T!==((R=p.current)==null?void 0:R.width);if(!p.current||F||N){const k={width:T,height:D};e.current.publishEvent("resize",k),p.current=k}},[e]),x={resize:h,getRootDimensions:y},w={getViewportPageSize:b,updateGridDimensionsRef:c,computeSizeAndPublishResizeEvent:g};ot(e,x,"public"),ot(e,w,"private");const P=v.useRef(!0),C=v.useCallback(E=>{o.current=E;const S=/jsdom/.test(window.navigator.userAgent);if(E.height===0&&!r.current&&!t.autoHeight&&!S&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),E.width===0&&!r.current&&!S&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),P.current){f(E),P.current=!1;return}m(E)},[t.autoHeight,m,n]);_t(()=>c(),[c]),Kt(e,"sortedRowsSet",c),Kt(e,"paginationModelChange",c),Kt(e,"columnsChange",c),Ve(e,"resize",C),Kt(e,"debouncedResize",t.onResize)}const $0e=["style"],I0e=["style"];function Ec(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Ec(e,t,n,o):Ec(e,t,o+1,r)}function O0e(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return Ec(e,t,Math.floor(n/2),Math.min(n,t.length))}const wl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Zc(e-n,r,o),Zc(t+n,r,o)],Oz=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,M0e={maxSize:3},R0e=e=>{var t,n;const r=us(),o=Be(),i=De(r,er),a=De(r,Ude),l=De(r,q4),{ref:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=i.length,getRowProps:f}=e,m=Ur(),p=De(r,Xc),h=De(r,VE),y=De(r,Xr),b=De(r,iv),g=De(r,Cp),x=De(r,fv),w=xu(r,o),P=v.useRef(null),C=v.useRef(null),E=xt(s,C),[S,R]=v.useState(null),I=v.useRef(S),M=v.useRef({top:0,left:0}),[_,D]=v.useState({width:null,height:null}),T=v.useRef(h),[F,N]=v.useState(null),k=v.useRef(Object.create(null)),L=v.useRef(),j=v.useRef(),B=v.useRef(t0((ie,ye,U,Q,Z,ae)=>{let te;const K=ie.slice(ye,U);return ae>-1&&(ye>ae&&ae>=Q||U<ae&&ae<Z)&&(te=ae),{focusedCellColumnIndexNotInRange:te,renderedColumns:K}},M0e)),A=v.useMemo(()=>y!==null?i.findIndex(ie=>ie.field===y.field):-1,[y,i]),H=v.useCallback(ie=>{var ye,U;const Q=r.current.getLastMeasuredRowIndex();let Z=Q===1/0;(ye=w.range)!=null&&ye.lastRowIndex&&!Z&&(Z=Q>=w.range.lastRowIndex);const ae=Zc(Q-(((U=w.range)==null?void 0:U.firstRowIndex)||0),0,g.positions.length);return Z||g.positions[ae]>=ie?Ec(ie,g.positions):O0e(ie,g.positions,ae)},[r,(t=w.range)==null?void 0:t.firstRowIndex,(n=w.range)==null?void 0:n.lastRowIndex,g.positions]),q=v.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ie,left:ye}=M.current,U=Math.min(H(ie),g.positions.length-1),Q=o.autoHeight?U+w.rows.length:H(ie+_.height);let Z=0,ae=p.length;if(l){let te=!1;const[K,ee]=wl({firstIndex:U,lastIndex:Q,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});for(let se=K;se<ee&&!te;se+=1){const Ce=w.rows[se];te=r.current.rowHasAutoHeight(Ce.id)}te||(Z=Ec(Math.abs(ye),p),ae=Ec(Math.abs(ye)+_.width,p))}return{firstRowIndex:U,lastRowIndex:Q,firstColumnIndex:Z,lastColumnIndex:ae}},[a,l,H,g.positions.length,o.autoHeight,o.rowBuffer,w.rows,p,i.length,r,_]);_t(()=>{a?(C.current.scrollLeft=0,C.current.scrollTop=0):P.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),_t(()=>{D({width:C.current.clientWidth,height:C.current.clientHeight})},[g.currentPageTotalHeight]);const V=v.useCallback(()=>{C.current&&D({width:C.current.clientWidth,height:C.current.clientHeight})},[]);Ve(r,"debouncedResize",V);const G=v.useCallback(ie=>{const[ye,U]=wl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer}),[Q]=wl({firstIndex:ie.firstColumnIndex,lastIndex:ie.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:o.columnBuffer}),Z=Hw({firstColumnToRender:Q,apiRef:r,firstRowToRender:ye,lastRowToRender:U,visibleRows:w.rows}),ae=m.direction==="ltr"?1:-1,te=Cp(r.current.state).positions[ye],K=ae*Xc(r)[Z];P.current.style.transform=`translate3d(${K}px, ${te}px, 0px)`,typeof u=="function"&&u({top:te,left:K})},[r,w.rows,u,c,d,o.columnBuffer,o.rowBuffer,m.direction]),Y=v.useCallback(()=>I.current,[]),re=v.useCallback(ie=>{if(I.current&&Oz(ie,I.current)){G(ie);return}R(ie),G(ie);const[ye,U]=wl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ye,lastRowToRender:U}),I.current=ie},[r,R,I,w.rows.length,o.rowBuffer,G]);_t(()=>{if(_.width==null)return;const ie=q();re(ie);const{top:ye,left:U}=M.current,Q={top:ye,left:U,renderContext:ie};r.current.publishEvent("scrollPositionChange",Q)},[r,q,_.width,re]);const le=Zt(ie=>{const{scrollTop:ye,scrollLeft:U}=ie.currentTarget;if(M.current.top=ye,M.current.left=U,!I.current||ye<0||m.direction==="ltr"&&U<0||m.direction==="rtl"&&U>0)return;const Q=a?q():I.current,Z=Math.abs(Q.firstRowIndex-I.current.firstRowIndex),ae=Math.abs(Q.lastRowIndex-I.current.lastRowIndex),te=Math.abs(Q.firstColumnIndex-I.current.firstColumnIndex),K=Math.abs(Q.lastColumnIndex-I.current.lastColumnIndex),ee=Z>=o.rowThreshold||ae>=o.rowThreshold||te>=o.columnThreshold||K>=o.columnThreshold||T.current!==h;r.current.publishEvent("scrollPositionChange",{top:ye,left:U,renderContext:ee?Q:I.current},ie),ee&&(ns.flushSync(()=>{re(Q)}),T.current=h)}),J=Zt(ie=>{r.current.publishEvent("virtualScrollerWheel",{},ie)}),oe=Zt(ie=>{r.current.publishEvent("virtualScrollerTouchMove",{},ie)}),ue=v.useMemo(()=>y!==null?w.rows.findIndex(ie=>ie.id===y.id):-1,[y,w.rows]);Ve(r,"rowMouseOver",(ie,ye)=>{var U;ye.currentTarget.contains(ye.relatedTarget)||N((U=ie.id)!=null?U:null)}),Ve(r,"rowMouseOut",(ie,ye)=>{ye.currentTarget.contains(ye.relatedTarget)||N(null)});const ge=(ie={renderContext:S})=>{var ye;const{onRowRender:U,renderContext:Q,minFirstColumn:Z=c,maxLastColumn:ae=d,availableSpace:te=_.width,rowIndexOffset:K=0,position:ee="center"}=ie;if(!Q||te==null)return null;const se=a?o.rowBuffer:0,Ce=a?o.columnBuffer:0,[_e,$e]=wl({firstIndex:Q.firstRowIndex,lastIndex:Q.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:se}),X=[];if(ie.rows)ie.rows.forEach(ut=>{X.push(ut),r.current.calculateColSpan({rowId:ut.id,minFirstColumn:Z,maxLastColumn:ae,columns:i})});else{if(!w.range)return null;for(let ut=_e;ut<$e;ut+=1){const St=w.rows[ut];X.push(St),r.current.calculateColSpan({rowId:St.id,minFirstColumn:Z,maxLastColumn:ae,columns:i})}}let Ee=!1;if(ue>-1){const ut=w.rows[ue];(_e>ue||$e<ue)&&(Ee=!0,ue>_e?X.push(ut):X.unshift(ut),r.current.calculateColSpan({rowId:ut.id,minFirstColumn:Z,maxLastColumn:ae,columns:i}))}const[Le,Te]=wl({firstIndex:Q.firstColumnIndex,lastIndex:Q.lastColumnIndex,minFirstIndex:Z,maxLastIndex:ae,buffer:Ce}),Pe=Hw({firstColumnToRender:Le,apiRef:r,firstRowToRender:_e,lastRowToRender:$e,visibleRows:w.rows});let Re=!1;(Pe>A||Te<A)&&(Re=!0);const{focusedCellColumnIndexNotInRange:He,renderedColumns:it}=B.current(i,Pe,Te,Z,ae,Re?A:-1),kt=((ye=o.slotProps)==null?void 0:ye.row)||{},{style:Vt}=kt,nt=ce(kt,$0e);(L.current!==f||j.current!==Vt)&&(k.current=Object.create(null));const en=[];let $r=!1;for(let ut=0;ut<X.length;ut+=1){var Ct;const{id:St,model:Wr}=X[ut],Xo=Ee&&y.id===St,ua=Ee?_e+ut===w.rows.length:_e+ut===w.rows.length-1,Gr=r.current.rowHasAutoHeight(St)?"auto":r.current.unstable_getRowHeight(St);let rn;x[St]==null?rn=!1:rn=r.current.isRowSelectable(St),U&&U(St);const Lt=y!==null&&y.id===St?y.field:null,En=He!==void 0&&i[He],rr=En&&Lt?[En,...it]:it;let fo=null;b!==null&&b.id===St&&(fo=r.current.getCellParams(St,b.field).cellMode==="view"?b.field:null);const ll=typeof f=="function"&&f(St,Wr)||{},{style:Zo}=ll,bi=ce(ll,I0e);if(!k.current[St]){const qr=O({},Zo,Vt);k.current[St]=qr}let po=K+((w==null||(Ct=w.range)==null?void 0:Ct.firstRowIndex)||0)+_e+ut;Ee&&(y==null?void 0:y.id)===St?(po=ue,$r=!0):$r&&(po-=1),en.push(z.jsx(o.slots.row,O({row:Wr,rowId:St,focusedCellColumnIndexNotInRange:He,isNotVisible:Xo,rowHeight:Gr,focusedCell:Lt,tabbableCell:fo,renderedColumns:rr,visibleColumns:i,firstColumnToRender:Pe,lastColumnToRender:Te,selected:rn,index:po,containerWidth:te,isLastVisible:ua,position:ee},bi,nt,{hovered:F===St,style:k.current[St]}),St))}return L.current=f,j.current=Vt,en},me=_.width&&h>=_.width,ke=v.useMemo(()=>{const ie=Math.max(g.currentPageTotalHeight,1);let ye=!1;C!=null&&C.current&&ie<=(C==null?void 0:C.current.clientHeight)&&(ye=!0);const U={width:me?h:"auto",height:ie,minHeight:ye?"100%":"auto"};return o.autoHeight&&w.rows.length===0&&(U.height=x4(r,o.rowHeight)),U},[r,C,h,g.currentPageTotalHeight,me,o.autoHeight,o.rowHeight,w.rows.length]);v.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,ke]);const be=v.useMemo(()=>{const ie={};return me||(ie.overflowX="hidden"),o.autoHeight&&(ie.overflowY="hidden"),ie},[me,o.autoHeight]);return r.current.register("private",{getRenderContext:Y}),{renderContext:S,updateRenderZonePosition:G,getRows:ge,getRootProps:(ie={})=>O({ref:E,onScroll:le,onWheel:J,onTouchMove:oe},ie,{style:ie.style?O({},ie.style,be):be,role:"presentation"}),getContentProps:({style:ie}={})=>({style:ie?O({},ie,ke):ke,role:"presentation"}),getRenderZoneProps:()=>({ref:P,role:"rowgroup"})}},T0e=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return Oe({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",i===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},ft,t)};function _0e(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:a,height:l,colIndex:s,hasFocus:u,tabIndex:c,isLastColumn:d}=e,f=Be(),m=v.useRef(null),p=dt(),h=De(p,c4),y=n?h[n]:{},{headerName:b=n??"",description:g="",headerAlign:x=void 0}=y;let w;const P=n&&((t=h[n])==null?void 0:t.renderHeaderGroup),C=v.useMemo(()=>({groupId:n,headerName:b,description:g,depth:o,maxDepth:i,fields:a,colIndex:s,isLastColumn:d}),[n,b,g,o,i,a,s,d]);n&&P&&(w=P(C));const E=f.showColumnVerticalBorder,S=O({},e,{classes:f.classes,showColumnBorder:E,headerAlign:x,depth:o,isDragging:!1}),R=b??n,I=Rt(),M=n===null?`empty-group-cell-${I}`:n,_=T0e(S);v.useLayoutEffect(()=>{if(u){const k=m.current.querySelector('[tabindex="0"]')||m.current;k==null||k.focus()}},[p,u]);const D=v.useCallback(N=>k=>{rm(k)||p.current.publishEvent(N,C,k)},[p,C]),T=v.useMemo(()=>({onKeyDown:D("columnGroupHeaderKeyDown"),onFocus:D("columnGroupHeaderFocus"),onBlur:D("columnGroupHeaderBlur")}),[D]),F=typeof y.headerClassName=="function"?y.headerClassName(C):y.headerClassName;return z.jsx(F4,O({ref:m,classes:_,columnMenuOpen:!1,colIndex:s,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:w,headerClassName:F,description:g,elementId:M,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:R,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`},T))}const OR=fe("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function F0e(e){return!!e.target}const A0e=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:a,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:u,columnGroupHeaderFocus:c,densityFactor:d,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:y}=e,b=Ur(),[g,x]=v.useState(""),[w,P]=v.useState(""),C=us(),E=De(C,q4),S=Be(),R=v.useRef(null),I=xt(t,R),[M,_]=v.useState(null),D=v.useRef(M),T=v.useRef(0),F=xu(C,S),N=hP(C,S.columnHeaderHeight),k=Math.floor(S.columnHeaderHeight*d),L=v.useCallback(oe=>{M&&oe&&Oz(M,oe)||_(oe)},[M]);v.useEffect(()=>{C.current.columnHeadersContainerElementRef.current.scrollLeft=0},[C]);const j=v.useRef(t0(Oye,{equalityCheck:(oe,ue)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ge=>oe[ge]===ue[ge])})),B=v.useCallback(oe=>{const[ue,ge]=wl({firstIndex:oe.firstRowIndex,lastIndex:oe.lastRowIndex,minFirstIndex:0,maxLastIndex:F.rows.length,buffer:S.rowBuffer}),me=j.current({firstColumnIndex:oe.firstColumnIndex,minColumnIndex:n,columnBuffer:S.columnBuffer,firstRowToRender:ue,lastRowToRender:ge,apiRef:C,visibleRows:F.rows}),ke=b.direction==="ltr"?1:-1,be=me>0?T.current-ke*a[me]:T.current;R.current.style.transform=`translate3d(${-be}px, 0px, 0px)`},[a,n,S.columnBuffer,C,F.rows,S.rowBuffer,b.direction]);v.useLayoutEffect(()=>{M&&B(M)},[M,B]);const A=v.useCallback(({left:oe,renderContext:ue=null},ge)=>{var me,ke;if(!R.current||T.current===oe&&((me=D.current)==null?void 0:me.firstColumnIndex)===(ue==null?void 0:ue.firstColumnIndex)&&((ke=D.current)==null?void 0:ke.lastColumnIndex)===(ue==null?void 0:ue.lastColumnIndex))return;T.current=oe;let be=!1;ue!==D.current||!D.current?(F0e(ge)?(ns.flushSync(()=>{L(ue)}),be=!0):L(ue),D.current=ue):be=!0,ue&&be&&B(ue)},[B,L]),H=v.useCallback(oe=>P(oe.field),[]),q=v.useCallback(()=>P(""),[]),V=v.useCallback(oe=>x(oe.field),[]),G=v.useCallback(()=>x(""),[]);Ve(C,"columnResizeStart",H),Ve(C,"columnResizeStop",q),Ve(C,"columnHeaderDragStart",V),Ve(C,"columnHeaderDragEnd",G),Ve(C,"scrollPositionChange",A);const Y=oe=>{const{renderContext:ue=M,minFirstColumn:ge=n,maxLastColumn:me=r.length}=oe||{};if(!ue)return null;const[ke,be]=wl({firstIndex:ue.firstRowIndex,lastIndex:ue.lastRowIndex,minFirstIndex:0,maxLastIndex:F.rows.length,buffer:S.rowBuffer}),ie=E?j.current({firstColumnIndex:ue.firstColumnIndex,minColumnIndex:ge,columnBuffer:S.columnBuffer,apiRef:C,firstRowToRender:ke,lastRowToRender:be,visibleRows:F.rows}):0,ye=E?Math.min(ue.lastColumnIndex+S.columnBuffer,me):me;return{renderedColumns:r.slice(ie,ye),firstColumnToRender:ie,lastColumnToRender:ye,minFirstColumn:ge,maxLastColumn:me}},re=(oe,ue={})=>{const ge=Y(oe);if(ge==null)return null;const{renderedColumns:me,firstColumnToRender:ke}=ge,be=[];for(let ie=0;ie<me.length;ie+=1){const ye=me[ie],U=ke+ie,Q=U===0,Z=l!==null&&l.field===ye.field||Q&&!y?0:-1,ae=u!==null&&u.field===ye.field,te=m.open&&m.field===ye.field;be.push(z.jsx(fde,O({},o[ye.field],{columnMenuOpen:te,filterItemsCounter:i[ye.field]&&i[ye.field].length,headerHeight:k,isDragging:ye.field===g,colDef:ye,colIndex:U,isResizing:w===ye.field,hasFocus:ae,tabIndex:Z},ue),ye.field))}return z.jsx(OR,{role:"row","aria-rowindex":f+1,ownerState:S,children:be})},le=oe=>{if(f===0)return null;const ue=Y(oe);if(ue==null||ue.renderedColumns.length===0)return null;const{firstColumnToRender:ge,lastColumnToRender:me}=ue,ke=[],be=[];for(let U=0;U<f;U+=1){var ie,ye;const Q=h[U],Z=r[ge].field,ae=(ie=C.current.unstable_getColumnGroupPath(Z)[U])!=null?ie:null,te=Q.findIndex(({groupId:Te,columnFields:Pe})=>Te===ae&&Pe.includes(Z)),K=r[me-1].field,ee=(ye=C.current.unstable_getColumnGroupPath(K)[U])!=null?ye:null,se=Q.findIndex(({groupId:Te,columnFields:Pe})=>Te===ee&&Pe.includes(K)),Ce=Q.slice(te,se+1).map(Te=>O({},Te,{columnFields:Te.columnFields.filter(Pe=>p[Pe]!==!1)})).filter(Te=>Te.columnFields.length>0),_e=Ce[0].columnFields.indexOf(Z),X=Ce[0].columnFields.slice(0,_e).reduce((Te,Pe)=>{var Re;const He=C.current.getColumn(Pe);return Te+((Re=He.computedWidth)!=null?Re:0)},0);let Ee=ge;const Le=Ce.map(({groupId:Te,columnFields:Pe})=>{const Re=c!==null&&c.depth===U&&Pe.includes(c.field),He=s!==null&&s.depth===U&&Pe.includes(s.field)?0:-1,it={groupId:Te,width:Pe.reduce((kt,Vt)=>kt+C.current.getColumn(Vt).computedWidth,0),fields:Pe,colIndex:Ee,hasFocus:Re,tabIndex:He};return Ee+=Pe.length,it});be.push({leftOverflow:X,elements:Le})}return be.forEach((U,Q)=>{ke.push(z.jsx(OR,{style:{height:`${k}px`,transform:`translateX(-${U.leftOverflow}px)`},role:"row","aria-rowindex":Q+1,ownerState:S,children:U.elements.map(({groupId:Z,width:ae,fields:te,colIndex:K,hasFocus:ee,tabIndex:se},Ce)=>z.jsx(_0e,{groupId:Z,width:ae,fields:te,colIndex:K,depth:Q,isLastColumn:K===r.length-te.length,maxDepth:be.length,height:k,hasFocus:ee,tabIndex:se},Ce))},Q))}),ke},J={minHeight:N,maxHeight:N,lineHeight:`${k}px`};return{renderContext:M,getColumnHeaders:re,getColumnsToRender:Y,getColumnGroupHeaders:le,isDragging:!!g,getRootProps:(oe={})=>O({style:J},oe),getInnerProps:()=>({ref:I,role:"rowgroup"}),headerHeight:k}},L0e=["className"],D0e=e=>{const{classes:t}=e;return Oe({root:["columnHeaders","withBorderColor"]},ft,t)},N0e=Dn("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),z0e=v.forwardRef(function(t,n){const{className:r}=t,o=ce(t,L0e),i=Be(),a=D0e(i);return z.jsx(N0e,O({ref:n,className:ve(r,a.root),ownerState:i},o,{role:"presentation"}))}),j0e=["isDragging","className"],B0e=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Oe({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},ft,r)},H0e=Dn("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${ne.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${ne.columnHeaderDropZone} .${ne.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${ne["columnHeadersInner--scrollable"]} .${ne.columnHeader}:last-child`]:{borderRight:"none"}})),U0e=v.forwardRef(function(t,n){var r,o;const{isDragging:i,className:a}=t,l=ce(t,j0e),s=dt(),u=Be(),c=O({},u,{isDragging:i,hasScrollX:(r=(o=s.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),d=B0e(c);return z.jsx(H0e,O({ref:n,className:ve(a,d.root),ownerState:c},l))}),V0e=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],W0e=v.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:l,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:f,headerGroupingMaxDepth:m,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:b}=t,g=ce(t,V0e),{isDragging:x,getRootProps:w,getInnerProps:P,getColumnHeaders:C,getColumnGroupHeaders:E}=A0e({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:a,columnPositions:l,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,densityFactor:f,headerGroupingMaxDepth:m,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:b});return z.jsx(z0e,O({ref:n},w(g),{children:z.jsxs(U0e,O({isDragging:x},P(),{children:[E(),C()]}))}))}),G0e=u0(W0e),q0e=v.forwardRef(function(t,n){const o=dt().current.getLocaleText("noResultsOverlayLabel");return z.jsx(eP,O({ref:n},t,{children:o}))}),K0e=rt(z.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"),Q0e=rt(z.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"),Y0e=rt(z.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 X0e(e){return We("MuiCheckbox",e)}const Z0e=Ge("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),u1=Z0e,J0e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ebe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${pe(r)}`,`size${pe(o)}`]},a=Oe(i,X0e,t);return O({},t,a)},tbe=fe(K4,{shouldForwardProp:e=>mr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${pe(n.size)}`],n.color!=="default"&&t[`color${pe(n.color)}`]]}})(({theme:e,ownerState:t})=>O({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})`:lt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${u1.checked}, &.${u1.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${u1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nbe=z.jsx(Q0e,{}),rbe=z.jsx(K0e,{}),obe=z.jsx(Y0e,{}),ibe=v.forwardRef(function(t,n){var r,o;const i=qe({props:t,name:"MuiCheckbox"}),{checkedIcon:a=nbe,color:l="primary",icon:s=rbe,indeterminate:u=!1,indeterminateIcon:c=obe,inputProps:d,size:f="medium",className:m}=i,p=ce(i,J0e),h=u?c:s,y=u?c:a,b=O({},i,{color:l,indeterminate:u,size:f}),g=ebe(b);return z.jsx(tbe,O({type:"checkbox",inputProps:O({"data-indeterminate":u},d),icon:v.cloneElement(h,{fontSize:(r=h.props.fontSize)!=null?r:f}),checkedIcon:v.cloneElement(y,{fontSize:(o=y.props.fontSize)!=null?o:f}),ownerState:b,ref:n,className:ve(g.root,m)},p,{classes:g}))}),gP=ibe;function abe(e){return We("MuiInputAdornment",e)}const lbe=Ge("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),MR=lbe;var RR;const sbe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ube=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${pe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},cbe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${pe(o)}`,a,r&&"hiddenLabel",i&&`size${pe(i)}`]};return Oe(l,abe,t)},dbe=fe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ube})(({theme:e,ownerState:t})=>O({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${MR.positionStart}&:not(.${MR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),fbe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:s=!1,position:u,variant:c}=r,d=ce(r,sbe),f=Xa()||{};let m=c;c&&f.variant,f&&!m&&(m=f.variant);const p=O({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:l,position:u,variant:m}),h=cbe(p);return z.jsx(c0.Provider,{value:null,children:z.jsx(dbe,O({as:a,ownerState:p,className:ve(h.root,i),ref:n},d,{children:typeof o=="string"&&!s?z.jsx(Xe,{color:"text.secondary",children:o}):z.jsxs(v.Fragment,{children:[u==="start"?RR||(RR=z.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),Ws=fbe,pbe=["sortingOrder"],mbe=v.memo(function(t){const{sortingOrder:n}=t,r=ce(t,pbe),o=Be(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?z.jsx(a,O({},r)):null}),hbe=["native"];function gbe(e){let{native:t}=e,n=ce(e,hbe);return t?z.jsx("option",O({},n)):z.jsx(Hi,O({},n))}const vbe={BooleanCellTrueIcon:cfe,BooleanCellFalseIcon:i1,ColumnMenuIcon:afe,OpenFilterButtonIcon:Jde,FilterPanelDeleteIcon:i1,ColumnFilteredIcon:GM,ColumnSelectorIcon:tfe,ColumnUnsortedIcon:mbe,ColumnSortedAscendingIcon:HM,ColumnSortedDescendingIcon:UM,ColumnResizeIcon:nfe,DensityCompactIcon:rfe,DensityStandardIcon:ofe,DensityComfortableIcon:ife,ExportIcon:ufe,MoreActionsIcon:dfe,TreeDataCollapseIcon:WM,TreeDataExpandIcon:VM,GroupingCriteriaCollapseIcon:WM,GroupingCriteriaExpandIcon:VM,DetailPanelExpandIcon:qM,DetailPanelCollapseIcon:lfe,RowReorderIcon:KM,QuickFilterIcon:efe,QuickFilterClearIcon:i1,ColumnMenuHideIcon:ffe,ColumnMenuSortAscendingIcon:HM,ColumnMenuSortDescendingIcon:UM,ColumnMenuFilterIcon:GM,ColumnMenuManageColumnsIcon:pfe,ColumnMenuClearIcon:mfe,LoadIcon:sfe,FilterPanelAddIcon:qM,FilterPanelRemoveAllIcon:hfe,ColumnReorderIcon:KM},ybe=O({},vbe,{BaseCheckbox:gP,BaseTextField:In,BaseFormControl:Q4,BaseSelect:cP,BaseSwitch:qfe,BaseButton:mn,BaseIconButton:An,BaseInputAdornment:Ws,BaseTooltip:Cr,BasePopper:yu,BaseInputLabel:uz,BaseSelectOption:gbe,BaseChip:lP}),bbe=ybe,xbe=O({},bbe,{Cell:Fw,SkeletonCell:Ece,ColumnHeaderFilterIconButton:Wde,ColumnMenu:Mfe,ColumnHeaders:G0e,Footer:Ige,FooterRowCount:Pve,Toolbar:null,PreferencesPanel:_pe,LoadingOverlay:zge,NoResultsOverlay:q0e,NoRowsOverlay:jge,Pagination:wve,FilterPanel:eme,ColumnsPanel:$pe,Panel:Tpe,Row:Wve}),Mz=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>O({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function wbe({defaultSlots:e,slots:t,components:n}){const r=t??(n?Mz(n):null);if(!r||Object.keys(r).length===0)return e;const o=O({},e);return Object.keys(r).forEach(i=>{const a=i;r[a]!==void 0&&(o[a]=r[a])}),o}const Cbe=["components","componentsProps"];function Sbe(e){var t;const n=Object.keys(e);if(!n.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let i=0;i<n.length;i+=1){const a=n[i];a.startsWith("aria-")||a.startsWith("data-")?o[a]=e[a]:r[a]=e[a]}return r.forwardedProps=o,r}function Ebe(e){return v.useMemo(()=>{const{components:t,componentsProps:n}=e,r=ce(e,Cbe);return[t,n,Sbe(r)]},[e])}const Pbe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},v0={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Ki.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},kbe=Mz(xbe),$be=e=>{const[t,n,r]=Ebe(qe({props:e,name:"MuiDataGrid"})),o=v.useMemo(()=>O({},y0e,r.localeText),[r.localeText]),i=v.useMemo(()=>wbe({defaultSlots:kbe,slots:r.slots,components:t}),[t,r.slots]);return v.useMemo(()=>{var a;return O({},v0,r,{localeText:o,slots:i,slotProps:(a=r.slotProps)!=null?a:n},Pbe)},[r,o,i,n])},Ibe=e=>O({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),TR=(e,t,n)=>typeof e=="number"&&e>0?e:t,Obe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=v.useRef(Object.create(null)),a=v.useRef(-1),l=v.useRef(!1),s=De(e,bd),u=De(e,Yn),c=De(e,j4),d=De(e,wo),f=xu(e,t),m=De(e,yd),p=TR(t.rowHeight,v0.rowHeight),h=Math.floor(p*s),y=v.useCallback(()=>{var _,D;l.current=!1;const T=k=>{i.current[k.id]||(i.current[k.id]={sizes:{baseCenter:h},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:L,needsFirstMeasurement:j,sizes:B}=i.current[k.id];let A=typeof h=="number"&&h>0?h:52;const H=B.baseCenter;if(L)A=H;else if(n){const re=n(O({},k,{densityFactor:s}));if(re==="auto"){if(j){const le=o?o(O({},k,{densityFactor:s})):h;A=le??h}else A=H;l.current=!0,i.current[k.id].autoHeight=!0}else A=TR(re,h),i.current[k.id].needsFirstMeasurement=!1,i.current[k.id].autoHeight=!1}else i.current[k.id].needsFirstMeasurement=!1;const q={};for(const re in B)/^base[A-Z]/.test(re)&&(q[re]=B[re]);if(q.baseCenter=A,r){var V,G;const re=e.current.getRowIndexRelativeToVisibleRows(k.id),le=r(O({},k,{isFirstVisible:re===0,isLastVisible:re===f.rows.length-1,indexRelativeToCurrentPage:re}));q.spacingTop=(V=le.top)!=null?V:0,q.spacingBottom=(G=le.bottom)!=null?G:0}const Y=e.current.unstable_applyPipeProcessors("rowHeight",q,k);return i.current[k.id].sizes=Y,Y},F=[],N=f.rows.reduce((k,L)=>{F.push(k);let j=0,B=0;const A=T(L);for(const H in A){const q=A[H];/^base[A-Z]/.test(H)?j=q>j?q:j:B+=q}return k+j+B},0);m==null||(_=m.top)==null||_.forEach(k=>{T(k)}),m==null||(D=m.bottom)==null||D.forEach(k=>{T(k)}),e.current.setState(k=>O({},k,{rowsMeta:{currentPageTotalHeight:N,positions:F}})),l.current||(a.current=1/0),e.current.forceUpdate()},[e,f.rows,h,n,r,o,m,s]),b=v.useCallback(_=>{const D=i.current[_];return D?D.sizes.baseCenter:h},[h]),g=_=>{var D;return(D=i.current[_])==null?void 0:D.sizes},x=v.useCallback((_,D)=>{i.current[_].sizes.baseCenter=D,i.current[_].isResized=!0,i.current[_].needsFirstMeasurement=!1,y()},[y]),w=v.useMemo(()=>fd(y,t.rowPositionsDebounceMs),[y,t.rowPositionsDebounceMs]),P=v.useCallback((_,D,T)=>{if(!i.current[_]||!i.current[_].autoHeight)return;const F=i.current[_].sizes[`base${pe(T)}`]!==D;i.current[_].needsFirstMeasurement=!1,i.current[_].sizes[`base${pe(T)}`]=D,F&&w()},[w]),C=v.useCallback(_=>{var D;return((D=i.current[_])==null?void 0:D.autoHeight)||!1},[]),E=v.useCallback(()=>a.current,[]),S=v.useCallback(_=>{l.current&&_>a.current&&(a.current=_)},[]),R=v.useCallback(()=>{i.current={},y()},[y]);v.useEffect(()=>{y()},[h,u,c,d,y]),mP(e,"rowHeight",y);const I={unstable_setLastMeasuredRowIndex:S,unstable_getRowHeight:b,unstable_getRowInternalSizes:g,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:P,resetRowHeights:R},M={getLastMeasuredRowIndex:E,rowHasAutoHeight:C};ot(e,I,"public"),ot(e,M,"private")},Mbe=e=>{const t=v.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=v.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()}),e.current.forceUpdate()},[e]);ot(e,{exportState:t,restoreState:n},"public")},Rbe=e=>{const t=v.useRef({}),n=v.useCallback((u,c,d)=>{const f=t.current;f[u]||(f[u]={}),f[u][c]=d},[]),r=v.useCallback((u,c)=>{var d;return(d=t.current[u])==null?void 0:d[c]},[]),o=v.useCallback(u=>{const{columnIndex:c,rowId:d,minFirstColumnIndex:f,maxLastColumnIndex:m,columns:p}=u,h=p.length,y=p[c],b=typeof y.colSpan=="function"?y.colSpan(e.current.getCellParams(d,y.field)):y.colSpan;if(!b||b===1)return n(d,c,{spannedByColSpan:!1,cellProps:{colSpan:1,width:y.computedWidth}}),{colSpan:1};let g=y.computedWidth;for(let x=1;x<b;x+=1){const w=c+x;if(w>=f&&w<m){const P=p[w];g+=P.computedWidth,n(d,c+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(c+b,h-1),leftVisibleCellIndex:c})}n(d,c,{spannedByColSpan:!1,cellProps:{colSpan:b,width:g}})}return{colSpan:b}},[e,n]),i=v.useCallback(({rowId:u,minFirstColumn:c,maxLastColumn:d,columns:f})=>{for(let m=c;m<d;m+=1){const p=o({columnIndex:m,rowId:u,minFirstColumnIndex:c,maxLastColumnIndex:d,columns:f});p.colSpan>1&&(m+=p.colSpan-1)}},[o]),a={unstable_getCellColSpanInfo:r},l={calculateColSpan:i};ot(e,a,"public"),ot(e,l,"private");const s=v.useCallback(()=>{t.current={}},[]);Ve(e,"columnOrderChange",s)},Rz=(e,t,n)=>{if(w4(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Rz(i,[...t,r],n)})},Uw=e=>{if(!e)return{};const t={};return e.forEach(n=>{Rz(n,[],t)}),t},Vw=(e,t,n)=>{const r=s=>{var u;return(u=t[s])!=null?u:[]},o=[],i=Math.max(...e.map(s=>r(s).length)),a=(s,u,c)=>Us(r(s).slice(0,c+1),r(u).slice(0,c+1)),l=(s,u)=>!!(n!=null&&n.left&&n.left.includes(s)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(s)&&n.right.includes(u));for(let s=0;s<i;s+=1){const u=e.reduce((c,d)=>{var f;const m=(f=r(d)[s])!=null?f:null;if(c.length===0)return[{columnFields:[d],groupId:m}];const p=c[c.length-1],h=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!a(h,d,s)||l(h,d)?[...c,{columnFields:[d],groupId:m}]:[...c.slice(0,c.length-1),{columnFields:[...p.columnFields,d],groupId:m}]},[]);o.push(u)}return o},Tbe=["groupId","children"],vP=e=>{let t={};return e.forEach(n=>{if(w4(n))return;const{groupId:r,children:o}=n,i=ce(n,Tbe);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=O({},i,{groupId:r}),l=vP(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=O({},t,l,{[r]:a})}),O({},t)},_be=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=_a(n),s=n0(n),u=vP((o=t.columnGroupingModel)!=null?o:[]),c=Uw((i=t.columnGroupingModel)!=null?i:[]),d=Vw(l,c,(a=n.current.state.pinnedColumns)!=null?a:{}),f=s.length===0?0:Math.max(...s.map(m=>{var p,h;return(p=(h=c[m])==null?void 0:h.length)!=null?p:0}));return O({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:d,maxDepth:f}})},Fbe=(e,t)=>{var n;const r=v.useCallback(s=>{var u;return(u=fse(e)[s])!=null?u:[]},[e]),o=v.useCallback(()=>c4(e),[e]);ot(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=v.useCallback(()=>{var s;const u=Uw((s=t.columnGroupingModel)!=null?s:[]);e.current.setState(c=>{var d,f,m;const p=(d=(f=c.columns)==null?void 0:f.orderedFields)!=null?d:[],h=(m=c.pinnedColumns)!=null?m:{},y=Vw(p,u,h);return O({},c,{columnGrouping:O({},c.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),l=v.useCallback(s=>{var u,c,d,f;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const m=(c=(d=(f=e.current).getPinnedColumns)==null?void 0:d.call(f))!=null?c:{},p=_a(e),h=n0(e),y=vP(s??[]),b=Uw(s??[]),g=Vw(p,b,m),x=h.length===0?0:Math.max(...h.map(w=>{var P,C;return(P=(C=b[w])==null?void 0:C.length)!=null?P:0}));e.current.setState(w=>O({},w,{columnGrouping:{lookup:y,unwrappedGroupingModel:b,headerStructure:g,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);Ve(e,"columnIndexChange",a),Ve(e,"columnsChange",()=>{l(t.columnGroupingModel)}),Ve(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),v.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},Abe=(e,t)=>{const n=iye(e,t);return x0e(n,t),h0e(n),Ir(g0e,n,t),Ir(Mye,n,t),Ir(c0e,n,t),Ir(s0e,n,t),Ir(Kye,n,t),Ir(w0e,n,t),Ir(Zye,n,t),Ir(Vye,n,t),Ir(Fye,n,t),Ir(zye,n,t),Ir(Ibe,n,t),Ir(Pye,n,t),Ir(_be,n,t),Ir(Bde,n,t),Xye(n,t),v0e(n,t),Rye(n,t),d0e(n,t),qse(n,t),Rbe(n),Fbe(n,t),u0e(n,t),Qye(n,t),Jye(n,t),qye(n,t),C0e(n,t),Aye(n,t),jye(n,t),Obe(n,t),S0e(n,t),kye(n),Nye(n,t),Uye(n,t),Eye(n,t),k0e(n,t),E0e(n,t),Mbe(n),Hde(n,t),n},Lbe=e=>{const{classes:t}=e;return Oe({root:["virtualScroller"]},ft,t)},Dbe=Dn("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),Nbe=v.forwardRef(function(t,n){const r=Be(),o=Lbe(r);return z.jsx(Dbe,O({ref:n},t,{className:ve(o.root,t.className),ownerState:r}))}),zbe=(e,t)=>{const{classes:n}=e;return Oe({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ft,n)},jbe=Dn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Bbe=v.forwardRef(function(t,n){var r;const o=Be(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=zbe(o,i);return z.jsx(jbe,O({ref:n},t,{ownerState:o,className:ve(a.root,t.className)}))}),Hbe=["className"],Ube=e=>{const{classes:t}=e;return Oe({root:["virtualScrollerRenderZone"]},ft,t)},Vbe=Dn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Wbe=v.forwardRef(function(t,n){const{className:r}=t,o=ce(t,Hbe),i=Be(),a=Ube(i);return z.jsx(Vbe,O({ref:n,className:ve(a.root,r),ownerState:i},o))}),Gbe=["className"],qbe=v.forwardRef(function(t,n){const{className:r}=t,o=ce(t,Gbe),{getRootProps:i,getContentProps:a,getRenderZoneProps:l,getRows:s}=R0e({ref:n});return z.jsxs(Nbe,O({className:r},i(o),{children:[z.jsx(jse,{}),z.jsx(Bbe,O({},a(),{children:z.jsx(Wbe,O({},l(),{children:s()}))}))]}))}),Tz=v.forwardRef(function(t,n){const r=$be(t),o=Abe(r.apiRef,r);return z.jsx(Gve,{privateApiRef:o,props:r,children:z.jsxs(Oce,O({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[z.jsx(Oge,{}),z.jsx(Rse,{VirtualScrollerComponent:qbe}),z.jsx(Tse,{})]}))})}),Kbe=v.memo(Tz);v0.filterDebounceMs;v0.filterDebounceMs;Tz.propTypes={apiRef:de.shape({current:de.object.isRequired}),"aria-label":de.string,"aria-labelledby":de.string,autoHeight:de.bool,autoPageSize:de.bool,cellModesModel:de.object,checkboxSelection:de.bool,classes:de.object,clipboardCopyCellDelimiter:de.string,columnBuffer:de.number,columnGroupingModel:de.arrayOf(de.object),columnHeaderHeight:de.number,columns:PX(de.array.isRequired),columnThreshold:de.number,columnVisibilityModel:de.object,components:de.object,componentsProps:de.object,density:de.oneOf(["comfortable","compact","standard"]),disableColumnFilter:de.bool,disableColumnMenu:de.bool,disableColumnSelector:de.bool,disableDensitySelector:de.bool,disableEval:de.bool,disableRowSelectionOnClick:de.bool,disableVirtualization:de.bool,editMode:de.oneOf(["cell","row"]),experimentalFeatures:de.shape({ariaV7:de.bool,columnGrouping:de.bool,warnIfFocusStateIsNotSynced:de.bool}),filterDebounceMs:de.number,filterMode:de.oneOf(["client","server"]),filterModel:de.shape({items:de.arrayOf(de.shape({field:de.string.isRequired,id:de.oneOfType([de.number,de.string]),operator:de.string.isRequired,value:de.any})).isRequired,logicOperator:de.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:de.bool,quickFilterLogicOperator:de.oneOf(["and","or"]),quickFilterValues:de.array}),forwardedProps:de.object,getCellClassName:de.func,getDetailPanelContent:de.func,getEstimatedRowHeight:de.func,getRowClassName:de.func,getRowHeight:de.func,getRowId:de.func,getRowSpacing:de.func,hideFooter:de.bool,hideFooterPagination:de.bool,hideFooterSelectedRowCount:de.bool,ignoreDiacritics:de.bool,initialState:de.object,isCellEditable:de.func,isRowSelectable:de.func,keepNonExistentRowsSelected:de.bool,loading:de.bool,localeText:de.object,logger:de.shape({debug:de.func.isRequired,error:de.func.isRequired,info:de.func.isRequired,warn:de.func.isRequired}),logLevel:de.oneOf(["debug","error","info","warn",!1]),nonce:de.string,onCellClick:de.func,onCellDoubleClick:de.func,onCellEditStart:de.func,onCellEditStop:de.func,onCellKeyDown:de.func,onCellModesModelChange:de.func,onClipboardCopy:de.func,onColumnHeaderClick:de.func,onColumnHeaderDoubleClick:de.func,onColumnHeaderEnter:de.func,onColumnHeaderLeave:de.func,onColumnHeaderOut:de.func,onColumnHeaderOver:de.func,onColumnOrderChange:de.func,onColumnVisibilityModelChange:de.func,onFilterModelChange:de.func,onMenuClose:de.func,onMenuOpen:de.func,onPaginationModelChange:de.func,onPreferencePanelClose:de.func,onPreferencePanelOpen:de.func,onProcessRowUpdateError:de.func,onResize:de.func,onRowClick:de.func,onRowDoubleClick:de.func,onRowEditCommit:de.func,onRowEditStart:de.func,onRowEditStop:de.func,onRowModesModelChange:de.func,onRowSelectionModelChange:de.func,onSortModelChange:de.func,onStateChange:de.func,pageSizeOptions:de.arrayOf(de.oneOfType([de.number,de.shape({label:de.string.isRequired,value:de.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
`)):null,paginationMode:de.oneOf(["client","server"]),paginationModel:de.shape({page:de.number.isRequired,pageSize:de.number.isRequired}),processRowUpdate:de.func,rowBuffer:de.number,rowCount:de.number,rowHeight:de.number,rowModesModel:de.object,rowPositionsDebounceMs:de.number,rows:de.arrayOf(de.object).isRequired,rowSelection:de.bool,rowSelectionModel:de.oneOfType([de.arrayOf(de.oneOfType([de.number,de.string]).isRequired),de.number,de.string]),rowSpacingType:de.oneOf(["border","margin"]),rowThreshold:de.number,scrollbarSize:de.number,showCellVerticalBorder:de.bool,showColumnVerticalBorder:de.bool,slotProps:de.object,slots:de.object,sortingMode:de.oneOf(["client","server"]),sortingOrder:de.arrayOf(de.oneOf(["asc","desc"])),sortModel:de.arrayOf(de.shape({field:de.string.isRequired,sort:de.oneOf(["asc","desc"])})),sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object]),unstable_ignoreValueFormatterDuringExport:de.oneOfType([de.shape({clipboardExport:de.bool,csvExport:de.bool}),de.bool])};var Qbe=Object.prototype,Ybe=Qbe.hasOwnProperty;function Xbe(e,t){return e!=null&&Ybe.call(e,t)}function Zbe(e,t){return e!=null&&fL(e,t,Xbe)}var lm=e=>e.type==="checkbox",fc=e=>e instanceof Date,br=e=>e==null;const _z=e=>typeof e=="object";var On=e=>!br(e)&&!Array.isArray(e)&&_z(e)&&!fc(e),Jbe=e=>On(e)&&e.target?lm(e.target)?e.target.checked:e.target.value:e,e1e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,t1e=(e,t)=>e.has(e1e(t)),n1e=e=>{const t=e.constructor&&e.constructor.prototype;return On(t)&&t.hasOwnProperty("isPrototypeOf")},yP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function go(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(yP&&(e instanceof Blob||e instanceof FileList))&&(n||On(e)))if(t=n?[]:{},!n&&!n1e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=go(e[r]));else return e;return t}var sm=e=>Array.isArray(e)?e.filter(Boolean):[],gn=e=>e===void 0,Ue=(e,t,n)=>{if(!t||!On(e))return n;const r=sm(t.split(/[,[\].]+?/)).reduce((o,i)=>br(o)?o:o[i],e);return gn(r)||r===e?gn(e[t])?n:e[t]:r},Ca=e=>typeof e=="boolean";const _R={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},si={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ma={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},r1e=$.createContext(null),o1e=e=>{const{children:t,...n}=e;return $.createElement(r1e.Provider,{value:n},t)};var i1e=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==si.all&&(t._proxyFormState[a]=!r||si.all),n&&(n[a]=!0),e[a]}});return o},So=e=>On(e)&&!Object.keys(e).length,a1e=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return So(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||si.all))},c1=e=>Array.isArray(e)?e:[e];function l1e(e){const t=$.useRef(e);t.current=e,$.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var Ai=e=>typeof e=="string",s1e=(e,t,n,r,o)=>Ai(e)?(r&&t.watch.add(e),Ue(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Ue(n,i))):(r&&(t.watchAll=!0),n),bP=e=>/^\w*$/.test(e),Fz=e=>sm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),qt=(e,t,n)=>{let r=-1;const o=bP(t)?[t]:Fz(t),i=o.length,a=i-1;for(;++r<i;){const l=o[r];let s=n;if(r!==a){const u=e[l];s=On(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}e[l]=s,e=e[l]}return e},u1e=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},FR=e=>({isOnSubmit:!e||e===si.onSubmit,isOnBlur:e===si.onBlur,isOnChange:e===si.onChange,isOnAll:e===si.all,isOnTouch:e===si.onTouched}),AR=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const jf=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=Ue(e,o);if(i){const{_f:a,...l}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],o)&&!r)break;if(a.ref&&t(a.ref,a.name)&&!r)break;jf(l,t)}else On(l)&&jf(l,t)}}};var c1e=(e,t,n)=>{const r=sm(Ue(e,n));return qt(r,"root",t[n]),qt(e,n,r),e},xP=e=>e.type==="file",Tl=e=>typeof e=="function",gv=e=>{if(!yP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ig=e=>Ai(e),wP=e=>e.type==="radio",vv=e=>e instanceof RegExp;const LR={value:!1,isValid:!1},DR={value:!0,isValid:!0};var Az=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!gn(e[0].attributes.value)?gn(e[0].value)||e[0].value===""?DR:{value:e[0].value,isValid:!0}:DR:LR}return LR};const NR={isValid:!1,value:null};var Lz=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,NR):NR;function zR(e,t,n="validate"){if(ig(e)||Array.isArray(e)&&e.every(ig)||Ca(e)&&!e)return{type:n,message:ig(e)?e:"",ref:t}}var Du=e=>On(e)&&!vv(e)?e:{value:e,message:""},jR=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:l,maxLength:s,minLength:u,min:c,max:d,pattern:f,validate:m,name:p,valueAsNumber:h,mount:y,disabled:b}=e._f,g=Ue(t,p);if(!y||b)return{};const x=a?a[0]:i,w=_=>{r&&x.reportValidity&&(x.setCustomValidity(Ca(_)?"":_||""),x.reportValidity())},P={},C=wP(i),E=lm(i),S=C||E,R=(h||xP(i))&&gn(i.value)&&gn(g)||gv(i)&&i.value===""||g===""||Array.isArray(g)&&!g.length,I=u1e.bind(null,p,n,P),M=(_,D,T,F=ma.maxLength,N=ma.minLength)=>{const k=_?D:T;P[p]={type:_?F:N,message:k,ref:i,...I(_?F:N,k)}};if(o?!Array.isArray(g)||!g.length:l&&(!S&&(R||br(g))||Ca(g)&&!g||E&&!Az(a).isValid||C&&!Lz(a).isValid)){const{value:_,message:D}=ig(l)?{value:!!l,message:l}:Du(l);if(_&&(P[p]={type:ma.required,message:D,ref:x,...I(ma.required,D)},!n))return w(D),P}if(!R&&(!br(c)||!br(d))){let _,D;const T=Du(d),F=Du(c);if(!br(g)&&!isNaN(g)){const N=i.valueAsNumber||g&&+g;br(T.value)||(_=N>T.value),br(F.value)||(D=N<F.value)}else{const N=i.valueAsDate||new Date(g),k=B=>new Date(new Date().toDateString()+" "+B),L=i.type=="time",j=i.type=="week";Ai(T.value)&&g&&(_=L?k(g)>k(T.value):j?g>T.value:N>new Date(T.value)),Ai(F.value)&&g&&(D=L?k(g)<k(F.value):j?g<F.value:N<new Date(F.value))}if((_||D)&&(M(!!_,T.message,F.message,ma.max,ma.min),!n))return w(P[p].message),P}if((s||u)&&!R&&(Ai(g)||o&&Array.isArray(g))){const _=Du(s),D=Du(u),T=!br(_.value)&&g.length>+_.value,F=!br(D.value)&&g.length<+D.value;if((T||F)&&(M(T,_.message,D.message),!n))return w(P[p].message),P}if(f&&!R&&Ai(g)){const{value:_,message:D}=Du(f);if(vv(_)&&!g.match(_)&&(P[p]={type:ma.pattern,message:D,ref:i,...I(ma.pattern,D)},!n))return w(D),P}if(m){if(Tl(m)){const _=await m(g,t),D=zR(_,x);if(D&&(P[p]={...D,...I(ma.validate,D.message)},!n))return w(D.message),P}else if(On(m)){let _={};for(const D in m){if(!So(_)&&!n)break;const T=zR(await m[D](g,t),x,D);T&&(_={...T,...I(D,T.message)},w(T.message),n&&(P[p]=_))}if(!So(_)&&(P[p]={ref:x,..._},!n))return P}}return w(!0),P};function d1e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=gn(e)?r++:e[t[r++]];return e}function f1e(e){for(const t in e)if(e.hasOwnProperty(t)&&!gn(e[t]))return!1;return!0}function zn(e,t){const n=Array.isArray(t)?t:bP(t)?[t]:Fz(t),r=n.length===1?e:d1e(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(On(r)&&So(r)||Array.isArray(r)&&f1e(r))&&zn(e,n.slice(0,-1)),e}var d1=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},yv=e=>br(e)||!_z(e);function Fs(e,t){if(yv(e)||yv(t))return e===t;if(fc(e)&&fc(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const a=t[o];if(fc(i)&&fc(a)||On(i)&&On(a)||Array.isArray(i)&&Array.isArray(a)?!Fs(i,a):i!==a)return!1}}return!0}var Dz=e=>e.type==="select-multiple",p1e=e=>wP(e)||lm(e),f1=e=>gv(e)&&e.isConnected,m1e=e=>On(e)&&Object.values(e).some(t=>t),Nz=e=>{for(const t in e)if(Tl(e[t]))return!0;return!1};function bv(e,t={}){const n=Array.isArray(e);if(On(e)||n)for(const r in e)Array.isArray(e[r])||On(e[r])&&!Nz(e[r])?(t[r]=Array.isArray(e[r])?[]:{},bv(e[r],t[r])):br(e[r])||(t[r]=!0);return t}function zz(e,t,n){const r=Array.isArray(e);if(On(e)||r)for(const o in e)Array.isArray(e[o])||On(e[o])&&!Nz(e[o])?gn(t)||yv(n[o])?n[o]=Array.isArray(e[o])?bv(e[o],[]):{...bv(e[o])}:zz(e[o],br(t)?{}:t[o],n[o]):n[o]=!Fs(e[o],t[o]);return n}var mh=(e,t)=>zz(e,t,bv(t)),jz=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>gn(e)?e:t?e===""?NaN:e&&+e:n&&Ai(e)?new Date(e):r?r(e):e;function p1(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return xP(t)?t.files:wP(t)?Lz(e.refs).value:Dz(t)?[...t.selectedOptions].map(({value:n})=>n):lm(t)?Az(e.refs).value:jz(gn(t.value)?e.ref.value:t.value,e)}var h1e=(e,t,n,r)=>{const o={};for(const i of e){const a=Ue(t,i);a&&qt(o,i,a._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Zd=e=>gn(e)?e:vv(e)?e.source:On(e)?vv(e.value)?e.value.source:e.value:e,g1e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function BR(e,t,n){const r=Ue(e,n);if(r||bP(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),a=Ue(t,i),l=Ue(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};o.pop()}return{name:n}}var v1e=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,y1e=(e,t)=>!sm(Ue(e,t)).length&&zn(e,t);const b1e={mode:si.onSubmit,reValidateMode:si.onChange,shouldFocusError:!0};function x1e(e={}){let t={...b1e,...e},n={submitCount:0,isDirty:!1,isLoading:Tl(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=On(t.defaultValues)||On(t.values)?go(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:go(o),a={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},s,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:d1(),array:d1(),state:d1()},f=FR(t.mode),m=FR(t.reValidateMode),p=t.criteriaMode===si.all,h=U=>Q=>{clearTimeout(u),u=setTimeout(U,Q)},y=async U=>{if(c.isValid||U){const Q=t.resolver?So((await S()).errors):await I(r,!0);Q!==n.isValid&&d.state.next({isValid:Q})}},b=(U,Q)=>{(c.isValidating||c.validatingFields)&&(Q.forEach(Z=>{qt(n.validatingFields,Z,U)}),n.isValidating=m1e(n.validatingFields),d.state.next({validatingFields:n.validatingFields,isValidating:n.isValidating}))},g=(U,Q=[],Z,ae,te=!0,K=!0)=>{if(ae&&Z){if(a.action=!0,K&&Array.isArray(Ue(r,U))){const ee=Z(Ue(r,U),ae.argA,ae.argB);te&&qt(r,U,ee)}if(K&&Array.isArray(Ue(n.errors,U))){const ee=Z(Ue(n.errors,U),ae.argA,ae.argB);te&&qt(n.errors,U,ee),y1e(n.errors,U)}if(c.touchedFields&&K&&Array.isArray(Ue(n.touchedFields,U))){const ee=Z(Ue(n.touchedFields,U),ae.argA,ae.argB);te&&qt(n.touchedFields,U,ee)}c.dirtyFields&&(n.dirtyFields=mh(o,i)),d.state.next({name:U,isDirty:_(U,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else qt(i,U,Q)},x=(U,Q)=>{qt(n.errors,U,Q),d.state.next({errors:n.errors})},w=U=>{n.errors=U,d.state.next({errors:n.errors,isValid:!1})},P=(U,Q,Z,ae)=>{const te=Ue(r,U);if(te){const K=Ue(i,U,gn(Z)?Ue(o,U):Z);gn(K)||ae&&ae.defaultChecked||Q?qt(i,U,Q?K:p1(te._f)):F(U,K),a.mount&&y()}},C=(U,Q,Z,ae,te)=>{let K=!1,ee=!1;const se={name:U},Ce=!!(Ue(r,U)&&Ue(r,U)._f.disabled);if(!Z||ae){c.isDirty&&(ee=n.isDirty,n.isDirty=se.isDirty=_(),K=ee!==se.isDirty);const _e=Ce||Fs(Ue(o,U),Q);ee=!!(!Ce&&Ue(n.dirtyFields,U)),_e||Ce?zn(n.dirtyFields,U):qt(n.dirtyFields,U,!0),se.dirtyFields=n.dirtyFields,K=K||c.dirtyFields&&ee!==!_e}if(Z){const _e=Ue(n.touchedFields,U);_e||(qt(n.touchedFields,U,Z),se.touchedFields=n.touchedFields,K=K||c.touchedFields&&_e!==Z)}return K&&te&&d.state.next(se),K?se:{}},E=(U,Q,Z,ae)=>{const te=Ue(n.errors,U),K=c.isValid&&Ca(Q)&&n.isValid!==Q;if(e.delayError&&Z?(s=h(()=>x(U,Z)),s(e.delayError)):(clearTimeout(u),s=null,Z?qt(n.errors,U,Z):zn(n.errors,U)),(Z?!Fs(te,Z):te)||!So(ae)||K){const ee={...ae,...K&&Ca(Q)?{isValid:Q}:{},errors:n.errors,name:U};n={...n,...ee},d.state.next(ee)}b(!1,Object.keys(n.validatingFields).filter(ee=>ee===U))},S=async U=>t.resolver(i,t.context,h1e(U||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation)),R=async U=>{const{errors:Q}=await S(U);if(U)for(const Z of U){const ae=Ue(Q,Z);ae?qt(n.errors,Z,ae):zn(n.errors,Z)}else n.errors=Q;return Q},I=async(U,Q,Z={valid:!0})=>{for(const ae in U){const te=U[ae];if(te){const{_f:K,...ee}=te;if(K){const se=l.array.has(K.name),Ce=await jR(te,i,p,t.shouldUseNativeValidation&&!Q,se);if(Ce[K.name]&&(Z.valid=!1,Q))break;!Q&&(Ue(Ce,K.name)?se?c1e(n.errors,Ce,K.name):qt(n.errors,K.name,Ce[K.name]):zn(n.errors,K.name))}ee&&await I(ee,Q,Z)}}return Z.valid},M=()=>{for(const U of l.unMount){const Q=Ue(r,U);Q&&(Q._f.refs?Q._f.refs.every(Z=>!f1(Z)):!f1(Q._f.ref))&&Y(U)}l.unMount=new Set},_=(U,Q)=>(U&&Q&&qt(i,U,Q),!Fs(A(),o)),D=(U,Q,Z)=>s1e(U,l,{...a.mount?i:gn(Q)?o:Ai(U)?{[U]:Q}:Q},Z,Q),T=U=>sm(Ue(a.mount?i:o,U,e.shouldUnregister?Ue(o,U,[]):[])),F=(U,Q,Z={})=>{const ae=Ue(r,U);let te=Q;if(ae){const K=ae._f;K&&(!K.disabled&&qt(i,U,jz(Q,K)),te=gv(K.ref)&&br(Q)?"":Q,Dz(K.ref)?[...K.ref.options].forEach(ee=>ee.selected=te.includes(ee.value)):K.refs?lm(K.ref)?K.refs.length>1?K.refs.forEach(ee=>(!ee.defaultChecked||!ee.disabled)&&(ee.checked=Array.isArray(te)?!!te.find(se=>se===ee.value):te===ee.value)):K.refs[0]&&(K.refs[0].checked=!!te):K.refs.forEach(ee=>ee.checked=ee.value===te):xP(K.ref)?K.ref.value="":(K.ref.value=te,K.ref.type||d.values.next({name:U,values:{...i}})))}(Z.shouldDirty||Z.shouldTouch)&&C(U,te,Z.shouldTouch,Z.shouldDirty,!0),Z.shouldValidate&&B(U)},N=(U,Q,Z)=>{for(const ae in Q){const te=Q[ae],K=`${U}.${ae}`,ee=Ue(r,K);(l.array.has(U)||!yv(te)||ee&&!ee._f)&&!fc(te)?N(K,te,Z):F(K,te,Z)}},k=(U,Q,Z={})=>{const ae=Ue(r,U),te=l.array.has(U),K=go(Q);qt(i,U,K),te?(d.array.next({name:U,values:{...i}}),(c.isDirty||c.dirtyFields)&&Z.shouldDirty&&d.state.next({name:U,dirtyFields:mh(o,i),isDirty:_(U,K)})):ae&&!ae._f&&!br(K)?N(U,K,Z):F(U,K,Z),AR(U,l)&&d.state.next({...n}),d.values.next({name:a.mount?U:void 0,values:{...i}})},L=async U=>{const Q=U.target;let Z=Q.name,ae=!0;const te=Ue(r,Z),K=()=>Q.type?p1(te._f):Jbe(U),ee=se=>{ae=Number.isNaN(se)||se===Ue(i,Z,se)};if(te){let se,Ce;const _e=K(),$e=U.type===_R.BLUR||U.type===_R.FOCUS_OUT,X=!g1e(te._f)&&!t.resolver&&!Ue(n.errors,Z)&&!te._f.deps||v1e($e,Ue(n.touchedFields,Z),n.isSubmitted,m,f),Ee=AR(Z,l,$e);qt(i,Z,_e),$e?(te._f.onBlur&&te._f.onBlur(U),s&&s(0)):te._f.onChange&&te._f.onChange(U);const Le=C(Z,_e,$e,!1),Te=!So(Le)||Ee;if(!$e&&d.values.next({name:Z,type:U.type,values:{...i}}),X)return c.isValid&&y(),Te&&d.state.next({name:Z,...Ee?{}:Le});if(!$e&&Ee&&d.state.next({...n}),b(!0,[Z]),t.resolver){const{errors:Pe}=await S([Z]);if(ee(_e),ae){const Re=BR(n.errors,r,Z),He=BR(Pe,r,Re.name||Z);se=He.error,Z=He.name,Ce=So(Pe)}}else se=(await jR(te,i,p,t.shouldUseNativeValidation))[Z],ee(_e),ae&&(se?Ce=!1:c.isValid&&(Ce=await I(r,!0)));ae&&(te._f.deps&&B(te._f.deps),E(Z,Ce,se,Le))}},j=(U,Q)=>{if(Ue(n.errors,Q)&&U.focus)return U.focus(),1},B=async(U,Q={})=>{let Z,ae;const te=c1(U);if(b(!0,te),t.resolver){const K=await R(gn(U)?U:te);Z=So(K),ae=U?!te.some(ee=>Ue(K,ee)):Z}else U?(ae=(await Promise.all(te.map(async K=>{const ee=Ue(r,K);return await I(ee&&ee._f?{[K]:ee}:ee)}))).every(Boolean),!(!ae&&!n.isValid)&&y()):ae=Z=await I(r);return d.state.next({...!Ai(U)||c.isValid&&Z!==n.isValid?{}:{name:U},...t.resolver||!U?{isValid:Z}:{},errors:n.errors,isValidating:!1}),Q.shouldFocus&&!ae&&jf(r,j,U?te:l.mount),ae},A=U=>{const Q={...o,...a.mount?i:{}};return gn(U)?Q:Ai(U)?Ue(Q,U):U.map(Z=>Ue(Q,Z))},H=(U,Q)=>({invalid:!!Ue((Q||n).errors,U),isDirty:!!Ue((Q||n).dirtyFields,U),isTouched:!!Ue((Q||n).touchedFields,U),isValidating:!!Ue((Q||n).validatingFields,U),error:Ue((Q||n).errors,U)}),q=U=>{U&&c1(U).forEach(Q=>zn(n.errors,Q)),d.state.next({errors:U?n.errors:{}})},V=(U,Q,Z)=>{const ae=(Ue(r,U,{_f:{}})._f||{}).ref;qt(n.errors,U,{...Q,ref:ae}),d.state.next({name:U,errors:n.errors,isValid:!1}),Z&&Z.shouldFocus&&ae&&ae.focus&&ae.focus()},G=(U,Q)=>Tl(U)?d.values.subscribe({next:Z=>U(D(void 0,Q),Z)}):D(U,Q,!0),Y=(U,Q={})=>{for(const Z of U?c1(U):l.mount)l.mount.delete(Z),l.array.delete(Z),Q.keepValue||(zn(r,Z),zn(i,Z)),!Q.keepError&&zn(n.errors,Z),!Q.keepDirty&&zn(n.dirtyFields,Z),!Q.keepTouched&&zn(n.touchedFields,Z),!Q.keepIsValidating&&zn(n.validatingFields,Z),!t.shouldUnregister&&!Q.keepDefaultValue&&zn(o,Z);d.values.next({values:{...i}}),d.state.next({...n,...Q.keepDirty?{isDirty:_()}:{}}),!Q.keepIsValid&&y()},re=({disabled:U,name:Q,field:Z,fields:ae,value:te})=>{if(Ca(U)){const K=U?void 0:gn(te)?p1(Z?Z._f:Ue(ae,Q)._f):te;qt(i,Q,K),C(Q,K,!1,!1,!0)}},le=(U,Q={})=>{let Z=Ue(r,U);const ae=Ca(Q.disabled);return qt(r,U,{...Z||{},_f:{...Z&&Z._f?Z._f:{ref:{name:U}},name:U,mount:!0,...Q}}),l.mount.add(U),Z?re({field:Z,disabled:Q.disabled,name:U,value:Q.value}):P(U,!0,Q.value),{...ae?{disabled:Q.disabled}:{},...t.progressive?{required:!!Q.required,min:Zd(Q.min),max:Zd(Q.max),minLength:Zd(Q.minLength),maxLength:Zd(Q.maxLength),pattern:Zd(Q.pattern)}:{},name:U,onChange:L,onBlur:L,ref:te=>{if(te){le(U,Q),Z=Ue(r,U);const K=gn(te.value)&&te.querySelectorAll&&te.querySelectorAll("input,select,textarea")[0]||te,ee=p1e(K),se=Z._f.refs||[];if(ee?se.find(Ce=>Ce===K):K===Z._f.ref)return;qt(r,U,{_f:{...Z._f,...ee?{refs:[...se.filter(f1),K,...Array.isArray(Ue(o,U))?[{}]:[]],ref:{type:K.type,name:U}}:{ref:K}}}),P(U,!1,void 0,K)}else Z=Ue(r,U,{}),Z._f&&(Z._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(t1e(l.array,U)&&a.action)&&l.unMount.add(U)}}},J=()=>t.shouldFocusError&&jf(r,j,l.mount),oe=U=>{Ca(U)&&(d.state.next({disabled:U}),jf(r,(Q,Z)=>{let ae=U;const te=Ue(r,Z);te&&Ca(te._f.disabled)&&(ae||(ae=te._f.disabled)),Q.disabled=ae},0,!1))},ue=(U,Q)=>async Z=>{let ae;Z&&(Z.preventDefault&&Z.preventDefault(),Z.persist&&Z.persist());let te=go(i);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:K,values:ee}=await S();n.errors=K,te=ee}else await I(r);if(zn(n.errors,"root"),So(n.errors)){d.state.next({errors:{}});try{await U(te,Z)}catch(K){ae=K}}else Q&&await Q({...n.errors},Z),J(),setTimeout(J);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:So(n.errors)&&!ae,submitCount:n.submitCount+1,errors:n.errors}),ae)throw ae},ge=(U,Q={})=>{Ue(r,U)&&(gn(Q.defaultValue)?k(U,go(Ue(o,U))):(k(U,Q.defaultValue),qt(o,U,go(Q.defaultValue))),Q.keepTouched||zn(n.touchedFields,U),Q.keepDirty||(zn(n.dirtyFields,U),n.isDirty=Q.defaultValue?_(U,go(Ue(o,U))):_()),Q.keepError||(zn(n.errors,U),c.isValid&&y()),d.state.next({...n}))},me=(U,Q={})=>{const Z=U?go(U):o,ae=go(Z),te=So(U),K=te?o:ae;if(Q.keepDefaultValues||(o=Z),!Q.keepValues){if(Q.keepDirtyValues)for(const ee of l.mount)Ue(n.dirtyFields,ee)?qt(K,ee,Ue(i,ee)):k(ee,Ue(K,ee));else{if(yP&&gn(U))for(const ee of l.mount){const se=Ue(r,ee);if(se&&se._f){const Ce=Array.isArray(se._f.refs)?se._f.refs[0]:se._f.ref;if(gv(Ce)){const _e=Ce.closest("form");if(_e){_e.reset();break}}}}r={}}i=e.shouldUnregister?Q.keepDefaultValues?go(o):{}:go(K),d.array.next({values:{...K}}),d.values.next({values:{...K}})}l={mount:Q.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!c.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,a.watch=!!e.shouldUnregister,d.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:te?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!Fs(U,o)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:te?[]:Q.keepDirtyValues?Q.keepDefaultValues&&i?mh(o,i):n.dirtyFields:Q.keepDefaultValues&&U?mh(o,U):{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ke=(U,Q)=>me(Tl(U)?U(i):U,Q);return{control:{register:le,unregister:Y,getFieldState:H,handleSubmit:ue,setError:V,_executeSchema:S,_getWatch:D,_getDirty:_,_updateValid:y,_removeUnmounted:M,_updateFieldArray:g,_updateDisabledField:re,_getFieldArray:T,_reset:me,_resetDefaultValues:()=>Tl(t.defaultValues)&&t.defaultValues().then(U=>{ke(U,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:U=>{n={...n,...U}},_disableForm:oe,_subjects:d,_proxyFormState:c,_setErrors:w,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state(U){a=U},get _defaultValues(){return o},get _names(){return l},set _names(U){l=U},get _formState(){return n},set _formState(U){n=U},get _options(){return t},set _options(U){t={...t,...U}}},trigger:B,register:le,handleSubmit:ue,watch:G,setValue:k,getValues:A,reset:ke,resetField:ge,clearErrors:q,unregister:Y,setError:V,setFocus:(U,Q={})=>{const Z=Ue(r,U),ae=Z&&Z._f;if(ae){const te=ae.refs?ae.refs[0]:ae.ref;te.focus&&(te.focus(),Q.shouldSelect&&te.select())}},getFieldState:H}}function w1e(e={}){const t=$.useRef(),n=$.useRef(),[r,o]=$.useState({isDirty:!1,isValidating:!1,isLoading:Tl(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Tl(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...x1e(e),formState:r});const i=t.current.control;return i._options=e,l1e({subject:i._subjects.state,next:a=>{a1e(a,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),$.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),$.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==r.isDirty&&i._subjects.state.next({isDirty:a})}},[i,r.isDirty]),$.useEffect(()=>{e.values&&!Fs(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(a=>({...a}))):i._resetDefaultValues()},[e.values,i]),$.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),$.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),$.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=i1e(r,i),t.current}var C1e=Object.defineProperty,Wl=(e,t)=>C1e(e,"name",{value:t,configurable:!0}),Za=Wl(({refineCoreProps:e,warnWhenUnsavedChanges:t,disableServerSideValidation:n=!1,...r}={})=>{let{options:o}=un(),i=(o==null?void 0:o.disableServerSideValidation)||n,a=Qe(),{warnWhenUnsavedChanges:l,setWarnWhen:s}=Qa(),u=t??l,c=w1e({...r}),{watch:d,setValue:f,getValues:m,handleSubmit:p,setError:h}=c,y=Aq({...e,onMutationError:(E,S,R)=>{var I,M;if(i){(I=e==null?void 0:e.onMutationError)==null||I.call(e,E,S,R);return}let _=E==null?void 0:E.errors;for(let D in _){if(!Object.keys(Wg(S)).includes(D))continue;let T=_[D],F="";Array.isArray(T)&&(F=T.join(" ")),typeof T=="string"&&(F=T),typeof T=="boolean"&&T&&(F="Field is not valid."),typeof T=="object"&&"key"in T&&(F=a(T.key,T.message)),h(D,{message:F})}(M=e==null?void 0:e.onMutationError)==null||M.call(e,E,S,R)}}),{queryResult:b,onFinish:g,formLoading:x,onFinishAutoSave:w}=y;v.useEffect(()=>{var E;let S=(E=b==null?void 0:b.data)==null?void 0:E.data;S&&Object.keys(Wg(m())).forEach(R=>{let I=Zbe(S,R),M=Vg(S,R);I&&f(R,M)})},[b==null?void 0:b.data,f,m]),v.useEffect(()=>{let E=d((S,{type:R})=>{R==="change"&&P(S)});return()=>E.unsubscribe()},[d]);let P=Wl(E=>{var S;if(u&&s(!0),e!=null&&e.autoSave){s(!1);let R=(S=e.autoSave)==null?void 0:S.onFinish;return w(R?R(E):E)}return E},"onValuesChange"),C=Wl((E,S)=>async R=>(s(!1),p(E,S)(R)),"handleSubmit");return{...c,handleSubmit:C,refineCore:y,saveButtonProps:{disabled:x,onClick:E=>{C(g,()=>!1)(E)}}}},"useForm");Wl(({stepsProps:e,...t}={})=>{let{defaultStep:n=0,isBackValidate:r=!1}=e??{},[o,i]=v.useState(n),a=Za({...t}),{trigger:l,getValues:s,setValue:u,formState:{dirtyFields:c},refineCore:{queryResult:d}}=a;v.useEffect(()=>{var m;let p=(m=d==null?void 0:d.data)==null?void 0:m.data;if(!p)return;let h=Object.keys(s());Object.entries(p).forEach(([y,b])=>{let g=y;h.includes(g)&&(c[g]||u(g,b))})},[d==null?void 0:d.data,o,u,s]);let f=Wl(m=>{let p=m;m<0&&(p=0),i(p)},"go");return{...a,steps:{currentStep:o,gotoStep:Wl(async m=>{if(m!==o){if(m<o&&!r){f(m);return}await l()&&f(m)}},"gotoStep")}}},"useStepsForm");Wl(({modalProps:e,refineCoreProps:t,syncWithLocation:n,...r}={})=>{var o,i;let a=ta(),[l,s]=$.useState(!1),u=Qe(),{resource:c,action:d}=t??{},{resource:f,action:m,identifier:p}=Je(c),h=Vo(),y=pr(),b=ea(),g=d??m??"",x=!(typeof n=="object"&&(n==null?void 0:n.syncId)===!1),w=typeof n=="object"&&"key"in n?n.key:f&&g&&n?`modal-${p}-${g}`:void 0,{defaultVisible:P=!1,autoSubmitClose:C=!0,autoResetForm:E=!0}=e??{},S=Za({refineCoreProps:{...t,meta:{...w?{[w]:void 0}:{},...t==null?void 0:t.meta}},...r}),{reset:R,refineCore:{onFinish:I,id:M,setId:_,autoSaveProps:D},saveButtonProps:T,handleSubmit:F}=S,{visible:N,show:k,close:L}=Nq({defaultVisible:P});$.useEffect(()=>{var G,Y,re,le;if(l===!1&&w){let J=(Y=(G=h==null?void 0:h.params)==null?void 0:G[w])==null?void 0:Y.open;if(typeof J=="boolean"?J&&k():typeof J=="string"&&J==="true"&&k(),x){let oe=(le=(re=h==null?void 0:h.params)==null?void 0:re[w])==null?void 0:le.id;oe&&(_==null||_(oe))}s(!0)}},[w,h,x,_]),$.useEffect(()=>{var G;l===!0&&(N&&w?y({query:{[w]:{...(G=h==null?void 0:h.params)==null?void 0:G[w],open:!0,...x&&M&&{id:M}}},options:{keepQuery:!0},type:"replace"}):w&&!N&&y({query:{[w]:void 0},options:{keepQuery:!0},type:"replace"}))},[M,N,k,w,x]);let j=Wl(async G=>{await I(G),C&&L(),E&&R()},"submit"),{warnWhen:B,setWarnWhen:A}=Qa(),H=v.useCallback(()=>{var G;if(D.status==="success"&&(G=t==null?void 0:t.autoSave)!=null&&G.invalidateOnClose&&a({id:M,invalidates:t.invalidates||["list","many","detail"],dataProviderName:t.dataProviderName,resource:p}),B)if(window.confirm(u("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes.")))A(!1);else return;_==null||_(void 0),L()},[B,D.status]),q=v.useCallback(G=>{typeof G<"u"&&(_==null||_(G)),(!(g==="edit"||g==="clone")||typeof G<"u"||typeof M<"u")&&k()},[M]),V=u(`${p}.titles.${d}`,void 0,`${b(`${d} ${((o=f==null?void 0:f.meta)==null?void 0:o.label)??((i=f==null?void 0:f.options)==null?void 0:i.label)??(f==null?void 0:f.label)??p}`,"singular")}`);return{modal:{submit:j,close:H,show:q,visible:N,title:V},...S,saveButtonProps:{...T,onClick:G=>F(j)(G)}}},"useModalForm");const S1e=_ee({createStyledComponent:fe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${pe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>qe({props:e,name:"MuiContainer"})}),um=S1e;function E1e(e){return We("MuiCard",e)}Ge("MuiCard",["root"]);const P1e=["className","raised"],k1e=e=>{const{classes:t}=e;return Oe({root:["root"]},E1e,t)},$1e=fe(Ko,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),I1e=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=ce(r,P1e),l=O({},r,{raised:i}),s=k1e(l);return z.jsx($1e,O({className:ve(s.root,o),elevation:i?8:void 0,ref:n,ownerState:l},a))}),Ja=I1e;function O1e(e){return We("MuiCardContent",e)}Ge("MuiCardContent",["root"]);const M1e=["className","component"],R1e=e=>{const{classes:t}=e;return Oe({root:["root"]},O1e,t)},T1e=fe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),_1e=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,a=ce(r,M1e),l=O({},r,{component:i}),s=R1e(l);return z.jsx(T1e,O({as:i,className:ve(s.root,o),ownerState:l,ref:n},a))}),el=_1e,F1e=v.createContext(),HR=F1e;function A1e(e){return We("MuiGrid",e)}const L1e=[0,1,2,3,4,5,6,7,8,9,10],D1e=["column-reverse","column","row-reverse","row"],N1e=["nowrap","wrap-reverse","wrap"],Jd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],z1e=Ge("MuiGrid",["root","container","item","zeroMinWidth",...L1e.map(e=>`spacing-xs-${e}`),...D1e.map(e=>`direction-xs-${e}`),...N1e.map(e=>`wrap-xs-${e}`),...Jd.map(e=>`grid-xs-${e}`),...Jd.map(e=>`grid-sm-${e}`),...Jd.map(e=>`grid-md-${e}`),...Jd.map(e=>`grid-lg-${e}`),...Jd.map(e=>`grid-xl-${e}`)]),Sp=z1e,j1e=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Pc(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function B1e({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=zs({values:t.columns,breakpoints:e.breakpoints.values}),l=typeof a=="object"?a[o]:a;if(l==null)return r;const s=`${Math.round(n/l*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${s} + ${Pc(c)})`;u={flexBasis:d,maxWidth:d}}}i=O({flexBasis:s,flexGrow:0,maxWidth:s},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function H1e({theme:e,ownerState:t}){const n=zs({values:t.direction,breakpoints:e.breakpoints.values});return Br({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Sp.item}`]={maxWidth:"none"}),o})}function Bz({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function U1e({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=zs({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=Bz({breakpoints:e.breakpoints.values,values:i})),o=Br({theme:e},i,(l,s)=>{var u;const c=e.spacing(l);return c!=="0px"?{marginTop:`-${Pc(c)}`,[`& > .${Sp.item}`]:{paddingTop:Pc(c)}}:(u=a)!=null&&u.includes(s)?{}:{marginTop:0,[`& > .${Sp.item}`]:{paddingTop:0}}})}return o}function V1e({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=zs({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=Bz({breakpoints:e.breakpoints.values,values:i})),o=Br({theme:e},i,(l,s)=>{var u;const c=e.spacing(l);return c!=="0px"?{width:`calc(100% + ${Pc(c)})`,marginLeft:`-${Pc(c)}`,[`& > .${Sp.item}`]:{paddingLeft:Pc(c)}}:(u=a)!=null&&u.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${Sp.item}`]:{paddingLeft:0}}})}return o}function W1e(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const G1e=fe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:l,zeroMinWidth:s,breakpoints:u}=n;let c=[];r&&(c=W1e(a,u,t));const d=[];return u.forEach(f=>{const m=n[f];m&&d.push(t[`grid-${f}-${String(m)}`])}),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...d]}})(({ownerState:e})=>O({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),H1e,U1e,V1e,B1e);function q1e(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const K1e=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:l,breakpoints:s}=e;let u=[];n&&(u=q1e(i,s));const c=[];s.forEach(f=>{const m=e[f];m&&c.push(`grid-${f}-${String(m)}`)});const d={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Oe(d,A1e,t)},Q1e=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiGrid"}),{breakpoints:o}=Ur(),i=Yp(r),{className:a,columns:l,columnSpacing:s,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:m,spacing:p=0,wrap:h="wrap",zeroMinWidth:y=!1}=i,b=ce(i,j1e),g=m||p,x=s||p,w=v.useContext(HR),P=c?l||12:w,C={},E=O({},b);o.keys.forEach(I=>{b[I]!=null&&(C[I]=b[I],delete E[I])});const S=O({},i,{columns:P,container:c,direction:d,item:f,rowSpacing:g,columnSpacing:x,wrap:h,zeroMinWidth:y,spacing:p},C,{breakpoints:o.keys}),R=K1e(S);return z.jsx(HR.Provider,{value:P,children:z.jsx(G1e,O({ownerState:S,className:ve(R.root,a),as:u,ref:n},E))})}),kc=Q1e;var CP={},Y1e=Ot;Object.defineProperty(CP,"__esModule",{value:!0});var Hz=CP.default=void 0,X1e=Y1e(Dt()),Z1e=z;Hz=CP.default=(0,X1e.default)((0,Z1e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");function J1e(e){return We("MuiCardHeader",e)}const exe=Ge("MuiCardHeader",["root","avatar","action","content","title","subheader"]),UR=exe,txe=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],nxe=e=>{const{classes:t}=e;return Oe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},J1e,t)},rxe=fe("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>O({[`& .${UR.title}`]:t.title,[`& .${UR.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),oxe=fe("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),ixe=fe("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),axe=fe("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),lxe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,className:a,component:l="div",disableTypography:s=!1,subheader:u,subheaderTypographyProps:c,title:d,titleTypographyProps:f}=r,m=ce(r,txe),p=O({},r,{component:l,disableTypography:s}),h=nxe(p);let y=d;y!=null&&y.type!==Xe&&!s&&(y=z.jsx(Xe,O({variant:i?"body2":"h5",className:h.title,component:"span",display:"block"},f,{children:y})));let b=u;return b!=null&&b.type!==Xe&&!s&&(b=z.jsx(Xe,O({variant:i?"body2":"body1",className:h.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:b}))),z.jsxs(rxe,O({className:ve(h.root,a),as:l,ref:n,ownerState:p},m,{children:[i&&z.jsx(oxe,{className:h.avatar,ownerState:p,children:i}),z.jsxs(axe,{className:h.content,ownerState:p,children:[y,b]}),o&&z.jsx(ixe,{className:h.action,ownerState:p,children:o})]}))}),y0=lxe;function sxe(e){return We("MuiCardActions",e)}Ge("MuiCardActions",["root","spacing"]);const uxe=["disableSpacing","className"],cxe=e=>{const{classes:t,disableSpacing:n}=e;return Oe({root:["root",!n&&"spacing"]},sxe,t)},dxe=fe("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>O({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),fxe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i}=r,a=ce(r,uxe),l=O({},r,{disableSpacing:o}),s=cxe(l);return z.jsx(dxe,O({className:ve(s.root,i),ownerState:l,ref:n},a))}),SP=fxe;var EP={},pxe=Ot;Object.defineProperty(EP,"__esModule",{value:!0});var b0=EP.default=void 0,mxe=pxe(Dt()),hxe=z;b0=EP.default=(0,mxe.default)((0,hxe.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack");var x0={Title:"refine-pageHeader-title",SubTitle:"refine-pageHeader-subTitle"},oa={CloneButton:"refine-clone-button",DeleteButton:"refine-delete-button",EditButton:"refine-edit-button",SaveButton:"refine-save-button",CreateButton:"refine-create-button",ImportButton:"refine-import-button",ExportButton:"refine-export-button",ListButton:"refine-list-button",RefreshButton:"refine-refresh-button",ShowButton:"refine-show-button"},PP={},gxe=Ot;Object.defineProperty(PP,"__esModule",{value:!0});var Ep=PP.default=void 0,vxe=gxe(Dt()),yxe=z;Ep=PP.default=(0,vxe.default)((0,yxe.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");var kP={},bxe=Ot;Object.defineProperty(kP,"__esModule",{value:!0});var Ww=kP.default=void 0,xxe=bxe(Dt()),wxe=z;Ww=kP.default=(0,xxe.default)((0,wxe.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");function Cxe(e){return We("MuiDialog",e)}const Sxe=Ge("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),m1=Sxe,Exe=v.createContext({}),Uz=Exe,Pxe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],kxe=fe(LN,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),$xe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${pe(n)}`],paper:["paper",`paperScroll${pe(n)}`,`paperWidth${pe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Oe(a,Cxe,t)},Ixe=fe(wE,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Oxe=fe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${pe(n.scroll)}`]]}})(({ownerState:e})=>O({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"}})),Mxe=fe(Ko,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${pe(n.scroll)}`],t[`paperWidth${pe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>O({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)`,[`&.${m1.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}`,[`&.${m1.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,[`&.${m1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Rxe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialog"}),o=Ur(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,BackdropComponent:s,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:f=!1,fullScreen:m=!1,fullWidth:p=!1,maxWidth:h="sm",onBackdropClick:y,onClose:b,open:g,PaperComponent:x=Ko,PaperProps:w={},scroll:P="paper",TransitionComponent:C=AN,transitionDuration:E=i,TransitionProps:S}=r,R=ce(r,Pxe),I=O({},r,{disableEscapeKeyDown:f,fullScreen:m,fullWidth:p,maxWidth:h,scroll:P}),M=$xe(I),_=v.useRef(),D=k=>{_.current=k.target===k.currentTarget},T=k=>{_.current&&(_.current=null,y&&y(k),b&&b(k,"backdropClick"))},F=Rt(l),N=v.useMemo(()=>({titleId:F}),[F]);return z.jsx(Ixe,O({className:ve(M.root,d),closeAfterTransition:!0,components:{Backdrop:kxe},componentsProps:{backdrop:O({transitionDuration:E,as:s},u)},disableEscapeKeyDown:f,onClose:b,open:g,ref:n,onClick:T,ownerState:I},R,{children:z.jsx(C,O({appear:!0,in:g,timeout:E,role:"presentation"},S,{children:z.jsx(Oxe,{className:ve(M.container),onMouseDown:D,ownerState:I,children:z.jsx(Mxe,O({as:x,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":F},w,{className:ve(M.paper,w.className),ownerState:I,children:z.jsx(Uz.Provider,{value:N,children:c})}))})}))}))}),Txe=Rxe;function _xe(e){return We("MuiDialogActions",e)}Ge("MuiDialogActions",["root","spacing"]);const Fxe=["className","disableSpacing"],Axe=e=>{const{classes:t,disableSpacing:n}=e;return Oe({root:["root",!n&&"spacing"]},_xe,t)},Lxe=fe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>O({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Dxe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=ce(r,Fxe),l=O({},r,{disableSpacing:i}),s=Axe(l);return z.jsx(Lxe,O({className:ve(s.root,o),ownerState:l,ref:n},a))}),Nxe=Dxe;function zxe(e){return We("MuiDialogTitle",e)}Ge("MuiDialogTitle",["root"]);const jxe=["className","id"],Bxe=e=>{const{classes:t}=e;return Oe({root:["root"]},zxe,t)},Hxe=fe(Xe,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Uxe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=ce(r,jxe),l=r,s=Bxe(l),{titleId:u=i}=v.useContext(Uz);return z.jsx(Hxe,O({component:"h2",className:ve(s.root,o),ownerState:l,ref:n,variant:"h6",id:i??u},a))}),Vxe=Uxe;function Wxe(e){return We("MuiLoadingButton",e)}const Gxe=Ge("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),ha=Gxe,qxe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Kxe=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${pe(n)}`],endIcon:[t&&`endIconLoading${pe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${pe(n)}`]},i=Oe(o,Wxe,r);return O({},r,i)},Qxe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Yxe=fe(mn,{shouldForwardProp:e=>Qxe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${ha.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${ha.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>O({[`& .${ha.startIconLoadingStart}, & .${ha.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${ha.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${ha.startIconLoadingStart}, & .${ha.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${ha.startIconLoadingStart}, & .${ha.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),Xxe=fe("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${pe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>O({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),Zxe=v.forwardRef(function(t,n){const r=v.useContext(e4),o=zy(r,t),i=qe({props:o,name:"MuiLoadingButton"}),{children:a,disabled:l=!1,id:s,loading:u=!1,loadingIndicator:c,loadingPosition:d="center",variant:f="text"}=i,m=ce(i,qxe),p=Rt(s),h=c??z.jsx(dP,{"aria-labelledby":p,color:"inherit",size:16}),y=O({},i,{disabled:l,loading:u,loadingIndicator:h,loadingPosition:d,variant:f}),b=Kxe(y),g=u?z.jsx(Xxe,{className:b.loadingIndicator,ownerState:y,children:h}):null;return z.jsxs(Yxe,O({disabled:l||u,id:p,ref:n},m,{variant:f,classes:b,ownerState:y,children:[y.loadingPosition==="end"?a:g,y.loadingPosition==="end"?g:a]}))}),cm=Zxe;var $P={},Jxe=Ot;Object.defineProperty($P,"__esModule",{value:!0});var Gw=$P.default=void 0,ewe=Jxe(Dt()),twe=z;Gw=$P.default=(0,ewe.default)((0,twe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var IP={},nwe=Ot;Object.defineProperty(IP,"__esModule",{value:!0});var qw=IP.default=void 0,rwe=nwe(Dt()),owe=z;qw=IP.default=(0,rwe.default)((0,owe.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"RefreshOutlined");var OP={},iwe=Ot;Object.defineProperty(OP,"__esModule",{value:!0});var Kw=OP.default=void 0,awe=iwe(Dt()),lwe=z;Kw=OP.default=(0,awe.default)((0,lwe.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"}),"VisibilityOutlined");var MP={},swe=Ot;Object.defineProperty(MP,"__esModule",{value:!0});var Pp=MP.default=void 0,uwe=swe(Dt()),cwe=z;Pp=MP.default=(0,uwe.default)((0,cwe.jsx)("path",{d:"M9 3 5 6.99h3V14h2V6.99h3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99z"}),"ImportExportOutlined");var RP={},dwe=Ot;Object.defineProperty(RP,"__esModule",{value:!0});var Qw=RP.default=void 0,fwe=dwe(Dt()),pwe=z;Qw=RP.default=(0,fwe.default)((0,pwe.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm2 16H5V5h11.17L19 7.83zm-7-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3M6 6h9v4H6z"}),"SaveOutlined");var TP={},mwe=Ot;Object.defineProperty(TP,"__esModule",{value:!0});var Vz=TP.default=void 0,hwe=mwe(Dt()),gwe=z;Vz=TP.default=(0,hwe.default)((0,gwe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"CheckOutlined");var _P={},vwe=Ot;Object.defineProperty(_P,"__esModule",{value:!0});var Wz=_P.default=void 0,ywe=vwe(Dt()),bwe=z;Wz=_P.default=(0,ywe.default)((0,bwe.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"}),"CloseOutlined");var Gz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",s="hour",u="day",c="week",d="month",f="quarter",m="year",p="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var F=["th","st","nd","rd"],N=T%100;return"["+T+(F[(N-20)%10]||F[N]||F[0])+"]"}},x=function(T,F,N){var k=String(T);return!k||k.length>=F?T:""+Array(F+1-k.length).join(N)+T},w={s:x,z:function(T){var F=-T.utcOffset(),N=Math.abs(F),k=Math.floor(N/60),L=N%60;return(F<=0?"+":"-")+x(k,2,"0")+":"+x(L,2,"0")},m:function T(F,N){if(F.date()<N.date())return-T(N,F);var k=12*(N.year()-F.year())+(N.month()-F.month()),L=F.clone().add(k,d),j=N-L<0,B=F.clone().add(k+(j?-1:1),d);return+(-(k+(N-L)/(j?L-B:B-L))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:d,y:m,w:c,d:u,D:p,h:s,m:l,s:a,ms:i,Q:f}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},P="en",C={};C[P]=g;var E="$isDayjsObject",S=function(T){return T instanceof _||!(!T||!T[E])},R=function T(F,N,k){var L;if(!F)return P;if(typeof F=="string"){var j=F.toLowerCase();C[j]&&(L=j),N&&(C[j]=N,L=j);var B=F.split("-");if(!L&&B.length>1)return T(B[0])}else{var A=F.name;C[A]=F,L=A}return!k&&L&&(P=L),L||!k&&P},I=function(T,F){if(S(T))return T.clone();var N=typeof F=="object"?F:{};return N.date=T,N.args=arguments,new _(N)},M=w;M.l=R,M.i=S,M.w=function(T,F){return I(T,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var _=function(){function T(N){this.$L=R(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[E]=!0}var F=T.prototype;return F.parse=function(N){this.$d=function(k){var L=k.date,j=k.utc;if(L===null)return new Date(NaN);if(M.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var B=L.match(y);if(B){var A=B[2]-1||0,H=(B[7]||"0").substring(0,3);return j?new Date(Date.UTC(B[1],A,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)):new Date(B[1],A,B[3]||1,B[4]||0,B[5]||0,B[6]||0,H)}}return new Date(L)}(N),this.init()},F.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},F.$utils=function(){return M},F.isValid=function(){return this.$d.toString()!==h},F.isSame=function(N,k){var L=I(N);return this.startOf(k)<=L&&L<=this.endOf(k)},F.isAfter=function(N,k){return I(N)<this.startOf(k)},F.isBefore=function(N,k){return this.endOf(k)<I(N)},F.$g=function(N,k,L){return M.u(N)?this[k]:this.set(L,N)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(N,k){var L=this,j=!!M.u(k)||k,B=M.p(N),A=function(J,oe){var ue=M.w(L.$u?Date.UTC(L.$y,oe,J):new Date(L.$y,oe,J),L);return j?ue:ue.endOf(u)},H=function(J,oe){return M.w(L.toDate()[J].apply(L.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(oe)),L)},q=this.$W,V=this.$M,G=this.$D,Y="set"+(this.$u?"UTC":"");switch(B){case m:return j?A(1,0):A(31,11);case d:return j?A(1,V):A(0,V+1);case c:var re=this.$locale().weekStart||0,le=(q<re?q+7:q)-re;return A(j?G-le:G+(6-le),V);case u:case p:return H(Y+"Hours",0);case s:return H(Y+"Minutes",1);case l:return H(Y+"Seconds",2);case a:return H(Y+"Milliseconds",3);default:return this.clone()}},F.endOf=function(N){return this.startOf(N,!1)},F.$set=function(N,k){var L,j=M.p(N),B="set"+(this.$u?"UTC":""),A=(L={},L[u]=B+"Date",L[p]=B+"Date",L[d]=B+"Month",L[m]=B+"FullYear",L[s]=B+"Hours",L[l]=B+"Minutes",L[a]=B+"Seconds",L[i]=B+"Milliseconds",L)[j],H=j===u?this.$D+(k-this.$W):k;if(j===d||j===m){var q=this.clone().set(p,1);q.$d[A](H),q.init(),this.$d=q.set(p,Math.min(this.$D,q.daysInMonth())).$d}else A&&this.$d[A](H);return this.init(),this},F.set=function(N,k){return this.clone().$set(N,k)},F.get=function(N){return this[M.p(N)]()},F.add=function(N,k){var L,j=this;N=Number(N);var B=M.p(k),A=function(V){var G=I(j);return M.w(G.date(G.date()+Math.round(V*N)),j)};if(B===d)return this.set(d,this.$M+N);if(B===m)return this.set(m,this.$y+N);if(B===u)return A(1);if(B===c)return A(7);var H=(L={},L[l]=r,L[s]=o,L[a]=n,L)[B]||1,q=this.$d.getTime()+N*H;return M.w(q,this)},F.subtract=function(N,k){return this.add(-1*N,k)},F.format=function(N){var k=this,L=this.$locale();if(!this.isValid())return L.invalidDate||h;var j=N||"YYYY-MM-DDTHH:mm:ssZ",B=M.z(this),A=this.$H,H=this.$m,q=this.$M,V=L.weekdays,G=L.months,Y=L.meridiem,re=function(oe,ue,ge,me){return oe&&(oe[ue]||oe(k,j))||ge[ue].slice(0,me)},le=function(oe){return M.s(A%12||12,oe,"0")},J=Y||function(oe,ue,ge){var me=oe<12?"AM":"PM";return ge?me.toLowerCase():me};return j.replace(b,function(oe,ue){return ue||function(ge){switch(ge){case"YY":return String(k.$y).slice(-2);case"YYYY":return M.s(k.$y,4,"0");case"M":return q+1;case"MM":return M.s(q+1,2,"0");case"MMM":return re(L.monthsShort,q,G,3);case"MMMM":return re(G,q);case"D":return k.$D;case"DD":return M.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return re(L.weekdaysMin,k.$W,V,2);case"ddd":return re(L.weekdaysShort,k.$W,V,3);case"dddd":return V[k.$W];case"H":return String(A);case"HH":return M.s(A,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return J(A,H,!0);case"A":return J(A,H,!1);case"m":return String(H);case"mm":return M.s(H,2,"0");case"s":return String(k.$s);case"ss":return M.s(k.$s,2,"0");case"SSS":return M.s(k.$ms,3,"0");case"Z":return B}return null}(oe)||B.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(N,k,L){var j,B=this,A=M.p(k),H=I(N),q=(H.utcOffset()-this.utcOffset())*r,V=this-H,G=function(){return M.m(B,H)};switch(A){case m:j=G()/12;break;case d:j=G();break;case f:j=G()/3;break;case c:j=(V-q)/6048e5;break;case u:j=(V-q)/864e5;break;case s:j=V/o;break;case l:j=V/r;break;case a:j=V/n;break;default:j=V}return L?j:M.a(j)},F.daysInMonth=function(){return this.endOf(d).$D},F.$locale=function(){return C[this.$L]},F.locale=function(N,k){if(!N)return this.$L;var L=this.clone(),j=R(N,k,!0);return j&&(L.$L=j),L},F.clone=function(){return M.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},T}(),D=_.prototype;return I.prototype=D,[["$ms",i],["$s",a],["$m",l],["$H",s],["$W",u],["$M",d],["$y",m],["$D",p]].forEach(function(T){D[T[1]]=function(F){return this.$g(F,T[0],T[1])}}),I.extend=function(T,F){return T.$i||(T(F,_,I),T.$i=!0),I},I.locale=R,I.isDayjs=S,I.unix=function(T){return I(1e3*T)},I.en=C[P],I.Ls=C,I.p={},I})})(Gz);var xwe=Gz.exports;const FP=Xi(xwe);var qz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,l=a.format;i.en.formats=n,a.format=function(s){s===void 0&&(s="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=function(d,f){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(m,p,h){var y=h&&h.toUpperCase();return p||f[h]||n[h]||f[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,g,x){return g||x.slice(1)})})}(s,u===void 0?{}:u);return l.call(this,c)}}})})(qz);var wwe=qz.exports;const Cwe=Xi(wwe);var Nu={}.hasOwnProperty,Kz=Swe;function Swe(e){return!e||typeof e!="object"?"":Nu.call(e,"position")||Nu.call(e,"type")?VR(e.position):Nu.call(e,"start")||Nu.call(e,"end")?VR(e):Nu.call(e,"line")||Nu.call(e,"column")?Yw(e):""}function Yw(e){return(!e||typeof e!="object")&&(e={}),WR(e.line)+":"+WR(e.column)}function VR(e){return(!e||typeof e!="object")&&(e={}),Yw(e.start)+"-"+Yw(e.end)}function WR(e){return e&&typeof e=="number"?e:1}var Ewe=Kz,Pwe=AP;function Qz(){}Qz.prototype=Error.prototype;AP.prototype=new Qz;var ds=AP.prototype;ds.file="";ds.name="";ds.reason="";ds.message="";ds.stack="";ds.fatal=null;ds.column=null;ds.line=null;function AP(e,t,n){var r,o,i;typeof t=="string"&&(n=t,t=null),r=kwe(n),o=Ewe(t)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(i=t,t=t.start):i.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=i,this.source=r[0],this.ruleId=r[1]}function kwe(e){var t=[null,null],n;return typeof e=="string"&&(n=e.indexOf(":"),n===-1?t[1]=e:(t[0]=e.slice(0,n),t[1]=e.slice(n+1))),t}var Cd={};Cd.basename=$we;Cd.dirname=Iwe;Cd.extname=Owe;Cd.join=Mwe;Cd.sep="/";function $we(e,t){var n=0,r=-1,o,i,a,l;if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');if(dm(e),o=e.length,t===void 0||!t.length||t.length>e.length){for(;o--;)if(e.charCodeAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";for(i=-1,l=t.length-1;o--;)if(e.charCodeAt(o)===47){if(a){n=o+1;break}}else i<0&&(a=!0,i=o+1),l>-1&&(e.charCodeAt(o)===t.charCodeAt(l--)?l<0&&(r=o):(l=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function Iwe(e){var t,n,r;if(dm(e),!e.length)return".";for(t=-1,r=e.length;--r;)if(e.charCodeAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function Owe(e){var t=-1,n=0,r=-1,o=0,i,a,l;for(dm(e),l=e.length;l--;){if(a=e.charCodeAt(l),a===47){if(i){n=l+1;break}continue}r<0&&(i=!0,r=l+1),a===46?t<0?t=l:o!==1&&(o=1):t>-1&&(o=-1)}return t<0||r<0||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)}function Mwe(){for(var e=-1,t;++e<arguments.length;)dm(arguments[e]),arguments[e]&&(t=t===void 0?arguments[e]:t+"/"+arguments[e]);return t===void 0?".":Rwe(t)}function Rwe(e){var t,n;return dm(e),t=e.charCodeAt(0)===47,n=Twe(e,!t),!n.length&&!t&&(n="."),n.length&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Twe(e,t){for(var n="",r=0,o=-1,i=0,a=-1,l,s;++a<=e.length;){if(a<e.length)l=e.charCodeAt(a);else{if(l===47)break;l=47}if(l===47){if(!(o===a-1||i===1))if(o!==a-1&&i===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),o=a,i=0;continue}}else if(n.length){n="",r=0,o=a,i=0;continue}}t&&(n=n.length?n+"/..":"..",r=2)}else n.length?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),r=a-o-1;o=a,i=0}else l===46&&i>-1?i++:i=-1}return n}function dm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var Yz={};Yz.cwd=_we;function _we(){return"/"}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var Fwe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},Qi=Cd,Awe=Yz,Lwe=Fwe,Dwe=Va,Nwe={}.hasOwnProperty,h1=["history","path","basename","stem","extname","dirname"];Va.prototype.toString=Qwe;Object.defineProperty(Va.prototype,"path",{get:zwe,set:jwe});Object.defineProperty(Va.prototype,"dirname",{get:Bwe,set:Hwe});Object.defineProperty(Va.prototype,"basename",{get:Uwe,set:Vwe});Object.defineProperty(Va.prototype,"extname",{get:Wwe,set:Gwe});Object.defineProperty(Va.prototype,"stem",{get:qwe,set:Kwe});function Va(e){var t,n;if(!e)e={};else if(typeof e=="string"||Lwe(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Va))return new Va(e);for(this.data={},this.messages=[],this.history=[],this.cwd=Awe.cwd(),n=-1;++n<h1.length;)t=h1[n],Nwe.call(e,t)&&(this[t]=e[t]);for(t in e)h1.indexOf(t)<0&&(this[t]=e[t])}function zwe(){return this.history[this.history.length-1]}function jwe(e){DP(e,"path"),this.path!==e&&this.history.push(e)}function Bwe(){return typeof this.path=="string"?Qi.dirname(this.path):void 0}function Hwe(e){Xz(this.path,"dirname"),this.path=Qi.join(e||"",this.basename)}function Uwe(){return typeof this.path=="string"?Qi.basename(this.path):void 0}function Vwe(e){DP(e,"basename"),LP(e,"basename"),this.path=Qi.join(this.dirname||"",e)}function Wwe(){return typeof this.path=="string"?Qi.extname(this.path):void 0}function Gwe(e){if(LP(e,"extname"),Xz(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=Qi.join(this.dirname,this.stem+(e||""))}function qwe(){return typeof this.path=="string"?Qi.basename(this.path,this.extname):void 0}function Kwe(e){DP(e,"stem"),LP(e,"stem"),this.path=Qi.join(this.dirname||"",e+(this.extname||""))}function Qwe(e){return(this.contents||"").toString(e)}function LP(e,t){if(e&&e.indexOf(Qi.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+Qi.sep+"`")}function DP(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Xz(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var Ywe=Pwe,w0=Dwe,Xwe=w0;w0.prototype.message=Zwe;w0.prototype.info=eCe;w0.prototype.fail=Jwe;function Zwe(e,t,n){var r=new Ywe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}function Jwe(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function eCe(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var Zz=Xwe,tCe=nCe;function nCe(e){if(e)throw e}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var rCe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},ag=Object.prototype.hasOwnProperty,Jz=Object.prototype.toString,GR=Object.defineProperty,qR=Object.getOwnPropertyDescriptor,KR=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Jz.call(t)==="[object Array]"},QR=function(t){if(!t||Jz.call(t)!=="[object Object]")return!1;var n=ag.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&ag.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||ag.call(t,o)},YR=function(t,n){GR&&n.name==="__proto__"?GR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},XR=function(t,n){if(n==="__proto__")if(ag.call(t,n)){if(qR)return qR(t,n).value}else return;return t[n]},oCe=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=XR(l,n),o=XR(t,n),l!==o&&(c&&o&&(QR(o)||(i=KR(o)))?(i?(i=!1,a=r&&KR(r)?r:[]):a=r&&QR(r)?r:{},YR(l,{name:n,newValue:e(c,a,o)})):typeof o<"u"&&YR(l,{name:n,newValue:o}));return l},iCe=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},aCe=[].slice,lCe=sCe;function sCe(e,t){var n;return r;function r(){var a=aCe.call(arguments,0),l=e.length>a.length,s;l&&a.push(o);try{s=e.apply(null,a)}catch(u){if(l&&n)throw u;return o(u)}l||(s&&typeof s.then=="function"?s.then(i,o):s instanceof Error?o(s):i(s))}function o(){n||(n=!0,t.apply(null,arguments))}function i(a){o(null,a)}}var e5=lCe,uCe=t5;t5.wrap=e5;var ZR=[].slice;function t5(){var e=[],t={};return t.run=n,t.use=r,t;function n(){var o=-1,i=ZR.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!="function")throw new Error("Expected function as last argument, not "+a);l.apply(null,[null].concat(i));function l(s){var u=e[++o],c=ZR.call(arguments,0),d=c.slice(1),f=i.length,m=-1;if(s){a(s);return}for(;++m<f;)(d[m]===null||d[m]===void 0)&&(d[m]=i[m]);i=d,u?e5(u,l).apply(null,i):a.apply(null,[null].concat(i))}}function r(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}}var JR=tCe,cCe=rCe,hh=oCe,e2=iCe,n5=uCe,ef=Zz,dCe=r5().freeze(),fCe=[].slice,pCe={}.hasOwnProperty,mCe=n5().use(hCe).use(gCe).use(vCe);function hCe(e,t){t.tree=e.parse(t.file)}function gCe(e,t,n){e.run(t.tree,t.file,r);function r(o,i,a){o?n(o):(t.tree=i,t.file=a,n())}}function vCe(e,t){var n=e.stringify(t.tree,t.file);n==null||(typeof n=="string"||cCe(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}function r5(){var e=[],t=n5(),n={},r=-1,o;return i.data=l,i.freeze=a,i.attachers=e,i.use=s,i.parse=c,i.stringify=m,i.run=d,i.runSync=f,i.process=p,i.processSync=h,i;function i(){for(var y=r5(),b=-1;++b<e.length;)y.use.apply(null,e[b]);return y.data(hh(!0,{},n)),y}function a(){var y,b;if(o)return i;for(;++r<e.length;)y=e[r],y[1]!==!1&&(y[1]===!0&&(y[1]=void 0),b=y[0].apply(i,y.slice(1)),typeof b=="function"&&t.use(b));return o=!0,r=1/0,i}function l(y,b){return typeof y=="string"?arguments.length===2?(y1("data",o),n[y]=b,i):pCe.call(n,y)&&n[y]||null:y?(y1("data",o),n=y,i):n}function s(y){var b;if(y1("use",o),y!=null)if(typeof y=="function")P.apply(null,arguments);else if(typeof y=="object")"length"in y?w(y):g(y);else throw new Error("Expected usable value, not `"+y+"`");return b&&(n.settings=hh(n.settings||{},b)),i;function g(C){w(C.plugins),C.settings&&(b=hh(b||{},C.settings))}function x(C){if(typeof C=="function")P(C);else if(typeof C=="object")"length"in C?P.apply(null,C):g(C);else throw new Error("Expected usable value, not `"+C+"`")}function w(C){var E=-1;if(C!=null)if(typeof C=="object"&&"length"in C)for(;++E<C.length;)x(C[E]);else throw new Error("Expected a list of plugins, not `"+C+"`")}function P(C,E){var S=u(C);S?(e2(S[1])&&e2(E)&&(E=hh(!0,S[1],E)),S[1]=E):e.push(fCe.call(arguments))}}function u(y){for(var b=-1;++b<e.length;)if(e[b][0]===y)return e[b]}function c(y){var b=ef(y),g;return a(),g=i.Parser,g1("parse",g),t2(g,"parse")?new g(String(b),b).parse():g(String(b),b)}function d(y,b,g){if(n2(y),a(),!g&&typeof b=="function"&&(g=b,b=null),!g)return new Promise(x);x(null,g);function x(w,P){t.run(y,ef(b),C);function C(E,S,R){S=S||y,E?P(E):w?w(S):g(null,S,R)}}}function f(y,b){var g,x;return d(y,b,w),r2("runSync","run",x),g;function w(P,C){x=!0,g=C,JR(P)}}function m(y,b){var g=ef(b),x;return a(),x=i.Compiler,v1("stringify",x),n2(y),t2(x,"compile")?new x(y,g).compile():x(y,g)}function p(y,b){if(a(),g1("process",i.Parser),v1("process",i.Compiler),!b)return new Promise(g);g(null,b);function g(x,w){var P=ef(y);mCe.run(i,{file:P},C);function C(E){E?w(E):x?x(P):b(null,P)}}}function h(y){var b,g;return a(),g1("processSync",i.Parser),v1("processSync",i.Compiler),b=ef(y),p(b,x),r2("processSync","process",g),b;function x(w){g=!0,JR(w)}}}function t2(e,t){return typeof e=="function"&&e.prototype&&(yCe(e.prototype)||t in e.prototype)}function yCe(e){var t;for(t in e)return!0;return!1}function g1(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Parser`")}function v1(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Compiler`")}function y1(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function n2(e){if(!e||typeof e.type!="string")throw new Error("Expected node, got `"+e+"`")}function r2(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}var bCe=o5;function o5(e){return e&&(e.value||e.alt||e.title||"children"in e&&o2(e.children)||"length"in e&&o2(e))||""}function o2(e){for(var t=[],n=-1;++n<e.length;)t[n]=o5(e[n]);return t.join("")}var xCe=Object.assign,fm=xCe,wCe={}.hasOwnProperty,i5=wCe;function CCe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var NP=CCe,SCe=String.fromCharCode,C0=SCe,ECe=C0;function PCe(e,t){var n=parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"<22>":ECe(n)}var kCe=PCe,zP={};function $Ce(e){return e<-2}var Rn=$Ce;function ICe(e){return e===-2||e===-1||e===32}var tl=ICe,i2=tl;function OCe(e,t,n,r){var o=r?r-1:1/0,i=0;return a;function a(s){return i2(s)?(e.enter(n),l(s)):t(s)}function l(s){return i2(s)&&i++<o?(e.consume(s),l):(e.exit(n),t(s))}}var Nn=OCe;Object.defineProperty(zP,"__esModule",{value:!0});var MCe=Rn,RCe=Nn,TCe=_Ce;function _Ce(e){var t=e.attempt(this.parser.constructs.contentInitial,r,o),n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),RCe(e,t,"linePrefix")}function o(l){return e.enter("paragraph"),i(l)}function i(l){var s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return MCe(l)?(e.consume(l),e.exit("chunkText"),i):(e.consume(l),a)}}zP.tokenize=TCe;var jP={},FCe=Rn,ACe=Nn,LCe={tokenize:DCe,partial:!0};function DCe(e,t,n){return ACe(e,r,"linePrefix");function r(o){return o===null||FCe(o)?t(o):n(o)}}var S0=LCe;Object.defineProperty(jP,"__esModule",{value:!0});var NCe=Rn,a5=Nn,zCe=S0,jCe=HCe,b1={tokenize:UCe},BCe={tokenize:VCe};function HCe(e){var t=this,n=[],r=0,o={tokenize:b,partial:!0},i,a,l;return s;function s(g){return r<n.length?(t.containerState=n[r][1],e.attempt(n[r][0].continuation,u,c)(g)):c(g)}function u(g){return r++,s(g)}function c(g){return i&&i.flowContinue?f(g):(t.interrupt=a&&a.currentConstruct&&a.currentConstruct.interruptible,t.containerState={},e.attempt(b1,d,f)(g))}function d(g){return n.push([t.currentConstruct,t.containerState]),t.containerState=void 0,c(g)}function f(g){if(g===null){y(0,!0),e.consume(g);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:a}),m(g)}function m(g){return g===null?(h(e.exit("chunkFlow")),f(g)):NCe(g)?(e.consume(g),h(e.exit("chunkFlow")),e.check(o,p)):(e.consume(g),m)}function p(g){return y(i.continued,i&&i.flowEnd),r=0,s(g)}function h(g){l&&(l.next=g),l=g,a.lazy=i&&i.lazy,a.defineSkip(g.start),a.write(t.sliceStream(g))}function y(g,x){var w=n.length;for(a&&x&&(a.write([null]),l=a=void 0);w-- >g;)t.containerState=n[w][1],n[w][0].exit.call(t,e);n.length=g}function b(g,x){var w=0;return i={},P;function P(M){return w<n.length?(t.containerState=n[w][1],g.attempt(n[w][0].continuation,C,E)(M)):a.currentConstruct&&a.currentConstruct.concrete?(i.flowContinue=!0,I(M)):(t.interrupt=a.currentConstruct&&a.currentConstruct.interruptible,t.containerState={},g.attempt(b1,R,I)(M))}function C(M){return w++,t.containerState._closeFlow?R(M):P(M)}function E(M){return a.currentConstruct&&a.currentConstruct.lazy?(t.containerState={},g.attempt(b1,R,g.attempt(BCe,R,g.check(zCe,R,S)))(M)):R(M)}function S(M){return w=n.length,i.lazy=!0,i.flowContinue=!0,I(M)}function R(M){return i.flowEnd=!0,I(M)}function I(M){return i.continued=w,t.interrupt=t.containerState=void 0,x(M)}}}function UCe(e,t,n){return a5(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function VCe(e,t,n){return a5(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}jP.tokenize=jCe;var BP={};function WCe(e){for(var t=-1,n=0;++t<e.length;)n+=typeof e[t]=="string"?e[t].length:1;return n}var l5=WCe,GCe=l5;function qCe(e,t){var n=e[e.length-1];return!n||n[1].type!==t?0:GCe(n[2].sliceStream(n[1]))}var pm=qCe,KCe=[].splice,QCe=KCe,x1=QCe;function YCe(e,t,n,r){var o=e.length,i=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),x1.apply(e,a);else for(n&&x1.apply(e,[t,n]);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),x1.apply(e,a),i+=1e4,t+=1e4}var nl=YCe,XCe=fm;function ZCe(e){return XCe({},e)}var wu=ZCe,JCe=fm,s5=nl,eSe=wu;function tSe(e){for(var t={},n=-1,r,o,i,a,l,s,u;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,i=0,i<s.length&&s[i][1].type==="lineEndingBlank"&&(i+=2),i<s.length&&s[i][1].type==="content"))for(;++i<s.length&&s[i][1].type!=="content";)s[i][1].type==="chunkText"&&(s[i][1].isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(JCe(t,nSe(e,n)),n=t[n],u=!0);else if(r[1]._container||r[1]._movePreviousLineEndings){for(i=n,o=void 0;i--&&(a=e[i],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),a[1].type="lineEnding",o=i);o&&(r[1].end=eSe(e[o][1].start),l=e.slice(o,n),l.unshift(r),s5(e,o,n-o+1,l))}}return!u}function nSe(e,t){for(var n=e[t][1],r=e[t][2],o=t-1,i=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,s=[],u={},c,d,f,m,p,h;n;){for(;e[++o][1]!==n;);i.push(o),n._tokenizer||(c=r.sliceStream(n),n.next||c.push(null),d&&a.defineSkip(n.start),n.isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),n.isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=n,n=n.next}for(n=d,f=l.length;f--;)l[f][0]==="enter"?m=!0:m&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(y(l.slice(f+1,p)),n._tokenizer=n.next=void 0,n=n.previous,p=f+1);for(a.events=n._tokenizer=n.next=void 0,y(l.slice(0,p)),f=-1,h=0;++f<s.length;)u[h+s[f][0]]=h+s[f][1],h+=s[f][1]-s[f][0]-1;return u;function y(b){var g=i.pop();s.unshift([g,g+b.length-1]),s5(e,g,2,b)}}var u5=tSe,c5=Rn,rSe=pm,oSe=u5,iSe=Nn,aSe={tokenize:uSe,resolve:sSe,interruptible:!0,lazy:!0},lSe={tokenize:cSe,partial:!0};function sSe(e){return oSe(e),e}function uSe(e,t){var n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?i(l):c5(l)?e.check(lSe,a,i)(l):(e.consume(l),o)}function i(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),o}}function cSe(e,t,n){var r=this;return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),iSe(e,i,"linePrefix")}function i(a){return a===null||c5(a)?n(a):r.parser.constructs.disable.null.indexOf("codeIndented")>-1||rSe(r.events,"linePrefix")<4?e.interrupt(r.parser.constructs.flow,n,t)(a):t(a)}}var dSe=aSe;Object.defineProperty(BP,"__esModule",{value:!0});var fSe=dSe,pSe=Nn,mSe=S0,hSe=gSe;function gSe(e){var t=this,n=e.attempt(mSe,r,e.attempt(this.parser.constructs.flowInitial,o,pSe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(fSe,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}BP.tokenize=hSe;var Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});var vSe=fm,a2=wu,ySe=d5("text"),bSe=d5("string"),xSe={resolveAll:f5()};function d5(e){return{tokenize:t,resolveAll:f5(e==="text"?wSe:void 0)};function t(n){var r=this,o=this.parser.constructs[e],i=n.attempt(o,a,l);return a;function a(c){return u(c)?i(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){var d=o[c],f=-1;if(c===null)return!0;if(d){for(;++f<d.length;)if(!d[f].previous||d[f].previous.call(r,r.previous))return!0}}}}function f5(e){return t;function t(n,r){for(var o=-1,i;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function wSe(e,t){for(var n=-1,r,o,i,a,l,s,u,c;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){for(o=e[n-1][1],r=t.sliceStream(o),a=r.length,l=-1,s=0,u=void 0;a--;)if(i=r[a],typeof i=="string"){for(l=i.length;i.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(i===-2)u=!0,s++;else if(i!==-1){a++;break}s&&(c={type:n===e.length||u||s<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-s,offset:o.end.offset-s,_index:o.start._index+a,_bufferIndex:a?l:o.start._bufferIndex+l},end:a2(o.end)},o.end=a2(c.start),o.start.offset===o.end.offset?vSe(o,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)),n++}return e}Sd.resolver=xSe;Sd.string=bSe;Sd.text=ySe;function CSe(e){return e==null?[]:"length"in e?e:[e]}var HP=CSe,l2=i5,SSe=nl,ESe=HP;function PSe(e){for(var t={},n=-1;++n<e.length;)kSe(t,e[n]);return t}function kSe(e,t){var n,r,o,i;for(n in t){r=l2.call(e,n)?e[n]:e[n]={},o=t[n];for(i in o)r[i]=$Se(ESe(o[i]),l2.call(r,i)?r[i]:[])}}function $Se(e,t){for(var n=-1,r=[];++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);return SSe(t,0,0,r),t}var p5=PSe,ISe=nl;function OSe(e,t){return e.length?(ISe(e,e.length,0,t),e):t}var UP=OSe;function MSe(e,t,n){for(var r=[],o=-1,i;++o<e.length;)i=e[o].resolveAll,i&&r.indexOf(i)<0&&(t=i(t,n),r.push(i));return t}var E0=MSe,RSe=C0;function TSe(e){for(var t=-1,n=[],r,o,i;++t<e.length;){if(r=e[t],typeof r=="string")o=r;else if(r===-5)o="\r";else if(r===-4)o=`
`;else if(r===-3)o=`\r
`;else if(r===-2)o=" ";else if(r===-1){if(i)continue;o=" "}else o=RSe(r);i=r===-2,n.push(o)}return n.join("")}var _Se=TSe;function FSe(e,t){var n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,a;return n===o?a=[e[n].slice(r,i)]:(a=e.slice(n,o),r>-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}var ASe=FSe,LSe=fm,DSe=Rn,NSe=UP,zSe=nl,w1=HP,jSe=E0,BSe=_Se,s2=wu,HSe=ASe;function USe(e,t,n){var r=n?s2(n):{line:1,column:1,offset:0},o={},i=[],a=[],l=[],s={consume:g,enter:x,exit:w,attempt:E(P),check:E(C),interrupt:E(C,{interrupt:!0}),lazy:E(C,{lazy:!0})},u={previous:null,events:[],parser:e,sliceStream:m,sliceSerialize:f,now:p,defineSkip:h,write:d},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),r._index=0,r._bufferIndex=-1,u;function d(M){return a=NSe(a,M),y(),a[a.length-1]!==null?[]:(S(t,0),u.events=jSe(i,u.events,u),u.events)}function f(M){return BSe(m(M))}function m(M){return HSe(a,M)}function p(){return s2(r)}function h(M){o[M.line]=M.column,I()}function y(){for(var M,_;r._index<a.length;)if(_=a[r._index],typeof _=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<_.length;)b(_.charCodeAt(r._bufferIndex));else b(_)}function b(M){c=c(M)}function g(M){DSe(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,I()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function x(M,_){var D=_||{};return D.type=M,D.start=p(),u.events.push(["enter",D,u]),l.push(D),D}function w(M){var _=l.pop();return _.end=p(),u.events.push(["exit",_,u]),_}function P(M,_){S(M,_.from)}function C(M,_){_.restore()}function E(M,_){return D;function D(T,F,N){var k,L,j,B;return T.tokenize||"length"in T?H(w1(T)):A;function A(Y){return Y in T||null in T?H(T.null?w1(T[Y]).concat(w1(T.null)):T[Y])(Y):N(Y)}function H(Y){return k=Y,L=0,q(Y[L])}function q(Y){return re;function re(le){return B=R(),j=Y,Y.partial||(u.currentConstruct=Y),Y.name&&u.parser.constructs.disable.null.indexOf(Y.name)>-1?G():Y.tokenize.call(_?LSe({},u,_):u,s,V,G)(le)}}function V(Y){return M(j,B),F}function G(Y){return B.restore(),++L<k.length?q(k[L]):N}}}function S(M,_){M.resolveAll&&i.indexOf(M)<0&&i.push(M),M.resolve&&zSe(u.events,_,u.events.length-_,M.resolve(u.events.slice(_),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function R(){var M=p(),_=u.previous,D=u.currentConstruct,T=u.events.length,F=Array.from(l);return{restore:N,from:T};function N(){r=M,u.previous=_,u.currentConstruct=D,u.events.length=T,l=F,I()}}function I(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}var VSe=USe,ia={};function WSe(e){return e<0||e===32}var rl=WSe,GSe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,qSe=GSe,KSe=C0;function QSe(e){return t;function t(n){return e.test(KSe(n))}}var fs=QSe,YSe=qSe,XSe=fs,ZSe=XSe(YSe),VP=ZSe,JSe=fs,eEe=JSe(/\s/),WP=eEe,tEe=rl,nEe=VP,rEe=WP;function oEe(e){if(e===null||tEe(e)||rEe(e))return 1;if(nEe(e))return 2}var m5=oEe;function iEe(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}var aEe=iEe,tf=UP,lEe=nl,u2=m5,c2=aEe,sEe=E0,Ei=wu,uEe={name:"attention",tokenize:dEe,resolveAll:cEe};function cEe(e,t){for(var n=-1,r,o,i,a,l,s,u,c;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,a={type:s>1?"strongSequence":"emphasisSequence",start:c2(Ei(e[r][1].end),-s),end:Ei(e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Ei(e[n][1].start),end:c2(Ei(e[n][1].start),s)},i={type:s>1?"strongText":"emphasisText",start:Ei(e[r][1].end),end:Ei(e[n][1].start)},o={type:s>1?"strong":"emphasis",start:Ei(a.start),end:Ei(l.end)},e[r][1].end=Ei(a.start),e[n][1].start=Ei(l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=tf(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=tf(u,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",i,t]]),u=tf(u,sEe(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=tf(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=tf(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,lEe(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function dEe(e,t){var n=u2(this.previous),r;return o;function o(a){return e.enter("attentionSequence"),r=a,i(a)}function i(a){var l,s,u,c;return a===r?(e.consume(a),i):(l=e.exit("attentionSequence"),s=u2(a),u=!s||s===2&&n,c=!n||n===2&&s,l._open=r===42?u:u&&(n||!c),l._close=r===42?c:c&&(s||!u),t(a))}}var fEe=uEe,pEe=fs,mEe=pEe(/[A-Za-z]/),P0=mEe,hEe=fs,gEe=hEe(/[\dA-Za-z]/),mm=gEe,vEe=fs,yEe=vEe(/[#-'*+\--9=?A-Z^-~]/),bEe=yEe;function xEe(e){return e<32||e===127}var GP=xEe,wEe=P0,gh=mm,d2=bEe,CEe=GP,SEe={name:"autolink",tokenize:EEe};function EEe(e,t,n){var r=1;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return wEe(p)?(e.consume(p),a):d2(p)?u(p):n(p)}function a(p){return p===43||p===45||p===46||gh(p)?l(p):u(p)}function l(p){return p===58?(e.consume(p),s):(p===43||p===45||p===46||gh(p))&&r++<32?(e.consume(p),l):u(p)}function s(p){return p===62?(e.exit("autolinkProtocol"),m(p)):p===32||p===60||CEe(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),r=0,c):d2(p)?(e.consume(p),u):n(p)}function c(p){return gh(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",m(p)):f(p)}function f(p){return(p===45||gh(p))&&r++<63?(e.consume(p),p===45?f:d):n(p)}function m(p){return e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t}}var PEe=SEe,kEe=tl,$Ee=Nn,h5={name:"blockQuote",tokenize:IEe,continuation:{tokenize:OEe},exit:MEe};function IEe(e,t,n){var r=this;return o;function o(a){return a===62?(r.containerState.open||(e.enter("blockQuote",{_container:!0}),r.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),i):n(a)}function i(a){return kEe(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function OEe(e,t,n){return $Ee(e,e.attempt(h5,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function MEe(e){e.exit("blockQuote")}var REe=h5,TEe=fs,_Ee=TEe(/[!-/:-@[-`{-~]/),FEe=_Ee,AEe=FEe,LEe={name:"characterEscape",tokenize:DEe};function DEe(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return AEe(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}var NEe=LEe,vh,zEe=59,g5=jEe;function jEe(e){var t="&"+e+";",n;return vh=vh||document.createElement("i"),vh.innerHTML=t,n=vh.textContent,n.charCodeAt(n.length-1)===zEe&&e!=="semi"||n===t?!1:n}var BEe=fs,HEe=BEe(/\d/),v5=HEe,UEe=fs,VEe=UEe(/[\dA-Fa-f]/),WEe=VEe,GEe=g5,f2=mm,qEe=v5,KEe=WEe;function QEe(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var YEe=QEe(GEe),XEe={name:"characterReference",tokenize:ZEe};function ZEe(e,t,n){var r=this,o=0,i,a;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,a=f2,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=KEe,c):(e.enter("characterReferenceValue"),i=7,a=qEe,c(d))}function c(d){var f;return d===59&&o?(f=e.exit("characterReferenceValue"),a===f2&&!YEe.default(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):a(d)&&o++<i?(e.consume(d),c):n(d)}}var JEe=XEe,zu=Rn,ePe=rl,tPe=pm,nf=Nn,nPe={name:"codeFenced",tokenize:rPe,concrete:!0};function rPe(e,t,n){var r=this,o={tokenize:g,partial:!0},i=tPe(this.events,"linePrefix"),a=0,l;return s;function s(x){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l=x,u(x)}function u(x){return x===l?(e.consume(x),a++,u):(e.exit("codeFencedFenceSequence"),a<3?n(x):nf(e,c,"whitespace")(x))}function c(x){return x===null||zu(x)?p(x):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(x))}function d(x){return x===null||ePe(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nf(e,f,"whitespace")(x)):x===96&&x===l?n(x):(e.consume(x),d)}function f(x){return x===null||zu(x)?p(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||zu(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(x)):x===96&&x===l?n(x):(e.consume(x),m)}function p(x){return e.exit("codeFencedFence"),r.interrupt?t(x):h(x)}function h(x){return x===null?b(x):zu(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),e.attempt(o,b,i?nf(e,h,"linePrefix",i+1):h)):(e.enter("codeFlowValue"),y(x))}function y(x){return x===null||zu(x)?(e.exit("codeFlowValue"),h(x)):(e.consume(x),y)}function b(x){return e.exit("codeFenced"),t(x)}function g(x,w,P){var C=0;return nf(x,E,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function E(I){return x.enter("codeFencedFence"),x.enter("codeFencedFenceSequence"),S(I)}function S(I){return I===l?(x.consume(I),C++,S):C<a?P(I):(x.exit("codeFencedFenceSequence"),nf(x,R,"whitespace")(I))}function R(I){return I===null||zu(I)?(x.exit("codeFencedFence"),w(I)):P(I)}}}var oPe=nPe,Xw=Rn,p2=nl,iPe=pm,m2=Nn,aPe={name:"codeIndented",tokenize:sPe,resolve:lPe},h2={tokenize:uPe,partial:!0};function lPe(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return p2(e,0,0,[["enter",n,t]]),p2(e,e.length,0,[["exit",n,t]]),e}function sPe(e,t,n){return e.attempt(h2,r,n);function r(i){return i===null?t(i):Xw(i)?e.attempt(h2,r,t)(i):(e.enter("codeFlowValue"),o(i))}function o(i){return i===null||Xw(i)?(e.exit("codeFlowValue"),r(i)):(e.consume(i),o)}}function uPe(e,t,n){var r=this;return m2(e,o,"linePrefix",4+1);function o(i){return Xw(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),m2(e,o,"linePrefix",4+1)):iPe(r.events,"linePrefix")<4?n(i):t(i)}}var cPe=aPe,g2=Rn,dPe={name:"codeText",tokenize:mPe,resolve:fPe,previous:pPe};function fPe(e){var t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[t][1].type=e[n][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function pPe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mPe(e,t,n){var r=0,o,i;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),l(d)}function l(d){return d===96?(e.consume(d),r++,l):(e.exit("codeTextSequence"),s(d))}function s(d){return d===null?n(d):d===96?(i=e.enter("codeTextSequence"),o=0,c(d)):d===32?(e.enter("space"),e.consume(d),e.exit("space"),s):g2(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||g2(d)?(e.exit("codeTextData"),s(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),o++,c):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",u(d))}}var hPe=dPe,v2=GP,gPe=rl,vPe=Rn;function yPe(e,t,n,r,o,i,a,l,s){var u=s||1/0,c=0;return d;function d(b){return b===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(b),e.exit(i),f):v2(b)||b===41?n(b):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(b))}function f(b){return b===62?(e.enter(i),e.consume(b),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(l),f(b)):b===null||b===60||vPe(b)?n(b):(e.consume(b),b===92?p:m)}function p(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function h(b){return b===40?++c>u?n(b):(e.consume(b),h):b===41?c--?(e.consume(b),h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(b)):b===null||gPe(b)?c?n(b):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(b)):v2(b)?n(b):(e.consume(b),b===92?y:h)}function y(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}var y5=yPe,y2=Rn,bPe=tl;function xPe(e,t,n,r,o,i){var a=this,l=0,s;return u;function u(m){return e.enter(r),e.enter(o),e.consume(m),e.exit(o),e.enter(i),c}function c(m){return m===null||m===91||m===93&&!s||m===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs||l>999?n(m):m===93?(e.exit(i),e.enter(o),e.consume(m),e.exit(o),e.exit(r),t):y2(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||y2(m)||l++>999?(e.exit("chunkString"),c(m)):(e.consume(m),s=s||!bPe(m),m===92?f:d)}function f(m){return m===91||m===92||m===93?(e.consume(m),l++,d):d(m)}}var b5=xPe,wPe=Rn,CPe=tl,SPe=Nn;function EPe(e,t){var n;return r;function r(o){return wPe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):CPe(o)?SPe(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}var x5=EPe,b2=Rn,PPe=Nn;function kPe(e,t,n,r,o,i){var a;return l;function l(f){return e.enter(r),e.enter(o),e.consume(f),e.exit(o),a=f===40?41:f,s}function s(f){return f===a?(e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===a?(e.exit(i),s(a)):f===null?n(f):b2(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),PPe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||b2(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===a||f===92?(e.consume(f),c):c(f)}}var w5=kPe,C5=Rn,$Pe=rl,IPe=NP,OPe=y5,MPe=b5,Zw=Nn,S5=x5,RPe=w5,TPe={name:"definition",tokenize:FPe},_Pe={tokenize:APe,partial:!0};function FPe(e,t,n){var r=this,o;return i;function i(s){return e.enter("definition"),MPe.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(s)}function a(s){return o=IPe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),s===58?(e.enter("definitionMarker"),e.consume(s),e.exit("definitionMarker"),S5(e,OPe(e,e.attempt(_Pe,Zw(e,l,"whitespace"),Zw(e,l,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(s)}function l(s){return s===null||C5(s)?(e.exit("definition"),r.parser.defined.indexOf(o)<0&&r.parser.defined.push(o),t(s)):n(s)}}function APe(e,t,n){return r;function r(a){return $Pe(a)?S5(e,o)(a):n(a)}function o(a){return a===34||a===39||a===40?RPe(e,Zw(e,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function i(a){return a===null||C5(a)?t(a):n(a)}}var LPe=TPe,DPe=Rn,NPe={name:"hardBreakEscape",tokenize:zPe};function zPe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(i),o}function o(i){return DPe(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}var jPe=NPe,BPe=Rn,x2=rl,HPe=tl,UPe=nl,VPe=Nn,WPe={name:"headingAtx",tokenize:qPe,resolve:GPe};function GPe(e,t){var n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},UPe(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function qPe(e,t,n){var r=this,o=0;return i;function i(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&o++<6?(e.consume(c),a):c===null||x2(c)?(e.exit("atxHeadingSequence"),r.interrupt?t(c):l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||BPe(c)?(e.exit("atxHeading"),t(c)):HPe(c)?VPe(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||x2(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}var KPe=WPe,QPe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],YPe=QPe,XPe=["pre","script","style","textarea"],ZPe=XPe,rf=P0,w2=mm,ju=Rn,C2=rl,Bu=tl,yh=C0,JPe=YPe,S2=ZPe,eke=S0,tke={name:"htmlFlow",tokenize:oke,resolveTo:rke,concrete:!0},nke={tokenize:ike,partial:!0};function rke(e){for(var t=e.length;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function oke(e,t,n){var r=this,o,i,a,l,s;return u;function u(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),c}function c(A){return A===33?(e.consume(A),d):A===47?(e.consume(A),p):A===63?(e.consume(A),o=3,r.interrupt?t:L):rf(A)?(e.consume(A),a=yh(A),i=!0,h):n(A)}function d(A){return A===45?(e.consume(A),o=2,f):A===91?(e.consume(A),o=5,a="CDATA[",l=0,m):rf(A)?(e.consume(A),o=4,r.interrupt?t:L):n(A)}function f(A){return A===45?(e.consume(A),r.interrupt?t:L):n(A)}function m(A){return A===a.charCodeAt(l++)?(e.consume(A),l===a.length?r.interrupt?t:M:m):n(A)}function p(A){return rf(A)?(e.consume(A),a=yh(A),h):n(A)}function h(A){return A===null||A===47||A===62||C2(A)?A!==47&&i&&S2.indexOf(a.toLowerCase())>-1?(o=1,r.interrupt?t(A):M(A)):JPe.indexOf(a.toLowerCase())>-1?(o=6,A===47?(e.consume(A),y):r.interrupt?t(A):M(A)):(o=7,r.interrupt?n(A):i?g(A):b(A)):A===45||w2(A)?(e.consume(A),a+=yh(A),h):n(A)}function y(A){return A===62?(e.consume(A),r.interrupt?t:M):n(A)}function b(A){return Bu(A)?(e.consume(A),b):R(A)}function g(A){return A===47?(e.consume(A),R):A===58||A===95||rf(A)?(e.consume(A),x):Bu(A)?(e.consume(A),g):R(A)}function x(A){return A===45||A===46||A===58||A===95||w2(A)?(e.consume(A),x):w(A)}function w(A){return A===61?(e.consume(A),P):Bu(A)?(e.consume(A),w):g(A)}function P(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),s=A,C):Bu(A)?(e.consume(A),P):(s=void 0,E(A))}function C(A){return A===s?(e.consume(A),S):A===null||ju(A)?n(A):(e.consume(A),C)}function E(A){return A===null||A===34||A===39||A===60||A===61||A===62||A===96||C2(A)?w(A):(e.consume(A),E)}function S(A){return A===47||A===62||Bu(A)?g(A):n(A)}function R(A){return A===62?(e.consume(A),I):n(A)}function I(A){return Bu(A)?(e.consume(A),I):A===null||ju(A)?M(A):n(A)}function M(A){return A===45&&o===2?(e.consume(A),T):A===60&&o===1?(e.consume(A),F):A===62&&o===4?(e.consume(A),j):A===63&&o===3?(e.consume(A),L):A===93&&o===5?(e.consume(A),k):ju(A)&&(o===6||o===7)?e.check(nke,j,_)(A):A===null||ju(A)?_(A):(e.consume(A),M)}function _(A){return e.exit("htmlFlowData"),D(A)}function D(A){return A===null?B(A):ju(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),D):(e.enter("htmlFlowData"),M(A))}function T(A){return A===45?(e.consume(A),L):M(A)}function F(A){return A===47?(e.consume(A),a="",N):M(A)}function N(A){return A===62&&S2.indexOf(a.toLowerCase())>-1?(e.consume(A),j):rf(A)&&a.length<8?(e.consume(A),a+=yh(A),N):M(A)}function k(A){return A===93?(e.consume(A),L):M(A)}function L(A){return A===62?(e.consume(A),j):M(A)}function j(A){return A===null||ju(A)?(e.exit("htmlFlowData"),B(A)):(e.consume(A),j)}function B(A){return e.exit("htmlFlow"),t(A)}}function ike(e,t,n){return r;function r(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(eke,t,n)}}var ake=tke,bh=P0,C1=mm,ga=Rn,S1=rl,xh=tl,lke=Nn,ske={name:"htmlText",tokenize:uke};function uke(e,t,n){var r=this,o,i,a,l;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),u}function u(A){return A===33?(e.consume(A),c):A===47?(e.consume(A),E):A===63?(e.consume(A),P):bh(A)?(e.consume(A),I):n(A)}function c(A){return A===45?(e.consume(A),d):A===91?(e.consume(A),i="CDATA[",a=0,y):bh(A)?(e.consume(A),w):n(A)}function d(A){return A===45?(e.consume(A),f):n(A)}function f(A){return A===null||A===62?n(A):A===45?(e.consume(A),m):p(A)}function m(A){return A===null||A===62?n(A):p(A)}function p(A){return A===null?n(A):A===45?(e.consume(A),h):ga(A)?(l=p,L(A)):(e.consume(A),p)}function h(A){return A===45?(e.consume(A),B):p(A)}function y(A){return A===i.charCodeAt(a++)?(e.consume(A),a===i.length?b:y):n(A)}function b(A){return A===null?n(A):A===93?(e.consume(A),g):ga(A)?(l=b,L(A)):(e.consume(A),b)}function g(A){return A===93?(e.consume(A),x):b(A)}function x(A){return A===62?B(A):A===93?(e.consume(A),x):b(A)}function w(A){return A===null||A===62?B(A):ga(A)?(l=w,L(A)):(e.consume(A),w)}function P(A){return A===null?n(A):A===63?(e.consume(A),C):ga(A)?(l=P,L(A)):(e.consume(A),P)}function C(A){return A===62?B(A):P(A)}function E(A){return bh(A)?(e.consume(A),S):n(A)}function S(A){return A===45||C1(A)?(e.consume(A),S):R(A)}function R(A){return ga(A)?(l=R,L(A)):xh(A)?(e.consume(A),R):B(A)}function I(A){return A===45||C1(A)?(e.consume(A),I):A===47||A===62||S1(A)?M(A):n(A)}function M(A){return A===47?(e.consume(A),B):A===58||A===95||bh(A)?(e.consume(A),_):ga(A)?(l=M,L(A)):xh(A)?(e.consume(A),M):B(A)}function _(A){return A===45||A===46||A===58||A===95||C1(A)?(e.consume(A),_):D(A)}function D(A){return A===61?(e.consume(A),T):ga(A)?(l=D,L(A)):xh(A)?(e.consume(A),D):M(A)}function T(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),o=A,F):ga(A)?(l=T,L(A)):xh(A)?(e.consume(A),T):(e.consume(A),o=void 0,k)}function F(A){return A===o?(e.consume(A),N):A===null?n(A):ga(A)?(l=F,L(A)):(e.consume(A),F)}function N(A){return A===62||A===47||S1(A)?M(A):n(A)}function k(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===62||S1(A)?M(A):(e.consume(A),k)}function L(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),lke(e,j,"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function j(A){return e.enter("htmlTextData"),l(A)}function B(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}}var cke=ske,dke=rl,Hu=UP,fke=nl,E5=NP,pke=E0,Uu=wu,mke=y5,hke=b5,gke=w5,E1=x5,vke={name:"labelEnd",tokenize:Ske,resolveTo:Cke,resolveAll:wke},yke={tokenize:Eke},bke={tokenize:Pke},xke={tokenize:kke};function wke(e){for(var t=-1,n;++t<e.length;)n=e[t][1],!n._used&&(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++);return e}function Cke(e,t){for(var n=e.length,r=0,o,i,a,l,s,u,c;n--;)if(l=e[n][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(u=n);return o={type:e[s][1].type==="labelLink"?"link":"image",start:Uu(e[s][1].start),end:Uu(e[e.length-1][1].end)},i={type:"label",start:Uu(e[s][1].start),end:Uu(e[u][1].end)},a={type:"labelText",start:Uu(e[s+r+2][1].end),end:Uu(e[u-2][1].start)},c=[["enter",o,t],["enter",i,t]],c=Hu(c,e.slice(s+1,s+r+3)),c=Hu(c,[["enter",a,t]]),c=Hu(c,pke(t.parser.constructs.insideSpan.null,e.slice(s+r+4,u-3),t)),c=Hu(c,[["exit",a,t],e[u-2],e[u-1],["exit",i,t]]),c=Hu(c,e.slice(u+1)),c=Hu(c,[["exit",o,t]]),fke(e,s,e.length,c),e}function Ske(e,t,n){for(var r=this,o=r.events.length,i,a;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return l;function l(c){return i?i._inactive?u(c):(a=r.parser.defined.indexOf(E5(r.sliceSerialize({start:i.end,end:r.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelEnd"),s):n(c)}function s(c){return c===40?e.attempt(yke,t,a?t:u)(c):c===91?e.attempt(bke,t,a?e.attempt(xke,t,u):u)(c):a?t(c):u(c)}function u(c){return i._balanced=!0,n(c)}}function Eke(e,t,n){return r;function r(s){return e.enter("resource"),e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),E1(e,o)}function o(s){return s===41?l(s):mke(e,i,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(s)}function i(s){return dke(s)?E1(e,a)(s):l(s)}function a(s){return s===34||s===39||s===40?gke(e,E1(e,l),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(s):l(s)}function l(s){return s===41?(e.enter("resourceMarker"),e.consume(s),e.exit("resourceMarker"),e.exit("resource"),t):n(s)}}function Pke(e,t,n){var r=this;return o;function o(a){return hke.call(r,e,i,n,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.indexOf(E5(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(a):t(a)}}function kke(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}var qP=vke,$ke=qP,Ike={name:"labelStartImage",tokenize:Oke,resolveAll:$ke.resolveAll};function Oke(e,t,n){var r=this;return o;function o(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),i}function i(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}var Mke=Ike,Rke=qP,Tke={name:"labelStartLink",tokenize:_ke,resolveAll:Rke.resolveAll};function _ke(e,t,n){var r=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),i}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}var Fke=Tke,Ake=Nn,Lke={name:"lineEnding",tokenize:Dke};function Dke(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ake(e,t,"linePrefix")}}var Nke=Lke,zke=Rn,jke=tl,Bke=Nn,Hke={name:"thematicBreak",tokenize:Uke};function Uke(e,t,n){var r=0,o;return i;function i(s){return e.enter("thematicBreak"),o=s,a(s)}function a(s){return s===o?(e.enter("thematicBreakSequence"),l(s)):jke(s)?Bke(e,a,"whitespace")(s):r<3||s!==null&&!zke(s)?n(s):(e.exit("thematicBreak"),t(s))}function l(s){return s===o?(e.consume(s),r++,l):(e.exit("thematicBreakSequence"),a(s))}}var P5=Hke,E2=v5,KP=tl,QP=pm,Vke=l5,xv=Nn,k5=S0,Wke=P5,$5={name:"list",tokenize:Kke,continuation:{tokenize:Qke},exit:Xke},Gke={tokenize:Zke,partial:!0},qke={tokenize:Yke,partial:!0};function Kke(e,t,n){var r=this,o=QP(r.events,"linePrefix"),i=0;return a;function a(f){var m=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:E2(f)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Wke,n,s)(f):s(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return E2(f)&&++i<10?(e.consume(f),l):(!r.interrupt||i<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),s(f)):n(f)}function s(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(k5,r.interrupt?n:u,e.attempt(Gke,d,c))}function u(f){return r.containerState.initialBlankLine=!0,o++,d(f)}function c(f){return KP(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return r.containerState.size=o+Vke(r.sliceStream(e.exit("listItemPrefix"))),t(f)}}function Qke(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(k5,o,i);function o(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,xv(e,t,"listItemIndent",r.containerState.size+1)(l)}function i(l){return r.containerState.furtherBlankLines||!KP(l)?(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(qke,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,xv(e,e.attempt($5,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(l)}}function Yke(e,t,n){var r=this;return xv(e,o,"listItemIndent",r.containerState.size+1);function o(i){return QP(r.events,"listItemIndent")===r.containerState.size?t(i):n(i)}}function Xke(e){e.exit(this.containerState.type)}function Zke(e,t,n){var r=this;return xv(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4+1);function o(i){return KP(i)||!QP(r.events,"listItemPrefixWhitespace")?n(i):t(i)}}var Jke=$5,e$e=Rn,P1=wu,t$e=Nn,n$e={name:"setextUnderline",tokenize:o$e,resolveTo:r$e};function r$e(e,t){for(var n=e.length,r,o,i,a;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);return a={type:"setextHeading",start:P1(e[o][1].start),end:P1(e[e.length-1][1].end)},e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=P1(e[i][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function o$e(e,t,n){for(var r=this,o=r.events.length,i,a;o--;)if(r.events[o][1].type!=="lineEnding"&&r.events[o][1].type!=="linePrefix"&&r.events[o][1].type!=="content"){a=r.events[o][1].type==="paragraph";break}return l;function l(c){return!r.lazy&&(r.interrupt||a)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=c,s(c)):n(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),t$e(e,u,"lineSuffix")(c))}function u(c){return c===null||e$e(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}var i$e=n$e;Object.defineProperty(ia,"__esModule",{value:!0});var a$e=Sd,Jw=fEe,l$e=PEe,s$e=REe,I5=NEe,O5=JEe,P2=oPe,k1=cPe,u$e=hPe,c$e=LPe,d$e=jPe,f$e=KPe,p$e=ake,m$e=cke,h$e=qP,g$e=Mke,v$e=Fke,$1=Nke,Kr=Jke,k2=i$e,I1=P5,y$e={42:Kr,43:Kr,45:Kr,48:Kr,49:Kr,50:Kr,51:Kr,52:Kr,53:Kr,54:Kr,55:Kr,56:Kr,57:Kr,62:s$e},b$e={91:c$e},x$e={"-2":k1,"-1":k1,32:k1},w$e={35:f$e,42:I1,45:[k2,I1],60:p$e,61:k2,95:I1,96:P2,126:P2},C$e={38:O5,92:I5},S$e={"-5":$1,"-4":$1,"-3":$1,33:g$e,38:O5,42:Jw,60:[l$e,m$e],91:v$e,92:[d$e,I5],93:h$e,95:Jw,96:u$e},E$e={null:[Jw,a$e.resolver]},P$e={null:[]};ia.contentInitial=b$e;ia.disable=P$e;ia.document=y$e;ia.flow=w$e;ia.flowInitial=x$e;ia.insideSpan=E$e;ia.string=C$e;ia.text=S$e;var k$e=zP,$$e=jP,I$e=BP,$2=Sd,O$e=p5,M$e=VSe,R$e=HP,T$e=ia;function _$e(e){var t=e||{},n={defined:[],constructs:O$e([T$e].concat(R$e(t.extensions))),content:r(k$e),document:r($$e),flow:r(I$e),string:r($2.string),text:r($2.text)};return n;function r(o){return i;function i(a){return M$e(n,o,a)}}}var F$e=_$e,I2=/[\0\t\n\r]/g;function A$e(){var e=!0,t=1,n="",r;return o;function o(i,a,l){var s=[],u,c,d,f,m;for(i=n+i.toString(a),d=0,n="",e&&(i.charCodeAt(0)===65279&&d++,e=void 0);d<i.length;){if(I2.lastIndex=d,u=I2.exec(i),f=u?u.index:i.length,m=i.charCodeAt(f),!u){n=i.slice(d);break}if(m===10&&d===f&&r)s.push(-3),r=void 0;else if(r&&(s.push(-5),r=void 0),d<f&&(s.push(i.slice(d,f)),t+=f-d),m===0)s.push(65533),t++;else if(m===9)for(c=Math.ceil(t/4)*4,s.push(-2);t++<c;)s.push(-1);else m===10?(s.push(-4),t=1):(r=!0,t=1);d=f+1}return l&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}var L$e=A$e,D$e=u5;function N$e(e){for(;!D$e(e););return e}var z$e=N$e,j$e=K$e,B$e=bCe,H$e=fm,M5=i5,O1=NP,U$e=kCe,V$e=F$e,W$e=L$e,G$e=z$e,q$e=g5,wh=Kz;function K$e(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Q$e(n)(G$e(V$e(n).document().write(W$e()(e,t,!0))))}function Q$e(e){var t=e||{},n=Y$e({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(te),autolinkProtocol:D,autolinkEmail:D,atxHeading:u(U),blockQuote:u(me),characterEscape:D,characterReference:D,codeFenced:u(ke),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(ke,c),codeText:u(be,c),codeTextData:D,data:D,codeFlowValue:D,definition:u(ie),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(ye),hardBreakEscape:u(Q),hardBreakTrailing:u(Q),htmlFlow:u(Z,c),htmlFlowData:D,htmlText:u(Z,c),htmlTextData:D,image:u(ae),label:c,link:u(te),listItem:u(ee),listItemValue:y,listOrdered:u(K,h),listUnordered:u(K),paragraph:u(se),reference:re,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(U),strong:u(Ce),thematicBreak:u($e)},exit:{atxHeading:f(),atxHeadingSequence:R,autolink:f(),autolinkEmail:ge,autolinkProtocol:ue,blockQuote:f(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:oe,codeFenced:f(w),codeFencedFence:x,codeFencedFenceInfo:b,codeFencedFenceMeta:g,codeFlowValue:T,codeIndented:f(P),codeText:f(j),codeTextData:T,data:T,definition:f(),definitionDestinationString:S,definitionLabelString:C,definitionTitleString:E,emphasis:f(),hardBreakEscape:f(N),hardBreakTrailing:f(N),htmlFlow:f(k),htmlFlowData:T,htmlText:f(L),htmlTextData:T,image:f(A),label:q,labelText:H,lineEnding:F,link:f(B),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:le,resourceDestinationString:V,resourceTitleString:G,resource:Y,setextHeading:f(_),setextHeadingLineSequence:M,setextHeadingText:I,strong:f(),thematicBreak:f()}},t.mdastExtensions||[]),r={};return o;function o(X){for(var Ee={type:"root",children:[]},Le=[Ee],Te=[],Pe=[],Re=-1,He,it,kt={stack:Le,tokenStack:Te,config:n,enter:d,exit:m,buffer:c,resume:p,setData:a,getData:l};++Re<X.length;)(X[Re][1].type==="listOrdered"||X[Re][1].type==="listUnordered")&&(X[Re][0]==="enter"?Pe.push(Re):(it=Pe.pop(Re),Re=i(X,it,Re)));for(Re=-1;++Re<X.length;)He=n[X[Re][0]],M5.call(He,X[Re][1].type)&&He[X[Re][1].type].call(H$e({sliceSerialize:X[Re][2].sliceSerialize},kt),X[Re][1]);if(Te.length)throw new Error("Cannot close document, a token (`"+Te[Te.length-1].type+"`, "+wh({start:Te[Te.length-1].start,end:Te[Te.length-1].end})+") is still open");for(Ee.position={start:s(X.length?X[0][1].start:{line:1,column:1,offset:0}),end:s(X.length?X[X.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<n.transforms.length;)Ee=n.transforms[Re](Ee)||Ee;return Ee}function i(X,Ee,Le){for(var Te=Ee-1,Pe=-1,Re=!1,He,it,kt,Vt,nt,Sn,en;++Te<=Le;)if(nt=X[Te],nt[1].type==="listUnordered"||nt[1].type==="listOrdered"||nt[1].type==="blockQuote"?(nt[0]==="enter"?Pe++:Pe--,en=void 0):nt[1].type==="lineEndingBlank"?nt[0]==="enter"&&(He&&!en&&!Pe&&!Sn&&(Sn=Te),en=void 0):nt[1].type==="linePrefix"||nt[1].type==="listItemValue"||nt[1].type==="listItemMarker"||nt[1].type==="listItemPrefix"||nt[1].type==="listItemPrefixWhitespace"||(en=void 0),!Pe&&nt[0]==="enter"&&nt[1].type==="listItemPrefix"||Pe===-1&&nt[0]==="exit"&&(nt[1].type==="listUnordered"||nt[1].type==="listOrdered")){if(He){for(it=Te,kt=void 0;it--;)if(Vt=X[it],Vt[1].type==="lineEnding"||Vt[1].type==="lineEndingBlank"){if(Vt[0]==="exit")continue;kt&&(X[kt][1].type="lineEndingBlank",Re=!0),Vt[1].type="lineEnding",kt=it}else if(!(Vt[1].type==="linePrefix"||Vt[1].type==="blockQuotePrefix"||Vt[1].type==="blockQuotePrefixWhitespace"||Vt[1].type==="blockQuoteMarker"||Vt[1].type==="listItemIndent"))break;Sn&&(!kt||Sn<kt)&&(He._spread=!0),He.end=s(kt?X[kt][1].start:nt[1].end),X.splice(kt||Te,0,["exit",He,nt[2]]),Te++,Le++}nt[1].type==="listItemPrefix"&&(He={type:"listItem",_spread:!1,start:s(nt[1].start)},X.splice(Te,0,["enter",He,nt[2]]),Te++,Le++,Sn=void 0,en=!0)}return X[Ee][1]._spread=Re,Le}function a(X,Ee){r[X]=Ee}function l(X){return r[X]}function s(X){return{line:X.line,column:X.column,offset:X.offset}}function u(X,Ee){return Le;function Le(Te){d.call(this,X(Te),Te),Ee&&Ee.call(this,Te)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(X,Ee){return this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push(Ee),X.position={start:s(Ee.start)},X}function f(X){return Ee;function Ee(Le){X&&X.call(this,Le),m.call(this,Le)}}function m(X){var Ee=this.stack.pop(),Le=this.tokenStack.pop();if(Le){if(Le.type!==X.type)throw new Error("Cannot close `"+X.type+"` ("+wh({start:X.start,end:X.end})+"): a different token (`"+Le.type+"`, "+wh({start:Le.start,end:Le.end})+") is open")}else throw new Error("Cannot close `"+X.type+"` ("+wh({start:X.start,end:X.end})+"): its not open");return Ee.position.end=s(X.end),Ee}function p(){return B$e(this.stack.pop())}function h(){a("expectingFirstListItemValue",!0)}function y(X){l("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(X),10),a("expectingFirstListItemValue"))}function b(){var X=this.resume();this.stack[this.stack.length-1].lang=X}function g(){var X=this.resume();this.stack[this.stack.length-1].meta=X}function x(){l("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function w(){var X=this.resume();this.stack[this.stack.length-1].value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function P(){var X=this.resume();this.stack[this.stack.length-1].value=X}function C(X){var Ee=this.resume();this.stack[this.stack.length-1].label=Ee,this.stack[this.stack.length-1].identifier=O1(this.sliceSerialize(X)).toLowerCase()}function E(){var X=this.resume();this.stack[this.stack.length-1].title=X}function S(){var X=this.resume();this.stack[this.stack.length-1].url=X}function R(X){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(X).length)}function I(){a("setextHeadingSlurpLineEnding",!0)}function M(X){this.stack[this.stack.length-1].depth=this.sliceSerialize(X).charCodeAt(0)===61?1:2}function _(){a("setextHeadingSlurpLineEnding")}function D(X){var Ee=this.stack[this.stack.length-1].children,Le=Ee[Ee.length-1];(!Le||Le.type!=="text")&&(Le=_e(),Le.position={start:s(X.start)},this.stack[this.stack.length-1].children.push(Le)),this.stack.push(Le)}function T(X){var Ee=this.stack.pop();Ee.value+=this.sliceSerialize(X),Ee.position.end=s(X.end)}function F(X){var Ee=this.stack[this.stack.length-1];if(l("atHardBreak")){Ee.children[Ee.children.length-1].position.end=s(X.end),a("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(Ee.type)>-1&&(D.call(this,X),T.call(this,X))}function N(){a("atHardBreak",!0)}function k(){var X=this.resume();this.stack[this.stack.length-1].value=X}function L(){var X=this.resume();this.stack[this.stack.length-1].value=X}function j(){var X=this.resume();this.stack[this.stack.length-1].value=X}function B(){var X=this.stack[this.stack.length-1];l("inReference")?(X.type+="Reference",X.referenceType=l("referenceType")||"shortcut",delete X.url,delete X.title):(delete X.identifier,delete X.label,delete X.referenceType),a("referenceType")}function A(){var X=this.stack[this.stack.length-1];l("inReference")?(X.type+="Reference",X.referenceType=l("referenceType")||"shortcut",delete X.url,delete X.title):(delete X.identifier,delete X.label,delete X.referenceType),a("referenceType")}function H(X){this.stack[this.stack.length-2].identifier=O1(this.sliceSerialize(X)).toLowerCase()}function q(){var X=this.stack[this.stack.length-1],Ee=this.resume();this.stack[this.stack.length-1].label=Ee,a("inReference",!0),this.stack[this.stack.length-1].type==="link"?this.stack[this.stack.length-1].children=X.children:this.stack[this.stack.length-1].alt=Ee}function V(){var X=this.resume();this.stack[this.stack.length-1].url=X}function G(){var X=this.resume();this.stack[this.stack.length-1].title=X}function Y(){a("inReference")}function re(){a("referenceType","collapsed")}function le(X){var Ee=this.resume();this.stack[this.stack.length-1].label=Ee,this.stack[this.stack.length-1].identifier=O1(this.sliceSerialize(X)).toLowerCase(),a("referenceType","full")}function J(X){a("characterReferenceType",X.type)}function oe(X){var Ee=this.sliceSerialize(X),Le=l("characterReferenceType"),Te,Pe;Le?(Te=U$e(Ee,Le==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):Te=q$e(Ee),Pe=this.stack.pop(),Pe.value+=Te,Pe.position.end=s(X.end)}function ue(X){T.call(this,X),this.stack[this.stack.length-1].url=this.sliceSerialize(X)}function ge(X){T.call(this,X),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(X)}function me(){return{type:"blockquote",children:[]}}function ke(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function ie(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ye(){return{type:"emphasis",children:[]}}function U(){return{type:"heading",depth:void 0,children:[]}}function Q(){return{type:"break"}}function Z(){return{type:"html",value:""}}function ae(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function K(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function ee(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function se(){return{type:"paragraph",children:[]}}function Ce(){return{type:"strong",children:[]}}function _e(){return{type:"text",value:""}}function $e(){return{type:"thematicBreak"}}}function Y$e(e,t){for(var n=-1;++n<t.length;)X$e(e,t[n]);return e}function X$e(e,t){var n,r;for(n in t)r=M5.call(e,n)?e[n]:e[n]={},n==="canContainEols"||n==="transforms"?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}var Z$e=j$e,J$e=tIe,eIe=Z$e;function tIe(e){var t=this;this.Parser=n;function n(r){return eIe(r,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}var Qo=nIe;function nIe(e,t,n){var r;return n==null&&(typeof t!="object"||Array.isArray(t))&&(n=t,t={}),r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r}var R5=T5;function T5(e){if(e==null)return aIe;if(typeof e=="string")return iIe(e);if(typeof e=="object")return"length"in e?oIe(e):rIe(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function rIe(e){return t;function t(n){var r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function oIe(e){for(var t=[],n=-1;++n<e.length;)t[n]=T5(e[n]);return r;function r(){for(var o=-1;++o<t.length;)if(t[o].apply(this,arguments))return!0;return!1}}function iIe(e){return t;function t(n){return!!(n&&n.type===e)}}function aIe(){return!0}var lIe=sIe;function sIe(e){return e}var _5=k0,uIe=R5,cIe=lIe,F5=!0,A5="skip",eC=!1;k0.CONTINUE=F5;k0.SKIP=A5;k0.EXIT=eC;function k0(e,t,n,r){var o,i;typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),i=uIe(t),o=r?-1:1,a(e,null,[])();function a(l,s,u){var c=typeof l=="object"&&l!==null?l:{},d;return typeof c.type=="string"&&(d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,f.displayName="node ("+cIe(c.type+(d?"<"+d+">":""))+")"),f;function f(){var m=u.concat(l),p=[],h,y;if((!t||i(l,s,u[u.length-1]||null))&&(p=dIe(n(l,u)),p[0]===eC))return p;if(l.children&&p[0]!==A5)for(y=(r?l.children.length:-1)+o;y>-1&&y<l.children.length;){if(h=a(l.children[y],y,m)(),h[0]===eC)return h;y=typeof h[1]=="number"?h[1]:y+o}return p}}}function dIe(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[F5,e]:[e]}var YP=I0,$0=_5,fIe=$0.CONTINUE,pIe=$0.SKIP,mIe=$0.EXIT;I0.CONTINUE=fIe;I0.SKIP=pIe;I0.EXIT=mIe;function I0(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),$0(e,t,o,r);function o(i,a){var l=a[a.length-1],s=l?l.children.indexOf(i):null;return n(i,s,l)}}var L5=z5("start"),D5=z5("end"),N5=XP;XP.start=L5;XP.end=D5;function XP(e){return{start:L5(e),end:D5(e)}}function z5(e){return t.displayName=e,t;function t(n){var r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:isNaN(r.offset)?null:r.offset}}}var hIe=gIe;function gIe(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}var vIe=YP,yIe=bIe,j5={}.hasOwnProperty;function bIe(e,t){return wIe(xIe(e))}function xIe(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return vIe(e,"definition",n),t;function n(r){var o=B5(r.identifier);j5.call(t,o)||(t[o]=r)}}function wIe(e){return t;function t(n){var r=n&&B5(n);return r&&j5.call(e,r)?e[r]:null}}function B5(e){return e.toUpperCase()}var M1,O2;function Vr(){if(O2)return M1;O2=1,M1=t;var e=H5();function t(n,r){for(var o=r.children||[],i=o.length,a=[],l=-1,s,u;++l<i;)s=e(n,o[l],r),s&&(l&&o[l-1].type==="break"&&(s.value&&(s.value=s.value.replace(/^\s+/,"")),u=s.children&&s.children[0],u&&u.value&&(u.value=u.value.replace(/^\s+/,""))),a=a.concat(s));return a}return M1}var R1,M2;function H5(){if(M2)return R1;M2=1,R1=o;var e=Qo,t=Vr(),n={}.hasOwnProperty;function r(l,s){return i(s)?l.augment(s,e("text",s.value)):l(s,"div",t(l,s))}function o(l,s,u){var c=s&&s.type,d;if(!c)throw new Error("Expected node, got `"+s+"`");return n.call(l.handlers,c)?d=l.handlers[c]:l.passThrough&&l.passThrough.indexOf(c)>-1?d=a:d=l.unknownHandler,(typeof d=="function"?d:r)(l,s,u)}function i(l){var s=l.data||{};return n.call(s,"hName")||n.call(s,"hProperties")||n.call(s,"hChildren")?!1:"value"in l}function a(l,s){var u;return s.children?(u=Object.assign({},s),u.children=t(l,s),u):s}return R1}var U5=CIe;function CIe(e,t){return e(t,"hr")}var hm=SIe,T1=Qo;function SIe(e,t){var n=[],r=-1,o=e.length;for(t&&n.push(T1("text",`
`));++r<o;)r&&n.push(T1("text",`
`)),n.push(e[r]);return t&&e.length>0&&n.push(T1("text",`
`)),n}var V5=kIe,EIe=hm,PIe=Vr();function kIe(e,t){var n={},r=t.ordered?"ol":"ul",o,i=-1,a;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start),o=PIe(e,t),a=o.length;++i<a;)if(o[i].properties.className&&o[i].properties.className.indexOf("task-list-item")!==-1){n.className=["contains-task-list"];break}return e(t,r,n,EIe(o,!0))}var $Ie=RIe,IIe=U5,OIe=V5,MIe=hm;function RIe(e){for(var t=e.footnoteById,n=e.footnoteOrder,r=n.length,o=-1,i=[],a,l,s,u;++o<r;)a=t[n[o].toUpperCase()],a&&(s=a.children.concat(),u=s[s.length-1],l={type:"link",url:"#fnref-"+a.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},(!u||u.type!=="paragraph")&&(u={type:"paragraph",children:[]},s.push(u)),u.children.push(l),i.push({type:"listItem",data:{hProperties:{id:"fn-"+a.identifier}},children:s,position:a.position}));return i.length===0?null:e(null,"div",{className:["footnotes"]},MIe([IIe(e),OIe(e,{type:"list",ordered:!0,children:i})],!0))}var TIe=AIe,_Ie=hm,FIe=Vr();function AIe(e,t){return e(t,"blockquote",_Ie(FIe(e,t),!0))}var LIe=NIe,DIe=Qo;function NIe(e,t){return[e(t,"br"),DIe("text",`
`)]}var zIe=BIe,jIe=Qo;function BIe(e,t){var n=t.value?t.value+`
`:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={},i;return r&&(o.className=["language-"+r]),i=e(t,"code",o,[jIe("text",n)]),t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])}var HIe=VIe,UIe=Vr();function VIe(e,t){return e(t,"del",UIe(e,t))}var WIe=qIe,GIe=Vr();function qIe(e,t){return e(t,"em",GIe(e,t))}var W5=QIe,KIe=Qo;function QIe(e,t){var n=e.footnoteOrder,r=String(t.identifier);return n.indexOf(r)===-1&&n.push(r),e(t.position,"sup",{id:"fnref-"+r},[e(t,"a",{href:"#fn-"+r,className:["footnote-ref"]},[KIe("text",t.label||r)])])}var YIe=ZIe,XIe=W5;function ZIe(e,t){for(var n=e.footnoteById,r=e.footnoteOrder,o=1;o in n;)o++;return o=String(o),r.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},XIe(e,{type:"footnoteReference",identifier:o,position:t.position})}var JIe=tOe,eOe=Vr();function tOe(e,t){return e(t,"h"+t.depth,eOe(e,t))}var nOe=oOe,rOe=Qo;function oOe(e,t){return e.dangerous?e.augment(t,rOe("raw",t.value)):null}var R2={};function iOe(e){var t,n,r=R2[e];if(r)return r;for(r=R2[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function O0(e,t,n){var r,o,i,a,l,s="";for(typeof t!="string"&&(n=t,t=O0.defaultChars),typeof n>"u"&&(n=!0),l=iOe(t),r=0,o=e.length;r<o;r++){if(i=e.charCodeAt(r),n&&i===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){s+=e.slice(r,r+3),r+=2;continue}if(i<128){s+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[r])}return s}O0.defaultChars=";/?:@&=+$,-_.!~*'()#";O0.componentChars="-_.!~*'()";var M0=O0,G5=lOe,_1=Qo,aOe=Vr();function lOe(e,t){var n=t.referenceType,r="]",o,i,a;return n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference"?_1("text","!["+t.alt+r):(o=aOe(e,t),i=o[0],i&&i.type==="text"?i.value="["+i.value:o.unshift(_1("text","[")),a=o[o.length-1],a&&a.type==="text"?a.value+=r:o.push(_1("text",r)),o)}var sOe=dOe,uOe=M0,cOe=G5;function dOe(e,t){var n=e.definition(t.identifier),r;return n?(r={src:uOe(n.url||""),alt:t.alt},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)):cOe(e,t)}var fOe=M0,pOe=mOe;function mOe(e,t){var n={src:fOe(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}var hOe=vOe,gOe=Qo;function vOe(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[gOe("text",n)])}var yOe=COe,bOe=M0,xOe=G5,wOe=Vr();function COe(e,t){var n=e.definition(t.identifier),r;return n?(r={href:bOe(n.url||"")},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,wOe(e,t))):xOe(e,t)}var SOe=M0,EOe=Vr(),POe=kOe;function kOe(e,t){var n={href:SOe(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,EOe(e,t))}var $Oe=OOe,F1=Qo,IOe=Vr();function OOe(e,t,n){var r=IOe(e,t),o=r[0],i=n?MOe(n):q5(t),a={},l=[],s,u,c;for(typeof t.checked=="boolean"&&((!o||o.tagName!=="p")&&(o=e(null,"p",[]),r.unshift(o)),o.children.length>0&&o.children.unshift(F1("text"," ")),o.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),a.className=["task-list-item"]),s=r.length,u=-1;++u<s;)c=r[u],(i||u!==0||c.tagName!=="p")&&l.push(F1("text",`
`)),c.tagName==="p"&&!i?l=l.concat(c.children):l.push(c);return s&&(i||c.tagName!=="p")&&l.push(F1("text",`
`)),e(t,"li",a,l)}function MOe(e){for(var t=e.spread,n=e.children,r=n.length,o=-1;!t&&++o<r;)t=q5(n[o]);return t}function q5(e){var t=e.spread;return t??e.children.length>1}var ROe=_Oe,TOe=Vr();function _Oe(e,t){return e(t,"p",TOe(e,t))}var FOe=NOe,AOe=Qo,LOe=hm,DOe=Vr();function NOe(e,t){return e.augment(t,AOe("root",LOe(DOe(e,t))))}var zOe=BOe,jOe=Vr();function BOe(e,t){return e(t,"strong",jOe(e,t))}var HOe=VOe,T2=N5,Ch=hm,UOe=Vr();function VOe(e,t){for(var n=t.children,r=n.length,o=t.align||[],i=o.length,a=[],l,s,u,c,d;r--;){for(s=n[r].children,c=r===0?"th":"td",l=i||s.length,u=[];l--;)d=s[l],u[l]=e(d,c,{align:o[l]},d?UOe(e,d):[]);a[r]=e(n[r],"tr",Ch(u,!0))}return e(t,"table",Ch([e(a[0].position,"thead",Ch([a[0]],!0))].concat(a[1]?e({start:T2.start(a[1]),end:T2.end(a[a.length-1])},"tbody",Ch(a.slice(1),!0)):[]),!0))}var WOe=qOe,GOe=Qo;function qOe(e,t){return e.augment(t,GOe("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}var KOe={blockquote:TIe,break:LIe,code:zIe,delete:HIe,emphasis:WIe,footnoteReference:W5,footnote:YIe,heading:JIe,html:nOe,imageReference:sOe,image:pOe,inlineCode:hOe,linkReference:yOe,link:POe,listItem:$Oe,list:V5,paragraph:ROe,root:FOe,strong:zOe,table:HOe,text:WOe,thematicBreak:U5,toml:Sh,yaml:Sh,definition:Sh,footnoteDefinition:Sh};function Sh(){return null}var QOe=iMe,YOe=Qo,XOe=YP,_2=N5,ZOe=hIe,JOe=yIe,eMe=H5(),tMe=$Ie,nMe=KOe,rMe={}.hasOwnProperty,F2=!1;function oMe(e,t){var n=t||{};n.allowDangerousHTML!==void 0&&!F2&&(F2=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,o={};return a.dangerous=r,a.definition=JOe(e),a.footnoteById=o,a.footnoteOrder=[],a.augment=i,a.handlers=Object.assign({},nMe,n.handlers),a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,XOe(e,"footnoteDefinition",l),a;function i(s,u){var c,d;return s&&s.data&&(c=s.data,c.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=c.hName),u.type==="element"&&c.hProperties&&(u.properties=Object.assign({},u.properties,c.hProperties)),u.children&&c.hChildren&&(u.children=c.hChildren)),d=s&&s.position?s:{position:s},ZOe(d)||(u.position={start:_2.start(d),end:_2.end(d)}),u}function a(s,u,c,d){return d==null&&typeof c=="object"&&"length"in c&&(d=c,c={}),i(s,{type:"element",tagName:u,properties:c||{},children:d||[]})}function l(s){var u=String(s.identifier).toUpperCase();rMe.call(o,u)||(o[u]=s)}}function iMe(e,t){var n=oMe(e,t),r=eMe(n,e),o=tMe(n);return o&&(r.children=r.children.concat(YOe("text",`
`),o)),r}var aMe=QOe,K5=aMe,lMe=sMe;function sMe(e,t){return e&&!e.process&&(t=e,e=null),e?uMe(e,t):cMe(t)}function uMe(e,t){return n;function n(r,o,i){e.run(K5(r,t),o,a);function a(l){i(l)}}}function cMe(e){return t;function t(n){return K5(n,e)}}var dMe=pMe,fMe=Object.prototype.hasOwnProperty;function pMe(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)fMe.call(n,r)&&(e[r]=n[r])}return e}var Q5=Y5,ZP=Y5.prototype;ZP.space=null;ZP.normal={};ZP.property={};function Y5(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var A2=dMe,mMe=Q5,X5=hMe;function hMe(e){for(var t=e.length,n=[],r=[],o=-1,i,a;++o<t;)i=e[o],n.push(i.property),r.push(i.normal),a=i.space;return new mMe(A2.apply(null,n),A2.apply(null,r),a)}var Z5=gMe;function gMe(e){return e.toLowerCase()}var J5=ej,Yo=ej.prototype;Yo.space=null;Yo.attribute=null;Yo.property=null;Yo.boolean=!1;Yo.booleanish=!1;Yo.overloadedBoolean=!1;Yo.number=!1;Yo.commaSeparated=!1;Yo.spaceSeparated=!1;Yo.commaOrSpaceSeparated=!1;Yo.mustUseProperty=!1;Yo.defined=!1;function ej(e,t){this.property=e,this.attribute=t}var vi={},vMe=0;vi.boolean=Cu();vi.booleanish=Cu();vi.overloadedBoolean=Cu();vi.number=Cu();vi.spaceSeparated=Cu();vi.commaSeparated=Cu();vi.commaOrSpaceSeparated=Cu();function Cu(){return Math.pow(2,++vMe)}var tj=J5,L2=vi,nj=JP;JP.prototype=new tj;JP.prototype.defined=!0;var rj=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],yMe=rj.length;function JP(e,t,n,r){var o=-1,i;for(D2(this,"space",r),tj.call(this,e,t);++o<yMe;)i=rj[o],D2(this,i,(n&L2[i])===L2[i])}function D2(e,t,n){n&&(e[t]=n)}var N2=Z5,bMe=Q5,xMe=nj,Ed=wMe;function wMe(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},o=e.properties,i=e.transform,a={},l={},s,u;for(s in o)u=new xMe(s,i(r,s),o[s],t),n.indexOf(s)!==-1&&(u.mustUseProperty=!0),a[s]=u,l[N2(s)]=s,l[N2(u.attribute)]=s;return new bMe(a,l,t)}var CMe=Ed,oj=CMe({space:"xlink",transform:SMe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function SMe(e,t){return"xlink:"+t.slice(5).toLowerCase()}var EMe=Ed,ij=EMe({space:"xml",transform:PMe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function PMe(e,t){return"xml:"+t.slice(3).toLowerCase()}var aj=kMe;function kMe(e,t){return t in e?e[t]:t}var $Me=aj,lj=IMe;function IMe(e,t){return $Me(e,t.toLowerCase())}var OMe=Ed,MMe=lj,sj=OMe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:MMe,properties:{xmlns:null,xmlnsXLink:null}}),ek=vi,RMe=Ed,Or=ek.booleanish,mo=ek.number,ms=ek.spaceSeparated,uj=RMe({transform:TMe,properties:{ariaActiveDescendant:null,ariaAtomic:Or,ariaAutoComplete:null,ariaBusy:Or,ariaChecked:Or,ariaColCount:mo,ariaColIndex:mo,ariaColSpan:mo,ariaControls:ms,ariaCurrent:null,ariaDescribedBy:ms,ariaDetails:null,ariaDisabled:Or,ariaDropEffect:ms,ariaErrorMessage:null,ariaExpanded:Or,ariaFlowTo:ms,ariaGrabbed:Or,ariaHasPopup:null,ariaHidden:Or,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ms,ariaLevel:mo,ariaLive:null,ariaModal:Or,ariaMultiLine:Or,ariaMultiSelectable:Or,ariaOrientation:null,ariaOwns:ms,ariaPlaceholder:null,ariaPosInSet:mo,ariaPressed:Or,ariaReadOnly:Or,ariaRelevant:null,ariaRequired:Or,ariaRoleDescription:ms,ariaRowCount:mo,ariaRowIndex:mo,ariaRowSpan:mo,ariaSelected:Or,ariaSetSize:mo,ariaSort:null,ariaValueMax:mo,ariaValueMin:mo,ariaValueNow:mo,ariaValueText:null,role:null}});function TMe(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Pd=vi,_Me=Ed,FMe=lj,at=Pd.boolean,AMe=Pd.overloadedBoolean,of=Pd.booleanish,Wt=Pd.number,gr=Pd.spaceSeparated,Eh=Pd.commaSeparated,LMe=_Me({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:FMe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eh,acceptCharset:gr,accessKey:gr,action:null,allow:null,allowFullScreen:at,allowPaymentRequest:at,allowUserMedia:at,alt:null,as:null,async:at,autoCapitalize:null,autoComplete:gr,autoFocus:at,autoPlay:at,capture:at,charSet:null,checked:at,cite:null,className:gr,cols:Wt,colSpan:null,content:null,contentEditable:of,controls:at,controlsList:gr,coords:Wt|Eh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:at,defer:at,dir:null,dirName:null,disabled:at,download:AMe,draggable:of,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:at,formTarget:null,headers:gr,height:Wt,hidden:at,high:Wt,href:null,hrefLang:null,htmlFor:gr,httpEquiv:gr,id:null,imageSizes:null,imageSrcSet:Eh,inputMode:null,integrity:null,is:null,isMap:at,itemId:null,itemProp:gr,itemRef:gr,itemScope:at,itemType:gr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:at,low:Wt,manifest:null,max:null,maxLength:Wt,media:null,method:null,min:null,minLength:Wt,multiple:at,muted:at,name:null,nonce:null,noModule:at,noValidate:at,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:at,optimum:Wt,pattern:null,ping:gr,placeholder:null,playsInline:at,poster:null,preload:null,readOnly:at,referrerPolicy:null,rel:gr,required:at,reversed:at,rows:Wt,rowSpan:Wt,sandbox:gr,scope:null,scoped:at,seamless:at,selected:at,shape:null,size:Wt,sizes:null,slot:null,span:Wt,spellCheck:of,src:null,srcDoc:null,srcLang:null,srcSet:Eh,start:Wt,step:null,style:null,tabIndex:Wt,target:null,title:null,translate:null,type:null,typeMustMatch:at,useMap:null,value:of,width:Wt,wrap:null,align:null,aLink:null,archive:gr,axis:null,background:null,bgColor:null,border:Wt,borderColor:null,bottomMargin:Wt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:at,declare:at,event:null,face:null,frame:null,frameBorder:null,hSpace:Wt,leftMargin:Wt,link:null,longDesc:null,lowSrc:null,marginHeight:Wt,marginWidth:Wt,noResize:at,noHref:at,noShade:at,noWrap:at,object:null,profile:null,prompt:null,rev:null,rightMargin:Wt,rules:null,scheme:null,scrolling:of,standby:null,summary:null,text:null,topMargin:Wt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Wt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:at,disableRemotePlayback:at,prefix:null,property:null,results:Wt,security:null,unselectable:null}}),DMe=X5,NMe=oj,zMe=ij,jMe=sj,BMe=uj,HMe=LMe,UMe=DMe([zMe,NMe,jMe,BMe,HMe]);const VMe=YP;var WMe=GMe;function GMe(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{VMe(n,"element",t)};function t(n,r,o){const i=n,a=o;let l;if(e.allowedElements?l=!e.allowedElements.includes(i.tagName):e.disallowedElements&&(l=e.disallowedElements.includes(i.tagName)),!l&&e.allowElement&&typeof r=="number"&&(l=!e.allowElement(i,r,a)),l&&typeof r=="number")return e.unwrapDisallowed&&i.children?a.children.splice(r,1,...i.children):a.children.splice(r,1),r}}const z2=["http","https","mailto","tel"];var qMe=KMe;function KMe(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let o=-1;for(;++o<z2.length;){const i=z2[o];if(r===i.length&&t.slice(0,i.length).toLowerCase()===i)return t}return o=t.indexOf("?"),o!==-1&&r>o||(o=t.indexOf("#"),o!==-1&&r>o)?t:"javascript:void(0)"}var tk={},cj={exports:{}},jt={};/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var R0=60103,T0=60106,gm=60107,vm=60108,ym=60114,bm=60109,xm=60110,wm=60112,Cm=60113,nk=60120,Sm=60115,Em=60116,dj=60121,fj=60122,pj=60117,mj=60129,hj=60131;if(typeof Symbol=="function"&&Symbol.for){var Kn=Symbol.for;R0=Kn("react.element"),T0=Kn("react.portal"),gm=Kn("react.fragment"),vm=Kn("react.strict_mode"),ym=Kn("react.profiler"),bm=Kn("react.provider"),xm=Kn("react.context"),wm=Kn("react.forward_ref"),Cm=Kn("react.suspense"),nk=Kn("react.suspense_list"),Sm=Kn("react.memo"),Em=Kn("react.lazy"),dj=Kn("react.block"),fj=Kn("react.server.block"),pj=Kn("react.fundamental"),mj=Kn("react.debug_trace_mode"),hj=Kn("react.legacy_hidden")}function yi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R0:switch(e=e.type,e){case gm:case ym:case vm:case Cm:case nk:return e;default:switch(e=e&&e.$$typeof,e){case xm:case wm:case Em:case Sm:case bm:return e;default:return t}}case T0:return t}}}var QMe=bm,YMe=R0,XMe=wm,ZMe=gm,JMe=Em,eRe=Sm,tRe=T0,nRe=ym,rRe=vm,oRe=Cm;jt.ContextConsumer=xm;jt.ContextProvider=QMe;jt.Element=YMe;jt.ForwardRef=XMe;jt.Fragment=ZMe;jt.Lazy=JMe;jt.Memo=eRe;jt.Portal=tRe;jt.Profiler=nRe;jt.StrictMode=rRe;jt.Suspense=oRe;jt.isAsyncMode=function(){return!1};jt.isConcurrentMode=function(){return!1};jt.isContextConsumer=function(e){return yi(e)===xm};jt.isContextProvider=function(e){return yi(e)===bm};jt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R0};jt.isForwardRef=function(e){return yi(e)===wm};jt.isFragment=function(e){return yi(e)===gm};jt.isLazy=function(e){return yi(e)===Em};jt.isMemo=function(e){return yi(e)===Sm};jt.isPortal=function(e){return yi(e)===T0};jt.isProfiler=function(e){return yi(e)===ym};jt.isStrictMode=function(e){return yi(e)===vm};jt.isSuspense=function(e){return yi(e)===Cm};jt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gm||e===ym||e===mj||e===vm||e===Cm||e===nk||e===hj||typeof e=="object"&&e!==null&&(e.$$typeof===Em||e.$$typeof===Sm||e.$$typeof===bm||e.$$typeof===xm||e.$$typeof===wm||e.$$typeof===pj||e.$$typeof===dj||e[0]===fj)};jt.typeOf=yi;cj.exports=jt;var iRe=cj.exports,Pm=vi,aRe=Ed,lRe=aj,sRe=Pm.boolean,Ye=Pm.number,j2=Pm.spaceSeparated,A1=Pm.commaSeparated,ho=Pm.commaOrSpaceSeparated,uRe=aRe({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:lRe,properties:{about:ho,accentHeight:Ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ye,amplitude:Ye,arabicForm:null,ascent:Ye,attributeName:null,attributeType:null,azimuth:Ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ye,by:null,calcMode:null,capHeight:Ye,className:j2,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ye,diffuseConstant:Ye,direction:null,display:null,dur:null,divisor:Ye,dominantBaseline:null,download:sRe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ye,enableBackground:null,end:null,event:null,exponent:Ye,externalResourcesRequired:null,fill:null,fillOpacity:Ye,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:A1,g2:A1,glyphName:A1,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ye,horizOriginX:Ye,horizOriginY:Ye,id:null,ideographic:Ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ye,k:Ye,k1:Ye,k2:Ye,k3:Ye,k4:Ye,kernelMatrix:ho,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ye,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ye,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ye,overlineThickness:Ye,paintOrder:null,panose1:null,path:null,pathLength:Ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:j2,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ye,pointsAtY:Ye,pointsAtZ:Ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ho,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ho,rev:ho,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ho,requiredFeatures:ho,requiredFonts:ho,requiredFormats:ho,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ye,specularExponent:Ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ye,strikethroughThickness:Ye,string:null,stroke:null,strokeDashArray:ho,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ye,strokeOpacity:Ye,strokeWidth:null,style:null,surfaceScale:Ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ho,tabIndex:Ye,tableValues:null,target:null,targetX:Ye,targetY:Ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ho,to:null,transform:null,u1:null,u2:null,underlinePosition:Ye,underlineThickness:Ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ye,values:null,vAlphabetic:Ye,vMathematical:Ye,vectorEffect:null,vHanging:Ye,vIdeographic:Ye,version:null,vertAdvY:Ye,vertOriginX:Ye,vertOriginY:Ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),cRe=X5,dRe=oj,fRe=ij,pRe=sj,mRe=uj,hRe=uRe,gRe=cRe([fRe,dRe,pRe,mRe,hRe]),vRe=Z5,yRe=nj,bRe=J5,rk="data",xRe=SRe,wRe=/^data[-\w.:]+$/i,gj=/-[a-z]/g,CRe=/[A-Z]/g;function SRe(e,t){var n=vRe(t),r=t,o=bRe;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===rk&&wRe.test(t)&&(t.charAt(4)==="-"?r=ERe(t):t=PRe(t),o=yRe),new o(r,t))}function ERe(e){var t=e.slice(5).replace(gj,$Re);return rk+t.charAt(0).toUpperCase()+t.slice(1)}function PRe(e){var t=e.slice(4);return gj.test(t)?e:(t=t.replace(CRe,kRe),t.charAt(0)!=="-"&&(t="-"+t),rk+t)}function kRe(e){return"-"+e.toLowerCase()}function $Re(e){return e.charAt(1).toUpperCase()}const IRe="classID",ORe="datatype",MRe="itemID",RRe="strokeDasharray",TRe="strokeDashoffset",_Re="strokeLinecap",FRe="strokeLinejoin",ARe="strokeMiterlimit",LRe="typeof",DRe="xlinkActuate",NRe="xlinkArcrole",zRe="xlinkHref",jRe="xlinkRole",BRe="xlinkShow",HRe="xlinkTitle",URe="xlinkType",VRe="xmlnsXlink",WRe={classId:IRe,dataType:ORe,itemId:MRe,strokeDashArray:RRe,strokeDashOffset:TRe,strokeLineCap:_Re,strokeLineJoin:FRe,strokeMiterLimit:ARe,typeOf:LRe,xLinkActuate:DRe,xLinkArcRole:NRe,xLinkHref:zRe,xLinkRole:jRe,xLinkShow:BRe,xLinkTitle:HRe,xLinkType:URe,xmlnsXLink:VRe};var ok={};ok.parse=KRe;ok.stringify=QRe;var B2="",GRe=" ",qRe=/[ \t\n\r\f]+/g;function KRe(e){var t=String(e||B2).trim();return t===B2?[]:t.split(qRe)}function QRe(e){return e.join(GRe).trim()}var ik={};ik.parse=YRe;ik.stringify=XRe;var tC=",",H2=" ",hf="";function YRe(e){for(var t=[],n=String(e||hf),r=n.indexOf(tC),o=0,i=!1,a;!i;)r===-1&&(r=n.length,i=!0),a=n.slice(o,r).trim(),(a||!i)&&t.push(a),o=r+1,r=n.indexOf(tC,o);return t}function XRe(e,t){var n=t||{},r=n.padLeft===!1?hf:H2,o=n.padRight?H2:hf;return e[e.length-1]===hf&&(e=e.concat(hf)),e.join(o+tC+r).trim()}var U2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ZRe=/\n/g,JRe=/^\s*/,e2e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,t2e=/^:\s*/,n2e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,r2e=/^[;\s]*/,o2e=/^\s+|\s+$/g,i2e=`
`,V2="/",W2="*",ks="",a2e="comment",l2e="declaration",s2e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(p){var h=p.match(ZRe);h&&(n+=h.length);var y=p.lastIndexOf(i2e);r=~y?p.length-y:r+p.length}function i(){var p={line:n,column:r};return function(h){return h.position=new a(p),u(),h}}function a(p){this.start=p,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(p){var h=new Error(t.source+":"+n+":"+r+": "+p);if(h.reason=p,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function s(p){var h=p.exec(e);if(h){var y=h[0];return o(y),e=e.slice(y.length),h}}function u(){s(JRe)}function c(p){var h;for(p=p||[];h=d();)h!==!1&&p.push(h);return p}function d(){var p=i();if(!(V2!=e.charAt(0)||W2!=e.charAt(1))){for(var h=2;ks!=e.charAt(h)&&(W2!=e.charAt(h)||V2!=e.charAt(h+1));)++h;if(h+=2,ks===e.charAt(h-1))return l("End of comment missing");var y=e.slice(2,h-2);return r+=2,o(y),e=e.slice(h),r+=2,p({type:a2e,comment:y})}}function f(){var p=i(),h=s(e2e);if(h){if(d(),!s(t2e))return l("property missing ':'");var y=s(n2e),b=p({type:l2e,property:G2(h[0].replace(U2,ks)),value:y?G2(y[0].replace(U2,ks)):ks});return s(r2e),b}}function m(){var p=[];c(p);for(var h;h=f();)h!==!1&&(p.push(h),c(p));return p}return u(),m()};function G2(e){return e?e.replace(o2e,ks):ks}var u2e=s2e;function c2e(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=u2e(e),i=typeof t=="function",a,l,s=0,u=o.length;s<u;s++)r=o[s],a=r.property,l=r.value,i?t(a,l,r):l&&(n||(n={}),n[a]=l);return n}var d2e=c2e;const L1=v,f2e=iRe,p2e=gRe,m2e=xRe,q2=WRe,h2e=ok,g2e=ik,v2e=d2e;tk.hastToReact=yj;tk.hastChildrenToReact=vj;const nC={}.hasOwnProperty,y2e=new Set(["table","thead","tbody","tfoot","tr"]);function vj(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(yj(e,o,r,t)):o.type==="text"?(t.type!=="element"||!y2e.has(t.tagName)||o.value!==`
`)&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function yj(e,t,n,r){const o=e.options,i=e.schema,a=t.tagName,l={};let s=i,u;if(i.space==="html"&&a==="svg"&&(s=p2e,e.schema=s),t.properties)for(u in t.properties)nC.call(t.properties,u)&&x2e(l,u,t.properties[u],e);(a==="ol"||a==="ul")&&e.listDepth++;const c=vj(e,t);(a==="ol"||a==="ul")&&e.listDepth--,e.schema=i;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&nC.call(o.components,a)?o.components[a]:a,m=typeof f=="string"||f===L1.Fragment;if(!f2e.isValidElementType(f))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(l.key=[a,d.start.line,d.start.column,n].join("-"),a==="a"&&o.linkTarget&&(l.target=typeof o.linkTarget=="function"?o.linkTarget(l.href,t.children,l.title):o.linkTarget),a==="a"&&o.transformLinkUri&&(l.href=o.transformLinkUri(l.href,t.children,l.title)),!m&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!m&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(l.level=parseInt(a.charAt(1),10)),a==="img"&&o.transformImageUri&&(l.src=o.transformImageUri(l.src,l.alt,l.title)),!m&&a==="li"&&r.type==="element"){const p=b2e(t);l.checked=p&&p.properties?!!p.properties.checked:null,l.index=D1(r,t),l.ordered=r.tagName==="ol"}return!m&&(a==="ol"||a==="ul")&&(l.ordered=a==="ol",l.depth=e.listDepth),(a==="td"||a==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),m||(l.isHeader=a==="th")),!m&&a==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),o.sourcePos&&(l["data-sourcepos"]=S2e(d)),!m&&o.rawSourcePos&&(l.sourcePosition=t.position),!m&&o.includeElementIndex&&(l.index=D1(r,t),l.siblingCount=D1(r)),m||(l.node=t),c.length>0?L1.createElement(f,l,c):L1.createElement(f,l)}function b2e(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function D1(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function x2e(e,t,n,r){const o=m2e(r.schema,t);let i=n;i==null||i!==i||(i&&typeof i=="object"&&"length"in i&&(i=(o.commaSeparated?g2e:h2e).stringify(i)),o.property==="style"&&typeof i=="string"&&(i=w2e(i)),o.space&&o.property?e[nC.call(q2,o.property)?q2[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function w2e(e){const t={};try{v2e(e,n)}catch{}return t;function n(r,o){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[i.replace(/-([a-z])/g,C2e)]=o}}function C2e(e,t){return t.toUpperCase()}function S2e(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(t=>String(t)).join("")}const N1=v,K2=Zz,E2e=dCe,P2e=J$e,k2e=lMe,pt=SD,$2e=UMe,I2e=WMe,bj=qMe,O2e=tk.hastChildrenToReact;var M2e=_0;const Q2={}.hasOwnProperty,R2e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ph={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function _0(e){for(const i in Ph)if(Q2.call(Ph,i)&&Q2.call(e,i)){const a=Ph[i];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${i}\` (see <${R2e}#${a.id}> for more info)`),delete Ph[i]}const t=E2e().use(P2e).use(e.remarkPlugins||e.plugins||[]).use(k2e,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(I2e,e);let n;typeof e.children=="string"?n=K2(e.children):(e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=K2());const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let o=N1.createElement(N1.Fragment,{},O2e({options:e,schema:$2e,listDepth:0},r));return e.className&&(o=N1.createElement("div",{className:e.className},o)),o}_0.defaultProps={transformLinkUri:bj};_0.propTypes={children:pt.string,className:pt.string,allowElement:pt.func,allowedElements:pt.arrayOf(pt.string),disallowedElements:pt.arrayOf(pt.string),unwrapDisallowed:pt.bool,remarkPlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),rehypePlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),sourcePos:pt.bool,rawSourcePos:pt.bool,skipHtml:pt.bool,includeElementIndex:pt.bool,transformLinkUri:pt.oneOfType([pt.func,pt.bool]),linkTarget:pt.oneOfType([pt.func,pt.string]),transformImageUri:pt.func,components:pt.object};_0.uriTransformer=bj;const T2e=Xi(M2e);var xj={},wj=P0,Cj=mm,Sj=GP,_2e=Rn,Ej=VP,Pj=WP,F2e={tokenize:N2e,partial:!0},kj={tokenize:z2e,partial:!0},$j={tokenize:j2e,partial:!0},$c={tokenize:H2e,partial:!0},Ij={tokenize:B2e,partial:!0},Oj={tokenize:L2e,previous:Tj},Mj={tokenize:D2e,previous:lk},ol={tokenize:A2e,previous:_j},aa={};xj.text=aa;var hs=48;for(;hs<123;)aa[hs]=ol,hs++,hs===58?hs=65:hs===91&&(hs=97);aa[43]=ol;aa[45]=ol;aa[46]=ol;aa[95]=ol;aa[72]=[ol,Mj];aa[104]=[ol,Mj];aa[87]=[ol,Oj];aa[119]=[ol,Oj];function A2e(e,t,n){var r=this,o;return i;function i(f){return!Y2(f)||!_j(r.previous)||sk(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Y2(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check($c,d,s)(f):f===45||f===95?e.check($c,n,u)(f):Cj(f)?(e.consume(f),l):d(f)}function s(f){return e.consume(f),o=!0,l}function u(f){return e.consume(f),c}function c(f){return f===46?e.check($c,n,s)(f):l(f)}function d(f){return o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function L2e(e,t,n){var r=this;return o;function o(a){return a!==87&&a-32!==87||!Tj(r.previous)||sk(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(F2e,e.attempt(kj,e.attempt($j,i),n),n)(a))}function i(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function D2e(e,t,n){var r=this;return o;function o(p){return p!==72&&p-32!==72||!lk(r.previous)||sk(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(p),i)}function i(p){return p===84||p-32===84?(e.consume(p),a):n(p)}function a(p){return p===84||p-32===84?(e.consume(p),l):n(p)}function l(p){return p===80||p-32===80?(e.consume(p),s):n(p)}function s(p){return p===83||p-32===83?(e.consume(p),u):u(p)}function u(p){return p===58?(e.consume(p),c):n(p)}function c(p){return p===47?(e.consume(p),d):n(p)}function d(p){return p===47?(e.consume(p),f):n(p)}function f(p){return Sj(p)||Pj(p)||Ej(p)?n(p):e.attempt(kj,e.attempt($j,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function N2e(e,t,n){return r;function r(s){return e.consume(s),o}function o(s){return s===87||s-32===87?(e.consume(s),i):n(s)}function i(s){return s===87||s-32===87?(e.consume(s),a):n(s)}function a(s){return s===46?(e.consume(s),l):n(s)}function l(s){return s===null||_2e(s)?n(s):t(s)}}function z2e(e,t,n){var r,o;return i;function i(s){return s===38?e.check(Ij,l,a)(s):s===46||s===95?e.check($c,l,a)(s):Sj(s)||Pj(s)||s!==45&&Ej(s)?l(s):(e.consume(s),i)}function a(s){return s===46?(o=r,r=void 0,e.consume(s),i):(s===95&&(r=!0),e.consume(s),i)}function l(s){return!o&&!r?t(s):n(s)}}function j2e(e,t){var n=0;return r;function r(a){return a===38?e.check(Ij,t,o)(a):(a===40&&n++,a===41?e.check($c,i,o)(a):ak(a)?t(a):Rj(a)?e.check($c,t,o)(a):(e.consume(a),r))}function o(a){return e.consume(a),r}function i(a){return n--,n<0?t(a):o(a)}}function B2e(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return wj(a)?(e.consume(a),o):a===59?(e.consume(a),i):n(a)}function i(a){return ak(a)?t(a):n(a)}}function H2e(e,t,n){return r;function r(i){return e.consume(i),o}function o(i){return Rj(i)?(e.consume(i),o):ak(i)?t(i):n(i)}}function Rj(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}function ak(e){return e===null||e<0||e===32||e===60}function Y2(e){return e===43||e===45||e===46||e===95||Cj(e)}function Tj(e){return e===null||e<0||e===32||e===40||e===42||e===95||e===126}function lk(e){return e===null||!wj(e)}function _j(e){return e!==47&&lk(e)}function sk(e){for(var t=e.length;t--;)if((e[t][1].type==="labelLink"||e[t][1].type==="labelImage")&&!e[t][1]._balanced)return!0}var U2e=xj,V2e=G2e,X2=m5,z1=nl,W2e=E0,kh=wu;function G2e(e){var t=e||{},n=t.singleTilde,r={tokenize:a,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:r}};function o(l,s){for(var u=-1,c,d,f,m;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){for(f=u;f--;)if(l[f][0]==="exit"&&l[f][1].type==="strikethroughSequenceTemporary"&&l[f][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[f][1].end.offset-l[f][1].start.offset){l[u][1].type="strikethroughSequence",l[f][1].type="strikethroughSequence",c={type:"strikethrough",start:kh(l[f][1].start),end:kh(l[u][1].end)},d={type:"strikethroughText",start:kh(l[f][1].end),end:kh(l[u][1].start)},m=[["enter",c,s],["enter",l[f][1],s],["exit",l[f][1],s],["enter",d,s]],z1(m,m.length,0,W2e(s.parser.constructs.insideSpan.null,l.slice(f+1,u),s)),z1(m,m.length,0,[["exit",d,s],["enter",l[u][1],s],["exit",l[u][1],s],["exit",c,s]]),z1(l,f-1,u-f+3,m),u=f+m.length-2;break}}return i(l)}function i(l){for(var s=-1,u=l.length;++s<u;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function a(l,s,u){var c=this.previous,d=this.events,f=0;return m;function m(h){return h!==126||c===126&&d[d.length-1][1].type!=="characterEscape"?u(h):(l.enter("strikethroughSequenceTemporary"),p(h))}function p(h){var y=X2(c),b,g;return h===126?f>1?u(h):(l.consume(h),f++,p):f<2&&!n?u(h):(b=l.exit("strikethroughSequenceTemporary"),g=X2(h),b._open=!g||g===2&&y,b._close=!y||y===2&&g,s(h))}}}var Fj={};Fj.flow={null:{tokenize:Q2e,resolve:K2e,interruptible:!0}};var j1=Nn,q2e={tokenize:Y2e,partial:!0},Z2={tokenize:X2e,partial:!0};function K2e(e,t){for(var n=e.length,r=-1,o,i,a,l,s,u,c,d,f,m;++r<n;)o=e[r][1],l&&(o.type==="temporaryTableCellContent"&&(d=d||r,f=r),(o.type==="tableCellDivider"||o.type==="tableRow")&&f&&(u={type:"tableContent",start:e[d][1].start,end:e[f][1].end},c={type:"chunkText",start:u.start,end:u.end,contentType:"text"},e.splice(d,f-d+1,["enter",u,t],["enter",c,t],["exit",c,t],["exit",u,t]),r-=f-d-3,n=e.length,d=void 0,f=void 0)),e[r][0]==="exit"&&m&&m+1<r&&(o.type==="tableCellDivider"||o.type==="tableRow"&&(m+3<r||e[m][1].type!=="whitespace"))&&(s={type:a?"tableDelimiter":i?"tableHeader":"tableData",start:e[m][1].start,end:e[r][1].end},e.splice(r+(o.type==="tableCellDivider"?1:0),0,["exit",s,t]),e.splice(m,0,["enter",s,t]),r+=2,n=e.length,m=r+1),o.type==="tableRow"&&(l=e[r][0]==="enter",l&&(m=r+1)),o.type==="tableDelimiterRow"&&(a=e[r][0]==="enter",a&&(m=r+1)),o.type==="tableHead"&&(i=e[r][0]==="enter");return e}function Q2e(e,t,n){var r=[],o=0,i,a;return l;function l(k){return k===null||k===-5||k===-4||k===-3?n(k):(e.enter("table")._align=r,e.enter("tableHead"),e.enter("tableRow"),k===124?s(k):(o++,e.enter("temporaryTableCellContent"),d(k)))}function s(k){return e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),i=!0,u}function u(k){return k===null||k===-5||k===-4||k===-3?m(k):k===-2||k===-1||k===32?(e.enter("whitespace"),e.consume(k),c):(i&&(i=void 0,o++),k===124?s(k):(e.enter("temporaryTableCellContent"),d(k)))}function c(k){return k===-2||k===-1||k===32?(e.consume(k),c):(e.exit("whitespace"),u(k))}function d(k){return k===null||k<0||k===32||k===124?(e.exit("temporaryTableCellContent"),u(k)):(e.consume(k),k===92?f:d)}function f(k){return k===92||k===124?(e.consume(k),d):d(k)}function m(k){return k===null?n(k):(e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),e.check(q2e,n,j1(e,p,"linePrefix",4)))}function p(k){return k===null||k<0||k===32?n(k):(e.enter("tableDelimiterRow"),h(k))}function h(k){return k===null||k===-5||k===-4||k===-3?w(k):k===-2||k===-1||k===32?(e.enter("whitespace"),e.consume(k),y):k===45?(e.enter("tableDelimiterFiller"),e.consume(k),a=!0,r.push(null),b):k===58?(e.enter("tableDelimiterAlignment"),e.consume(k),e.exit("tableDelimiterAlignment"),r.push("left"),g):k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),h):n(k)}function y(k){return k===-2||k===-1||k===32?(e.consume(k),y):(e.exit("whitespace"),h(k))}function b(k){return k===45?(e.consume(k),b):(e.exit("tableDelimiterFiller"),k===58?(e.enter("tableDelimiterAlignment"),e.consume(k),e.exit("tableDelimiterAlignment"),r[r.length-1]=r[r.length-1]==="left"?"center":"right",x):h(k))}function g(k){return k===45?(e.enter("tableDelimiterFiller"),e.consume(k),a=!0,b):n(k)}function x(k){return k===null||k===-5||k===-4||k===-3?w(k):k===-2||k===-1||k===32?(e.enter("whitespace"),e.consume(k),y):k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),h):n(k)}function w(k){return e.exit("tableDelimiterRow"),!a||o!==r.length?n(k):k===null?P(k):e.check(Z2,P,C)(k)}function P(k){return e.exit("table"),t(k)}function C(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),j1(e,E,"linePrefix",4)}function E(k){return e.enter("tableBody"),S(k)}function S(k){return e.enter("tableRow"),k===124?R(k):(e.enter("temporaryTableCellContent"),_(k))}function R(k){return e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),I}function I(k){return k===null||k===-5||k===-4||k===-3?T(k):k===-2||k===-1||k===32?(e.enter("whitespace"),e.consume(k),M):k===124?R(k):(e.enter("temporaryTableCellContent"),_(k))}function M(k){return k===-2||k===-1||k===32?(e.consume(k),M):(e.exit("whitespace"),I(k))}function _(k){return k===null||k<0||k===32||k===124?(e.exit("temporaryTableCellContent"),I(k)):(e.consume(k),k===92?D:_)}function D(k){return k===92||k===124?(e.consume(k),_):_(k)}function T(k){return e.exit("tableRow"),k===null?F(k):e.check(Z2,F,N)(k)}function F(k){return e.exit("tableBody"),P(k)}function N(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),j1(e,S,"linePrefix",4)}}function Y2e(e,t,n){return r;function r(a){return a!==45?n(a):(e.enter("setextUnderline"),o(a))}function o(a){return a===45?(e.consume(a),o):i(a)}function i(a){return a===-2||a===-1||a===32?(e.consume(a),i):a===null||a===-5||a===-4||a===-3?t(a):n(a)}}function X2e(e,t,n){var r=0;return o;function o(a){return e.enter("check"),e.consume(a),i}function i(a){return a===-1||a===32?(e.consume(a),r++,r===4?t:i):a===null||a<0?t(a):n(a)}}var Z2e=Fj,Aj={},J2e=rl,eTe=Nn,tTe=pm,nTe={tokenize:rTe};Aj.text={91:nTe};function rTe(e,t,n){var r=this;return o;function o(l){return l!==91||r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return l===-2||l===32?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:oTe},t,n)):n(l)}}function oTe(e,t,n){var r=this;return eTe(e,o,"whitespace");function o(i){return tTe(r.events,"whitespace")&&i!==null&&!J2e(i)?t(i):n(i)}}var iTe=Aj,aTe=p5,lTe=U2e,sTe=V2e,uTe=Z2e,cTe=iTe,dTe=fTe;function fTe(e){return aTe([lTe,sTe(e),uTe,cTe])}var pTe=dTe,F0={},mTe=hTe;function hTe(e,t){var n=String(e),r=0,o;if(typeof t!="string")throw new Error("Expected character");for(o=n.indexOf(t);o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}var gTe=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},vTe=CTe,yTe=_5,bTe=R5,xTe=gTe,wTe=[].splice;function CTe(e,t,n,r){var o,i;return typeof t=="string"||t&&typeof t.exec=="function"?i=[[t,n]]:(i=t,r=n),o=r||{},J2(e,o,a(STe(i))),e;function a(l){var s=l[0];return u;function u(c,d){var f=s[0],m=s[1],p=[],h=0,y=d.children.indexOf(c),b,g,x,w;for(f.lastIndex=0,g=f.exec(c.value);g&&(b=g.index,w=m.apply(null,[].concat(g,{index:g.index,input:g.input})),w!==!1&&(h!==b&&p.push({type:"text",value:c.value.slice(h,b)}),typeof w=="string"&&w.length>0&&(w={type:"text",value:w}),w&&(p=[].concat(p,w)),h=b+g[0].length),!!f.global);)g=f.exec(c.value);if(b===void 0?(p=[c],y--):(h<c.value.length&&p.push({type:"text",value:c.value.slice(h)}),p.unshift(y,1),wTe.apply(d.children,p)),l.length>1)for(x=a(l.slice(1)),b=-1;++b<p.length;)c=p[b],c.type==="text"?x(c,d):J2(c,o,x);return y+p.length+1}}}function J2(e,t,n){var r=bTe(t.ignore||[]),o=[];return yTe(e,"text",i),o;function i(a,l){for(var s=-1,u,c;++s<l.length;){if(u=l[s],r(u,c?c.children.indexOf(u):void 0,c))return;c=u}return n(a,c)}}function STe(e){var t=[],n,r;if(typeof e!="object")throw new Error("Expected array or object as schema");if("length"in e)for(r=-1;++r<e.length;)t.push([eT(e[r][0]),tT(e[r][1])]);else for(n in e)t.push([eT(n),tT(e[n])]);return t}function eT(e){return typeof e=="string"?new RegExp(xTe(e),"g"):e}function tT(e){return typeof e=="function"?e:t;function t(){return e}}var nT=mTe,ETe=vTe,PTe=VP,kTe=WP;F0.transforms=[TTe];F0.enter={literalAutolink:$Te,literalAutolinkEmail:B1,literalAutolinkHttp:B1,literalAutolinkWww:B1};F0.exit={literalAutolink:RTe,literalAutolinkEmail:MTe,literalAutolinkHttp:ITe,literalAutolinkWww:OTe};function $Te(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function B1(e){this.config.enter.autolinkProtocol.call(this,e)}function ITe(e){this.config.exit.autolinkProtocol.call(this,e)}function OTe(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function MTe(e){this.config.exit.autolinkEmail.call(this,e)}function RTe(e){this.exit(e)}function TTe(e){ETe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,_Te],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,FTe]],{ignore:["link","linkReference"]})}function _Te(e,t,n,r,o){var i="",a,l;return!Lj(o)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!ATe(n))||(a=LTe(n+r),!a[0])?!1:(l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]},a[1]&&(l=[l,{type:"text",value:a[1]}]),l)}function FTe(e,t,n,r){return!Lj(r,!0)||/[_-]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ATe(e){var t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function LTe(e){var t=/[!"&'),.:;<>?\]}]+$/.exec(e),n,r,o;if(t)for(e=e.slice(0,t.index),t=t[0],n=t.indexOf(")"),r=nT(e,"("),o=nT(e,")");n!==-1&&r>o;)e+=t.slice(0,n+1),t=t.slice(n+1),n=t.indexOf(")"),o++;return[e,t]}function Lj(e,t){var n=e.input.charCodeAt(e.index-1);return(n!==n||kTe(n)||PTe(n))&&(!t||n!==47)}var A0={};A0.canContainEols=["delete"];A0.enter={strikethrough:DTe};A0.exit={strikethrough:NTe};function DTe(e){this.enter({type:"delete",children:[]},e)}function NTe(e){this.exit(e)}var uk={};uk.enter={table:zTe,tableData:rT,tableHeader:rT,tableRow:BTe};uk.exit={codeText:HTe,table:jTe,tableData:H1,tableHeader:H1,tableRow:H1};function zTe(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)}function jTe(e){this.exit(e),this.setData("inTable")}function BTe(e){this.enter({type:"tableRow",children:[]},e)}function H1(e){this.exit(e)}function rT(e){this.enter({type:"tableCell",children:[]},e)}function HTe(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,UTe)),this.stack[this.stack.length-1].value=t,this.exit(e)}function UTe(e,t){return t==="|"?t:e}var Dj={};Dj.exit={taskListCheckValueChecked:oT,taskListCheckValueUnchecked:oT,paragraph:VTe};function oT(e){this.stack[this.stack.length-2].checked=e.type==="taskListCheckValueChecked"}function VTe(e){var t=this.stack[this.stack.length-2],n=this.stack[this.stack.length-1],r=t.children,o=n.children[0],i=-1,a;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&o&&o.type==="text"){for(;++i<r.length;)if(r[i].type==="paragraph"){a=r[i];break}a===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}this.exit(e)}var WTe=F0,GTe=A0,qTe=uk,KTe=Dj,QTe={}.hasOwnProperty,YTe=XTe([WTe,GTe,qTe,KTe]);function XTe(e){for(var t={transforms:[],canContainEols:[]},n=e.length,r=-1;++r<n;)ZTe(t,e[r]);return t}function ZTe(e,t){var n,r,o;for(n in t)r=QTe.call(e,n)?e[n]:e[n]={},o=t[n],n==="canContainEols"||n==="transforms"?e[n]=[].concat(r,o):Object.assign(r,o)}var Nj={},U1="phrasing",V1=["autolink","link","image","label"];Nj.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:U1,notInConstruct:V1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:U1,notInConstruct:V1},{character:":",before:"[ps]",after:"\\/",inConstruct:U1,notInConstruct:V1}];var ck={},zj=JTe;function JTe(e,t,n){for(var r=e.children||[],o=[],i=-1,a=n.before,l,s,u;++i<r.length;)u=r[i],i+1<r.length?(s=t.handle.handlers[r[i+1].type],s&&s.peek&&(s=s.peek),l=s?s(r[i+1],e,t,{before:"",after:""}).charAt(0):""):l=n.after,o.length>0&&(a==="\r"||a===`
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" "),o.push(t.handle(u,e,t,{before:a,after:l})),a=o[o.length-1].slice(-1);return o.join("")}var e_e=zj;ck.unsafe=[{character:"~",inConstruct:"phrasing"}];ck.handlers={delete:jj};jj.peek=t_e;function jj(e,t,n){var r=n.enter("emphasis"),o=e_e(e,n,{before:"~",after:"~"});return r(),"~~"+o+"~~"}function t_e(){return"~"}var n_e=r_e;function r_e(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}var o_e=Bj;Bj.peek=a_e;var i_e=n_e;function Bj(e,t,n){for(var r=e.value||"",o="`",i=-1,a,l,s,u;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/[ \r\n`]/.test(r.charAt(0))||/[ \r\n`]/.test(r.charAt(r.length-1)))&&(r=" "+r+" ");++i<n.unsafe.length;)if(a=n.unsafe[i],!!a.atBreak)for(l=i_e(a);s=l.exec(r);)u=s.index,r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1);return o+r+o}function a_e(){return"`"}/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var va="",W1,dk=l_e;function l_e(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var n=e.length*t;if(W1!==e||typeof W1>"u")W1=e,va="";else if(va.length>=n)return va.substr(0,n);for(;n>va.length&&t>1;)t&1&&(va+=e),t>>=1,e+=e;return va+=e,va=va.substr(0,n),va}var Vu=dk,s_e=h_e,u_e=/ +$/,gs=" ",c_e=`
`,d_e="-",$h=":",iT="|",aT=0,f_e=67,p_e=76,m_e=82,wv=99,rC=108,Cv=114;function h_e(e,t){for(var n=t||{},r=n.padding!==!1,o=n.delimiterStart!==!1,i=n.delimiterEnd!==!1,a=(n.align||[]).concat(),l=n.alignDelimiters!==!1,s=[],u=n.stringLength||v_e,c=-1,d=e.length,f=[],m=[],p=[],h=[],y=[],b=0,g,x,w,P,C,E,S,R,I,M,_;++c<d;){for(g=e[c],x=-1,w=g.length,p=[],h=[],w>b&&(b=w);++x<w;)E=g_e(g[x]),l===!0&&(C=u(E),h[x]=C,P=y[x],(P===void 0||C>P)&&(y[x]=C)),p.push(E);f[c]=p,m[c]=h}if(x=-1,w=b,typeof a=="object"&&"length"in a)for(;++x<w;)s[x]=lT(a[x]);else for(_=lT(a);++x<w;)s[x]=_;for(x=-1,w=b,p=[],h=[];++x<w;)_=s[x],I="",M="",_===rC?I=$h:_===Cv?M=$h:_===wv&&(I=$h,M=$h),C=l?Math.max(1,y[x]-I.length-M.length):1,E=I+Vu(d_e,C)+M,l===!0&&(C=I.length+C+M.length,C>y[x]&&(y[x]=C),h[x]=C),p[x]=E;for(f.splice(1,0,p),m.splice(1,0,h),c=-1,d=f.length,S=[];++c<d;){for(p=f[c],h=m[c],x=-1,w=b,R=[];++x<w;)E=p[x]||"",I="",M="",l===!0&&(C=y[x]-(h[x]||0),_=s[x],_===Cv?I=Vu(gs,C):_===wv?C%2===0?(I=Vu(gs,C/2),M=I):(I=Vu(gs,C/2+.5),M=Vu(gs,C/2-.5)):M=Vu(gs,C)),o===!0&&x===0&&R.push(iT),r===!0&&!(l===!1&&E==="")&&(o===!0||x!==0)&&R.push(gs),l===!0&&R.push(I),R.push(E),l===!0&&R.push(M),r===!0&&R.push(gs),(i===!0||x!==w-1)&&R.push(iT);R=R.join(""),i===!1&&(R=R.replace(u_e,"")),S.push(R)}return S.join(c_e)}function g_e(e){return e==null?"":String(e)}function v_e(e){return e.length}function lT(e){var t=typeof e=="string"?e.charCodeAt(0):aT;return t===p_e||t===rC?rC:t===m_e||t===Cv?Cv:t===f_e||t===wv?wv:aT}var y_e=zj,b_e=o_e,x_e=s_e,w_e=C_e;function C_e(e){var t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:l,tableCell:s,inlineCode:f}};function a(m,p,h){return u(c(m,h),m.align)}function l(m,p,h){var y=d(m,h),b=u([y]);return b.slice(0,b.indexOf(`
`))}function s(m,p,h){var y=h.enter("tableCell"),b=y_e(m,h,{before:i,after:i});return y(),b}function u(m,p){return x_e(m,{align:p,alignDelimiters:r,padding:n,stringLength:o})}function c(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("table");++y<b;)g[y]=d(h[y],p);return x(),g}function d(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("tableRow");++y<b;)g[y]=s(h[y],m,p);return x(),g}function f(m,p,h){var y=b_e(m,p,h);return h.stack.indexOf("tableCell")!==-1&&(y=y.replace(/\|/g,"\\$&")),y}}var fk={},S_e=E_e;function E_e(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}var P_e=k_e;function k_e(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}var $_e=O_e,I_e=dk;function O_e(e,t){for(var n=e.children||[],r=[],o=-1,i;++o<n.length;)i=n[o],r.push(t.handle(i,e,t,{before:`
`,after:`
`})),o+1<n.length&&r.push(a(i,n[o+1]));return r.join("");function a(l,s){for(var u=-1,c;++u<t.join.length&&(c=t.join[u](l,s,e,t),!(c===!0||c===1));){if(typeof c=="number")return I_e(`
`,1+Number(c));if(c===!1)return`
<!---->
`}return`
`}}var M_e=T_e,R_e=/\r?\n|\r/g;function T_e(e,t){for(var n=[],r=0,o=0,i;i=R_e.exec(e);)a(e.slice(r,i.index)),n.push(i[0]),r=i.index+i[0].length,o++;return a(e.slice(r)),n.join("");function a(l){n.push(t(l,o,!l))}}var __e=N_e,sT=dk,F_e=S_e,A_e=P_e,L_e=$_e,D_e=M_e;function N_e(e,t,n){var r=F_e(n),o=A_e(n),i,a,l;return t&&t.ordered&&(r=(t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),i=r.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4),l=n.enter("listItem"),a=D_e(L_e(e,n),s),l(),a;function s(u,c,d){return c?(d?"":sT(" ",i))+u:(d?r:r+sT(" ",i-r.length))+u}}var z_e=__e;fk.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];fk.handlers={listItem:j_e};function j_e(e,t,n){var r=z_e(e,t,n),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(r=r.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,i)),r;function i(a){return a+"["+(e.checked?"x":" ")+"] "}}var B_e=Hj;function Hj(e,t){var n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)Hj(e,t.extensions[n]);for(r in t)r==="extensions"||(r==="unsafe"||r==="join"?e[r]=e[r].concat(t[r]||[]):r==="handlers"?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}var H_e=Nj,U_e=ck,V_e=w_e,W_e=fk,G_e=B_e,q_e=K_e;function K_e(e){var t=G_e({handlers:{},join:[],unsafe:[],options:{}},{extensions:[H_e,U_e,V_e(e),W_e]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}var Q_e=pTe,Y_e=YTe,X_e=q_e,uT,Z_e=J_e;function J_e(e){var t=this.data();!uT&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(uT=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",Q_e(e)),n("fromMarkdownExtensions",Y_e),n("toMarkdownExtensions",X_e(e));function n(r,o){t[r]?t[r].push(o):t[r]=[o]}}const eFe=Xi(Z_e),tFe=rt(z.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),nFe=["slots","slotProps"],rFe=fe(Zl)(({theme:e})=>O({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":O({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":O({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:HO(e.palette.grey[200],.12)}:{backgroundColor:HO(e.palette.grey[600],.12)})})),oFe=fe(tFe)({width:24,height:16});function iFe(e){const{slots:t={},slotProps:n={}}=e,r=ce(e,nFe),o=e;return z.jsx("li",{children:z.jsx(rFe,O({focusRipple:!0},r,{ownerState:o,children:z.jsx(oFe,O({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function aFe(e){return We("MuiBreadcrumbs",e)}const lFe=Ge("MuiBreadcrumbs",["root","ol","li","separator"]),sFe=lFe,uFe=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],cFe=e=>{const{classes:t}=e;return Oe({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},aFe,t)},dFe=fe(Xe,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${sFe.li}`]:t.li},t.root]})({}),fFe=fe("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),pFe=fe("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function mFe(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,z.jsx(pFe,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const hFe=v.forwardRef(function(t,n){const r=qe({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:l={},slotProps:s={},expandText:u="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:d=1,maxItems:f=8,separator:m="/"}=r,p=ce(r,uFe),[h,y]=v.useState(!1),b=O({},r,{component:a,expanded:h,expandText:u,itemsAfterCollapse:c,itemsBeforeCollapse:d,maxItems:f,separator:m}),g=cFe(b),x=Gi({elementType:l.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:b}),w=v.useRef(null),P=E=>{const S=()=>{y(!0);const R=w.current.querySelector("a[href],button,[tabindex]");R&&R.focus()};return d+c>=E.length?E:[...E.slice(0,d),z.jsx(iFe,{"aria-label":u,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:x},onClick:S},"ellipsis"),...E.slice(E.length-c,E.length)]},C=v.Children.toArray(o).filter(E=>v.isValidElement(E)).map((E,S)=>z.jsx("li",{className:g.li,children:E},`child-${S}`));return z.jsx(dFe,O({ref:n,component:a,color:"text.secondary",className:ve(g.root,i),ownerState:b},p,{children:z.jsx(fFe,{className:g.ol,ref:w,ownerState:b,children:mFe(h||f&&C.length<=f?C:P(C),g.separator,m,b)})}))}),gFe=hFe;var pk={},vFe=Ot;Object.defineProperty(pk,"__esModule",{value:!0});var Uj=pk.default=void 0,yFe=vFe(Dt()),bFe=z;Uj=pk.default=(0,yFe.default)((0,bFe.jsx)("path",{d:"m12 5.69 5 4.5V18h-2v-6H9v6H7v-7.81zM12 3 2 12h3v8h6v-6h2v6h6v-8h3z"}),"HomeOutlined");var mk={},xFe=Ot;Object.defineProperty(mk,"__esModule",{value:!0});var Vj=mk.default=void 0,wFe=xFe(Dt()),CFe=z;Vj=mk.default=(0,wFe.default)((0,CFe.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHorizOutlined");var hk={},SFe=Ot;Object.defineProperty(hk,"__esModule",{value:!0});var Wj=hk.default=void 0,EFe=SFe(Dt()),PFe=z;Wj=hk.default=(0,EFe.default)((0,PFe.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"SyncOutlined");var gk={},kFe=Ot;Object.defineProperty(gk,"__esModule",{value:!0});var Gj=gk.default=void 0,$Fe=kFe(Dt()),IFe=z;Gj=gk.default=(0,$Fe.default)((0,IFe.jsx)("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39z"}),"TaskAltOutlined");var vk={},OFe=Ot;Object.defineProperty(vk,"__esModule",{value:!0});var qj=vk.default=void 0,MFe=OFe(Dt()),RFe=z;qj=vk.default=(0,MFe.default)((0,RFe.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"}),"ErrorOutlineOutlined");var yk={},TFe=Ot;Object.defineProperty(yk,"__esModule",{value:!0});var Kj=yk.default=void 0,_Fe=TFe(Dt()),FFe=z;Kj=yk.default=(0,_Fe.default)((0,FFe.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"UndoOutlined");var AFe=Object.defineProperty,Ie=(e,t)=>AFe(e,"name",{value:t,configurable:!0}),LFe=Ie(({Title:e,render:t,meta:n})=>{let[r,o]=v.useState(!1),[i,a]=v.useState(!1),l=Ie(()=>r?64:200,"drawerWidth"),s=Qe(),u=st(),c=Wn(),{Link:d}=zt(),f=u==="legacy"?d:c,{hasDashboard:m}=un(),p=Qe(),{warnWhen:h,setWarnWhen:y}=Qa(),{menuItems:b,selectedKey:g,defaultOpenKeys:x}=BS({meta:n}),w=Xv(),P=TS(),C=Nt(),{mutate:E}=Bc({v3LegacyAuthProviderCompatible:!!(C!=null&&C.isLegacy)}),[S,R]=v.useState({});$.useEffect(()=>{R(L=>{let j=Object.keys(L).filter(A=>L[A]),B=new Set([...j,...x]);return Object.fromEntries(Array.from(B.values()).map(A=>[A,!0]))})},[x]);let I=e??P??NFe,M=Ie(L=>{R({...S,[L]:!S[L]})},"handleClick"),_=Ie((L,j)=>L.map(B=>{let{icon:A,label:H,route:q,name:V,children:G,parentName:Y,meta:re,options:le}=B,J=S[B.key||""]||!1,oe=B.key===j,ue=Ae(re==null?void 0:re.parent,le==null?void 0:le.parent,Y)!==void 0;return G.length>0?$.createElement(Ta,{key:B.key,resource:V.toLowerCase(),action:"list",params:{resource:B}},$.createElement("div",{key:B.key},$.createElement(Cr,{title:H??V,placement:"right",disableHoverListener:!r,arrow:!0},$.createElement(Ro,{onClick:()=>{r?(o(!1),J||M(B.key||"")):M(B.key||"")},sx:{pl:ue?4:2,justifyContent:"center","&.Mui-selected":{"&:hover":{backgroundColor:"transparent"},backgroundColor:"transparent"}}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:36,color:"secondary.contrastText"}},A??$.createElement(Ua,null)),$.createElement(Un,{primary:H,primaryTypographyProps:{noWrap:!0,fontSize:"14px",fontWeight:oe?"bold":"normal"}}),!r&&(J?$.createElement(Qy,null):$.createElement(Yy,null)))),!r&&$.createElement(Wy,{in:S[B.key||""],timeout:"auto",unmountOnExit:!0},$.createElement(au,{component:"div",disablePadding:!0},_(G,j))))):$.createElement(Ta,{key:B.key,resource:V.toLowerCase(),action:"list",params:{resource:B}},$.createElement(Cr,{title:H??V,placement:"right",disableHoverListener:!r,arrow:!0},$.createElement(Ro,{component:f,to:q,selected:oe,onClick:()=>{a(!1)},sx:{pl:ue?4:2,py:ue?1.25:1,"&.Mui-selected":{"&:hover":{backgroundColor:"transparent"},backgroundColor:"transparent"},justifyContent:"center"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:36,color:"secondary.contrastText"}},A??$.createElement(Ua,null)),$.createElement(Un,{primary:H,primaryTypographyProps:{noWrap:!0,fontSize:"14px",fontWeight:oe?"bold":"normal"}}))))}),"renderTreeView"),D=m?$.createElement(Ta,{resource:"dashboard",action:"list"},$.createElement(Cr,{title:p("dashboard.title","Dashboard"),placement:"right",disableHoverListener:!r,arrow:!0},$.createElement(Ro,{component:f,to:"/",selected:g==="/",onClick:()=>{a(!1)},sx:{pl:2,py:1,"&.Mui-selected":{"&:hover":{backgroundColor:"transparent"},backgroundColor:"transparent"},justifyContent:"center"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:36,color:"secondary.contrastText"}},$.createElement(Zy,null)),$.createElement(Un,{primary:p("dashboard.title","Dashboard"),primaryTypographyProps:{noWrap:!0,fontSize:"14px",fontWeight:g==="/"?"bold":"normal"}})))):null,T=Ie(()=>{h?window.confirm(p("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."))&&(y(!1),E()):E()},"handleLogout"),F=w&&$.createElement(Cr,{title:s("buttons.logout","Logout"),placement:"right",disableHoverListener:!r,arrow:!0},$.createElement(Ro,{key:"logout",onClick:T,sx:{justifyContent:"center"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:36,color:"secondary.contrastText"}},$.createElement(Ky,null)),$.createElement(Un,{primary:s("buttons.logout","Logout"),primaryTypographyProps:{noWrap:!0,fontSize:"14px"}}))),N=_(b,g),k=$.createElement(au,{disablePadding:!0,sx:{mt:1,color:"secondary.contrastText"}},Ie(()=>t?t({dashboard:D,logout:F,items:N,collapsed:r}):$.createElement($.Fragment,null,D,N,F),"renderSider")());return $.createElement($.Fragment,null,$.createElement(Ke,{sx:{width:{xs:l()},display:{xs:"none",md:"block"},transition:"width 0.3s ease"}}),$.createElement(Ke,{component:"nav",sx:{position:"fixed",zIndex:1101,width:{sm:l()},display:"flex"}},$.createElement(Gc,{variant:"temporary",open:i,onClose:()=>a(!1),ModalProps:{keepMounted:!0},sx:{display:{sm:"block",md:"none"},"& .MuiDrawer-paper":{width:256,bgcolor:"secondary.main"}}},$.createElement(Ke,{sx:{height:64,display:"flex",alignItems:"center",justifyContent:"center"}},$.createElement(I,{collapsed:!1})),k),$.createElement(Gc,{variant:"permanent",PaperProps:{elevation:1},sx:{display:{xs:"none",md:"block"},"& .MuiDrawer-paper":{width:l,bgcolor:"secondary.main",overflow:"hidden",transition:"width 200ms cubic-bezier(0.4, 0, 0.6, 1) 0ms"}},open:!0},$.createElement(Ke,{sx:{height:64,display:"flex",alignItems:"center",justifyContent:"center"}},$.createElement(I,{collapsed:r})),$.createElement(Ke,{sx:{flexGrow:1,overflowX:"hidden",overflowY:"auto"}},k),$.createElement(mn,{sx:{background:"rgba(0,0,0,.5)",color:"secondary.contrastText",textAlign:"center",borderRadius:0,borderTop:"1px solid #ffffff1a"},fullWidth:!0,size:"large",onClick:()=>o(L=>!L)},r?$.createElement(n4,null):$.createElement(Xy,null))),$.createElement(Ke,{sx:{display:{xs:"block",md:"none"},position:"fixed",top:"64px",left:"0px",borderRadius:"0 6px 6px 0",bgcolor:"secondary.main",zIndex:1199,width:"36px"}},$.createElement(An,{sx:{color:"#fff",width:"36px"},onClick:()=>a(L=>!L)},$.createElement(DE,null)))))},"Sider"),DFe=Ie(()=>{let e=Nt(),{data:t}=ld({v3LegacyAuthProviderCompatible:!!(e!=null&&e.isLegacy)});return t&&(t.name||t.avatar)?$.createElement(Jy,{color:"default",position:"sticky",elevation:1},$.createElement(tm,null,$.createElement(Nr,{direction:"row",width:"100%",justifyContent:"flex-end",alignItems:"center"},$.createElement(Nr,{direction:"row",gap:"16px",alignItems:"center",justifyContent:"center"},$.createElement(Xe,{variant:"subtitle2"},t==null?void 0:t.name),$.createElement(e0,{src:t==null?void 0:t.avatar,alt:t==null?void 0:t.name}))))):null},"Header");Ie(({Sider:e,Header:t,Title:n,Footer:r,OffLayoutArea:o,children:i})=>$.createElement(Ke,{display:"flex",flexDirection:"row"},$.createElement(e??LFe,{Title:n}),$.createElement(Ke,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:"100vh"}},$.createElement(t??DFe,null),$.createElement(Ke,{component:"main",sx:{p:{xs:1,md:2,lg:3},flexGrow:1,bgcolor:a=>a.palette.background.default}},i),r&&$.createElement(r,null)),o&&$.createElement(o,null)),"Layout");var NFe=Ie(({collapsed:e})=>{let t=st(),n=Wn(),{Link:r}=zt();return $.createElement(mn,{fullWidth:!0,variant:"text",disableRipple:!0},$.createElement(t==="legacy"?r:n,{to:"/"},e?$.createElement("img",{src:"https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine-mini.svg",alt:"Refine",width:"28px",style:{maxHeight:"38px"}}):$.createElement("img",{src:"https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg",alt:"Refine",width:"140px"})))},"Title"),zFe=Ie(({Title:e,render:t,meta:n,isSiderOpen:r,onToggleSiderClick:o})=>{let[i,a]=v.useState(!1),l=Ie(()=>r?240:56,"drawerWidth"),s=Qe(),u=st(),c=Wn(),{Link:d}=zt(),f=u==="legacy"?d:c,{hasDashboard:m}=un(),p=Qe(),{menuItems:h,selectedKey:y,defaultOpenKeys:b}=BS({meta:n}),g=Xv(),x=TS(),w=Nt(),{warnWhen:P,setWarnWhen:C}=Qa(),{mutate:E}=Bc({v3LegacyAuthProviderCompatible:!!(w!=null&&w.isLegacy)}),[S,R]=v.useState({});$.useEffect(()=>{R(L=>{let j=Object.keys(L).filter(A=>L[A]),B=new Set([...j,...b]);return Object.fromEntries(Array.from(B.values()).map(A=>[A,!0]))})},[b]);let I=e??x??UFe,M=Ie(L=>{R({...S,[L]:!S[L]})},"handleClick"),_=Ie((L,j)=>L.map(B=>{let{icon:A,label:H,route:q,name:V,children:G,parentName:Y,meta:re,options:le}=B,J=S[B.key||""]||!1,oe=B.key===j,ue=Ae(re==null?void 0:re.parent,le==null?void 0:le.parent,Y)!==void 0;return G.length>0?$.createElement(Ta,{key:B.key,resource:V.toLowerCase(),action:"list",params:{resource:B}},$.createElement("div",{key:B.key},$.createElement(Cr,{title:H??V,placement:"right",disableHoverListener:r,arrow:!0},$.createElement(Ro,{onClick:()=>{r?M(B.key||""):(o==null||o(!0),J||M(B.key||""))},sx:{pl:ue?4:2,justifyContent:"center",marginTop:"8px"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:"24px",transition:"margin-right 0.3s",marginRight:r?"12px":"0px",color:"currentColor"}},A??$.createElement(Ua,null)),$.createElement(Un,{primary:H,primaryTypographyProps:{noWrap:!0,fontSize:"14px"}}),J?$.createElement(Qy,{sx:{color:"text.icon"}}):$.createElement(Yy,{sx:{color:"text.icon"}}))),r&&$.createElement(Wy,{in:S[B.key||""],timeout:"auto",unmountOnExit:!0},$.createElement(au,{component:"div",disablePadding:!0},_(G,j))))):$.createElement(Ta,{key:B.key,resource:V.toLowerCase(),action:"list",params:{resource:B}},$.createElement(Cr,{title:H??V,placement:"right",disableHoverListener:r,arrow:!0},$.createElement(Ro,{component:f,to:q,selected:oe,onClick:()=>{a(!1)},sx:{pl:ue?4:2,py:ue?1.25:1,justifyContent:"center",color:oe?"primary.main":"text.primary"}},$.createElement(Hn,{sx:{justifyContent:"center",transition:"margin-right 0.3s",marginRight:r?"12px":"0px",minWidth:"24px",color:"currentColor"}},A??$.createElement(Ua,null)),$.createElement(Un,{primary:H,primaryTypographyProps:{noWrap:!0,fontSize:"14px"}}))))}),"renderTreeView"),D=m?$.createElement(Ta,{resource:"dashboard",action:"list"},$.createElement(Cr,{title:p("dashboard.title","Dashboard"),placement:"right",disableHoverListener:r,arrow:!0},$.createElement(Ro,{component:f,to:"/",selected:y==="/",onClick:()=>{a(!1)},sx:{pl:2,py:1,justifyContent:"center",color:y==="/"?"primary.main":"text.primary"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:"24px",transition:"margin-right 0.3s",marginRight:r?"12px":"0px",color:"currentColor",fontSize:"14px"}},$.createElement(Zy,null)),$.createElement(Un,{primary:p("dashboard.title","Dashboard"),primaryTypographyProps:{noWrap:!0,fontSize:"14px"}})))):null,T=Ie(()=>{P?window.confirm(s("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."))&&(C(!1),E()):E()},"handleLogout"),F=g&&$.createElement(Cr,{title:s("buttons.logout","Logout"),placement:"right",disableHoverListener:r,arrow:!0},$.createElement(Ro,{key:"logout",onClick:()=>T(),sx:{justifyContent:"center"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:"24px",transition:"margin-right 0.3s",marginRight:r?"12px":"0px",marginLeft:"2px",color:"currentColor"}},$.createElement(Ky,null)),$.createElement(Un,{primary:s("buttons.logout","Logout"),primaryTypographyProps:{noWrap:!0,fontSize:"14px"}}))),N=_(h,y),k=$.createElement(au,{disablePadding:!0,sx:{flexGrow:1,paddingTop:"16px"}},Ie(()=>t?t({dashboard:D,logout:F,items:N,collapsed:!r}):$.createElement($.Fragment,null,D,N,F),"renderSider")());return $.createElement($.Fragment,null,$.createElement(Ke,{sx:{width:{xs:l()},display:{xs:"none",md:"block"},transition:"width 0.3s ease"}}),$.createElement(Ke,{component:"nav",sx:{position:"fixed",zIndex:1101,width:{sm:l()},display:"flex"}},$.createElement(Gc,{variant:"temporary",elevation:2,open:i,onClose:()=>a(!1),ModalProps:{keepMounted:!0},sx:{display:{sm:"block",md:"none"}}},$.createElement(Ke,{sx:{width:l()}},$.createElement(Ke,{sx:{height:64,display:"flex",alignItems:"center",paddingLeft:"16px",fontSize:"14px"}},$.createElement(I,{collapsed:!1})),k)),$.createElement(Gc,{variant:"permanent",sx:{display:{xs:"none",md:"block"},"& .MuiDrawer-paper":{width:l,overflow:"hidden",transition:"width 200ms cubic-bezier(0.4, 0, 0.6, 1) 0ms"}},open:!0},$.createElement(Ko,{elevation:0,sx:{fontSize:"14px",width:"100%",height:64,display:"flex",alignItems:"center",justifyContent:r?"space-between":"center",paddingLeft:r?"16px":0,paddingRight:r?"8px":0,variant:"outlined",borderRadius:0,borderBottom:L=>`1px solid ${L.palette.action.focus}`}},$.createElement(I,{collapsed:!r}),r&&$.createElement(An,{size:"small",onClick:()=>o==null?void 0:o(!1)},$.createElement(Xy,null))),$.createElement(Ke,{sx:{flexGrow:1,overflowX:"hidden",overflowY:"auto"}},k)),$.createElement(An,{sx:L=>{let{palette:j}=L,{mode:B,getContrastText:A,primary:H,background:q}=j;return{color:A(B==="light"?H.main:q.paper),display:{xs:"flex",md:"none"},justifyContent:"center",alignItems:"center",position:"fixed",top:"12px",left:"16px",zIndex:1199,height:"36px",width:"36px"}},onClick:()=>a(L=>!L)},$.createElement(DE,null))))},"ThemedSider"),jFe=Ie(({isSiderOpen:e,onToggleSiderClick:t,toggleSiderIcon:n})=>{let r=Nt(),{data:o}=ld({v3LegacyAuthProviderCompatible:!!(r!=null&&r.isLegacy)});return $.createElement(Jy,{position:"sticky"},$.createElement(tm,null,!!t&&$.createElement(An,{color:"inherit","aria-label":"open drawer",onClick:()=>t==null?void 0:t(),edge:"start",sx:{mr:2,display:{xs:"none",md:"flex"},...e&&{display:"none"}}},(n==null?void 0:n(!!e))??$.createElement(BE,null)),$.createElement(Nr,{direction:"row",width:"100%",justifyContent:"flex-end",alignItems:"center"},$.createElement(Nr,{direction:"row",gap:"16px",alignItems:"center",justifyContent:"center"},$.createElement(Xe,{sx:{display:{xs:"none",md:"block"}},variant:"subtitle2"},o==null?void 0:o.name),$.createElement(e0,{src:o==null?void 0:o.avatar,alt:o==null?void 0:o.name})))))},"ThemedHeader");Ie(({Sider:e,Header:t,Title:n,Footer:r,OffLayoutArea:o,children:i})=>{let[a,l]=v.useState(!0);return $.createElement(Ke,{display:"flex",flexDirection:"row"},$.createElement(e??zFe,{Title:n,isSiderOpen:a,onToggleSiderClick:s=>l(!!s)}),$.createElement(Ke,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:"100vh"}},$.createElement(t??jFe,{isSiderOpen:a,onToggleSiderClick:()=>l(s=>!s)}),$.createElement(Ke,{component:"main",sx:{p:{xs:1,md:2,lg:3},flexGrow:1,bgcolor:s=>s.palette.background.default}},i),r&&$.createElement(r,null)),o&&$.createElement(o,null))},"ThemedLayout");var BFe="Refine Project",HFe=$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z",fill:"currentColor"}),$.createElement("path",{d:"M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z",fill:"currentColor"})),UFe=Ie(({collapsed:e,wrapperStyles:t,icon:n=HFe,text:r=BFe})=>{let o=st(),i=Wn(),{Link:a}=zt();return $.createElement(zr,{to:"/",component:o==="legacy"?a:i,underline:"none",sx:{display:"flex",alignItems:"center",gap:"12px",...t}},$.createElement(Xl,{height:"24px",width:"24px",color:"primary"},n),!e&&$.createElement(Xe,{variant:"h6",fontWeight:700,color:"text.primary",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},r))},"ThemedTitle"),bk=$.createContext({siderCollapsed:!1,mobileSiderOpen:!1,setSiderCollapsed:()=>{},setMobileSiderOpen:()=>{}}),VFe=Ie(({children:e,initialSiderCollapsed:t})=>{let[n,r]=v.useState(t??!1),[o,i]=v.useState(!1);return $.createElement(bk.Provider,{value:{siderCollapsed:n,mobileSiderOpen:o,setSiderCollapsed:r,setMobileSiderOpen:i}},e)},"ThemedLayoutContextProvider");Ie(e=>{var t,n;let{queryResult:r,defaultValueQueryResult:o,onSearch:i,overtime:a}=Uq(e);return{autocompleteProps:{options:kS(((t=r.data)==null?void 0:t.data)||[],((n=o.data)==null?void 0:n.data)||[],Mo),loading:r.isFetching||o.isFetching,onInputChange:(l,s)=>{(l==null?void 0:l.type)==="change"?i(s):(l==null?void 0:l.type)==="click"&&i("")},filterOptions:l=>l},onSearch:i,queryResult:r,defaultValueQueryResult:o,overtime:a}},"useAutocomplete");var WFe=Ie(e=>e.map(({field:t,sort:n})=>({field:t,order:n||"asc"})),"transformSortModelToCrudSorting"),GFe=Ie(e=>e.map(({field:t,order:n})=>({field:t,sort:n})),"transformCrudSortingToSortModel"),qFe=Ie(e=>{if(!e)return"eq";switch(e){case"equals":case"is":case"=":return"eq";case"!=":case"not":return"ne";case"contains":return"contains";case"isAnyOf":return"in";case">":case"after":return"gt";case">=":case"onOrAfter":return"gte";case"<":case"before":return"lt";case"<=":case"onOrBefore":return"lte";case"startsWith":return"startswith";case"endsWith":return"endswith";case"isEmpty":return"null";case"isNotEmpty":return"nnull";default:return e}},"transformMuiOperatorToCrudOperator"),KFe=Ie(({items:e,logicOperator:t})=>{let n=e.map(({field:r,value:o,operator:i})=>({field:r,value:["isEmpty","isNotEmpty"].includes(i)?!0:o??"",operator:qFe(i)}));return t===Jn.Or?[{operator:"or",value:n}]:n},"transformFilterModelToCrudFilters"),cT=Ie((e,t)=>{switch(t){case"number":switch(e){case"eq":return"=";case"ne":return"!=";case"gt":return">";case"gte":return">=";case"lt":return"<";case"lte":return"<=";case"null":return"isEmpty";case"nnull":return"isNotEmpty";case"in":return"isAnyOf";default:return e}case"singleSelect":case"boolean":switch(e){case"eq":return"is";default:return e}case void 0:case"string":switch(e){case"eq":return"equals";case"contains":return"contains";case"null":return"isEmpty";case"nnull":return"isNotEmpty";case"startswith":return"startsWith";case"endswith":return"endsWith";case"in":return"isAnyOf";default:return e}case"date":case"dateTime":switch(e){case"eq":return"is";case"ne":return"not";case"gt":return"after";case"gte":return"onOrAfter";case"lt":return"before";case"lte":return"onOrBefore";case"null":return"isEmpty";case"nnull":return"isNotEmpty";default:return e}default:return e}},"transformCrudOperatorToMuiOperator"),QFe=Ie((e,t)=>{var n;let r=[],o=e.some(i=>i.operator==="or");return t&&(o?((n=e.find(i=>i.operator==="or"))==null?void 0:n.value).map(({field:i,value:a,operator:l})=>{let s=t[i];r.push({field:i,operator:cT(l,s),value:a===""?void 0:a,id:i+l})}):e.map(({field:i,value:a,operator:l})=>{let s=t[i];r.push({field:i,operator:cT(l,s),value:a===""?void 0:a,id:i+l})})),{items:r,logicOperator:o?Jn.Or:Jn.And}},"transformCrudFiltersToFilterModel");function Qj({onSearch:e,initialCurrent:t,initialPageSize:n=25,pagination:r,hasPagination:o=!0,initialSorter:i,permanentSorter:a,defaultSetFilterBehavior:l="replace",initialFilter:s,permanentFilter:u,filters:c,sorters:d,syncWithLocation:f,resource:m,successNotification:p,errorNotification:h,queryOptions:y,liveMode:b,onLiveEvent:g,liveParams:x,meta:w,metaData:P,dataProviderName:C,overtimeOptions:E}={}){let S=Ur(),R=WL(b),[I,M]=v.useState(),{tableQueryResult:_,current:D,setCurrent:T,pageSize:F,setPageSize:N,filters:k,setFilters:L,sorters:j,setSorters:B,sorter:A,setSorter:H,pageCount:q,createLinkForSyncWithLocation:V,overtime:G}=qL({permanentSorter:a,permanentFilter:u,initialCurrent:t,initialPageSize:n,pagination:r,hasPagination:o,initialSorter:i,initialFilter:s,filters:c,sorters:d,syncWithLocation:f,defaultSetFilterBehavior:l,resource:m,successNotification:p,errorNotification:h,queryOptions:y,liveMode:b,onLiveEvent:g,liveParams:x,meta:Ae(w,P),metaData:Ae(w,P),dataProviderName:C,overtimeOptions:E}),[Y,re]=v.useState(k),{data:le,isFetched:J,isLoading:oe}=_,ue=((c==null?void 0:c.mode)||"server")==="server",ge=((d==null?void 0:d.mode)||"server")==="server",me=o===!1?"off":"server",ke=((r==null?void 0:r.mode)??me)!=="off",be=Ae(d==null?void 0:d.permanent,a)??[],ie=Ae(c==null?void 0:c.permanent,u)??[],ye=Ie(K=>{ke&&T(K+1)},"handlePageChange"),U=Ie(K=>{ke&&N(K)},"handlePageSizeChange"),Q=Ie(K=>{let ee=WFe(K);B(ee)},"handleSortModelChange"),Z=Ie(K=>{let ee=KFe(K);re(ee),L(ee.filter(se=>se.value!=="")),ke&&T(1)},"handleFilterModelChange"),ae=Ie(async K=>{if(e){let ee=await e(K);re(ee),L(ee.filter(se=>se.value!=="")),ke&&T(1)}},"search"),te=Ie(()=>ke?{paginationMode:"server",paginationModel:{page:D-1,pageSize:F},onPaginationModelChange:K=>{ye(K.page),U(K.pageSize)}}:{paginationMode:"client"},"dataGridPaginationValues");return{tableQueryResult:_,dataGridProps:{disableRowSelectionOnClick:!0,rows:(le==null?void 0:le.data)||[],loading:R==="auto"?oe:!J,rowCount:(le==null?void 0:le.total)||0,...te(),sortingMode:ge?"server":"client",sortModel:GFe(Ol(j,be,Mo)),onSortModelChange:Q,filterMode:ue?"server":"client",filterModel:QFe(Ol(Y,ie,Mo),I),onFilterModelChange:Z,onStateChange:K=>{let ee=Object.fromEntries(Object.entries(K.columns.lookup).map(([se,Ce])=>[se,Ce.type]));!Mo(ee,I)&&M(ee)},sx:{border:"none","& .MuiDataGrid-columnHeaders":{background:Tf(S.palette.background.paper,.05),borderBottom:`1px solid ${Tf(S.palette.background.paper,.1)}`},"& .MuiDataGrid-cell":{borderBottom:`1px solid ${Tf(S.palette.background.paper,.05)}`}}},current:D,setCurrent:T,pageSize:F,setPageSize:N,pageCount:q,sorters:j,setSorters:B,sorter:A,setSorter:H,filters:k,setFilters:L,search:ae,createLinkForSyncWithLocation:V,overtime:G}}Ie(Qj,"useDataGrid");Ie(()=>{let{mobileSiderOpen:e,siderCollapsed:t,setMobileSiderOpen:n,setSiderCollapsed:r}=v.useContext(bk);return{siderVisible:e,setSiderVisible:n,drawerSiderVisible:!t,setDrawerSiderVisible:o=>r(!o)}},"useSiderVisible");var Yj=Ie(()=>{let{mobileSiderOpen:e,siderCollapsed:t,setMobileSiderOpen:n,setSiderCollapsed:r}=v.useContext(bk);return{mobileSiderOpen:e,siderCollapsed:t,setMobileSiderOpen:n,setSiderCollapsed:r}},"useThemedLayoutContext"),YFe=Ie(({Title:e,render:t,meta:n,activeItemDisabled:r=!1})=>{let{siderCollapsed:o,setSiderCollapsed:i,mobileSiderOpen:a,setMobileSiderOpen:l}=Yj(),s=Ie(()=>o?56:240,"drawerWidth"),u=Qe(),c=st(),d=Wn(),{Link:f}=zt(),m=c==="legacy"?f:d,{hasDashboard:p}=un(),h=Qe(),{menuItems:y,selectedKey:b,defaultOpenKeys:g}=BS({meta:n}),x=Xv(),w=TS(),P=Nt(),{warnWhen:C,setWarnWhen:E}=Qa(),{mutate:S}=Bc({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),[R,I]=v.useState({});$.useEffect(()=>{I(j=>{let B=Object.keys(j).filter(H=>j[H]),A=new Set([...B,...g]);return Object.fromEntries(Array.from(A.values()).map(H=>[H,!0]))})},[g]);let M=e??w??il,_=Ie(j=>{I({...R,[j]:!R[j]})},"handleClick"),D=Ie((j,B)=>j.map(A=>{let{icon:H,label:q,route:V,name:G,children:Y,parentName:re,meta:le,options:J}=A,oe=R[A.key||""]||!1,ue=A.key===B,ge=Ae(le==null?void 0:le.parent,J==null?void 0:J.parent,re)!==void 0;if(Y.length>0)return $.createElement(Ta,{key:A.key,resource:G.toLowerCase(),action:"list",params:{resource:A}},$.createElement("div",{key:A.key},$.createElement(Cr,{title:q??G,placement:"right",disableHoverListener:!o,arrow:!0},$.createElement(Ro,{onClick:()=>{o?(i(!1),oe||_(A.key||"")):_(A.key||"")},sx:{pl:ge?4:2,justifyContent:"center"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:"24px",transition:"margin-right 0.3s",marginRight:o?"0px":"12px",color:"currentColor"}},H??$.createElement(Ua,null)),$.createElement(Un,{primary:q,primaryTypographyProps:{noWrap:!0,fontSize:"14px"}}),oe?$.createElement(Qy,{sx:{color:"text.icon"}}):$.createElement(Yy,{sx:{color:"text.icon"}}))),!o&&$.createElement(Wy,{in:R[A.key||""],timeout:"auto",unmountOnExit:!0},$.createElement(au,{component:"div",disablePadding:!0},D(Y,B)))));let me=r&&ue?{pointerEvents:"none"}:{};return $.createElement(Ta,{key:A.key,resource:G.toLowerCase(),action:"list",params:{resource:A}},$.createElement(Cr,{title:q??G,placement:"right",disableHoverListener:!o,arrow:!0},$.createElement(Ro,{component:m,to:V,selected:ue,style:me,onClick:()=>{l(!1)},sx:{pl:ge?4:2,py:ge?1.25:1,justifyContent:"center",color:ue?"primary.main":"text.primary"}},$.createElement(Hn,{sx:{justifyContent:"center",transition:"margin-right 0.3s",marginRight:o?"0px":"12px",minWidth:"24px",color:"currentColor"}},H??$.createElement(Ua,null)),$.createElement(Un,{primary:q,primaryTypographyProps:{noWrap:!0,fontSize:"14px"}}))))}),"renderTreeView"),T=p?$.createElement(Ta,{resource:"dashboard",action:"list"},$.createElement(Cr,{title:h("dashboard.title","Dashboard"),placement:"right",disableHoverListener:!o,arrow:!0},$.createElement(Ro,{component:m,to:"/",selected:b==="/",onClick:()=>{l(!1)},sx:{pl:2,py:1,justifyContent:"center",color:b==="/"?"primary.main":"text.primary"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:"24px",transition:"margin-right 0.3s",marginRight:o?"0px":"12px",color:"currentColor",fontSize:"14px"}},$.createElement(Zy,null)),$.createElement(Un,{primary:h("dashboard.title","Dashboard"),primaryTypographyProps:{noWrap:!0,fontSize:"14px"}})))):null,F=Ie(()=>{C?window.confirm(u("warnWhenUnsavedChanges","Are you sure you want to leave? You have unsaved changes."))&&(E(!1),S()):S()},"handleLogout"),N=x&&$.createElement(Cr,{title:u("buttons.logout","Logout"),placement:"right",disableHoverListener:!o,arrow:!0},$.createElement(Ro,{key:"logout",onClick:()=>F(),sx:{justifyContent:"center"}},$.createElement(Hn,{sx:{justifyContent:"center",minWidth:"24px",transition:"margin-right 0.3s",marginRight:o?"0px":"12px",color:"currentColor"}},$.createElement(Ky,null)),$.createElement(Un,{primary:u("buttons.logout","Logout"),primaryTypographyProps:{noWrap:!0,fontSize:"14px"}}))),k=D(y,b),L=$.createElement(au,{disablePadding:!0,sx:{flexGrow:1,paddingTop:"16px"}},Ie(()=>t?t({dashboard:T,logout:N,items:k,collapsed:o}):$.createElement($.Fragment,null,T,k,N),"renderSider")());return $.createElement($.Fragment,null,$.createElement(Ke,{sx:{width:{xs:s()},display:{xs:"none",md:"block"},transition:"width 0.3s ease"}}),$.createElement(Ke,{component:"nav",sx:{position:"fixed",zIndex:1101,width:{sm:s()},display:"flex"}},$.createElement(Gc,{variant:"temporary",elevation:2,open:a,onClose:()=>l(!1),ModalProps:{keepMounted:!0},sx:{display:{sm:"block",md:"none"}}},$.createElement(Ke,{sx:{width:s()}},$.createElement(Ke,{sx:{height:64,display:"flex",alignItems:"center",paddingLeft:"16px",fontSize:"14px"}},$.createElement(M,{collapsed:!1})),L)),$.createElement(Gc,{variant:"permanent",sx:{display:{xs:"none",md:"block"},"& .MuiDrawer-paper":{width:s(),overflow:"hidden",transition:"width 200ms cubic-bezier(0.4, 0, 0.6, 1) 0ms"}},open:!0},$.createElement(Ko,{elevation:0,sx:{fontSize:"14px",width:"100%",height:64,display:"flex",flexShrink:0,alignItems:"center",justifyContent:o?"center":"space-between",paddingLeft:o?0:"16px",paddingRight:o?0:"8px",variant:"outlined",borderRadius:0,borderBottom:j=>`1px solid ${j.palette.action.focus}`}},$.createElement(M,{collapsed:o}),!o&&$.createElement(An,{size:"small",onClick:()=>i(!0)},$.createElement(Xy,null))),$.createElement(Ke,{sx:{flexGrow:1,overflowX:"hidden",overflowY:"auto"}},L))))},"ThemedSiderV2"),dT=Ie(e=>$.createElement(An,{color:"inherit","aria-label":"open drawer",edge:"start",...e},$.createElement(BE,null)),"HamburgerIcon"),Xj=Ie(()=>{let{siderCollapsed:e,setSiderCollapsed:t,mobileSiderOpen:n,setMobileSiderOpen:r}=Yj();return $.createElement($.Fragment,null,$.createElement(dT,{onClick:()=>t(!e),sx:{mr:2,display:{xs:"none",md:"flex"},...!e&&{display:"none"}}}),$.createElement(dT,{onClick:()=>r(!n),sx:{mr:2,display:{xs:"flex",md:"none"},...n&&{display:"none"}}}))},"HamburgerMenu"),XFe=Ie(({isSticky:e,sticky:t})=>{let n=Nt(),{data:r}=ld({v3LegacyAuthProviderCompatible:!!(n!=null&&n.isLegacy)}),o=Ae(t,e)??!0;return $.createElement(Jy,{position:o?"sticky":"relative"},$.createElement(tm,null,$.createElement(Xj,null),$.createElement(Nr,{direction:"row",width:"100%",justifyContent:"flex-end",alignItems:"center"},$.createElement(Nr,{direction:"row",gap:"16px",alignItems:"center",justifyContent:"center"},(r==null?void 0:r.name)&&$.createElement(Xe,{variant:"subtitle2"},r==null?void 0:r.name),(r==null?void 0:r.avatar)&&$.createElement(e0,{src:r==null?void 0:r.avatar,alt:r==null?void 0:r.name})))))},"ThemedHeaderV2"),ZFe=Ie(({Sider:e,Header:t,Title:n,Footer:r,OffLayoutArea:o,children:i,initialSiderCollapsed:a})=>$.createElement(VFe,{initialSiderCollapsed:a},$.createElement(Ke,{display:"flex",flexDirection:"row"},$.createElement(e??YFe,{Title:n}),$.createElement(Ke,{sx:[{display:"flex",flexDirection:"column",flex:1,minHeight:"100vh"},{overflow:"auto"},{overflow:"clip"}]},$.createElement(t??XFe,null),$.createElement(Ke,{component:"main",sx:{p:{xs:1,md:2,lg:3},flexGrow:1,bgcolor:l=>l.palette.background.default}},i),r&&$.createElement(r,null)),o&&$.createElement(o,null))),"ThemedLayoutV2"),JFe="Refine Project",eAe=$.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z",fill:"currentColor"}),$.createElement("path",{d:"M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z",fill:"currentColor"})),il=Ie(({collapsed:e,wrapperStyles:t,icon:n=eAe,text:r=JFe})=>{let o=st(),i=Wn(),{Link:a}=zt();return $.createElement(zr,{to:"/",component:o==="legacy"?a:i,underline:"none",sx:{display:"flex",alignItems:"center",gap:"12px",...t}},$.createElement(Xl,{height:"24px",width:"24px",color:"primary"},n),!e&&$.createElement(Xe,{variant:"h6",fontWeight:700,color:"text.primary",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},r))},"ThemedTitleV2");Ie(()=>{var e;let{register:t,handleSubmit:n,formState:{errors:r}}=Za(),o=Nt(),{mutate:i,isLoading:a}=Dp({v3LegacyAuthProviderCompatible:!!(o!=null&&o.isLegacy)}),l=Qe();return v.createElement(v.Fragment,null,v.createElement(Ke,{component:"div",sx:{background:"radial-gradient(50% 50% at 50% 50%, #63386A 0%, #310438 100%)",backgroundSize:"cover"}},v.createElement(um,{component:"main",maxWidth:"xs",sx:{display:"flex",flexDirection:"column",justifyContent:"center",height:"100vh"}},v.createElement(Ke,{sx:{display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center"}},v.createElement("div",null,v.createElement("img",{src:"https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg",alt:"Refine Logo",style:{maxWidth:200}})),v.createElement(Ke,{mt:4},v.createElement(Ja,null,v.createElement(el,{sx:{paddingX:"32px"}},v.createElement(Xe,{component:"h1",variant:"h5",align:"center",sx:{fontWeight:"700",margin:"12px 0"}},l("pages.login.title","Sign in your account")),v.createElement(Ke,{component:"form",onSubmit:n(s=>{i(s)}),gap:"16px"},v.createElement(In,{...t("username",{required:!0}),id:"username",margin:"normal",size:"small",fullWidth:!0,label:l("pages.login.username","Username"),name:"username",autoComplete:"username",autoFocus:!0}),v.createElement(In,{...t("password",{required:!0}),id:"password",size:"small",margin:"normal",fullWidth:!0,name:"password",label:l("pages.login.password","Password"),helperText:(e=r==null?void 0:r.password)==null?void 0:e.message,type:"password",placeholder:"●●●●●●●●",autoComplete:"current-password"}),v.createElement(Ke,{component:"div",sx:{display:"flex",justifyContent:"space-between",alignItems:"center"}},v.createElement(oP,{sx:{span:{fontSize:"12px",color:"text.secondary"}},color:"secondary",control:v.createElement(gP,{size:"small",id:"remember",...t("remember")}),label:l("pages.login.remember","Remember me")}),v.createElement(zr,{href:"#",sx:{fontSize:"12px",textDecoration:"none"}},v.createElement(Xe,{sx:{fontSize:"12px"}},l("pages.login.forgotPassword","Forgot password?")))),v.createElement(mn,{type:"submit",fullWidth:!0,variant:"contained",sx:{my:"8px",color:"white"},disabled:a},l("pages.login.signin","Sign in")),v.createElement(Ke,{style:{marginTop:8}},v.createElement(Xe,{variant:"subtitle2"},l("pages.login.noAccount","Dont have an account?")," ",v.createElement(zr,{underline:"none",href:"#",style:{fontWeight:"bold"}},l("pages.login.signup","Sign up"))))))))))))},"LoginPage");Ie(()=>{let e=Ie(t=>v.createElement(Xe,{sx:{backgroundColor:n=>n.palette.secondary.contrastText,color:n=>n.palette.secondary.main,display:"inline-block",fontFamily:"monospace"}},t),"renderCode");return v.createElement(v.Fragment,null,v.createElement(kc,{container:!0,sx:{backgroundColor:t=>t.palette.secondary.main,display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",backgroundImage:"url('https://refine.ams3.cdn.digitaloceanspaces.com/login-background/background.png')",backgroundSize:"cover"},p:3},v.createElement(kc,{display:"flex",flexDirection:"column",flex:1,alignItems:"center",color:t=>t.palette.primary.contrastText},v.createElement(Xe,{display:"flex",justifyContent:"center"},v.createElement("img",{style:{marginBottom:"48px"},src:"https://refine.ams3.cdn.digitaloceanspaces.com/logo/refine.svg",alt:"Refine Logo"})),v.createElement(Xe,{variant:"h2",fontWeight:"bold",display:"flex",justifyContent:"center"},"Welcome on board"),v.createElement(Xe,{variant:"h5",mt:2},"Your configuration is completed."),v.createElement(Xe,{variant:"h6",mt:2},"Now you can get started by adding your resources to the"," ",e("resources")," property of ",e("Refine")),v.createElement(kc,{item:!0,sm:12,mt:12,display:"flex",justifyContent:"center"},v.createElement(Nr,{spacing:2,direction:{xs:"column",sm:"row"}},v.createElement(zr,{href:"https://refine.dev",target:"_blank",rel:"noreferrer",style:{textDecoration:"none"}},v.createElement(mn,{variant:"outlined",fullWidth:!0},"Documentation")),v.createElement(zr,{href:"https://refine.dev/examples",target:"_blank",rel:"noreferrer",style:{textDecoration:"none"}},v.createElement(mn,{variant:"outlined",fullWidth:!0},"Examples")),v.createElement(zr,{href:"https://discord.gg/refine",target:"_blank",rel:"noreferrer",style:{textDecoration:"none"}},v.createElement(mn,{variant:"outlined",fullWidth:!0},"Community")))))))},"ReadyPage");Ie(()=>$.createElement(aK,null),"WelcomePage");var tAe=Ie(()=>{let[e,t]=v.useState(),{push:n}=xn(),r=pr(),o=st(),{resource:i,action:a}=Je(),l=Qe();return v.useEffect(()=>{i&&a&&t(l("pages.error.info",{action:a,resource:i==null?void 0:i.name},`You may have forgotten to add the "${a}" component to "${i==null?void 0:i.name}" resource.`))},[a,i]),$.createElement(kc,{display:"flex",justifyContent:"center",alignItems:"center",mt:20},$.createElement(kc,{container:!0,direction:"column",display:"flex",alignItems:"center"},$.createElement(Xe,{variant:"h1"},"404"),$.createElement(Nr,{direction:"row",spacing:"2"},$.createElement(Xe,null,l("pages.error.404","Sorry, the page you visited does not exist.")),e&&$.createElement(Cr,{title:e},$.createElement(Hz,{}))),$.createElement(mn,{onClick:()=>{o==="legacy"?n("/"):r({to:"/"})}},l("pages.error.backHome","Back Home"))))},"ErrorComponent"),L0={},D0={textAlign:"center",fontSize:"24px",marginBottom:"24px",overflowWrap:"break-word",hyphens:"manual",textOverflow:"unset",whiteSpace:"pre-wrap"},nAe=Ie(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:o,wrapperProps:i,renderContent:a,formProps:l,title:s,hideForm:u})=>{var c;let{onSubmit:d,...f}=l||{},m=Za({...f}),{register:p,handleSubmit:h,formState:{errors:y}}=m,b=Nt(),{mutate:g,isLoading:x}=Dp({v3LegacyAuthProviderCompatible:!!(b!=null&&b.isLegacy)}),w=Qe(),P=st(),C=Wn(),{Link:E}=zt(),S=P==="legacy"?E:C,R=s===!1?null:v.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"32px",fontSize:"20px"}},s??v.createElement(il,{collapsed:!1,wrapperStyles:{gap:"8px"}})),I=Ie(()=>e&&e.length>0?v.createElement(v.Fragment,null,v.createElement(Nr,{spacing:1},e.map(_=>v.createElement(mn,{key:_.name,variant:"outlined",fullWidth:!0,sx:{color:"primary.light",borderColor:"primary.light",textTransform:"none"},onClick:()=>g({providerName:_.name}),startIcon:_.icon},_.label))),!u&&v.createElement(JE,{sx:{fontSize:"12px",marginY:"16px"}},w("pages.login.divider","or"))):null,"renderProviders"),M=v.createElement(Ja,{...o??{}},v.createElement(el,{sx:{p:"32px","&:last-child":{pb:"32px"}}},v.createElement(Xe,{component:"h1",variant:"h5",align:"center",style:D0,color:"primary",fontWeight:700},w("pages.login.title","Sign in to your account")),I(),!u&&v.createElement(Ke,{component:"form",onSubmit:h(_=>d?d(_):g(_))},v.createElement(In,{...p("email",{required:!0}),id:"email",margin:"normal",fullWidth:!0,label:w("pages.login.fields.email","Email"),error:!!y.email,name:"email",type:"email",autoComplete:"email",sx:{mt:0}}),v.createElement(In,{...p("password",{required:!0}),id:"password",margin:"normal",fullWidth:!0,name:"password",label:w("pages.login.fields.password","Password"),helperText:(c=y==null?void 0:y.password)==null?void 0:c.message,error:!!y.password,type:"password",placeholder:"●●●●●●●●",autoComplete:"current-password",sx:{mb:0}}),v.createElement(Ke,{component:"div",sx:{mt:"24px",display:"flex",justifyContent:"space-between",alignItems:"center"}},r??v.createElement(oP,{sx:{span:{fontSize:"14px",color:"text.secondary"}},color:"secondary",control:v.createElement(gP,{size:"small",id:"remember",...p("remember")}),label:w("pages.login.buttons.rememberMe","Remember me")}),n??v.createElement(zr,{variant:"body2",color:"primary",fontSize:"12px",component:S,underline:"none",to:"/forgot-password"},w("pages.login.buttons.forgotPassword","Forgot password?"))),v.createElement(mn,{type:"submit",fullWidth:!0,variant:"contained",disabled:x,sx:{mt:"24px"}},w("pages.login.signin","Sign in"))),t??v.createElement(Ke,{sx:{mt:"24px",display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement(Xe,{textAlign:"center",variant:"body2",component:"span",fontSize:"12px"},w("pages.login.buttons.noAccount","Dont have an account?")),v.createElement(zr,{ml:"4px",fontSize:"12px",variant:"body2",color:"primary",component:S,underline:"none",to:"/register",fontWeight:"bold"},w("pages.login.signup","Sign up")))));return v.createElement(o1e,{...m},v.createElement(Ke,{component:"div",style:L0,...i??{}},v.createElement(um,{component:"main",sx:{display:"flex",flexDirection:"column",justifyContent:u?"flex-start":"center",alignItems:"center",minHeight:"100dvh",padding:"16px",width:"100%",maxWidth:"400px"}},v.createElement(Ke,{sx:{width:"100%",maxWidth:"400px",display:"flex",flexDirection:"column",paddingTop:u?"15dvh":0}},a?a(M,R):v.createElement(v.Fragment,null,R,M)))))},"LoginPage"),rAe=Ie(({loginLink:e,wrapperProps:t,contentProps:n,renderContent:r,providers:o,formProps:i,title:a,hideForm:l})=>{let{onSubmit:s,...u}=i||{},{register:c,handleSubmit:d,formState:{errors:f}}=Za({...u}),m=Nt(),{mutate:p,isLoading:h}=FS({v3LegacyAuthProviderCompatible:!!(m!=null&&m.isLegacy)}),y=Qe(),b=st(),g=Wn(),{Link:x}=zt(),w=b==="legacy"?x:g,P=a===!1?null:v.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"32px",fontSize:"20px"}},a??v.createElement(il,{collapsed:!1,wrapperStyles:{gap:"8px"}})),C=Ie(()=>o&&o.length>0?v.createElement(v.Fragment,null,v.createElement(Nr,{spacing:1},o.map(S=>v.createElement(mn,{key:S.name,color:"secondary",fullWidth:!0,variant:"outlined",sx:{color:"primary.light",borderColor:"primary.light",textTransform:"none"},onClick:()=>p({providerName:S.name}),startIcon:S.icon},S.label))),!l&&v.createElement(JE,{sx:{fontSize:"12px",marginY:"16px"}},y("pages.login.divider","or"))):null,"renderProviders"),E=v.createElement(Ja,{...n??{}},v.createElement(el,{sx:{p:"32px","&:last-child":{pb:"32px"}}},v.createElement(Xe,{component:"h1",variant:"h5",align:"center",style:D0,color:"primary",fontWeight:700},y("pages.register.title","Sign up for your account")),C(),!l&&v.createElement(Ke,{component:"form",onSubmit:d(S=>s?s(S):p(S))},v.createElement(In,{...c("email",{required:!0,pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:y("pages.register.errors.validEmail","Invalid email address")}}),id:"email",margin:"normal",fullWidth:!0,label:y("pages.register.email","Email"),error:!!f.email,helperText:f.email?f.email.message:"",name:"email",autoComplete:"email",sx:{mt:0}}),v.createElement(In,{...c("password",{required:!0}),id:"password",margin:"normal",fullWidth:!0,name:"password",label:y("pages.register.fields.password","Password"),helperText:f.password?f.password.message:"",error:!!f.password,type:"password",placeholder:"●●●●●●●●",autoComplete:"current-password",sx:{mb:0}}),v.createElement(mn,{type:"submit",fullWidth:!0,variant:"contained",disabled:h,sx:{mt:"24px"}},y("pages.register.signup","Sign up"))),e??v.createElement(Ke,{display:"flex",justifyContent:"flex-end",alignItems:"center",sx:{mt:"24px",display:"flex",justifyContent:"center",alignItems:"center"}},v.createElement(Xe,{variant:"body2",component:"span",fontSize:"12px"},y("pages.login.buttons.haveAccount","Have an account?")),v.createElement(zr,{ml:"4px",variant:"body2",color:"primary",component:w,underline:"none",to:"/login",fontSize:"12px",fontWeight:"bold"},y("pages.login.signin","Sign in")))));return v.createElement(Ke,{component:"div",style:L0,...t??{}},v.createElement(um,{component:"main",sx:{display:"flex",flexDirection:"column",justifyContent:l?"flex-start":"center",alignItems:"center",minHeight:"100dvh",padding:"16px",width:"100%",maxWidth:"400px"}},v.createElement(Ke,{sx:{width:"100%",maxWidth:"400px",display:"flex",flexDirection:"column",paddingTop:l?"15dvh":0}},r?r(E,P):v.createElement(v.Fragment,null,P,E))))},"RegisterPage"),oAe=Ie(({loginLink:e,wrapperProps:t,contentProps:n,renderContent:r,formProps:o,title:i})=>{let{onSubmit:a,...l}=o||{},{register:s,handleSubmit:u,formState:{errors:c}}=Za({...l}),{mutate:d,isLoading:f}=AS(),m=Qe(),p=st(),h=Wn(),{Link:y}=zt(),b=p==="legacy"?y:h,g=i===!1?null:v.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"32px",fontSize:"20px"}},i??v.createElement(il,{collapsed:!1,wrapperStyles:{gap:"8px"}})),x=v.createElement(Ja,{...n??{}},v.createElement(el,{sx:{p:"32px","&:last-child":{pb:"32px"}}},v.createElement(Xe,{component:"h1",variant:"h5",align:"center",style:D0,color:"primary",fontWeight:700},m("pages.forgotPassword.title","Forgot your password?")),v.createElement(Ke,{component:"form",onSubmit:u(w=>a?a(w):d(w))},v.createElement(In,{...s("email",{required:!0,pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:m("pages.register.errors.validEmail","Invalid email address")}}),id:"email",margin:"normal",fullWidth:!0,label:m("pages.forgotPassword.fields.email","Email"),name:"email",type:"email",error:!!c.email,autoComplete:"email",sx:{m:0}}),e??v.createElement(Ke,{textAlign:"right",sx:{mt:"24px"}},v.createElement(Xe,{variant:"body2",component:"span",fontSize:"12px"},m("pages.register.buttons.haveAccount","Have an account?"))," ",v.createElement(zr,{variant:"body2",component:b,underline:"none",to:"/login",fontWeight:"bold",fontSize:"12px",color:"primary.light"},m("pages.login.signin","Sign in"))),v.createElement(mn,{type:"submit",fullWidth:!0,variant:"contained",sx:{mt:"24px"},disabled:f},m("pages.forgotPassword.buttons.submit","Send reset instructions")))));return v.createElement(v.Fragment,null,v.createElement(Ke,{component:"div",style:L0,...t??{}},v.createElement(um,{component:"main",maxWidth:"xs",sx:{display:"flex",flexDirection:"column",justifyContent:"center",minHeight:"100dvh",padding:"16px",width:"100%",maxWidth:"400px"}},r?r(x,g):v.createElement(v.Fragment,null,g,x))))},"ForgotPasswordPage"),iAe=Ie(({wrapperProps:e,contentProps:t,renderContent:n,formProps:r,title:o=void 0})=>{var i,a;let{onSubmit:l,...s}=r||{},{register:u,watch:c,handleSubmit:d,formState:{errors:f}}=Za({...s}),m=Nt(),{mutate:p,isLoading:h}=LS({v3LegacyAuthProviderCompatible:!!(m!=null&&m.isLegacy)}),y=Qe(),b=o===!1?null:v.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"32px",fontSize:"20px"}},o??v.createElement(il,{collapsed:!1,wrapperStyles:{gap:"8px"}})),g=v.createElement(Ja,{...t??{}},v.createElement(el,{sx:{p:"32px","&:last-child":{pb:"32px"}}},v.createElement(Xe,{component:"h1",variant:"h5",align:"center",style:D0,color:"primary",fontWeight:700},y("pages.updatePassword.title","Set New Password")),v.createElement(Ke,{component:"form",onSubmit:d(x=>l?l(x):p(x))},v.createElement(In,{...u("password",{required:!0}),id:"password",margin:"normal",fullWidth:!0,name:"password",label:y("pages.updatePassword.fields.password","New Password"),helperText:(i=f==null?void 0:f.password)==null?void 0:i.message,error:!!(f!=null&&f.password),type:"password",placeholder:"●●●●●●●●",autoComplete:"current-password",sx:{m:0}}),v.createElement(In,{...u("confirmPassword",{required:!0,validate:x=>c("password")!==x?y("pages.updatePassword.errors.confirmPasswordNotMatch","Passwords do not match"):!0}),id:"confirmPassword",margin:"normal",fullWidth:!0,name:"confirmPassword",label:y("pages.updatePassword.fields.confirmPassword","Confirm New Password"),helperText:(a=f==null?void 0:f.confirmPassword)==null?void 0:a.message,error:!!(f!=null&&f.confirmPassword),type:"password",placeholder:"●●●●●●●●",autoComplete:"current-confirm-password",sx:{mb:0}}),v.createElement(mn,{type:"submit",fullWidth:!0,variant:"contained",sx:{mt:"24px"},disabled:h},y("pages.updatePassword.buttons.submit","Update")))));return v.createElement(v.Fragment,null,v.createElement(Ke,{component:"div",style:L0,...e??{}},v.createElement(um,{component:"main",maxWidth:"xs",sx:{display:"flex",flexDirection:"column",justifyContent:"center",minHeight:"100dvh",padding:"16px",width:"100%",maxWidth:"400px"}},n?n(g,b):v.createElement(v.Fragment,null,b,g))))},"UpdatePasswordPage"),xk=Ie(e=>{let{type:t}=e;return $.createElement($.Fragment,null,Ie(()=>{switch(t){case"register":return $.createElement(rAe,{...e});case"forgotPassword":return $.createElement(oAe,{...e});case"updatePassword":return $.createElement(iAe,{...e});default:return $.createElement(nAe,{...e})}},"renderView")())},"AuthPage"),aAe=Ie(({title:e,children:t,saveButtonProps:n,resource:r,isLoading:o=!1,breadcrumb:i,wrapperProps:a,headerProps:l,contentProps:s,headerButtonProps:u,headerButtons:c,footerButtonProps:d,footerButtons:f,goBack:m})=>{var p,h;let y=Qe(),{options:{breadcrumb:b}={}}=un(),g=st(),x=Jv(),{goBack:w}=xn(),P=ea(),{resource:C,action:E,identifier:S}=Je(r),R=typeof i>"u"?b:i,I=typeof R<"u"?$.createElement($.Fragment,null,R)??void 0:$.createElement(N0,null),M={...o?{disabled:!0}:{},...n},_=$.createElement(t3,{...M});return $.createElement(Ja,{...a??{}},I,$.createElement(y0,{sx:{display:"flex",flexWrap:"wrap",".MuiCardHeader-action":{margin:0,alignSelf:"center"}},title:e??$.createElement(Xe,{variant:"h5",className:x0.Title},y(`${S}.titles.create`,`Create ${P(((p=C==null?void 0:C.meta)==null?void 0:p.label)??((h=C==null?void 0:C.options)==null?void 0:h.label)??(C==null?void 0:C.label)??S,"singular")}`)),avatar:typeof m<"u"?m:$.createElement(An,{onClick:E!=="list"||typeof E<"u"?g==="legacy"?w:x:void 0},$.createElement(b0,null)),action:c?$.createElement(Ke,{display:"flex",gap:"16px",...u??{}},c?typeof c=="function"?c({defaultButtons:null}):c:null):void 0,...l??{}}),$.createElement(el,{...s??{}},t),$.createElement(SP,{sx:{display:"flex",justifyContent:"flex-end",gap:"16px",padding:"16px"},...d??{}},f?typeof f=="function"?f({defaultButtons:_,saveButtonProps:M}):f:_))},"Create"),lAe=Ie(({title:e,saveButtonProps:t,mutationMode:n,recordItemId:r,children:o,deleteButtonProps:i,canDelete:a,resource:l,isLoading:s=!1,breadcrumb:u,dataProviderName:c,wrapperProps:d,headerProps:f,contentProps:m,headerButtonProps:p,headerButtons:h,footerButtonProps:y,footerButtons:b,goBack:g,autoSaveProps:x})=>{var w,P,C;let E=Qe(),{options:{breadcrumb:S}={}}=un(),{mutationMode:R}=mu(),I=n??R,M=st(),_=Jv(),D=pr(),{goBack:T,list:F}=xn(),N=ea(),{resource:k,action:L,id:j,identifier:B}=Je(l),A=GL({resource:k,action:"list"}),H=r??j,q=typeof u>"u"?S:u,V=(k==null?void 0:k.list)&&!r,G=a??((((w=k==null?void 0:k.meta)==null?void 0:w.canDelete)??(k==null?void 0:k.canDelete))||i),Y=typeof q<"u"?$.createElement($.Fragment,null,q)??void 0:$.createElement(N0,null),re=V?{...s?{disabled:!0}:{},resource:M==="legacy"?k==null?void 0:k.route:B}:void 0,le={...s?{disabled:!0}:{},resource:M==="legacy"?k==null?void 0:k.route:B,recordItemId:H,dataProviderName:c},J=$.createElement(Ke,{display:"flex",flexDirection:"row",alignItems:"center"},x&&$.createElement(mAe,{...x}),V&&$.createElement(e3,{...re}),$.createElement(Jj,{...le})),oe=G?{...s?{disabled:!0}:{},resource:M==="legacy"?k==null?void 0:k.route:B,mutationMode:I,variant:"outlined",onSuccess:()=>{M==="legacy"?F((k==null?void 0:k.route)??(k==null?void 0:k.name)??""):D({to:A})},recordItemId:H,dataProviderName:c,...i}:void 0,ue={...s?{disabled:!0}:{},...t},ge=$.createElement($.Fragment,null,G&&$.createElement(wk,{...oe}),$.createElement(t3,{...ue}));return $.createElement(Ja,{...d??{}},Y,$.createElement(y0,{sx:{display:"flex",flexWrap:"wrap",".MuiCardHeader-action":{margin:0,alignSelf:"center"}},title:e??$.createElement(Xe,{variant:"h5",className:x0.Title},E(`${B}.titles.edit`,`Edit ${N(((P=k==null?void 0:k.meta)==null?void 0:P.label)??((C=k==null?void 0:k.options)==null?void 0:C.label)??(k==null?void 0:k.label)??B,"singular")}`)),avatar:typeof g<"u"?g:$.createElement(An,{onClick:L!=="list"&&typeof L<"u"?M==="legacy"?T:_:void 0},$.createElement(b0,null)),action:$.createElement(Ke,{display:"flex",gap:"16px",...p??{}},h?typeof h=="function"?h({defaultButtons:J,listButtonProps:re,refreshButtonProps:le}):h:J),...f??{}}),$.createElement(el,{...m??{}},o),$.createElement(SP,{sx:{display:"flex",justifyContent:"flex-end",gap:"16px",padding:"16px"},...y??{}},b?typeof b=="function"?b({defaultButtons:ge,deleteButtonProps:oe,saveButtonProps:ue}):b:ge))},"Edit"),sAe=Ie(({title:e,canCreate:t,children:n,createButtonProps:r,resource:o,breadcrumb:i,wrapperProps:a,headerProps:l,contentProps:s,headerButtonProps:u,headerButtons:c})=>{var d,f;let m=Qe(),{options:{breadcrumb:p}={}}=un(),h=ea(),y=st(),{resource:b,identifier:g}=Je(o),x=t??(((b==null?void 0:b.canCreate)??!!(b!=null&&b.create))||r),w=typeof i>"u"?p:i,P=typeof w<"u"?$.createElement($.Fragment,null,w)??void 0:$.createElement(N0,null),C=x?{resource:y==="legacy"?b==null?void 0:b.route:g,...r}:void 0,E=x?$.createElement(uAe,{...C}):null;return $.createElement(Ja,{...a??{}},P,$.createElement(y0,{sx:{display:"flex",flexWrap:"wrap",".MuiCardHeader-action":{margin:0,alignSelf:"center"}},title:e??$.createElement(Xe,{variant:"h5",className:x0.Title},m(`${g}.titles.list`,h(((d=b==null?void 0:b.meta)==null?void 0:d.label)??((f=b==null?void 0:b.options)==null?void 0:f.label)??(b==null?void 0:b.label)??g,"plural"))),action:$.createElement(Ke,{display:"flex",gap:"16px",...u},c?typeof c=="function"?c({defaultButtons:E,createButtonProps:C}):c:E),...l??{}}),$.createElement(el,{...s??{}},n))},"List");Ie(({title:e,canEdit:t,canDelete:n,isLoading:r=!1,children:o,resource:i,recordItemId:a,breadcrumb:l,dataProviderName:s,wrapperProps:u,headerProps:c,contentProps:d,headerButtonProps:f,headerButtons:m,footerButtonProps:p,footerButtons:h,goBack:y})=>{var b,g,x;let w=Qe(),{options:{breadcrumb:P}={}}=un(),C=st(),E=Jv(),S=pr(),{goBack:R,list:I}=xn(),M=ea(),{resource:_,action:D,id:T,identifier:F}=Je(i),N=GL({resource:_,action:"list"}),k=a??T,L=typeof l>"u"?P:l,j=(_==null?void 0:_.list)&&!a,B=(n??((b=_==null?void 0:_.meta)==null?void 0:b.canDelete)??(_==null?void 0:_.canDelete))&&typeof k<"u",A=t??(_==null?void 0:_.canEdit)??!!(_!=null&&_.edit),H=typeof L<"u"?$.createElement($.Fragment,null,L)??void 0:$.createElement(N0,null),q=j?{...r?{disabled:!0}:{},resource:C==="legacy"?_==null?void 0:_.route:F}:void 0,V=A?{...r?{disabled:!0}:{},resource:C==="legacy"?_==null?void 0:_.route:F,recordItemId:k}:void 0,G=B?{...r?{disabled:!0}:{},resource:C==="legacy"?_==null?void 0:_.route:F,recordItemId:k,onSuccess:()=>{C==="legacy"?I((_==null?void 0:_.route)??(_==null?void 0:_.name)??""):S({to:N})},dataProviderName:s}:void 0,Y={...r?{disabled:!0}:{},resource:C==="legacy"?_==null?void 0:_.route:F,recordItemId:k,dataProviderName:s},re=$.createElement($.Fragment,null,j&&$.createElement(e3,{...q}),A&&$.createElement(Zj,{...V}),B&&$.createElement(wk,{...G}),$.createElement(Jj,{...Y}));return $.createElement(Ja,{...u??{}},H,$.createElement(y0,{sx:{display:"flex",flexWrap:"wrap",".MuiCardHeader-action":{margin:0,alignSelf:"center"}},title:e??$.createElement(Xe,{variant:"h5",className:x0.Title},w(`${F}.titles.show`,`Show ${M(((g=_==null?void 0:_.meta)==null?void 0:g.label)??((x=_==null?void 0:_.options)==null?void 0:x.label)??(_==null?void 0:_.label)??F,"singular")}`)),avatar:typeof y<"u"?y:$.createElement(An,{onClick:D!=="list"&&typeof D<"u"?C==="legacy"?R:E:void 0},$.createElement(b0,null)),action:$.createElement(Ke,{display:"flex",gap:"16px",...f??{}},m?typeof m=="function"?m({defaultButtons:re,deleteButtonProps:G,editButtonProps:V,listButtonProps:q,refreshButtonProps:Y}):m:re),...c??{}}),$.createElement(el,{...d??{}},o),$.createElement(SP,{sx:{padding:"16px"},...p??{}},h?typeof h=="function"?h({defaultButtons:null}):h:null))},"Show");var uAe=Ie(({resource:e,resourceNameOrRouteName:t,hideText:n=!1,accessControl:r,svgIconProps:o,meta:i,children:a,onClick:l,...s})=>{let u=v.useContext(na),c=(r==null?void 0:r.enabled)??u.options.buttons.enableAccessControl,d=(r==null?void 0:r.hideIfUnauthorized)??u.options.buttons.hideIfUnauthorized,f=Qe(),m=st(),p=Wn(),{Link:h}=zt(),y=m==="legacy"?h:p,{createUrl:b}=xn(),{resource:g}=Je(e??t),{data:x}=gu({resource:g==null?void 0:g.name,action:"create",queryOptions:{enabled:c},params:{resource:g}}),w=Ie(()=>x!=null&&x.can?"":x!=null&&x.reason?x.reason:f("buttons.notAccessTitle","You don't have permission to access"),"disabledTitle"),P=g?b(g,i):"",{sx:C,...E}=s;return c&&d&&!(x!=null&&x.can)?null:$.createElement(y,{to:P,replace:!1,onClick:S=>{if((x==null?void 0:x.can)===!1){S.preventDefault();return}l&&(S.preventDefault(),l(S))},style:{textDecoration:"none"}},$.createElement(mn,{disabled:(x==null?void 0:x.can)===!1,startIcon:!n&&$.createElement(Ep,{...o}),title:w(),variant:"contained",sx:{minWidth:0,...C},className:oa.CreateButton,...E},n?$.createElement(Ep,{fontSize:"small",...o}):a??f("buttons.create","Create")))},"CreateButton"),Zj=Ie(({resource:e,resourceNameOrRouteName:t,recordItemId:n,hideText:r=!1,accessControl:o,svgIconProps:i,meta:a,children:l,onClick:s,...u})=>{let c=v.useContext(na),d=(o==null?void 0:o.enabled)??c.options.buttons.enableAccessControl,f=(o==null?void 0:o.hideIfUnauthorized)??c.options.buttons.hideIfUnauthorized,m=Qe(),p=st(),h=Wn(),{Link:y}=zt(),b=p==="legacy"?y:h,{editUrl:g}=xn(),{id:x,resource:w}=Je(e??t),{data:P}=gu({resource:w==null?void 0:w.name,action:"edit",params:{id:n??x,resource:w},queryOptions:{enabled:d}}),C=Ie(()=>P!=null&&P.can?"":P!=null&&P.reason?P.reason:m("buttons.notAccessTitle","You don't have permission to access"),"disabledTitle"),E=w&&(n??x)?g(w,n??x,a):"",{sx:S,...R}=u;return d&&f&&!(P!=null&&P.can)?null:$.createElement(b,{to:E,replace:!1,onClick:I=>{if((P==null?void 0:P.can)===!1){I.preventDefault();return}s&&(I.preventDefault(),s(I))},style:{textDecoration:"none"}},$.createElement(mn,{disabled:(P==null?void 0:P.can)===!1,startIcon:!r&&$.createElement(Ww,{sx:{selfAlign:"center"},...i}),title:C(),sx:{minWidth:0,...S},className:oa.EditButton,...R},r?$.createElement(Ww,{fontSize:"small",...i}):l??m("buttons.edit","Edit")))},"EditButton"),wk=Ie(({resource:e,resourceNameOrRouteName:t,recordItemId:n,onSuccess:r,mutationMode:o,children:i,successNotification:a,errorNotification:l,hideText:s=!1,accessControl:u,meta:c,metaData:d,dataProviderName:f,confirmTitle:m,confirmOkText:p,confirmCancelText:h,svgIconProps:y,invalidates:b,...g})=>{let x=v.useContext(na),w=(u==null?void 0:u.enabled)??x.options.buttons.enableAccessControl,P=(u==null?void 0:u.hideIfUnauthorized)??x.options.buttons.hideIfUnauthorized,C=Qe(),{id:E,resource:S,identifier:R}=Je(e??t),{mutationMode:I}=mu(),M=o??I,{mutate:_,isLoading:D,variables:T}=BL(),{data:F}=gu({resource:S==null?void 0:S.name,action:"delete",params:{id:n??E,resource:S},queryOptions:{enabled:w}}),N=Ie(()=>F!=null&&F.can?"":F!=null&&F.reason?F.reason:C("buttons.notAccessTitle","You don't have permission to access"),"disabledTitle"),[k,L]=$.useState(!1),j=Ie(()=>{L(!0)},"handleClickOpen"),B=Ie(()=>{L(!1)},"handleClose"),A=Ie(()=>{(n??E)&&R&&(V(!1),L(!1),_({id:n??E??"",resource:R,mutationMode:M,successNotification:a,errorNotification:l,meta:Ae(c,d),metaData:Ae(c,d),dataProviderName:f,invalidates:b},{onSuccess:G=>{r==null||r(G)}}))},"handleCloseOnConfirm"),{sx:H,...q}=g,{setWarnWhen:V}=Qa();return w&&P&&!(F!=null&&F.can)?null:$.createElement("div",null,$.createElement(cm,{color:"error",onClick:j,disabled:(F==null?void 0:F.can)===!1,loading:(n??E)===(T==null?void 0:T.id)&&D,startIcon:!s&&$.createElement(Gw,{...y}),title:N(),sx:{minWidth:0,...H},loadingPosition:s?"center":"start",className:oa.DeleteButton,...q},s?$.createElement(Gw,{fontSize:"small",...y}):i??C("buttons.delete","Delete")),$.createElement(Txe,{open:k,onClose:B,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},$.createElement(Vxe,{id:"alert-dialog-title"},m??C("buttons.confirm","Are you sure?")),$.createElement(Nxe,{sx:{justifyContent:"center"}},$.createElement(mn,{onClick:B},h??C("buttons.cancel","Cancel")),$.createElement(mn,{color:"error",onClick:A,autoFocus:!0},p??C("buttons.delete","Delete")))))},"DeleteButton"),Jj=Ie(({resource:e,resourceNameOrRouteName:t,recordItemId:n,hideText:r=!1,dataProviderName:o,svgIconProps:i,children:a,onClick:l,meta:s,metaData:u,...c})=>{let d=Qe(),f=Zi(),m=ta(),{resources:p,identifier:h,id:y}=Je(e??t),b=!!f.isFetching({queryKey:GG(h,yt(h,o,p)).detail(n??y)}),g=Ie(()=>{m({id:n??y,invalidates:["detail"],dataProviderName:o,resource:h})},"handleInvalidate"),{sx:x,...w}=c;return $.createElement(cm,{startIcon:!r&&$.createElement(qw,{...i}),loading:b,loadingPosition:r?"center":"start",onClick:P=>{l?l(P):g()},sx:{minWidth:0,...x},className:oa.RefreshButton,...w},r?$.createElement(qw,{fontSize:"small",...i}):a??d("buttons.refresh","Refresh"))},"RefreshButton");Ie(({resource:e,resourceNameOrRouteName:t,recordItemId:n,hideText:r=!1,accessControl:o,svgIconProps:i,meta:a,children:l,onClick:s,...u})=>{let c=v.useContext(na),d=(o==null?void 0:o.enabled)??c.options.buttons.enableAccessControl,f=(o==null?void 0:o.hideIfUnauthorized)??c.options.buttons.hideIfUnauthorized,{showUrl:m}=xn(),p=st(),h=Wn(),{Link:y}=zt(),b=p==="legacy"?y:h,g=Qe(),{id:x,resource:w}=Je(e??t),{data:P}=gu({resource:w==null?void 0:w.name,action:"show",params:{id:n??x,resource:w},queryOptions:{enabled:d}}),C=Ie(()=>P!=null&&P.can?"":P!=null&&P.reason?P.reason:g("buttons.notAccessTitle","You don't have permission to access"),"disabledTitle"),E=w&&(n||x)?m(w,n??x,a):"",{sx:S,...R}=u;return d&&f&&!(P!=null&&P.can)?null:$.createElement(b,{to:E,replace:!1,onClick:I=>{if((P==null?void 0:P.can)===!1){I.preventDefault();return}s&&(I.preventDefault(),s(I))},style:{textDecoration:"none"}},$.createElement(mn,{disabled:(P==null?void 0:P.can)===!1,startIcon:!r&&$.createElement(Kw,{...i}),title:C(),sx:{minWidth:0,...S},className:oa.ShowButton,...R},r?$.createElement(Kw,{fontSize:"small",...i}):l??g("buttons.show","Show")))},"ShowButton");var e3=Ie(({resource:e,resourceNameOrRouteName:t,hideText:n=!1,accessControl:r,svgIconProps:o,meta:i,children:a,onClick:l,...s})=>{var u;let c=v.useContext(na),d=(r==null?void 0:r.enabled)??c.options.buttons.enableAccessControl,f=(r==null?void 0:r.hideIfUnauthorized)??c.options.buttons.hideIfUnauthorized,{listUrl:m}=xn(),p=st(),h=Wn(),{Link:y}=zt(),b=ea(),g=p==="legacy"?y:h,x=Qe(),{resource:w,identifier:P}=Je(e??t),{data:C}=gu({resource:w==null?void 0:w.name,action:"list",queryOptions:{enabled:d},params:{resource:w}}),E=Ie(()=>C!=null&&C.can?"":C!=null&&C.reason?C.reason:x("buttons.notAccessTitle","You don't have permission to access"),"disabledTitle"),S=w?m(w,i):"",{sx:R,...I}=s;return d&&f&&!(C!=null&&C.can)?null:$.createElement(g,{to:S,replace:!1,onClick:M=>{if((C==null?void 0:C.can)===!1){M.preventDefault();return}l&&(M.preventDefault(),l(M))},style:{textDecoration:"none"}},$.createElement(mn,{disabled:(C==null?void 0:C.can)===!1,startIcon:!n&&$.createElement(Ua,{...o}),title:E(),sx:{minWidth:0,...R},className:oa.ListButton,...I},n?$.createElement(Ua,{fontSize:"small",...o}):a??x(`${P??e??t}.titles.list`,b(((u=w==null?void 0:w.meta)==null?void 0:u.label)??(w==null?void 0:w.label)??P??Ae(e,t),"plural"))))},"ListButton");Ie(({hideText:e=!1,children:t,loading:n=!1,svgIconProps:r,...o})=>{let i=Qe(),{sx:a,...l}=o;return $.createElement(cm,{...o,loading:n,startIcon:!e&&$.createElement(Pp,{...r}),loadingPosition:e?"center":"start",sx:{minWidth:0,...a},className:oa.ExportButton,...l},e?$.createElement(Pp,{fontSize:"small",...r}):t??i("buttons.export","Export"))},"ExportButton");var t3=Ie(({hideText:e=!1,svgIconProps:t,children:n,...r})=>{let o=Qe(),{sx:i,...a}=r;return $.createElement(cm,{startIcon:!e&&$.createElement(Qw,{...t}),sx:{minWidth:0,...i},variant:"contained",className:oa.SaveButton,...a},e?$.createElement(Qw,{fontSize:"small",...t}):n??o("buttons.save","Save"))},"SaveButton");Ie(({resource:e,resourceNameOrRouteName:t,recordItemId:n,hideText:r=!1,accessControl:o,svgIconProps:i,meta:a,children:l,onClick:s,...u})=>{let c=v.useContext(na),d=(o==null?void 0:o.enabled)??c.options.buttons.enableAccessControl,f=(o==null?void 0:o.hideIfUnauthorized)??c.options.buttons.hideIfUnauthorized,{cloneUrl:m}=xn(),p=st(),h=Wn(),{Link:y}=zt(),b=p==="legacy"?y:h,g=Qe(),{id:x,resource:w}=Je(e??t),{data:P}=gu({resource:w==null?void 0:w.name,action:"create",params:{id:n??x,resource:w},queryOptions:{enabled:d}}),C=Ie(()=>P!=null&&P.can?"":P!=null&&P.reason?P.reason:g("buttons.notAccessTitle","You don't have permission to access"),"disabledTitle"),E=w&&(n||x)?m(w,n??x,a):"",{sx:S,...R}=u;return d&&f&&!(P!=null&&P.can)?null:$.createElement(b,{to:E,replace:!1,onClick:I=>{if((P==null?void 0:P.can)===!1){I.preventDefault();return}s&&(I.preventDefault(),s(I))},style:{textDecoration:"none"}},$.createElement(mn,{disabled:(P==null?void 0:P.can)===!1,startIcon:!r&&$.createElement(Ep,{...i}),title:C(),sx:{minWidth:0,...S},className:oa.CloneButton,...R},r?$.createElement(Ep,{fontSize:"small",...i}):l??g("buttons.clone","Clone")))},"CloneButton");Ie(({inputProps:e,hideText:t=!1,loading:n=!1,svgIconProps:r,children:o,...i})=>{let a=Qe(),{sx:l,...s}=i;return $.createElement("label",{htmlFor:"contained-button-file"},$.createElement("input",{...e,id:"contained-button-file",multiple:!0,hidden:!0}),$.createElement(cm,{component:"span",startIcon:!t&&$.createElement(Pp,{...r}),loadingPosition:t?"center":"start",loading:n,sx:{minWidth:0,...l},className:oa.ImportButton,...s},t?$.createElement(Pp,{fontSize:"small",...r}):o??a("buttons.import","Import")))},"ImportButton");var cAe=Ie(({undoableTimeout:e,message:t})=>{let[n,r]=v.useState(100),[o,i]=v.useState(e);return v.useEffect(()=>{let a=100/e,l=setInterval(()=>{i(s=>s-1),r(s=>s-a)},1e3);return o===0&&clearInterval(l),()=>{clearInterval(l)}},[o]),$.createElement($.Fragment,null,$.createElement(Ke,{sx:{position:"relative",display:"inline-flex"}},$.createElement(dP,{color:"inherit",variant:"determinate",value:n}),$.createElement(Ke,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"}},$.createElement(Xe,{component:"div"},o))),$.createElement(Ke,{sx:{marginLeft:"10px",maxWidth:{xs:"150px",md:"100%"}}},$.createElement(Xe,{variant:"subtitle2"},t)))},"CircularDeterminate");Ie(({value:e,...t})=>$.createElement(Xe,{variant:"body2",...t},e),"TextField");Ie(({value:e,...t})=>$.createElement(lP,{label:e==null?void 0:e.toString(),...t}),"TagField");Ie(({value:e,...t})=>$.createElement(Xe,{variant:"body2"},$.createElement(zr,{href:`mailto:${e}`,...t},e)),"EmailField");Ie(({value:e,valueLabelTrue:t="true",valueLabelFalse:n="false",trueIcon:r,falseIcon:o,svgIconProps:i,...a})=>$.createElement(Cr,{title:e?t:n,...a},e?$.createElement("span",null,r??$.createElement(Vz,{...i})):$.createElement("span",null,o??$.createElement(Wz,{...i}))),"BooleanField");FP.extend(Cwe);var dAe=FP.locale(),fAe=Ie(({value:e,locales:t,format:n="L",...r})=>$.createElement(Xe,{variant:"body2",...r},FP(e).locale(t||dAe).format(n)),"DateField");Ie(({title:e,src:t,...n})=>$.createElement(pAe,{value:t,title:e,...n},e??t),"FileField");var pAe=Ie(({children:e,value:t,...n})=>$.createElement(Xe,{variant:"body2"},$.createElement(zr,{href:t,...n},e??t)),"UrlField");function n3(){return!!(typeof Intl=="object"&&Intl&&typeof Intl.NumberFormat=="function")}Ie(n3,"toLocaleStringSupportsOptions");var G1=Ie(({value:e,locale:t,options:n,...r})=>{let o=Number(e);return $.createElement(Xe,{variant:"body2",...r},n3()?o.toLocaleString(t,n):o)},"NumberField");Ie(({value:e=""})=>$.createElement(T2e,{remarkPlugins:[eFe]},e),"MarkdownField");var N0=Ie(({breadcrumbProps:e,showHome:t=!0,hideIcons:n=!1,meta:r})=>{var o,i;let{breadcrumbs:a}=Wq({meta:r}),l=st(),s=Wn(),{Link:u}=zt(),c=l==="legacy"?u:s,{hasDashboard:d}=un(),{resources:f}=Je(),m=PL("/",f);if(a.length===1)return null;let p=Ie(h=>$.createElement(zr,{...h,component:c}),"LinkRouter");return $.createElement(gFe,{"aria-label":"breadcrumb",sx:{paddingY:2,paddingX:2,...(e==null?void 0:e.sx)??{}},...e},t&&(d||m.found)&&$.createElement(p,{underline:"hover",sx:{display:"flex",alignItems:"center"},color:"inherit",to:"/"},((i=(o=m==null?void 0:m.resource)==null?void 0:o.meta)==null?void 0:i.icon)??$.createElement(Uj,{sx:{fontSize:"18px"}})),a.map(({label:h,icon:y,href:b})=>$.createElement(kc,{key:h,sx:{display:"flex",alignItems:"center","& .MuiSvgIcon-root":{fontSize:"16px"}}},!n&&y,b?$.createElement(p,{underline:"hover",sx:{display:"flex",alignItems:"center",fontSize:"14px"},color:"inherit",to:b,variant:"subtitle1",marginLeft:.5},h):$.createElement(Xe,{fontSize:"14px"},h))))},"Breadcrumb"),mAe=Ie(({status:e,elements:{success:t=$.createElement(Ih,{key:"autoSave.success",defaultMessage:"saved",icon:$.createElement(Gj,{fontSize:"small"})}),error:n=$.createElement(Ih,{key:"autoSave.error",defaultMessage:"auto save failure",icon:$.createElement(qj,{fontSize:"small"})}),loading:r=$.createElement(Ih,{key:"autoSave.loading",defaultMessage:"saving...",icon:$.createElement(Wj,{fontSize:"small"})}),idle:o=$.createElement(Ih,{key:"autoSave.idle",defaultMessage:"waiting for changes",icon:$.createElement(Vj,{fontSize:"small"})})}={}})=>$.createElement(PK,{status:e,elements:{success:t,error:n,loading:r,idle:o}}),"AutoSaveIndicator"),Ih=Ie(({key:e,defaultMessage:t,icon:n})=>{let r=Qe();return $.createElement(Xe,{color:"gray",fontSize:"0.8rem",position:"relative",display:"flex",alignItems:"center",flexWrap:"wrap",marginRight:".3rem"},r(e,t),$.createElement("span",{style:{position:"relative",top:"3px",marginLeft:"3px"}},n))},"Message"),hAe={mode:"light",primary:{main:"#67be23",contrastText:"#fff"},secondary:{main:"#2A132E",contrastText:"#fff"},background:{default:"#f0f0f0",paper:"#ffffff"},success:{main:"#67be23",contrastText:"#fff"},error:{main:"#fa541c",contrastText:"#fff"},warning:{main:"#fa8c16",contrastText:"#fff"},info:{main:"#0b82f0",contrastText:"#fff"},divider:"rgba(0,0,0,0)",text:{primary:"#626262",secondary:"#9f9f9f",disabled:"#c1c1c1"}},gAe={mode:"dark",primary:{main:"#67be23",contrastText:"#fff"},secondary:{main:"#2A132E",contrastText:"#fff"},background:{default:"#212121",paper:"#242424"},success:{main:"#67be23",contrastText:"#fff"},error:{main:"#ee2a1e",contrastText:"#fff"},warning:{main:"#fa8c16",contrastText:"#fff"},info:{main:"#1890ff",contrastText:"#fff"},divider:"rgba(0,0,0,0)",text:{primary:"#fff",secondary:"rgba(255,255,255,0.7)",disabled:"#d1d1d1"}},vAe={fontFamily:["Montserrat","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(",")},fT={Blue:{mode:"light",primary:{main:"#1976D2",light:"#4791db",dark:"#115293"}},BlueDark:{mode:"dark",primary:{main:"#67b7f7",light:"#85c5f8",dark:"#4880ac"}},Purple:{mode:"light",primary:{main:"#7B1FA2",light:"#954bb4",dark:"#561571"}},PurpleDark:{mode:"dark",primary:{main:"#AB47BC",light:"#bb6bc9",dark:"#773183"}},Magenta:{mode:"light",primary:{main:"#C2185B",light:"#ce467b",dark:"#87103f"}},MagentaDark:{mode:"dark",primary:{main:"#EC407A",light:"#ef6694",dark:"#a52c55"}},Red:{mode:"light",primary:{main:"#D32F2F",light:"#db5858",dark:"#932020"}},RedDark:{mode:"dark",primary:{main:"#EF5350",light:"#f27573",dark:"#a73a38"}},Orange:{mode:"light",primary:{main:"#F57C00",light:"#f79633",dark:"#ab5600"}},OrangeDark:{mode:"dark",primary:{main:"#FFA726",light:"#ffb851",dark:"#b2741a"}},Yellow:{mode:"light",primary:{main:"#FFA000",light:"#ffb333",dark:"#b27000"}},YellowDark:{mode:"dark",primary:{main:"#FFCA28",light:"#ffd453",dark:"#E87040"}},Green:{mode:"light",primary:{main:"#689F38",light:"#86b25f",dark:"#486f27"}},GreenDark:{mode:"dark",primary:{main:"#9CCC65",light:"#afd683",dark:"#6d8e46"}}},r3={shape:{borderRadius:6},typography:{...vAe}};Xp({...r3,palette:hAe,components:{MuiAppBar:{styleOverrides:{colorDefault:{backgroundColor:"#fff"}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01))"}}},MuiTypography:{styleOverrides:{h5:{fontWeight:800,lineHeight:"2rem"}}}}});Xp({...r3,palette:gAe,components:{MuiPaper:{styleOverrides:{root:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025))"}}},MuiAppBar:{defaultProps:{color:"transparent"}},MuiTypography:{styleOverrides:{h5:{fontWeight:800,lineHeight:"2rem"}}}}});var pT=Object.keys(fT).reduce((e,t)=>{let n=t;return{...e,[t]:Xp({palette:{...fT[n]},components:{MuiButton:{styleOverrides:{root:({ownerState:r})=>({...r.variant==="contained"&&r.color==="primary"&&{color:"#fff"}})}}}})}},{}),yAe=Ie(()=>{let{closeSnackbar:e,enqueueSnackbar:t}=Kne();return{open:({message:n,type:r,undoableTimeout:o,key:i,cancelMutation:a,description:l})=>{r==="progress"?t($.createElement($.Fragment,null,$.createElement(cAe,{undoableTimeout:o??0,message:n})),{action:Ie(s=>$.createElement(An,{onClick:()=>{a==null||a(),e(s)},color:"inherit"},$.createElement(Kj,null)),"action"),anchorOrigin:{vertical:"top",horizontal:"right"},preventDuplicate:!0,key:i,autoHideDuration:(o??0)*1e3,disableWindowBlurListener:!0}):t($.createElement(Ke,null,$.createElement(Xe,{variant:"subtitle2",component:"h6"},l),$.createElement(Xe,{variant:"caption",component:"p"},n)),{key:i,variant:r,anchorOrigin:{vertical:"top",horizontal:"right"},disableWindowBlurListener:!0})},close:n=>{e(n)}}},"useNotificationProvider"),bAe=yAe,xAe=fe(qne)`
&.SnackbarItem-contentRoot {
background-color: ${e=>e.theme.palette.background.default};
color: ${e=>e.theme.palette.primary.main};
}
&.SnackbarItem-variantSuccess {
background-color: ${e=>e.theme.palette.success.main};
color: ${e=>e.theme.palette.success.contrastText};
}
&.SnackbarItem-variantError {
background-color: ${e=>e.theme.palette.error.main};
color: ${e=>e.theme.palette.error.contrastText};
}
&.SnackbarItem-variantInfo {
background-color: ${e=>e.theme.palette.info.main};
color: ${e=>e.theme.palette.info.contrastText};
}
&.SnackbarItem-variantWarning {
background-color: ${e=>e.theme.palette.warning.main};
color: ${e=>e.theme.palette.warning.contrastText};
}
`;const wAe=(e,t)=>O({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),CAe=e=>O({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}}),SAe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,l])=>{var s;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(s=l.palette)==null?void 0:s.mode}});let o=O({html:wAe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:O({margin:0},CAe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function EAe(e){const t=qe({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return z.jsxs(v.Fragment,{children:[z.jsx(XE,{styles:o=>SAe(o,r)}),n]})}/**
* @remix-run/router v1.15.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kp.apply(this,arguments)}var _l;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(_l||(_l={}));const mT="popstate";function PAe(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return oC("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Sv(o)}return $Ae(t,n,null,e)}function yn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function o3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kAe(){return Math.random().toString(36).substr(2,8)}function hT(e,t){return{usr:e.state,key:e.key,idx:t}}function oC(e,t,n,r){return n===void 0&&(n=null),kp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?kd(t):t,{state:n,key:t&&t.key||r||kAe()})}function Sv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function kd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $Ae(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=_l.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(kp({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){l=_l.Pop;let y=c(),b=y==null?null:y-u;u=y,s&&s({action:l,location:h.location,delta:b})}function f(y,b){l=_l.Push;let g=oC(h.location,y,b);n&&n(g,y),u=c()+1;let x=hT(g,u),w=h.createHref(g);try{a.pushState(x,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(w)}i&&s&&s({action:l,location:h.location,delta:1})}function m(y,b){l=_l.Replace;let g=oC(h.location,y,b);n&&n(g,y),u=c();let x=hT(g,u),w=h.createHref(g);a.replaceState(x,"",w),i&&s&&s({action:l,location:h.location,delta:0})}function p(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof y=="string"?y:Sv(y);return g=g.replace(/ $/,"%20"),yn(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let h={get action(){return l},get location(){return e(o,a)},listen(y){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(mT,d),s=y,()=>{o.removeEventListener(mT,d),s=null}},createHref(y){return t(o,y)},createURL:p,encodeLocation(y){let b=p(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:m,go(y){return a.go(y)}};return h}var gT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gT||(gT={}));function IAe(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?kd(t):t,o=Ck(r.pathname||"/",n);if(o==null)return null;let i=i3(e);OAe(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let s=jAe(o);a=NAe(i[l],s)}return a}function i3(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(yn(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Gl([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(yn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),i3(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:LAe(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of a3(i.path))o(i,a,s)}),t}function a3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=a3(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function OAe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:DAe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const MAe=/^:[\w-]+$/,RAe=3,TAe=2,_Ae=1,FAe=10,AAe=-2,vT=e=>e==="*";function LAe(e,t){let n=e.split("/"),r=n.length;return n.some(vT)&&(r+=AAe),t&&(r+=TAe),n.filter(o=>!vT(o)).reduce((o,i)=>o+(MAe.test(i)?RAe:i===""?_Ae:FAe),r)}function DAe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function NAe(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],s=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=l3({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u);if(!c)return null;Object.assign(r,c.params);let d=l.route;i.push({params:r,pathname:Gl([o,c.pathname]),pathnameBase:VAe(Gl([o,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(o=Gl([o,c.pathnameBase]))}return i}function l3(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=zAe(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:m}=c;if(f==="*"){let h=l[d]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const p=l[d];return m&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function zAe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),o3(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function jAe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return o3(!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 Ck(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function BAe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?kd(e):e;return{pathname:n?n.startsWith("/")?n:HAe(n,t):t,search:WAe(r),hash:GAe(o)}}function HAe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function q1(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function UAe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Sk(e,t){let n=UAe(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ek(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=kd(e):(o=kp({},e),yn(!o.pathname||!o.pathname.includes("?"),q1("?","pathname","search",o)),yn(!o.pathname||!o.pathname.includes("#"),q1("#","pathname","hash",o)),yn(!o.search||!o.search.includes("#"),q1("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=BAe(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const Gl=e=>e.join("/").replace(/\/\/+/g,"/"),VAe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WAe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,GAe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qAe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const s3=["post","put","patch","delete"];new Set(s3);const KAe=["get",...s3];new Set(KAe);/**
* React Router v6.22.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$p.apply(this,arguments)}const Pk=v.createContext(null),QAe=v.createContext(null),al=v.createContext(null),z0=v.createContext(null),la=v.createContext({outlet:null,matches:[],isDataRoute:!1}),u3=v.createContext(null);function YAe(e,t){let{relative:n}=t===void 0?{}:t;$d()||yn(!1);let{basename:r,navigator:o}=v.useContext(al),{hash:i,pathname:a,search:l}=d3(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:Gl([r,a])),o.createHref({pathname:s,search:l,hash:i})}function $d(){return v.useContext(z0)!=null}function Yi(){return $d()||yn(!1),v.useContext(z0).location}function c3(e){v.useContext(al).static||v.useLayoutEffect(e)}function Ev(){let{isDataRoute:e}=v.useContext(la);return e?fLe():XAe()}function XAe(){$d()||yn(!1);let e=v.useContext(Pk),{basename:t,future:n,navigator:r}=v.useContext(al),{matches:o}=v.useContext(la),{pathname:i}=Yi(),a=JSON.stringify(Sk(o,n.v7_relativeSplatPath)),l=v.useRef(!1);return c3(()=>{l.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=Ek(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Gl([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,i,e])}const ZAe=v.createContext(null);function JAe(e){let t=v.useContext(la).outlet;return t&&v.createElement(ZAe.Provider,{value:e},t)}function eLe(){let{matches:e}=v.useContext(la),t=e[e.length-1];return t?t.params:{}}function d3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(al),{matches:o}=v.useContext(la),{pathname:i}=Yi(),a=JSON.stringify(Sk(o,r.v7_relativeSplatPath));return v.useMemo(()=>Ek(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function tLe(e,t){return nLe(e,t)}function nLe(e,t,n,r){$d()||yn(!1);let{navigator:o}=v.useContext(al),{matches:i}=v.useContext(la),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Yi(),c;if(t){var d;let y=typeof t=="string"?kd(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||yn(!1),c=y}else c=u;let f=c.pathname||"/",m=f;if(s!=="/"){let y=s.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=IAe(e,{pathname:m}),h=lLe(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:Gl([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Gl([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&h?v.createElement(z0.Provider,{value:{location:$p({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:_l.Pop}},h):h}function rLe(){let e=dLe(),t=qAe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,i)}const oLe=v.createElement(rLe,null);class iLe extends v.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(la.Provider,{value:this.props.routeContext},v.createElement(u3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aLe(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(Pk);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(la.Provider,{value:t},r)}function lLe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id]));c>=0||yn(!1),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<a.length;c++){let d=a[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:m}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||p){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,f)=>{let m,p=!1,h=null,y=null;n&&(m=l&&d.route.id?l[d.route.id]:void 0,h=d.route.errorElement||oLe,s&&(u<0&&f===0?(pLe("route-fallback",!1),p=!0,y=null):u===f&&(p=!0,y=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,f+1)),g=()=>{let x;return m?x=h:p?x=y:d.route.Component?x=v.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,v.createElement(aLe,{match:d,routeContext:{outlet:c,matches:b,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?v.createElement(iLe,{location:n.location,revalidation:n.revalidation,component:h,error:m,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var f3=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(f3||{}),Pv=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}(Pv||{});function sLe(e){let t=v.useContext(Pk);return t||yn(!1),t}function uLe(e){let t=v.useContext(QAe);return t||yn(!1),t}function cLe(e){let t=v.useContext(la);return t||yn(!1),t}function p3(e){let t=cLe(),n=t.matches[t.matches.length-1];return n.route.id||yn(!1),n.route.id}function dLe(){var e;let t=v.useContext(u3),n=uLe(Pv.UseRouteError),r=p3(Pv.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fLe(){let{router:e}=sLe(f3.UseNavigateStable),t=p3(Pv.UseNavigateStable),n=v.useRef(!1);return c3(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,$p({fromRouteId:t},i)))},[e,t])}const yT={};function pLe(e,t,n){!t&&!yT[e]&&(yT[e]=!0)}function m3(e){let{to:t,replace:n,state:r,relative:o}=e;$d()||yn(!1);let{future:i,static:a}=v.useContext(al),{matches:l}=v.useContext(la),{pathname:s}=Yi(),u=Ev(),c=Ek(t,Sk(l,i.v7_relativeSplatPath),s,o==="path"),d=JSON.stringify(c);return v.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:o}),[u,d,o,n,r]),null}function bT(e){return JAe(e.context)}function vo(e){yn(!1)}function mLe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=_l.Pop,navigator:i,static:a=!1,future:l}=e;$d()&&yn(!1);let s=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:s,navigator:i,static:a,future:$p({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=kd(r));let{pathname:c="/",search:d="",hash:f="",state:m=null,key:p="default"}=r,h=v.useMemo(()=>{let y=Ck(c,s);return y==null?null:{location:{pathname:y,search:d,hash:f,state:m,key:p},navigationType:o}},[s,c,d,f,m,p,o]);return h==null?null:v.createElement(al.Provider,{value:u},v.createElement(z0.Provider,{children:n,value:h}))}function hLe(e){let{children:t,location:n}=e;return tLe(iC(t),n)}new Promise(()=>{});function iC(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,iC(r.props.children,i));return}r.type!==vo&&yn(!1),!r.props.index||!r.props.children||yn(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=iC(r.props.children,i)),n.push(a)}),n}/**
* React Router DOM v6.22.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function aC(){return aC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aC.apply(this,arguments)}function gLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function vLe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yLe(e,t){return e.button===0&&(!t||t==="_self")&&!vLe(e)}const bLe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],xLe="6";try{window.__reactRouterVersion=xLe}catch{}const wLe="startTransition",xT=cg[wLe];function CLe(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=PAe({window:o,v5Compat:!0}));let a=i.current,[l,s]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&xT?xT(()=>s(d)):s(d)},[s,u]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(mLe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const SLe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ELe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PLe=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=gLe(t,bLe),{basename:m}=v.useContext(al),p,h=!1;if(typeof u=="string"&&ELe.test(u)&&(p=u,SLe))try{let x=new URL(window.location.href),w=u.startsWith("//")?new URL(x.protocol+u):new URL(u),P=Ck(w.pathname,m);w.origin===x.origin&&P!=null?u=P+w.search+w.hash:h=!0}catch{}let y=YAe(u,{relative:o}),b=kLe(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:d});function g(x){r&&r(x),x.defaultPrevented||b(x)}return v.createElement("a",aC({},f,{href:p||y,onClick:h||i?r:g,ref:n,target:s}))});var wT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wT||(wT={}));var CT;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(CT||(CT={}));function kLe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Ev(),u=Yi(),c=d3(e,{relative:a});return v.useCallback(d=>{if(yLe(d,n)){d.preventDefault();let f=r!==void 0?r:Sv(u)===Sv(c);s(e,{replace:f,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,c,r,o,n,e,i,a,l])}var ST=e=>{if(typeof e>"u")return e;let t=Number(e);return`${t}`===e?t:e},$Le={addQueryPrefix:!0,skipNulls:!0,arrayFormat:"indices",encode:!1,encodeValuesOnly:!0},ILe={go:()=>{let{search:e,hash:t}=Yi(),n=Ev();return v.useCallback(({to:r,type:o,query:i,hash:a,options:{keepQuery:l,keepHash:s}={}})=>{let u={...l&&e&&Wh.parse(e,{ignoreQueryPrefix:!0}),...i};u.to&&(u.to=encodeURIComponent(`${u.to}`));let c=Object.keys(u).length>0,d=`#${(a||s&&t||"").replace(/^#/,"")}`,f=d.length>1,m=`${r||""}${c?Wh.stringify(u,$Le):""}${f?d:""}`;return o==="path"?m:n(m,{replace:o==="replace"})},[t,e,n])},back:()=>{let e=Ev();return v.useCallback(()=>{e(-1)},[e])},parse:()=>{var e;let t=eLe(),{pathname:n,search:r}=Yi(),{resources:o}=v.useContext(zp),{resource:i,action:a,matchedRoute:l}=$.useMemo(()=>PL(n,o),[o,n]);return Object.entries(t).length===0&&l&&(t=((e=l3(l,n))==null?void 0:e.params)||{}),v.useCallback(()=>{let s=Wh.parse(r,{ignoreQueryPrefix:!0}),u={...t,...s};return{...i&&{resource:i},...a&&{action:a},...(t==null?void 0:t.id)&&{id:decodeURIComponent(t.id)},pathname:n,params:{...u,current:ST(u.current),pageSize:ST(u.pageSize),to:u.to?decodeURIComponent(u.to):void 0}}},[n,r,t,i,a])},Link:$.forwardRef(function(e,t){return $.createElement(PLe,{...e,ref:t})})},ET=({resource:e,meta:t})=>{let n=Hp(),{resource:r,resources:o}=Je(e),i=r||o.find(a=>a.list);if(i){let a=n({resource:i,action:"list",meta:t});return a?$.createElement(m3,{to:a}):(console.warn("No resource is found to navigate to."),null)}return console.warn("No resource is found to navigate to."),null};function OLe(e,t=!0){let{navigator:n}=$.useContext(al);$.useEffect(()=>{if(!t)return;let r=n.go,o=n.push;return n.push=(...i)=>{e()!==!1&&o(...i)},n.go=(...i)=>{e()!==!1&&r(...i)},()=>{n.push=o,n.go=r}},[n,e,t])}function MLe(e,t=!0,n,r=!1){let o=$.useCallback(a=>(a.preventDefault(),a.returnValue=e,a.returnValue),[e]);$.useEffect(()=>(t&&!r&&window.addEventListener("beforeunload",o),()=>{window.removeEventListener("beforeunload",o)}),[o,t,r]);let i=$.useCallback(()=>{let a=window.confirm(e);return a&&n&&n(),a},[e]);OLe(i,t)}var RLe=({translationKey:e="warnWhenUnsavedChanges",message:t="Are you sure you want to leave? You have unsaved changes."})=>{let n=Qe(),{pathname:r}=Yi(),{warnWhen:o,setWarnWhen:i}=Qa();$.useEffect(()=>()=>i==null?void 0:i(!1),[r]);let a=$.useMemo(()=>n(e,t),[e,t,n]);return MLe(a,o,()=>{i==null||i(!1)}),null},TLe=({to:e})=>{let{pathname:t,search:n}=Yi(),r=`${t}${n}`,o=r.length>1?`?to=${encodeURIComponent(r)}`:"";return $.createElement(m3,{to:`${e}${o}`})};function _Le({handler:e}){var t;let n=Yi(),{action:r,id:o,params:i,pathname:a,resource:l}=Vo(),s=Qe(),u=ea(),c=(l==null?void 0:l.identifier)??(l==null?void 0:l.name),d=(l==null?void 0:l.label)??((t=l==null?void 0:l.meta)==null?void 0:t.label)??u(c,r==="list"?"plural":"singular");return v.useLayoutEffect(()=>{let f=RL(s,l,r,`${o}`,d);e?document.title=e({action:r,resource:l,params:i,pathname:a,autoGeneratedTitle:f}):document.title=f},[n]),$.createElement($.Fragment,null)}var Yu={},FLe=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),h3="%[a-f0-9]{2}",PT=new RegExp("("+h3+")|([^%]+?)","gi"),kT=new RegExp("("+h3+")+","gi");function lC(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],lC(n),lC(r))}function ALe(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(PT)||[],n=1;n<t.length;n++)e=lC(t,n).join(""),t=e.match(PT)||[];return e}}function LLe(e){for(var t={"%FE%FF":"<22><>","%FF%FE":"<22><>"},n=kT.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{var r=ALe(n[0]);r!==n[0]&&(t[n[0]]=r)}n=kT.exec(e)}t["%C2"]="<22>";for(var o=Object.keys(t),i=0;i<o.length;i++){var a=o[i];e=e.replace(new RegExp(a,"g"),t[a])}return e}var DLe=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return LLe(e)}},NLe=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]},zLe=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],l=e[a];(o?t.indexOf(a)!==-1:t(a,l,e))&&(n[a]=l)}return n};(function(e){const t=FLe,n=DLe,r=NLe,o=zLe,i=g=>g==null,a=Symbol("encodeFragmentIdentifier");function l(g){switch(g.arrayFormat){case"index":return x=>(w,P)=>{const C=w.length;return P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?w:P===null?[...w,[c(x,g),"[",C,"]"].join("")]:[...w,[c(x,g),"[",c(C,g),"]=",c(P,g)].join("")]};case"bracket":return x=>(w,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?w:P===null?[...w,[c(x,g),"[]"].join("")]:[...w,[c(x,g),"[]=",c(P,g)].join("")];case"colon-list-separator":return x=>(w,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?w:P===null?[...w,[c(x,g),":list="].join("")]:[...w,[c(x,g),":list=",c(P,g)].join("")];case"comma":case"separator":case"bracket-separator":{const x=g.arrayFormat==="bracket-separator"?"[]=":"=";return w=>(P,C)=>C===void 0||g.skipNull&&C===null||g.skipEmptyString&&C===""?P:(C=C===null?"":C,P.length===0?[[c(w,g),x,c(C,g)].join("")]:[[P,c(C,g)].join(g.arrayFormatSeparator)])}default:return x=>(w,P)=>P===void 0||g.skipNull&&P===null||g.skipEmptyString&&P===""?w:P===null?[...w,c(x,g)]:[...w,[c(x,g),"=",c(P,g)].join("")]}}function s(g){let x;switch(g.arrayFormat){case"index":return(w,P,C)=>{if(x=/\[(\d*)\]$/.exec(w),w=w.replace(/\[\d*\]$/,""),!x){C[w]=P;return}C[w]===void 0&&(C[w]={}),C[w][x[1]]=P};case"bracket":return(w,P,C)=>{if(x=/(\[\])$/.exec(w),w=w.replace(/\[\]$/,""),!x){C[w]=P;return}if(C[w]===void 0){C[w]=[P];return}C[w]=[].concat(C[w],P)};case"colon-list-separator":return(w,P,C)=>{if(x=/(:list)$/.exec(w),w=w.replace(/:list$/,""),!x){C[w]=P;return}if(C[w]===void 0){C[w]=[P];return}C[w]=[].concat(C[w],P)};case"comma":case"separator":return(w,P,C)=>{const E=typeof P=="string"&&P.includes(g.arrayFormatSeparator),S=typeof P=="string"&&!E&&d(P,g).includes(g.arrayFormatSeparator);P=S?d(P,g):P;const R=E||S?P.split(g.arrayFormatSeparator).map(I=>d(I,g)):P===null?P:d(P,g);C[w]=R};case"bracket-separator":return(w,P,C)=>{const E=/(\[\])$/.test(w);if(w=w.replace(/\[\]$/,""),!E){C[w]=P&&d(P,g);return}const S=P===null?[]:P.split(g.arrayFormatSeparator).map(R=>d(R,g));if(C[w]===void 0){C[w]=S;return}C[w]=[].concat(C[w],S)};default:return(w,P,C)=>{if(C[w]===void 0){C[w]=P;return}C[w]=[].concat(C[w],P)}}}function u(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(g,x){return x.encode?x.strict?t(g):encodeURIComponent(g):g}function d(g,x){return x.decode?n(g):g}function f(g){return Array.isArray(g)?g.sort():typeof g=="object"?f(Object.keys(g)).sort((x,w)=>Number(x)-Number(w)).map(x=>g[x]):g}function m(g){const x=g.indexOf("#");return x!==-1&&(g=g.slice(0,x)),g}function p(g){let x="";const w=g.indexOf("#");return w!==-1&&(x=g.slice(w)),x}function h(g){g=m(g);const x=g.indexOf("?");return x===-1?"":g.slice(x+1)}function y(g,x){return x.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):x.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function b(g,x){x=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},x),u(x.arrayFormatSeparator);const w=s(x),P=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return P;for(const C of g.split("&")){if(C==="")continue;let[E,S]=r(x.decode?C.replace(/\+/g," "):C,"=");S=S===void 0?null:["comma","separator","bracket-separator"].includes(x.arrayFormat)?S:d(S,x),w(d(E,x),S,P)}for(const C of Object.keys(P)){const E=P[C];if(typeof E=="object"&&E!==null)for(const S of Object.keys(E))E[S]=y(E[S],x);else P[C]=y(E,x)}return x.sort===!1?P:(x.sort===!0?Object.keys(P).sort():Object.keys(P).sort(x.sort)).reduce((C,E)=>{const S=P[E];return S&&typeof S=="object"&&!Array.isArray(S)?C[E]=f(S):C[E]=S,C},Object.create(null))}e.extract=h,e.parse=b,e.stringify=(g,x)=>{if(!g)return"";x=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},x),u(x.arrayFormatSeparator);const w=S=>x.skipNull&&i(g[S])||x.skipEmptyString&&g[S]==="",P=l(x),C={};for(const S of Object.keys(g))w(S)||(C[S]=g[S]);const E=Object.keys(C);return x.sort!==!1&&E.sort(x.sort),E.map(S=>{const R=g[S];return R===void 0?"":R===null?c(S,x):Array.isArray(R)?R.length===0&&x.arrayFormat==="bracket-separator"?c(S,x)+"[]":R.reduce(P(S),[]).join("&"):c(S,x)+"="+c(R,x)}).filter(S=>S.length>0).join("&")},e.parseUrl=(g,x)=>{x=Object.assign({decode:!0},x);const[w,P]=r(g,"#");return Object.assign({url:w.split("?")[0]||"",query:b(h(g),x)},x&&x.parseFragmentIdentifier&&P?{fragmentIdentifier:d(P,x)}:{})},e.stringifyUrl=(g,x)=>{x=Object.assign({encode:!0,strict:!0,[a]:!0},x);const w=m(g.url).split("?")[0]||"",P=e.extract(g.url),C=e.parse(P,{sort:!1}),E=Object.assign(C,g.query);let S=e.stringify(E,x);S&&(S=`?${S}`);let R=p(g.url);return g.fragmentIdentifier&&(R=`#${x[a]?c(g.fragmentIdentifier,x):g.fragmentIdentifier}`),`${w}${S}${R}`},e.pick=(g,x,w)=>{w=Object.assign({parseFragmentIdentifier:!0,[a]:!1},w);const{url:P,query:C,fragmentIdentifier:E}=e.parseUrl(g,w);return e.stringifyUrl({url:P,query:o(C,x),fragmentIdentifier:E},w)},e.exclude=(g,x,w)=>{const P=Array.isArray(x)?C=>!x.includes(C):(C,E)=>!x(C,E);return e.pick(g,P,w)}})(Yu);const jLe=e=>{switch(e){case"ne":case"gte":case"lte":return`_${e}`;case"contains":return"_like";default:return""}},$T=e=>{if(e&&e.length>0){const t=[],n=[];return e.map(r=>{t.push(r.field),n.push(r.order)}),{_sort:t,_order:n}}},IT=e=>{const t={};return e&&e.map(n=>{if(n.operator==="or"||n.operator==="and")throw new Error(`[@refinedev/simple-rest]: \`operator: ${n.operator}\` is not supported. You can create custom data provider. https://refine.dev/docs/api-reference/core/providers/data-provider/#creating-a-data-provider`);if("field"in n){const{field:r,operator:o,value:i}=n;if(r==="q"){t[r]=i;return}const a=jLe(o);t[`${r}${a}`]=i}}),t};function g3(e,t){return function(){return e.apply(t,arguments)}}const{toString:BLe}=Object.prototype,{getPrototypeOf:kk}=Object,j0=(e=>t=>{const n=BLe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),sa=e=>(e=e.toLowerCase(),t=>j0(t)===e),B0=e=>t=>typeof t===e,{isArray:Id}=Array,Ip=B0("undefined");function HLe(e){return e!==null&&!Ip(e)&&e.constructor!==null&&!Ip(e.constructor)&&Fo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const v3=sa("ArrayBuffer");function ULe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&v3(e.buffer),t}const VLe=B0("string"),Fo=B0("function"),y3=B0("number"),H0=e=>e!==null&&typeof e=="object",WLe=e=>e===!0||e===!1,lg=e=>{if(j0(e)!=="object")return!1;const t=kk(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},GLe=sa("Date"),qLe=sa("File"),KLe=sa("Blob"),QLe=sa("FileList"),YLe=e=>H0(e)&&Fo(e.pipe),XLe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Fo(e.append)&&((t=j0(e))==="formdata"||t==="object"&&Fo(e.toString)&&e.toString()==="[object FormData]"))},ZLe=sa("URLSearchParams"),JLe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function km(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Id(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(r=0;r<a;r++)l=i[r],t.call(null,e[l],l,e)}}function b3(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const x3=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),w3=e=>!Ip(e)&&e!==x3;function sC(){const{caseless:e}=w3(this)&&this||{},t={},n=(r,o)=>{const i=e&&b3(t,o)||o;lg(t[i])&&lg(r)?t[i]=sC(t[i],r):lg(r)?t[i]=sC({},r):Id(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&km(arguments[r],n);return t}const eDe=(e,t,n,{allOwnKeys:r}={})=>(km(t,(o,i)=>{n&&Fo(o)?e[i]=g3(o,n):e[i]=o},{allOwnKeys:r}),e),tDe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nDe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},rDe=(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&kk(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},oDe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},iDe=e=>{if(!e)return null;if(Id(e))return e;let t=e.length;if(!y3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},aDe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kk(Uint8Array)),lDe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},sDe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uDe=sa("HTMLFormElement"),cDe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),OT=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dDe=sa("RegExp"),C3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};km(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},fDe=e=>{C3(e,(t,n)=>{if(Fo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Fo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pDe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Id(e)?r(e):r(String(e).split(t)),n},mDe=()=>{},hDe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),K1="abcdefghijklmnopqrstuvwxyz",MT="0123456789",S3={DIGIT:MT,ALPHA:K1,ALPHA_DIGIT:K1+K1.toUpperCase()+MT},gDe=(e=16,t=S3.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function vDe(e){return!!(e&&Fo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yDe=e=>{const t=new Array(10),n=(r,o)=>{if(H0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Id(r)?[]:{};return km(r,(a,l)=>{const s=n(a,o+1);!Ip(s)&&(i[l]=s)}),t[o]=void 0,i}}return r};return n(e,0)},bDe=sa("AsyncFunction"),xDe=e=>e&&(H0(e)||Fo(e))&&Fo(e.then)&&Fo(e.catch),Se={isArray:Id,isArrayBuffer:v3,isBuffer:HLe,isFormData:XLe,isArrayBufferView:ULe,isString:VLe,isNumber:y3,isBoolean:WLe,isObject:H0,isPlainObject:lg,isUndefined:Ip,isDate:GLe,isFile:qLe,isBlob:KLe,isRegExp:dDe,isFunction:Fo,isStream:YLe,isURLSearchParams:ZLe,isTypedArray:aDe,isFileList:QLe,forEach:km,merge:sC,extend:eDe,trim:JLe,stripBOM:tDe,inherits:nDe,toFlatObject:rDe,kindOf:j0,kindOfTest:sa,endsWith:oDe,toArray:iDe,forEachEntry:lDe,matchAll:sDe,isHTMLForm:uDe,hasOwnProperty:OT,hasOwnProp:OT,reduceDescriptors:C3,freezeMethods:fDe,toObjectSet:pDe,toCamelCase:cDe,noop:mDe,toFiniteNumber:hDe,findKey:b3,global:x3,isContextDefined:w3,ALPHABET:S3,generateString:gDe,isSpecCompliantForm:vDe,toJSONObject:yDe,isAsyncFn:bDe,isThenable:xDe};function vt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Se.inherits(vt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Se.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const E3=vt.prototype,P3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{P3[e]={value:e}});Object.defineProperties(vt,P3);Object.defineProperty(E3,"isAxiosError",{value:!0});vt.from=(e,t,n,r,o,i)=>{const a=Object.create(E3);return Se.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),vt.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const wDe=null;function uC(e){return Se.isPlainObject(e)||Se.isArray(e)}function k3(e){return Se.endsWith(e,"[]")?e.slice(0,-2):e}function RT(e,t,n){return e?e.concat(t).map(function(o,i){return o=k3(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function CDe(e){return Se.isArray(e)&&!e.some(uC)}const SDe=Se.toFlatObject(Se,{},null,function(t){return/^is[A-Z]/.test(t)});function U0(e,t,n){if(!Se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!Se.isUndefined(y[h])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(Se.isDate(p))return p.toISOString();if(!s&&Se.isBlob(p))throw new vt("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(p)||Se.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,h,y){let b=p;if(p&&!y&&typeof p=="object"){if(Se.endsWith(h,"{}"))h=r?h:h.slice(0,-2),p=JSON.stringify(p);else if(Se.isArray(p)&&CDe(p)||(Se.isFileList(p)||Se.endsWith(h,"[]"))&&(b=Se.toArray(p)))return h=k3(h),b.forEach(function(x,w){!(Se.isUndefined(x)||x===null)&&t.append(a===!0?RT([h],w,i):a===null?h:h+"[]",u(x))}),!1}return uC(p)?!0:(t.append(RT(y,h,i),u(p)),!1)}const d=[],f=Object.assign(SDe,{defaultVisitor:c,convertValue:u,isVisitable:uC});function m(p,h){if(!Se.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(p),Se.forEach(p,function(b,g){(!(Se.isUndefined(b)||b===null)&&o.call(t,b,Se.isString(g)?g.trim():g,h,f))===!0&&m(b,h?h.concat(g):[g])}),d.pop()}}if(!Se.isObject(e))throw new TypeError("data must be an object");return m(e),t}function TT(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $k(e,t){this._pairs=[],e&&U0(e,this,t)}const $3=$k.prototype;$3.append=function(t,n){this._pairs.push([t,n])};$3.toString=function(t){const n=t?function(r){return t.call(this,r,TT)}:TT;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function EDe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function I3(e,t,n){if(!t)return e;const r=n&&n.encode||EDe,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Se.isURLSearchParams(t)?t.toString():new $k(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class PDe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Se.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _T=PDe,O3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kDe=typeof URLSearchParams<"u"?URLSearchParams:$k,$De=typeof FormData<"u"?FormData:null,IDe=typeof Blob<"u"?Blob:null,ODe={isBrowser:!0,classes:{URLSearchParams:kDe,FormData:$De,Blob:IDe},protocols:["http","https","file","blob","url","data"]},M3=typeof window<"u"&&typeof document<"u",MDe=(e=>M3&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),RDe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),TDe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:M3,hasStandardBrowserEnv:MDe,hasStandardBrowserWebWorkerEnv:RDe},Symbol.toStringTag,{value:"Module"})),Li={...TDe,...ODe};function _De(e,t){return U0(e,new Li.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Li.isNode&&Se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function FDe(e){return Se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ADe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function R3(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),s=i>=n.length;return a=!a&&Se.isArray(o)?o.length:a,s?(Se.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!Se.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Se.isArray(o[a])&&(o[a]=ADe(o[a])),!l)}if(Se.isFormData(e)&&Se.isFunction(e.entries)){const n={};return Se.forEachEntry(e,(r,o)=>{t(FDe(r),o,n,0)}),n}return null}function LDe(e,t,n){if(Se.isString(e))try{return(t||JSON.parse)(e),Se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ik={transitional:O3,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Se.isObject(t);if(i&&Se.isHTMLForm(t)&&(t=new FormData(t)),Se.isFormData(t))return o?JSON.stringify(R3(t)):t;if(Se.isArrayBuffer(t)||Se.isBuffer(t)||Se.isStream(t)||Se.isFile(t)||Se.isBlob(t))return t;if(Se.isArrayBufferView(t))return t.buffer;if(Se.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _De(t,this.formSerializer).toString();if((l=Se.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return U0(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),LDe(t)):t}],transformResponse:[function(t){const n=this.transitional||Ik.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Se.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?vt.from(l,vt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Li.classes.FormData,Blob:Li.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],e=>{Ik.headers[e]={}});const Ok=Ik,DDe=Se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),NDe=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&DDe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},FT=Symbol("internals");function af(e){return e&&String(e).trim().toLowerCase()}function sg(e){return e===!1||e==null?e:Se.isArray(e)?e.map(sg):String(e)}function zDe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const jDe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Q1(e,t,n,r,o){if(Se.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function BDe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function HDe(e,t){const n=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class V0{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,u){const c=af(s);if(!c)throw new Error("header name must be a non-empty string");const d=Se.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=sg(l))}const a=(l,s)=>Se.forEach(l,(u,c)=>i(u,c,s));return Se.isPlainObject(t)||t instanceof this.constructor?a(t,n):Se.isString(t)&&(t=t.trim())&&!jDe(t)?a(NDe(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=af(t),t){const r=Se.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return zDe(o);if(Se.isFunction(n))return n.call(this,o,r);if(Se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=af(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Q1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=af(a),a){const l=Se.findKey(r,a);l&&(!n||Q1(r,r[l],l,n))&&(delete r[l],o=!0)}}return Se.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Q1(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Se.forEach(this,(o,i)=>{const a=Se.findKey(r,i);if(a){n[a]=sg(o),delete n[i];return}const l=t?BDe(i):String(i).trim();l!==i&&delete n[i],n[l]=sg(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[FT]=this[FT]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=af(a);r[l]||(HDe(o,a),r[l]=!0)}return Se.isArray(t)?t.forEach(i):i(t),this}}V0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Se.reduceDescriptors(V0.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Se.freezeMethods(V0);const Fa=V0;function Y1(e,t){const n=this||Ok,r=t||n,o=Fa.from(r.headers);let i=r.data;return Se.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function T3(e){return!!(e&&e.__CANCEL__)}function $m(e,t,n){vt.call(this,e??"canceled",vt.ERR_CANCELED,t,n),this.name="CanceledError"}Se.inherits($m,vt,{__CANCEL__:!0});function UDe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new vt("Request failed with status code "+n.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const VDe=Li.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Se.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Se.isString(r)&&a.push("path="+r),Se.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function WDe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GDe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _3(e,t){return e&&!WDe(t)?GDe(e,t):t}const qDe=Li.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=Se.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function KDe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function QDe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];a||(a=u),n[o]=s,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(f*1e3/m):void 0}}function AT(e,t){let n=0;const r=QDe(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,s=r(l),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&u?(a-i)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const YDe=typeof XMLHttpRequest<"u",XDe=YDe&&function(e){return new Promise(function(n,r){let o=e.data;const i=Fa.from(e.headers).normalize();let{responseType:a,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(Se.isFormData(o)){if(Li.hasStandardBrowserEnv||Li.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...y]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+y))}const f=_3(e.baseURL,e.url);d.open(e.method.toUpperCase(),I3(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const h=Fa.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};UDe(function(x){n(x),u()},function(x){r(x),u()},b),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new vt("Request aborted",vt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new vt("Network Error",vt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||O3;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new vt(y,b.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,e,d)),d=null},Li.hasStandardBrowserEnv&&(l&&Se.isFunction(l)&&(l=l(e)),l||l!==!1&&qDe(f))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&VDe.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in d&&Se.forEach(i.toJSON(),function(y,b){d.setRequestHeader(b,y)}),Se.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&a!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",AT(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",AT(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{d&&(r(!h||h.type?new $m(null,e,d):h),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=KDe(f);if(p&&Li.protocols.indexOf(p)===-1){r(new vt("Unsupported protocol "+p+":",vt.ERR_BAD_REQUEST,e));return}d.send(o||null)})},cC={http:wDe,xhr:XDe};Se.forEach(cC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const LT=e=>`- ${e}`,ZDe=e=>Se.isFunction(e)||e===null||e===!1,F3={getAdapter:e=>{e=Se.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!ZDe(n)&&(r=cC[(a=String(n)).toLowerCase()],r===void 0))throw new vt(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(LT).join(`
`):" "+LT(i[0]):"as no adapter specified";throw new vt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:cC};function X1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $m(null,e)}function DT(e){return X1(e),e.headers=Fa.from(e.headers),e.data=Y1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),F3.getAdapter(e.adapter||Ok.adapter)(e).then(function(r){return X1(e),r.data=Y1.call(e,e.transformResponse,r),r.headers=Fa.from(r.headers),r},function(r){return T3(r)||(X1(e),r&&r.response&&(r.response.data=Y1.call(e,e.transformResponse,r.response),r.response.headers=Fa.from(r.response.headers))),Promise.reject(r)})}const NT=e=>e instanceof Fa?e.toJSON():e;function Jc(e,t){t=t||{};const n={};function r(u,c,d){return Se.isPlainObject(u)&&Se.isPlainObject(c)?Se.merge.call({caseless:d},u,c):Se.isPlainObject(c)?Se.merge({},c):Se.isArray(c)?c.slice():c}function o(u,c,d){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Se.isUndefined(c))return r(void 0,c)}function a(u,c){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c)=>o(NT(u),NT(c),!0)};return Se.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Se.isUndefined(f)&&d!==l||(n[c]=f)}),n}const A3="1.6.7",Mk={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mk[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const zT={};Mk.transitional=function(t,n,r){function o(i,a){return"[Axios v"+A3+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new vt(o(a," has been removed"+(n?" in "+n:"")),vt.ERR_DEPRECATED);return n&&!zT[a]&&(zT[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function JDe(e,t,n){if(typeof e!="object")throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new vt("option "+i+" must be "+s,vt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new vt("Unknown option "+i,vt.ERR_BAD_OPTION)}}const dC={assertOptions:JDe,validators:Mk},dl=dC.validators;class kv{constructor(t){this.defaults=t,this.interceptors={request:new _T,response:new _T}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jc(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&dC.assertOptions(r,{silentJSONParsing:dl.transitional(dl.boolean),forcedJSONParsing:dl.transitional(dl.boolean),clarifyTimeoutError:dl.transitional(dl.boolean)},!1),o!=null&&(Se.isFunction(o)?n.paramsSerializer={serialize:o}:dC.assertOptions(o,{encode:dl.function,serialize:dl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Se.merge(i.common,i[n.method]);i&&Se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Fa.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(s=s&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!s){const p=[DT.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=l.length;let m=n;for(d=0;d<f;){const p=l[d++],h=l[d++];try{m=p(m)}catch(y){h.call(this,y);break}}try{c=DT.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Jc(this.defaults,t);const n=_3(t.baseURL,t.url);return I3(n,t.params,t.paramsSerializer)}}Se.forEach(["delete","get","head","options"],function(t){kv.prototype[t]=function(n,r){return this.request(Jc(r||{},{method:t,url:n,data:(r||{}).data}))}});Se.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(Jc(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}kv.prototype[t]=n(),kv.prototype[t+"Form"]=n(!0)});const ug=kv;class Rk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new $m(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Rk(function(o){t=o}),cancel:t}}}const eNe=Rk;function tNe(e){return function(n){return e.apply(null,n)}}function nNe(e){return Se.isObject(e)&&e.isAxiosError===!0}const fC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fC).forEach(([e,t])=>{fC[t]=e});const rNe=fC;function L3(e){const t=new ug(e),n=g3(ug.prototype.request,t);return Se.extend(n,ug.prototype,t,{allOwnKeys:!0}),Se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return L3(Jc(e,o))},n}const Mn=L3(Ok);Mn.Axios=ug;Mn.CanceledError=$m;Mn.CancelToken=eNe;Mn.isCancel=T3;Mn.VERSION=A3;Mn.toFormData=U0;Mn.AxiosError=vt;Mn.Cancel=Mn.CanceledError;Mn.all=function(t){return Promise.all(t)};Mn.spread=tNe;Mn.isAxiosError=nNe;Mn.mergeConfig=Jc;Mn.AxiosHeaders=Fa;Mn.formToJSON=e=>R3(Se.isHTMLForm(e)?new FormData(e):e);Mn.getAdapter=F3.getAdapter;Mn.HttpStatusCode=rNe;Mn.default=Mn;const oNe=Mn,D3=oNe.create();D3.interceptors.response.use(e=>e,e=>{var n,r,o;const t={...e,message:(r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message,statusCode:(o=e.response)==null?void 0:o.status};return Promise.reject(t)});const jT=(e,t=D3)=>({getList:async({resource:n,pagination:r,filters:o,sorters:i,meta:a})=>{const l=`${e}/${n}`,{current:s=1,pageSize:u=10,mode:c="server"}=r??{},{headers:d,method:f}=a??{},m=f??"get",p=IT(o),h={};c==="server"&&(h._start=(s-1)*u,h._end=s*u);const y=$T(i);if(y){const{_sort:C,_order:E}=y;h._sort=C.join(","),h._order=E.join(",")}const b={...h,...p},g=Object.keys(b).length?`${l}?${Yu.stringify(b)}`:l,{data:x,headers:w}=await t[m](g,{headers:d}),P=+w["x-total-count"];return{data:x,total:P||x.length}},getMany:async({resource:n,ids:r,meta:o})=>{const{headers:i,method:a}=o??{},l=a??"get",{data:s}=await t[l](`${e}/${n}?${Yu.stringify({id:r})}`,{headers:i});return{data:s}},create:async({resource:n,variables:r,meta:o})=>{const i=`${e}/${n}`,{headers:a,method:l}=o??{},s=l??"post",{data:u}=await t[s](i,r,{headers:a});return{data:u}},update:async({resource:n,id:r,variables:o,meta:i})=>{const a=`${e}/${n}/${r}`,{headers:l,method:s}=i??{},u=s??"patch",{data:c}=await t[u](a,o,{headers:l});return{data:c}},getOne:async({resource:n,id:r,meta:o})=>{const i=`${e}/${n}/${r}`,{headers:a,method:l}=o??{},s=l??"get",{data:u}=await t[s](i,{headers:a});return{data:u}},deleteOne:async({resource:n,id:r,variables:o,meta:i})=>{const a=`${e}/${n}/${r}`,{headers:l,method:s}=i??{},u=s??"delete",{data:c}=await t[u](a,{data:o,headers:l});return{data:c}},getApiUrl:()=>e,custom:async({url:n,method:r,filters:o,sorters:i,payload:a,query:l,headers:s})=>{let u=`${n}?`;if(i){const f=$T(i);if(f){const{_sort:m,_order:p}=f,h={_sort:m.join(","),_order:p.join(",")};u=`${u}&${Yu.stringify(h)}`}}if(o){const f=IT(o);u=`${u}&${Yu.stringify(f)}`}l&&(u=`${u}&${Yu.stringify(l)}`);let c;switch(r){case"put":case"post":case"patch":c=await t[r](n,a,{headers:s});break;case"delete":c=await t.delete(n,{data:a,headers:s});break;default:c=await t.get(u,{headers:s});break}const{data:d}=c;return Promise.resolve({data:d})}}),Oh="refine-auth",iNe={login:async({username:e,email:t,password:n})=>(e||t)&&n?(localStorage.setItem(Oh,e),{success:!0,redirectTo:"/"}):{success:!1,error:{name:"LoginError",message:"Invalid username or password"}},logout:async()=>(localStorage.removeItem(Oh),{success:!0,redirectTo:"/login"}),check:async()=>localStorage.getItem(Oh)?{authenticated:!0}:{authenticated:!1,redirectTo:"/login"},getPermissions:async()=>null,getIdentity:async()=>localStorage.getItem(Oh)?{id:1,name:"John Doe",avatar:"https://i.pravatar.cc/300"}:null,onError:async e=>(console.error(e),{error:e})},W0=()=>z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",children:z.jsxs("g",{fill:"currentColor",children:[z.jsx("path",{d:"M8 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"}),z.jsx("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.333 4a2.667 2.667 0 0 1 5.334 0v8a2.667 2.667 0 1 1-5.334 0z","clip-rule":"evenodd"})]})});var Tk={},aNe=Ot;Object.defineProperty(Tk,"__esModule",{value:!0});var N3=Tk.default=void 0,lNe=aNe(Dt()),sNe=z;N3=Tk.default=(0,lNe.default)((0,sNe.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkModeOutlined");var _k={},uNe=Ot;Object.defineProperty(_k,"__esModule",{value:!0});var z3=_k.default=void 0,cNe=uNe(Dt()),dNe=z;z3=_k.default=(0,cNe.default)((0,dNe.jsx)("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightModeOutlined");const j3=v.createContext({}),fNe=({children:e})=>{const t=localStorage.getItem("colorMode"),r=(window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)").matches)?"dark":"light",[o,i]=v.useState(t||r);v.useEffect(()=>{window.localStorage.setItem("colorMode",o)},[o]);const a=()=>{i(o==="light"?"dark":"light")};return z.jsx(j3.Provider,{value:{setMode:a,mode:o},children:z.jsx(gne,{theme:o==="light"?pT.Blue:pT.BlueDark,children:e})})},pNe=({sticky:e=!0})=>{const{mode:t,setMode:n}=v.useContext(j3),{data:r}=ld();return z.jsx(Jy,{position:e?"sticky":"relative",children:z.jsx(tm,{children:z.jsxs(Nr,{direction:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",children:[z.jsx(Xj,{}),z.jsxs(Nr,{direction:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",children:[z.jsx(An,{color:"inherit",onClick:()=>{n()},children:t==="dark"?z.jsx(z3,{}):z.jsx(N3,{})}),((r==null?void 0:r.avatar)||(r==null?void 0:r.name))&&z.jsxs(Nr,{direction:"row",gap:"16px",alignItems:"center",justifyContent:"center",children:[(r==null?void 0:r.name)&&z.jsx(Xe,{sx:{display:{xs:"none",sm:"inline-block"}},variant:"subtitle2",children:r==null?void 0:r.name}),z.jsx(e0,{src:r==null?void 0:r.avatar,alt:r==null?void 0:r.name})]})]})]})})})},mNe=()=>z.jsx(xk,{type:"forgotPassword",title:z.jsx(il,{collapsed:!1,text:"Refine Project",icon:z.jsx(W0,{})})}),hNe=()=>z.jsx(xk,{type:"login",title:z.jsx(il,{collapsed:!1,text:"Refine Project",icon:z.jsx(W0,{})}),formProps:{defaultValues:{email:"demo@refine.dev",password:"demodemo"}}}),gNe=()=>z.jsx(xk,{type:"register",title:z.jsx(il,{collapsed:!1,text:"Refine Project",icon:z.jsx(W0,{})})}),vNe=()=>{const{dataGridProps:e}=Qj({syncWithLocation:!0,dataProviderName:"monitorings",pagination:{mode:"client",pageSize:10}}),t=$.useMemo(()=>[{field:"name",flex:1,headerName:"Name",type:"string",minWidth:250},{field:"id",headerName:"ID",type:"string",minWidth:300},{field:"created_at",flex:1,headerName:"Created at",minWidth:30,renderCell:function({value:r}){return z.jsx(fAe,{value:r})}},{field:"samplerate",flex:.3,headerName:"Samplerate in Hz",renderCell:function({row:r}){return z.jsx(G1,{value:r.samplerate,options:{minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0}})},minWidth:120},{field:"sampleperiod",flex:.3,headerName:"Period in s",renderCell:function({row:r}){return z.jsx(G1,{value:r.sampleperiod,options:{minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:3}})},minWidth:120},{field:"downtime",flex:.3,headerName:"Downtime in s",renderCell:function({row:r}){return z.jsx(G1,{value:r.downtime,options:{minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:3}})},minWidth:120},{field:"owner",flex:1,headerName:"Owner",type:"string",minWidth:80},{field:"actions",headerName:"Actions",sortable:!1,renderCell:function({row:r}){return z.jsxs(z.Fragment,{children:[z.jsx(Zj,{hideText:!0,recordItemId:r.id}),z.jsx(wk,{hideText:!0,recordItemId:r.id})]})},align:"center",headerAlign:"center",minWidth:80}],[]);return z.jsx(sAe,{children:z.jsx(Kbe,{...e,columns:t,autoHeight:!0})})},yNe=()=>{var i,a,l,s,u;const{saveButtonProps:e,refineCore:{formLoading:t},register:n,control:r,formState:{errors:o}}=Za({});return z.jsx(aAe,{isLoading:t,saveButtonProps:e,children:z.jsxs(Ke,{component:"form",sx:{display:"flex",flexDirection:"column"},autoComplete:"off",children:[z.jsx(In,{...n("name",{required:"The name is required"}),error:!!(o!=null&&o.name),helperText:(i=o==null?void 0:o.name)==null?void 0:i.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},type:"text",label:"Name",name:"name"}),z.jsx(In,{...n("samplerate",{required:"The samplerate is required"}),error:!!(o!=null&&o.samplerate),helperText:(a=o==null?void 0:o.samplerate)==null?void 0:a.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},type:"number",label:"Samplerate",name:"samplerate",InputProps:{endAdornment:z.jsx(Ws,{position:"end",children:"hz"})}}),z.jsx(In,{...n("sampleperiod",{required:"The sampleperiod is required"}),error:!!(o!=null&&o.sampleperiod),helperText:(l=o==null?void 0:o.sampleperiod)==null?void 0:l.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},type:"number",label:"Sampleperiod",name:"sampleperiod",InputProps:{endAdornment:z.jsx(Ws,{position:"end",children:"s"})}}),z.jsx(In,{...n("downtime",{required:"The downtime is required"}),error:!!(o!=null&&o.downtime),helperText:(s=o==null?void 0:o.downtime)==null?void 0:s.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},type:"number",label:"Downtime",name:"downtime",InputProps:{endAdornment:z.jsx(Ws,{position:"end",children:"s"})}}),z.jsx(In,{...n("owner",{required:"The downtime is required"}),error:!!(o!=null&&o.downtime),helperText:(u=o==null?void 0:o.downtime)==null?void 0:u.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},multiline:!0,label:"Owner",name:"owner"})]})})},bNe=()=>{var a,l,s,u,c,d;const{saveButtonProps:e,refineCore:{queryResult:t,formLoading:n},register:r,control:o,formState:{errors:i}}=Za({});return(a=t==null?void 0:t.data)==null||a.data,z.jsx(lAe,{dataProviderName:"monitorings",isLoading:n,saveButtonProps:e,children:z.jsxs(Ke,{component:"form",sx:{display:"flex",flexDirection:"column"},autoComplete:"off",children:[z.jsx(In,{...r("name",{required:"The name is required"}),error:!!(i!=null&&i.name),helperText:(l=i==null?void 0:i.name)==null?void 0:l.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},type:"text",label:"Name",name:"name"}),z.jsx(In,{...r("samplerate",{required:"The samplerate is required"}),error:!!(i!=null&&i.samplerate),helperText:(s=i==null?void 0:i.samplerate)==null?void 0:s.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},type:"number",label:"Samplerate",name:"samplerate",InputProps:{endAdornment:z.jsx(Ws,{position:"end",children:"hz"})}}),z.jsx(In,{...r("sampleperiod",{required:"The sampleperiod is required"}),error:!!(i!=null&&i.sampleperiod),helperText:(u=i==null?void 0:i.sampleperiod)==null?void 0:u.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},type:"number",label:"Sampleperiod",name:"sampleperiod",InputProps:{endAdornment:z.jsx(Ws,{position:"end",children:"s"})}}),z.jsx(In,{...r("downtime",{required:"The downtime is required"}),error:!!(i!=null&&i.downtime),helperText:(c=i==null?void 0:i.downtime)==null?void 0:c.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},type:"number",label:"Downtime",name:"downtime",InputProps:{endAdornment:z.jsx(Ws,{position:"end",children:"s"})}}),z.jsx(In,{...r("owner",{required:"The downtime is required"}),error:!!(i!=null&&i.downtime),helperText:(d=i==null?void 0:i.downtime)==null?void 0:d.message,margin:"normal",fullWidth:!0,InputLabelProps:{shrink:!0},multiline:!0,label:"Owner",name:"owner"})]})})},xNe="https://api.fake-rest.refine.dev",wNe="/vrpmdvapi/1_0";function CNe(){return z.jsx(CLe,{children:z.jsx(fX,{children:z.jsxs(fNe,{children:[z.jsx(EAe,{}),z.jsx(XE,{styles:{html:{WebkitFontSmoothing:"auto"}}}),z.jsx(xAe,{children:z.jsxs(gK,{dataProvider:{default:jT(xNe),monitorings:jT(wNe)},notificationProvider:bAe,authProvider:iNe,routerProvider:ILe,resources:[{name:"monitorings",list:"/monitorings",create:"/monitorings/create",edit:"/monitorings/edit/:id",meta:{canDelete:!0,dataProviderName:"monitorings"}}],options:{syncWithLocation:!0,warnWhenUnsavedChanges:!0,useNewQueryKeys:!0,projectId:"4LRbGi-1874iA-m2rbd1"},children:[z.jsxs(hLe,{children:[z.jsxs(vo,{element:z.jsx(sw,{fallback:z.jsx(TLe,{to:"/login"}),children:z.jsx(ZFe,{Header:()=>z.jsx(pNe,{sticky:!0}),Title:({collapsed:e})=>z.jsx(il,{collapsed:e,text:"VR Predictive Maintenance Device",icon:z.jsx(W0,{})}),children:z.jsx(bT,{})})},"authenticated-inner"),children:[z.jsx(vo,{index:!0,element:z.jsx(ET,{resource:"monitorings"})}),z.jsxs(vo,{path:"/monitorings",children:[z.jsx(vo,{index:!0,element:z.jsx(vNe,{})}),z.jsx(vo,{path:"create",element:z.jsx(yNe,{})}),z.jsx(vo,{path:"edit/:id",element:z.jsx(bNe,{})})]}),z.jsx(vo,{path:"*",element:z.jsx(tAe,{})})]}),z.jsxs(vo,{element:z.jsx(sw,{fallback:z.jsx(bT,{}),children:z.jsx(ET,{})},"authenticated-outer"),children:[z.jsx(vo,{path:"/login",element:z.jsx(hNe,{})}),z.jsx(vo,{path:"/register",element:z.jsx(gNe,{})}),z.jsx(vo,{path:"/forgot-password",element:z.jsx(mNe,{})})]})]}),z.jsx(dX,{}),z.jsx(RLe,{}),z.jsx(_Le,{})]})})]})})})}const SNe=document.getElementById("root"),ENe=eA(SNe);ENe.render(z.jsx($.StrictMode,{children:z.jsx(CNe,{})}))});export default PNe();