(isoDay: string)
| 16 | const getUtcDay = (isoDay: string) => new Date(`${isoDay}T00:00:00Z`); |
| 17 | |
| 18 | const getWeekKey = (isoDay: string) => { |
| 19 | const date = getUtcDay(isoDay); |
| 20 | const day = date.getUTCDay(); |
| 21 | const mondayOffset = day === 0 ? -6 : 1 - day; |
| 22 | |
| 23 | date.setUTCDate(date.getUTCDate() + mondayOffset); |
| 24 | |
| 25 | return toIsoDay(date); |
| 26 | }; |
| 27 | |
| 28 | const stockEventShocks: Record<number, number> = { |
| 29 | 34: -13, |