diff --git a/assets/localization/eng.json b/assets/localization/eng.json index fe18b3dee9..97415c7649 100644 --- a/assets/localization/eng.json +++ b/assets/localization/eng.json @@ -1,4 +1,23 @@ { + "insertNote": "Insert Note", + "mainMenu_aboutPlatformBible": "About Platform.Bible", + "mainMenu_downloadSlashInstallResources": "Download/Install Resources", + "mainMenu_downloadSlashUpdateProject": "Download/Update Project", + "mainMenu_exit": "Exit", + "mainMenu_help": "Help", + "mainMenu_layout": "Layout", + "mainMenu_openHelloWorldProject": "Open Hello World Project", + "mainMenu_openProject": "Open Project", + "mainMenu_openResourceViewer": "Open Resource Viewer", + "mainMenu_project": "Project", + "mainMenu_settings": "Settings", + "mainMenu_visitSupportBible": "Visit Support.Bible", + "mainMenu_window": "Window", "some_localization_key": "This is the English text for %some_localization_key%.", - "submitButton": "Submit" + "submitButton": "Submit", + "webView_edit": "Edit", + "webView_project": "Project", + "webView_projectAssignmentsAndProgress": "Assignments and Progress", + "webView_projectSendReceive": "Send/Receive this project", + "wordList": "Word List" } diff --git a/cspell.json b/cspell.json index e6f43777b4..d8b10e1fa6 100644 --- a/cspell.json +++ b/cspell.json @@ -18,6 +18,8 @@ "asyncs", "autodocs", "biblionexus", + "camelcase", + "Consts", "deuterocanon", "dockbox", "electronmon", diff --git a/extensions/src/hello-world/contributions/menus.json b/extensions/src/hello-world/contributions/menus.json index f68441dcd6..12aa400010 100644 --- a/extensions/src/hello-world/contributions/menus.json +++ b/extensions/src/hello-world/contributions/menus.json @@ -2,7 +2,15 @@ "mainMenu": { "columns": {}, "groups": {}, - "items": [] + "items": [ + { + "label": "%mainMenu_openHelloWorldProject%", + "localizeNotes": "Application main menu > Project > Open Hello World Project", + "group": "platform.projectProjects", + "order": 1000.1, + "command": "helloWorld.openProject" + } + ] }, "defaultWebViewTopMenu": { "columns": {}, diff --git a/extensions/src/resource-viewer/contributions/menus.json b/extensions/src/resource-viewer/contributions/menus.json index f68441dcd6..3fd018e415 100644 --- a/extensions/src/resource-viewer/contributions/menus.json +++ b/extensions/src/resource-viewer/contributions/menus.json @@ -2,7 +2,15 @@ "mainMenu": { "columns": {}, "groups": {}, - "items": [] + "items": [ + { + "label": "%mainMenu_openResourceViewer%", + "localizeNotes": "Application main menu > Project > Open Resource Viewer", + "group": "platform.projectResources", + "order": -100, + "command": "resourceViewer.open" + } + ] }, "defaultWebViewTopMenu": { "columns": {}, diff --git a/lib/papi-dts/papi.d.ts b/lib/papi-dts/papi.d.ts index 1ef3675a5b..cf55164bdb 100644 --- a/lib/papi-dts/papi.d.ts +++ b/lib/papi-dts/papi.d.ts @@ -4815,6 +4815,7 @@ declare module 'shared/services/menu-data.service-model' { MultiColumnMenu, ReferencedItem, WebViewMenu, + Localized, } from 'platform-bible-utils'; import { DataProviderDataType, @@ -4837,8 +4838,8 @@ declare module 'shared/services/menu-data.service-model' { dataProviderName: 'platform.menuDataServiceDataProvider'; }>; export type MenuDataDataTypes = { - MainMenu: DataProviderDataType; - WebViewMenu: DataProviderDataType; + MainMenu: DataProviderDataType, never>; + WebViewMenu: DataProviderDataType, never>; }; module 'papi-shared-types' { interface DataProviders { @@ -4850,6 +4851,8 @@ declare module 'shared/services/menu-data.service-model' { * Service that allows to get and store menu data */ export type IMenuDataService = { + /** Rebuild the menus with the latest inputs from all extensions. */ + rebuildMenus(): Promise; /** * * Get menu content for the main menu @@ -4887,7 +4890,7 @@ declare module 'shared/services/menu-data.service-model' { */ subscribeMainMenu( mainMenuType: undefined, - callback: (menuContent: MultiColumnMenu) => void, + callback: (menuContent: Localized) => void, options?: DataProviderSubscriberOptions, ): Promise; /** @@ -4918,7 +4921,7 @@ declare module 'shared/services/menu-data.service-model' { */ subscribeWebViewMenu( webViewType: ReferencedItem, - callback: (menuContent: WebViewMenu) => void, + callback: (menuContent: Localized) => void, options?: DataProviderSubscriberOptions, ): Promise; } & OnDidDispose & diff --git a/lib/platform-bible-react/dist/index.cjs b/lib/platform-bible-react/dist/index.cjs index 2c3db0f0b6..425b512a59 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 k=require("react/jsx-runtime"),de=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 ui(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=ui(ie),Ls=ui(Gt);function lt({id:e,isDisabled:t=!1,className:n,onClick:r,onContextMenu:o,children:i}){return k.jsx(de.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:d,onFocus:f,onBlur:p,getOptionLabel:b}){return k.jsx(de.Autocomplete,{id:e,disablePortal:!0,disabled:n,disableClearable:!r,fullWidth:i,options:l,className:`papi-combo-box ${o?"error":""} ${c??""}`,value:u,onChange:d,onFocus:f,onBlur:p,getOptionLabel:b,renderInput:v=>k.jsx(de.TextField,{...v,error:o,fullWidth:i,disabled:n,label:t,style:{width:a}})})}function Fs({startChapter:e,endChapter:t,handleSelectStartChapter:n,handleSelectEndChapter:r,isDisabled:o,chapterCount:i}){const a=ie.useMemo(()=>Array.from({length:i},(u,d)=>d+1),[i]),l=(u,d)=>{n(d),d>t&&r(d)},c=(u,d)=>{r(d),dl(u,d),className:"book-selection-chapter",isClearable:!1,options:a,getOptionLabel:u=>u.toString(),value:e,isDisabled:o},"start chapter"),label:"Chapters",labelPlacement:"start"}),k.jsx(de.FormControlLabel,{className:"book-selection-chapter-form-label end",disabled:o,control:k.jsx(Sn,{onChange:(u,d)=>c(u,d),className:"book-selection-chapter",isClearable:!1,options:a,getOptionLabel:u=>u.toString(),value:t,isDisabled:o},"end chapter"),label:"to",labelPlacement:"start"})]})}var dt=(e=>(e.After="after",e.Before="before",e.Above="above",e.Below="below",e))(dt||{});function di({id:e,isChecked:t,labelText:n="",labelPosition:r=dt.After,isIndeterminate:o=!1,isDefaultChecked:i,isDisabled:a=!1,hasError:l=!1,className:c,onChange:u}){const d=k.jsx(de.Checkbox,{id:e,checked:t,indeterminate:o,defaultChecked:i,disabled:a,className:`papi-checkbox ${l?"error":""} ${c??""}`,onChange:u});let f;if(n){const p=r===dt.Before||r===dt.Above,b=k.jsx("span",{className:`papi-checkbox-label ${l?"error":""} ${c??""}`,children:n}),v=r===dt.Before||r===dt.After,m=v?b:k.jsx("div",{children:b}),h=v?d:k.jsx("div",{children:d});f=k.jsxs(de.FormLabel,{className:`papi-checkbox ${r.toString()}`,disabled:a,error:l,children:[p&&m,h,!p&&m]})}else f=d;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=di(ne),Ls=di(Gt);function lt({id:e,isDisabled:t=!1,className:n,onClick:r,onContextMenu:o,children:i}){return k.jsx(de.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:d,onFocus:f,onBlur:p,getOptionLabel:b}){return k.jsx(de.Autocomplete,{id:e,disablePortal:!0,disabled:n,disableClearable:!r,fullWidth:i,options:l,className:`papi-combo-box ${o?"error":""} ${c??""}`,value:u,onChange:d,onFocus:f,onBlur:p,getOptionLabel:b,renderInput:v=>k.jsx(de.TextField,{...v,error:o,fullWidth:i,disabled:n,label:t,style:{width:a}})})}function Fs({startChapter:e,endChapter:t,handleSelectStartChapter:n,handleSelectEndChapter:r,isDisabled:o,chapterCount:i}){const a=ne.useMemo(()=>Array.from({length:i},(u,d)=>d+1),[i]),l=(u,d)=>{n(d),d>t&&r(d)},c=(u,d)=>{r(d),dl(u,d),className:"book-selection-chapter",isClearable:!1,options:a,getOptionLabel:u=>u.toString(),value:e,isDisabled:o},"start chapter"),label:"Chapters",labelPlacement:"start"}),k.jsx(de.FormControlLabel,{className:"book-selection-chapter-form-label end",disabled:o,control:k.jsx(Sn,{onChange:(u,d)=>c(u,d),className:"book-selection-chapter",isClearable:!1,options:a,getOptionLabel:u=>u.toString(),value:t,isDisabled:o},"end chapter"),label:"to",labelPlacement:"start"})]})}var dt=(e=>(e.After="after",e.Before="before",e.Above="above",e.Below="below",e))(dt||{});function pi({id:e,isChecked:t,labelText:n="",labelPosition:r=dt.After,isIndeterminate:o=!1,isDefaultChecked:i,isDisabled:a=!1,hasError:l=!1,className:c,onChange:u}){const d=k.jsx(de.Checkbox,{id:e,checked:t,indeterminate:o,defaultChecked:i,disabled:a,className:`papi-checkbox ${l?"error":""} ${c??""}`,onChange:u});let f;if(n){const p=r===dt.Before||r===dt.Above,b=k.jsx("span",{className:`papi-checkbox-label ${l?"error":""} ${c??""}`,children:n}),v=r===dt.Before||r===dt.After,m=v?b:k.jsx("div",{children:b}),h=v?d:k.jsx("div",{children:d});f=k.jsxs(de.FormLabel,{className:`papi-checkbox ${r.toString()}`,disabled:a,error:l,children:[p&&m,h,!p&&m]})}else f=d;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?p:O.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},rr}var or,Eo;function Ks(){if(Eo)return or;Eo=1;var e=Pr();function t(){}function n(){}return n.resetWarningCache=t,or=function(){function r(a,l,c,u,d,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}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 Xs=pi(),Ys=!0;mr.exports=Gs()(Xs.isElement,Ys)}else mr.exports=Ks()();var Js=mr.exports;const s=Vs(Js);function hi(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 pt(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 mi(e){if(!pt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=mi(e[n])}),t}function Ke(e,t,n={clone:!0}){const r=n.clone?w({},e):e;return pt(e)&&pt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(pt(t[o])&&o in e&&pt(e[o])?r[o]=Ke(e[o],t[o],n):n.clone?r[o]=pt(t[o])?mi(t[o]):t[o]:r[o]=t[o])}),r}function Zs(e){const{prototype:t={}}=e;return!!t.isReactComponent}function gi(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"&&!Zs(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 bi=At(s.element,gi);bi.isRequired=At(s.element.isRequired,gi);const ln=bi;function Qs(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ea(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"&&!Qs(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 ta=At(s.elementType,ea),na="exact-prop: ​";function vi(e){return process.env.NODE_ENV==="production"?e:w({},e,{[na]: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 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 re=Y(G,X,F,U,q+"."+X,n);if(re)return re}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 re=O[Y];if(r(O,Y)&&typeof re!="function")return B(F,U,q,Y,D(re));if(!re)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=re(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?p:O.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},rr}var or,To;function Ks(){if(To)return or;To=1;var e=Pr();function t(){}function n(){}return n.resetWarningCache=t,or=function(){function r(a,l,c,u,d,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}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 Xs=fi(),Ys=!0;mr.exports=Gs()(Xs.isElement,Ys)}else mr.exports=Ks()();var Js=mr.exports;const s=Vs(Js);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 pt(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(!pt(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 pt(e)&&pt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(pt(t[o])&&o in e&&pt(e[o])?r[o]=Ke(e[o],t[o],n):n.clone?r[o]=pt(t[o])?gi(t[o]):t[o]:r[o]=t[o])}),r}function Zs(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"&&!Zs(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 Qs(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ea(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"&&!Qs(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 ta=At(s.elementType,ea),na="exact-prop: ​";function yi(e){return process.env.NODE_ENV==="production"?e:w({},e,{[na]: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 xi(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 ca(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 ua(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 xe(e){return e&&e.ownerDocument||document}function Nt(e){return xe(e).defaultView||window}function da(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?w({},t.propTypes):null;return o=>(i,a,l,c,u,...d)=>{const f=u||a,p=n==null?void 0:n[f];if(p){const b=p(i,a,l,c,u,...d);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 pa=typeof window<"u"?T.useLayoutEffect:T.useEffect,ht=pa;let ko=0;function fa(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(ko+=1,n(`mui-${ko}`))},[t]),r}const Po=T["useId".toString()];function Ei(e){if(Po!==void 0){const t=Po();return e??t}return fa(e)}function ha(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 Ti({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 Oo;function oa(){return Oo||(Oo=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"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v=!1,m=!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===d||E||C===b||v||m||h||typeof C=="object"&&C!==null&&(C.$$typeof===p||C.$$typeof===f||C.$$typeof===i||C.$$typeof===a||C.$$typeof===c||C.$$typeof===y||C.getModuleId!==void 0))}function g(C){if(typeof C=="object"&&C!==null){var oe=C.$$typeof;switch(oe){case e:var be=C.type;switch(be){case n:case o:case r:case u:case d:return be;default:var Te=be&&be.$$typeof;switch(Te){case l:case a:case c:case p:case f:case i:return Te;default:return oe}}case t:return oe}}}var P=a,S=i,j=e,A=c,I=n,B=p,z=f,W=t,L=o,_=r,R=u,D=d,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 g(C)===a}function K(C){return g(C)===i}function F(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function U(C){return g(C)===c}function q(C){return g(C)===n}function G(C){return g(C)===p}function H(C){return g(C)===f}function X(C){return g(C)===t}function Y(C){return g(C)===o}function re(C){return g(C)===r}function N(C){return g(C)===u}function J(C){return g(C)===d}ce.ContextConsumer=P,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=re,ce.isSuspense=N,ce.isSuspenseList=J,ce.isValidElementType=x,ce.typeOf=g}()),ce}process.env.NODE_ENV==="production"?gr.exports=ra():gr.exports=oa();var Cn=gr.exports;const ia=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function sa(e){const t=`${e}`.match(ia);return t&&t[1]||""}function xi(e,t=""){return e.displayName||e.name||sa(e)||t}function ko(e,t,n){const r=xi(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function aa(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 ko(e,e.render,"ForwardRef");case Cn.Memo:return ko(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 la=s.oneOfType([s.func,s.object]),Sr=la;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 ca(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 ua(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 xe(e){return e&&e.ownerDocument||document}function Nt(e){return xe(e).defaultView||window}function da(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?w({},t.propTypes):null;return o=>(i,a,l,c,u,...d)=>{const f=u||a,p=n==null?void 0:n[f];if(p){const b=p(i,a,l,c,u,...d);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 pa=typeof window<"u"?T.useLayoutEffect:T.useEffect,ht=pa;let Po=0;function fa(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(Po+=1,n(`mui-${Po}`))},[t]),r}const So=T["useId".toString()];function Ti(e){if(So!==void 0){const t=So();return e??t}return fa(e)}function ha(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 ma(e,t){const n=T.useRef(So);return n.current===So&&(n.current=e(t)),n}const ga=[];function ba(e){T.useEffect(e,ga)}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=ma(cn.create).current;return ba(e.disposeEffect),e}let jn=!0,vr=!1;const va=new cn,ya={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 xa(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ya[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ea(e){e.metaKey||e.altKey||e.ctrlKey||(jn=!0)}function ir(){jn=!1}function Ta(){this.visibilityState==="hidden"&&vr&&(jn=!0)}function wa(e){e.addEventListener("keydown",Ea,!0),e.addEventListener("mousedown",ir,!0),e.addEventListener("pointerdown",ir,!0),e.addEventListener("touchstart",ir,!0),e.addEventListener("visibilitychange",Ta,!0)}function Oa(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return jn||xa(t)}function wi(){const e=T.useCallback(o=>{o!=null&&wa(o.ownerDocument)},[]),t=T.useRef(!1);function n(){return t.current?(vr=!0,va.start(100,()=>{vr=!1}),t.current=!1,!0):!1}function r(o){return Oa(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Oi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ka(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 Pa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const Sa=Number.isInteger||Pa;function ki(e,t,n,r){const o=e[t];if(o==null||!Sa(o)){const i=ka(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Pi(e,t,...n){return e[t]===void 0?null:ki(e,t,...n)}function yr(){return null}Pi.isRequired=ki;yr.isRequired=yr;const Si=process.env.NODE_ENV==="production"?yr:Pi;function Ci(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]=Ci(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,Ca=()=>{let e=Co;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Co}}},Ra=Ca(),Ri=Ra,Ni={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=Ni[t];return r?`${n}-${r}`:`${Ri.generate(e)}-${t}`}function rt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=He(e,o,n)}),r}function Na(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function $i(e){return typeof e=="string"}function Xt(e,t,n){return e===void 0||$i(e)?t:w({},t,{ownerState:w({},t.ownerState,n)})}const $a={disableDefaultClasses:!1},Ma=T.createContext($a);function _a(e){const{disableDefaultClasses:t}=T.useContext(Ma);return n=>t?"":e(n)}function Mi(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 Ia(e,t,n){return typeof e=="function"?e(t,n):e}function Ro(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Aa(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=ye(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=Mi(w({},o,r)),l=Ro(r),c=Ro(o),u=t(a),d=ye(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),p=w({},u,n,c,l);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const ja=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ue(e,ja),l=i?{}:Ia(r,o),{props:c,internalRef:u}=Aa(w({},a,{externalSlotProps:l})),d=Ae(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Xt(n,w({},c,{ref:d}),o)}const _i="base";function Da(e){return`${_i}--${e}`}function Ba(e,t){return`${_i}-${e}-${t}`}function Ii(e,t){const n=Ni[t];return n?Da(n):Ba(e,t)}function La(e,t){const n={};return t.forEach(r=>{n[r]=Ii(e,r)}),n}const Fa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Va(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 za(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 Ua(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||za(e))}function Ha(e){const t=[],n=[];return Array.from(e.querySelectorAll(Fa)).forEach((r,o)=>{const i=Va(r);i===-1||!Ua(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 qa(){return!0}function Nn(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Ha,isEnabled:a=qa,open:l}=e,c=T.useRef(!1),u=T.useRef(null),d=T.useRef(null),f=T.useRef(null),p=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=xe(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=xe(v.current),x=S=>{h.current=S,!(r||!a()||S.key!=="Tab")&&y.activeElement===v.current&&S.shiftKey&&(c.current=!0,d.current&&d.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!==d.current)return;if(y.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!b.current)return;let j=[];if((y.activeElement===u.current||y.activeElement===d.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 P=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&g()},50);return()=>{clearInterval(P),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,p.current=y.target;const x=t.props.onFocus;x&&x(y)},$=y=>{f.current===null&&(f.current=y.relatedTarget),b.current=!0};return k.jsxs(T.Fragment,{children:[k.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:m,onFocus:E}),k.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:d,"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"]=vi(Nn.propTypes));function Wa(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(Wa(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 k.jsx(T.Fragment,{children:r})}return k.jsx(T.Fragment,{children:a&&Ls.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"]=vi(nn.propTypes));function Ga(e){const t=xe(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 No(e){return parseInt(Nt(e).getComputedStyle(e).paddingRight,10)||0}function Ka(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 $o(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=i.indexOf(a)===-1,c=!Ka(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 Xa(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Ga(r)){const a=Oi(xe(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${No(r)+a}px`;const l=xe(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${No(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=xe(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 Ya(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Ja{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=Ya(n);$o(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=Xa(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),$o(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 Za(e){return typeof e=="function"?e():e}function Qa(e){return e?e.props.hasOwnProperty("in"):!1}const el=new Ja;function tl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=el,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:f}=e,p=T.useRef({}),b=T.useRef(null),v=T.useRef(null),m=Ae(v,f),[h,E]=T.useState(!d),$=Qa(c);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const x=()=>xe(b.current),g=()=>(p.current.modalRef=v.current,p.current.mount=b.current,p.current),P=()=>{o.mount(g(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},S=tn(()=>{const R=Za(t)||x().body;o.add(g(),R),v.current&&P()}),j=T.useCallback(()=>o.isTopModal(g()),[o]),A=tn(R=>{b.current=R,R&&(d&&j()?P():v.current&&Jt(v.current,y))}),I=T.useCallback(()=>{o.remove(g(),y)},[y,o]);T.useEffect(()=>()=>{I()},[I]),T.useEffect(()=>{d?S():(!$||!i)&&I()},[d,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=Mi(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:d})},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 ke="top",je="bottom",De="right",Pe="left",Cr="auto",un=[ke,je,De,Pe],$t="start",rn="end",nl="clippingParents",Ai="viewport",zt="popper",rl="reference",Mo=un.reduce(function(e,t){return e.concat([t+"-"+$t,t+"-"+rn])},[]),ji=[].concat(un,[Cr]).reduce(function(e,t){return e.concat([t,t+"-"+$t,t+"-"+rn])},[]),ol="beforeRead",il="read",sl="afterRead",al="beforeMain",ll="main",cl="afterMain",ul="beforeWrite",dl="write",pl="afterWrite",fl=[ol,il,sl,al,ll,cl,ul,dl,pl];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 hl(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 ml(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 gl={name:"applyStyles",enabled:!0,phase:"write",fn:hl,effect:ml,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 Di(){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=!Di()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,d=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}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 Bi(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 bl(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 _o(e){return!Ie(e)||Ye(e).position==="fixed"?null:e.offsetParent}function vl(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 dn(e){for(var t=$e(e),n=_o(e);n&&bl(n)&&Ye(n).position==="static";)n=_o(n);return n&&(Ue(n)==="html"||Ue(n)==="body"&&Ye(n).position==="static")?t:n||vl(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 yl(e,t,n){var r=Zt(e,t,n);return r>n?n:r}function Li(){return{top:0,right:0,bottom:0,left:0}}function Fi(e){return Object.assign({},Li(),e)}function Vi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var xl=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fi(typeof t!="number"?t:Vi(t,un))};function El(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,d=u?"height":"width";if(!(!i||!a)){var f=xl(o.padding,n),p=Nr(i),b=c==="y"?ke:Pe,v=c==="y"?je:De,m=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],h=a[c]-n.rects.reference[c],E=dn(i),$=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,y=m/2-h/2,x=f[b],g=$-p[d]-f[v],P=$/2-p[d]/2+y,S=Zt(x,P,g),j=c;n.modifiersData[r]=(t={},t[j]=S,t.centerOffset=S-P,t)}}function Tl(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)||Bi(t.elements.popper,o)&&(t.elements.arrow=o))}const wl={name:"arrow",enabled:!0,phase:"main",fn:El,effect:Tl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function It(e){return e.split("-")[1]}var Ol={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kl(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 Io(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,d=e.roundOffsets,f=e.isFixed,p=a.x,b=p===void 0?0:p,v=a.y,m=v===void 0?0:v,h=typeof d=="function"?d({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=ke,g=window;if(u){var P=dn(n),S="clientHeight",j="clientWidth";if(P===$e(n)&&(P=ot(n),Ye(P).position!=="static"&&l==="absolute"&&(S="scrollHeight",j="scrollWidth")),P=P,o===ke||(o===Pe||o===De)&&i===rn){x=je;var A=f&&P===g&&g.visualViewport?g.visualViewport.height:P[S];m-=A-r.height,m*=c?1:-1}if(o===Pe||(o===ke||o===je)&&i===rn){y=De;var I=f&&P===g&&g.visualViewport?g.visualViewport.width:P[j];b-=I-r.width,b*=c?1:-1}}var B=Object.assign({position:l},u&&Ol),z=d===!0?kl({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 Pl(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,Io(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,Io(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 Sl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pl,data:{}};var yn={passive:!0};function Cl(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(d){d.addEventListener("scroll",n.update,yn)}),l&&c.addEventListener("resize",n.update,yn),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,yn)}),l&&c.removeEventListener("resize",n.update,yn)}}const Rl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Cl,data:{}};var Nl={left:"right",right:"left",bottom:"top",top:"bottom"};function wn(e){return e.replace(/left|right|bottom|top/g,function(t){return Nl[t]})}var $l={start:"end",end:"start"};function Ao(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 Ml(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=Di();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+_r(e),y:c}}function _l(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 zi(e){return["html","body","#document"].indexOf(Ue(e))>=0?e.ownerDocument.body:Ie(e)&&Ir(e)?e:zi(Dn(e))}function Qt(e,t){var n;t===void 0&&(t=[]);var r=zi(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 Il(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 jo(e,t,n){return t===Ai?Er(Ml(e,n)):gt(t)?Il(t,n):Er(_l(ot(e)))}function Al(e){var t=Qt(Dn(e)),n=["absolute","fixed"].indexOf(Ye(e).position)>=0,r=n&&Ie(e)?dn(e):e;return gt(r)?t.filter(function(o){return gt(o)&&Bi(o,r)&&Ue(o)!=="body"}):[]}function jl(e,t,n,r){var o=t==="clippingParents"?Al(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(c,u){var d=jo(e,u,r);return c.top=ft(d.top,c.top),c.right=$n(d.right,c.right),c.bottom=$n(d.bottom,c.bottom),c.left=ft(d.left,c.left),c},jo(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 Ui(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 ke: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 d=u==="y"?"height":"width";switch(i){case $t:c[u]=c[u]-(t[d]/2-n[d]/2);break;case rn:c[u]=c[u]+(t[d]/2-n[d]/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?nl:l,u=n.rootBoundary,d=u===void 0?Ai:u,f=n.elementContext,p=f===void 0?zt:f,b=n.altBoundary,v=b===void 0?!1:b,m=n.padding,h=m===void 0?0:m,E=Fi(typeof h!="number"?h:Vi(h,un)),$=p===zt?rl:zt,y=e.rects.popper,x=e.elements[v?$:p],g=jl(gt(x)?x:x.contextElement||ot(e.elements.popper),c,d,a),P=_t(e.elements.reference),S=Ui({reference:P,element:y,strategy:"absolute",placement:o}),j=Er(Object.assign({},y,S)),A=p===zt?j:P,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(p===zt&&B){var z=B[o];Object.keys(I).forEach(function(W){var L=[De,je].indexOf(W)>=0?1:-1,_=[ke,je].indexOf(W)>=0?"y":"x";I[W]+=z[_]*L})}return I}function Dl(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?ji:c,d=It(r),f=d?l?Mo:Mo.filter(function(v){return It(v)===d}):un,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var b=p.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 Bl(e){if(Ve(e)===Cr)return[];var t=wn(e);return[Ao(e),t,Ao(t)]}function Ll(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,d=n.boundary,f=n.rootBoundary,p=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)]:Bl(h)),x=[h].concat(y).reduce(function(F,U){return F.concat(Ve(U)===Cr?Dl(t,{placement:U,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):U)},[]),g=t.rects.reference,P=t.rects.popper,S=new Map,j=!0,A=x[0],I=0;I=0,_=L?"width":"height",R=on(t,{placement:B,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),D=L?W?De:Pe:W?je:ke;g[_]>P[_]&&(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 Fl={name:"flip",enabled:!0,phase:"main",fn:Ll,requiresIfExists:["offset"],data:{_skip:!1}};function Do(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 Bo(e){return[ke,De,je,Pe].some(function(t){return e[t]>=0})}function Vl(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=Do(a,r),u=Do(l,o,i),d=Bo(c),f=Bo(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const zl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vl};function Ul(e,t,n){var r=Ve(e),o=[Pe,ke].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 Hl(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=ji.reduce(function(d,f){return d[f]=Ul(f,t.rects,i),d},{}),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 ql={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hl};function Wl(e){var t=e.state,n=e.name;t.modifiersData[n]=Ui({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Gl={name:"popperOffsets",enabled:!0,phase:"read",fn:Wl,data:{}};function Kl(e){return e==="x"?"y":"x"}function Xl(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,d=n.altBoundary,f=n.padding,p=n.tether,b=p===void 0?!0:p,v=n.tetherOffset,m=v===void 0?0:v,h=on(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),E=Ve(t.placement),$=It(t.placement),y=!$,x=$r(E),g=Kl(x),P=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(P){if(i){var W,L=x==="y"?ke:Pe,_=x==="y"?je:De,R=x==="y"?"height":"width",D=P[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:Li(),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&&dn(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);P[x]=be,z[x]=be-D}if(l){var Te,me=x==="x"?ke:Pe,st=x==="x"?je:De,we=P[g],qe=g==="y"?"height":"width",Se=we+h[me],We=we-h[st],ve=[ke,Pe].indexOf(E)!==-1,yt=(Te=B==null?void 0:B[g])!=null?Te:0,at=ve?Se:we-S[qe]-j[qe]-yt+I.altAxis,Dt=ve?we+S[qe]+j[qe]-yt-I.altAxis:We,mn=b&&ve?yl(at,we,Dt):Zt(b?at:Se,we,b?Dt:We);P[g]=mn,z[g]=mn-we}t.modifiersData[r]=z}}const Yl={name:"preventOverflow",enabled:!0,phase:"main",fn:Xl,requiresIfExists:["offset"]};function Jl(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zl(e){return e===$e(e)||!Ie(e)?Mr(e):Jl(e)}function Ql(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 ec(e,t,n){n===void 0&&(n=!1);var r=Ie(t),o=Ie(t)&&Ql(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=Zl(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 tc(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 nc(e){var t=tc(e);return fl.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function rc(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function oc(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 Lo={placement:"bottom",modifiers:[],strategy:"absolute"};function Fo(){for(var e=arguments.length,t=new Array(e),n=0;nZe({root:["root"]},_a(lc)),hc={},mc=T.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:l,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:b={},slots:v={},TransitionProps:m}=t,h=ue(t,cc),E=T.useRef(null),$=Ae(E,n),y=T.useRef(null),x=Ae(y,p),g=T.useRef(x);ht(()=>{g.current=x},[x]),T.useImperativeHandle(p,()=>y.current,[]);const P=dc(d,a),[S,j]=T.useState(P),[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=ac(A,E.current,w({placement:P},f,{modifiers:R}));return g.current(D),()=>{D.destroy(),g.current(null)}},[A,l,c,u,f,P]);const B={placement:S};m!==null&&(B.TransitionProps=m);const z=fc(),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 k.jsx(W,w({},L,{children:typeof i=="function"?i(B):i}))}),qi=T.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=hc,popperRef:b,style:v,transition:m=!1,slotProps:h={},slots:E={}}=t,$=ue(t,uc),[y,x]=T.useState(!0),g=()=>{x(!1)},P=()=>{x(!0)};if(!c&&!d&&(!m||y))return null;let S;if(i)S=i;else if(r){const I=Mn(r);S=I&&Bn(I)?xe(I).body:xe(null).body}const j=!d&&c&&(!m||y)?"none":void 0,A=m?{in:d,onEnter:g,onExited:P}:void 0;return k.jsx(nn,{disablePortal:l,container:S,children:k.jsx(mc,w({anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:n,open:m?!y:d,placement:f,popperOptions:p,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"&&(qi.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(` +`))},[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 Co={};function ma(e,t){const n=T.useRef(Co);return n.current===Co&&(n.current=e(t)),n}const ga=[];function ba(e){T.useEffect(e,ga)}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=ma(cn.create).current;return ba(e.disposeEffect),e}let jn=!0,vr=!1;const va=new cn,ya={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 xa(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ya[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ea(e){e.metaKey||e.altKey||e.ctrlKey||(jn=!0)}function ir(){jn=!1}function Ta(){this.visibilityState==="hidden"&&vr&&(jn=!0)}function wa(e){e.addEventListener("keydown",Ea,!0),e.addEventListener("mousedown",ir,!0),e.addEventListener("pointerdown",ir,!0),e.addEventListener("touchstart",ir,!0),e.addEventListener("visibilitychange",Ta,!0)}function Oa(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return jn||xa(t)}function Oi(){const e=T.useCallback(o=>{o!=null&&wa(o.ownerDocument)},[]),t=T.useRef(!1);function n(){return t.current?(vr=!0,va.start(100,()=>{vr=!1}),t.current=!1,!0):!1}function r(o){return Oa(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ki(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ka(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 Pa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const Sa=Number.isInteger||Pa;function Pi(e,t,n,r){const o=e[t];if(o==null||!Sa(o)){const i=ka(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:Pi(e,t,...n)}function yr(){return null}Si.isRequired=Pi;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 Ro=e=>e,Ca=()=>{let e=Ro;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ro}}},Ra=Ca(),Ni=Ra,$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 Na(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},Ma=T.createContext($a);function _a(e){const{disableDefaultClasses:t}=T.useContext(Ma);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 Ia(e,t,n){return typeof e=="function"?e(t,n):e}function No(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Aa(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=ye(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),d=ye(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),p=w({},u,n,c,l);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const ja=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ue(e,ja),l=i?{}:Ia(r,o),{props:c,internalRef:u}=Aa(w({},a,{externalSlotProps:l})),d=Ae(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Xt(n,w({},c,{ref:d}),o)}const Ii="base";function Da(e){return`${Ii}--${e}`}function Ba(e,t){return`${Ii}-${e}-${t}`}function Ai(e,t){const n=$i[t];return n?Da(n):Ba(e,t)}function La(e,t){const n={};return t.forEach(r=>{n[r]=Ai(e,r)}),n}const Fa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Va(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 za(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 Ua(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||za(e))}function Ha(e){const t=[],n=[];return Array.from(e.querySelectorAll(Fa)).forEach((r,o)=>{const i=Va(r);i===-1||!Ua(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 qa(){return!0}function Nn(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Ha,isEnabled:a=qa,open:l}=e,c=T.useRef(!1),u=T.useRef(null),d=T.useRef(null),f=T.useRef(null),p=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=xe(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=xe(v.current),x=S=>{h.current=S,!(r||!a()||S.key!=="Tab")&&y.activeElement===v.current&&S.shiftKey&&(c.current=!0,d.current&&d.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!==d.current)return;if(y.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!b.current)return;let j=[];if((y.activeElement===u.current||y.activeElement===d.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 P=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&g()},50);return()=>{clearInterval(P),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,p.current=y.target;const x=t.props.onFocus;x&&x(y)},$=y=>{f.current===null&&(f.current=y.relatedTarget),b.current=!0};return k.jsxs(T.Fragment,{children:[k.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:m,onFocus:E}),k.jsx("div",{tabIndex:l?0:-1,onFocus:$,ref:d,"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 Wa(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(Wa(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 k.jsx(T.Fragment,{children:r})}return k.jsx(T.Fragment,{children:a&&Ls.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 Ga(e){const t=xe(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 Ka(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=!Ka(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 Xa(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Ga(r)){const a=ki(xe(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${$o(r)+a}px`;const l=xe(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=xe(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 Ya(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Ja{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=Ya(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=Xa(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 Za(e){return typeof e=="function"?e():e}function Qa(e){return e?e.props.hasOwnProperty("in"):!1}const el=new Ja;function tl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=el,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:f}=e,p=T.useRef({}),b=T.useRef(null),v=T.useRef(null),m=Ae(v,f),[h,E]=T.useState(!d),$=Qa(c);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const x=()=>xe(b.current),g=()=>(p.current.modalRef=v.current,p.current.mount=b.current,p.current),P=()=>{o.mount(g(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},S=tn(()=>{const R=Za(t)||x().body;o.add(g(),R),v.current&&P()}),j=T.useCallback(()=>o.isTopModal(g()),[o]),A=tn(R=>{b.current=R,R&&(d&&j()?P():v.current&&Jt(v.current,y))}),I=T.useCallback(()=>{o.remove(g(),y)},[y,o]);T.useEffect(()=>()=>{I()},[I]),T.useEffect(()=>{d?S():(!$||!i)&&I()},[d,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:d})},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 ke="top",je="bottom",De="right",Pe="left",Cr="auto",un=[ke,je,De,Pe],$t="start",rn="end",nl="clippingParents",ji="viewport",zt="popper",rl="reference",_o=un.reduce(function(e,t){return e.concat([t+"-"+$t,t+"-"+rn])},[]),Di=[].concat(un,[Cr]).reduce(function(e,t){return e.concat([t,t+"-"+$t,t+"-"+rn])},[]),ol="beforeRead",il="read",sl="afterRead",al="beforeMain",ll="main",cl="afterMain",ul="beforeWrite",dl="write",pl="afterWrite",fl=[ol,il,sl,al,ll,cl,ul,dl,pl];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 hl(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 ml(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 gl={name:"applyStyles",enabled:!0,phase:"write",fn:hl,effect:ml,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 Bi(){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=!Bi()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,d=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}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 Li(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 bl(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 vl(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 dn(e){for(var t=$e(e),n=Io(e);n&&bl(n)&&Ye(n).position==="static";)n=Io(n);return n&&(Ue(n)==="html"||Ue(n)==="body"&&Ye(n).position==="static")?t:n||vl(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 yl(e,t,n){var r=Zt(e,t,n);return r>n?n:r}function Fi(){return{top:0,right:0,bottom:0,left:0}}function Vi(e){return Object.assign({},Fi(),e)}function zi(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var xl=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Vi(typeof t!="number"?t:zi(t,un))};function El(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,d=u?"height":"width";if(!(!i||!a)){var f=xl(o.padding,n),p=Nr(i),b=c==="y"?ke:Pe,v=c==="y"?je:De,m=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],h=a[c]-n.rects.reference[c],E=dn(i),$=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,y=m/2-h/2,x=f[b],g=$-p[d]-f[v],P=$/2-p[d]/2+y,S=Zt(x,P,g),j=c;n.modifiersData[r]=(t={},t[j]=S,t.centerOffset=S-P,t)}}function Tl(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)||Li(t.elements.popper,o)&&(t.elements.arrow=o))}const wl={name:"arrow",enabled:!0,phase:"main",fn:El,effect:Tl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function It(e){return e.split("-")[1]}var Ol={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kl(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,d=e.roundOffsets,f=e.isFixed,p=a.x,b=p===void 0?0:p,v=a.y,m=v===void 0?0:v,h=typeof d=="function"?d({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=ke,g=window;if(u){var P=dn(n),S="clientHeight",j="clientWidth";if(P===$e(n)&&(P=ot(n),Ye(P).position!=="static"&&l==="absolute"&&(S="scrollHeight",j="scrollWidth")),P=P,o===ke||(o===Pe||o===De)&&i===rn){x=je;var A=f&&P===g&&g.visualViewport?g.visualViewport.height:P[S];m-=A-r.height,m*=c?1:-1}if(o===Pe||(o===ke||o===je)&&i===rn){y=De;var I=f&&P===g&&g.visualViewport?g.visualViewport.width:P[j];b-=I-r.width,b*=c?1:-1}}var B=Object.assign({position:l},u&&Ol),z=d===!0?kl({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 Pl(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 Sl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pl,data:{}};var yn={passive:!0};function Cl(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(d){d.addEventListener("scroll",n.update,yn)}),l&&c.addEventListener("resize",n.update,yn),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,yn)}),l&&c.removeEventListener("resize",n.update,yn)}}const Rl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Cl,data:{}};var Nl={left:"right",right:"left",bottom:"top",top:"bottom"};function wn(e){return e.replace(/left|right|bottom|top/g,function(t){return Nl[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 Ml(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=Bi();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+_r(e),y:c}}function _l(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 Ui(e){return["html","body","#document"].indexOf(Ue(e))>=0?e.ownerDocument.body:Ie(e)&&Ir(e)?e:Ui(Dn(e))}function Qt(e,t){var n;t===void 0&&(t=[]);var r=Ui(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 Il(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===ji?Er(Ml(e,n)):gt(t)?Il(t,n):Er(_l(ot(e)))}function Al(e){var t=Qt(Dn(e)),n=["absolute","fixed"].indexOf(Ye(e).position)>=0,r=n&&Ie(e)?dn(e):e;return gt(r)?t.filter(function(o){return gt(o)&&Li(o,r)&&Ue(o)!=="body"}):[]}function jl(e,t,n,r){var o=t==="clippingParents"?Al(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(c,u){var d=Do(e,u,r);return c.top=ft(d.top,c.top),c.right=$n(d.right,c.right),c.bottom=$n(d.bottom,c.bottom),c.left=ft(d.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 Hi(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 ke: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 d=u==="y"?"height":"width";switch(i){case $t:c[u]=c[u]-(t[d]/2-n[d]/2);break;case rn:c[u]=c[u]+(t[d]/2-n[d]/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?nl:l,u=n.rootBoundary,d=u===void 0?ji:u,f=n.elementContext,p=f===void 0?zt:f,b=n.altBoundary,v=b===void 0?!1:b,m=n.padding,h=m===void 0?0:m,E=Vi(typeof h!="number"?h:zi(h,un)),$=p===zt?rl:zt,y=e.rects.popper,x=e.elements[v?$:p],g=jl(gt(x)?x:x.contextElement||ot(e.elements.popper),c,d,a),P=_t(e.elements.reference),S=Hi({reference:P,element:y,strategy:"absolute",placement:o}),j=Er(Object.assign({},y,S)),A=p===zt?j:P,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(p===zt&&B){var z=B[o];Object.keys(I).forEach(function(W){var L=[De,je].indexOf(W)>=0?1:-1,_=[ke,je].indexOf(W)>=0?"y":"x";I[W]+=z[_]*L})}return I}function Dl(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?Di:c,d=It(r),f=d?l?_o:_o.filter(function(v){return It(v)===d}):un,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var b=p.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 Bl(e){if(Ve(e)===Cr)return[];var t=wn(e);return[jo(e),t,jo(t)]}function Ll(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,d=n.boundary,f=n.rootBoundary,p=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)]:Bl(h)),x=[h].concat(y).reduce(function(F,U){return F.concat(Ve(U)===Cr?Dl(t,{placement:U,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):U)},[]),g=t.rects.reference,P=t.rects.popper,S=new Map,j=!0,A=x[0],I=0;I=0,_=L?"width":"height",R=on(t,{placement:B,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),D=L?W?De:Pe:W?je:ke;g[_]>P[_]&&(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 Fl={name:"flip",enabled:!0,phase:"main",fn:Ll,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[ke,De,je,Pe].some(function(t){return e[t]>=0})}function Vl(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),d=Lo(c),f=Lo(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const zl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vl};function Ul(e,t,n){var r=Ve(e),o=[Pe,ke].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 Hl(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Di.reduce(function(d,f){return d[f]=Ul(f,t.rects,i),d},{}),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 ql={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hl};function Wl(e){var t=e.state,n=e.name;t.modifiersData[n]=Hi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Gl={name:"popperOffsets",enabled:!0,phase:"read",fn:Wl,data:{}};function Kl(e){return e==="x"?"y":"x"}function Xl(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,d=n.altBoundary,f=n.padding,p=n.tether,b=p===void 0?!0:p,v=n.tetherOffset,m=v===void 0?0:v,h=on(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),E=Ve(t.placement),$=It(t.placement),y=!$,x=$r(E),g=Kl(x),P=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(P){if(i){var W,L=x==="y"?ke:Pe,_=x==="y"?je:De,R=x==="y"?"height":"width",D=P[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:Fi(),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,re=t.elements.arrow&&dn(t.elements.arrow),N=re?x==="y"?re.clientTop||0:re.clientLeft||0:0,J=(W=B==null?void 0:B[x])!=null?W:0,C=D+X-J-N,oe=D+Y-J,be=Zt(b?$n(Q,C):Q,D,b?ft(Z,oe):Z);P[x]=be,z[x]=be-D}if(l){var Te,me=x==="x"?ke:Pe,st=x==="x"?je:De,we=P[g],qe=g==="y"?"height":"width",Se=we+h[me],We=we-h[st],ve=[ke,Pe].indexOf(E)!==-1,yt=(Te=B==null?void 0:B[g])!=null?Te:0,at=ve?Se:we-S[qe]-j[qe]-yt+I.altAxis,Dt=ve?we+S[qe]+j[qe]-yt-I.altAxis:We,mn=b&&ve?yl(at,we,Dt):Zt(b?at:Se,we,b?Dt:We);P[g]=mn,z[g]=mn-we}t.modifiersData[r]=z}}const Yl={name:"preventOverflow",enabled:!0,phase:"main",fn:Xl,requiresIfExists:["offset"]};function Jl(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Zl(e){return e===$e(e)||!Ie(e)?Mr(e):Jl(e)}function Ql(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 ec(e,t,n){n===void 0&&(n=!1);var r=Ie(t),o=Ie(t)&&Ql(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=Zl(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 tc(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 nc(e){var t=tc(e);return fl.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function rc(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function oc(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"]},_a(lc)),hc={},mc=T.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:a,disablePortal:l,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:b={},slots:v={},TransitionProps:m}=t,h=ue(t,cc),E=T.useRef(null),$=Ae(E,n),y=T.useRef(null),x=Ae(y,p),g=T.useRef(x);ht(()=>{g.current=x},[x]),T.useImperativeHandle(p,()=>y.current,[]);const P=dc(d,a),[S,j]=T.useState(P),[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=ac(A,E.current,w({placement:P},f,{modifiers:R}));return g.current(D),()=>{D.destroy(),g.current(null)}},[A,l,c,u,f,P]);const B={placement:S};m!==null&&(B.TransitionProps=m);const z=fc(),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 k.jsx(W,w({},L,{children:typeof i=="function"?i(B):i}))}),Wi=T.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=hc,popperRef:b,style:v,transition:m=!1,slotProps:h={},slots:E={}}=t,$=ue(t,uc),[y,x]=T.useState(!0),g=()=>{x(!1)},P=()=>{x(!0)};if(!c&&!d&&(!m||y))return null;let S;if(i)S=i;else if(r){const I=Mn(r);S=I&&Bn(I)?xe(I).body:xe(null).body}const j=!d&&c&&(!m||y)?"none":void 0,A=m?{in:d,onEnter:g,onExited:P}:void 0;return k.jsx(nn,{disablePortal:l,container:S,children:k.jsx(mc,w({anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:n,open:m?!y:d,placement:f,popperOptions:p,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"&&(Wi.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"||pc(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 gc=["values","unit","step"],bc=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 vc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,gc),i=bc(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,b){const v=a.indexOf(b);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:b)-r/100}${n})`}function d(p){return a.indexOf(p)+1`@media (min-width:${Ar[e]}px)`};function Je(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Vo;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Vo;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 Tc(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function wc(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 p=_n(u,o,f);return f===p&&typeof f=="string"&&(p=_n(u,o,`${t}${f==="default"?"":ze(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:it}:{},i.filterProps=[t],i}function Oc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const kc={m:"margin",p:"padding"},Pc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sc=Oc(e=>{if(e.length>2)if(zo[e])e=zo[e];else return[e];const[t,n]=e.split(""),r=kc[t],o=Pc[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"],Cc=[...Fn,...Vn];function pn(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(` +`))}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 gc=["values","unit","step"],bc=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 vc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,gc),i=bc(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,b){const v=a.indexOf(b);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:b)-r/100}${n})`}function d(p){return a.indexOf(p)+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 Tc(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function wc(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 p=_n(u,o,f);return f===p&&typeof f=="string"&&(p=_n(u,o,`${t}${f==="default"?"":ze(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:it}:{},i.filterProps=[t],i}function Oc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const kc={m:"margin",p:"padding"},Pc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Uo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sc=Oc(e=>{if(e.length>2)if(Uo[e])e=Uo[e];else return[e];const[t,n]=e.split(""),r=kc[t],o=Pc[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"],Cc=[...Fn,...Vn];function pn(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 Wi(e){return pn(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 Rc(e,t){return n=>e.reduce((r,o)=>(r[o]=fn(t,n),r),{})}function Nc(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Sc(n),i=Rc(o,r),a=e[n];return Je(e,a,i)}function Gi(e,t){const n=Wi(e.theme);return Object.keys(e).map(r=>Nc(e,t,r,n)).reduce(en,{})}function fe(e){return Gi(e,Fn)}fe.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,t)=>(e[t]=it,e),{}):{};fe.filterProps=Fn;function he(e){return Gi(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"&&Cc.reduce((e,t)=>(e[t]=it,e),{});function $c(e=8){if(e.mui)return e;const t=Wi({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 Mc=Be("border",_e),_c=Be("borderTop",_e),Ic=Be("borderRight",_e),Ac=Be("borderBottom",_e),jc=Be("borderLeft",_e),Dc=Be("borderColor"),Bc=Be("borderTopColor"),Lc=Be("borderRightColor"),Fc=Be("borderBottomColor"),Vc=Be("borderLeftColor"),zc=Be("outline",_e),Uc=Be("outlineColor"),Un=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pn(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(Mc,_c,Ic,Ac,jc,Dc,Bc,Lc,Fc,Vc,Un,zc,Uc);const Hn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pn(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=pn(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=pn(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 Hc=ge({prop:"gridColumn"}),qc=ge({prop:"gridRow"}),Wc=ge({prop:"gridAutoFlow"}),Gc=ge({prop:"gridAutoColumns"}),Kc=ge({prop:"gridAutoRows"}),Xc=ge({prop:"gridTemplateColumns"}),Yc=ge({prop:"gridTemplateRows"}),Jc=ge({prop:"gridTemplateAreas"}),Zc=ge({prop:"gridArea"});zn(Hn,qn,Wn,Hc,qc,Wc,Gc,Kc,Xc,Yc,Jc,Zc);function Ct(e,t){return t==="grey"?t:e}const Qc=ge({prop:"color",themeKey:"palette",transform:Ct}),eu=ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ct}),tu=ge({prop:"backgroundColor",themeKey:"palette",transform:Ct});zn(Qc,eu,tu);function Ne(e){return e<=1&&e!==0?`${e*100}%`:e}const nu=ge({prop:"width",transform:Ne}),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:Ne(n)}};return Je(e,e.maxWidth,t)}return null};jr.filterProps=["maxWidth"];const ru=ge({prop:"minWidth",transform:Ne}),ou=ge({prop:"height",transform:Ne}),iu=ge({prop:"maxHeight",transform:Ne}),su=ge({prop:"minHeight",transform:Ne});ge({prop:"size",cssProperty:"width",transform:Ne});ge({prop:"size",cssProperty:"height",transform:Ne});const au=ge({prop:"boxSizing"});zn(nu,jr,ru,ou,iu,su,au);const lu={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:Ne},maxWidth:{style:jr},minWidth:{transform:Ne},height:{transform:Ne},maxHeight:{transform:Ne},minHeight:{transform:Ne},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Dr=lu;function cu(...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 uu(e,t){return typeof e=="function"?e(t):e}function du(){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:d,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=Ln(o,u)||{};return f?f(a):Je(a,r,v=>{let m=_n(p,d,v);return v===m&&typeof v=="string"&&(m=_n(p,d,`${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 d=Tc(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(b=>{const v=uu(u[b],i);if(v!=null)if(typeof v=="object")if(a[b])p=en(p,e(b,v,i,a));else{const m=Je({theme:i},v,h=>({[b]:h}));cu(m,v)?p[b]=t({sx:v,theme:i}):p=en(p,m)}else p=en(p,e(b,v,i,a))}),wc(f,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const Ki=du();Ki.filterProps=["sx"];const Br=Ki;function pu(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 fu=["breakpoints","palette","spacing","shape"];function Lr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ue(e,fu),l=vc(n),c=$c(o);let u=Ke({breakpoints:l,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:c,shape:w({},xc,i)},a);return u.applyStyles=pu,u=t.reduce((d,f)=>Ke(d,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 hu(e){return Object.keys(e).length===0}function Xi(e=null){const t=T.useContext(hr.ThemeContext);return!t||hu(t)?e:t}const mu=Lr();function Yi(e=mu){return Xi(e)}const gu=["ownerState"],bu=["variants"],vu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yu(e){return Object.keys(e).length===0}function xu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function On(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Eu=Lr(),Uo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xn({defaultTheme:e,theme:t,themeId:n}){return yu(t)?e:t[n]||t}function Tu(e){return e?(t,n)=>n[e]:null}function kn(e,t){let{ownerState:n}=t,r=ue(t,gu);const o=typeof e=="function"?e(w({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>kn(i,w({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,bu);return i.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(w({ownerState:n},r)):Object.keys(c.props).forEach(d=>{(n==null?void 0:n[d])!==c.props[d]&&r[d]!==c.props[d]&&(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 wu(e={}){const{themeId:t,defaultTheme:n=Eu,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(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Tu(Uo(u))}=l,b=ue(l,vu),v=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,m=f||!1;let h;process.env.NODE_ENV!=="production"&&c&&(h=`${c}-${Uo(u||"Root")}`);let E=On;u==="Root"||u==="root"?E=r:u?E=o:xu(a)&&(E=void 0);const $=hr(a,w({shouldForwardProp:E,label:h},b)),y=g=>typeof g=="function"&&g.__emotion_real!==g||pt(g)?P=>kn(g,w({},P,{theme:xn({theme:P.theme,defaultTheme:n,themeId:t})})):g,x=(g,...P)=>{let S=y(g);const j=P?P.map(y):[];c&&p&&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[_]=kn(R,w({},B,{theme:z}))}),p(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 kn({variants:L},w({},B,{theme:W}))}),m||j.push(i);const A=j.length-P.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(${aa(a)})`),I.displayName=B}return a.muiName&&(I.muiName=a.muiName),I};return $.withConfig&&(x.withConfig=$.withConfig),x}}function Ou(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ci(t.components[n].defaultProps,r)}function ku({props:e,name:t,defaultTheme:n,themeId:r}){let o=Yi(n);return r&&(o=o[r]||o),Ou({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}].`),Na(e,t,n)}function Pu(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(Pu(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 Gi(e){return pn(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 Rc(e,t){return n=>e.reduce((r,o)=>(r[o]=fn(t,n),r),{})}function Nc(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Sc(n),i=Rc(o,r),a=e[n];return Je(e,a,i)}function Ki(e,t){const n=Gi(e.theme);return Object.keys(e).map(r=>Nc(e,t,r,n)).reduce(en,{})}function fe(e){return Ki(e,Fn)}fe.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,t)=>(e[t]=it,e),{}):{};fe.filterProps=Fn;function he(e){return Ki(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"&&Cc.reduce((e,t)=>(e[t]=it,e),{});function $c(e=8){if(e.mui)return e;const t=Gi({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 Mc=Be("border",_e),_c=Be("borderTop",_e),Ic=Be("borderRight",_e),Ac=Be("borderBottom",_e),jc=Be("borderLeft",_e),Dc=Be("borderColor"),Bc=Be("borderTopColor"),Lc=Be("borderRightColor"),Fc=Be("borderBottomColor"),Vc=Be("borderLeftColor"),zc=Be("outline",_e),Uc=Be("outlineColor"),Un=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pn(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(Mc,_c,Ic,Ac,jc,Dc,Bc,Lc,Fc,Vc,Un,zc,Uc);const Hn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pn(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=pn(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=pn(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 Hc=ge({prop:"gridColumn"}),qc=ge({prop:"gridRow"}),Wc=ge({prop:"gridAutoFlow"}),Gc=ge({prop:"gridAutoColumns"}),Kc=ge({prop:"gridAutoRows"}),Xc=ge({prop:"gridTemplateColumns"}),Yc=ge({prop:"gridTemplateRows"}),Jc=ge({prop:"gridTemplateAreas"}),Zc=ge({prop:"gridArea"});zn(Hn,qn,Wn,Hc,qc,Wc,Gc,Kc,Xc,Yc,Jc,Zc);function Ct(e,t){return t==="grey"?t:e}const Qc=ge({prop:"color",themeKey:"palette",transform:Ct}),eu=ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ct}),tu=ge({prop:"backgroundColor",themeKey:"palette",transform:Ct});zn(Qc,eu,tu);function Ne(e){return e<=1&&e!==0?`${e*100}%`:e}const nu=ge({prop:"width",transform:Ne}),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:Ne(n)}};return Je(e,e.maxWidth,t)}return null};jr.filterProps=["maxWidth"];const ru=ge({prop:"minWidth",transform:Ne}),ou=ge({prop:"height",transform:Ne}),iu=ge({prop:"maxHeight",transform:Ne}),su=ge({prop:"minHeight",transform:Ne});ge({prop:"size",cssProperty:"width",transform:Ne});ge({prop:"size",cssProperty:"height",transform:Ne});const au=ge({prop:"boxSizing"});zn(nu,jr,ru,ou,iu,su,au);const lu={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:Ne},maxWidth:{style:jr},minWidth:{transform:Ne},height:{transform:Ne},maxHeight:{transform:Ne},minHeight:{transform:Ne},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Dr=lu;function cu(...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 uu(e,t){return typeof e=="function"?e(t):e}function du(){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:d,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=Ln(o,u)||{};return f?f(a):Je(a,r,v=>{let m=_n(p,d,v);return v===m&&typeof v=="string"&&(m=_n(p,d,`${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 d=Tc(i.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(b=>{const v=uu(u[b],i);if(v!=null)if(typeof v=="object")if(a[b])p=en(p,e(b,v,i,a));else{const m=Je({theme:i},v,h=>({[b]:h}));cu(m,v)?p[b]=t({sx:v,theme:i}):p=en(p,m)}else p=en(p,e(b,v,i,a))}),wc(f,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const Xi=du();Xi.filterProps=["sx"];const Br=Xi;function pu(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 fu=["breakpoints","palette","spacing","shape"];function Lr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ue(e,fu),l=vc(n),c=$c(o);let u=Ke({breakpoints:l,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:c,shape:w({},xc,i)},a);return u.applyStyles=pu,u=t.reduce((d,f)=>Ke(d,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 hu(e){return Object.keys(e).length===0}function Yi(e=null){const t=T.useContext(hr.ThemeContext);return!t||hu(t)?e:t}const mu=Lr();function Ji(e=mu){return Yi(e)}const gu=["ownerState"],bu=["variants"],vu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yu(e){return Object.keys(e).length===0}function xu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function On(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Eu=Lr(),Ho=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xn({defaultTheme:e,theme:t,themeId:n}){return yu(t)?e:t[n]||t}function Tu(e){return e?(t,n)=>n[e]:null}function kn(e,t){let{ownerState:n}=t,r=ue(t,gu);const o=typeof e=="function"?e(w({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>kn(i,w({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,bu);return i.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(w({ownerState:n},r)):Object.keys(c.props).forEach(d=>{(n==null?void 0:n[d])!==c.props[d]&&r[d]!==c.props[d]&&(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 wu(e={}){const{themeId:t,defaultTheme:n=Eu,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(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Tu(Ho(u))}=l,b=ue(l,vu),v=d!==void 0?d: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:xu(a)&&(E=void 0);const $=hr(a,w({shouldForwardProp:E,label:h},b)),y=g=>typeof g=="function"&&g.__emotion_real!==g||pt(g)?P=>kn(g,w({},P,{theme:xn({theme:P.theme,defaultTheme:n,themeId:t})})):g,x=(g,...P)=>{let S=y(g);const j=P?P.map(y):[];c&&p&&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[_]=kn(R,w({},B,{theme:z}))}),p(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 kn({variants:L},w({},B,{theme:W}))}),m||j.push(i);const A=j.length-P.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(${aa(a)})`),I.displayName=B}return a.muiName&&(I.muiName=a.muiName),I};return $.withConfig&&(x.withConfig=$.withConfig),x}}function Ou(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 ku({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ji(n);return r&&(o=o[r]||o),Ou({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}].`),Na(e,t,n)}function Pu(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(Pu(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 Su(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,d=(u+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,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 Ho(e){e=bt(e);let t=e.type==="hsl"||e.type==="hsla"?bt(Su(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 qo(e,t){const n=Ho(e),r=Ho(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 Cu(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 Ru(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 Nu(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,Mu={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"},_u=Mu,Iu={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=Iu,Au={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=Au,ju={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=ju,Du={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=Du,Bu={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=Bu,Lu={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=Lu,Fu=["mode","contrastThreshold","tonalOffset"],Wo={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 Go(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=Ru(e.main,o):t==="dark"&&(e.dark=Cu(e.main,i)))}function Vu(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[700],light:Tt[400],dark:Tt[800]}}function zu(e="light"){return e==="dark"?{main:xt[200],light:xt[50],dark:xt[400]}:{main:xt[500],light:xt[300],dark:xt[700]}}function Uu(e="light"){return e==="dark"?{main:Et[500],light:Et[300],dark:Et[700]}:{main:Et[700],light:Et[400],dark:Et[800]}}function Hu(e="light"){return e==="dark"?{main:wt[400],light:wt[300],dark:wt[700]}:{main:wt[700],light:wt[500],dark:wt[900]}}function qu(e="light"){return e==="dark"?{main:Ot[400],light:Ot[300],dark:Ot[700]}:{main:Ot[800],light:Ot[500],dark:Ot[900]}}function Wu(e="light"){return e==="dark"?{main:Ut[400],light:Ut[300],dark:Ut[700]}:{main:"#ed6c02",light:Ut[500],dark:Ut[900]}}function Gu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ue(e,Fu),i=e.primary||Vu(t),a=e.secondary||zu(t),l=e.error||Uu(t),c=e.info||Hu(t),u=e.success||qu(t),d=e.warning||Wu(t);function f(m){const h=qo(m,ar.text.primary)>=n?ar.text.primary:Wo.text.primary;if(process.env.NODE_ENV!=="production"){const E=qo(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(` +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 Su(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,d=(u+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,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(Su(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 Cu(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 Ru(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 Nu(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,Mu={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"},_u=Mu,Iu={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=Iu,Au={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=Au,ju={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=ju,Du={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=Du,Bu={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=Bu,Lu={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=Lu,Fu=["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=Ru(e.main,o):t==="dark"&&(e.dark=Cu(e.main,i)))}function Vu(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[700],light:Tt[400],dark:Tt[800]}}function zu(e="light"){return e==="dark"?{main:xt[200],light:xt[50],dark:xt[400]}:{main:xt[500],light:xt[300],dark:xt[700]}}function Uu(e="light"){return e==="dark"?{main:Et[500],light:Et[300],dark:Et[700]}:{main:Et[700],light:Et[400],dark:Et[800]}}function Hu(e="light"){return e==="dark"?{main:wt[400],light:wt[300],dark:wt[700]}:{main:wt[700],light:wt[500],dark:wt[900]}}function qu(e="light"){return e==="dark"?{main:Ot[400],light:Ot[300],dark:Ot[700]}:{main:Ot[800],light:Ot[500],dark:Ot[900]}}function Wu(e="light"){return e==="dark"?{main:Ut[400],light:Ut[300],dark:Ut[700]}:{main:"#ed6c02",light:Ut[500],dark:Ut[900]}}function Gu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ue(e,Fu),i=e.primary||Vu(t),a=e.secondary||zu(t),l=e.error||Uu(t),c=e.info||Hu(t),u=e.success||qu(t),d=e.warning||Wu(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 p=({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. @@ -59,20 +59,20 @@ const theme1 = createTheme({ palette: { const theme2 = createTheme({ palette: { primary: { main: green[500] }, -} });`:Rt(12,h?` (${h})`:"",JSON.stringify(m.main)));return Go(m,"light",$,r),Go(m,"dark",y,r),m.contrastText||(m.contrastText=f(m.main)),m},b={dark:ar,light:Wo};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:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:_u,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},b[t]),o)}const Ku=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xu(e){return Math.round(e*1e5)/1e5}const Ko={textTransform:"uppercase"},Xo='"Roboto", "Helvetica", "Arial", sans-serif';function Yu(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Xo,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=n,p=ue(n,Ku);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===Xo?{letterSpacing:`${Xu(x/$)}em`}:{},g,d),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,Ko),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ko),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),p,{clone:!1})}const Ju=.2,Zu=.14,Qu=.12;function pe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ju})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qu})`].join(",")}const ed=["none",pe(0,2,1,-1,0,1,1,0,0,1,3,0),pe(0,3,1,-2,0,2,2,0,0,1,5,0),pe(0,3,3,-2,0,3,4,0,0,1,8,0),pe(0,2,4,-1,0,4,5,0,0,1,10,0),pe(0,3,5,-1,0,5,8,0,0,1,14,0),pe(0,3,5,-1,0,6,10,0,0,1,18,0),pe(0,4,5,-2,0,7,10,1,0,2,16,1),pe(0,5,5,-3,0,8,10,1,0,3,14,2),pe(0,5,6,-3,0,9,12,1,0,3,16,2),pe(0,6,6,-3,0,10,14,1,0,4,18,3),pe(0,6,7,-4,0,11,15,1,0,4,20,3),pe(0,7,8,-4,0,12,17,2,0,5,22,4),pe(0,7,8,-4,0,13,19,2,0,5,24,4),pe(0,7,9,-4,0,14,21,2,0,5,26,4),pe(0,8,9,-5,0,15,22,2,0,6,28,5),pe(0,8,10,-5,0,16,24,2,0,6,30,5),pe(0,8,11,-5,0,17,26,2,0,6,32,5),pe(0,9,11,-5,0,18,28,2,0,7,34,6),pe(0,9,12,-6,0,19,29,2,0,7,36,6),pe(0,10,13,-6,0,20,31,3,0,8,38,7),pe(0,10,13,-6,0,21,33,3,0,8,40,7),pe(0,10,14,-6,0,22,35,3,0,8,42,7),pe(0,11,14,-7,0,23,36,3,0,9,44,8),pe(0,11,15,-7,0,24,38,3,0,9,46,8)],td=ed,nd=["duration","easing","delay"],rd={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)"},od={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Yo(e){return`${Math.round(e)}ms`}function id(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sd(e){const t=w({},rd,e.easing),n=w({},od,e.duration);return w({getAutoHeightDuration:id,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=ue(i,nd);if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!isNaN(parseFloat(p));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!d(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(d=>`${d} ${typeof a=="string"?a:Yo(a)} ${l} ${typeof c=="string"?c:Yo(c)}`).join(",")}},e,{easing:t,duration:n})}const ad={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ld=ad,cd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ud(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ue(e,cd);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=Gu(r),c=Lr(e);let u=Ke(c,{mixins:Nu(c.breakpoints,n),palette:l,shadows:td.slice(),typography:Yu(l,i),transitions:sd(o),zIndex:w({},ld)});if(u=Ke(u,a),u=t.reduce((d,f)=>Ke(d,f),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(p,b)=>{let v;for(v in p){const m=p[v];if(d.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(p,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(` -`))}p[v]={}}}};Object.keys(u.components).forEach(p=>{const b=u.components[p].styleOverrides;b&&p.indexOf("Mui")===0&&f(b,p)})}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 dd=ud(),Vr=dd,zr="$$material",Ji=e=>On(e)&&e!=="classes",pd=wu({themeId:zr,defaultTheme:Vr,rootShouldForwardProp:Ji}),Ee=pd;function hn(){const e=Yi(Vr);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[zr]||e}function Qe({props:e,name:t}){return ku({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 fd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tr(e,t)}const Jo={disabled:!1};var hd=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 Zi=ie.createContext(null);var md=function(t){return t.scrollTop},Yt="unmounted",ct="exited",ut="entering",Pt="entered",wr="exiting",et=function(e){fd(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=Pt: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!==Pt&&(i=ut):(a===ut||a===Pt)&&(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&&md(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],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!o&&!a||Jo.disabled){this.safeSetState({status:Pt},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ut},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Pt},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Gt.findDOMNode(this);if(!i||Jo.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],d=c[1];this.props.addEndListener(u,d)}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(Zi.Provider,{value:null},typeof a=="function"?a(o,l):ie.cloneElement(ie.Children.only(a),l))},t}(ie.Component);et.contextType=Zi;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=hd;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 gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Or(e){return`scale(${e}, ${e**2})`}const bd={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:d,onExit:f,onExited:p,onExiting:b,style:v,timeout:m="auto",TransitionComponent:h=Qi}=t,E=ue(t,gd),$=Kt(),y=T.useRef(),x=hn(),g=T.useRef(null),P=Ae(g,i.ref,n),S=_=>R=>{if(_){const D=g.current;R===void 0?_(D):_(D,R)}},j=S(d),A=S((_,R)=>{es(_);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(p),L=_=>{m==="auto"&&$.start(y.current||0,_),r&&r(g.current,_)};return k.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},bd[_],v,i.props.style),ref:P},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 kr=Ur,vd=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Zo=vd,yd=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],xd=Ee(qi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ts=T.forwardRef(function(t,n){var r;const o=Xi(),i=Qe({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:b,open:v,placement:m,popperOptions:h,popperRef:E,transition:$,slots:y,slotProps:x}=i,g=ue(i,yd),P=(r=y==null?void 0:y.root)!=null?r:c==null?void 0:c.Root,S=w({anchorEl:a,container:d,disablePortal:f,keepMounted:p,modifiers:b,open:v,placement:m,popperOptions:h,popperRef:E,transition:$},g);return k.jsx(xd,w({as:l,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:x??u},S,{ref:n}))});process.env.NODE_ENV!=="production"&&(ts.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 ns=ts;function Ed(e){return He("MuiTooltip",e)}const Td=rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nt=Td,wd=["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 Od(e){return Math.round(e*1e5)/1e5}const kd=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,Ed,t)},Pd=Ee(ns,{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"}})})),Sd=Ee("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:`${Od(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"})})),Cd=Ee("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 Qo=new cn;let Ht={x:0,y:0};function Tn(e,t){return n=>{t&&t(n),e(n)}}const rs=T.forwardRef(function(t,n){var r,o,i,a,l,c,u,d,f,p,b,v,m,h,E,$,y,x,g;const P=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=kr,TransitionProps:J}=P,C=ue(P,wd),re=T.isValidElement(j)?j:k.jsx("span",{children:j}),be=hn(),Te=be.direction==="rtl",[me,st]=T.useState(),[we,qe]=T.useState(null),Se=T.useRef(!1),We=L||Z,ve=Kt(),yt=Kt(),at=Kt(),Dt=Kt(),[mn,Jr]=Ti({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=Ei(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=>{Qo.clear(),En=!0,Jr(!0),F&&!Ge&&F(ee)},bn=tn(ee=>{Qo.start(800+M,()=>{En=!1}),Jr(!1),K&&Ge&&K(ee),ve.start(be.transitions.duration.shortest,()=>{Se.current=!1})}),Xn=ee=>{Se.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:Ss,onFocus:Cs,ref:Rs}=wi(),[,to]=T.useState(!1),no=ee=>{Ss(ee),eo.current===!1&&(to(!1),Qr(ee))},ro=ee=>{me||st(ee.currentTarget),Cs(ee),eo.current===!0&&(to(!0),Xn(ee))},oo=ee=>{Se.current=!0;const Ce=re.props;Ce.onTouchStart&&Ce.onTouchStart(ee)},io=Xn,so=Qr,Ns=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(Ce){(Ce.key==="Escape"||Ce.key==="Esc")&&bn(Ce)}return document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}},[bn,Ge]);const Ms=Ae(re.ref,Rs,st,n);!ne&&ne!==0&&(Ge=!1);const Yn=T.useRef(),_s=ee=>{const Ce=re.props;Ce.onMouseMove&&Ce.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:ye(C.className,re.props.className),onTouchStart:oo,ref:Ms},Z?{onMouseMove:_s}:{});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=Ns,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 Is=T.useMemo(()=>{var ee;let Ce=[{name:"arrow",enabled:!!we,options:{element:we,padding:4}}];return(ee=H.popperOptions)!=null&&ee.modifiers&&(Ce=Ce.concat(H.popperOptions.modifiers)),w({},H.popperOptions,{modifiers:Ce})},[we,H]),Vt=w({},P,{isRtl:Te,arrow:S,disableInteractive:We,placement:q,PopperComponentProp:G,touch:Se.current}),Zn=kd(Vt),ao=(r=(o=Y.popper)!=null?o:A.Popper)!=null?r:Pd,lo=(i=(a=(l=Y.transition)!=null?l:A.Transition)!=null?a:N)!=null?i:kr,co=(c=(u=Y.tooltip)!=null?u:A.Tooltip)!=null?c:Sd,uo=(d=(f=Y.arrow)!=null?f:A.Arrow)!=null?d:Cd,As=Xt(ao,w({},H,(p=X.popper)!=null?p:I.popper,{className:ye(Zn.popper,H==null?void 0:H.className,(b=(v=X.popper)!=null?v:I.popper)==null?void 0:b.className)}),Vt),js=Xt(lo,w({},J,(m=X.transition)!=null?m:I.transition),Vt),Ds=Xt(co,w({},(h=X.tooltip)!=null?h:I.tooltip,{className:ye(Zn.tooltip,(E=($=X.tooltip)!=null?$:I.tooltip)==null?void 0:E.className)}),Vt),Bs=Xt(uo,w({},(y=X.arrow)!=null?y:I.arrow,{className:ye(Zn.arrow,(x=(g=X.arrow)!=null?g:I.arrow)==null?void 0:x.className)}),Vt);return k.jsxs(T.Fragment,{children:[T.cloneElement(re,Me),k.jsx(ao,w({as:G??ns,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,As,{popperOptions:Is,children:({TransitionProps:ee})=>k.jsx(lo,w({timeout:be.transitions.duration.shorter},ee,js,{children:k.jsxs(co,w({},Ds,{children:[ne,S?k.jsx(uo,w({},Bs,{ref:qe})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(rs.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 Rd=rs;var Hr={},os={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})(os);var Nd=os.exports,cr={};function $d(e){return He("MuiSvgIcon",e)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Md=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_d=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ze(t)}`,`fontSize${ze(n)}`]};return Ze(o,$d,r)},Id=Ee("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,d,f,p,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||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(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:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,b=ue(r,Md),v=T.isValidElement(o)&&o.type==="svg",m=w({},r,{color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:v}),h={};d||(h.viewBox=p);const E=_d(m);return k.jsxs(Id,w({as:l,className:ye(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?k.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 ei=qr;function is(e,t){function n(r,o){return k.jsx(ei,w({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ei.muiName,T.memo(T.forwardRef(n))}const Ad={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(` -`)),Ri.configure(e)}},jd=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ze,createChainedFunction:br,createSvgIcon:is,debounce:xi,deprecatedPropType:ca,isMuiElement:ua,ownerDocument:xe,ownerWindow:Nt,requirePropFactory:da,setRef:Rn,unstable_ClassNameGenerator:Ad,unstable_useEnhancedEffect:ht,unstable_useId:Ei,unsupportedProp:ha,useControlled:Ti,useEventCallback:tn,useForkRef:Ae,useIsFocusVisible:wi},Symbol.toStringTag,{value:"Module"})),Dd=zs(jd);var ti;function Bd(){return ti||(ti=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Dd}(cr)),cr}var Ld=Nd;Object.defineProperty(Hr,"__esModule",{value:!0});var ss=Hr.default=void 0,Fd=Ld(Bd()),Vd=k;ss=Hr.default=(0,Fd.default)((0,Vd.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function ni(e,t,n){return e?k.jsx(de.ListItemIcon,{className:`papi-menu-icon-${n?"leading":"trailing"}`,children:k.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:d=!0,isSubMenuParent:f=!1,hasDisabledGutters:p=!1,hasDivider:b=!1,focusVisibleClassName:v,id:m,children:h}=e,E=k.jsx(de.MenuItem,{sx:{lineHeight:.8},autoFocus:l,className:c,disabled:u,dense:d,disableGutters:p,divider:b,focusVisibleClassName:v,onClick:t,id:m,children:n?k.jsxs(k.Fragment,{children:[ni(i,n,!0),k.jsx(de.ListItemText,{primary:n,inset:!i&&o}),f?k.jsx(de.ListItemIcon,{className:"papi-menu-icon-trailing",children:k.jsx(ss,{})}):ni(a,n,!1)]}):h});return r?k.jsx(Rd,{title:r,placement:"right",children:k.jsx("div",{children:E})}):E}function as(e){return Object.entries(e.groups).map(([n,r])=>({id:n,group:r}))}function zd(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=as(i).filter(d=>"menuItem"in d.group);if(!(r!=null&&r.id))throw new Error("A valid parent menu item is required for submenus.");return u=u.filter(d=>"menuItem"in d.group&&d.group.menuItem===r.id),k.jsx(Gr,{...e,includedGroups:u})};return k.jsxs(k.Fragment,{children:[k.jsx(Wr,{onClick:a,...o,isSubMenuParent:!0}),k.jsx(de.Menu,{anchorEl:t,open:!!t,onClose:l,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:c()},r.id)]})}const Ud=(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 d=o&&o.length>0?o:as(t).filter(v=>!("menuItem"in v.group)),f=Object.values(d).sort((v,m)=>(v.group.order||0)-(m.group.order||0)),p=[];f.forEach(v=>{Ud(v.id,t.items).forEach(m=>p.push({item:m,isLastItemInGroup:!1})),p.length>0&&(p[p.length-1].isLastItemInGroup=!0)}),p.length>0&&(p[p.length-1].isLastItemInGroup=!1);const b=p.some(v=>"iconPathBefore"in v.item&&v.item.iconPathBefore);return{items:p,allowForLeadingIcons:b}},[o,t]),l=({item:d,isLastItemInGroup:f})=>({className:"papi-menu-item",label:d.label,tooltip:d.tooltip,iconPathBefore:"iconPathBefore"in d?d.iconPathBefore:void 0,iconPathAfter:"iconPathAfter"in d?d.iconPathAfter:void 0,hasDivider:f,allowForLeadingIcons:a}),[c]=i;if(!c)return k.jsx("div",{});const u=c.item.group;return k.jsx("div",{role:"menu","aria-label":u,children:i.map((d,f)=>{const{item:p}=d,b=l(d);if("command"in p){const v=p.group+f;return k.jsx(Wr,{onClick:m=>{n==null||n(m),r(p)},...b},v)}return k.jsx(zd,{parentMenuItem:p,parentItemProps:b,...e},u+p.id)})},u)}function Hd(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)),k.jsx(Gr,{...e,includedGroups:i})}function qd({commandHandler:e,menuDefinition:t,id:n,metadata:r,onClick:o,className:i}){return k.jsxs(de.Grid,{id:n,item:!0,xs:"auto",role:"menu","aria-label":n,className:`papi-menu-column ${i??""}`,children:[k.jsx("h3",{"aria-label":r.label,className:`papi-menu-column-header ${i??""}`,children:r.label}),k.jsx(de.List,{id:n,dense:!0,className:i??"",children:k.jsx(Hd,{commandHandler:e,menuDefinition:t,columnId:n,onClick:o})})]})}function ls({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 k.jsx(de.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)=>k.jsx(qd,{commandHandler:e,menuDefinition:n,...a,className:t},l))})}const cs=T.createContext({});process.env.NODE_ENV!=="production"&&(cs.displayName="ListContext");const Wd=cs;function Gd(e){return He("MuiList",e)}rt("MuiList",["root","padding","dense","subheader"]);const Kd=["children","className","component","dense","disablePadding","subheader"],Xd=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ze({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Gd,t)},Yd=Ee("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})),us=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,d=ue(r,Kd),f=T.useMemo(()=>({dense:l}),[l]),p=w({},r,{component:a,dense:l,disablePadding:c}),b=Xd(p);return k.jsx(Wd.Provider,{value:f,children:k.jsxs(Yd,w({as:a,className:ye(b.root,i),ref:n,ownerState:p},d,{children:[u,o]}))})});process.env.NODE_ENV!=="production"&&(us.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 Jd=us,Zd=["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 ri(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ds(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")||!ds(l,i)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const ps=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:d,variant:f="selectedMenu"}=t,p=ue(t,Zd),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,P=xe(x).activeElement;if(g==="ArrowDown")y.preventDefault(),qt(x,P,u,c,ur);else if(g==="ArrowUp")y.preventDefault(),qt(x,P,u,c,ri);else if(g==="Home")y.preventDefault(),qt(x,null,u,c,ur);else if(g==="End")y.preventDefault(),qt(x,null,u,c,ri);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=P&&!S.repeating&&ds(P,S);S.previousKeyMatched&&(I||qt(x,P,!1,c,ur,S))?y.preventDefault():S.previousKeyMatched=!1}d&&d(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 k.jsx(Jd,w({role:"menu",ref:h,className:l,onKeyDown:m,tabIndex:o?0:-1},p,{children:$}))});process.env.NODE_ENV!=="production"&&(ps.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 Qd=ps,ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tp={entering:{opacity:1},entered:{opacity:1}},fs=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:d,onEntered:f,onEntering:p,onExit:b,onExited:v,onExiting:m,style:h,timeout:E=o,TransitionComponent:$=Qi}=t,y=ue(t,ep),x=T.useRef(null),g=Ae(x,l.ref,n),P=L=>_=>{if(L){const R=x.current;_===void 0?L(R):L(R,_)}},S=P(p),j=P((L,_)=>{es(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),d&&d(L,_)}),A=P(f),I=P(m),B=P(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=P(v),W=L=>{i&&i(x.current,L)};return k.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},tp[L],h,l.props.style),ref:g},_))}))});process.env.NODE_ENV!=="production"&&(fs.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 np=fs;function rp(e){return He("MuiBackdrop",e)}rt("MuiBackdrop",["root","invisible"]);const op=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ip=e=>{const{classes:t,invisible:n}=e;return Ze({root:["root",n&&"invisible"]},rp,t)},sp=Ee("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"})),hs=T.forwardRef(function(t,n){var r,o,i;const a=Qe({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:b,slotProps:v={},slots:m={},TransitionComponent:h=np,transitionDuration:E}=a,$=ue(a,op),y=w({},a,{component:u,invisible:p}),x=ip(y),g=(r=v.root)!=null?r:f.root;return k.jsx(h,w({in:b,timeout:E},$,{children:k.jsx(sp,w({"aria-hidden":!0},g,{as:(o=(i=m.root)!=null?i:d.Root)!=null?o:u,className:ye(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"&&(hs.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 ap=hs;function lp(e){return He("MuiModal",e)}rt("MuiModal",["root","hidden","backdrop"]);const cp=["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"],up=e=>{const{open:t,exited:n,classes:r}=e;return Ze({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},lp,r)},dp=Ee("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"})),pp=Ee(ap,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ms=T.forwardRef(function(t,n){var r,o,i,a,l,c;const u=Qe({name:"MuiModal",props:t}),{BackdropComponent:d=pp,BackdropProps:f,className:p,closeAfterTransition:b=!1,children:v,container:m,component:h,components:E={},componentsProps:$={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:g=!1,disablePortal:P=!1,disableRestoreFocus:S=!1,disableScrollLock:j=!1,hideBackdrop:A=!1,keepMounted:I=!1,onBackdropClick:B,open:z,slotProps:W,slots:L}=u,_=ue(u,cp),R=w({},u,{closeAfterTransition:b,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:g,disablePortal:P,disableRestoreFocus:S,disableScrollLock:j,hideBackdrop:A,keepMounted:I}),{getRootProps:D,getBackdropProps:Q,getTransitionProps:Z,portalRef:O,isTopModal:M,exited:V,hasTransition:K}=tl(w({},R,{rootRef:n})),F=w({},R,{exited:V}),U=up(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:dp,H=(i=(a=L==null?void 0:L.backdrop)!=null?a:E.Backdrop)!=null?i:d,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:ye(p,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:ye(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:k.jsx(nn,{ref:O,container:m,disablePortal:P,children:k.jsxs(G,w({},ne,{children:[!A&&d?k.jsx(H,w({},N)):null,k.jsx(Nn,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:M,open:z,children:T.cloneElement(v,q)})]}))})});process.env.NODE_ENV!=="production"&&(ms.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 fp=ms;function hp(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 mp=["className","component","elevation","square","variant"],gp=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ze(i,hp,o)},bp=Ee("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",Zo(t.elevation))}, ${In("#fff",Zo(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),gs=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,mp),d=w({},r,{component:i,elevation:a,square:l,variant:c}),f=gp(d);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(` -`)),k.jsx(bp,w({as:i,ownerState:d,className:ye(f.root,o),ref:n},u))});process.env.NODE_ENV!=="production"&&(gs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:At(Si,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 vp=gs;function yp(e){return He("MuiPopover",e)}rt("MuiPopover",["root","paper"]);const xp=["onEntering"],Ep=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Tp=["slotProps"];function oi(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ii(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function si(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Pn(e){return typeof e=="function"?e():e}const wp=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},yp,t)},Op=Ee(fp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bs=Ee(vp,{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}),vs=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:d,anchorReference:f="anchorEl",children:p,className:b,container:v,elevation:m=8,marginThreshold:h=16,open:E,PaperProps:$={},slots:y,slotProps:x,transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:P=kr,transitionDuration:S="auto",TransitionProps:{onEntering:j}={},disableScrollLock:A=!1}=a,I=ue(a.TransitionProps,xp),B=ue(a,Ep),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:P,transitionDuration:S,TransitionProps:I}),R=wp(_),D=T.useCallback(()=>{if(f==="anchorPosition")return process.env.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using .')),d;const J=Pn(c),C=J&&J.nodeType===1?J:xe(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+oi(re,u.vertical),left:re.left+ii(re,u.horizontal)}},[c,u.horizontal,u.vertical,d,f]),Q=T.useCallback(J=>({vertical:oi(J,g.vertical),horizontal:ii(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:si(re)};const be=D();let Te=be.top-re.vertical,me=be.left-re.horizontal;const st=Te+C.height,we=me+C.width,qe=Nt(Pn(c)),Se=qe.innerHeight-h,We=qe.innerWidth-h;if(h!==null&&TeSe){const ve=st-Se;Te-=ve,re.vertical+=ve}if(process.env.NODE_ENV!=="production"&&C.height>Se&&C.height&&Se&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${C.height-Se}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(` -`)),h!==null&&meWe){const ve=we-We;me-=ve,re.horizontal+=ve}return{top:`${Math.round(Te)}px`,left:`${Math.round(me)}px`,transformOrigin:si(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=xi(()=>{V()}),C=Nt(c);return C.addEventListener("resize",J),()=>{J.clear(),C.removeEventListener("resize",J)}},[c,E,V]);let U=S;S==="auto"&&!P.muiSupportAuto&&(U=void 0);const q=v||(c?xe(Pn(c)).body:void 0),G=(o=y==null?void 0:y.root)!=null?o:Op,H=(i=y==null?void 0:y.paper)!=null?i:bs,X=mt({elementType:H,externalSlotProps:w({},z,{style:O?z.style:w({},z.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:_,className:ye(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:ye(R.root,b)}),{slotProps:ne}=Y,N=ue(Y,Tp);return k.jsx(G,w({},N,!$i(G)&&{slotProps:ne,disableScrollLock:A},{children:k.jsx(P,w({appear:!0,in:E,onEntering:K,onExited:F,timeout:U},I,{children:k.jsx(H,w({},X,{children:p}))}))}))});process.env.NODE_ENV!=="production"&&(vs.propTypes={action:Sr,anchorEl:At(s.oneOfType([Xe,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Pn(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(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:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:_u,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},b[t]),o)}const Ku=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xu(e){return Math.round(e*1e5)/1e5}const Xo={textTransform:"uppercase"},Yo='"Roboto", "Helvetica", "Arial", sans-serif';function Yu(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:d,pxToRem:f}=n,p=ue(n,Ku);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:`${Xu(x/$)}em`}:{},g,d),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),p,{clone:!1})}const Ju=.2,Zu=.14,Qu=.12;function pe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ju})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Qu})`].join(",")}const ed=["none",pe(0,2,1,-1,0,1,1,0,0,1,3,0),pe(0,3,1,-2,0,2,2,0,0,1,5,0),pe(0,3,3,-2,0,3,4,0,0,1,8,0),pe(0,2,4,-1,0,4,5,0,0,1,10,0),pe(0,3,5,-1,0,5,8,0,0,1,14,0),pe(0,3,5,-1,0,6,10,0,0,1,18,0),pe(0,4,5,-2,0,7,10,1,0,2,16,1),pe(0,5,5,-3,0,8,10,1,0,3,14,2),pe(0,5,6,-3,0,9,12,1,0,3,16,2),pe(0,6,6,-3,0,10,14,1,0,4,18,3),pe(0,6,7,-4,0,11,15,1,0,4,20,3),pe(0,7,8,-4,0,12,17,2,0,5,22,4),pe(0,7,8,-4,0,13,19,2,0,5,24,4),pe(0,7,9,-4,0,14,21,2,0,5,26,4),pe(0,8,9,-5,0,15,22,2,0,6,28,5),pe(0,8,10,-5,0,16,24,2,0,6,30,5),pe(0,8,11,-5,0,17,26,2,0,6,32,5),pe(0,9,11,-5,0,18,28,2,0,7,34,6),pe(0,9,12,-6,0,19,29,2,0,7,36,6),pe(0,10,13,-6,0,20,31,3,0,8,38,7),pe(0,10,13,-6,0,21,33,3,0,8,40,7),pe(0,10,14,-6,0,22,35,3,0,8,42,7),pe(0,11,14,-7,0,23,36,3,0,9,44,8),pe(0,11,15,-7,0,24,38,3,0,9,46,8)],td=ed,nd=["duration","easing","delay"],rd={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)"},od={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jo(e){return`${Math.round(e)}ms`}function id(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sd(e){const t=w({},rd,e.easing),n=w({},od,e.duration);return w({getAutoHeightDuration:id,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=ue(i,nd);if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!isNaN(parseFloat(p));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!d(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(d=>`${d} ${typeof a=="string"?a:Jo(a)} ${l} ${typeof c=="string"?c:Jo(c)}`).join(",")}},e,{easing:t,duration:n})}const ad={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ld=ad,cd=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ud(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ue(e,cd);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=Gu(r),c=Lr(e);let u=Ke(c,{mixins:Nu(c.breakpoints,n),palette:l,shadows:td.slice(),typography:Yu(l,i),transitions:sd(o),zIndex:w({},ld)});if(u=Ke(u,a),u=t.reduce((d,f)=>Ke(d,f),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(p,b)=>{let v;for(v in p){const m=p[v];if(d.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(p,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(` +`))}p[v]={}}}};Object.keys(u.components).forEach(p=>{const b=u.components[p].styleOverrides;b&&p.indexOf("Mui")===0&&f(b,p)})}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 dd=ud(),Vr=dd,zr="$$material",Zi=e=>On(e)&&e!=="classes",pd=wu({themeId:zr,defaultTheme:Vr,rootShouldForwardProp:Zi}),Ee=pd;function hn(){const e=Ji(Vr);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[zr]||e}function Qe({props:e,name:t}){return ku({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 fd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tr(e,t)}const Zo={disabled:!1};var hd=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 Qi=ne.createContext(null);var md=function(t){return t.scrollTop},Yt="unmounted",ct="exited",ut="entering",Pt="entered",wr="exiting",et=function(e){fd(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=Pt: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!==Pt&&(i=ut):(a===ut||a===Pt)&&(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&&md(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],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!o&&!a||Zo.disabled){this.safeSetState({status:Pt},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ut},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Pt},function(){i.props.onEntered(u,d)})})})},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],d=c[1];this.props.addEndListener(u,d)}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 ne.createElement(Qi.Provider,{value:null},typeof a=="function"?a(o,l):ne.cloneElement(ne.Children.only(a),l))},t}(ne.Component);et.contextType=Qi;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=hd;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 gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Or(e){return`scale(${e}, ${e**2})`}const bd={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:d,onExit:f,onExited:p,onExiting:b,style:v,timeout:m="auto",TransitionComponent:h=es}=t,E=ue(t,gd),$=Kt(),y=T.useRef(),x=hn(),g=T.useRef(null),P=Ae(g,i.ref,n),S=_=>R=>{if(_){const D=g.current;R===void 0?_(D):_(D,R)}},j=S(d),A=S((_,R)=>{ts(_);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(p),L=_=>{m==="auto"&&$.start(y.current||0,_),r&&r(g.current,_)};return k.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},bd[_],v,i.props.style),ref:P},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 kr=Ur,vd=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Qo=vd,yd=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],xd=Ee(Wi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ns=T.forwardRef(function(t,n){var r;const o=Yi(),i=Qe({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:b,open:v,placement:m,popperOptions:h,popperRef:E,transition:$,slots:y,slotProps:x}=i,g=ue(i,yd),P=(r=y==null?void 0:y.root)!=null?r:c==null?void 0:c.Root,S=w({anchorEl:a,container:d,disablePortal:f,keepMounted:p,modifiers:b,open:v,placement:m,popperOptions:h,popperRef:E,transition:$},g);return k.jsx(xd,w({as:l,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:x??u},S,{ref:n}))});process.env.NODE_ENV!=="production"&&(ns.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 rs=ns;function Ed(e){return He("MuiTooltip",e)}const Td=rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nt=Td,wd=["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 Od(e){return Math.round(e*1e5)/1e5}const kd=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,Ed,t)},Pd=Ee(rs,{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"}})})),Sd=Ee("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:`${Od(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"})})),Cd=Ee("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 os=T.forwardRef(function(t,n){var r,o,i,a,l,c,u,d,f,p,b,v,m,h,E,$,y,x,g;const P=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:re,TransitionComponent:N=kr,TransitionProps:J}=P,C=ue(P,wd),oe=T.isValidElement(j)?j:k.jsx("span",{children:j}),be=hn(),Te=be.direction==="rtl",[me,st]=T.useState(),[we,qe]=T.useState(null),Se=T.useRef(!1),We=L||Z,ve=Kt(),yt=Kt(),at=Kt(),Dt=Kt(),[mn,Zr]=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&&re!==""&&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(` +`))},[re,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 Qr=ee=>{ei.clear(),En=!0,Zr(!0),F&&!Ge&&F(ee)},bn=tn(ee=>{ei.start(800+M,()=>{En=!1}),Zr(!1),K&&Ge&&K(ee),ve.start(be.transitions.duration.shortest,()=>{Se.current=!1})}),Xn=ee=>{Se.current&&ee.type!=="touchstart"||(me&&me.removeAttribute("title"),yt.clear(),at.clear(),R||En&&D?yt.start(En?D:R,()=>{Qr(ee)}):Qr(ee))},eo=ee=>{yt.clear(),at.start(M,()=>{bn(ee)})},{isFocusVisibleRef:to,onBlur:Ss,onFocus:Cs,ref:Rs}=Oi(),[,no]=T.useState(!1),ro=ee=>{Ss(ee),to.current===!1&&(no(!1),eo(ee))},oo=ee=>{me||st(ee.currentTarget),Cs(ee),to.current===!0&&(no(!0),Xn(ee))},io=ee=>{Se.current=!0;const Ce=oe.props;Ce.onTouchStart&&Ce.onTouchStart(ee)},so=Xn,ao=eo,Ns=ee=>{io(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=>{oe.props.onTouchEnd&&oe.props.onTouchEnd(ee),gn(),at.start(V,()=>{bn(ee)})};T.useEffect(()=>{if(!Ge)return;function ee(Ce){(Ce.key==="Escape"||Ce.key==="Esc")&&bn(Ce)}return document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)}},[bn,Ge]);const Ms=Ae(oe.ref,Rs,st,n);!re&&re!==0&&(Ge=!1);const Yn=T.useRef(),_s=ee=>{const Ce=oe.props;Ce.onMouseMove&&Ce.onMouseMove(ee),Ht={x:ee.clientX,y:ee.clientY},Yn.current&&Yn.current.update()},Lt={},Jn=typeof re=="string";B?(Lt.title=!Ge&&Jn&&!W?re:null,Lt["aria-describedby"]=Ge?Kn:null):(Lt["aria-label"]=Jn?re:null,Lt["aria-labelledby"]=Ge&&!Jn?Kn:null);const Me=w({},Lt,C,oe.props,{className:ye(C.className,oe.props.className),onTouchStart:io,ref:Ms},Z?{onMouseMove:_s}:{});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=Ns,Me.onTouchEnd=$s),W||(Me.onMouseOver=Tn(so,Me.onMouseOver),Me.onMouseLeave=Tn(ao,Me.onMouseLeave),We||(Ft.onMouseOver=so,Ft.onMouseLeave=ao)),z||(Me.onFocus=Tn(oo,Me.onFocus),Me.onBlur=Tn(ro,Me.onBlur),We||(Ft.onFocus=oo,Ft.onBlur=ro)),process.env.NODE_ENV!=="production"&&oe.props.title&&console.error(["MUI: You have provided a `title` prop to the child of .",`Remove this title prop \`${oe.props.title}\` or the Tooltip component.`].join(` +`));const Is=T.useMemo(()=>{var ee;let Ce=[{name:"arrow",enabled:!!we,options:{element:we,padding:4}}];return(ee=H.popperOptions)!=null&&ee.modifiers&&(Ce=Ce.concat(H.popperOptions.modifiers)),w({},H.popperOptions,{modifiers:Ce})},[we,H]),Vt=w({},P,{isRtl:Te,arrow:S,disableInteractive:We,placement:q,PopperComponentProp:G,touch:Se.current}),Zn=kd(Vt),lo=(r=(o=Y.popper)!=null?o:A.Popper)!=null?r:Pd,co=(i=(a=(l=Y.transition)!=null?l:A.Transition)!=null?a:N)!=null?i:kr,uo=(c=(u=Y.tooltip)!=null?u:A.Tooltip)!=null?c:Sd,po=(d=(f=Y.arrow)!=null?f:A.Arrow)!=null?d:Cd,As=Xt(lo,w({},H,(p=X.popper)!=null?p:I.popper,{className:ye(Zn.popper,H==null?void 0:H.className,(b=(v=X.popper)!=null?v:I.popper)==null?void 0:b.className)}),Vt),js=Xt(co,w({},J,(m=X.transition)!=null?m:I.transition),Vt),Ds=Xt(uo,w({},(h=X.tooltip)!=null?h:I.tooltip,{className:ye(Zn.tooltip,(E=($=X.tooltip)!=null?$:I.tooltip)==null?void 0:E.className)}),Vt),Bs=Xt(po,w({},(y=X.arrow)!=null?y:I.arrow,{className:ye(Zn.arrow,(x=(g=X.arrow)!=null?g:I.arrow)==null?void 0:x.className)}),Vt);return k.jsxs(T.Fragment,{children:[T.cloneElement(oe,Me),k.jsx(lo,w({as:G??rs,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,As,{popperOptions:Is,children:({TransitionProps:ee})=>k.jsx(co,w({timeout:be.transitions.duration.shorter},ee,js,{children:k.jsxs(uo,w({},Ds,{children:[re,S?k.jsx(po,w({},Bs,{ref:qe})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(os.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 Rd=os;var Hr={},is={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})(is);var Nd=is.exports,cr={};function $d(e){return He("MuiSvgIcon",e)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Md=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_d=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ze(t)}`,`fontSize${ze(n)}`]};return Ze(o,$d,r)},Id=Ee("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,d,f,p,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||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(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:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,b=ue(r,Md),v=T.isValidElement(o)&&o.type==="svg",m=w({},r,{color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:v}),h={};d||(h.viewBox=p);const E=_d(m);return k.jsxs(Id,w({as:l,className:ye(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?k.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 ss(e,t){function n(r,o){return k.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 Ad={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)}},jd=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ze,createChainedFunction:br,createSvgIcon:ss,debounce:Ei,deprecatedPropType:ca,isMuiElement:ua,ownerDocument:xe,ownerWindow:Nt,requirePropFactory:da,setRef:Rn,unstable_ClassNameGenerator:Ad,unstable_useEnhancedEffect:ht,unstable_useId:Ti,unsupportedProp:ha,useControlled:wi,useEventCallback:tn,useForkRef:Ae,useIsFocusVisible:Oi},Symbol.toStringTag,{value:"Module"})),Dd=zs(jd);var ni;function Bd(){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=Dd}(cr)),cr}var Ld=Nd;Object.defineProperty(Hr,"__esModule",{value:!0});var as=Hr.default=void 0,Fd=Ld(Bd()),Vd=k;as=Hr.default=(0,Fd.default)((0,Vd.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function ri(e,t,n){return e?k.jsx(de.ListItemIcon,{className:`papi-menu-icon-${n?"leading":"trailing"}`,children:k.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:d=!0,isSubMenuParent:f=!1,hasDisabledGutters:p=!1,hasDivider:b=!1,focusVisibleClassName:v,id:m,children:h}=e,E=k.jsx(de.MenuItem,{sx:{lineHeight:.8},autoFocus:l,className:c,disabled:u,dense:d,disableGutters:p,divider:b,focusVisibleClassName:v,onClick:t,id:m,children:n?k.jsxs(k.Fragment,{children:[ri(i,n,!0),k.jsx(de.ListItemText,{primary:n,inset:!i&&o}),f?k.jsx(de.ListItemIcon,{className:"papi-menu-icon-trailing",children:k.jsx(as,{})}):ri(a,n,!1)]}):h});return r?k.jsx(Rd,{title:r,placement:"right",children:k.jsx("div",{children:E})}):E}function ls(e){return Object.entries(e.groups).map(([n,r])=>({id:n,group:r}))}function zd(e){const[t,n]=ne.useState(void 0),{parentMenuItem:r,parentItemProps:o,menuDefinition:i}=e,a=u=>{n(u.currentTarget)},l=()=>{n(void 0)},c=()=>{let u=ls(i).filter(d=>"menuItem"in d.group);if(!(r!=null&&r.id))throw new Error("A valid parent menu item is required for submenus.");return u=u.filter(d=>"menuItem"in d.group&&d.group.menuItem===r.id),k.jsx(Gr,{...e,includedGroups:u})};return k.jsxs(k.Fragment,{children:[k.jsx(Wr,{onClick:a,...o,isSubMenuParent:!0}),k.jsx(de.Menu,{anchorEl:t,open:!!t,onClose:l,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:c()},r.id)]})}const Ud=(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}=ne.useMemo(()=>{const d=o&&o.length>0?o:ls(t).filter(v=>!("menuItem"in v.group)),f=Object.values(d).sort((v,m)=>(v.group.order||0)-(m.group.order||0)),p=[];f.forEach(v=>{Ud(v.id,t.items).forEach(m=>p.push({item:m,isLastItemInGroup:!1})),p.length>0&&(p[p.length-1].isLastItemInGroup=!0)}),p.length>0&&(p[p.length-1].isLastItemInGroup=!1);const b=p.some(v=>"iconPathBefore"in v.item&&v.item.iconPathBefore);return{items:p,allowForLeadingIcons:b}},[o,t]),l=({item:d,isLastItemInGroup:f})=>({className:"papi-menu-item",label:d.label,tooltip:d.tooltip,iconPathBefore:"iconPathBefore"in d?d.iconPathBefore:void 0,iconPathAfter:"iconPathAfter"in d?d.iconPathAfter:void 0,hasDivider:f,allowForLeadingIcons:a}),[c]=i;if(!c)return k.jsx("div",{});const u=c.item.group;return k.jsx("div",{role:"menu","aria-label":u,children:i.map((d,f)=>{const{item:p}=d,b=l(d);if("command"in p){const v=p.group+f;return k.jsx(Wr,{onClick:m=>{n==null||n(m),r(p)},...b},v)}return k.jsx(zd,{parentMenuItem:p,parentItemProps:b,...e},u+p.id)})},u)}function Hd(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)),k.jsx(Gr,{...e,includedGroups:i})}function qd({commandHandler:e,menuDefinition:t,id:n,metadata:r,onClick:o,className:i}){return k.jsxs(de.Grid,{id:n,item:!0,xs:"auto",role:"menu","aria-label":n,className:`papi-menu-column ${i??""}`,children:[k.jsx("h3",{"aria-label":r.label,className:`papi-menu-column-header ${i??""}`,children:r.label}),k.jsx(de.List,{id:n,dense:!0,className:i??"",children:k.jsx(Hd,{commandHandler:e,menuDefinition:t,columnId:n,onClick:o})})]})}function cs({commandHandler:e,className:t,multiColumnMenu:n,id:r}){const{columns:o}=n,i=ne.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 k.jsx(de.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)=>k.jsx(qd,{commandHandler:e,menuDefinition:n,...a,className:t},l))})}const us=T.createContext({});process.env.NODE_ENV!=="production"&&(us.displayName="ListContext");const Wd=us;function Gd(e){return He("MuiList",e)}rt("MuiList",["root","padding","dense","subheader"]);const Kd=["children","className","component","dense","disablePadding","subheader"],Xd=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ze({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Gd,t)},Yd=Ee("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,d=ue(r,Kd),f=T.useMemo(()=>({dense:l}),[l]),p=w({},r,{component:a,dense:l,disablePadding:c}),b=Xd(p);return k.jsx(Wd.Provider,{value:f,children:k.jsxs(Yd,w({as:a,className:ye(b.root,i),ref:n,ownerState:p},d,{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 Jd=ds,Zd=["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 ps(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")||!ps(l,i)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const fs=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:d,variant:f="selectedMenu"}=t,p=ue(t,Zd),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,P=xe(x).activeElement;if(g==="ArrowDown")y.preventDefault(),qt(x,P,u,c,ur);else if(g==="ArrowUp")y.preventDefault(),qt(x,P,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=P&&!S.repeating&&ps(P,S);S.previousKeyMatched&&(I||qt(x,P,!1,c,ur,S))?y.preventDefault():S.previousKeyMatched=!1}d&&d(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 k.jsx(Jd,w({role:"menu",ref:h,className:l,onKeyDown:m,tabIndex:o?0:-1},p,{children:$}))});process.env.NODE_ENV!=="production"&&(fs.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 Qd=fs,ep=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tp={entering:{opacity:1},entered:{opacity:1}},hs=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:d,onEntered:f,onEntering:p,onExit:b,onExited:v,onExiting:m,style:h,timeout:E=o,TransitionComponent:$=es}=t,y=ue(t,ep),x=T.useRef(null),g=Ae(x,l.ref,n),P=L=>_=>{if(L){const R=x.current;_===void 0?L(R):L(R,_)}},S=P(p),j=P((L,_)=>{ts(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),d&&d(L,_)}),A=P(f),I=P(m),B=P(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=P(v),W=L=>{i&&i(x.current,L)};return k.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},tp[L],h,l.props.style),ref:g},_))}))});process.env.NODE_ENV!=="production"&&(hs.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 np=hs;function rp(e){return He("MuiBackdrop",e)}rt("MuiBackdrop",["root","invisible"]);const op=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ip=e=>{const{classes:t,invisible:n}=e;return Ze({root:["root",n&&"invisible"]},rp,t)},sp=Ee("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"})),ms=T.forwardRef(function(t,n){var r,o,i;const a=Qe({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:b,slotProps:v={},slots:m={},TransitionComponent:h=np,transitionDuration:E}=a,$=ue(a,op),y=w({},a,{component:u,invisible:p}),x=ip(y),g=(r=v.root)!=null?r:f.root;return k.jsx(h,w({in:b,timeout:E},$,{children:k.jsx(sp,w({"aria-hidden":!0},g,{as:(o=(i=m.root)!=null?i:d.Root)!=null?o:u,className:ye(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"&&(ms.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 ap=ms;function lp(e){return He("MuiModal",e)}rt("MuiModal",["root","hidden","backdrop"]);const cp=["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"],up=e=>{const{open:t,exited:n,classes:r}=e;return Ze({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},lp,r)},dp=Ee("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"})),pp=Ee(ap,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),gs=T.forwardRef(function(t,n){var r,o,i,a,l,c;const u=Qe({name:"MuiModal",props:t}),{BackdropComponent:d=pp,BackdropProps:f,className:p,closeAfterTransition:b=!1,children:v,container:m,component:h,components:E={},componentsProps:$={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:g=!1,disablePortal:P=!1,disableRestoreFocus:S=!1,disableScrollLock:j=!1,hideBackdrop:A=!1,keepMounted:I=!1,onBackdropClick:B,open:z,slotProps:W,slots:L}=u,_=ue(u,cp),R=w({},u,{closeAfterTransition:b,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:g,disablePortal:P,disableRestoreFocus:S,disableScrollLock:j,hideBackdrop:A,keepMounted:I}),{getRootProps:D,getBackdropProps:Q,getTransitionProps:Z,portalRef:O,isTopModal:M,exited:V,hasTransition:K}=tl(w({},R,{rootRef:n})),F=w({},R,{exited:V}),U=up(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:dp,H=(i=(a=L==null?void 0:L.backdrop)!=null?a:E.Backdrop)!=null?i:d,X=(l=W==null?void 0:W.root)!=null?l:$.root,Y=(c=W==null?void 0:W.backdrop)!=null?c:$.backdrop,re=mt({elementType:G,externalSlotProps:X,externalForwardedProps:_,getSlotProps:D,additionalProps:{ref:n,as:h},ownerState:F,className:ye(p,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:ye(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:k.jsx(nn,{ref:O,container:m,disablePortal:P,children:k.jsxs(G,w({},re,{children:[!A&&d?k.jsx(H,w({},N)):null,k.jsx(Nn,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:M,open:z,children:T.cloneElement(v,q)})]}))})});process.env.NODE_ENV!=="production"&&(gs.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 fp=gs;function hp(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 mp=["className","component","elevation","square","variant"],gp=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ze(i,hp,o)},bp=Ee("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]}))}),bs=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,mp),d=w({},r,{component:i,elevation:a,square:l,variant:c}),f=gp(d);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(` +`)),k.jsx(bp,w({as:i,ownerState:d,className:ye(f.root,o),ref:n},u))});process.env.NODE_ENV!=="production"&&(bs.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 vp=bs;function yp(e){return He("MuiPopover",e)}rt("MuiPopover",["root","paper"]);const xp=["onEntering"],Ep=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Tp=["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 Pn(e){return typeof e=="function"?e():e}const wp=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},yp,t)},Op=Ee(fp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vs=Ee(vp,{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}),ys=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:d,anchorReference:f="anchorEl",children:p,className:b,container:v,elevation:m=8,marginThreshold:h=16,open:E,PaperProps:$={},slots:y,slotProps:x,transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:P=kr,transitionDuration:S="auto",TransitionProps:{onEntering:j}={},disableScrollLock:A=!1}=a,I=ue(a.TransitionProps,xp),B=ue(a,Ep),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:P,transitionDuration:S,TransitionProps:I}),R=wp(_),D=T.useCallback(()=>{if(f==="anchorPosition")return process.env.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using .')),d;const J=Pn(c),C=J&&J.nodeType===1?J:xe(W.current).body,oe=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:oe.top+ii(oe,u.vertical),left:oe.left+si(oe,u.horizontal)}},[c,u.horizontal,u.vertical,d,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},oe=Q(C);if(f==="none")return{top:null,left:null,transformOrigin:ai(oe)};const be=D();let Te=be.top-oe.vertical,me=be.left-oe.horizontal;const st=Te+C.height,we=me+C.width,qe=Nt(Pn(c)),Se=qe.innerHeight-h,We=qe.innerWidth-h;if(h!==null&&TeSe){const ve=st-Se;Te-=ve,oe.vertical+=ve}if(process.env.NODE_ENV!=="production"&&C.height>Se&&C.height&&Se&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${C.height-Se}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(` +`)),h!==null&&meWe){const ve=we-We;me-=ve,oe.horizontal+=ve}return{top:`${Math.round(Te)}px`,left:`${Math.round(me)}px`,transformOrigin:ai(oe)}},[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"&&!P.muiSupportAuto&&(U=void 0);const q=v||(c?xe(Pn(c)).body:void 0),G=(o=y==null?void 0:y.root)!=null?o:Op,H=(i=y==null?void 0:y.paper)!=null?i:vs,X=mt({elementType:H,externalSlotProps:w({},z,{style:O?z.style:w({},z.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:_,className:ye(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:ye(R.root,b)}),{slotProps:re}=Y,N=ue(Y,Tp);return k.jsx(G,w({},N,!Mi(G)&&{slotProps:re,disableScrollLock:A},{children:k.jsx(P,w({appear:!0,in:E,onEntering:K,onExited:F,timeout:U},I,{children:k.jsx(H,w({},X,{children:p}))}))}))});process.env.NODE_ENV!=="production"&&(ys.propTypes={action:Sr,anchorEl:At(s.oneOfType([Xe,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Pn(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:Si,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:ta}),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 kp=vs;function Pp(e){return He("MuiMenu",e)}rt("MuiMenu",["root","paper","list"]);const Sp=["onEntering"],Cp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Rp={vertical:"top",horizontal:"right"},Np={vertical:"top",horizontal:"left"},$p=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},Pp,t)},Mp=Ee(kp,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_p=Ee(bs,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ip=Ee(Qd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ys=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:d={},onClose:f,open:p,PaperProps:b={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:E="selectedMenu",slots:$={},slotProps:y={}}=i,x=ue(i.TransitionProps,Sp),g=ue(i,Cp),P=hn(),S=P.direction==="rtl",j=w({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:h,PaperProps:b,transitionDuration:m,TransitionProps:x,variant:E}),A=$p(j),I=a&&!u&&p,B=T.useRef(null),z=(Z,O)=>{B.current&&B.current.adjustStyleForScrollbar(Z,P),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:_p,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 k.jsx(Mp,w({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Rp:Np,slots:{paper:_,root:$.root},slotProps:{root:D,paper:Q},open:p,ref:n,transitionDuration:m,TransitionProps:w({onEntering:z},x),ownerState:j},g,{classes:v,children:k.jsx(Ip,w({onKeyDown:W,actions:B,autoFocus:a&&(L===-1||u),autoFocusItem:I,variant:E},d,{className:ye(A.list,d.className),children:l}))}))});process.env.NODE_ENV!=="production"&&(ys.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 Ap=ys;function jp({className:e,commandHandler:t,menuDefinition:n,children:r}){var u;const[o,i]=ie.useState(void 0),a=ie.useCallback(d=>{d.preventDefault(),i(o===void 0?{mouseX:d.clientX+2,mouseY:d.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:k.jsxs("div",{className:`papi-context-menu-target ${e??""}`,onContextMenu:a,children:[r,k.jsx(Ap,{className:`papi-context-menu ${e??""}`,open:o!==void 0,onClose:l,anchorReference:"anchorPosition",anchorPosition:c,children:k.jsx(Gr,{menuDefinition:n,commandHandler:t,onClick:l})})]})}function Dp({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 k.jsx(de.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 Bp=Object.defineProperty,Lp=(e,t,n)=>t in e?Bp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t,n)=>(Lp(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"],xs=["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"],ai=Xp();function jt(e,t=!0){return t&&(e=e.toUpperCase()),e in ai?ai[e]:0}function Xr(e){return jt(e)>0}function Fp(e){const t=typeof e=="string"?jt(e):e;return t>=40&&t<=66}function Vp(e){return(typeof e=="string"?jt(e):e)<=39}function Es(e){return e<=66}function zp(e){const t=typeof e=="string"?jt(e):e;return Os(t)&&!Es(t)}function*Up(){for(let e=1;e<=vt.length;e++)yield e}const Hp=1,Ts=vt.length;function qp(){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 ws(e){return e<=0||e>Ts?"******":xs[e-1]}function Wp(e){return ws(jt(e))}function Os(e){const t=typeof e=="number"?Yr(e):e;return Xr(t)&&!Kr.includes(t)}function Gp(e){const t=typeof e=="number"?Yr(e):e;return Xr(t)&&Kr.includes(t)}function Kp(e){return xs[e-1].includes("*obsolete*")}function Xp(){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 Re=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(Re,"Original",new Re(tt.Original)),te(Re,"Septuagint",new Re(tt.Septuagint)),te(Re,"Vulgate",new Re(tt.Vulgate)),te(Re,"English",new Re(tt.English)),te(Re,"RussianProtestant",new Re(tt.RussianProtestant)),te(Re,"RussianOrthodox",new Re(tt.RussianOrthodox));let St=Re;function li(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))(ks||{});const Oe=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=li(this._verse,r);for(const a of i.map(l=>li(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 d=c+1;da)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(Oe,"defaultVersification",St.English),te(Oe,"verseRangeSeparator","-"),te(Oe,"verseSequenceIndicator",","),te(Oe,"verseRangeSeparators",[Oe.verseRangeSeparator]),te(Oe,"verseSequenceIndicators",[Oe.verseSequenceIndicator]),te(Oe,"chapterDigitShifter",1e3),te(Oe,"bookDigitShifter",Oe.chapterDigitShifter*Oe.chapterDigitShifter),te(Oe,"bcvMaxValue",Oe.chapterDigitShifter-1),te(Oe,"ValidStatusType",ks);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:d,value:f,onChange:p,onFocus:b,onBlur:v}){return k.jsx(de.TextField,{variant:e,id:t,disabled:n,error:r,fullWidth:o,helperText:i,label:a,placeholder:l,required:c,className:`papi-textfield ${u??""}`,defaultValue:d,value:f,onChange:p,onFocus:b,onBlur:v})}let dr;const pr=()=>(dr||(dr=Fe.allBookIds.map(e=>({bookId:e,label:Fe.bookIdToEnglishName(e)}))),dr);function Yp({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(()=>pr()[e.bookNum-1],[e.bookNum]);return k.jsxs("span",{id:n,children:[k.jsx(Sn,{title:"Book",className:"papi-ref-selector book",value:l,options:pr(),onChange:o,isClearable:!1,width:200}),k.jsx(lt,{onClick:()=>r(Le.offsetBook(e,-1)),isDisabled:e.bookNum<=Le.FIRST_SCR_BOOK_NUM,children:"<"}),k.jsx(lt,{onClick:()=>r(Le.offsetBook(e,1)),isDisabled:e.bookNum>=pr().length,children:">"}),k.jsx(an,{className:"papi-ref-selector chapter-verse",label:"Chapter",value:e.chapterNum,onChange:i}),k.jsx(lt,{onClick:()=>t(Le.offsetChapter(e,-1)),isDisabled:e.chapterNum<=Le.FIRST_SCR_CHAPTER_NUM,children:"<"}),k.jsx(lt,{onClick:()=>t(Le.offsetChapter(e,1)),isDisabled:e.chapterNum>=Le.getChaptersForBook(e.bookNum),children:">"}),k.jsx(an,{className:"papi-ref-selector chapter-verse",label:"Verse",value:e.verseNum,onChange:a}),k.jsx(lt,{onClick:()=>t(Le.offsetVerse(e,-1)),isDisabled:e.verseNum<=Le.FIRST_SCR_VERSE_NUM,children:"<"}),k.jsx(lt,{onClick:()=>t(Le.offsetVerse(e,1)),children:">"})]})}function Jp({onSearch:e,placeholder:t,isFullWidth:n}){const[r,o]=ie.useState(""),i=a=>{o(a),e(a)};return k.jsx(de.Paper,{component:"form",className:"search-bar-paper",children:k.jsx(an,{isFullWidth:n,className:"search-bar-input",placeholder:t,value:r,onChange:a=>i(a.target.value)})})}function Zp({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:d,onChange:f,onChangeCommitted:p}){return k.jsx(de.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} ${d??""}`,onChange:f,onChangeCommitted:p})}function Qp({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 k.jsx(de.Snackbar,{autoHideDuration:e??void 0,open:n,onClose:o,anchorOrigin:i,id:t,ContentProps:c})}function ef({id:e,isChecked:t,isDisabled:n=!1,hasError:r=!1,className:o,onChange:i}){return k.jsx(de.Switch,{id:e,checked:t,disabled:n,className:`papi-switch ${r?"error":""} ${o??""}`,onChange:i})}function ci({onRowChange:e,row:t,column:n}){const r=o=>{e({...t,[n.key]:o.target.value})};return k.jsx(an,{defaultValue:t[n.key],onChange:r})}const tf=({onChange:e,disabled:t,checked:n,...r})=>{const o=i=>{e(i.target.checked,i.nativeEvent.shiftKey)};return k.jsx(di,{...r,isChecked:n,isDisabled:t,onChange:o})};function nf({columns:e,sortColumns:t,onSortColumnsChange:n,onColumnResize:r,defaultColumnWidth:o,defaultColumnMinWidth:i,defaultColumnMaxWidth:a,defaultColumnSortable:l=!0,defaultColumnResizable:c=!0,rows:u,enableSelectColumn:d,selectColumnWidth:f=50,rowKeyGetter:p,rowHeight:b=35,headerRowHeight:v=35,selectedRows:m,onSelectedRowsChange:h,onRowsChange:E,onCellClick:$,onCellDoubleClick:y,onCellContextMenu:x,onCellKeyDown:g,direction:P="ltr",enableVirtualization:S=!0,onCopy:j,onPaste:A,onScroll:I,className:B,"data-testid":z}){const W=ie.useMemo(()=>{const L=e.map(_=>typeof _.editable=="function"?{..._,editable:D=>!!_.editable(D),renderEditCell:_.renderEditCell||ci}:_.editable&&!_.renderEditCell?{..._,renderEditCell:ci}:_.renderEditCell&&!_.editable?{..._,editable:!1}:_);return d?[{...po.SelectColumn,minWidth:f},...L]:L},[e,d,f]);return k.jsx(po,{columns:W,defaultColumnOptions:{width:o,minWidth:i,maxWidth:a,sortable:l,resizable:c},sortColumns:t,onSortColumnsChange:n,onColumnResize:r,rows:u,rowKeyGetter:p,rowHeight:b,headerRowHeight:v,selectedRows:m,onSelectedRowsChange:h,onRowsChange:E,onCellClick:$,onCellDoubleClick:y,onCellContextMenu:x,onCellKeyDown:g,direction:P,enableVirtualization:S,onCopy:j,onPaste:A,onScroll:I,renderers:{renderCheckbox:tf},className:`papi-table ${B??"rdg-light"}`,"data-testid":z})}const rf=is(k.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function of({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]),d=ie.useCallback(h=>{h.stopPropagation(),a(E=>{const $=!E;return $&&h.shiftKey?c(!0):$||c(!1),$})},[]),f=ie.useRef(void 0),[p,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 k.jsx("div",{ref:f,style:{position:"relative"},children:k.jsx(de.AppBar,{position:"static",id:r,children:k.jsxs(de.Toolbar,{className:`papi-toolbar ${n??""}`,variant:"dense",children:[m?k.jsx(de.IconButton,{edge:"start",className:`papi-menuButton ${n??""}`,color:"inherit","aria-label":"open drawer",onClick:d,children:k.jsx(rf,{})}):void 0,o?k.jsx("div",{className:"papi-menu-children",children:o}):void 0,m?k.jsx(de.Drawer,{className:`papi-menu-drawer ${n??""}`,anchor:"left",variant:"persistent",open:i,onClose:u,PaperProps:{className:"papi-menu-drawer-paper",style:{top:p}},children:k.jsx(ls,{className:n,commandHandler:v,multiColumnMenu:m})}):void 0]})})})}const sf=(e,t)=>{ie.useEffect(()=>{if(!e)return()=>{};const n=e(t);return()=>{n()}},[e,t])};function af(e){return{preserveValue:!0,...e}}const Ps=(e,t,n={})=>{const r=ie.useRef(t);r.current=t;const o=ie.useRef(n);o.current=af(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 d=await e();u&&(a(()=>d),c(!1))}})(),()=>{u=!1,o.current.preserveValue||a(()=>r.current)}},[e]),[i,l]},fr=()=>!1,lf=(e,t)=>{const[n]=Ps(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=Fs;exports.Checkbox=di;exports.ComboBox=Sn;exports.ContextMenu=jp;exports.GridMenu=ls;exports.IconButton=Dp;exports.LabelPosition=dt;exports.MenuItem=Wr;exports.RefSelector=Yp;exports.SearchBar=Jp;exports.Slider=Zp;exports.Snackbar=Qp;exports.Switch=ef;exports.Table=nf;exports.TextField=an;exports.Toolbar=of;exports.useEvent=sf;exports.useEventAsync=lf;exports.usePromise=Ps;function cf(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)}cf(`.papi-button { +`))}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:ta}),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 kp=ys;function Pp(e){return He("MuiMenu",e)}rt("MuiMenu",["root","paper","list"]);const Sp=["onEntering"],Cp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Rp={vertical:"top",horizontal:"right"},Np={vertical:"top",horizontal:"left"},$p=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},Pp,t)},Mp=Ee(kp,{shouldForwardProp:e=>Zi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_p=Ee(vs,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ip=Ee(Qd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),xs=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:d={},onClose:f,open:p,PaperProps:b={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:E="selectedMenu",slots:$={},slotProps:y={}}=i,x=ue(i.TransitionProps,Sp),g=ue(i,Cp),P=hn(),S=P.direction==="rtl",j=w({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:h,PaperProps:b,transitionDuration:m,TransitionProps:x,variant:E}),A=$p(j),I=a&&!u&&p,B=T.useRef(null),z=(Z,O)=>{B.current&&B.current.adjustStyleForScrollbar(Z,P),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:_p,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 k.jsx(Mp,w({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Rp:Np,slots:{paper:_,root:$.root},slotProps:{root:D,paper:Q},open:p,ref:n,transitionDuration:m,TransitionProps:w({onEntering:z},x),ownerState:j},g,{classes:v,children:k.jsx(Ip,w({onKeyDown:W,actions:B,autoFocus:a&&(L===-1||u),autoFocusItem:I,variant:E},d,{className:ye(A.list,d.className),children:l}))}))});process.env.NODE_ENV!=="production"&&(xs.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 Ap=xs;function jp({className:e,commandHandler:t,menuDefinition:n,children:r}){var u;const[o,i]=ne.useState(void 0),a=ne.useCallback(d=>{d.preventDefault(),i(o===void 0?{mouseX:d.clientX+2,mouseY:d.clientY-6}:void 0)},[o]),l=ne.useCallback(()=>{i(void 0)},[]),c=ne.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:k.jsxs("div",{className:`papi-context-menu-target ${e??""}`,onContextMenu:a,children:[r,k.jsx(Ap,{className:`papi-context-menu ${e??""}`,open:o!==void 0,onClose:l,anchorReference:"anchorPosition",anchorPosition:c,children:k.jsx(Gr,{menuDefinition:n,commandHandler:t,onClick:l})})]})}function Dp({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 k.jsx(de.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 Bp=Object.defineProperty,Lp=(e,t,n)=>t in e?Bp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t,n)=>(Lp(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"],Es=["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=Xp();function jt(e,t=!0){return t&&(e=e.toUpperCase()),e in li?li[e]:0}function Xr(e){return jt(e)>0}function Fp(e){const t=typeof e=="string"?jt(e):e;return t>=40&&t<=66}function Vp(e){return(typeof e=="string"?jt(e):e)<=39}function Ts(e){return e<=66}function zp(e){const t=typeof e=="string"?jt(e):e;return ks(t)&&!Ts(t)}function*Up(){for(let e=1;e<=vt.length;e++)yield e}const Hp=1,ws=vt.length;function qp(){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 Os(e){return e<=0||e>ws?"******":Es[e-1]}function Wp(e){return Os(jt(e))}function ks(e){const t=typeof e=="number"?Yr(e):e;return Xr(t)&&!Kr.includes(t)}function Gp(e){const t=typeof e=="number"?Yr(e):e;return Xr(t)&&Kr.includes(t)}function Kp(e){return Es[e-1].includes("*obsolete*")}function Xp(){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 Re=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(Re,"Original",new Re(tt.Original)),te(Re,"Septuagint",new Re(tt.Septuagint)),te(Re,"Vulgate",new Re(tt.Vulgate)),te(Re,"English",new Re(tt.English)),te(Re,"RussianProtestant",new Re(tt.RussianProtestant)),te(Re,"RussianOrthodox",new Re(tt.RussianOrthodox));let St=Re;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))(Ps||{});const Oe=class ie{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%ie.chapterDigitShifter,this._chapterNum=Math.floor(t%ie.bookDigitShifter/ie.chapterDigitShifter),this._bookNum=Math.floor(t/ie.bookDigitShifter)}else if(n==null)if(t!=null&&t instanceof ie){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:ie.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??ie.defaultVersification;else throw new Error("VerseRef constructor not supported.");else throw new Error("VerseRef constructor not supported.")}static parse(t,n=ie.defaultVersification){const r=new ie(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=ie.parse(t),{success:!0,verseRef:n}}catch(r){if(r instanceof Wt)return n=new ie,{success:!1,verseRef:n};throw r}}static getBBBCCCVVV(t,n,r){return t%ie.bcvMaxValue*ie.bookDigitShifter+(n>=0?n%ie.bcvMaxValue*ie.chapterDigitShifter:0)+(r>=0?r%ie.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>ie.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(ie.verseRangeSeparator)||this._verse.includes(ie.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}=ie.tryGetVerseNum(t);this._verse=n?void 0:t.replace(this.rtlMark,""),this._verseNum=r,!(this._verseNum>=0)&&({vNum:this._verseNum}=ie.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(ie.verseRangeSeparators,ie.verseSequenceIndicators)}get BBBCCC(){return ie.getBBBCCCVVV(this._bookNum,this._chapterNum,0)}get BBBCCCVVV(){return ie.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||!ie.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 ie(this)}toString(){const t=this.book;return t===""?"":`${t} ${this.chapter}:${this.verse}`}equals(t){return t instanceof ie?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=ie.verseRangeSeparators,r=ie.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 d=c+1;da)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=ie.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(Oe,"defaultVersification",St.English),te(Oe,"verseRangeSeparator","-"),te(Oe,"verseSequenceIndicator",","),te(Oe,"verseRangeSeparators",[Oe.verseRangeSeparator]),te(Oe,"verseSequenceIndicators",[Oe.verseSequenceIndicator]),te(Oe,"chapterDigitShifter",1e3),te(Oe,"bookDigitShifter",Oe.chapterDigitShifter*Oe.chapterDigitShifter),te(Oe,"bcvMaxValue",Oe.chapterDigitShifter-1),te(Oe,"ValidStatusType",Ps);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:d,value:f,onChange:p,onFocus:b,onBlur:v}){return k.jsx(de.TextField,{variant:e,id:t,disabled:n,error:r,fullWidth:o,helperText:i,label:a,placeholder:l,required:c,className:`papi-textfield ${u??""}`,defaultValue:d,value:f,onChange:p,onFocus:b,onBlur:v})}let dr;const pr=()=>(dr||(dr=Fe.allBookIds.map(e=>({bookId:e,label:Fe.bookIdToEnglishName(e)}))),dr);function Yp({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=ne.useMemo(()=>pr()[e.bookNum-1],[e.bookNum]);return k.jsxs("span",{id:n,children:[k.jsx(Sn,{title:"Book",className:"papi-ref-selector book",value:l,options:pr(),onChange:o,isClearable:!1,width:200}),k.jsx(lt,{onClick:()=>r(Le.offsetBook(e,-1)),isDisabled:e.bookNum<=Le.FIRST_SCR_BOOK_NUM,children:"<"}),k.jsx(lt,{onClick:()=>r(Le.offsetBook(e,1)),isDisabled:e.bookNum>=pr().length,children:">"}),k.jsx(an,{className:"papi-ref-selector chapter-verse",label:"Chapter",value:e.chapterNum,onChange:i}),k.jsx(lt,{onClick:()=>t(Le.offsetChapter(e,-1)),isDisabled:e.chapterNum<=Le.FIRST_SCR_CHAPTER_NUM,children:"<"}),k.jsx(lt,{onClick:()=>t(Le.offsetChapter(e,1)),isDisabled:e.chapterNum>=Le.getChaptersForBook(e.bookNum),children:">"}),k.jsx(an,{className:"papi-ref-selector chapter-verse",label:"Verse",value:e.verseNum,onChange:a}),k.jsx(lt,{onClick:()=>t(Le.offsetVerse(e,-1)),isDisabled:e.verseNum<=Le.FIRST_SCR_VERSE_NUM,children:"<"}),k.jsx(lt,{onClick:()=>t(Le.offsetVerse(e,1)),children:">"})]})}function Jp({onSearch:e,placeholder:t,isFullWidth:n}){const[r,o]=ne.useState(""),i=a=>{o(a),e(a)};return k.jsx(de.Paper,{component:"form",className:"search-bar-paper",children:k.jsx(an,{isFullWidth:n,className:"search-bar-input",placeholder:t,value:r,onChange:a=>i(a.target.value)})})}function Zp({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:d,onChange:f,onChangeCommitted:p}){return k.jsx(de.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} ${d??""}`,onChange:f,onChangeCommitted:p})}function Qp({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 k.jsx(de.Snackbar,{autoHideDuration:e??void 0,open:n,onClose:o,anchorOrigin:i,id:t,ContentProps:c})}function ef({id:e,isChecked:t,isDisabled:n=!1,hasError:r=!1,className:o,onChange:i}){return k.jsx(de.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 k.jsx(an,{defaultValue:t[n.key],onChange:r})}const tf=({onChange:e,disabled:t,checked:n,...r})=>{const o=i=>{e(i.target.checked,i.nativeEvent.shiftKey)};return k.jsx(pi,{...r,isChecked:n,isDisabled:t,onChange:o})};function nf({columns:e,sortColumns:t,onSortColumnsChange:n,onColumnResize:r,defaultColumnWidth:o,defaultColumnMinWidth:i,defaultColumnMaxWidth:a,defaultColumnSortable:l=!0,defaultColumnResizable:c=!0,rows:u,enableSelectColumn:d,selectColumnWidth:f=50,rowKeyGetter:p,rowHeight:b=35,headerRowHeight:v=35,selectedRows:m,onSelectedRowsChange:h,onRowsChange:E,onCellClick:$,onCellDoubleClick:y,onCellContextMenu:x,onCellKeyDown:g,direction:P="ltr",enableVirtualization:S=!0,onCopy:j,onPaste:A,onScroll:I,className:B,"data-testid":z}){const W=ne.useMemo(()=>{const L=e.map(_=>typeof _.editable=="function"?{..._,editable:D=>!!_.editable(D),renderEditCell:_.renderEditCell||ui}:_.editable&&!_.renderEditCell?{..._,renderEditCell:ui}:_.renderEditCell&&!_.editable?{..._,editable:!1}:_);return d?[{...fo.SelectColumn,minWidth:f},...L]:L},[e,d,f]);return k.jsx(fo,{columns:W,defaultColumnOptions:{width:o,minWidth:i,maxWidth:a,sortable:l,resizable:c},sortColumns:t,onSortColumnsChange:n,onColumnResize:r,rows:u,rowKeyGetter:p,rowHeight:b,headerRowHeight:v,selectedRows:m,onSelectedRowsChange:h,onRowsChange:E,onCellClick:$,onCellDoubleClick:y,onCellContextMenu:x,onCellKeyDown:g,direction:P,enableVirtualization:S,onCopy:j,onPaste:A,onScroll:I,renderers:{renderCheckbox:tf},className:`papi-table ${B??"rdg-light"}`,"data-testid":z})}const rf=ss(k.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function of(e){return{preserveValue:!0,...e}}const Jr=(e,t,n={})=>{const r=ne.useRef(t);r.current=t;const o=ne.useRef(n);o.current=of(o.current);const[i,a]=ne.useState(()=>r.current),[l,c]=ne.useState(!0);return ne.useEffect(()=>{let u=!0;return c(!!e),(async()=>{if(e){const d=await e();u&&(a(()=>d),c(!1))}})(),()=>{u=!1,o.current.preserveValue||a(()=>r.current)}},[e]),[i,l]};function sf({menuProvider:e,commandHandler:t,className:n,id:r,children:o}){const[i,a]=ne.useState(!1),[l,c]=ne.useState(!1),u=ne.useCallback(()=>{i&&a(!1),c(!1)},[i]),d=ne.useCallback(h=>{h.stopPropagation(),a(E=>{const $=!E;return $&&h.shiftKey?c(!0):$||c(!1),$})},[]),f=ne.useRef(void 0),[p,b]=ne.useState(0);ne.useEffect(()=>{i&&f.current&&b(f.current.clientHeight)},[i]);const v=ne.useCallback(h=>(u(),t(h)),[t,u]),[m]=Jr(ne.useCallback(async()=>e==null?void 0:e(l),[e,l,i]),void 0);return k.jsx("div",{ref:f,style:{position:"relative"},children:k.jsx(de.AppBar,{position:"static",id:r,children:k.jsxs(de.Toolbar,{className:`papi-toolbar ${n??""}`,variant:"dense",children:[m?k.jsx(de.IconButton,{edge:"start",className:`papi-menuButton ${n??""}`,color:"inherit","aria-label":"open drawer",onClick:d,children:k.jsx(rf,{})}):void 0,o?k.jsx("div",{className:"papi-menu-children",children:o}):void 0,m?k.jsx(de.Drawer,{className:`papi-menu-drawer ${n??""}`,anchor:"left",variant:"persistent",open:i,onClose:u,PaperProps:{className:"papi-menu-drawer-paper",style:{top:p}},children:k.jsx(cs,{className:n,commandHandler:v,multiColumnMenu:m})}):void 0]})})})}const af=(e,t)=>{ne.useEffect(()=>{if(!e)return()=>{};const n=e(t);return()=>{n()}},[e,t])},fr=()=>!1,lf=(e,t)=>{const[n]=Jr(ne.useCallback(async()=>{if(!e)return fr;const r=await Promise.resolve(e(t));return async()=>r()},[t,e]),fr,{preserveValue:!1});ne.useEffect(()=>()=>{n!==fr&&n()},[n])};exports.Button=lt;exports.ChapterRangeSelector=Fs;exports.Checkbox=pi;exports.ComboBox=Sn;exports.ContextMenu=jp;exports.GridMenu=cs;exports.IconButton=Dp;exports.LabelPosition=dt;exports.MenuItem=Wr;exports.RefSelector=Yp;exports.SearchBar=Jp;exports.Slider=Zp;exports.Snackbar=Qp;exports.Switch=ef;exports.Table=nf;exports.TextField=an;exports.Toolbar=sf;exports.useEvent=af;exports.useEventAsync=lf;exports.usePromise=Jr;function cf(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)}cf(`.papi-button { border: 0; border-radius: 3em; cursor: pointer; @@ -118,67 +118,90 @@ const theme2 = createTheme({ palette: { color: white; text-decoration: underline; } -.papi-combo-box { +.papi-checkbox { background-color: transparent; } -.papi-combo-box.fullwidth { - width: 100%; +.papi-checkbox.error { + color: #f00; } -.papi-combo-box.error { - background-color: #f00; +.papi-checkbox.error:hover { + background-color: rgba(255, 0, 0, 0.2); } -.papi-combo-box.paratext { - background-color: darkgreen; +.papi-checkbox.paratext { color: greenyellow; } -.papi-combo-box.paratext.bright { - background-color: greenyellow; +.papi-checkbox-label.paratext { color: darkgreen; } -.papi-slider { + +.papi-checkbox.paratext:hover { + background-color: rgba(0, 100, 0, 0.3); +} + +.papi-checkbox.paratext.bright { + color: darkgreen; +} + +.papi-checkbox-label.paratext.bright { + background-color: greenyellow; +} + +.papi-checkbox.paratext.bright:hover { + background-color: rgba(173, 255, 47, 0.3); +} + +.papi-checkbox.below, +.papi-checkbox.above { + text-align: center; +} +.papi-combo-box { background-color: transparent; - color: #1ea7fd; } -.papi-slider.vertical { - min-height: 200px; +.papi-combo-box.fullwidth { + width: 100%; } -.papi-slider.paratext { +.papi-combo-box.error { + background-color: #f00; +} + +.papi-combo-box.paratext { background-color: darkgreen; color: greenyellow; } -.papi-slider.paratext.bright { +.papi-combo-box.paratext.bright { background-color: greenyellow; color: darkgreen; } -.papi-switch { - background-color: transparent; +.papi-icon-button { + border: 0; + border-radius: 3em; + cursor: pointer; + display: inline-block; } -.papi-switch.primary { +.papi-icon-button.primary { background-color: #1ea7fd; + color: white; } -.papi-switch.secondary { - background-color: #6fc8ff; -} - -.papi-switch.error { - background-color: #f00; +.papi-icon-button.secondary { + background-color: transparent; + color: #333; } -.papi-switch.paratext { +.papi-icon-button.paratext { background-color: darkgreen; color: greenyellow; } -.papi-switch.paratext.bright { +.papi-icon-button.paratext.bright { background-color: greenyellow; color: darkgreen; } @@ -216,6 +239,143 @@ const theme2 = createTheme({ palette: { color: rgb(76, 106, 76); background-color: rgb(214, 255, 152); } +.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-context-menu.paratext.bright ul { + color: rgb(76, 106, 76); + background-color: rgb(214, 255, 152); +} +.search-bar-paper { + display: flex; + align-items: center; +} + +.search-button { + padding: 10px; +} +.papi-ref-selector.book { + display: inline-block; + vertical-align: middle; +} + +.papi-ref-selector.chapter-verse { + width: 75px; +} +.papi-snackbar { + font-family: Arial, Helvetica, sans-serif; +} + +.papi-snackbar.primary { + background: #1ea7fd; + color: white; +} + +.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-slider { + background-color: transparent; + color: #1ea7fd; +} + +.papi-slider.vertical { + min-height: 200px; +} + +.papi-slider.paratext { + background-color: darkgreen; + color: greenyellow; +} + +.papi-slider.paratext.bright { + background-color: greenyellow; + color: darkgreen; +} +.papi-menu-item { + background-color: transparent; +} + +.papi-menu-icon-trailing { + margin-left: 10px; + place-content: flex-end; +} + +.papi-menu-item img { + max-width: 24px; + max-height: 24px; +} +.papi-switch { + background-color: transparent; +} + +.papi-switch.primary { + background-color: #1ea7fd; +} + +.papi-switch.secondary { + background-color: #6fc8ff; +} + +.papi-switch.error { + background-color: #f00; +} + +.papi-switch.paratext { + background-color: darkgreen; + color: greenyellow; +} + +.papi-switch.paratext.bright { + background-color: greenyellow; + color: darkgreen; +} @layer rdg { @layer Defaults, FocusSink, @@ -696,41 +856,6 @@ const theme2 = createTheme({ palette: { } } -.papi-snackbar { - font-family: Arial, Helvetica, sans-serif; -} - -.papi-snackbar.primary { - background: #1ea7fd; - color: white; -} - -.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-table.paratext { background-color: darkgreen; color: greenyellow; @@ -740,131 +865,6 @@ const theme2 = createTheme({ palette: { color: darkgreen; background-color: greenyellow; } -.search-bar-paper { - display: flex; - align-items: center; -} - -.search-button { - padding: 10px; -} -.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-context-menu.paratext.bright ul { - color: rgb(76, 106, 76); - background-color: rgb(214, 255, 152); -} -.papi-icon-button { - border: 0; - border-radius: 3em; - cursor: pointer; - display: inline-block; -} - -.papi-icon-button.primary { - background-color: #1ea7fd; - color: white; -} - -.papi-icon-button.secondary { - background-color: transparent; - color: #333; -} - -.papi-icon-button.paratext { - background-color: darkgreen; - color: greenyellow; -} - -.papi-icon-button.paratext.bright { - background-color: greenyellow; - color: darkgreen; -} -.papi-menu-item { - background-color: transparent; -} - -.papi-menu-icon-trailing { - margin-left: 10px; - place-content: flex-end; -} - -.papi-menu-item img { - max-width: 24px; - max-height: 24px; -} -.papi-checkbox { - background-color: transparent; -} - -.papi-checkbox.error { - color: #f00; -} - -.papi-checkbox.error:hover { - background-color: rgba(255, 0, 0, 0.2); -} - -.papi-checkbox.paratext { - 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 { - background-color: greenyellow; -} - -.papi-checkbox.paratext.bright:hover { - background-color: rgba(173, 255, 47, 0.3); -} - -.papi-checkbox.below, -.papi-checkbox.above { - text-align: center; -} -.papi-ref-selector.book { - display: inline-block; - vertical-align: middle; -} - -.papi-ref-selector.chapter-verse { - width: 75px; -} .papi-toolbar { background-color: #eee; color: black; diff --git a/lib/platform-bible-react/dist/index.cjs.map b/lib/platform-bible-react/dist/index.cjs.map index 5d3d487df2..b2012f2636 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/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/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}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\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')).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,
,