const e=require("../../../node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js");var t=/url\([^)]+\)|var\([^)]+\)|(\d+(?:\.\d+)?|\.\d+)px/g;function n(e,t){let n=10**(t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var r=(r={})=>{let{rootValue:i=16,precision:a=5,mediaQuery:o=!1}=r,s=(e,t)=>{if(!t)return e;let r=Number.parseFloat(t);return r<=1?e:`${n(r/i,a)}rem`};return{visit:n=>{let r={...n};return Object.entries(n).forEach(([n,i])=>{if(typeof i==`string`&&i.includes(`px`)){let e=i.replace(t,s);r[n]=e}!e.default[n]&&typeof i==`number`&&i!==0&&(r[n]=`${i}px`.replace(t,s));let a=n.trim();if(a.startsWith(`@`)&&a.includes(`px`)&&o){let e=n.replace(t,s);r[e]=r[n],delete r[n]}}),r}}};exports.default=r;