{"ast":null,"code":"import { clamp } from '../utils/clamp.js';\nvar steps = function steps(_steps, direction) {\n  if (direction === void 0) {\n    direction = 'end';\n  }\n  return function (progress) {\n    progress = direction === 'end' ? Math.min(progress, 0.999) : Math.max(progress, 0.001);\n    var expanded = progress * _steps;\n    var rounded = direction === 'end' ? Math.floor(expanded) : Math.ceil(expanded);\n    return clamp(0, 1, rounded / _steps);\n  };\n};\nexport { steps };","map":{"version":3,"names":["clamp","steps","direction","progress","Math","min","max","expanded","rounded","floor","ceil"],"sources":["C:/LDT/DSP_Management/node_modules/popmotion/dist/es/easing/steps.js"],"sourcesContent":["import { clamp } from '../utils/clamp.js';\n\nvar steps = function (steps, direction) {\n    if (direction === void 0) { direction = 'end'; }\n    return function (progress) {\n        progress =\n            direction === 'end' ? Math.min(progress, 0.999) : Math.max(progress, 0.001);\n        var expanded = progress * steps;\n        var rounded = direction === 'end' ? Math.floor(expanded) : Math.ceil(expanded);\n        return clamp(0, 1, rounded / steps);\n    };\n};\n\nexport { steps };\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,mBAAmB;AAEzC,IAAIC,KAAK,GAAG,SAARA,KAAKA,CAAaA,MAAK,EAAEC,SAAS,EAAE;EACpC,IAAIA,SAAS,KAAK,KAAK,CAAC,EAAE;IAAEA,SAAS,GAAG,KAAK;EAAE;EAC/C,OAAO,UAAUC,QAAQ,EAAE;IACvBA,QAAQ,GACJD,SAAS,KAAK,KAAK,GAAGE,IAAI,CAACC,GAAG,CAACF,QAAQ,EAAE,KAAK,CAAC,GAAGC,IAAI,CAACE,GAAG,CAACH,QAAQ,EAAE,KAAK,CAAC;IAC/E,IAAII,QAAQ,GAAGJ,QAAQ,GAAGF,MAAK;IAC/B,IAAIO,OAAO,GAAGN,SAAS,KAAK,KAAK,GAAGE,IAAI,CAACK,KAAK,CAACF,QAAQ,CAAC,GAAGH,IAAI,CAACM,IAAI,CAACH,QAAQ,CAAC;IAC9E,OAAOP,KAAK,CAAC,CAAC,EAAE,CAAC,EAAEQ,OAAO,GAAGP,MAAK,CAAC;EACvC,CAAC;AACL,CAAC;AAED,SAASA,KAAK","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}