The agents called the discovery an “oh sh-t” moment as they combed through Weiner’s iPhone, iPad and laptop after it was revealed he had been sending inappropriate messages to a minor, journalist James B. Stewart claims in his new book “Deep State: Trump, the FBI, and the Rule of Law,” out Tuesday.

Within hours of the Sept. 26, 2016, search warrant, FBI technicians noticed there were 340,000 emails on the laptop between Clinton and her top aide, Weiner’s wife Huma Abedin — many of them from domain addresses such as “hillaryclinton.com” and “state.gov.”

At an FBI briefing later that week, one participant said the revelation was like “dropping a bomb in the middle of the meeting.”