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