"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../utils/mix/number.mjs.js"),e=require("../../value/types/numbers/units.mjs.js"),r=require("../../../../../motion-utils/dist/es/easing/circ.mjs.js"),o=require("../../../../../motion-utils/dist/es/progress.mjs.js"),i=require("../../../../../motion-utils/dist/es/noop.mjs.js");const s=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],u=s.length,n=t=>"string"==typeof t?parseFloat(t):t,a=t=>"number"==typeof t||e.px.test(t);function m(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const p=d(0,.5,r.circOut),c=d(.5,.95,i.noop);function d(t,e,r){return i=>i<t?0:i>e?1:r(o.progress(t,e,i))}exports.mixValues=function(r,o,i,d,b,l){b?(r.opacity=t.mixNumber(0,i.opacity??1,p(d)),r.opacityExit=t.mixNumber(o.opacity??1,0,c(d))):l&&(r.opacity=t.mixNumber(o.opacity??1,i.opacity??1,d));for(let p=0;p<u;p++){const u=s[p];let c=m(o,u),b=m(i,u);if(void 0===c&&void 0===b)continue;c||(c=0),b||(b=0);0===c||0===b||a(c)===a(b)?(r[u]=Math.max(t.mixNumber(n(c),n(b),d),0),(e.percent.test(b)||e.percent.test(c))&&(r[u]+="%")):r[u]=b}(o.rotate||i.rotate)&&(r.rotate=t.mixNumber(o.rotate||0,i.rotate||0,d))};
//# sourceMappingURL=mix-values.mjs.js.map
