A compound selected from the group consisting of wherein M is CH or N; X 1 and X 1 ' are independently -C(R 1a)(R 2a)-, -S-, -S -, -S 2 -, -O- or -N(R k')-; each R 1a and R 2a is independently H, deuterium, C 1-6 alkyl, C 3-6 cycloalkyl, C 6-10 aryl, -C OR a', -C NR a' R b', -NR a' R b', -SR a', -S R a', -S NR a', -S 2 R a', -S 2 NR a' or -OR a' wherein each hydrogen atom in C 1-6 alkyl is independently optionally substituted by deuterium, halogen, -OH, -OC 1-4 alkyl, -NH 2, -NH(C 1-4 alkyl), -N(C 1-4 alkyl) 2, -NHC C 1-4 alkyl, -N(C 1-4 alkyl)C C 1-4 alkyl, -NHC NHC 1-4 alkyl, -N(C 1-4 alkyl)C NHC 1-4 alkyl, -NHC N(C 1 - 4 alkyl) 2, -N(C 1-4 alkyl)C N(C 1-4 alkyl) 2, -NHC OC 1-4 alkyl, -N(C 1-4 alkyl)C OC 1-4 alkyl, -CO 2 H, -CO 2 C 1-4 alkyl, -CONH 2, -CONH(C 1-4 alkyl), -CON(C 1-4 alkyl) 2, -SC 1-4 alkyl, -S C 1-4 alkyl, -S 2 C 1-4 alkyl, -S NH(C 1-4 alkyl), -S 2 NH(C 1-4 alkyl), -S N(C 1-4 alkyl) 2, -S 2 N(C 1-4 alkyl) 2, C 3-6 cycloalkyl, or 3- to 7-membered heterocycloalkyl; R 3a and R 3b are each independently H, fluoro, chloro, bromo, methyl, ethyl, propyl, isopropyl, methoxy, ethoxy, isopropoxy, -CN, or -CF 3; R 7a is H, C 1-6 alkyl or 3-to 7-membered heterocycloalkyl, wherein each hydrogen atom in C 1-6 alkyl or 3- to 7-membered heterocycloalkyl is independently optionally substituted by halogen, -OH, -OC 1-4 alkyl, -NH 2, -NH(C 1-4 alkyl), -N(C 1-4 alkyl) 2, -CO 2 H,-CO 2 C 1-4 alkyl, -CONH 2, -CONH(C 1-4 alkyl), -CON(C 1-4 alkyl) 2, cycloalkyl, or monocyclic heterocycloalkyl; each R k' is independently H, deuterium, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-6 cycloalkyl, 3-to 7-membered heterocycloalkyl, C 6-10 aryl, or mono- or bicyclic heteroaryl; wherein each hydrogen atom in C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6-10 aryl, or mono- or bicyclic heteroaryl in R k' is independently optionally substituted by deuterium, halogen, C 1-6 alkyl, C 1-6 haloalkyl or -OR a'; wherein each R a' and R b' is independently H, deuterium, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6-10 aryl, or heteroaryl; and each Z 1, Z 2, Z 3, Z 4, Z 5, Z 6 or Z 7 is independently N, NH, or C(R x), wherein each R x when present is independently H, deuterium, halogen, C 1-4 alkyl, -O-C 1-4 alkyl, -OH, -NH 2, -NH(C 1-4 alkyl), -NH(phenyl), -NH(heteroaryl), CN, or -CF 3, provided that at least one of Z 1, Z 2, Z 3, Z 4, Z 5, Z 6 or Z 7 is N or NH; and m' is 2 or 3; or a pharmaceutically acceptable salt thereof. M is CH or N; X 1 and X 1 ' are independently -C(R 1a)(R 2a)-, -S-, -S -, -S 2 -, -O- or -N(R k')-; each R 1a and R 2a is independently H, deuterium, C 1-6 alkyl, C 3-6 cycloalkyl, C 6-10 aryl, -C OR a', -C NR a' R b', -NR a' R b', -SR a', -S R a', -S NR a', -S 2 R a', -S 2 NR a' or -OR a' wherein each hydrogen atom in C 1-6 alkyl is independently optionally substituted by deuterium, halogen, -OH, -OC 1-4 alkyl, -NH 2, -NH(C 1-4 alkyl), -N(C 1-4 alkyl) 2, -NHC C 1-4 alkyl, -N(C 1-4 alkyl)C C 1-4 alkyl, -NHC NHC 1-4 alkyl, -N(C 1-4 alkyl)C NHC 1-4 alkyl, -NHC N(C 1 - 4 alkyl) 2, -N(C 1-4 alkyl)C N(C 1-4 alkyl) 2, -NHC OC 1-4 alkyl, -N(C 1-4 alkyl)C OC 1-4 alkyl, -CO 2 H, -CO 2 C 1-4 alkyl, -CONH 2, -CONH(C 1-4 alkyl), -CON(C 1-4 alkyl) 2, -SC 1-4 alkyl, -S C 1-4 alkyl, -S 2 C 1-4 alkyl, -S NH(C 1-4 alkyl), -S 2 NH(C 1-4 alkyl), -S N(C 1-4 alkyl) 2, -S 2 N(C 1-4 alkyl) 2, C 3-6 cycloalkyl, or 3- to 7-membered heterocycloalkyl; R 3a and R 3b are each independently H, fluoro, chloro, bromo, methyl, ethyl, propyl, isopropyl, methoxy, ethoxy, isopropoxy, -CN, or -CF 3; R 7a is H, C 1-6 alkyl or 3-to 7-membered heterocycloalkyl, wherein each hydrogen atom in C 1-6 alkyl or 3- to 7-membered heterocycloalkyl is independently optionally substituted by halogen, -OH, -OC 1-4 alkyl, -NH 2, -NH(C 1-4 alkyl), -N(C 1-4 alkyl) 2, -CO 2 H,-CO 2 C 1-4 alkyl, -CONH 2, -CONH(C 1-4 alkyl), -CON(C 1-4 alkyl) 2, cycloalkyl, or monocyclic heterocycloalkyl; each R k' is independently H, deuterium, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-6 cycloalkyl, 3-to 7-membered heterocycloalkyl, C 6-10 aryl, or mono- or bicyclic heteroaryl; wherein each hydrogen atom in C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6-10 aryl, or mono- or bicyclic heteroaryl in R k' is independently optionally substituted by deuterium, halogen, C 1-6 alkyl, C 1-6 haloalkyl or -OR a'; wherein each R a' and R b' is independently H, deuterium, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, C 3-6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6-10 aryl, or heteroaryl; and each Z 1, Z 2, Z 3, Z 4, Z 5, Z 6 or Z 7 is independently N, NH, or C(R x), wherein each R x when present is independently H, deuterium, halogen, C 1-4 alkyl, -O-C 1-4 alkyl, -OH, -NH 2, -NH(C 1-4 alkyl), -NH(phenyl), -NH(heteroaryl), CN, or -CF 3, provided that at least one of Z 1, Z 2, Z 3, Z 4, Z 5, Z 6 or Z 7 is N or NH; and m' is 2 or 3;