"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2901],{3180:(r,a,e)=>{e.d(a,{A:()=>n,k:()=>s});var t=e(51062),o=e(2958);function s(r){return(0,o.Ay)("MuiAvatar",r)}const n=(0,t.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"])},34869:(r,a,e)=>{e.d(a,{A:()=>A});var t=e(7552),o=e(93878),s=e(75100),n=e(80317),l=e(21928),i=e(50864),c=e(29772),u=e(69500);const p=(0,c.A)((0,u.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var d=e(3180),v=e(22020);const m=(0,n.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(r,a)=>{const{ownerState:e}=r;return[a.root,a[e.variant],e.colorDefault&&a.colorDefault]}})((0,l.A)((({theme:r})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(r.vars||r).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(r.vars||r).palette.background.default,...r.vars?{backgroundColor:r.vars.palette.Avatar.defaultBg}:{backgroundColor:r.palette.grey[400],...r.applyStyles("dark",{backgroundColor:r.palette.grey[600]})}}}]})))),g=(0,n.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(r,a)=>a.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),f=(0,n.Ay)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(r,a)=>a.fallback})({width:"75%",height:"75%"}),A=t.forwardRef((function(r,a){const e=(0,i.b)({props:r,name:"MuiAvatar"}),{alt:n,children:l,className:c,component:p="div",slots:A={},slotProps:h={},imgProps:y,sizes:b,src:w,srcSet:x,variant:k="circular",...S}=e;let M=null;const P={...e,component:p,variant:k},R=function({crossOrigin:r,referrerPolicy:a,src:e,srcSet:o}){const[s,n]=t.useState(!1);return t.useEffect((()=>{if(!e&&!o)return;n(!1);let t=!0;const s=new Image;return s.onload=()=>{t&&n("loaded")},s.onerror=()=>{t&&n("error")},s.crossOrigin=r,s.referrerPolicy=a,s.src=e,o&&(s.srcset=o),()=>{t=!1}}),[r,a,e,o]),s}({...y,..."function"==typeof h.img?h.img(P):h.img,src:w,srcSet:x}),j=w||x,C=j&&"error"!==R;P.colorDefault=!C,delete P.ownerState;const N=(r=>{const{classes:a,variant:e,colorDefault:t}=r,o={root:["root",e,t&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,s.A)(o,d.k,a)})(P),[D,G]=(0,v.A)("img",{className:N.img,elementType:g,externalForwardedProps:{slots:A,slotProps:{img:{...y,...h.img}}},additionalProps:{alt:n,src:w,srcSet:x,sizes:b},ownerState:P});return M=C?(0,u.jsx)(D,{...G}):l||0===l?l:j&&n?n[0]:(0,u.jsx)(f,{ownerState:P,className:N.fallback}),(0,u.jsx)(m,{as:p,className:(0,o.A)(N.root,c),ref:a,...S,ownerState:P,children:M})}))},62901:(r,a,e)=>{e.r(a),e.d(a,{avatarGroupClasses:()=>m,default:()=>y,getAvatarGroupUtilityClass:()=>v});var t=e(7552),o=e(93878),s=e(75100),n=e(80317),l=e(21928),i=e(50864),c=e(3180),u=e(34869),p=e(51062),d=e(2958);function v(r){return(0,d.Ay)("MuiAvatarGroup",r)}const m=(0,p.A)("MuiAvatarGroup",["root","avatar"]);var g=e(22020),f=e(69500);const A={small:-16,medium:-8},h=(0,n.Ay)("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(r,a)=>[{[`& .${m.avatar}`]:a.avatar},a.root]})((0,l.A)((({theme:r})=>({display:"flex",flexDirection:"row-reverse",[`& .${c.A.root}`]:{border:`2px solid ${(r.vars||r).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}})))),y=t.forwardRef((function(r,a){const e=(0,i.b)({props:r,name:"MuiAvatarGroup"}),{children:n,className:l,component:c="div",componentsProps:p,max:d=5,renderSurplus:m,slotProps:y={},slots:b={},spacing:w="medium",total:x,variant:k="circular",...S}=e;let M=d<2?2:d;const P={...e,max:d,spacing:w,component:c,variant:k},R=(r=>{const{classes:a}=r;return(0,s.A)({root:["root"],avatar:["avatar"]},v,a)})(P),j=t.Children.toArray(n).filter((r=>t.isValidElement(r))),C=x||j.length;C===M&&(M+=1),M=Math.min(C+1,M);const N=Math.min(j.length,M-1),D=Math.max(C-M,C-N,0),G=m?m(D):`+${D}`;let z;z=P.spacing&&void 0!==A[P.spacing]?A[P.spacing]:0===P.spacing?0:-P.spacing||A.medium;const F={slots:b,slotProps:{surplus:y.additionalAvatar??p?.additionalAvatar,...p,...y}},[T,$]=(0,g.A)("surplus",{elementType:u.A,externalForwardedProps:F,className:R.avatar,ownerState:P,additionalProps:{variant:k}});return(0,f.jsxs)(h,{as:c,ownerState:P,className:(0,o.A)(R.root,l),ref:a,...S,style:{"--AvatarGroup-spacing":`${z}px`,...S.style},children:[D?(0,f.jsx)(T,{...$,children:G}):null,j.slice(0,N).reverse().map((r=>t.cloneElement(r,{className:(0,o.A)(r.props.className,R.avatar),variant:r.props.variant||k})))]})}))}}]);
//# sourceMappingURL=2901.e5177037.chunk.js.map