import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t,t as n}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{i as r,t as i}from"./emotion-styled.browser.esm.BYv_Qzcq.js";import{i as a}from"./emotion-react.browser.esm.CnqdHrzD.js";import{s as o}from"./utils.Vs712G4Z.js";var s=e(t(),1),c=a({from:{transform:`rotate(0deg)`},to:{transform:`rotate(360deg)`}}),l=i(`span`,{shouldForwardProp:e=>n(e)&&![`size`].includes(e),target:`ewh6kot0`})(({size:e=`lg`,margin:t=``,padding:n=``,theme:r})=>{let i=`calc(${r.iconSizes[e]} * 0.80)`;return{display:`block`,animationName:c,animationDuration:`1000ms`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,borderStyle:`solid`,borderRadius:`50%`,cursor:`wait`,width:i,height:i,margin:o(t,r),padding:o(n,r),borderColor:r.colors.fadedText10,borderTopColor:r.colors.bodyText,borderWidth:r.sizes.spinnerThickness,flexGrow:0,flexShrink:0,"@media (prefers-reduced-motion: reduce)":{animation:`none`}}}),u=i(`span`,{shouldForwardProp:e=>n(e)&&![`size`,`as`].includes(e),target:`ewh6kot1`})(({color:e,size:t,margin:n,padding:r,theme:i})=>({color:e||`inherit`,fill:`currentColor`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:i.iconSizes[t],width:i.iconSizes[t],height:i.iconSizes[t],margin:o(n,i),padding:o(r,i),flexShrink:0})),d=i(`span`,{target:`ewh6kot2`})(({size:e=`lg`,margin:t=``,padding:n=``,theme:r})=>({fill:`currentColor`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:r.iconSizes[e],width:r.iconSizes[e],height:r.iconSizes[e],margin:o(t,r),padding:o(n,r),flexShrink:0})),f=i(`img`,{target:`ewh6kot3`})({width:`100%`,height:`100%`}),p=i(`span`,{target:`ewh6kot4`})(({size:e,margin:t,padding:n,theme:r,color:i})=>{let a=`calc(${r.iconSizes[e]} * 0.90)`;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:a,width:a,height:a,margin:o(t,r),padding:o(n,r),color:i}}),m=({size:e,margin:t,padding:n,color:r})=>({size:e||`md`,margin:t||``,padding:n||``,color:r||void 0}),h=(0,s.memo)(function({content:e,color:t,size:n,margin:i,padding:a,testid:o}){return r(u,{as:e,"aria-hidden":`true`,"data-testid":o,...m({size:n,margin:i,padding:a,color:t})})}),g=(0,s.memo)(function({size:e,margin:t,padding:n,children:i,color:a,testid:o}){return typeof i==`string`&&(i=i.replace(/^emoji:/,``)),r(p,{"data-testid":o||`stIconEmoji`,"aria-hidden":`true`,...m({size:e,margin:t,padding:n,color:a}),children:i})});export{l as a,f as i,h as n,d as r,g as t};