export function replayEvents(events, start, end) {
  const [head, ...tail] = events;

  // Exit condition, no events
  if (head === undefined) return;

  if (head.time > start && head.time < end) {
    const delay = head.time - start;
    setTimeout(() => {
      head.replay();
      replayEvents(tail, head.time, end);
    }, delay);
  } else {
    replayEvents(tail, start, end);
  }
}

@@ -162,16 +162,17 @@
 d.time %3E
+=
  start &
@@ -184,16 +184,17 @@
 d.time %3C
+=
  end) %7B%0A

Fix replay for events with the same timestamp