"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2872],{83162:(r,e,t)=>{t.d(e,{A:()=>y});var a=t(83673),o=t(6614),s=t(7552),l=t(93878),n=t(60827),i=t(72829),c=t(51148),u=t(74893),d=t(69500);const v=(0,u.A)((0,d.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 p=t(28375),f=t(43045);const g=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],m=(0,i.h)("MuiAvatar"),A=(0,c.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})((({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:(0,o.A)({color:(r.vars||r).palette.background.default},r.vars?{backgroundColor:r.vars.palette.Avatar.defaultBg}:(0,o.A)({backgroundColor:r.palette.grey[400]},r.applyStyles("dark",{backgroundColor:r.palette.grey[600]})))}]}))),h=(0,c.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(r,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),b=(0,c.Ay)(v,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(r,e)=>e.fallback})({width:"75%",height:"75%"}),y=s.forwardRef((function(r,e){const t=m({props:r,name:"MuiAvatar"}),{alt:i,children:c,className:u,component:v="div",slots:y={},slotProps:k={},imgProps:w,sizes:S,src:x,srcSet:P,variant:R="circular"}=t,j=(0,a.A)(t,g);let C=null;const M=function({crossOrigin:r,referrerPolicy:e,src:t,srcSet:a}){const[o,l]=s.useState(!1);return s.useEffect((()=>{if(!t&&!a)return;l(!1);let o=!0;const s=new Image;return s.onload=()=>{o&&l("loaded")},s.onerror=()=>{o&&l("error")},s.crossOrigin=r,s.referrerPolicy=e,s.src=t,a&&(s.srcset=a),()=>{o=!1}}),[r,e,t,a]),o}((0,o.A)({},w,{src:x,srcSet:P})),D=x||P,z=D&&"error"!==M,F=(0,o.A)({},t,{colorDefault:!z,component:v,variant:R}),N=(r=>{const{classes:e,variant:t,colorDefault:a}=r,o={root:["root",t,a&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,n.A)(o,p.k,e)})(F),[I,T]=(0,f.A)("img",{className:N.img,elementType:h,externalForwardedProps:{slots:y,slotProps:{img:(0,o.A)({},w,k.img)}},additionalProps:{alt:i,src:x,srcSet:P,sizes:S},ownerState:F});return C=z?(0,d.jsx)(I,(0,o.A)({},T)):c||0===c?c:D&&i?i[0]:(0,d.jsx)(b,{ownerState:F,className:N.fallback}),(0,d.jsx)(A,(0,o.A)({as:v,ownerState:F,className:(0,l.A)(N.root,u),ref:e},j,{children:C}))}))},28375:(r,e,t)=>{t.d(e,{A:()=>l,k:()=>s});var a=t(55549),o=t(9577);function s(r){return(0,o.Ay)("MuiAvatar",r)}const l=(0,a.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"])},42872:(r,e,t)=>{t.r(e),t.d(e,{avatarClasses:()=>o.A,default:()=>a.A,getAvatarUtilityClass:()=>o.k});var a=t(83162),o=t(28375)}}]);
//# sourceMappingURL=2872.2086fffe.chunk.js.map