Molecular switches regulating the potency and immune evasiveness of SARS-CoV-2 spike protein