globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(i,t){return this.cache.has(i)?this.cache.get(i):(this.cache.set(i,t),t)}};const p={ai:"alignItems",b:"bottom",bdr:"border",bdrclr:"borderColor",bg:"backgroundColor",brs:"borderRadius",clr:"color",cur:"cursor",d:"display",dir:"flexDirection",dis:"display",fs:"fontSize",gp:"gap",h:"height",jc:"justifyContent",l:"left",m:"margin",mb:"marginBottom",ml:"marginLeft",mnh:"minHeight",mnw:"minWidth",mr:"marginRight",mt:"marginTop",mx:"marginInline",mxh:"maxHeight",mxw:"maxWidth",my:"marginBlock",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingInline",py:"paddingBlock",r:"right",sdw:"boxShadow",ta:"textAlign",top:"top",w:"width",z:"zIndex"},c=i=>({token:t})=>{const r={},o=Object.keys(i);for(const e of o){const n=e;if(n&&p[n]&&i[n]){const d=p[n],a=g(p[n],i[n],t);r[d]=a}}return r};function g(i,t,r){if(t==null)return"unknown";if(i==="zIndex"&&typeof t=="number")return t.toString();let o=t;return t&&r&&r[t]&&(o=r[t]),typeof o=="number"&&(o=`${o}px`),typeof t=="string"&&t.endsWith("*")&&(o=`${t.replace("*","")}!important`),o.toString()}export{c as u};
