So what are the facts on who leaked the accusers sexual history? I honestly don't know, but I don't think the prosecution wanted it made public.
The transcripts of the hearing about her sexual history and the outcome of the rape kit were "inadvertently" emailed by the court reporter to some of the press.
A court transcriber or typist, sent the transcript to a media outlet or two, (maybe in error?).
A judge ruled it had to be released to the public.
This is my recollection.