1import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{D as t,O as n,g as r,i,n as a,o,p as s,r as c,s as l,t as u,u as d,v as f,w as p}from"./vendor-@mui-material-material-colors-createSimplePaletteValueFilter.Ph9BMT50.js";import{nn as m}from"./vendor-datadog.CbXwTgUc.js";import{t as h}from"./vendor-react-react-cjs-jsx-runtime.BfiOPkxk.js";import{t as g}from"./vendor-clsx-clsx-dist-clsx.CjueKrWZ.js";import{d as _,l as v,m as y,p as b,t as x,u as S}from"./app-theme-dsm-Icon.XXxHe72V.js";import{n as C,t as w}from"./[email protected]";import{_ as T,d as E,g as D,h as O,m as k,p as A,r as j,t as M,u as N}from"./vendor-@mui-utils-utils-useEnhancedEffect-CircularProgress.Brm3geKN.js";import{a as P,n as F,r as I,t as L}from"./vendor-@mui-utils-utils-isHostComponent-buttonClasses.jrPuKtOV.js";import{i as R,t as z}from"./[email protected]";import{t as B}from"./vendor-react-dom-react-dom-cjs-react-dom.By_lltW1.js";import{Bu as ee,Mi as te}from"./vendor-fortawesome.4BqgzknP.js";function V(e){return e&&e.ownerDocument||document}function H(e){return V(e).defaultView||window}function U(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var W=e(m()),G=h(),K=U;function ne(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function re(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function ie(e){let t=E(()=>ae(e)).current;return t.next=e,T(t.effect),t}function ae(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var q=W.createContext(null);function oe(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function se(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=oe(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function ce(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...b}=e,x=W.useContext(q),S=x&&!x.isMounting?r:n,[C,w]=W.useState(()=>t?S?`exited`:`entered`:a||o?`unmounted`:`exited`),E=W.useRef(C);E.current=C,t&&C===`unmounted`&&(E.current=`exited`,w(`exited`));let D=W.useRef(t&&S),O=W.useRef(!1),k=W.useRef(null),A=W.useRef(C),j=W.useRef(!1),M=W.useRef(l),N=ie({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:x}),P=W.useCallback(()=>{k.current!==null&&(k.current.cancel(),k.current=null)},[]),F=W.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,k.current=null,e())};return n.cancel=()=>{t=!1},k.current=n,n},[]),I=W.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=F(()=>{r(),E.current=e,w(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=N.current.nodeRef.current,s=N.current.addEndListener,c=N.current.getAutoTimeout!==void 0,l=N.current.getAutoTimeout?.(),u=se({currentStatus:t,isAppearing:j.current,timeout:N.current.timeout,autoTimeout:l}),d=M.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};if(!o){p(0);return}if(s){f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i);return}p(d?0:u??0)},[F,N]),L=W.useCallback(e=>{let t=N.current,n=t.parentGroup?t.parentGroup.isMounting:e;if(j.current=n,!e&&!t.enter){E.current=`entered`,w(`entered`);return}M.current=t.reduceMotion,t.onEnter?.(n),E.current=`entering`,w(`entering`)},[N]),R=W.useCallback(()=>{let e=N.current;if(!e.exit){E.current=`exited`,w(`exited`);return}M.current=e.reduceMotion,e.onExit?.(),E.current=`exiting`,w(`exiting`)},[N]),z=W.useCallback((e,t)=>{if(P(),t===`entering`){let t=N.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&y(e)}L(e)}else R()},[P,L,R,N]);return T(()=>(O.current=!0,D.current&&(D.current=!1,z(!0,`entering`)),()=>{O.current=!1,P()}),[P,z]),T(()=>{if(!O.current)return;let e=E.current;t?e!==`entering`&&e!==`entered`&&z(!1,`entering`):e===`entering`||e===`entered`?z(!1,`exiting`):e===`exited`&&o&&(E.current=`unmounted`,w(`unmounted`))},[t,C,o,z]),T(()=>{if(C===`unmounted`||A.current===`unmounted`){A.current=C;return}if(A.current===C)return;A.current=C;let e=N.current;C===`entering`?(e.onEntering?.(j.current),I(`entered`,`entering`)):C===`exiting`?(e.onExiting?.(),I(`exited`,`exiting`)):C===`entered`?e.onEntered?.(j.current):C===`exited`&&e.onExited?.()},[N,I,C]),C===`unmounted`?null:(0,G.jsx)(q.Provider,{value:null,children:v(C,b)})}function le(e){return n(`MuiPaper`,e)}var ue=t(`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`.split(`.`)),de=e=>{let{square:t,elevation:n,variant:i,classes:a}=e;return r({root:[`root`,i,!t&&`rounded`,i===`elevation`&&`elevation${n}`]},le,a)},fe=o(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;
1return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(i(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,..._(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),J=W.forwardRef(function(e,t){let n=c({props:e,name:`MuiPaper`}),r=d(),{className:i,component:a=`div`,elevation:o=1,square:l=!1,variant:u=`elevation`,...p}=n,m={...n,component:a,elevation:o,square:l,variant:u},h=de(m);return(0,G.jsx)(fe,{as:a,ownerState:m,className:g(h.root,i),ref:t,...p,style:{...u===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${f(`#fff`,s(o))}, ${f(`#fff`,s(o))})`}},...p.style}})});function pe(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}function Y(e){return e?.props?.ref||null}var me=e(B(),1);function he(e){return typeof e==`function`?e():e}var ge=W.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=W.useState(null),s=O(W.isValidElement(n)?Y(n):null,t);if(T(()=>{i||o(he(r)||document.body)},[r,i]),T(()=>{if(a&&!i)return re(t,a),()=>{re(t,null)}},[t,a,i]),i){if(W.isValidElement(n)){let e={ref:s};return W.cloneElement(n,e)}return n}return a&&me.createPortal(n,a)}),_e={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},ve={opacity:0,visibility:`hidden`},X=W.forwardRef(function(e,t){let n=d(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:u,onEntered:f,onEntering:p,onExit:m,onExited:h,onExiting:g,style:_,timeout:x=r,...C}=e,w=N(n.motion.reducedMotion,s),T=W.useRef(null),E=A(T,Y(o),t),D=b(T,p),O=b(T,(e,t)=>{w.shouldReduceMotion||y(e);let r=S({style:_,timeout:x,easing:c},{mode:`enter`}),i=w.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),u&&u(e,t)}),k=b(T,f),j=b(T,g);return(0,G.jsx)(ce,{appear:a,in:l,nodeRef:T,onEnter:O,onEntered:k,onEntering:D,onExit:b(T,e=>{let t=S({style:_,timeout:x,easing:c},{mode:`exit`}),r=w.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),m&&m(e)}),onExited:b(T,e=>{e.style.transition=``,h&&h(e)}),onExiting:j,addEndListener:i?e=>{i(T.current,e)}:void 0,reduceMotion:w.shouldReduceMotion,timeout:x,...C,children:(e,{ownerState:t,...n})=>{let r=v(e,l,_e,ve,_,o.props.style);return W.cloneElement(o,{style:r,ref:E,...n})}})});function ye(e){return n(`MuiBackdrop`,e)}var be=t(`MuiBackdrop`,[`root`,`invisible`]),xe=e=>{let{classes:t,invisible:n}=e;return r({root:[`root`,n&&`invisible`]},ye,t)},Se=o(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Ce=W.forwardRef(function(e,t){let n=c({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:l={},slots:u={},transitionDuration:d,...f}=n,p={...n,component:a,invisible:o},m=xe(p),h={component:a,slots:u,slotProps:l},[_,v]=I(`root`,{elementType:Se,externalForwardedProps:h,className:g(m.root,i),ownerState:p}),[y,b]=I(`transition`,{elementType:X,externalForwardedProps:h,ownerState:p});return(0,G.jsx)(y,{in:s,timeout:d,...f,...b,children:(0,G.jsx)(_,{...v,ref:t,children:r})})}),we=W.createContext({}),Te=W.createContext(void 0),Ee=e=>{let{color:t,disableElevation:n,fullWidth:i,size:o,variant:s,loading:c,loadingPosition:l,classes:u}=e,d=r({root:[`root`,c&&`loading`,s,`size${a(o)}`,`color${a(t)}`,n&&`disableElevation`,i&&`fullWidth`,c&&`loadingPosition${a(l)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},F,u);return{...u,...d}},De=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Oe=o(j,{shouldForwardProp:e=>l(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${a(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(i(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,..._(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${L.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${L.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${L.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackgroun
1d}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${L.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(u()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${L.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${L.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{..._(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${L.loading}`]:{color:`transparent`}}}]}})),ke=o(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{..._(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...De]})),Ae=o(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{..._(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...De]})),je=o(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),Me=o(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Ne=W.forwardRef(function(e,t){let n=W.useContext(we),r=W.useContext(Te),i=c({props:p(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:l,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:m,focusVisibleClassName:h,fullWidth:_=!1,id:v,loading:y=null,loadingIndicator:b,loadingPosition:x=`center`,size:S=`medium`,startIcon:C,type:w,variant:T=`text`,...E}=i,D=R(v),O=b??(0,G.jsx)(M,{"aria-labelledby":D,color:`inherit`,size:16}),k={...i,color:o,component:s,disabled:u,disableElevation:d,disableFocusRipple:f,fullWidth:_,loading:y,loadingIndicator:O,loadingPosition:x,size:S,type:w,variant:T},A=Ee(k),j=(C||y&&x===`start`)&&(0,G.jsx)(ke,{className:A.startIcon,ownerState:k,children:C||(0,G.jsx)(Me,{className:A.loadingIconPlaceholder,ownerState:k})}),N=(m||y&&x===`end`)&&(0,G.jsx)(Ae,{className:A.endIcon,ownerState:k,children:m||(0,G.jsx)(Me,{className:A.loadingIconPlaceholder,ownerState:k})}),P=r||``,F=typeof y==`boolean`?(0,G.jsx)(`span`,{className:A.loadingWrapper,style:{display:`contents`},children:y&&(0,G.jsx)(je,{className:A.loadingIndicator,ownerState:k,children:O})}):null,{root:I,...L}=A;return(0,G.jsxs)(Oe,{ownerState:k,className:g(n.className,A.root,l,P),component:s,disabled:u||y,focusRipple:!f,focusVisibleClassName:g(A.focu
1sVisible,h),ref:t,internalNativeButton:!0,type:w,id:y?D:v,...E,classes:L,children:[j,x!==`end`&&F,a,x===`end`&&F,N]})});function Pe(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Fe(e){let t=V(e);return t.body===e?H(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Z(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Ie(e){return parseFloat(H(e).getComputedStyle(e).paddingRight)||0}function Le(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Re(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Le(e);t&&n&&Z(e,i)})}function ze(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Be(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Fe(r)){let e=Pe(H(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Ie(r)+e}px`;let t=V(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Ie(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=V(r).body;else{let t=r.parentElement,n=H(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Ve(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var He=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Z(e.modalRef,!1);let r=Ve(t);Re(t,e.mount,e.modalRef,r,!0);let i=ze(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=ze(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Be(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=ze(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Z(e.modalRef,t),Re(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Z(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},Q=pe,Ue=`data-mui-focusable`;function We(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Ue}]`):null}var Ge=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Ke(e){let 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 qe(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function Je(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||qe(e))}function Ye(e){let t=[],n=[];return Array.from(e.querySelectorAll(Ge)).forEach((e,r)=>{let i=Ke(e);i===-1||!Je(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Xe(){return!0}function Ze(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Ye,isEnabled:o=Xe,open:s}=e,c=W.useRef(!1),l=W.useRef(null),u=W.useRef(null),d=W.useRef(null),f=W.useRef(null),p=W.useRef(!1),m=W.useRef(null),h=O(Y(t),m),g=W.useRef(null);W.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),W.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=K(V(m.current)),t=We(m.current)??m.current;return Q(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{!i&&d.current&&(c.current=!0,d.current.focus(),d.current=null)}},[s]),W.useEffect(()=>{if(!s||!m.current)return;let e=V(m.current),t=t=>{if(g.current=t,r||!o()||t.key!==`Tab`)return;let n=m.current,i=K(e);if(n===null)return;let s=We(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus();return}if(Q(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>Ke(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=m.current;if(t===null)return;let n=K(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}
1if(Q(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=K(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,G.jsxs)(W.Fragment,{children:[(0,G.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),W.cloneElement(t,{ref:h,onFocus:_}),(0,G.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function Qe(e){return typeof e==`function`?e():e}function $e(e){return e?e.props.hasOwnProperty(`in`):!1}var et=()=>{},$=new He;function tt(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=W.useRef({}),d=W.useRef(null),f=W.useRef(null),p=O(f,l),[m,h]=W.useState(!c),g=$e(o),_=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(_=!1);let v=()=>V(d.current),y=()=>(u.current.modalRef=f.current,u.current.mount=d.current,u.current),b=()=>{$.mount(y(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},x=k(()=>{let e=Qe(t)||v().body;$.add(y(),e),f.current&&b()}),S=()=>$.isTopModal(y()),C=k(e=>{d.current=e,e&&(c&&S()?b():f.current&&Z(f.current,_))}),w=W.useCallback(()=>{$.remove(y(),_)},[_]);W.useEffect(()=>()=>{w()},[w]),W.useEffect(()=>{c?x():(!g||!r)&&w()},[c,w,g,r,x]);let T=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!S())&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},E=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=P(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:T(r),ref:p}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:E(t),open:c}},getTransitionProps:()=>({onEnter:ne(()=>{h(!1),i&&i()},o?.props.onEnter??et),onExited:ne(()=>{h(!0),a&&a(),r&&w()},o?.props.onExited??et)}),rootRef:p,portalRef:C,isTopModal:S,exited:m,hasTransition:g}}function nt(e){return n(`MuiModal`,e)}var rt=t(`MuiModal`,[`root`,`hidden`,`backdrop`]),it=e=>{let{open:t,exited:n,classes:i}=e;return r({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},nt,i)},at=o(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(i(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),ot=o(Ce,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),st=W.forwardRef(function(e,t){let n=c({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:l,disableAutoFocus:u=!1,disableEnforceFocus:d=!1,disablePortal:f=!1,disableRestoreFocus:p=!1,disableScrollLock:m=!1,hideBackdrop:h=!1,keepMounted:_=!1,onClose:v,onTransitionEnter:y,onTransitionExited:b,open:x,slotProps:S={},slots:C={},theme:w,...T}=n,E={...n,closeAfterTransition:a,disableAutoFocus:u,disableEnforceFocus:d,disablePortal:f,disableRestoreFocus:p,disableScrollLock:m,hideBackdrop:h,keepMounted:_},{getRootProps:D,getBackdropProps:O,getTransitionProps:k,portalRef:A,isTopModal:j,exited:M,hasTransition:N}=tt({...E,rootRef:t}),P={...E,exited:M},F=it(P),L={};if(o.props.tabIndex===void 0&&(L.tabIndex=`-1`),N){let{onEnter:e,onExited:t}=k();L.onEnter=e,L.onExited=t}let R={slots:C,slotProps:S},[z,B]=I(`root`,{ref:t,elementType:at,externalForwardedProps:{...R,...T,component:l},getSlotProps:D,ownerState:P,className:g(i,F?.root,!P.open&&P.exited&&F?.hidden)}),[ee,te]=I(`backdrop`,{elementType:ot,externalForwardedProps:R,shouldForwardComponentProp:!0,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:F?.backdrop,ownerState:P});return!_&&!x&&(!N||M)?null:(0,G.jsx)(ge,{ref:A,container:s,disablePortal:f,children:(0,G.jsxs)(z,{...B,children:[h?null:(0,G.jsx)(ee,{...te}),(0,G.jsx)(Ze,{disableEnforceFocus:d,disableAutoFocus:u,disableRestoreFocus:p,isEnabled:j,open:x,children:W.cloneElement(o,L)})]})})});function ct(e){return n(`MuiDialog`,e)}var lt=t(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]),ut=W.createContext({}),dt=o(Ce,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),ft=e=>{let{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:s}=e;return r({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${a(n)}`],paper:[`paper`,`paperWidth${a(String(i))}`,o&&`paperFullWidth`,s&&`paperFullScreen`]},ct,t)},pt=o(st,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),mt=o(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${a(n.scroll)}`]]}})({height:`100%`,"@media print":{height:`auto`},outline:0,variants:[{props:{scroll:`paper`},style:{display:`flex`,justifyContent:`center`,alignItems:`center`}},{props:{scroll:`body`},style:{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}}}]}),ht=o(J,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${a(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(i(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,outline:0,"@media print":{overflowY:`visible`,boxShadow:`none`},variants:[{props:{scroll:`paper`},style:{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`}},{props:{scroll:`body`},style:{display:`inline-block`,verticalAlign:`middle`,textAlign:`initial`}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:`calc(100% - 64px)`}},{props:{maxWidth:`xs`},style:{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:`xs`,scroll:`body`},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t,scroll:`body`},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:`calc(100% - 64px)`}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:`calc(100% - 64px)`}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0}},{props:({ownerState:e})=>e.fullScreen&&e.scroll===`body`,style:{margin:0,maxWidth:`100%`}}]}))),gt=W.forwardRef(function(e,t){let n=c({props:e,name:`MuiDialog`}),r=d(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,children:l,className:u,fullScreen:f=!1,fullWidth:p=!1,maxWidth:m=`sm`,onClick:h,onClose:_,open:v,PaperComponent:y=J,role:b=`dialog`,scroll:x=`paper`,slots:S={},slotProps:C={},transitionDuration:w=i,...T}=n,E={...n,fullScreen:f,fullWidth:p,maxWidth:m,scroll:x},O=ft(E),k=W.useRef(),A=e=>{k.current=e.target===e.currentTarget},j=e=>{h&&h(e),k.current&&(k.current=null,_&&_(e,`backdropClick`))},M=D(o),N=W.useMemo(()=>({titleId:M}),[M]),P={slots:S,slotProps:C},[F,L]=I(`root`,{elementType:pt,shouldForwardComponentProp:!0,externalForwardedProps:P,ownerState:E,className:g(O.root,u),ref:t}),[R,z]=I(`backdrop`,{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:P,ownerState:E,className:O.backdrop}),[B,ee]=I(`paper`,{elementType:ht,shouldForwardComponentProp:!0,externalForwardedProps:P,ownerState:E,className:O.paper,additionalProps:{elevation:24,role:b,"aria-describedby":a,"aria-labelledby":M,"aria-modal":s,tabIndex:-1,[Ue]:``}}),[te,V]=I(`container`,{elementType:mt,externalForwardedProps:P,ownerState:E,className:O.container}),[H,U]=I(`transition`,{elementType:X,externalForwardedProps:P,ownerState:E,additionalProps:{appear:!0,in:v,timeout:w,role:`presentation`}});return(0,G.jsx)(F,{closeAfterTransition:!0,slots:{backdrop:R},slotProps:{backdrop:{transitionDuration:w,...z}},onClose:_,open:v,onClick:j,...L,...T,children:(0,G.jsx)(H,{...U,children:(0,G.jsx)(te,{onMouseDown:A,...V,children:(0,G.jsx)(B,{as:y,...ee,children:(0,G.jsx)(ut.Provider,{value:N,children:l})})})})})});function _t(e){return n(`MuiDialogActions`,e)}var vt=t(`MuiDialogActions`,[`root`,`spacing`]),yt=e=>{let{classes:t,disableSpacing:n}=e;return r({root:[`root`,!n&&`spacing`]},_t,t)},bt=o(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`,variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),xt=W.forwardRef(function(e,t){let n=c({props:e,name:`MuiDialogActions`}),{className:r,disableSpacing:i=!1,...a}=n,o={...n,disableSpacing:i},s=yt(o);return(0,G.jsx)(bt,{className:g(s.root,r),ownerState:o,ref:t,...a})});function St(e){return n(`MuiDialogContent`,e)}var Ct=t(`MuiDialogContent`,[`root`,`dividers`]);function wt(e){return n(`MuiDialogTitle`,e)}var Tt=t(`MuiDialogTitle`,[`root`]),Et=e=>{let{classes:t,dividers:n}=e;
1return r({root:[`root`,n&&`dividers`]},St,t)},Dt=o(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(i(({theme:e})=>({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`,variants:[{props:({ownerState:e})=>e.dividers,style:{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${Tt.root} + &`]:{paddingTop:0}}}]}))),Ot=W.forwardRef(function(e,t){let n=c({props:e,name:`MuiDialogContent`}),{className:r,dividers:i=!1,...a}=n,o={...n,dividers:i},s=Et(o);return(0,G.jsx)(Dt,{className:g(s.root,r),ownerState:o,ref:t,...a})}),kt=e=>{let{classes:t}=e;return r({root:[`root`]},wt,t)},At=o(C,{name:`MuiDialogTitle`,slot:`Root`})({padding:`16px 24px`,flex:`0 0 auto`}),jt=W.forwardRef(function(e,t){let n=c({props:e,name:`MuiDialogTitle`}),{className:r,id:i,...a}=n,o=n,s=kt(o),{titleId:l=i}=W.useContext(ut);return(0,G.jsx)(At,{component:`h2`,className:g(s.root,r),ownerState:o,ref:t,variant:`h6`,id:i??l,...a})}),Mt={"&":{width:`auto`,height:`auto`},p:0,width:`auto`,height:`auto`},Nt=({children:e,disableBorder:t,onClose:n,onReturn:r,"data-ref":i,...a})=>(0,G.jsxs)(jt,{sx:{...t&&{borderBottom:`none`},...r&&{pl:{xs:1,md:2}},display:`flex`,alignItems:`center`},...a,children:[(0,G.jsxs)(w,{component:`span`,direction:`row`,sx:{alignItems:`center`,gap:1,flex:1},children:[r&&(0,G.jsx)(z,{"aria-label":`back`,sx:Mt,onClick:r,children:(0,G.jsx)(x,{fontSize:`extraLarge`,sx:({palette:e})=>({color:e.gray[700]}),variant:te})}),e]}),n&&(0,G.jsx)(z,{"aria-label":`close`,color:`ghost`,sx:{...Mt,ml:`auto`},onClick:n,...!!i&&{"data-ref":i},children:(0,G.jsx)(x,{fontSize:`extraLarge`,sx:({palette:e})=>({color:e.gray[700]}),variant:ee})})]});export{ne as A,Y as C,ce as D,ue as E,U as M,H as N,q as O,V as P,ge as S,J as T,Te as _,Ct as a,be as b,gt as c,rt as d,Ze as f,Ne as g,Pe as h,Tt as i,K as j,re as k,lt as l,Q as m,jt as n,xt as o,Ue as p,Ot as r,vt as s,Nt as t,st as u,we as v,pe as w,X as x,Ce as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.