import{c5 as r}from"./react-dom-C0IJc3nR.js";function n(t,o){if(t!=null){if(r(t)){t(o);return}try{t.current=o}catch{throw new Error(`Cannot assign value '${o}' to ref '${t}'`)}}}function e(...t){return o=>{t.forEach(i=>n(i,o))}}var g=t=>{const o={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(o==null?void 0:o[t])||{}},a=t=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[t],f=(t,o)=>{if(o.includes("-")){const[i]=o.split("-");if(i.includes(t))return!1}return!0},u=(t,o)=>{if(o.includes("-")){const[,i]=o.split("-");return`${t}-${i}`}return t};export{g as a,f as b,u as g,e as m,a as t};
