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.Dj5rZcu_.js";import{i as a}from"./emotion-react.browser.esm.DBDHL_YU.js";import{s as o}from"./utils.Bid3C9ZE.js";var s=e(t(),1);function c(e,t){return e===`inherit`?`1em`:t[e]}var l=a({from:{transform:`rotate(0deg)`},to:{transform:`rotate(360deg)`}}),u=i(`span`,{shouldForwardProp:e=>n(e)&&![`size`].includes(e),target:`e1ocqwht0`})(({size:e=`lg`,margin:t=``,padding:n=``,theme:r})=>{let i=`calc(${c(e,r.iconSizes)} * 0.80)`;return{display:`block`,animationName:l,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)":{animationDuration:`1800ms`}}}),d=i(`span`,{shouldForwardProp:e=>n(e)&&![`size`,`as`].includes(e),target:`e1ocqwht1`})(({color:e,size:t,margin:n,padding:r,theme:i})=>{let a=c(t,i.iconSizes);return{color:e||`inherit`,fill:`currentColor`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:a,width:a,height:a,margin:o(n,i),padding:o(r,i),flexShrink:0}}),f=i(`span`,{target:`e1ocqwht2`})(({size:e=`lg`,margin:t=``,padding:n=``,theme:r})=>{let i=c(e,r.iconSizes);return{fill:`currentColor`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:i,width:i,height:i,margin:o(t,r),padding:o(n,r),flexShrink:0}}),p=i(`img`,{target:`e1ocqwht3`})({width:`100%`,height:`100%`}),m=i(`span`,{target:`e1ocqwht4`})(({size:e,margin:t,padding:n,theme:r,color:i})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,fontSize:`calc(${c(e,r.iconSizes)} * 0.90)`,width:`1em`,height:`1em`,margin:o(t,r),padding:o(n,r),color:i})),h=({size:e,margin:t,padding:n,color:r})=>({size:e||`md`,margin:t||``,padding:n||``,color:r||void 0}),g=(0,s.memo)(function({content:e,color:t,size:n,margin:i,padding:a,testid:o}){return r(d,{as:e,"aria-hidden":`true`,"data-testid":o,...h({size:n,margin:i,padding:a,color:t})})}),_=(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(m,{"data-testid":o||`stIconEmoji`,"aria-hidden":`true`,...h({size:e,margin:t,padding:n,color:a}),children:i})});export{u as a,p as i,g as n,c as o,f as r,_ as t};