"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[2477],{48815:function(r,e,t){t.d(e,{Z:function(){return b}});var a=t(96234),o=t(31461),n=t(7896),i=t(30969),s=t(87023),c=t(26540),l=t(45971),u=t(17363),f=t(17469),v=t(37574),d=(0,f.Z)((0,v.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"),m=t(63088),g=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],h=(0,l.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(r,e){var t=r.ownerState;return[e.root,e[t.variant],t.colorDefault&&e.colorDefault]}})((function(r){var e=r.theme,t=r.ownerState;return(0,n.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&(0,n.Z)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]}))})),p=(0,l.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(r,e){return e.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Z=(0,l.ZP)(d,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(r,e){return e.fallback}})({width:"75%",height:"75%"});var b=i.forwardRef((function(r,e){var t=(0,u.Z)({props:r,name:"MuiAvatar"}),l=t.alt,f=t.children,d=t.className,b=t.component,w=void 0===b?"div":b,k=t.imgProps,S=t.sizes,y=t.src,R=t.srcSet,x=t.variant,A=void 0===x?"circular":x,j=(0,o.Z)(t,g),P=null,C=function(r){var e=r.crossOrigin,t=r.referrerPolicy,o=r.src,n=r.srcSet,s=i.useState(!1),c=(0,a.Z)(s,2),l=c[0],u=c[1];return i.useEffect((function(){if(o||n){u(!1);var r=!0,a=new Image;return a.onload=function(){r&&u("loaded")},a.onerror=function(){r&&u("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=o,n&&(a.srcset=n),function(){r=!1}}}),[e,t,o,n]),l}((0,n.Z)({},k,{src:y,srcSet:R})),D=y||R,M=D&&"error"!==C,z=(0,n.Z)({},t,{colorDefault:!M,component:w,variant:A}),N=function(r){var e=r.classes,t={root:["root",r.variant,r.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,c.Z)(t,m.$,e)}(z);return P=M?(0,v.jsx)(p,(0,n.Z)({alt:l,srcSet:R,src:y,sizes:S,ownerState:z,className:N.img},k)):null!=f?f:D&&l?l[0]:(0,v.jsx)(Z,{ownerState:z,className:N.fallback}),(0,v.jsx)(h,(0,n.Z)({as:w,ownerState:z,className:(0,s.Z)(N.root,d),ref:e},j,{children:P}))}))},63088:function(r,e,t){t.d(e,{$:function(){return n}});var a=t(62746),o=t(2975);function n(r){return(0,o.Z)("MuiAvatar",r)}var i=(0,a.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);e.Z=i},42477:function(r,e,t){t.r(e),t.d(e,{avatarClasses:function(){return o.Z},default:function(){return a.Z},getAvatarUtilityClass:function(){return o.$}});var a=t(48815),o=t(63088)}}]);
//# sourceMappingURL=2477.6d424c11.chunk.js.map