1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{$t as t,Cr as n,Ft as r,Gt as i,It as a,J as o,Lr as s,Q as c,Wt as l,X as u,Z as d,_r as f,gn as p,gr as m,hn as h,hr as g,ir as _,mr as v,nn as y,vn as b,wr as x,yn as S}from"./backend-Cl9m36_h.js";import{E as C,I as w,W as T,f as E,g as D,i as O,m as k,r as A,v as j,z as M}from"./makeStyles-BNG0iYT_.js";var N=e(s());x(),f(),g();var P=_();b(),h(),l(),r(),D(),d(),o(),E();function F(e){let t=M(e);return t.body===e?w(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function I(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function L(e){return parseInt(w(e).getComputedStyle(e).paddingRight,10)||0}function R(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].indexOf(e.tagName)!==-1,n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function z(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=a.indexOf(e)===-1,n=!R(e);t&&n&&I(e,i)})}function B(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function V(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(F(r)){let e=C(M(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${L(r)+e}px`;let t=M(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${L(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=M(r).body;else{let t=r.parentElement,n=w(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 H(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var U=class{constructor(){this.containers=void 0,this.modals=void 0,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&&I(e.modalRef,!1);let r=H(t);z(t,e.mount,e.modalRef,r,!0);let i=B(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=B(this.containers,t=>t.modals.indexOf(e)!==-1),r=this.containers[n];r.restore||=V(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=B(this.containers,t=>t.modals.indexOf(e)!==-1),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&&I(e.modalRef,t),z(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&&I(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};E();var W=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function G(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 K(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 q(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||K(e))}function J(e){let t=[],n=[];return Array.from(e.querySelectorAll(W)).forEach((e,r)=>{let i=G(e);i!==-1&&q(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 Y(){return!0}function X(e){let{children:n,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:a=!1,getTabbable:o=J,isEnabled:s=Y,open:c}=e,l=N.useRef(!1),u=N.useRef(null),d=N.useRef(null),f=N.useRef(null),p=N.useRef(null),m=N.useRef(!1),h=N.useRef(null),g=t(k(n),h),_=N.useRef(null);N.useEffect(()=>{c&&h.current&&(m.current=!r)},[r,c]),N.useEffect(()=>{if(!c||!h.current)return;let e=M(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute(`tabIndex`)||h.current.setAttribute(`tabIndex`,`-1`),m.current&&h.current.focus()),()=>{a||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[c]),N.useEffect(()=>{if(!c||!h.current)return;let e=M(h.current),t=t=>{_.current=t,!i&&s()&&t.key===`Tab`&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{let t=h.current;if(t===null)return;if(!e.hasFocus()||!s()||l.current){l.current=!1;return}if(t.contains(e.activeElement)||i&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let n=[];if((e.activeElement===u.current||e.activeElement===d.current)&&(n=o(h.current)),n.length>0){let e=!!(_.current?.shiftKey&&_.current?.key===`Tab`),t=n[0],r=n[n.length-1];typeof t!=`string`&&typeof r!=`string`&&(e?r.focus():t.focus())}
1else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let r=setInterval(()=>{e.activeElement&&e.activeElement.tagName===`BODY`&&n()},50);return()=>{clearInterval(r),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[r,i,a,s,c,o]);let v=e=>{f.current===null&&(f.current=e.relatedTarget),m.current=!0,p.current=e.target;let t=n.props.onFocus;t&&t(e)},y=e=>{f.current===null&&(f.current=e.relatedTarget),m.current=!0};return(0,P.jsxs)(N.Fragment,{children:[(0,P.jsx)(`div`,{tabIndex:c?0:-1,onFocus:y,ref:u,"data-testid":`sentinelStart`}),N.cloneElement(n,{ref:g,onFocus:v}),(0,P.jsx)(`div`,{tabIndex:c?0:-1,onFocus:y,ref:d,"data-testid":`sentinelEnd`})]})}function Z(e){return S(`MuiBackdrop`,e)}p(`MuiBackdrop`,[`root`,`invisible`]);var Q=[`children`,`className`,`component`,`components`,`componentsProps`,`invisible`,`open`,`slotProps`,`slots`,`TransitionComponent`,`transitionDuration`],ee=e=>{let{classes:t,invisible:n}=e;return i({root:[`root`,n&&`invisible`]},Z,t)},te=c(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>m({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`})),$=N.forwardRef(function(e,t){let r=u({props:e,name:`MuiBackdrop`}),{children:i,className:a,component:o=`div`,components:s={},componentsProps:c={},invisible:l=!1,open:d,slotProps:f={},slots:p={},TransitionComponent:h=A,transitionDuration:g}=r,_=v(r,Q),y=m({},r,{component:o,invisible:l}),b=ee(y),x=f.root??c.root;return(0,P.jsx)(h,m({in:d,timeout:g},_,{children:(0,P.jsx)(te,m({"aria-hidden":!0},x,{as:p.root??s.Root??o,className:n(b.root,a,x?.className),ownerState:m({},y,x?.ownerState),classes:b,ref:t,children:i}))}))});f(),E();function ne(e){return typeof e==`function`?e():e}function re(e){return e?e.props.hasOwnProperty(`in`):!1}var ie=new U;function ae(e){let{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,manager:o=ie,closeAfterTransition:s=!1,onTransitionEnter:c,onTransitionExited:l,children:u,onClose:d,open:f,rootRef:p}=e,h=N.useRef({}),g=N.useRef(null),_=N.useRef(null),v=t(_,p),[b,x]=N.useState(!f),S=re(u),C=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(C=!1);let w=()=>M(g.current),E=()=>(h.current.modalRef=_.current,h.current.mount=g.current,h.current),D=()=>{o.mount(E(),{disableScrollLock:i}),_.current&&(_.current.scrollTop=0)},O=y(()=>{let e=ne(n)||w().body;o.add(E(),e),_.current&&D()}),k=N.useCallback(()=>o.isTopModal(E()),[o]),A=y(e=>{g.current=e,e&&(f&&k()?D():_.current&&I(_.current,C))}),j=N.useCallback(()=>{o.remove(E(),C)},[C,o]);N.useEffect(()=>()=>{j()},[j]),N.useEffect(()=>{f?O():(!S||!s)&&j()},[f,j,S,s,O]);let P=e=>t=>{var n;(n=e.onKeyDown)==null||n.call(e,t),t.key===`Escape`&&t.which!==229&&k()&&(r||(t.stopPropagation(),d&&d(t,`escapeKeyDown`)))},F=e=>t=>{var n;(n=e.onClick)==null||n.call(e,t),t.target===t.currentTarget&&d&&d(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=a(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r=m({},n,t);return m({role:`presentation`},r,{onKeyDown:P(r),ref:v})},getBackdropProps:(e={})=>{let t=e;return m({"aria-hidden":!0},t,{onClick:F(t),open:f})},getTransitionProps:()=>({onEnter:T(()=>{x(!1),c&&c()},u?.props.onEnter),onExited:T(()=>{x(!0),l&&l(),s&&j()},u?.props.onExited)}),rootRef:v,portalRef:A,isTopModal:k,exited:b,hasTransition:S}}h(),b();function oe(e){return S(`MuiModal`,e)}p(`MuiModal`,[`root`,`hidden`,`backdrop`]),g(),f(),x(),l(),d(),o();var se=`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`.split(`.`),ce=e=>{let{open:t,exited:n,classes:r}=e;return i({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},oe,r)},le=c(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>m({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:`hidden`})),ue=c($,{name:`MuiModal`,slot:`Backdrop`,overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),de=N.forwardRef(function(e,t){let r=u({name:`MuiModal`,props:e}),{BackdropComponent:i=ue,BackdropProps:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:d,components:f={},componentsProps:p={},disableAutoFocus:h=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:_=!1,disablePortal:y=!1,disableRestoreFocus:b=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:w,open:T,slotProps:E,slots:D}=r,k=v(r,se),A=m({},r,{closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:g,disableEscapeKeyDown:_,disablePortal:y,disableRestoreFocus:b,disableScrollLock:x,hideBackdrop:S,keepMounted:C}),{getRootProps:M,getBackdropProps:F,getTransitionProps:I,portalRef:L,isTopModal:R,exited:z,hasTransition:B}=ae(m({},A,{rootRef:t})),V=m({},A,{exited:z}),H=ce(V),U={};if(c.props.tabIndex===void 0&&(U.tabIndex=`-1`),B){let{onEnter:e,onExited:t}=I();U.onEnter=e,U.onExited=t}let W=D?.root??f.Root??le,G=D?.backdrop??f.Backdrop??i,K=E?.root??p.root,q=E?.backdrop??p.backdrop,J=j({elementType:W,externalSlotProps:K,externalForwardedProps:k,getSlotProps:M,additionalProps:{ref:t,as:d},ownerState:V,className:n(o,K?.className,H?.root,!V.open&&V.exited&&H?.hidden)}),Y=j({elementType:G,externalSlotProps:q,additionalProps:a,getSlotProps:e=>F(m({},e,{onClick:t=>{w&&w(t),e!=null&&e.onClick&&e.onClick(t)}})),className:n(q?.className,a?.className,H?.backdrop),ownerState:V});return!C&&!T&&(!B||z)?null:(0,P.jsx)(O,{ref:L,container:l,disablePortal:y,children:(0,P.jsxs)(W,m({},J,{children:[!S&&i?(0,P.jsx)(G,m({},Y)):null,(0,P.jsx)(X,{disableEnforceFocus:g,disableAutoFocus:h,disableRestoreFocus:b,isEnabled:R,open:T,children:N.cloneElement(c,U)})]}))})});export{$ as n,X as r,de as t};
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.