How Taiwanese authorities pieced together the moments before