import{DEVICES as o}from"@gem-sdk/core";import{deviceWithSurfix as t}from"./common.js";let e=(e,a)=>{let c={...a,...e};return o.forEach(o=>{["--top","--left","--right","--bottom","--t"].forEach(l=>{let m;let f=`${l}${t(o)}`;m=r(e?.[f])?r(a?.[f])?"":a?.[f]:r(a?.[f])?r(e[f])?"":e?.[f]:`calc(${e?.[f]} + ${a?.[f]})`,c[f]=m||c[f]})}),c},r=o=>!o||"unset"===o.toLocaleLowerCase()||"auto"===o.toLocaleLowerCase();export{e as getStyleAdvanced};
