Provided are compounds of Formula (I) and pharmaceutically acceptable salts thereof, their pharmaceutical compositions, their methods of preparation, and their use for treating viral infections mediated by a member of the Flaviviridae family of viruses such as hepatitis C virus (HCV).