From 661ab311fbf3993a9c2baf8b2add2da40c5ac037 Mon Sep 17 00:00:00 2001 From: tombogle Date: Mon, 4 Mar 2024 18:20:28 -0500 Subject: [PATCH 1/4] #772: Factored out the HamburgerMenuButton into its own component and hooked it up to be used in the toolbar and platform-tab-title.component. --- lib/platform-bible-react/dist/index.cjs | 384 ++-- lib/platform-bible-react/dist/index.cjs.map | 2 +- lib/platform-bible-react/dist/index.d.ts | 23 +- lib/platform-bible-react/dist/index.js | 1857 +++++++++-------- lib/platform-bible-react/dist/index.js.map | 2 +- .../hamburger-menu-button.component.tsx | 121 ++ .../src/components/toolbar.component.tsx | 85 +- lib/platform-bible-react/src/index.ts | 1 + .../docking/platform-dock-tab.component.tsx | 1 + .../docking/platform-tab-title.component.scss | 2 +- .../docking/platform-tab-title.component.tsx | 51 +- src/shared/models/docking-framework.model.ts | 6 + 12 files changed, 1332 insertions(+), 1203 deletions(-) create mode 100644 lib/platform-bible-react/src/components/hamburger-menu-button.component.tsx diff --git a/lib/platform-bible-react/dist/index.cjs b/lib/platform-bible-react/dist/index.cjs index d949b87c02..7e409026c5 100644 --- a/lib/platform-bible-react/dist/index.cjs +++ b/lib/platform-bible-react/dist/index.cjs @@ -1,23 +1,23 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),pe=require("@mui/material"),ie=require("react"),hr=require("@mui/styled-engine"),Gt=require("react-dom"),Le=require("platform-bible-utils"),po=require("react-data-grid");function pi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const T=pi(ie),Vs=pi(Gt);function lt({id:e,isDisabled:t=!1,className:n,onClick:r,onContextMenu:o,children:i}){return P.jsx(pe.Button,{id:e,disabled:t,className:`papi-button ${n??""}`,onClick:r,onContextMenu:o,children:i})}function Sn({id:e,title:t,isDisabled:n=!1,isClearable:r=!0,hasError:o=!1,isFullWidth:i=!1,width:a,options:l=[],className:c,value:u,onChange:p,onFocus:f,onBlur:d,getOptionLabel:b}){return P.jsx(pe.Autocomplete,{id:e,disablePortal:!0,disabled:n,disableClearable:!r,fullWidth:i,options:l,className:`papi-combo-box ${o?"error":""} ${c??""}`,value:u,onChange:p,onFocus:f,onBlur:d,getOptionLabel:b,renderInput:v=>P.jsx(pe.TextField,{...v,error:o,fullWidth:i,disabled:n,label:t,style:{width:a}})})}function zs({startChapter:e,endChapter:t,handleSelectStartChapter:n,handleSelectEndChapter:r,isDisabled:o,chapterCount:i}){const a=ie.useMemo(()=>Array.from({length:i},(u,p)=>p+1),[i]),l=(u,p)=>{n(p),p>t&&r(p)},c=(u,p)=>{r(p),pl(u,p),className:"book-selection-chapter",isClearable:!1,options:a,getOptionLabel:u=>u.toString(),value:e,isDisabled:o},"start chapter"),label:"Chapters",labelPlacement:"start"}),P.jsx(pe.FormControlLabel,{className:"book-selection-chapter-form-label end",disabled:o,control:P.jsx(Sn,{onChange:(u,p)=>c(u,p),className:"book-selection-chapter",isClearable:!1,options:a,getOptionLabel:u=>u.toString(),value:t,isDisabled:o},"end chapter"),label:"to",labelPlacement:"start"})]})}var pt=(e=>(e.After="after",e.Before="before",e.Above="above",e.Below="below",e))(pt||{});function di({id:e,isChecked:t,labelText:n="",labelPosition:r=pt.After,isIndeterminate:o=!1,isDefaultChecked:i,isDisabled:a=!1,hasError:l=!1,className:c,onChange:u}){const p=P.jsx(pe.Checkbox,{id:e,checked:t,indeterminate:o,defaultChecked:i,disabled:a,className:`papi-checkbox ${l?"error":""} ${c??""}`,onChange:u});let f;if(n){const d=r===pt.Before||r===pt.Above,b=P.jsx("span",{className:`papi-checkbox-label ${l?"error":""} ${c??""}`,children:n}),v=r===pt.Before||r===pt.After,m=v?b:P.jsx("div",{children:b}),h=v?p:P.jsx("div",{children:p});f=P.jsxs(pe.FormLabel,{className:`papi-checkbox ${r.toString()}`,disabled:a,error:l,children:[d&&m,h,!d&&m]})}else f=p;return f}function ue(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;te[n]})}}return t.default=e,Object.freeze(t)}const T=pi(ie),zs=pi(Gt);function lt({id:e,isDisabled:t=!1,className:n,onClick:r,onContextMenu:o,children:i}){return P.jsx(pe.Button,{id:e,disabled:t,className:`papi-button ${n??""}`,onClick:r,onContextMenu:o,children:i})}function Sn({id:e,title:t,isDisabled:n=!1,isClearable:r=!0,hasError:o=!1,isFullWidth:i=!1,width:a,options:l=[],className:c,value:u,onChange:p,onFocus:f,onBlur:d,getOptionLabel:b}){return P.jsx(pe.Autocomplete,{id:e,disablePortal:!0,disabled:n,disableClearable:!r,fullWidth:i,options:l,className:`papi-combo-box ${o?"error":""} ${c??""}`,value:u,onChange:p,onFocus:f,onBlur:d,getOptionLabel:b,renderInput:v=>P.jsx(pe.TextField,{...v,error:o,fullWidth:i,disabled:n,label:t,style:{width:a}})})}function Us({startChapter:e,endChapter:t,handleSelectStartChapter:n,handleSelectEndChapter:r,isDisabled:o,chapterCount:i}){const a=ie.useMemo(()=>Array.from({length:i},(u,p)=>p+1),[i]),l=(u,p)=>{n(p),p>t&&r(p)},c=(u,p)=>{r(p),pl(u,p),className:"book-selection-chapter",isClearable:!1,options:a,getOptionLabel:u=>u.toString(),value:e,isDisabled:o},"start chapter"),label:"Chapters",labelPlacement:"start"}),P.jsx(pe.FormControlLabel,{className:"book-selection-chapter-form-label end",disabled:o,control:P.jsx(Sn,{onChange:(u,p)=>c(u,p),className:"book-selection-chapter",isClearable:!1,options:a,getOptionLabel:u=>u.toString(),value:t,isDisabled:o},"end chapter"),label:"to",labelPlacement:"start"})]})}var pt=(e=>(e.After="after",e.Before="before",e.Above="above",e.Below="below",e))(pt||{});function di({id:e,isChecked:t,labelText:n="",labelPosition:r=pt.After,isIndeterminate:o=!1,isDefaultChecked:i,isDisabled:a=!1,hasError:l=!1,className:c,onChange:u}){const p=P.jsx(pe.Checkbox,{id:e,checked:t,indeterminate:o,defaultChecked:i,disabled:a,className:`papi-checkbox ${l?"error":""} ${c??""}`,onChange:u});let f;if(n){const d=r===pt.Before||r===pt.Above,b=P.jsx("span",{className:`papi-checkbox-label ${l?"error":""} ${c??""}`,children:n}),v=r===pt.Before||r===pt.After,g=v?b:P.jsx("div",{children:b}),h=v?p:P.jsx("div",{children:p});f=P.jsxs(pe.FormLabel,{className:`papi-checkbox ${r.toString()}`,disabled:a,error:l,children:[d&&g,h,!d&&g]})}else f=p;return f}function ue(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function M(V,K,F,U,q){for(var G=V[K],H=0;H0?", expected one of type ["+X.join(", ")+"]":"";return new m("Invalid "+G+" `"+H+"` supplied to "+("`"+q+"`"+J+"."))}return h(K)}function I(){function O(M,V,K,F,U){return L(M[V])?null:new m("Invalid "+F+" `"+U+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return h(O)}function B(O,M,V,K,F){return new m((O||"React class")+": "+M+" type `"+V+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function z(O){function M(V,K,F,U,q){var G=V[K],H=R(G);if(H!=="object")return new m("Invalid "+U+" `"+q+"` of type `"+H+"` "+("supplied to `"+F+"`, expected `object`."));for(var X in O){var Y=O[X];if(typeof Y!="function")return B(F,U,q,X,D(Y));var ne=Y(G,X,F,U,q+"."+X,n);if(ne)return ne}return null}return h(M)}function W(O){function M(V,K,F,U,q){var G=V[K],H=R(G);if(H!=="object")return new m("Invalid "+U+" `"+q+"` of type `"+H+"` "+("supplied to `"+F+"`, expected `object`."));var X=t({},V[K],O);for(var Y in X){var ne=O[Y];if(r(O,Y)&&typeof ne!="function")return B(F,U,q,Y,D(ne));if(!ne)return new m("Invalid "+U+" `"+q+"` key `"+Y+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(V[K],null," ")+` -Valid keys: `+JSON.stringify(Object.keys(O),null," "));var N=ne(G,Y,F,U,q+"."+Y,n);if(N)return N}return null}return h(M)}function L(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(L);if(O===null||l(O))return!0;var M=f(O);if(M){var V=M.call(O),K;if(M!==O.entries){for(;!(K=V.next()).done;)if(!L(K.value))return!1}else for(;!(K=V.next()).done;){var F=K.value;if(F&&!L(F[1]))return!1}}else return!1;return!0;default:return!1}}function _(O,M){return O==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function R(O){var M=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":_(M,O)?"symbol":M}function D(O){if(typeof O>"u"||O===null)return""+O;var M=R(O);if(M==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return M}function Q(O){var M=D(O);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function Z(O){return!O.constructor||!O.constructor.name?d:O.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},rr}var or,Eo;function Ys(){if(Eo)return or;Eo=1;var e=kr();function t(){}function n(){}return n.resetWarningCache=t,or=function(){function r(a,l,c,u,p,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},or}if(process.env.NODE_ENV!=="production"){var Js=fi(),Zs=!0;mr.exports=Xs()(Js.isElement,Zs)}else mr.exports=Ys()();var Qs=mr.exports;const s=Us(Qs);function mi(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tnull:function(...r){return e(...r)||t(...r)}}function dt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gi(e){if(!dt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=gi(e[n])}),t}function Ke(e,t,n={clone:!0}){const r=n.clone?w({},e):e;return dt(e)&&dt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(dt(t[o])&&o in e&&dt(e[o])?r[o]=Ke(e[o],t[o],n):n.clone?r[o]=dt(t[o])?gi(t[o]):t[o]:r[o]=t[o])}),r}function ea(e){const{prototype:t={}}=e;return!!t.isReactComponent}function bi(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!ea(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const vi=At(s.element,bi);vi.isRequired=At(s.element.isRequired,bi);const ln=vi;function ta(e){const{prototype:t={}}=e;return!!t.isReactComponent}function na(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!ta(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ra=At(s.elementType,na),oa="exact-prop: ​";function yi(e){return process.env.NODE_ENV==="production"?e:w({},e,{[oa]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function Rt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function M(V,K,F,U,q){for(var G=V[K],H=0;H0?", expected one of type ["+X.join(", ")+"]":"";return new g("Invalid "+G+" `"+H+"` supplied to "+("`"+q+"`"+J+"."))}return h(K)}function I(){function O(M,V,K,F,U){return L(M[V])?null:new g("Invalid "+F+" `"+U+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return h(O)}function B(O,M,V,K,F){return new g((O||"React class")+": "+M+" type `"+V+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function z(O){function M(V,K,F,U,q){var G=V[K],H=R(G);if(H!=="object")return new g("Invalid "+U+" `"+q+"` of type `"+H+"` "+("supplied to `"+F+"`, expected `object`."));for(var X in O){var Y=O[X];if(typeof Y!="function")return B(F,U,q,X,D(Y));var ne=Y(G,X,F,U,q+"."+X,n);if(ne)return ne}return null}return h(M)}function W(O){function M(V,K,F,U,q){var G=V[K],H=R(G);if(H!=="object")return new g("Invalid "+U+" `"+q+"` of type `"+H+"` "+("supplied to `"+F+"`, expected `object`."));var X=t({},V[K],O);for(var Y in X){var ne=O[Y];if(r(O,Y)&&typeof ne!="function")return B(F,U,q,Y,D(ne));if(!ne)return new g("Invalid "+U+" `"+q+"` key `"+Y+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(V[K],null," ")+` +Valid keys: `+JSON.stringify(Object.keys(O),null," "));var N=ne(G,Y,F,U,q+"."+Y,n);if(N)return N}return null}return h(M)}function L(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(L);if(O===null||l(O))return!0;var M=f(O);if(M){var V=M.call(O),K;if(M!==O.entries){for(;!(K=V.next()).done;)if(!L(K.value))return!1}else for(;!(K=V.next()).done;){var F=K.value;if(F&&!L(F[1]))return!1}}else return!1;return!0;default:return!1}}function _(O,M){return O==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function R(O){var M=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":_(M,O)?"symbol":M}function D(O){if(typeof O>"u"||O===null)return""+O;var M=R(O);if(M==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return M}function Q(O){var M=D(O);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function Z(O){return!O.constructor||!O.constructor.name?d:O.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},rr}var or,Eo;function Js(){if(Eo)return or;Eo=1;var e=kr();function t(){}function n(){}return n.resetWarningCache=t,or=function(){function r(a,l,c,u,p,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},or}if(process.env.NODE_ENV!=="production"){var Zs=fi(),Qs=!0;mr.exports=Ys()(Zs.isElement,Qs)}else mr.exports=Js()();var ea=mr.exports;const s=Hs(ea);function mi(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tnull:function(...r){return e(...r)||t(...r)}}function dt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function gi(e){if(!dt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=gi(e[n])}),t}function Ke(e,t,n={clone:!0}){const r=n.clone?w({},e):e;return dt(e)&&dt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(dt(t[o])&&o in e&&dt(e[o])?r[o]=Ke(e[o],t[o],n):n.clone?r[o]=dt(t[o])?gi(t[o]):t[o]:r[o]=t[o])}),r}function ta(e){const{prototype:t={}}=e;return!!t.isReactComponent}function bi(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!ta(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const vi=At(s.element,bi);vi.isRequired=At(s.element.isRequired,bi);const ln=vi;function na(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ra(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!na(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oa=At(s.elementType,ra),ia="exact-prop: ​";function yi(e){return process.env.NODE_ENV==="production"?e:w({},e,{[ia]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function Rt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Ei(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 pa(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,a)=>{const l=o||"<>",c=a||r;return typeof n[r]<"u"?new Error(`The ${i} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function da(e,t){var n,r;return T.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ye(e){return e&&e.ownerDocument||document}function Nt(e){return ye(e).defaultView||window}function fa(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?w({},t.propTypes):null;return o=>(i,a,l,c,u,...p)=>{const f=u||a,d=n==null?void 0:n[f];if(d){const b=d(i,a,l,c,u,...p);if(b)return b}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Rn(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ha=typeof window<"u"?T.useLayoutEffect:T.useEffect,ht=ha;let Po=0;function ma(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(Po+=1,n(`mui-${Po}`))},[t]),r}const ko=T["useId".toString()];function Ti(e){if(ko!==void 0){const t=ko();return e??t}return ma(e)}function ga(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function wi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=T.useRef(e!==void 0),[i,a]=T.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` + */var wo;function aa(){return wo||(wo=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v=!1,g=!1,h=!1,E=!1,$=!1,y;y=Symbol.for("react.module.reference");function x(C){return!!(typeof C=="string"||typeof C=="function"||C===n||C===o||$||C===r||C===u||C===p||E||C===b||v||g||h||typeof C=="object"&&C!==null&&(C.$$typeof===d||C.$$typeof===f||C.$$typeof===i||C.$$typeof===a||C.$$typeof===c||C.$$typeof===y||C.getModuleId!==void 0))}function m(C){if(typeof C=="object"&&C!==null){var re=C.$$typeof;switch(re){case e:var be=C.type;switch(be){case n:case o:case r:case u:case p:return be;default:var Ee=be&&be.$$typeof;switch(Ee){case l:case a:case c:case d:case f:case i:return Ee;default:return re}}case t:return re}}}var k=a,S=i,j=e,A=c,I=n,B=d,z=f,W=t,L=o,_=r,R=u,D=p,Q=!1,Z=!1;function O(C){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(C){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(C){return m(C)===a}function K(C){return m(C)===i}function F(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function U(C){return m(C)===c}function q(C){return m(C)===n}function G(C){return m(C)===d}function H(C){return m(C)===f}function X(C){return m(C)===t}function Y(C){return m(C)===o}function ne(C){return m(C)===r}function N(C){return m(C)===u}function J(C){return m(C)===p}ce.ContextConsumer=k,ce.ContextProvider=S,ce.Element=j,ce.ForwardRef=A,ce.Fragment=I,ce.Lazy=B,ce.Memo=z,ce.Portal=W,ce.Profiler=L,ce.StrictMode=_,ce.Suspense=R,ce.SuspenseList=D,ce.isAsyncMode=O,ce.isConcurrentMode=M,ce.isContextConsumer=V,ce.isContextProvider=K,ce.isElement=F,ce.isForwardRef=U,ce.isFragment=q,ce.isLazy=G,ce.isMemo=H,ce.isPortal=X,ce.isProfiler=Y,ce.isStrictMode=ne,ce.isSuspense=N,ce.isSuspenseList=J,ce.isValidElementType=x,ce.typeOf=m}()),ce}process.env.NODE_ENV==="production"?gr.exports=sa():gr.exports=aa();var Cn=gr.exports;const la=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ca(e){const t=`${e}`.match(la);return t&&t[1]||""}function xi(e,t=""){return e.displayName||e.name||ca(e)||t}function Oo(e,t,n){const r=xi(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function ua(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return xi(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Cn.ForwardRef:return Oo(e,e.render,"ForwardRef");case Cn.Memo:return Oo(e,e.type,"memo");default:return}}}function Xe(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const pa=s.oneOfType([s.func,s.object]),Sr=pa;function ze(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Rt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function br(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Ei(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 da(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,a)=>{const l=o||"<>",c=a||r;return typeof n[r]<"u"?new Error(`The ${i} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function fa(e,t){var n,r;return T.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ye(e){return e&&e.ownerDocument||document}function Nt(e){return ye(e).defaultView||window}function ha(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?w({},t.propTypes):null;return o=>(i,a,l,c,u,...p)=>{const f=u||a,d=n==null?void 0:n[f];if(d){const b=d(i,a,l,c,u,...p);if(b)return b}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Rn(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ma=typeof window<"u"?T.useLayoutEffect:T.useEffect,ht=ma;let Po=0;function ga(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(Po+=1,n(`mui-${Po}`))},[t]),r}const ko=T["useId".toString()];function Ti(e){if(ko!==void 0){const t=ko();return e??t}return ga(e)}function ba(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function wi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=T.useRef(e!==void 0),[i,a]=T.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` `))},[r,n,e]);const{current:u}=T.useRef(t);T.useEffect(()=>{!o&&u!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(` -`))},[JSON.stringify(t)])}const c=T.useCallback(u=>{o||a(u)},[]);return[l,c]}function tn(e){const t=T.useRef(e);return ht(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function Ae(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Rn(n,t)})},e)}const So={};function ba(e,t){const n=T.useRef(So);return n.current===So&&(n.current=e(t)),n}const va=[];function ya(e){T.useEffect(e,va)}class cn{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new cn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function Kt(){const e=ba(cn.create).current;return ya(e.disposeEffect),e}let jn=!0,vr=!1;const xa=new cn,Ea={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 Ta(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ea[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function wa(e){e.metaKey||e.altKey||e.ctrlKey||(jn=!0)}function ir(){jn=!1}function Oa(){this.visibilityState==="hidden"&&vr&&(jn=!0)}function Pa(e){e.addEventListener("keydown",wa,!0),e.addEventListener("mousedown",ir,!0),e.addEventListener("pointerdown",ir,!0),e.addEventListener("touchstart",ir,!0),e.addEventListener("visibilitychange",Oa,!0)}function ka(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return jn||Ta(t)}function Oi(){const e=T.useCallback(o=>{o!=null&&Pa(o.ownerDocument)},[]),t=T.useRef(!1);function n(){return t.current?(vr=!0,xa.start(100,()=>{vr=!1}),t.current=!1,!0):!1}function r(o){return ka(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Pi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Sa(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Ca(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const Ra=Number.isInteger||Ca;function ki(e,t,n,r){const o=e[t];if(o==null||!Ra(o)){const i=Sa(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Si(e,t,...n){return e[t]===void 0?null:ki(e,t,...n)}function yr(){return null}Si.isRequired=ki;yr.isRequired=yr;const Ci=process.env.NODE_ENV==="production"?yr:Si;function Ri(e,t){const n=w({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=w({},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]=w({},i),Object.keys(o).forEach(a=>{n[r][a]=Ri(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ze(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const Co=e=>e,Na=()=>{let e=Co;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Co}}},$a=Na(),Ni=$a,$i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function He(e,t,n="Mui"){const r=$i[t];return r?`${n}-${r}`:`${Ni.generate(e)}-${t}`}function rt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=He(e,o,n)}),r}function Ma(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Mi(e){return typeof e=="string"}function Xt(e,t,n){return e===void 0||Mi(e)?t:w({},t,{ownerState:w({},t.ownerState,n)})}const _a={disableDefaultClasses:!1},Ia=T.createContext(_a);function Aa(e){const{disableDefaultClasses:t}=T.useContext(Ia);return n=>t?"":e(n)}function _i(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 ja(e,t,n){return typeof e=="function"?e(t,n):e}function Ii(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Da(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=Ro(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=w({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=w({},n,o,r);return b.length>0&&(m.className=b),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const a=_i(w({},o,r)),l=No(r),c=No(o),u=t(a),p=Ro(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),f=w({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),d=w({},u,n,c,l);return p.length>0&&(d.className=p),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const Ba=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ue(e,Ba),l=i?{}:ja(r,o),{props:c,internalRef:u}=Da(w({},a,{externalSlotProps:l})),p=Ae(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Xt(n,w({},c,{ref:p}),o)}const Ai="base";function La(e){return`${Ai}--${e}`}function Fa(e,t){return`${Ai}-${e}-${t}`}function ji(e,t){const n=$i[t];return n?La(n):Fa(e,t)}function Va(e,t){const n={};return t.forEach(r=>{n[r]=ji(e,r)}),n}const za=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ua(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 Ha(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 qa(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ha(e))}function Wa(e){const t=[],n=[];return Array.from(e.querySelectorAll(za)).forEach((r,o)=>{const i=Ua(r);i===-1||!qa(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 Ga(){return!0}function Nn(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Wa,isEnabled:a=Ga,open:l}=e,c=T.useRef(!1),u=T.useRef(null),p=T.useRef(null),f=T.useRef(null),d=T.useRef(null),b=T.useRef(!1),v=T.useRef(null),m=Ae(t.ref,v),h=T.useRef(null);T.useEffect(()=>{!l||!v.current||(b.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!v.current)return;const y=ye(v.current);return v.current.contains(y.activeElement)||(v.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(` -`)),v.current.setAttribute("tabIndex","-1")),b.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),T.useEffect(()=>{if(!l||!v.current)return;const y=ye(v.current),x=S=>{h.current=S,!(r||!a()||S.key!=="Tab")&&y.activeElement===v.current&&S.shiftKey&&(c.current=!0,p.current&&p.current.focus())},g=()=>{const S=v.current;if(S===null)return;if(!y.hasFocus()||!a()||c.current){c.current=!1;return}if(S.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==p.current)return;if(y.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!b.current)return;let j=[];if((y.activeElement===u.current||y.activeElement===p.current)&&(j=i(v.current)),j.length>0){var A,I;const B=!!((A=h.current)!=null&&A.shiftKey&&((I=h.current)==null?void 0:I.key)==="Tab"),z=j[0],W=j[j.length-1];typeof z!="string"&&typeof W!="string"&&(B?W.focus():z.focus())}else S.focus()};y.addEventListener("focusin",g),y.addEventListener("keydown",x,!0);const k=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&g()},50);return()=>{clearInterval(k),y.removeEventListener("focusin",g),y.removeEventListener("keydown",x,!0)}},[n,r,o,a,l,i]);const E=y=>{f.current===null&&(f.current=y.relatedTarget),b.current=!0,d.current=y.target;const x=t.props.onFocus;x&&x(y)},$=y=>{f.current===null&&(f.current=y.relatedTarget),b.current=!0};return P.jsxs(T.Fragment,{children:[P.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:m,onFocus:E}),P.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:ln,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Nn["propTypes"]=yi(Nn.propTypes));function Ka(e){return typeof e=="function"?e():e}const nn=T.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=T.useState(null),c=Ae(T.isValidElement(r)?r.ref:null,n);if(ht(()=>{i||l(Ka(o)||document.body)},[o,i]),ht(()=>{if(a&&!i)return Rn(n,a),()=>{Rn(n,null)}},[n,a,i]),i){if(T.isValidElement(r)){const u={ref:c};return T.cloneElement(r,u)}return P.jsx(T.Fragment,{children:r})}return P.jsx(T.Fragment,{children:a&&Vs.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(nn.propTypes={children:s.node,container:s.oneOfType([Xe,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(nn["propTypes"]=yi(nn.propTypes));function Xa(e){const t=ye(e);return t.body===e?Nt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Jt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $o(e){return parseInt(Nt(e).getComputedStyle(e).paddingRight,10)||0}function Ya(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 Mo(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=i.indexOf(a)===-1,c=!Ya(a);l&&c&&Jt(a,o)})}function sr(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Ja(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Xa(r)){const a=Pi(ye(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${$o(r)+a}px`;const l=ye(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${$o(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ye(r).body;else{const a=r.parentElement,l=Nt(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function Za(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Qa{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&&Jt(t.modalRef,!1);const o=Za(n);Mo(n,t.mount,t.modalRef,o,!0);const i=sr(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=sr(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Ja(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=sr(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Jt(t.modalRef,n),Mo(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Jt(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function el(e){return typeof e=="function"?e():e}function tl(e){return e?e.props.hasOwnProperty("in"):!1}const nl=new Qa;function rl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=nl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:p,rootRef:f}=e,d=T.useRef({}),b=T.useRef(null),v=T.useRef(null),m=Ae(v,f),[h,E]=T.useState(!p),$=tl(c);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const x=()=>ye(b.current),g=()=>(d.current.modalRef=v.current,d.current.mount=b.current,d.current),k=()=>{o.mount(g(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},S=tn(()=>{const R=el(t)||x().body;o.add(g(),R),v.current&&k()}),j=T.useCallback(()=>o.isTopModal(g()),[o]),A=tn(R=>{b.current=R,R&&(p&&j()?k():v.current&&Jt(v.current,y))}),I=T.useCallback(()=>{o.remove(g(),y)},[y,o]);T.useEffect(()=>()=>{I()},[I]),T.useEffect(()=>{p?S():(!$||!i)&&I()},[p,I,$,i,S]);const B=R=>D=>{var Q;(Q=R.onKeyDown)==null||Q.call(R,D),!(D.key!=="Escape"||D.which===229||!j())&&(n||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},z=R=>D=>{var Q;(Q=R.onClick)==null||Q.call(R,D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:(R={})=>{const D=_i(e);delete D.onTransitionEnter,delete D.onTransitionExited;const Q=w({},D,R);return w({role:"presentation"},Q,{onKeyDown:B(Q),ref:m})},getBackdropProps:(R={})=>{const D=R;return w({"aria-hidden":!0},D,{onClick:z(D),open:p})},getTransitionProps:()=>{const R=()=>{E(!1),a&&a()},D=()=>{E(!0),l&&l(),i&&I()};return{onEnter:br(R,c==null?void 0:c.props.onEnter),onExited:br(D,c==null?void 0:c.props.onExited)}},rootRef:m,portalRef:A,isTopModal:j,exited:h,hasTransition:$}}var Oe="top",je="bottom",De="right",Pe="left",Cr="auto",un=[Oe,je,De,Pe],$t="start",rn="end",ol="clippingParents",Di="viewport",zt="popper",il="reference",_o=un.reduce(function(e,t){return e.concat([t+"-"+$t,t+"-"+rn])},[]),Bi=[].concat(un,[Cr]).reduce(function(e,t){return e.concat([t,t+"-"+$t,t+"-"+rn])},[]),sl="beforeRead",al="read",ll="afterRead",cl="beforeMain",ul="main",pl="afterMain",dl="beforeWrite",fl="write",hl="afterWrite",ml=[sl,al,ll,cl,ul,pl,dl,fl,hl];function Ue(e){return e?(e.nodeName||"").toLowerCase():null}function $e(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gt(e){var t=$e(e).Element;return e instanceof t||e instanceof Element}function Ie(e){var t=$e(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Rr(e){if(typeof ShadowRoot>"u")return!1;var t=$e(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function gl(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];!Ie(i)||!Ue(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function bl(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!Ie(o)||!Ue(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const vl={name:"applyStyles",enabled:!0,phase:"write",fn:gl,effect:bl,requires:["computeStyles"]};function Ve(e){return e.split("-")[0]}var ft=Math.max,$n=Math.min,Mt=Math.round;function xr(){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 Li(){return!/^((?!chrome|android).)*safari/i.test(xr())}function _t(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ie(e)&&(o=e.offsetWidth>0&&Mt(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Mt(r.height)/e.offsetHeight||1);var a=gt(e)?$e(e):window,l=a.visualViewport,c=!Li()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,p=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/o,d=r.height/i;return{width:f,height:d,top:p,right:u+f,bottom:p+d,left:u,x:u,y:p}}function Nr(e){var t=_t(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 Fi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Rr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ye(e){return $e(e).getComputedStyle(e)}function yl(e){return["table","td","th"].indexOf(Ue(e))>=0}function ot(e){return((gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dn(e){return Ue(e)==="html"?e:e.assignedSlot||e.parentNode||(Rr(e)?e.host:null)||ot(e)}function Io(e){return!Ie(e)||Ye(e).position==="fixed"?null:e.offsetParent}function xl(e){var t=/firefox/i.test(xr()),n=/Trident/i.test(xr());if(n&&Ie(e)){var r=Ye(e);if(r.position==="fixed")return null}var o=Dn(e);for(Rr(o)&&(o=o.host);Ie(o)&&["html","body"].indexOf(Ue(o))<0;){var i=Ye(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 pn(e){for(var t=$e(e),n=Io(e);n&&yl(n)&&Ye(n).position==="static";)n=Io(n);return n&&(Ue(n)==="html"||Ue(n)==="body"&&Ye(n).position==="static")?t:n||xl(e)||t}function $r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zt(e,t,n){return ft(e,$n(t,n))}function El(e,t,n){var r=Zt(e,t,n);return r>n?n:r}function Vi(){return{top:0,right:0,bottom:0,left:0}}function zi(e){return Object.assign({},Vi(),e)}function Ui(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Tl=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,zi(typeof t!="number"?t:Ui(t,un))};function wl(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Ve(n.placement),c=$r(l),u=[Pe,De].indexOf(l)>=0,p=u?"height":"width";if(!(!i||!a)){var f=Tl(o.padding,n),d=Nr(i),b=c==="y"?Oe:Pe,v=c==="y"?je:De,m=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],h=a[c]-n.rects.reference[c],E=pn(i),$=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,y=m/2-h/2,x=f[b],g=$-d[p]-f[v],k=$/2-d[p]/2+y,S=Zt(x,k,g),j=c;n.modifiersData[r]=(t={},t[j]=S,t.centerOffset=S-k,t)}}function Ol(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)||Fi(t.elements.popper,o)&&(t.elements.arrow=o))}const Pl={name:"arrow",enabled:!0,phase:"main",fn:wl,effect:Ol,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function It(e){return e.split("-")[1]}var kl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sl(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Mt(n*o)/o||0,y:Mt(r*o)/o||0}}function Ao(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,f=e.isFixed,d=a.x,b=d===void 0?0:d,v=a.y,m=v===void 0?0:v,h=typeof p=="function"?p({x:b,y:m}):{x:b,y:m};b=h.x,m=h.y;var E=a.hasOwnProperty("x"),$=a.hasOwnProperty("y"),y=Pe,x=Oe,g=window;if(u){var k=pn(n),S="clientHeight",j="clientWidth";if(k===$e(n)&&(k=ot(n),Ye(k).position!=="static"&&l==="absolute"&&(S="scrollHeight",j="scrollWidth")),k=k,o===Oe||(o===Pe||o===De)&&i===rn){x=je;var A=f&&k===g&&g.visualViewport?g.visualViewport.height:k[S];m-=A-r.height,m*=c?1:-1}if(o===Pe||(o===Oe||o===je)&&i===rn){y=De;var I=f&&k===g&&g.visualViewport?g.visualViewport.width:k[j];b-=I-r.width,b*=c?1:-1}}var B=Object.assign({position:l},u&&kl),z=p===!0?Sl({x:b,y:m},$e(n)):{x:b,y:m};if(b=z.x,m=z.y,c){var W;return Object.assign({},B,(W={},W[x]=$?"0":"",W[y]=E?"0":"",W.transform=(g.devicePixelRatio||1)<=1?"translate("+b+"px, "+m+"px)":"translate3d("+b+"px, "+m+"px, 0)",W))}return Object.assign({},B,(t={},t[x]=$?m+"px":"",t[y]=E?b+"px":"",t.transform="",t))}function Cl(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Ve(t.placement),variation:It(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,Ao(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ao(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Rl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cl,data:{}};var yn={passive:!0};function Nl(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=$e(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(p){p.addEventListener("scroll",n.update,yn)}),l&&c.addEventListener("resize",n.update,yn),function(){i&&u.forEach(function(p){p.removeEventListener("scroll",n.update,yn)}),l&&c.removeEventListener("resize",n.update,yn)}}const $l={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nl,data:{}};var Ml={left:"right",right:"left",bottom:"top",top:"bottom"};function wn(e){return e.replace(/left|right|bottom|top/g,function(t){return Ml[t]})}var _l={start:"end",end:"start"};function jo(e){return e.replace(/start|end/g,function(t){return _l[t]})}function Mr(e){var t=$e(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _r(e){return _t(ot(e)).left+Mr(e).scrollLeft}function Il(e,t){var n=$e(e),r=ot(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var u=Li();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+_r(e),y:c}}function Al(e){var t,n=ot(e),r=Mr(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ft(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ft(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+_r(e),c=-r.scrollTop;return Ye(o||n).direction==="rtl"&&(l+=ft(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Ir(e){var t=Ye(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Hi(e){return["html","body","#document"].indexOf(Ue(e))>=0?e.ownerDocument.body:Ie(e)&&Ir(e)?e:Hi(Dn(e))}function Qt(e,t){var n;t===void 0&&(t=[]);var r=Hi(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=$e(r),a=o?[i].concat(i.visualViewport||[],Ir(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Qt(Dn(a)))}function Er(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jl(e,t){var n=_t(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 Do(e,t,n){return t===Di?Er(Il(e,n)):gt(t)?jl(t,n):Er(Al(ot(e)))}function Dl(e){var t=Qt(Dn(e)),n=["absolute","fixed"].indexOf(Ye(e).position)>=0,r=n&&Ie(e)?pn(e):e;return gt(r)?t.filter(function(o){return gt(o)&&Fi(o,r)&&Ue(o)!=="body"}):[]}function Bl(e,t,n,r){var o=t==="clippingParents"?Dl(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(c,u){var p=Do(e,u,r);return c.top=ft(p.top,c.top),c.right=$n(p.right,c.right),c.bottom=$n(p.bottom,c.bottom),c.left=ft(p.left,c.left),c},Do(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qi(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ve(r):null,i=r?It(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Oe:c={x:a,y:t.y-n.height};break;case je:c={x:a,y:t.y+t.height};break;case De:c={x:t.x+t.width,y:l};break;case Pe:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?$r(o):null;if(u!=null){var p=u==="y"?"height":"width";switch(i){case $t:c[u]=c[u]-(t[p]/2-n[p]/2);break;case rn:c[u]=c[u]+(t[p]/2-n[p]/2);break}}return c}function on(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?ol:l,u=n.rootBoundary,p=u===void 0?Di:u,f=n.elementContext,d=f===void 0?zt:f,b=n.altBoundary,v=b===void 0?!1:b,m=n.padding,h=m===void 0?0:m,E=zi(typeof h!="number"?h:Ui(h,un)),$=d===zt?il:zt,y=e.rects.popper,x=e.elements[v?$:d],g=Bl(gt(x)?x:x.contextElement||ot(e.elements.popper),c,p,a),k=_t(e.elements.reference),S=qi({reference:k,element:y,strategy:"absolute",placement:o}),j=Er(Object.assign({},y,S)),A=d===zt?j:k,I={top:g.top-A.top+E.top,bottom:A.bottom-g.bottom+E.bottom,left:g.left-A.left+E.left,right:A.right-g.right+E.right},B=e.modifiersData.offset;if(d===zt&&B){var z=B[o];Object.keys(I).forEach(function(W){var L=[De,je].indexOf(W)>=0?1:-1,_=[Oe,je].indexOf(W)>=0?"y":"x";I[W]+=z[_]*L})}return I}function Ll(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Bi:c,p=It(r),f=p?l?_o:_o.filter(function(v){return It(v)===p}):un,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var b=d.reduce(function(v,m){return v[m]=on(e,{placement:m,boundary:o,rootBoundary:i,padding:a})[Ve(m)],v},{});return Object.keys(b).sort(function(v,m){return b[v]-b[m]})}function Fl(e){if(Ve(e)===Cr)return[];var t=wn(e);return[jo(e),t,jo(t)]}function Vl(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,p=n.boundary,f=n.rootBoundary,d=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,m=n.allowedAutoPlacements,h=t.options.placement,E=Ve(h),$=E===h,y=c||($||!v?[wn(h)]:Fl(h)),x=[h].concat(y).reduce(function(F,U){return F.concat(Ve(U)===Cr?Ll(t,{placement:U,boundary:p,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):U)},[]),g=t.rects.reference,k=t.rects.popper,S=new Map,j=!0,A=x[0],I=0;I=0,_=L?"width":"height",R=on(t,{placement:B,boundary:p,rootBoundary:f,altBoundary:d,padding:u}),D=L?W?De:Pe:W?je:Oe;g[_]>k[_]&&(D=wn(D));var Q=wn(D),Z=[];if(i&&Z.push(R[z]<=0),l&&Z.push(R[D]<=0,R[Q]<=0),Z.every(function(F){return F})){A=B,j=!1;break}S.set(B,Z)}if(j)for(var O=v?3:1,M=function(U){var q=x.find(function(G){var H=S.get(G);if(H)return H.slice(0,U).every(function(X){return X})});if(q)return A=q,"break"},V=O;V>0;V--){var K=M(V);if(K==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const zl={name:"flip",enabled:!0,phase:"main",fn:Vl,requiresIfExists:["offset"],data:{_skip:!1}};function Bo(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 Lo(e){return[Oe,De,je,Pe].some(function(t){return e[t]>=0})}function Ul(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=on(t,{elementContext:"reference"}),l=on(t,{altBoundary:!0}),c=Bo(a,r),u=Bo(l,o,i),p=Lo(c),f=Lo(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}const Hl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ul};function ql(e,t,n){var r=Ve(e),o=[Pe,Oe].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Pe,De].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Wl(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Bi.reduce(function(p,f){return p[f]=ql(f,t.rects,i),p},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Gl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wl};function Kl(e){var t=e.state,n=e.name;t.modifiersData[n]=qi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Xl={name:"popperOffsets",enabled:!0,phase:"read",fn:Kl,data:{}};function Yl(e){return e==="x"?"y":"x"}function Jl(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,p=n.altBoundary,f=n.padding,d=n.tether,b=d===void 0?!0:d,v=n.tetherOffset,m=v===void 0?0:v,h=on(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:p}),E=Ve(t.placement),$=It(t.placement),y=!$,x=$r(E),g=Yl(x),k=t.modifiersData.popperOffsets,S=t.rects.reference,j=t.rects.popper,A=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var W,L=x==="y"?Oe:Pe,_=x==="y"?je:De,R=x==="y"?"height":"width",D=k[x],Q=D+h[L],Z=D-h[_],O=b?-j[R]/2:0,M=$===$t?S[R]:j[R],V=$===$t?-j[R]:-S[R],K=t.elements.arrow,F=b&&K?Nr(K):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vi(),q=U[L],G=U[_],H=Zt(0,S[R],F[R]),X=y?S[R]/2-O-H-q-I.mainAxis:M-H-q-I.mainAxis,Y=y?-S[R]/2+O+H+G+I.mainAxis:V+H+G+I.mainAxis,ne=t.elements.arrow&&pn(t.elements.arrow),N=ne?x==="y"?ne.clientTop||0:ne.clientLeft||0:0,J=(W=B==null?void 0:B[x])!=null?W:0,C=D+X-J-N,re=D+Y-J,be=Zt(b?$n(Q,C):Q,D,b?ft(Z,re):Z);k[x]=be,z[x]=be-D}if(l){var Ee,me=x==="x"?Oe:Pe,st=x==="x"?je:De,Te=k[g],qe=g==="y"?"height":"width",ke=Te+h[me],We=Te-h[st],ve=[Oe,Pe].indexOf(E)!==-1,yt=(Ee=B==null?void 0:B[g])!=null?Ee:0,at=ve?ke:Te-S[qe]-j[qe]-yt+I.altAxis,Dt=ve?Te+S[qe]+j[qe]-yt-I.altAxis:We,mn=b&&ve?El(at,Te,Dt):Zt(b?at:ke,Te,b?Dt:We);k[g]=mn,z[g]=mn-Te}t.modifiersData[r]=z}}const Zl={name:"preventOverflow",enabled:!0,phase:"main",fn:Jl,requiresIfExists:["offset"]};function Ql(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ec(e){return e===$e(e)||!Ie(e)?Mr(e):Ql(e)}function tc(e){var t=e.getBoundingClientRect(),n=Mt(t.width)/e.offsetWidth||1,r=Mt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nc(e,t,n){n===void 0&&(n=!1);var r=Ie(t),o=Ie(t)&&tc(t),i=ot(t),a=_t(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ue(t)!=="body"||Ir(i))&&(l=ec(t)),Ie(t)?(c=_t(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=_r(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function rc(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function oc(e){var t=rc(e);return ml.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function ic(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function sc(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 Fo={placement:"bottom",modifiers:[],strategy:"absolute"};function Vo(){for(var e=arguments.length,t=new Array(e),n=0;nZe({root:["root"]},Aa(uc)),gc={},bc=T.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:l,modifiers:c,open:u,placement:p,popperOptions:f,popperRef:d,slotProps:b={},slots:v={},TransitionProps:m}=t,h=ue(t,pc),E=T.useRef(null),$=Ae(E,n),y=T.useRef(null),x=Ae(y,d),g=T.useRef(x);ht(()=>{g.current=x},[x]),T.useImperativeHandle(d,()=>y.current,[]);const k=fc(p,a),[S,j]=T.useState(k),[A,I]=T.useState(Mn(o));T.useEffect(()=>{y.current&&y.current.forceUpdate()}),T.useEffect(()=>{o&&I(Mn(o))},[o]),ht(()=>{if(!A||!u)return;const _=Q=>{j(Q.placement)};if(process.env.NODE_ENV!=="production"&&A&&Bn(A)&&A.nodeType===1){const Q=A.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Q.top===0&&Q.left===0&&Q.right===0&&Q.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` -`))}let R=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{_(Q)}}];c!=null&&(R=R.concat(c)),f&&f.modifiers!=null&&(R=R.concat(f.modifiers));const D=cc(A,E.current,w({placement:k},f,{modifiers:R}));return g.current(D),()=>{D.destroy(),g.current(null)}},[A,l,c,u,f,k]);const B={placement:S};m!==null&&(B.TransitionProps=m);const z=mc(),W=(r=v.root)!=null?r:"div",L=mt({elementType:W,externalSlotProps:b.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:$},ownerState:t,className:z.root});return P.jsx(W,w({},L,{children:typeof i=="function"?i(B):i}))}),Gi=T.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:p,placement:f="bottom",popperOptions:d=gc,popperRef:b,style:v,transition:m=!1,slotProps:h={},slots:E={}}=t,$=ue(t,dc),[y,x]=T.useState(!0),g=()=>{x(!1)},k=()=>{x(!0)};if(!c&&!p&&(!m||y))return null;let S;if(i)S=i;else if(r){const I=Mn(r);S=I&&Bn(I)?ye(I).body:ye(null).body}const j=!p&&c&&(!m||y)?"none":void 0,A=m?{in:p,onEnter:g,onExited:k}:void 0;return P.jsx(nn,{disablePortal:l,container:S,children:P.jsx(bc,w({anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:n,open:m?!y:p,placement:f,popperOptions:d,popperRef:b,slotProps:h,slots:E},$,{style:w({position:"fixed",top:0,left:0,display:j},v),TransitionProps:A,children:o}))})});process.env.NODE_ENV!=="production"&&(Gi.propTypes={anchorEl:At(s.oneOfType([Xe,s.object,s.func]),e=>{if(e.open){const t=Mn(e.anchorEl);if(t&&Bn(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` -`))}else if(!t||typeof t.getBoundingClientRect!="function"||hc(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(` -`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Xe,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Sr,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const vc=["values","unit","step"],yc=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)=>w({},n,{[r.key]:r.val}),{})};function xc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,vc),i=yc(t),a=Object.keys(i);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,b){const v=a.indexOf(b);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:b)-r/100}${n})`}function p(d){return a.indexOf(d)+1`@media (min-width:${Ar[e]}px)`};function Je(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||zo;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||zo;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||Ar).indexOf(l)!==-1){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function Oc(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Pc(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Ln(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 _n(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ln(e,n)||r,t&&(o=t(o,r,e)),o}function ge(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=Ln(c,r)||{};return Je(a,l,f=>{let d=_n(u,o,f);return f===d&&typeof f=="string"&&(d=_n(u,o,`${t}${f==="default"?"":ze(f)}`,f)),n===!1?d:{[n]:d}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:it}:{},i.filterProps=[t],i}function kc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Sc={m:"margin",p:"padding"},Cc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Uo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rc=kc(e=>{if(e.length>2)if(Uo[e])e=Uo[e];else return[e];const[t,n]=e.split(""),r=Sc[t],o=Cc[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Fn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Nc=[...Fn,...Vn];function dn(e,t,n,r){var o;const i=(o=Ln(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(` +`))},[JSON.stringify(t)])}const c=T.useCallback(u=>{o||a(u)},[]);return[l,c]}function tn(e){const t=T.useRef(e);return ht(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function Ae(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Rn(n,t)})},e)}const So={};function va(e,t){const n=T.useRef(So);return n.current===So&&(n.current=e(t)),n}const ya=[];function xa(e){T.useEffect(e,ya)}class cn{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new cn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function Kt(){const e=va(cn.create).current;return xa(e.disposeEffect),e}let jn=!0,vr=!1;const Ea=new cn,Ta={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 wa(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ta[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Oa(e){e.metaKey||e.altKey||e.ctrlKey||(jn=!0)}function ir(){jn=!1}function Pa(){this.visibilityState==="hidden"&&vr&&(jn=!0)}function ka(e){e.addEventListener("keydown",Oa,!0),e.addEventListener("mousedown",ir,!0),e.addEventListener("pointerdown",ir,!0),e.addEventListener("touchstart",ir,!0),e.addEventListener("visibilitychange",Pa,!0)}function Sa(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return jn||wa(t)}function Oi(){const e=T.useCallback(o=>{o!=null&&ka(o.ownerDocument)},[]),t=T.useRef(!1);function n(){return t.current?(vr=!0,Ea.start(100,()=>{vr=!1}),t.current=!1,!0):!1}function r(o){return Sa(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Pi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ca(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Ra(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const Na=Number.isInteger||Ra;function ki(e,t,n,r){const o=e[t];if(o==null||!Na(o)){const i=Ca(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Si(e,t,...n){return e[t]===void 0?null:ki(e,t,...n)}function yr(){return null}Si.isRequired=ki;yr.isRequired=yr;const Ci=process.env.NODE_ENV==="production"?yr:Si;function Ri(e,t){const n=w({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=w({},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]=w({},i),Object.keys(o).forEach(a=>{n[r][a]=Ri(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ze(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const Co=e=>e,$a=()=>{let e=Co;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Co}}},Ma=$a(),Ni=Ma,$i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function He(e,t,n="Mui"){const r=$i[t];return r?`${n}-${r}`:`${Ni.generate(e)}-${t}`}function rt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=He(e,o,n)}),r}function _a(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Mi(e){return typeof e=="string"}function Xt(e,t,n){return e===void 0||Mi(e)?t:w({},t,{ownerState:w({},t.ownerState,n)})}const Ia={disableDefaultClasses:!1},Aa=T.createContext(Ia);function ja(e){const{disableDefaultClasses:t}=T.useContext(Aa);return n=>t?"":e(n)}function _i(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 Da(e,t,n){return typeof e=="function"?e(t,n):e}function Ii(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ba(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=Ro(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v=w({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=w({},n,o,r);return b.length>0&&(g.className=b),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const a=_i(w({},o,r)),l=No(r),c=No(o),u=t(a),p=Ro(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),f=w({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),d=w({},u,n,c,l);return p.length>0&&(d.className=p),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const La=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ue(e,La),l=i?{}:Da(r,o),{props:c,internalRef:u}=Ba(w({},a,{externalSlotProps:l})),p=Ae(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Xt(n,w({},c,{ref:p}),o)}const Ai="base";function Fa(e){return`${Ai}--${e}`}function Va(e,t){return`${Ai}-${e}-${t}`}function ji(e,t){const n=$i[t];return n?Fa(n):Va(e,t)}function za(e,t){const n={};return t.forEach(r=>{n[r]=ji(e,r)}),n}const Ua=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ha(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 qa(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 Wa(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||qa(e))}function Ga(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ua)).forEach((r,o)=>{const i=Ha(r);i===-1||!Wa(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 Ka(){return!0}function Nn(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Ga,isEnabled:a=Ka,open:l}=e,c=T.useRef(!1),u=T.useRef(null),p=T.useRef(null),f=T.useRef(null),d=T.useRef(null),b=T.useRef(!1),v=T.useRef(null),g=Ae(t.ref,v),h=T.useRef(null);T.useEffect(()=>{!l||!v.current||(b.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!v.current)return;const y=ye(v.current);return v.current.contains(y.activeElement)||(v.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(` +`)),v.current.setAttribute("tabIndex","-1")),b.current&&v.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),T.useEffect(()=>{if(!l||!v.current)return;const y=ye(v.current),x=S=>{h.current=S,!(r||!a()||S.key!=="Tab")&&y.activeElement===v.current&&S.shiftKey&&(c.current=!0,p.current&&p.current.focus())},m=()=>{const S=v.current;if(S===null)return;if(!y.hasFocus()||!a()||c.current){c.current=!1;return}if(S.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==p.current)return;if(y.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!b.current)return;let j=[];if((y.activeElement===u.current||y.activeElement===p.current)&&(j=i(v.current)),j.length>0){var A,I;const B=!!((A=h.current)!=null&&A.shiftKey&&((I=h.current)==null?void 0:I.key)==="Tab"),z=j[0],W=j[j.length-1];typeof z!="string"&&typeof W!="string"&&(B?W.focus():z.focus())}else S.focus()};y.addEventListener("focusin",m),y.addEventListener("keydown",x,!0);const k=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&m()},50);return()=>{clearInterval(k),y.removeEventListener("focusin",m),y.removeEventListener("keydown",x,!0)}},[n,r,o,a,l,i]);const E=y=>{f.current===null&&(f.current=y.relatedTarget),b.current=!0,d.current=y.target;const x=t.props.onFocus;x&&x(y)},$=y=>{f.current===null&&(f.current=y.relatedTarget),b.current=!0};return P.jsxs(T.Fragment,{children:[P.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:g,onFocus:E}),P.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:ln,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Nn["propTypes"]=yi(Nn.propTypes));function Xa(e){return typeof e=="function"?e():e}const nn=T.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=T.useState(null),c=Ae(T.isValidElement(r)?r.ref:null,n);if(ht(()=>{i||l(Xa(o)||document.body)},[o,i]),ht(()=>{if(a&&!i)return Rn(n,a),()=>{Rn(n,null)}},[n,a,i]),i){if(T.isValidElement(r)){const u={ref:c};return T.cloneElement(r,u)}return P.jsx(T.Fragment,{children:r})}return P.jsx(T.Fragment,{children:a&&zs.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(nn.propTypes={children:s.node,container:s.oneOfType([Xe,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(nn["propTypes"]=yi(nn.propTypes));function Ya(e){const t=ye(e);return t.body===e?Nt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Jt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $o(e){return parseInt(Nt(e).getComputedStyle(e).paddingRight,10)||0}function Ja(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 Mo(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=i.indexOf(a)===-1,c=!Ja(a);l&&c&&Jt(a,o)})}function sr(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Za(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Ya(r)){const a=Pi(ye(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${$o(r)+a}px`;const l=ye(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${$o(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ye(r).body;else{const a=r.parentElement,l=Nt(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function Qa(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class el{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&&Jt(t.modalRef,!1);const o=Qa(n);Mo(n,t.mount,t.modalRef,o,!0);const i=sr(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=sr(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Za(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=sr(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Jt(t.modalRef,n),Mo(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Jt(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function tl(e){return typeof e=="function"?e():e}function nl(e){return e?e.props.hasOwnProperty("in"):!1}const rl=new el;function ol(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=rl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:p,rootRef:f}=e,d=T.useRef({}),b=T.useRef(null),v=T.useRef(null),g=Ae(v,f),[h,E]=T.useState(!p),$=nl(c);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const x=()=>ye(b.current),m=()=>(d.current.modalRef=v.current,d.current.mount=b.current,d.current),k=()=>{o.mount(m(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},S=tn(()=>{const R=tl(t)||x().body;o.add(m(),R),v.current&&k()}),j=T.useCallback(()=>o.isTopModal(m()),[o]),A=tn(R=>{b.current=R,R&&(p&&j()?k():v.current&&Jt(v.current,y))}),I=T.useCallback(()=>{o.remove(m(),y)},[y,o]);T.useEffect(()=>()=>{I()},[I]),T.useEffect(()=>{p?S():(!$||!i)&&I()},[p,I,$,i,S]);const B=R=>D=>{var Q;(Q=R.onKeyDown)==null||Q.call(R,D),!(D.key!=="Escape"||D.which===229||!j())&&(n||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},z=R=>D=>{var Q;(Q=R.onClick)==null||Q.call(R,D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:(R={})=>{const D=_i(e);delete D.onTransitionEnter,delete D.onTransitionExited;const Q=w({},D,R);return w({role:"presentation"},Q,{onKeyDown:B(Q),ref:g})},getBackdropProps:(R={})=>{const D=R;return w({"aria-hidden":!0},D,{onClick:z(D),open:p})},getTransitionProps:()=>{const R=()=>{E(!1),a&&a()},D=()=>{E(!0),l&&l(),i&&I()};return{onEnter:br(R,c==null?void 0:c.props.onEnter),onExited:br(D,c==null?void 0:c.props.onExited)}},rootRef:g,portalRef:A,isTopModal:j,exited:h,hasTransition:$}}var Oe="top",je="bottom",De="right",Pe="left",Cr="auto",un=[Oe,je,De,Pe],$t="start",rn="end",il="clippingParents",Di="viewport",zt="popper",sl="reference",_o=un.reduce(function(e,t){return e.concat([t+"-"+$t,t+"-"+rn])},[]),Bi=[].concat(un,[Cr]).reduce(function(e,t){return e.concat([t,t+"-"+$t,t+"-"+rn])},[]),al="beforeRead",ll="read",cl="afterRead",ul="beforeMain",pl="main",dl="afterMain",fl="beforeWrite",hl="write",ml="afterWrite",gl=[al,ll,cl,ul,pl,dl,fl,hl,ml];function Ue(e){return e?(e.nodeName||"").toLowerCase():null}function $e(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gt(e){var t=$e(e).Element;return e instanceof t||e instanceof Element}function Ie(e){var t=$e(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Rr(e){if(typeof ShadowRoot>"u")return!1;var t=$e(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bl(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];!Ie(i)||!Ue(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function vl(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!Ie(o)||!Ue(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const yl={name:"applyStyles",enabled:!0,phase:"write",fn:bl,effect:vl,requires:["computeStyles"]};function Ve(e){return e.split("-")[0]}var ft=Math.max,$n=Math.min,Mt=Math.round;function xr(){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 Li(){return!/^((?!chrome|android).)*safari/i.test(xr())}function _t(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ie(e)&&(o=e.offsetWidth>0&&Mt(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Mt(r.height)/e.offsetHeight||1);var a=gt(e)?$e(e):window,l=a.visualViewport,c=!Li()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,p=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/o,d=r.height/i;return{width:f,height:d,top:p,right:u+f,bottom:p+d,left:u,x:u,y:p}}function Nr(e){var t=_t(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 Fi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Rr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ye(e){return $e(e).getComputedStyle(e)}function xl(e){return["table","td","th"].indexOf(Ue(e))>=0}function ot(e){return((gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dn(e){return Ue(e)==="html"?e:e.assignedSlot||e.parentNode||(Rr(e)?e.host:null)||ot(e)}function Io(e){return!Ie(e)||Ye(e).position==="fixed"?null:e.offsetParent}function El(e){var t=/firefox/i.test(xr()),n=/Trident/i.test(xr());if(n&&Ie(e)){var r=Ye(e);if(r.position==="fixed")return null}var o=Dn(e);for(Rr(o)&&(o=o.host);Ie(o)&&["html","body"].indexOf(Ue(o))<0;){var i=Ye(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 pn(e){for(var t=$e(e),n=Io(e);n&&xl(n)&&Ye(n).position==="static";)n=Io(n);return n&&(Ue(n)==="html"||Ue(n)==="body"&&Ye(n).position==="static")?t:n||El(e)||t}function $r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zt(e,t,n){return ft(e,$n(t,n))}function Tl(e,t,n){var r=Zt(e,t,n);return r>n?n:r}function Vi(){return{top:0,right:0,bottom:0,left:0}}function zi(e){return Object.assign({},Vi(),e)}function Ui(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wl=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,zi(typeof t!="number"?t:Ui(t,un))};function Ol(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Ve(n.placement),c=$r(l),u=[Pe,De].indexOf(l)>=0,p=u?"height":"width";if(!(!i||!a)){var f=wl(o.padding,n),d=Nr(i),b=c==="y"?Oe:Pe,v=c==="y"?je:De,g=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],h=a[c]-n.rects.reference[c],E=pn(i),$=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,y=g/2-h/2,x=f[b],m=$-d[p]-f[v],k=$/2-d[p]/2+y,S=Zt(x,k,m),j=c;n.modifiersData[r]=(t={},t[j]=S,t.centerOffset=S-k,t)}}function Pl(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)||Fi(t.elements.popper,o)&&(t.elements.arrow=o))}const kl={name:"arrow",enabled:!0,phase:"main",fn:Ol,effect:Pl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function It(e){return e.split("-")[1]}var Sl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cl(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Mt(n*o)/o||0,y:Mt(r*o)/o||0}}function Ao(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,f=e.isFixed,d=a.x,b=d===void 0?0:d,v=a.y,g=v===void 0?0:v,h=typeof p=="function"?p({x:b,y:g}):{x:b,y:g};b=h.x,g=h.y;var E=a.hasOwnProperty("x"),$=a.hasOwnProperty("y"),y=Pe,x=Oe,m=window;if(u){var k=pn(n),S="clientHeight",j="clientWidth";if(k===$e(n)&&(k=ot(n),Ye(k).position!=="static"&&l==="absolute"&&(S="scrollHeight",j="scrollWidth")),k=k,o===Oe||(o===Pe||o===De)&&i===rn){x=je;var A=f&&k===m&&m.visualViewport?m.visualViewport.height:k[S];g-=A-r.height,g*=c?1:-1}if(o===Pe||(o===Oe||o===je)&&i===rn){y=De;var I=f&&k===m&&m.visualViewport?m.visualViewport.width:k[j];b-=I-r.width,b*=c?1:-1}}var B=Object.assign({position:l},u&&Sl),z=p===!0?Cl({x:b,y:g},$e(n)):{x:b,y:g};if(b=z.x,g=z.y,c){var W;return Object.assign({},B,(W={},W[x]=$?"0":"",W[y]=E?"0":"",W.transform=(m.devicePixelRatio||1)<=1?"translate("+b+"px, "+g+"px)":"translate3d("+b+"px, "+g+"px, 0)",W))}return Object.assign({},B,(t={},t[x]=$?g+"px":"",t[y]=E?b+"px":"",t.transform="",t))}function Rl(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Ve(t.placement),variation:It(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,Ao(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ao(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Nl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rl,data:{}};var yn={passive:!0};function $l(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=$e(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(p){p.addEventListener("scroll",n.update,yn)}),l&&c.addEventListener("resize",n.update,yn),function(){i&&u.forEach(function(p){p.removeEventListener("scroll",n.update,yn)}),l&&c.removeEventListener("resize",n.update,yn)}}const Ml={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$l,data:{}};var _l={left:"right",right:"left",bottom:"top",top:"bottom"};function wn(e){return e.replace(/left|right|bottom|top/g,function(t){return _l[t]})}var Il={start:"end",end:"start"};function jo(e){return e.replace(/start|end/g,function(t){return Il[t]})}function Mr(e){var t=$e(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _r(e){return _t(ot(e)).left+Mr(e).scrollLeft}function Al(e,t){var n=$e(e),r=ot(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var u=Li();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+_r(e),y:c}}function jl(e){var t,n=ot(e),r=Mr(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ft(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ft(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+_r(e),c=-r.scrollTop;return Ye(o||n).direction==="rtl"&&(l+=ft(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Ir(e){var t=Ye(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Hi(e){return["html","body","#document"].indexOf(Ue(e))>=0?e.ownerDocument.body:Ie(e)&&Ir(e)?e:Hi(Dn(e))}function Qt(e,t){var n;t===void 0&&(t=[]);var r=Hi(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=$e(r),a=o?[i].concat(i.visualViewport||[],Ir(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Qt(Dn(a)))}function Er(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dl(e,t){var n=_t(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 Do(e,t,n){return t===Di?Er(Al(e,n)):gt(t)?Dl(t,n):Er(jl(ot(e)))}function Bl(e){var t=Qt(Dn(e)),n=["absolute","fixed"].indexOf(Ye(e).position)>=0,r=n&&Ie(e)?pn(e):e;return gt(r)?t.filter(function(o){return gt(o)&&Fi(o,r)&&Ue(o)!=="body"}):[]}function Ll(e,t,n,r){var o=t==="clippingParents"?Bl(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(c,u){var p=Do(e,u,r);return c.top=ft(p.top,c.top),c.right=$n(p.right,c.right),c.bottom=$n(p.bottom,c.bottom),c.left=ft(p.left,c.left),c},Do(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qi(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ve(r):null,i=r?It(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Oe:c={x:a,y:t.y-n.height};break;case je:c={x:a,y:t.y+t.height};break;case De:c={x:t.x+t.width,y:l};break;case Pe:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?$r(o):null;if(u!=null){var p=u==="y"?"height":"width";switch(i){case $t:c[u]=c[u]-(t[p]/2-n[p]/2);break;case rn:c[u]=c[u]+(t[p]/2-n[p]/2);break}}return c}function on(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?il:l,u=n.rootBoundary,p=u===void 0?Di:u,f=n.elementContext,d=f===void 0?zt:f,b=n.altBoundary,v=b===void 0?!1:b,g=n.padding,h=g===void 0?0:g,E=zi(typeof h!="number"?h:Ui(h,un)),$=d===zt?sl:zt,y=e.rects.popper,x=e.elements[v?$:d],m=Ll(gt(x)?x:x.contextElement||ot(e.elements.popper),c,p,a),k=_t(e.elements.reference),S=qi({reference:k,element:y,strategy:"absolute",placement:o}),j=Er(Object.assign({},y,S)),A=d===zt?j:k,I={top:m.top-A.top+E.top,bottom:A.bottom-m.bottom+E.bottom,left:m.left-A.left+E.left,right:A.right-m.right+E.right},B=e.modifiersData.offset;if(d===zt&&B){var z=B[o];Object.keys(I).forEach(function(W){var L=[De,je].indexOf(W)>=0?1:-1,_=[Oe,je].indexOf(W)>=0?"y":"x";I[W]+=z[_]*L})}return I}function Fl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Bi:c,p=It(r),f=p?l?_o:_o.filter(function(v){return It(v)===p}):un,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var b=d.reduce(function(v,g){return v[g]=on(e,{placement:g,boundary:o,rootBoundary:i,padding:a})[Ve(g)],v},{});return Object.keys(b).sort(function(v,g){return b[v]-b[g]})}function Vl(e){if(Ve(e)===Cr)return[];var t=wn(e);return[jo(e),t,jo(t)]}function zl(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,p=n.boundary,f=n.rootBoundary,d=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,g=n.allowedAutoPlacements,h=t.options.placement,E=Ve(h),$=E===h,y=c||($||!v?[wn(h)]:Vl(h)),x=[h].concat(y).reduce(function(F,U){return F.concat(Ve(U)===Cr?Fl(t,{placement:U,boundary:p,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:g}):U)},[]),m=t.rects.reference,k=t.rects.popper,S=new Map,j=!0,A=x[0],I=0;I=0,_=L?"width":"height",R=on(t,{placement:B,boundary:p,rootBoundary:f,altBoundary:d,padding:u}),D=L?W?De:Pe:W?je:Oe;m[_]>k[_]&&(D=wn(D));var Q=wn(D),Z=[];if(i&&Z.push(R[z]<=0),l&&Z.push(R[D]<=0,R[Q]<=0),Z.every(function(F){return F})){A=B,j=!1;break}S.set(B,Z)}if(j)for(var O=v?3:1,M=function(U){var q=x.find(function(G){var H=S.get(G);if(H)return H.slice(0,U).every(function(X){return X})});if(q)return A=q,"break"},V=O;V>0;V--){var K=M(V);if(K==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const Ul={name:"flip",enabled:!0,phase:"main",fn:zl,requiresIfExists:["offset"],data:{_skip:!1}};function Bo(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 Lo(e){return[Oe,De,je,Pe].some(function(t){return e[t]>=0})}function Hl(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=on(t,{elementContext:"reference"}),l=on(t,{altBoundary:!0}),c=Bo(a,r),u=Bo(l,o,i),p=Lo(c),f=Lo(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}const ql={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hl};function Wl(e,t,n){var r=Ve(e),o=[Pe,Oe].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Pe,De].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Gl(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Bi.reduce(function(p,f){return p[f]=Wl(f,t.rects,i),p},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Kl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Gl};function Xl(e){var t=e.state,n=e.name;t.modifiersData[n]=qi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Yl={name:"popperOffsets",enabled:!0,phase:"read",fn:Xl,data:{}};function Jl(e){return e==="x"?"y":"x"}function Zl(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,p=n.altBoundary,f=n.padding,d=n.tether,b=d===void 0?!0:d,v=n.tetherOffset,g=v===void 0?0:v,h=on(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:p}),E=Ve(t.placement),$=It(t.placement),y=!$,x=$r(E),m=Jl(x),k=t.modifiersData.popperOffsets,S=t.rects.reference,j=t.rects.popper,A=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(i){var W,L=x==="y"?Oe:Pe,_=x==="y"?je:De,R=x==="y"?"height":"width",D=k[x],Q=D+h[L],Z=D-h[_],O=b?-j[R]/2:0,M=$===$t?S[R]:j[R],V=$===$t?-j[R]:-S[R],K=t.elements.arrow,F=b&&K?Nr(K):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vi(),q=U[L],G=U[_],H=Zt(0,S[R],F[R]),X=y?S[R]/2-O-H-q-I.mainAxis:M-H-q-I.mainAxis,Y=y?-S[R]/2+O+H+G+I.mainAxis:V+H+G+I.mainAxis,ne=t.elements.arrow&&pn(t.elements.arrow),N=ne?x==="y"?ne.clientTop||0:ne.clientLeft||0:0,J=(W=B==null?void 0:B[x])!=null?W:0,C=D+X-J-N,re=D+Y-J,be=Zt(b?$n(Q,C):Q,D,b?ft(Z,re):Z);k[x]=be,z[x]=be-D}if(l){var Ee,me=x==="x"?Oe:Pe,st=x==="x"?je:De,Te=k[m],qe=m==="y"?"height":"width",ke=Te+h[me],We=Te-h[st],ve=[Oe,Pe].indexOf(E)!==-1,yt=(Ee=B==null?void 0:B[m])!=null?Ee:0,at=ve?ke:Te-S[qe]-j[qe]-yt+I.altAxis,Dt=ve?Te+S[qe]+j[qe]-yt-I.altAxis:We,mn=b&&ve?Tl(at,Te,Dt):Zt(b?at:ke,Te,b?Dt:We);k[m]=mn,z[m]=mn-Te}t.modifiersData[r]=z}}const Ql={name:"preventOverflow",enabled:!0,phase:"main",fn:Zl,requiresIfExists:["offset"]};function ec(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function tc(e){return e===$e(e)||!Ie(e)?Mr(e):ec(e)}function nc(e){var t=e.getBoundingClientRect(),n=Mt(t.width)/e.offsetWidth||1,r=Mt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function rc(e,t,n){n===void 0&&(n=!1);var r=Ie(t),o=Ie(t)&&nc(t),i=ot(t),a=_t(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ue(t)!=="body"||Ir(i))&&(l=tc(t)),Ie(t)?(c=_t(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=_r(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function oc(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function ic(e){var t=oc(e);return gl.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function sc(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ac(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 Fo={placement:"bottom",modifiers:[],strategy:"absolute"};function Vo(){for(var e=arguments.length,t=new Array(e),n=0;nZe({root:["root"]},ja(pc)),bc={},vc=T.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:l,modifiers:c,open:u,placement:p,popperOptions:f,popperRef:d,slotProps:b={},slots:v={},TransitionProps:g}=t,h=ue(t,dc),E=T.useRef(null),$=Ae(E,n),y=T.useRef(null),x=Ae(y,d),m=T.useRef(x);ht(()=>{m.current=x},[x]),T.useImperativeHandle(d,()=>y.current,[]);const k=hc(p,a),[S,j]=T.useState(k),[A,I]=T.useState(Mn(o));T.useEffect(()=>{y.current&&y.current.forceUpdate()}),T.useEffect(()=>{o&&I(Mn(o))},[o]),ht(()=>{if(!A||!u)return;const _=Q=>{j(Q.placement)};if(process.env.NODE_ENV!=="production"&&A&&Bn(A)&&A.nodeType===1){const Q=A.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Q.top===0&&Q.left===0&&Q.right===0&&Q.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +`))}let R=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{_(Q)}}];c!=null&&(R=R.concat(c)),f&&f.modifiers!=null&&(R=R.concat(f.modifiers));const D=uc(A,E.current,w({placement:k},f,{modifiers:R}));return m.current(D),()=>{D.destroy(),m.current(null)}},[A,l,c,u,f,k]);const B={placement:S};g!==null&&(B.TransitionProps=g);const z=gc(),W=(r=v.root)!=null?r:"div",L=mt({elementType:W,externalSlotProps:b.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:$},ownerState:t,className:z.root});return P.jsx(W,w({},L,{children:typeof i=="function"?i(B):i}))}),Gi=T.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:p,placement:f="bottom",popperOptions:d=bc,popperRef:b,style:v,transition:g=!1,slotProps:h={},slots:E={}}=t,$=ue(t,fc),[y,x]=T.useState(!0),m=()=>{x(!1)},k=()=>{x(!0)};if(!c&&!p&&(!g||y))return null;let S;if(i)S=i;else if(r){const I=Mn(r);S=I&&Bn(I)?ye(I).body:ye(null).body}const j=!p&&c&&(!g||y)?"none":void 0,A=g?{in:p,onEnter:m,onExited:k}:void 0;return P.jsx(nn,{disablePortal:l,container:S,children:P.jsx(vc,w({anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:n,open:g?!y:p,placement:f,popperOptions:d,popperRef:b,slotProps:h,slots:E},$,{style:w({position:"fixed",top:0,left:0,display:j},v),TransitionProps:A,children:o}))})});process.env.NODE_ENV!=="production"&&(Gi.propTypes={anchorEl:At(s.oneOfType([Xe,s.object,s.func]),e=>{if(e.open){const t=Mn(e.anchorEl);if(t&&Bn(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +`))}else if(!t||typeof t.getBoundingClientRect!="function"||mc(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(` +`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Xe,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Sr,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const yc=["values","unit","step"],xc=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)=>w({},n,{[r.key]:r.val}),{})};function Ec(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,yc),i=xc(t),a=Object.keys(i);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,b){const v=a.indexOf(b);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:b)-r/100}${n})`}function p(d){return a.indexOf(d)+1`@media (min-width:${Ar[e]}px)`};function Je(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||zo;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||zo;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||Ar).indexOf(l)!==-1){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function Pc(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function kc(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Ln(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 _n(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ln(e,n)||r,t&&(o=t(o,r,e)),o}function ge(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=Ln(c,r)||{};return Je(a,l,f=>{let d=_n(u,o,f);return f===d&&typeof f=="string"&&(d=_n(u,o,`${t}${f==="default"?"":ze(f)}`,f)),n===!1?d:{[n]:d}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:it}:{},i.filterProps=[t],i}function Sc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Cc={m:"margin",p:"padding"},Rc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Uo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nc=Sc(e=>{if(e.length>2)if(Uo[e])e=Uo[e];else return[e];const[t,n]=e.split(""),r=Cc[t],o=Rc[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Fn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],$c=[...Fn,...Vn];function dn(e,t,n,r){var o;const i=(o=Ln(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(` `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` `))),i[a]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(` -`)),()=>{})}function Ki(e){return dn(e,"spacing",8,"spacing")}function fn(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 $c(e,t){return n=>e.reduce((r,o)=>(r[o]=fn(t,n),r),{})}function Mc(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Rc(n),i=$c(o,r),a=e[n];return Je(e,a,i)}function Xi(e,t){const n=Ki(e.theme);return Object.keys(e).map(r=>Mc(e,t,r,n)).reduce(en,{})}function fe(e){return Xi(e,Fn)}fe.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,t)=>(e[t]=it,e),{}):{};fe.filterProps=Fn;function he(e){return Xi(e,Vn)}he.propTypes=process.env.NODE_ENV!=="production"?Vn.reduce((e,t)=>(e[t]=it,e),{}):{};he.filterProps=Vn;process.env.NODE_ENV!=="production"&&Nc.reduce((e,t)=>(e[t]=it,e),{});function _c(e=8){if(e.mui)return e;const t=Ki({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function zn(...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]?en(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function _e(e){return typeof e!="number"?e:`${e}px solid`}function Be(e,t){return ge({prop:e,themeKey:"borders",transform:t})}const Ic=Be("border",_e),Ac=Be("borderTop",_e),jc=Be("borderRight",_e),Dc=Be("borderBottom",_e),Bc=Be("borderLeft",_e),Lc=Be("borderColor"),Fc=Be("borderTopColor"),Vc=Be("borderRightColor"),zc=Be("borderBottomColor"),Uc=Be("borderLeftColor"),Hc=Be("outline",_e),qc=Be("outlineColor"),Un=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:fn(t,r)});return Je(e,e.borderRadius,n)}return null};Un.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:it}:{};Un.filterProps=["borderRadius"];zn(Ic,Ac,jc,Dc,Bc,Lc,Fc,Vc,zc,Uc,Un,Hc,qc);const Hn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=dn(e.theme,"spacing",8,"gap"),n=r=>({gap:fn(t,r)});return Je(e,e.gap,n)}return null};Hn.propTypes=process.env.NODE_ENV!=="production"?{gap:it}:{};Hn.filterProps=["gap"];const qn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:fn(t,r)});return Je(e,e.columnGap,n)}return null};qn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:it}:{};qn.filterProps=["columnGap"];const Wn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:fn(t,r)});return Je(e,e.rowGap,n)}return null};Wn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:it}:{};Wn.filterProps=["rowGap"];const Wc=ge({prop:"gridColumn"}),Gc=ge({prop:"gridRow"}),Kc=ge({prop:"gridAutoFlow"}),Xc=ge({prop:"gridAutoColumns"}),Yc=ge({prop:"gridAutoRows"}),Jc=ge({prop:"gridTemplateColumns"}),Zc=ge({prop:"gridTemplateRows"}),Qc=ge({prop:"gridTemplateAreas"}),eu=ge({prop:"gridArea"});zn(Hn,qn,Wn,Wc,Gc,Kc,Xc,Yc,Jc,Zc,Qc,eu);function Ct(e,t){return t==="grey"?t:e}const tu=ge({prop:"color",themeKey:"palette",transform:Ct}),nu=ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ct}),ru=ge({prop:"backgroundColor",themeKey:"palette",transform:Ct});zn(tu,nu,ru);function Re(e){return e<=1&&e!==0?`${e*100}%`:e}const ou=ge({prop:"width",transform:Re}),jr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ar[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Re(n)}};return Je(e,e.maxWidth,t)}return null};jr.filterProps=["maxWidth"];const iu=ge({prop:"minWidth",transform:Re}),su=ge({prop:"height",transform:Re}),au=ge({prop:"maxHeight",transform:Re}),lu=ge({prop:"minHeight",transform:Re});ge({prop:"size",cssProperty:"width",transform:Re});ge({prop:"size",cssProperty:"height",transform:Re});const cu=ge({prop:"boxSizing"});zn(ou,jr,iu,su,au,lu,cu);const uu={border:{themeKey:"borders",transform:_e},borderTop:{themeKey:"borders",transform:_e},borderRight:{themeKey:"borders",transform:_e},borderBottom:{themeKey:"borders",transform:_e},borderLeft:{themeKey:"borders",transform:_e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Un},color:{themeKey:"palette",transform:Ct},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ct},backgroundColor:{themeKey:"palette",transform:Ct},p:{style:he},pt:{style:he},pr:{style:he},pb:{style:he},pl:{style:he},px:{style:he},py:{style:he},padding:{style:he},paddingTop:{style:he},paddingRight:{style:he},paddingBottom:{style:he},paddingLeft:{style:he},paddingX:{style:he},paddingY:{style:he},paddingInline:{style:he},paddingInlineStart:{style:he},paddingInlineEnd:{style:he},paddingBlock:{style:he},paddingBlockStart:{style:he},paddingBlockEnd:{style:he},m:{style:fe},mt:{style:fe},mr:{style:fe},mb:{style:fe},ml:{style:fe},mx:{style:fe},my:{style:fe},margin:{style:fe},marginTop:{style:fe},marginRight:{style:fe},marginBottom:{style:fe},marginLeft:{style:fe},marginX:{style:fe},marginY:{style:fe},marginInline:{style:fe},marginInlineStart:{style:fe},marginInlineEnd:{style:fe},marginBlock:{style:fe},marginBlockStart:{style:fe},marginBlockEnd:{style:fe},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:Hn},rowGap:{style:Wn},columnGap:{style:qn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Re},maxWidth:{style:jr},minWidth:{transform:Re},height:{transform:Re},maxHeight:{transform:Re},minHeight:{transform:Re},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Dr=uu;function pu(...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 du(e,t){return typeof e=="function"?e(t):e}function fu(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:p,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=Ln(o,u)||{};return f?f(a):Je(a,r,v=>{let m=_n(d,p,v);return v===m&&typeof v=="string"&&(m=_n(d,p,`${n}${v==="default"?"":ze(v)}`,v)),c===!1?m:{[c]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Dr;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const p=Oc(i.breakpoints),f=Object.keys(p);let d=p;return Object.keys(u).forEach(b=>{const v=du(u[b],i);if(v!=null)if(typeof v=="object")if(a[b])d=en(d,e(b,v,i,a));else{const m=Je({theme:i},v,h=>({[b]:h}));pu(m,v)?d[b]=t({sx:v,theme:i}):d=en(d,m)}else d=en(d,e(b,v,i,a))}),Pc(f,d)}return Array.isArray(o)?o.map(l):l(o)}return t}const Yi=fu();Yi.filterProps=["sx"];const Br=Yi;function hu(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const mu=["breakpoints","palette","spacing","shape"];function Lr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ue(e,mu),l=xc(n),c=_c(o);let u=Ke({breakpoints:l,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:c,shape:w({},Tc,i)},a);return u.applyStyles=hu,u=t.reduce((p,f)=>Ke(p,f),u),u.unstable_sxConfig=w({},Dr,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Br({sx:f,theme:this})},u}function gu(e){return Object.keys(e).length===0}function Ji(e=null){const t=T.useContext(hr.ThemeContext);return!t||gu(t)?e:t}const bu=Lr();function Zi(e=bu){return Ji(e)}const vu=["ownerState"],yu=["variants"],xu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Eu(e){return Object.keys(e).length===0}function Tu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function On(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wu=Lr(),Ho=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xn({defaultTheme:e,theme:t,themeId:n}){return Eu(t)?e:t[n]||t}function Ou(e){return e?(t,n)=>n[e]:null}function Pn(e,t){let{ownerState:n}=t,r=ue(t,vu);const o=typeof e=="function"?e(w({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Pn(i,w({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,yu);return i.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(w({ownerState:n},r)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(w({ownerState:n},r)):c.style))}),l}return o}function Pu(e={}){const{themeId:t,defaultTheme:n=wu,rootShouldForwardProp:r=On,slotShouldForwardProp:o=On}=e,i=a=>Br(w({},a,{theme:xn(w({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{hr.internal_processStyles(a,g=>g.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:d=Ou(Ho(u))}=l,b=ue(l,xu),v=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,m=f||!1;let h;process.env.NODE_ENV!=="production"&&c&&(h=`${c}-${Ho(u||"Root")}`);let E=On;u==="Root"||u==="root"?E=r:u?E=o:Tu(a)&&(E=void 0);const $=hr(a,w({shouldForwardProp:E,label:h},b)),y=g=>typeof g=="function"&&g.__emotion_real!==g||dt(g)?k=>Pn(g,w({},k,{theme:xn({theme:k.theme,defaultTheme:n,themeId:t})})):g,x=(g,...k)=>{let S=y(g);const j=k?k.map(y):[];c&&d&&j.push(B=>{const z=xn(w({},B,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[c]||!z.components[c].styleOverrides)return null;const W=z.components[c].styleOverrides,L={};return Object.entries(W).forEach(([_,R])=>{L[_]=Pn(R,w({},B,{theme:z}))}),d(B,L)}),c&&!v&&j.push(B=>{var z;const W=xn(w({},B,{defaultTheme:n,themeId:t})),L=W==null||(z=W.components)==null||(z=z[c])==null?void 0:z.variants;return Pn({variants:L},w({},B,{theme:W}))}),m||j.push(i);const A=j.length-k.length;if(Array.isArray(g)&&A>0){const B=new Array(A).fill("");S=[...g,...B],S.raw=[...g.raw,...B]}const I=$(S,...j);if(process.env.NODE_ENV!=="production"){let B;c&&(B=`${c}${ze(u||"")}`),B===void 0&&(B=`Styled(${ca(a)})`),I.displayName=B}return a.muiName&&(I.muiName=a.muiName),I};return $.withConfig&&(x.withConfig=$.withConfig),x}}function ku(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ri(t.components[n].defaultProps,r)}function Su({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zi(n);return r&&(o=o[r]||o),ku({theme:o,name:t,props:e})}function Fr(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(en)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Ma(e,t,n)}function Cu(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 bt(e){if(e.type)return e;if(e.charAt(0)==="#")return bt(Cu(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. +`)),()=>{})}function Ki(e){return dn(e,"spacing",8,"spacing")}function fn(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 Mc(e,t){return n=>e.reduce((r,o)=>(r[o]=fn(t,n),r),{})}function _c(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Nc(n),i=Mc(o,r),a=e[n];return Je(e,a,i)}function Xi(e,t){const n=Ki(e.theme);return Object.keys(e).map(r=>_c(e,t,r,n)).reduce(en,{})}function fe(e){return Xi(e,Fn)}fe.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,t)=>(e[t]=it,e),{}):{};fe.filterProps=Fn;function he(e){return Xi(e,Vn)}he.propTypes=process.env.NODE_ENV!=="production"?Vn.reduce((e,t)=>(e[t]=it,e),{}):{};he.filterProps=Vn;process.env.NODE_ENV!=="production"&&$c.reduce((e,t)=>(e[t]=it,e),{});function Ic(e=8){if(e.mui)return e;const t=Ki({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function zn(...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]?en(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function _e(e){return typeof e!="number"?e:`${e}px solid`}function Be(e,t){return ge({prop:e,themeKey:"borders",transform:t})}const Ac=Be("border",_e),jc=Be("borderTop",_e),Dc=Be("borderRight",_e),Bc=Be("borderBottom",_e),Lc=Be("borderLeft",_e),Fc=Be("borderColor"),Vc=Be("borderTopColor"),zc=Be("borderRightColor"),Uc=Be("borderBottomColor"),Hc=Be("borderLeftColor"),qc=Be("outline",_e),Wc=Be("outlineColor"),Un=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:fn(t,r)});return Je(e,e.borderRadius,n)}return null};Un.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:it}:{};Un.filterProps=["borderRadius"];zn(Ac,jc,Dc,Bc,Lc,Fc,Vc,zc,Uc,Hc,Un,qc,Wc);const Hn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=dn(e.theme,"spacing",8,"gap"),n=r=>({gap:fn(t,r)});return Je(e,e.gap,n)}return null};Hn.propTypes=process.env.NODE_ENV!=="production"?{gap:it}:{};Hn.filterProps=["gap"];const qn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:fn(t,r)});return Je(e,e.columnGap,n)}return null};qn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:it}:{};qn.filterProps=["columnGap"];const Wn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:fn(t,r)});return Je(e,e.rowGap,n)}return null};Wn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:it}:{};Wn.filterProps=["rowGap"];const Gc=ge({prop:"gridColumn"}),Kc=ge({prop:"gridRow"}),Xc=ge({prop:"gridAutoFlow"}),Yc=ge({prop:"gridAutoColumns"}),Jc=ge({prop:"gridAutoRows"}),Zc=ge({prop:"gridTemplateColumns"}),Qc=ge({prop:"gridTemplateRows"}),eu=ge({prop:"gridTemplateAreas"}),tu=ge({prop:"gridArea"});zn(Hn,qn,Wn,Gc,Kc,Xc,Yc,Jc,Zc,Qc,eu,tu);function Ct(e,t){return t==="grey"?t:e}const nu=ge({prop:"color",themeKey:"palette",transform:Ct}),ru=ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ct}),ou=ge({prop:"backgroundColor",themeKey:"palette",transform:Ct});zn(nu,ru,ou);function Re(e){return e<=1&&e!==0?`${e*100}%`:e}const iu=ge({prop:"width",transform:Re}),jr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ar[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Re(n)}};return Je(e,e.maxWidth,t)}return null};jr.filterProps=["maxWidth"];const su=ge({prop:"minWidth",transform:Re}),au=ge({prop:"height",transform:Re}),lu=ge({prop:"maxHeight",transform:Re}),cu=ge({prop:"minHeight",transform:Re});ge({prop:"size",cssProperty:"width",transform:Re});ge({prop:"size",cssProperty:"height",transform:Re});const uu=ge({prop:"boxSizing"});zn(iu,jr,su,au,lu,cu,uu);const pu={border:{themeKey:"borders",transform:_e},borderTop:{themeKey:"borders",transform:_e},borderRight:{themeKey:"borders",transform:_e},borderBottom:{themeKey:"borders",transform:_e},borderLeft:{themeKey:"borders",transform:_e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Un},color:{themeKey:"palette",transform:Ct},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ct},backgroundColor:{themeKey:"palette",transform:Ct},p:{style:he},pt:{style:he},pr:{style:he},pb:{style:he},pl:{style:he},px:{style:he},py:{style:he},padding:{style:he},paddingTop:{style:he},paddingRight:{style:he},paddingBottom:{style:he},paddingLeft:{style:he},paddingX:{style:he},paddingY:{style:he},paddingInline:{style:he},paddingInlineStart:{style:he},paddingInlineEnd:{style:he},paddingBlock:{style:he},paddingBlockStart:{style:he},paddingBlockEnd:{style:he},m:{style:fe},mt:{style:fe},mr:{style:fe},mb:{style:fe},ml:{style:fe},mx:{style:fe},my:{style:fe},margin:{style:fe},marginTop:{style:fe},marginRight:{style:fe},marginBottom:{style:fe},marginLeft:{style:fe},marginX:{style:fe},marginY:{style:fe},marginInline:{style:fe},marginInlineStart:{style:fe},marginInlineEnd:{style:fe},marginBlock:{style:fe},marginBlockStart:{style:fe},marginBlockEnd:{style:fe},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:Hn},rowGap:{style:Wn},columnGap:{style:qn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Re},maxWidth:{style:jr},minWidth:{transform:Re},height:{transform:Re},maxHeight:{transform:Re},minHeight:{transform:Re},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Dr=pu;function du(...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 fu(e,t){return typeof e=="function"?e(t):e}function hu(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:p,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=Ln(o,u)||{};return f?f(a):Je(a,r,v=>{let g=_n(d,p,v);return v===g&&typeof v=="string"&&(g=_n(d,p,`${n}${v==="default"?"":ze(v)}`,v)),c===!1?g:{[c]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Dr;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const p=Pc(i.breakpoints),f=Object.keys(p);let d=p;return Object.keys(u).forEach(b=>{const v=fu(u[b],i);if(v!=null)if(typeof v=="object")if(a[b])d=en(d,e(b,v,i,a));else{const g=Je({theme:i},v,h=>({[b]:h}));du(g,v)?d[b]=t({sx:v,theme:i}):d=en(d,g)}else d=en(d,e(b,v,i,a))}),kc(f,d)}return Array.isArray(o)?o.map(l):l(o)}return t}const Yi=hu();Yi.filterProps=["sx"];const Br=Yi;function mu(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const gu=["breakpoints","palette","spacing","shape"];function Lr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ue(e,gu),l=Ec(n),c=Ic(o);let u=Ke({breakpoints:l,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:c,shape:w({},wc,i)},a);return u.applyStyles=mu,u=t.reduce((p,f)=>Ke(p,f),u),u.unstable_sxConfig=w({},Dr,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Br({sx:f,theme:this})},u}function bu(e){return Object.keys(e).length===0}function Ji(e=null){const t=T.useContext(hr.ThemeContext);return!t||bu(t)?e:t}const vu=Lr();function Zi(e=vu){return Ji(e)}const yu=["ownerState"],xu=["variants"],Eu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Tu(e){return Object.keys(e).length===0}function wu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function On(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ou=Lr(),Ho=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xn({defaultTheme:e,theme:t,themeId:n}){return Tu(t)?e:t[n]||t}function Pu(e){return e?(t,n)=>n[e]:null}function Pn(e,t){let{ownerState:n}=t,r=ue(t,yu);const o=typeof e=="function"?e(w({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Pn(i,w({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,xu);return i.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(w({ownerState:n},r)):Object.keys(c.props).forEach(p=>{(n==null?void 0:n[p])!==c.props[p]&&r[p]!==c.props[p]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(w({ownerState:n},r)):c.style))}),l}return o}function ku(e={}){const{themeId:t,defaultTheme:n=Ou,rootShouldForwardProp:r=On,slotShouldForwardProp:o=On}=e,i=a=>Br(w({},a,{theme:xn(w({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{hr.internal_processStyles(a,m=>m.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:d=Pu(Ho(u))}=l,b=ue(l,Eu),v=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,g=f||!1;let h;process.env.NODE_ENV!=="production"&&c&&(h=`${c}-${Ho(u||"Root")}`);let E=On;u==="Root"||u==="root"?E=r:u?E=o:wu(a)&&(E=void 0);const $=hr(a,w({shouldForwardProp:E,label:h},b)),y=m=>typeof m=="function"&&m.__emotion_real!==m||dt(m)?k=>Pn(m,w({},k,{theme:xn({theme:k.theme,defaultTheme:n,themeId:t})})):m,x=(m,...k)=>{let S=y(m);const j=k?k.map(y):[];c&&d&&j.push(B=>{const z=xn(w({},B,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[c]||!z.components[c].styleOverrides)return null;const W=z.components[c].styleOverrides,L={};return Object.entries(W).forEach(([_,R])=>{L[_]=Pn(R,w({},B,{theme:z}))}),d(B,L)}),c&&!v&&j.push(B=>{var z;const W=xn(w({},B,{defaultTheme:n,themeId:t})),L=W==null||(z=W.components)==null||(z=z[c])==null?void 0:z.variants;return Pn({variants:L},w({},B,{theme:W}))}),g||j.push(i);const A=j.length-k.length;if(Array.isArray(m)&&A>0){const B=new Array(A).fill("");S=[...m,...B],S.raw=[...m.raw,...B]}const I=$(S,...j);if(process.env.NODE_ENV!=="production"){let B;c&&(B=`${c}${ze(u||"")}`),B===void 0&&(B=`Styled(${ua(a)})`),I.displayName=B}return a.muiName&&(I.muiName=a.muiName),I};return $.withConfig&&(x.withConfig=$.withConfig),x}}function Su(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ri(t.components[n].defaultProps,r)}function Cu({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zi(n);return r&&(o=o[r]||o),Su({theme:o,name:t,props:e})}function Fr(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(en)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),_a(e,t,n)}function Ru(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 bt(e){if(e.type)return e;if(e.charAt(0)==="#")return bt(Ru(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Rt(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(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space. -The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Rt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Gn(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 Ru(e){e=bt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,p=(u+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Gn({type:l,values:c})}function qo(e){e=bt(e);let t=e.type==="hsl"||e.type==="hsla"?bt(Ru(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 Wo(e,t){const n=qo(e),r=qo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function In(e,t){return e=bt(e),t=Fr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gn(e)}function Nu(e,t){if(e=bt(e),t=Fr(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 Gn(e)}function $u(e,t){if(e=bt(e),t=Fr(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 Gn(e)}function Mu(e,t){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const _u={black:"#000",white:"#fff"},sn=_u,Iu={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"},Au=Iu,ju={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"},xt=ju,Du={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"},Et=Du,Bu={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"},Ut=Bu,Lu={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"},Tt=Lu,Fu={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"},wt=Fu,Vu={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"},Ot=Vu,zu=["mode","contrastThreshold","tonalOffset"],Go={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:sn.white,default:sn.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}},ar={text:{primary:sn.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:sn.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 Ko(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=$u(e.main,o):t==="dark"&&(e.dark=Nu(e.main,i)))}function Uu(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[700],light:Tt[400],dark:Tt[800]}}function Hu(e="light"){return e==="dark"?{main:xt[200],light:xt[50],dark:xt[400]}:{main:xt[500],light:xt[300],dark:xt[700]}}function qu(e="light"){return e==="dark"?{main:Et[500],light:Et[300],dark:Et[700]}:{main:Et[700],light:Et[400],dark:Et[800]}}function Wu(e="light"){return e==="dark"?{main:wt[400],light:wt[300],dark:wt[700]}:{main:wt[700],light:wt[500],dark:wt[900]}}function Gu(e="light"){return e==="dark"?{main:Ot[400],light:Ot[300],dark:Ot[700]}:{main:Ot[800],light:Ot[500],dark:Ot[900]}}function Ku(e="light"){return e==="dark"?{main:Ut[400],light:Ut[300],dark:Ut[700]}:{main:"#ed6c02",light:Ut[500],dark:Ut[900]}}function Xu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ue(e,zu),i=e.primary||Uu(t),a=e.secondary||Hu(t),l=e.error||qu(t),c=e.info||Wu(t),u=e.success||Gu(t),p=e.warning||Ku(t);function f(m){const h=Wo(m,ar.text.primary)>=n?ar.text.primary:Go.text.primary;if(process.env.NODE_ENV!=="production"){const E=Wo(m,h);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${h} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` -`))}return h}const d=({color:m,name:h,mainShade:E=500,lightShade:$=300,darkShade:y=700})=>{if(m=w({},m),!m.main&&m[E]&&(m.main=m[E]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. -The color object needs to have a \`main\` property or a \`${E}\` property.`:Rt(11,h?` (${h})`:"",E));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. -\`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead. +The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Rt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Gn(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 Nu(e){e=bt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,p=(u+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Gn({type:l,values:c})}function qo(e){e=bt(e);let t=e.type==="hsl"||e.type==="hsla"?bt(Nu(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 Wo(e,t){const n=qo(e),r=qo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function In(e,t){return e=bt(e),t=Fr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gn(e)}function $u(e,t){if(e=bt(e),t=Fr(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 Gn(e)}function Mu(e,t){if(e=bt(e),t=Fr(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 Gn(e)}function _u(e,t){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Iu={black:"#000",white:"#fff"},sn=Iu,Au={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"},ju=Au,Du={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"},xt=Du,Bu={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"},Et=Bu,Lu={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"},Ut=Lu,Fu={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"},Tt=Fu,Vu={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"},wt=Vu,zu={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"},Ot=zu,Uu=["mode","contrastThreshold","tonalOffset"],Go={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:sn.white,default:sn.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}},ar={text:{primary:sn.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:sn.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 Ko(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=Mu(e.main,o):t==="dark"&&(e.dark=$u(e.main,i)))}function Hu(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[700],light:Tt[400],dark:Tt[800]}}function qu(e="light"){return e==="dark"?{main:xt[200],light:xt[50],dark:xt[400]}:{main:xt[500],light:xt[300],dark:xt[700]}}function Wu(e="light"){return e==="dark"?{main:Et[500],light:Et[300],dark:Et[700]}:{main:Et[700],light:Et[400],dark:Et[800]}}function Gu(e="light"){return e==="dark"?{main:wt[400],light:wt[300],dark:wt[700]}:{main:wt[700],light:wt[500],dark:wt[900]}}function Ku(e="light"){return e==="dark"?{main:Ot[400],light:Ot[300],dark:Ot[700]}:{main:Ot[800],light:Ot[500],dark:Ot[900]}}function Xu(e="light"){return e==="dark"?{main:Ut[400],light:Ut[300],dark:Ut[700]}:{main:"#ed6c02",light:Ut[500],dark:Ut[900]}}function Yu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ue(e,Uu),i=e.primary||Hu(t),a=e.secondary||qu(t),l=e.error||Wu(t),c=e.info||Gu(t),u=e.success||Ku(t),p=e.warning||Xu(t);function f(g){const h=Wo(g,ar.text.primary)>=n?ar.text.primary:Go.text.primary;if(process.env.NODE_ENV!=="production"){const E=Wo(g,h);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${h} on ${g}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` +`))}return h}const d=({color:g,name:h,mainShade:E=500,lightShade:$=300,darkShade:y=700})=>{if(g=w({},g),!g.main&&g[E]&&(g.main=g[E]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. +The color object needs to have a \`main\` property or a \`${E}\` property.`:Rt(11,h?` (${h})`:"",E));if(typeof g.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. +\`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead. Did you intend to use one of the following approaches? @@ -59,132 +59,112 @@ const theme1 = createTheme({ palette: { const theme2 = createTheme({ palette: { primary: { main: green[500] }, -} });`:Rt(12,h?` (${h})`:"",JSON.stringify(m.main)));return Ko(m,"light",$,r),Ko(m,"dark",y,r),m.contrastText||(m.contrastText=f(m.main)),m},b={dark:ar,light:Go};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ke(w({common:w({},sn),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:p,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:u,name:"success"}),grey:Au,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},b[t]),o)}const Yu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ju(e){return Math.round(e*1e5)/1e5}const Xo={textTransform:"uppercase"},Yo='"Roboto", "Helvetica", "Arial", sans-serif';function Zu(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Yo,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:p,pxToRem:f}=n,d=ue(n,Yu);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,v=f||(E=>`${E/u*b}rem`),m=(E,$,y,x,g)=>w({fontFamily:r,fontWeight:E,fontSize:v($),lineHeight:y},r===Yo?{letterSpacing:`${Ju(x/$)}em`}:{},g,p),h={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Xo),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Xo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ke(w({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c},h),d,{clone:!1})}const Qu=.2,ep=.14,tp=.12;function de(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ep})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tp})`].join(",")}const np=["none",de(0,2,1,-1,0,1,1,0,0,1,3,0),de(0,3,1,-2,0,2,2,0,0,1,5,0),de(0,3,3,-2,0,3,4,0,0,1,8,0),de(0,2,4,-1,0,4,5,0,0,1,10,0),de(0,3,5,-1,0,5,8,0,0,1,14,0),de(0,3,5,-1,0,6,10,0,0,1,18,0),de(0,4,5,-2,0,7,10,1,0,2,16,1),de(0,5,5,-3,0,8,10,1,0,3,14,2),de(0,5,6,-3,0,9,12,1,0,3,16,2),de(0,6,6,-3,0,10,14,1,0,4,18,3),de(0,6,7,-4,0,11,15,1,0,4,20,3),de(0,7,8,-4,0,12,17,2,0,5,22,4),de(0,7,8,-4,0,13,19,2,0,5,24,4),de(0,7,9,-4,0,14,21,2,0,5,26,4),de(0,8,9,-5,0,15,22,2,0,6,28,5),de(0,8,10,-5,0,16,24,2,0,6,30,5),de(0,8,11,-5,0,17,26,2,0,6,32,5),de(0,9,11,-5,0,18,28,2,0,7,34,6),de(0,9,12,-6,0,19,29,2,0,7,36,6),de(0,10,13,-6,0,20,31,3,0,8,38,7),de(0,10,13,-6,0,21,33,3,0,8,40,7),de(0,10,14,-6,0,22,35,3,0,8,42,7),de(0,11,14,-7,0,23,36,3,0,9,44,8),de(0,11,15,-7,0,24,38,3,0,9,46,8)],rp=np,op=["duration","easing","delay"],ip={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)"},sp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jo(e){return`${Math.round(e)}ms`}function ap(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lp(e){const t=w({},ip,e.easing),n=w({},sp,e.duration);return w({getAutoHeightDuration:ap,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=ue(i,op);if(process.env.NODE_ENV!=="production"){const p=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` -`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:Jo(a)} ${l} ${typeof c=="string"?c:Jo(c)}`).join(",")}},e,{easing:t,duration:n})}const cp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},up=cp,pp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ue(e,pp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Rt(18));const l=Xu(r),c=Lr(e);let u=Ke(c,{mixins:Mu(c.breakpoints,n),palette:l,shadows:rp.slice(),typography:Zu(l,i),transitions:lp(o),zIndex:w({},up)});if(u=Ke(u,a),u=t.reduce((p,f)=>Ke(p,f),u),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,b)=>{let v;for(v in d){const m=d[v];if(p.indexOf(v)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const h=He("",v);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${h}' syntax:`,JSON.stringify({root:{[`&.${h}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(` -`))}d[v]={}}}};Object.keys(u.components).forEach(d=>{const b=u.components[d].styleOverrides;b&&d.indexOf("Mui")===0&&f(b,d)})}return u.unstable_sxConfig=w({},Dr,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Br({sx:f,theme:this})},u}const fp=dp(),Vr=fp,zr="$$material",Qi=e=>On(e)&&e!=="classes",hp=Pu({themeId:zr,defaultTheme:Vr,rootShouldForwardProp:Qi}),xe=hp;function hn(){const e=Zi(Vr);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[zr]||e}function Qe({props:e,name:t}){return Su({props:e,name:t,defaultTheme:Vr,themeId:zr})}function Tr(e,t){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Tr(e,t)}function mp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tr(e,t)}const Zo={disabled:!1};var gp=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const es=ie.createContext(null);var bp=function(t){return t.scrollTop},Yt="unmounted",ct="exited",ut="entering",kt="entered",wr="exiting",et=function(e){mp(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=ct,i.appearStatus=ut):c=kt:r.unmountOnExit||r.mountOnEnter?c=Yt:c=ct,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Yt?{status:ct}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ut&&a!==kt&&(i=ut):(a===ut||a===kt)&&(i=wr)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ut){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Gt.findDOMNode(this);a&&bp(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ct&&this.setState({status:Yt})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Gt.findDOMNode(this),l],u=c[0],p=c[1],f=this.getTimeouts(),d=l?f.appear:f.enter;if(!o&&!a||Zo.disabled){this.safeSetState({status:kt},function(){i.props.onEntered(u)});return}this.props.onEnter(u,p),this.safeSetState({status:ut},function(){i.props.onEntering(u,p),i.onTransitionEnd(d,function(){i.safeSetState({status:kt},function(){i.props.onEntered(u,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Gt.findDOMNode(this);if(!i||Zo.disabled){this.safeSetState({status:ct},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:wr},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ct},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Gt.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],p=c[1];this.props.addEndListener(u,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Yt)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=ue(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ie.createElement(es.Provider,{value:null},typeof a=="function"?a(o,l):ie.cloneElement(ie.Children.only(a),l))},t}(ie.Component);et.contextType=es;et.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=gp;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;ie.scrollTop;function An(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const vp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Or(e){return`scale(${e}, ${e**2})`}const yp={entering:{opacity:1,transform:Or(1)},entered:{opacity:1,transform:"none"}},lr=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ur=T.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:p,onExit:f,onExited:d,onExiting:b,style:v,timeout:m="auto",TransitionComponent:h=ts}=t,E=ue(t,vp),$=Kt(),y=T.useRef(),x=hn(),g=T.useRef(null),k=Ae(g,i.ref,n),S=_=>R=>{if(_){const D=g.current;R===void 0?_(D):_(D,R)}},j=S(p),A=S((_,R)=>{ns(_);const{duration:D,delay:Q,easing:Z}=An({style:v,timeout:m,easing:a},{mode:"enter"});let O;m==="auto"?(O=x.transitions.getAutoHeightDuration(_.clientHeight),y.current=O):O=D,_.style.transition=[x.transitions.create("opacity",{duration:O,delay:Q}),x.transitions.create("transform",{duration:lr?O:O*.666,delay:Q,easing:Z})].join(","),c&&c(_,R)}),I=S(u),B=S(b),z=S(_=>{const{duration:R,delay:D,easing:Q}=An({style:v,timeout:m,easing:a},{mode:"exit"});let Z;m==="auto"?(Z=x.transitions.getAutoHeightDuration(_.clientHeight),y.current=Z):Z=R,_.style.transition=[x.transitions.create("opacity",{duration:Z,delay:D}),x.transitions.create("transform",{duration:lr?Z:Z*.666,delay:lr?D:D||Z*.333,easing:Q})].join(","),_.style.opacity=0,_.style.transform=Or(.75),f&&f(_)}),W=S(d),L=_=>{m==="auto"&&$.start(y.current||0,_),r&&r(g.current,_)};return P.jsx(h,w({appear:o,in:l,nodeRef:g,onEnter:A,onEntered:I,onEntering:j,onExit:z,onExited:W,onExiting:B,addEndListener:L,timeout:m==="auto"?null:m},E,{children:(_,R)=>T.cloneElement(i,w({style:w({opacity:0,transform:Or(.75),visibility:_==="exited"&&!l?"hidden":void 0},yp[_],v,i.props.style),ref:k},R))}))});process.env.NODE_ENV!=="production"&&(Ur.propTypes={addEndListener:s.func,appear:s.bool,children:ln.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Ur.muiSupportAuto=!0;const Pr=Ur,xp=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Qo=xp,Ep=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Tp=xe(Gi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rs=T.forwardRef(function(t,n){var r;const o=Ji(),i=Qe({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:u,container:p,disablePortal:f,keepMounted:d,modifiers:b,open:v,placement:m,popperOptions:h,popperRef:E,transition:$,slots:y,slotProps:x}=i,g=ue(i,Ep),k=(r=y==null?void 0:y.root)!=null?r:c==null?void 0:c.Root,S=w({anchorEl:a,container:p,disablePortal:f,keepMounted:d,modifiers:b,open:v,placement:m,popperOptions:h,popperRef:E,transition:$},g);return P.jsx(Tp,w({as:l,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:x??u},S,{ref:n}))});process.env.NODE_ENV!=="production"&&(rs.propTypes={anchorEl:s.oneOfType([Xe,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Xe,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Sr,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});const os=rs;function wp(e){return He("MuiTooltip",e)}const Op=rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nt=Op,Pp=["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 kp(e){return Math.round(e*1e5)/1e5}const Sp=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ze(i.split("-")[0])}`],arrow:["arrow"]};return Ze(a,wp,t)},Cp=xe(os,{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})=>w({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${nt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${nt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${nt.arrow}`]:w({},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"] .${nt.arrow}`]:w({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Rp=xe("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${ze(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>w({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:In(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:`${kp(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${nt.popper}[data-popper-placement*="left"] &`]:w({transformOrigin:"right center"},t.isRtl?w({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):w({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${nt.popper}[data-popper-placement*="right"] &`]:w({transformOrigin:"left center"},t.isRtl?w({marginRight:"14px"},t.touch&&{marginRight:"24px"}):w({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${nt.popper}[data-popper-placement*="top"] &`]:w({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${nt.popper}[data-popper-placement*="bottom"] &`]:w({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Np=xe("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:In(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let En=!1;const ei=new cn;let Ht={x:0,y:0};function Tn(e,t){return n=>{t&&t(n),e(n)}}const is=T.forwardRef(function(t,n){var r,o,i,a,l,c,u,p,f,d,b,v,m,h,E,$,y,x,g;const k=Qe({props:t,name:"MuiTooltip"}),{arrow:S=!1,children:j,components:A={},componentsProps:I={},describeChild:B=!1,disableFocusListener:z=!1,disableHoverListener:W=!1,disableInteractive:L=!1,disableTouchListener:_=!1,enterDelay:R=100,enterNextDelay:D=0,enterTouchDelay:Q=700,followCursor:Z=!1,id:O,leaveDelay:M=0,leaveTouchDelay:V=1500,onClose:K,onOpen:F,open:U,placement:q="bottom",PopperComponent:G,PopperProps:H={},slotProps:X={},slots:Y={},title:ne,TransitionComponent:N=Pr,TransitionProps:J}=k,C=ue(k,Pp),re=T.isValidElement(j)?j:P.jsx("span",{children:j}),be=hn(),Ee=be.direction==="rtl",[me,st]=T.useState(),[Te,qe]=T.useState(null),ke=T.useRef(!1),We=L||Z,ve=Kt(),yt=Kt(),at=Kt(),Dt=Kt(),[mn,Jr]=wi({controlled:U,default:!1,name:"Tooltip",state:"open"});let Ge=mn;if(process.env.NODE_ENV!=="production"){const{current:ee}=T.useRef(U!==void 0);T.useEffect(()=>{me&&me.disabled&&!ee&&ne!==""&&me.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(` -`))},[ne,me,ee])}const Kn=Ti(O),Bt=T.useRef(),gn=tn(()=>{Bt.current!==void 0&&(document.body.style.WebkitUserSelect=Bt.current,Bt.current=void 0),Dt.clear()});T.useEffect(()=>gn,[gn]);const Zr=ee=>{ei.clear(),En=!0,Jr(!0),F&&!Ge&&F(ee)},bn=tn(ee=>{ei.start(800+M,()=>{En=!1}),Jr(!1),K&&Ge&&K(ee),ve.start(be.transitions.duration.shortest,()=>{ke.current=!1})}),Xn=ee=>{ke.current&&ee.type!=="touchstart"||(me&&me.removeAttribute("title"),yt.clear(),at.clear(),R||En&&D?yt.start(En?D:R,()=>{Zr(ee)}):Zr(ee))},Qr=ee=>{yt.clear(),at.start(M,()=>{bn(ee)})},{isFocusVisibleRef:eo,onBlur:Rs,onFocus:Ns,ref:$s}=Oi(),[,to]=T.useState(!1),no=ee=>{Rs(ee),eo.current===!1&&(to(!1),Qr(ee))},ro=ee=>{me||st(ee.currentTarget),Ns(ee),eo.current===!0&&(to(!0),Xn(ee))},oo=ee=>{ke.current=!0;const Se=re.props;Se.onTouchStart&&Se.onTouchStart(ee)},io=Xn,so=Qr,Ms=ee=>{oo(ee),at.clear(),ve.clear(),gn(),Bt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Dt.start(Q,()=>{document.body.style.WebkitUserSelect=Bt.current,Xn(ee)})},_s=ee=>{re.props.onTouchEnd&&re.props.onTouchEnd(ee),gn(),at.start(V,()=>{bn(ee)})};T.useEffect(()=>{if(!Ge)return;function ee(Se){(Se.key==="Escape"||Se.key==="Esc")&&bn(Se)}return document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}},[bn,Ge]);const Is=Ae(re.ref,$s,st,n);!ne&&ne!==0&&(Ge=!1);const Yn=T.useRef(),As=ee=>{const Se=re.props;Se.onMouseMove&&Se.onMouseMove(ee),Ht={x:ee.clientX,y:ee.clientY},Yn.current&&Yn.current.update()},Lt={},Jn=typeof ne=="string";B?(Lt.title=!Ge&&Jn&&!W?ne:null,Lt["aria-describedby"]=Ge?Kn:null):(Lt["aria-label"]=Jn?ne:null,Lt["aria-labelledby"]=Ge&&!Jn?Kn:null);const Me=w({},Lt,C,re.props,{className:Ne(C.className,re.props.className),onTouchStart:oo,ref:Is},Z?{onMouseMove:As}:{});process.env.NODE_ENV!=="production"&&(Me["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{me&&!me.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(` -`))},[me]));const Ft={};_||(Me.onTouchStart=Ms,Me.onTouchEnd=_s),W||(Me.onMouseOver=Tn(io,Me.onMouseOver),Me.onMouseLeave=Tn(so,Me.onMouseLeave),We||(Ft.onMouseOver=io,Ft.onMouseLeave=so)),z||(Me.onFocus=Tn(ro,Me.onFocus),Me.onBlur=Tn(no,Me.onBlur),We||(Ft.onFocus=ro,Ft.onBlur=no)),process.env.NODE_ENV!=="production"&&re.props.title&&console.error(["MUI: You have provided a `title` prop to the child of .",`Remove this title prop \`${re.props.title}\` or the Tooltip component.`].join(` -`));const js=T.useMemo(()=>{var ee;let Se=[{name:"arrow",enabled:!!Te,options:{element:Te,padding:4}}];return(ee=H.popperOptions)!=null&&ee.modifiers&&(Se=Se.concat(H.popperOptions.modifiers)),w({},H.popperOptions,{modifiers:Se})},[Te,H]),Vt=w({},k,{isRtl:Ee,arrow:S,disableInteractive:We,placement:q,PopperComponentProp:G,touch:ke.current}),Zn=Sp(Vt),ao=(r=(o=Y.popper)!=null?o:A.Popper)!=null?r:Cp,lo=(i=(a=(l=Y.transition)!=null?l:A.Transition)!=null?a:N)!=null?i:Pr,co=(c=(u=Y.tooltip)!=null?u:A.Tooltip)!=null?c:Rp,uo=(p=(f=Y.arrow)!=null?f:A.Arrow)!=null?p:Np,Ds=Xt(ao,w({},H,(d=X.popper)!=null?d:I.popper,{className:Ne(Zn.popper,H==null?void 0:H.className,(b=(v=X.popper)!=null?v:I.popper)==null?void 0:b.className)}),Vt),Bs=Xt(lo,w({},J,(m=X.transition)!=null?m:I.transition),Vt),Ls=Xt(co,w({},(h=X.tooltip)!=null?h:I.tooltip,{className:Ne(Zn.tooltip,(E=($=X.tooltip)!=null?$:I.tooltip)==null?void 0:E.className)}),Vt),Fs=Xt(uo,w({},(y=X.arrow)!=null?y:I.arrow,{className:Ne(Zn.arrow,(x=(g=X.arrow)!=null?g:I.arrow)==null?void 0:x.className)}),Vt);return P.jsxs(T.Fragment,{children:[T.cloneElement(re,Me),P.jsx(ao,w({as:G??os,placement:q,anchorEl:Z?{getBoundingClientRect:()=>({top:Ht.y,left:Ht.x,right:Ht.x,bottom:Ht.y,width:0,height:0})}:me,popperRef:Yn,open:me?Ge:!1,id:Kn,transition:!0},Ft,Ds,{popperOptions:js,children:({TransitionProps:ee})=>P.jsx(lo,w({timeout:be.transitions.duration.shorter},ee,Bs,{children:P.jsxs(co,w({},Ls,{children:[ne,S?P.jsx(uo,w({},Fs,{ref:qe})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(is.propTypes={arrow:s.bool,children:ln.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});const $p=is;var Hr={},ss={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})(ss);var Mp=ss.exports,cr={};function _p(e){return He("MuiSvgIcon",e)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ip=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ap=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ze(t)}`,`fontSize${ze(n)}`]};return Ze(o,_p,r)},jp=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ze(n.color)}`],t[`fontSize${ze(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,l,c,u,p,f,d,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(p=u.pxToRem)==null?void 0:p.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),qr=T.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:f,viewBox:d="0 0 24 24"}=r,b=ue(r,Ip),v=T.isValidElement(o)&&o.type==="svg",m=w({},r,{color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:d,hasSvgAsChild:v}),h={};p||(h.viewBox=d);const E=Ap(m);return P.jsxs(jp,w({as:l,className:Ne(E.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},h,b,v&&o.props,{ownerState:m,children:[v?o.props.children:o,f?P.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(qr.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});qr.muiName="SvgIcon";const ti=qr;function as(e,t){function n(r,o){return P.jsx(ti,w({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ti.muiName,T.memo(T.forwardRef(n))}const Dp={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(` -`)),Ni.configure(e)}},Bp=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ze,createChainedFunction:br,createSvgIcon:as,debounce:Ei,deprecatedPropType:pa,isMuiElement:da,ownerDocument:ye,ownerWindow:Nt,requirePropFactory:fa,setRef:Rn,unstable_ClassNameGenerator:Dp,unstable_useEnhancedEffect:ht,unstable_useId:Ti,unsupportedProp:ga,useControlled:wi,useEventCallback:tn,useForkRef:Ae,useIsFocusVisible:Oi},Symbol.toStringTag,{value:"Module"})),Lp=Hs(Bp);var ni;function Fp(){return ni||(ni=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Lp}(cr)),cr}var Vp=Mp;Object.defineProperty(Hr,"__esModule",{value:!0});var ls=Hr.default=void 0,zp=Vp(Fp()),Up=P;ls=Hr.default=(0,zp.default)((0,Up.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function ri(e,t,n){return e?P.jsx(pe.ListItemIcon,{className:`papi-menu-icon-${n?"leading":"trailing"}`,children:P.jsx("img",{src:e,alt:`${n?"Leading":"Trailing"} icon for ${t}`})}):void 0}function Wr(e){const{onClick:t,label:n,tooltip:r,allowForLeadingIcons:o=!0,iconPathBefore:i=void 0,iconPathAfter:a=void 0,hasAutoFocus:l=!1,className:c,isDisabled:u=!1,isDense:p=!0,isSubMenuParent:f=!1,hasDisabledGutters:d=!1,hasDivider:b=!1,focusVisibleClassName:v,id:m,children:h}=e,E=P.jsx(pe.MenuItem,{sx:{lineHeight:.8},autoFocus:l,className:c,disabled:u,dense:p,disableGutters:d,divider:b,focusVisibleClassName:v,onClick:t,id:m,children:n?P.jsxs(P.Fragment,{children:[ri(i,n,!0),P.jsx(pe.ListItemText,{primary:n,inset:!i&&o}),f?P.jsx(pe.ListItemIcon,{className:"papi-menu-icon-trailing",children:P.jsx(ls,{})}):ri(a,n,!1)]}):h});return r?P.jsx($p,{title:r,placement:"right",children:P.jsx("div",{children:E})}):E}function cs(e){return Object.entries(e.groups).map(([n,r])=>({id:n,group:r}))}function Hp(e){const[t,n]=ie.useState(void 0),{parentMenuItem:r,parentItemProps:o,menuDefinition:i}=e,a=u=>{n(u.currentTarget)},l=()=>{n(void 0)},c=()=>{let u=cs(i).filter(p=>"menuItem"in p.group);if(!(r!=null&&r.id))throw new Error("A valid parent menu item is required for submenus.");return u=u.filter(p=>"menuItem"in p.group&&p.group.menuItem===r.id),P.jsx(Gr,{...e,includedGroups:u})};return P.jsxs(P.Fragment,{children:[P.jsx(Wr,{onClick:a,...o,isSubMenuParent:!0}),P.jsx(pe.Menu,{anchorEl:t,open:!!t,onClose:l,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:c()},r.id)]})}const qp=(e,t)=>t.filter(o=>o.group===e).sort((o,i)=>(o.order||0)-(i.order||0));function Gr(e){const{menuDefinition:t,onClick:n,commandHandler:r,includedGroups:o}=e,{items:i,allowForLeadingIcons:a}=ie.useMemo(()=>{const p=o&&o.length>0?o:cs(t).filter(v=>!("menuItem"in v.group)),f=Object.values(p).sort((v,m)=>(v.group.order||0)-(m.group.order||0)),d=[];f.forEach(v=>{qp(v.id,t.items).forEach(m=>d.push({item:m,isLastItemInGroup:!1})),d.length>0&&(d[d.length-1].isLastItemInGroup=!0)}),d.length>0&&(d[d.length-1].isLastItemInGroup=!1);const b=d.some(v=>"iconPathBefore"in v.item&&v.item.iconPathBefore);return{items:d,allowForLeadingIcons:b}},[o,t]),l=({item:p,isLastItemInGroup:f})=>({className:"papi-menu-item",label:p.label,tooltip:p.tooltip,iconPathBefore:"iconPathBefore"in p?p.iconPathBefore:void 0,iconPathAfter:"iconPathAfter"in p?p.iconPathAfter:void 0,hasDivider:f,allowForLeadingIcons:a}),[c]=i;if(!c)return P.jsx("div",{});const u=c.item.group;return P.jsx("div",{role:"menu","aria-label":u,children:i.map((p,f)=>{const{item:d}=p,b=l(p);if("command"in d){const v=d.group+f;return P.jsx(Wr,{onClick:m=>{n==null||n(m),r(d)},...b},v)}return P.jsx(Hp,{parentMenuItem:d,parentItemProps:b,...e},u+d.id)})},u)}function Wp(e){const{menuDefinition:t,columnId:n}=e;let i=Object.entries(t.groups).map(([a,l])=>({id:a,group:l})).filter(a=>"column"in a.group);return n&&"columns"in t&&t.columns[n]&&(i=i.filter(a=>"column"in a.group&&a.group.column===n)),P.jsx(Gr,{...e,includedGroups:i})}function Gp({commandHandler:e,menuDefinition:t,id:n,metadata:r,onClick:o,className:i}){return P.jsxs(pe.Grid,{id:n,item:!0,xs:"auto",role:"menu","aria-label":n,className:`papi-menu-column ${i??""}`,children:[P.jsx("h3",{"aria-label":r.label,className:`papi-menu-column-header ${i??""}`,children:r.label}),P.jsx(pe.List,{id:n,dense:!0,className:i??"",children:P.jsx(Wp,{commandHandler:e,menuDefinition:t,columnId:n,onClick:o})})]})}function us({commandHandler:e,className:t,multiColumnMenu:n,id:r}){const{columns:o}=n,i=ie.useMemo(()=>{const a=new Map;return Object.getOwnPropertyNames(o).forEach(l=>{if(l==="isExtensible")return;const c=l,u=o[c];typeof u=="object"&&typeof u.order=="number"&&!Number.isNaN(u.order)?a.set(u.order,{id:c,metadata:u}):console.warn(`Property ${l} (${typeof u}) on menu ${r} is not a valid column and is being ignored. This might indicate data corruption`)}),Array.from(a.values()).sort((l,c)=>(l.metadata.order||0)-(c.metadata.order||0))},[o,r]);return P.jsx(pe.Grid,{container:!0,spacing:0,className:`papi-multi-column-menu ${t??""}`,columns:i.length,role:"menu","aria-label":"GridMenu",id:r,children:i.map((a,l)=>P.jsx(Gp,{commandHandler:e,menuDefinition:n,...a,className:t},l))})}const ps=T.createContext({});process.env.NODE_ENV!=="production"&&(ps.displayName="ListContext");const Kp=ps;function Xp(e){return He("MuiList",e)}rt("MuiList",["root","padding","dense","subheader"]);const Yp=["children","className","component","dense","disablePadding","subheader"],Jp=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ze({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Xp,t)},Zp=xe("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})=>w({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ds=T.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=r,p=ue(r,Yp),f=T.useMemo(()=>({dense:l}),[l]),d=w({},r,{component:a,dense:l,disablePadding:c}),b=Jp(d);return P.jsx(Kp.Provider,{value:f,children:P.jsxs(Zp,w({as:a,className:Ne(b.root,i),ref:n,ownerState:d},p,{children:[u,o]}))})});process.env.NODE_ENV!=="production"&&(ds.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Qp=ds,ed=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ur(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function oi(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fs(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 qt(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!fs(l,i)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const hs=T.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:p,variant:f="selectedMenu"}=t,d=ue(t,ed),b=T.useRef(null),v=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ht(()=>{o&&b.current.focus()},[o]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,x)=>{const g=!b.current.style.width;if(y.clientHeight{const x=b.current,g=y.key,k=ye(x).activeElement;if(g==="ArrowDown")y.preventDefault(),qt(x,k,u,c,ur);else if(g==="ArrowUp")y.preventDefault(),qt(x,k,u,c,oi);else if(g==="Home")y.preventDefault(),qt(x,null,u,c,ur);else if(g==="End")y.preventDefault(),qt(x,null,u,c,oi);else if(g.length===1){const S=v.current,j=g.toLowerCase(),A=performance.now();S.keys.length>0&&(A-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&j!==S.keys[0]&&(S.repeating=!1)),S.lastTime=A,S.keys.push(j);const I=k&&!S.repeating&&fs(k,S);S.previousKeyMatched&&(I||qt(x,k,!1,c,ur,S))?y.preventDefault():S.previousKeyMatched=!1}p&&p(y)},h=Ae(b,n);let E=-1;T.Children.forEach(a,(y,x)=>{if(!T.isValidElement(y)){E===x&&(E+=1,E>=a.length&&(E=-1));return}process.env.NODE_ENV!=="production"&&Cn.isFragment(y)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` -`)),y.props.disabled||(f==="selectedMenu"&&y.props.selected||E===-1)&&(E=x),E===x&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(E+=1,E>=a.length&&(E=-1))});const $=T.Children.map(a,(y,x)=>{if(x===E){const g={};return i&&(g.autoFocus=!0),y.props.tabIndex===void 0&&f==="selectedMenu"&&(g.tabIndex=0),T.cloneElement(y,g)}return y});return P.jsx(Qp,w({role:"menu",ref:h,className:l,onKeyDown:m,tabIndex:o?0:-1},d,{children:$}))});process.env.NODE_ENV!=="production"&&(hs.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});const td=hs,nd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],rd={entering:{opacity:1},entered:{opacity:1}},ms=T.forwardRef(function(t,n){const r=hn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:p,onEntered:f,onEntering:d,onExit:b,onExited:v,onExiting:m,style:h,timeout:E=o,TransitionComponent:$=ts}=t,y=ue(t,nd),x=T.useRef(null),g=Ae(x,l.ref,n),k=L=>_=>{if(L){const R=x.current;_===void 0?L(R):L(R,_)}},S=k(d),j=k((L,_)=>{ns(L);const R=An({style:h,timeout:E,easing:c},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",R),L.style.transition=r.transitions.create("opacity",R),p&&p(L,_)}),A=k(f),I=k(m),B=k(L=>{const _=An({style:h,timeout:E,easing:c},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",_),L.style.transition=r.transitions.create("opacity",_),b&&b(L)}),z=k(v),W=L=>{i&&i(x.current,L)};return P.jsx($,w({appear:a,in:u,nodeRef:x,onEnter:j,onEntered:A,onEntering:S,onExit:B,onExited:z,onExiting:I,addEndListener:W,timeout:E},y,{children:(L,_)=>T.cloneElement(l,w({style:w({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},rd[L],h,l.props.style),ref:g},_))}))});process.env.NODE_ENV!=="production"&&(ms.propTypes={addEndListener:s.func,appear:s.bool,children:ln.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const od=ms;function id(e){return He("MuiBackdrop",e)}rt("MuiBackdrop",["root","invisible"]);const sd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ad=e=>{const{classes:t,invisible:n}=e;return Ze({root:["root",n&&"invisible"]},id,t)},ld=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>w({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"})),gs=T.forwardRef(function(t,n){var r,o,i;const a=Qe({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:p={},componentsProps:f={},invisible:d=!1,open:b,slotProps:v={},slots:m={},TransitionComponent:h=od,transitionDuration:E}=a,$=ue(a,sd),y=w({},a,{component:u,invisible:d}),x=ad(y),g=(r=v.root)!=null?r:f.root;return P.jsx(h,w({in:b,timeout:E},$,{children:P.jsx(ld,w({"aria-hidden":!0},g,{as:(o=(i=m.root)!=null?i:p.Root)!=null?o:u,className:Ne(x.root,c,g==null?void 0:g.className),ownerState:w({},y,g==null?void 0:g.ownerState),classes:x,ref:n,children:l}))}))});process.env.NODE_ENV!=="production"&&(gs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const cd=gs;function ud(e){return He("MuiModal",e)}rt("MuiModal",["root","hidden","backdrop"]);const pd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],dd=e=>{const{open:t,exited:n,classes:r}=e;return Ze({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ud,r)},fd=xe("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})=>w({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),hd=xe(cd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),bs=T.forwardRef(function(t,n){var r,o,i,a,l,c;const u=Qe({name:"MuiModal",props:t}),{BackdropComponent:p=hd,BackdropProps:f,className:d,closeAfterTransition:b=!1,children:v,container:m,component:h,components:E={},componentsProps:$={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:g=!1,disablePortal:k=!1,disableRestoreFocus:S=!1,disableScrollLock:j=!1,hideBackdrop:A=!1,keepMounted:I=!1,onBackdropClick:B,open:z,slotProps:W,slots:L}=u,_=ue(u,pd),R=w({},u,{closeAfterTransition:b,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:g,disablePortal:k,disableRestoreFocus:S,disableScrollLock:j,hideBackdrop:A,keepMounted:I}),{getRootProps:D,getBackdropProps:Q,getTransitionProps:Z,portalRef:O,isTopModal:M,exited:V,hasTransition:K}=rl(w({},R,{rootRef:n})),F=w({},R,{exited:V}),U=dd(F),q={};if(v.props.tabIndex===void 0&&(q.tabIndex="-1"),K){const{onEnter:J,onExited:C}=Z();q.onEnter=J,q.onExited=C}const G=(r=(o=L==null?void 0:L.root)!=null?o:E.Root)!=null?r:fd,H=(i=(a=L==null?void 0:L.backdrop)!=null?a:E.Backdrop)!=null?i:p,X=(l=W==null?void 0:W.root)!=null?l:$.root,Y=(c=W==null?void 0:W.backdrop)!=null?c:$.backdrop,ne=mt({elementType:G,externalSlotProps:X,externalForwardedProps:_,getSlotProps:D,additionalProps:{ref:n,as:h},ownerState:F,className:Ne(d,X==null?void 0:X.className,U==null?void 0:U.root,!F.open&&F.exited&&(U==null?void 0:U.hidden))}),N=mt({elementType:H,externalSlotProps:Y,additionalProps:f,getSlotProps:J=>Q(w({},J,{onClick:C=>{B&&B(C),J!=null&&J.onClick&&J.onClick(C)}})),className:Ne(Y==null?void 0:Y.className,f==null?void 0:f.className,U==null?void 0:U.backdrop),ownerState:F});return!I&&!z&&(!K||V)?null:P.jsx(nn,{ref:O,container:m,disablePortal:k,children:P.jsxs(G,w({},ne,{children:[!A&&p?P.jsx(H,w({},N)):null,P.jsx(Nn,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:M,open:z,children:T.cloneElement(v,q)})]}))})});process.env.NODE_ENV!=="production"&&(bs.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:ln.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Xe,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const md=bs;function gd(e){return He("MuiPaper",e)}rt("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 bd=["className","component","elevation","square","variant"],vd=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ze(i,gd,o)},yd=xe("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 w({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"&&w({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${In("#fff",Qo(t.elevation))}, ${In("#fff",Qo(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),vs=T.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation"}=r,u=ue(r,bd),p=w({},r,{component:i,elevation:a,square:l,variant:c}),f=vd(p);return process.env.NODE_ENV!=="production"&&hn().shadows[a]===void 0&&console.error([`MUI: The elevation provided is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(` -`)),P.jsx(yd,w({as:i,ownerState:p,className:Ne(f.root,o),ref:n},u))});process.env.NODE_ENV!=="production"&&(vs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:At(Ci,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});const xd=vs;function Ed(e){return He("MuiPopover",e)}rt("MuiPopover",["root","paper"]);const Td=["onEntering"],wd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Od=["slotProps"];function ii(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function si(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ai(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function kn(e){return typeof e=="function"?e():e}const Pd=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Ed,t)},kd=xe(md,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ys=xe(xd,{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}),xs=T.forwardRef(function(t,n){var r,o,i;const a=Qe({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:f="anchorEl",children:d,className:b,container:v,elevation:m=8,marginThreshold:h=16,open:E,PaperProps:$={},slots:y,slotProps:x,transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:k=Pr,transitionDuration:S="auto",TransitionProps:{onEntering:j}={},disableScrollLock:A=!1}=a,I=ue(a.TransitionProps,Td),B=ue(a,wd),z=(r=x==null?void 0:x.paper)!=null?r:$,W=T.useRef(),L=Ae(W,z.ref),_=w({},a,{anchorOrigin:u,anchorReference:f,elevation:m,marginThreshold:h,externalPaperSlotProps:z,transformOrigin:g,TransitionComponent:k,transitionDuration:S,TransitionProps:I}),R=Pd(_),D=T.useCallback(()=>{if(f==="anchorPosition")return process.env.NODE_ENV!=="production"&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using .')),p;const J=kn(c),C=J&&J.nodeType===1?J:ye(W.current).body,re=C.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const be=C.getBoundingClientRect();process.env.NODE_ENV!=="test"&&be.top===0&&be.left===0&&be.right===0&&be.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` -`))}return{top:re.top+ii(re,u.vertical),left:re.left+si(re,u.horizontal)}},[c,u.horizontal,u.vertical,p,f]),Q=T.useCallback(J=>({vertical:ii(J,g.vertical),horizontal:si(J,g.horizontal)}),[g.horizontal,g.vertical]),Z=T.useCallback(J=>{const C={width:J.offsetWidth,height:J.offsetHeight},re=Q(C);if(f==="none")return{top:null,left:null,transformOrigin:ai(re)};const be=D();let Ee=be.top-re.vertical,me=be.left-re.horizontal;const st=Ee+C.height,Te=me+C.width,qe=Nt(kn(c)),ke=qe.innerHeight-h,We=qe.innerWidth-h;if(h!==null&&Eeke){const ve=st-ke;Ee-=ve,re.vertical+=ve}if(process.env.NODE_ENV!=="production"&&C.height>ke&&C.height&&ke&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${C.height-ke}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(` -`)),h!==null&&meWe){const ve=Te-We;me-=ve,re.horizontal+=ve}return{top:`${Math.round(Ee)}px`,left:`${Math.round(me)}px`,transformOrigin:ai(re)}},[c,f,D,Q,h]),[O,M]=T.useState(E),V=T.useCallback(()=>{const J=W.current;if(!J)return;const C=Z(J);C.top!==null&&(J.style.top=C.top),C.left!==null&&(J.style.left=C.left),J.style.transformOrigin=C.transformOrigin,M(!0)},[Z]);T.useEffect(()=>(A&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[c,A,V]);const K=(J,C)=>{j&&j(J,C),V()},F=()=>{M(!1)};T.useEffect(()=>{E&&V()}),T.useImperativeHandle(l,()=>E?{updatePosition:()=>{V()}}:null,[E,V]),T.useEffect(()=>{if(!E)return;const J=Ei(()=>{V()}),C=Nt(c);return C.addEventListener("resize",J),()=>{J.clear(),C.removeEventListener("resize",J)}},[c,E,V]);let U=S;S==="auto"&&!k.muiSupportAuto&&(U=void 0);const q=v||(c?ye(kn(c)).body:void 0),G=(o=y==null?void 0:y.root)!=null?o:kd,H=(i=y==null?void 0:y.paper)!=null?i:ys,X=mt({elementType:H,externalSlotProps:w({},z,{style:O?z.style:w({},z.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:_,className:Ne(R.paper,z==null?void 0:z.className)}),Y=mt({elementType:G,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:q,open:E},ownerState:_,className:Ne(R.root,b)}),{slotProps:ne}=Y,N=ue(Y,Od);return P.jsx(G,w({},N,!Mi(G)&&{slotProps:ne,disableScrollLock:A},{children:P.jsx(k,w({appear:!0,in:E,onEntering:K,onExited:F,timeout:U},I,{children:P.jsx(H,w({},X,{children:d}))}))}))});process.env.NODE_ENV!=="production"&&(xs.propTypes={action:Sr,anchorEl:At(s.oneOfType([Xe,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=kn(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +} });`:Rt(12,h?` (${h})`:"",JSON.stringify(g.main)));return Ko(g,"light",$,r),Ko(g,"dark",y,r),g.contrastText||(g.contrastText=f(g.main)),g},b={dark:ar,light:Go};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ke(w({common:w({},sn),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:p,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:u,name:"success"}),grey:ju,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},b[t]),o)}const Ju=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Zu(e){return Math.round(e*1e5)/1e5}const Xo={textTransform:"uppercase"},Yo='"Roboto", "Helvetica", "Arial", sans-serif';function Qu(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Yo,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:p,pxToRem:f}=n,d=ue(n,Ju);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,v=f||(E=>`${E/u*b}rem`),g=(E,$,y,x,m)=>w({fontFamily:r,fontWeight:E,fontSize:v($),lineHeight:y},r===Yo?{letterSpacing:`${Zu(x/$)}em`}:{},m,p),h={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(l,14,1.75,.4,Xo),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Xo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ke(w({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c},h),d,{clone:!1})}const ep=.2,tp=.14,np=.12;function de(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ep})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${np})`].join(",")}const rp=["none",de(0,2,1,-1,0,1,1,0,0,1,3,0),de(0,3,1,-2,0,2,2,0,0,1,5,0),de(0,3,3,-2,0,3,4,0,0,1,8,0),de(0,2,4,-1,0,4,5,0,0,1,10,0),de(0,3,5,-1,0,5,8,0,0,1,14,0),de(0,3,5,-1,0,6,10,0,0,1,18,0),de(0,4,5,-2,0,7,10,1,0,2,16,1),de(0,5,5,-3,0,8,10,1,0,3,14,2),de(0,5,6,-3,0,9,12,1,0,3,16,2),de(0,6,6,-3,0,10,14,1,0,4,18,3),de(0,6,7,-4,0,11,15,1,0,4,20,3),de(0,7,8,-4,0,12,17,2,0,5,22,4),de(0,7,8,-4,0,13,19,2,0,5,24,4),de(0,7,9,-4,0,14,21,2,0,5,26,4),de(0,8,9,-5,0,15,22,2,0,6,28,5),de(0,8,10,-5,0,16,24,2,0,6,30,5),de(0,8,11,-5,0,17,26,2,0,6,32,5),de(0,9,11,-5,0,18,28,2,0,7,34,6),de(0,9,12,-6,0,19,29,2,0,7,36,6),de(0,10,13,-6,0,20,31,3,0,8,38,7),de(0,10,13,-6,0,21,33,3,0,8,40,7),de(0,10,14,-6,0,22,35,3,0,8,42,7),de(0,11,14,-7,0,23,36,3,0,9,44,8),de(0,11,15,-7,0,24,38,3,0,9,46,8)],op=rp,ip=["duration","easing","delay"],sp={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)"},ap={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jo(e){return`${Math.round(e)}ms`}function lp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function cp(e){const t=w({},sp,e.easing),n=w({},ap,e.duration);return w({getAutoHeightDuration:lp,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=ue(i,ip);if(process.env.NODE_ENV!=="production"){const p=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` +`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:Jo(a)} ${l} ${typeof c=="string"?c:Jo(c)}`).join(",")}},e,{easing:t,duration:n})}const up={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},pp=up,dp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function fp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ue(e,dp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Rt(18));const l=Yu(r),c=Lr(e);let u=Ke(c,{mixins:_u(c.breakpoints,n),palette:l,shadows:op.slice(),typography:Qu(l,i),transitions:cp(o),zIndex:w({},pp)});if(u=Ke(u,a),u=t.reduce((p,f)=>Ke(p,f),u),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,b)=>{let v;for(v in d){const g=d[v];if(p.indexOf(v)!==-1&&Object.keys(g).length>0){if(process.env.NODE_ENV!=="production"){const h=He("",v);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${h}' syntax:`,JSON.stringify({root:{[`&.${h}`]:g}},null,2),"","https://mui.com/r/state-classes-guide"].join(` +`))}d[v]={}}}};Object.keys(u.components).forEach(d=>{const b=u.components[d].styleOverrides;b&&d.indexOf("Mui")===0&&f(b,d)})}return u.unstable_sxConfig=w({},Dr,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return Br({sx:f,theme:this})},u}const hp=fp(),Vr=hp,zr="$$material",Qi=e=>On(e)&&e!=="classes",mp=ku({themeId:zr,defaultTheme:Vr,rootShouldForwardProp:Qi}),xe=mp;function hn(){const e=Zi(Vr);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[zr]||e}function Qe({props:e,name:t}){return Cu({props:e,name:t,defaultTheme:Vr,themeId:zr})}function Tr(e,t){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Tr(e,t)}function gp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tr(e,t)}const Zo={disabled:!1};var bp=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const es=ie.createContext(null);var vp=function(t){return t.scrollTop},Yt="unmounted",ct="exited",ut="entering",kt="entered",wr="exiting",et=function(e){gp(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=ct,i.appearStatus=ut):c=kt:r.unmountOnExit||r.mountOnEnter?c=Yt:c=ct,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Yt?{status:ct}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ut&&a!==kt&&(i=ut):(a===ut||a===kt)&&(i=wr)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ut){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Gt.findDOMNode(this);a&&vp(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ct&&this.setState({status:Yt})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Gt.findDOMNode(this),l],u=c[0],p=c[1],f=this.getTimeouts(),d=l?f.appear:f.enter;if(!o&&!a||Zo.disabled){this.safeSetState({status:kt},function(){i.props.onEntered(u)});return}this.props.onEnter(u,p),this.safeSetState({status:ut},function(){i.props.onEntering(u,p),i.onTransitionEnd(d,function(){i.safeSetState({status:kt},function(){i.props.onEntered(u,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Gt.findDOMNode(this);if(!i||Zo.disabled){this.safeSetState({status:ct},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:wr},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ct},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Gt.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],p=c[1];this.props.addEndListener(u,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Yt)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=ue(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ie.createElement(es.Provider,{value:null},typeof a=="function"?a(o,l):ie.cloneElement(ie.Children.only(a),l))},t}(ie.Component);et.contextType=es;et.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=bp;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;ie.scrollTop;function An(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const yp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Or(e){return`scale(${e}, ${e**2})`}const xp={entering:{opacity:1,transform:Or(1)},entered:{opacity:1,transform:"none"}},lr=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ur=T.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:p,onExit:f,onExited:d,onExiting:b,style:v,timeout:g="auto",TransitionComponent:h=ts}=t,E=ue(t,yp),$=Kt(),y=T.useRef(),x=hn(),m=T.useRef(null),k=Ae(m,i.ref,n),S=_=>R=>{if(_){const D=m.current;R===void 0?_(D):_(D,R)}},j=S(p),A=S((_,R)=>{ns(_);const{duration:D,delay:Q,easing:Z}=An({style:v,timeout:g,easing:a},{mode:"enter"});let O;g==="auto"?(O=x.transitions.getAutoHeightDuration(_.clientHeight),y.current=O):O=D,_.style.transition=[x.transitions.create("opacity",{duration:O,delay:Q}),x.transitions.create("transform",{duration:lr?O:O*.666,delay:Q,easing:Z})].join(","),c&&c(_,R)}),I=S(u),B=S(b),z=S(_=>{const{duration:R,delay:D,easing:Q}=An({style:v,timeout:g,easing:a},{mode:"exit"});let Z;g==="auto"?(Z=x.transitions.getAutoHeightDuration(_.clientHeight),y.current=Z):Z=R,_.style.transition=[x.transitions.create("opacity",{duration:Z,delay:D}),x.transitions.create("transform",{duration:lr?Z:Z*.666,delay:lr?D:D||Z*.333,easing:Q})].join(","),_.style.opacity=0,_.style.transform=Or(.75),f&&f(_)}),W=S(d),L=_=>{g==="auto"&&$.start(y.current||0,_),r&&r(m.current,_)};return P.jsx(h,w({appear:o,in:l,nodeRef:m,onEnter:A,onEntered:I,onEntering:j,onExit:z,onExited:W,onExiting:B,addEndListener:L,timeout:g==="auto"?null:g},E,{children:(_,R)=>T.cloneElement(i,w({style:w({opacity:0,transform:Or(.75),visibility:_==="exited"&&!l?"hidden":void 0},xp[_],v,i.props.style),ref:k},R))}))});process.env.NODE_ENV!=="production"&&(Ur.propTypes={addEndListener:s.func,appear:s.bool,children:ln.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Ur.muiSupportAuto=!0;const Pr=Ur,Ep=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Qo=Ep,Tp=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],wp=xe(Gi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rs=T.forwardRef(function(t,n){var r;const o=Ji(),i=Qe({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:u,container:p,disablePortal:f,keepMounted:d,modifiers:b,open:v,placement:g,popperOptions:h,popperRef:E,transition:$,slots:y,slotProps:x}=i,m=ue(i,Tp),k=(r=y==null?void 0:y.root)!=null?r:c==null?void 0:c.Root,S=w({anchorEl:a,container:p,disablePortal:f,keepMounted:d,modifiers:b,open:v,placement:g,popperOptions:h,popperRef:E,transition:$},m);return P.jsx(wp,w({as:l,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:x??u},S,{ref:n}))});process.env.NODE_ENV!=="production"&&(rs.propTypes={anchorEl:s.oneOfType([Xe,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Xe,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Sr,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});const os=rs;function Op(e){return He("MuiTooltip",e)}const Pp=rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nt=Pp,kp=["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 Sp(e){return Math.round(e*1e5)/1e5}const Cp=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ze(i.split("-")[0])}`],arrow:["arrow"]};return Ze(a,Op,t)},Rp=xe(os,{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})=>w({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${nt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${nt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${nt.arrow}`]:w({},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"] .${nt.arrow}`]:w({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Np=xe("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${ze(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>w({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:In(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:`${Sp(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${nt.popper}[data-popper-placement*="left"] &`]:w({transformOrigin:"right center"},t.isRtl?w({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):w({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${nt.popper}[data-popper-placement*="right"] &`]:w({transformOrigin:"left center"},t.isRtl?w({marginRight:"14px"},t.touch&&{marginRight:"24px"}):w({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${nt.popper}[data-popper-placement*="top"] &`]:w({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${nt.popper}[data-popper-placement*="bottom"] &`]:w({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),$p=xe("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:In(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let En=!1;const ei=new cn;let Ht={x:0,y:0};function Tn(e,t){return n=>{t&&t(n),e(n)}}const is=T.forwardRef(function(t,n){var r,o,i,a,l,c,u,p,f,d,b,v,g,h,E,$,y,x,m;const k=Qe({props:t,name:"MuiTooltip"}),{arrow:S=!1,children:j,components:A={},componentsProps:I={},describeChild:B=!1,disableFocusListener:z=!1,disableHoverListener:W=!1,disableInteractive:L=!1,disableTouchListener:_=!1,enterDelay:R=100,enterNextDelay:D=0,enterTouchDelay:Q=700,followCursor:Z=!1,id:O,leaveDelay:M=0,leaveTouchDelay:V=1500,onClose:K,onOpen:F,open:U,placement:q="bottom",PopperComponent:G,PopperProps:H={},slotProps:X={},slots:Y={},title:ne,TransitionComponent:N=Pr,TransitionProps:J}=k,C=ue(k,kp),re=T.isValidElement(j)?j:P.jsx("span",{children:j}),be=hn(),Ee=be.direction==="rtl",[me,st]=T.useState(),[Te,qe]=T.useState(null),ke=T.useRef(!1),We=L||Z,ve=Kt(),yt=Kt(),at=Kt(),Dt=Kt(),[mn,Jr]=wi({controlled:U,default:!1,name:"Tooltip",state:"open"});let Ge=mn;if(process.env.NODE_ENV!=="production"){const{current:ee}=T.useRef(U!==void 0);T.useEffect(()=>{me&&me.disabled&&!ee&&ne!==""&&me.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(` +`))},[ne,me,ee])}const Kn=Ti(O),Bt=T.useRef(),gn=tn(()=>{Bt.current!==void 0&&(document.body.style.WebkitUserSelect=Bt.current,Bt.current=void 0),Dt.clear()});T.useEffect(()=>gn,[gn]);const Zr=ee=>{ei.clear(),En=!0,Jr(!0),F&&!Ge&&F(ee)},bn=tn(ee=>{ei.start(800+M,()=>{En=!1}),Jr(!1),K&&Ge&&K(ee),ve.start(be.transitions.duration.shortest,()=>{ke.current=!1})}),Xn=ee=>{ke.current&&ee.type!=="touchstart"||(me&&me.removeAttribute("title"),yt.clear(),at.clear(),R||En&&D?yt.start(En?D:R,()=>{Zr(ee)}):Zr(ee))},Qr=ee=>{yt.clear(),at.start(M,()=>{bn(ee)})},{isFocusVisibleRef:eo,onBlur:Ns,onFocus:$s,ref:Ms}=Oi(),[,to]=T.useState(!1),no=ee=>{Ns(ee),eo.current===!1&&(to(!1),Qr(ee))},ro=ee=>{me||st(ee.currentTarget),$s(ee),eo.current===!0&&(to(!0),Xn(ee))},oo=ee=>{ke.current=!0;const Se=re.props;Se.onTouchStart&&Se.onTouchStart(ee)},io=Xn,so=Qr,_s=ee=>{oo(ee),at.clear(),ve.clear(),gn(),Bt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Dt.start(Q,()=>{document.body.style.WebkitUserSelect=Bt.current,Xn(ee)})},Is=ee=>{re.props.onTouchEnd&&re.props.onTouchEnd(ee),gn(),at.start(V,()=>{bn(ee)})};T.useEffect(()=>{if(!Ge)return;function ee(Se){(Se.key==="Escape"||Se.key==="Esc")&&bn(Se)}return document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}},[bn,Ge]);const As=Ae(re.ref,Ms,st,n);!ne&&ne!==0&&(Ge=!1);const Yn=T.useRef(),js=ee=>{const Se=re.props;Se.onMouseMove&&Se.onMouseMove(ee),Ht={x:ee.clientX,y:ee.clientY},Yn.current&&Yn.current.update()},Lt={},Jn=typeof ne=="string";B?(Lt.title=!Ge&&Jn&&!W?ne:null,Lt["aria-describedby"]=Ge?Kn:null):(Lt["aria-label"]=Jn?ne:null,Lt["aria-labelledby"]=Ge&&!Jn?Kn:null);const Me=w({},Lt,C,re.props,{className:Ne(C.className,re.props.className),onTouchStart:oo,ref:As},Z?{onMouseMove:js}:{});process.env.NODE_ENV!=="production"&&(Me["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{me&&!me.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(` +`))},[me]));const Ft={};_||(Me.onTouchStart=_s,Me.onTouchEnd=Is),W||(Me.onMouseOver=Tn(io,Me.onMouseOver),Me.onMouseLeave=Tn(so,Me.onMouseLeave),We||(Ft.onMouseOver=io,Ft.onMouseLeave=so)),z||(Me.onFocus=Tn(ro,Me.onFocus),Me.onBlur=Tn(no,Me.onBlur),We||(Ft.onFocus=ro,Ft.onBlur=no)),process.env.NODE_ENV!=="production"&&re.props.title&&console.error(["MUI: You have provided a `title` prop to the child of .",`Remove this title prop \`${re.props.title}\` or the Tooltip component.`].join(` +`));const Ds=T.useMemo(()=>{var ee;let Se=[{name:"arrow",enabled:!!Te,options:{element:Te,padding:4}}];return(ee=H.popperOptions)!=null&&ee.modifiers&&(Se=Se.concat(H.popperOptions.modifiers)),w({},H.popperOptions,{modifiers:Se})},[Te,H]),Vt=w({},k,{isRtl:Ee,arrow:S,disableInteractive:We,placement:q,PopperComponentProp:G,touch:ke.current}),Zn=Cp(Vt),ao=(r=(o=Y.popper)!=null?o:A.Popper)!=null?r:Rp,lo=(i=(a=(l=Y.transition)!=null?l:A.Transition)!=null?a:N)!=null?i:Pr,co=(c=(u=Y.tooltip)!=null?u:A.Tooltip)!=null?c:Np,uo=(p=(f=Y.arrow)!=null?f:A.Arrow)!=null?p:$p,Bs=Xt(ao,w({},H,(d=X.popper)!=null?d:I.popper,{className:Ne(Zn.popper,H==null?void 0:H.className,(b=(v=X.popper)!=null?v:I.popper)==null?void 0:b.className)}),Vt),Ls=Xt(lo,w({},J,(g=X.transition)!=null?g:I.transition),Vt),Fs=Xt(co,w({},(h=X.tooltip)!=null?h:I.tooltip,{className:Ne(Zn.tooltip,(E=($=X.tooltip)!=null?$:I.tooltip)==null?void 0:E.className)}),Vt),Vs=Xt(uo,w({},(y=X.arrow)!=null?y:I.arrow,{className:Ne(Zn.arrow,(x=(m=X.arrow)!=null?m:I.arrow)==null?void 0:x.className)}),Vt);return P.jsxs(T.Fragment,{children:[T.cloneElement(re,Me),P.jsx(ao,w({as:G??os,placement:q,anchorEl:Z?{getBoundingClientRect:()=>({top:Ht.y,left:Ht.x,right:Ht.x,bottom:Ht.y,width:0,height:0})}:me,popperRef:Yn,open:me?Ge:!1,id:Kn,transition:!0},Ft,Bs,{popperOptions:Ds,children:({TransitionProps:ee})=>P.jsx(lo,w({timeout:be.transitions.duration.shorter},ee,Ls,{children:P.jsxs(co,w({},Fs,{children:[ne,S?P.jsx(uo,w({},Vs,{ref:qe})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(is.propTypes={arrow:s.bool,children:ln.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});const Mp=is;var Hr={},ss={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})(ss);var _p=ss.exports,cr={};function Ip(e){return He("MuiSvgIcon",e)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ap=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],jp=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ze(t)}`,`fontSize${ze(n)}`]};return Ze(o,Ip,r)},Dp=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ze(n.color)}`],t[`fontSize${ze(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,l,c,u,p,f,d,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(p=u.pxToRem)==null?void 0:p.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),qr=T.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:f,viewBox:d="0 0 24 24"}=r,b=ue(r,Ap),v=T.isValidElement(o)&&o.type==="svg",g=w({},r,{color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:d,hasSvgAsChild:v}),h={};p||(h.viewBox=d);const E=jp(g);return P.jsxs(Dp,w({as:l,className:Ne(E.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},h,b,v&&o.props,{ownerState:g,children:[v?o.props.children:o,f?P.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(qr.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});qr.muiName="SvgIcon";const ti=qr;function as(e,t){function n(r,o){return P.jsx(ti,w({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ti.muiName,T.memo(T.forwardRef(n))}const Bp={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(` +`)),Ni.configure(e)}},Lp=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ze,createChainedFunction:br,createSvgIcon:as,debounce:Ei,deprecatedPropType:da,isMuiElement:fa,ownerDocument:ye,ownerWindow:Nt,requirePropFactory:ha,setRef:Rn,unstable_ClassNameGenerator:Bp,unstable_useEnhancedEffect:ht,unstable_useId:Ti,unsupportedProp:ba,useControlled:wi,useEventCallback:tn,useForkRef:Ae,useIsFocusVisible:Oi},Symbol.toStringTag,{value:"Module"})),Fp=qs(Lp);var ni;function Vp(){return ni||(ni=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Fp}(cr)),cr}var zp=_p;Object.defineProperty(Hr,"__esModule",{value:!0});var ls=Hr.default=void 0,Up=zp(Vp()),Hp=P;ls=Hr.default=(0,Up.default)((0,Hp.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function ri(e,t,n){return e?P.jsx(pe.ListItemIcon,{className:`papi-menu-icon-${n?"leading":"trailing"}`,children:P.jsx("img",{src:e,alt:`${n?"Leading":"Trailing"} icon for ${t}`})}):void 0}function Wr(e){const{onClick:t,label:n,tooltip:r,allowForLeadingIcons:o=!0,iconPathBefore:i=void 0,iconPathAfter:a=void 0,hasAutoFocus:l=!1,className:c,isDisabled:u=!1,isDense:p=!0,isSubMenuParent:f=!1,hasDisabledGutters:d=!1,hasDivider:b=!1,focusVisibleClassName:v,id:g,children:h}=e,E=P.jsx(pe.MenuItem,{sx:{lineHeight:.8},autoFocus:l,className:c,disabled:u,dense:p,disableGutters:d,divider:b,focusVisibleClassName:v,onClick:t,id:g,children:n?P.jsxs(P.Fragment,{children:[ri(i,n,!0),P.jsx(pe.ListItemText,{primary:n,inset:!i&&o}),f?P.jsx(pe.ListItemIcon,{className:"papi-menu-icon-trailing",children:P.jsx(ls,{})}):ri(a,n,!1)]}):h});return r?P.jsx(Mp,{title:r,placement:"right",children:P.jsx("div",{children:E})}):E}function cs(e){return Object.entries(e.groups).map(([n,r])=>({id:n,group:r}))}function qp(e){const[t,n]=ie.useState(void 0),{parentMenuItem:r,parentItemProps:o,menuDefinition:i}=e,a=u=>{n(u.currentTarget)},l=()=>{n(void 0)},c=()=>{let u=cs(i).filter(p=>"menuItem"in p.group);if(!(r!=null&&r.id))throw new Error("A valid parent menu item is required for submenus.");return u=u.filter(p=>"menuItem"in p.group&&p.group.menuItem===r.id),P.jsx(Gr,{...e,includedGroups:u})};return P.jsxs(P.Fragment,{children:[P.jsx(Wr,{onClick:a,...o,isSubMenuParent:!0}),P.jsx(pe.Menu,{anchorEl:t,open:!!t,onClose:l,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:c()},r.id)]})}const Wp=(e,t)=>t.filter(o=>o.group===e).sort((o,i)=>(o.order||0)-(i.order||0));function Gr(e){const{menuDefinition:t,onClick:n,commandHandler:r,includedGroups:o}=e,{items:i,allowForLeadingIcons:a}=ie.useMemo(()=>{const p=o&&o.length>0?o:cs(t).filter(v=>!("menuItem"in v.group)),f=Object.values(p).sort((v,g)=>(v.group.order||0)-(g.group.order||0)),d=[];f.forEach(v=>{Wp(v.id,t.items).forEach(g=>d.push({item:g,isLastItemInGroup:!1})),d.length>0&&(d[d.length-1].isLastItemInGroup=!0)}),d.length>0&&(d[d.length-1].isLastItemInGroup=!1);const b=d.some(v=>"iconPathBefore"in v.item&&v.item.iconPathBefore);return{items:d,allowForLeadingIcons:b}},[o,t]),l=({item:p,isLastItemInGroup:f})=>({className:"papi-menu-item",label:p.label,tooltip:p.tooltip,iconPathBefore:"iconPathBefore"in p?p.iconPathBefore:void 0,iconPathAfter:"iconPathAfter"in p?p.iconPathAfter:void 0,hasDivider:f,allowForLeadingIcons:a}),[c]=i;if(!c)return P.jsx("div",{});const u=c.item.group;return P.jsx("div",{role:"menu","aria-label":u,children:i.map((p,f)=>{const{item:d}=p,b=l(p);if("command"in d){const v=d.group+f;return P.jsx(Wr,{onClick:g=>{n==null||n(g),r(d)},...b},v)}return P.jsx(qp,{parentMenuItem:d,parentItemProps:b,...e},u+d.id)})},u)}function Gp(e){const{menuDefinition:t,columnId:n}=e;let i=Object.entries(t.groups).map(([a,l])=>({id:a,group:l})).filter(a=>"column"in a.group);return n&&"columns"in t&&t.columns[n]&&(i=i.filter(a=>"column"in a.group&&a.group.column===n)),P.jsx(Gr,{...e,includedGroups:i})}function Kp({commandHandler:e,menuDefinition:t,id:n,metadata:r,onClick:o,className:i}){return P.jsxs(pe.Grid,{id:n,item:!0,xs:"auto",role:"menu","aria-label":n,className:`papi-menu-column ${i??""}`,children:[P.jsx("h3",{"aria-label":r.label,className:`papi-menu-column-header ${i??""}`,children:r.label}),P.jsx(pe.List,{id:n,dense:!0,className:i??"",children:P.jsx(Gp,{commandHandler:e,menuDefinition:t,columnId:n,onClick:o})})]})}function us({commandHandler:e,className:t,multiColumnMenu:n,id:r}){const{columns:o}=n,i=ie.useMemo(()=>{const a=new Map;return Object.getOwnPropertyNames(o).forEach(l=>{if(l==="isExtensible")return;const c=l,u=o[c];typeof u=="object"&&typeof u.order=="number"&&!Number.isNaN(u.order)?a.set(u.order,{id:c,metadata:u}):console.warn(`Property ${l} (${typeof u}) on menu ${r} is not a valid column and is being ignored. This might indicate data corruption`)}),Array.from(a.values()).sort((l,c)=>(l.metadata.order||0)-(c.metadata.order||0))},[o,r]);return P.jsx(pe.Grid,{container:!0,spacing:0,className:`papi-multi-column-menu ${t??""}`,columns:i.length,role:"menu","aria-label":"GridMenu",id:r,children:i.map((a,l)=>P.jsx(Kp,{commandHandler:e,menuDefinition:n,...a,className:t},l))})}const ps=T.createContext({});process.env.NODE_ENV!=="production"&&(ps.displayName="ListContext");const Xp=ps;function Yp(e){return He("MuiList",e)}rt("MuiList",["root","padding","dense","subheader"]);const Jp=["children","className","component","dense","disablePadding","subheader"],Zp=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ze({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Yp,t)},Qp=xe("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})=>w({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ds=T.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=r,p=ue(r,Jp),f=T.useMemo(()=>({dense:l}),[l]),d=w({},r,{component:a,dense:l,disablePadding:c}),b=Zp(d);return P.jsx(Xp.Provider,{value:f,children:P.jsxs(Qp,w({as:a,className:Ne(b.root,i),ref:n,ownerState:d},p,{children:[u,o]}))})});process.env.NODE_ENV!=="production"&&(ds.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const ed=ds,td=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ur(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function oi(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fs(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 qt(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!fs(l,i)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const hs=T.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:p,variant:f="selectedMenu"}=t,d=ue(t,td),b=T.useRef(null),v=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ht(()=>{o&&b.current.focus()},[o]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,x)=>{const m=!b.current.style.width;if(y.clientHeight{const x=b.current,m=y.key,k=ye(x).activeElement;if(m==="ArrowDown")y.preventDefault(),qt(x,k,u,c,ur);else if(m==="ArrowUp")y.preventDefault(),qt(x,k,u,c,oi);else if(m==="Home")y.preventDefault(),qt(x,null,u,c,ur);else if(m==="End")y.preventDefault(),qt(x,null,u,c,oi);else if(m.length===1){const S=v.current,j=m.toLowerCase(),A=performance.now();S.keys.length>0&&(A-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&j!==S.keys[0]&&(S.repeating=!1)),S.lastTime=A,S.keys.push(j);const I=k&&!S.repeating&&fs(k,S);S.previousKeyMatched&&(I||qt(x,k,!1,c,ur,S))?y.preventDefault():S.previousKeyMatched=!1}p&&p(y)},h=Ae(b,n);let E=-1;T.Children.forEach(a,(y,x)=>{if(!T.isValidElement(y)){E===x&&(E+=1,E>=a.length&&(E=-1));return}process.env.NODE_ENV!=="production"&&Cn.isFragment(y)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` +`)),y.props.disabled||(f==="selectedMenu"&&y.props.selected||E===-1)&&(E=x),E===x&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(E+=1,E>=a.length&&(E=-1))});const $=T.Children.map(a,(y,x)=>{if(x===E){const m={};return i&&(m.autoFocus=!0),y.props.tabIndex===void 0&&f==="selectedMenu"&&(m.tabIndex=0),T.cloneElement(y,m)}return y});return P.jsx(ed,w({role:"menu",ref:h,className:l,onKeyDown:g,tabIndex:o?0:-1},d,{children:$}))});process.env.NODE_ENV!=="production"&&(hs.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});const nd=hs,rd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],od={entering:{opacity:1},entered:{opacity:1}},ms=T.forwardRef(function(t,n){const r=hn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:p,onEntered:f,onEntering:d,onExit:b,onExited:v,onExiting:g,style:h,timeout:E=o,TransitionComponent:$=ts}=t,y=ue(t,rd),x=T.useRef(null),m=Ae(x,l.ref,n),k=L=>_=>{if(L){const R=x.current;_===void 0?L(R):L(R,_)}},S=k(d),j=k((L,_)=>{ns(L);const R=An({style:h,timeout:E,easing:c},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",R),L.style.transition=r.transitions.create("opacity",R),p&&p(L,_)}),A=k(f),I=k(g),B=k(L=>{const _=An({style:h,timeout:E,easing:c},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",_),L.style.transition=r.transitions.create("opacity",_),b&&b(L)}),z=k(v),W=L=>{i&&i(x.current,L)};return P.jsx($,w({appear:a,in:u,nodeRef:x,onEnter:j,onEntered:A,onEntering:S,onExit:B,onExited:z,onExiting:I,addEndListener:W,timeout:E},y,{children:(L,_)=>T.cloneElement(l,w({style:w({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},od[L],h,l.props.style),ref:m},_))}))});process.env.NODE_ENV!=="production"&&(ms.propTypes={addEndListener:s.func,appear:s.bool,children:ln.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const id=ms;function sd(e){return He("MuiBackdrop",e)}rt("MuiBackdrop",["root","invisible"]);const ad=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ld=e=>{const{classes:t,invisible:n}=e;return Ze({root:["root",n&&"invisible"]},sd,t)},cd=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>w({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"})),gs=T.forwardRef(function(t,n){var r,o,i;const a=Qe({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:p={},componentsProps:f={},invisible:d=!1,open:b,slotProps:v={},slots:g={},TransitionComponent:h=id,transitionDuration:E}=a,$=ue(a,ad),y=w({},a,{component:u,invisible:d}),x=ld(y),m=(r=v.root)!=null?r:f.root;return P.jsx(h,w({in:b,timeout:E},$,{children:P.jsx(cd,w({"aria-hidden":!0},m,{as:(o=(i=g.root)!=null?i:p.Root)!=null?o:u,className:Ne(x.root,c,m==null?void 0:m.className),ownerState:w({},y,m==null?void 0:m.ownerState),classes:x,ref:n,children:l}))}))});process.env.NODE_ENV!=="production"&&(gs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const ud=gs;function pd(e){return He("MuiModal",e)}rt("MuiModal",["root","hidden","backdrop"]);const dd=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],fd=e=>{const{open:t,exited:n,classes:r}=e;return Ze({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pd,r)},hd=xe("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})=>w({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),md=xe(ud,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),bs=T.forwardRef(function(t,n){var r,o,i,a,l,c;const u=Qe({name:"MuiModal",props:t}),{BackdropComponent:p=md,BackdropProps:f,className:d,closeAfterTransition:b=!1,children:v,container:g,component:h,components:E={},componentsProps:$={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:m=!1,disablePortal:k=!1,disableRestoreFocus:S=!1,disableScrollLock:j=!1,hideBackdrop:A=!1,keepMounted:I=!1,onBackdropClick:B,open:z,slotProps:W,slots:L}=u,_=ue(u,dd),R=w({},u,{closeAfterTransition:b,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:m,disablePortal:k,disableRestoreFocus:S,disableScrollLock:j,hideBackdrop:A,keepMounted:I}),{getRootProps:D,getBackdropProps:Q,getTransitionProps:Z,portalRef:O,isTopModal:M,exited:V,hasTransition:K}=ol(w({},R,{rootRef:n})),F=w({},R,{exited:V}),U=fd(F),q={};if(v.props.tabIndex===void 0&&(q.tabIndex="-1"),K){const{onEnter:J,onExited:C}=Z();q.onEnter=J,q.onExited=C}const G=(r=(o=L==null?void 0:L.root)!=null?o:E.Root)!=null?r:hd,H=(i=(a=L==null?void 0:L.backdrop)!=null?a:E.Backdrop)!=null?i:p,X=(l=W==null?void 0:W.root)!=null?l:$.root,Y=(c=W==null?void 0:W.backdrop)!=null?c:$.backdrop,ne=mt({elementType:G,externalSlotProps:X,externalForwardedProps:_,getSlotProps:D,additionalProps:{ref:n,as:h},ownerState:F,className:Ne(d,X==null?void 0:X.className,U==null?void 0:U.root,!F.open&&F.exited&&(U==null?void 0:U.hidden))}),N=mt({elementType:H,externalSlotProps:Y,additionalProps:f,getSlotProps:J=>Q(w({},J,{onClick:C=>{B&&B(C),J!=null&&J.onClick&&J.onClick(C)}})),className:Ne(Y==null?void 0:Y.className,f==null?void 0:f.className,U==null?void 0:U.backdrop),ownerState:F});return!I&&!z&&(!K||V)?null:P.jsx(nn,{ref:O,container:g,disablePortal:k,children:P.jsxs(G,w({},ne,{children:[!A&&p?P.jsx(H,w({},N)):null,P.jsx(Nn,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:M,open:z,children:T.cloneElement(v,q)})]}))})});process.env.NODE_ENV!=="production"&&(bs.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:ln.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Xe,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const gd=bs;function bd(e){return He("MuiPaper",e)}rt("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 vd=["className","component","elevation","square","variant"],yd=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ze(i,bd,o)},xd=xe("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 w({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"&&w({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${In("#fff",Qo(t.elevation))}, ${In("#fff",Qo(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),vs=T.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation"}=r,u=ue(r,vd),p=w({},r,{component:i,elevation:a,square:l,variant:c}),f=yd(p);return process.env.NODE_ENV!=="production"&&hn().shadows[a]===void 0&&console.error([`MUI: The elevation provided is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(` +`)),P.jsx(xd,w({as:i,ownerState:p,className:Ne(f.root,o),ref:n},u))});process.env.NODE_ENV!=="production"&&(vs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:At(Ci,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});const Ed=vs;function Td(e){return He("MuiPopover",e)}rt("MuiPopover",["root","paper"]);const wd=["onEntering"],Od=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pd=["slotProps"];function ii(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function si(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ai(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function kn(e){return typeof e=="function"?e():e}const kd=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Td,t)},Sd=xe(gd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ys=xe(Ed,{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}),xs=T.forwardRef(function(t,n){var r,o,i;const a=Qe({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:f="anchorEl",children:d,className:b,container:v,elevation:g=8,marginThreshold:h=16,open:E,PaperProps:$={},slots:y,slotProps:x,transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:k=Pr,transitionDuration:S="auto",TransitionProps:{onEntering:j}={},disableScrollLock:A=!1}=a,I=ue(a.TransitionProps,wd),B=ue(a,Od),z=(r=x==null?void 0:x.paper)!=null?r:$,W=T.useRef(),L=Ae(W,z.ref),_=w({},a,{anchorOrigin:u,anchorReference:f,elevation:g,marginThreshold:h,externalPaperSlotProps:z,transformOrigin:m,TransitionComponent:k,transitionDuration:S,TransitionProps:I}),R=kd(_),D=T.useCallback(()=>{if(f==="anchorPosition")return process.env.NODE_ENV!=="production"&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using .')),p;const J=kn(c),C=J&&J.nodeType===1?J:ye(W.current).body,re=C.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const be=C.getBoundingClientRect();process.env.NODE_ENV!=="test"&&be.top===0&&be.left===0&&be.right===0&&be.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +`))}return{top:re.top+ii(re,u.vertical),left:re.left+si(re,u.horizontal)}},[c,u.horizontal,u.vertical,p,f]),Q=T.useCallback(J=>({vertical:ii(J,m.vertical),horizontal:si(J,m.horizontal)}),[m.horizontal,m.vertical]),Z=T.useCallback(J=>{const C={width:J.offsetWidth,height:J.offsetHeight},re=Q(C);if(f==="none")return{top:null,left:null,transformOrigin:ai(re)};const be=D();let Ee=be.top-re.vertical,me=be.left-re.horizontal;const st=Ee+C.height,Te=me+C.width,qe=Nt(kn(c)),ke=qe.innerHeight-h,We=qe.innerWidth-h;if(h!==null&&Eeke){const ve=st-ke;Ee-=ve,re.vertical+=ve}if(process.env.NODE_ENV!=="production"&&C.height>ke&&C.height&&ke&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${C.height-ke}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(` +`)),h!==null&&meWe){const ve=Te-We;me-=ve,re.horizontal+=ve}return{top:`${Math.round(Ee)}px`,left:`${Math.round(me)}px`,transformOrigin:ai(re)}},[c,f,D,Q,h]),[O,M]=T.useState(E),V=T.useCallback(()=>{const J=W.current;if(!J)return;const C=Z(J);C.top!==null&&(J.style.top=C.top),C.left!==null&&(J.style.left=C.left),J.style.transformOrigin=C.transformOrigin,M(!0)},[Z]);T.useEffect(()=>(A&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[c,A,V]);const K=(J,C)=>{j&&j(J,C),V()},F=()=>{M(!1)};T.useEffect(()=>{E&&V()}),T.useImperativeHandle(l,()=>E?{updatePosition:()=>{V()}}:null,[E,V]),T.useEffect(()=>{if(!E)return;const J=Ei(()=>{V()}),C=Nt(c);return C.addEventListener("resize",J),()=>{J.clear(),C.removeEventListener("resize",J)}},[c,E,V]);let U=S;S==="auto"&&!k.muiSupportAuto&&(U=void 0);const q=v||(c?ye(kn(c)).body:void 0),G=(o=y==null?void 0:y.root)!=null?o:Sd,H=(i=y==null?void 0:y.paper)!=null?i:ys,X=mt({elementType:H,externalSlotProps:w({},z,{style:O?z.style:w({},z.style,{opacity:0})}),additionalProps:{elevation:g,ref:L},ownerState:_,className:Ne(R.paper,z==null?void 0:z.className)}),Y=mt({elementType:G,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:q,open:E},ownerState:_,className:Ne(R.root,b)}),{slotProps:ne}=Y,N=ue(Y,Pd);return P.jsx(G,w({},N,!Mi(G)&&{slotProps:ne,disableScrollLock:A},{children:P.jsx(k,w({appear:!0,in:E,onEntering:K,onExited:F,timeout:U},I,{children:P.jsx(H,w({},X,{children:d}))}))}))});process.env.NODE_ENV!=="production"&&(xs.propTypes={action:Sr,anchorEl:At(s.oneOfType([Xe,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=kn(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(` -`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Xe,s.func]),disableScrollLock:s.bool,elevation:Ci,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:ra}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const Sd=xs;function Cd(e){return He("MuiMenu",e)}rt("MuiMenu",["root","paper","list"]);const Rd=["onEntering"],Nd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$d={vertical:"top",horizontal:"right"},Md={vertical:"top",horizontal:"left"},_d=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},Cd,t)},Id=xe(Sd,{shouldForwardProp:e=>Qi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ad=xe(ys,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jd=xe(td,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Es=T.forwardRef(function(t,n){var r,o;const i=Qe({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:f,open:d,PaperProps:b={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:E="selectedMenu",slots:$={},slotProps:y={}}=i,x=ue(i.TransitionProps,Rd),g=ue(i,Nd),k=hn(),S=k.direction==="rtl",j=w({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:p,onEntering:h,PaperProps:b,transitionDuration:m,TransitionProps:x,variant:E}),A=_d(j),I=a&&!u&&d,B=T.useRef(null),z=(Z,O)=>{B.current&&B.current.adjustStyleForScrollbar(Z,k),h&&h(Z,O)},W=Z=>{Z.key==="Tab"&&(Z.preventDefault(),f&&f(Z,"tabKeyDown"))};let L=-1;T.Children.map(l,(Z,O)=>{T.isValidElement(Z)&&(process.env.NODE_ENV!=="production"&&Cn.isFragment(Z)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` -`)),Z.props.disabled||(E==="selectedMenu"&&Z.props.selected||L===-1)&&(L=O))});const _=(r=$.paper)!=null?r:Ad,R=(o=y.paper)!=null?o:b,D=mt({elementType:$.root,externalSlotProps:y.root,ownerState:j,className:[A.root,c]}),Q=mt({elementType:_,externalSlotProps:R,ownerState:j,className:A.paper});return P.jsx(Id,w({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?$d:Md,slots:{paper:_,root:$.root},slotProps:{root:D,paper:Q},open:d,ref:n,transitionDuration:m,TransitionProps:w({onEntering:z},x),ownerState:j},g,{classes:v,children:P.jsx(jd,w({onKeyDown:W,actions:B,autoFocus:a&&(L===-1||u),autoFocusItem:I,variant:E},p,{className:Ne(A.list,p.className),children:l}))}))});process.env.NODE_ENV!=="production"&&(Es.propTypes={anchorEl:s.oneOfType([Xe,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});const Dd=Es;function Bd({className:e,commandHandler:t,menuDefinition:n,children:r}){var u;const[o,i]=ie.useState(void 0),a=ie.useCallback(p=>{p.preventDefault(),i(o===void 0?{mouseX:p.clientX+2,mouseY:p.clientY-6}:void 0)},[o]),l=ie.useCallback(()=>{i(void 0)},[]),c=ie.useMemo(()=>{if(o!==void 0)return{top:o.mouseY,left:o.mouseX}},[o]);return(((u=n==null?void 0:n.items)==null?void 0:u.length)??0)===0||!r?r:P.jsxs("div",{className:`papi-context-menu-target ${e??""}`,onContextMenu:a,children:[r,P.jsx(Dd,{className:`papi-context-menu ${e??""}`,open:o!==void 0,onClose:l,anchorReference:"anchorPosition",anchorPosition:c,children:P.jsx(Gr,{menuDefinition:n,commandHandler:t,onClick:l})})]})}function Ld({id:e,label:t,isDisabled:n=!1,tooltip:r,isTooltipSuppressed:o=!1,adjustMarginToAlignToEdge:i=!1,size:a="medium",className:l,onClick:c,children:u}){return P.jsx(pe.IconButton,{id:e,disabled:n,edge:i,size:a,"aria-label":t,title:o?void 0:r??t,className:`papi-icon-button ${l??""}`,onClick:c,children:u})}var Fd=Object.defineProperty,Vd=(e,t,n)=>t in e?Fd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t,n)=>(Vd(e,typeof t!="symbol"?t+"":t,n),n);const vt=["GEN","EXO","LEV","NUM","DEU","JOS","JDG","RUT","1SA","2SA","1KI","2KI","1CH","2CH","EZR","NEH","EST","JOB","PSA","PRO","ECC","SNG","ISA","JER","LAM","EZK","DAN","HOS","JOL","AMO","OBA","JON","MIC","NAM","HAB","ZEP","HAG","ZEC","MAL","MAT","MRK","LUK","JHN","ACT","ROM","1CO","2CO","GAL","EPH","PHP","COL","1TH","2TH","1TI","2TI","TIT","PHM","HEB","JAS","1PE","2PE","1JN","2JN","3JN","JUD","REV","TOB","JDT","ESG","WIS","SIR","BAR","LJE","S3Y","SUS","BEL","1MA","2MA","3MA","4MA","1ES","2ES","MAN","PS2","ODA","PSS","JSA","JDB","TBS","SST","DNT","BLT","XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","3ES","EZA","5EZ","6EZ","INT","CNC","GLO","TDX","NDX","DAG","PS3","2BA","LBA","JUB","ENO","1MQ","2MQ","3MQ","REP","4BA","LAO"],Kr=["XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","INT","CNC","GLO","TDX","NDX"],Ts=["Genesis","Exodus","Leviticus","Numbers","Deuteronomy","Joshua","Judges","Ruth","1 Samuel","2 Samuel","1 Kings","2 Kings","1 Chronicles","2 Chronicles","Ezra","Nehemiah","Esther (Hebrew)","Job","Psalms","Proverbs","Ecclesiastes","Song of Songs","Isaiah","Jeremiah","Lamentations","Ezekiel","Daniel (Hebrew)","Hosea","Joel","Amos","Obadiah","Jonah","Micah","Nahum","Habakkuk","Zephaniah","Haggai","Zechariah","Malachi","Matthew","Mark","Luke","John","Acts","Romans","1 Corinthians","2 Corinthians","Galatians","Ephesians","Philippians","Colossians","1 Thessalonians","2 Thessalonians","1 Timothy","2 Timothy","Titus","Philemon","Hebrews","James","1 Peter","2 Peter","1 John","2 John","3 John","Jude","Revelation","Tobit","Judith","Esther Greek","Wisdom of Solomon","Sirach (Ecclesiasticus)","Baruch","Letter of Jeremiah","Song of 3 Young Men","Susanna","Bel and the Dragon","1 Maccabees","2 Maccabees","3 Maccabees","4 Maccabees","1 Esdras (Greek)","2 Esdras (Latin)","Prayer of Manasseh","Psalm 151","Odes","Psalms of Solomon","Joshua A. *obsolete*","Judges B. *obsolete*","Tobit S. *obsolete*","Susanna Th. *obsolete*","Daniel Th. *obsolete*","Bel Th. *obsolete*","Extra A","Extra B","Extra C","Extra D","Extra E","Extra F","Extra G","Front Matter","Back Matter","Other Matter","3 Ezra *obsolete*","Apocalypse of Ezra","5 Ezra (Latin Prologue)","6 Ezra (Latin Epilogue)","Introduction","Concordance ","Glossary ","Topical Index","Names Index","Daniel Greek","Psalms 152-155","2 Baruch (Apocalypse)","Letter of Baruch","Jubilees","Enoch","1 Meqabyan","2 Meqabyan","3 Meqabyan","Reproof (Proverbs 25-31)","4 Baruch (Rest of Baruch)","Laodiceans"],li=Jd();function jt(e,t=!0){return t&&(e=e.toUpperCase()),e in li?li[e]:0}function Xr(e){return jt(e)>0}function zd(e){const t=typeof e=="string"?jt(e):e;return t>=40&&t<=66}function Ud(e){return(typeof e=="string"?jt(e):e)<=39}function ws(e){return e<=66}function Hd(e){const t=typeof e=="string"?jt(e):e;return ks(t)&&!ws(t)}function*qd(){for(let e=1;e<=vt.length;e++)yield e}const Wd=1,Os=vt.length;function Gd(){return["XXA","XXB","XXC","XXD","XXE","XXF","XXG"]}function Yr(e,t="***"){const n=e-1;return n<0||n>=vt.length?t:vt[n]}function Ps(e){return e<=0||e>Os?"******":Ts[e-1]}function Kd(e){return Ps(jt(e))}function ks(e){const t=typeof e=="number"?Yr(e):e;return Xr(t)&&!Kr.includes(t)}function Xd(e){const t=typeof e=="number"?Yr(e):e;return Xr(t)&&Kr.includes(t)}function Yd(e){return Ts[e-1].includes("*obsolete*")}function Jd(){const e={};for(let t=0;t(e[e.Unknown=0]="Unknown",e[e.Original=1]="Original",e[e.Septuagint=2]="Septuagint",e[e.Vulgate=3]="Vulgate",e[e.English=4]="English",e[e.RussianProtestant=5]="RussianProtestant",e[e.RussianOrthodox=6]="RussianOrthodox",e))(tt||{});const Ce=class{constructor(t){if(te(this,"name"),te(this,"fullPath"),te(this,"isPresent"),te(this,"hasVerseSegments"),te(this,"isCustomized"),te(this,"baseVersification"),te(this,"scriptureBooks"),te(this,"_type"),t!=null)typeof t=="string"?this.name=t:this._type=t;else throw new Error("Argument null")}get type(){return this._type}equals(t){return!t.type||!this.type?!1:t.type===this.type}};te(Ce,"Original",new Ce(tt.Original)),te(Ce,"Septuagint",new Ce(tt.Septuagint)),te(Ce,"Vulgate",new Ce(tt.Vulgate)),te(Ce,"English",new Ce(tt.English)),te(Ce,"RussianProtestant",new Ce(tt.RussianProtestant)),te(Ce,"RussianOrthodox",new Ce(tt.RussianOrthodox));let St=Ce;function ci(e,t){const n=t[0];for(let r=1;r(e[e.Valid=0]="Valid",e[e.UnknownVersification=1]="UnknownVersification",e[e.OutOfRange=2]="OutOfRange",e[e.VerseOutOfOrder=3]="VerseOutOfOrder",e[e.VerseRepeated=4]="VerseRepeated",e))(Ss||{});const we=class oe{constructor(t,n,r,o){if(te(this,"firstChapter"),te(this,"lastChapter"),te(this,"lastVerse"),te(this,"hasSegmentsDefined"),te(this,"text"),te(this,"BBBCCCVVVS"),te(this,"longHashCode"),te(this,"versification"),te(this,"rtlMark","‏"),te(this,"_bookNum",0),te(this,"_chapterNum",0),te(this,"_verseNum",0),te(this,"_verse"),r==null&&o==null)if(t!=null&&typeof t=="string"){const i=t,a=n!=null&&n instanceof St?n:void 0;this.setEmpty(a),this.parse(i)}else if(t!=null&&typeof t=="number"){const i=n!=null&&n instanceof St?n:void 0;this.setEmpty(i),this._verseNum=t%oe.chapterDigitShifter,this._chapterNum=Math.floor(t%oe.bookDigitShifter/oe.chapterDigitShifter),this._bookNum=Math.floor(t/oe.bookDigitShifter)}else if(n==null)if(t!=null&&t instanceof oe){const i=t;this._bookNum=i.bookNum,this._chapterNum=i.chapterNum,this._verseNum=i.verseNum,this._verse=i.verse,this.versification=i.versification}else{if(t==null)return;const i=t instanceof St?t:oe.defaultVersification;this.setEmpty(i)}else throw new Error("VerseRef constructor not supported.");else if(t!=null&&n!=null&&r!=null)if(typeof t=="string"&&typeof n=="string"&&typeof r=="string")this.setEmpty(o),this.updateInternal(t,n,r);else if(typeof t=="number"&&typeof n=="number"&&typeof r=="number")this._bookNum=t,this._chapterNum=n,this._verseNum=r,this.versification=o??oe.defaultVersification;else throw new Error("VerseRef constructor not supported.");else throw new Error("VerseRef constructor not supported.")}static parse(t,n=oe.defaultVersification){const r=new oe(n);return r.parse(t),r}static isVerseParseable(t){return t.length>0&&"0123456789".includes(t[0])&&!t.endsWith(this.verseRangeSeparator)&&!t.endsWith(this.verseSequenceIndicator)}static tryParse(t){let n;try{return n=oe.parse(t),{success:!0,verseRef:n}}catch(r){if(r instanceof Wt)return n=new oe,{success:!1,verseRef:n};throw r}}static getBBBCCCVVV(t,n,r){return t%oe.bcvMaxValue*oe.bookDigitShifter+(n>=0?n%oe.bcvMaxValue*oe.chapterDigitShifter:0)+(r>=0?r%oe.bcvMaxValue:0)}static tryGetVerseNum(t){let n;if(!t)return n=-1,{success:!0,vNum:n};n=0;let r;for(let o=0;o"9")return o===0&&(n=-1),{success:!1,vNum:n};if(n=n*10+ +r-+"0",n>oe.bcvMaxValue)return n=-1,{success:!1,vNum:n}}return{success:!0,vNum:n}}get isDefault(){return this.bookNum===0&&this.chapterNum===0&&this.verseNum===0&&this.versification==null}get hasMultiple(){return this._verse!=null&&(this._verse.includes(oe.verseRangeSeparator)||this._verse.includes(oe.verseSequenceIndicator))}get book(){return Fe.bookNumberToId(this.bookNum,"")}set book(t){this.bookNum=Fe.bookIdToNumber(t)}get chapter(){return this.isDefault||this._chapterNum<0?"":this._chapterNum.toString()}set chapter(t){const n=+t;this._chapterNum=Number.isInteger(n)?n:-1}get verse(){return this._verse!=null?this._verse:this.isDefault||this._verseNum<0?"":this._verseNum.toString()}set verse(t){const{success:n,vNum:r}=oe.tryGetVerseNum(t);this._verse=n?void 0:t.replace(this.rtlMark,""),this._verseNum=r,!(this._verseNum>=0)&&({vNum:this._verseNum}=oe.tryGetVerseNum(this._verse))}get bookNum(){return this._bookNum}set bookNum(t){if(t<=0||t>Fe.lastBook)throw new Wt("BookNum must be greater than zero and less than or equal to last book");this._bookNum=t}get chapterNum(){return this._chapterNum}set chapterNum(t){this.chapterNum=t}get verseNum(){return this._verseNum}set verseNum(t){this._verseNum=t}get versificationStr(){var t;return(t=this.versification)==null?void 0:t.name}set versificationStr(t){this.versification=this.versification!=null?new St(t):void 0}get valid(){return this.validStatus===0}get validStatus(){return this.validateVerse(oe.verseRangeSeparators,oe.verseSequenceIndicators)}get BBBCCC(){return oe.getBBBCCCVVV(this._bookNum,this._chapterNum,0)}get BBBCCCVVV(){return oe.getBBBCCCVVV(this._bookNum,this._chapterNum,this._verseNum)}get isExcluded(){return!1}parse(t){if(t=t.replace(this.rtlMark,""),t.includes("/")){const i=t.split("/");if(t=i[0],i.length>1)try{const a=+i[1].trim();this.versification=new St(tt[a])}catch{throw new Wt("Invalid reference : "+t)}}const n=t.trim().split(" ");if(n.length!==2)throw new Wt("Invalid reference : "+t);const r=n[1].split(":"),o=+r[0];if(r.length!==2||Fe.bookIdToNumber(n[0])===0||!Number.isInteger(o)||o<0||!oe.isVerseParseable(r[1]))throw new Wt("Invalid reference : "+t);this.updateInternal(n[0],r[0],r[1])}simplify(){this._verse=void 0}clone(){return new oe(this)}toString(){const t=this.book;return t===""?"":`${t} ${this.chapter}:${this.verse}`}equals(t){return t instanceof oe?t._bookNum===this._bookNum&&t._chapterNum===this._chapterNum&&t._verseNum===this._verseNum&&t.verse===this.verse&&t.versification!=null&&this.versification!=null&&t.versification.equals(this.versification):!1}allVerses(t=!1,n=oe.verseRangeSeparators,r=oe.verseSequenceIndicators){if(this._verse==null||this.chapterNum<=0)return[this.clone()];const o=[],i=ci(this._verse,r);for(const a of i.map(l=>ci(l,n))){const l=this.clone();l.verse=a[0];const c=l.verseNum;if(o.push(l),a.length>1){const u=this.clone();if(u.verse=a[1],!t)for(let p=c+1;pa)return 3;if(r===a)return 4;r=a}return 0}get internalValid(){return this.versification==null?1:this._bookNum<=0||this._bookNum>Fe.lastBook?2:(Fe.isCanonical(this._bookNum),0)}setEmpty(t=oe.defaultVersification){this._bookNum=0,this._chapterNum=-1,this._verse=void 0,this.versification=t}updateInternal(t,n,r){this.bookNum=Fe.bookIdToNumber(t),this.chapter=n,this.verse=r}};te(we,"defaultVersification",St.English),te(we,"verseRangeSeparator","-"),te(we,"verseSequenceIndicator",","),te(we,"verseRangeSeparators",[we.verseRangeSeparator]),te(we,"verseSequenceIndicators",[we.verseSequenceIndicator]),te(we,"chapterDigitShifter",1e3),te(we,"bookDigitShifter",we.chapterDigitShifter*we.chapterDigitShifter),te(we,"bcvMaxValue",we.chapterDigitShifter-1),te(we,"ValidStatusType",Ss);class Wt extends Error{}function an({variant:e="outlined",id:t,isDisabled:n=!1,hasError:r=!1,isFullWidth:o=!1,helperText:i,label:a,placeholder:l,isRequired:c=!1,className:u,defaultValue:p,value:f,onChange:d,onFocus:b,onBlur:v}){return P.jsx(pe.TextField,{variant:e,id:t,disabled:n,error:r,fullWidth:o,helperText:i,label:a,placeholder:l,required:c,className:`papi-textfield ${u??""}`,defaultValue:p,value:f,onChange:d,onFocus:b,onBlur:v})}let pr;const dr=()=>(pr||(pr=Fe.allBookIds.map(e=>({bookId:e,label:Fe.bookIdToEnglishName(e)}))),pr);function Zd({scrRef:e,handleSubmit:t,id:n}){const r=c=>{t(c)},o=(c,u)=>{const f={bookNum:Fe.bookIdToNumber(u.bookId),chapterNum:1,verseNum:1};r(f)},i=c=>{t({...e,chapterNum:+c.target.value})},a=c=>{t({...e,verseNum:+c.target.value})},l=ie.useMemo(()=>dr()[e.bookNum-1],[e.bookNum]);return P.jsxs("span",{id:n,children:[P.jsx(Sn,{title:"Book",className:"papi-ref-selector book",value:l,options:dr(),onChange:o,isClearable:!1,width:200}),P.jsx(lt,{onClick:()=>r(Le.offsetBook(e,-1)),isDisabled:e.bookNum<=Le.FIRST_SCR_BOOK_NUM,children:"<"}),P.jsx(lt,{onClick:()=>r(Le.offsetBook(e,1)),isDisabled:e.bookNum>=dr().length,children:">"}),P.jsx(an,{className:"papi-ref-selector chapter-verse",label:"Chapter",value:e.chapterNum,onChange:i}),P.jsx(lt,{onClick:()=>t(Le.offsetChapter(e,-1)),isDisabled:e.chapterNum<=Le.FIRST_SCR_CHAPTER_NUM,children:"<"}),P.jsx(lt,{onClick:()=>t(Le.offsetChapter(e,1)),isDisabled:e.chapterNum>=Le.getChaptersForBook(e.bookNum),children:">"}),P.jsx(an,{className:"papi-ref-selector chapter-verse",label:"Verse",value:e.verseNum,onChange:a}),P.jsx(lt,{onClick:()=>t(Le.offsetVerse(e,-1)),isDisabled:e.verseNum<=Le.FIRST_SCR_VERSE_NUM,children:"<"}),P.jsx(lt,{onClick:()=>t(Le.offsetVerse(e,1)),children:">"})]})}function Qd({onSearch:e,placeholder:t,isFullWidth:n}){const[r,o]=ie.useState(""),i=a=>{o(a),e(a)};return P.jsx(pe.Paper,{component:"form",className:"search-bar-paper",children:P.jsx(an,{isFullWidth:n,className:"search-bar-input",placeholder:t,value:r,onChange:a=>i(a.target.value)})})}function ef({id:e,isDisabled:t=!1,orientation:n="horizontal",min:r=0,max:o=100,step:i=1,showMarks:a=!1,defaultValue:l,value:c,valueLabelDisplay:u="off",className:p,onChange:f,onChangeCommitted:d}){return P.jsx(pe.Slider,{id:e,disabled:t,orientation:n,min:r,max:o,step:i,marks:a,defaultValue:l,value:c,valueLabelDisplay:u,className:`papi-slider ${n} ${p??""}`,onChange:f,onChangeCommitted:d})}function tf({autoHideDuration:e=void 0,id:t,isOpen:n=!1,className:r,onClose:o,anchorOrigin:i={vertical:"bottom",horizontal:"left"},ContentProps:a,children:l}){const c={action:(a==null?void 0:a.action)||l,message:a==null?void 0:a.message,className:r};return P.jsx(pe.Snackbar,{autoHideDuration:e??void 0,open:n,onClose:o,anchorOrigin:i,id:t,ContentProps:c})}function nf({id:e,isChecked:t,isDisabled:n=!1,hasError:r=!1,className:o,onChange:i}){return P.jsx(pe.Switch,{id:e,checked:t,disabled:n,className:`papi-switch ${r?"error":""} ${o??""}`,onChange:i})}function ui({onRowChange:e,row:t,column:n}){const r=o=>{e({...t,[n.key]:o.target.value})};return P.jsx(an,{defaultValue:t[n.key],onChange:r})}const rf=({onChange:e,disabled:t,checked:n,...r})=>{const o=i=>{e(i.target.checked,i.nativeEvent.shiftKey)};return P.jsx(di,{...r,isChecked:n,isDisabled:t,onChange:o})};function of({columns:e,sortColumns:t,onSortColumnsChange:n,onColumnResize:r,defaultColumnWidth:o,defaultColumnMinWidth:i,defaultColumnMaxWidth:a,defaultColumnSortable:l=!0,defaultColumnResizable:c=!0,rows:u,enableSelectColumn:p,selectColumnWidth:f=50,rowKeyGetter:d,rowHeight:b=35,headerRowHeight:v=35,selectedRows:m,onSelectedRowsChange:h,onRowsChange:E,onCellClick:$,onCellDoubleClick:y,onCellContextMenu:x,onCellKeyDown:g,direction:k="ltr",enableVirtualization:S=!0,onCopy:j,onPaste:A,onScroll:I,className:B,id:z}){const W=ie.useMemo(()=>{const L=e.map(_=>typeof _.editable=="function"?{..._,editable:D=>!!_.editable(D),renderEditCell:_.renderEditCell||ui}:_.editable&&!_.renderEditCell?{..._,renderEditCell:ui}:_.renderEditCell&&!_.editable?{..._,editable:!1}:_);return p?[{...po.SelectColumn,minWidth:f},...L]:L},[e,p,f]);return P.jsx(po,{columns:W,defaultColumnOptions:{width:o,minWidth:i,maxWidth:a,sortable:l,resizable:c},sortColumns:t,onSortColumnsChange:n,onColumnResize:r,rows:u,rowKeyGetter:d,rowHeight:b,headerRowHeight:v,selectedRows:m,onSelectedRowsChange:h,onRowsChange:E,onCellClick:$,onCellDoubleClick:y,onCellContextMenu:x,onCellKeyDown:g,direction:k,enableVirtualization:S,onCopy:j,onPaste:A,onScroll:I,renderers:{renderCheckbox:rf},className:`papi-table ${B??"rdg-light"}`,id:z})}const sf=as(P.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function af({menuProvider:e,commandHandler:t,className:n,id:r,children:o}){const[i,a]=ie.useState(!1),[l,c]=ie.useState(!1),u=ie.useCallback(()=>{i&&a(!1),c(!1)},[i]),p=ie.useCallback(h=>{h.stopPropagation(),a(E=>{const $=!E;return $&&h.shiftKey?c(!0):$||c(!1),$})},[]),f=ie.useRef(void 0),[d,b]=ie.useState(0);ie.useEffect(()=>{i&&f.current&&b(f.current.clientHeight)},[i]);const v=ie.useCallback(h=>(u(),t(h)),[t,u]),m=e==null?void 0:e(l);return P.jsx("div",{ref:f,style:{position:"relative"},children:P.jsx(pe.AppBar,{position:"static",id:r,children:P.jsxs(pe.Toolbar,{className:`papi-toolbar ${n??""}`,variant:"dense",children:[m?P.jsx(pe.IconButton,{edge:"start",className:`papi-menuButton ${n??""}`,color:"inherit","aria-label":"open drawer",onClick:p,children:P.jsx(sf,{})}):void 0,o?P.jsx("div",{className:"papi-menu-children",children:o}):void 0,m?P.jsx(pe.Drawer,{className:`papi-menu-drawer ${n??""}`,anchor:"left",variant:"persistent",open:i,onClose:u,PaperProps:{className:"papi-menu-drawer-paper",style:{top:d}},children:P.jsx(us,{className:n,commandHandler:v,multiColumnMenu:m})}):void 0]})})})}const lf=(e,t)=>{ie.useEffect(()=>{if(!e)return()=>{};const n=e(t);return()=>{n()}},[e,t])};function cf(e){return{preserveValue:!0,...e}}const Cs=(e,t,n={})=>{const r=ie.useRef(t);r.current=t;const o=ie.useRef(n);o.current=cf(o.current);const[i,a]=ie.useState(()=>r.current),[l,c]=ie.useState(!0);return ie.useEffect(()=>{let u=!0;return c(!!e),(async()=>{if(e){const p=await e();u&&(a(()=>p),c(!1))}})(),()=>{u=!1,o.current.preserveValue||a(()=>r.current)}},[e]),[i,l]},fr=()=>!1,uf=(e,t)=>{const[n]=Cs(ie.useCallback(async()=>{if(!e)return fr;const r=await Promise.resolve(e(t));return async()=>r()},[t,e]),fr,{preserveValue:!1});ie.useEffect(()=>()=>{n!==fr&&n()},[n])};exports.Button=lt;exports.ChapterRangeSelector=zs;exports.Checkbox=di;exports.ComboBox=Sn;exports.ContextMenu=Bd;exports.GridMenu=us;exports.IconButton=Ld;exports.LabelPosition=pt;exports.MenuItem=Wr;exports.RefSelector=Zd;exports.SearchBar=Qd;exports.Slider=ef;exports.Snackbar=tf;exports.Switch=nf;exports.Table=of;exports.TextField=an;exports.Toolbar=af;exports.useEvent=lf;exports.useEventAsync=uf;exports.usePromise=Cs;function pf(e,t="top"){if(!e||typeof document>"u")return;const n=document.head||document.querySelector("head"),r=n.querySelector(":first-child"),o=document.createElement("style");o.appendChild(document.createTextNode(e)),t==="top"&&r?n.insertBefore(o,r):n.appendChild(o)}pf(`.papi-button { - border: 0; - border-radius: 3em; - cursor: pointer; - display: inline-block; - font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; - font-weight: 700; - line-height: 1; +`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Xe,s.func]),disableScrollLock:s.bool,elevation:Ci,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:oa}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const Cd=xs;function Rd(e){return He("MuiMenu",e)}rt("MuiMenu",["root","paper","list"]);const Nd=["onEntering"],$d=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Md={vertical:"top",horizontal:"right"},_d={vertical:"top",horizontal:"left"},Id=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},Rd,t)},Ad=xe(Cd,{shouldForwardProp:e=>Qi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jd=xe(ys,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Dd=xe(nd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Es=T.forwardRef(function(t,n){var r,o;const i=Qe({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:c,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:f,open:d,PaperProps:b={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:h}={},variant:E="selectedMenu",slots:$={},slotProps:y={}}=i,x=ue(i.TransitionProps,Nd),m=ue(i,$d),k=hn(),S=k.direction==="rtl",j=w({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:p,onEntering:h,PaperProps:b,transitionDuration:g,TransitionProps:x,variant:E}),A=Id(j),I=a&&!u&&d,B=T.useRef(null),z=(Z,O)=>{B.current&&B.current.adjustStyleForScrollbar(Z,k),h&&h(Z,O)},W=Z=>{Z.key==="Tab"&&(Z.preventDefault(),f&&f(Z,"tabKeyDown"))};let L=-1;T.Children.map(l,(Z,O)=>{T.isValidElement(Z)&&(process.env.NODE_ENV!=="production"&&Cn.isFragment(Z)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(` +`)),Z.props.disabled||(E==="selectedMenu"&&Z.props.selected||L===-1)&&(L=O))});const _=(r=$.paper)!=null?r:jd,R=(o=y.paper)!=null?o:b,D=mt({elementType:$.root,externalSlotProps:y.root,ownerState:j,className:[A.root,c]}),Q=mt({elementType:_,externalSlotProps:R,ownerState:j,className:A.paper});return P.jsx(Ad,w({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Md:_d,slots:{paper:_,root:$.root},slotProps:{root:D,paper:Q},open:d,ref:n,transitionDuration:g,TransitionProps:w({onEntering:z},x),ownerState:j},m,{classes:v,children:P.jsx(Dd,w({onKeyDown:W,actions:B,autoFocus:a&&(L===-1||u),autoFocusItem:I,variant:E},p,{className:Ne(A.list,p.className),children:l}))}))});process.env.NODE_ENV!=="production"&&(Es.propTypes={anchorEl:s.oneOfType([Xe,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});const Bd=Es;function Ld({className:e,commandHandler:t,menuDefinition:n,children:r}){var u;const[o,i]=ie.useState(void 0),a=ie.useCallback(p=>{p.preventDefault(),i(o===void 0?{mouseX:p.clientX+2,mouseY:p.clientY-6}:void 0)},[o]),l=ie.useCallback(()=>{i(void 0)},[]),c=ie.useMemo(()=>{if(o!==void 0)return{top:o.mouseY,left:o.mouseX}},[o]);return(((u=n==null?void 0:n.items)==null?void 0:u.length)??0)===0||!r?r:P.jsxs("div",{className:`papi-context-menu-target ${e??""}`,onContextMenu:a,children:[r,P.jsx(Bd,{className:`papi-context-menu ${e??""}`,open:o!==void 0,onClose:l,anchorReference:"anchorPosition",anchorPosition:c,children:P.jsx(Gr,{menuDefinition:n,commandHandler:t,onClick:l})})]})}const Fd=as(P.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function Ts({normalMenu:e,fullMenu:t,commandHandler:n,containerRef:r,className:o,ariaLabelPrefix:i}){const[a,l]=ie.useState(!1),[c,u]=ie.useState(!1),p=ie.useCallback(()=>{a&&l(!1),u(!1)},[a]),f=ie.useCallback(h=>{h.stopPropagation(),l(E=>{const $=!E;return $&&t&&h.shiftKey?u(!0):$||u(!1),$})},[t]),d=ie.useCallback(h=>(p(),n(h)),[n,p]),b=c&&t?t:e,[v,g]=ie.useState(0);return ie.useEffect(()=>{a&&r.current&&g(r.current.clientHeight)},[a,r]),P.jsxs(P.Fragment,{children:[P.jsxs(pe.IconButton,{edge:"start",className:`papi-menuButton ${o??""}`,color:"inherit","aria-label":`${i??""} menu button`,onClick:f,children:["children ?? ",P.jsx(Fd,{})]}),P.jsx(pe.Drawer,{className:`papi-menu-drawer ${o??""}`,anchor:"left",variant:"persistent",open:a,onClose:p,PaperProps:{className:"papi-menu-drawer-paper",style:{top:v}},children:P.jsx(us,{className:o,id:`${i??""} main menu`,commandHandler:d,multiColumnMenu:b})})]})}function Vd({id:e,label:t,isDisabled:n=!1,tooltip:r,isTooltipSuppressed:o=!1,adjustMarginToAlignToEdge:i=!1,size:a="medium",className:l,onClick:c,children:u}){return P.jsx(pe.IconButton,{id:e,disabled:n,edge:i,size:a,"aria-label":t,title:o?void 0:r??t,className:`papi-icon-button ${l??""}`,onClick:c,children:u})}var zd=Object.defineProperty,Ud=(e,t,n)=>t in e?zd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t,n)=>(Ud(e,typeof t!="symbol"?t+"":t,n),n);const vt=["GEN","EXO","LEV","NUM","DEU","JOS","JDG","RUT","1SA","2SA","1KI","2KI","1CH","2CH","EZR","NEH","EST","JOB","PSA","PRO","ECC","SNG","ISA","JER","LAM","EZK","DAN","HOS","JOL","AMO","OBA","JON","MIC","NAM","HAB","ZEP","HAG","ZEC","MAL","MAT","MRK","LUK","JHN","ACT","ROM","1CO","2CO","GAL","EPH","PHP","COL","1TH","2TH","1TI","2TI","TIT","PHM","HEB","JAS","1PE","2PE","1JN","2JN","3JN","JUD","REV","TOB","JDT","ESG","WIS","SIR","BAR","LJE","S3Y","SUS","BEL","1MA","2MA","3MA","4MA","1ES","2ES","MAN","PS2","ODA","PSS","JSA","JDB","TBS","SST","DNT","BLT","XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","3ES","EZA","5EZ","6EZ","INT","CNC","GLO","TDX","NDX","DAG","PS3","2BA","LBA","JUB","ENO","1MQ","2MQ","3MQ","REP","4BA","LAO"],Kr=["XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","INT","CNC","GLO","TDX","NDX"],ws=["Genesis","Exodus","Leviticus","Numbers","Deuteronomy","Joshua","Judges","Ruth","1 Samuel","2 Samuel","1 Kings","2 Kings","1 Chronicles","2 Chronicles","Ezra","Nehemiah","Esther (Hebrew)","Job","Psalms","Proverbs","Ecclesiastes","Song of Songs","Isaiah","Jeremiah","Lamentations","Ezekiel","Daniel (Hebrew)","Hosea","Joel","Amos","Obadiah","Jonah","Micah","Nahum","Habakkuk","Zephaniah","Haggai","Zechariah","Malachi","Matthew","Mark","Luke","John","Acts","Romans","1 Corinthians","2 Corinthians","Galatians","Ephesians","Philippians","Colossians","1 Thessalonians","2 Thessalonians","1 Timothy","2 Timothy","Titus","Philemon","Hebrews","James","1 Peter","2 Peter","1 John","2 John","3 John","Jude","Revelation","Tobit","Judith","Esther Greek","Wisdom of Solomon","Sirach (Ecclesiasticus)","Baruch","Letter of Jeremiah","Song of 3 Young Men","Susanna","Bel and the Dragon","1 Maccabees","2 Maccabees","3 Maccabees","4 Maccabees","1 Esdras (Greek)","2 Esdras (Latin)","Prayer of Manasseh","Psalm 151","Odes","Psalms of Solomon","Joshua A. *obsolete*","Judges B. *obsolete*","Tobit S. *obsolete*","Susanna Th. *obsolete*","Daniel Th. *obsolete*","Bel Th. *obsolete*","Extra A","Extra B","Extra C","Extra D","Extra E","Extra F","Extra G","Front Matter","Back Matter","Other Matter","3 Ezra *obsolete*","Apocalypse of Ezra","5 Ezra (Latin Prologue)","6 Ezra (Latin Epilogue)","Introduction","Concordance ","Glossary ","Topical Index","Names Index","Daniel Greek","Psalms 152-155","2 Baruch (Apocalypse)","Letter of Baruch","Jubilees","Enoch","1 Meqabyan","2 Meqabyan","3 Meqabyan","Reproof (Proverbs 25-31)","4 Baruch (Rest of Baruch)","Laodiceans"],li=Qd();function jt(e,t=!0){return t&&(e=e.toUpperCase()),e in li?li[e]:0}function Xr(e){return jt(e)>0}function Hd(e){const t=typeof e=="string"?jt(e):e;return t>=40&&t<=66}function qd(e){return(typeof e=="string"?jt(e):e)<=39}function Os(e){return e<=66}function Wd(e){const t=typeof e=="string"?jt(e):e;return Ss(t)&&!Os(t)}function*Gd(){for(let e=1;e<=vt.length;e++)yield e}const Kd=1,Ps=vt.length;function Xd(){return["XXA","XXB","XXC","XXD","XXE","XXF","XXG"]}function Yr(e,t="***"){const n=e-1;return n<0||n>=vt.length?t:vt[n]}function ks(e){return e<=0||e>Ps?"******":ws[e-1]}function Yd(e){return ks(jt(e))}function Ss(e){const t=typeof e=="number"?Yr(e):e;return Xr(t)&&!Kr.includes(t)}function Jd(e){const t=typeof e=="number"?Yr(e):e;return Xr(t)&&Kr.includes(t)}function Zd(e){return ws[e-1].includes("*obsolete*")}function Qd(){const e={};for(let t=0;t(e[e.Unknown=0]="Unknown",e[e.Original=1]="Original",e[e.Septuagint=2]="Septuagint",e[e.Vulgate=3]="Vulgate",e[e.English=4]="English",e[e.RussianProtestant=5]="RussianProtestant",e[e.RussianOrthodox=6]="RussianOrthodox",e))(tt||{});const Ce=class{constructor(t){if(te(this,"name"),te(this,"fullPath"),te(this,"isPresent"),te(this,"hasVerseSegments"),te(this,"isCustomized"),te(this,"baseVersification"),te(this,"scriptureBooks"),te(this,"_type"),t!=null)typeof t=="string"?this.name=t:this._type=t;else throw new Error("Argument null")}get type(){return this._type}equals(t){return!t.type||!this.type?!1:t.type===this.type}};te(Ce,"Original",new Ce(tt.Original)),te(Ce,"Septuagint",new Ce(tt.Septuagint)),te(Ce,"Vulgate",new Ce(tt.Vulgate)),te(Ce,"English",new Ce(tt.English)),te(Ce,"RussianProtestant",new Ce(tt.RussianProtestant)),te(Ce,"RussianOrthodox",new Ce(tt.RussianOrthodox));let St=Ce;function ci(e,t){const n=t[0];for(let r=1;r(e[e.Valid=0]="Valid",e[e.UnknownVersification=1]="UnknownVersification",e[e.OutOfRange=2]="OutOfRange",e[e.VerseOutOfOrder=3]="VerseOutOfOrder",e[e.VerseRepeated=4]="VerseRepeated",e))(Cs||{});const we=class oe{constructor(t,n,r,o){if(te(this,"firstChapter"),te(this,"lastChapter"),te(this,"lastVerse"),te(this,"hasSegmentsDefined"),te(this,"text"),te(this,"BBBCCCVVVS"),te(this,"longHashCode"),te(this,"versification"),te(this,"rtlMark","‏"),te(this,"_bookNum",0),te(this,"_chapterNum",0),te(this,"_verseNum",0),te(this,"_verse"),r==null&&o==null)if(t!=null&&typeof t=="string"){const i=t,a=n!=null&&n instanceof St?n:void 0;this.setEmpty(a),this.parse(i)}else if(t!=null&&typeof t=="number"){const i=n!=null&&n instanceof St?n:void 0;this.setEmpty(i),this._verseNum=t%oe.chapterDigitShifter,this._chapterNum=Math.floor(t%oe.bookDigitShifter/oe.chapterDigitShifter),this._bookNum=Math.floor(t/oe.bookDigitShifter)}else if(n==null)if(t!=null&&t instanceof oe){const i=t;this._bookNum=i.bookNum,this._chapterNum=i.chapterNum,this._verseNum=i.verseNum,this._verse=i.verse,this.versification=i.versification}else{if(t==null)return;const i=t instanceof St?t:oe.defaultVersification;this.setEmpty(i)}else throw new Error("VerseRef constructor not supported.");else if(t!=null&&n!=null&&r!=null)if(typeof t=="string"&&typeof n=="string"&&typeof r=="string")this.setEmpty(o),this.updateInternal(t,n,r);else if(typeof t=="number"&&typeof n=="number"&&typeof r=="number")this._bookNum=t,this._chapterNum=n,this._verseNum=r,this.versification=o??oe.defaultVersification;else throw new Error("VerseRef constructor not supported.");else throw new Error("VerseRef constructor not supported.")}static parse(t,n=oe.defaultVersification){const r=new oe(n);return r.parse(t),r}static isVerseParseable(t){return t.length>0&&"0123456789".includes(t[0])&&!t.endsWith(this.verseRangeSeparator)&&!t.endsWith(this.verseSequenceIndicator)}static tryParse(t){let n;try{return n=oe.parse(t),{success:!0,verseRef:n}}catch(r){if(r instanceof Wt)return n=new oe,{success:!1,verseRef:n};throw r}}static getBBBCCCVVV(t,n,r){return t%oe.bcvMaxValue*oe.bookDigitShifter+(n>=0?n%oe.bcvMaxValue*oe.chapterDigitShifter:0)+(r>=0?r%oe.bcvMaxValue:0)}static tryGetVerseNum(t){let n;if(!t)return n=-1,{success:!0,vNum:n};n=0;let r;for(let o=0;o"9")return o===0&&(n=-1),{success:!1,vNum:n};if(n=n*10+ +r-+"0",n>oe.bcvMaxValue)return n=-1,{success:!1,vNum:n}}return{success:!0,vNum:n}}get isDefault(){return this.bookNum===0&&this.chapterNum===0&&this.verseNum===0&&this.versification==null}get hasMultiple(){return this._verse!=null&&(this._verse.includes(oe.verseRangeSeparator)||this._verse.includes(oe.verseSequenceIndicator))}get book(){return Fe.bookNumberToId(this.bookNum,"")}set book(t){this.bookNum=Fe.bookIdToNumber(t)}get chapter(){return this.isDefault||this._chapterNum<0?"":this._chapterNum.toString()}set chapter(t){const n=+t;this._chapterNum=Number.isInteger(n)?n:-1}get verse(){return this._verse!=null?this._verse:this.isDefault||this._verseNum<0?"":this._verseNum.toString()}set verse(t){const{success:n,vNum:r}=oe.tryGetVerseNum(t);this._verse=n?void 0:t.replace(this.rtlMark,""),this._verseNum=r,!(this._verseNum>=0)&&({vNum:this._verseNum}=oe.tryGetVerseNum(this._verse))}get bookNum(){return this._bookNum}set bookNum(t){if(t<=0||t>Fe.lastBook)throw new Wt("BookNum must be greater than zero and less than or equal to last book");this._bookNum=t}get chapterNum(){return this._chapterNum}set chapterNum(t){this.chapterNum=t}get verseNum(){return this._verseNum}set verseNum(t){this._verseNum=t}get versificationStr(){var t;return(t=this.versification)==null?void 0:t.name}set versificationStr(t){this.versification=this.versification!=null?new St(t):void 0}get valid(){return this.validStatus===0}get validStatus(){return this.validateVerse(oe.verseRangeSeparators,oe.verseSequenceIndicators)}get BBBCCC(){return oe.getBBBCCCVVV(this._bookNum,this._chapterNum,0)}get BBBCCCVVV(){return oe.getBBBCCCVVV(this._bookNum,this._chapterNum,this._verseNum)}get isExcluded(){return!1}parse(t){if(t=t.replace(this.rtlMark,""),t.includes("/")){const i=t.split("/");if(t=i[0],i.length>1)try{const a=+i[1].trim();this.versification=new St(tt[a])}catch{throw new Wt("Invalid reference : "+t)}}const n=t.trim().split(" ");if(n.length!==2)throw new Wt("Invalid reference : "+t);const r=n[1].split(":"),o=+r[0];if(r.length!==2||Fe.bookIdToNumber(n[0])===0||!Number.isInteger(o)||o<0||!oe.isVerseParseable(r[1]))throw new Wt("Invalid reference : "+t);this.updateInternal(n[0],r[0],r[1])}simplify(){this._verse=void 0}clone(){return new oe(this)}toString(){const t=this.book;return t===""?"":`${t} ${this.chapter}:${this.verse}`}equals(t){return t instanceof oe?t._bookNum===this._bookNum&&t._chapterNum===this._chapterNum&&t._verseNum===this._verseNum&&t.verse===this.verse&&t.versification!=null&&this.versification!=null&&t.versification.equals(this.versification):!1}allVerses(t=!1,n=oe.verseRangeSeparators,r=oe.verseSequenceIndicators){if(this._verse==null||this.chapterNum<=0)return[this.clone()];const o=[],i=ci(this._verse,r);for(const a of i.map(l=>ci(l,n))){const l=this.clone();l.verse=a[0];const c=l.verseNum;if(o.push(l),a.length>1){const u=this.clone();if(u.verse=a[1],!t)for(let p=c+1;pa)return 3;if(r===a)return 4;r=a}return 0}get internalValid(){return this.versification==null?1:this._bookNum<=0||this._bookNum>Fe.lastBook?2:(Fe.isCanonical(this._bookNum),0)}setEmpty(t=oe.defaultVersification){this._bookNum=0,this._chapterNum=-1,this._verse=void 0,this.versification=t}updateInternal(t,n,r){this.bookNum=Fe.bookIdToNumber(t),this.chapter=n,this.verse=r}};te(we,"defaultVersification",St.English),te(we,"verseRangeSeparator","-"),te(we,"verseSequenceIndicator",","),te(we,"verseRangeSeparators",[we.verseRangeSeparator]),te(we,"verseSequenceIndicators",[we.verseSequenceIndicator]),te(we,"chapterDigitShifter",1e3),te(we,"bookDigitShifter",we.chapterDigitShifter*we.chapterDigitShifter),te(we,"bcvMaxValue",we.chapterDigitShifter-1),te(we,"ValidStatusType",Cs);class Wt extends Error{}function an({variant:e="outlined",id:t,isDisabled:n=!1,hasError:r=!1,isFullWidth:o=!1,helperText:i,label:a,placeholder:l,isRequired:c=!1,className:u,defaultValue:p,value:f,onChange:d,onFocus:b,onBlur:v}){return P.jsx(pe.TextField,{variant:e,id:t,disabled:n,error:r,fullWidth:o,helperText:i,label:a,placeholder:l,required:c,className:`papi-textfield ${u??""}`,defaultValue:p,value:f,onChange:d,onFocus:b,onBlur:v})}let pr;const dr=()=>(pr||(pr=Fe.allBookIds.map(e=>({bookId:e,label:Fe.bookIdToEnglishName(e)}))),pr);function ef({scrRef:e,handleSubmit:t,id:n}){const r=c=>{t(c)},o=(c,u)=>{const f={bookNum:Fe.bookIdToNumber(u.bookId),chapterNum:1,verseNum:1};r(f)},i=c=>{t({...e,chapterNum:+c.target.value})},a=c=>{t({...e,verseNum:+c.target.value})},l=ie.useMemo(()=>dr()[e.bookNum-1],[e.bookNum]);return P.jsxs("span",{id:n,children:[P.jsx(Sn,{title:"Book",className:"papi-ref-selector book",value:l,options:dr(),onChange:o,isClearable:!1,width:200}),P.jsx(lt,{onClick:()=>r(Le.offsetBook(e,-1)),isDisabled:e.bookNum<=Le.FIRST_SCR_BOOK_NUM,children:"<"}),P.jsx(lt,{onClick:()=>r(Le.offsetBook(e,1)),isDisabled:e.bookNum>=dr().length,children:">"}),P.jsx(an,{className:"papi-ref-selector chapter-verse",label:"Chapter",value:e.chapterNum,onChange:i}),P.jsx(lt,{onClick:()=>t(Le.offsetChapter(e,-1)),isDisabled:e.chapterNum<=Le.FIRST_SCR_CHAPTER_NUM,children:"<"}),P.jsx(lt,{onClick:()=>t(Le.offsetChapter(e,1)),isDisabled:e.chapterNum>=Le.getChaptersForBook(e.bookNum),children:">"}),P.jsx(an,{className:"papi-ref-selector chapter-verse",label:"Verse",value:e.verseNum,onChange:a}),P.jsx(lt,{onClick:()=>t(Le.offsetVerse(e,-1)),isDisabled:e.verseNum<=Le.FIRST_SCR_VERSE_NUM,children:"<"}),P.jsx(lt,{onClick:()=>t(Le.offsetVerse(e,1)),children:">"})]})}function tf({onSearch:e,placeholder:t,isFullWidth:n}){const[r,o]=ie.useState(""),i=a=>{o(a),e(a)};return P.jsx(pe.Paper,{component:"form",className:"search-bar-paper",children:P.jsx(an,{isFullWidth:n,className:"search-bar-input",placeholder:t,value:r,onChange:a=>i(a.target.value)})})}function nf({id:e,isDisabled:t=!1,orientation:n="horizontal",min:r=0,max:o=100,step:i=1,showMarks:a=!1,defaultValue:l,value:c,valueLabelDisplay:u="off",className:p,onChange:f,onChangeCommitted:d}){return P.jsx(pe.Slider,{id:e,disabled:t,orientation:n,min:r,max:o,step:i,marks:a,defaultValue:l,value:c,valueLabelDisplay:u,className:`papi-slider ${n} ${p??""}`,onChange:f,onChangeCommitted:d})}function rf({autoHideDuration:e=void 0,id:t,isOpen:n=!1,className:r,onClose:o,anchorOrigin:i={vertical:"bottom",horizontal:"left"},ContentProps:a,children:l}){const c={action:(a==null?void 0:a.action)||l,message:a==null?void 0:a.message,className:r};return P.jsx(pe.Snackbar,{autoHideDuration:e??void 0,open:n,onClose:o,anchorOrigin:i,id:t,ContentProps:c})}function of({id:e,isChecked:t,isDisabled:n=!1,hasError:r=!1,className:o,onChange:i}){return P.jsx(pe.Switch,{id:e,checked:t,disabled:n,className:`papi-switch ${r?"error":""} ${o??""}`,onChange:i})}function ui({onRowChange:e,row:t,column:n}){const r=o=>{e({...t,[n.key]:o.target.value})};return P.jsx(an,{defaultValue:t[n.key],onChange:r})}const sf=({onChange:e,disabled:t,checked:n,...r})=>{const o=i=>{e(i.target.checked,i.nativeEvent.shiftKey)};return P.jsx(di,{...r,isChecked:n,isDisabled:t,onChange:o})};function af({columns:e,sortColumns:t,onSortColumnsChange:n,onColumnResize:r,defaultColumnWidth:o,defaultColumnMinWidth:i,defaultColumnMaxWidth:a,defaultColumnSortable:l=!0,defaultColumnResizable:c=!0,rows:u,enableSelectColumn:p,selectColumnWidth:f=50,rowKeyGetter:d,rowHeight:b=35,headerRowHeight:v=35,selectedRows:g,onSelectedRowsChange:h,onRowsChange:E,onCellClick:$,onCellDoubleClick:y,onCellContextMenu:x,onCellKeyDown:m,direction:k="ltr",enableVirtualization:S=!0,onCopy:j,onPaste:A,onScroll:I,className:B,id:z}){const W=ie.useMemo(()=>{const L=e.map(_=>typeof _.editable=="function"?{..._,editable:D=>!!_.editable(D),renderEditCell:_.renderEditCell||ui}:_.editable&&!_.renderEditCell?{..._,renderEditCell:ui}:_.renderEditCell&&!_.editable?{..._,editable:!1}:_);return p?[{...po.SelectColumn,minWidth:f},...L]:L},[e,p,f]);return P.jsx(po,{columns:W,defaultColumnOptions:{width:o,minWidth:i,maxWidth:a,sortable:l,resizable:c},sortColumns:t,onSortColumnsChange:n,onColumnResize:r,rows:u,rowKeyGetter:d,rowHeight:b,headerRowHeight:v,selectedRows:g,onSelectedRowsChange:h,onRowsChange:E,onCellClick:$,onCellDoubleClick:y,onCellContextMenu:x,onCellKeyDown:m,direction:k,enableVirtualization:S,onCopy:j,onPaste:A,onScroll:I,renderers:{renderCheckbox:sf},className:`papi-table ${B??"rdg-light"}`,id:z})}function lf({menuProvider:e,commandHandler:t,className:n,id:r,children:o}){const i=ie.useRef(void 0);return P.jsx("div",{ref:i,style:{position:"relative"},children:P.jsx(pe.AppBar,{position:"static",id:r,children:P.jsxs(pe.Toolbar,{className:`papi-toolbar ${n??""}`,variant:"dense",children:[e?P.jsx(Ts,{commandHandler:t,containerRef:i,normalMenu:e(!1),fullMenu:e(!0)}):void 0,o?P.jsx("div",{className:"papi-toolbar-children",children:o}):void 0]})})})}const cf=(e,t)=>{ie.useEffect(()=>{if(!e)return()=>{};const n=e(t);return()=>{n()}},[e,t])};function uf(e){return{preserveValue:!0,...e}}const Rs=(e,t,n={})=>{const r=ie.useRef(t);r.current=t;const o=ie.useRef(n);o.current=uf(o.current);const[i,a]=ie.useState(()=>r.current),[l,c]=ie.useState(!0);return ie.useEffect(()=>{let u=!0;return c(!!e),(async()=>{if(e){const p=await e();u&&(a(()=>p),c(!1))}})(),()=>{u=!1,o.current.preserveValue||a(()=>r.current)}},[e]),[i,l]},fr=()=>!1,pf=(e,t)=>{const[n]=Rs(ie.useCallback(async()=>{if(!e)return fr;const r=await Promise.resolve(e(t));return async()=>r()},[t,e]),fr,{preserveValue:!1});ie.useEffect(()=>()=>{n!==fr&&n()},[n])};exports.Button=lt;exports.ChapterRangeSelector=Us;exports.Checkbox=di;exports.ComboBox=Sn;exports.ContextMenu=Ld;exports.GridMenu=us;exports.HamburgerMenuButton=Ts;exports.IconButton=Vd;exports.LabelPosition=pt;exports.MenuItem=Wr;exports.RefSelector=ef;exports.SearchBar=tf;exports.Slider=nf;exports.Snackbar=rf;exports.Switch=of;exports.Table=af;exports.TextField=an;exports.Toolbar=lf;exports.useEvent=cf;exports.useEventAsync=pf;exports.usePromise=Rs;function df(e,t="top"){if(!e||typeof document>"u")return;const n=document.head||document.querySelector("head"),r=n.querySelector(":first-child"),o=document.createElement("style");o.appendChild(document.createTextNode(e)),t==="top"&&r?n.insertBefore(o,r):n.appendChild(o)}df(`.papi-checkbox { + background-color: transparent; } -.papi-button.primary { - background-color: #1ea7fd; - color: white; +.papi-checkbox.error { + color: #f00; } -.papi-button.secondary { - background-color: transparent; - box-shadow: rgba(0, 0, 0, 0.15) 0 0 0 1px inset; - color: #333; +.papi-checkbox.error:hover { + background-color: rgba(255, 0, 0, 0.2); } -.papi-button.paratext { - background-color: darkgreen; +.papi-checkbox.paratext { color: greenyellow; } -.papi-button.paratext.bright { - background-color: greenyellow; +.papi-checkbox-label.paratext { color: darkgreen; } -.papi-button.video { - background-color: red; - color: white; +.papi-checkbox.paratext:hover { + background-color: rgba(0, 100, 0, 0.3); } -.papi-button.video a, -.papi-button.video a:visited { - color: white; - text-decoration: none; +.papi-checkbox.paratext.bright { + color: darkgreen; } -.papi-button.video a:hover { - color: white; - text-decoration: underline; -} -.papi-toolbar { - background-color: #eee; - color: black; +.papi-checkbox-label.paratext.bright { + background-color: greenyellow; } -.papi-toolbar.paratext { - background-color: darkgreen; - color: greenyellow; +.papi-checkbox.paratext.bright:hover { + background-color: rgba(173, 255, 47, 0.3); } -.papi-toolbar.paratext.bright { - background-color: greenyellow; - color: darkgreen; +.papi-checkbox.below, +.papi-checkbox.above { + text-align: center; } - -.papi-menu-drawer-paper { - height: fit-content !important; - position: absolute !important; +.search-bar-paper { + display: flex; + align-items: center; } -.papi-menu-children { +.search-button { padding: 10px; - position: relative; } -.papi-icon-button { +.papi-button { border: 0; border-radius: 3em; cursor: pointer; display: inline-block; + font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-weight: 700; + line-height: 1; } -.papi-icon-button.primary { +.papi-button.primary { background-color: #1ea7fd; color: white; } -.papi-icon-button.secondary { +.papi-button.secondary { background-color: transparent; + box-shadow: rgba(0, 0, 0, 0.15) 0 0 0 1px inset; color: #333; } -.papi-icon-button.paratext { +.papi-button.paratext { background-color: darkgreen; color: greenyellow; } -.papi-icon-button.paratext.bright { +.papi-button.paratext.bright { background-color: greenyellow; color: darkgreen; } -.papi-slider { - background-color: transparent; - color: #1ea7fd; -} -.papi-slider.vertical { - min-height: 200px; +.papi-button.video { + background-color: red; + color: white; } -.papi-slider.paratext { - background-color: darkgreen; - color: greenyellow; +.papi-button.video a, +.papi-button.video a:visited { + color: white; + text-decoration: none; } -.papi-slider.paratext.bright { - background-color: greenyellow; - color: darkgreen; +.papi-button.video a:hover { + color: white; + text-decoration: underline; } .papi-switch { background-color: transparent; @@ -211,18 +191,40 @@ const theme2 = createTheme({ palette: { background-color: greenyellow; color: darkgreen; } -.papi-menu-item { - background-color: transparent; +.papi-snackbar { + font-family: Arial, Helvetica, sans-serif; } -.papi-menu-icon-trailing { - margin-left: 10px; - place-content: flex-end; +.papi-snackbar.primary { + background: #1ea7fd; + color: white; } -.papi-menu-item img { - max-width: 24px; - max-height: 24px; +.papi-snackbar.external { + background-color: lightsteelblue; + border-color: white; + border-style: dotted; + padding: 2%; + width: 30%; +} + +.papi-snackbar.secondary { + background: transparent; + color: #333; +} + +.papi-snackbar.alert { + background: lightcoral; +} + +.papi-snackbar.paratext { + background: darkgreen; + color: greenyellow; +} + +.papi-snackbar.bright { + background: greenyellow; + color: darkgreen; } .papi-combo-box { background-color: transparent; @@ -245,91 +247,44 @@ const theme2 = createTheme({ palette: { background-color: greenyellow; color: darkgreen; } -.search-bar-paper { - display: flex; - align-items: center; -} - -.search-button { - padding: 10px; -} -.papi-checkbox { - background-color: transparent; +.papi-icon-button { + border: 0; + border-radius: 3em; + cursor: pointer; + display: inline-block; } -.papi-checkbox.error { - color: #f00; +.papi-icon-button.primary { + background-color: #1ea7fd; + color: white; } -.papi-checkbox.error:hover { - background-color: rgba(255, 0, 0, 0.2); +.papi-icon-button.secondary { + background-color: transparent; + color: #333; } -.papi-checkbox.paratext { +.papi-icon-button.paratext { + background-color: darkgreen; color: greenyellow; } -.papi-checkbox-label.paratext { - color: darkgreen; -} - -.papi-checkbox.paratext:hover { - background-color: rgba(0, 100, 0, 0.3); -} - -.papi-checkbox.paratext.bright { - color: darkgreen; -} - -.papi-checkbox-label.paratext.bright { +.papi-icon-button.paratext.bright { background-color: greenyellow; + color: darkgreen; } - -.papi-checkbox.paratext.bright:hover { - background-color: rgba(173, 255, 47, 0.3); -} - -.papi-checkbox.below, -.papi-checkbox.above { - text-align: center; -} -.papi-context-menu-target { - white-space: nowrap; - cursor: context-menu; -} - -.papi-context-menu-target * { - white-space: normal; -} - -.papi-context-menu-target:hover { - box-shadow: 0 0 10px rgba(0, 0, 0, 0.07); /* Faint shadowy background */ -} - -.papi-context-menu-target.paratext:hover { - box-shadow: 0 0 10px rgba(0, 100, 0, 0.07); /* Faint shadowy background */ -} - -.papi-context-menu-target.paratext.bright:hover { - box-shadow: 0 0 10px rgba(173, 255, 47, 0.07); /* Faint shadowy background */ -} - -.papi-context-menu.paratext ul { - background-color: rgb(76, 106, 76); - color: rgb(214, 255, 152); +.papi-menu-item { + background-color: transparent; } -.papi-context-menu.paratext.bright ul { - color: rgb(76, 106, 76); - background-color: rgb(214, 255, 152); -} -.papi-ref-selector.book { - display: inline-block; - vertical-align: middle; +.papi-menu-icon-trailing { + margin-left: 10px; + place-content: flex-end; } -.papi-ref-selector.chapter-verse { - width: 75px; +.papi-menu-item img { + max-width: 24px; + max-height: 24px; } .papi-multi-column-menu { background-color: rgb(222, 222, 222); @@ -365,48 +320,84 @@ const theme2 = createTheme({ palette: { color: rgb(76, 106, 76); background-color: rgb(214, 255, 152); } -.papi-table.paratext { +.papi-ref-selector.book { + display: inline-block; + vertical-align: middle; +} + +.papi-ref-selector.chapter-verse { + width: 75px; +} +.papi-toolbar { + background-color: #eee; + color: black; +} + +.papi-toolbar.paratext { background-color: darkgreen; color: greenyellow; } -.papi-table.paratext.bright { - color: darkgreen; +.papi-toolbar.paratext.bright { background-color: greenyellow; + color: darkgreen; } -.papi-snackbar { - font-family: Arial, Helvetica, sans-serif; + +.papi-menu-drawer-paper { + height: fit-content !important; + position: absolute !important; } -.papi-snackbar.primary { - background: #1ea7fd; - color: white; +.papi-menu-children { + padding: 10px; + position: relative; +} +.papi-context-menu-target { + white-space: nowrap; + cursor: context-menu; } -.papi-snackbar.external { - background-color: lightsteelblue; - border-color: white; - border-style: dotted; - padding: 2%; - width: 30%; +.papi-context-menu-target * { + white-space: normal; } -.papi-snackbar.secondary { - background: transparent; - color: #333; +.papi-context-menu-target:hover { + box-shadow: 0 0 10px rgba(0, 0, 0, 0.07); /* Faint shadowy background */ } -.papi-snackbar.alert { - background: lightcoral; +.papi-context-menu-target.paratext:hover { + box-shadow: 0 0 10px rgba(0, 100, 0, 0.07); /* Faint shadowy background */ } -.papi-snackbar.paratext { - background: darkgreen; +.papi-context-menu-target.paratext.bright:hover { + box-shadow: 0 0 10px rgba(173, 255, 47, 0.07); /* Faint shadowy background */ +} + +.papi-context-menu.paratext ul { + background-color: rgb(76, 106, 76); + color: rgb(214, 255, 152); +} + +.papi-context-menu.paratext.bright ul { + color: rgb(76, 106, 76); + background-color: rgb(214, 255, 152); +} +.papi-slider { + background-color: transparent; + color: #1ea7fd; +} + +.papi-slider.vertical { + min-height: 200px; +} + +.papi-slider.paratext { + background-color: darkgreen; color: greenyellow; } -.papi-snackbar.bright { - background: greenyellow; +.papi-slider.paratext.bright { + background-color: greenyellow; color: darkgreen; } @layer rdg.MeasuringCell {.m1l09lto7-0-0-beta-34 { @@ -854,5 +845,14 @@ const theme2 = createTheme({ palette: { } } +.papi-table.paratext { + background-color: darkgreen; + color: greenyellow; +} + +.papi-table.paratext.bright { + color: darkgreen; + background-color: greenyellow; +} `,"top"); //# sourceMappingURL=index.cjs.map diff --git a/lib/platform-bible-react/dist/index.cjs.map b/lib/platform-bible-react/dist/index.cjs.map index a498cccc4a..592589def8 100644 --- a/lib/platform-bible-react/dist/index.cjs.map +++ b/lib/platform-bible-react/dist/index.cjs.map @@ -1 +1 @@ -{"version":3,"file":"index.cjs","sources":["../src/components/button.component.tsx","../src/components/combo-box.component.tsx","../src/components/chapter-range-selector.component.tsx","../src/components/label-position.model.ts","../src/components/checkbox.component.tsx","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/FocusTrap/FocusTrap.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@mui/base/unstable_useModal/ModalManager.js","../../../node_modules/@mui/base/unstable_useModal/useModal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/styles/getOverlayAlpha.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../src/components/menu-item.component.tsx","../src/components/grouped-menu-item-list.component.tsx","../src/components/top-level-menu.component.tsx","../src/components/grid-menu.component.tsx","../../../node_modules/@mui/material/List/ListContext.js","../../../node_modules/@mui/material/List/listClasses.js","../../../node_modules/@mui/material/List/List.js","../../../node_modules/@mui/material/MenuList/MenuList.js","../../../node_modules/@mui/material/Fade/Fade.js","../../../node_modules/@mui/material/Backdrop/backdropClasses.js","../../../node_modules/@mui/material/Backdrop/Backdrop.js","../../../node_modules/@mui/material/Modal/modalClasses.js","../../../node_modules/@mui/material/Modal/Modal.js","../../../node_modules/@mui/material/Paper/paperClasses.js","../../../node_modules/@mui/material/Paper/Paper.js","../../../node_modules/@mui/material/Popover/popoverClasses.js","../../../node_modules/@mui/material/Popover/Popover.js","../../../node_modules/@mui/material/Menu/menuClasses.js","../../../node_modules/@mui/material/Menu/Menu.js","../src/components/context-menu.component.tsx","../src/components/icon-button.component.tsx","../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/components/text-field.component.tsx","../src/components/ref-selector.component.tsx","../src/components/search-bar.component.tsx","../src/components/slider.component.tsx","../src/components/snackbar.component.tsx","../src/components/switch.component.tsx","../src/components/table.component.tsx","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/components/toolbar.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-promise.hook.ts","../src/hooks/use-event-async.hook.ts"],"sourcesContent":["import { Button as MuiButton } from '@mui/material';\nimport { MouseEventHandler, PropsWithChildren } from 'react';\nimport './button.component.css';\n\nexport type ButtonProps = PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n /**\n * Enabled status of button\n *\n * @default false\n */\n isDisabled?: boolean;\n /** Additional css classes to help with unique styling of the button */\n className?: string;\n /** Optional click handler */\n onClick?: MouseEventHandler;\n /** Optional context menu handler */\n onContextMenu?: MouseEventHandler;\n}>;\n\n/**\n * Button a user can click to do something\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction Button({\n id,\n isDisabled = false,\n className,\n onClick,\n onContextMenu,\n children,\n}: ButtonProps) {\n return (\n \n {children}\n \n );\n}\n\nexport default Button;\n","import {\n Autocomplete as MuiComboBox,\n AutocompleteChangeDetails,\n AutocompleteChangeReason,\n TextField as MuiTextField,\n AutocompleteValue,\n} from '@mui/material';\nimport { FocusEventHandler, SyntheticEvent } from 'react';\nimport './combo-box.component.css';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\nexport type ComboBoxValue = AutocompleteValue;\nexport type ComboBoxChangeDetails = AutocompleteChangeDetails;\nexport type ComboBoxChangeReason = AutocompleteChangeReason;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n title?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the component can be cleared, and will have a button to do so\n *\n * @default true\n */\n isClearable?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Width of the combobox in pixels. Setting this prop overrides the `isFullWidth` prop */\n width?: number;\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** Additional css classes to help with unique styling of the combo box */\n className?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (\n event: SyntheticEvent,\n value: ComboBoxValue,\n reason?: ComboBoxChangeReason,\n details?: ComboBoxChangeDetails | undefined,\n ) => void;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler; // Storybook crashes when giving the combo box focus\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n};\n\n/**\n * Dropdown selector displaying various options from which to choose\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction ComboBox({\n id,\n title,\n isDisabled = false,\n isClearable = true,\n hasError = false,\n isFullWidth = false,\n width,\n options = [],\n className,\n value,\n onChange,\n onFocus,\n onBlur,\n getOptionLabel,\n}: ComboBoxProps) {\n return (\n \n id={id}\n disablePortal\n disabled={isDisabled}\n disableClearable={!isClearable}\n fullWidth={isFullWidth}\n options={options}\n className={`papi-combo-box ${hasError ? 'error' : ''} ${className ?? ''}`}\n value={value}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n getOptionLabel={getOptionLabel}\n renderInput={(props) => (\n \n )}\n />\n );\n}\n\nexport default ComboBox;\n","import { SyntheticEvent, useMemo } from 'react';\nimport { FormControlLabel } from '@mui/material';\nimport ComboBox from './combo-box.component';\n\nexport type ChapterRangeSelectorProps = {\n startChapter: number;\n endChapter: number;\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n startChapter,\n endChapter,\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const numberArray = useMemo(\n () => Array.from({ length: chapterCount }, (_, index) => index + 1),\n [chapterCount],\n );\n\n const onChangeStartChapter = (_event: SyntheticEvent, value: number) => {\n handleSelectStartChapter(value);\n if (value > endChapter) {\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (_event: SyntheticEvent, value: number) => {\n handleSelectEndChapter(value);\n if (value < startChapter) {\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n onChangeStartChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"start chapter\"\n isClearable={false}\n options={numberArray}\n getOptionLabel={(option) => option.toString()}\n value={startChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"Chapters\"\n labelPlacement=\"start\"\n />\n onChangeEndChapter(e, value as number)}\n className=\"book-selection-chapter\"\n key=\"end chapter\"\n isClearable={false}\n options={numberArray}\n getOptionLabel={(option) => option.toString()}\n value={endChapter}\n isDisabled={isDisabled}\n />\n }\n label=\"to\"\n labelPlacement=\"start\"\n />\n \n );\n}\n","enum LabelPosition {\n After = 'after',\n Before = 'before',\n Above = 'above',\n Below = 'below',\n}\n\nexport default LabelPosition;\n","import { FormLabel, Checkbox as MuiCheckbox } from '@mui/material';\nimport { ChangeEvent } from 'react';\nimport './checkbox.component.css';\nimport LabelPosition from './label-position.model';\n\nexport type CheckboxProps = {\n /** Optional unique identifier */\n id?: string;\n /** If `true`, the component is checked. */\n isChecked?: boolean;\n /**\n * If specified, the label that will appear associated with the checkbox.\n *\n * @default '' (no label will be shown)\n */\n labelText?: string;\n /**\n * Indicates the position of the label relative to the checkbox.\n *\n * @default 'after'\n */\n labelPosition?: LabelPosition;\n /**\n * If `true`, the component is in the indeterminate state.\n *\n * @default false\n */\n isIndeterminate?: boolean;\n /** If `true`, the component is checked by default. */\n isDefaultChecked?: boolean;\n /**\n * Enabled status of switch\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * True when (input related to) switch is erroneous\n *\n * @default false\n */\n hasError?: boolean;\n /** Additional css classes to help with unique styling of the switch */\n className?: string;\n /**\n * Callback fired when the state is changed.\n *\n * @param event The event source of the callback. You can pull out the new value by accessing\n * event.target.value (string). You can pull out the new checked state by accessing\n * event.target.checked (boolean).\n */\n onChange?: (event: ChangeEvent) => void;\n};\n\n/* function CheckboxContainer({ labelText? = '', isDisabled : boolean, hasError : boolean, children? }) {\n return (\n \n {children}\n labelText\n \n );\n} */\n\n/** Primary UI component for user interaction */\nfunction Checkbox({\n id,\n isChecked,\n labelText = '',\n labelPosition = LabelPosition.After,\n isIndeterminate = false,\n isDefaultChecked,\n isDisabled = false,\n hasError = false,\n className,\n onChange,\n}: CheckboxProps) {\n const checkBox = (\n \n );\n\n let result;\n\n if (labelText) {\n const preceding =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.Above;\n\n const labelSpan = (\n \n {labelText}\n \n );\n\n const labelIsInline =\n labelPosition === LabelPosition.Before || labelPosition === LabelPosition.After;\n\n const label = labelIsInline ? labelSpan :
{labelSpan}
;\n\n const checkBoxElement = labelIsInline ? checkBox :
{checkBox}
;\n\n result = (\n \n {preceding && label}\n {checkBoxElement}\n {!preceding && label}\n \n );\n } else {\n result = checkBox;\n }\n return result;\n}\n\nexport default Checkbox;\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = 0;\n this.clear = () => {\n if (this.currentId !== 0) {\n clearTimeout(this.currentId);\n this.currentId = 0;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = 0;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/488fd8afc535ca3a6ad4dc581f5e89217b6a36ac/js/src/util/scrollbar.js#L14-L18\nexport default function getScrollbarSize(doc) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = doc.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n}","export function getTypeByValue(value) {\n const valueType = typeof value;\n switch (valueType) {\n case 'number':\n if (Number.isNaN(value)) {\n return 'NaN';\n }\n if (!Number.isFinite(value)) {\n return 'Infinity';\n }\n if (value !== Math.floor(value)) {\n return 'float';\n }\n return 'number';\n case 'object':\n if (value === null) {\n return 'null';\n }\n return value.constructor.name;\n default:\n return valueType;\n }\n}\n\n// IE 11 support\nfunction ponyfillIsInteger(x) {\n // eslint-disable-next-line no-restricted-globals\n return typeof x === 'number' && isFinite(x) && Math.floor(x) === x;\n}\nconst isInteger = Number.isInteger || ponyfillIsInteger;\nfunction requiredInteger(props, propName, componentName, location) {\n const propValue = props[propName];\n if (propValue == null || !isInteger(propValue)) {\n const propType = getTypeByValue(propValue);\n return new RangeError(`Invalid ${location} \\`${propName}\\` of type \\`${propType}\\` supplied to \\`${componentName}\\`, expected \\`integer\\`.`);\n }\n return null;\n}\nfunction validator(props, propName, ...other) {\n const propValue = props[propName];\n if (propValue === undefined) {\n return null;\n }\n return requiredInteger(props, propName, ...other);\n}\nfunction validatorNoop() {\n return null;\n}\nvalidator.isRequired = requiredInteger;\nvalidatorNoop.isRequired = validatorNoop;\nexport default process.env.NODE_ENV === 'production' ? validatorNoop : validator;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { exactProp, elementAcceptingRef, unstable_useForkRef as useForkRef, unstable_ownerDocument as ownerDocument } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n// Inspired by https://github.com/focus-trap/tabbable\nconst candidatesSelector = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'].join(',');\nfunction getTabIndex(node) {\n const tabindexAttr = parseInt(node.getAttribute('tabindex') || '', 10);\n if (!Number.isNaN(tabindexAttr)) {\n return tabindexAttr;\n }\n\n // Browsers do not return `tabIndex` correctly for contentEditable nodes;\n // https://bugs.chromium.org/p/chromium/issues/detail?id=661108&q=contenteditable%20tabindex&can=2\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n // in Chrome,
,