import{i as S,_ as h}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-2ce7a1bc.js";import{s as x,u as L,_ as M,L as xt,a as R,i as O,k as T,l as F,y as W,z as Rt,A as it,C as u,D as q,j as lt,E as kt,G as Ot,H as St,J as A,K as Q,M as Pt,N as Bt}from"./Tooltip-5ec3092e.js";import{g as It,S as Lt}from"./TablePagination-19f58901.js";import{k as ct,c as tt}from"./emotion-react.browser.esm-7eb3cf9d.js";function fr(t){return String(parseFloat(t)).length===String(t).length}function dt(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function y(t){return parseFloat(t)}function vr(t){return(o,r)=>{const a=dt(o);if(a===r)return o;let e=y(o);a!=="px"&&(a==="em"||a==="rem")&&(e=y(o)*y(t));let n=e;if(r!=="px")if(r==="em")n=e/y(t);else if(r==="rem")n=e/y(t);else return o;return parseFloat(n.toFixed(5))+r}}function mr({size:t,grid:o}){const r=t-t%o,a=r+o;return t-r<a-t?r:a}function br({lineHeight:t,pixels:o,htmlFontSize:r}){return o/(t*r)}function $r({cssProperty:t,min:o,max:r,unit:a="rem",breakpoints:e=[600,900,1200],transform:n=null}){const i={[t]:`${o}${a}`},s=(r-o)/e[e.length-1];return e.forEach(l=>{let c=o+s*l;n!==null&&(c=n(c)),i[`@media (min-width:${l}px)`]={[t]:`${Math.round(c*1e4)/1e4}${a}`}}),i}const Mt=["className"],rt=await S("react"),Tt=t=>{const{alignItems:o,classes:r}=t;return T({root:["root",o==="flex-start"&&"alignItemsFlexStart"]},It,r)},_t=x("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,r.alignItems==="flex-start"&&o.alignItemsFlexStart]}})(({theme:t,ownerState:o})=>h({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},o.alignItems==="flex-start"&&{marginTop:8})),Et=rt.forwardRef(function(o,r){const a=L({props:o,name:"MuiListItemIcon"}),{className:e}=a,n=M(a,Mt),i=rt.useContext(xt),s=h({},a,{alignItems:i.alignItems}),l=Tt(s);return R(_t,h({className:O(l.root,e),ownerState:s,ref:r},n))}),wr=Et;function zt(t){return F("MuiSkeleton",t)}const Nt=W("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]),Cr=Nt,At=["animation","className","component","height","style","variant","width"];let I=t=>t,ot,at,et,nt;const Ut=await S("react"),Dt=t=>{const{classes:o,variant:r,animation:a,hasChildren:e,width:n,height:i}=t;return T({root:["root",r,a,e&&"withChildren",e&&!n&&"fitContent",e&&!i&&"heightAuto"]},zt,o)},Ft=ct(ot||(ot=I`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`)),Wt=ct(at||(at=I`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`)),jt=x("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,o[r.variant],r.animation!==!1&&o[r.animation],r.hasChildren&&o.withChildren,r.hasChildren&&!r.width&&o.fitContent,r.hasChildren&&!r.height&&o.heightAuto]}})(({theme:t,ownerState:o})=>{const r=dt(t.shape.borderRadius)||"px",a=y(t.shape.borderRadius);return h({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:Rt(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},o.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${a}${r}/${Math.round(a/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},o.variant==="circular"&&{borderRadius:"50%"},o.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},o.hasChildren&&{"& > *":{visibility:"hidden"}},o.hasChildren&&!o.width&&{maxWidth:"fit-content"},o.hasChildren&&!o.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&tt(et||(et=I`
      animation: ${0} 2s ease-in-out 0.5s infinite;
    `),Ft),({ownerState:t,theme:o})=>t.animation==="wave"&&tt(nt||(nt=I`
      position: relative;
      overflow: hidden;

      /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
      -webkit-mask-image: -webkit-radial-gradient(white, black);

      &::after {
        animation: ${0} 2s linear 0.5s infinite;
        background: linear-gradient(
          90deg,
          transparent,
          ${0},
          transparent
        );
        content: '';
        position: absolute;
        transform: translateX(-100%); /* Avoid flash during server-side hydration */
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
      }
    `),Wt,(o.vars||o).palette.action.hover)),Xt=Ut.forwardRef(function(o,r){const a=L({props:o,name:"MuiSkeleton"}),{animation:e="pulse",className:n,component:i="span",height:s,style:l,variant:c="text",width:v}=a,p=M(a,At),b=h({},a,{animation:e,component:i,variant:c,hasChildren:!!p.children}),w=Dt(b);return R(jt,h({as:i,ref:r,className:O(w.root,n),ownerState:b},p,{style:h({width:v,height:s},l)}))}),yr=Xt;function Ht(t){const{badgeContent:o,invisible:r=!1,max:a=99,showZero:e=!1}=t,n=it({badgeContent:o,max:a});let i=r;r===!1&&o===0&&!e&&(i=!0);const{badgeContent:s,max:l=a}=i?n:t,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:i,max:l,displayValue:c}}function Vt(t){return F("MuiBadge",t)}const Kt=W("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),C=Kt,Zt=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Gt=await S("react"),U=10,D=4,Jt=t=>{const{color:o,anchorOrigin:r,invisible:a,overlap:e,variant:n,classes:i={}}=t,s={root:["root"],badge:["badge",n,a&&"invisible",`anchorOrigin${u(r.vertical)}${u(r.horizontal)}`,`anchorOrigin${u(r.vertical)}${u(r.horizontal)}${u(e)}`,`overlap${u(e)}`,o!=="default"&&`color${u(o)}`]};return T(s,Vt,i)},Yt=x("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,o)=>o.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),qt=x("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.badge,o[r.variant],o[`anchorOrigin${u(r.anchorOrigin.vertical)}${u(r.anchorOrigin.horizontal)}${u(r.overlap)}`],r.color!=="default"&&o[`color${u(r.color)}`],r.invisible&&o.invisible]}})(({theme:t})=>{var o;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:U*2,lineHeight:1,padding:"0 6px",height:U*2,borderRadius:U,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.keys(((o=t.vars)!=null?o:t).palette).filter(r=>{var a,e;return((a=t.vars)!=null?a:t).palette[r].main&&((e=t.vars)!=null?e:t).palette[r].contrastText}).map(r=>({props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText}})),{props:{variant:"dot"},style:{borderRadius:D,height:D*2,minWidth:D*2,padding:0}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${C.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${C.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${C.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${C.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${C.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="right"&&r.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${C.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="top"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${C.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:r})=>r.anchorOrigin.vertical==="bottom"&&r.anchorOrigin.horizontal==="left"&&r.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${C.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}}),Qt=Gt.forwardRef(function(o,r){var a,e,n,i,s,l;const c=L({props:o,name:"MuiBadge"}),{anchorOrigin:v={vertical:"top",horizontal:"right"},className:p,component:b,components:w={},componentsProps:d={},children:f,overlap:m="rectangular",color:k="default",invisible:pt=!1,max:ut=99,badgeContent:j,slots:P,slotProps:B,showZero:X=!1,variant:_="standard"}=c,gt=M(c,Zt),{badgeContent:H,invisible:ht,max:ft,displayValue:vt}=Ht({max:ut,invisible:pt,badgeContent:j,showZero:X}),mt=it({anchorOrigin:v,color:k,overlap:m,variant:_,badgeContent:j}),V=ht||H==null&&_!=="dot",{color:bt=k,overlap:$t=m,anchorOrigin:wt=v,variant:K=_}=V?mt:c,Z=K!=="dot"?vt:void 0,E=h({},c,{badgeContent:H,invisible:V,max:ft,displayValue:Z,showZero:X,anchorOrigin:wt,color:bt,overlap:$t,variant:K}),G=Jt(E),J=(a=(e=P?.root)!=null?e:w.Root)!=null?a:Yt,Y=(n=(i=P?.badge)!=null?i:w.Badge)!=null?n:qt,z=(s=B?.root)!=null?s:d.root,N=(l=B?.badge)!=null?l:d.badge,Ct=q({elementType:J,externalSlotProps:z,externalForwardedProps:gt,additionalProps:{ref:r,as:b},ownerState:E,className:O(z?.className,G.root,p)}),yt=q({elementType:Y,externalSlotProps:N,ownerState:E,className:O(G.badge,N?.className)});return lt(J,h({},Ct,{children:[f,R(Y,h({},yt,{children:Z}))]}))}),xr=Qt,$=await S("react");function st(t){return t.substring(2).toLowerCase()}function tr(t,o){return o.documentElement.clientWidth<t.clientX||o.documentElement.clientHeight<t.clientY}function Rr(t){const{children:o,disableReactTree:r=!1,mouseEvent:a="onClick",onClickAway:e,touchEvent:n="onTouchEnd"}=t,i=$.useRef(!1),s=$.useRef(null),l=$.useRef(!1),c=$.useRef(!1);$.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const v=kt(Ot(o),s),p=St(d=>{const f=c.current;c.current=!1;const m=A(s.current);if(!l.current||!s.current||"clientX"in d&&tr(d,m))return;if(i.current){i.current=!1;return}let k;d.composedPath?k=d.composedPath().indexOf(s.current)>-1:k=!m.documentElement.contains(d.target)||s.current.contains(d.target),!k&&(r||!f)&&e(d)}),b=d=>f=>{c.current=!0;const m=o.props[d];m&&m(f)},w={ref:v};return n!==!1&&(w[n]=b(n)),$.useEffect(()=>{if(n!==!1){const d=st(n),f=A(s.current),m=()=>{i.current=!0};return f.addEventListener(d,p),f.addEventListener("touchmove",m),()=>{f.removeEventListener(d,p),f.removeEventListener("touchmove",m)}}},[p,n]),a!==!1&&(w[a]=b(a)),$.useEffect(()=>{if(a!==!1){const d=st(a),f=A(s.current);return f.addEventListener(d,p),()=>{f.removeEventListener(d,p)}}},[p,a]),R($.Fragment,{children:$.cloneElement(o,w)})}function rr(t){return F("MuiSwitch",t)}const or=W("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),g=or,ar=["className","color","edge","size","sx"],er=await S("react"),nr=t=>{const{classes:o,edge:r,size:a,color:e,checked:n,disabled:i}=t,s={root:["root",r&&`edge${u(r)}`,`size${u(a)}`],switchBase:["switchBase",`color${u(e)}`,n&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=T(s,rr,o);return h({},o,l)},sr=x("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,r.edge&&o[`edge${u(r.edge)}`],o[`size${u(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${g.thumb}`]:{width:16,height:16},[`& .${g.switchBase}`]:{padding:4,[`&.${g.checked}`]:{transform:"translateX(16px)"}}}}]}),ir=x(Lt,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.switchBase,{[`& .${g.input}`]:o.input},r.color!=="default"&&o[`color${u(r.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${g.checked}`]:{transform:"translateX(20px)"},[`&.${g.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${g.checked} + .${g.track}`]:{opacity:.5},[`&.${g.disabled} + .${g.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${g.input}`]:{left:"-100%",width:"300%"}}),({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Q(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(([,o])=>o.main&&o.light).map(([o])=>({props:{color:o},style:{[`&.${g.checked}`]:{color:(t.vars||t).palette[o].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[o].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Q(t.palette[o].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${g.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${o}DisabledColor`]:`${t.palette.mode==="light"?Pt(t.palette[o].main,.62):Bt(t.palette[o].main,.55)}`}},[`&.${g.checked} + .${g.track}`]:{backgroundColor:(t.vars||t).palette[o].main}}}))]})),lr=x("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,o)=>o.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),cr=x("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,o)=>o.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),dr=er.forwardRef(function(o,r){const a=L({props:o,name:"MuiSwitch"}),{className:e,color:n="primary",edge:i=!1,size:s="medium",sx:l}=a,c=M(a,ar),v=h({},a,{color:n,edge:i,size:s}),p=nr(v),b=R(cr,{className:p.thumb,ownerState:v});return lt(sr,{className:O(p.root,e),sx:l,ownerState:v,children:[R(ir,h({type:"checkbox",icon:b,checkedIcon:b,ref:r,ownerState:v},c,{classes:h({},p,{root:p.switchBase})})),R(lr,{className:p.track,ownerState:v})]})}),kr=dr;export{xr as B,Rr as C,wr as L,kr as M,yr as S,mr as a,C as b,vr as c,Vt as d,zt as e,br as f,dt as g,g as h,fr as i,rr as j,$r as r,Cr as s,y as t};
