currentWeekRecords = healthjson.HealthData.Record.map((d) => ({
...d,
startDate: dayjs(d.startDate).utc(true),
endDate: dayjs(d.endDate).utc(true),
creationDate: dayjs(d.creationDate).utc(true),
source: activeEnergyBurnedRankingDebounced.indexOf(d.sourceName)
})).filter(
(d) =>
true &&
[
"HKQuantityTypeIdentifierActiveEnergyBurned",
"HKQuantityTypeIdentifierBasalEnergyBurned",
"HKQuantityTypeIdentifierStepCount"
].includes(d.type) &&
d.endDate >= startOfWeek
)