var e=function(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).toLowerCase()},t=function(e){return/[heigt|wd]$/.test(e)},n=function(n){let r=``,i=Object.keys(n);return i.forEach((a,o)=>{let s=n[a];a=e(a),t(a)&&typeof s==`number`&&(s=`${s}px`),s===!0?r+=a:s===!1?r+=`not ${a}`:r+=`(${a}: ${s})`,o<i.length-1&&(r+=` and `)}),r};function r(e){let t=``;return typeof e==`string`?e:Array.isArray(e)?(e.forEach((r,i)=>{t+=n(r),i<e.length-1&&(t+=`, `)}),t):n(e)}export{r as default};