The media were not SHOCKED, they expressed shock in an attempt to get more attention/views.
But that is a totally different point than, and is actually logically incompatible with, the assertion that they privately believed that Trump _would_ win the election, but expressed otherwise to the public.
Almost nobody thought that was seriously going to happen. To claim otherwise is edgy revisionism.
Can't comment on the others, as I was not following closely enough beforehand to get any reading on the public zeitgiest.