promptfoo 0.18.0 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +5 -5
  2. package/dist/package.json +1 -1
  3. package/dist/src/assertions.d.ts +2 -2
  4. package/dist/src/assertions.d.ts.map +1 -1
  5. package/dist/src/assertions.js +38 -7
  6. package/dist/src/assertions.js.map +1 -1
  7. package/dist/src/evaluator.d.ts.map +1 -1
  8. package/dist/src/evaluator.js +2 -0
  9. package/dist/src/evaluator.js.map +1 -1
  10. package/dist/src/main.js +4 -4
  11. package/dist/src/main.js.map +1 -1
  12. package/dist/src/providers/azureopenai.d.ts +2 -2
  13. package/dist/src/providers/azureopenai.d.ts.map +1 -1
  14. package/dist/src/providers/azureopenai.js +4 -2
  15. package/dist/src/providers/azureopenai.js.map +1 -1
  16. package/dist/src/providers/llama.d.ts +30 -0
  17. package/dist/src/providers/llama.d.ts.map +1 -0
  18. package/dist/src/providers/llama.js +67 -0
  19. package/dist/src/providers/llama.js.map +1 -0
  20. package/dist/src/providers/openai.d.ts +2 -2
  21. package/dist/src/providers/openai.d.ts.map +1 -1
  22. package/dist/src/providers/openai.js +4 -2
  23. package/dist/src/providers/openai.js.map +1 -1
  24. package/dist/src/providers.d.ts.map +1 -1
  25. package/dist/src/providers.js +12 -6
  26. package/dist/src/providers.js.map +1 -1
  27. package/dist/src/types.d.ts +6 -2
  28. package/dist/src/types.d.ts.map +1 -1
  29. package/dist/src/util.d.ts.map +1 -1
  30. package/dist/src/util.js +12 -8
  31. package/dist/src/util.js.map +1 -1
  32. package/dist/src/web/client/assets/index-af22e73c.js +200 -0
  33. package/dist/src/web/client/index.html +1 -1
  34. package/package.json +1 -1
  35. package/src/assertions.ts +42 -9
  36. package/src/evaluator.ts +2 -0
  37. package/src/main.ts +4 -4
  38. package/src/providers/azureopenai.ts +4 -2
  39. package/src/providers/llama.ts +95 -0
  40. package/src/providers/openai.ts +4 -2
  41. package/src/providers.ts +11 -6
  42. package/src/types.ts +6 -2
  43. package/src/util.ts +13 -14
  44. package/src/web/client/src/EvalOutputPromptDialog.tsx +78 -16
  45. package/src/web/client/src/ResultsTable.tsx +32 -9
  46. package/src/web/client/src/types.ts +3 -1
  47. package/dist/src/web/client/assets/index-8388d689.js +0 -199
@@ -1,199 +0,0 @@
1
- function sx(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 s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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)}})();function af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lx(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return 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 Vg={exports:{}},Ma={},Hg={exports:{}},ye={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Ts=Symbol.for("react.element"),ax=Symbol.for("react.portal"),ux=Symbol.for("react.fragment"),cx=Symbol.for("react.strict_mode"),dx=Symbol.for("react.profiler"),fx=Symbol.for("react.provider"),px=Symbol.for("react.context"),hx=Symbol.for("react.forward_ref"),mx=Symbol.for("react.suspense"),gx=Symbol.for("react.memo"),vx=Symbol.for("react.lazy"),nh=Symbol.iterator;function yx(e){return e===null||typeof e!="object"?null:(e=nh&&e[nh]||e["@@iterator"],typeof e=="function"?e:null)}var Wg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ug=Object.assign,Gg={};function oi(e,t,n){this.props=e,this.context=t,this.refs=Gg,this.updater=n||Wg}oi.prototype.isReactComponent={};oi.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")};oi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kg(){}Kg.prototype=oi.prototype;function uf(e,t,n){this.props=e,this.context=t,this.refs=Gg,this.updater=n||Wg}var cf=uf.prototype=new Kg;cf.constructor=uf;Ug(cf,oi.prototype);cf.isPureReactComponent=!0;var rh=Array.isArray,qg=Object.prototype.hasOwnProperty,df={current:null},Yg={key:!0,ref:!0,__self:!0,__source:!0};function Xg(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)qg.call(t,r)&&!Yg.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ts,type:e,key:i,ref:s,props:o,_owner:df.current}}function xx(e,t){return{$$typeof:Ts,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ff(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ts}function Sx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var oh=/\/+/g;function Yu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Sx(""+e.key):t.toString(36)}function kl(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ts:case ax:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Yu(s,0):r,rh(o)?(n="",e!=null&&(n=e.replace(oh,"$&/")+"/"),kl(o,t,n,"",function(u){return u})):o!=null&&(ff(o)&&(o=xx(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(oh,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",rh(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+Yu(i,l);s+=kl(i,t,n,a,o)}else if(a=yx(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+Yu(i,l++),s+=kl(i,t,n,a,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 s}function Us(e,t,n){if(e==null)return e;var r=[],o=0;return kl(e,r,"","",function(i){return t.call(n,i,o++)}),r}function bx(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 kt={current:null},Rl={transition:null},wx={ReactCurrentDispatcher:kt,ReactCurrentBatchConfig:Rl,ReactCurrentOwner:df};ye.Children={map:Us,forEach:function(e,t,n){Us(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Us(e,function(){t++}),t},toArray:function(e){return Us(e,function(t){return t})||[]},only:function(e){if(!ff(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ye.Component=oi;ye.Fragment=ux;ye.Profiler=dx;ye.PureComponent=uf;ye.StrictMode=cx;ye.Suspense=mx;ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wx;ye.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=Ug({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=df.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)qg.call(t,a)&&!Yg.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ts,type:e.type,key:o,ref:i,props:r,_owner:s}};ye.createContext=function(e){return e={$$typeof:px,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:fx,_context:e},e.Consumer=e};ye.createElement=Xg;ye.createFactory=function(e){var t=Xg.bind(null,e);return t.type=e,t};ye.createRef=function(){return{current:null}};ye.forwardRef=function(e){return{$$typeof:hx,render:e}};ye.isValidElement=ff;ye.lazy=function(e){return{$$typeof:vx,_payload:{_status:-1,_result:e},_init:bx}};ye.memo=function(e,t){return{$$typeof:gx,type:e,compare:t===void 0?null:t}};ye.startTransition=function(e){var t=Rl.transition;Rl.transition={};try{e()}finally{Rl.transition=t}};ye.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ye.useCallback=function(e,t){return kt.current.useCallback(e,t)};ye.useContext=function(e){return kt.current.useContext(e)};ye.useDebugValue=function(){};ye.useDeferredValue=function(e){return kt.current.useDeferredValue(e)};ye.useEffect=function(e,t){return kt.current.useEffect(e,t)};ye.useId=function(){return kt.current.useId()};ye.useImperativeHandle=function(e,t,n){return kt.current.useImperativeHandle(e,t,n)};ye.useInsertionEffect=function(e,t){return kt.current.useInsertionEffect(e,t)};ye.useLayoutEffect=function(e,t){return kt.current.useLayoutEffect(e,t)};ye.useMemo=function(e,t){return kt.current.useMemo(e,t)};ye.useReducer=function(e,t,n){return kt.current.useReducer(e,t,n)};ye.useRef=function(e){return kt.current.useRef(e)};ye.useState=function(e){return kt.current.useState(e)};ye.useSyncExternalStore=function(e,t,n){return kt.current.useSyncExternalStore(e,t,n)};ye.useTransition=function(){return kt.current.useTransition()};ye.version="18.2.0";Hg.exports=ye;var S=Hg.exports;const wt=af(S),Kl=sx({__proto__:null,default:wt},[S]);/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Cx=S,kx=Symbol.for("react.element"),Rx=Symbol.for("react.fragment"),$x=Object.prototype.hasOwnProperty,Ex=Cx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Px={key:!0,ref:!0,__self:!0,__source:!0};function Qg(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)$x.call(t,r)&&!Px.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:kx,type:e,key:i,ref:s,props:o,_owner:Ex.current}}Ma.Fragment=Rx;Ma.jsx=Qg;Ma.jsxs=Qg;Vg.exports=Ma;var w=Vg.exports,Hc={},Zg={exports:{}},Ut={},Jg={exports:{}},ev={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(T,L){var F=T.length;T.push(L);e:for(;0<F;){var q=F-1>>>1,G=T[q];if(0<o(G,L))T[q]=L,T[F]=G,F=q;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var L=T[0],F=T.pop();if(F!==L){T[0]=F;e:for(var q=0,G=T.length,oe=G>>>1;q<oe;){var te=2*(q+1)-1,Q=T[te],se=te+1,Ce=T[se];if(0>o(Q,F))se<G&&0>o(Ce,Q)?(T[q]=Ce,T[se]=F,q=se):(T[q]=Q,T[te]=F,q=te);else if(se<G&&0>o(Ce,F))T[q]=Ce,T[se]=F,q=se;else break e}}return L}function o(T,L){var F=T.sortIndex-L.sortIndex;return F!==0?F:T.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,f=3,m=!1,y=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(T){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=T)r(u),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(u)}}function x(T){if(v=!1,h(T),!y)if(n(a)!==null)y=!0,O(C);else{var L=n(u);L!==null&&N(x,L.startTime-T)}}function C(T,L){y=!1,v&&(v=!1,g(E),E=-1),m=!0;var F=f;try{for(h(L),d=n(a);d!==null&&(!(d.expirationTime>L)||T&&!I());){var q=d.callback;if(typeof q=="function"){d.callback=null,f=d.priorityLevel;var G=q(d.expirationTime<=L);L=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(a)&&r(a),h(L)}else r(a);d=n(a)}if(d!==null)var oe=!0;else{var te=n(u);te!==null&&N(x,te.startTime-L),oe=!1}return oe}finally{d=null,f=F,m=!1}}var R=!1,$=null,E=-1,M=5,P=-1;function I(){return!(e.unstable_now()-P<M)}function j(){if($!==null){var T=e.unstable_now();P=T;var L=!0;try{L=$(!0,T)}finally{L?D():(R=!1,$=null)}}else R=!1}var D;if(typeof p=="function")D=function(){p(j)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,_=A.port2;A.port1.onmessage=j,D=function(){_.postMessage(null)}}else D=function(){k(j,0)};function O(T){$=T,R||(R=!0,D())}function N(T,L){E=k(function(){T(e.unstable_now())},L)}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(T){T.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,O(C))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(T){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var F=f;f=L;try{return T()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,L){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var F=f;f=T;try{return L()}finally{f=F}},e.unstable_scheduleCallback=function(T,L,F){var q=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?q+F:q):F=q,T){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=F+G,T={id:c++,callback:L,priorityLevel:T,startTime:F,expirationTime:G,sortIndex:-1},F>q?(T.sortIndex=F,t(u,T),n(a)===null&&T===n(u)&&(v?(g(E),E=-1):v=!0,N(x,F-q))):(T.sortIndex=G,t(a,T),y||m||(y=!0,O(C))),T},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(T){var L=f;return function(){var F=f;f=L;try{return T.apply(this,arguments)}finally{f=F}}}})(ev);Jg.exports=ev;var _x=Jg.exports;/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var tv=S,Ht=_x;function z(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 nv=new Set,ss={};function eo(e,t){Ho(e,t),Ho(e+"Capture",t)}function Ho(e,t){for(ss[e]=t,e=0;e<t.length;e++)nv.add(t[e])}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wc=Object.prototype.hasOwnProperty,Tx=/^[: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]*$/,ih={},sh={};function Mx(e){return Wc.call(sh,e)?!0:Wc.call(ih,e)?!1:Tx.test(e)?sh[e]=!0:(ih[e]=!0,!1)}function Ox(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 Ix(e,t,n,r){if(t===null||typeof t>"u"||Ox(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 Rt(e,t,n,r,o,i,s){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=s}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new Rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new Rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new Rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new Rt(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){ht[e]=new Rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new Rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ht[e]=new Rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ht[e]=new Rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ht[e]=new Rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var pf=/[\-:]([a-z])/g;function hf(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(pf,hf);ht[t]=new Rt(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(pf,hf);ht[t]=new Rt(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(pf,hf);ht[t]=new Rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new Rt(e,1,!1,e.toLowerCase(),null,!1,!1)});ht.xlinkHref=new Rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ht[e]=new Rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function mf(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ix(t,n,o,r)&&(n=null),r||o===null?Mx(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 Zn=tv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gs=Symbol.for("react.element"),Co=Symbol.for("react.portal"),ko=Symbol.for("react.fragment"),gf=Symbol.for("react.strict_mode"),Uc=Symbol.for("react.profiler"),rv=Symbol.for("react.provider"),ov=Symbol.for("react.context"),vf=Symbol.for("react.forward_ref"),Gc=Symbol.for("react.suspense"),Kc=Symbol.for("react.suspense_list"),yf=Symbol.for("react.memo"),rr=Symbol.for("react.lazy"),iv=Symbol.for("react.offscreen"),lh=Symbol.iterator;function gi(e){return e===null||typeof e!="object"?null:(e=lh&&e[lh]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Object.assign,Xu;function Ni(e){if(Xu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xu=t&&t[1]||""}return`
34
- `+Xu+e}var Qu=!1;function Zu(e,t){if(!e||Qu)return"";Qu=!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(`
35
- `),i=r.stack.split(`
36
- `),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
37
- `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Qu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ni(e):""}function Ax(e){switch(e.tag){case 5:return Ni(e.type);case 16:return Ni("Lazy");case 13:return Ni("Suspense");case 19:return Ni("SuspenseList");case 0:case 2:case 15:return e=Zu(e.type,!1),e;case 11:return e=Zu(e.type.render,!1),e;case 1:return e=Zu(e.type,!0),e;default:return""}}function qc(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 ko:return"Fragment";case Co:return"Portal";case Uc:return"Profiler";case gf:return"StrictMode";case Gc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ov:return(e.displayName||"Context")+".Consumer";case rv:return(e._context.displayName||"Context")+".Provider";case vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yf:return t=e.displayName||null,t!==null?t:qc(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return qc(e(t))}catch{}}return null}function Fx(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 qc(t);case 8:return t===gf?"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 Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lx(e){var t=sv(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(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){e._valueTracker||(e._valueTracker=Lx(e))}function lv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(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 Yc(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ah(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sr(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 av(e,t){t=t.checked,t!=null&&mf(e,"checked",t,!1)}function Xc(e,t){av(e,t);var n=Sr(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")?Qc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qc(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uh(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 Qc(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zi=Array.isArray;function Fo(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=""+Sr(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 Zc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return Ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ch(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(z(92));if(zi(n)){if(1<n.length)throw Error(z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sr(n)}}function uv(e,t){var n=Sr(t.value),r=Sr(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 dh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cv(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 Jc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qs,dv=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(qs=qs||document.createElement("div"),qs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ls(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ui={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},Nx=["Webkit","ms","Moz","O"];Object.keys(Ui).forEach(function(e){Nx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ui[t]=Ui[e]})});function fv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ui.hasOwnProperty(e)&&Ui[e]?(""+t).trim():t+"px"}function pv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=fv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var zx=Ve({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 ed(e,t){if(t){if(zx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function td(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 nd=null;function xf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rd=null,Lo=null,No=null;function fh(e){if(e=Is(e)){if(typeof rd!="function")throw Error(z(280));var t=e.stateNode;t&&(t=La(t),rd(e.stateNode,e.type,t))}}function hv(e){Lo?No?No.push(e):No=[e]:Lo=e}function mv(){if(Lo){var e=Lo,t=No;if(No=Lo=null,fh(e),t)for(e=0;e<t.length;e++)fh(t[e])}}function gv(e,t){return e(t)}function vv(){}var Ju=!1;function yv(e,t,n){if(Ju)return e(t,n);Ju=!0;try{return gv(e,t,n)}finally{Ju=!1,(Lo!==null||No!==null)&&(vv(),mv())}}function as(e,t){var n=e.stateNode;if(n===null)return null;var r=La(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(z(231,t,typeof n));return n}var od=!1;if(Kn)try{var vi={};Object.defineProperty(vi,"passive",{get:function(){od=!0}}),window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{od=!1}function Dx(e,t,n,r,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Gi=!1,Yl=null,Xl=!1,id=null,jx={onError:function(e){Gi=!0,Yl=e}};function Bx(e,t,n,r,o,i,s,l,a){Gi=!1,Yl=null,Dx.apply(jx,arguments)}function Vx(e,t,n,r,o,i,s,l,a){if(Bx.apply(this,arguments),Gi){if(Gi){var u=Yl;Gi=!1,Yl=null}else throw Error(z(198));Xl||(Xl=!0,id=u)}}function to(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 xv(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 ph(e){if(to(e)!==e)throw Error(z(188))}function Hx(e){var t=e.alternate;if(!t){if(t=to(e),t===null)throw Error(z(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 ph(o),e;if(i===r)return ph(o),t;i=i.sibling}throw Error(z(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(z(189))}}if(n.alternate!==r)throw Error(z(190))}if(n.tag!==3)throw Error(z(188));return n.stateNode.current===n?e:t}function Sv(e){return e=Hx(e),e!==null?bv(e):null}function bv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bv(e);if(t!==null)return t;e=e.sibling}return null}var wv=Ht.unstable_scheduleCallback,hh=Ht.unstable_cancelCallback,Wx=Ht.unstable_shouldYield,Ux=Ht.unstable_requestPaint,Ye=Ht.unstable_now,Gx=Ht.unstable_getCurrentPriorityLevel,Sf=Ht.unstable_ImmediatePriority,Cv=Ht.unstable_UserBlockingPriority,Ql=Ht.unstable_NormalPriority,Kx=Ht.unstable_LowPriority,kv=Ht.unstable_IdlePriority,Oa=null,On=null;function qx(e){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(Oa,e,void 0,(e.current.flags&128)===128)}catch{}}var Sn=Math.clz32?Math.clz32:Qx,Yx=Math.log,Xx=Math.LN2;function Qx(e){return e>>>=0,e===0?32:31-(Yx(e)/Xx|0)|0}var Ys=64,Xs=4194304;function Di(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 Zl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Di(l):(i&=s,i!==0&&(r=Di(i)))}else s=n&~o,s!==0?r=Di(s):i!==0&&(r=Di(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-Sn(t),o=1<<n,r|=e[n],t&=~o;return r}function Zx(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 Jx(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Sn(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=Zx(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function sd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rv(){var e=Ys;return Ys<<=1,!(Ys&4194240)&&(Ys=64),e}function ec(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ms(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Sn(t),e[t]=n}function eS(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-Sn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function bf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Te=0;function $v(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ev,wf,Pv,_v,Tv,ld=!1,Qs=[],dr=null,fr=null,pr=null,us=new Map,cs=new Map,ir=[],tS="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 mh(e,t){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":us.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cs.delete(t.pointerId)}}function yi(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=Is(t),t!==null&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function nS(e,t,n,r,o){switch(t){case"focusin":return dr=yi(dr,e,t,n,r,o),!0;case"dragenter":return fr=yi(fr,e,t,n,r,o),!0;case"mouseover":return pr=yi(pr,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return us.set(i,yi(us.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,cs.set(i,yi(cs.get(i)||null,e,t,n,r,o)),!0}return!1}function Mv(e){var t=zr(e.target);if(t!==null){var n=to(t);if(n!==null){if(t=n.tag,t===13){if(t=xv(n),t!==null){e.blockedOn=t,Tv(e.priority,function(){Pv(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 $l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ad(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nd=r,n.target.dispatchEvent(r),nd=null}else return t=Is(n),t!==null&&wf(t),e.blockedOn=n,!1;t.shift()}return!0}function gh(e,t,n){$l(e)&&n.delete(t)}function rS(){ld=!1,dr!==null&&$l(dr)&&(dr=null),fr!==null&&$l(fr)&&(fr=null),pr!==null&&$l(pr)&&(pr=null),us.forEach(gh),cs.forEach(gh)}function xi(e,t){e.blockedOn===t&&(e.blockedOn=null,ld||(ld=!0,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,rS)))}function ds(e){function t(o){return xi(o,e)}if(0<Qs.length){xi(Qs[0],e);for(var n=1;n<Qs.length;n++){var r=Qs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(dr!==null&&xi(dr,e),fr!==null&&xi(fr,e),pr!==null&&xi(pr,e),us.forEach(t),cs.forEach(t),n=0;n<ir.length;n++)r=ir[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ir.length&&(n=ir[0],n.blockedOn===null);)Mv(n),n.blockedOn===null&&ir.shift()}var zo=Zn.ReactCurrentBatchConfig,Jl=!0;function oS(e,t,n,r){var o=Te,i=zo.transition;zo.transition=null;try{Te=1,Cf(e,t,n,r)}finally{Te=o,zo.transition=i}}function iS(e,t,n,r){var o=Te,i=zo.transition;zo.transition=null;try{Te=4,Cf(e,t,n,r)}finally{Te=o,zo.transition=i}}function Cf(e,t,n,r){if(Jl){var o=ad(e,t,n,r);if(o===null)cc(e,t,r,ea,n),mh(e,r);else if(nS(o,e,t,n,r))r.stopPropagation();else if(mh(e,r),t&4&&-1<tS.indexOf(e)){for(;o!==null;){var i=Is(o);if(i!==null&&Ev(i),i=ad(e,t,n,r),i===null&&cc(e,t,r,ea,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else cc(e,t,r,null,n)}}var ea=null;function ad(e,t,n,r){if(ea=null,e=xf(r),e=zr(e),e!==null)if(t=to(e),t===null)e=null;else if(n=t.tag,n===13){if(e=xv(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 ea=e,null}function Ov(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(Gx()){case Sf:return 1;case Cv:return 4;case Ql:case Kx:return 16;case kv:return 536870912;default:return 16}default:return 16}}var lr=null,kf=null,El=null;function Iv(){if(El)return El;var e,t=kf,n=t.length,r,o="value"in lr?lr.value:lr.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return El=o.slice(e,1<r?1-r:void 0)}function Pl(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 Zs(){return!0}function vh(){return!1}function Gt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,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)?Zs:vh,this.isPropagationStopped=vh,this}return Ve(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=Zs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zs)},persist:function(){},isPersistent:Zs}),t}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rf=Gt(ii),Os=Ve({},ii,{view:0,detail:0}),sS=Gt(Os),tc,nc,Si,Ia=Ve({},Os,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$f,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!==Si&&(Si&&e.type==="mousemove"?(tc=e.screenX-Si.screenX,nc=e.screenY-Si.screenY):nc=tc=0,Si=e),tc)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),yh=Gt(Ia),lS=Ve({},Ia,{dataTransfer:0}),aS=Gt(lS),uS=Ve({},Os,{relatedTarget:0}),rc=Gt(uS),cS=Ve({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),dS=Gt(cS),fS=Ve({},ii,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pS=Gt(fS),hS=Ve({},ii,{data:0}),xh=Gt(hS),mS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gS={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"},vS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vS[e])?!!t[e]:!1}function $f(){return yS}var xS=Ve({},Os,{key:function(e){if(e.key){var t=mS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$f,charCode:function(e){return e.type==="keypress"?Pl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),SS=Gt(xS),bS=Ve({},Ia,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sh=Gt(bS),wS=Ve({},Os,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$f}),CS=Gt(wS),kS=Ve({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),RS=Gt(kS),$S=Ve({},Ia,{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}),ES=Gt($S),PS=[9,13,27,32],Ef=Kn&&"CompositionEvent"in window,Ki=null;Kn&&"documentMode"in document&&(Ki=document.documentMode);var _S=Kn&&"TextEvent"in window&&!Ki,Av=Kn&&(!Ef||Ki&&8<Ki&&11>=Ki),bh=String.fromCharCode(32),wh=!1;function Fv(e,t){switch(e){case"keyup":return PS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ro=!1;function TS(e,t){switch(e){case"compositionend":return Lv(t);case"keypress":return t.which!==32?null:(wh=!0,bh);case"textInput":return e=t.data,e===bh&&wh?null:e;default:return null}}function MS(e,t){if(Ro)return e==="compositionend"||!Ef&&Fv(e,t)?(e=Iv(),El=kf=lr=null,Ro=!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 Av&&t.locale!=="ko"?null:t.data;default:return null}}var OS={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 Ch(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OS[e.type]:t==="textarea"}function Nv(e,t,n,r){hv(r),t=ta(t,"onChange"),0<t.length&&(n=new Rf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qi=null,fs=null;function IS(e){qv(e,0)}function Aa(e){var t=Po(e);if(lv(t))return e}function AS(e,t){if(e==="change")return t}var zv=!1;if(Kn){var oc;if(Kn){var ic="oninput"in document;if(!ic){var kh=document.createElement("div");kh.setAttribute("oninput","return;"),ic=typeof kh.oninput=="function"}oc=ic}else oc=!1;zv=oc&&(!document.documentMode||9<document.documentMode)}function Rh(){qi&&(qi.detachEvent("onpropertychange",Dv),fs=qi=null)}function Dv(e){if(e.propertyName==="value"&&Aa(fs)){var t=[];Nv(t,fs,e,xf(e)),yv(IS,t)}}function FS(e,t,n){e==="focusin"?(Rh(),qi=t,fs=n,qi.attachEvent("onpropertychange",Dv)):e==="focusout"&&Rh()}function LS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Aa(fs)}function NS(e,t){if(e==="click")return Aa(t)}function zS(e,t){if(e==="input"||e==="change")return Aa(t)}function DS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cn=typeof Object.is=="function"?Object.is:DS;function ps(e,t){if(Cn(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(!Wc.call(t,o)||!Cn(e[o],t[o]))return!1}return!0}function $h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Eh(e,t){var n=$h(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=$h(n)}}function jv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bv(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function Pf(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 jS(e){var t=Bv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jv(n.ownerDocument.documentElement,n)){if(r!==null&&Pf(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=Eh(n,i);var s=Eh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 BS=Kn&&"documentMode"in document&&11>=document.documentMode,$o=null,ud=null,Yi=null,cd=!1;function Ph(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cd||$o==null||$o!==ql(r)||(r=$o,"selectionStart"in r&&Pf(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}),Yi&&ps(Yi,r)||(Yi=r,r=ta(ud,"onSelect"),0<r.length&&(t=new Rf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$o)))}function Js(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Eo={animationend:Js("Animation","AnimationEnd"),animationiteration:Js("Animation","AnimationIteration"),animationstart:Js("Animation","AnimationStart"),transitionend:Js("Transition","TransitionEnd")},sc={},Vv={};Kn&&(Vv=document.createElement("div").style,"AnimationEvent"in window||(delete Eo.animationend.animation,delete Eo.animationiteration.animation,delete Eo.animationstart.animation),"TransitionEvent"in window||delete Eo.transitionend.transition);function Fa(e){if(sc[e])return sc[e];if(!Eo[e])return e;var t=Eo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vv)return sc[e]=t[n];return e}var Hv=Fa("animationend"),Wv=Fa("animationiteration"),Uv=Fa("animationstart"),Gv=Fa("transitionend"),Kv=new Map,_h="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 Rr(e,t){Kv.set(e,t),eo(t,[e])}for(var lc=0;lc<_h.length;lc++){var ac=_h[lc],VS=ac.toLowerCase(),HS=ac[0].toUpperCase()+ac.slice(1);Rr(VS,"on"+HS)}Rr(Hv,"onAnimationEnd");Rr(Wv,"onAnimationIteration");Rr(Uv,"onAnimationStart");Rr("dblclick","onDoubleClick");Rr("focusin","onFocus");Rr("focusout","onBlur");Rr(Gv,"onTransitionEnd");Ho("onMouseEnter",["mouseout","mouseover"]);Ho("onMouseLeave",["mouseout","mouseover"]);Ho("onPointerEnter",["pointerout","pointerover"]);Ho("onPointerLeave",["pointerout","pointerover"]);eo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));eo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));eo("onBeforeInput",["compositionend","keypress","textInput","paste"]);eo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));eo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));eo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="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(" "),WS=new Set("cancel close invalid load scroll toggle".split(" ").concat(ji));function Th(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Vx(r,t,void 0,e),e.currentTarget=null}function qv(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 s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;Th(o,l,u),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;Th(o,l,u),i=a}}}if(Xl)throw e=id,Xl=!1,id=null,e}function Fe(e,t){var n=t[md];n===void 0&&(n=t[md]=new Set);var r=e+"__bubble";n.has(r)||(Yv(t,e,2,!1),n.add(r))}function uc(e,t,n){var r=0;t&&(r|=4),Yv(n,e,r,t)}var el="_reactListening"+Math.random().toString(36).slice(2);function hs(e){if(!e[el]){e[el]=!0,nv.forEach(function(n){n!=="selectionchange"&&(WS.has(n)||uc(n,!1,e),uc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[el]||(t[el]=!0,uc("selectionchange",!1,t))}}function Yv(e,t,n,r){switch(Ov(t)){case 1:var o=oS;break;case 4:o=iS;break;default:o=Cf}n=o.bind(null,t,n,e),o=void 0,!od||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 cc(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=zr(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}yv(function(){var u=i,c=xf(n),d=[];e:{var f=Kv.get(e);if(f!==void 0){var m=Rf,y=e;switch(e){case"keypress":if(Pl(n)===0)break e;case"keydown":case"keyup":m=SS;break;case"focusin":y="focus",m=rc;break;case"focusout":y="blur",m=rc;break;case"beforeblur":case"afterblur":m=rc;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=yh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=aS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=CS;break;case Hv:case Wv:case Uv:m=dS;break;case Gv:m=RS;break;case"scroll":m=sS;break;case"wheel":m=ES;break;case"copy":case"cut":case"paste":m=pS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Sh}var v=(t&4)!==0,k=!v&&e==="scroll",g=v?f!==null?f+"Capture":null:f;v=[];for(var p=u,h;p!==null;){h=p;var x=h.stateNode;if(h.tag===5&&x!==null&&(h=x,g!==null&&(x=as(p,g),x!=null&&v.push(ms(p,x,h)))),k)break;p=p.return}0<v.length&&(f=new m(f,y,null,n,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==nd&&(y=n.relatedTarget||n.fromElement)&&(zr(y)||y[qn]))break e;if((m||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=u,y=y?zr(y):null,y!==null&&(k=to(y),y!==k||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=u),m!==y)){if(v=yh,x="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=Sh,x="onPointerLeave",g="onPointerEnter",p="pointer"),k=m==null?f:Po(m),h=y==null?f:Po(y),f=new v(x,p+"leave",m,n,c),f.target=k,f.relatedTarget=h,x=null,zr(c)===u&&(v=new v(g,p+"enter",y,n,c),v.target=h,v.relatedTarget=k,x=v),k=x,m&&y)t:{for(v=m,g=y,p=0,h=v;h;h=ho(h))p++;for(h=0,x=g;x;x=ho(x))h++;for(;0<p-h;)v=ho(v),p--;for(;0<h-p;)g=ho(g),h--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=ho(v),g=ho(g)}v=null}else v=null;m!==null&&Mh(d,f,m,v,!1),y!==null&&k!==null&&Mh(d,k,y,v,!0)}}e:{if(f=u?Po(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var C=AS;else if(Ch(f))if(zv)C=zS;else{C=LS;var R=FS}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=NS);if(C&&(C=C(e,u))){Nv(d,C,n,c);break e}R&&R(e,f,u),e==="focusout"&&(R=f._wrapperState)&&R.controlled&&f.type==="number"&&Qc(f,"number",f.value)}switch(R=u?Po(u):window,e){case"focusin":(Ch(R)||R.contentEditable==="true")&&($o=R,ud=u,Yi=null);break;case"focusout":Yi=ud=$o=null;break;case"mousedown":cd=!0;break;case"contextmenu":case"mouseup":case"dragend":cd=!1,Ph(d,n,c);break;case"selectionchange":if(BS)break;case"keydown":case"keyup":Ph(d,n,c)}var $;if(Ef)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Ro?Fv(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Av&&n.locale!=="ko"&&(Ro||E!=="onCompositionStart"?E==="onCompositionEnd"&&Ro&&($=Iv()):(lr=c,kf="value"in lr?lr.value:lr.textContent,Ro=!0)),R=ta(u,E),0<R.length&&(E=new xh(E,e,null,n,c),d.push({event:E,listeners:R}),$?E.data=$:($=Lv(n),$!==null&&(E.data=$)))),($=_S?TS(e,n):MS(e,n))&&(u=ta(u,"onBeforeInput"),0<u.length&&(c=new xh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=$))}qv(d,t)})}function ms(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ta(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=as(e,n),i!=null&&r.unshift(ms(e,i,o)),i=as(e,t),i!=null&&r.push(ms(e,i,o))),e=e.return}return r}function ho(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mh(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=as(n,i),a!=null&&s.unshift(ms(n,a,l))):o||(a=as(n,i),a!=null&&s.push(ms(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var US=/\r\n?/g,GS=/\u0000|\uFFFD/g;function Oh(e){return(typeof e=="string"?e:""+e).replace(US,`
38
- `).replace(GS,"")}function tl(e,t,n){if(t=Oh(t),Oh(e)!==t&&n)throw Error(z(425))}function na(){}var dd=null,fd=null;function pd(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 hd=typeof setTimeout=="function"?setTimeout:void 0,KS=typeof clearTimeout=="function"?clearTimeout:void 0,Ih=typeof Promise=="function"?Promise:void 0,qS=typeof queueMicrotask=="function"?queueMicrotask:typeof Ih<"u"?function(e){return Ih.resolve(null).then(e).catch(YS)}:hd;function YS(e){setTimeout(function(){throw e})}function dc(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),ds(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ds(t)}function hr(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 Ah(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 si=Math.random().toString(36).slice(2),Tn="__reactFiber$"+si,gs="__reactProps$"+si,qn="__reactContainer$"+si,md="__reactEvents$"+si,XS="__reactListeners$"+si,QS="__reactHandles$"+si;function zr(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qn]||n[Tn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ah(e);e!==null;){if(n=e[Tn])return n;e=Ah(e)}return t}e=n,n=e.parentNode}return null}function Is(e){return e=e[Tn]||e[qn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Po(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function La(e){return e[gs]||null}var gd=[],_o=-1;function $r(e){return{current:e}}function Le(e){0>_o||(e.current=gd[_o],gd[_o]=null,_o--)}function Ae(e,t){_o++,gd[_o]=e.current,e.current=t}var br={},xt=$r(br),Pt=$r(!1),Ur=br;function Wo(e,t){var n=e.type.contextTypes;if(!n)return br;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 _t(e){return e=e.childContextTypes,e!=null}function ra(){Le(Pt),Le(xt)}function Fh(e,t,n){if(xt.current!==br)throw Error(z(168));Ae(xt,t),Ae(Pt,n)}function Xv(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(z(108,Fx(e)||"Unknown",o));return Ve({},n,r)}function oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Ur=xt.current,Ae(xt,e),Ae(Pt,Pt.current),!0}function Lh(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Xv(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,Le(Pt),Le(xt),Ae(xt,e)):Le(Pt),Ae(Pt,n)}var Hn=null,Na=!1,fc=!1;function Qv(e){Hn===null?Hn=[e]:Hn.push(e)}function ZS(e){Na=!0,Qv(e)}function Er(){if(!fc&&Hn!==null){fc=!0;var e=0,t=Te;try{var n=Hn;for(Te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Hn=null,Na=!1}catch(o){throw Hn!==null&&(Hn=Hn.slice(e+1)),wv(Sf,Er),o}finally{Te=t,fc=!1}}return null}var To=[],Mo=0,ia=null,sa=0,Yt=[],Xt=0,Gr=null,Wn=1,Un="";function Ir(e,t){To[Mo++]=sa,To[Mo++]=ia,ia=e,sa=t}function Zv(e,t,n){Yt[Xt++]=Wn,Yt[Xt++]=Un,Yt[Xt++]=Gr,Gr=e;var r=Wn;e=Un;var o=32-Sn(r)-1;r&=~(1<<o),n+=1;var i=32-Sn(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Wn=1<<32-Sn(t)+o|n<<o|r,Un=i+e}else Wn=1<<i|n<<o|r,Un=e}function _f(e){e.return!==null&&(Ir(e,1),Zv(e,1,0))}function Tf(e){for(;e===ia;)ia=To[--Mo],To[Mo]=null,sa=To[--Mo],To[Mo]=null;for(;e===Gr;)Gr=Yt[--Xt],Yt[Xt]=null,Un=Yt[--Xt],Yt[Xt]=null,Wn=Yt[--Xt],Yt[Xt]=null}var Bt=null,jt=null,ze=!1,gn=null;function Jv(e,t){var n=Zt(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 Nh(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,Bt=e,jt=hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Bt=e,jt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gr!==null?{id:Wn,overflow:Un}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Zt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Bt=e,jt=null,!0):!1;default:return!1}}function vd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yd(e){if(ze){var t=jt;if(t){var n=t;if(!Nh(e,t)){if(vd(e))throw Error(z(418));t=hr(n.nextSibling);var r=Bt;t&&Nh(e,t)?Jv(r,n):(e.flags=e.flags&-4097|2,ze=!1,Bt=e)}}else{if(vd(e))throw Error(z(418));e.flags=e.flags&-4097|2,ze=!1,Bt=e}}}function zh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Bt=e}function nl(e){if(e!==Bt)return!1;if(!ze)return zh(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pd(e.type,e.memoizedProps)),t&&(t=jt)){if(vd(e))throw e0(),Error(z(418));for(;t;)Jv(e,t),t=hr(t.nextSibling)}if(zh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){jt=hr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}jt=null}}else jt=Bt?hr(e.stateNode.nextSibling):null;return!0}function e0(){for(var e=jt;e;)e=hr(e.nextSibling)}function Uo(){jt=Bt=null,ze=!1}function Mf(e){gn===null?gn=[e]:gn.push(e)}var JS=Zn.ReactCurrentBatchConfig;function fn(e,t){if(e&&e.defaultProps){t=Ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var la=$r(null),aa=null,Oo=null,Of=null;function If(){Of=Oo=aa=null}function Af(e){var t=la.current;Le(la),e._currentValue=t}function xd(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 Do(e,t){aa=e,Of=Oo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Et=!0),e.firstContext=null)}function tn(e){var t=e._currentValue;if(Of!==e)if(e={context:e,memoizedValue:t,next:null},Oo===null){if(aa===null)throw Error(z(308));Oo=e,aa.dependencies={lanes:0,firstContext:e}}else Oo=Oo.next=e;return t}var Dr=null;function Ff(e){Dr===null?Dr=[e]:Dr.push(e)}function t0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ff(t)):(n.next=o.next,o.next=n),t.interleaved=n,Yn(e,r)}function Yn(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 or=!1;function Lf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function n0(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 Gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Re&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Yn(e,n)}return o=r.interleaved,o===null?(t.next=t,Ff(r)):(t.next=o.next,o.next=t),r.interleaved=t,Yn(e,n)}function _l(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,bf(e,n)}}function Dh(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,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 ua(e,t,n,r){var o=e.updateQueue;or=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var d=o.baseState;s=0,c=u=a=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 y=e,v=l;switch(f=t,m=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(m,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,f=typeof y=="function"?y.call(m,d,f):y,f==null)break e;d=Ve({},d,f);break e;case 2:or=!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,a=d):c=c.next=m,s|=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&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);qr|=s,e.lanes=s,e.memoizedState=d}}function jh(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(z(191,o));o.call(r)}}}var r0=new tv.Component().refs;function Sd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var za={isMounted:function(e){return(e=e._reactInternals)?to(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ct(),o=vr(e),i=Gn(r,o);i.payload=t,n!=null&&(i.callback=n),t=mr(e,i,o),t!==null&&(bn(t,e,o,r),_l(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ct(),o=vr(e),i=Gn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=mr(e,i,o),t!==null&&(bn(t,e,o,r),_l(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ct(),r=vr(e),o=Gn(n,r);o.tag=2,t!=null&&(o.callback=t),t=mr(e,o,r),t!==null&&(bn(t,e,r,n),_l(t,e,r))}};function Bh(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!ps(n,r)||!ps(o,i):!0}function o0(e,t,n){var r=!1,o=br,i=t.contextType;return typeof i=="object"&&i!==null?i=tn(i):(o=_t(t)?Ur:xt.current,r=t.contextTypes,i=(r=r!=null)?Wo(e,o):br),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=za,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vh(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&&za.enqueueReplaceState(t,t.state,null)}function bd(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=r0,Lf(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=tn(i):(i=_t(t)?Ur:xt.current,o.context=Wo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Sd(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&&za.enqueueReplaceState(o,o.state,null),ua(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function bi(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(z(309));var r=n.stateNode}if(!r)throw Error(z(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(s){var l=o.refs;l===r0&&(l=o.refs={}),s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(z(284));if(!n._owner)throw Error(z(290,e))}return e}function rl(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hh(e){var t=e._init;return t(e._payload)}function i0(e){function t(g,p){if(e){var h=g.deletions;h===null?(g.deletions=[p],g.flags|=16):h.push(p)}}function n(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function r(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function o(g,p){return g=yr(g,p),g.index=0,g.sibling=null,g}function i(g,p,h){return g.index=h,e?(h=g.alternate,h!==null?(h=h.index,h<p?(g.flags|=2,p):h):(g.flags|=2,p)):(g.flags|=1048576,p)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,p,h,x){return p===null||p.tag!==6?(p=xc(h,g.mode,x),p.return=g,p):(p=o(p,h),p.return=g,p)}function a(g,p,h,x){var C=h.type;return C===ko?c(g,p,h.props.children,x,h.key):p!==null&&(p.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rr&&Hh(C)===p.type)?(x=o(p,h.props),x.ref=bi(g,p,h),x.return=g,x):(x=Fl(h.type,h.key,h.props,null,g.mode,x),x.ref=bi(g,p,h),x.return=g,x)}function u(g,p,h,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==h.containerInfo||p.stateNode.implementation!==h.implementation?(p=Sc(h,g.mode,x),p.return=g,p):(p=o(p,h.children||[]),p.return=g,p)}function c(g,p,h,x,C){return p===null||p.tag!==7?(p=Hr(h,g.mode,x,C),p.return=g,p):(p=o(p,h),p.return=g,p)}function d(g,p,h){if(typeof p=="string"&&p!==""||typeof p=="number")return p=xc(""+p,g.mode,h),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Gs:return h=Fl(p.type,p.key,p.props,null,g.mode,h),h.ref=bi(g,null,p),h.return=g,h;case Co:return p=Sc(p,g.mode,h),p.return=g,p;case rr:var x=p._init;return d(g,x(p._payload),h)}if(zi(p)||gi(p))return p=Hr(p,g.mode,h,null),p.return=g,p;rl(g,p)}return null}function f(g,p,h,x){var C=p!==null?p.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return C!==null?null:l(g,p,""+h,x);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Gs:return h.key===C?a(g,p,h,x):null;case Co:return h.key===C?u(g,p,h,x):null;case rr:return C=h._init,f(g,p,C(h._payload),x)}if(zi(h)||gi(h))return C!==null?null:c(g,p,h,x,null);rl(g,h)}return null}function m(g,p,h,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(h)||null,l(p,g,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Gs:return g=g.get(x.key===null?h:x.key)||null,a(p,g,x,C);case Co:return g=g.get(x.key===null?h:x.key)||null,u(p,g,x,C);case rr:var R=x._init;return m(g,p,h,R(x._payload),C)}if(zi(x)||gi(x))return g=g.get(h)||null,c(p,g,x,C,null);rl(p,x)}return null}function y(g,p,h,x){for(var C=null,R=null,$=p,E=p=0,M=null;$!==null&&E<h.length;E++){$.index>E?(M=$,$=null):M=$.sibling;var P=f(g,$,h[E],x);if(P===null){$===null&&($=M);break}e&&$&&P.alternate===null&&t(g,$),p=i(P,p,E),R===null?C=P:R.sibling=P,R=P,$=M}if(E===h.length)return n(g,$),ze&&Ir(g,E),C;if($===null){for(;E<h.length;E++)$=d(g,h[E],x),$!==null&&(p=i($,p,E),R===null?C=$:R.sibling=$,R=$);return ze&&Ir(g,E),C}for($=r(g,$);E<h.length;E++)M=m($,g,E,h[E],x),M!==null&&(e&&M.alternate!==null&&$.delete(M.key===null?E:M.key),p=i(M,p,E),R===null?C=M:R.sibling=M,R=M);return e&&$.forEach(function(I){return t(g,I)}),ze&&Ir(g,E),C}function v(g,p,h,x){var C=gi(h);if(typeof C!="function")throw Error(z(150));if(h=C.call(h),h==null)throw Error(z(151));for(var R=C=null,$=p,E=p=0,M=null,P=h.next();$!==null&&!P.done;E++,P=h.next()){$.index>E?(M=$,$=null):M=$.sibling;var I=f(g,$,P.value,x);if(I===null){$===null&&($=M);break}e&&$&&I.alternate===null&&t(g,$),p=i(I,p,E),R===null?C=I:R.sibling=I,R=I,$=M}if(P.done)return n(g,$),ze&&Ir(g,E),C;if($===null){for(;!P.done;E++,P=h.next())P=d(g,P.value,x),P!==null&&(p=i(P,p,E),R===null?C=P:R.sibling=P,R=P);return ze&&Ir(g,E),C}for($=r(g,$);!P.done;E++,P=h.next())P=m($,g,E,P.value,x),P!==null&&(e&&P.alternate!==null&&$.delete(P.key===null?E:P.key),p=i(P,p,E),R===null?C=P:R.sibling=P,R=P);return e&&$.forEach(function(j){return t(g,j)}),ze&&Ir(g,E),C}function k(g,p,h,x){if(typeof h=="object"&&h!==null&&h.type===ko&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Gs:e:{for(var C=h.key,R=p;R!==null;){if(R.key===C){if(C=h.type,C===ko){if(R.tag===7){n(g,R.sibling),p=o(R,h.props.children),p.return=g,g=p;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rr&&Hh(C)===R.type){n(g,R.sibling),p=o(R,h.props),p.ref=bi(g,R,h),p.return=g,g=p;break e}n(g,R);break}else t(g,R);R=R.sibling}h.type===ko?(p=Hr(h.props.children,g.mode,x,h.key),p.return=g,g=p):(x=Fl(h.type,h.key,h.props,null,g.mode,x),x.ref=bi(g,p,h),x.return=g,g=x)}return s(g);case Co:e:{for(R=h.key;p!==null;){if(p.key===R)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(g,p.sibling),p=o(p,h.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=Sc(h,g.mode,x),p.return=g,g=p}return s(g);case rr:return R=h._init,k(g,p,R(h._payload),x)}if(zi(h))return y(g,p,h,x);if(gi(h))return v(g,p,h,x);rl(g,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,h),p.return=g,g=p):(n(g,p),p=xc(h,g.mode,x),p.return=g,g=p),s(g)):n(g,p)}return k}var Go=i0(!0),s0=i0(!1),As={},In=$r(As),vs=$r(As),ys=$r(As);function jr(e){if(e===As)throw Error(z(174));return e}function Nf(e,t){switch(Ae(ys,t),Ae(vs,e),Ae(In,As),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jc(t,e)}Le(In),Ae(In,t)}function Ko(){Le(In),Le(vs),Le(ys)}function l0(e){jr(ys.current);var t=jr(In.current),n=Jc(t,e.type);t!==n&&(Ae(vs,e),Ae(In,n))}function zf(e){vs.current===e&&(Le(In),Le(vs))}var je=$r(0);function ca(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 pc=[];function Df(){for(var e=0;e<pc.length;e++)pc[e]._workInProgressVersionPrimary=null;pc.length=0}var Tl=Zn.ReactCurrentDispatcher,hc=Zn.ReactCurrentBatchConfig,Kr=0,Be=null,rt=null,st=null,da=!1,Xi=!1,xs=0,eb=0;function mt(){throw Error(z(321))}function jf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cn(e[n],t[n]))return!1;return!0}function Bf(e,t,n,r,o,i){if(Kr=i,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Tl.current=e===null||e.memoizedState===null?ob:ib,e=n(r,o),Xi){i=0;do{if(Xi=!1,xs=0,25<=i)throw Error(z(301));i+=1,st=rt=null,t.updateQueue=null,Tl.current=sb,e=n(r,o)}while(Xi)}if(Tl.current=fa,t=rt!==null&&rt.next!==null,Kr=0,st=rt=Be=null,da=!1,t)throw Error(z(300));return e}function Vf(){var e=xs!==0;return xs=0,e}function $n(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Be.memoizedState=st=e:st=st.next=e,st}function nn(){if(rt===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=st===null?Be.memoizedState:st.next;if(t!==null)st=t,rt=e;else{if(e===null)throw Error(z(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},st===null?Be.memoizedState=st=e:st=st.next=e}return st}function Ss(e,t){return typeof t=="function"?t(e):t}function mc(e){var t=nn(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=rt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,u=i;do{var c=u.lane;if((Kr&c)===c)a!==null&&(a=a.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};a===null?(l=a=d,s=r):a=a.next=d,Be.lanes|=c,qr|=c}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=l,Cn(r,t.memoizedState)||(Et=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Be.lanes|=i,qr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gc(e){var t=nn(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Cn(i,t.memoizedState)||(Et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function a0(){}function u0(e,t){var n=Be,r=nn(),o=t(),i=!Cn(r.memoizedState,o);if(i&&(r.memoizedState=o,Et=!0),r=r.queue,Hf(f0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||st!==null&&st.memoizedState.tag&1){if(n.flags|=2048,bs(9,d0.bind(null,n,r,o,t),void 0,null),lt===null)throw Error(z(349));Kr&30||c0(n,t,o)}return o}function c0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function d0(e,t,n,r){t.value=n,t.getSnapshot=r,p0(t)&&h0(e)}function f0(e,t,n){return n(function(){p0(t)&&h0(e)})}function p0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cn(e,n)}catch{return!0}}function h0(e){var t=Yn(e,1);t!==null&&bn(t,e,1,-1)}function Wh(e){var t=$n();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ss,lastRenderedState:e},t.queue=e,e=e.dispatch=rb.bind(null,Be,e),[t.memoizedState,e]}function bs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.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 m0(){return nn().memoizedState}function Ml(e,t,n,r){var o=$n();Be.flags|=e,o.memoizedState=bs(1|t,n,void 0,r===void 0?null:r)}function Da(e,t,n,r){var o=nn();r=r===void 0?null:r;var i=void 0;if(rt!==null){var s=rt.memoizedState;if(i=s.destroy,r!==null&&jf(r,s.deps)){o.memoizedState=bs(t,n,i,r);return}}Be.flags|=e,o.memoizedState=bs(1|t,n,i,r)}function Uh(e,t){return Ml(8390656,8,e,t)}function Hf(e,t){return Da(2048,8,e,t)}function g0(e,t){return Da(4,2,e,t)}function v0(e,t){return Da(4,4,e,t)}function y0(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 x0(e,t,n){return n=n!=null?n.concat([e]):null,Da(4,4,y0.bind(null,t,e),n)}function Wf(){}function S0(e,t){var n=nn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function b0(e,t){var n=nn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function w0(e,t,n){return Kr&21?(Cn(n,t)||(n=Rv(),Be.lanes|=n,qr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Et=!0),e.memoizedState=n)}function tb(e,t){var n=Te;Te=n!==0&&4>n?n:4,e(!0);var r=hc.transition;hc.transition={};try{e(!1),t()}finally{Te=n,hc.transition=r}}function C0(){return nn().memoizedState}function nb(e,t,n){var r=vr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},k0(e))R0(t,n);else if(n=t0(e,t,n,r),n!==null){var o=Ct();bn(n,e,r,o),$0(n,t,r)}}function rb(e,t,n){var r=vr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(k0(e))R0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Cn(l,s)){var a=t.interleaved;a===null?(o.next=o,Ff(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=t0(e,t,o,r),n!==null&&(o=Ct(),bn(n,e,r,o),$0(n,t,r))}}function k0(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function R0(e,t){Xi=da=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bf(e,n)}}var fa={readContext:tn,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},ob={readContext:tn,useCallback:function(e,t){return $n().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:Uh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,y0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=$n();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$n();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=nb.bind(null,Be,e),[r.memoizedState,e]},useRef:function(e){var t=$n();return e={current:e},t.memoizedState=e},useState:Wh,useDebugValue:Wf,useDeferredValue:function(e){return $n().memoizedState=e},useTransition:function(){var e=Wh(!1),t=e[0];return e=tb.bind(null,e[1]),$n().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Be,o=$n();if(ze){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),lt===null)throw Error(z(349));Kr&30||c0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Uh(f0.bind(null,r,i,e),[e]),r.flags|=2048,bs(9,d0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$n(),t=lt.identifierPrefix;if(ze){var n=Un,r=Wn;n=(r&~(1<<32-Sn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=eb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ib={readContext:tn,useCallback:S0,useContext:tn,useEffect:Hf,useImperativeHandle:x0,useInsertionEffect:g0,useLayoutEffect:v0,useMemo:b0,useReducer:mc,useRef:m0,useState:function(){return mc(Ss)},useDebugValue:Wf,useDeferredValue:function(e){var t=nn();return w0(t,rt.memoizedState,e)},useTransition:function(){var e=mc(Ss)[0],t=nn().memoizedState;return[e,t]},useMutableSource:a0,useSyncExternalStore:u0,useId:C0,unstable_isNewReconciler:!1},sb={readContext:tn,useCallback:S0,useContext:tn,useEffect:Hf,useImperativeHandle:x0,useInsertionEffect:g0,useLayoutEffect:v0,useMemo:b0,useReducer:gc,useRef:m0,useState:function(){return gc(Ss)},useDebugValue:Wf,useDeferredValue:function(e){var t=nn();return rt===null?t.memoizedState=e:w0(t,rt.memoizedState,e)},useTransition:function(){var e=gc(Ss)[0],t=nn().memoizedState;return[e,t]},useMutableSource:a0,useSyncExternalStore:u0,useId:C0,unstable_isNewReconciler:!1};function qo(e,t){try{var n="",r=t;do n+=Ax(r),r=r.return;while(r);var o=n}catch(i){o=`
39
- Error generating stack: `+i.message+`
40
- `+i.stack}return{value:e,source:t,stack:o,digest:null}}function vc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function wd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lb=typeof WeakMap=="function"?WeakMap:Map;function E0(e,t,n){n=Gn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ha||(ha=!0,Od=r),wd(e,t)},n}function P0(e,t,n){n=Gn(-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(){wd(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){wd(e,t),typeof r!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Gh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lb;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=bb.bind(null,e,t,n),t.then(e,e))}function Kh(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 qh(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=Gn(-1,1),t.tag=2,mr(n,t,1))),n.lanes|=1),e)}var ab=Zn.ReactCurrentOwner,Et=!1;function bt(e,t,n,r){t.child=e===null?s0(t,null,n,r):Go(t,e.child,n,r)}function Yh(e,t,n,r,o){n=n.render;var i=t.ref;return Do(t,o),r=Bf(e,t,n,r,i,o),n=Vf(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xn(e,t,o)):(ze&&n&&_f(t),t.flags|=1,bt(e,t,r,o),t.child)}function Xh(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Zf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,_0(e,t,i,r,o)):(e=Fl(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 s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ps,n(s,r)&&e.ref===t.ref)return Xn(e,t,o)}return t.flags|=1,e=yr(i,r),e.ref=t.ref,e.return=t,t.child=e}function _0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ps(i,r)&&e.ref===t.ref)if(Et=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Et=!0);else return t.lanes=e.lanes,Xn(e,t,o)}return Cd(e,t,n,r,o)}function T0(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},Ae(Ao,zt),zt|=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,Ae(Ao,zt),zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ae(Ao,zt),zt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ae(Ao,zt),zt|=r;return bt(e,t,o,n),t.child}function M0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cd(e,t,n,r,o){var i=_t(n)?Ur:xt.current;return i=Wo(t,i),Do(t,o),n=Bf(e,t,n,r,i,o),r=Vf(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xn(e,t,o)):(ze&&r&&_f(t),t.flags|=1,bt(e,t,n,o),t.child)}function Qh(e,t,n,r,o){if(_t(n)){var i=!0;oa(t)}else i=!1;if(Do(t,o),t.stateNode===null)Ol(e,t),o0(t,n,r),bd(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=tn(u):(u=_t(n)?Ur:xt.current,u=Wo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Vh(t,s,r,u),or=!1;var f=t.memoizedState;s.state=f,ua(t,r,s,o),a=t.memoizedState,l!==r||f!==a||Pt.current||or?(typeof c=="function"&&(Sd(t,n,c,r),a=t.memoizedState),(l=or||Bh(t,n,l,r,f,a,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,n0(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:fn(t.type,l),s.props=u,d=t.pendingProps,f=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=tn(a):(a=_t(n)?Ur:xt.current,a=Wo(t,a));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||f!==a)&&Vh(t,s,r,a),or=!1,f=t.memoizedState,s.state=f,ua(t,r,s,o);var y=t.memoizedState;l!==d||f!==y||Pt.current||or?(typeof m=="function"&&(Sd(t,n,m,r),y=t.memoizedState),(u=or||Bh(t,n,u,r,f,y,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return kd(e,t,n,r,i,o)}function kd(e,t,n,r,o,i){M0(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Lh(t,n,!1),Xn(e,t,i);r=t.stateNode,ab.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Go(t,e.child,null,i),t.child=Go(t,null,l,i)):bt(e,t,l,i),t.memoizedState=r.state,o&&Lh(t,n,!0),t.child}function O0(e){var t=e.stateNode;t.pendingContext?Fh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Fh(e,t.context,!1),Nf(e,t.containerInfo)}function Zh(e,t,n,r,o){return Uo(),Mf(o),t.flags|=256,bt(e,t,n,r),t.child}var Rd={dehydrated:null,treeContext:null,retryLane:0};function $d(e){return{baseLanes:e,cachePool:null,transitions:null}}function I0(e,t,n){var r=t.pendingProps,o=je.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ae(je,o&1),e===null)return yd(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):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Va(s,r,0,null),e=Hr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=$d(n),t.memoizedState=Rd,e):Uf(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return ub(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=yr(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=yr(l,i):(i=Hr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?$d(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Rd,r}return i=e.child,e=i.sibling,r=yr(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 Uf(e,t){return t=Va({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ol(e,t,n,r){return r!==null&&Mf(r),Go(t,e.child,null,n),e=Uf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ub(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=vc(Error(z(422))),ol(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Va({mode:"visible",children:r.children},o,0,null),i=Hr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Go(t,e.child,null,s),t.child.memoizedState=$d(s),t.memoizedState=Rd,i);if(!(t.mode&1))return ol(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(z(419)),r=vc(i,r,void 0),ol(e,t,s,r)}if(l=(s&e.childLanes)!==0,Et||l){if(r=lt,r!==null){switch(s&-s){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|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Yn(e,o),bn(r,e,o,-1))}return Qf(),r=vc(Error(z(421))),ol(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=wb.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,jt=hr(o.nextSibling),Bt=t,ze=!0,gn=null,e!==null&&(Yt[Xt++]=Wn,Yt[Xt++]=Un,Yt[Xt++]=Gr,Wn=e.id,Un=e.overflow,Gr=t),t=Uf(t,r.children),t.flags|=4096,t)}function Jh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xd(e.return,t,n)}function yc(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 A0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(bt(e,t,r.children,n),r=je.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&&Jh(e,n,t);else if(e.tag===19)Jh(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(Ae(je,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&&ca(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),yc(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&&ca(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}yc(t,!0,n,null,i);break;case"together":yc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ol(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=yr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cb(e,t,n){switch(t.tag){case 3:O0(t),Uo();break;case 5:l0(t);break;case 1:_t(t.type)&&oa(t);break;case 4:Nf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ae(la,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ae(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?I0(e,t,n):(Ae(je,je.current&1),e=Xn(e,t,n),e!==null?e.sibling:null);Ae(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return A0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ae(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,T0(e,t,n)}return Xn(e,t,n)}var F0,Ed,L0,N0;F0=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}};Ed=function(){};L0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,jr(In.current);var i=null;switch(n){case"input":o=Yc(e,o),r=Yc(e,r),i=[];break;case"select":o=Ve({},o,{value:void 0}),r=Ve({},r,{value:void 0}),i=[];break;case"textarea":o=Zc(e,o),r=Zc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=na)}ed(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ss.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ss.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Fe("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};N0=function(e,t,n,r){n!==r&&(t.flags|=4)};function wi(e,t){if(!ze)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 gt(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 db(e,t,n){var r=t.pendingProps;switch(Tf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(t),null;case 1:return _t(t.type)&&ra(),gt(t),null;case 3:return r=t.stateNode,Ko(),Le(Pt),Le(xt),Df(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(nl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,gn!==null&&(Fd(gn),gn=null))),Ed(e,t),gt(t),null;case 5:zf(t);var o=jr(ys.current);if(n=t.type,e!==null&&t.stateNode!=null)L0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return gt(t),null}if(e=jr(In.current),nl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Tn]=t,r[gs]=i,e=(t.mode&1)!==0,n){case"dialog":Fe("cancel",r),Fe("close",r);break;case"iframe":case"object":case"embed":Fe("load",r);break;case"video":case"audio":for(o=0;o<ji.length;o++)Fe(ji[o],r);break;case"source":Fe("error",r);break;case"img":case"image":case"link":Fe("error",r),Fe("load",r);break;case"details":Fe("toggle",r);break;case"input":ah(r,i),Fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Fe("invalid",r);break;case"textarea":ch(r,i),Fe("invalid",r)}ed(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&tl(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&tl(r.textContent,l,e),o=["children",""+l]):ss.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Fe("scroll",r)}switch(n){case"input":Ks(r),uh(r,i,!0);break;case"textarea":Ks(r),dh(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=na)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=cv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Tn]=t,e[gs]=r,F0(e,t,!1,!1),t.stateNode=e;e:{switch(s=td(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),o=r;break;case"iframe":case"object":case"embed":Fe("load",e),o=r;break;case"video":case"audio":for(o=0;o<ji.length;o++)Fe(ji[o],e);o=r;break;case"source":Fe("error",e),o=r;break;case"img":case"image":case"link":Fe("error",e),Fe("load",e),o=r;break;case"details":Fe("toggle",e),o=r;break;case"input":ah(e,r),o=Yc(e,r),Fe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ve({},r,{value:void 0}),Fe("invalid",e);break;case"textarea":ch(e,r),o=Zc(e,r),Fe("invalid",e);break;default:o=r}ed(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?pv(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&dv(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ls(e,a):typeof a=="number"&&ls(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ss.hasOwnProperty(i)?a!=null&&i==="onScroll"&&Fe("scroll",e):a!=null&&mf(e,i,a,s))}switch(n){case"input":Ks(e),uh(e,r,!1);break;case"textarea":Ks(e),dh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Fo(e,!!r.multiple,i,!1):r.defaultValue!=null&&Fo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=na)}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 gt(t),null;case 6:if(e&&t.stateNode!=null)N0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(n=jr(ys.current),jr(In.current),nl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Tn]=t,(i=r.nodeValue!==n)&&(e=Bt,e!==null))switch(e.tag){case 3:tl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&tl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Tn]=t,t.stateNode=r}return gt(t),null;case 13:if(Le(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&jt!==null&&t.mode&1&&!(t.flags&128))e0(),Uo(),t.flags|=98560,i=!1;else if(i=nl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(z(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(z(317));i[Tn]=t}else Uo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gt(t),i=!1}else gn!==null&&(Fd(gn),gn=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||je.current&1?ot===0&&(ot=3):Qf())),t.updateQueue!==null&&(t.flags|=4),gt(t),null);case 4:return Ko(),Ed(e,t),e===null&&hs(t.stateNode.containerInfo),gt(t),null;case 10:return Af(t.type._context),gt(t),null;case 17:return _t(t.type)&&ra(),gt(t),null;case 19:if(Le(je),i=t.memoizedState,i===null)return gt(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)wi(i,!1);else{if(ot!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ca(e),s!==null){for(t.flags|=128,wi(i,!1),r=s.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,s=i.alternate,s===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=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ae(je,je.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ye()>Yo&&(t.flags|=128,r=!0,wi(i,!1),t.lanes=4194304)}else{if(!r)if(e=ca(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ze)return gt(t),null}else 2*Ye()-i.renderingStartTime>Yo&&n!==1073741824&&(t.flags|=128,r=!0,wi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,n=je.current,Ae(je,r?n&1|2:n&1),t):(gt(t),null);case 22:case 23:return Xf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zt&1073741824&&(gt(t),t.subtreeFlags&6&&(t.flags|=8192)):gt(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function fb(e,t){switch(Tf(t),t.tag){case 1:return _t(t.type)&&ra(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ko(),Le(Pt),Le(xt),Df(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zf(t),null;case 13:if(Le(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Uo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(je),null;case 4:return Ko(),null;case 10:return Af(t.type._context),null;case 22:case 23:return Xf(),null;case 24:return null;default:return null}}var il=!1,yt=!1,pb=typeof WeakSet=="function"?WeakSet:Set,K=null;function Io(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ge(e,t,r)}else n.current=null}function Pd(e,t,n){try{n()}catch(r){Ge(e,t,r)}}var em=!1;function hb(e,t){if(dd=Jl,e=Bv(),Pf(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 s=0,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++c===r&&(a=s),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(fd={focusedElem:e,selectionRange:n},Jl=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,k=y.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:fn(t.type,v),k);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(x){Ge(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return y=em,em=!1,y}function Qi(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&&Pd(t,n,i)}o=o.next}while(o!==r)}}function ja(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 _d(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 z0(e){var t=e.alternate;t!==null&&(e.alternate=null,z0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tn],delete t[gs],delete t[md],delete t[XS],delete t[QS])),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 D0(e){return e.tag===5||e.tag===3||e.tag===4}function tm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D0(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 Td(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=na));else if(r!==4&&(e=e.child,e!==null))for(Td(e,t,n),e=e.sibling;e!==null;)Td(e,t,n),e=e.sibling}function Md(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(Md(e,t,n),e=e.sibling;e!==null;)Md(e,t,n),e=e.sibling}var ct=null,hn=!1;function er(e,t,n){for(n=n.child;n!==null;)j0(e,t,n),n=n.sibling}function j0(e,t,n){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Oa,n)}catch{}switch(n.tag){case 5:yt||Io(n,t);case 6:var r=ct,o=hn;ct=null,er(e,t,n),ct=r,hn=o,ct!==null&&(hn?(e=ct,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ct.removeChild(n.stateNode));break;case 18:ct!==null&&(hn?(e=ct,n=n.stateNode,e.nodeType===8?dc(e.parentNode,n):e.nodeType===1&&dc(e,n),ds(e)):dc(ct,n.stateNode));break;case 4:r=ct,o=hn,ct=n.stateNode.containerInfo,hn=!0,er(e,t,n),ct=r,hn=o;break;case 0:case 11:case 14:case 15:if(!yt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Pd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!yt&&(Io(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ge(n,t,l)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(yt=(r=yt)||n.memoizedState!==null,er(e,t,n),yt=r):er(e,t,n);break;default:er(e,t,n)}}function nm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pb),t.forEach(function(r){var o=Cb.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function dn(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,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:ct=l.stateNode,hn=!1;break e;case 3:ct=l.stateNode.containerInfo,hn=!0;break e;case 4:ct=l.stateNode.containerInfo,hn=!0;break e}l=l.return}if(ct===null)throw Error(z(160));j0(i,s,o),ct=null,hn=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Ge(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)B0(t,e),t=t.sibling}function B0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dn(t,e),Rn(e),r&4){try{Qi(3,e,e.return),ja(3,e)}catch(v){Ge(e,e.return,v)}try{Qi(5,e,e.return)}catch(v){Ge(e,e.return,v)}}break;case 1:dn(t,e),Rn(e),r&512&&n!==null&&Io(n,n.return);break;case 5:if(dn(t,e),Rn(e),r&512&&n!==null&&Io(n,n.return),e.flags&32){var o=e.stateNode;try{ls(o,"")}catch(v){Ge(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&av(o,i),td(l,s);var u=td(l,i);for(s=0;s<a.length;s+=2){var c=a[s],d=a[s+1];c==="style"?pv(o,d):c==="dangerouslySetInnerHTML"?dv(o,d):c==="children"?ls(o,d):mf(o,c,d,u)}switch(l){case"input":Xc(o,i);break;case"textarea":uv(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Fo(o,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?Fo(o,!!i.multiple,i.defaultValue,!0):Fo(o,!!i.multiple,i.multiple?[]:"",!1))}o[gs]=i}catch(v){Ge(e,e.return,v)}}break;case 6:if(dn(t,e),Rn(e),r&4){if(e.stateNode===null)throw Error(z(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){Ge(e,e.return,v)}}break;case 3:if(dn(t,e),Rn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ds(t.containerInfo)}catch(v){Ge(e,e.return,v)}break;case 4:dn(t,e),Rn(e);break;case 13:dn(t,e),Rn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(qf=Ye())),r&4&&nm(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(yt=(u=yt)||c,dn(t,e),yt=u):dn(t,e),Rn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(K=e,c=e.child;c!==null;){for(d=K=c;K!==null;){switch(f=K,m=f.child,f.tag){case 0:case 11:case 14:case 15:Qi(4,f,f.return);break;case 1:Io(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){Ge(r,n,v)}}break;case 5:Io(f,f.return);break;case 22:if(f.memoizedState!==null){om(d);continue}}m!==null?(m.return=f,K=m):om(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,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=fv("display",s))}catch(v){Ge(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){Ge(e,e.return,v)}}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:dn(t,e),Rn(e),r&4&&nm(e);break;case 21:break;default:dn(t,e),Rn(e)}}function Rn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(D0(n)){var r=n;break e}n=n.return}throw Error(z(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ls(o,""),r.flags&=-33);var i=tm(e);Md(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=tm(e);Td(e,l,s);break;default:throw Error(z(161))}}catch(a){Ge(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mb(e,t,n){K=e,V0(e)}function V0(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var o=K,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||il;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||yt;l=il;var u=yt;if(il=s,(yt=a)&&!u)for(K=o;K!==null;)s=K,a=s.child,s.tag===22&&s.memoizedState!==null?im(o):a!==null?(a.return=s,K=a):im(o);for(;i!==null;)K=i,V0(i),i=i.sibling;K=o,il=l,yt=u}rm(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,K=i):rm(e)}}function rm(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yt||ja(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!yt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:fn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&jh(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}jh(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.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&&ds(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}yt||t.flags&512&&_d(t)}catch(f){Ge(t,t.return,f)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function om(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function im(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ja(4,t)}catch(a){Ge(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Ge(t,o,a)}}var i=t.return;try{_d(t)}catch(a){Ge(t,i,a)}break;case 5:var s=t.return;try{_d(t)}catch(a){Ge(t,s,a)}}}catch(a){Ge(t,t.return,a)}if(t===e){K=null;break}var l=t.sibling;if(l!==null){l.return=t.return,K=l;break}K=t.return}}var gb=Math.ceil,pa=Zn.ReactCurrentDispatcher,Gf=Zn.ReactCurrentOwner,Jt=Zn.ReactCurrentBatchConfig,Re=0,lt=null,Je=null,pt=0,zt=0,Ao=$r(0),ot=0,ws=null,qr=0,Ba=0,Kf=0,Zi=null,$t=null,qf=0,Yo=1/0,Vn=null,ha=!1,Od=null,gr=null,sl=!1,ar=null,ma=0,Ji=0,Id=null,Il=-1,Al=0;function Ct(){return Re&6?Ye():Il!==-1?Il:Il=Ye()}function vr(e){return e.mode&1?Re&2&&pt!==0?pt&-pt:JS.transition!==null?(Al===0&&(Al=Rv()),Al):(e=Te,e!==0||(e=window.event,e=e===void 0?16:Ov(e.type)),e):1}function bn(e,t,n,r){if(50<Ji)throw Ji=0,Id=null,Error(z(185));Ms(e,n,r),(!(Re&2)||e!==lt)&&(e===lt&&(!(Re&2)&&(Ba|=n),ot===4&&sr(e,pt)),Tt(e,r),n===1&&Re===0&&!(t.mode&1)&&(Yo=Ye()+500,Na&&Er()))}function Tt(e,t){var n=e.callbackNode;Jx(e,t);var r=Zl(e,e===lt?pt:0);if(r===0)n!==null&&hh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&hh(n),t===1)e.tag===0?ZS(sm.bind(null,e)):Qv(sm.bind(null,e)),qS(function(){!(Re&6)&&Er()}),n=null;else{switch($v(r)){case 1:n=Sf;break;case 4:n=Cv;break;case 16:n=Ql;break;case 536870912:n=kv;break;default:n=Ql}n=X0(n,H0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function H0(e,t){if(Il=-1,Al=0,Re&6)throw Error(z(327));var n=e.callbackNode;if(jo()&&e.callbackNode!==n)return null;var r=Zl(e,e===lt?pt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ga(e,r);else{t=r;var o=Re;Re|=2;var i=U0();(lt!==e||pt!==t)&&(Vn=null,Yo=Ye()+500,Vr(e,t));do try{xb();break}catch(l){W0(e,l)}while(1);If(),pa.current=i,Re=o,Je!==null?t=0:(lt=null,pt=0,t=ot)}if(t!==0){if(t===2&&(o=sd(e),o!==0&&(r=o,t=Ad(e,o))),t===1)throw n=ws,Vr(e,0),sr(e,r),Tt(e,Ye()),n;if(t===6)sr(e,r);else{if(o=e.current.alternate,!(r&30)&&!vb(o)&&(t=ga(e,r),t===2&&(i=sd(e),i!==0&&(r=i,t=Ad(e,i))),t===1))throw n=ws,Vr(e,0),sr(e,r),Tt(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(z(345));case 2:Ar(e,$t,Vn);break;case 3:if(sr(e,r),(r&130023424)===r&&(t=qf+500-Ye(),10<t)){if(Zl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ct(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hd(Ar.bind(null,e,$t,Vn),t);break}Ar(e,$t,Vn);break;case 4:if(sr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Sn(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gb(r/1960))-r,10<r){e.timeoutHandle=hd(Ar.bind(null,e,$t,Vn),r);break}Ar(e,$t,Vn);break;case 5:Ar(e,$t,Vn);break;default:throw Error(z(329))}}}return Tt(e,Ye()),e.callbackNode===n?H0.bind(null,e):null}function Ad(e,t){var n=Zi;return e.current.memoizedState.isDehydrated&&(Vr(e,t).flags|=256),e=ga(e,t),e!==2&&(t=$t,$t=n,t!==null&&Fd(t)),e}function Fd(e){$t===null?$t=e:$t.push.apply($t,e)}function vb(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(!Cn(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 sr(e,t){for(t&=~Kf,t&=~Ba,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Sn(t),r=1<<n;e[n]=-1,t&=~r}}function sm(e){if(Re&6)throw Error(z(327));jo();var t=Zl(e,0);if(!(t&1))return Tt(e,Ye()),null;var n=ga(e,t);if(e.tag!==0&&n===2){var r=sd(e);r!==0&&(t=r,n=Ad(e,r))}if(n===1)throw n=ws,Vr(e,0),sr(e,t),Tt(e,Ye()),n;if(n===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ar(e,$t,Vn),Tt(e,Ye()),null}function Yf(e,t){var n=Re;Re|=1;try{return e(t)}finally{Re=n,Re===0&&(Yo=Ye()+500,Na&&Er())}}function Yr(e){ar!==null&&ar.tag===0&&!(Re&6)&&jo();var t=Re;Re|=1;var n=Jt.transition,r=Te;try{if(Jt.transition=null,Te=1,e)return e()}finally{Te=r,Jt.transition=n,Re=t,!(Re&6)&&Er()}}function Xf(){zt=Ao.current,Le(Ao)}function Vr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,KS(n)),Je!==null)for(n=Je.return;n!==null;){var r=n;switch(Tf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ra();break;case 3:Ko(),Le(Pt),Le(xt),Df();break;case 5:zf(r);break;case 4:Ko();break;case 13:Le(je);break;case 19:Le(je);break;case 10:Af(r.type._context);break;case 22:case 23:Xf()}n=n.return}if(lt=e,Je=e=yr(e.current,null),pt=zt=t,ot=0,ws=null,Kf=Ba=qr=0,$t=Zi=null,Dr!==null){for(t=0;t<Dr.length;t++)if(n=Dr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Dr=null}return e}function W0(e,t){do{var n=Je;try{if(If(),Tl.current=fa,da){for(var r=Be.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}da=!1}if(Kr=0,st=rt=Be=null,Xi=!1,xs=0,Gf.current=null,n===null||n.return===null){ot=1,ws=t,Je=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=pt,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,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=Kh(s);if(m!==null){m.flags&=-257,qh(m,s,l,i,t),m.mode&1&&Gh(i,u,t),t=m,a=u;var y=t.updateQueue;if(y===null){var v=new Set;v.add(a),t.updateQueue=v}else y.add(a);break e}else{if(!(t&1)){Gh(i,u,t),Qf();break e}a=Error(z(426))}}else if(ze&&l.mode&1){var k=Kh(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),qh(k,s,l,i,t),Mf(qo(a,l));break e}}i=a=qo(a,l),ot!==4&&(ot=2),Zi===null?Zi=[i]:Zi.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=E0(i,a,t);Dh(i,g);break e;case 1:l=a;var p=i.type,h=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(gr===null||!gr.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=P0(i,l,t);Dh(i,x);break e}}i=i.return}while(i!==null)}K0(n)}catch(C){t=C,Je===n&&n!==null&&(Je=n=n.return);continue}break}while(1)}function U0(){var e=pa.current;return pa.current=fa,e===null?fa:e}function Qf(){(ot===0||ot===3||ot===2)&&(ot=4),lt===null||!(qr&268435455)&&!(Ba&268435455)||sr(lt,pt)}function ga(e,t){var n=Re;Re|=2;var r=U0();(lt!==e||pt!==t)&&(Vn=null,Vr(e,t));do try{yb();break}catch(o){W0(e,o)}while(1);if(If(),Re=n,pa.current=r,Je!==null)throw Error(z(261));return lt=null,pt=0,ot}function yb(){for(;Je!==null;)G0(Je)}function xb(){for(;Je!==null&&!Wx();)G0(Je)}function G0(e){var t=Y0(e.alternate,e,zt);e.memoizedProps=e.pendingProps,t===null?K0(e):Je=t,Gf.current=null}function K0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=fb(n,t),n!==null){n.flags&=32767,Je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ot=6,Je=null;return}}else if(n=db(n,t,zt),n!==null){Je=n;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);ot===0&&(ot=5)}function Ar(e,t,n){var r=Te,o=Jt.transition;try{Jt.transition=null,Te=1,Sb(e,t,n,r)}finally{Jt.transition=o,Te=r}return null}function Sb(e,t,n,r){do jo();while(ar!==null);if(Re&6)throw Error(z(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(z(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(eS(e,i),e===lt&&(Je=lt=null,pt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sl||(sl=!0,X0(Ql,function(){return jo(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Jt.transition,Jt.transition=null;var s=Te;Te=1;var l=Re;Re|=4,Gf.current=null,hb(e,n),B0(n,e),jS(fd),Jl=!!dd,fd=dd=null,e.current=n,mb(n),Ux(),Re=l,Te=s,Jt.transition=i}else e.current=n;if(sl&&(sl=!1,ar=e,ma=o),i=e.pendingLanes,i===0&&(gr=null),qx(n.stateNode),Tt(e,Ye()),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(ha)throw ha=!1,e=Od,Od=null,e;return ma&1&&e.tag!==0&&jo(),i=e.pendingLanes,i&1?e===Id?Ji++:(Ji=0,Id=e):Ji=0,Er(),null}function jo(){if(ar!==null){var e=$v(ma),t=Jt.transition,n=Te;try{if(Jt.transition=null,Te=16>e?16:e,ar===null)var r=!1;else{if(e=ar,ar=null,ma=0,Re&6)throw Error(z(331));var o=Re;for(Re|=4,K=e.current;K!==null;){var i=K,s=i.child;if(K.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(K=u;K!==null;){var c=K;switch(c.tag){case 0:case 11:case 15:Qi(8,c,i)}var d=c.child;if(d!==null)d.return=c,K=d;else for(;K!==null;){c=K;var f=c.sibling,m=c.return;if(z0(c),c===u){K=null;break}if(f!==null){f.return=m,K=f;break}K=m}}}var y=i.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var k=v.sibling;v.sibling=null,v=k}while(v!==null)}}K=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,K=s;else e:for(;K!==null;){if(i=K,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Qi(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,K=g;break e}K=i.return}}var p=e.current;for(K=p;K!==null;){s=K;var h=s.child;if(s.subtreeFlags&2064&&h!==null)h.return=s,K=h;else e:for(s=p;K!==null;){if(l=K,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ja(9,l)}}catch(C){Ge(l,l.return,C)}if(l===s){K=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,K=x;break e}K=l.return}}if(Re=o,Er(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(Oa,e)}catch{}r=!0}return r}finally{Te=n,Jt.transition=t}}return!1}function lm(e,t,n){t=qo(n,t),t=E0(e,t,1),e=mr(e,t,1),t=Ct(),e!==null&&(Ms(e,1,t),Tt(e,t))}function Ge(e,t,n){if(e.tag===3)lm(e,e,n);else for(;t!==null;){if(t.tag===3){lm(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gr===null||!gr.has(r))){e=qo(n,e),e=P0(t,e,1),t=mr(t,e,1),e=Ct(),t!==null&&(Ms(t,1,e),Tt(t,e));break}}t=t.return}}function bb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ct(),e.pingedLanes|=e.suspendedLanes&n,lt===e&&(pt&n)===n&&(ot===4||ot===3&&(pt&130023424)===pt&&500>Ye()-qf?Vr(e,0):Kf|=n),Tt(e,t)}function q0(e,t){t===0&&(e.mode&1?(t=Xs,Xs<<=1,!(Xs&130023424)&&(Xs=4194304)):t=1);var n=Ct();e=Yn(e,t),e!==null&&(Ms(e,t,n),Tt(e,n))}function wb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),q0(e,n)}function Cb(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(z(314))}r!==null&&r.delete(t),q0(e,n)}var Y0;Y0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pt.current)Et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Et=!1,cb(e,t,n);Et=!!(e.flags&131072)}else Et=!1,ze&&t.flags&1048576&&Zv(t,sa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ol(e,t),e=t.pendingProps;var o=Wo(t,xt.current);Do(t,n),o=Bf(null,t,r,e,o,n);var i=Vf();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,_t(r)?(i=!0,oa(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lf(t),o.updater=za,t.stateNode=o,o._reactInternals=t,bd(t,r,e,n),t=kd(null,t,r,!0,i,n)):(t.tag=0,ze&&i&&_f(t),bt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ol(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Rb(r),e=fn(r,e),o){case 0:t=Cd(null,t,r,e,n);break e;case 1:t=Qh(null,t,r,e,n);break e;case 11:t=Yh(null,t,r,e,n);break e;case 14:t=Xh(null,t,r,fn(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fn(r,o),Cd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fn(r,o),Qh(e,t,r,o,n);case 3:e:{if(O0(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,n0(e,t),ua(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(z(423)),t),t=Zh(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(z(424)),t),t=Zh(e,t,r,n,o);break e}else for(jt=hr(t.stateNode.containerInfo.firstChild),Bt=t,ze=!0,gn=null,n=s0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Uo(),r===o){t=Xn(e,t,n);break e}bt(e,t,r,n)}t=t.child}return t;case 5:return l0(t),e===null&&yd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pd(r,o)?s=null:i!==null&&pd(r,i)&&(t.flags|=32),M0(e,t),bt(e,t,s,n),t.child;case 6:return e===null&&yd(t),null;case 13:return I0(e,t,n);case 4:return Nf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Go(t,null,r,n):bt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fn(r,o),Yh(e,t,r,o,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Ae(la,r._currentValue),r._currentValue=s,i!==null)if(Cn(i.value,s)){if(i.children===o.children&&!Pt.current){t=Xn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Gn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),xd(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(z(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),xd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}bt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Do(t,n),o=tn(o),r=r(o),t.flags|=1,bt(e,t,r,n),t.child;case 14:return r=t.type,o=fn(r,t.pendingProps),o=fn(r.type,o),Xh(e,t,r,o,n);case 15:return _0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fn(r,o),Ol(e,t),t.tag=1,_t(r)?(e=!0,oa(t)):e=!1,Do(t,n),o0(t,r,o),bd(t,r,o,n),kd(null,t,r,!0,e,n);case 19:return A0(e,t,n);case 22:return T0(e,t,n)}throw Error(z(156,t.tag))};function X0(e,t){return wv(e,t)}function kb(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 Zt(e,t,n,r){return new kb(e,t,n,r)}function Zf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rb(e){if(typeof e=="function")return Zf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vf)return 11;if(e===yf)return 14}return 2}function yr(e,t){var n=e.alternate;return n===null?(n=Zt(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 Fl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Zf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ko:return Hr(n.children,o,i,t);case gf:s=8,o|=8;break;case Uc:return e=Zt(12,n,t,o|2),e.elementType=Uc,e.lanes=i,e;case Gc:return e=Zt(13,n,t,o),e.elementType=Gc,e.lanes=i,e;case Kc:return e=Zt(19,n,t,o),e.elementType=Kc,e.lanes=i,e;case iv:return Va(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rv:s=10;break e;case ov:s=9;break e;case vf:s=11;break e;case yf:s=14;break e;case rr:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Zt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Hr(e,t,n,r){return e=Zt(7,e,r,t),e.lanes=n,e}function Va(e,t,n,r){return e=Zt(22,e,r,t),e.elementType=iv,e.lanes=n,e.stateNode={isHidden:!1},e}function xc(e,t,n){return e=Zt(6,e,null,t),e.lanes=n,e}function Sc(e,t,n){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $b(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=ec(0),this.expirationTimes=ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Jf(e,t,n,r,o,i,s,l,a){return e=new $b(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Zt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lf(i),e}function Eb(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Co,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Q0(e){if(!e)return br;e=e._reactInternals;e:{if(to(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var n=e.type;if(_t(n))return Xv(e,n,t)}return t}function Z0(e,t,n,r,o,i,s,l,a){return e=Jf(n,r,!0,e,o,i,s,l,a),e.context=Q0(null),n=e.current,r=Ct(),o=vr(n),i=Gn(r,o),i.callback=t??null,mr(n,i,o),e.current.lanes=o,Ms(e,o,r),Tt(e,r),e}function Ha(e,t,n,r){var o=t.current,i=Ct(),s=vr(o);return n=Q0(n),t.context===null?t.context=n:t.pendingContext=n,t=Gn(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mr(o,t,s),e!==null&&(bn(e,o,s,i),_l(e,o,s)),s}function va(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 am(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ep(e,t){am(e,t),(e=e.alternate)&&am(e,t)}function Pb(){return null}var J0=typeof reportError=="function"?reportError:function(e){console.error(e)};function tp(e){this._internalRoot=e}Wa.prototype.render=tp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));Ha(e,t,null,null)};Wa.prototype.unmount=tp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yr(function(){Ha(null,e,null,null)}),t[qn]=null}};function Wa(e){this._internalRoot=e}Wa.prototype.unstable_scheduleHydration=function(e){if(e){var t=_v();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ir.length&&t!==0&&t<ir[n].priority;n++);ir.splice(n,0,e),n===0&&Mv(e)}};function np(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ua(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function um(){}function _b(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=va(s);i.call(u)}}var s=Z0(t,r,e,0,null,!1,!1,"",um);return e._reactRootContainer=s,e[qn]=s.current,hs(e.nodeType===8?e.parentNode:e),Yr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=va(a);l.call(u)}}var a=Jf(e,0,!1,null,null,!1,!1,"",um);return e._reactRootContainer=a,e[qn]=a.current,hs(e.nodeType===8?e.parentNode:e),Yr(function(){Ha(t,a,n,r)}),a}function Ga(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=va(s);l.call(a)}}Ha(t,s,e,o)}else s=_b(n,t,e,o,r);return va(s)}Ev=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Di(t.pendingLanes);n!==0&&(bf(t,n|1),Tt(t,Ye()),!(Re&6)&&(Yo=Ye()+500,Er()))}break;case 13:Yr(function(){var r=Yn(e,1);if(r!==null){var o=Ct();bn(r,e,1,o)}}),ep(e,1)}};wf=function(e){if(e.tag===13){var t=Yn(e,134217728);if(t!==null){var n=Ct();bn(t,e,134217728,n)}ep(e,134217728)}};Pv=function(e){if(e.tag===13){var t=vr(e),n=Yn(e,t);if(n!==null){var r=Ct();bn(n,e,t,r)}ep(e,t)}};_v=function(){return Te};Tv=function(e,t){var n=Te;try{return Te=e,t()}finally{Te=n}};rd=function(e,t,n){switch(t){case"input":if(Xc(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=La(r);if(!o)throw Error(z(90));lv(r),Xc(r,o)}}}break;case"textarea":uv(e,n);break;case"select":t=n.value,t!=null&&Fo(e,!!n.multiple,t,!1)}};gv=Yf;vv=Yr;var Tb={usingClientEntryPoint:!1,Events:[Is,Po,La,hv,mv,Yf]},Ci={findFiberByHostInstance:zr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Mb={bundleType:Ci.bundleType,version:Ci.version,rendererPackageName:Ci.rendererPackageName,rendererConfig:Ci.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sv(e),e===null?null:e.stateNode},findFiberByHostInstance:Ci.findFiberByHostInstance||Pb,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 ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ll.isDisabled&&ll.supportsFiber)try{Oa=ll.inject(Mb),On=ll}catch{}}Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tb;Ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!np(t))throw Error(z(200));return Eb(e,t,null,n)};Ut.createRoot=function(e,t){if(!np(e))throw Error(z(299));var n=!1,r="",o=J0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Jf(e,1,!1,null,null,n,!1,r,o),e[qn]=t.current,hs(e.nodeType===8?e.parentNode:e),new tp(t)};Ut.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(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=Sv(t),e=e===null?null:e.stateNode,e};Ut.flushSync=function(e){return Yr(e)};Ut.hydrate=function(e,t,n){if(!Ua(t))throw Error(z(200));return Ga(null,e,t,!0,n)};Ut.hydrateRoot=function(e,t,n){if(!np(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=J0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Z0(t,null,e,1,n??null,o,!1,i,s),e[qn]=t.current,hs(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 Wa(t)};Ut.render=function(e,t,n){if(!Ua(t))throw Error(z(200));return Ga(null,e,t,!1,n)};Ut.unmountComponentAtNode=function(e){if(!Ua(e))throw Error(z(40));return e._reactRootContainer?(Yr(function(){Ga(null,null,e,!1,function(){e._reactRootContainer=null,e[qn]=null})}),!0):!1};Ut.unstable_batchedUpdates=Yf;Ut.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ua(n))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return Ga(e,t,n,!1,r)};Ut.version="18.2.0-next-9e3b772b8-20220608";function ey(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ey)}catch(e){console.error(e)}}ey(),Zg.exports=Ut;var Ka=Zg.exports;const al=af(Ka);var cm=Ka;Hc.createRoot=cm.createRoot,Hc.hydrateRoot=cm.hydrateRoot;function b(){return b=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},b.apply(this,arguments)}function Nr(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function ty(e){if(!Nr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ty(e[n])}),t}function Mt(e,t,n={clone:!0}){const r=n.clone?b({},e):e;return Nr(e)&&Nr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Nr(t[o])&&o in e&&Nr(e[o])?r[o]=Mt(e[o],t[o],n):n.clone?r[o]=Nr(t[o])?ty(t[o]):t[o]:r[o]=t[o])}),r}function wr(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."}function Y(e){if(typeof e!="string")throw new Error(wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ld(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function rp(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 Ob(e,t){return()=>null}function Ll(e,t){return S.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function tt(e){return e&&e.ownerDocument||document}function Cr(e){return tt(e).defaultView||window}function Ib(e,t){return()=>null}function ya(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ab=typeof window<"u"?S.useLayoutEffect:S.useEffect,rn=Ab;let dm=0;function Fb(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(dm+=1,n(`mui-${dm}`))},[t]),r}const fm=Kl["useId"];function qa(e){if(fm!==void 0){const t=fm();return e??t}return Fb(e)}function Lb(e,t,n,r,o){return null}function Xo({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=S.useRef(e!==void 0),[i,s]=S.useState(t),l=o?e:i,a=S.useCallback(u=>{o||s(u)},[]);return[l,a]}function vn(e){const t=S.useRef(e);return rn(()=>{t.current=e}),S.useCallback((...n)=>(0,t.current)(...n),[])}function Xe(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ya(n,t)})},e)}let Ya=!0,Nd=!1,pm;const Nb={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 zb(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Nb[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Db(e){e.metaKey||e.altKey||e.ctrlKey||(Ya=!0)}function bc(){Ya=!1}function jb(){this.visibilityState==="hidden"&&Nd&&(Ya=!0)}function Bb(e){e.addEventListener("keydown",Db,!0),e.addEventListener("mousedown",bc,!0),e.addEventListener("pointerdown",bc,!0),e.addEventListener("touchstart",bc,!0),e.addEventListener("visibilitychange",jb,!0)}function Vb(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ya||zb(t)}function Xa(){const e=S.useCallback(o=>{o!=null&&Bb(o.ownerDocument)},[]),t=S.useRef(!1);function n(){return t.current?(Nd=!0,window.clearTimeout(pm),pm=window.setTimeout(()=>{Nd=!1},100),t.current=!1,!0):!1}function r(o){return Vb(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ny(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Hb={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Wb=Hb;function op(e,t){const n=b({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=b({},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]=b({},i),Object.keys(o).forEach(s=>{n[r][s]=op(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function me(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const l=t(s);l!==""&&i.push(l),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const hm=e=>e,Ub=()=>{let e=hm;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hm}}},Gb=Ub(),ip=Gb,Kb={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function pe(e,t,n="Mui"){const r=Kb[t];return r?`${n}-${r}`:`${ip.generate(e)}-${t}`}function fe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=pe(e,o,n)}),r}function ry(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qb=/^((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|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)-.*))$/,Yb=ry(function(e){return qb.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Xb(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 Qb(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 Zb=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(Qb(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Xb(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}(),vt="-ms-",xa="-moz-",$e="-webkit-",oy="comm",sp="rule",lp="decl",Jb="@import",iy="@keyframes",ew="@layer",tw=Math.abs,Qa=String.fromCharCode,nw=Object.assign;function rw(e,t){return dt(e,0)^45?(((t<<2^dt(e,0))<<2^dt(e,1))<<2^dt(e,2))<<2^dt(e,3):0}function sy(e){return e.trim()}function ow(e,t){return(e=t.exec(e))?e[0]:e}function Ee(e,t,n){return e.replace(t,n)}function zd(e,t){return e.indexOf(t)}function dt(e,t){return e.charCodeAt(t)|0}function Cs(e,t,n){return e.slice(t,n)}function Pn(e){return e.length}function ap(e){return e.length}function ul(e,t){return t.push(e),e}function iw(e,t){return e.map(t).join("")}var Za=1,Qo=1,ly=0,At=0,Ze=0,li="";function Ja(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Za,column:Qo,length:s,return:""}}function ki(e,t){return nw(Ja("",null,null,"",null,null,0),e,{length:-e.length},t)}function sw(){return Ze}function lw(){return Ze=At>0?dt(li,--At):0,Qo--,Ze===10&&(Qo=1,Za--),Ze}function Vt(){return Ze=At<ly?dt(li,At++):0,Qo++,Ze===10&&(Qo=1,Za++),Ze}function An(){return dt(li,At)}function Nl(){return At}function Fs(e,t){return Cs(li,e,t)}function ks(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 ay(e){return Za=Qo=1,ly=Pn(li=e),At=0,[]}function uy(e){return li="",e}function zl(e){return sy(Fs(At-1,Dd(e===91?e+2:e===40?e+1:e)))}function aw(e){for(;(Ze=An())&&Ze<33;)Vt();return ks(e)>2||ks(Ze)>3?"":" "}function uw(e,t){for(;--t&&Vt()&&!(Ze<48||Ze>102||Ze>57&&Ze<65||Ze>70&&Ze<97););return Fs(e,Nl()+(t<6&&An()==32&&Vt()==32))}function Dd(e){for(;Vt();)switch(Ze){case e:return At;case 34:case 39:e!==34&&e!==39&&Dd(Ze);break;case 40:e===41&&Dd(e);break;case 92:Vt();break}return At}function cw(e,t){for(;Vt()&&e+Ze!==47+10;)if(e+Ze===42+42&&An()===47)break;return"/*"+Fs(t,At-1)+"*"+Qa(e===47?e:Vt())}function dw(e){for(;!ks(An());)Vt();return Fs(e,At)}function fw(e){return uy(Dl("",null,null,null,[""],e=ay(e),0,[0],e))}function Dl(e,t,n,r,o,i,s,l,a){for(var u=0,c=0,d=s,f=0,m=0,y=0,v=1,k=1,g=1,p=0,h="",x=o,C=i,R=r,$=h;k;)switch(y=p,p=Vt()){case 40:if(y!=108&&dt($,d-1)==58){zd($+=Ee(zl(p),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:$+=zl(p);break;case 9:case 10:case 13:case 32:$+=aw(y);break;case 92:$+=uw(Nl()-1,7);continue;case 47:switch(An()){case 42:case 47:ul(pw(cw(Vt(),Nl()),t,n),a);break;default:$+="/"}break;case 123*v:l[u++]=Pn($)*g;case 125*v:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:g==-1&&($=Ee($,/\f/g,"")),m>0&&Pn($)-d&&ul(m>32?gm($+";",r,n,d-1):gm(Ee($," ","")+";",r,n,d-2),a);break;case 59:$+=";";default:if(ul(R=mm($,t,n,u,c,o,l,h,x=[],C=[],d),i),p===123)if(c===0)Dl($,t,R,R,x,i,d,l,C);else switch(f===99&&dt($,3)===110?100:f){case 100:case 108:case 109:case 115:Dl(e,R,R,r&&ul(mm(e,R,R,0,0,o,l,h,o,x=[],d),C),o,C,d,l,r?x:C);break;default:Dl($,R,R,R,[""],C,0,l,C)}}u=c=m=0,v=g=1,h=$="",d=s;break;case 58:d=1+Pn($),m=y;default:if(v<1){if(p==123)--v;else if(p==125&&v++==0&&lw()==125)continue}switch($+=Qa(p),p*v){case 38:g=c>0?1:($+="\f",-1);break;case 44:l[u++]=(Pn($)-1)*g,g=1;break;case 64:An()===45&&($+=zl(Vt())),f=An(),c=d=Pn(h=$+=dw(Nl())),p++;break;case 45:y===45&&Pn($)==2&&(v=0)}}return i}function mm(e,t,n,r,o,i,s,l,a,u,c){for(var d=o-1,f=o===0?i:[""],m=ap(f),y=0,v=0,k=0;y<r;++y)for(var g=0,p=Cs(e,d+1,d=tw(v=s[y])),h=e;g<m;++g)(h=sy(v>0?f[g]+" "+p:Ee(p,/&\f/g,f[g])))&&(a[k++]=h);return Ja(e,t,n,o===0?sp:l,a,u,c)}function pw(e,t,n){return Ja(e,t,n,oy,Qa(sw()),Cs(e,2,-2),0)}function gm(e,t,n,r){return Ja(e,t,n,lp,Cs(e,0,r),Cs(e,r+1,-1),r)}function Bo(e,t){for(var n="",r=ap(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function hw(e,t,n,r){switch(e.type){case ew:if(e.children.length)break;case Jb:case lp:return e.return=e.return||e.value;case oy:return"";case iy:return e.return=e.value+"{"+Bo(e.children,r)+"}";case sp:e.value=e.props.join(",")}return Pn(n=Bo(e.children,r))?e.return=e.value+"{"+n+"}":""}function mw(e){var t=ap(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function gw(e){return function(t){t.root||(t=t.return)&&e(t)}}var vw=function(t,n,r){for(var o=0,i=0;o=i,i=An(),o===38&&i===12&&(n[r]=1),!ks(i);)Vt();return Fs(t,At)},yw=function(t,n){var r=-1,o=44;do switch(ks(o)){case 0:o===38&&An()===12&&(n[r]=1),t[r]+=vw(At-1,n,r);break;case 2:t[r]+=zl(o);break;case 4:if(o===44){t[++r]=An()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Qa(o)}while(o=Vt());return t},xw=function(t,n){return uy(yw(ay(t),n))},vm=new WeakMap,Sw=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&&!vm.get(r))&&!o){vm.set(t,!0);for(var i=[],s=xw(n,i),l=r.props,a=0,u=0;a<s.length;a++)for(var c=0;c<l.length;c++,u++)t.props[u]=i[a]?s[a].replace(/&\f/g,l[c]):l[c]+" "+s[a]}}},bw=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function cy(e,t){switch(rw(e,t)){case 5103:return $e+"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 $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+xa+e+vt+e+e;case 6828:case 4268:return $e+e+vt+e+e;case 6165:return $e+e+vt+"flex-"+e+e;case 5187:return $e+e+Ee(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+vt+"flex-$1$2")+e;case 5443:return $e+e+vt+"flex-item-"+Ee(e,/flex-|-self/,"")+e;case 4675:return $e+e+vt+"flex-line-pack"+Ee(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+vt+Ee(e,"shrink","negative")+e;case 5292:return $e+e+vt+Ee(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+Ee(e,"-grow","")+$e+e+vt+Ee(e,"grow","positive")+e;case 4554:return $e+Ee(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return Ee(Ee(Ee(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return Ee(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return Ee(Ee(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return Ee(e,/(.+)-inline(.+)/,$e+"$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(Pn(e)-1-t>6)switch(dt(e,t+1)){case 109:if(dt(e,t+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+xa+(dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zd(e,"stretch")?cy(Ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dt(e,t+1)!==115)break;case 6444:switch(dt(e,Pn(e)-3-(~zd(e,"!important")&&10))){case 107:return Ee(e,":",":"+$e)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(dt(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+vt+"$2box$3")+e}break;case 5936:switch(dt(e,t+11)){case 114:return $e+e+vt+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+vt+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+vt+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+vt+e+e}return e}var ww=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case lp:t.return=cy(t.value,t.length);break;case iy:return Bo([ki(t,{value:Ee(t.value,"@","@"+$e)})],o);case sp:if(t.length)return iw(t.props,function(i){switch(ow(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bo([ki(t,{props:[Ee(i,/:(read-\w+)/,":"+xa+"$1")]})],o);case"::placeholder":return Bo([ki(t,{props:[Ee(i,/:(plac\w+)/,":"+$e+"input-$1")]}),ki(t,{props:[Ee(i,/:(plac\w+)/,":"+xa+"$1")]}),ki(t,{props:[Ee(i,/:(plac\w+)/,vt+"input-$1")]})],o)}return""})}},Cw=[ww],kw=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(v){var k=v.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Cw,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var k=v.getAttribute("data-emotion").split(" "),g=1;g<k.length;g++)i[k[g]]=!0;l.push(v)});var a,u=[Sw,bw];{var c,d=[hw,gw(function(v){c.insert(v)})],f=mw(u.concat(o,d)),m=function(k){return Bo(fw(k),f)};a=function(k,g,p,h){c=p,m(k?k+"{"+g.styles+"}":g.styles),h&&(y.inserted[g.name]=!0)}}var y={key:n,sheet:new Zb({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:a};return y.sheet.hydrate(l),y},dy={exports:{}},Me={};/** @license React v16.13.1
41
- * react-is.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */var at=typeof Symbol=="function"&&Symbol.for,up=at?Symbol.for("react.element"):60103,cp=at?Symbol.for("react.portal"):60106,eu=at?Symbol.for("react.fragment"):60107,tu=at?Symbol.for("react.strict_mode"):60108,nu=at?Symbol.for("react.profiler"):60114,ru=at?Symbol.for("react.provider"):60109,ou=at?Symbol.for("react.context"):60110,dp=at?Symbol.for("react.async_mode"):60111,iu=at?Symbol.for("react.concurrent_mode"):60111,su=at?Symbol.for("react.forward_ref"):60112,lu=at?Symbol.for("react.suspense"):60113,Rw=at?Symbol.for("react.suspense_list"):60120,au=at?Symbol.for("react.memo"):60115,uu=at?Symbol.for("react.lazy"):60116,$w=at?Symbol.for("react.block"):60121,Ew=at?Symbol.for("react.fundamental"):60117,Pw=at?Symbol.for("react.responder"):60118,_w=at?Symbol.for("react.scope"):60119;function Kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case up:switch(e=e.type,e){case dp:case iu:case eu:case nu:case tu:case lu:return e;default:switch(e=e&&e.$$typeof,e){case ou:case su:case uu:case au:case ru:return e;default:return t}}case cp:return t}}}function fy(e){return Kt(e)===iu}Me.AsyncMode=dp;Me.ConcurrentMode=iu;Me.ContextConsumer=ou;Me.ContextProvider=ru;Me.Element=up;Me.ForwardRef=su;Me.Fragment=eu;Me.Lazy=uu;Me.Memo=au;Me.Portal=cp;Me.Profiler=nu;Me.StrictMode=tu;Me.Suspense=lu;Me.isAsyncMode=function(e){return fy(e)||Kt(e)===dp};Me.isConcurrentMode=fy;Me.isContextConsumer=function(e){return Kt(e)===ou};Me.isContextProvider=function(e){return Kt(e)===ru};Me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===up};Me.isForwardRef=function(e){return Kt(e)===su};Me.isFragment=function(e){return Kt(e)===eu};Me.isLazy=function(e){return Kt(e)===uu};Me.isMemo=function(e){return Kt(e)===au};Me.isPortal=function(e){return Kt(e)===cp};Me.isProfiler=function(e){return Kt(e)===nu};Me.isStrictMode=function(e){return Kt(e)===tu};Me.isSuspense=function(e){return Kt(e)===lu};Me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===eu||e===iu||e===nu||e===tu||e===lu||e===Rw||typeof e=="object"&&e!==null&&(e.$$typeof===uu||e.$$typeof===au||e.$$typeof===ru||e.$$typeof===ou||e.$$typeof===su||e.$$typeof===Ew||e.$$typeof===Pw||e.$$typeof===_w||e.$$typeof===$w)};Me.typeOf=Kt;dy.exports=Me;var Tw=dy.exports,py=Tw,Mw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ow={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hy={};hy[py.ForwardRef]=Mw;hy[py.Memo]=Ow;var Iw=!0;function Aw(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var my=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Iw===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},gy=function(t,n,r){my(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 Fw(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 Lw={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},Nw=/[A-Z]|^ms/g,zw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vy=function(t){return t.charCodeAt(1)===45},ym=function(t){return t!=null&&typeof t!="boolean"},wc=ry(function(e){return vy(e)?e:e.replace(Nw,"-$&").toLowerCase()}),xm=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zw,function(r,o,i){return _n={name:o,styles:i,next:_n},o})}return Lw[t]!==1&&!vy(t)&&typeof n=="number"&&n!==0?n+"px":n};function Rs(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 _n={name:n.name,styles:n.styles,next:_n},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)_n={name:r.name,styles:r.styles,next:_n},r=r.next;var o=n.styles+";";return o}return Dw(e,t,n)}case"function":{if(e!==void 0){var i=_n,s=n(e);return _n=i,Rs(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function Dw(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Rs(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":ym(s)&&(r+=wc(i)+":"+xm(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)ym(s[l])&&(r+=wc(i)+":"+xm(i,s[l])+";");else{var a=Rs(e,t,s);switch(i){case"animation":case"animationName":{r+=wc(i)+":"+a+";";break}default:r+=i+"{"+a+"}"}}}return r}var Sm=/label:\s*([^\s;\n{]+)\s*(;|$)/g,_n,fp=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="";_n=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Rs(r,n,s)):i+=s[0];for(var l=1;l<t.length;l++)i+=Rs(r,n,t[l]),o&&(i+=s[l]);Sm.lastIndex=0;for(var a="",u;(u=Sm.exec(i))!==null;)a+="-"+u[1];var c=Fw(i)+a;return{name:c,styles:i,next:_n}},jw=function(t){return t()},yy=Kl["useInsertionEffect"]?Kl["useInsertionEffect"]:!1,Bw=yy||jw,bm=yy||S.useLayoutEffect,xy=S.createContext(typeof HTMLElement<"u"?kw({key:"css"}):null);xy.Provider;var Sy=function(t){return S.forwardRef(function(n,r){var o=S.useContext(xy);return t(n,o,r)})},cu=S.createContext({}),Vw=Sy(function(e,t){var n=e.styles,r=fp([n],void 0,S.useContext(cu)),o=S.useRef();return bm(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,a=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),a!==null&&(l=!0,a.setAttribute("data-emotion",i),s.hydrate([a])),o.current=[s,l],function(){s.flush()}},[t]),bm(function(){var i=o.current,s=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&gy(t,r.next,!0),s.tags.length){var a=s.tags[s.tags.length-1].nextElementSibling;s.before=a,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function pp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fp(t)}var Ls=function(){var t=pp.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_"}}},Hw=Yb,Ww=function(t){return t!=="theme"},wm=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Hw:Ww},Cm=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Uw=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return my(n,r,o),Bw(function(){return gy(n,r,o)}),null},Gw=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var l=Cm(t,n,r),a=l||wm(o),u=!a("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 y=Sy(function(v,k,g){var p=u&&v.as||o,h="",x=[],C=v;if(v.theme==null){C={};for(var R in v)C[R]=v[R];C.theme=S.useContext(cu)}typeof v.className=="string"?h=Aw(k.registered,x,v.className):v.className!=null&&(h=v.className+" ");var $=fp(d.concat(x),k.registered,C);h+=k.key+"-"+$.name,s!==void 0&&(h+=" "+s);var E=u&&l===void 0?wm(p):a,M={};for(var P in v)u&&P==="as"||E(P)&&(M[P]=v[P]);return M.className=h,M.ref=g,S.createElement(S.Fragment,null,S.createElement(Uw,{cache:k,serialized:$,isStringTag:typeof p=="string"}),S.createElement(p,M))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+s}}),y.withComponent=function(v,k){return e(v,b({},n,k,{shouldForwardProp:Cm(y,k,!0)})).apply(void 0,d)},y}},Kw=["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"],jd=Gw.bind();Kw.forEach(function(e){jd[e]=jd(e)});function qw(e){return e==null||Object.keys(e).length===0}function Yw(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(qw(o)?n:o):t;return w.jsx(Vw,{styles:r})}/**
48
- * @mui/styled-engine v5.12.3
49
- *
50
- * @license MIT
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */function by(e,t){return jd(e,t)}const Xw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function X(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}const Qw=["values","unit","step"],Zw=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)=>b({},n,{[r.key]:r.val}),{})};function Jw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=X(e,Qw),i=Zw(t),s=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const y=s.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:m)-r/100}${n})`}function c(f){return s.indexOf(f)+1<s.length?u(f,s[s.indexOf(f)+1]):l(f)}function d(f){const m=s.indexOf(f);return m===0?l(s[1]):m===s.length-1?a(s[m]):u(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return b({keys:s,values:i,up:l,down:a,between:u,only:c,not:d,unit:n},o)}const eC={borderRadius:4},tC=eC;function es(e,t){return t?Mt(e,t,{clone:!1}):e}const hp={xs:0,sm:600,md:900,lg:1200,xl:1536},km={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hp[e]}px)`};function kn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||km;return t.reduce((s,l,a)=>(s[i.up(i.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const i=r.breakpoints||km;return Object.keys(t).reduce((s,l)=>{if(Object.keys(i.values||hp).indexOf(l)!==-1){const a=i.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function wy(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Cy(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function nC(e,...t){const n=wy(e),r=[n,...t].reduce((o,i)=>Mt(o,i),{});return Cy(Object.keys(n),r)}function rC(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 Cc({values:e,breakpoints:t,base:n}){const r=n||rC(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,l,a)=>(Array.isArray(e)?(s[l]=e[a]!=null?e[a]:e[i],i=a):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[i],i=l):s[l]=e,s),{})}function du(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 Sa(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=du(e,n)||r,t&&(o=t(o,r,e)),o}function Pe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,u=du(a,r)||{};return kn(s,l,d=>{let f=Sa(u,o,d);return d===f&&typeof d=="string"&&(f=Sa(u,o,`${t}${d==="default"?"":Y(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function oC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const iC={m:"margin",p:"padding"},sC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lC=oC(e=>{if(e.length>2)if(Rm[e])e=Rm[e];else return[e];const[t,n]=e.split(""),r=iC[t],o=sC[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),mp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...mp,...gp];function Ns(e,t,n,r){var o;const i=(o=du(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function vp(e){return Ns(e,"spacing",8)}function Xr(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 aC(e,t){return n=>e.reduce((r,o)=>(r[o]=Xr(t,n),r),{})}function uC(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=lC(n),i=aC(o,r),s=e[n];return kn(e,s,i)}function ky(e,t){const n=vp(e.theme);return Object.keys(e).map(r=>uC(e,t,r,n)).reduce(es,{})}function We(e){return ky(e,mp)}We.propTypes={};We.filterProps=mp;function Ue(e){return ky(e,gp)}Ue.propTypes={};Ue.filterProps=gp;function cC(e=8){if(e.mui)return e;const t=vp({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function fu(...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]?es(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Mn(e){return typeof e!="number"?e:`${e}px solid`}const dC=Pe({prop:"border",themeKey:"borders",transform:Mn}),fC=Pe({prop:"borderTop",themeKey:"borders",transform:Mn}),pC=Pe({prop:"borderRight",themeKey:"borders",transform:Mn}),hC=Pe({prop:"borderBottom",themeKey:"borders",transform:Mn}),mC=Pe({prop:"borderLeft",themeKey:"borders",transform:Mn}),gC=Pe({prop:"borderColor",themeKey:"palette"}),vC=Pe({prop:"borderTopColor",themeKey:"palette"}),yC=Pe({prop:"borderRightColor",themeKey:"palette"}),xC=Pe({prop:"borderBottomColor",themeKey:"palette"}),SC=Pe({prop:"borderLeftColor",themeKey:"palette"}),pu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ns(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Xr(t,r)});return kn(e,e.borderRadius,n)}return null};pu.propTypes={};pu.filterProps=["borderRadius"];fu(dC,fC,pC,hC,mC,gC,vC,yC,xC,SC,pu);const hu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ns(e.theme,"spacing",8),n=r=>({gap:Xr(t,r)});return kn(e,e.gap,n)}return null};hu.propTypes={};hu.filterProps=["gap"];const mu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ns(e.theme,"spacing",8),n=r=>({columnGap:Xr(t,r)});return kn(e,e.columnGap,n)}return null};mu.propTypes={};mu.filterProps=["columnGap"];const gu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ns(e.theme,"spacing",8),n=r=>({rowGap:Xr(t,r)});return kn(e,e.rowGap,n)}return null};gu.propTypes={};gu.filterProps=["rowGap"];const bC=Pe({prop:"gridColumn"}),wC=Pe({prop:"gridRow"}),CC=Pe({prop:"gridAutoFlow"}),kC=Pe({prop:"gridAutoColumns"}),RC=Pe({prop:"gridAutoRows"}),$C=Pe({prop:"gridTemplateColumns"}),EC=Pe({prop:"gridTemplateRows"}),PC=Pe({prop:"gridTemplateAreas"}),_C=Pe({prop:"gridArea"});fu(hu,mu,gu,bC,wC,CC,kC,RC,$C,EC,PC,_C);function Vo(e,t){return t==="grey"?t:e}const TC=Pe({prop:"color",themeKey:"palette",transform:Vo}),MC=Pe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vo}),OC=Pe({prop:"backgroundColor",themeKey:"palette",transform:Vo});fu(TC,MC,OC);function Dt(e){return e<=1&&e!==0?`${e*100}%`:e}const IC=Pe({prop:"width",transform:Dt}),yp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||hp[n]||Dt(n)}};return kn(e,e.maxWidth,t)}return null};yp.filterProps=["maxWidth"];const AC=Pe({prop:"minWidth",transform:Dt}),FC=Pe({prop:"height",transform:Dt}),LC=Pe({prop:"maxHeight",transform:Dt}),NC=Pe({prop:"minHeight",transform:Dt});Pe({prop:"size",cssProperty:"width",transform:Dt});Pe({prop:"size",cssProperty:"height",transform:Dt});const zC=Pe({prop:"boxSizing"});fu(IC,yp,AC,FC,LC,NC,zC);const DC={border:{themeKey:"borders",transform:Mn},borderTop:{themeKey:"borders",transform:Mn},borderRight:{themeKey:"borders",transform:Mn},borderBottom:{themeKey:"borders",transform:Mn},borderLeft:{themeKey:"borders",transform:Mn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pu},color:{themeKey:"palette",transform:Vo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vo},backgroundColor:{themeKey:"palette",transform:Vo},p:{style:Ue},pt:{style:Ue},pr:{style:Ue},pb:{style:Ue},pl:{style:Ue},px:{style:Ue},py:{style:Ue},padding:{style:Ue},paddingTop:{style:Ue},paddingRight:{style:Ue},paddingBottom:{style:Ue},paddingLeft:{style:Ue},paddingX:{style:Ue},paddingY:{style:Ue},paddingInline:{style:Ue},paddingInlineStart:{style:Ue},paddingInlineEnd:{style:Ue},paddingBlock:{style:Ue},paddingBlockStart:{style:Ue},paddingBlockEnd:{style:Ue},m:{style:We},mt:{style:We},mr:{style:We},mb:{style:We},ml:{style:We},mx:{style:We},my:{style:We},margin:{style:We},marginTop:{style:We},marginRight:{style:We},marginBottom:{style:We},marginLeft:{style:We},marginX:{style:We},marginY:{style:We},marginInline:{style:We},marginInlineStart:{style:We},marginInlineEnd:{style:We},marginBlock:{style:We},marginBlockStart:{style:We},marginBlockEnd:{style:We},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:hu},rowGap:{style:gu},columnGap:{style:mu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dt},maxWidth:{style:yp},minWidth:{transform:Dt},height:{transform:Dt},maxHeight:{transform:Dt},minHeight:{transform:Dt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},vu=DC;function jC(...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 BC(e,t){return typeof e=="function"?e(t):e}function VC(){function e(n,r,o,i){const s={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:c,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=du(o,u)||{};return d?d(s):kn(s,r,y=>{let v=Sa(f,c,y);return y===v&&typeof y=="string"&&(v=Sa(f,c,`${n}${y==="default"?"":Y(y)}`,y)),a===!1?v:{[a]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:vu;function l(a){let u=a;if(typeof a=="function")u=a(i);else if(typeof a!="object")return a;if(!u)return null;const c=wy(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(m=>{const y=BC(u[m],i);if(y!=null)if(typeof y=="object")if(s[m])f=es(f,e(m,y,i,s));else{const v=kn({theme:i},y,k=>({[m]:k}));jC(v,y)?f[m]=t({sx:y,theme:i}):f=es(f,v)}else f=es(f,e(m,y,i,s))}),Cy(d,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const Ry=VC();Ry.filterProps=["sx"];const yu=Ry,HC=["breakpoints","palette","spacing","shape"];function xu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=X(e,HC),l=Jw(n),a=cC(o);let u=Mt({breakpoints:l,direction:"ltr",components:{},palette:b({mode:"light"},r),spacing:a,shape:b({},tC,i)},s);return u=t.reduce((c,d)=>Mt(c,d),u),u.unstable_sxConfig=b({},vu,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return yu({sx:d,theme:this})},u}function WC(e){return Object.keys(e).length===0}function Su(e=null){const t=S.useContext(cu);return!t||WC(t)?e:t}const UC=xu();function bu(e=UC){return Su(e)}function GC({styles:e,themeId:t,defaultTheme:n={}}){const r=bu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return w.jsx(Yw,{styles:o})}const KC=["sx"],qC=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:vu;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function xp(e){const{sx:t}=e,n=X(e,KC),{systemProps:r,otherProps:o}=qC(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return Nr(l)?b({},r,l):r}:i=b({},r,t),b({},o,{sx:i})}function $y(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=$y(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ey(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$y(e))&&(r&&(r+=" "),r+=t);return r}const YC=["className","component"];function XC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=by("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(yu);return S.forwardRef(function(a,u){const c=bu(n),d=xp(a),{className:f,component:m="div"}=d,y=X(d,YC);return w.jsx(i,b({as:m,ref:u,className:Ey(f,o?o(r):r),theme:t&&c[t]||c},y))})}const QC=["variant"];function $m(e){return e.length===0}function Py(e){const{variant:t}=e,n=X(e,QC);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=$m(r)?e[o]:Y(e[o]):r+=`${$m(r)?o:Y(o)}${Y(e[o].toString())}`}),r}const ZC=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function JC(e){return Object.keys(e).length===0}function ek(e){return typeof e=="string"&&e.charCodeAt(0)>96}const tk=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,nk=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=Py(o.props);r[i]=o.style}),r},rk=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,l=[],a=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return a&&a.forEach(u=>{let c=!0;Object.keys(u.props).forEach(d=>{s[d]!==u.props[d]&&e[d]!==u.props[d]&&(c=!1)}),c&&l.push(t[Py(u.props)])}),l};function ts(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ok=xu();function Ri({defaultTheme:e,theme:t,themeId:n}){return JC(t)?e:t[n]||t}function _y(e={}){const{themeId:t,defaultTheme:n=ok,rootShouldForwardProp:r=ts,slotShouldForwardProp:o=ts}=e,i=s=>yu(b({},s,{theme:Ri(b({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{Xw(s,x=>x.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=l,m=X(l,ZC),y=c!==void 0?c:u&&u!=="Root"||!1,v=d||!1;let k,g=ts;u==="Root"?g=r:u?g=o:ek(s)&&(g=void 0);const p=by(s,b({shouldForwardProp:g,label:k},m)),h=(x,...C)=>{const R=C?C.map(P=>typeof P=="function"&&P.__emotion_real!==P?I=>P(b({},I,{theme:Ri(b({},I,{defaultTheme:n,themeId:t}))})):P):[];let $=x;a&&f&&R.push(P=>{const I=Ri(b({},P,{defaultTheme:n,themeId:t})),j=tk(a,I);if(j){const D={};return Object.entries(j).forEach(([A,_])=>{D[A]=typeof _=="function"?_(b({},P,{theme:I})):_}),f(P,D)}return null}),a&&!y&&R.push(P=>{const I=Ri(b({},P,{defaultTheme:n,themeId:t}));return rk(P,nk(a,I),I,a)}),v||R.push(i);const E=R.length-C.length;if(Array.isArray(x)&&E>0){const P=new Array(E).fill("");$=[...x,...P],$.raw=[...x.raw,...P]}else typeof x=="function"&&x.__emotion_real!==x&&($=P=>x(b({},P,{theme:Ri(b({},P,{defaultTheme:n,themeId:t}))})));const M=p($,...R);return s.muiName&&(M.muiName=s.muiName),M};return p.withConfig&&(h.withConfig=p.withConfig),h}}const ik=_y(),Ty=ik;function My(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:op(t.components[n].defaultProps,r)}function Oy({props:e,name:t,defaultTheme:n,themeId:r}){let o=bu(n);return r&&(o=o[r]||o),My({theme:o,name:t,props:e})}function Sp(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function sk(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 Qr(e){if(e.type)return e;if(e.charAt(0)==="#")return Qr(sk(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(wr(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(wr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function wu(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 lk(e){e=Qr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),wu({type:l,values:a})}function Em(e){e=Qr(e);let t=e.type==="hsl"||e.type==="hsla"?Qr(lk(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 ak(e,t){const n=Em(e),r=Em(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ft(e,t){return e=Qr(e),t=Sp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,wu(e)}function Iy(e,t){if(e=Qr(e),t=Sp(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 wu(e)}function Ay(e,t){if(e=Qr(e),t=Sp(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 wu(e)}const uk=S.createContext(null),Fy=uk;function Ly(){return S.useContext(Fy)}const ck=typeof Symbol=="function"&&Symbol.for,dk=ck?Symbol.for("mui.nested"):"__THEME_NESTED__";function fk(e,t){return typeof t=="function"?t(e):b({},e,t)}function pk(e){const{children:t,theme:n}=e,r=Ly(),o=S.useMemo(()=>{const i=r===null?n:fk(r,n);return i!=null&&(i[dk]=r!==null),i},[n,r]);return w.jsx(Fy.Provider,{value:o,children:t})}const Pm={};function _m(e,t,n,r=!1){return S.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?b({},t,{[e]:i}):i;return r?()=>s:s}return e?b({},t,{[e]:n}):b({},t,n)},[e,t,n,r])}function hk(e){const{children:t,theme:n,themeId:r}=e,o=Su(Pm),i=Ly()||Pm,s=_m(r,o,n),l=_m(r,i,n,!0);return w.jsx(pk,{theme:l,children:w.jsx(cu.Provider,{value:s,children:t})})}const mk=["component","direction","spacing","divider","children","className","useFlexGap"],gk=xu(),vk=Ty("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function yk(e){return Oy({props:e,name:"MuiStack",defaultTheme:gk})}function xk(e,t){const n=S.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(S.cloneElement(t,{key:`separator-${i}`})),r),[])}const Sk=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],bk=({ownerState:e,theme:t})=>{let n=b({display:"flex",flexDirection:"column"},kn({theme:t},Cc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=vp(t),o=Object.keys(t.breakpoints.values).reduce((a,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(a[u]=!0),a),{}),i=Cc({values:e.direction,base:o}),s=Cc({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((a,u,c)=>{if(!i[a]){const f=u>0?i[c[u-1]]:"column";i[a]=f}}),n=Mt(n,kn({theme:t},s,(a,u)=>e.useFlexGap?{gap:Xr(r,a)}:{"& > :not(style) + :not(style)":{margin:0,[`margin${Sk(u?i[u]:e.direction)}`]:Xr(r,a)}}))}return n=nC(t.breakpoints,n),n};function wk(e={}){const{createStyledComponent:t=vk,useThemeProps:n=yk,componentName:r="MuiStack"}=e,o=()=>me({root:["root"]},a=>pe(r,a),{}),i=t(bk);return S.forwardRef(function(a,u){const c=n(a),d=xp(c),{component:f="div",direction:m="column",spacing:y=0,divider:v,children:k,className:g,useFlexGap:p=!1}=d,h=X(d,mk),x={direction:m,spacing:y,useFlexGap:p},C=o();return w.jsx(i,b({as:f,ownerState:x,ref:u,className:Ey(C.root,g)},h,{children:v?xk(k,v):k}))})}function Ck(e,t,n,r,o){const[i,s]=S.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return rn(()=>{let l=!0;if(!n)return;const a=n(e),u=()=>{l&&s(a.matches)};return u(),a.addListener(u),()=>{l=!1,a.removeListener(u)}},[e,n]),i}const Ny=Kl["useSyncExternalStore"];function kk(e,t,n,r,o){const i=S.useCallback(()=>t,[t]),s=S.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,o,n]),[l,a]=S.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[i,n,e]);return Ny(a,l,s)}function Rk(e,t={}){const n=Su(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:l=!1}=My({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(Ny!==void 0?kk:Ck)(a,o,i,s,l)}const Zr="$$material";function $k(e,t){return b({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ek={black:"#000",white:"#fff"},$s=Ek,Pk={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"},_k=Pk,Tk={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"},mo=Tk,Mk={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"},go=Mk,Ok={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"},$i=Ok,Ik={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"},vo=Ik,Ak={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"},yo=Ak,Fk={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"},xo=Fk,Lk=["mode","contrastThreshold","tonalOffset"],Tm={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:$s.white,default:$s.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}},kc={text:{primary:$s.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:$s.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 Mm(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=Ay(e.main,o):t==="dark"&&(e.dark=Iy(e.main,i)))}function Nk(e="light"){return e==="dark"?{main:vo[200],light:vo[50],dark:vo[400]}:{main:vo[700],light:vo[400],dark:vo[800]}}function zk(e="light"){return e==="dark"?{main:mo[200],light:mo[50],dark:mo[400]}:{main:mo[500],light:mo[300],dark:mo[700]}}function Dk(e="light"){return e==="dark"?{main:go[500],light:go[300],dark:go[700]}:{main:go[700],light:go[400],dark:go[800]}}function jk(e="light"){return e==="dark"?{main:yo[400],light:yo[300],dark:yo[700]}:{main:yo[700],light:yo[500],dark:yo[900]}}function Bk(e="light"){return e==="dark"?{main:xo[400],light:xo[300],dark:xo[700]}:{main:xo[800],light:xo[500],dark:xo[900]}}function Vk(e="light"){return e==="dark"?{main:$i[400],light:$i[300],dark:$i[700]}:{main:"#ed6c02",light:$i[500],dark:$i[900]}}function Hk(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=X(e,Lk),i=e.primary||Nk(t),s=e.secondary||zk(t),l=e.error||Dk(t),a=e.info||jk(t),u=e.success||Bk(t),c=e.warning||Vk(t);function d(v){return ak(v,kc.text.primary)>=n?kc.text.primary:Tm.text.primary}const f=({color:v,name:k,mainShade:g=500,lightShade:p=300,darkShade:h=700})=>{if(v=b({},v),!v.main&&v[g]&&(v.main=v[g]),!v.hasOwnProperty("main"))throw new Error(wr(11,k?` (${k})`:"",g));if(typeof v.main!="string")throw new Error(wr(12,k?` (${k})`:"",JSON.stringify(v.main)));return Mm(v,"light",p,r),Mm(v,"dark",h,r),v.contrastText||(v.contrastText=d(v.main)),v},m={dark:kc,light:Tm};return Mt(b({common:b({},$s),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:u,name:"success"}),grey:_k,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},m[t]),o)}const Wk=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Uk(e){return Math.round(e*1e5)/1e5}const Om={textTransform:"uppercase"},Im='"Roboto", "Helvetica", "Arial", sans-serif';function Gk(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Im,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=X(n,Wk),m=o/14,y=d||(g=>`${g/u*m}rem`),v=(g,p,h,x,C)=>b({fontFamily:r,fontWeight:g,fontSize:y(p),lineHeight:h},r===Im?{letterSpacing:`${Uk(x/p)}em`}:{},C,c),k={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(l,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(l,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(l,14,1.75,.4,Om),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,Om),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mt(b({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},k),f,{clone:!1})}const Kk=.2,qk=.14,Yk=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Kk})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qk})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Yk})`].join(",")}const Xk=["none",Ne(0,2,1,-1,0,1,1,0,0,1,3,0),Ne(0,3,1,-2,0,2,2,0,0,1,5,0),Ne(0,3,3,-2,0,3,4,0,0,1,8,0),Ne(0,2,4,-1,0,4,5,0,0,1,10,0),Ne(0,3,5,-1,0,5,8,0,0,1,14,0),Ne(0,3,5,-1,0,6,10,0,0,1,18,0),Ne(0,4,5,-2,0,7,10,1,0,2,16,1),Ne(0,5,5,-3,0,8,10,1,0,3,14,2),Ne(0,5,6,-3,0,9,12,1,0,3,16,2),Ne(0,6,6,-3,0,10,14,1,0,4,18,3),Ne(0,6,7,-4,0,11,15,1,0,4,20,3),Ne(0,7,8,-4,0,12,17,2,0,5,22,4),Ne(0,7,8,-4,0,13,19,2,0,5,24,4),Ne(0,7,9,-4,0,14,21,2,0,5,26,4),Ne(0,8,9,-5,0,15,22,2,0,6,28,5),Ne(0,8,10,-5,0,16,24,2,0,6,30,5),Ne(0,8,11,-5,0,17,26,2,0,6,32,5),Ne(0,9,11,-5,0,18,28,2,0,7,34,6),Ne(0,9,12,-6,0,19,29,2,0,7,36,6),Ne(0,10,13,-6,0,20,31,3,0,8,38,7),Ne(0,10,13,-6,0,21,33,3,0,8,40,7),Ne(0,10,14,-6,0,22,35,3,0,8,42,7),Ne(0,11,14,-7,0,23,36,3,0,9,44,8),Ne(0,11,15,-7,0,24,38,3,0,9,46,8)],Qk=Xk,Zk=["duration","easing","delay"],Jk={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)"},eR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Am(e){return`${Math.round(e)}ms`}function tR(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function nR(e){const t=b({},Jk,e.easing),n=b({},eR,e.duration);return b({getAutoHeightDuration:tR,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=i;return X(i,Zk),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Am(s)} ${l} ${typeof a=="string"?a:Am(a)}`).join(",")}},e,{easing:t,duration:n})}const rR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},oR=rR,iR=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function bp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=X(e,iR);if(e.vars)throw new Error(wr(18));const l=Hk(r),a=xu(e);let u=Mt(a,{mixins:$k(a.breakpoints,n),palette:l,shadows:Qk.slice(),typography:Gk(l,i),transitions:nR(o),zIndex:b({},oR)});return u=Mt(u,s),u=t.reduce((c,d)=>Mt(c,d),u),u.unstable_sxConfig=b({},vu,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return yu({sx:d,theme:this})},u}const sR=bp(),Cu=sR;function ai(){const e=bu(Cu);return e[Zr]||e}function xe({props:e,name:t}){return Oy({props:e,name:t,defaultTheme:Cu,themeId:Zr})}const an=e=>ts(e)&&e!=="classes",wp=ts,lR=_y({themeId:Zr,defaultTheme:Cu,rootShouldForwardProp:an}),H=lR,aR=["theme"];function uR(e){let{theme:t}=e,n=X(e,aR);const r=t[Zr];return w.jsx(hk,b({},n,{themeId:r?Zr:void 0,theme:r||t}))}const cR=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Fm=cR,Nn=Object.create(null);Nn.open="0";Nn.close="1";Nn.ping="2";Nn.pong="3";Nn.message="4";Nn.upgrade="5";Nn.noop="6";const jl=Object.create(null);Object.keys(Nn).forEach(e=>{jl[Nn[e]]=e});const dR={type:"error",data:"parser error"},fR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pR=typeof ArrayBuffer=="function",hR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,zy=({type:e,data:t},n,r)=>fR&&t instanceof Blob?n?r(t):Lm(t,r):pR&&(t instanceof ArrayBuffer||hR(t))?n?r(t):Lm(new Blob([t]),r):r(Nn[e]+(t||"")),Lm=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},Nm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Nm.length;e++)Bi[Nm.charCodeAt(e)]=e;const mR=e=>{let t=e.length*.75,n=e.length,r,o=0,i,s,l,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)i=Bi[e.charCodeAt(r)],s=Bi[e.charCodeAt(r+1)],l=Bi[e.charCodeAt(r+2)],a=Bi[e.charCodeAt(r+3)],c[o++]=i<<2|s>>4,c[o++]=(s&15)<<4|l>>2,c[o++]=(l&3)<<6|a&63;return u},gR=typeof ArrayBuffer=="function",Dy=(e,t)=>{if(typeof e!="string")return{type:"message",data:jy(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:vR(e.substring(1),t)}:jl[n]?e.length>1?{type:jl[n],data:e.substring(1)}:{type:jl[n]}:dR},vR=(e,t)=>{if(gR){const n=mR(e);return jy(n,t)}else return{base64:!0,data:e}},jy=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},By=String.fromCharCode(30),yR=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{zy(i,!1,l=>{r[s]=l,++o===n&&t(r.join(By))})})},xR=(e,t)=>{const n=e.split(By),r=[];for(let o=0;o<n.length;o++){const i=Dy(n[o],t);if(r.push(i),i.type==="error")break}return r},Vy=4;function et(e){if(e)return SR(e)}function SR(e){for(var t in et.prototype)e[t]=et.prototype[t];return e}et.prototype.on=et.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};et.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};et.prototype.off=et.prototype.removeListener=et.prototype.removeAllListeners=et.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};et.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};et.prototype.emitReserved=et.prototype.emit;et.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};et.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Qt=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Hy(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const bR=Qt.setTimeout,wR=Qt.clearTimeout;function ku(e,t){t.useNativeTimers?(e.setTimeoutFn=bR.bind(Qt),e.clearTimeoutFn=wR.bind(Qt)):(e.setTimeoutFn=Qt.setTimeout.bind(Qt),e.clearTimeoutFn=Qt.clearTimeout.bind(Qt))}const CR=1.33;function kR(e){return typeof e=="string"?RR(e):Math.ceil((e.byteLength||e.size)*CR)}function RR(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}class $R extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Wy extends et{constructor(t){super(),this.writable=!1,ku(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new $R(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Dy(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const Uy="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Bd=64,ER={};let zm=0,cl=0,Dm;function jm(e){let t="";do t=Uy[e%Bd]+t,e=Math.floor(e/Bd);while(e>0);return t}function Gy(){const e=jm(+new Date);return e!==Dm?(zm=0,Dm=e):e+"."+jm(zm++)}for(;cl<Bd;cl++)ER[Uy[cl]]=cl;function Ky(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function PR(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}let qy=!1;try{qy=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const _R=qy;function Yy(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||_R))return new XMLHttpRequest}catch{}if(!t)try{return new Qt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function TR(){}const MR=function(){return new Yy({xdomain:!1}).responseType!=null}();class OR extends Wy{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==r}const n=t&&t.forceBase64;this.supportsBinary=MR&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};xR(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,yR(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Gy()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=Ky(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Fn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Fn extends et{constructor(t,n){super(),ku(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=Hy(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new Yy(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=Fn.requestsCount++,Fn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=TR,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Fn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Fn.requestsCount=0;Fn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Bm);else if(typeof addEventListener=="function"){const e="onpagehide"in Qt?"pagehide":"unload";addEventListener(e,Bm,!1)}}function Bm(){for(let e in Fn.requests)Fn.requests.hasOwnProperty(e)&&Fn.requests[e].abort()}const Xy=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),dl=Qt.WebSocket||Qt.MozWebSocket,Vm=!0,IR="arraybuffer",Hm=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class AR extends Wy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Hm?{}:Hy(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Vm&&!Hm?n?new dl(t,n):new dl(t):new dl(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||IR,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;zy(r,this.supportsBinary,i=>{const s={};try{Vm&&this.ws.send(i)}catch{}o&&Xy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Gy()),this.supportsBinary||(t.b64=1);const o=Ky(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!dl}}const FR={websocket:AR,polling:OR},LR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,NR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Vd(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=LR.exec(e||""),i={},s=14;for(;s--;)i[NR[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=zR(i,i.path),i.queryKey=DR(i,i.query),i}function zR(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function DR(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let Qy=class bo extends et{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Vd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Vd(n.host).host),ku(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=PR(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Vy,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new FR[t](r)}open(){let t;if(this.opts.rememberUpgrade&&bo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;bo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;bo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function l(){s("transport closed")}function a(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",l),this.off("close",a),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",l),this.once("close",a),this.once("upgrading",u),n.open()}onOpen(){if(this.readyState="open",bo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=kR(o)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){bo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;r<o;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};Qy.protocol=Vy;function jR(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Vd(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const BR=typeof ArrayBuffer=="function",VR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Zy=Object.prototype.toString,HR=typeof Blob=="function"||typeof Blob<"u"&&Zy.call(Blob)==="[object BlobConstructor]",WR=typeof File=="function"||typeof File<"u"&&Zy.call(File)==="[object FileConstructor]";function Cp(e){return BR&&(e instanceof ArrayBuffer||VR(e))||HR&&e instanceof Blob||WR&&e instanceof File}function Bl(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Bl(e[n]))return!0;return!1}if(Cp(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Bl(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Bl(e[n]))return!0;return!1}function UR(e){const t=[],n=e.data,r=e;return r.data=Hd(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Hd(e,t){if(!e)return e;if(Cp(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Hd(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Hd(e[r],t));return n}return e}function GR(e,t){return e.data=Wd(e.data,t),delete e.attachments,e}function Wd(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Wd(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Wd(e[n],t));return e}const KR=5;var be;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(be||(be={}));class qR{constructor(t){this.replacer=t}encode(t){return(t.type===be.EVENT||t.type===be.ACK)&&Bl(t)?this.encodeAsBinary({type:t.type===be.EVENT?be.BINARY_EVENT:be.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===be.BINARY_EVENT||t.type===be.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=UR(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class kp extends et{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===be.BINARY_EVENT;r||n.type===be.BINARY_ACK?(n.type=r?be.EVENT:be.ACK,this.reconstructor=new YR(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Cp(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(be[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===be.BINARY_EVENT||r.type===be.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(i,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const i=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(kp.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case be.CONNECT:return typeof n=="object";case be.DISCONNECT:return n===void 0;case be.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case be.EVENT:case be.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="string"||typeof n[0]=="number");case be.ACK:case be.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class YR{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=GR(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const XR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:kp,Encoder:qR,get PacketType(){return be},protocol:KR},Symbol.toStringTag,{value:"Module"}));function mn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const QR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Jy extends et{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[mn(t,"open",this.onopen.bind(this)),mn(t,"packet",this.onpacket.bind(this)),mn(t,"error",this.onerror.bind(this)),mn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(QR.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:be.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,l=n.pop();this._registerAckCallback(s,l),r.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},o);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,i)=>{n.push((s,l)=>r?s?i(s):o(l):o(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:be.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case be.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case be.EVENT:case be.BINARY_EVENT:this.onevent(t);break;case be.ACK:case be.BINARY_ACK:this.onack(t);break;case be.DISCONNECT:this.ondisconnect();break;case be.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:be.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:be.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function ui(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ui.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};ui.prototype.reset=function(){this.attempts=0};ui.prototype.setMin=function(e){this.ms=e};ui.prototype.setMax=function(e){this.max=e};ui.prototype.setJitter=function(e){this.jitter=e};class Ud extends et{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ku(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ui({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||XR;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Qy(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=mn(n,"open",function(){r.onopen(),t&&t()}),i=mn(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),t?t(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const l=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&l.unref(),this.subs.push(function(){clearTimeout(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(mn(t,"ping",this.onping.bind(this)),mn(t,"data",this.ondata.bind(this)),mn(t,"error",this.onerror.bind(this)),mn(t,"close",this.onclose.bind(this)),mn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Xy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Jy(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ei={};function Vl(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=jR(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ei[o]&&i in Ei[o].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let a;return l?a=new Ud(r,t):(Ei[o]||(Ei[o]=new Ud(r,t)),a=Ei[o]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(Vl,{Manager:Ud,Socket:Jy,io:Vl,connect:Vl});var ZR=!0,Rc="Invariant failed";function e1(e,t){if(!e){if(ZR)throw new Error(Rc);var n=typeof t=="function"?t():t,r=n?"".concat(Rc,": ").concat(n):Rc;throw new Error(r)}}function t1(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=t1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function J(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=t1(e))&&(r&&(r+=" "),r+=t);return r}function xr(e){return typeof e=="string"}function Vi(e,t,n){return e===void 0||xr(e)?t:b({},t,{ownerState:b({},t.ownerState,n)})}function JR(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const e$={disableDefaultClasses:!1},t$=S.createContext(e$);function n1(e){const{disableDefaultClasses:t}=S.useContext(t$);return n=>t?"":e(n)}function n$(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 Gd(e,t){return typeof e=="function"?e(t):e}function r1(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=r1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Wm(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=r1(e))&&(r&&(r+=" "),r+=t);return r}function Um(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 r$(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=Wm(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),y=b({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=b({},n,o,r);return m.length>0&&(v.className=m),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const s=n$(b({},o,r)),l=Um(r),a=Um(o),u=t(s),c=Wm(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=b({},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=b({},u,n,a,l);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const o$=["elementType","externalSlotProps","ownerState"];function pn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=X(e,o$),s=Gd(r,o),{props:l,internalRef:a}=r$(b({},i,{externalSlotProps:s})),u=Xe(a,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Vi(n,b({},l,{ref:u}),o)}const i$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function s$(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 l$(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 a$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||l$(e))}function u$(e){const t=[],n=[];return Array.from(e.querySelectorAll(i$)).forEach((r,o)=>{const i=s$(r);i===-1||!a$(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 c$(){return!0}function d$(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=u$,isEnabled:s=c$,open:l}=e,a=S.useRef(!1),u=S.useRef(null),c=S.useRef(null),d=S.useRef(null),f=S.useRef(null),m=S.useRef(!1),y=S.useRef(null),v=Xe(t.ref,y),k=S.useRef(null);S.useEffect(()=>{!l||!y.current||(m.current=!n)},[n,l]),S.useEffect(()=>{if(!l||!y.current)return;const h=tt(y.current);return y.current.contains(h.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),m.current&&y.current.focus()),()=>{o||(d.current&&d.current.focus&&(a.current=!0,d.current.focus()),d.current=null)}},[l]),S.useEffect(()=>{if(!l||!y.current)return;const h=tt(y.current),x=$=>{const{current:E}=y;if(E!==null){if(!h.hasFocus()||r||!s()||a.current){a.current=!1;return}if(!E.contains(h.activeElement)){if($&&f.current!==$.target||h.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!m.current)return;let I=[];if((h.activeElement===u.current||h.activeElement===c.current)&&(I=i(y.current)),I.length>0){var M,P;const j=!!((M=k.current)!=null&&M.shiftKey&&((P=k.current)==null?void 0:P.key)==="Tab"),D=I[0],A=I[I.length-1];typeof D!="string"&&typeof A!="string"&&(j?A.focus():D.focus())}else E.focus()}}},C=$=>{k.current=$,!(r||!s()||$.key!=="Tab")&&h.activeElement===y.current&&$.shiftKey&&(a.current=!0,c.current&&c.current.focus())};h.addEventListener("focusin",x),h.addEventListener("keydown",C,!0);const R=setInterval(()=>{h.activeElement&&h.activeElement.tagName==="BODY"&&x(null)},50);return()=>{clearInterval(R),h.removeEventListener("focusin",x),h.removeEventListener("keydown",C,!0)}},[n,r,o,s,l,i]);const g=h=>{d.current===null&&(d.current=h.relatedTarget),m.current=!0,f.current=h.target;const x=t.props.onFocus;x&&x(h)},p=h=>{d.current===null&&(d.current=h.relatedTarget),m.current=!0};return w.jsxs(S.Fragment,{children:[w.jsx("div",{tabIndex:l?0:-1,onFocus:p,ref:u,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:v,onFocus:g}),w.jsx("div",{tabIndex:l?0:-1,onFocus:p,ref:c,"data-testid":"sentinelEnd"})]})}var Ot="top",on="bottom",sn="right",It="left",Rp="auto",zs=[Ot,on,sn,It],Zo="start",Es="end",f$="clippingParents",o1="viewport",Pi="popper",p$="reference",Gm=zs.reduce(function(e,t){return e.concat([t+"-"+Zo,t+"-"+Es])},[]),i1=[].concat(zs,[Rp]).reduce(function(e,t){return e.concat([t,t+"-"+Zo,t+"-"+Es])},[]),h$="beforeRead",m$="read",g$="afterRead",v$="beforeMain",y$="main",x$="afterMain",S$="beforeWrite",b$="write",w$="afterWrite",C$=[h$,m$,g$,v$,y$,x$,S$,b$,w$];function zn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jr(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function en(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $p(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k$(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];!en(i)||!zn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function R$(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]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(a,u){return a[u]="",a},{});!en(o)||!zn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const $$={name:"applyStyles",enabled:!0,phase:"write",fn:k$,effect:R$,requires:["computeStyles"]};function Ln(e){return e.split("-")[0]}var Wr=Math.max,ba=Math.min,Jo=Math.round;function Kd(){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 s1(){return!/^((?!chrome|android).)*safari/i.test(Kd())}function ei(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&en(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Jr(e)?Wt(e):window,l=s.visualViewport,a=!s1()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,c=(r.top+(a&&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 Ep(e){var t=ei(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 l1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$p(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qn(e){return Wt(e).getComputedStyle(e)}function E$(e){return["table","td","th"].indexOf(zn(e))>=0}function Pr(e){return((Jr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ru(e){return zn(e)==="html"?e:e.assignedSlot||e.parentNode||($p(e)?e.host:null)||Pr(e)}function Km(e){return!en(e)||Qn(e).position==="fixed"?null:e.offsetParent}function P$(e){var t=/firefox/i.test(Kd()),n=/Trident/i.test(Kd());if(n&&en(e)){var r=Qn(e);if(r.position==="fixed")return null}var o=Ru(e);for($p(o)&&(o=o.host);en(o)&&["html","body"].indexOf(zn(o))<0;){var i=Qn(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 Ds(e){for(var t=Wt(e),n=Km(e);n&&E$(n)&&Qn(n).position==="static";)n=Km(n);return n&&(zn(n)==="html"||zn(n)==="body"&&Qn(n).position==="static")?t:n||P$(e)||t}function Pp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ns(e,t,n){return Wr(e,ba(t,n))}function _$(e,t,n){var r=ns(e,t,n);return r>n?n:r}function a1(){return{top:0,right:0,bottom:0,left:0}}function u1(e){return Object.assign({},a1(),e)}function c1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T$=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,u1(typeof t!="number"?t:c1(t,zs))};function M$(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Ln(n.placement),a=Pp(l),u=[It,sn].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!s)){var d=T$(o.padding,n),f=Ep(i),m=a==="y"?Ot:It,y=a==="y"?on:sn,v=n.rects.reference[c]+n.rects.reference[a]-s[a]-n.rects.popper[c],k=s[a]-n.rects.reference[a],g=Ds(i),p=g?a==="y"?g.clientHeight||0:g.clientWidth||0:0,h=v/2-k/2,x=d[m],C=p-f[c]-d[y],R=p/2-f[c]/2+h,$=ns(x,R,C),E=a;n.modifiersData[r]=(t={},t[E]=$,t.centerOffset=$-R,t)}}function O$(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)||l1(t.elements.popper,o)&&(t.elements.arrow=o))}const I$={name:"arrow",enabled:!0,phase:"main",fn:M$,effect:O$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(e){return e.split("-")[1]}var A$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function F$(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function qm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,m=f===void 0?0:f,y=s.y,v=y===void 0?0:y,k=typeof c=="function"?c({x:m,y:v}):{x:m,y:v};m=k.x,v=k.y;var g=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),h=It,x=Ot,C=window;if(u){var R=Ds(n),$="clientHeight",E="clientWidth";if(R===Wt(n)&&(R=Pr(n),Qn(R).position!=="static"&&l==="absolute"&&($="scrollHeight",E="scrollWidth")),R=R,o===Ot||(o===It||o===sn)&&i===Es){x=on;var M=d&&R===C&&C.visualViewport?C.visualViewport.height:R[$];v-=M-r.height,v*=a?1:-1}if(o===It||(o===Ot||o===on)&&i===Es){h=sn;var P=d&&R===C&&C.visualViewport?C.visualViewport.width:R[E];m-=P-r.width,m*=a?1:-1}}var I=Object.assign({position:l},u&&A$),j=c===!0?F$({x:m,y:v},Wt(n)):{x:m,y:v};if(m=j.x,v=j.y,a){var D;return Object.assign({},I,(D={},D[x]=p?"0":"",D[h]=g?"0":"",D.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",D))}return Object.assign({},I,(t={},t[x]=p?v+"px":"",t[h]=g?m+"px":"",t.transform="",t))}function L$(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:Ln(t.placement),variation:ti(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,qm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const N$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:L$,data:{}};var fl={passive:!0};function z$(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=Wt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,fl)}),l&&a.addEventListener("resize",n.update,fl),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,fl)}),l&&a.removeEventListener("resize",n.update,fl)}}const D$={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:z$,data:{}};var j$={left:"right",right:"left",bottom:"top",top:"bottom"};function Hl(e){return e.replace(/left|right|bottom|top/g,function(t){return j$[t]})}var B$={start:"end",end:"start"};function Ym(e){return e.replace(/start|end/g,function(t){return B$[t]})}function _p(e){var t=Wt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Tp(e){return ei(Pr(e)).left+_p(e).scrollLeft}function V$(e,t){var n=Wt(e),r=Pr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var u=s1();(u||!u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+Tp(e),y:a}}function H$(e){var t,n=Pr(e),r=_p(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Wr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Wr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Tp(e),a=-r.scrollTop;return Qn(o||n).direction==="rtl"&&(l+=Wr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function Mp(e){var t=Qn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function d1(e){return["html","body","#document"].indexOf(zn(e))>=0?e.ownerDocument.body:en(e)&&Mp(e)?e:d1(Ru(e))}function rs(e,t){var n;t===void 0&&(t=[]);var r=d1(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Wt(r),s=o?[i].concat(i.visualViewport||[],Mp(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(rs(Ru(s)))}function qd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function W$(e,t){var n=ei(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 Xm(e,t,n){return t===o1?qd(V$(e,n)):Jr(t)?W$(t,n):qd(H$(Pr(e)))}function U$(e){var t=rs(Ru(e)),n=["absolute","fixed"].indexOf(Qn(e).position)>=0,r=n&&en(e)?Ds(e):e;return Jr(r)?t.filter(function(o){return Jr(o)&&l1(o,r)&&zn(o)!=="body"}):[]}function G$(e,t,n,r){var o=t==="clippingParents"?U$(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(a,u){var c=Xm(e,u,r);return a.top=Wr(c.top,a.top),a.right=ba(c.right,a.right),a.bottom=ba(c.bottom,a.bottom),a.left=Wr(c.left,a.left),a},Xm(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function f1(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ln(r):null,i=r?ti(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case Ot:a={x:s,y:t.y-n.height};break;case on:a={x:s,y:t.y+t.height};break;case sn:a={x:t.x+t.width,y:l};break;case It:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=o?Pp(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Zo:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Es:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function Ps(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,a=l===void 0?f$:l,u=n.rootBoundary,c=u===void 0?o1:u,d=n.elementContext,f=d===void 0?Pi:d,m=n.altBoundary,y=m===void 0?!1:m,v=n.padding,k=v===void 0?0:v,g=u1(typeof k!="number"?k:c1(k,zs)),p=f===Pi?p$:Pi,h=e.rects.popper,x=e.elements[y?p:f],C=G$(Jr(x)?x:x.contextElement||Pr(e.elements.popper),a,c,s),R=ei(e.elements.reference),$=f1({reference:R,element:h,strategy:"absolute",placement:o}),E=qd(Object.assign({},h,$)),M=f===Pi?E:R,P={top:C.top-M.top+g.top,bottom:M.bottom-C.bottom+g.bottom,left:C.left-M.left+g.left,right:M.right-C.right+g.right},I=e.modifiersData.offset;if(f===Pi&&I){var j=I[o];Object.keys(P).forEach(function(D){var A=[sn,on].indexOf(D)>=0?1:-1,_=[Ot,on].indexOf(D)>=0?"y":"x";P[D]+=j[_]*A})}return P}function K$(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?i1:a,c=ti(r),d=c?l?Gm:Gm.filter(function(y){return ti(y)===c}):zs,f=d.filter(function(y){return u.indexOf(y)>=0});f.length===0&&(f=d);var m=f.reduce(function(y,v){return y[v]=Ps(e,{placement:v,boundary:o,rootBoundary:i,padding:s})[Ln(v)],y},{});return Object.keys(m).sort(function(y,v){return m[y]-m[v]})}function q$(e){if(Ln(e)===Rp)return[];var t=Hl(e);return[Ym(e),t,Ym(t)]}function Y$(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,s=n.altAxis,l=s===void 0?!0:s,a=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,v=n.allowedAutoPlacements,k=t.options.placement,g=Ln(k),p=g===k,h=a||(p||!y?[Hl(k)]:q$(k)),x=[k].concat(h).reduce(function(te,Q){return te.concat(Ln(Q)===Rp?K$(t,{placement:Q,boundary:c,rootBoundary:d,padding:u,flipVariations:y,allowedAutoPlacements:v}):Q)},[]),C=t.rects.reference,R=t.rects.popper,$=new Map,E=!0,M=x[0],P=0;P<x.length;P++){var I=x[P],j=Ln(I),D=ti(I)===Zo,A=[Ot,on].indexOf(j)>=0,_=A?"width":"height",O=Ps(t,{placement:I,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),N=A?D?sn:It:D?on:Ot;C[_]>R[_]&&(N=Hl(N));var T=Hl(N),L=[];if(i&&L.push(O[j]<=0),l&&L.push(O[N]<=0,O[T]<=0),L.every(function(te){return te})){M=I,E=!1;break}$.set(I,L)}if(E)for(var F=y?3:1,q=function(Q){var se=x.find(function(Ce){var Se=$.get(Ce);if(Se)return Se.slice(0,Q).every(function(ae){return ae})});if(se)return M=se,"break"},G=F;G>0;G--){var oe=q(G);if(oe==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const X$={name:"flip",enabled:!0,phase:"main",fn:Y$,requiresIfExists:["offset"],data:{_skip:!1}};function Qm(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 Zm(e){return[Ot,sn,on,It].some(function(t){return e[t]>=0})}function Q$(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ps(t,{elementContext:"reference"}),l=Ps(t,{altBoundary:!0}),a=Qm(s,r),u=Qm(l,o,i),c=Zm(a),d=Zm(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Z$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Q$};function J$(e,t,n){var r=Ln(e),o=[It,Ot].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[It,sn].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function eE(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=i1.reduce(function(c,d){return c[d]=J$(d,t.rects,i),c},{}),l=s[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const tE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eE};function nE(e){var t=e.state,n=e.name;t.modifiersData[n]=f1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rE={name:"popperOffsets",enabled:!0,phase:"read",fn:nE,data:{}};function oE(e){return e==="x"?"y":"x"}function iE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,m=f===void 0?!0:f,y=n.tetherOffset,v=y===void 0?0:y,k=Ps(t,{boundary:a,rootBoundary:u,padding:d,altBoundary:c}),g=Ln(t.placement),p=ti(t.placement),h=!p,x=Pp(g),C=oE(x),R=t.modifiersData.popperOffsets,$=t.rects.reference,E=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,P=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(R){if(i){var D,A=x==="y"?Ot:It,_=x==="y"?on:sn,O=x==="y"?"height":"width",N=R[x],T=N+k[A],L=N-k[_],F=m?-E[O]/2:0,q=p===Zo?$[O]:E[O],G=p===Zo?-E[O]:-$[O],oe=t.elements.arrow,te=m&&oe?Ep(oe):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:a1(),se=Q[A],Ce=Q[_],Se=ns(0,$[O],te[O]),ae=h?$[O]/2-F-Se-se-P.mainAxis:q-Se-se-P.mainAxis,_e=h?-$[O]/2+F+Se+Ce+P.mainAxis:G+Se+Ce+P.mainAxis,Z=t.elements.arrow&&Ds(t.elements.arrow),we=Z?x==="y"?Z.clientTop||0:Z.clientLeft||0:0,Ie=(D=I==null?void 0:I[x])!=null?D:0,ge=N+ae-Ie-we,ue=N+_e-Ie,nt=ns(m?ba(T,ge):T,N,m?Wr(L,ue):L);R[x]=nt,j[x]=nt-N}if(l){var he,Ke=x==="x"?Ot:It,St=x==="x"?on:sn,de=R[C],ke=C==="y"?"height":"width",it=de+k[Ke],He=de-k[St],B=[Ot,It].indexOf(g)!==-1,W=(he=I==null?void 0:I[C])!=null?he:0,ne=B?it:de-$[ke]-E[ke]-W+P.altAxis,ie=B?de+$[ke]+E[ke]-W-P.altAxis:He,re=m&&B?_$(ne,de,ie):ns(m?ne:it,de,m?ie:He);R[C]=re,j[C]=re-de}t.modifiersData[r]=j}}const sE={name:"preventOverflow",enabled:!0,phase:"main",fn:iE,requiresIfExists:["offset"]};function lE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aE(e){return e===Wt(e)||!en(e)?_p(e):lE(e)}function uE(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function cE(e,t,n){n===void 0&&(n=!1);var r=en(t),o=en(t)&&uE(t),i=Pr(t),s=ei(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((zn(t)!=="body"||Mp(i))&&(l=aE(t)),en(t)?(a=ei(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=Tp(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function dE(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 s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function fE(e){var t=dE(e);return C$.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function pE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function hE(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 Jm={placement:"bottom",modifiers:[],strategy:"absolute"};function eg(){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 mE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Jm:o;return function(l,a,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jm,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},d=[],f=!1,m={state:c,setOptions:function(g){var p=typeof g=="function"?g(c.options):g;v(),c.options=Object.assign({},i,c.options,p),c.scrollParents={reference:Jr(l)?rs(l):l.contextElement?rs(l.contextElement):[],popper:rs(a)};var h=fE(hE([].concat(r,c.options.modifiers)));return c.orderedModifiers=h.filter(function(x){return x.enabled}),y(),m.update()},forceUpdate:function(){if(!f){var g=c.elements,p=g.reference,h=g.popper;if(eg(p,h)){c.rects={reference:cE(p,Ds(h),c.options.strategy==="fixed"),popper:Ep(h)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var x=0;x<c.orderedModifiers.length;x++){if(c.reset===!0){c.reset=!1,x=-1;continue}var C=c.orderedModifiers[x],R=C.fn,$=C.options,E=$===void 0?{}:$,M=C.name;typeof R=="function"&&(c=R({state:c,options:E,name:M,instance:m})||c)}}}},update:pE(function(){return new Promise(function(k){m.forceUpdate(),k(c)})}),destroy:function(){v(),f=!0}};if(!eg(l,a))return m;m.setOptions(u).then(function(k){!f&&u.onFirstUpdate&&u.onFirstUpdate(k)});function y(){c.orderedModifiers.forEach(function(k){var g=k.name,p=k.options,h=p===void 0?{}:p,x=k.effect;if(typeof x=="function"){var C=x({state:c,name:g,instance:m,options:h}),R=function(){};d.push(C||R)}})}function v(){d.forEach(function(k){return k()}),d=[]}return m}}var gE=[D$,rE,N$,$$,tE,X$,sE,I$,Z$],vE=mE({defaultModifiers:gE});function yE(e){return typeof e=="function"?e():e}const xE=S.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,l]=S.useState(null),a=Xe(S.isValidElement(r)?r.ref:null,n);if(rn(()=>{i||l(yE(o)||document.body)},[o,i]),rn(()=>{if(s&&!i)return ya(n,s),()=>{ya(n,null)}},[n,s,i]),i){if(S.isValidElement(r)){const u={ref:a};return S.cloneElement(r,u)}return w.jsx(S.Fragment,{children:r})}return w.jsx(S.Fragment,{children:s&&Ka.createPortal(r,s)})}),p1=xE;function SE(e){return pe("MuiPopper",e)}fe("MuiPopper",["root"]);const bE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],wE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function CE(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 Yd(e){return typeof e=="function"?e():e}function kE(e){return e.nodeType!==void 0}const RE=()=>me({root:["root"]},n1(SE)),$E={},EE=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:a,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:m={},slots:y={},TransitionProps:v}=t,k=X(t,bE),g=S.useRef(null),p=Xe(g,n),h=S.useRef(null),x=Xe(h,f),C=S.useRef(x);rn(()=>{C.current=x},[x]),S.useImperativeHandle(f,()=>h.current,[]);const R=CE(c,s),[$,E]=S.useState(R),[M,P]=S.useState(Yd(o));S.useEffect(()=>{h.current&&h.current.forceUpdate()}),S.useEffect(()=>{o&&P(Yd(o))},[o]),rn(()=>{if(!M||!u)return;const _=T=>{E(T.placement)};let O=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:T})=>{_(T)}}];a!=null&&(O=O.concat(a)),d&&d.modifiers!=null&&(O=O.concat(d.modifiers));const N=vE(M,g.current,b({placement:R},d,{modifiers:O}));return C.current(N),()=>{N.destroy(),C.current(null)}},[M,l,a,u,d,R]);const I={placement:$};v!==null&&(I.TransitionProps=v);const j=RE(),D=(r=y.root)!=null?r:"div",A=pn({elementType:D,externalSlotProps:m.root,externalForwardedProps:k,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:j.root});return w.jsx(D,b({},A,{children:typeof i=="function"?i(I):i}))}),PE=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=$E,popperRef:m,style:y,transition:v=!1,slotProps:k={},slots:g={}}=t,p=X(t,wE),[h,x]=S.useState(!0),C=()=>{x(!1)},R=()=>{x(!0)};if(!a&&!c&&(!v||h))return null;let $;if(i)$=i;else if(r){const P=Yd(r);$=P&&kE(P)?tt(P).body:tt(null).body}const E=!c&&a&&(!v||h)?"none":void 0,M=v?{in:c,onEnter:C,onExited:R}:void 0;return w.jsx(p1,{disablePortal:l,container:$,children:w.jsx(EE,b({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:v?!h:c,placement:d,popperOptions:f,popperRef:m,slotProps:k,slots:g},p,{style:b({position:"fixed",top:0,left:0,display:E},y),TransitionProps:M,children:o}))})}),_E=PE;function TE(e){const t=tt(e);return t.body===e?Cr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function os(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tg(e){return parseInt(Cr(e).getComputedStyle(e).paddingRight,10)||0}function ME(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 ng(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const l=i.indexOf(s)===-1,a=!ME(s);l&&a&&os(s,o)})}function $c(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function OE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(TE(r)){const s=ny(tt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${tg(r)+s}px`;const l=tt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${tg(a)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=tt(r).body;else{const s=r.parentElement,l=Cr(r);i=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s: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:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function IE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class AE{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&&os(t.modalRef,!1);const o=IE(n);ng(n,t.mount,t.modalRef,o,!0);const i=$c(this.containers,s=>s.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=$c(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=OE(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=$c(this.containers,s=>s.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&&os(t.modalRef,n),ng(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&os(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function FE(e){return pe("MuiModal",e)}fe("MuiModal",["root","hidden","backdrop"]);const LE=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],NE=e=>{const{open:t,exited:n}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},n1(FE))};function zE(e){return typeof e=="function"?e():e}function DE(e){return e?e.props.hasOwnProperty("in"):!1}const jE=new AE,BE=S.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:s=!1,container:l,disableAutoFocus:a=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:c=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:m=!1,hideBackdrop:y=!1,keepMounted:v=!1,manager:k=jE,onBackdropClick:g,onClose:p,onKeyDown:h,open:x,onTransitionEnter:C,onTransitionExited:R,slotProps:$={},slots:E={}}=t,M=X(t,LE),P=k,[I,j]=S.useState(!x),D=S.useRef({}),A=S.useRef(null),_=S.useRef(null),O=Xe(_,n),N=DE(i),T=(r=t["aria-hidden"])!=null?r:!0,L=()=>tt(A.current),F=()=>(D.current.modalRef=_.current,D.current.mountNode=A.current,D.current),q=()=>{P.mount(F(),{disableScrollLock:m}),_.current&&(_.current.scrollTop=0)},G=vn(()=>{const he=zE(l)||L().body;P.add(F(),he),_.current&&q()}),oe=S.useCallback(()=>P.isTopModal(F()),[P]),te=vn(he=>{A.current=he,!(!he||!_.current)&&(x&&oe()?q():os(_.current,T))}),Q=S.useCallback(()=>{P.remove(F(),T)},[P,T]);S.useEffect(()=>()=>{Q()},[Q]),S.useEffect(()=>{x?G():(!N||!s)&&Q()},[x,Q,N,s,G]);const se=b({},t,{closeAfterTransition:s,disableAutoFocus:a,disableEnforceFocus:u,disableEscapeKeyDown:c,disablePortal:d,disableRestoreFocus:f,disableScrollLock:m,exited:I,hideBackdrop:y,keepMounted:v}),Ce=NE(se),Se=()=>{j(!1),C&&C()},ae=()=>{j(!0),R&&R(),s&&Q()},_e=he=>{he.target===he.currentTarget&&(g&&g(he),p&&p(he,"backdropClick"))},Z=he=>{h&&h(he),!(he.key!=="Escape"||!oe())&&(c||(he.stopPropagation(),p&&p(he,"escapeKeyDown")))},we={};i.props.tabIndex===void 0&&(we.tabIndex="-1"),N&&(we.onEnter=Ld(Se,i.props.onEnter),we.onExited=Ld(ae,i.props.onExited));const Ie=(o=E.root)!=null?o:"div",ge=pn({elementType:Ie,externalSlotProps:$.root,externalForwardedProps:M,additionalProps:{ref:O,role:"presentation",onKeyDown:Z},className:Ce.root,ownerState:se}),ue=E.backdrop,nt=pn({elementType:ue,externalSlotProps:$.backdrop,additionalProps:{"aria-hidden":!0,onClick:_e,open:x},className:Ce.backdrop,ownerState:se});return!v&&!x&&(!N||I)?null:w.jsx(p1,{ref:te,container:l,disablePortal:d,children:w.jsxs(Ie,b({},ge,{children:[!y&&ue?w.jsx(ue,b({},nt)):null,w.jsx(d$,{disableEnforceFocus:u,disableAutoFocus:a,disableRestoreFocus:f,isEnabled:oe,open:x,children:S.cloneElement(i,we)})]}))})}),VE=BE,HE=2;function h1(e,t){return e-t}function _i(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function rg(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const l=Math.abs(t-i);return o===null||l<o.distance||l===o.distance?{distance:l,index:s}:o},null))!=null?n:{};return r}function pl(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function wa(e,t,n){return(e-t)*100/(n-t)}function WE(e,t,n){return(n-t)*e+t}function UE(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function GE(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(UE(t)))}function og({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(h1)}function hl({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=tt(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var s;(s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function ml(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?JR(e,t):!1}const KE={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},qE=e=>e;let gl;function Ec(){return gl===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gl=CSS.supports("touch-action","none"):gl=!0),gl}function YE(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:a=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:m,scale:y=qE,step:v=1,tabIndex:k,value:g}=e,p=S.useRef(),[h,x]=S.useState(-1),[C,R]=S.useState(-1),[$,E]=S.useState(!1),M=S.useRef(0),[P,I]=Xo({controlled:g,default:n??a,name:"Slider"}),j=c&&((B,W,ne)=>{const ie=B.nativeEvent||B,re=new ie.constructor(ie.type,ie);Object.defineProperty(re,"target",{writable:!0,value:{value:W,name:u}}),c(re,W,ne)}),D=Array.isArray(P);let A=D?P.slice().sort(h1):[P];A=A.map(B=>_i(B,a,l));const _=s===!0&&v!==null?[...Array(Math.floor((l-a)/v)+1)].map((B,W)=>({value:a+v*W})):s||[],O=_.map(B=>B.value),{isFocusVisibleRef:N,onBlur:T,onFocus:L,ref:F}=Xa(),[q,G]=S.useState(-1),oe=S.useRef(),te=Xe(F,oe),Q=Xe(m,te),se=B=>W=>{var ne;const ie=Number(W.currentTarget.getAttribute("data-index"));L(W),N.current===!0&&G(ie),R(ie),B==null||(ne=B.onFocus)==null||ne.call(B,W)},Ce=B=>W=>{var ne;T(W),N.current===!1&&G(-1),R(-1),B==null||(ne=B.onBlur)==null||ne.call(B,W)};rn(()=>{if(r&&oe.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&h!==-1&&x(-1),r&&q!==-1&&G(-1);const Se=B=>W=>{var ne;(ne=B.onChange)==null||ne.call(B,W);const ie=Number(W.currentTarget.getAttribute("data-index")),re=A[ie],U=O.indexOf(re);let V=W.target.valueAsNumber;if(_&&v==null&&(V=V<re?O[U-1]:O[U+1]),V=_i(V,a,l),_&&v==null){const le=O.indexOf(A[ie]);V=V<A[ie]?O[le-1]:O[le+1]}if(D){o&&(V=_i(V,A[ie-1]||-1/0,A[ie+1]||1/0));const le=V;V=og({values:A,newValue:V,index:ie});let ee=ie;o||(ee=V.indexOf(le)),hl({sliderRef:oe,activeIndex:ee})}I(V),G(ie),j&&!ml(V,P)&&j(W,V,ie),d&&d(W,V)},ae=S.useRef();let _e=f;i&&f==="horizontal"&&(_e+="-reverse");const Z=({finger:B,move:W=!1})=>{const{current:ne}=oe,{width:ie,height:re,bottom:U,left:V}=ne.getBoundingClientRect();let le;_e.indexOf("vertical")===0?le=(U-B.y)/re:le=(B.x-V)/ie,_e.indexOf("-reverse")!==-1&&(le=1-le);let ee;if(ee=WE(le,a,l),v)ee=GE(ee,v,a);else{const Ft=rg(O,ee);ee=O[Ft]}ee=_i(ee,a,l);let qe=0;if(D){W?qe=ae.current:qe=rg(A,ee),o&&(ee=_i(ee,A[qe-1]||-1/0,A[qe+1]||1/0));const Ft=ee;ee=og({values:A,newValue:ee,index:qe}),o&&W||(qe=ee.indexOf(Ft),ae.current=qe)}return{newValue:ee,activeIndex:qe}},we=vn(B=>{const W=pl(B,p);if(!W)return;if(M.current+=1,B.type==="mousemove"&&B.buttons===0){Ie(B);return}const{newValue:ne,activeIndex:ie}=Z({finger:W,move:!0});hl({sliderRef:oe,activeIndex:ie,setActive:x}),I(ne),!$&&M.current>HE&&E(!0),j&&!ml(ne,P)&&j(B,ne,ie)}),Ie=vn(B=>{const W=pl(B,p);if(E(!1),!W)return;const{newValue:ne}=Z({finger:W,move:!0});x(-1),B.type==="touchend"&&R(-1),d&&d(B,ne),p.current=void 0,ue()}),ge=vn(B=>{if(r)return;Ec()||B.preventDefault();const W=B.changedTouches[0];W!=null&&(p.current=W.identifier);const ne=pl(B,p);if(ne!==!1){const{newValue:re,activeIndex:U}=Z({finger:ne});hl({sliderRef:oe,activeIndex:U,setActive:x}),I(re),j&&!ml(re,P)&&j(B,re,U)}M.current=0;const ie=tt(oe.current);ie.addEventListener("touchmove",we),ie.addEventListener("touchend",Ie)}),ue=S.useCallback(()=>{const B=tt(oe.current);B.removeEventListener("mousemove",we),B.removeEventListener("mouseup",Ie),B.removeEventListener("touchmove",we),B.removeEventListener("touchend",Ie)},[Ie,we]);S.useEffect(()=>{const{current:B}=oe;return B.addEventListener("touchstart",ge,{passive:Ec()}),()=>{B.removeEventListener("touchstart",ge,{passive:Ec()}),ue()}},[ue,ge]),S.useEffect(()=>{r&&ue()},[r,ue]);const nt=B=>W=>{var ne;if((ne=B.onMouseDown)==null||ne.call(B,W),r||W.defaultPrevented||W.button!==0)return;W.preventDefault();const ie=pl(W,p);if(ie!==!1){const{newValue:U,activeIndex:V}=Z({finger:ie});hl({sliderRef:oe,activeIndex:V,setActive:x}),I(U),j&&!ml(U,P)&&j(W,U,V)}M.current=0;const re=tt(oe.current);re.addEventListener("mousemove",we),re.addEventListener("mouseup",Ie)},he=wa(D?A[0]:a,a,l),Ke=wa(A[A.length-1],a,l)-he,St=(B={})=>{const W={onMouseDown:nt(B||{})},ne=b({},B,W);return b({ref:Q},ne)},de=B=>W=>{var ne;(ne=B.onMouseOver)==null||ne.call(B,W);const ie=Number(W.currentTarget.getAttribute("data-index"));R(ie)},ke=B=>W=>{var ne;(ne=B.onMouseLeave)==null||ne.call(B,W),R(-1)};return{active:h,axis:_e,axisProps:KE,dragging:$,focusedThumbIndex:q,getHiddenInputProps:(B={})=>{var W;const ne={onChange:Se(B||{}),onFocus:se(B||{}),onBlur:Ce(B||{})},ie=b({},B,ne);return b({tabIndex:k,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(a),name:u,type:"range",min:e.min,max:e.max,step:(W=e.step)!=null?W:void 0,disabled:r},ie,{style:b({},Wb,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:St,getThumbProps:(B={})=>{const W={onMouseOver:de(B||{}),onMouseLeave:ke(B||{})};return b({},B,W)},marks:_,open:C,range:D,rootRef:Q,trackLeap:Ke,trackOffset:he,values:A}}const XE=["onChange","maxRows","minRows","style","value"];function vl(e){return parseInt(e,10)||0}const QE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ig(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const ZE=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:l}=t,a=X(t,XE),{current:u}=S.useRef(l!=null),c=S.useRef(null),d=Xe(n,c),f=S.useRef(null),m=S.useRef(0),[y,v]=S.useState({outerHeightStyle:0}),k=S.useCallback(()=>{const C=c.current,$=Cr(C).getComputedStyle(C);if($.width==="0px")return{outerHeightStyle:0};const E=f.current;E.style.width=$.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===`
54
- `&&(E.value+=" ");const M=$.boxSizing,P=vl($.paddingBottom)+vl($.paddingTop),I=vl($.borderBottomWidth)+vl($.borderTopWidth),j=E.scrollHeight;E.value="x";const D=E.scrollHeight;let A=j;i&&(A=Math.max(Number(i)*D,A)),o&&(A=Math.min(Number(o)*D,A)),A=Math.max(A,D);const _=A+(M==="border-box"?P+I:0),O=Math.abs(A-j)<=1;return{outerHeightStyle:_,overflow:O}},[o,i,t.placeholder]),g=(C,R)=>{const{outerHeightStyle:$,overflow:E}=R;return m.current<20&&($>0&&Math.abs((C.outerHeightStyle||0)-$)>1||C.overflow!==E)?(m.current+=1,{overflow:E,outerHeightStyle:$}):C},p=S.useCallback(()=>{const C=k();ig(C)||v(R=>g(R,C))},[k]),h=()=>{const C=k();ig(C)||Ka.flushSync(()=>{v(R=>g(R,C))})};S.useEffect(()=>{const C=rp(()=>{m.current=0,c.current&&h()});let R;const $=c.current,E=Cr($);return E.addEventListener("resize",C),typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe($)),()=>{C.clear(),E.removeEventListener("resize",C),R&&R.disconnect()}}),rn(()=>{p()}),S.useEffect(()=>{m.current=0},[l]);const x=C=>{m.current=0,u||p(),r&&r(C)};return w.jsxs(S.Fragment,{children:[w.jsx("textarea",b({value:l,onChange:x,ref:d,rows:i,style:b({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},s)},a)),w.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:b({},QE.shadow,s,{padding:0})})]})}),Xd=ZE;function Qd(e,t){return Qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qd(e,t)}function m1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qd(e,t)}const sg={disabled:!1},Ca=wt.createContext(null);var JE=function(t){return t.scrollTop},Hi="unmounted",Fr="exited",Lr="entering",wo="entered",Zd="exiting",Jn=function(e){m1(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,a;return i.appearStatus=null,r.in?l?(a=Fr,i.appearStatus=Lr):a=wo:r.unmountOnExit||r.mountOnEnter?a=Hi:a=Fr,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Hi?{status:Fr}: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 s=this.state.status;this.props.in?s!==Lr&&s!==wo&&(i=Lr):(s===Lr||s===wo)&&(i=Zd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Lr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:al.findDOMNode(this);s&&JE(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fr&&this.setState({status:Hi})},n.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[al.findDOMNode(this),l],u=a[0],c=a[1],d=this.getTimeouts(),f=l?d.appear:d.enter;if(!o&&!s||sg.disabled){this.safeSetState({status:wo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Lr},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:wo},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:al.findDOMNode(this);if(!i||sg.disabled){this.safeSetState({status:Fr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Zd},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Fr},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,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:al.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=a[0],c=a[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Hi)return null;var i=this.props,s=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=X(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wt.createElement(Ca.Provider,{value:null},typeof s=="function"?s(o,l):wt.cloneElement(wt.Children.only(s),l))},t}(wt.Component);Jn.contextType=Ca;Jn.propTypes={};function So(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:So,onEntering:So,onEntered:So,onExit:So,onExiting:So,onExited:So};Jn.UNMOUNTED=Hi;Jn.EXITED=Fr;Jn.ENTERING=Lr;Jn.ENTERED=wo;Jn.EXITING=Zd;const g1=Jn;function eP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Op(e,t){var n=function(i){return t&&S.isValidElement(i)?t(i):i},r=Object.create(null);return e&&S.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function tP(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 s,l={};for(var a in t){if(r[a])for(s=0;s<r[a].length;s++){var u=r[a][s];l[r[a][s]]=n(u)}l[a]=n(a)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Br(e,t,n){return n[t]!=null?n[t]:e.props[t]}function nP(e,t){return Op(e.children,function(n){return S.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Br(n,"appear",e),enter:Br(n,"enter",e),exit:Br(n,"exit",e)})})}function rP(e,t,n){var r=Op(e.children),o=tP(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(S.isValidElement(s)){var l=i in t,a=i in r,u=t[i],c=S.isValidElement(u)&&!u.props.in;a&&(!l||c)?o[i]=S.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Br(s,"exit",e),enter:Br(s,"enter",e)}):!a&&l&&!c?o[i]=S.cloneElement(s,{in:!1}):a&&l&&S.isValidElement(u)&&(o[i]=S.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Br(s,"exit",e),enter:Br(s,"enter",e)}))}}),o}var oP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},iP={component:"div",childFactory:function(t){return t}},Ip=function(e){m1(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(eP(i));return i.state={contextValue:{isMounting:!0},handleExited:s,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 s=i.children,l=i.handleExited,a=i.firstRender;return{children:a?nP(o,l):rP(o,s,l),firstRender:!1}},n.handleExited=function(o,i){var s=Op(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var a=b({},l.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,l=X(o,["component","childFactory"]),a=this.state.contextValue,u=oP(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?wt.createElement(Ca.Provider,{value:a},u):wt.createElement(Ca.Provider,{value:a},wt.createElement(i,l,u))},t}(wt.Component);Ip.propTypes={};Ip.defaultProps=iP;const sP=Ip;function lP(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:a,timeout:u}=e,[c,d]=S.useState(!1),f=J(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=J(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&d(!0),S.useEffect(()=>{if(!l&&a!=null){const v=setTimeout(a,u);return()=>{clearTimeout(v)}}},[a,l,u]),w.jsx("span",{className:f,style:m,children:w.jsx("span",{className:y})})}const aP=fe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qt=aP,uP=["center","classes","className"];let $u=e=>e,lg,ag,ug,cg;const Jd=550,cP=80,dP=Ls(lg||(lg=$u`
55
- 0% {
56
- transform: scale(0);
57
- opacity: 0.1;
58
- }
59
-
60
- 100% {
61
- transform: scale(1);
62
- opacity: 0.3;
63
- }
64
- `)),fP=Ls(ag||(ag=$u`
65
- 0% {
66
- opacity: 1;
67
- }
68
-
69
- 100% {
70
- opacity: 0;
71
- }
72
- `)),pP=Ls(ug||(ug=$u`
73
- 0% {
74
- transform: scale(1);
75
- }
76
-
77
- 50% {
78
- transform: scale(0.92);
79
- }
80
-
81
- 100% {
82
- transform: scale(1);
83
- }
84
- `)),hP=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mP=H(lP,{name:"MuiTouchRipple",slot:"Ripple"})(cg||(cg=$u`
85
- opacity: 0;
86
- position: absolute;
87
-
88
- &.${0} {
89
- opacity: 0.3;
90
- transform: scale(1);
91
- animation-name: ${0};
92
- animation-duration: ${0}ms;
93
- animation-timing-function: ${0};
94
- }
95
-
96
- &.${0} {
97
- animation-duration: ${0}ms;
98
- }
99
-
100
- & .${0} {
101
- opacity: 1;
102
- display: block;
103
- width: 100%;
104
- height: 100%;
105
- border-radius: 50%;
106
- background-color: currentColor;
107
- }
108
-
109
- & .${0} {
110
- opacity: 0;
111
- animation-name: ${0};
112
- animation-duration: ${0}ms;
113
- animation-timing-function: ${0};
114
- }
115
-
116
- & .${0} {
117
- position: absolute;
118
- /* @noflip */
119
- left: 0px;
120
- top: 0;
121
- animation-name: ${0};
122
- animation-duration: 2500ms;
123
- animation-timing-function: ${0};
124
- animation-iteration-count: infinite;
125
- animation-delay: 200ms;
126
- }
127
- `),qt.rippleVisible,dP,Jd,({theme:e})=>e.transitions.easing.easeInOut,qt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qt.child,qt.childLeaving,fP,Jd,({theme:e})=>e.transitions.easing.easeInOut,qt.childPulsate,pP,({theme:e})=>e.transitions.easing.easeInOut),gP=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,l=X(r,uP),[a,u]=S.useState([]),c=S.useRef(0),d=S.useRef(null);S.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const f=S.useRef(!1),m=S.useRef(null),y=S.useRef(null),v=S.useRef(null);S.useEffect(()=>()=>{clearTimeout(m.current)},[]);const k=S.useCallback(x=>{const{pulsate:C,rippleX:R,rippleY:$,rippleSize:E,cb:M}=x;u(P=>[...P,w.jsx(mP,{classes:{ripple:J(i.ripple,qt.ripple),rippleVisible:J(i.rippleVisible,qt.rippleVisible),ripplePulsate:J(i.ripplePulsate,qt.ripplePulsate),child:J(i.child,qt.child),childLeaving:J(i.childLeaving,qt.childLeaving),childPulsate:J(i.childPulsate,qt.childPulsate)},timeout:Jd,pulsate:C,rippleX:R,rippleY:$,rippleSize:E},c.current)]),c.current+=1,d.current=M},[i]),g=S.useCallback((x={},C={},R=()=>{})=>{const{pulsate:$=!1,center:E=o||C.pulsate,fakeElement:M=!1}=C;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const P=M?null:v.current,I=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,D,A;if(E||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)j=Math.round(I.width/2),D=Math.round(I.height/2);else{const{clientX:_,clientY:O}=x.touches&&x.touches.length>0?x.touches[0]:x;j=Math.round(_-I.left),D=Math.round(O-I.top)}if(E)A=Math.sqrt((2*I.width**2+I.height**2)/3),A%2===0&&(A+=1);else{const _=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,O=Math.max(Math.abs((P?P.clientHeight:0)-D),D)*2+2;A=Math.sqrt(_**2+O**2)}x!=null&&x.touches?y.current===null&&(y.current=()=>{k({pulsate:$,rippleX:j,rippleY:D,rippleSize:A,cb:R})},m.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},cP)):k({pulsate:$,rippleX:j,rippleY:D,rippleSize:A,cb:R})},[o,k]),p=S.useCallback(()=>{g({},{pulsate:!0})},[g]),h=S.useCallback((x,C)=>{if(clearTimeout(m.current),(x==null?void 0:x.type)==="touchend"&&y.current){y.current(),y.current=null,m.current=setTimeout(()=>{h(x,C)});return}y.current=null,u(R=>R.length>0?R.slice(1):R),d.current=C},[]);return S.useImperativeHandle(n,()=>({pulsate:p,start:g,stop:h}),[p,g,h]),w.jsx(hP,b({className:J(qt.root,i.root,s),ref:v},l,{children:w.jsx(sP,{component:null,exit:!0,children:a})}))}),vP=gP;function yP(e){return pe("MuiButtonBase",e)}const xP=fe("MuiButtonBase",["root","disabled","focusVisible"]),SP=xP,bP=["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"],wP=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=me({root:["root",t&&"disabled",n&&"focusVisible"]},yP,o);return n&&r&&(s.root+=` ${r}`),s},CP=H("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"},[`&.${SP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kP=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:a="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:y,onClick:v,onContextMenu:k,onDragLeave:g,onFocus:p,onFocusVisible:h,onKeyDown:x,onKeyUp:C,onMouseDown:R,onMouseLeave:$,onMouseUp:E,onTouchEnd:M,onTouchMove:P,onTouchStart:I,tabIndex:j=0,TouchRippleProps:D,touchRippleRef:A,type:_}=r,O=X(r,bP),N=S.useRef(null),T=S.useRef(null),L=Xe(T,A),{isFocusVisibleRef:F,onFocus:q,onBlur:G,ref:oe}=Xa(),[te,Q]=S.useState(!1);u&&te&&Q(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),N.current.focus()}}),[]);const[se,Ce]=S.useState(!1);S.useEffect(()=>{Ce(!0)},[]);const Se=se&&!c&&!u;S.useEffect(()=>{te&&f&&!c&&se&&T.current.pulsate()},[c,f,te,se]);function ae(U,V,le=d){return vn(ee=>(V&&V(ee),!le&&T.current&&T.current[U](ee),!0))}const _e=ae("start",R),Z=ae("stop",k),we=ae("stop",g),Ie=ae("stop",E),ge=ae("stop",U=>{te&&U.preventDefault(),$&&$(U)}),ue=ae("start",I),nt=ae("stop",M),he=ae("stop",P),Ke=ae("stop",U=>{G(U),F.current===!1&&Q(!1),y&&y(U)},!1),St=vn(U=>{N.current||(N.current=U.currentTarget),q(U),F.current===!0&&(Q(!0),h&&h(U)),p&&p(U)}),de=()=>{const U=N.current;return a&&a!=="button"&&!(U.tagName==="A"&&U.href)},ke=S.useRef(!1),it=vn(U=>{f&&!ke.current&&te&&T.current&&U.key===" "&&(ke.current=!0,T.current.stop(U,()=>{T.current.start(U)})),U.target===U.currentTarget&&de()&&U.key===" "&&U.preventDefault(),x&&x(U),U.target===U.currentTarget&&de()&&U.key==="Enter"&&!u&&(U.preventDefault(),v&&v(U))}),He=vn(U=>{f&&U.key===" "&&T.current&&te&&!U.defaultPrevented&&(ke.current=!1,T.current.stop(U,()=>{T.current.pulsate(U)})),C&&C(U),v&&U.target===U.currentTarget&&de()&&U.key===" "&&!U.defaultPrevented&&v(U)});let B=a;B==="button"&&(O.href||O.to)&&(B=m);const W={};B==="button"?(W.type=_===void 0?"button":_,W.disabled=u):(!O.href&&!O.to&&(W.role="button"),u&&(W["aria-disabled"]=u));const ne=Xe(n,oe,N),ie=b({},r,{centerRipple:i,component:a,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:te}),re=wP(ie);return w.jsxs(CP,b({as:B,className:J(re.root,l),ownerState:ie,onBlur:Ke,onClick:v,onContextMenu:Z,onFocus:St,onKeyDown:it,onKeyUp:He,onMouseDown:_e,onMouseLeave:ge,onMouseUp:Ie,onDragLeave:we,onTouchEnd:nt,onTouchMove:he,onTouchStart:ue,ref:ne,tabIndex:u?-1:j,type:_},W,O,{children:[s,Se?w.jsx(vP,b({ref:L,center:i},D)):null]}))}),Eu=kP;function RP(e){return pe("MuiButton",e)}const $P=fe("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),yl=$P,EP=S.createContext({}),PP=EP,_P=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],TP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,l={root:["root",i,`${i}${Y(t)}`,`size${Y(o)}`,`${i}Size${Y(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Y(o)}`],endIcon:["endIcon",`iconSize${Y(o)}`]},a=me(l,RP,s);return b({},s,a)},v1=e=>b({},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}}),MP=H(Eu,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Y(n.color)}`],t[`size${Y(n.size)}`],t[`${n.variant}Size${Y(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 b({},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":b({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ft(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})`:ft(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})`:ft(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":b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yl.focusVisible}`]:b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yl.disabled}`]:b({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 ${ft(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"},[`&.${yl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yl.disabled}`]:{boxShadow:"none"}}),OP=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Y(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},v1(e))),IP=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Y(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},v1(e))),AP=S.forwardRef(function(t,n){const r=S.useContext(PP),o=op(r,t),i=xe({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:a="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:m,focusVisibleClassName:y,fullWidth:v=!1,size:k="medium",startIcon:g,type:p,variant:h="text"}=i,x=X(i,_P),C=b({},i,{color:l,component:a,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:v,size:k,type:p,variant:h}),R=TP(C),$=g&&w.jsx(OP,{className:R.startIcon,ownerState:C,children:g}),E=m&&w.jsx(IP,{className:R.endIcon,ownerState:C,children:m});return w.jsxs(MP,b({ownerState:C,className:J(r.className,R.root,u),component:a,disabled:c,focusRipple:!f,focusVisibleClassName:J(R.focusVisible,y),ref:n,type:p},x,{classes:R,children:[$,s,E]}))}),_s=AP,FP=bp(),LP=XC({themeId:Zr,defaultTheme:FP,defaultClassName:"MuiBox-root",generateClassName:ip.generate}),En=LP,NP=S.createContext(void 0),Ap=NP;function _r(){return S.useContext(Ap)}function zP(e){return pe("PrivateSwitchBase",e)}fe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const DP=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jP=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Y(o)}`],input:["input"]};return me(i,zP,t)},BP=H(Eu)(({ownerState:e})=>b({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),VP=H("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),HP=S.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:l,disabled:a,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:m,inputRef:y,name:v,onBlur:k,onChange:g,onFocus:p,readOnly:h,required:x=!1,tabIndex:C,type:R,value:$}=t,E=X(t,DP),[M,P]=Xo({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),I=_r(),j=L=>{p&&p(L),I&&I.onFocus&&I.onFocus(L)},D=L=>{k&&k(L),I&&I.onBlur&&I.onBlur(L)},A=L=>{if(L.nativeEvent.defaultPrevented)return;const F=L.target.checked;P(F),g&&g(L,F)};let _=a;I&&typeof _>"u"&&(_=I.disabled);const O=R==="checkbox"||R==="radio",N=b({},t,{checked:M,disabled:_,disableFocusRipple:u,edge:c}),T=jP(N);return w.jsxs(BP,b({component:"span",className:J(T.root,s),centerRipple:!0,focusRipple:!u,disabled:_,tabIndex:null,role:void 0,onFocus:j,onBlur:D,ownerState:N,ref:n},E,{children:[w.jsx(VP,b({autoFocus:r,checked:o,defaultChecked:l,className:T.input,disabled:_,id:O?f:void 0,name:v,onChange:A,readOnly:h,ref:y,required:x,ownerState:N,tabIndex:C,type:R},R==="checkbox"&&$===void 0?{}:{value:$},m)),M?i:d]}))}),WP=HP;function UP(e){return pe("MuiSvgIcon",e)}fe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GP=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],KP=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Y(t)}`,`fontSize${Y(n)}`]};return me(o,UP,r)},qP=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,l,a,u,c,d,f,m,y,v,k,g,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem",medium:((a=e.typography)==null||(u=a.pxToRem)==null?void 0:u.call(a,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(m=(e.vars||e).palette)==null||(y=m[t.color])==null?void 0:y.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(k=v.action)==null?void 0:k.active,disabled:(g=(e.vars||e).palette)==null||(p=g.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),y1=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,m=X(r,GP),y=b({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f}),v={};c||(v.viewBox=f);const k=KP(y);return w.jsxs(qP,b({as:l,className:J(k.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},v,m,{ownerState:y,children:[o,d?w.jsx("title",{children:d}):null]}))});y1.muiName="SvgIcon";const dg=y1;function no(e,t){function n(r,o){return w.jsx(dg,b({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=dg.muiName,S.memo(S.forwardRef(n))}const YP=no(w.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"),XP=no(w.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"),QP=no(w.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 ZP(e){return pe("MuiCheckbox",e)}const JP=fe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Pc=JP,e2=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],t2=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${Y(r)}`]},i=me(o,ZP,t);return b({},t,i)},n2=H(WP,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Y(n.color)}`]]}})(({theme:e,ownerState:t})=>b({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ft(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Pc.checked}, &.${Pc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Pc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),r2=w.jsx(XP,{}),o2=w.jsx(YP,{}),i2=w.jsx(QP,{}),s2=S.forwardRef(function(t,n){var r,o;const i=xe({props:t,name:"MuiCheckbox"}),{checkedIcon:s=r2,color:l="primary",icon:a=o2,indeterminate:u=!1,indeterminateIcon:c=i2,inputProps:d,size:f="medium",className:m}=i,y=X(i,e2),v=u?c:a,k=u?c:s,g=b({},i,{color:l,indeterminate:u,size:f}),p=t2(g);return w.jsx(n2,b({type:"checkbox",inputProps:b({"data-indeterminate":u},d),icon:S.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:f}),checkedIcon:S.cloneElement(k,{fontSize:(o=k.props.fontSize)!=null?o:f}),ownerState:g,ref:n,className:J(p.root,m)},y,{classes:p}))}),ef=s2;function l2(e){return pe("MuiCircularProgress",e)}fe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const a2=["className","color","disableShrink","size","style","thickness","value","variant"];let Pu=e=>e,fg,pg,hg,mg;const tr=44,u2=Ls(fg||(fg=Pu`
128
- 0% {
129
- transform: rotate(0deg);
130
- }
131
-
132
- 100% {
133
- transform: rotate(360deg);
134
- }
135
- `)),c2=Ls(pg||(pg=Pu`
136
- 0% {
137
- stroke-dasharray: 1px, 200px;
138
- stroke-dashoffset: 0;
139
- }
140
-
141
- 50% {
142
- stroke-dasharray: 100px, 200px;
143
- stroke-dashoffset: -15px;
144
- }
145
-
146
- 100% {
147
- stroke-dasharray: 100px, 200px;
148
- stroke-dashoffset: -125px;
149
- }
150
- `)),d2=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Y(r)}`],svg:["svg"],circle:["circle",`circle${Y(n)}`,o&&"circleDisableShrink"]};return me(i,l2,t)},f2=H("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Y(n.color)}`]]}})(({ownerState:e,theme:t})=>b({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"&&pp(hg||(hg=Pu`
151
- animation: ${0} 1.4s linear infinite;
152
- `),u2)),p2=H("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),h2=H("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Y(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>b({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&&pp(mg||(mg=Pu`
153
- animation: ${0} 1.4s ease-in-out infinite;
154
- `),c2)),m2=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:l=40,style:a,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=X(r,a2),m=b({},r,{color:i,disableShrink:s,size:l,thickness:u,value:c,variant:d}),y=d2(m),v={},k={},g={};if(d==="determinate"){const p=2*Math.PI*((tr-u)/2);v.strokeDasharray=p.toFixed(3),g["aria-valuenow"]=Math.round(c),v.strokeDashoffset=`${((100-c)/100*p).toFixed(3)}px`,k.transform="rotate(-90deg)"}return w.jsx(f2,b({className:J(y.root,o),style:b({width:l,height:l},k,a),ownerState:m,ref:n,role:"progressbar"},g,f,{children:w.jsx(p2,{className:y.svg,ownerState:m,viewBox:`${tr/2} ${tr/2} ${tr} ${tr}`,children:w.jsx(h2,{className:y.circle,style:v,ownerState:m,cx:tr,cy:tr,r:(tr-u)/2,fill:"none",strokeWidth:u})})}))}),g2=m2;function gg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ka(e,t=!1){return e&&(gg(e.value)&&e.value!==""||t&&gg(e.defaultValue)&&e.defaultValue!=="")}function v2(e){return e.startAdornment}function y2(e){return pe("MuiFormControl",e)}fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const x2=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],S2=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Y(n)}`,r&&"fullWidth"]};return me(o,y2,t)},b2=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,t[`margin${Y(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>b({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%"})),w2=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:l="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:m="none",required:y=!1,size:v="medium",variant:k="outlined"}=r,g=X(r,x2),p=b({},r,{color:s,component:l,disabled:a,error:u,fullWidth:d,hiddenLabel:f,margin:m,required:y,size:v,variant:k}),h=S2(p),[x,C]=S.useState(()=>{let D=!1;return o&&S.Children.forEach(o,A=>{if(!Ll(A,["Input","Select"]))return;const _=Ll(A,["Select"])?A.props.input:A;_&&v2(_.props)&&(D=!0)}),D}),[R,$]=S.useState(()=>{let D=!1;return o&&S.Children.forEach(o,A=>{Ll(A,["Input","Select"])&&(ka(A.props,!0)||ka(A.props.inputProps,!0))&&(D=!0)}),D}),[E,M]=S.useState(!1);a&&E&&M(!1);const P=c!==void 0&&!a?c:E;let I;const j=S.useMemo(()=>({adornedStart:x,setAdornedStart:C,color:s,disabled:a,error:u,filled:R,focused:P,fullWidth:d,hiddenLabel:f,size:v,onBlur:()=>{M(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{M(!0)},registerEffect:I,required:y,variant:k}),[x,s,a,u,R,P,d,f,I,y,v,k]);return w.jsx(Ap.Provider,{value:j,children:w.jsx(b2,b({as:l,ownerState:p,className:J(h.root,i),ref:n},g,{children:o}))})}),Wl=w2;function C2(e){return pe("MuiTypography",e)}fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const k2=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],R2=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${Y(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return me(l,C2,s)},$2=H("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${Y(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>b({margin:0},t.variant&&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})),vg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},E2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},P2=e=>E2[e]||e,_2=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiTypography"}),o=P2(r.color),i=xp(b({},r,{color:o})),{align:s="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:m=vg}=i,y=X(i,k2),v=b({},i,{align:s,color:o,className:l,component:a,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:m}),k=a||(d?"p":m[f]||vg[f])||"span",g=R2(v);return w.jsx($2,b({as:k,ref:n,ownerState:v,className:J(g.root,l)},y))}),yn=_2;function T2(e){return pe("MuiFormControlLabel",e)}const M2=fe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Wi=M2;function ro({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 O2=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],I2=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${Y(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return me(s,T2,t)},A2=H("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wi.label}`]:t.label},t.root,t[`labelPlacement${Y(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>b({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Wi.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},{[`& .${Wi.label}`]:{[`&.${Wi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),F2=H("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Wi.error}`]:{color:(e.vars||e).palette.error.main}})),L2=S.forwardRef(function(t,n){var r,o;const i=xe({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:l={},control:a,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:m,slotProps:y={}}=i,v=X(i,O2),k=_r(),g=(r=u??a.props.disabled)!=null?r:k==null?void 0:k.disabled,p=m??a.props.required,h={disabled:g,required:p};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof a.props[M]>"u"&&typeof i[M]<"u"&&(h[M]=i[M])});const x=ro({props:i,muiFormControl:k,states:["error"]}),C=b({},i,{disabled:g,labelPlacement:f,required:p,error:x.error}),R=I2(C),$=(o=y.typography)!=null?o:l.typography;let E=d;return E!=null&&E.type!==yn&&!c&&(E=w.jsx(yn,b({component:"span"},$,{className:J(R.label,$==null?void 0:$.className),children:E}))),w.jsxs(A2,b({className:J(R.root,s),ownerState:C,ref:n},v,{children:[S.cloneElement(a,h),E,p&&w.jsxs(F2,{ownerState:C,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}))}),x1=L2;function N2(e){return pe("MuiFormLabel",e)}const z2=fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),is=z2,D2=["children","className","color","component","disabled","error","filled","focused","required"],j2=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:l}=e,a={root:["root",`color${Y(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return me(a,N2,t)},B2=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${is.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${is.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${is.error}`]:{color:(e.vars||e).palette.error.main}})),V2=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${is.error}`]:{color:(e.vars||e).palette.error.main}})),H2=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,l=X(r,D2),a=_r(),u=ro({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),c=b({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=j2(c);return w.jsxs(B2,b({as:s,ownerState:c,className:J(d.root,i),ref:n},l,{children:[o,u.required&&w.jsxs(V2,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),W2=H2;function U2(e){return pe("MuiInputLabel",e)}fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const G2=["disableAnimation","margin","shrink","variant","className"],K2=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:l}=e,u=me({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[l&&"asterisk"]},U2,t);return b({},t,u)},q2=H(W2,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${is.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>b({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"&&b({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&&b({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"&&b({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)"}))),Y2=S.forwardRef(function(t,n){const r=xe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,l=X(r,G2),a=_r();let u=i;typeof u>"u"&&a&&(u=a.filled||a.focused||a.adornedStart);const c=ro({props:r,muiFormControl:a,states:["size","variant","required"]}),d=b({},r,{disableAnimation:o,formControl:a,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=K2(d);return w.jsx(q2,b({"data-shrink":u,ownerState:d,ref:n,className:J(f.root,s)},l,{classes:f}))}),Ul=Y2,X2=S.createContext({}),Ra=X2;function Q2(e){return pe("MuiListItemText",e)}const Z2=fe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$a=Z2,J2=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],e_=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return me({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Q2,t)},t_=H("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$a.primary}`]:t.primary},{[`& .${$a.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>b({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),n_=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:l=!1,primary:a,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=X(r,J2),{dense:m}=S.useContext(Ra);let y=a??o,v=c;const k=b({},r,{disableTypography:s,inset:l,primary:!!y,secondary:!!v,dense:m}),g=e_(k);return y!=null&&y.type!==yn&&!s&&(y=w.jsx(yn,b({variant:m?"body2":"body1",className:g.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:y}))),v!=null&&v.type!==yn&&!s&&(v=w.jsx(yn,b({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:v}))),w.jsxs(t_,b({className:J(g.root,i),ownerState:k,ref:n},f,{children:[y,v]}))}),r_=n_,o_=fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),yg=o_,i_=fe("MuiListItemIcon",["root","alignItemsFlexStart"]),xg=i_;function s_(e){return pe("MuiMenuItem",e)}const l_=fe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ti=l_,a_=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],u_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},c_=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,a=me({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},s_,s);return b({},s,a)},d_=H(Eu,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:u_})(({theme:e,ownerState:t})=>b({},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"}},[`&.${Ti.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ft(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ti.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ft(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ti.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ft(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})`:ft(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ti.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ti.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yg.inset}`]:{marginLeft:52},[`& .${$a.root}`]:{marginTop:0,marginBottom:0},[`& .${$a.inset}`]:{paddingLeft:36},[`& .${xg.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&b({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xg.root} svg`]:{fontSize:"1.25rem"}}))),f_=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,m=X(r,a_),y=S.useContext(Ra),v=S.useMemo(()=>({dense:s||y.dense||!1,disableGutters:a}),[y.dense,s,a]),k=S.useRef(null);rn(()=>{o&&k.current&&k.current.focus()},[o]);const g=b({},r,{dense:v.dense,divider:l,disableGutters:a}),p=c_(r),h=Xe(k,n);let x;return r.disabled||(x=d!==void 0?d:-1),w.jsx(Ra.Provider,{value:v,children:w.jsx(d_,b({ref:h,role:c,tabIndex:x,component:i,focusVisibleClassName:J(p.focusVisible,u),className:J(p.root,f)},m,{ownerState:g,classes:p}))})}),Mi=f_;var Sg;const p_=["children","classes","className","label","notched"],h_=H("fieldset")({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%"}),m_=H("legend")(({ownerState:e,theme:t})=>b({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&&b({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 g_(e){const{className:t,label:n,notched:r}=e,o=X(e,p_),i=n!=null&&n!=="",s=b({},e,{notched:r,withLabel:i});return w.jsx(h_,b({"aria-hidden":!0,className:t,ownerState:s},o,{children:w.jsx(m_,{ownerState:s,children:i?w.jsx("span",{children:n}):Sg||(Sg=w.jsx("span",{className:"notranslate",children:"​"}))})}))}function v_(e){return w.jsx(GC,b({},e,{defaultTheme:Cu,themeId:Zr}))}function y_(e){return pe("MuiInputBase",e)}const x_=fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ni=x_,S_=["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"],_u=(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${Y(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Tu=(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]},b_=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:l,fullWidth:a,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:m,type:y}=e,v={root:["root",`color${Y(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",s&&"focused",l&&"formControl",f==="small"&&"sizeSmall",c&&"multiline",m&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return me(v,y_,t)},Mu=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_u})(({theme:e,ownerState:t})=>b({},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",[`&.${ni.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&b({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ou=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Tu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=b({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 b({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] + .${ni.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},[`&.${ni.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"})}),w_=w.jsx(v_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),C_=S.forwardRef(function(t,n){var r;const o=xe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:l,className:a,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:m,endAdornment:y,fullWidth:v=!1,id:k,inputComponent:g="input",inputProps:p={},inputRef:h,maxRows:x,minRows:C,multiline:R=!1,name:$,onBlur:E,onChange:M,onClick:P,onFocus:I,onKeyDown:j,onKeyUp:D,placeholder:A,readOnly:_,renderSuffix:O,rows:N,slotProps:T={},slots:L={},startAdornment:F,type:q="text",value:G}=o,oe=X(o,S_),te=p.value!=null?p.value:G,{current:Q}=S.useRef(te!=null),se=S.useRef(),Ce=S.useCallback(re=>{},[]),Se=Xe(se,h,p.ref,Ce),[ae,_e]=S.useState(!1),Z=_r(),we=ro({props:o,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=Z?Z.focused:ae,S.useEffect(()=>{!Z&&f&&ae&&(_e(!1),E&&E())},[Z,f,ae,E]);const Ie=Z&&Z.onFilled,ge=Z&&Z.onEmpty,ue=S.useCallback(re=>{ka(re)?Ie&&Ie():ge&&ge()},[Ie,ge]);rn(()=>{Q&&ue({value:te})},[te,ue,Q]);const nt=re=>{if(we.disabled){re.stopPropagation();return}I&&I(re),p.onFocus&&p.onFocus(re),Z&&Z.onFocus?Z.onFocus(re):_e(!0)},he=re=>{E&&E(re),p.onBlur&&p.onBlur(re),Z&&Z.onBlur?Z.onBlur(re):_e(!1)},Ke=(re,...U)=>{if(!Q){const V=re.target||se.current;if(V==null)throw new Error(wr(1));ue({value:V.value})}p.onChange&&p.onChange(re,...U),M&&M(re,...U)};S.useEffect(()=>{ue(se.current)},[]);const St=re=>{se.current&&re.currentTarget===re.target&&se.current.focus(),P&&!we.disabled&&P(re)};let de=g,ke=p;R&&de==="input"&&(N?ke=b({type:void 0,minRows:N,maxRows:N},ke):ke=b({type:void 0,maxRows:x,minRows:C},ke),de=Xd);const it=re=>{ue(re.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};S.useEffect(()=>{Z&&Z.setAdornedStart(!!F)},[Z,F]);const He=b({},o,{color:we.color||"primary",disabled:we.disabled,endAdornment:y,error:we.error,focused:we.focused,formControl:Z,fullWidth:v,hiddenLabel:we.hiddenLabel,multiline:R,size:we.size,startAdornment:F,type:q}),B=b_(He),W=L.root||u.Root||Mu,ne=T.root||c.root||{},ie=L.input||u.Input||Ou;return ke=b({},ke,(r=T.input)!=null?r:c.input),w.jsxs(S.Fragment,{children:[!m&&w_,w.jsxs(W,b({},ne,!xr(W)&&{ownerState:b({},He,ne.ownerState)},{ref:n,onClick:St},oe,{className:J(B.root,ne.className,a,_&&"MuiInputBase-readOnly"),children:[F,w.jsx(Ap.Provider,{value:null,children:w.jsx(ie,b({ownerState:He,"aria-invalid":we.error,"aria-describedby":i,autoComplete:s,autoFocus:l,defaultValue:d,disabled:we.disabled,id:k,onAnimationStart:it,name:$,placeholder:A,readOnly:_,required:we.required,rows:N,value:te,onKeyDown:j,onKeyUp:D,type:q},ke,!xr(ie)&&{as:de,ownerState:b({},He,ke.ownerState)},{ref:Se,className:J(B.input,ke.className,_&&"MuiInputBase-readOnly"),onBlur:he,onChange:Ke,onFocus:nt}))}),y,O?O(b({},we,{startAdornment:F})):null]}))]})}),Fp=C_;function k_(e){return pe("MuiOutlinedInput",e)}const R_=b({},ni,fe("MuiOutlinedInput",["root","notchedOutline","input"])),nr=R_,$_=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],E_=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},k_,t);return b({},t,r)},P_=H(Mu,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:_u})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return b({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${nr.focused} .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${nr.error} .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nr.disabled} .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&b({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),__=H(g_,{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}}),T_=H(Ou,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tu})(({theme:e,ownerState:t})=>b({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})),S1=S.forwardRef(function(t,n){var r,o,i,s,l;const a=xe({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:m=!1,notched:y,slots:v={},type:k="text"}=a,g=X(a,$_),p=E_(a),h=_r(),x=ro({props:a,muiFormControl:h,states:["required"]}),C=b({},a,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:h,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:m,size:x.size,type:k}),R=(r=(o=v.root)!=null?o:u.Root)!=null?r:P_,$=(i=(s=v.input)!=null?s:u.Input)!=null?i:T_;return w.jsx(Fp,b({slots:{root:R,input:$},renderSuffix:E=>w.jsx(__,{ownerState:C,className:p.notchedOutline,label:f!=null&&f!==""&&x.required?l||(l=w.jsxs(S.Fragment,{children:[f," ","*"]})):f,notched:typeof y<"u"?y:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:c,inputComponent:d,multiline:m,ref:n,type:k},g,{classes:b({},p,{notchedOutline:null})}))});S1.muiName="Input";const Lp=S1;var Oe={};/**
155
- * @license React
156
- * react-is.production.min.js
157
- *
158
- * Copyright (c) Facebook, Inc. and its affiliates.
159
- *
160
- * This source code is licensed under the MIT license found in the
161
- * LICENSE file in the root directory of this source tree.
162
- */var Np=Symbol.for("react.element"),zp=Symbol.for("react.portal"),Iu=Symbol.for("react.fragment"),Au=Symbol.for("react.strict_mode"),Fu=Symbol.for("react.profiler"),Lu=Symbol.for("react.provider"),Nu=Symbol.for("react.context"),M_=Symbol.for("react.server_context"),zu=Symbol.for("react.forward_ref"),Du=Symbol.for("react.suspense"),ju=Symbol.for("react.suspense_list"),Bu=Symbol.for("react.memo"),Vu=Symbol.for("react.lazy"),O_=Symbol.for("react.offscreen"),b1;b1=Symbol.for("react.module.reference");function un(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Np:switch(e=e.type,e){case Iu:case Fu:case Au:case Du:case ju:return e;default:switch(e=e&&e.$$typeof,e){case M_:case Nu:case zu:case Vu:case Bu:case Lu:return e;default:return t}}case zp:return t}}}Oe.ContextConsumer=Nu;Oe.ContextProvider=Lu;Oe.Element=Np;Oe.ForwardRef=zu;Oe.Fragment=Iu;Oe.Lazy=Vu;Oe.Memo=Bu;Oe.Portal=zp;Oe.Profiler=Fu;Oe.StrictMode=Au;Oe.Suspense=Du;Oe.SuspenseList=ju;Oe.isAsyncMode=function(){return!1};Oe.isConcurrentMode=function(){return!1};Oe.isContextConsumer=function(e){return un(e)===Nu};Oe.isContextProvider=function(e){return un(e)===Lu};Oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Np};Oe.isForwardRef=function(e){return un(e)===zu};Oe.isFragment=function(e){return un(e)===Iu};Oe.isLazy=function(e){return un(e)===Vu};Oe.isMemo=function(e){return un(e)===Bu};Oe.isPortal=function(e){return un(e)===zp};Oe.isProfiler=function(e){return un(e)===Fu};Oe.isStrictMode=function(e){return un(e)===Au};Oe.isSuspense=function(e){return un(e)===Du};Oe.isSuspenseList=function(e){return un(e)===ju};Oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Iu||e===Fu||e===Au||e===Du||e===ju||e===O_||typeof e=="object"&&e!==null&&(e.$$typeof===Vu||e.$$typeof===Bu||e.$$typeof===Lu||e.$$typeof===Nu||e.$$typeof===zu||e.$$typeof===b1||e.getModuleId!==void 0)};Oe.typeOf=un;function I_(e){return pe("MuiList",e)}fe("MuiList",["root","padding","dense","subheader"]);const A_=["children","className","component","dense","disablePadding","subheader"],F_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},I_,t)},L_=H("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})=>b({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),N_=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:l=!1,disablePadding:a=!1,subheader:u}=r,c=X(r,A_),d=S.useMemo(()=>({dense:l}),[l]),f=b({},r,{component:s,dense:l,disablePadding:a}),m=F_(f);return w.jsx(Ra.Provider,{value:d,children:w.jsxs(L_,b({as:s,className:J(m.root,i),ref:n,ownerState:f},c,{children:[u,o]}))})}),z_=N_,D_=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _c(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function bg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function w1(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 Oi(e,t,n,r,o,i){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const a=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!w1(l,i)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const j_=S.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=X(t,D_),m=S.useRef(null),y=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});rn(()=>{o&&m.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(h,x)=>{const C=!m.current.style.width;if(h.clientHeight<m.current.clientHeight&&C){const R=`${ny(tt(h))}px`;m.current.style[x.direction==="rtl"?"paddingLeft":"paddingRight"]=R,m.current.style.width=`calc(100% + ${R})`}return m.current}}),[]);const v=h=>{const x=m.current,C=h.key,R=tt(x).activeElement;if(C==="ArrowDown")h.preventDefault(),Oi(x,R,u,a,_c);else if(C==="ArrowUp")h.preventDefault(),Oi(x,R,u,a,bg);else if(C==="Home")h.preventDefault(),Oi(x,null,u,a,_c);else if(C==="End")h.preventDefault(),Oi(x,null,u,a,bg);else if(C.length===1){const $=y.current,E=C.toLowerCase(),M=performance.now();$.keys.length>0&&(M-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&E!==$.keys[0]&&($.repeating=!1)),$.lastTime=M,$.keys.push(E);const P=R&&!$.repeating&&w1(R,$);$.previousKeyMatched&&(P||Oi(x,R,!1,a,_c,$))?h.preventDefault():$.previousKeyMatched=!1}c&&c(h)},k=Xe(m,n);let g=-1;S.Children.forEach(s,(h,x)=>{S.isValidElement(h)&&(h.props.disabled||(d==="selectedMenu"&&h.props.selected||g===-1)&&(g=x),g===x&&(h.props.disabled||h.props.muiSkipListHighlight||h.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1)))});const p=S.Children.map(s,(h,x)=>{if(x===g){const C={};return i&&(C.autoFocus=!0),h.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),S.cloneElement(h,C)}return h});return w.jsx(z_,b({role:"menu",ref:k,className:l,onKeyDown:v,tabIndex:o?0:-1},f,{children:p}))}),B_=j_;function V_(e){return pe("MuiPaper",e)}fe("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 H_=["className","component","elevation","square","variant"],W_=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(i,V_,o)},U_=H("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 b({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"&&b({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ft("#fff",Fm(t.elevation))}, ${ft("#fff",Fm(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),G_=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:a="elevation"}=r,u=X(r,H_),c=b({},r,{component:i,elevation:s,square:l,variant:a}),d=W_(c);return w.jsx(U_,b({as:i,ownerState:c,className:J(d.root,o),ref:n},u))}),Hu=G_,C1=e=>e.scrollTop;function Ea(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const K_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tf(e){return`scale(${e}, ${e**2})`}const q_={entering:{opacity:1,transform:tf(1)},entered:{opacity:1,transform:"none"}},Tc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),k1=S.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:l,onEnter:a,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:m,style:y,timeout:v="auto",TransitionComponent:k=g1}=t,g=X(t,K_),p=S.useRef(),h=S.useRef(),x=ai(),C=S.useRef(null),R=Xe(C,i.ref,n),$=_=>O=>{if(_){const N=C.current;O===void 0?_(N):_(N,O)}},E=$(c),M=$((_,O)=>{C1(_);const{duration:N,delay:T,easing:L}=Ea({style:y,timeout:v,easing:s},{mode:"enter"});let F;v==="auto"?(F=x.transitions.getAutoHeightDuration(_.clientHeight),h.current=F):F=N,_.style.transition=[x.transitions.create("opacity",{duration:F,delay:T}),x.transitions.create("transform",{duration:Tc?F:F*.666,delay:T,easing:L})].join(","),a&&a(_,O)}),P=$(u),I=$(m),j=$(_=>{const{duration:O,delay:N,easing:T}=Ea({style:y,timeout:v,easing:s},{mode:"exit"});let L;v==="auto"?(L=x.transitions.getAutoHeightDuration(_.clientHeight),h.current=L):L=O,_.style.transition=[x.transitions.create("opacity",{duration:L,delay:N}),x.transitions.create("transform",{duration:Tc?L:L*.666,delay:Tc?N:N||L*.333,easing:T})].join(","),_.style.opacity=0,_.style.transform=tf(.75),d&&d(_)}),D=$(f),A=_=>{v==="auto"&&(p.current=setTimeout(_,h.current||0)),r&&r(C.current,_)};return S.useEffect(()=>()=>{clearTimeout(p.current)},[]),w.jsx(k,b({appear:o,in:l,nodeRef:C,onEnter:M,onEntered:P,onEntering:E,onExit:j,onExited:D,onExiting:I,addEndListener:A,timeout:v==="auto"?null:v},g,{children:(_,O)=>S.cloneElement(i,b({style:b({opacity:0,transform:tf(.75),visibility:_==="exited"&&!l?"hidden":void 0},q_[_],y,i.props.style),ref:R},O))}))});k1.muiSupportAuto=!0;const nf=k1,Y_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],X_={entering:{opacity:1},entered:{opacity:1}},Q_=S.forwardRef(function(t,n){const r=ai(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:a,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:m,onExited:y,onExiting:v,style:k,timeout:g=o,TransitionComponent:p=g1}=t,h=X(t,Y_),x=S.useRef(null),C=Xe(x,l.ref,n),R=A=>_=>{if(A){const O=x.current;_===void 0?A(O):A(O,_)}},$=R(f),E=R((A,_)=>{C1(A);const O=Ea({style:k,timeout:g,easing:a},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",O),A.style.transition=r.transitions.create("opacity",O),c&&c(A,_)}),M=R(d),P=R(v),I=R(A=>{const _=Ea({style:k,timeout:g,easing:a},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",_),A.style.transition=r.transitions.create("opacity",_),m&&m(A)}),j=R(y),D=A=>{i&&i(x.current,A)};return w.jsx(p,b({appear:s,in:u,nodeRef:x,onEnter:E,onEntered:M,onEntering:$,onExit:I,onExited:j,onExiting:P,addEndListener:D,timeout:g},h,{children:(A,_)=>S.cloneElement(l,b({style:b({opacity:0,visibility:A==="exited"&&!u?"hidden":void 0},X_[A],k,l.props.style),ref:C},_))}))}),R1=Q_;function Z_(e){return pe("MuiBackdrop",e)}fe("MuiBackdrop",["root","invisible"]);const J_=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],eT=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},Z_,t)},tT=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>b({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"})),nT=S.forwardRef(function(t,n){var r,o,i;const s=xe({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:m,slotProps:y={},slots:v={},TransitionComponent:k=R1,transitionDuration:g}=s,p=X(s,J_),h=b({},s,{component:u,invisible:f}),x=eT(h),C=(r=y.root)!=null?r:d.root;return w.jsx(k,b({in:m,timeout:g},p,{children:w.jsx(tT,b({"aria-hidden":!0},C,{as:(o=(i=v.root)!=null?i:c.Root)!=null?o:u,className:J(x.root,a,C==null?void 0:C.className),ownerState:b({},h,C==null?void 0:C.ownerState),classes:x,ref:n,children:l}))}))}),$1=nT,rT=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],oT=H("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})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),iT=H($1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),sT=S.forwardRef(function(t,n){var r,o,i,s,l,a;const u=xe({name:"MuiModal",props:t}),{BackdropComponent:c=iT,BackdropProps:d,classes:f,className:m,closeAfterTransition:y=!1,children:v,container:k,component:g,components:p={},componentsProps:h={},disableAutoFocus:x=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:R=!1,disablePortal:$=!1,disableRestoreFocus:E=!1,disableScrollLock:M=!1,hideBackdrop:P=!1,keepMounted:I=!1,onBackdropClick:j,onClose:D,open:A,slotProps:_,slots:O,theme:N}=u,T=X(u,rT),[L,F]=S.useState(!0),q={container:k,closeAfterTransition:y,disableAutoFocus:x,disableEnforceFocus:C,disableEscapeKeyDown:R,disablePortal:$,disableRestoreFocus:E,disableScrollLock:M,hideBackdrop:P,keepMounted:I,onBackdropClick:j,onClose:D,open:A},G=b({},u,q,{exited:L}),oe=(r=(o=O==null?void 0:O.root)!=null?o:p.Root)!=null?r:oT,te=(i=(s=O==null?void 0:O.backdrop)!=null?s:p.Backdrop)!=null?i:c,Q=(l=_==null?void 0:_.root)!=null?l:h.root,se=(a=_==null?void 0:_.backdrop)!=null?a:h.backdrop;return w.jsx(VE,b({slots:{root:oe,backdrop:te},slotProps:{root:()=>b({},Gd(Q,G),!xr(oe)&&{as:g,theme:N},{className:J(m,Q==null?void 0:Q.className,f==null?void 0:f.root,!G.open&&G.exited&&(f==null?void 0:f.hidden))}),backdrop:()=>b({},d,Gd(se,G),{className:J(se==null?void 0:se.className,f==null?void 0:f.backdrop)})},onTransitionEnter:()=>F(!1),onTransitionExited:()=>F(!0),ref:n},T,q,{children:v}))}),E1=sT;function lT(e){return pe("MuiPopover",e)}fe("MuiPopover",["root","paper"]);const aT=["onEntering"],uT=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function wg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Cg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function kg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mc(e){return typeof e=="function"?e():e}const cT=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},lT,t)},dT=H(E1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fT=H(Hu,{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}),pT=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:a="anchorEl",children:u,className:c,container:d,elevation:f=8,marginThreshold:m=16,open:y,PaperProps:v={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:g=nf,transitionDuration:p="auto",TransitionProps:{onEntering:h}={}}=r,x=X(r.TransitionProps,aT),C=X(r,uT),R=S.useRef(),$=Xe(R,v.ref),E=b({},r,{anchorOrigin:s,anchorReference:a,elevation:f,marginThreshold:m,PaperProps:v,transformOrigin:k,TransitionComponent:g,transitionDuration:p,TransitionProps:x}),M=cT(E),P=S.useCallback(()=>{if(a==="anchorPosition")return l;const F=Mc(i),G=(F&&F.nodeType===1?F:tt(R.current).body).getBoundingClientRect();return{top:G.top+wg(G,s.vertical),left:G.left+Cg(G,s.horizontal)}},[i,s.horizontal,s.vertical,l,a]),I=S.useCallback(F=>({vertical:wg(F,k.vertical),horizontal:Cg(F,k.horizontal)}),[k.horizontal,k.vertical]),j=S.useCallback(F=>{const q={width:F.offsetWidth,height:F.offsetHeight},G=I(q);if(a==="none")return{top:null,left:null,transformOrigin:kg(G)};const oe=P();let te=oe.top-G.vertical,Q=oe.left-G.horizontal;const se=te+q.height,Ce=Q+q.width,Se=Cr(Mc(i)),ae=Se.innerHeight-m,_e=Se.innerWidth-m;if(te<m){const Z=te-m;te-=Z,G.vertical+=Z}else if(se>ae){const Z=se-ae;te-=Z,G.vertical+=Z}if(Q<m){const Z=Q-m;Q-=Z,G.horizontal+=Z}else if(Ce>_e){const Z=Ce-_e;Q-=Z,G.horizontal+=Z}return{top:`${Math.round(te)}px`,left:`${Math.round(Q)}px`,transformOrigin:kg(G)}},[i,a,P,I,m]),[D,A]=S.useState(y),_=S.useCallback(()=>{const F=R.current;if(!F)return;const q=j(F);q.top!==null&&(F.style.top=q.top),q.left!==null&&(F.style.left=q.left),F.style.transformOrigin=q.transformOrigin,A(!0)},[j]),O=(F,q)=>{h&&h(F,q),_()},N=()=>{A(!1)};S.useEffect(()=>{y&&_()}),S.useImperativeHandle(o,()=>y?{updatePosition:()=>{_()}}:null,[y,_]),S.useEffect(()=>{if(!y)return;const F=rp(()=>{_()}),q=Cr(i);return q.addEventListener("resize",F),()=>{F.clear(),q.removeEventListener("resize",F)}},[i,y,_]);let T=p;p==="auto"&&!g.muiSupportAuto&&(T=void 0);const L=d||(i?tt(Mc(i)).body:void 0);return w.jsx(dT,b({BackdropProps:{invisible:!0},className:J(M.root,c),container:L,open:y,ref:n,ownerState:E},C,{children:w.jsx(g,b({appear:!0,in:y,onEntering:O,onExited:N,timeout:T},x,{children:w.jsx(fT,b({elevation:f},v,{ref:$,className:J(M.paper,v.className)},D?void 0:{style:b({},v.style,{opacity:0})},{ownerState:E,children:u}))}))}))}),hT=pT;function mT(e){return pe("MuiMenu",e)}fe("MuiMenu",["root","paper","list"]);const gT=["onEntering"],vT=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],yT={vertical:"top",horizontal:"right"},xT={vertical:"top",horizontal:"left"},ST=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},mT,t)},bT=H(hT,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wT=H(Hu,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),CT=H(B_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),kT=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:a,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:y="selectedMenu"}=r,v=X(r.TransitionProps,gT),k=X(r,vT),g=ai(),p=g.direction==="rtl",h=b({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:m,PaperProps:c,transitionDuration:f,TransitionProps:v,variant:y}),x=ST(h),C=o&&!s&&u,R=S.useRef(null),$=(P,I)=>{R.current&&R.current.adjustStyleForScrollbar(P,g),m&&m(P,I)},E=P=>{P.key==="Tab"&&(P.preventDefault(),a&&a(P,"tabKeyDown"))};let M=-1;return S.Children.map(i,(P,I)=>{S.isValidElement(P)&&(P.props.disabled||(y==="selectedMenu"&&P.props.selected||M===-1)&&(M=I))}),w.jsx(bT,b({onClose:a,anchorOrigin:{vertical:"bottom",horizontal:p?"right":"left"},transformOrigin:p?yT:xT,PaperProps:b({as:wT},c,{classes:b({},c.classes,{root:x.paper})}),className:x.root,open:u,ref:n,transitionDuration:f,TransitionProps:b({onEntering:$},v),ownerState:h},k,{classes:d,children:w.jsx(CT,b({onKeyDown:E,actions:R,autoFocus:o&&(M===-1||s),autoFocusItem:C,variant:y},l,{className:J(x.list,l.className),children:i}))}))}),RT=kT;function $T(e){return pe("MuiNativeSelect",e)}const ET=fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Dp=ET,PT=["className","disabled","error","IconComponent","inputRef","variant"],_T=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Y(n)}`,i&&"iconOpen",r&&"disabled"]};return me(l,$T,t)},P1=({ownerState:e,theme:t})=>b({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":b({},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"},[`&.${Dp.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}}),TT=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:an,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Dp.multiple}`]:t.multiple}]}})(P1),_1=({ownerState:e,theme:t})=>b({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Dp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),MT=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Y(n.variant)}`],n.open&&t.iconOpen]}})(_1),OT=S.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:l,variant:a="standard"}=t,u=X(t,PT),c=b({},t,{disabled:o,variant:a,error:i}),d=_T(c);return w.jsxs(S.Fragment,{children:[w.jsx(TT,b({ownerState:c,className:J(d.select,r),disabled:o,ref:l||n},u)),t.multiple?null:w.jsx(MT,{as:s,ownerState:c,className:d.icon})]})}),IT=OT;function AT(e){return pe("MuiSelect",e)}const FT=fe("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ii=FT;var Rg;const LT=["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"],NT=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ii.select}`]:t.select},{[`&.${Ii.select}`]:t[n.variant]},{[`&.${Ii.error}`]:t.error},{[`&.${Ii.multiple}`]:t.multiple}]}})(P1,{[`&.${Ii.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zT=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Y(n.variant)}`],n.open&&t.iconOpen]}})(_1),DT=H("input",{shouldForwardProp:e=>wp(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 $g(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function jT(e){return e==null||typeof e=="string"&&!e.trim()}const BT=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Y(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return me(l,AT,t)},VT=S.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:l,className:a,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:m=!1,IconComponent:y,inputRef:v,labelId:k,MenuProps:g={},multiple:p,name:h,onBlur:x,onChange:C,onClose:R,onFocus:$,onOpen:E,open:M,readOnly:P,renderValue:I,SelectDisplayProps:j={},tabIndex:D,value:A,variant:_="standard"}=t,O=X(t,LT),[N,T]=Xo({controlled:A,default:c,name:"Select"}),[L,F]=Xo({controlled:M,default:u,name:"Select"}),q=S.useRef(null),G=S.useRef(null),[oe,te]=S.useState(null),{current:Q}=S.useRef(M!=null),[se,Ce]=S.useState(),Se=Xe(n,v),ae=S.useCallback(V=>{G.current=V,V&&te(V)},[]),_e=oe==null?void 0:oe.parentNode;S.useImperativeHandle(Se,()=>({focus:()=>{G.current.focus()},node:q.current,value:N}),[N]),S.useEffect(()=>{u&&L&&oe&&!Q&&(Ce(s?null:_e.clientWidth),G.current.focus())},[oe,s]),S.useEffect(()=>{i&&G.current.focus()},[i]),S.useEffect(()=>{if(!k)return;const V=tt(G.current).getElementById(k);if(V){const le=()=>{getSelection().isCollapsed&&G.current.focus()};return V.addEventListener("click",le),()=>{V.removeEventListener("click",le)}}},[k]);const Z=(V,le)=>{V?E&&E(le):R&&R(le),Q||(Ce(s?null:_e.clientWidth),F(V))},we=V=>{V.button===0&&(V.preventDefault(),G.current.focus(),Z(!0,V))},Ie=V=>{Z(!1,V)},ge=S.Children.toArray(l),ue=V=>{const le=ge.find(ee=>ee.props.value===V.target.value);le!==void 0&&(T(le.props.value),C&&C(V,le))},nt=V=>le=>{let ee;if(le.currentTarget.hasAttribute("tabindex")){if(p){ee=Array.isArray(N)?N.slice():[];const qe=N.indexOf(V.props.value);qe===-1?ee.push(V.props.value):ee.splice(qe,1)}else ee=V.props.value;if(V.props.onClick&&V.props.onClick(le),N!==ee&&(T(ee),C)){const qe=le.nativeEvent||le,Ft=new qe.constructor(qe.type,qe);Object.defineProperty(Ft,"target",{writable:!0,value:{value:ee,name:h}}),C(Ft,V)}p||Z(!1,le)}},he=V=>{P||[" ","ArrowUp","ArrowDown","Enter"].indexOf(V.key)!==-1&&(V.preventDefault(),Z(!0,V))},Ke=oe!==null&&L,St=V=>{!Ke&&x&&(Object.defineProperty(V,"target",{writable:!0,value:{value:N,name:h}}),x(V))};delete O["aria-invalid"];let de,ke;const it=[];let He=!1;(ka({value:N})||f)&&(I?de=I(N):He=!0);const B=ge.map(V=>{if(!S.isValidElement(V))return null;let le;if(p){if(!Array.isArray(N))throw new Error(wr(2));le=N.some(ee=>$g(ee,V.props.value)),le&&He&&it.push(V.props.children)}else le=$g(N,V.props.value),le&&He&&(ke=V.props.children);return S.cloneElement(V,{"aria-selected":le?"true":"false",onClick:nt(V),onKeyUp:ee=>{ee.key===" "&&ee.preventDefault(),V.props.onKeyUp&&V.props.onKeyUp(ee)},role:"option",selected:le,value:void 0,"data-value":V.props.value})});He&&(p?it.length===0?de=null:de=it.reduce((V,le,ee)=>(V.push(le),ee<it.length-1&&V.push(", "),V),[]):de=ke);let W=se;!s&&Q&&oe&&(W=_e.clientWidth);let ne;typeof D<"u"?ne=D:ne=d?null:0;const ie=j.id||(h?`mui-component-select-${h}`:void 0),re=b({},t,{variant:_,value:N,open:Ke,error:m}),U=BT(re);return w.jsxs(S.Fragment,{children:[w.jsx(NT,b({ref:ae,tabIndex:ne,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":Ke?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[k,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:he,onMouseDown:d||P?null:we,onBlur:St,onFocus:$},j,{ownerState:re,className:J(j.className,U.select,a),id:ie,children:jT(de)?Rg||(Rg=w.jsx("span",{className:"notranslate",children:"​"})):de})),w.jsx(DT,b({"aria-invalid":m,value:Array.isArray(N)?N.join(","):N,name:h,ref:q,"aria-hidden":!0,onChange:ue,tabIndex:-1,disabled:d,className:U.nativeInput,autoFocus:i,ownerState:re},O)),w.jsx(zT,{as:y,className:U.icon,ownerState:re}),w.jsx(RT,b({id:`menu-${h||""}`,anchorEl:_e,open:Ke,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:b({"aria-labelledby":k,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:b({},g.PaperProps,{style:b({minWidth:W},g.PaperProps!=null?g.PaperProps.style:null)}),children:B}))]})}),HT=VT,WT=no(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function UT(e){return pe("MuiInput",e)}const GT=b({},ni,fe("MuiInput",["root","underline","input"])),Ai=GT,KT=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],qT=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},UT,t);return b({},t,o)},YT=H(Mu,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._u(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})`),b({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"},[`&.${Ai.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ai.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(.${Ai.disabled}, .${Ai.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ai.disabled}:before`]:{borderBottomStyle:"dotted"}})}),XT=H(Ou,{name:"MuiInput",slot:"Input",overridesResolver:Tu})({}),T1=S.forwardRef(function(t,n){var r,o,i,s;const l=xe({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:m=!1,slotProps:y,slots:v={},type:k="text"}=l,g=X(l,KT),p=qT(l),x={root:{ownerState:{disableUnderline:a}}},C=y??c?Mt(y??c,x):x,R=(r=(o=v.root)!=null?o:u.Root)!=null?r:YT,$=(i=(s=v.input)!=null?s:u.Input)!=null?i:XT;return w.jsx(Fp,b({slots:{root:R,input:$},slotProps:C,fullWidth:d,inputComponent:f,multiline:m,ref:n,type:k},g,{classes:p}))});T1.muiName="Input";const M1=T1;function QT(e){return pe("MuiFilledInput",e)}const ZT=b({},ni,fe("MuiFilledInput",["root","underline","input"])),Or=ZT,JT=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],eM=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},QT,t);return b({},t,o)},tM=H(Mu,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._u(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)",s=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 b({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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Or.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"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.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(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&b({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),nM=H(Ou,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tu})(({theme:e,ownerState:t})=>b({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.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),O1=S.forwardRef(function(t,n){var r,o,i,s;const l=xe({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:m,slots:y={},type:v="text"}=l,k=X(l,JT),g=b({},l,{fullWidth:c,inputComponent:d,multiline:f,type:v}),p=eM(l),h={root:{ownerState:g},input:{ownerState:g}},x=m??u?Mt(m??u,h):h,C=(r=(o=y.root)!=null?o:a.Root)!=null?r:tM,R=(i=(s=y.input)!=null?s:a.Input)!=null?i:nM;return w.jsx(Fp,b({slots:{root:C,input:R},componentsProps:x,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:v},k,{classes:p}))});O1.muiName="Input";const I1=O1,rM=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],oM=e=>{const{classes:t}=e;return t},jp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>an(e)&&e!=="variant",slot:"Root"},iM=H(M1,jp)(""),sM=H(Lp,jp)(""),lM=H(I1,jp)(""),A1=S.forwardRef(function(t,n){const r=xe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:l,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=WT,id:d,input:f,inputProps:m,label:y,labelId:v,MenuProps:k,multiple:g=!1,native:p=!1,onClose:h,onOpen:x,open:C,renderValue:R,SelectDisplayProps:$,variant:E="outlined"}=r,M=X(r,rM),P=p?IT:HT,I=_r(),j=ro({props:r,muiFormControl:I,states:["variant","error"]}),D=j.variant||E,A=b({},r,{variant:D,classes:s}),_=oM(A),O=f||{standard:w.jsx(iM,{ownerState:A}),outlined:w.jsx(sM,{label:y,ownerState:A}),filled:w.jsx(lM,{ownerState:A})}[D],N=Xe(n,O.ref);return w.jsx(S.Fragment,{children:S.cloneElement(O,b({inputComponent:P,inputProps:b({children:i,error:j.error,IconComponent:c,variant:D,type:void 0,multiple:g},p?{id:d}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:v,MenuProps:k,onClose:h,onOpen:x,open:C,renderValue:R,SelectDisplayProps:b({id:d},$)},m,{classes:m?Mt(_,m.classes):_},f?f.props.inputProps:{})},g&&p&&D==="outlined"?{notched:!0}:{},{ref:N,className:J(O.props.className,l)},!f&&{variant:D},M))})});A1.muiName="Select";const Gl=A1,aM=e=>!e||!xr(e),uM=aM;function cM(e){return pe("MuiSlider",e)}const dM=fe("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),xn=dM,fM=e=>{const{open:t}=e;return{offset:J(t&&xn.valueLabelOpen),circle:xn.valueLabelCircle,label:xn.valueLabelLabel}};function pM(e){const{children:t,className:n,value:r}=e,o=fM(e);return t?S.cloneElement(t,{className:J(t.props.className)},w.jsxs(S.Fragment,{children:[t.props.children,w.jsx("span",{className:J(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const hM=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Eg(e){return e}const mM=H("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Y(n.color)}`],n.size!=="medium"&&t[`size${Y(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>b({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&b({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&b({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${xn.dragging}`]:{[`& .${xn.thumb}, & .${xn.track}`]:{transition:"none"}}})),gM=H("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>b({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),vM=H("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Ay(e.palette[t.color].main,.62):Iy(e.palette[t.color].main,.5);return b({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),yM=H("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Y(n.color)}`],n.size!=="medium"&&t[`thumbSize${Y(n.size)}`]]}})(({theme:e,ownerState:t})=>b({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":b({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:ft(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:ft(e.palette[t.color].main,.16)}`},[`&.${xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),xM=H(pM,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>b({[`&.${xn.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),SM=H("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>wp(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>b({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),bM=H("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>wp(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>b({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),wM=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:l,size:a}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${Y(l)}`,a&&`size${Y(a)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",a&&`thumbSize${Y(a)}`,l&&`thumbColor${Y(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return me(u,cM,s)},CM=({children:e})=>e,kM=S.forwardRef(function(t,n){var r,o,i,s,l,a,u,c,d,f,m,y,v,k,g,p,h,x,C,R,$,E,M,P;const I=xe({props:t,name:"MuiSlider"}),D=ai().direction==="rtl",{"aria-label":A,"aria-valuetext":_,"aria-labelledby":O,component:N="span",components:T={},componentsProps:L={},color:F="primary",classes:q,className:G,disableSwap:oe=!1,disabled:te=!1,getAriaLabel:Q,getAriaValueText:se,marks:Ce=!1,max:Se=100,min:ae=0,orientation:_e="horizontal",size:Z="medium",step:we=1,scale:Ie=Eg,slotProps:ge,slots:ue,track:nt="normal",valueLabelDisplay:he="off",valueLabelFormat:Ke=Eg}=I,St=X(I,hM),de=b({},I,{isRtl:D,max:Se,min:ae,classes:q,disabled:te,disableSwap:oe,orientation:_e,marks:Ce,color:F,size:Z,step:we,scale:Ie,track:nt,valueLabelDisplay:he,valueLabelFormat:Ke}),{axisProps:ke,getRootProps:it,getHiddenInputProps:He,getThumbProps:B,open:W,active:ne,axis:ie,focusedThumbIndex:re,range:U,dragging:V,marks:le,values:ee,trackOffset:qe,trackLeap:Ft}=YE(b({},de,{rootRef:n}));de.marked=le.length>0&&le.some(De=>De.label),de.dragging=V,de.focusedThumbIndex=re;const ut=wM(de),so=(r=(o=ue==null?void 0:ue.root)!=null?o:T.Root)!=null?r:mM,ci=(i=(s=ue==null?void 0:ue.rail)!=null?s:T.Rail)!=null?i:gM,js=(l=(a=ue==null?void 0:ue.track)!=null?a:T.Track)!=null?l:vM,Bs=(u=(c=ue==null?void 0:ue.thumb)!=null?c:T.Thumb)!=null?u:yM,Vs=(d=(f=ue==null?void 0:ue.valueLabel)!=null?f:T.ValueLabel)!=null?d:xM,lo=(m=(y=ue==null?void 0:ue.mark)!=null?y:T.Mark)!=null?m:SM,ao=(v=(k=ue==null?void 0:ue.markLabel)!=null?k:T.MarkLabel)!=null?v:bM,di=(g=(p=ue==null?void 0:ue.input)!=null?p:T.Input)!=null?g:"input",uo=(h=ge==null?void 0:ge.root)!=null?h:L.root,Hs=(x=ge==null?void 0:ge.rail)!=null?x:L.rail,co=(C=ge==null?void 0:ge.track)!=null?C:L.track,fi=(R=ge==null?void 0:ge.thumb)!=null?R:L.thumb,pi=($=ge==null?void 0:ge.valueLabel)!=null?$:L.valueLabel,Gu=(E=ge==null?void 0:ge.mark)!=null?E:L.mark,hi=(M=ge==null?void 0:ge.markLabel)!=null?M:L.markLabel,Ku=(P=ge==null?void 0:ge.input)!=null?P:L.input,Tr=pn({elementType:so,getSlotProps:it,externalSlotProps:uo,externalForwardedProps:St,additionalProps:b({},uM(so)&&{as:N}),ownerState:b({},de,uo==null?void 0:uo.ownerState),className:[ut.root,G]}),mi=pn({elementType:ci,externalSlotProps:Hs,ownerState:de,className:ut.rail}),Lt=pn({elementType:js,externalSlotProps:co,additionalProps:{style:b({},ke[ie].offset(qe),ke[ie].leap(Ft))},ownerState:b({},de,co==null?void 0:co.ownerState),className:ut.track}),Dn=pn({elementType:Bs,getSlotProps:B,externalSlotProps:fi,ownerState:b({},de,fi==null?void 0:fi.ownerState),className:ut.thumb}),qu=pn({elementType:Vs,externalSlotProps:pi,ownerState:b({},de,pi==null?void 0:pi.ownerState),className:ut.valueLabel}),jn=pn({elementType:lo,externalSlotProps:Gu,ownerState:de,className:ut.mark}),Mr=pn({elementType:ao,externalSlotProps:hi,ownerState:de,className:ut.markLabel}),Ws=pn({elementType:di,getSlotProps:He,externalSlotProps:Ku,ownerState:de});return w.jsxs(so,b({},Tr,{children:[w.jsx(ci,b({},mi)),w.jsx(js,b({},Lt)),le.filter(De=>De.value>=ae&&De.value<=Se).map((De,Qe)=>{const fo=wa(De.value,ae,Se),po=ke[ie].offset(fo);let cn;return nt===!1?cn=ee.indexOf(De.value)!==-1:cn=nt==="normal"&&(U?De.value>=ee[0]&&De.value<=ee[ee.length-1]:De.value<=ee[0])||nt==="inverted"&&(U?De.value<=ee[0]||De.value>=ee[ee.length-1]:De.value>=ee[0]),w.jsxs(S.Fragment,{children:[w.jsx(lo,b({"data-index":Qe},jn,!xr(lo)&&{markActive:cn},{style:b({},po,jn.style),className:J(jn.className,cn&&ut.markActive)})),De.label!=null?w.jsx(ao,b({"aria-hidden":!0,"data-index":Qe},Mr,!xr(ao)&&{markLabelActive:cn},{style:b({},po,Mr.style),className:J(ut.markLabel,Mr.className,cn&&ut.markLabelActive),children:De.label})):null]},Qe)}),ee.map((De,Qe)=>{const fo=wa(De,ae,Se),po=ke[ie].offset(fo),cn=he==="off"?CM:Vs;return w.jsx(cn,b({},!xr(cn)&&{valueLabelFormat:Ke,valueLabelDisplay:he,value:typeof Ke=="function"?Ke(Ie(De),Qe):Ke,index:Qe,open:W===Qe||ne===Qe||he==="on",disabled:te},qu,{children:w.jsx(Bs,b({"data-index":Qe},Dn,{className:J(ut.thumb,Dn.className,ne===Qe&&ut.active,re===Qe&&ut.focusVisible),style:b({},po,{pointerEvents:oe&&ne!==Qe?"none":void 0},Dn.style),children:w.jsx(di,b({"data-index":Qe,"aria-label":Q?Q(Qe):A,"aria-valuenow":Ie(De),"aria-labelledby":O,"aria-valuetext":se?se(Ie(De),Qe):_,value:ee[Qe]},Ws))}))}),Qe)})]}))}),RM=kM,$M=wk({createStyledComponent:H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>xe({props:e,name:"MuiStack"})}),EM=$M,PM=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],_M=H(_E,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TM=S.forwardRef(function(t,n){var r;const o=Su(),i=xe({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:a,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:m,open:y,placement:v,popperOptions:k,popperRef:g,transition:p,slots:h,slotProps:x}=i,C=X(i,PM),R=(r=h==null?void 0:h.root)!=null?r:a==null?void 0:a.Root,$=b({anchorEl:s,container:c,disablePortal:d,keepMounted:f,modifiers:m,open:y,placement:v,popperOptions:k,popperRef:g,transition:p},C);return w.jsx(_M,b({as:l,direction:o==null?void 0:o.direction,slots:{root:R},slotProps:x??u},$,{ref:n}))}),F1=TM;function MM(e){return pe("MuiTooltip",e)}const OM=fe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ur=OM,IM=["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 AM(e){return Math.round(e*1e5)/1e5}const FM=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Y(i.split("-")[0])}`],arrow:["arrow"]};return me(s,MM,t)},LM=H(F1,{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})=>b({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ur.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ur.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ur.arrow}`]:b({},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"] .${ur.arrow}`]:b({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),NM=H("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${Y(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>b({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ft(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:`${AM(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ur.popper}[data-popper-placement*="left"] &`]:b({transformOrigin:"right center"},t.isRtl?b({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):b({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ur.popper}[data-popper-placement*="right"] &`]:b({transformOrigin:"left center"},t.isRtl?b({marginRight:"14px"},t.touch&&{marginRight:"24px"}):b({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ur.popper}[data-popper-placement*="top"] &`]:b({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ur.popper}[data-popper-placement*="bottom"] &`]:b({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),zM=H("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:ft(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let xl=!1,Oc=null,Fi={x:0,y:0};function Sl(e,t){return n=>{t&&t(n),e(n)}}const DM=S.forwardRef(function(t,n){var r,o,i,s,l,a,u,c,d,f,m,y,v,k,g,p,h,x,C;const R=xe({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:E,components:M={},componentsProps:P={},describeChild:I=!1,disableFocusListener:j=!1,disableHoverListener:D=!1,disableInteractive:A=!1,disableTouchListener:_=!1,enterDelay:O=100,enterNextDelay:N=0,enterTouchDelay:T=700,followCursor:L=!1,id:F,leaveDelay:q=0,leaveTouchDelay:G=1500,onClose:oe,onOpen:te,open:Q,placement:se="bottom",PopperComponent:Ce,PopperProps:Se={},slotProps:ae={},slots:_e={},title:Z,TransitionComponent:we=nf,TransitionProps:Ie}=R,ge=X(R,IM),ue=ai(),nt=ue.direction==="rtl",[he,Ke]=S.useState(),[St,de]=S.useState(null),ke=S.useRef(!1),it=A||L,He=S.useRef(),B=S.useRef(),W=S.useRef(),ne=S.useRef(),[ie,re]=Xo({controlled:Q,default:!1,name:"Tooltip",state:"open"});let U=ie;const V=qa(F),le=S.useRef(),ee=S.useCallback(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),clearTimeout(ne.current)},[]);S.useEffect(()=>()=>{clearTimeout(He.current),clearTimeout(B.current),clearTimeout(W.current),ee()},[ee]);const qe=ve=>{clearTimeout(Oc),xl=!0,re(!0),te&&!U&&te(ve)},Ft=vn(ve=>{clearTimeout(Oc),Oc=setTimeout(()=>{xl=!1},800+q),re(!1),oe&&U&&oe(ve),clearTimeout(He.current),He.current=setTimeout(()=>{ke.current=!1},ue.transitions.duration.shortest)}),ut=ve=>{ke.current&&ve.type!=="touchstart"||(he&&he.removeAttribute("title"),clearTimeout(B.current),clearTimeout(W.current),O||xl&&N?B.current=setTimeout(()=>{qe(ve)},xl?N:O):qe(ve))},so=ve=>{clearTimeout(B.current),clearTimeout(W.current),W.current=setTimeout(()=>{Ft(ve)},q)},{isFocusVisibleRef:ci,onBlur:js,onFocus:Bs,ref:Vs}=Xa(),[,lo]=S.useState(!1),ao=ve=>{js(ve),ci.current===!1&&(lo(!1),so(ve))},di=ve=>{he||Ke(ve.currentTarget),Bs(ve),ci.current===!0&&(lo(!0),ut(ve))},uo=ve=>{ke.current=!0;const Nt=E.props;Nt.onTouchStart&&Nt.onTouchStart(ve)},Hs=ut,co=so,fi=ve=>{uo(ve),clearTimeout(W.current),clearTimeout(He.current),ee(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.current=setTimeout(()=>{document.body.style.WebkitUserSelect=le.current,ut(ve)},T)},pi=ve=>{E.props.onTouchEnd&&E.props.onTouchEnd(ve),ee(),clearTimeout(W.current),W.current=setTimeout(()=>{Ft(ve)},G)};S.useEffect(()=>{if(!U)return;function ve(Nt){(Nt.key==="Escape"||Nt.key==="Esc")&&Ft(Nt)}return document.addEventListener("keydown",ve),()=>{document.removeEventListener("keydown",ve)}},[Ft,U]);const Gu=Xe(E.ref,Vs,Ke,n);!Z&&Z!==0&&(U=!1);const hi=S.useRef(),Ku=ve=>{const Nt=E.props;Nt.onMouseMove&&Nt.onMouseMove(ve),Fi={x:ve.clientX,y:ve.clientY},hi.current&&hi.current.update()},Tr={},mi=typeof Z=="string";I?(Tr.title=!U&&mi&&!D?Z:null,Tr["aria-describedby"]=U?V:null):(Tr["aria-label"]=mi?Z:null,Tr["aria-labelledby"]=U&&!mi?V:null);const Lt=b({},Tr,ge,E.props,{className:J(ge.className,E.props.className),onTouchStart:uo,ref:Gu},L?{onMouseMove:Ku}:{}),Dn={};_||(Lt.onTouchStart=fi,Lt.onTouchEnd=pi),D||(Lt.onMouseOver=Sl(Hs,Lt.onMouseOver),Lt.onMouseLeave=Sl(co,Lt.onMouseLeave),it||(Dn.onMouseOver=Hs,Dn.onMouseLeave=co)),j||(Lt.onFocus=Sl(di,Lt.onFocus),Lt.onBlur=Sl(ao,Lt.onBlur),it||(Dn.onFocus=di,Dn.onBlur=ao));const qu=S.useMemo(()=>{var ve;let Nt=[{name:"arrow",enabled:!!St,options:{element:St,padding:4}}];return(ve=Se.popperOptions)!=null&&ve.modifiers&&(Nt=Nt.concat(Se.popperOptions.modifiers)),b({},Se.popperOptions,{modifiers:Nt})},[St,Se]),jn=b({},R,{isRtl:nt,arrow:$,disableInteractive:it,placement:se,PopperComponentProp:Ce,touch:ke.current}),Mr=FM(jn),Ws=(r=(o=_e.popper)!=null?o:M.Popper)!=null?r:LM,De=(i=(s=(l=_e.transition)!=null?l:M.Transition)!=null?s:we)!=null?i:nf,Qe=(a=(u=_e.tooltip)!=null?u:M.Tooltip)!=null?a:NM,fo=(c=(d=_e.arrow)!=null?d:M.Arrow)!=null?c:zM,po=Vi(Ws,b({},Se,(f=ae.popper)!=null?f:P.popper,{className:J(Mr.popper,Se==null?void 0:Se.className,(m=(y=ae.popper)!=null?y:P.popper)==null?void 0:m.className)}),jn),cn=Vi(De,b({},Ie,(v=ae.transition)!=null?v:P.transition),jn),ox=Vi(Qe,b({},(k=ae.tooltip)!=null?k:P.tooltip,{className:J(Mr.tooltip,(g=(p=ae.tooltip)!=null?p:P.tooltip)==null?void 0:g.className)}),jn),ix=Vi(fo,b({},(h=ae.arrow)!=null?h:P.arrow,{className:J(Mr.arrow,(x=(C=ae.arrow)!=null?C:P.arrow)==null?void 0:x.className)}),jn);return w.jsxs(S.Fragment,{children:[S.cloneElement(E,Lt),w.jsx(Ws,b({as:Ce??F1,placement:se,anchorEl:L?{getBoundingClientRect:()=>({top:Fi.y,left:Fi.x,right:Fi.x,bottom:Fi.y,width:0,height:0})}:he,popperRef:hi,open:he?U:!1,id:V,transition:!0},Dn,po,{popperOptions:qu,children:({TransitionProps:ve})=>w.jsx(De,b({timeout:ue.transitions.duration.shorter},ve,cn,{children:w.jsxs(Qe,b({},ox,{children:[Z,$?w.jsx(fo,b({},ix,{ref:de})):null]}))}))}))]})}),Ic=DM;var Bp={},L1={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})(L1);var oo=L1.exports,Ac={};const jM={configure:e=>{ip.configure(e)}},BM=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Y,createChainedFunction:Ld,createSvgIcon:no,debounce:rp,deprecatedPropType:Ob,isMuiElement:Ll,ownerDocument:tt,ownerWindow:Cr,requirePropFactory:Ib,setRef:ya,unstable_ClassNameGenerator:jM,unstable_useEnhancedEffect:rn,unstable_useId:qa,unsupportedProp:Lb,useControlled:Xo,useEventCallback:vn,useForkRef:Xe,useIsFocusVisible:Xa},Symbol.toStringTag,{value:"Module"})),VM=lx(BM);var Pg;function io(){return Pg||(Pg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=VM}(Ac)),Ac}var HM=oo;Object.defineProperty(Bp,"__esModule",{value:!0});var N1=Bp.default=void 0,WM=HM(io()),UM=w,GM=(0,WM.default)((0,UM.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share");N1=Bp.default=GM;var Vp={},KM=oo;Object.defineProperty(Vp,"__esModule",{value:!0});var z1=Vp.default=void 0,qM=KM(io()),YM=w,XM=(0,qM.default)((0,YM.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");z1=Vp.default=XM;/**
163
- * table-core
164
- *
165
- * Copyright (c) TanStack
166
- *
167
- * This source code is licensed under the MIT license found in the
168
- * LICENSE.md file in the root directory of this source tree.
169
- *
170
- * @license MIT
171
- */function cr(e,t){return typeof e=="function"?e(t):e}function ln(e,t){return n=>{t.setState(r=>({...r,[e]:cr(n,r[e])}))}}function Pa(e){return e instanceof Function}function QM(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function ZM(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&r(s)})};return r(e),n}function ce(e,t,n){let r=[],o;return()=>{let i;n.key&&n.debug&&(i=Date.now());const s=e();if(!(s.length!==r.length||s.some((u,c)=>r[c]!==u)))return o;r=s;let a;if(n.key&&n.debug&&(a=Date.now()),o=t(...s),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-a)*100)/100,d=c/16,f=(m,y)=>{for(m=String(m);m.length<y;)m=" "+m;return m};console.info(`%c⏱ ${f(c,5)} /${f(u,5)} ms`,`
172
- font-size: .6rem;
173
- font-weight: bold;
174
- color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function JM(e,t,n,r){var o,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let u=(o=(i=l.id)!=null?i:a?a.replace(".","_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,c;if(l.accessorFn?c=l.accessorFn:a&&(a.includes(".")?c=f=>{let m=f;for(const v of a.split(".")){var y;m=(y=m)==null?void 0:y[v]}return m}:c=f=>f[l.accessorKey]),!u)throw new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:ce(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(m=>m.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var f;return(f=e.options.debugAll)!=null?f:e.options.debugColumns}}),getLeafColumns:ce(()=>[e._getOrderColumnsFn()],f=>{var m;if((m=d.columns)!=null&&m.length){let y=d.columns.flatMap(v=>v.getLeafColumns());return f(y)}return[d]},{key:"column.getLeafColumns",debug:()=>{var f;return(f=e.options.debugAll)!=null?f:e.options.debugColumns}})};return d=e._features.reduce((f,m)=>Object.assign(f,m.createColumn==null?void 0:m.createColumn(d,e)),d),d}function _g(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],l=a=>{a.subHeaders&&a.subHeaders.length&&a.subHeaders.map(l),s.push(a)};return l(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{Object.assign(i,s.createHeader==null?void 0:s.createHeader(i,e))}),i}const eO={createTable:e=>({getHeaderGroups:ce(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const l=(i=r==null?void 0:r.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],a=(s=o==null?void 0:o.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(o!=null&&o.includes(d.id)));return bl(t,[...l,...u,...a],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:ce(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),bl(t,n,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:ce(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return bl(t,i,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:ce(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return bl(t,i,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:ce(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:ce(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:ce(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:ce(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:ce(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:ce(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:ce(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:ce(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:ce(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:ce(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:ce(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:ce(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,l,a,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(l=n[0])==null?void 0:l.headers)!=null?s:[],...(a=(u=r[0])==null?void 0:u.headers)!=null?a:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function bl(e,t,n,r){var o,i;let s=0;const l=function(f,m){m===void 0&&(m=1),s=Math.max(s,m),f.filter(y=>y.getIsVisible()).forEach(y=>{var v;(v=y.columns)!=null&&v.length&&l(y.columns,m+1)},0)};l(e);let a=[];const u=(f,m)=>{const y={depth:m,id:[r,`${m}`].filter(Boolean).join("_"),headers:[]},v=[];f.forEach(k=>{const g=[...v].reverse()[0],p=k.column.depth===y.depth;let h,x=!1;if(p&&k.column.parent?h=k.column.parent:(h=k.column,x=!0),g&&(g==null?void 0:g.column)===h)g.subHeaders.push(k);else{const C=_g(n,h,{id:[r,m,h.id,k==null?void 0:k.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${v.filter(R=>R.column===h).length}`:void 0,depth:m,index:v.length});C.subHeaders.push(k),v.push(C)}y.headers.push(k),k.headerGroup=y}),a.push(y),m>0&&u(v,m-1)},c=t.map((f,m)=>_g(n,f,{depth:s,index:m}));u(c,s-1),a.reverse();const d=f=>f.filter(y=>y.column.getIsVisible()).map(y=>{let v=0,k=0,g=[0];y.subHeaders&&y.subHeaders.length?(g=[],d(y.subHeaders).forEach(h=>{let{colSpan:x,rowSpan:C}=h;v+=x,g.push(C)})):v=1;const p=Math.min(...g);return k=k+p,y.colSpan=v,y.rowSpan=k,{colSpan:v,rowSpan:k}});return d((o=(i=a[0])==null?void 0:i.headers)!=null?o:[]),a}const wl={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Fc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),tO={getDefaultColumnDef:()=>wl,getInitialState:e=>({columnSizing:{},columnSizingInfo:Fc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:ln("columnSizing",e),onColumnSizingInfoChange:ln("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:wl.minSize,(r=i??e.columnDef.size)!=null?r:wl.size),(o=e.columnDef.maxSize)!=null?o:wl.maxSize)},getStart:n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(i=>i.id===e.id);if(o>0){const i=r[o-1];return i.getStart(n)+i.getSize()}return 0},resetSize:()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},getCanResize:()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},getStart:()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},getResizeHandler:()=>{const n=t.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return o=>{if(!n||!r||(o.persist==null||o.persist(),Lc(o)&&o.touches&&o.touches.length>1))return;const i=e.getSize(),s=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[n.id,n.getSize()]],l=Lc(o)?Math.round(o.touches[0].clientX):o.clientX,a={},u=(v,k)=>{typeof k=="number"&&(t.setColumnSizingInfo(g=>{var p,h;const x=k-((p=g==null?void 0:g.startOffset)!=null?p:0),C=Math.max(x/((h=g==null?void 0:g.startSize)!=null?h:0),-.999999);return g.columnSizingStart.forEach(R=>{let[$,E]=R;a[$]=Math.round(Math.max(E+E*C,0)*100)/100}),{...g,deltaOffset:x,deltaPercentage:C}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(g=>({...g,...a})))},c=v=>u("move",v),d=v=>{u("end",v),t.setColumnSizingInfo(k=>({...k,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f={moveHandler:v=>c(v.clientX),upHandler:v=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),d(v.clientX)}},m={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),c(v.touches[0].clientX),!1),upHandler:v=>{var k;document.removeEventListener("touchmove",m.moveHandler),document.removeEventListener("touchend",m.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),d((k=v.touches[0])==null?void 0:k.clientX)}},y=nO()?{passive:!1}:!1;Lc(o)?(document.addEventListener("touchmove",m.moveHandler,y),document.addEventListener("touchend",m.upHandler,y)):(document.addEventListener("mousemove",f.moveHandler,y),document.addEventListener("mouseup",f.upHandler,y)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?Fc():(n=e.initialState.columnSizingInfo)!=null?n:Fc())},getTotalSize:()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}})};let Cl=null;function nO(){if(typeof Cl=="boolean")return Cl;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Cl=e,Cl}function Lc(e){return e.type==="touchstart"}const rO={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ln("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},setExpanded:r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),toggleAllRowsExpanded:r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},getCanSomeRowsExpand:()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),getToggleAllRowsExpandedHandler:()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},getIsAllRowsExpanded:()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},getExpandedDepth:()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{s[l]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:l,...a}=s;return a}return r})},getIsExpanded:()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},getCanExpand:()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},getToggleExpandedHandler:()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}})},D1=(e,t,n)=>{var r,o,i;const s=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(o=r.toString())==null||(i=o.toLowerCase())==null)&&i.includes(s))};D1.autoRemove=e=>wn(e);const j1=(e,t,n)=>{var r,o;return!!(!((r=e.getValue(t))==null||(o=r.toString())==null)&&o.includes(n))};j1.autoRemove=e=>wn(e);const B1=(e,t,n)=>{var r,o;return((r=e.getValue(t))==null||(o=r.toString())==null?void 0:o.toLowerCase())===(n==null?void 0:n.toLowerCase())};B1.autoRemove=e=>wn(e);const V1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};V1.autoRemove=e=>wn(e)||!(e!=null&&e.length);const H1=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});H1.autoRemove=e=>wn(e)||!(e!=null&&e.length);const W1=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});W1.autoRemove=e=>wn(e)||!(e!=null&&e.length);const U1=(e,t,n)=>e.getValue(t)===n;U1.autoRemove=e=>wn(e);const G1=(e,t,n)=>e.getValue(t)==n;G1.autoRemove=e=>wn(e);const Hp=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Hp.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const l=i;i=s,s=l}return[i,s]};Hp.autoRemove=e=>wn(e)||wn(e[0])&&wn(e[1]);const Bn={includesString:D1,includesStringSensitive:j1,equalsString:B1,arrIncludes:V1,arrIncludesAll:H1,arrIncludesSome:W1,equals:U1,weakEquals:G1,inNumberRange:Hp};function wn(e){return e==null||e===""}const oO={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:ln("columnFilters",e),onGlobalFilterChange:ln("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;const o=(n=e.getCoreRowModel().flatRows[0])==null||(r=n._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Bn.includesString:typeof r=="number"?Bn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Bn.equals:Array.isArray(r)?Bn.arrIncludes:Bn.weakEquals},getFilterFn:()=>{var n,r;return Pa(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Bn[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return(n=t.getState().columnFilters)==null||(r=n.find(o=>o.id===e.id))==null?void 0:r.value},getFilterIndex:()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},setFilterValue:n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(c=>c.id===e.id),s=cr(n,i?i.value:void 0);if(Tg(o,s,e)){var l;return(l=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?l:[]}const a={id:e.id,value:s};if(i){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?a:c))!=null?u:[]}return r!=null&&r.length?[...r,a]:[a]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Bn.includesString,getGlobalFilterFn:()=>{var t,n;const{globalFilterFn:r}=e.options;return Pa(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Bn[r]},setColumnFilters:t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=cr(t,o))==null?void 0:i.filter(s=>{const l=n.find(a=>a.id===s.id);if(l){const a=l.getFilterFn();if(Tg(a,s.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function Tg(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const iO=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),sO=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},lO=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},aO=(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},uO=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},cO=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!QM(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},dO=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),fO=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,pO=(e,t)=>t.length,Nc={sum:iO,min:sO,max:lO,extent:aO,mean:uO,median:cO,unique:dO,uniqueCount:fO,count:pO},hO={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ln("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},getCanGroup:()=>{var n,r,o,i;return(n=(r=(o=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?o:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},getIsGrouped:()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Nc.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Nc.extent},getAggregationFn:()=>{var n,r;if(!e)throw new Error;return Pa(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Nc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:(e,t)=>({getIsGrouped:()=>!!e.groupingColumnId,getGroupingValue:n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}})};function mO(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const gO={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ln("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},_getOrderColumnsFn:ce(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],l=[...o];for(;l.length&&s.length;){const a=s.shift(),u=l.findIndex(c=>c.id===a);u>-1&&i.push(l.splice(u,1)[0])}i=[...i,...l]}return mO(i,n,r)},{key:!1})})},rf=0,of=10,zc=()=>({pageIndex:rf,pageSize:of}),vO={getInitialState:e=>({...e,pagination:{...zc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:ln("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},setPagination:r=>{const o=i=>cr(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},resetPagination:r=>{var o;e.setPagination(r?zc():(o=e.initialState.pagination)!=null?o:zc())},setPageIndex:r=>{e.setPagination(o=>{let i=cr(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},resetPageIndex:r=>{var o,i,s;e.setPageIndex(r?rf:(o=(i=e.initialState)==null||(s=i.pagination)==null?void 0:s.pageIndex)!=null?o:rf)},resetPageSize:r=>{var o,i,s;e.setPageSize(r?of:(o=(i=e.initialState)==null||(s=i.pagination)==null?void 0:s.pageSize)!=null?o:of)},setPageSize:r=>{e.setPagination(o=>{const i=Math.max(1,cr(r,o.pageSize)),s=o.pageSize*o.pageIndex,l=Math.floor(s/i);return{...o,pageIndex:l,pageSize:i}})},setPageCount:r=>e.setPagination(o=>{var i;let s=cr(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),getPageOptions:ce(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},{key:!1,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},previousPage:()=>e.setPageIndex(r=>r-1),nextPage:()=>e.setPageIndex(r=>r+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Dc=()=>({left:[],right:[]}),yO={getInitialState:e=>({columnPinning:Dc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:ln("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var l,a;return{left:((l=o==null?void 0:o.left)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((a=o==null?void 0:o.right)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=o==null?void 0:o.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(d=>!(r!=null&&r.includes(d))),right:((s=o==null?void 0:o.right)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d)))}})},getCanPin:()=>e.getLeafColumns().some(r=>{var o,i;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=t.options.enablePinning)!=null?i:!0)}),getIsPinned:()=>{const n=e.getLeafColumns().map(l=>l.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(l=>r==null?void 0:r.includes(l)),s=n.some(l=>o==null?void 0:o.includes(l));return i?"left":s?"right":!1},getPinnedIndex:()=>{var n,r,o;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(o=r[i])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:ce(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getLeftVisibleCells:ce(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getRightVisibleCells:ce(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?Dc():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Dc())},getIsSomeColumnsPinned:t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},getLeftLeafColumns:ce(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:ce(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:ce(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},xO={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ln("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},toggleAllPageRowsSelected:t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{sf(o,i.id,r,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:ce(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:ce(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:ce(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{const r=e.getIsSelected();t.setRowSelection(o=>{if(n=typeof n<"u"?n:!r,r===n)return o;const i={...o};return sf(i,e.id,n,t),i})},getIsSelected:()=>{const{rowSelection:n}=t.getState();return Wp(e,n)},getIsSomeSelected:()=>{const{rowSelection:n}=t.getState();return Mg(e,n)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:n}=t.getState();return Mg(e,n)==="all"},getCanSelect:()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},getCanSelectSubRows:()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},getCanMultiSelect:()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},getToggleSelectedHandler:()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}})},sf=(e,t,n,r)=>{var o;const i=r.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),i.getCanSelect()&&(e[t]=!0)):delete e[t],(o=i.subRows)!=null&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(s=>sf(e,s.id,n,r))};function jc(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,l){return s.map(a=>{var u;const c=Wp(a,n);if(c&&(r.push(a),o[a.id]=a),(u=a.subRows)!=null&&u.length&&(a={...a,subRows:i(a.subRows)}),c)return a}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Wp(e,t){var n;return(n=t[e.id])!=null?n:!1}function Mg(e,t,n){if(e.subRows&&e.subRows.length){let r=!0,o=!1;return e.subRows.forEach(i=>{o&&!r||(Wp(i,t)?o=!0:r=!1)}),r?"all":o?"some":!1}return!1}const lf=/([0-9]+)/gm,SO=(e,t,n)=>K1(kr(e.getValue(n)).toLowerCase(),kr(t.getValue(n)).toLowerCase()),bO=(e,t,n)=>K1(kr(e.getValue(n)),kr(t.getValue(n))),wO=(e,t,n)=>Up(kr(e.getValue(n)).toLowerCase(),kr(t.getValue(n)).toLowerCase()),CO=(e,t,n)=>Up(kr(e.getValue(n)),kr(t.getValue(n))),kO=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},RO=(e,t,n)=>Up(e.getValue(n),t.getValue(n));function Up(e,t){return e===t?0:e>t?1:-1}function kr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function K1(e,t){const n=e.split(lf).filter(Boolean),r=t.split(lf).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),l=parseInt(i,10),a=[s,l].sort();if(isNaN(a[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(a[1]))return isNaN(s)?-1:1;if(s>l)return 1;if(l>s)return-1}return n.length-r.length}const Li={alphanumeric:SO,alphanumericCaseSensitive:bO,text:wO,textCaseSensitive:CO,datetime:kO,basic:RO},$O={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:ln("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Li.datetime;if(typeof i=="string"&&(r=!0,i.split(lf).length>1))return Li.alphanumeric}return r?Li.text:Li.basic},getAutoSortDir:()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},getSortingFn:()=>{var n,r;if(!e)throw new Error;return Pa(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Li[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const l=s==null?void 0:s.find(m=>m.id===e.id),a=s==null?void 0:s.findIndex(m=>m.id===e.id);let u=[],c,d=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?l?c="toggle":c="add":s!=null&&s.length&&a!==s.length-1?c="replace":l?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var f;u=[...s,{id:e.id,desc:d}],u.splice(0,u.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=s.map(m=>m.id===e.id?{...m,desc:d}:m):c==="remove"?u=s.filter(m=>m.id!==e.id):u=[{id:e.id,desc:d}];return u})},getFirstSortDir:()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},getCanSort:()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},getIsSorted:()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},getSortIndex:()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},clearSorting:()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},getToggleSortingHandler:()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},EO={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ln("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},getIsVisible:()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},getCanHide:()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},getToggleVisibilityHandler:()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:ce(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getVisibleCells:ce(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})}),createTable:e=>{const t=(n,r)=>ce(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:n,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),resetColumnVisibility:n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},toggleAllColumnsVisible:n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}}},Og=[eO,EO,gO,yO,oO,$O,hO,rO,vO,xO,tO];function PO(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Og};const r=n._features.reduce((c,d)=>Object.assign(c,d.getDefaultOptions==null?void 0:d.getDefaultOptions(n)),{}),o=c=>n.options.mergeOptions?n.options.mergeOptions(r,c):{...r,...c};let s={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(c=>{var d;s=(d=c.getInitialState==null?void 0:c.getInitialState(s))!=null?d:s});const l=[];let a=!1;const u={_features:Og,options:{...r,...e},initialState:s,_queue:c=>{l.push(c),a||(a=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();a=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{n.setState(n.initialState)},setOptions:c=>{const d=cr(c,n.options);n.options=o(d)},getState:()=>n.options.state,setState:c=>{n.options.onStateChange==null||n.options.onStateChange(c)},_getRowId:(c,d,f)=>{var m;return(m=n.options.getRowId==null?void 0:n.options.getRowId(c,d,f))!=null?m:`${f?[f.id,d].join("."):d}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:c=>{const d=n.getRowModel().rowsById[c];if(!d)throw new Error;return d},_getDefaultColumnDef:ce(()=>[n.options.defaultColumn],c=>{var d;return c=(d=c)!=null?d:{},{header:f=>{const m=f.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:f=>{var m,y;return(m=(y=f.renderValue())==null||y.toString==null?void 0:y.toString())!=null?m:null},...n._features.reduce((f,m)=>Object.assign(f,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:ce(()=>[n._getColumnDefs()],c=>{const d=function(f,m,y){return y===void 0&&(y=0),f.map(v=>{const k=JM(n,v,y,m),g=v;return k.columns=g.columns?d(g.columns,k,y+1):[],k})};return d(c)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllFlatColumns:ce(()=>[n.getAllColumns()],c=>c.flatMap(d=>d.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),_getAllFlatColumnsById:ce(()=>[n.getAllFlatColumns()],c=>c.reduce((d,f)=>(d[f.id]=f,d),{}),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllLeafColumns:ce(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(c,d)=>{let f=c.flatMap(m=>m.getLeafColumns());return d(f)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getColumn:c=>n._getAllFlatColumnsById()[c]};return Object.assign(n,u),n._features.forEach(c=>Object.assign(n,c.createTable==null?void 0:c.createTable(n))),n}function _O(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:ce(()=>[e,n,t,i],(s,l,a,u)=>({table:s,column:l,row:a,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(s=>{Object.assign(i,s.createCell==null?void 0:s.createCell(i,n,t,e))},{}),i}const TO=(e,t,n,r,o,i,s)=>{let l={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const u=e.getColumn(a);if(u!=null&&u.accessorFn)return l._valuesCache[a]=u.accessorFn(l.original,r),l._valuesCache[a]},getUniqueValues:a=>{if(l._uniqueValuesCache.hasOwnProperty(a))return l._uniqueValuesCache[a];const u=e.getColumn(a);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(l._uniqueValuesCache[a]=u.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[a]):(l._uniqueValuesCache[a]=[l.getValue(a)],l._uniqueValuesCache[a])},renderValue:a=>{var u;return(u=l.getValue(a))!=null?u:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>ZM(l.subRows,a=>a.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId):void 0,getParentRows:()=>{let a=[],u=l;for(;;){const c=u.getParentRow();if(!c)break;a.push(c),u=c}return a.reverse()},getAllCells:ce(()=>[e.getAllLeafColumns()],a=>a.map(u=>_O(e,l,u,u.id)),{key:!1,debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}}),_getAllCellsByColumnId:ce(()=>[l.getAllCells()],a=>a.reduce((u,c)=>(u[c.column.id]=c,u),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}})};for(let a=0;a<e._features.length;a++){const u=e._features[a];Object.assign(l,u==null||u.createRow==null?void 0:u.createRow(l,e))}return l};function MO(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function OO(){return e=>ce(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const l=[];for(let u=0;u<o.length;u++){const c=TO(e,e._getRowId(o[u],u,s),o[u],u,i,void 0,s==null?void 0:s.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows){var a;c.originalSubRows=e.options.getSubRows(o[u],u),(a=c.originalSubRows)!=null&&a.length&&(c.subRows=r(c.originalSubRows,i+1,c))}}return l};return n.rows=r(t),n},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}/**
175
- * react-table
176
- *
177
- * Copyright (c) TanStack
178
- *
179
- * This source code is licensed under the MIT license found in the
180
- * LICENSE.md file in the root directory of this source tree.
181
- *
182
- * @license MIT
183
- */function Ig(e,t){return e?IO(e)?S.createElement(e,t):e:null}function IO(e){return AO(e)||typeof e=="function"||FO(e)}function AO(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function FO(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function LO(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=S.useState(()=>({current:PO(t)})),[r,o]=S.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const Ag=e=>{let t;const n=new Set,r=(a,u)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},o=()=>t,l={setState:r,getState:o,subscribe:a=>(n.add(a),()=>n.delete(a)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,l),l},NO=e=>e?Ag(e):Ag;var q1={exports:{}},Y1={},X1={exports:{}},Q1={};/**
184
- * @license React
185
- * use-sync-external-store-shim.production.min.js
186
- *
187
- * Copyright (c) Facebook, Inc. and its affiliates.
188
- *
189
- * This source code is licensed under the MIT license found in the
190
- * LICENSE file in the root directory of this source tree.
191
- */var ri=S;function zO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DO=typeof Object.is=="function"?Object.is:zO,jO=ri.useState,BO=ri.useEffect,VO=ri.useLayoutEffect,HO=ri.useDebugValue;function WO(e,t){var n=t(),r=jO({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return VO(function(){o.value=n,o.getSnapshot=t,Bc(o)&&i({inst:o})},[e,n,t]),BO(function(){return Bc(o)&&i({inst:o}),e(function(){Bc(o)&&i({inst:o})})},[e]),HO(n),n}function Bc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!DO(e,n)}catch{return!0}}function UO(e,t){return t()}var GO=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?UO:WO;Q1.useSyncExternalStore=ri.useSyncExternalStore!==void 0?ri.useSyncExternalStore:GO;X1.exports=Q1;var KO=X1.exports;/**
192
- * @license React
193
- * use-sync-external-store-shim/with-selector.production.min.js
194
- *
195
- * Copyright (c) Facebook, Inc. and its affiliates.
196
- *
197
- * This source code is licensed under the MIT license found in the
198
- * LICENSE file in the root directory of this source tree.
199
- */var Wu=S,qO=KO;function YO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var XO=typeof Object.is=="function"?Object.is:YO,QO=qO.useSyncExternalStore,ZO=Wu.useRef,JO=Wu.useEffect,eI=Wu.useMemo,tI=Wu.useDebugValue;Y1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=ZO(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=eI(function(){function a(m){if(!u){if(u=!0,c=m,m=r(m),o!==void 0&&s.hasValue){var y=s.value;if(o(y,m))return d=y}return d=m}if(y=d,XO(c,m))return y;var v=r(m);return o!==void 0&&o(y,v)?y:(c=m,d=v)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,o]);var l=QO(e,i[0],i[1]);return JO(function(){s.hasValue=!0,s.value=l},[l]),tI(l),l};q1.exports=Y1;var nI=q1.exports;const rI=af(nI),{useSyncExternalStoreWithSelector:oI}=rI;function iI(e,t=e.getState,n){const r=oI(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return S.useDebugValue(r),r}const Fg=e=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?NO(e):e,n=(r,o)=>iI(t,r,o);return Object.assign(n,t),n},sI=e=>e?Fg(e):Fg;var lI=e=>(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),sI(e));const Uu=lI(e=>({table:null,setTable:t=>e(()=>({table:t})),config:null,setConfig:t=>e(()=>({config:t}))}));function aI(e){return pe("MuiDialog",e)}const uI=fe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Vc=uI,cI=S.createContext({}),Z1=cI,dI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],fI=H($1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),pI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${Y(n)}`],paper:["paper",`paperScroll${Y(n)}`,`paperWidth${Y(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return me(s,aI,t)},hI=H(E1,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),mI=H("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Y(n.scroll)}`]]}})(({ownerState:e})=>b({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"}})),gI=H(Hu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Y(n.scroll)}`],t[`paperWidth${Y(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>b({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):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${Vc.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}`,[`&.${Vc.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,[`&.${Vc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),vI=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiDialog"}),o=ai(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,BackdropComponent:a,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:f=!1,fullScreen:m=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:k,onClose:g,open:p,PaperComponent:h=Hu,PaperProps:x={},scroll:C="paper",TransitionComponent:R=R1,transitionDuration:$=i,TransitionProps:E}=r,M=X(r,dI),P=b({},r,{disableEscapeKeyDown:f,fullScreen:m,fullWidth:y,maxWidth:v,scroll:C}),I=pI(P),j=S.useRef(),D=N=>{j.current=N.target===N.currentTarget},A=N=>{j.current&&(j.current=null,k&&k(N),g&&g(N,"backdropClick"))},_=qa(l),O=S.useMemo(()=>({titleId:_}),[_]);return w.jsx(hI,b({className:J(I.root,d),closeAfterTransition:!0,components:{Backdrop:fI},componentsProps:{backdrop:b({transitionDuration:$,as:a},u)},disableEscapeKeyDown:f,onClose:g,open:p,ref:n,onClick:A,ownerState:P},M,{children:w.jsx(R,b({appear:!0,in:p,timeout:$,role:"presentation"},E,{children:w.jsx(mI,{className:J(I.container),onMouseDown:D,ownerState:P,children:w.jsx(gI,b({as:h,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":_},x,{className:J(I.paper,x.className),ownerState:P,children:w.jsx(Z1.Provider,{value:O,children:c})}))})}))}))}),Gp=vI;function yI(e){return pe("MuiDialogActions",e)}fe("MuiDialogActions",["root","spacing"]);const xI=["className","disableSpacing"],SI=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},yI,t)},bI=H("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>b({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),wI=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=X(r,xI),l=b({},r,{disableSpacing:i}),a=SI(l);return w.jsx(bI,b({className:J(a.root,o),ownerState:l,ref:n},s))}),Kp=wI;function CI(e){return pe("MuiDialogContent",e)}fe("MuiDialogContent",["root","dividers"]);function kI(e){return pe("MuiDialogTitle",e)}const RI=fe("MuiDialogTitle",["root"]),$I=RI,EI=["className","dividers"],PI=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},CI,t)},_I=H("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>b({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${$I.root} + &`]:{paddingTop:0}})),TI=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=X(r,EI),l=b({},r,{dividers:i}),a=PI(l);return w.jsx(_I,b({className:J(a.root,o),ownerState:l,ref:n},s))}),_a=TI,MI=["className","id"],OI=e=>{const{classes:t}=e;return me({root:["root"]},kI,t)},II=H(yn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),AI=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=X(r,MI),l=r,a=OI(l),{titleId:u=i}=S.useContext(Z1);return w.jsx(II,b({component:"h2",className:J(a.root,o),ownerState:l,ref:n,variant:"h6",id:i??u},s))}),Ta=AI;function FI(e){return pe("MuiIconButton",e)}const LI=fe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),NI=LI,zI=["edge","children","className","color","disabled","disableFocusRipple","size"],DI=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Y(r)}`,o&&`edge${Y(o)}`,`size${Y(i)}`]};return me(s,FI,t)},jI=H(Eu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Y(n.color)}`],n.edge&&t[`edge${Y(n.edge)}`],t[`size${Y(n.size)}`]]}})(({theme:e,ownerState:t})=>b({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})`:ft(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 b({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&b({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":b({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ft(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)},{[`&.${NI.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),BI=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:a=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=X(r,zI),f=b({},r,{edge:o,color:l,disabled:a,disableFocusRipple:u,size:c}),m=DI(f);return w.jsx(jI,b({className:J(m.root,s),centerRipple:!0,focusRipple:!u,disabled:a,ref:n,ownerState:f},d,{children:i}))}),qp=BI;var Yp={},VI=oo;Object.defineProperty(Yp,"__esModule",{value:!0});var J1=Yp.default=void 0,HI=VI(io()),WI=w,UI=(0,HI.default)((0,WI.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");J1=Yp.default=UI;var Xp={},GI=oo;Object.defineProperty(Xp,"__esModule",{value:!0});var Qp=Xp.default=void 0,KI=GI(io()),qI=w,YI=(0,KI.default)((0,qI.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");Qp=Xp.default=YI;function ex({open:e,onClose:t,prompt:n,output:r}){const[o,i]=S.useState(!1);S.useEffect(()=>{i(!1)},[n]);const s=async l=>{await navigator.clipboard.writeText(l),i(!0)};return w.jsxs(Gp,{open:e,onClose:t,fullWidth:!0,maxWidth:"lg",children:[w.jsx(Ta,{children:"Prompt"}),w.jsxs(_a,{children:[w.jsx(Xd,{readOnly:!0,value:n,style:{width:"100%",padding:"0.75rem"}}),w.jsx(qp,{onClick:()=>s(n),style:{position:"absolute",right:"10px",top:"10px"},children:o?w.jsx(Qp,{}):w.jsx(J1,{})})]}),r&&w.jsxs(w.Fragment,{children:[w.jsx(Ta,{children:"Output"}),w.jsx(_a,{children:w.jsx(Xd,{readOnly:!0,value:r,style:{width:"100%",padding:"0.75rem"}})})]}),w.jsx(Kp,{children:w.jsx(_s,{onClick:t,children:"Close"})})]})}function XI(e){if(typeof e=="string"){const t=e.startsWith("[PASS]");let n=e;return(e.startsWith("[PASS]")||e.startsWith("[FAIL]"))&&(n=n.slice(6)),{text:n,pass:t,score:t?1:0}}return e}function Lg(e){return e===0||e===1?"":`(${e.toFixed(2)})`}function Zp({text:e,maxLength:t}){const[n,r]=S.useState(!0);let o=typeof e=="string"?e:JSON.stringify(e);o=o.replace(/\n/g,"<br>");const i=()=>{r(!n)};return(()=>o.length<=t?w.jsx("span",{dangerouslySetInnerHTML:{__html:o}}):n?w.jsxs("span",{style:{cursor:"pointer"},onClick:i,children:[w.jsx("span",{dangerouslySetInnerHTML:{__html:o.substring(0,t)}})," ..."]}):w.jsx("span",{style:{cursor:"pointer"},onClick:i,children:w.jsx("span",{dangerouslySetInnerHTML:{__html:o}})}))()}function QI({output:e,maxTextLength:t,rowIndex:n,promptIndex:r,onRating:o}){var f,m;const[i,s]=S.useState(!1),l=()=>{s(!0)},a=()=>{s(!1)};let u=typeof e.text=="string"?e.text:JSON.stringify(e.text),c=[];!e.pass&&u.includes("---")&&(c=u.split("---"),u=c.slice(1).join("---"));const d=y=>{o(n,r,y)};return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"cell",children:[e.pass&&w.jsxs("div",{className:"status pass",children:["PASS ",w.jsx("span",{className:"score",children:Lg(e.score)})]}),!e.pass&&w.jsxs("div",{className:"status fail",children:["[FAIL",w.jsx("span",{className:"score",children:Lg(e.score)}),"] ",c[0]]})," ",w.jsx(Zp,{text:u,maxLength:t})]}),w.jsx("div",{className:"cell-detail",children:(f=e.tokenUsage)!=null&&f.cached?w.jsxs("span",{children:[e.tokenUsage.cached," tokens (cached)"]}):w.jsxs(w.Fragment,{children:[((m=e.tokenUsage)==null?void 0:m.total)&&w.jsxs("span",{children:[e.tokenUsage.total," tokens"]})," |"," ",w.jsxs("span",{children:[e.latencyMs," ms"]})]})}),w.jsxs("div",{className:"cell-actions",children:[e.prompt&&w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"action",onClick:l,children:"🔎"}),w.jsx(ex,{open:i,onClose:a,prompt:e.prompt,output:u})]}),w.jsx("span",{className:"action",onClick:()=>d(!0),children:"👍"}),w.jsx("span",{className:"action",onClick:()=>d(!1),children:"👎"})]})]})}function Ng({text:e,maxLength:t,smallText:n,expandedText:r}){const[o,i]=S.useState(!1),s=()=>{i(!0)},l=()=>{i(!1)};return w.jsxs("div",{children:[w.jsx(Zp,{text:e,maxLength:t}),r&&w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"action",onClick:s,children:"🔎"}),w.jsx(ex,{open:o,onClose:l,prompt:r})]}),w.jsx("div",{className:"smalltext",children:n})]})}function ZI({maxTextLength:e,columnVisibility:t,wordBreak:n,filterMode:r,failureFilter:o,onFailureFilterToggle:i}){const{table:s,setTable:l}=Uu();e1(s,"Table should be defined");const{head:a,body:u}=s,c=a.prompts.map((p,h)=>u.reduce((x,C)=>x+(C.outputs[h].pass?1:0),0)),d=(p,h,x)=>{const C=[...u],R={...C[p]},$=[...R.outputs];$[h].pass=x,$[h].score=x?1:0,R.outputs=$,C[p]=R,l({head:a,body:C})},f=c.reduce((p,h,x,C)=>h>C[p]?x:p,0),m=c[f],y=MO(),v=[y.group({id:"vars",header:()=>w.jsx("span",{children:"Variables"}),columns:a.vars.map((p,h)=>y.accessor(x=>x.vars[h],{id:`Variable ${h+1}`,header:()=>w.jsx(Ng,{smallText:`Variable ${h+1}`,text:p,maxLength:e}),cell:x=>w.jsx(Zp,{text:x.getValue(),maxLength:e}),size:50}))}),y.group({id:"prompts",header:()=>w.jsx("span",{children:"Outputs"}),columns:a.prompts.map((p,h)=>y.accessor(x=>XI(x.outputs[h]),{id:`Prompt ${h+1}`,header:()=>{const x=(c[h]/u.length*100).toFixed(2),C=c[h]===m&&m!==0,R=`Prompt ${h+1}`,$=o[R]||!1;return w.jsxs(w.Fragment,{children:[w.jsx(Ng,{smallText:`Prompt ${h+1}`,text:typeof p=="string"?p:p.display,expandedText:typeof p=="string"?void 0:p.raw,maxLength:e}),r==="failures"&&w.jsx(x1,{sx:{"& .MuiFormControlLabel-label":{fontSize:"0.75rem"}},control:w.jsx(ef,{checked:$,onChange:E=>i(R,E.target.checked)}),label:"Show failures"}),w.jsxs("div",{className:`summary ${C?"highlight":""}`,children:["Passing: ",w.jsxs("strong",{children:[x,"%"]})," (",c[h]," / ",u.length,")"]})]})},cell:x=>w.jsx(QI,{output:x.getValue(),maxTextLength:e,rowIndex:x.row.index,promptIndex:h,onRating:d})}))})],k=S.useMemo(()=>r==="failures"?Object.values(o).every(p=>!p)?u:u.filter(p=>p.outputs.some((h,x)=>{const C=`Prompt ${x+1}`,R=!h.pass;return o[C]&&R})):r==="different"?u.filter(p=>!p.outputs.every(h=>h.text===p.outputs[0].text)):u,[u,o,r]),g=LO({data:k,columns:v,columnResizeMode:"onChange",getCoreRowModel:OO(),state:{columnVisibility:t}});return w.jsxs("table",{style:{wordBreak:n},children:[w.jsx("thead",{children:g.getHeaderGroups().map(p=>w.jsx("tr",{className:"header",children:p.headers.map(h=>w.jsxs("th",{key:h.id,colSpan:h.colSpan,style:{width:h.getSize()},children:[h.isPlaceholder?null:Ig(h.column.columnDef.header,h.getContext()),w.jsx("div",{onMouseDown:h.getResizeHandler(),onTouchStart:h.getResizeHandler(),className:`resizer ${h.column.getIsResizing()?"isResizing":""}`})]}))},p.id))}),w.jsx("tbody",{children:g.getRowModel().rows.map((p,h)=>{let x=!1;return w.jsx("tr",{children:p.getVisibleCells().map(C=>{const R=C.column.id.startsWith("Variable"),$=!R&&!x;$&&(x=!0);const E=h===0&&!R;return w.jsx("td",{key:C.id,style:{width:C.column.getSize()},className:`${R?"variable":""} ${E?"first-prompt-row":""} ${$?"first-prompt-col":""}`,children:Ig(C.column.columnDef.cell,C.getContext())})})},p.id)})})]})}const JI="modulepreload",eA=function(e){return"/"+e},zg={},tA=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=eA(i),i in zg)return;zg[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===i&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":JI,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};function nA(e){return pe("MuiDialogContentText",e)}fe("MuiDialogContentText",["root"]);const rA=["children","className"],oA=e=>{const{classes:t}=e,r=me({root:["root"]},nA,t);return b({},t,r)},iA=H(yn,{shouldForwardProp:e=>an(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sA=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=X(r,rA),s=oA(i);return w.jsx(iA,b({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:J(s.root,o)},r,{classes:s}))}),lA=sA;function aA(e){return pe("MuiFormHelperText",e)}const uA=fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Dg=uA;var jg;const cA=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dA=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:l,required:a}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${Y(r)}`,n&&"contained",l&&"focused",s&&"filled",a&&"required"]};return me(u,aA,t)},fA=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Y(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Dg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dg.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),pA=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,l=X(r,cA),a=_r(),u=ro({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),c=b({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=dA(c);return w.jsx(fA,b({as:s,ownerState:c,className:J(d.root,i),ref:n},l,{children:o===" "?jg||(jg=w.jsx("span",{className:"notranslate",children:"​"})):o}))}),hA=pA;function mA(e){return pe("MuiTextField",e)}fe("MuiTextField",["root"]);const gA=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],vA={standard:M1,filled:I1,outlined:Lp},yA=e=>{const{classes:t}=e;return me({root:["root"]},mA,t)},xA=H(Wl,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SA=S.forwardRef(function(t,n){const r=xe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:l,color:a="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:y,id:v,InputLabelProps:k,inputProps:g,InputProps:p,inputRef:h,label:x,maxRows:C,minRows:R,multiline:$=!1,name:E,onBlur:M,onChange:P,onClick:I,onFocus:j,placeholder:D,required:A=!1,rows:_,select:O=!1,SelectProps:N,type:T,value:L,variant:F="outlined"}=r,q=X(r,gA),G=b({},r,{autoFocus:i,color:a,disabled:c,error:d,fullWidth:m,multiline:$,required:A,select:O,variant:F}),oe=yA(G),te={};F==="outlined"&&(k&&typeof k.shrink<"u"&&(te.notched=k.shrink),te.label=x),O&&((!N||!N.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const Q=qa(v),se=y&&Q?`${Q}-helper-text`:void 0,Ce=x&&Q?`${Q}-label`:void 0,Se=vA[F],ae=w.jsx(Se,b({"aria-describedby":se,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:m,multiline:$,name:E,rows:_,maxRows:C,minRows:R,type:T,value:L,id:Q,inputRef:h,onBlur:M,onChange:P,onFocus:j,onClick:I,placeholder:D,inputProps:g},te,p));return w.jsxs(xA,b({className:J(oe.root,l),disabled:c,error:d,fullWidth:m,ref:n,required:A,color:a,variant:F,ownerState:G},q,{children:[x!=null&&x!==""&&w.jsx(Ul,b({htmlFor:Q,id:Ce},k,{children:x})),O?w.jsx(Gl,b({"aria-describedby":se,id:Q,labelId:Ce,value:L,input:ae},N,{children:s})):ae,y&&w.jsx(hA,b({id:se},f,{children:y}))]}))}),bA=SA,wA=no(w.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),CA=no(w.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");function kA({open:e,onClose:t}){const{config:n}=Uu(),r=wt.useRef(null),[o,i]=wt.useState(!1),[s,l]=wt.useState("");wt.useEffect(()=>{e&&(async()=>{const{default:c}=await tA(()=>import("./js-yaml-8bbf9398.js"),[]);l(c.dump(n))})()},[e,n]);const a=()=>{r.current&&(r.current.select(),document.execCommand("copy"),i(!0))},u=()=>{i(!1),t()};return w.jsxs(Gp,{open:e,onClose:u,"aria-labelledby":"config-dialog-title",maxWidth:"md",fullWidth:!0,children:[w.jsx(Ta,{id:"config-dialog-title",children:w.jsxs(En,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[w.jsx(yn,{variant:"h6",children:"Config"}),w.jsx(qp,{onClick:a,children:o?w.jsx(wA,{}):w.jsx(CA,{})})]})}),w.jsx(_a,{children:w.jsx(yn,{variant:"body1",component:"div",children:w.jsx("textarea",{ref:r,readOnly:!0,value:s,style:{width:"100%",minHeight:"400px",fontFamily:"monospace",border:"1px solid #ccc"}})})}),w.jsx(Kp,{children:w.jsx(_s,{onClick:u,color:"primary",children:"Close"})})]})}var Jp={},RA=oo;Object.defineProperty(Jp,"__esModule",{value:!0});var tx=Jp.default=void 0,$A=RA(io()),EA=w,PA=(0,$A.default)((0,EA.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");tx=Jp.default=PA;const _A=({open:e,onClose:t,shareUrl:n})=>{const r=S.useRef(null),[o,i]=S.useState(!1),s=()=>{r.current&&(r.current.select(),document.execCommand("copy"),i(!0))},l=()=>{t(),i(!1)};return w.jsxs(Gp,{open:e,onClose:l,PaperProps:{style:{minWidth:"min(660px, 100%)"}},children:[w.jsx(Ta,{children:"Your eval is ready to share"}),w.jsxs(_a,{children:[w.jsx(bA,{inputRef:r,value:n,fullWidth:!0,InputProps:{readOnly:!0,endAdornment:w.jsx(qp,{onClick:s,children:o?w.jsx(Qp,{}):w.jsx(tx,{})})}}),w.jsx(lA,{sx:{fontSize:"0.75rem"},children:"Shared URLs are deleted after 1 week."})]}),w.jsx(Kp,{children:w.jsx(_s,{onClick:l,color:"primary",children:"Close"})})]})},Bg=Ty(EM)(({theme:e})=>({maxWidth:"100%",flexWrap:"wrap",[e.breakpoints.down("sm")]:{flexDirection:"column"}}));function TA(e){const n=e.slice(5,e.length-5).split("T"),r=n[1].replace(/-/g,":"),o=`${n[0]}T${r}`;return new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"})}function MA({recentFiles:e,onRecentFileSelected:t}){const{table:n,config:r}=Uu(),[o,i]=S.useState(250),[s,l]=S.useState({}),[a,u]=S.useState([]),[c,d]=S.useState({}),f=(_,O)=>{d(N=>({...N,[_]:O}))},[m,y]=S.useState("all"),v=_=>{const O=_.target.value;y(O);const N={};j.prompts.forEach((T,L)=>{const F=`Prompt ${L+1}`;N[F]=O==="failures"}),d(N)},[k,g]=S.useState("break-all"),p=_=>{g(_.target.checked?"break-all":"break-word")},[h,x]=S.useState(!1),[C,R]=S.useState(""),[$,E]=S.useState(!1),M=async()=>{E(!0);try{const _=await fetch("https://api.promptfoo.dev/eval",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:{version:1,results:{table:n},config:r}})}),{id:O}=await _.json(),N=`https://app.promptfoo.dev/eval/${O}`;R(N),x(!0)}catch{alert("Sorry, something went wrong.")}finally{E(!1)}},[P,I]=S.useState(!1);e1(n,"Table data must be loaded before rendering ResultsView");const{head:j}=n,D=_=>{const{target:{value:O}}=_;u(typeof O=="string"?O.split(","):O);const N=[...j.vars.map((L,F)=>`Variable ${F+1}`),...j.prompts.map((L,F)=>`Prompt ${F+1}`)],T={};N.forEach(L=>{T[L]=(typeof O=="string"?O.split(","):O).includes(L)}),l(T)},A=[...j.vars.map((_,O)=>({value:`Variable ${O+1}`,label:`Variable ${O+1}`,group:"Variables"})),...j.prompts.map((_,O)=>({value:`Prompt ${O+1}`,label:`Prompt ${O+1}`,group:"Prompts"}))];return S.useEffect(()=>{u([...j.vars.map((_,O)=>`Variable ${O+1}`),...j.prompts.map((_,O)=>`Prompt ${O+1}`)])},[j]),w.jsxs("div",{children:[w.jsx(En,{py:"md",children:w.jsxs(Bg,{direction:"row",spacing:4,alignItems:"center",children:[w.jsx(En,{children:e&&e.length>0&&w.jsxs(Wl,{sx:{m:1,minWidth:200},size:"small",children:[w.jsx(Ul,{children:"View run"}),w.jsx(Gl,{className:"recent-files",label:"Previous runs",defaultValue:e[0],onChange:_=>t(_.target.value),children:e.map(_=>w.jsx(Mi,{value:_,children:TA(_)},_))},e.join(","))]})}),w.jsx(En,{children:w.jsxs(Wl,{sx:{m:1,minWidth:200},size:"small",children:[w.jsx(Ul,{id:"visible-columns-label",children:"Show columns"}),w.jsx(Gl,{labelId:"visible-columns-label",id:"visible-columns",multiple:!0,value:a,onChange:D,input:w.jsx(Lp,{label:"Visible columns"}),renderValue:_=>_.join(", "),children:A.map(_=>w.jsxs(Mi,{dense:!0,value:_.value,children:[w.jsx(ef,{checked:a.indexOf(_.value)>-1}),w.jsx(r_,{primary:_.label})]},_.value))})]})}),w.jsx(En,{children:w.jsxs(Wl,{sx:{minWidth:180},size:"small",children:[w.jsx(Ul,{id:"failure-filter-mode-label",children:"Filter"}),w.jsxs(Gl,{labelId:"filter-mode-label",id:"filter-mode",value:m,onChange:v,label:"Filter",children:[w.jsx(Mi,{value:"all",children:"Show all results"}),w.jsx(Mi,{value:"failures",children:"Show failures only"}),w.jsx(Mi,{value:"different",children:"Show different only"})]})]})}),w.jsxs(En,{children:[w.jsxs(yn,{mt:2,children:["Max text length: ",o]}),w.jsx(RM,{min:25,max:1e3,value:o,onChange:(_,O)=>i(O)})]}),w.jsx(En,{children:w.jsx(Ic,{title:"Forcing line breaks makes it easier to adjust column widths to your liking",children:w.jsx(x1,{control:w.jsx(ef,{checked:k==="break-all",onChange:p}),label:"Force line breaks"})})}),w.jsx(En,{flexGrow:1}),w.jsx(En,{display:"flex",justifyContent:"flex-end",children:w.jsxs(Bg,{direction:"row",spacing:2,children:[r&&w.jsx(Ic,{title:"View config",children:w.jsx(_s,{color:"primary",onClick:()=>I(!0),startIcon:w.jsx(z1,{}),children:"Config"})}),(r==null?void 0:r.sharing)&&w.jsx(Ic,{title:"Generate a unique URL that others can access",children:w.jsx(_s,{color:"primary",onClick:M,disabled:$,startIcon:$?w.jsx(g2,{size:16}):w.jsx(N1,{}),children:"Share"})})]})})]})}),w.jsx(ZI,{maxTextLength:o,columnVisibility:s,wordBreak:k,filterMode:m,failureFilter:c,onFailureFilterToggle:f}),w.jsx(kA,{open:P,onClose:()=>I(!1)}),w.jsx(_A,{open:h,onClose:()=>x(!1),shareUrl:C})]})}function OA(){return w.jsxs(En,{className:"logo",children:[w.jsx("img",{src:"/logo.svg",alt:"Promptfoo logo"})," ",w.jsx("span",{children:"promptfoo"})]})}var eh={},IA=oo;Object.defineProperty(eh,"__esModule",{value:!0});var nx=eh.default=void 0,AA=IA(io()),FA=w,LA=(0,AA.default)((0,FA.jsx)("path",{d:"M12 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-.1z"}),"DarkMode");nx=eh.default=LA;var th={},NA=oo;Object.defineProperty(th,"__esModule",{value:!0});var rx=th.default=void 0,zA=NA(io()),DA=w,jA=(0,zA.default)((0,DA.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.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.41L5.99 4.58zm12.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.41l-1.06-1.06zm1.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 0l1.06-1.06zM7.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 0l1.06-1.06z"}),"LightMode");rx=th.default=jA;function BA({darkMode:e,onToggleDarkMode:t}){return w.jsxs("nav",{children:[w.jsx(OA,{}),w.jsx("div",{className:"dark-mode-toggle",onClick:t,children:e?w.jsx(nx,{}):w.jsx(rx,{})})]})}function VA(){const{table:e,setTable:t,setConfig:n}=Uu(),[r,o]=S.useState(!1),i=S.useRef(!1),[s,l]=S.useState([]),a=Rk("(prefers-color-scheme: dark)"),[u,c]=S.useState(a),d=S.useMemo(()=>bp({palette:{mode:u?"dark":"light"}}),[u]),f=()=>{c(!u),u?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme","dark")};S.useEffect(()=>{a&&document.documentElement.setAttribute("data-theme","dark")},[a]);const m=async()=>{if(!window.location.href.includes("localhost"))return;const k=await(await fetch("http://localhost:15500/results")).json();l(k.data)},y=async v=>{const g=await(await fetch(`http://localhost:15500/results/${v}`)).json();t(g.data.results.table),n(g.data.config)};return S.useEffect(()=>{const v=async p=>{var C;if(i.current)return;i.current=!0;const x=await(await fetch(`https://api.promptfoo.dev/eval/${p}`)).json();t(((C=x.data.results)==null?void 0:C.table)||x.data.table),n(x.data.config),o(!0)},k=Vl("http://localhost:15500"),g=window.location.pathname.match(/\/eval\/([\w:-]+)/);if(g){const p=g[1];v(p)}else k.on("init",p=>{console.log("Initialized socket connection",p),o(!0),t(p.results.table),n(p.config),m()}),k.on("update",p=>{console.log("Received data update",p),t(p.results.table),n(p.config),m()});return()=>{k.disconnect()}},[t,n]),w.jsxs(uR,{theme:d,children:[w.jsx(BA,{darkMode:u,onToggleDarkMode:f}),r&&e?w.jsx(MA,{recentFiles:s,onRecentFileSelected:y}):w.jsx("div",{children:"Loading..."})]})}Hc.createRoot(document.getElementById("root")).render(w.jsx(wt.StrictMode,{children:w.jsx(VA,{})}));