import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{i as n,t as r}from"./emotion-styled.browser.esm.BYv_Qzcq.js";import{s as i}from"./utils.Vs712G4Z.js";import{a,i as o,r as s,t as c}from"./Icon.BwNwD-ho.js";var l=e(t(),1),u=r(`span`,{target:`ed4y4ls0`})(({size:e,margin:t,padding:n,theme:r,color:a})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:a,fontSize:r.iconSizes[e],width:r.iconSizes[e],height:r.iconSizes[e],margin:i(t,r),padding:i(n,r),userSelect:`none`,fontFamily:r.genericFonts.iconFont,fontWeight:r.fontWeights.normal,fontStyle:`normal`,lineHeight:r.lineHeights.none,letterSpacing:`normal`,textTransform:`none`,whiteSpace:`nowrap`,wordWrap:`normal`,direction:`ltr`,fontFeatureSettings:`liga`,MozFontFeatureSettings:`liga`,WebkitFontFeatureSettings:`liga`,WebkitFontSmoothing:`antialiased`})),d=({size:e,margin:t,padding:n,color:r})=>({size:e||`md`,margin:t||``,padding:n||``,color:r||`inherit`}),f=({iconName:e,...t})=>n(u,{...d(t),"data-testid":t.testid||`stIconMaterial`,translate:`no`,children:e});function p(e){let t=e.match(/^:(.+)\/(.+):$/);return t===null?{pack:`emoji`,icon:e}:{pack:t[1],icon:t[2]}}function m(e){if(!e)return!1;let t=p(e);return t.pack===`material`&&t.icon!==``}function h(e){let t=e.match(/^(:material\/\w+:)\s*(.*)$/);return t?{icon:t[1],text:t[2]}:{icon:null,text:e}}var g=new Set([`:material/menu:`,`:material/more_vert:`,`:material/more_horiz:`]);function _(e,t){return!e&&!!(t&&g.has(t.trim()))}function v(){return`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg2MF84NDMpIj48cGF0aCBkPSJNOS45OTk5NCAxNC4zOTE2TDEzLjQ1ODMgMTYuNDgzM0MxNC4wOTE2IDE2Ljg2NjYgMTQuODY2NiAxNi4zIDE0LjY5OTkgMTUuNTgzM0wxMy43ODMzIDExLjY1TDE2Ljg0MTYgOC45OTk5N0MxNy4zOTk5IDguNTE2NjMgMTcuMDk5OSA3LjU5OTk3IDE2LjM2NjYgNy41NDE2M0wxMi4zNDE2IDcuMTk5OTdMMTAuNzY2NiAzLjQ4MzNDMTAuNDgzMyAyLjgwODMgOS41MTY2MSAyLjgwODMgOS4yMzMyNyAzLjQ4MzNMNy42NTgyNyA3LjE5MTYzTDMuNjMzMjcgNy41MzMzQzIuODk5OTQgNy41OTE2MyAyLjU5OTk0IDguNTA4MyAzLjE1ODI3IDguOTkxNjNMNi4yMTY2MSAxMS42NDE2TDUuMjk5OTQgMTUuNTc1QzUuMTMzMjcgMTYuMjkxNiA1LjkwODI3IDE2Ljg1ODMgNi41NDE2MSAxNi40NzVMOS45OTk5NCAxNC4zOTE2WiIgZmlsbD0iI0ZBQ0EyQiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzE4NjBfODQzIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+`}var y=({iconValue:e,...t})=>{if(e===`spinner`)return n(s,{...t,children:n(a,{"aria-hidden":`true`,"data-testid":t.testid||`stSpinnerIcon`,...t})});let{pack:r,icon:i}=p(e);switch(r){case`material`:switch(i){case`star_filled`:return n(s,{...t,children:n(o,{src:v(),"data-testid":t.testid||`stImageIcon`})});default:return n(s,{...t,children:n(f,{pack:r,iconName:i,...t})})}default:return n(s,{...t,children:n(c,{...t,children:i})})}},b=e=>n(l.Suspense,{fallback:n(s,{...e,children:n(c,{...e,children:`\xA0`})}),children:n(y,{...e})},e.iconValue);export{p as a,_ as i,h as n,m as r,b as t};