import{o as e}from"./chunk.DuxOD-Sk.js";import{r as t,t as n}from"./emotion-is-prop-valid.esm.DV_OErv-.js";var r=e(t(),1),i=function(){let e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach(e=>{(e?e.split(` `):[]).forEach(e=>{if(e.startsWith(`atm_`)){let[,n]=e.split(`_`);t[n]=e}else n.push(e)})});let r=[];for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(t[e]);return r.push(...n),r.join(` `)},a=e=>e.toUpperCase()===e,o=e=>t=>e.indexOf(t)===-1,s=(e,t)=>{let n={};return Object.keys(e).filter(o(t)).forEach(t=>{n[t]=e[t]}),n};function c(e,t,r){let i=s(t,r);if(!e){let e=typeof n==`function`?{default:n}:n;Object.keys(i).forEach(t=>{e.default(t)||delete i[t]})}return i}function l(e){return t=>{let n=(n,o)=>{let{as:s=e,class:l=``}=n,u=c(t.propsAsIs===void 0?!(typeof s==`string`&&s.indexOf(`-`)===-1&&!a(s[0])):t.propsAsIs,n,[`as`,`class`]);u.ref=o,u.className=t.atomic?i(t.class,u.className||l):i(u.className||l,t.class);let{vars:d}=t;if(d){let e={};for(let r in d){let i=d[r],a=i[0],o=i[1]||``,s=typeof a==`function`?a(n):a;t.name,e[`--${r}`]=`${s}${o}`}let r=u.style||{},i=Object.keys(r);i.length>0&&i.forEach(t=>{e[t]=r[t]}),u.style=e}return e.__wyw_meta&&e!==s?(u.as=s,(0,r.createElement)(e,u)):(0,r.createElement)(s,u)},o=r.forwardRef?(0,r.forwardRef)(n):(e=>n(s(e,[`innerRef`]),e.innerRef));return o.displayName=t.name,o.__wyw_meta={className:t.class||``,extends:e},o}}var u=l;export{u as t};