/* esm.sh - @iconify/utils@3.1.7/lib/customisations/rotate */
function c(n,s=0){let r=n.replace(/^-?[0-9.]*/,"");function i(t){for(;t<0;)t+=4;return t%4}if(r===""){let t=parseInt(n);return isNaN(t)?0:i(t)}else if(r!==n){let t=0;switch(r){case"%":t=25;break;case"deg":t=90}if(t){let e=parseFloat(n.slice(0,n.length-r.length));return isNaN(e)?0:(e=e/t,e%1===0?i(e):0)}}return s}export{c as rotateFromString};
//# sourceMappingURL=rotate.mjs.map