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.Dj5rZcu_.js";import{s as i}from"./utils.Bid3C9ZE.js";import{a,i as o,o as s,r as c,t as l}from"./Icon.D7FzE0QT.js";var u=e(t(),1),d=r(`span`,{target:`e1vmumty0`})(({size:e,margin:t,padding:n,theme:r,color:a})=>{let o=s(e,r.iconSizes);return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:a,fontSize:o,width:o,height:o,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`}}),f=({size:e,margin:t,padding:n,color:r})=>({size:e||`md`,margin:t||``,padding:n||``,color:r||`inherit`}),p=({iconName:e,...t})=>n(d,{...f(t),"data-testid":t.testid||`stIconMaterial`,translate:`no`,children:e});function m(e){let t=e.match(/^:(.+)\/(.+):$/);return t===null?{pack:`emoji`,icon:e}:{pack:t[1],icon:t[2]}}function h(e){if(!e)return!1;let t=m(e);return t.pack===`material`&&t.icon!==``}function g(e){let t=e.match(/^(:material\/\w+:)\s*(.*)$/);return t?{icon:t[1],text:t[2]}:{icon:null,text:e}}var _=new Set([`:material/menu:`,`:material/more_vert:`,`:material/more_horiz:`]);function v(e,t){return!e&&!!(t&&_.has(t.trim()))}function y(){return`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg2MF84NDMpIj48cGF0aCBkPSJNOS45OTk5NCAxNC4zOTE2TDEzLjQ1ODMgMTYuNDgzM0MxNC4wOTE2IDE2Ljg2NjYgMTQuODY2NiAxNi4zIDE0LjY5OTkgMTUuNTgzM0wxMy43ODMzIDExLjY1TDE2Ljg0MTYgOC45OTk5N0MxNy4zOTk5IDguNTE2NjMgMTcuMDk5OSA3LjU5OTk3IDE2LjM2NjYgNy41NDE2M0wxMi4zNDE2IDcuMTk5OTdMMTAuNzY2NiAzLjQ4MzNDMTAuNDgzMyAyLjgwODMgOS41MTY2MSAyLjgwODMgOS4yMzMyNyAzLjQ4MzNMNy42NTgyNyA3LjE5MTYzTDMuNjMzMjcgNy41MzMzQzIuODk5OTQgNy41OTE2MyAyLjU5OTk0IDguNTA4MyAzLjE1ODI3IDguOTkxNjNMNi4yMTY2MSAxMS42NDE2TDUuMjk5OTQgMTUuNTc1QzUuMTMzMjcgMTYuMjkxNiA1LjkwODI3IDE2Ljg1ODMgNi41NDE2MSAxNi40NzVMOS45OTk5NCAxNC4zOTE2WiIgZmlsbD0iI0ZBQ0EyQiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzE4NjBfODQzIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+`}var b=({iconValue:e,...t})=>{if(e===`spinner`)return n(c,{...t,children:n(a,{"aria-hidden":`true`,"data-testid":t.testid||`stSpinnerIcon`,...t})});let{pack:r,icon:i}=m(e);switch(r){case`material`:switch(i){case`star_filled`:return n(c,{...t,children:n(o,{src:y(),"data-testid":t.testid||`stImageIcon`})});default:return n(c,{...t,children:n(p,{pack:r,iconName:i,...t})})}default:return n(c,{...t,children:n(l,{...t,children:i})})}},x=e=>n(u.Suspense,{fallback:n(c,{...e,children:n(l,{...e,children:`\xA0`})}),children:n(b,{...e})},e.iconValue);export{m as a,v as i,g as n,h as r,x as t};